Commit 573f3dce03 for wordpress.org
commit 573f3dce03421a2e2eee4d2ac05d6bacc72c6988
Author: desrosj <desrosj@git.wordpress.org>
Date: Tue Sep 8 15:01:09 2026 +0000
General: Bump the pinned hash for Gutenberg to `ae8b34d`.
This updates the pinned commit hash of the Gutenberg repository from `5a0417990a9404cc2562cdd35e3054cb0d3e546e` (version `23.7.0`) to `ae8b34d78e1abc6d1c866fdc00080a1452de82ad` (version `23.8.0`).
A full list of changes included in this commit can be found on GitHub: https://github.com/WordPress/gutenberg/compare/v23.7.0..v23.8.0.
- Fix: New route-based admin pages are empty when no JS (https://github.com/WordPress/gutenberg/pull/80628)
- Report flaky tests: declare @types/node (https://github.com/WordPress/gutenberg/pull/80838)
- Storybook e2e: add small, compact and icon examples to button matrix (https://github.com/WordPress/gutenberg/pull/80793)
- ESLint: Drop @eslint/compat fixup for jest-dom and testing-library (https://github.com/WordPress/gutenberg/pull/80842)
- Storybook: Use SelectControl in Motion tokens story (https://github.com/WordPress/gutenberg/pull/80790)
- Writing flow: forward delete an empty paragraph without breaking apart the next block (https://github.com/WordPress/gutenberg/pull/80813)
- ToggleControl: Add "With Visual" Storybook story (https://github.com/WordPress/gutenberg/pull/80803)
- Bump the github-actions group across 1 directory with 5 updates (https://github.com/WordPress/gutenberg/pull/80684)
- Update Ariakit packages (https://github.com/WordPress/gutenberg/pull/80765)
- Components: Update Floating UI to 2.1.9 (https://github.com/WordPress/gutenberg/pull/80761)
- Improve pre-flight npm access checks (https://github.com/WordPress/gutenberg/pull/80334)
- Ensure static checks can run for private mirrors (https://github.com/WordPress/gutenberg/pull/80817)
- Components: Update react-day-picker to 9.14.0 (https://github.com/WordPress/gutenberg/pull/80792)
- Testing: Remove the jest-puppeteer-axe package (https://github.com/WordPress/gutenberg/pull/80775)
- Tools: Use native agent skill discovery (https://github.com/WordPress/gutenberg/pull/80811)
- Table of Contents: Replace "Convert to static list" with confirmed "Detach" action (https://github.com/WordPress/gutenberg/pull/80844)
- Page List: Rename the Edit action to Detach and confirm it in a dialog (https://github.com/WordPress/gutenberg/pull/80847)
- URLInput: Simplify keyboard handling and fix arrow keys with a text selection (https://github.com/WordPress/gutenberg/pull/80780)
- Upload Media: Fail the item when the /finalize request fails (https://github.com/WordPress/gutenberg/pull/80725)
- Jest preset: support self-referencing via exports (https://github.com/WordPress/gutenberg/pull/80837)
- Fix template `modified` and `date` return value for file templates (https://github.com/WordPress/gutenberg/pull/80733)
- Element: Make the package importable in React 19 (https://github.com/WordPress/gutenberg/pull/80053)
- Add CheckboxControl with-visual Storybook story. (https://github.com/WordPress/gutenberg/pull/80849)
- UI: Add Combobox.InputGroup primitive (https://github.com/WordPress/gutenberg/pull/80869)
- Block Editor: Clear the moving animation's z-index when it finishes (https://github.com/WordPress/gutenberg/pull/80824)
- SearchableChipSelect: Add form primitive to @wordpress/ui (https://github.com/WordPress/gutenberg/pull/80779)
- Playlist: Add track icon (https://github.com/WordPress/gutenberg/pull/80959)
- Flaky tests: fix router navigate latest HTML (https://github.com/WordPress/gutenberg/pull/80178)
- Components: Update polymorphism types to allow all attributes when specifying `as` (https://github.com/WordPress/gutenberg/pull/80705)
- Block JSON schema & PHP-only blocks: Add `autoRegister` support (https://github.com/WordPress/gutenberg/pull/80173)
- Boot: Adjust specificity of the image reset styles so components can size their own images (https://github.com/WordPress/gutenberg/pull/80845)
- Components: Opt-in ConfirmDialog for auto-documentation (https://github.com/WordPress/gutenberg/pull/80866)
- RichText: don't apply input transform when there's no onReplace (https://github.com/WordPress/gutenberg/pull/80978)
- Quote: Ensure paragraph placeholder appears after deleting nested blocks (https://github.com/WordPress/gutenberg/pull/77151)
- Block editor: make the Group action wrap blocks with a group transform (https://github.com/WordPress/gutenberg/pull/80891)
- Copy: preserve the block when its entire text is selected (https://github.com/WordPress/gutenberg/pull/80994)
- Add opt-out for block style state controls (https://github.com/WordPress/gutenberg/pull/80956)
- Upgrade Playwright to v1.62 (https://github.com/WordPress/gutenberg/pull/81001)
- List View: Speed up opening by removing a forced style recalculation (https://github.com/WordPress/gutenberg/pull/80929)
- Widget Dashboard: preserve widget chrome flex layout (https://github.com/WordPress/gutenberg/pull/80570)
- Widget Primitives: document actions as verbs, not links (https://github.com/WordPress/gutenberg/pull/80974)
- Core Data: add missing @wordpress/base-styles dependency (https://github.com/WordPress/gutenberg/pull/81012)
- Ignore node_modules in schema integration test globs (https://github.com/WordPress/gutenberg/pull/81013)
- RichText: fix paste handler crash when pasting files (https://github.com/WordPress/gutenberg/pull/81010)
- Docs: Add VS Code setup guidance (https://github.com/WordPress/gutenberg/pull/77913)
- Perf Tests: Merge selection event windows instead of summing durations (https://github.com/WordPress/gutenberg/pull/81002)
- Storybook: move smoke-test deps into the storybook workspace (https://github.com/WordPress/gutenberg/pull/81017)
- Unit Tests: Reorganise the jest config file. (https://github.com/WordPress/gutenberg/pull/80940)
- Performance Tests: Ignore the locally generated artifacts directory (https://github.com/WordPress/gutenberg/pull/81024)
- Editor: Remove sidebar tabs focus sync effect (https://github.com/WordPress/gutenberg/pull/81020)
- Widgets: carry a declarative `icon` through the widget pipeline (https://github.com/WordPress/gutenberg/pull/80969)
- RTC: Remove excess autosave notices (when not useful) (https://github.com/WordPress/gutenberg/pull/80539)
- UI: Use focus styles from base-styles (https://github.com/WordPress/gutenberg/pull/80635)
- Automated Testing: Add Storybook component documentation regression testing (https://github.com/WordPress/gutenberg/pull/80655)
- Pass Playlist controls to track blocks (https://github.com/WordPress/gutenberg/pull/80368)
- Components: Deprecate Surface (https://github.com/WordPress/gutenberg/pull/80943)
- Tabs: Support Home and End keys for keyboard navigation (https://github.com/WordPress/gutenberg/pull/80912)
- Fix typos in code `comments` and `JSDoc` (https://github.com/WordPress/gutenberg/pull/81045)
- Interface: Remove incorrect aria-expanded from pin-to-toolbar button (https://github.com/WordPress/gutenberg/pull/79874)
- List View: Speed up opening by removing a second render pass (https://github.com/WordPress/gutenberg/pull/80935)
- Docs: Use `gutenberg` instead of `Gutenberg` in package name (https://github.com/WordPress/gutenberg/pull/81051)
- Fix ESLint warnings for 'navigateRegionsProps' spread (https://github.com/WordPress/gutenberg/pull/81052)
- Tests: Replace page-level selectors with locators in e2e specs (https://github.com/WordPress/gutenberg/pull/81053)
- RTC: Disable custom autosave controller when RTC is disabled (https://github.com/WordPress/gutenberg/pull/80769)
- Background: Fix the legacy gradient UI where a gradient cannot be selected (https://github.com/WordPress/gutenberg/pull/81056)
- Rename blockStatesEnabled setting to blockStatesEditingEnabled (https://github.com/WordPress/gutenberg/pull/81058)
- Background: Fix the legacy gradient UI where a gradient cannot be selected - Add missing change log (https://github.com/WordPress/gutenberg/pull/81060)
- Declare missing prettier and stylelint workspace dependencies (https://github.com/WordPress/gutenberg/pull/81065)
- Notes: Display shortcut for form action buttons (https://github.com/WordPress/gutenberg/pull/81064)
- View config: lowercase dynamic filter names (https://github.com/WordPress/gutenberg/pull/81068)
- CI: cache the system packages Playwright dowloads for WebKit (https://github.com/WordPress/gutenberg/pull/80846)
- List View: Collapse off-window placeholder rows into a single spacer row (https://github.com/WordPress/gutenberg/pull/80953)
- devops: balance Playwright shards by duration (https://github.com/WordPress/gutenberg/pull/79479)
- Views: honor developer-defined view config overrides (https://github.com/WordPress/gutenberg/pull/80832)
- Components: Migrate ItemGroup to SCSS module (https://github.com/WordPress/gutenberg/pull/80797)
- Test: Add Vitest migration routing guardrails (https://github.com/WordPress/gutenberg/pull/81036)
- Visual revisions: Add a code diff view inside the editor (https://github.com/WordPress/gutenberg/pull/80314)
- Bump actions/labeler from 6.1.0 to 7.0.0 in /.github/workflows (https://github.com/WordPress/gutenberg/pull/80966)
- Visual revisions: add shareable urls (https://github.com/WordPress/gutenberg/pull/79934)
- Fix e2e tests that break when shard rebalancing changes their neighbors (https://github.com/WordPress/gutenberg/pull/81117)
- Query: guard non-scalar queryId to avoid fatal in enhanced pagination (https://github.com/WordPress/gutenberg/pull/80724)
- Replace deprecated useResizeObserver for useScaleCanvas (https://github.com/WordPress/gutenberg/pull/67508)
- CI: Add job timeouts to E2E, static checks, bundle size, and create block (https://github.com/WordPress/gutenberg/pull/80801)
- Allow organization or repository variable to dictate the Actions runner (https://github.com/WordPress/gutenberg/pull/81087)
- List View: Only subscribe to the block subtree for rows that can show images (https://github.com/WordPress/gutenberg/pull/81076)
- Editor: Migrate settings sidebar to Tabs from @wordpress/ui (https://github.com/WordPress/gutenberg/pull/81054)
- Notes: Email users mentioned in a note (https://github.com/WordPress/gutenberg/pull/79606)
- List View: Narrow the dependants of the memoized List View tree (https://github.com/WordPress/gutenberg/pull/81129)
- List View: Pass only minimal required data to sub-tree branches (https://github.com/WordPress/gutenberg/pull/81111)
- DataViews: Add `time` field type and control (https://github.com/WordPress/gutenberg/pull/80830)
- Post Author Biography: Fix horizontal overflow with long unbroken text (https://github.com/WordPress/gutenberg/pull/81018)
- Link Control: Restore the preview title underline (https://github.com/WordPress/gutenberg/pull/81083)
- Views: Add React to the package's dev dependencies (https://github.com/WordPress/gutenberg/pull/81139)
- feat: Add target param in proxy (https://github.com/WordPress/gutenberg/pull/81141)
- Fix: flaky revisions pagination e2e cross-page diff assertion (https://github.com/WordPress/gutenberg/pull/81119)
- Button: Suppress UA focus ring when focused and pressed (https://github.com/WordPress/gutenberg/pull/81113)
- View config: add reference docs (https://github.com/WordPress/gutenberg/pull/81149)
- Editor: Fix document tools button focus ring (https://github.com/WordPress/gutenberg/pull/81115)
- List View: Replace expand/collapse callbacks with reducer dispatch (https://github.com/WordPress/gutenberg/pull/81138)
- CI: resolve Playwright through the workspace that declares it (https://github.com/WordPress/gutenberg/pull/81137)
- CI: build once and reuse the build across e2e tests shards (https://github.com/WordPress/gutenberg/pull/81031)
- Fix: Tabs block: Start with empty tab labels with placeholders (https://github.com/WordPress/gutenberg/pull/81009)
- Interface: Increase footer breadcrumb height to prevent focus ring clipping (https://github.com/WordPress/gutenberg/pull/81145)
- Editor: clarify autosave failure notice (https://github.com/WordPress/gutenberg/pull/76470)
- Theme: Omit color properties when neither provided nor inherited (https://github.com/WordPress/gutenberg/pull/80600)
- Post editor: Add ThemeProvider for admin color schemes (https://github.com/WordPress/gutenberg/pull/81112)
- Core Data: saveDirtyEntities: improve messaging of server errors (https://github.com/WordPress/gutenberg/pull/81151)
- Global Styles: kebab-case preset slugs when converting references to custom properties (https://github.com/WordPress/gutenberg/pull/80583)
- Revise CODEOWNERS for package ownership (removing nerrad) (https://github.com/WordPress/gutenberg/pull/81175)
- Build: Wrap script bundles in an IIFE to contain 'use strict' (https://github.com/WordPress/gutenberg/pull/79792)
- Media: Improve the HEIC upload error and keep any upload errors up until dismissed (https://github.com/WordPress/gutenberg/pull/81130)
- Block Supports: Guard against non-string attribute values to avoid fatal errors (https://github.com/WordPress/gutenberg/pull/80501)
- Video: Hide settings for the GIF variation (https://github.com/WordPress/gutenberg/pull/81142)
- Video: clarify the Video variation description (https://github.com/WordPress/gutenberg/pull/81181)
- Media Editor: Render sidebar tabs via ComplementaryArea's render prop (https://github.com/WordPress/gutenberg/pull/81133)
- Bump docker/login-action (https://github.com/WordPress/gutenberg/pull/80962)
- Bump actions/setup-node from 6.4.0 to 7.0.0 in /.github/setup-node (https://github.com/WordPress/gutenberg/pull/80963)
- fix(admin-ui): reset the wp-admin li margin that misaligns Breadcrumbs (https://github.com/WordPress/gutenberg/pull/81134)
- Bump astral-sh/setup-uv from 8.3.2 to 9.0.0 in /.github/workflows (https://github.com/WordPress/gutenberg/pull/80964)
- Fix/79643 rtc awareness mixed block selection (https://github.com/WordPress/gutenberg/pull/79836)
- Agents: Add a defensive data design skill and route to the copy guide (https://github.com/WordPress/gutenberg/pull/81131)
- ESLint: Ban `@ts-ignore` in favour of `@ts-expect-error` (https://github.com/WordPress/gutenberg/pull/81148)
- Types: Replace remaining `@ts-expect-error` suppressions with proper typing (https://github.com/WordPress/gutenberg/pull/81200)
- Button: turn on the width setting by default in theme.json (https://github.com/WordPress/gutenberg/pull/81196)
- Notes: fix the mention notification email composition (https://github.com/WordPress/gutenberg/pull/81187)
- Edit Widgets: Fix header toolbar button focus ring (https://github.com/WordPress/gutenberg/pull/81176)
- List View: Reduce per-row store subscriptions (https://github.com/WordPress/gutenberg/pull/81136)
- Customizer widgets: Add ThemeProvider for admin color schemes (https://github.com/WordPress/gutenberg/pull/81174)
- Blocks: Declare the `@types/react-is` devDependency (https://github.com/WordPress/gutenberg/pull/81203)
- Widgets editor: Add ThemeProvider for admin color schemes (https://github.com/WordPress/gutenberg/pull/81173)
- PanelColorSettings: Restore the missing space below the panel header (https://github.com/WordPress/gutenberg/pull/81155)
- Remove the editableRoot opt-in from the paragraph block (https://github.com/WordPress/gutenberg/pull/81184)
- Media Attached to: Fix issue with the popover unexpectedly flipping, tweak wording (https://github.com/WordPress/gutenberg/pull/81206)
- Components: Add allowForms prop to SandBox component (https://github.com/WordPress/gutenberg/pull/76471)
- Ensure device preview is always accurate when window is zoomed in (https://github.com/WordPress/gutenberg/pull/81193)
- DataViews: Pass only eligible items to a bulk action callback (https://github.com/WordPress/gutenberg/pull/81198)
- DataViews: Make grid and table item preview aspect ratio configurable (https://github.com/WordPress/gutenberg/pull/79329)
- Block Editor: Return false from isBlockSelected when there is no client ID (https://github.com/WordPress/gutenberg/pull/81212)
- Blocks: Update hpq to 1.4.0 and drop the ts-expect-error suppressions (https://github.com/WordPress/gutenberg/pull/81199)
- DataViews: Fix the between `date` filter losing a manually typed date on blur (https://github.com/WordPress/gutenberg/pull/81150)
- Block Editor: Fix Select all freezing on large posts (https://github.com/WordPress/gutenberg/pull/81210)
- List View: Split the context and drop dead props to cut re-renders on expand and collapse (https://github.com/WordPress/gutenberg/pull/81159)
- Docs: Fix broken Figma links on the design resources page. (https://github.com/WordPress/gutenberg/pull/81166)
- Blocks: Support static block templates in block type settings (https://github.com/WordPress/gutenberg/pull/80027)
- AGENTS: Update development tips section (https://github.com/WordPress/gutenberg/pull/81224)
- URLInput: Skip search requests while an IME composition is in progress (https://github.com/WordPress/gutenberg/pull/80602)
- Components: Deprecate Animate (https://github.com/WordPress/gutenberg/pull/80931)
- Fix: Trunk e2e failures caused by the navigation spec leaving plain permalinks (https://github.com/WordPress/gutenberg/pull/81238)
- Use p elements for callout alerts in components docs (https://github.com/WordPress/gutenberg/pull/81234)
- Storybook: Enable design system theme tool globally (https://github.com/WordPress/gutenberg/pull/81116)
- Media: Cover client-side big image scaling and orphaned files (https://github.com/WordPress/gutenberg/pull/81061)
- Footnotes: guard against invalid post meta values (https://github.com/WordPress/gutenberg/pull/81201)
- Block editor: unify what a new sibling block inherits (https://github.com/WordPress/gutenberg/pull/81250)
- Global Styles: Remove unused duplicate font family preview utilities (https://github.com/WordPress/gutenberg/pull/81194)
- Docs: explain how the theme.json schema fixtures work (https://github.com/WordPress/gutenberg/pull/81263)
- theme.json schema: fix block pseudo-classes and custom states (https://github.com/WordPress/gutenberg/pull/81209)
- List View: Migrate label wrapper to UI Stack and drop Badge from the anchor (https://github.com/WordPress/gutenberg/pull/81266)
- Docs: Remove dependency group import guidance (https://github.com/WordPress/gutenberg/pull/81245)
- ESLint: Define dependency import rules (https://github.com/WordPress/gutenberg/pull/81246)
- Flaky tests: Report as a PR comment only, stop creating issues (https://github.com/WordPress/gutenberg/pull/81218)
- Dashboard Widgets: remove the Hello Dolly download action (https://github.com/WordPress/gutenberg/pull/81272)
- Block Directory: Make downloadable block item labels translatable. (https://github.com/WordPress/gutenberg/pull/81237)
- Icons: move the inline image icon into the library (https://github.com/WordPress/gutenberg/pull/81271)
- Update phpcs, wpcs dependencies (https://github.com/WordPress/gutenberg/pull/81279)
- fix: add optional chaining for empty reusable block (https://github.com/WordPress/gutenberg/pull/81165) (https://github.com/WordPress/gutenberg/pull/81177)
- DataViews: Inline the kebabCase utility from components (https://github.com/WordPress/gutenberg/pull/81284)
- Navigation: Complete the DocBlocks for the responsive container and overlay style helpers (https://github.com/WordPress/gutenberg/pull/80622)
- Style states: fix state deselection when selecting the already selected block (https://github.com/WordPress/gutenberg/pull/81277)
- Fix missing return value in force_filtered_html_on_import footnotes filter (https://github.com/WordPress/gutenberg/pull/81293)
- Packages: Recover July 29 npm release metadata (https://github.com/WordPress/gutenberg/pull/81303)
- Global styles: render element styles set only inside a breakpoint (https://github.com/WordPress/gutenberg/pull/81265)
- Style states: Fix phantom pseudo element style output (https://github.com/WordPress/gutenberg/pull/81291)
- Docs: remove breakpoint-only element style example from global styles guide (https://github.com/WordPress/gutenberg/pull/81308)
- Render viewport state element styles in the editor (https://github.com/WordPress/gutenberg/pull/81307)
- theme.json schema: responsive states belong to blocks (https://github.com/WordPress/gutenberg/pull/81253)
- theme.json schema: allow responsive states on block style variations (https://github.com/WordPress/gutenberg/pull/81309)
- Block Inspector: Disable the 'Edit original' button when the entity ID is missing (https://github.com/WordPress/gutenberg/pull/81288)
- Site Editor: Decode HTML entities in Identity fields (https://github.com/WordPress/gutenberg/pull/81269)
- Document editEntityRecord's options.isCached param (https://github.com/WordPress/gutenberg/pull/81318)
- Theme: Colocate plugin tests with implementations (https://github.com/WordPress/gutenberg/pull/81247)
- Block Editor: Bail out of hasSelectedInnerBlock when there is no clientId (https://github.com/WordPress/gutenberg/pull/81315)
- ESLint: Replace strict config with bulk suppressions (https://github.com/WordPress/gutenberg/pull/81248)
- Block Library: Document security patch releases (https://github.com/WordPress/gutenberg/pull/81295)
- ESLint: Remove legacy import suppressions (https://github.com/WordPress/gutenberg/pull/81338)
- Components: Migrate Spinner styles from Emotion to SCSS module (https://github.com/WordPress/gutenberg/pull/80511)
- DataViews: Use the public `@wordpress/ui` Badge instead of the private one (https://github.com/WordPress/gutenberg/pull/81236)
- Pert Tests: Avoid inflating interaction metrics with startTracing (https://github.com/WordPress/gutenberg/pull/81264)
- Block Editor: Simplify InspectorControlsFill rendering logic (https://github.com/WordPress/gutenberg/pull/81286)
- Keycodes: Make `withIgnoreIMEEvents` a public API (https://github.com/WordPress/gutenberg/pull/81343)
- Docs: Fix broken links to the removed JavaScript build setup guide. (https://github.com/WordPress/gutenberg/pull/81232)
- Markdownlint: disable the MD033 (no-inline-html) rule project-wide (https://github.com/WordPress/gutenberg/pull/81213)
- Docs: Fix typo in block file structure guide (https://github.com/WordPress/gutenberg/pull/81348)
- Playlist: Normalize Waveform Player configuration handling (https://github.com/WordPress/gutenberg/pull/81342)
- Site editor: fix unreadable sidebar hover color (https://github.com/WordPress/gutenberg/pull/81317)
- Global Styles: Migrate font size presets to the shared preset layer (https://github.com/WordPress/gutenberg/pull/79811)
- Block Editor: Convert useBlockVisibility hook to TypeScript (https://github.com/WordPress/gutenberg/pull/80390)
- Scope breakpoint media queries to screen so printing does not look like a resize (https://github.com/WordPress/gutenberg/pull/81367)
- New `kebab-case` package: extract utility and migrate private API calls (https://github.com/WordPress/gutenberg/pull/81294)
- Remove content types experiment (https://github.com/WordPress/gutenberg/pull/81340)
- Editor: Keep the canvas height stable while resizing the canvas (https://github.com/WordPress/gutenberg/pull/81163)
- Dashboard Widgets: add icon and relevance to the widget action envelope (https://github.com/WordPress/gutenberg/pull/81275)
- Playlist: Improve audio conversion and track selection (https://github.com/WordPress/gutenberg/pull/80926)
- Try: Set post navigation link icon to next. (https://github.com/WordPress/gutenberg/pull/81384)
- UI: Derive Base UI direction from WordPress i18n (https://github.com/WordPress/gutenberg/pull/80399)
- DataViews: Fix `array` field type validation for empty values (https://github.com/WordPress/gutenberg/pull/81378)
- Bump github/codeql-action/upload-sarif (https://github.com/WordPress/gutenberg/pull/81287)
- Bump actions/stale from 10.4.0 to 11.0.0 in /.github/workflows (https://github.com/WordPress/gutenberg/pull/81219)
- Monitor all setup-related composite Actions. (https://github.com/WordPress/gutenberg/pull/81192)
- IconButton: Improve keyboard shortcut accessibility (https://github.com/WordPress/gutenberg/pull/80402)
- Interface: Stop the secondary sidebar animating into place on page load (https://github.com/WordPress/gutenberg/pull/81362)
- Fix: flaky list view paste block styles e2e test (https://github.com/WordPress/gutenberg/pull/81229)
- Docs: Add error message guidance. (https://github.com/WordPress/gutenberg/pull/81143)
- wp-build: Render the no-JS fallback in the generated page templates (https://github.com/WordPress/gutenberg/pull/81365)
- Changed Build Process Link and remove unused tags (https://github.com/WordPress/gutenberg/pull/81360)
- Scripts: Prevent a UTF-8 BOM in the middle of extracted CSS (https://github.com/WordPress/gutenberg/pull/81383)
- Global Styles: Migrate shadows presets to use the preset management layer. (https://github.com/WordPress/gutenberg/pull/79812)
- Global Styles: report border, shadow, outline, filter and dimension changes (https://github.com/WordPress/gutenberg/pull/81407)
- Dashboard Widgets: split action icons into wire and resolved forms (https://github.com/WordPress/gutenberg/pull/81381)
- Block Editor: Fix Escape from the block toolbar and stop redundant last focus dispatches (https://github.com/WordPress/gutenberg/pull/81319)
- Block Mover: Add the keyboard shortcut to the buttons' spoken description (https://github.com/WordPress/gutenberg/pull/81380)
- Format Library: Remove unused CSS rule (https://github.com/WordPress/gutenberg/pull/77831)
- Core Data: Fix post staying dirty after saving edited post meta with RTC enabled (https://github.com/WordPress/gutenberg/pull/81392)
- Widget Dashboard: host-tunable tile spacing via public custom properties (https://github.com/WordPress/gutenberg/pull/81352)
- DataForm: Fix hidden fields validation (https://github.com/WordPress/gutenberg/pull/81377)
- Tools: Make agent setup a workspace (https://github.com/WordPress/gutenberg/pull/81418)
- Test: Add private Vitest config and migrate a pilot test (https://github.com/WordPress/gutenberg/pull/81037)
- Interface: Let CSS own the ComplementaryArea width and use AnimatePresence custom for exit (https://github.com/WordPress/gutenberg/pull/81363)
- Notes: Fix text wrapping for long usernames in collaboration sidebar (https://github.com/WordPress/gutenberg/pull/81406)
- DataViews: vendor `ValidatedSelectControl` (https://github.com/WordPress/gutenberg/pull/81391)
- UI: Add `Calendar` and `RangeCalendar`, moved from `components` private APIs (https://github.com/WordPress/gutenberg/pull/81337)
- Feature: Tabs block: consider using the tab title in the Document Overview instead of a generic "Tab" label (https://github.com/WordPress/gutenberg/pull/81427)
- fix: order site identity changes predictably (https://github.com/WordPress/gutenberg/pull/81283)
- Docs: Fix broken link to the Node.js debugging guide. (https://github.com/WordPress/gutenberg/pull/81398)
- Navigation Overlay Close: Inherit typography and color from the overlay (https://github.com/WordPress/gutenberg/pull/80751)
- Fix: Regression: Tabs block: Start with empty tab labels with placeholders (https://github.com/WordPress/gutenberg/pull/81429)
- components/Menu: Restore Modal focus return when menu items close (https://github.com/WordPress/gutenberg/pull/81164)
- DataViews: Move the rich text control into the editor package (https://github.com/WordPress/gutenberg/pull/81430)
- Components: Remove ValidatedTextControl private API (https://github.com/WordPress/gutenberg/pull/80680)
- Cover: Avoid passing null as the featured image size (https://github.com/WordPress/gutenberg/pull/81444)
- DataViews: vendor `ValidatedNumberControl` (https://github.com/WordPress/gutenberg/pull/81433)
- DataViews: vendor ValidatedCheckboxControl (https://github.com/WordPress/gutenberg/pull/81435)
- DataViews: vendor ValidatedRadioControl (https://github.com/WordPress/gutenberg/pull/81434)
- UI: Upgrade React DayPicker to version 10 (https://github.com/WordPress/gutenberg/pull/81439)
- Block editor: render a real default block in place of the default appender (https://github.com/WordPress/gutenberg/pull/81231)
- Spacing Sizes Control: Make the control label translatable independently of the input aria label. (https://github.com/WordPress/gutenberg/pull/81240)
- Writing flow: stop the caret on containers that do not merge with the text flow (https://github.com/WordPress/gutenberg/pull/81456)
- Remove an unmodified wrapper when all its inner blocks are removed (https://github.com/WordPress/gutenberg/pull/42503)
- Normalize block gap values in layout (https://github.com/WordPress/gutenberg/pull/81460)
- Docs: Add Block Actions Readme (https://github.com/WordPress/gutenberg/pull/69408)
- Block editor: disclose the nested block count of a multi selection (https://github.com/WordPress/gutenberg/pull/80745)
- Fix: flaky autosave shareable URL revisions e2e test. (https://github.com/WordPress/gutenberg/pull/81455)
- Fix empty list block with anchor persisting after backspace deletion (https://github.com/WordPress/gutenberg/pull/77000)
- Docs: Add Block List Readme (https://github.com/WordPress/gutenberg/pull/69432)
- Docs: Add Block Lock Readme (https://github.com/WordPress/gutenberg/pull/69434)
- Backport core fixes for finalize route (https://github.com/WordPress/gutenberg/pull/81465)
- ESLint: Rename root eslint.config.cjs to eslint.config.mjs (https://github.com/WordPress/gutenberg/pull/81468)
- Update 23.8 release branch (https://github.com/WordPress/gutenberg/pull/81486)
- RTC: Couple RTC and polling provider as an opt-in experiment (https://github.com/WordPress/gutenberg/pull/80658)
- Align collaboration migration version markers with the 23.8.0 release (https://github.com/WordPress/gutenberg/pull/81789)
Fixes #66066.
Built from https://develop.svn.wordpress.org/trunk@63534
git-svn-id: http://core.svn.wordpress.org/trunk@62710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php
index 80ffdcec17..cd47508816 100644
--- a/wp-includes/assets/script-loader-packages.php
+++ b/wp-includes/assets/script-loader-packages.php
@@ -4,7 +4,7 @@
'wp-dom-ready',
'wp-i18n'
),
- 'version' => '483af07a6016f640f456'
+ 'version' => '31c6cec5a4ff7aff483d'
),
'annotations.js' => array(
'dependencies' => array(
@@ -13,7 +13,7 @@
'wp-i18n',
'wp-rich-text'
),
- 'version' => 'd4fe1eeb787c2fd5ee89'
+ 'version' => '348a030f1b5717cfaba4'
),
'api-fetch.js' => array(
'dependencies' => array(
@@ -21,25 +21,25 @@
'wp-private-apis',
'wp-url'
),
- 'version' => 'b5b51750518787a93005'
+ 'version' => '6f2a4faeee3c722b1e57'
),
'autop.js' => array(
'dependencies' => array(
),
- 'version' => '9d0d0901b46f0a9027c9'
+ 'version' => '4e10a18cb6f21a043fc0'
),
'base-styles.js' => array(
'dependencies' => array(
),
- 'version' => '8ebe97b095beb7e9279b'
+ 'version' => '67fd7250ac73fa2feba5'
),
'blob.js' => array(
'dependencies' => array(
),
- 'version' => '198af75fe06d924090d8'
+ 'version' => 'c7582a735ddd2edc9731'
),
'block-directory.js' => array(
'dependencies' => array(
@@ -66,7 +66,7 @@
'wp-theme',
'wp-url'
),
- 'version' => 'e534a0f04643c4175bf3'
+ 'version' => 'c9a0f5d70a59ec99cefc'
),
'block-editor.js' => array(
'dependencies' => array(
@@ -104,7 +104,7 @@
'wp-url',
'wp-warning'
),
- 'version' => 'f60d1ca5b360e26950ba'
+ 'version' => 'ed191cc0bfd9746d5116'
),
'block-library.js' => array(
'dependencies' => array(
@@ -150,19 +150,19 @@
'import' => 'dynamic'
)
),
- 'version' => 'b4a45bf5aad458584001'
+ 'version' => '1c788cf80467c71204a1'
),
'block-serialization-default-parser.js' => array(
'dependencies' => array(
),
- 'version' => 'bff55bd3f1ce9df0c99c'
+ 'version' => '4c6f3dd40077f7c17604'
),
'block-serialization-spec-parser.js' => array(
'dependencies' => array(
),
- 'version' => '9ebc5e95e1de1cabd1e6'
+ 'version' => '7b0b496c3d48b1ef3f9e'
),
'blocks.js' => array(
'dependencies' => array(
@@ -183,7 +183,7 @@
'wp-shortcode',
'wp-warning'
),
- 'version' => '524509cfc84da30a4133'
+ 'version' => 'c4bf7adf97b196989131'
),
'commands.js' => array(
'dependencies' => array(
@@ -195,11 +195,12 @@
'wp-element',
'wp-i18n',
'wp-keyboard-shortcuts',
+ 'wp-keycodes',
'wp-preferences',
'wp-primitives',
'wp-private-apis'
),
- 'version' => '148d9b31ef4d2952561e'
+ 'version' => '52e952c975af0681b758'
),
'components.js' => array(
'dependencies' => array(
@@ -224,7 +225,7 @@
'wp-theme',
'wp-warning'
),
- 'version' => 'bfcd41e42623fe90b8cb'
+ 'version' => '13d6ffd4c67d14c7ac9b'
),
'compose.js' => array(
'dependencies' => array(
@@ -239,7 +240,7 @@
'wp-private-apis',
'wp-undo-manager'
),
- 'version' => '6176e314156a3d1f9501'
+ 'version' => 'ec05ef4a8eb28e400019'
),
'core-commands.js' => array(
'dependencies' => array(
@@ -256,7 +257,7 @@
'wp-router',
'wp-url'
),
- 'version' => '8fc41d3503f7892d3ed8'
+ 'version' => '954969209e3d395719ca'
),
'core-data.js' => array(
'dependencies' => array(
@@ -281,7 +282,7 @@
'wp-url',
'wp-warning'
),
- 'version' => '44f1a9fb5f3b76e8c34d'
+ 'version' => '27f57f36c12ca4fa7e5f'
),
'customize-widgets.js' => array(
'dependencies' => array(
@@ -310,7 +311,13 @@
'wp-theme',
'wp-widgets'
),
- 'version' => '05ff2e24b332f5dc0ea1'
+ 'module_dependencies' => array(
+ array(
+ 'id' => '@wordpress/route',
+ 'import' => 'static'
+ )
+ ),
+ 'version' => '4e14e32fab1c214bc0b2'
),
'data.js' => array(
'dependencies' => array(
@@ -323,7 +330,7 @@
'wp-private-apis',
'wp-redux-routine'
),
- 'version' => 'c547bd40753de57cdc64'
+ 'version' => '14a216e0932d72c22976'
),
'data-controls.js' => array(
'dependencies' => array(
@@ -331,32 +338,32 @@
'wp-data',
'wp-deprecated'
),
- 'version' => '730061ade69d7f341014'
+ 'version' => '7e8f932da184d5537725'
),
'date.js' => array(
'dependencies' => array(
'moment',
'wp-deprecated'
),
- 'version' => '2faaf49020b2074de156'
+ 'version' => '8173fc0fc12b7bb7eaf0'
),
'deprecated.js' => array(
'dependencies' => array(
'wp-hooks'
),
- 'version' => '990e85f234fee8f7d446'
+ 'version' => 'fe587bac92b7d0ef760e'
),
'dom.js' => array(
'dependencies' => array(
'wp-deprecated'
),
- 'version' => 'e13e9a880cb4f091f98e'
+ 'version' => 'c95f94cbbc1ac3fde84f'
),
'dom-ready.js' => array(
'dependencies' => array(
),
- 'version' => 'a06281ae5cf5500e9317'
+ 'version' => '3fe927cab37bf38d6a23'
),
'edit-post.js' => array(
'dependencies' => array(
@@ -400,7 +407,7 @@
'import' => 'static'
)
),
- 'version' => '823ecf7905c05ce03022'
+ 'version' => '1098129b2d1346b0fe9b'
),
'edit-site.js' => array(
'dependencies' => array(
@@ -435,7 +442,6 @@
'wp-preferences',
'wp-primitives',
'wp-private-apis',
- 'wp-rich-text',
'wp-router',
'wp-style-engine',
'wp-theme',
@@ -450,7 +456,7 @@
'import' => 'static'
)
),
- 'version' => '24f5112f767120ced99e'
+ 'version' => '969af289eb8057df4124'
),
'edit-widgets.js' => array(
'dependencies' => array(
@@ -491,7 +497,7 @@
'import' => 'static'
)
),
- 'version' => '9d38df85a4b408821722'
+ 'version' => '849d5b33869fb6cf968e'
),
'editor.js' => array(
'dependencies' => array(
@@ -513,6 +519,7 @@
'wp-deprecated',
'wp-dom',
'wp-element',
+ 'wp-escape-html',
'wp-hooks',
'wp-html-entities',
'wp-i18n',
@@ -541,7 +548,7 @@
'import' => 'static'
)
),
- 'version' => 'b48dba8d3fceac44bd42'
+ 'version' => '2b1b8fc54eb8080834c3'
),
'element.js' => array(
'dependencies' => array(
@@ -549,13 +556,13 @@
'react-dom',
'wp-escape-html'
),
- 'version' => '3e865b13a98a8bd21a47'
+ 'version' => '61e4db947466ff01ac06'
),
'escape-html.js' => array(
'dependencies' => array(
),
- 'version' => '3f093e5cca67aa0f8b56'
+ 'version' => '87ebe53e97bba59805a5'
),
'format-library.js' => array(
'dependencies' => array(
@@ -582,31 +589,31 @@
'import' => 'dynamic'
)
),
- 'version' => 'd7131ca927ef67500909'
+ 'version' => '14e60dbda3a346e3b089'
),
'hooks.js' => array(
'dependencies' => array(
),
- 'version' => '7496969728ca0f95732d'
+ 'version' => 'f0f188028580e8dc1255'
),
'html-entities.js' => array(
'dependencies' => array(
),
- 'version' => '8c6fa5b869dfeadc4af2'
+ 'version' => 'a976ff3a0f00bc2999a3'
),
'i18n.js' => array(
'dependencies' => array(
'wp-hooks'
),
- 'version' => '125448662852c5e18937'
+ 'version' => '1dfe7db3940c23ea9216'
),
'is-shallow-equal.js' => array(
'dependencies' => array(
),
- 'version' => '5d84b9f3cb50d2ce7d04'
+ 'version' => '7ad271045c1fe60f5496'
),
'keyboard-shortcuts.js' => array(
'dependencies' => array(
@@ -615,13 +622,13 @@
'wp-element',
'wp-keycodes'
),
- 'version' => '0dd268b2132a3f82b1d4'
+ 'version' => '37da95806f2339bc80d0'
),
'keycodes.js' => array(
'dependencies' => array(
'wp-i18n'
),
- 'version' => 'b156d58a707bff518176'
+ 'version' => '2ea455bbfcb75ff06fc8'
),
'list-reusable-blocks.js' => array(
'dependencies' => array(
@@ -633,7 +640,7 @@
'wp-element',
'wp-i18n'
),
- 'version' => 'a44da9be02cdfef6e44d'
+ 'version' => '68a57d388ce085b9691e'
),
'media-utils.js' => array(
'dependencies' => array(
@@ -656,12 +663,11 @@
'wp-preferences',
'wp-primitives',
'wp-private-apis',
- 'wp-rich-text',
'wp-theme',
'wp-url',
'wp-warning'
),
- 'version' => '23fd370af5af99a2f6f2'
+ 'version' => '43301077caa3b4ebc2e0'
),
'notices.js' => array(
'dependencies' => array(
@@ -669,14 +675,14 @@
'wp-components',
'wp-data'
),
- 'version' => '505026883bbd05994872'
+ 'version' => 'c09a068fdab0eb465e14'
),
'nux.js' => array(
'dependencies' => array(
'wp-data',
'wp-deprecated'
),
- 'version' => 'b0afe722eacfd6e9a364'
+ 'version' => '1a78c05bba2c02820a7e'
),
'patterns.js' => array(
'dependencies' => array(
@@ -699,7 +705,7 @@
'wp-theme',
'wp-url'
),
- 'version' => '1d5dc833056614a65601'
+ 'version' => '74662e7976508e52fa17'
),
'plugins.js' => array(
'dependencies' => array(
@@ -711,7 +717,7 @@
'wp-is-shallow-equal',
'wp-primitives'
),
- 'version' => '50bcc9bb42e4c0723a8c'
+ 'version' => '673d1e05ca49004ab160'
),
'preferences.js' => array(
'dependencies' => array(
@@ -727,32 +733,32 @@
'wp-primitives',
'wp-private-apis'
),
- 'version' => 'ba5e81b3db928d4649c6'
+ 'version' => '4d5774967128e9bf2193'
),
'preferences-persistence.js' => array(
'dependencies' => array(
'wp-api-fetch'
),
- 'version' => 'e8033be98338d1861bca'
+ 'version' => 'a34abbdacd8f50f9acb1'
),
'primitives.js' => array(
'dependencies' => array(
'react-jsx-runtime',
'wp-element'
),
- 'version' => 'a5c905ec27bcd76ef287'
+ 'version' => '44cc5a35c7b9fe07a838'
),
'priority-queue.js' => array(
'dependencies' => array(
),
- 'version' => '1f0e89e247bc0bd3f9b9'
+ 'version' => '6c0aa59b65d55dfd509b'
),
'private-apis.js' => array(
'dependencies' => array(
),
- 'version' => 'd253db066c622f144ae7'
+ 'version' => '91c41cc1d8b79a320132'
),
'react-i18n.js' => array(
'dependencies' => array(
@@ -760,13 +766,13 @@
'wp-element',
'wp-i18n'
),
- 'version' => '9b74577dbd7e50f6b77b'
+ 'version' => 'ba2bd3d7a3817f0494af'
),
'redux-routine.js' => array(
'dependencies' => array(
),
- 'version' => '64f9f5001aabc046c605'
+ 'version' => 'acca2b4857d83ad1790e'
),
'reusable-blocks.js' => array(
'dependencies' => array(
@@ -783,7 +789,7 @@
'wp-primitives',
'wp-url'
),
- 'version' => '00a57a244d360831336a'
+ 'version' => 'dd1bd3b09f7d73c21d0e'
),
'rich-text.js' => array(
'dependencies' => array(
@@ -798,7 +804,7 @@
'wp-keycodes',
'wp-private-apis'
),
- 'version' => '9f145f4a11c41d022c83'
+ 'version' => '3e5852e42cee1c239bae'
),
'router.js' => array(
'dependencies' => array(
@@ -808,7 +814,7 @@
'wp-private-apis',
'wp-url'
),
- 'version' => '0249e6724784b1c2583b'
+ 'version' => 'dda75cd9ff9d7e0eb19f'
),
'server-side-render.js' => array(
'dependencies' => array(
@@ -822,19 +828,19 @@
'wp-i18n',
'wp-url'
),
- 'version' => '77621917ec58330ec283'
+ 'version' => '83e806a0634df6b93530'
),
'shortcode.js' => array(
'dependencies' => array(
),
- 'version' => '11742fe18cc215d3d5ab'
+ 'version' => 'f6273476300cc5fad4cd'
),
'style-engine.js' => array(
'dependencies' => array(
),
- 'version' => '50b0461aa90d44c4123b'
+ 'version' => '914befb08774033e6265'
),
'sync.js' => array(
'dependencies' => array(
@@ -842,7 +848,7 @@
'wp-hooks',
'wp-private-apis'
),
- 'version' => '1b45334109bfd68b8dc9'
+ 'version' => 'f724e91d6631c164fa7c'
),
'theme.js' => array(
'dependencies' => array(
@@ -852,19 +858,19 @@
'wp-element',
'wp-private-apis'
),
- 'version' => '752c47f43b18558e2979'
+ 'version' => '700f328ef9b3b8a561d4'
),
'token-list.js' => array(
'dependencies' => array(
),
- 'version' => '16f0aebdd39d87c2a84b'
+ 'version' => 'e86ab419d8302d57822c'
),
'undo-manager.js' => array(
'dependencies' => array(
'wp-is-shallow-equal'
),
- 'version' => '27bb0ae036a2c9d4a1b5'
+ 'version' => '4554fce6276d8910a4ae'
),
'upload-media.js' => array(
'dependencies' => array(
@@ -887,13 +893,13 @@
'import' => 'dynamic'
)
),
- 'version' => 'a16fcecc49ab54f868c2'
+ 'version' => 'f7174b0617bcd68e57c3'
),
'url.js' => array(
'dependencies' => array(
),
- 'version' => '9dd5f16a5ce37bf4ba2c'
+ 'version' => '7b0de086d4ae11d55704'
),
'viewport.js' => array(
'dependencies' => array(
@@ -901,13 +907,13 @@
'wp-data',
'wp-element'
),
- 'version' => '83b39beb77dcc56c4d26'
+ 'version' => '756cf72bd7ed0f096e87'
),
'warning.js' => array(
'dependencies' => array(
),
- 'version' => '36fdbdc984d93aee8a97'
+ 'version' => 'a0978839debc564a6608'
),
'widgets.js' => array(
'dependencies' => array(
@@ -924,12 +930,12 @@
'wp-notices',
'wp-primitives'
),
- 'version' => '2a2e101698084ec9e2c3'
+ 'version' => 'aa82232d2078ea55adba'
),
'wordcount.js' => array(
'dependencies' => array(
),
- 'version' => 'f53ba7c5b085d7a53357'
+ 'version' => 'f0b1f0e977b2ff6e0132'
)
);
\ No newline at end of file
diff --git a/wp-includes/assets/script-modules-packages.php b/wp-includes/assets/script-modules-packages.php
index c2bd324ca4..b0159e8dcb 100644
--- a/wp-includes/assets/script-modules-packages.php
+++ b/wp-includes/assets/script-modules-packages.php
@@ -88,7 +88,7 @@
'import' => 'static'
)
),
- 'version' => 'fb8db6c2fefd8246fa86'
+ 'version' => 'e921883a3f8a7b1ead70'
),
'block-library/query/view.js' => array(
'dependencies' => array(
@@ -128,7 +128,7 @@
'import' => 'static'
)
),
- 'version' => '581cf5c9168a7665f2dd'
+ 'version' => 'cc1a34b1bee3c2e17bc4'
),
'boot/index.js' => array(
'dependencies' => array(
@@ -164,7 +164,7 @@
'import' => 'static'
)
),
- 'version' => '4b0281842169241e3d0e'
+ 'version' => 'f721280cfc5d6a8eb73b'
),
'connectors/index.js' => array(
'dependencies' => array(
@@ -177,42 +177,6 @@
),
'version' => '8aa4346de9f4f9cbfaef'
),
- 'content-types/index.js' => array(
- 'dependencies' => array(
- 'react',
- 'react-dom',
- 'react-jsx-runtime',
- 'wp-components',
- 'wp-compose',
- 'wp-core-data',
- 'wp-data',
- 'wp-date',
- 'wp-deprecated',
- 'wp-element',
- 'wp-i18n',
- 'wp-is-shallow-equal',
- 'wp-keycodes',
- 'wp-notices',
- 'wp-preferences',
- 'wp-primitives',
- 'wp-private-apis',
- 'wp-rich-text',
- 'wp-theme',
- 'wp-url',
- 'wp-warning'
- ),
- 'module_dependencies' => array(
- array(
- 'id' => '@wordpress/a11y',
- 'import' => 'static'
- ),
- array(
- 'id' => '@wordpress/route',
- 'import' => 'static'
- )
- ),
- 'version' => '08ca621ea347764c641b'
- ),
'core-abilities/index.js' => array(
'dependencies' => array(
'wp-api-fetch',
@@ -228,11 +192,20 @@
),
'dashboard-init/index.js' => array(
'dependencies' => array(
+ 'react',
'wp-core-data',
'wp-data',
+ 'wp-dom',
+ 'wp-element',
'wp-i18n'
),
- 'version' => 'dfe923ac4bd0bd01b9aa'
+ 'module_dependencies' => array(
+ array(
+ 'id' => '@wordpress/widget-primitives',
+ 'import' => 'static'
+ )
+ ),
+ 'version' => 'e8caf739ce241e22ead9'
),
'edit-site-init/index.js' => array(
'dependencies' => array(
@@ -247,7 +220,7 @@
'import' => 'static'
)
),
- 'version' => '35485e5cfea4689dcaa1'
+ 'version' => 'e2f82d3d1c3179d25626'
),
'interactivity/index.js' => array(
'dependencies' => array(
@@ -315,7 +288,7 @@
'wp-private-apis',
'wp-style-engine'
),
- 'version' => '0e40b71e65fda1397a4b'
+ 'version' => '91b49bcd65d03f0c27d7'
),
'route/index.js' => array(
'dependencies' => array(
@@ -367,7 +340,7 @@
'react-jsx-runtime',
'wp-element'
),
- 'version' => '320c96a17fd38400c241'
+ 'version' => 'dfdedb1556f8335ccd5d'
),
'workflow/index.js' => array(
'dependencies' => array(
@@ -379,8 +352,8 @@
'wp-element',
'wp-i18n',
'wp-keyboard-shortcuts',
- 'wp-primitives',
- 'wp-private-apis'
+ 'wp-keycodes',
+ 'wp-primitives'
),
'module_dependencies' => array(
array(
@@ -392,6 +365,6 @@
'import' => 'dynamic'
)
),
- 'version' => '9e09ede3195f2f51bc49'
+ 'version' => '090d73e88a5ee2c08223'
)
);
\ No newline at end of file
diff --git a/wp-includes/blocks/blocks-json.php b/wp-includes/blocks/blocks-json.php
index 6a82f27ef8..ca3c645b96 100644
--- a/wp-includes/blocks/blocks-json.php
+++ b/wp-includes/blocks/blocks-json.php
@@ -2883,7 +2883,6 @@
),
'supports' => array(
'__experimentalOnEnter' => true,
- '__experimentalOnMerge' => true,
'__experimentalSettings' => true,
'align' => array(
'wide',
@@ -4977,6 +4976,7 @@
'supports' => array(
'anchor' => true,
'align' => true,
+ '__experimentalExposeControlsToChildren' => true,
'color' => array(
'gradients' => true,
'link' => true,
diff --git a/wp-includes/blocks/cover.php b/wp-includes/blocks/cover.php
index 16c8615ef9..8bd1c3f5cd 100644
--- a/wp-includes/blocks/cover.php
+++ b/wp-includes/blocks/cover.php
@@ -161,7 +161,7 @@ function render_block_core_cover( $attributes, $content ) {
if ( in_the_loop() ) {
update_post_thumbnail_cache();
}
- $current_featured_image = get_the_post_thumbnail_url( null, $attributes['sizeSlug'] ?? null );
+ $current_featured_image = get_the_post_thumbnail_url( null, $attributes['sizeSlug'] ?? 'full' );
if ( ! $current_featured_image ) {
return $content;
}
diff --git a/wp-includes/blocks/group/block.json b/wp-includes/blocks/group/block.json
index 7fa2ad2ccf..37c63cfac8 100644
--- a/wp-includes/blocks/group/block.json
+++ b/wp-includes/blocks/group/block.json
@@ -19,7 +19,6 @@
},
"supports": {
"__experimentalOnEnter": true,
- "__experimentalOnMerge": true,
"__experimentalSettings": true,
"align": [ "wide", "full" ],
"anchor": true,
diff --git a/wp-includes/blocks/latest-comments.php b/wp-includes/blocks/latest-comments.php
index eec7e10453..37ee11c4e0 100644
--- a/wp-includes/blocks/latest-comments.php
+++ b/wp-includes/blocks/latest-comments.php
@@ -120,7 +120,10 @@ function render_block_core_latest_comments( $attributes ) {
}
$list_items_markup .= '</footer>';
if ( 'full' === $display_content ) {
- $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( get_comment_text( $comment ) ) . '</div>';
+ $comment_text = post_password_required( $comment->comment_post_ID )
+ ? __( 'Password protected' )
+ : get_comment_text( $comment );
+ $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( $comment_text ) . '</div>';
} elseif ( 'excerpt' === $display_content ) {
$list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( get_comment_excerpt( $comment ) ) . '</div>';
}
diff --git a/wp-includes/blocks/navigation-overlay-close/style-rtl.css b/wp-includes/blocks/navigation-overlay-close/style-rtl.css
index b936ca98d6..16be6c1ca2 100644
--- a/wp-includes/blocks/navigation-overlay-close/style-rtl.css
+++ b/wp-includes/blocks/navigation-overlay-close/style-rtl.css
@@ -1,3 +1,14 @@
+:where(.wp-block-navigation-overlay-close) {
+ color: inherit;
+ font-family: inherit;
+ font-size: inherit;
+ font-style: inherit;
+ font-weight: inherit;
+ letter-spacing: inherit;
+ line-height: inherit;
+ text-transform: inherit;
+}
+
.wp-block-navigation-overlay-close {
display: inline-flex;
align-items: center;
diff --git a/wp-includes/blocks/navigation-overlay-close/style-rtl.min.css b/wp-includes/blocks/navigation-overlay-close/style-rtl.min.css
index 796afe7df8..0387f0984e 100644
--- a/wp-includes/blocks/navigation-overlay-close/style-rtl.min.css
+++ b/wp-includes/blocks/navigation-overlay-close/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-navigation-overlay-close{align-items:center;background:transparent;border:none;cursor:pointer;display:inline-flex;gap:.5em;justify-content:center;padding:0;text-decoration:none}.wp-block-navigation-overlay-close:focus{outline-offset:2px}.wp-block-navigation-overlay-close svg{fill:currentColor;display:block;flex-shrink:0;height:24px;width:24px}.wp-block-navigation-overlay-close .wp-block-navigation-overlay-close__text{align-items:center;display:inline-flex}
\ No newline at end of file
+:where(.wp-block-navigation-overlay-close){color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}.wp-block-navigation-overlay-close{align-items:center;background:transparent;border:none;cursor:pointer;display:inline-flex;gap:.5em;justify-content:center;padding:0;text-decoration:none}.wp-block-navigation-overlay-close:focus{outline-offset:2px}.wp-block-navigation-overlay-close svg{fill:currentColor;display:block;flex-shrink:0;height:24px;width:24px}.wp-block-navigation-overlay-close .wp-block-navigation-overlay-close__text{align-items:center;display:inline-flex}
\ No newline at end of file
diff --git a/wp-includes/blocks/navigation-overlay-close/style.css b/wp-includes/blocks/navigation-overlay-close/style.css
index b936ca98d6..16be6c1ca2 100644
--- a/wp-includes/blocks/navigation-overlay-close/style.css
+++ b/wp-includes/blocks/navigation-overlay-close/style.css
@@ -1,3 +1,14 @@
+:where(.wp-block-navigation-overlay-close) {
+ color: inherit;
+ font-family: inherit;
+ font-size: inherit;
+ font-style: inherit;
+ font-weight: inherit;
+ letter-spacing: inherit;
+ line-height: inherit;
+ text-transform: inherit;
+}
+
.wp-block-navigation-overlay-close {
display: inline-flex;
align-items: center;
diff --git a/wp-includes/blocks/navigation-overlay-close/style.min.css b/wp-includes/blocks/navigation-overlay-close/style.min.css
index 796afe7df8..0387f0984e 100644
--- a/wp-includes/blocks/navigation-overlay-close/style.min.css
+++ b/wp-includes/blocks/navigation-overlay-close/style.min.css
@@ -1 +1 @@
-.wp-block-navigation-overlay-close{align-items:center;background:transparent;border:none;cursor:pointer;display:inline-flex;gap:.5em;justify-content:center;padding:0;text-decoration:none}.wp-block-navigation-overlay-close:focus{outline-offset:2px}.wp-block-navigation-overlay-close svg{fill:currentColor;display:block;flex-shrink:0;height:24px;width:24px}.wp-block-navigation-overlay-close .wp-block-navigation-overlay-close__text{align-items:center;display:inline-flex}
\ No newline at end of file
+:where(.wp-block-navigation-overlay-close){color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}.wp-block-navigation-overlay-close{align-items:center;background:transparent;border:none;cursor:pointer;display:inline-flex;gap:.5em;justify-content:center;padding:0;text-decoration:none}.wp-block-navigation-overlay-close:focus{outline-offset:2px}.wp-block-navigation-overlay-close svg{fill:currentColor;display:block;flex-shrink:0;height:24px;width:24px}.wp-block-navigation-overlay-close .wp-block-navigation-overlay-close__text{align-items:center;display:inline-flex}
\ No newline at end of file
diff --git a/wp-includes/blocks/navigation.php b/wp-includes/blocks/navigation.php
index 3099f94bd3..e6f0dc1622 100644
--- a/wp-includes/blocks/navigation.php
+++ b/wp-includes/blocks/navigation.php
@@ -683,9 +683,14 @@ class WP_Navigation_Block_Renderer {
* @since 7.0.0
*
* @param bool $is_hidden_by_default Whether the responsive menu is hidden by default.
- * @param bool $has_custom_overlay Whether a custom overlay is used.
- * @param array $colors The colors array.
+ * @param bool $has_custom_overlay Whether a custom overlay is used.
+ * @param array $colors The colors array.
* @return array Returns the responsive container classes.
+ *
+ * @phpstan-param array{
+ * overlay_css_classes: list<string>,
+ * ...
+ * } $colors
*/
private static function get_responsive_container_classes( $is_hidden_by_default, $has_custom_overlay, $colors ) {
$responsive_container_classes = array( 'wp-block-navigation__responsive-container' );
@@ -710,8 +715,14 @@ class WP_Navigation_Block_Renderer {
*
* @since 7.0.0
*
- * @param array $colors The colors array.
+ * @param bool $has_custom_overlay Whether a custom overlay is used.
+ * @param array $colors The colors array.
* @return string Returns the overlay inline styles.
+ *
+ * @phpstan-param array{
+ * overlay_inline_styles: string,
+ * ...
+ * } $colors
*/
private static function get_overlay_inline_styles( $has_custom_overlay, $colors ) {
$overlay_inline_styles = $has_custom_overlay ? '' : esc_attr( safecss_filter_attr( $colors['overlay_inline_styles'] ) );
diff --git a/wp-includes/blocks/page-list/editor-rtl.css b/wp-includes/blocks/page-list/editor-rtl.css
index df47ca91f8..21f2dc95ee 100644
--- a/wp-includes/blocks/page-list/editor-rtl.css
+++ b/wp-includes/blocks/page-list/editor-rtl.css
@@ -1,9 +1,3 @@
-/**
- * Breakpoints & Media Queries
- */
-/**
- * Typography
- */
/**
* SCSS Variables.
*
@@ -49,50 +43,6 @@
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
-/**
-* Converts a hex value into the rgb equivalent.
-*
-* @param {string} hex - the hexadecimal value to convert
-* @return {string} comma separated rgb values
-*/
-/**
- * Long content fade mixin
- *
- * Creates a fading overlay to signify that the content is longer
- * than the space allows.
- */
-/**
- * Breakpoint mixins
- */
-/**
- * Focus styles.
- */
-/**
- * Standard focus rings for the WordPress Design System.
- *
- * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
- * e.g. `&:focus { @include outset-ring__focus(); }`.
- */
-/**
- * Applies editor left position to the selector passed as argument
- */
-/**
- * Styles that are reused verbatim in a few places
- */
-/**
- * Allows users to opt-out of animations via OS-level preferences.
- */
-/**
- * Reset default styles for JavaScript UI based pages.
- * This is a WP-admin agnostic reset
- */
-/**
- * Reset the WP Admin page styles for Gutenberg-like pages.
- */
-/**
- * Creates a checkerboard pattern background to indicate transparency.
- * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
- */
.wp-block-navigation.items-justified-space-between .wp-block-page-list > div,
.wp-block-navigation.items-justified-space-between .wp-block-page-list {
display: contents;
@@ -110,18 +60,6 @@
pointer-events: none;
}
-@media (min-width: 600px) {
- .wp-block-page-list-modal {
- max-width: 480px;
- }
-}
-
-.wp-block-page-list-modal-buttons {
- display: flex;
- justify-content: flex-end;
- gap: 12px;
-}
-
.wp-block-page-list .open-on-click:focus-within > .wp-block-navigation__submenu-container {
visibility: visible;
opacity: 1;
diff --git a/wp-includes/blocks/page-list/editor-rtl.min.css b/wp-includes/blocks/page-list/editor-rtl.min.css
index bc1b7f6aa4..5dfb5cfa7b 100644
--- a/wp-includes/blocks/page-list/editor-rtl.min.css
+++ b/wp-includes/blocks/page-list/editor-rtl.min.css
@@ -1 +1 @@
-.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width:600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}
\ No newline at end of file
+.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}
\ No newline at end of file
diff --git a/wp-includes/blocks/page-list/editor.css b/wp-includes/blocks/page-list/editor.css
index df47ca91f8..21f2dc95ee 100644
--- a/wp-includes/blocks/page-list/editor.css
+++ b/wp-includes/blocks/page-list/editor.css
@@ -1,9 +1,3 @@
-/**
- * Breakpoints & Media Queries
- */
-/**
- * Typography
- */
/**
* SCSS Variables.
*
@@ -49,50 +43,6 @@
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
-/**
-* Converts a hex value into the rgb equivalent.
-*
-* @param {string} hex - the hexadecimal value to convert
-* @return {string} comma separated rgb values
-*/
-/**
- * Long content fade mixin
- *
- * Creates a fading overlay to signify that the content is longer
- * than the space allows.
- */
-/**
- * Breakpoint mixins
- */
-/**
- * Focus styles.
- */
-/**
- * Standard focus rings for the WordPress Design System.
- *
- * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
- * e.g. `&:focus { @include outset-ring__focus(); }`.
- */
-/**
- * Applies editor left position to the selector passed as argument
- */
-/**
- * Styles that are reused verbatim in a few places
- */
-/**
- * Allows users to opt-out of animations via OS-level preferences.
- */
-/**
- * Reset default styles for JavaScript UI based pages.
- * This is a WP-admin agnostic reset
- */
-/**
- * Reset the WP Admin page styles for Gutenberg-like pages.
- */
-/**
- * Creates a checkerboard pattern background to indicate transparency.
- * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
- */
.wp-block-navigation.items-justified-space-between .wp-block-page-list > div,
.wp-block-navigation.items-justified-space-between .wp-block-page-list {
display: contents;
@@ -110,18 +60,6 @@
pointer-events: none;
}
-@media (min-width: 600px) {
- .wp-block-page-list-modal {
- max-width: 480px;
- }
-}
-
-.wp-block-page-list-modal-buttons {
- display: flex;
- justify-content: flex-end;
- gap: 12px;
-}
-
.wp-block-page-list .open-on-click:focus-within > .wp-block-navigation__submenu-container {
visibility: visible;
opacity: 1;
diff --git a/wp-includes/blocks/page-list/editor.min.css b/wp-includes/blocks/page-list/editor.min.css
index bc1b7f6aa4..5dfb5cfa7b 100644
--- a/wp-includes/blocks/page-list/editor.min.css
+++ b/wp-includes/blocks/page-list/editor.min.css
@@ -1 +1 @@
-.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width:600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}
\ No newline at end of file
+.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}
\ No newline at end of file
diff --git a/wp-includes/blocks/playlist/block.json b/wp-includes/blocks/playlist/block.json
index 796b3d580e..566174e50d 100644
--- a/wp-includes/blocks/playlist/block.json
+++ b/wp-includes/blocks/playlist/block.json
@@ -69,6 +69,7 @@
"supports": {
"anchor": true,
"align": true,
+ "__experimentalExposeControlsToChildren": true,
"color": {
"gradients": true,
"link": true,
diff --git a/wp-includes/blocks/post-author-biography/style-rtl.css b/wp-includes/blocks/post-author-biography/style-rtl.css
index 7bcaf908dc..02143703d2 100644
--- a/wp-includes/blocks/post-author-biography/style-rtl.css
+++ b/wp-includes/blocks/post-author-biography/style-rtl.css
@@ -1,4 +1,5 @@
.wp-block-post-author-biography {
box-sizing: border-box;
white-space: pre-wrap;
+ overflow-wrap: break-word;
}
\ No newline at end of file
diff --git a/wp-includes/blocks/post-author-biography/style-rtl.min.css b/wp-includes/blocks/post-author-biography/style-rtl.min.css
index d53b929ae6..48950b1a5c 100644
--- a/wp-includes/blocks/post-author-biography/style-rtl.min.css
+++ b/wp-includes/blocks/post-author-biography/style-rtl.min.css
@@ -1 +1 @@
-.wp-block-post-author-biography{box-sizing:border-box;white-space:pre-wrap}
\ No newline at end of file
+.wp-block-post-author-biography{box-sizing:border-box;overflow-wrap:break-word;white-space:pre-wrap}
\ No newline at end of file
diff --git a/wp-includes/blocks/post-author-biography/style.css b/wp-includes/blocks/post-author-biography/style.css
index 7bcaf908dc..02143703d2 100644
--- a/wp-includes/blocks/post-author-biography/style.css
+++ b/wp-includes/blocks/post-author-biography/style.css
@@ -1,4 +1,5 @@
.wp-block-post-author-biography {
box-sizing: border-box;
white-space: pre-wrap;
+ overflow-wrap: break-word;
}
\ No newline at end of file
diff --git a/wp-includes/blocks/post-author-biography/style.min.css b/wp-includes/blocks/post-author-biography/style.min.css
index d53b929ae6..48950b1a5c 100644
--- a/wp-includes/blocks/post-author-biography/style.min.css
+++ b/wp-includes/blocks/post-author-biography/style.min.css
@@ -1 +1 @@
-.wp-block-post-author-biography{box-sizing:border-box;white-space:pre-wrap}
\ No newline at end of file
+.wp-block-post-author-biography{box-sizing:border-box;overflow-wrap:break-word;white-space:pre-wrap}
\ No newline at end of file
diff --git a/wp-includes/blocks/post-content.php b/wp-includes/blocks/post-content.php
index 0be1a8730f..b75d7144da 100644
--- a/wp-includes/blocks/post-content.php
+++ b/wp-includes/blocks/post-content.php
@@ -56,8 +56,18 @@ function render_block_core_post_content( $attributes, $content, $block ) {
$tag_name = 'div';
- if ( ! empty( $attributes['tagName'] ) && tag_escape( $attributes['tagName'] ) === $attributes['tagName'] ) {
- $tag_name = $attributes['tagName'];
+ if ( isset( $attributes['tagName'] ) && is_string( $attributes['tagName'] ) ) {
+ /**
+ * The allowed tag names match the options offered in the editor.
+ *
+ * @see packages/block-library/src/post-content/edit.js
+ */
+ $allowed_tag_names = array( 'div', 'main', 'section', 'article' );
+ $normalized_tag_name = strtolower( $attributes['tagName'] );
+
+ if ( in_array( $normalized_tag_name, $allowed_tag_names, true ) ) {
+ $tag_name = $normalized_tag_name;
+ }
}
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => 'entry-content' ) );
diff --git a/wp-includes/blocks/post-date.php b/wp-includes/blocks/post-date.php
index 5c92c46aa6..4e6e9e52ff 100644
--- a/wp-includes/blocks/post-date.php
+++ b/wp-includes/blocks/post-date.php
@@ -81,7 +81,7 @@ function render_block_core_post_date( $attributes, $content, $block ) {
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classes ) ) );
- $time_tag = sprintf( '<time datetime="%1$s">%2$s</time>', $unformatted_date, $formatted_date );
+ $time_tag = sprintf( '<time datetime="%1$s">%2$s</time>', esc_attr( $unformatted_date ), esc_html( $formatted_date ) );
if ( isset( $attributes['isLink'] ) && $attributes['isLink'] && isset( $block->context['postId'] ) ) {
$time_tag = sprintf( '<a href="%1$s">%2$s</a>', esc_url( get_the_permalink( $block->context['postId'] ) ), $time_tag );
diff --git a/wp-includes/blocks/query.php b/wp-includes/blocks/query.php
index 6b544cd99a..73fc9a5092 100644
--- a/wp-includes/blocks/query.php
+++ b/wp-includes/blocks/query.php
@@ -19,7 +19,8 @@
function render_block_core_query( $attributes, $content, $block ) {
$is_interactive = isset( $attributes['enhancedPagination'] )
&& true === $attributes['enhancedPagination']
- && isset( $attributes['queryId'] );
+ && isset( $attributes['queryId'] )
+ && is_scalar( $attributes['queryId'] );
// Enqueue the script module and add the necessary directives if the block is
// interactive.
@@ -88,7 +89,7 @@ function block_core_query_disable_enhanced_pagination( $parsed_block ) {
$block_name = $parsed_block['blockName'];
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block_name );
- $has_enhanced_pagination = isset( $parsed_block['attrs']['enhancedPagination'] ) && true === $parsed_block['attrs']['enhancedPagination'] && isset( $parsed_block['attrs']['queryId'] );
+ $has_enhanced_pagination = isset( $parsed_block['attrs']['enhancedPagination'] ) && true === $parsed_block['attrs']['enhancedPagination'] && isset( $parsed_block['attrs']['queryId'] ) && is_scalar( $parsed_block['attrs']['queryId'] );
/*
* Client side navigation can be true in two states:
* - supports.interactivity = true;
@@ -112,7 +113,7 @@ function block_core_query_disable_enhanced_pagination( $parsed_block ) {
* @return string Returns the modified output of the query block.
*/
$render_query_callback = static function ( $content, $block ) use ( &$enhanced_query_stack, &$dirty_enhanced_queries, &$render_query_callback ) {
- $has_enhanced_pagination = isset( $block['attrs']['enhancedPagination'] ) && true === $block['attrs']['enhancedPagination'] && isset( $block['attrs']['queryId'] );
+ $has_enhanced_pagination = isset( $block['attrs']['enhancedPagination'] ) && true === $block['attrs']['enhancedPagination'] && isset( $block['attrs']['queryId'] ) && is_scalar( $block['attrs']['queryId'] );
if ( ! $has_enhanced_pagination ) {
return $content;
diff --git a/wp-includes/build/constants.php b/wp-includes/build/constants.php
index ce7c3cb722..a2bb2986c9 100644
--- a/wp-includes/build/constants.php
+++ b/wp-includes/build/constants.php
@@ -9,6 +9,6 @@
*/
return array(
- 'version' => '23.7.0',
+ 'version' => '23.8.0',
'build_url' => includes_url( 'build/' ),
);
diff --git a/wp-includes/build/pages/font-library/page-wp-admin.php b/wp-includes/build/pages/font-library/page-wp-admin.php
index 96450e55ce..b21b45fad2 100644
--- a/wp-includes/build/pages/font-library/page-wp-admin.php
+++ b/wp-includes/build/pages/font-library/page-wp-admin.php
@@ -270,23 +270,23 @@ function wp_font_library_wp_admin_render_page() {
#wpwrap {
overflow-y: auto;
}
- body {
+ body.js {
background: #fff;
}
/* Reset wp-admin padding */
- #wpcontent {
+ body.js #wpcontent {
padding-inline-start: 0;
}
- #wpbody-content {
+ body.js #wpbody-content {
padding-bottom: 0;
}
/* Hide legacy admin elements */
- #wpbody-content > div:not(.boot-layout-container):not(#screen-meta) {
+ body.js #wpbody-content > div:not(.boot-layout-container):not(#screen-meta) {
display: none;
}
- #wpfooter {
+ body.js #wpfooter {
display: none;
}
@@ -315,6 +315,15 @@ function wp_font_library_wp_admin_render_page() {
}
}
</style>
+ <div class="wrap hide-if-js">
+ <h1 class="wp-heading-inline"><?php echo esc_html( get_admin_page_title() ); ?></h1>
+ <?php
+ wp_admin_notice(
+ __( 'This screen requires JavaScript. Enable JavaScript in your browser settings and reload the page.' ),
+ array( 'type' => 'error' )
+ );
+ ?>
+ </div>
<div id="font-library-wp-admin-app" class="boot-layout-container"></div>
<?php
}
diff --git a/wp-includes/build/pages/font-library/page.php b/wp-includes/build/pages/font-library/page.php
index 0aaec2d145..d4699ddee3 100644
--- a/wp-includes/build/pages/font-library/page.php
+++ b/wp-includes/build/pages/font-library/page.php
@@ -278,7 +278,25 @@ function wp_font_library_render_page() {
// END see wp-admin/admin-header.php
?>
</head>
- <body class="font-library">
+ <body class="font-library no-js">
+ <?php
+ // BEGIN see wp-admin/admin-header.php
+ ?>
+ <script type="text/javascript">
+ document.body.className = document.body.className.replace( 'no-js', 'js' );
+ </script>
+ <?php
+ // END see wp-admin/admin-header.php
+ ?>
+ <div class="wrap hide-if-js" style="margin: 20px;">
+ <h1 class="wp-heading-inline"><?php echo esc_html( get_admin_page_title() ); ?></h1>
+ <?php
+ wp_admin_notice(
+ __( 'This screen requires JavaScript. Enable JavaScript in your browser settings and reload the page.' ),
+ array( 'type' => 'error' )
+ );
+ ?>
+ </div>
<div id="font-library-app" style="height: 100vh; box-sizing: border-box;"></div>
<?php
// BEGIN see wp-admin/admin-footer.php
diff --git a/wp-includes/build/pages/options-connectors/page-wp-admin.php b/wp-includes/build/pages/options-connectors/page-wp-admin.php
index 49f5cde955..7c23171470 100644
--- a/wp-includes/build/pages/options-connectors/page-wp-admin.php
+++ b/wp-includes/build/pages/options-connectors/page-wp-admin.php
@@ -270,23 +270,23 @@ function wp_options_connectors_wp_admin_render_page() {
#wpwrap {
overflow-y: auto;
}
- body {
+ body.js {
background: #fff;
}
/* Reset wp-admin padding */
- #wpcontent {
+ body.js #wpcontent {
padding-inline-start: 0;
}
- #wpbody-content {
+ body.js #wpbody-content {
padding-bottom: 0;
}
/* Hide legacy admin elements */
- #wpbody-content > div:not(.boot-layout-container):not(#screen-meta) {
+ body.js #wpbody-content > div:not(.boot-layout-container):not(#screen-meta) {
display: none;
}
- #wpfooter {
+ body.js #wpfooter {
display: none;
}
@@ -315,6 +315,15 @@ function wp_options_connectors_wp_admin_render_page() {
}
}
</style>
+ <div class="wrap hide-if-js">
+ <h1 class="wp-heading-inline"><?php echo esc_html( get_admin_page_title() ); ?></h1>
+ <?php
+ wp_admin_notice(
+ __( 'This screen requires JavaScript. Enable JavaScript in your browser settings and reload the page.' ),
+ array( 'type' => 'error' )
+ );
+ ?>
+ </div>
<div id="options-connectors-wp-admin-app" class="boot-layout-container"></div>
<?php
}
diff --git a/wp-includes/build/pages/options-connectors/page.php b/wp-includes/build/pages/options-connectors/page.php
index 7695969c7c..44e86e7133 100644
--- a/wp-includes/build/pages/options-connectors/page.php
+++ b/wp-includes/build/pages/options-connectors/page.php
@@ -278,7 +278,25 @@ function wp_options_connectors_render_page() {
// END see wp-admin/admin-header.php
?>
</head>
- <body class="options-connectors">
+ <body class="options-connectors no-js">
+ <?php
+ // BEGIN see wp-admin/admin-header.php
+ ?>
+ <script type="text/javascript">
+ document.body.className = document.body.className.replace( 'no-js', 'js' );
+ </script>
+ <?php
+ // END see wp-admin/admin-header.php
+ ?>
+ <div class="wrap hide-if-js" style="margin: 20px;">
+ <h1 class="wp-heading-inline"><?php echo esc_html( get_admin_page_title() ); ?></h1>
+ <?php
+ wp_admin_notice(
+ __( 'This screen requires JavaScript. Enable JavaScript in your browser settings and reload the page.' ),
+ array( 'type' => 'error' )
+ );
+ ?>
+ </div>
<div id="options-connectors-app" style="height: 100vh; box-sizing: border-box;"></div>
<?php
// BEGIN see wp-admin/admin-footer.php
diff --git a/wp-includes/build/routes/connectors-home/content.js b/wp-includes/build/routes/connectors-home/content.js
index 186807ef4d..2953112a1b 100644
--- a/wp-includes/build/routes/connectors-home/content.js
+++ b/wp-includes/build/routes/connectors-home/content.js
@@ -72,7 +72,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
}
function useSyncExternalStore$2(subscribe, getSnapshot) {
- didWarnOld18Alpha || void 0 === React52.startTransition || (didWarnOld18Alpha = true, console.error(
+ didWarnOld18Alpha || void 0 === React53.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 = getSnapshot();
@@ -120,8 +120,8 @@ var require_use_sync_external_store_shim_development = __commonJS({
return getSnapshot();
}
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
- var React52 = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is, useState14 = React52.useState, useEffect15 = React52.useEffect, useLayoutEffect3 = React52.useLayoutEffect, useDebugValue2 = React52.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 !== React52.useSyncExternalStore ? React52.useSyncExternalStore : shim;
+ var React53 = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is, useState14 = React53.useState, useEffect15 = React53.useEffect, useLayoutEffect3 = React53.useLayoutEffect, useDebugValue2 = React53.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 !== React53.useSyncExternalStore ? React53.useSyncExternalStore : shim;
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
})();
}
@@ -148,14 +148,14 @@ var require_with_selector_development = __commonJS({
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
}
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
- var React52 = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore2 = shim.useSyncExternalStore, useRef22 = React52.useRef, useEffect15 = React52.useEffect, useMemo16 = React52.useMemo, useDebugValue2 = React52.useDebugValue;
+ var React53 = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore2 = shim.useSyncExternalStore, useRef22 = React53.useRef, useEffect15 = React53.useEffect, useMemo17 = React53.useMemo, useDebugValue2 = React53.useDebugValue;
exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
var instRef = useRef22(null);
if (null === instRef.current) {
var inst = { hasValue: false, value: null };
instRef.current = inst;
} else inst = instRef.current;
- instRef = useMemo16(
+ instRef = useMemo17(
function() {
function memoizedSelector(nextSnapshot) {
if (!hasMemo) {
@@ -1265,7 +1265,7 @@ function getParentNode(node) {
function getNearestOverflowAncestor(node) {
const parentNode = getParentNode(node);
if (isLastTraversableNode(parentNode)) {
- return node.ownerDocument ? node.ownerDocument.body : node.body;
+ return (node.ownerDocument || node).body;
}
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
return parentNode;
@@ -2223,12 +2223,12 @@ function getOppositePlacement(placement) {
return oppositeSideMap[side] + placement.slice(side.length);
}
function expandPaddingObject(padding) {
+ var _padding$top, _padding$right, _padding$bottom, _padding$left;
return {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0,
- ...padding
+ top: (_padding$top = padding.top) != null ? _padding$top : 0,
+ right: (_padding$right = padding.right) != null ? _padding$right : 0,
+ bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
+ left: (_padding$left = padding.left) != null ? _padding$left : 0
};
}
function getPaddingObject(padding) {
@@ -3035,8 +3035,8 @@ function useDismiss(context, props = {}) {
const isScrollableY = lastTraversableNode || scrollRe.test(style.overflowY);
const canScrollX = isScrollableX && target.clientWidth > 0 && target.scrollWidth > target.clientWidth;
const canScrollY = isScrollableY && target.clientHeight > 0 && target.scrollHeight > target.clientHeight;
- const isRTL2 = style.direction === "rtl";
- const pressedVerticalScrollbar = canScrollY && (isRTL2 ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);
+ const isRTL3 = style.direction === "rtl";
+ const pressedVerticalScrollbar = canScrollY && (isRTL3 ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);
const pressedHorizontalScrollbar = canScrollX && event.offsetY > target.clientHeight;
if (pressedVerticalScrollbar || pressedHorizontalScrollbar) {
return;
@@ -3273,13 +3273,9 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
y: reference.y
};
}
- switch (getAlignment(placement)) {
- case "start":
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
- break;
- case "end":
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
- break;
+ const alignment = getAlignment(placement);
+ if (alignment) {
+ coords[alignmentAxis] += commonAlign * (alignment === "end" ? 1 : -1) * (rtl && isVertical ? -1 : 1);
}
return coords;
}
@@ -3319,10 +3315,7 @@ async function detectOverflow(state, options) {
height: rects.floating.height
} : rects.reference;
const offsetParent = await (platform3.getOffsetParent == null ? void 0 : platform3.getOffsetParent(elements.floating));
- const offsetScale = await (platform3.isElement == null ? void 0 : platform3.isElement(offsetParent)) ? await (platform3.getScale == null ? void 0 : platform3.getScale(offsetParent)) || {
- x: 1,
- y: 1
- } : {
+ const offsetScale = await (platform3.isElement == null ? void 0 : platform3.isElement(offsetParent)) && await (platform3.getScale == null ? void 0 : platform3.getScale(offsetParent)) || {
x: 1,
y: 1
};
@@ -3701,23 +3694,16 @@ var shift = function(options) {
y
};
const overflow = await platform3.detectOverflow(state, detectOverflowOptions);
- const crossAxis = getSideAxis(getSide(placement));
+ const crossAxis = getSideAxis(placement);
const mainAxis = getOppositeAxis(crossAxis);
let mainAxisCoord = coords[mainAxis];
let crossAxisCoord = coords[crossAxis];
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === "y" ? "top" : "left"], coord, coord - overflow[axis === "y" ? "bottom" : "right"]);
if (checkMainAxis) {
- const minSide = mainAxis === "y" ? "top" : "left";
- const maxSide = mainAxis === "y" ? "bottom" : "right";
- const min2 = mainAxisCoord + overflow[minSide];
- const max2 = mainAxisCoord - overflow[maxSide];
- mainAxisCoord = clamp(min2, mainAxisCoord, max2);
+ mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
}
if (checkCrossAxis) {
- const minSide = crossAxis === "y" ? "top" : "left";
- const maxSide = crossAxis === "y" ? "bottom" : "right";
- const min2 = crossAxisCoord + overflow[minSide];
- const max2 = crossAxisCoord - overflow[maxSide];
- crossAxisCoord = clamp(min2, crossAxisCoord, max2);
+ crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
}
const limitedCoords = limiter.fn({
...state,
@@ -3745,6 +3731,7 @@ var limitShift = function(options) {
return {
options,
fn(state) {
+ var _rawOffset$mainAxis, _rawOffset$crossAxis;
const {
x,
y,
@@ -3770,9 +3757,8 @@ var limitShift = function(options) {
mainAxis: rawOffset,
crossAxis: 0
} : {
- mainAxis: 0,
- crossAxis: 0,
- ...rawOffset
+ mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
+ crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
};
if (checkMainAxis) {
const len = mainAxis === "y" ? "height" : "width";
@@ -3811,7 +3797,6 @@ var size = function(options) {
name: "size",
options,
async fn(state) {
- var _state$middlewareData, _state$middlewareData2;
const {
placement,
rects,
@@ -3844,24 +3829,21 @@ var size = function(options) {
const maximumClippingWidth = width - overflow.left - overflow.right;
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
- const noShift = !state.middlewareData.shift;
+ const shiftData = state.middlewareData.shift;
+ const noShift = !shiftData;
let availableHeight = overflowAvailableHeight;
let availableWidth = overflowAvailableWidth;
- if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
+ if (shiftData != null && shiftData.enabled.x) {
availableWidth = maximumClippingWidth;
}
- if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
+ if (shiftData != null && shiftData.enabled.y) {
availableHeight = maximumClippingHeight;
}
if (noShift && !alignment) {
- const xMin = max(overflow.left, 0);
- const xMax = max(overflow.right, 0);
- const yMin = max(overflow.top, 0);
- const yMax = max(overflow.bottom, 0);
if (isYAxis) {
- availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
+ availableWidth = width - 2 * max(overflow.left, overflow.right);
} else {
- availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
+ availableHeight = height - 2 * max(overflow.top, overflow.bottom);
}
}
await apply({
@@ -3943,10 +3925,7 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
if (isFixed === void 0) {
isFixed = false;
}
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
- return false;
- }
- return isFixed;
+ return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
}
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
if (includeScale === void 0) {
@@ -3972,12 +3951,12 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
let y = (clientRect.top + visualOffsets.y) / scale.y;
let width = clientRect.width / scale.x;
let height = clientRect.height / scale.y;
- if (domElement) {
+ if (domElement && offsetParent) {
const win = getWindow(domElement);
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
+ const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
let currentWin = win;
let currentIFrame = getFrameElement(currentWin);
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
+ while (currentIFrame && offsetWin !== currentWin) {
const iframeScale = getScale(currentIFrame);
const iframeRect = currentIFrame.getBoundingClientRect();
const css = getComputedStyle2(currentIFrame);
@@ -4036,7 +4015,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
let scale = createCoords(1);
const offsets = createCoords(0);
const isOffsetParentAnElement = isHTMLElement(offsetParent);
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (isOffsetParentAnElement || !isFixed) {
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
scroll = getNodeScroll(offsetParent);
}
@@ -4056,15 +4035,14 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
};
}
function getClientRects(element) {
- return Array.from(element.getClientRects());
+ return element.getClientRects ? Array.from(element.getClientRects()) : [];
}
-function getDocumentRect(element) {
- const html = getDocumentElement(element);
- const scroll = getNodeScroll(element);
- const body = element.ownerDocument.body;
+function getDocumentRect(html) {
+ const scroll = getNodeScroll(html);
+ const body = html.ownerDocument.body;
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
+ let x = -scroll.scrollLeft + getWindowScrollBarX(html);
const y = -scroll.scrollTop;
if (getComputedStyle2(body).direction === "rtl") {
x += max(html.clientWidth, body.clientWidth) - width;
@@ -4077,7 +4055,11 @@ function getDocumentRect(element) {
};
}
var SCROLLBAR_MAX = 25;
-function getViewportRect(element, strategy) {
+function getViewportRect(element, strategy, rootBoundary) {
+ if (rootBoundary === void 0) {
+ rootBoundary = "viewport";
+ }
+ const isLayoutViewport = rootBoundary === "layoutViewport";
const win = getWindow(element);
const html = getDocumentElement(element);
const visualViewport = win.visualViewport;
@@ -4086,12 +4068,19 @@ function getViewportRect(element, strategy) {
let x = 0;
let y = 0;
if (visualViewport) {
- width = visualViewport.width;
- height = visualViewport.height;
- const visualViewportBased = isWebKit();
- if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
- x = visualViewport.offsetLeft;
- y = visualViewport.offsetTop;
+ const layoutRelativeClientCoords = !isWebKit() || strategy === "fixed";
+ if (isLayoutViewport) {
+ if (!layoutRelativeClientCoords) {
+ x = -visualViewport.offsetLeft;
+ y = -visualViewport.offsetTop;
+ }
+ } else {
+ width = visualViewport.width;
+ height = visualViewport.height;
+ if (layoutRelativeClientCoords) {
+ x = visualViewport.offsetLeft;
+ y = visualViewport.offsetTop;
+ }
}
}
const windowScrollbarX = getWindowScrollBarX(html);
@@ -4100,12 +4089,11 @@ function getViewportRect(element, strategy) {
const body = doc.body;
const bodyStyles = getComputedStyle(body);
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
- const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
- if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
- width -= clippingStableScrollbarWidth;
+ const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
+ const gutter = getComputedStyle(html).scrollbarGutter === "stable both-edges" ? reservedWidth / 2 : reservedWidth;
+ if (gutter <= SCROLLBAR_MAX) {
+ width -= gutter;
}
- } else if (windowScrollbarX <= SCROLLBAR_MAX) {
- width += windowScrollbarX;
}
return {
width,
@@ -4118,7 +4106,7 @@ function getInnerBoundingClientRect(element, strategy) {
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
const top = clientRect.top + element.clientTop;
const left = clientRect.left + element.clientLeft;
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
+ const scale = getScale(element);
const width = element.clientWidth * scale.x;
const height = element.clientHeight * scale.y;
const x = left * scale.x;
@@ -4132,8 +4120,8 @@ function getInnerBoundingClientRect(element, strategy) {
}
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
let rect;
- if (clippingAncestor === "viewport") {
- rect = getViewportRect(element, strategy);
+ if (clippingAncestor === "viewport" || clippingAncestor === "layoutViewport") {
+ rect = getViewportRect(element, strategy, clippingAncestor);
} else if (clippingAncestor === "document") {
rect = getDocumentRect(getDocumentElement(element));
} else if (isElement(clippingAncestor)) {
@@ -4149,33 +4137,24 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
}
return rectToClientRect(rect);
}
-function hasFixedPositionAncestor(element, stopNode) {
- const parentNode = getParentNode(element);
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
- return false;
- }
- return getComputedStyle2(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
-}
function getClippingElementAncestors(element, cache) {
const cachedResult = cache.get(element);
if (cachedResult) {
return cachedResult;
}
let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
- let currentContainingBlockComputedStyle = null;
+ let lastKeptComputedStyle = null;
const elementIsFixed = getComputedStyle2(element).position === "fixed";
let currentNode = elementIsFixed ? getParentNode(element) : element;
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
const computedStyle = getComputedStyle2(currentNode);
const currentNodeIsContaining = isContainingBlock(currentNode);
- if (!currentNodeIsContaining && computedStyle.position === "fixed") {
- currentContainingBlockComputedStyle = null;
- }
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
+ const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? "fixed" : "";
+ const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === "fixed" || lastPosition === "absolute" && computedStyle.position === "static");
if (shouldDropCurrentNode) {
result = result.filter((ancestor) => ancestor !== currentNode);
} else {
- currentContainingBlockComputedStyle = computedStyle;
+ lastKeptComputedStyle = computedStyle;
}
currentNode = getParentNode(currentNode);
}
@@ -4230,10 +4209,7 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
scrollTop: 0
};
const offsets = createCoords(0);
- function setLeftRTLScrollbarOffset() {
- offsets.x = getWindowScrollBarX(documentElement);
- }
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (isOffsetParentAnElement || !isFixed) {
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
scroll = getNodeScroll(offsetParent);
}
@@ -4241,12 +4217,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
offsets.x = offsetRect.x + offsetParent.clientLeft;
offsets.y = offsetRect.y + offsetParent.clientTop;
- } else if (documentElement) {
- setLeftRTLScrollbarOffset();
}
}
- if (isFixed && !isOffsetParentAnElement && documentElement) {
- setLeftRTLScrollbarOffset();
+ if (!isOffsetParentAnElement && documentElement) {
+ offsets.x = getWindowScrollBarX(documentElement);
}
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
@@ -4330,7 +4304,7 @@ var platform2 = {
function rectsAreEqual(a, b) {
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
}
-function observeMove(element, onMove) {
+function observeMove(element, onMove, ancestorResize) {
let io = null;
let timeoutId;
const root = getDocumentElement(element);
@@ -4373,6 +4347,9 @@ function observeMove(element, onMove) {
let isFirstUpdate = true;
function handleObserve(entries) {
const ratio = entries[0].intersectionRatio;
+ if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
+ return refresh();
+ }
if (ratio !== threshold) {
if (!isFirstUpdate) {
return refresh();
@@ -4385,9 +4362,6 @@ function observeMove(element, onMove) {
refresh(false, ratio);
}
}
- if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
- refresh();
- }
isFirstUpdate = false;
}
try {
@@ -4401,8 +4375,14 @@ function observeMove(element, onMove) {
}
io.observe(element);
}
+ const win = getWindow(element);
+ const handleResize = () => refresh(ancestorResize);
+ win.addEventListener("resize", handleResize);
refresh(true);
- return cleanup;
+ return () => {
+ win.removeEventListener("resize", handleResize);
+ cleanup();
+ };
}
function autoUpdate(reference, floating, update2, options) {
if (options === void 0) {
@@ -4418,12 +4398,10 @@ function autoUpdate(reference, floating, update2, options) {
const referenceEl = unwrapElement(reference);
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
ancestors.forEach((ancestor) => {
- ancestorScroll && ancestor.addEventListener("scroll", update2, {
- passive: true
- });
+ ancestorScroll && ancestor.addEventListener("scroll", update2);
ancestorResize && ancestor.addEventListener("resize", update2);
});
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2) : null;
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2, ancestorResize) : null;
let reobserveFrame = -1;
let resizeObserver = null;
if (elementResize) {
@@ -4482,11 +4460,9 @@ var hide2 = hide;
var limitShift2 = limitShift;
var computePosition2 = (reference, floating, options) => {
const cache = /* @__PURE__ */ new Map();
- const mergedOptions = {
- platform: platform2,
- ...options
- };
+ const mergedOptions = options != null ? options : {};
const platformWithCache = {
+ ...platform2,
...mergedOptions.platform,
_c: cache
};
@@ -7448,7 +7424,7 @@ var Button = /* @__PURE__ */ React34.forwardRef(function Button2(componentProps,
if (true) Button.displayName = "Button";
// node_modules/@base-ui/react/utils/usePopupViewport.mjs
-var React37 = __toESM(require_react(), 1);
+var React38 = __toESM(require_react(), 1);
var ReactDOM6 = __toESM(require_react_dom(), 1);
// node_modules/@base-ui/utils/usePreviousValue.mjs
@@ -7619,8 +7595,25 @@ function setPositionerCssSize(positionerElement, size4) {
positionerElement.style.setProperty("--positioner-height", height);
}
-// node_modules/@base-ui/react/utils/usePopupViewport.mjs
+// node_modules/@base-ui/react/direction-provider/DirectionProvider.mjs
+var React37 = __toESM(require_react(), 1);
var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
+var DirectionProvider = function DirectionProvider2(props) {
+ const {
+ direction = "ltr"
+ } = props;
+ const contextValue = React37.useMemo(() => ({
+ direction
+ }), [direction]);
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DirectionContext.Provider, {
+ value: contextValue,
+ children: props.children
+ });
+};
+if (true) DirectionProvider.displayName = "DirectionProvider";
+
+// node_modules/@base-ui/react/utils/usePopupViewport.mjs
+var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
function usePopupViewport(parameters) {
const {
store: store2,
@@ -7638,15 +7631,15 @@ function usePopupViewport(parameters) {
const positionerElement = store2.useState("positionerElement");
const previousActiveTrigger = usePreviousValue(open ? activeTrigger : null);
const currentContentKey = usePopupContentKey(activeTriggerId, payload);
- const capturedNodeRef = React37.useRef(null);
- const [previousContentNode, setPreviousContentNode] = React37.useState(null);
- const [newTriggerOffset, setNewTriggerOffset] = React37.useState(null);
- const currentContainerRef = React37.useRef(null);
- const previousContainerRef = React37.useRef(null);
+ const capturedNodeRef = React38.useRef(null);
+ const [previousContentNode, setPreviousContentNode] = React38.useState(null);
+ const [newTriggerOffset, setNewTriggerOffset] = React38.useState(null);
+ const currentContainerRef = React38.useRef(null);
+ const previousContainerRef = React38.useRef(null);
const onAnimationsFinished = useAnimationsFinished(currentContainerRef, true, false);
const cleanupFrame = useAnimationFrame();
- const [previousContentDimensions, setPreviousContentDimensions] = React37.useState(null);
- const [showStartingStyleAttribute, setShowStartingStyleAttribute] = React37.useState(false);
+ const [previousContentDimensions, setPreviousContentDimensions] = React38.useState(null);
+ const [showStartingStyleAttribute, setShowStartingStyleAttribute] = React38.useState(false);
useIsoLayoutEffect(() => {
store2.set("hasViewport", true);
return () => {
@@ -7666,7 +7659,7 @@ function usePopupViewport(parameters) {
setPreviousContentDimensions(previousDimensions);
}
});
- const lastHandledTriggerRef = React37.useRef(null);
+ const lastHandledTriggerRef = React38.useRef(null);
useIsoLayoutEffect(() => {
if (!open || !mounted) {
lastHandledTriggerRef.current = null;
@@ -7705,14 +7698,14 @@ function usePopupViewport(parameters) {
const isTransitioning = previousContentNode != null;
let childrenToRender;
if (!isTransitioning) {
- childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
+ childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
"data-current": true,
ref: currentContainerRef,
children
}, currentContentKey);
} else {
- childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(React37.Fragment, {
- children: [/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
+ childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(React38.Fragment, {
+ children: [/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
"data-previous": true,
inert: inertValue(true),
ref: previousContainerRef,
@@ -7724,7 +7717,7 @@ function usePopupViewport(parameters) {
position: "absolute"
},
"data-ending-style": showStartingStyleAttribute ? void 0 : ""
- }, "previous"), /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
+ }, "previous"), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
"data-current": true,
ref: currentContainerRef,
"data-starting-style": showStartingStyleAttribute ? "" : void 0,
@@ -7790,10 +7783,10 @@ function calculateRelativePosition(from, to) {
};
}
function usePopupContentKey(activeTriggerId, payload) {
- const [contentKey, setContentKey] = React37.useState(0);
- const previousActiveTriggerIdRef = React37.useRef(activeTriggerId);
- const previousPayloadRef = React37.useRef(payload);
- const pendingPayloadUpdateRef = React37.useRef(false);
+ const [contentKey, setContentKey] = React38.useState(0);
+ const previousActiveTriggerIdRef = React38.useRef(activeTriggerId);
+ const previousPayloadRef = React38.useRef(payload);
+ const pendingPayloadUpdateRef = React38.useRef(false);
useIsoLayoutEffect(() => {
const previousActiveTriggerId = previousActiveTriggerIdRef.current;
const previousPayload = previousPayloadRef.current;
@@ -7813,10 +7806,10 @@ function usePopupContentKey(activeTriggerId, payload) {
}
// node_modules/@base-ui/react/utils/FloatingPortalLite.mjs
-var React38 = __toESM(require_react(), 1);
+var React39 = __toESM(require_react(), 1);
var ReactDOM7 = __toESM(require_react_dom(), 1);
-var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
-var FloatingPortalLite = /* @__PURE__ */ React38.forwardRef(function FloatingPortalLite2(componentProps, forwardedRef) {
+var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
+var FloatingPortalLite = /* @__PURE__ */ React39.forwardRef(function FloatingPortalLite2(componentProps, forwardedRef) {
const {
children,
container,
@@ -7837,7 +7830,7 @@ var FloatingPortalLite = /* @__PURE__ */ React38.forwardRef(function FloatingPor
if (!portalSubtree && !portalNode) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(React38.Fragment, {
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(React39.Fragment, {
children: [portalSubtree, portalNode && /* @__PURE__ */ ReactDOM7.createPortal(children, portalNode)]
});
});
@@ -7859,14 +7852,14 @@ __export(index_parts_exports, {
});
// node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs
-var React41 = __toESM(require_react(), 1);
+var React42 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/root/TooltipRootContext.mjs
-var React39 = __toESM(require_react(), 1);
-var TooltipRootContext = /* @__PURE__ */ React39.createContext(void 0);
+var React40 = __toESM(require_react(), 1);
+var TooltipRootContext = /* @__PURE__ */ React40.createContext(void 0);
if (true) TooltipRootContext.displayName = "TooltipRootContext";
function useTooltipRootContext(optional) {
- const context = React39.useContext(TooltipRootContext);
+ const context = React40.useContext(TooltipRootContext);
if (context === void 0 && !optional) {
throw new Error(true ? "Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>." : formatErrorMessage_default(72));
}
@@ -7874,7 +7867,7 @@ function useTooltipRootContext(optional) {
}
// node_modules/@base-ui/react/tooltip/store/TooltipStore.mjs
-var React40 = __toESM(require_react(), 1);
+var React41 = __toESM(require_react(), 1);
var selectors2 = {
...popupStoreSelectors,
disabled: createSelector((state) => state.disabled),
@@ -7896,7 +7889,7 @@ var TooltipStore = class _TooltipStore extends ReactStore {
};
state.floatingRootContext = createPopupFloatingRootContext(triggerElements, floatingId, nested);
super(state, {
- popupRef: /* @__PURE__ */ React40.createRef(),
+ popupRef: /* @__PURE__ */ React41.createRef(),
onOpenChange: void 0,
onOpenChangeComplete: void 0,
triggerElements
@@ -7934,7 +7927,7 @@ function createInitialState() {
}
// node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs
-var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
var TooltipRoot = fastComponent(function TooltipRoot2(props) {
const {
disabled: disabled2 = false,
@@ -7981,7 +7974,7 @@ var TooltipRoot = fastComponent(function TooltipRoot2(props) {
const isInstantPhase = store2.useState("isInstantPhase");
const instantType = store2.useState("instantType");
const lastOpenChangeReason = store2.useState("lastOpenChangeReason");
- const previousInstantTypeRef = React41.useRef(null);
+ const previousInstantTypeRef = React42.useRef(null);
useIsoLayoutEffect(() => {
if (openState && disabled2) {
store2.setOpen(false, createChangeEventDetails(reason_parts_exports.disabled));
@@ -8005,17 +7998,17 @@ var TooltipRoot = fastComponent(function TooltipRoot2(props) {
}
}
}, [store2, activeTriggerId, open]);
- const handleImperativeClose = React41.useCallback(() => {
+ const handleImperativeClose = React42.useCallback(() => {
store2.setOpen(false, createChangeEventDetails(reason_parts_exports.imperativeAction));
}, [store2]);
- React41.useImperativeHandle(actionsRef, () => ({
+ React42.useImperativeHandle(actionsRef, () => ({
unmount: forceUnmount,
close: handleImperativeClose
}), [forceUnmount, handleImperativeClose]);
const shouldRenderInteractions = open || mounted || !disabled2 && trackCursorAxis !== "none";
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(TooltipRootContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(TooltipRootContext.Provider, {
value: store2,
- children: [shouldRenderInteractions && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TooltipInteractions, {
+ children: [shouldRenderInteractions && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipInteractions, {
store: store2,
disabled: disabled2,
trackCursorAxis
@@ -8039,9 +8032,9 @@ function TooltipInteractions({
enabled: !disabled2 && trackCursorAxis !== "none",
axis: trackCursorAxis === "none" ? void 0 : trackCursorAxis
});
- const activeTriggerProps = React41.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);
- const inactiveTriggerProps = React41.useMemo(() => mergeProps(clientPoint.trigger, dismiss.trigger), [clientPoint.trigger, dismiss.trigger]);
- const popupProps = React41.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, clientPoint.floating, dismiss.floating), [clientPoint.floating, dismiss.floating]);
+ const activeTriggerProps = React42.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);
+ const inactiveTriggerProps = React42.useMemo(() => mergeProps(clientPoint.trigger, dismiss.trigger), [clientPoint.trigger, dismiss.trigger]);
+ const popupProps = React42.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, clientPoint.floating, dismiss.floating), [clientPoint.floating, dismiss.floating]);
usePopupInteractionProps(store2, {
activeTriggerProps,
inactiveTriggerProps,
@@ -8051,14 +8044,14 @@ function TooltipInteractions({
}
// node_modules/@base-ui/react/tooltip/trigger/TooltipTrigger.mjs
-var React43 = __toESM(require_react(), 1);
+var React44 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/provider/TooltipProviderContext.mjs
-var React42 = __toESM(require_react(), 1);
-var TooltipProviderContext = /* @__PURE__ */ React42.createContext(void 0);
+var React43 = __toESM(require_react(), 1);
+var TooltipProviderContext = /* @__PURE__ */ React43.createContext(void 0);
if (true) TooltipProviderContext.displayName = "TooltipProviderContext";
function useTooltipProviderContext() {
- return React42.useContext(TooltipProviderContext);
+ return React43.useContext(TooltipProviderContext);
}
// node_modules/@base-ui/react/tooltip/trigger/TooltipTriggerDataAttributes.mjs
@@ -8128,7 +8121,7 @@ var TooltipTrigger = fastComponentRef(function TooltipTrigger2(componentProps, f
const isTriggerActive = store2.useState("isTriggerActive", thisTriggerId);
const isOpenedByThisTrigger = store2.useState("isOpenedByTrigger", thisTriggerId);
const floatingRootContext = store2.useState("floatingRootContext");
- const triggerElementRef = React43.useRef(null);
+ const triggerElementRef = React44.useRef(null);
const delayWithDefault = delay ?? OPEN_DELAY;
const closeDelayWithDefault = closeDelay ?? 0;
const {
@@ -8154,9 +8147,9 @@ var TooltipTrigger = fastComponentRef(function TooltipTrigger2(componentProps, f
const disabledRef = useValueAsRef(disabled2);
const trackCursorAxis = store2.useState("trackCursorAxis");
const disableHoverablePopup = store2.useState("disableHoverablePopup");
- const isNestedTriggerHoveredRef = React43.useRef(false);
+ const isNestedTriggerHoveredRef = React44.useRef(false);
const nestedTriggerOpenTimeout = useTimeout();
- const pointerTypeRef = React43.useRef(void 0);
+ const pointerTypeRef = React44.useRef(void 0);
function getOpenDelay() {
const providerDelay = providerContext?.delay;
const groupOpenValue = typeof delayRef.current === "object" ? delayRef.current.open : void 0;
@@ -8289,14 +8282,14 @@ var TooltipTrigger = fastComponentRef(function TooltipTrigger2(componentProps, f
if (true) TooltipTrigger.displayName = "TooltipTrigger";
// node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
-var React45 = __toESM(require_react(), 1);
+var React46 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/portal/TooltipPortalContext.mjs
-var React44 = __toESM(require_react(), 1);
-var TooltipPortalContext = /* @__PURE__ */ React44.createContext(void 0);
+var React45 = __toESM(require_react(), 1);
+var TooltipPortalContext = /* @__PURE__ */ React45.createContext(void 0);
if (true) TooltipPortalContext.displayName = "TooltipPortalContext";
function useTooltipPortalContext() {
- const value = React44.useContext(TooltipPortalContext);
+ const value = React45.useContext(TooltipPortalContext);
if (value === void 0) {
throw new Error(true ? "Base UI: <Tooltip.Portal> is missing." : formatErrorMessage_default(70));
}
@@ -8304,8 +8297,8 @@ function useTooltipPortalContext() {
}
// node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
-var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
-var TooltipPortal = /* @__PURE__ */ React45.forwardRef(function TooltipPortal2(props, forwardedRef) {
+var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
+var TooltipPortal = /* @__PURE__ */ React46.forwardRef(function TooltipPortal2(props, forwardedRef) {
const {
keepMounted = false,
...portalProps
@@ -8316,9 +8309,9 @@ var TooltipPortal = /* @__PURE__ */ React45.forwardRef(function TooltipPortal2(p
if (!shouldRender) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipPortalContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TooltipPortalContext.Provider, {
value: keepMounted,
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FloatingPortalLite, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(FloatingPortalLite, {
ref: forwardedRef,
...portalProps
})
@@ -8327,14 +8320,14 @@ var TooltipPortal = /* @__PURE__ */ React45.forwardRef(function TooltipPortal2(p
if (true) TooltipPortal.displayName = "TooltipPortal";
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
-var React47 = __toESM(require_react(), 1);
+var React48 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositionerContext.mjs
-var React46 = __toESM(require_react(), 1);
-var TooltipPositionerContext = /* @__PURE__ */ React46.createContext(void 0);
+var React47 = __toESM(require_react(), 1);
+var TooltipPositionerContext = /* @__PURE__ */ React47.createContext(void 0);
if (true) TooltipPositionerContext.displayName = "TooltipPositionerContext";
function useTooltipPositionerContext() {
- const context = React46.useContext(TooltipPositionerContext);
+ const context = React47.useContext(TooltipPositionerContext);
if (context === void 0) {
throw new Error(true ? "Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>." : formatErrorMessage_default(71));
}
@@ -8342,8 +8335,8 @@ function useTooltipPositionerContext() {
}
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
-var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
-var TooltipPositioner = /* @__PURE__ */ React47.forwardRef(function TooltipPositioner2(componentProps, forwardedRef) {
+var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
+var TooltipPositioner = /* @__PURE__ */ React48.forwardRef(function TooltipPositioner2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8390,7 +8383,7 @@ var TooltipPositioner = /* @__PURE__ */ React47.forwardRef(function TooltipPosit
collisionAvoidance,
adaptiveOrigin: hasViewport ? adaptiveOrigin : void 0
});
- const state = React47.useMemo(() => ({
+ const state = React48.useMemo(() => ({
open,
side: positioning.side,
align: positioning.align,
@@ -8405,7 +8398,7 @@ var TooltipPositioner = /* @__PURE__ */ React47.forwardRef(function TooltipPosit
hidden: !mounted,
inert: !open || trackCursorAxis === "both" || disableHoverablePopup
});
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TooltipPositionerContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TooltipPositionerContext.Provider, {
value: positioning,
children: element
});
@@ -8413,12 +8406,12 @@ var TooltipPositioner = /* @__PURE__ */ React47.forwardRef(function TooltipPosit
if (true) TooltipPositioner.displayName = "TooltipPositioner";
// node_modules/@base-ui/react/tooltip/popup/TooltipPopup.mjs
-var React48 = __toESM(require_react(), 1);
+var React49 = __toESM(require_react(), 1);
var stateAttributesMapping = {
...popupStateMapping,
...transitionStatusMapping
};
-var TooltipPopup = /* @__PURE__ */ React48.forwardRef(function TooltipPopup2(componentProps, forwardedRef) {
+var TooltipPopup = /* @__PURE__ */ React49.forwardRef(function TooltipPopup2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8469,8 +8462,8 @@ var TooltipPopup = /* @__PURE__ */ React48.forwardRef(function TooltipPopup2(com
if (true) TooltipPopup.displayName = "TooltipPopup";
// node_modules/@base-ui/react/tooltip/arrow/TooltipArrow.mjs
-var React49 = __toESM(require_react(), 1);
-var TooltipArrow = /* @__PURE__ */ React49.forwardRef(function TooltipArrow2(componentProps, forwardedRef) {
+var React50 = __toESM(require_react(), 1);
+var TooltipArrow = /* @__PURE__ */ React50.forwardRef(function TooltipArrow2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8508,25 +8501,25 @@ var TooltipArrow = /* @__PURE__ */ React49.forwardRef(function TooltipArrow2(com
if (true) TooltipArrow.displayName = "TooltipArrow";
// node_modules/@base-ui/react/tooltip/provider/TooltipProvider.mjs
-var React50 = __toESM(require_react(), 1);
-var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
+var React51 = __toESM(require_react(), 1);
+var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
var TooltipProvider = function TooltipProvider2(props) {
const {
delay,
closeDelay,
timeout = 400
} = props;
- const contextValue = React50.useMemo(() => ({
+ const contextValue = React51.useMemo(() => ({
delay,
closeDelay
}), [delay, closeDelay]);
- const delayValue = React50.useMemo(() => ({
+ const delayValue = React51.useMemo(() => ({
open: delay,
close: closeDelay
}), [delay, closeDelay]);
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TooltipProviderContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TooltipProviderContext.Provider, {
value: contextValue,
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FloatingDelayGroup, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(FloatingDelayGroup, {
delay: delayValue,
timeoutMs: timeout,
children: props.children
@@ -8536,7 +8529,7 @@ var TooltipProvider = function TooltipProvider2(props) {
if (true) TooltipProvider.displayName = "TooltipProvider";
// node_modules/@base-ui/react/tooltip/viewport/TooltipViewport.mjs
-var React51 = __toESM(require_react(), 1);
+var React52 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/viewport/TooltipViewportCssVars.mjs
var TooltipViewportCssVars = /* @__PURE__ */ (function(TooltipViewportCssVars2) {
@@ -8551,7 +8544,7 @@ var stateAttributesMapping2 = {
"data-activation-direction": value
} : null
};
-var TooltipViewport = /* @__PURE__ */ React51.forwardRef(function TooltipViewport2(componentProps, forwardedRef) {
+var TooltipViewport = /* @__PURE__ */ React52.forwardRef(function TooltipViewport2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8742,7 +8735,7 @@ var Text = (0, import_element10.forwardRef)(function Text2({ variant = "body-md"
});
// packages/ui/build-module/badge/badge.mjs
-var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE2 = "data-wp-hash";
function getRuntime2() {
const globalScope = globalThis;
@@ -8828,7 +8821,7 @@ if (typeof process === "undefined" || true) {
}
var style_default2 = { "badge": "_96e6251aad1a6136__badge", "is-high-intent": "_99f7158cb520f750__is-high-intent", "is-medium-intent": "c20ebef2365bc8b7__is-medium-intent", "is-low-intent": "_365e1626c6202e52__is-low-intent", "is-stable-intent": "_33f8198127ddf4ef__is-stable-intent", "is-informational-intent": "_04c1aca8fc449412__is-informational-intent", "is-draft-intent": "_90726e69d495ec19__is-draft-intent", "is-none-intent": "_898f4a544993bd39__is-none-intent" };
var Badge = (0, import_element11.forwardRef)(function Badge2({ intent = "none", className, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
Text,
{
ref,
@@ -8846,7 +8839,7 @@ var Badge = (0, import_element11.forwardRef)(function Badge2({ intent = "none",
// packages/ui/build-module/button/button.mjs
var import_element12 = __toESM(require_element(), 1);
var import_i18n = __toESM(require_i18n(), 1);
-var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
import { speak } from "@wordpress/a11y";
var STYLE_HASH_ATTRIBUTE3 = "data-wp-hash";
function getRuntime3() {
@@ -8937,9 +8930,9 @@ if (typeof process === "undefined" || true) {
}
var resets_default = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
if (typeof process === "undefined" || true) {
- registerStyle3("5f8e7aa0bc", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
+ registerStyle3("2ffedd8246", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
}
-var focus_default = { "outset-ring--focus": "_08e8a2e44959f892__outset-ring--focus", "outset-ring--focus-except-active": "e25b2bdd7aa21721__outset-ring--focus-except-active", "outset-ring--focus-visible": "d0541bc9dd9dc7b6__outset-ring--focus-visible", "outset-ring--focus-within": "cd83dfc2126a0846__outset-ring--focus-within", "outset-ring--focus-within-except-active": "_970d04df7376df67__outset-ring--focus-within-except-active", "outset-ring--focus-within-visible": "c5cb3ee4bddaa8e4__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "ecadb9e080e2dfa5__outset-ring--focus-parent-visible" };
+var focus_module_default = { "outset-ring--focus": "af79fb116edb0dd7__outset-ring--focus", "outset-ring--focus-visible": "dfcfdc28396e5d98__outset-ring--focus-visible", "outset-ring--focus-within": "e5cd9ee879f6403a__outset-ring--focus-within", "outset-ring--focus-within-visible": "_64de9947bf305b7a__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "_81935a08e952f267__outset-ring--focus-parent-visible", "outset-ring--focus-except-active": "abc777e9713fa711__outset-ring--focus-except-active", "outset-ring--focus-within-except-active": "_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active" };
if (typeof process === "undefined" || true) {
registerStyle3("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
}
@@ -8960,7 +8953,7 @@ var Button3 = (0, import_element12.forwardRef)(
const mergedClassName = clsx_default(
global_css_defense_default2.button,
resets_default["box-sizing"],
- focus_default["outset-ring--focus-except-active"],
+ focus_module_default["outset-ring--focus-except-active"],
variant !== "unstyled" && style_default3.button,
style_default3[`is-${tone}`],
style_default3[`is-${variant}`],
@@ -8973,7 +8966,7 @@ var Button3 = (0, import_element12.forwardRef)(
speak(loadingAnnouncement);
}
}, [loading, loadingAnnouncement]);
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
Button,
{
ref,
@@ -8993,9 +8986,9 @@ var import_element14 = __toESM(require_element(), 1);
// packages/ui/build-module/icon/icon.mjs
var import_element13 = __toESM(require_element(), 1);
var import_primitives = __toESM(require_primitives(), 1);
-var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
var Icon = (0, import_element13.forwardRef)(function Icon2({ icon, size: size4 = 24, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
import_primitives.SVG,
{
ref,
@@ -9008,7 +9001,7 @@ var Icon = (0, import_element13.forwardRef)(function Icon2({ icon, size: size4 =
});
// packages/ui/build-module/button/icon.mjs
-var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE4 = "data-wp-hash";
function getRuntime4() {
const globalScope = globalThis;
@@ -9095,7 +9088,7 @@ if (typeof process === "undefined" || true) {
var style_default4 = { "button": "_97b0fc33c028be1a__button", "is-unstyled": "abbb272e2ce49bd6__is-unstyled", "is-loading": "_914b42f315c0e580__is-loading", "is-small": "_908205475f9f2a92__is-small", "icon": "_9f6fc6553aeb36fe__icon", "is-brand": "dd460c965226cc77__is-brand", "is-outline": "_62d5a778b7b258ee__is-outline", "is-minimal": "ad0619a3217c6a5b__is-minimal", "is-neutral": "e722a8f96726aa99__is-neutral", "is-solid": "b50b3358c5fb4d0b__is-solid", "is-compact": "cf59cf1b69629838__is-compact", "loading-animation": "_5a1d53da6f830c8d__loading-animation" };
var ButtonIcon = (0, import_element14.forwardRef)(
function ButtonIcon2({ className, icon, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
Icon,
{
ref,
@@ -9120,28 +9113,28 @@ var Button4 = Object.assign(Button3, {
// packages/icons/build-module/library/caution.mjs
var import_primitives2 = __toESM(require_primitives(), 1);
-var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
-var caution_default = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_primitives2.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z" }) });
+var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
+var caution_default = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives2.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z" }) });
// packages/icons/build-module/library/close-small.mjs
var import_primitives3 = __toESM(require_primitives(), 1);
-var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
-var close_small_default = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives3.Path, { d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z" }) });
+var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
+var close_small_default = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_primitives3.Path, { d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z" }) });
// packages/icons/build-module/library/error.mjs
var import_primitives4 = __toESM(require_primitives(), 1);
-var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
-var error_default = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_primitives4.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z" }) });
+var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
+var error_default = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_primitives4.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z" }) });
// packages/icons/build-module/library/info.mjs
var import_primitives5 = __toESM(require_primitives(), 1);
-var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
-var info_default = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_primitives5.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_primitives5.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z" }) });
+var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
+var info_default = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_primitives5.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_primitives5.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z" }) });
// packages/icons/build-module/library/published.mjs
var import_primitives6 = __toESM(require_primitives(), 1);
-var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
-var published_default = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_primitives6.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_primitives6.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z" }) });
+var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
+var published_default = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_primitives6.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_primitives6.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z" }) });
// packages/ui/build-module/utils/render-slot-with-children.mjs
var import_element15 = __toESM(require_element(), 1);
@@ -9288,7 +9281,7 @@ var Stack = (0, import_element16.forwardRef)(function Stack2({ direction, gap, a
});
// packages/ui/build-module/icon-button/icon-button.mjs
-var import_element21 = __toESM(require_element(), 1);
+var import_element23 = __toESM(require_element(), 1);
// packages/ui/build-module/tooltip/popup.mjs
var import_element19 = __toESM(require_element(), 1);
@@ -9437,10 +9430,10 @@ function getWpCompatOverlaySlot() {
}
// packages/ui/build-module/tooltip/portal.mjs
-var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
var Portal = (0, import_element17.forwardRef)(
function TooltipPortal3({ container, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
index_parts_exports.Portal,
{
container: container ?? getWpCompatOverlaySlot(),
@@ -9453,7 +9446,7 @@ var Portal = (0, import_element17.forwardRef)(
// packages/ui/build-module/tooltip/positioner.mjs
var import_element18 = __toESM(require_element(), 1);
-var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE7 = "data-wp-hash";
function getRuntime7() {
const globalScope = globalThis;
@@ -9544,7 +9537,7 @@ if (typeof process === "undefined" || true) {
var style_default6 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
var Positioner = (0, import_element18.forwardRef)(
function TooltipPositioner3({ align = "center", className, side = "top", sideOffset = 4, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
index_parts_exports.Positioner,
{
ref,
@@ -9563,7 +9556,7 @@ var Positioner = (0, import_element18.forwardRef)(
);
// packages/ui/build-module/tooltip/popup.mjs
-var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE8 = "data-wp-hash";
function getRuntime8() {
const globalScope = globalThis;
@@ -9650,7 +9643,7 @@ if (typeof process === "undefined" || true) {
var style_default7 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
var POPUP_COLOR = { background: "#1e1e1e" };
var Popup = (0, import_element19.forwardRef)(function TooltipPopup3({ portal, positioner, children, className, ...props }, ref) {
- const popupContent = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ThemeProvider, { color: POPUP_COLOR, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
+ const popupContent = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ThemeProvider, { color: POPUP_COLOR, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
index_parts_exports.Popup,
{
ref,
@@ -9661,29 +9654,40 @@ var Popup = (0, import_element19.forwardRef)(function TooltipPopup3({ portal, po
) });
const positionedPopup = renderSlotWithChildren(
positioner,
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Positioner, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Positioner, {}),
popupContent
);
- return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Portal, {}), positionedPopup);
+ return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Portal, {}), positionedPopup);
});
// packages/ui/build-module/tooltip/trigger.mjs
var import_element20 = __toESM(require_element(), 1);
-var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
var Trigger = (0, import_element20.forwardRef)(
function TooltipTrigger3(props, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(index_parts_exports.Trigger, { ref, ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(index_parts_exports.Trigger, { ref, ...props });
}
);
+// packages/ui/build-module/utils/direction-provider.mjs
+var import_i18n2 = __toESM(require_i18n(), 1);
+var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
+function DirectionProvider3({ children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DirectionProvider, { direction: (0, import_i18n2.isRTL)() ? "rtl" : "ltr", children });
+}
+
// packages/ui/build-module/tooltip/root.mjs
-var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
function Root(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(index_parts_exports.Root, { ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DirectionProvider3, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(index_parts_exports.Root, { ...props }) });
}
-// packages/ui/build-module/icon-button/icon-button.mjs
-var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
+// packages/ui/build-module/utils/keyboard-shortcut.mjs
+var import_element22 = __toESM(require_element(), 1);
+var import_i18n3 = __toESM(require_i18n(), 1);
+
+// packages/ui/build-module/visually-hidden/visually-hidden.mjs
+var import_element21 = __toESM(require_element(), 1);
var STYLE_HASH_ATTRIBUTE9 = "data-wp-hash";
function getRuntime9() {
const globalScope = globalThis;
@@ -9765,60 +9769,72 @@ function registerStyle9(hash, css) {
}
}
if (typeof process === "undefined" || true) {
- registerStyle9("c5cdafb1bc", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._28cfdc260e755391__icon-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset}.f1c70d719989a85a__icon{margin:-1px}}}");
+ registerStyle9("fa606a57ae", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");
}
-var style_default8 = { "icon-button": "_28cfdc260e755391__icon-button", "icon": "f1c70d719989a85a__icon" };
-var IconButton = (0, import_element21.forwardRef)(
- function IconButton2({
- label,
- className,
- // Prevent accidental forwarding of `children`
- children: _children,
- disabled: disabled2,
- focusableWhenDisabled = true,
- icon,
- size: size4,
- shortcut,
- positioner,
- ...restProps
- }, ref) {
- const classes = clsx_default(style_default8["icon-button"], className);
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Root, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
- Trigger,
+var style_default8 = { "visually-hidden": "f37b9e2e191ebd66__visually-hidden" };
+var VisuallyHidden = (0, import_element21.forwardRef)(
+ function VisuallyHidden2({ render, ...restProps }, ref) {
+ const element = useRender({
+ render,
+ ref,
+ props: mergeProps(
+ { className: style_default8["visually-hidden"] },
+ restProps,
{
- ref,
- disabled: disabled2 && !focusableWhenDisabled,
- render: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
- Button4,
- {
- ...restProps,
- size: size4,
- "aria-label": label,
- "aria-keyshortcuts": shortcut?.ariaKeyShortcut,
- disabled: disabled2,
- focusableWhenDisabled
- }
- ),
- className: classes,
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { icon, size: 24, className: style_default8.icon })
+ // @ts-expect-error Arbitrary data-* attributes aren't indexable on the typed div props. Kept hardcoded so consumers can't change or remove it.
+ "data-visually-hidden": ""
}
- ),
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Popup, { positioner, children: [
- label,
- shortcut && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
- " ",
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { "aria-hidden": "true", children: shortcut.displayShortcut })
- ] })
- ] })
- ] });
+ )
+ });
+ return element;
}
);
-// packages/ui/build-module/link/link.mjs
-var import_element22 = __toESM(require_element(), 1);
-var import_i18n2 = __toESM(require_i18n(), 1);
-var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
+// packages/ui/build-module/utils/keyboard-shortcut.mjs
+var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
+function useKeyboardShortcutProps({
+ "aria-describedby": ariaDescribedBy,
+ "aria-keyshortcuts": ariaKeyShortcuts,
+ shortcut
+}) {
+ const generatedDescriptionId = (0, import_element22.useId)();
+ const descriptionId = shortcut ? generatedDescriptionId : void 0;
+ const describedBy = [ariaDescribedBy, descriptionId].filter(Boolean).join(" ");
+ return {
+ descriptionId,
+ targetProps: {
+ "aria-describedby": describedBy || void 0,
+ "aria-keyshortcuts": shortcut?.ariaKeyShortcut ?? ariaKeyShortcuts
+ }
+ };
+}
+function KeyboardShortcutDescription({
+ descriptionId,
+ shortcut
+}) {
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
+ VisuallyHidden,
+ {
+ id: descriptionId,
+ "aria-hidden": "true",
+ render: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", {}),
+ children: (0, import_i18n3.sprintf)(
+ /* translators: %s: keyboard shortcut. */
+ (0, import_i18n3.__)("Keyboard shortcut: %s"),
+ shortcut.label ?? shortcut.ariaKeyShortcut
+ )
+ }
+ );
+}
+function KeyboardShortcutDisplay({
+ className,
+ shortcut
+}) {
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { "aria-hidden": "true", className, dir: "ltr", children: shortcut.displayShortcut });
+}
+
+// packages/ui/build-module/icon-button/icon-button.mjs
+var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE10 = "data-wp-hash";
function getRuntime10() {
const globalScope = globalThis;
@@ -9900,80 +9916,76 @@ function registerStyle10(hash, css) {
}
}
if (typeof process === "undefined" || true) {
- registerStyle10("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
-}
-var resets_default3 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
-if (typeof process === "undefined" || true) {
- registerStyle10("5f8e7aa0bc", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
-}
-var focus_default2 = { "outset-ring--focus": "_08e8a2e44959f892__outset-ring--focus", "outset-ring--focus-except-active": "e25b2bdd7aa21721__outset-ring--focus-except-active", "outset-ring--focus-visible": "d0541bc9dd9dc7b6__outset-ring--focus-visible", "outset-ring--focus-within": "cd83dfc2126a0846__outset-ring--focus-within", "outset-ring--focus-within-except-active": "_970d04df7376df67__outset-ring--focus-within-except-active", "outset-ring--focus-within-visible": "c5cb3ee4bddaa8e4__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "ecadb9e080e2dfa5__outset-ring--focus-parent-visible" };
-if (typeof process === "undefined" || true) {
- registerStyle10("e8e6a9be37", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');
+ registerStyle10("c5cdafb1bc", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._28cfdc260e755391__icon-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset}.f1c70d719989a85a__icon{margin:-1px}}}");
}
-var style_default9 = { "link": "d4250949359b05ce__link", "is-brand": "c6055659b8e2cd2c__is-brand", "is-neutral": "_92e0dfcaeee15b88__is-neutral", "is-unstyled": "cf122a9bf1035d42__is-unstyled", "link-icon": "_0cb411afac4c86c7__link-icon" };
-if (typeof process === "undefined" || true) {
- registerStyle10("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
-}
-var global_css_defense_default3 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
-var Link = (0, import_element22.forwardRef)(function Link2({
- children,
- variant = "default",
- tone = "brand",
- openInNewTab = false,
- render,
- className,
- ...props
-}, ref) {
- const element = useRender({
- render,
- defaultTagName: "a",
- ref,
- props: mergeProps(props, {
- className: clsx_default(
- global_css_defense_default3.a,
- resets_default3["box-sizing"],
- focus_default2["outset-ring--focus-except-active"],
- variant !== "unstyled" && style_default9.link,
- variant !== "unstyled" && style_default9[`is-${tone}`],
- variant === "unstyled" && style_default9["is-unstyled"],
- className
- ),
- target: openInNewTab ? "_blank" : void 0,
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
- children,
- openInNewTab && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
- "span",
- {
- className: style_default9["link-icon"],
- role: "img",
- "aria-label": (
- /* translators: accessibility text appended to link text */
- (0, import_i18n2.__)("(opens in a new tab)")
+var style_default9 = { "icon-button": "_28cfdc260e755391__icon-button", "icon": "f1c70d719989a85a__icon" };
+var IconButton = (0, import_element23.forwardRef)(
+ function IconButton2({
+ label,
+ className,
+ // Prevent accidental forwarding of `children`
+ children: _children,
+ disabled: disabled2,
+ focusableWhenDisabled = true,
+ icon,
+ size: size4,
+ shortcut,
+ positioner,
+ "aria-describedby": ariaDescribedBy,
+ "aria-keyshortcuts": ariaKeyShortcuts,
+ ...restProps
+ }, ref) {
+ const classes = clsx_default(style_default9["icon-button"], className);
+ const { descriptionId, targetProps } = useKeyboardShortcutProps({
+ "aria-describedby": ariaDescribedBy,
+ "aria-keyshortcuts": ariaKeyShortcuts,
+ shortcut
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Root, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
+ Trigger,
+ {
+ ref,
+ ...targetProps,
+ disabled: disabled2 && !focusableWhenDisabled,
+ render: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
+ Button4,
+ {
+ ...restProps,
+ size: size4,
+ "aria-label": label,
+ disabled: disabled2,
+ focusableWhenDisabled
+ }
+ ),
+ className: classes,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { icon, size: 24, className: style_default9.icon }),
+ shortcut && descriptionId && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
+ KeyboardShortcutDescription,
+ {
+ descriptionId,
+ shortcut
+ }
)
- }
- )
+ ]
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Popup, { positioner, children: [
+ label,
+ shortcut && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
+ " ",
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(KeyboardShortcutDisplay, { shortcut })
+ ] })
] })
- })
- });
- return element;
-});
-
-// packages/ui/build-module/notice/index.mjs
-var notice_exports = {};
-__export(notice_exports, {
- ActionButton: () => ActionButton,
- ActionLink: () => ActionLink,
- Actions: () => Actions,
- CloseIcon: () => CloseIcon,
- Description: () => Description,
- Root: () => Root2,
- Title: () => Title
-});
+ ] });
+ }
+);
-// packages/ui/build-module/notice/root.mjs
-var import_element23 = __toESM(require_element(), 1);
-import { speak as speak2 } from "@wordpress/a11y";
-var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
+// packages/ui/build-module/link/link.mjs
+var import_element24 = __toESM(require_element(), 1);
+var import_i18n4 = __toESM(require_i18n(), 1);
+var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE11 = "data-wp-hash";
function getRuntime11() {
const globalScope = globalThis;
@@ -10057,85 +10069,78 @@ function registerStyle11(hash, css) {
if (typeof process === "undefined" || true) {
registerStyle11("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
}
-var resets_default4 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
+var resets_default3 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
if (typeof process === "undefined" || true) {
- registerStyle11("726c480820", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");
-}
-var style_default10 = { "notice": "_4145abab73d17514__notice", "icon": "d0a25570cb528528__icon", "title": "b5397fb9d05389e3__title", "description": "_1904b570a89bb815__description", "actions": "_0a1270dcdd79c031__actions", "action-button": "_983740ab855c4e09__action-button", "action-link": "d329e7416d368d31__action-link", "close-icon": "_487e6a5c1375f7dc__close-icon", "is-info": "_531c140826094795__is-info", "is-warning": "ae2e1004697cce95__is-warning", "is-success": "_2e614a76af494837__is-success", "is-error": "af00331ae17a0065__is-error", "is-action-button-outline": "_8ddb8fb33fbf3d38__is-action-button-outline", "is-action-button-minimal": "_77bbde495a8a0af3__is-action-button-minimal" };
-var icons = {
- neutral: null,
- info: info_default,
- warning: caution_default,
- success: published_default,
- error: error_default
-};
-function getDefaultPoliteness(intent) {
- return intent === "error" ? "assertive" : "polite";
+ registerStyle11("2ffedd8246", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
}
-function safeRenderToString(message) {
- if (!message) {
- return void 0;
- }
- if (typeof message === "string") {
- return message;
- }
- try {
- return (0, import_element23.renderToString)(message);
- } catch {
- return void 0;
- }
+var focus_module_default2 = { "outset-ring--focus": "af79fb116edb0dd7__outset-ring--focus", "outset-ring--focus-visible": "dfcfdc28396e5d98__outset-ring--focus-visible", "outset-ring--focus-within": "e5cd9ee879f6403a__outset-ring--focus-within", "outset-ring--focus-within-visible": "_64de9947bf305b7a__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "_81935a08e952f267__outset-ring--focus-parent-visible", "outset-ring--focus-except-active": "abc777e9713fa711__outset-ring--focus-except-active", "outset-ring--focus-within-except-active": "_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active" };
+if (typeof process === "undefined" || true) {
+ registerStyle11("e8e6a9be37", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');
}
-function useSpokenMessage(message, politeness) {
- const spokenMessage = safeRenderToString(message);
- (0, import_element23.useEffect)(() => {
- if (spokenMessage) {
- speak2(spokenMessage, politeness);
- }
- }, [spokenMessage, politeness]);
+var style_default10 = { "link": "d4250949359b05ce__link", "is-brand": "c6055659b8e2cd2c__is-brand", "is-neutral": "_92e0dfcaeee15b88__is-neutral", "is-unstyled": "cf122a9bf1035d42__is-unstyled", "link-icon": "_0cb411afac4c86c7__link-icon" };
+if (typeof process === "undefined" || true) {
+ registerStyle11("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
}
-var Root2 = (0, import_element23.forwardRef)(function Notice({
- intent = "neutral",
+var global_css_defense_default3 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
+var Link = (0, import_element24.forwardRef)(function Link2({
children,
- icon,
- spokenMessage = children,
- politeness = getDefaultPoliteness(intent),
+ variant = "default",
+ tone = "brand",
+ openInNewTab = false,
render,
- ...restProps
+ className,
+ ...props
}, ref) {
- useSpokenMessage(spokenMessage, politeness);
- const iconElement = icon === null ? null : icon ?? icons[intent];
- const mergedClassName = clsx_default(
- style_default10.notice,
- style_default10[`is-${intent}`],
- resets_default4["box-sizing"]
- );
const element = useRender({
- defaultTagName: "div",
render,
+ defaultTagName: "a",
ref,
- props: mergeProps(
- {
- className: mergedClassName,
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
- children,
- iconElement && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
- Icon,
- {
- className: style_default10.icon,
- icon: iconElement
- }
- )
- ] })
- },
- restProps
- )
+ props: mergeProps(props, {
+ className: clsx_default(
+ global_css_defense_default3.a,
+ resets_default3["box-sizing"],
+ focus_module_default2["outset-ring--focus-except-active"],
+ variant !== "unstyled" && style_default10.link,
+ variant !== "unstyled" && style_default10[`is-${tone}`],
+ variant === "unstyled" && style_default10["is-unstyled"],
+ className
+ ),
+ target: openInNewTab ? "_blank" : void 0,
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
+ children,
+ openInNewTab && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
+ "span",
+ {
+ className: style_default10["link-icon"],
+ role: "img",
+ "aria-label": (
+ /* translators: accessibility text appended to link text */
+ (0, import_i18n4.__)("(opens in a new tab)")
+ )
+ }
+ )
+ ] })
+ })
});
return element;
});
-// packages/ui/build-module/notice/title.mjs
-var import_element24 = __toESM(require_element(), 1);
-var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
+// packages/ui/build-module/notice/index.mjs
+var notice_exports = {};
+__export(notice_exports, {
+ ActionButton: () => ActionButton,
+ ActionLink: () => ActionLink,
+ Actions: () => Actions,
+ CloseIcon: () => CloseIcon,
+ Description: () => Description,
+ Root: () => Root2,
+ Title: () => Title
+});
+
+// packages/ui/build-module/notice/root.mjs
+var import_element25 = __toESM(require_element(), 1);
+import { speak as speak2 } from "@wordpress/a11y";
+var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE12 = "data-wp-hash";
function getRuntime12() {
const globalScope = globalThis;
@@ -10216,27 +10221,88 @@ function registerStyle12(hash, css) {
injectStyle12(targetDocument, hash, css);
}
}
+if (typeof process === "undefined" || true) {
+ registerStyle12("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
+}
+var resets_default4 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
if (typeof process === "undefined" || true) {
registerStyle12("726c480820", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");
}
var style_default11 = { "notice": "_4145abab73d17514__notice", "icon": "d0a25570cb528528__icon", "title": "b5397fb9d05389e3__title", "description": "_1904b570a89bb815__description", "actions": "_0a1270dcdd79c031__actions", "action-button": "_983740ab855c4e09__action-button", "action-link": "d329e7416d368d31__action-link", "close-icon": "_487e6a5c1375f7dc__close-icon", "is-info": "_531c140826094795__is-info", "is-warning": "ae2e1004697cce95__is-warning", "is-success": "_2e614a76af494837__is-success", "is-error": "af00331ae17a0065__is-error", "is-action-button-outline": "_8ddb8fb33fbf3d38__is-action-button-outline", "is-action-button-minimal": "_77bbde495a8a0af3__is-action-button-minimal" };
-var Title = (0, import_element24.forwardRef)(
- function NoticeTitle({ className, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
- Text,
- {
- ref,
- variant: "heading-md",
- className: clsx_default(style_default11.title, className),
- ...props
- }
- );
+var icons = {
+ neutral: null,
+ info: info_default,
+ warning: caution_default,
+ success: published_default,
+ error: error_default
+};
+function getDefaultPoliteness(intent) {
+ return intent === "error" ? "assertive" : "polite";
+}
+function safeRenderToString(message) {
+ if (!message) {
+ return void 0;
}
-);
+ if (typeof message === "string") {
+ return message;
+ }
+ try {
+ return (0, import_element25.renderToString)(message);
+ } catch {
+ return void 0;
+ }
+}
+function useSpokenMessage(message, politeness) {
+ const spokenMessage = safeRenderToString(message);
+ (0, import_element25.useEffect)(() => {
+ if (spokenMessage) {
+ speak2(spokenMessage, politeness);
+ }
+ }, [spokenMessage, politeness]);
+}
+var Root2 = (0, import_element25.forwardRef)(function Notice({
+ intent = "neutral",
+ children,
+ icon,
+ spokenMessage = children,
+ politeness = getDefaultPoliteness(intent),
+ render,
+ ...restProps
+}, ref) {
+ useSpokenMessage(spokenMessage, politeness);
+ const iconElement = icon === null ? null : icon ?? icons[intent];
+ const mergedClassName = clsx_default(
+ style_default11.notice,
+ style_default11[`is-${intent}`],
+ resets_default4["box-sizing"]
+ );
+ const element = useRender({
+ defaultTagName: "div",
+ render,
+ ref,
+ props: mergeProps(
+ {
+ className: mergedClassName,
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
+ children,
+ iconElement && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
+ Icon,
+ {
+ className: style_default11.icon,
+ icon: iconElement
+ }
+ )
+ ] })
+ },
+ restProps
+ )
+ });
+ return element;
+});
-// packages/ui/build-module/notice/description.mjs
-var import_element25 = __toESM(require_element(), 1);
-var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
+// packages/ui/build-module/notice/title.mjs
+var import_element26 = __toESM(require_element(), 1);
+var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE13 = "data-wp-hash";
function getRuntime13() {
const globalScope = globalThis;
@@ -10321,22 +10387,23 @@ if (typeof process === "undefined" || true) {
registerStyle13("726c480820", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");
}
var style_default12 = { "notice": "_4145abab73d17514__notice", "icon": "d0a25570cb528528__icon", "title": "b5397fb9d05389e3__title", "description": "_1904b570a89bb815__description", "actions": "_0a1270dcdd79c031__actions", "action-button": "_983740ab855c4e09__action-button", "action-link": "d329e7416d368d31__action-link", "close-icon": "_487e6a5c1375f7dc__close-icon", "is-info": "_531c140826094795__is-info", "is-warning": "ae2e1004697cce95__is-warning", "is-success": "_2e614a76af494837__is-success", "is-error": "af00331ae17a0065__is-error", "is-action-button-outline": "_8ddb8fb33fbf3d38__is-action-button-outline", "is-action-button-minimal": "_77bbde495a8a0af3__is-action-button-minimal" };
-var Description = (0, import_element25.forwardRef)(
- function NoticeDescription({ className, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
+var Title = (0, import_element26.forwardRef)(
+ function NoticeTitle({ className, ...props }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
Text,
{
ref,
- variant: "body-md",
- className: clsx_default(style_default12.description, className),
+ variant: "heading-md",
+ className: clsx_default(style_default12.title, className),
...props
}
);
}
);
-// packages/ui/build-module/notice/actions.mjs
-var import_element26 = __toESM(require_element(), 1);
+// packages/ui/build-module/notice/description.mjs
+var import_element27 = __toESM(require_element(), 1);
+var import_jsx_runtime32 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE14 = "data-wp-hash";
function getRuntime14() {
const globalScope = globalThis;
@@ -10421,27 +10488,22 @@ if (typeof process === "undefined" || true) {
registerStyle14("726c480820", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");
}
var style_default13 = { "notice": "_4145abab73d17514__notice", "icon": "d0a25570cb528528__icon", "title": "b5397fb9d05389e3__title", "description": "_1904b570a89bb815__description", "actions": "_0a1270dcdd79c031__actions", "action-button": "_983740ab855c4e09__action-button", "action-link": "d329e7416d368d31__action-link", "close-icon": "_487e6a5c1375f7dc__close-icon", "is-info": "_531c140826094795__is-info", "is-warning": "ae2e1004697cce95__is-warning", "is-success": "_2e614a76af494837__is-success", "is-error": "af00331ae17a0065__is-error", "is-action-button-outline": "_8ddb8fb33fbf3d38__is-action-button-outline", "is-action-button-minimal": "_77bbde495a8a0af3__is-action-button-minimal" };
-var Actions = (0, import_element26.forwardRef)(
- function NoticeActions({ render, ...props }, ref) {
- const element = useRender({
- defaultTagName: "div",
- render,
- ref,
- props: mergeProps(
- {
- className: style_default13.actions
- },
- props
- )
- });
- return element;
+var Description = (0, import_element27.forwardRef)(
+ function NoticeDescription({ className, ...props }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ Text,
+ {
+ ref,
+ variant: "body-md",
+ className: clsx_default(style_default13.description, className),
+ ...props
+ }
+ );
}
);
-// packages/ui/build-module/notice/close-icon.mjs
-var import_element27 = __toESM(require_element(), 1);
-var import_i18n3 = __toESM(require_i18n(), 1);
-var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
+// packages/ui/build-module/notice/actions.mjs
+var import_element28 = __toESM(require_element(), 1);
var STYLE_HASH_ATTRIBUTE15 = "data-wp-hash";
function getRuntime15() {
const globalScope = globalThis;
@@ -10526,27 +10588,27 @@ if (typeof process === "undefined" || true) {
registerStyle15("726c480820", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");
}
var style_default14 = { "notice": "_4145abab73d17514__notice", "icon": "d0a25570cb528528__icon", "title": "b5397fb9d05389e3__title", "description": "_1904b570a89bb815__description", "actions": "_0a1270dcdd79c031__actions", "action-button": "_983740ab855c4e09__action-button", "action-link": "d329e7416d368d31__action-link", "close-icon": "_487e6a5c1375f7dc__close-icon", "is-info": "_531c140826094795__is-info", "is-warning": "ae2e1004697cce95__is-warning", "is-success": "_2e614a76af494837__is-success", "is-error": "af00331ae17a0065__is-error", "is-action-button-outline": "_8ddb8fb33fbf3d38__is-action-button-outline", "is-action-button-minimal": "_77bbde495a8a0af3__is-action-button-minimal" };
-var CloseIcon = (0, import_element27.forwardRef)(
- function NoticeCloseIcon({ className, icon = close_small_default, label = (0, import_i18n3.__)("Dismiss"), ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
- IconButton,
- {
- ...props,
- ref,
- className: clsx_default(style_default14["close-icon"], className),
- variant: "minimal",
- size: "small",
- tone: "neutral",
- icon,
- label
- }
- );
+var Actions = (0, import_element28.forwardRef)(
+ function NoticeActions({ render, ...props }, ref) {
+ const element = useRender({
+ defaultTagName: "div",
+ render,
+ ref,
+ props: mergeProps(
+ {
+ className: style_default14.actions
+ },
+ props
+ )
+ });
+ return element;
}
);
-// packages/ui/build-module/notice/action-button.mjs
-var import_element28 = __toESM(require_element(), 1);
-var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
+// packages/ui/build-module/notice/close-icon.mjs
+var import_element29 = __toESM(require_element(), 1);
+var import_i18n5 = __toESM(require_i18n(), 1);
+var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE16 = "data-wp-hash";
function getRuntime16() {
const globalScope = globalThis;
@@ -10631,31 +10693,27 @@ if (typeof process === "undefined" || true) {
registerStyle16("726c480820", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");
}
var style_default15 = { "notice": "_4145abab73d17514__notice", "icon": "d0a25570cb528528__icon", "title": "b5397fb9d05389e3__title", "description": "_1904b570a89bb815__description", "actions": "_0a1270dcdd79c031__actions", "action-button": "_983740ab855c4e09__action-button", "action-link": "d329e7416d368d31__action-link", "close-icon": "_487e6a5c1375f7dc__close-icon", "is-info": "_531c140826094795__is-info", "is-warning": "ae2e1004697cce95__is-warning", "is-success": "_2e614a76af494837__is-success", "is-error": "af00331ae17a0065__is-error", "is-action-button-outline": "_8ddb8fb33fbf3d38__is-action-button-outline", "is-action-button-minimal": "_77bbde495a8a0af3__is-action-button-minimal" };
-var ActionButton = (0, import_element28.forwardRef)(
- function NoticeActionButton({ className, loading, loadingAnnouncement, variant, ...props }, ref) {
- const loadingProps = loading !== void 0 ? { loading, loadingAnnouncement: loadingAnnouncement ?? "" } : {};
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
- Button4,
+var CloseIcon = (0, import_element29.forwardRef)(
+ function NoticeCloseIcon({ className, icon = close_small_default, label = (0, import_i18n5.__)("Dismiss"), ...props }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
+ IconButton,
{
...props,
- ...loadingProps,
ref,
- size: "compact",
+ className: clsx_default(style_default15["close-icon"], className),
+ variant: "minimal",
+ size: "small",
tone: "neutral",
- variant,
- className: clsx_default(
- style_default15["action-button"],
- style_default15[`is-action-button-${variant}`],
- className
- )
+ icon,
+ label
}
);
}
);
-// packages/ui/build-module/notice/action-link.mjs
-var import_element29 = __toESM(require_element(), 1);
-var import_jsx_runtime32 = __toESM(require_jsx_runtime(), 1);
+// packages/ui/build-module/notice/action-button.mjs
+var import_element30 = __toESM(require_element(), 1);
+var import_jsx_runtime34 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE17 = "data-wp-hash";
function getRuntime17() {
const globalScope = globalThis;
@@ -10740,27 +10798,136 @@ if (typeof process === "undefined" || true) {
registerStyle17("726c480820", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");
}
var style_default16 = { "notice": "_4145abab73d17514__notice", "icon": "d0a25570cb528528__icon", "title": "b5397fb9d05389e3__title", "description": "_1904b570a89bb815__description", "actions": "_0a1270dcdd79c031__actions", "action-button": "_983740ab855c4e09__action-button", "action-link": "d329e7416d368d31__action-link", "close-icon": "_487e6a5c1375f7dc__close-icon", "is-info": "_531c140826094795__is-info", "is-warning": "ae2e1004697cce95__is-warning", "is-success": "_2e614a76af494837__is-success", "is-error": "af00331ae17a0065__is-error", "is-action-button-outline": "_8ddb8fb33fbf3d38__is-action-button-outline", "is-action-button-minimal": "_77bbde495a8a0af3__is-action-button-minimal" };
-var ActionLink = (0, import_element29.forwardRef)(
+var ActionButton = (0, import_element30.forwardRef)(
+ function NoticeActionButton({ className, loading, loadingAnnouncement, variant, ...props }, ref) {
+ const loadingProps = loading !== void 0 ? { loading, loadingAnnouncement: loadingAnnouncement ?? "" } : {};
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
+ Button4,
+ {
+ ...props,
+ ...loadingProps,
+ ref,
+ size: "compact",
+ tone: "neutral",
+ variant,
+ className: clsx_default(
+ style_default16["action-button"],
+ style_default16[`is-action-button-${variant}`],
+ className
+ )
+ }
+ );
+ }
+);
+
+// packages/ui/build-module/notice/action-link.mjs
+var import_element31 = __toESM(require_element(), 1);
+var import_jsx_runtime35 = __toESM(require_jsx_runtime(), 1);
+var STYLE_HASH_ATTRIBUTE18 = "data-wp-hash";
+function getRuntime18() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument18(document);
+ }
+ return globalScope.__wpStyleRuntime;
+}
+function documentContainsStyleHash18(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE18}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE18) === hash) {
+ return true;
+ }
+ }
+ return false;
+}
+function injectStyle18(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime18();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash18(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE18, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+}
+function registerDocument18(targetDocument) {
+ const runtime = getRuntime18();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
+ );
+ for (const [hash, css] of runtime.styles) {
+ injectStyle18(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
+ }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
+ }
+ runtime.documents.set(targetDocument, count - 1);
+ };
+}
+function registerStyle18(hash, css) {
+ const runtime = getRuntime18();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle18(targetDocument, hash, css);
+ }
+}
+if (typeof process === "undefined" || true) {
+ registerStyle18("726c480820", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");
+}
+var style_default17 = { "notice": "_4145abab73d17514__notice", "icon": "d0a25570cb528528__icon", "title": "b5397fb9d05389e3__title", "description": "_1904b570a89bb815__description", "actions": "_0a1270dcdd79c031__actions", "action-button": "_983740ab855c4e09__action-button", "action-link": "d329e7416d368d31__action-link", "close-icon": "_487e6a5c1375f7dc__close-icon", "is-info": "_531c140826094795__is-info", "is-warning": "ae2e1004697cce95__is-warning", "is-success": "_2e614a76af494837__is-success", "is-error": "af00331ae17a0065__is-error", "is-action-button-outline": "_8ddb8fb33fbf3d38__is-action-button-outline", "is-action-button-minimal": "_77bbde495a8a0af3__is-action-button-minimal" };
+var ActionLink = (0, import_element31.forwardRef)(
function NoticeActionLink({ className, render, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
Text,
{
ref,
- className: clsx_default(style_default16["action-link"], className),
+ className: clsx_default(style_default17["action-link"], className),
...props,
variant: "body-md",
- render: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Link, { tone: "neutral", variant: "default", render })
+ render: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Link, { tone: "neutral", variant: "default", render })
}
);
}
);
// packages/admin-ui/build-module/navigable-region/index.mjs
-var import_element30 = __toESM(require_element(), 1);
-var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1);
-var NavigableRegion = (0, import_element30.forwardRef)(
+var import_element32 = __toESM(require_element(), 1);
+var import_jsx_runtime36 = __toESM(require_jsx_runtime(), 1);
+var NavigableRegion = (0, import_element32.forwardRef)(
({ children, className, ariaLabel, as: Tag = "div", ...props }, ref) => {
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
Tag,
{
ref,
@@ -10782,9 +10949,9 @@ var import_components = __toESM(require_components(), 1);
var { Fill: SidebarToggleFill, Slot: SidebarToggleSlot } = (0, import_components.createSlotFill)("SidebarToggle");
// packages/admin-ui/build-module/page/header.mjs
-var import_jsx_runtime34 = __toESM(require_jsx_runtime(), 1);
-var STYLE_HASH_ATTRIBUTE18 = "data-wp-hash";
-function getRuntime18() {
+var import_jsx_runtime37 = __toESM(require_jsx_runtime(), 1);
+var STYLE_HASH_ATTRIBUTE19 = "data-wp-hash";
+function getRuntime19() {
const globalScope = globalThis;
if (globalScope.__wpStyleRuntime) {
return globalScope.__wpStyleRuntime;
@@ -10795,28 +10962,28 @@ function getRuntime18() {
injectedStyles: /* @__PURE__ */ new WeakMap()
};
if (typeof document !== "undefined") {
- registerDocument18(document);
+ registerDocument19(document);
}
return globalScope.__wpStyleRuntime;
}
-function documentContainsStyleHash18(targetDocument, hash) {
+function documentContainsStyleHash19(targetDocument, hash) {
if (!targetDocument.head) {
return false;
}
for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE18}]`
+ `style[${STYLE_HASH_ATTRIBUTE19}]`
)) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE18) === hash) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE19) === hash) {
return true;
}
}
return false;
}
-function injectStyle18(targetDocument, hash, css) {
+function injectStyle19(targetDocument, hash, css) {
if (!targetDocument.head) {
return;
}
- const runtime = getRuntime18();
+ const runtime = getRuntime19();
let injectedStyles = runtime.injectedStyles.get(targetDocument);
if (!injectedStyles) {
injectedStyles = /* @__PURE__ */ new Set();
@@ -10825,24 +10992,24 @@ function injectStyle18(targetDocument, hash, css) {
if (injectedStyles.has(hash)) {
return;
}
- if (documentContainsStyleHash18(targetDocument, hash)) {
+ if (documentContainsStyleHash19(targetDocument, hash)) {
injectedStyles.add(hash);
return;
}
const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE18, hash);
+ style.setAttribute(STYLE_HASH_ATTRIBUTE19, hash);
style.appendChild(targetDocument.createTextNode(css));
targetDocument.head.appendChild(style);
injectedStyles.add(hash);
}
-function registerDocument18(targetDocument) {
- const runtime = getRuntime18();
+function registerDocument19(targetDocument) {
+ const runtime = getRuntime19();
runtime.documents.set(
targetDocument,
(runtime.documents.get(targetDocument) ?? 0) + 1
);
for (const [hash, css] of runtime.styles) {
- injectStyle18(targetDocument, hash, css);
+ injectStyle19(targetDocument, hash, css);
}
return () => {
const count = runtime.documents.get(targetDocument);
@@ -10856,17 +11023,17 @@ function registerDocument18(targetDocument) {
runtime.documents.set(targetDocument, count - 1);
};
}
-function registerStyle18(hash, css) {
- const runtime = getRuntime18();
+function registerStyle19(hash, css) {
+ const runtime = getRuntime19();
runtime.styles.set(hash, css);
for (const targetDocument of runtime.documents.keys()) {
- injectStyle18(targetDocument, hash, css);
+ injectStyle19(targetDocument, hash, css);
}
}
if (typeof process === "undefined" || true) {
- registerStyle18("ddd9aab364", "._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");
+ registerStyle19("ddd9aab364", "._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");
}
-var style_default17 = { "page": "_956b6df0898efed0__page", "header": "_0625b55e82a0d93d__header", "header-content": "a43c44d5ae28b2e8__header-content", "header-actions": "b7cb5b9daf3a3b25__header-actions", "header-title": "_8113be94e7caf73c__header-title", "header-visual": "_9a776c7f70996f61__header-visual", "sidebar-toggle-slot": "d5e0920cd15d35bc__sidebar-toggle-slot", "header-subtitle": "_60fea2f6bf5319cd__header-subtitle", "content": "be5e57d029ec4036__content", "has-padding": "_128806d0b26e3a50__has-padding" };
+var style_default18 = { "page": "_956b6df0898efed0__page", "header": "_0625b55e82a0d93d__header", "header-content": "a43c44d5ae28b2e8__header-content", "header-actions": "b7cb5b9daf3a3b25__header-actions", "header-title": "_8113be94e7caf73c__header-title", "header-visual": "_9a776c7f70996f61__header-visual", "sidebar-toggle-slot": "d5e0920cd15d35bc__sidebar-toggle-slot", "header-subtitle": "_60fea2f6bf5319cd__header-subtitle", "content": "be5e57d029ec4036__content", "has-padding": "_128806d0b26e3a50__has-padding" };
function Header({
headingLevel = 1,
breadcrumbs,
@@ -10878,36 +11045,36 @@ function Header({
showSidebarToggle = true
}) {
const HeadingTag = `h${headingLevel}`;
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Stack, { direction: "column", className: style_default17.header, children: [
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Stack, { direction: "column", className: style_default18.header, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
Stack,
{
- className: style_default17["header-content"],
+ className: style_default18["header-content"],
direction: "row",
gap: "sm",
justify: "space-between",
children: [
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Stack, { direction: "row", gap: "sm", align: "center", justify: "start", children: [
- showSidebarToggle && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Stack, { direction: "row", gap: "sm", align: "center", justify: "start", children: [
+ showSidebarToggle && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
SidebarToggleSlot,
{
bubblesVirtually: true,
- className: style_default17["sidebar-toggle-slot"]
+ className: style_default18["sidebar-toggle-slot"]
}
),
- visual && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
+ visual && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
"div",
{
- className: style_default17["header-visual"],
+ className: style_default18["header-visual"],
"aria-hidden": "true",
children: visual
}
),
- title && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
+ title && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
Text,
{
- className: style_default17["header-title"],
- render: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(HeadingTag, {}),
+ className: style_default18["header-title"],
+ render: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(HeadingTag, {}),
variant: "heading-lg",
children: title
}
@@ -10915,11 +11082,11 @@ function Header({
breadcrumbs,
badges
] }),
- actions && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
+ actions && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
Stack,
{
align: "center",
- className: style_default17["header-actions"],
+ className: style_default18["header-actions"],
direction: "row",
gap: "sm",
children: actions
@@ -10928,12 +11095,12 @@ function Header({
]
}
),
- subTitle && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
+ subTitle && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
Text,
{
- render: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", {}),
+ render: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", {}),
variant: "body-md",
- className: style_default17["header-subtitle"],
+ className: style_default18["header-subtitle"],
children: subTitle
}
)
@@ -10941,9 +11108,9 @@ function Header({
}
// packages/admin-ui/build-module/page/index.mjs
-var import_jsx_runtime35 = __toESM(require_jsx_runtime(), 1);
-var STYLE_HASH_ATTRIBUTE19 = "data-wp-hash";
-function getRuntime19() {
+var import_jsx_runtime38 = __toESM(require_jsx_runtime(), 1);
+var STYLE_HASH_ATTRIBUTE20 = "data-wp-hash";
+function getRuntime20() {
const globalScope = globalThis;
if (globalScope.__wpStyleRuntime) {
return globalScope.__wpStyleRuntime;
@@ -10954,28 +11121,28 @@ function getRuntime19() {
injectedStyles: /* @__PURE__ */ new WeakMap()
};
if (typeof document !== "undefined") {
- registerDocument19(document);
+ registerDocument20(document);
}
return globalScope.__wpStyleRuntime;
}
-function documentContainsStyleHash19(targetDocument, hash) {
+function documentContainsStyleHash20(targetDocument, hash) {
if (!targetDocument.head) {
return false;
}
for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE19}]`
+ `style[${STYLE_HASH_ATTRIBUTE20}]`
)) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE19) === hash) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE20) === hash) {
return true;
}
}
return false;
}
-function injectStyle19(targetDocument, hash, css) {
+function injectStyle20(targetDocument, hash, css) {
if (!targetDocument.head) {
return;
}
- const runtime = getRuntime19();
+ const runtime = getRuntime20();
let injectedStyles = runtime.injectedStyles.get(targetDocument);
if (!injectedStyles) {
injectedStyles = /* @__PURE__ */ new Set();
@@ -10984,24 +11151,24 @@ function injectStyle19(targetDocument, hash, css) {
if (injectedStyles.has(hash)) {
return;
}
- if (documentContainsStyleHash19(targetDocument, hash)) {
+ if (documentContainsStyleHash20(targetDocument, hash)) {
injectedStyles.add(hash);
return;
}
const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE19, hash);
+ style.setAttribute(STYLE_HASH_ATTRIBUTE20, hash);
style.appendChild(targetDocument.createTextNode(css));
targetDocument.head.appendChild(style);
injectedStyles.add(hash);
}
-function registerDocument19(targetDocument) {
- const runtime = getRuntime19();
+function registerDocument20(targetDocument) {
+ const runtime = getRuntime20();
runtime.documents.set(
targetDocument,
(runtime.documents.get(targetDocument) ?? 0) + 1
);
for (const [hash, css] of runtime.styles) {
- injectStyle19(targetDocument, hash, css);
+ injectStyle20(targetDocument, hash, css);
}
return () => {
const count = runtime.documents.get(targetDocument);
@@ -11015,17 +11182,17 @@ function registerDocument19(targetDocument) {
runtime.documents.set(targetDocument, count - 1);
};
}
-function registerStyle19(hash, css) {
- const runtime = getRuntime19();
+function registerStyle20(hash, css) {
+ const runtime = getRuntime20();
runtime.styles.set(hash, css);
for (const targetDocument of runtime.documents.keys()) {
- injectStyle19(targetDocument, hash, css);
+ injectStyle20(targetDocument, hash, css);
}
}
if (typeof process === "undefined" || true) {
- registerStyle19("ddd9aab364", "._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");
+ registerStyle20("ddd9aab364", "._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");
}
-var style_default18 = { "page": "_956b6df0898efed0__page", "header": "_0625b55e82a0d93d__header", "header-content": "a43c44d5ae28b2e8__header-content", "header-actions": "b7cb5b9daf3a3b25__header-actions", "header-title": "_8113be94e7caf73c__header-title", "header-visual": "_9a776c7f70996f61__header-visual", "sidebar-toggle-slot": "d5e0920cd15d35bc__sidebar-toggle-slot", "header-subtitle": "_60fea2f6bf5319cd__header-subtitle", "content": "be5e57d029ec4036__content", "has-padding": "_128806d0b26e3a50__has-padding" };
+var style_default19 = { "page": "_956b6df0898efed0__page", "header": "_0625b55e82a0d93d__header", "header-content": "a43c44d5ae28b2e8__header-content", "header-actions": "b7cb5b9daf3a3b25__header-actions", "header-title": "_8113be94e7caf73c__header-title", "header-visual": "_9a776c7f70996f61__header-visual", "sidebar-toggle-slot": "d5e0920cd15d35bc__sidebar-toggle-slot", "header-subtitle": "_60fea2f6bf5319cd__header-subtitle", "content": "be5e57d029ec4036__content", "has-padding": "_128806d0b26e3a50__has-padding" };
function Page({
headingLevel,
breadcrumbs,
@@ -11040,10 +11207,10 @@ function Page({
hasPadding = false,
showSidebarToggle = true
}) {
- const classes = clsx_default(style_default18.page, className);
+ const classes = clsx_default(style_default19.page, className);
const effectiveAriaLabel = ariaLabel ?? (typeof title === "string" ? title : "");
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(navigable_region_default, { className: classes, ariaLabel: effectiveAriaLabel, children: [
- (title || breadcrumbs || badges || actions || visual) && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(navigable_region_default, { className: classes, ariaLabel: effectiveAriaLabel, children: [
+ (title || breadcrumbs || badges || actions || visual) && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
Header,
{
headingLevel,
@@ -11056,12 +11223,12 @@ function Page({
showSidebarToggle
}
),
- hasPadding ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
+ hasPadding ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
"div",
{
className: clsx_default(
- style_default18.content,
- style_default18["has-padding"]
+ style_default19.content,
+ style_default19["has-padding"]
),
children
}
@@ -11074,8 +11241,8 @@ var page_default = Page;
// routes/connectors-home/stage.tsx
var import_components4 = __toESM(require_components());
var import_data4 = __toESM(require_data());
-var import_element34 = __toESM(require_element());
-var import_i18n7 = __toESM(require_i18n());
+var import_element36 = __toESM(require_element());
+var import_i18n9 = __toESM(require_i18n());
var import_core_data3 = __toESM(require_core_data());
import {
privateApis as connectorsPrivateApis2
@@ -11100,16 +11267,16 @@ if (typeof document !== "undefined" && true && !document.head.querySelector("sty
var import_components3 = __toESM(require_components());
var import_core_data2 = __toESM(require_core_data());
var import_data3 = __toESM(require_data());
-var import_element33 = __toESM(require_element());
-var import_i18n6 = __toESM(require_i18n());
+var import_element35 = __toESM(require_element());
+var import_i18n8 = __toESM(require_i18n());
var import_notices2 = __toESM(require_notices());
var import_url = __toESM(require_url());
// routes/connectors-home/default-connectors.tsx
var import_components2 = __toESM(require_components());
-var import_element32 = __toESM(require_element());
+var import_element34 = __toESM(require_element());
var import_data2 = __toESM(require_data());
-var import_i18n5 = __toESM(require_i18n());
+var import_i18n7 = __toESM(require_i18n());
import {
__experimentalRegisterConnector as registerConnector,
__experimentalConnectorItem as ConnectorItem,
@@ -11121,8 +11288,8 @@ import {
// routes/connectors-home/use-connector-plugin.ts
var import_core_data = __toESM(require_core_data());
var import_data = __toESM(require_data());
-var import_element31 = __toESM(require_element());
-var import_i18n4 = __toESM(require_i18n());
+var import_element33 = __toESM(require_element());
+var import_i18n6 = __toESM(require_i18n());
var import_notices = __toESM(require_notices());
function useConnectorPlugin({
file: pluginFileFromServer,
@@ -11133,10 +11300,10 @@ function useConnectorPlugin({
keySource = "none",
initialIsConnected = false
}) {
- const [isExpanded, setIsExpanded] = (0, import_element31.useState)(false);
- const [isBusy, setIsBusy] = (0, import_element31.useState)(false);
- const [connectedState, setConnectedState] = (0, import_element31.useState)(initialIsConnected);
- const [pluginStatusOverride, setPluginStatusOverride] = (0, import_element31.useState)(null);
+ const [isExpanded, setIsExpanded] = (0, import_element33.useState)(false);
+ const [isBusy, setIsBusy] = (0, import_element33.useState)(false);
+ const [connectedState, setConnectedState] = (0, import_element33.useState)(initialIsConnected);
+ const [pluginStatusOverride, setPluginStatusOverride] = (0, import_element33.useState)(null);
const pluginBasename = pluginFileFromServer?.replace(/\.php$/, "");
const pluginSlug = pluginBasename?.includes("/") ? pluginBasename.split("/")[0] : pluginBasename;
const {
@@ -11236,9 +11403,9 @@ function useConnectorPlugin({
);
const createConnectedNotice = () => {
createSuccessNotice(
- (0, import_i18n4.sprintf)(
+ (0, import_i18n6.sprintf)(
/* translators: %s: Name of the connector (e.g. "OpenAI"). */
- (0, import_i18n4.__)("%s connected successfully."),
+ (0, import_i18n6.__)("%s connected successfully."),
connectorName
),
{
@@ -11249,9 +11416,9 @@ function useConnectorPlugin({
};
const createDisconnectedNotice = () => {
createSuccessNotice(
- (0, import_i18n4.sprintf)(
+ (0, import_i18n6.sprintf)(
/* translators: %s: Name of the connector (e.g. "OpenAI"). */
- (0, import_i18n4.__)("%s disconnected."),
+ (0, import_i18n6.__)("%s disconnected."),
connectorName
),
{
@@ -11262,9 +11429,9 @@ function useConnectorPlugin({
};
const createDisconnectErrorNotice = () => {
createErrorNotice(
- (0, import_i18n4.sprintf)(
+ (0, import_i18n6.sprintf)(
/* translators: %s: Name of the connector (e.g. "OpenAI"). */
- (0, import_i18n4.__)("Failed to disconnect %s."),
+ (0, import_i18n6.__)("Failed to disconnect %s."),
connectorName
),
{
@@ -11289,9 +11456,9 @@ function useConnectorPlugin({
invalidateResolution("getEntityRecord", ["root", "site"]);
setIsExpanded(true);
createSuccessNotice(
- (0, import_i18n4.sprintf)(
+ (0, import_i18n6.sprintf)(
/* translators: %s: Name of the connector (e.g. "OpenAI"). */
- (0, import_i18n4.__)("Plugin for %s installed and activated successfully."),
+ (0, import_i18n6.__)("Plugin for %s installed and activated successfully."),
connectorName
),
{
@@ -11301,9 +11468,9 @@ function useConnectorPlugin({
);
} catch {
createErrorNotice(
- (0, import_i18n4.sprintf)(
+ (0, import_i18n6.sprintf)(
/* translators: %s: Name of the connector (e.g. "OpenAI"). */
- (0, import_i18n4.__)("Failed to install plugin for %s."),
+ (0, import_i18n6.__)("Failed to install plugin for %s."),
connectorName
),
{
@@ -11334,9 +11501,9 @@ function useConnectorPlugin({
invalidateResolution("getEntityRecord", ["root", "site"]);
setIsExpanded(true);
createSuccessNotice(
- (0, import_i18n4.sprintf)(
+ (0, import_i18n6.sprintf)(
/* translators: %s: Name of the connector (e.g. "OpenAI"). */
- (0, import_i18n4.__)("Plugin for %s activated successfully."),
+ (0, import_i18n6.__)("Plugin for %s activated successfully."),
connectorName
),
{
@@ -11346,9 +11513,9 @@ function useConnectorPlugin({
);
} catch {
createErrorNotice(
- (0, import_i18n4.sprintf)(
+ (0, import_i18n6.sprintf)(
/* translators: %s: Name of the connector (e.g. "OpenAI"). */
- (0, import_i18n4.__)("Failed to activate plugin for %s."),
+ (0, import_i18n6.__)("Failed to activate plugin for %s."),
connectorName
),
{
@@ -11377,23 +11544,23 @@ function useConnectorPlugin({
};
const getButtonLabel = () => {
if (isBusy) {
- return pluginStatus === "not-installed" ? (0, import_i18n4.__)("Installing\u2026") : (0, import_i18n4.__)("Activating\u2026");
+ return pluginStatus === "not-installed" ? (0, import_i18n6.__)("Installing\u2026") : (0, import_i18n6.__)("Activating\u2026");
}
if (isExpanded) {
- return (0, import_i18n4.__)("Cancel");
+ return (0, import_i18n6.__)("Cancel");
}
if (isConnected) {
- return (0, import_i18n4.__)("Edit");
+ return (0, import_i18n6.__)("Edit");
}
switch (pluginStatus) {
case "checking":
- return (0, import_i18n4.__)("Checking\u2026");
+ return (0, import_i18n6.__)("Checking\u2026");
case "not-installed":
- return (0, import_i18n4.__)("Install");
+ return (0, import_i18n6.__)("Install");
case "inactive":
- return (0, import_i18n4.__)("Activate");
+ return (0, import_i18n6.__)("Activate");
case "active":
- return (0, import_i18n4.__)("Set up");
+ return (0, import_i18n6.__)("Set up");
}
};
const saveApiKey = async (apiKey) => {
@@ -11427,7 +11594,7 @@ function useConnectorPlugin({
const credentials = record?.[settingName];
if (!credentials?.username || !credentials?.password) {
throw new Error(
- (0, import_i18n4.__)("It was not possible to save these credentials.")
+ (0, import_i18n6.__)("It was not possible to save these credentials.")
);
}
setConnectedState(true);
@@ -11689,21 +11856,21 @@ var ConnectedBadge = () => /* @__PURE__ */ React.createElement(
whiteSpace: "nowrap"
}
},
- (0, import_i18n5.__)("Connected")
+ (0, import_i18n7.__)("Connected")
);
var PluginDirectoryLink = ({ slug }) => /* @__PURE__ */ React.createElement(
Link,
{
- href: (0, import_i18n5.sprintf)(
+ href: (0, import_i18n7.sprintf)(
/* translators: %s: plugin slug. */
- (0, import_i18n5.__)("https://wordpress.org/plugins/%s/"),
+ (0, import_i18n7.__)("https://wordpress.org/plugins/%s/"),
slug
),
openInNewTab: true
},
- (0, import_i18n5.__)("Learn more")
+ (0, import_i18n7.__)("Learn more")
);
-var UnavailableActionBadge = () => /* @__PURE__ */ React.createElement(Badge, null, (0, import_i18n5.__)("Not available"));
+var UnavailableActionBadge = () => /* @__PURE__ */ React.createElement(Badge, null, (0, import_i18n7.__)("Not available"));
function ConnectorActionArea({
isConnected,
showUnavailableBadge,
@@ -11770,7 +11937,7 @@ function ApiKeyConnector({
});
const isExternallyConfigured = keySource === "env" || keySource === "constant";
const showUnavailableBadge = pluginStatus === "not-installed" && canInstallPlugins === false || pluginStatus === "inactive" && canActivatePlugins === false;
- const actionButtonRef = (0, import_element32.useRef)(null);
+ const actionButtonRef = (0, import_element34.useRef)(null);
return /* @__PURE__ */ React.createElement(
ConnectorItem,
{
@@ -11850,7 +12017,7 @@ function ApplicationPasswordConnector({
initialIsConnected: auth?.isConnected
});
const isExternallyConfigured = keySource === "env" || keySource === "constant";
- const actionButtonRef = (0, import_element32.useRef)(null);
+ const actionButtonRef = (0, import_element34.useRef)(null);
const showUnavailableBadge = pluginStatus === "not-installed" && canInstallPlugins === false || pluginStatus === "inactive" && canActivatePlugins === false;
return /* @__PURE__ */ React.createElement(
ConnectorItem,
@@ -11963,15 +12130,15 @@ for (const c of connectorDataValues) {
}
}
function AiPluginCallout() {
- const [isBusy, setIsBusy] = (0, import_element33.useState)(false);
- const [justActivated, setJustActivated] = (0, import_element33.useState)(false);
- const actionButtonRef = (0, import_element33.useRef)(null);
- (0, import_element33.useEffect)(() => {
+ const [isBusy, setIsBusy] = (0, import_element35.useState)(false);
+ const [justActivated, setJustActivated] = (0, import_element35.useState)(false);
+ const actionButtonRef = (0, import_element35.useRef)(null);
+ (0, import_element35.useEffect)(() => {
if (justActivated) {
actionButtonRef.current?.focus();
}
}, [justActivated]);
- const initialHasConnectedProvider = (0, import_element33.useRef)(
+ const initialHasConnectedProvider = (0, import_element35.useRef)(
connectorDataValues.some(
(c) => c.type === "ai_provider" && c.authentication.method === "api_key" && c.authentication.isConnected
)
@@ -12037,14 +12204,14 @@ function AiPluginCallout() {
);
setJustActivated(true);
createSuccessNotice(
- (0, import_i18n6.__)("AI plugin installed and activated successfully."),
+ (0, import_i18n8.__)("AI plugin installed and activated successfully."),
{
id: "ai-plugin-install-success",
type: "snackbar"
}
);
} catch {
- createErrorNotice((0, import_i18n6.__)("Failed to install the AI plugin."), {
+ createErrorNotice((0, import_i18n8.__)("Failed to install the AI plugin."), {
id: "ai-plugin-install-error",
type: "snackbar"
});
@@ -12062,12 +12229,12 @@ function AiPluginCallout() {
{ throwOnError: true }
);
setJustActivated(true);
- createSuccessNotice((0, import_i18n6.__)("AI plugin activated successfully."), {
+ createSuccessNotice((0, import_i18n8.__)("AI plugin activated successfully."), {
id: "ai-plugin-activate-success",
type: "snackbar"
});
} catch {
- createErrorNotice((0, import_i18n6.__)("Failed to activate the AI plugin."), {
+ createErrorNotice((0, import_i18n8.__)("Failed to activate the AI plugin."), {
id: "ai-plugin-activate-error",
type: "snackbar"
});
@@ -12093,36 +12260,36 @@ function AiPluginCallout() {
const hideButtons = pluginStatus === "not-installed" && canInstallPlugins === false;
const getMessage = () => {
if (isJustConnected) {
- return (0, import_i18n6.__)(
+ return (0, import_i18n8.__)(
"The <strong>AI plugin</strong> is ready to use. You can use it to generate featured images, alt text, titles, excerpts and more. <a>Learn more</a>"
);
}
if (isActiveNoProvider) {
- return (0, import_i18n6.__)(
+ return (0, import_i18n8.__)(
"The <strong>AI plugin</strong> is installed. Connect an AI provider below to generate featured images, alt text, titles, excerpts, and more. <a>Learn more</a>"
);
}
- return (0, import_i18n6.__)(
+ return (0, import_i18n8.__)(
"The <strong>AI plugin</strong> can use your AI connectors to generate featured images, alt text, titles, excerpts and more. <a>Learn more</a>"
);
};
const getPrimaryButtonProps = () => {
if (pluginStatus === "not-installed") {
return {
- label: isBusy ? (0, import_i18n6.__)("Installing\u2026") : (0, import_i18n6.__)("Install the AI plugin"),
+ label: isBusy ? (0, import_i18n8.__)("Installing\u2026") : (0, import_i18n8.__)("Install the AI plugin"),
disabled: isBusy,
onClick: isBusy ? void 0 : installPlugin
};
}
return {
- label: isBusy ? (0, import_i18n6.__)("Activating\u2026") : (0, import_i18n6.__)("Activate the AI plugin"),
+ label: isBusy ? (0, import_i18n8.__)("Activating\u2026") : (0, import_i18n8.__)("Activate the AI plugin"),
disabled: isBusy,
onClick: isBusy ? void 0 : activatePlugin
};
};
- return /* @__PURE__ */ React.createElement("div", { className: "ai-plugin-callout" }, /* @__PURE__ */ React.createElement("div", { className: "ai-plugin-callout__content" }, /* @__PURE__ */ React.createElement("p", null, (0, import_element33.createInterpolateElement)(getMessage(), {
+ return /* @__PURE__ */ React.createElement("div", { className: "ai-plugin-callout" }, /* @__PURE__ */ React.createElement("div", { className: "ai-plugin-callout__content" }, /* @__PURE__ */ React.createElement("p", null, (0, import_element35.createInterpolateElement)(getMessage(), {
strong: /* @__PURE__ */ React.createElement("strong", null),
- // @ts-ignore children are injected by createInterpolateElement at runtime.
+ // @ts-expect-error `children` is injected by `createInterpolateElement` at runtime.
a: /* @__PURE__ */ React.createElement(import_components3.ExternalLink, { href: AI_PLUGIN_URL })
})), !hideButtons && (showInstallActivate ? /* @__PURE__ */ React.createElement(
import_components3.Button,
@@ -12145,7 +12312,7 @@ function AiPluginCallout() {
page: AI_PLUGIN_PAGE_SLUG
})
},
- (0, import_i18n6.__)("Control features in the AI plugin")
+ (0, import_i18n8.__)("Control features in the AI plugin")
))), /* @__PURE__ */ React.createElement(WpLogoDecoration, null));
}
@@ -12202,8 +12369,8 @@ function ConnectorsPage() {
return /* @__PURE__ */ React.createElement(
page_default,
{
- title: (0, import_i18n7.__)("Connectors"),
- subTitle: (0, import_i18n7.__)(
+ title: (0, import_i18n9.__)("Connectors"),
+ subTitle: (0, import_i18n9.__)(
"All of your API keys and credentials are stored here and shared across plugins. Configure once and use everywhere."
)
},
@@ -12218,9 +12385,9 @@ function ConnectorsPage() {
intent: "info",
className: "connectors-page__file-mods-notice"
},
- /* @__PURE__ */ React.createElement(notice_exports.Description, null, isFileModDisabled ? (0, import_i18n7.__)(
+ /* @__PURE__ */ React.createElement(notice_exports.Description, null, isFileModDisabled ? (0, import_i18n9.__)(
"Plugins cannot be installed here due to your site configuration. Install them manually using your normal deployment workflow."
- ) : (0, import_i18n7.__)(
+ ) : (0, import_i18n9.__)(
"You do not have permission to install plugins. Please ask a site administrator to install them for you."
))
),
@@ -12231,7 +12398,7 @@ function ConnectorsPage() {
spacing: 3,
style: { maxWidth: 480 }
},
- /* @__PURE__ */ React.createElement(import_components4.__experimentalVStack, { alignment: "center", spacing: 2 }, /* @__PURE__ */ React.createElement(import_components4.__experimentalHeading, { level: 2, size: 15 }, (0, import_i18n7.__)("No connectors yet")), /* @__PURE__ */ React.createElement(import_components4.__experimentalText, { size: 12 }, (0, import_i18n7.__)(
+ /* @__PURE__ */ React.createElement(import_components4.__experimentalVStack, { alignment: "center", spacing: 2 }, /* @__PURE__ */ React.createElement(import_components4.__experimentalHeading, { level: 2, size: 15 }, (0, import_i18n9.__)("No connectors yet")), /* @__PURE__ */ React.createElement(import_components4.__experimentalText, { size: 12 }, (0, import_i18n9.__)(
"Connectors appear here when you install plugins that use external services. Each plugin registers the API keys it needs, and you manage them all in one place."
))),
/* @__PURE__ */ React.createElement(
@@ -12241,7 +12408,7 @@ function ConnectorsPage() {
href: "plugin-install.php",
__next40pxDefaultSize: true
},
- (0, import_i18n7.__)("Learn more")
+ (0, import_i18n9.__)("Learn more")
)
) : /* @__PURE__ */ React.createElement(import_components4.__experimentalVStack, { spacing: 3 }, /* @__PURE__ */ React.createElement(AiPluginCallout, null), /* @__PURE__ */ React.createElement(import_components4.__experimentalVStack, { spacing: 3, role: "list" }, connectors.map(
(connector) => {
@@ -12263,8 +12430,8 @@ function ConnectorsPage() {
return null;
}
))),
- canInstallPlugins && !isFileModDisabled && /* @__PURE__ */ React.createElement("p", null, (0, import_element34.createInterpolateElement)(
- (0, import_i18n7.__)(
+ canInstallPlugins && !isFileModDisabled && /* @__PURE__ */ React.createElement("p", null, (0, import_element36.createInterpolateElement)(
+ (0, import_i18n9.__)(
"If the connector you need is not listed, <a>search the plugin directory</a> to see if a connector is available."
),
{
diff --git a/wp-includes/build/routes/connectors-home/content.min.asset.php b/wp-includes/build/routes/connectors-home/content.min.asset.php
index 666c2ec303..ebf36d49ca 100644
--- a/wp-includes/build/routes/connectors-home/content.min.asset.php
+++ b/wp-includes/build/routes/connectors-home/content.min.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-theme', 'wp-url'), 'module_dependencies' => array(array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/connectors', 'import' => 'static'), array('id' => '@wordpress/route', 'import' => 'static')), 'version' => '22188cb77ae78d025593');
\ No newline at end of file
+<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-theme', 'wp-url'), 'module_dependencies' => array(array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/connectors', 'import' => 'static'), array('id' => '@wordpress/route', 'import' => 'static')), 'version' => '5dd79b91fcc9e57d6786');
\ No newline at end of file
diff --git a/wp-includes/build/routes/connectors-home/content.min.js b/wp-includes/build/routes/connectors-home/content.min.js
index 3f51fd2690..a126dc05f9 100644
--- a/wp-includes/build/routes/connectors-home/content.min.js
+++ b/wp-includes/build/routes/connectors-home/content.min.js
@@ -1,4 +1,4 @@
-var wf=Object.create;var _r=Object.defineProperty;var vf=Object.getOwnPropertyDescriptor;var _f=Object.getOwnPropertyNames;var yf=Object.getPrototypeOf,xf=Object.prototype.hasOwnProperty;var Re=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),At=(e,t)=>{for(var o in t)_r(e,o,{get:t[o],enumerable:!0})},Rf=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of _f(t))!xf.call(e,r)&&r!==o&&_r(e,r,{get:()=>t[r],enumerable:!(n=vf(t,r))||n.enumerable});return e};var h=(e,t,o)=>(o=e!=null?wf(yf(e)):{},Rf(t||!e||!e.__esModule?_r(o,"default",{value:e,enumerable:!0}):o,e));var Ot=Re((g0,Gs)=>{Gs.exports=window.wp.i18n});var de=Re((h0,Ks)=>{Ks.exports=window.wp.element});var z=Re((w0,qs)=>{qs.exports=window.React});var Q=Re((E0,$s)=>{$s.exports=window.ReactJSXRuntime});var Mt=Re((Ah,Ta)=>{Ta.exports=window.ReactDOM});var Mc=Re(Ic=>{"use strict";var wo=z();function Tm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var km=typeof Object.is=="function"?Object.is:Tm,Pm=wo.useState,Cm=wo.useEffect,Am=wo.useLayoutEffect,Om=wo.useDebugValue;function Nm(e,t){var o=t(),n=Pm({inst:{value:o,getSnapshot:t}}),r=n[0].inst,i=n[1];return Am(function(){r.value=o,r.getSnapshot=t,ri(r)&&i({inst:r})},[e,o,t]),Cm(function(){return ri(r)&&i({inst:r}),e(function(){ri(r)&&i({inst:r})})},[e]),Om(o),o}function ri(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!km(e,o)}catch{return!0}}function Lm(e,t){return t()}var Im=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Lm:Nm;Ic.useSyncExternalStore=wo.useSyncExternalStore!==void 0?wo.useSyncExternalStore:Im});var ii=Re((w1,Bc)=>{"use strict";Bc.exports=Mc()});var zc=Re(Hc=>{"use strict";var Dn=z(),Mm=ii();function Bm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hm=typeof Object.is=="function"?Object.is:Bm,zm=Mm.useSyncExternalStore,Dm=Dn.useRef,jm=Dn.useEffect,Fm=Dn.useMemo,Vm=Dn.useDebugValue;Hc.useSyncExternalStoreWithSelector=function(e,t,o,n,r){var i=Dm(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Fm(function(){function d(m){if(!c){if(c=!0,l=m,m=n(m),r!==void 0&&s.hasValue){var u=s.value;if(r(u,m))return f=u}return f=m}if(u=f,Hm(l,m))return u;var g=n(m);return r!==void 0&&r(u,g)?(l=m,u):(l=m,f=g)}var c=!1,l,f,p=o===void 0?null:o;return[function(){return d(t())},p===null?void 0:function(){return d(p())}]},[t,o,n,r]);var a=zm(e,i[0],i[1]);return jm(function(){s.hasValue=!0,s.value=a},[a]),Vm(a),a}});var jc=Re((_1,Dc)=>{"use strict";Dc.exports=zc()});var $t=Re((X2,md)=>{md.exports=window.wp.primitives});var Rd=Re((g4,xd)=>{xd.exports=window.wp.theme});var Qi=Re((b4,Sd)=>{Sd.exports=window.wp.privateApis});var on=Re((q5,Au)=>{Au.exports=window.wp.components});var rn=Re((a3,zu)=>{zu.exports=window.wp.data});var mr=Re((c3,Du)=>{Du.exports=window.wp.coreData});var Hs=Re((u3,Fu)=>{Fu.exports=window.wp.notices});var Wu=Re((f3,Vu)=>{Vu.exports=window.wp.url});function Xs(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=Xs(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Sf(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Xs(e))&&(n&&(n+=" "),n+=t);return n}var $=Sf;var ad=h(de(),1);var Ef=h(z(),1),Mo={...Ef};var Qs=h(z(),1),Zs={};function Se(e,t){let o=Qs.useRef(Zs);return o.current===Zs&&(o.current=e(t)),o}var yr=Mo.useInsertionEffect,Tf=yr&&yr!==Mo.useLayoutEffect?yr:e=>e();function Y(e){let t=Se(kf).current;return t.next=e,Tf(t.effect),t.trampoline}function kf(){let e={next:void 0,callback:Pf,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Pf(){}var Js=h(z(),1),Cf=()=>{},D=typeof document<"u"?Js.useLayoutEffect:Cf;var hn=h(z(),1),Af=hn.createContext(void 0);function so(){return hn.useContext(Af)?.direction??"ltr"}function Of(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set("code",n.toString()),r.forEach(s=>i.searchParams.append("args[]",s)),`${t} error #${n}; visit ${i} for the full message.`}}var Nf=Of("https://base-ui.com/production-error","Base UI"),Pe=Nf;var Wt=h(z(),1);function xr(e,t,o,n){let r=Se(ta).current;return Lf(r,e,t,o,n)&&oa(r,[e,t,o,n]),r.callback}function ea(e){let t=Se(ta).current;return If(t,e)&&oa(t,e),t.callback}function ta(){return{callback:null,cleanup:null,refs:[]}}function Lf(e,t,o,n,r){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==n||e.refs[3]!==r}function If(e,t){return e.refs.length!==t.length||e.refs.some((o,n)=>o!==t[n])}function oa(e,t){if(e.refs=t,t.every(o=>o==null)){e.callback=null;return}e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),o!=null){let n=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=i(o);typeof s=="function"&&(n[r]=s);break}case"object":{i.current=o;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=n[r];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var ra=h(z(),1);var na=h(z(),1),Mf=parseInt(na.version,10);function ao(e){return Mf>=e}function Rr(e){if(!ra.isValidElement(e))return null;let t=e,o=t.props;return(ao(19)?o?.ref:t.ref)??null}function Bo(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Nt(){}var I0=Object.freeze([]),be=Object.freeze({});function ia(e,t){let o={};for(let n in e){let r=e[n];if(t?.hasOwnProperty(n)){let i=t[n](r);i!=null&&Object.assign(o,i);continue}r===!0?o[`data-${n.toLowerCase()}`]="":r&&(o[`data-${n.toLowerCase()}`]=r.toString())}return o}function sa(e,t){return typeof e=="function"?e(t):e}function aa(e,t){return typeof e=="function"?e(t):e}var Sr={};function ye(e,t,o,n,r){if(!o&&!n&&!r&&!e)return wn(t);let i=wn(e);return t&&(i=Ho(i,t)),o&&(i=Ho(i,o)),n&&(i=Ho(i,n)),r&&(i=Ho(i,r)),i}function ca(e){if(e.length===0)return Sr;if(e.length===1)return wn(e[0]);let t=wn(e[0]);for(let o=1;o<e.length;o+=1)t=Ho(t,e[o]);return t}function wn(e){return Er(e)?{...da(e,Sr)}:Bf(e)}function Ho(e,t){return Er(t)?da(t,e):Hf(e,t)}function Bf(e){let t={...e};for(let o in t){let n=t[o];la(o,n)&&(t[o]=ua(n))}return t}function Hf(e,t){if(!t)return e;for(let o in t){let n=t[o];switch(o){case"style":{e[o]=Bo(e.style,n);break}case"className":{e[o]=Tr(e.className,n);break}default:la(o,n)?e[o]=zf(e[o],n):e[o]=n}}return e}function la(e,t){let o=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2);return o===111&&n===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function Er(e){return typeof e=="function"}function da(e,t){return Er(e)?e(t):e??Sr}function zf(e,t){return t?e?(...o)=>{let n=o[0];if(fa(n)){let i=n;zo(i);let s=t(...o);return i.baseUIHandlerPrevented||e?.(...o),s}let r=t(...o);return e?.(...o),r}:ua(t):e}function ua(e){return e&&((...t)=>{let o=t[0];return fa(o)&&zo(o),e(...t)})}function zo(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Tr(e,t){return t?e?t+" "+e:t:e}function fa(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var kr=h(z(),1);function Ce(e,t,o={}){let n=t.render,r=Df(t,o);if(o.enabled===!1)return null;let i=o.state??be;return Vf(e,n,r,i)}function Df(e,t={}){let{className:o,style:n,render:r}=e,{state:i=be,ref:s,props:a,stateAttributesMapping:d,enabled:c=!0}=t,l=c?sa(o,i):void 0,f=c?aa(n,i):void 0,p=c?ia(i,d):be,m=c&&a?jf(a):void 0,u=c?Bo(p,m)??{}:be;return typeof document<"u"&&(c?Array.isArray(s)?u.ref=ea([u.ref,Rr(r),...s]):u.ref=xr(u.ref,Rr(r),s):xr(null,null)),c?(l!==void 0&&(u.className=Tr(u.className,l)),f!==void 0&&(u.style=Bo(u.style,f)),u):be}function jf(e){return Array.isArray(e)?ca(e):ye(void 0,e)}var Ff=Symbol.for("react.lazy");function Vf(e,t,o,n){if(t){if(typeof t=="function")return t(o,n);let r=ye(o,t.props);r.ref=o.ref;let i=t;return i?.$$typeof===Ff&&(i=Wt.Children.toArray(t)[0]),Wt.cloneElement(i,r)}if(e&&typeof e=="string")return Wf(e,o);throw new Error(Pe(8))}function Wf(e,t){return e==="button"?(0,kr.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,kr.createElement)("img",{alt:"",...t,key:t.key}):Wt.createElement(e,t)}var vn=h(z(),1);var pa=0;function Yf(e,t="mui"){let[o,n]=vn.useState(e),r=e||o;return vn.useEffect(()=>{o==null&&(pa+=1,n(`${t}-${pa}`))},[o,t]),r}var ma=Mo.useId;function Lt(e,t){if(ma!==void 0){let o=ma();return e??(t?`${t}-${o}`:o)}return Yf(e,t)}function ga(e){return Lt(e,"base-ui")}var U={};At(U,{cancelOpen:()=>wp,chipRemovePress:()=>ep,clearPress:()=>$f,closePress:()=>Qf,closeWatcher:()=>up,decrementPress:()=>np,disabled:()=>_p,drag:()=>gp,escapeKey:()=>dp,focusOut:()=>lp,imperativeAction:()=>Rp,incrementPress:()=>op,initial:()=>xp,inputBlur:()=>sp,inputChange:()=>rp,inputClear:()=>ip,inputPaste:()=>ap,inputPress:()=>cp,itemPress:()=>Zf,keyboard:()=>pp,linkPress:()=>Jf,listNavigation:()=>fp,missing:()=>yp,none:()=>Uf,outsidePress:()=>qf,pointer:()=>mp,scrub:()=>hp,siblingOpen:()=>vp,swipe:()=>Sp,trackPress:()=>tp,triggerFocus:()=>Kf,triggerHover:()=>Xf,triggerPress:()=>Gf,wheel:()=>bp,windowResize:()=>Ep});var Uf="none",Gf="trigger-press",Xf="trigger-hover",Kf="trigger-focus",qf="outside-press",Zf="item-press",Qf="close-press",Jf="link-press",$f="clear-press",ep="chip-remove-press",tp="track-press",op="increment-press",np="decrement-press",rp="input-change",ip="input-clear",sp="input-blur",ap="input-paste",cp="input-press",lp="focus-out",dp="escape-key",up="close-watcher",fp="list-navigation",pp="keyboard",mp="pointer",gp="drag",bp="wheel",hp="scrub",wp="cancel-open",vp="sibling-open",_p="disabled",yp="missing",xp="initial",Rp="imperative-action",Sp="swipe",Ep="window-resize";function ee(e,t,o,n){let r=!1,i=!1,s=n??be;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){i=!0},get isCanceled(){return r},get isPropagationAllowed(){return i},trigger:o,...s}}var Cr=h(z(),1);var ba=h(z(),1),Tp=[];function co(e){ba.useEffect(e,Tp)}var _n=null,ah=globalThis.requestAnimationFrame,Pr=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let o=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let r=0;r<o.length;r+=1)o[r]?.(t)};request(t){let o=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(t){let o=t-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}},yn=new Pr,ft=class e{static create(){return new e}static request(t){return yn.request(t)}static cancel(t){return yn.cancel(t)}currentId=_n;request(t){this.cancel(),this.currentId=yn.request(()=>{this.currentId=_n,t()})}cancel=()=>{this.currentId!==_n&&(yn.cancel(this.currentId),this.currentId=_n)};disposeEffect=()=>this.cancel};function lo(){let e=Se(ft.create).current;return co(e.disposeEffect),e}function ha(e,t=!1,o=!1){let[n,r]=Cr.useState(e&&t?"idle":void 0),[i,s]=Cr.useState(e);return e&&!i&&(s(!0),r("starting")),!e&&i&&n!=="ending"&&!o&&r("ending"),!e&&!i&&n==="ending"&&r(void 0),D(()=>{if(!e&&i&&n!=="ending"&&o){let a=ft.request(()=>{r("ending")});return()=>{ft.cancel(a)}}},[e,i,n,o]),D(()=>{if(!e||t)return;let a=ft.request(()=>{r(void 0)});return()=>{ft.cancel(a)}},[t,e]),D(()=>{if(!e||!t)return;e&&i&&n!=="idle"&&r("starting");let a=ft.request(()=>{r("idle")});return()=>{ft.cancel(a)}},[t,e,i,n]),{mounted:i,setMounted:s,transitionStatus:n}}var Yt=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),kp={[Yt.startingStyle]:""},Pp={[Yt.endingStyle]:""},wa={transitionStatus(e){return e==="starting"?kp:e==="ending"?Pp:null}};var po=h(z(),1);function xn(){return typeof window<"u"}function Gt(e){return Rn(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Rn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rn(e){return xn()?e instanceof Node||e instanceof ge(e).Node:!1}function V(e){return xn()?e instanceof Element||e instanceof ge(e).Element:!1}function we(e){return xn()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function uo(e){return!xn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function fo(e){let{overflow:t,overflowX:o,overflowY:n,display:r}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&r!=="inline"&&r!=="contents"}function va(e){return/^(table|td|th)$/.test(Gt(e))}function Do(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Cp=/transform|translate|scale|rotate|perspective|filter/,Ap=/paint|layout|strict|content/,Ut=e=>!!e&&e!=="none",Ar;function Sn(e){let t=V(e)?Ae(e):e;return Ut(t.transform)||Ut(t.translate)||Ut(t.scale)||Ut(t.rotate)||Ut(t.perspective)||!En()&&(Ut(t.backdropFilter)||Ut(t.filter))||Cp.test(t.willChange||"")||Ap.test(t.contain||"")}function _a(e){let t=tt(e);for(;we(t)&&!nt(t);){if(Sn(t))return t;if(Do(t))return null;t=tt(t)}return null}function En(){return Ar==null&&(Ar=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ar}function nt(e){return/^(html|body|#document)$/.test(Gt(e))}function Ae(e){return ge(e).getComputedStyle(e)}function jo(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tt(e){if(Gt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||uo(e)&&e.host||ot(e);return uo(t)?t.host:t}function ya(e){let t=tt(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:we(t)&&fo(t)?t:ya(t)}function It(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let r=ya(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=ge(r);if(i){let a=Tn(s);return t.concat(s,s.visualViewport||[],fo(r)?r:[],a&&o?It(a):[])}else return t.concat(r,It(r,[],o))}function Tn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var kn=h(z(),1),Op=kn.createContext(void 0);function xa(e=!1){let t=kn.useContext(Op);if(t===void 0&&!e)throw new Error(Pe(16));return t}var Ra=h(z(),1);function Sa(e){let{focusableWhenDisabled:t,disabled:o,composite:n=!1,tabIndex:r=0,isNativeButton:i}=e,s=n&&t!==!1,a=n&&t===!1;return{props:Ra.useMemo(()=>{let c={onKeyDown(l){o&&t&&l.key!=="Tab"&&l.preventDefault()}};return n||(c.tabIndex=r,!i&&o&&(c.tabIndex=t?r:-1)),(i&&(t||s)||!i&&o)&&(c["aria-disabled"]=o),i&&(!t||a)&&(c.disabled=o),c},[n,o,t,s,a,i,r])}}function Ea(e={}){let{disabled:t=!1,focusableWhenDisabled:o,tabIndex:n=0,native:r=!0,composite:i}=e,s=po.useRef(null),a=xa(!0),d=i??a!==void 0,{props:c}=Sa({focusableWhenDisabled:o,disabled:t,composite:d,tabIndex:n,isNativeButton:r}),l=po.useCallback(()=>{let m=s.current;Or(m)&&d&&t&&c.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,c.disabled,d]);D(l,[l]);let f=po.useCallback((m={})=>{let{onClick:u,onMouseDown:g,onKeyUp:v,onKeyDown:_,onPointerDown:w,...y}=m;return ye({onClick(b){if(t){b.preventDefault();return}u?.(b)},onMouseDown(b){t||g?.(b)},onKeyDown(b){if(t||(zo(b),_?.(b),b.baseUIHandlerPrevented))return;let S=b.target===b.currentTarget,x=b.currentTarget,E=Or(x),T=!r&&Np(x),k=S&&(r?E:!T),C=b.key==="Enter",j=b.key===" ",A=x.getAttribute("role"),L=A?.startsWith("menuitem")||A==="option"||A==="gridcell";if(S&&d&&j){if(b.defaultPrevented&&L)return;b.preventDefault(),T||r&&E?(x.click(),b.preventBaseUIHandler()):k&&(u?.(b),b.preventBaseUIHandler());return}k&&(!r&&(j||C)&&b.preventDefault(),!r&&C&&u?.(b))},onKeyUp(b){if(!t){if(zo(b),v?.(b),b.target===b.currentTarget&&r&&d&&Or(b.currentTarget)&&b.key===" "){b.preventDefault();return}b.baseUIHandlerPrevented||b.target===b.currentTarget&&!r&&!d&&b.key===" "&&u?.(b)}},onPointerDown(b){if(t){b.preventDefault();return}w?.(b)}},r?{type:"button"}:{role:"button"},c,y)},[t,c,d,r]),p=Y(m=>{s.current=m,l()});return{getButtonProps:f,buttonRef:p}}function Or(e){return we(e)&&e.tagName==="BUTTON"}function Np(e){return!!(e?.tagName==="A"&&e?.href)}function re(e,t,o,n){return e.addEventListener(t,o,n),()=>{e.removeEventListener(t,o,n)}}function ze(e){let t=Se(Lp,e).current;return t.next=e,D(t.effect),t}function Lp(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function xe(e){return e?.ownerDocument||document}var Ca=h(z(),1);var Pa=h(Mt(),1);function ka(e){return e==null?e:"current"in e?e.current:e}function mo(e,t=!1,o=!0){let n=lo();return Y((r,i=null)=>{n.cancel();let s=ka(e);if(s==null)return;let a=s,d=()=>{Pa.flushSync(r)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function c(){Promise.all(a.getAnimations().map(l=>l.finished)).then(()=>{i?.aborted||d()}).catch(()=>{if(o){i?.aborted||d();return}let l=a.getAnimations();!i?.aborted&&l.length>0&&l.some(f=>f.pending||f.playState!=="finished")&&c()})}if(t){let l=Yt.startingStyle;if(!a.hasAttribute(l)){n.request(c);return}let f=new MutationObserver(()=>{a.hasAttribute(l)||(f.disconnect(),c())});f.observe(a,{attributes:!0,attributeFilter:[l]}),i?.addEventListener("abort",()=>f.disconnect(),{once:!0});return}n.request(c)})}function Pn(e){let{enabled:t=!0,open:o,ref:n,onComplete:r}=e,i=Y(r),s=mo(n,o,!1);Ca.useEffect(()=>{if(!t)return;let a=new AbortController;return s(i,a.signal),()=>{a.abort()}},[t,o,i,s])}var Aa=h(z(),1);function Oa(e){let t=Aa.useRef(!0);t.current&&(t.current=!1,e())}var xt={};At(xt,{engine:()=>Br,env:()=>zr,os:()=>Ir,screenReader:()=>Hr});var Ir={};At(Ir,{android:()=>Ia,apple:()=>Lr,ios:()=>Nr,linux:()=>zp,mac:()=>Ma,windows:()=>Hp});function Ip(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Mp,platform:Bp,maxTouchPoints:Na}=Ip(),Xt=Mp.toLowerCase(),Kt=Bp.toLowerCase();var Nr=/^i(os$|p)/.test(Kt)||Kt==="macintel"&&Na>1,La="android",Ia=Kt===La||Xt.includes(La),Ma=!Nr&&Kt.startsWith("mac"),Hp=Kt.startsWith("win"),zp=!Ia&&/^(linux|chrome os)/.test(Kt),Lr=Ma||Nr;var Br={};At(Br,{blink:()=>jp,gecko:()=>Dp,webkit:()=>Mr});var Mr=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),Dp=!Mr&&Xt.includes("firefox"),jp=!Mr&&Xt.includes("chrom");var Hr={};At(Hr,{voiceOver:()=>Fp});var Fp=Lr;var zr={};At(zr,{jsdom:()=>Vp});var Vp=/jsdom|happydom/.test(Xt);var Fo=0,Ye=class e{static create(){return new e}currentId=Fo;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Fo,o()},t)}isStarted(){return this.currentId!==Fo}clear=()=>{this.currentId!==Fo&&(clearTimeout(this.currentId),this.currentId=Fo)};disposeEffect=()=>this.clear};function rt(){let e=Se(Ye.create).current;return co(e.disposeEffect),e}var Oe=h(z(),1);function Ba(e){return"nativeEvent"in e}function Rt(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function Ha(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var Dr="data-base-ui-focusable";var jr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Cn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ie(e,t){if(!e||!t)return!1;let o=t.getRootNode?.();if(e.contains(t))return!0;if(o&&uo(o)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Me(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Bt(e,t){if(!V(e))return!1;let o=e;if(t.hasElement(o))return!o.hasAttribute("data-trigger-disabled");for(let[,n]of t.entries())if(ie(n,o))return!n.hasAttribute("data-trigger-disabled");return!1}function An(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let o=e;return o.target!=null&&t.contains(o.target)}function za(e){return e.matches("html,body")}function Da(e){return we(e)&&e.matches(jr)}function Fr(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${jr}`)!=null}function ja(e){if(!e||xt.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Wp(e,t){return t!=null&&!Rt(t)?0:typeof e=="function"?e():e}function St(e,t,o){let n=Wp(e,o);return typeof n=="number"?n:n?.[t]}function Vr(e){return typeof e=="function"?e():e}function On(e,t){return t||e==="click"||e==="mousedown"}function Fa(e){return e?.includes("mouse")&&e!=="mousedown"}var Va=h(Q(),1),Wa=Oe.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ye,currentIdRef:{current:null},currentContextRef:{current:null}});function Yp(e,t){e.current=t.current}function Wr(e){let{children:t,delay:o,timeoutMs:n=0}=e,r=Oe.useRef(o),i=Oe.useRef(o),s=Oe.useRef(null),a=Oe.useRef(null),d=rt();return D(()=>{if(i.current=o,!s.current){r.current=o;return}r.current={open:St(r.current,"open"),close:St(o,"close")}},[o,s,r,i]),(0,Va.jsx)(Wa.Provider,{value:Oe.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:i,currentIdRef:s,timeoutMs:n,currentContextRef:a,timeout:d}),[n,d]),children:t})}function Yr(e,t={open:!1}){let{open:o}=t,n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),i=Oe.useContext(Wa),{currentIdRef:s,delayRef:a,timeoutMs:d,initialDelayRef:c,currentContextRef:l,hasProvider:f,timeout:p}=i,[m,u]=Oe.useState(!1),g=Oe.useRef(o),v=Oe.useRef(!1);return D(()=>{g.current=o},[o]),D(()=>()=>{v.current=!0},[]),D(()=>{function _(){v.current||u(!1),l.current?.setIsInstantPhase(!1),s.current=null,l.current=null,a.current=c.current,p.clear()}if(s.current&&!o&&s.current===r){if(u(!1),d){let w=r;return p.start(d,()=>{n.select("open")||s.current&&s.current!==w||_()}),()=>{(g.current||s.current!==w)&&p.clear()}}_()}},[o,r,s,a,d,c,l,p,n]),D(()=>{if(!o)return;let _=l.current,w=s.current;p.clear(),l.current={onOpenChange:n.setOpen,setIsInstantPhase:u},s.current=r,a.current={open:0,close:St(c.current,"close")},w!==null&&w!==r?(u(!0),_?.setIsInstantPhase(!0),_?.onOpenChange(!1,ee(U.none))):(u(!1),_?.setIsInstantPhase(!1))},[o,r,n,s,a,c,l,p]),D(()=>()=>{if(s.current===r){if(l.current=null,!g.current)return;s.current=null,Yp(a,c),p.clear()}},[l,s,a,r,c,p]),Oe.useMemo(()=>({hasProvider:f,delayRef:a,isInstantPhase:m}),[f,a,m])}function it(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}var Ga=["top","right","bottom","left"];var Ht=Math.min,Be=Math.max,zt=Math.round,Wo=Math.floor,st=e=>({x:e,y:e}),Up={left:"right",right:"left",bottom:"top",top:"bottom"};function Yo(e,t,o){return Be(e,Ht(t,o))}function at(e,t){return typeof e=="function"?e(t):e}function Ee(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function Ln(e){return e==="x"?"y":"x"}function Uo(e){return e==="y"?"height":"width"}function De(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Go(e){return Ln(De(e))}function Xa(e,t,o){o===void 0&&(o=!1);let n=ct(e),r=Go(e),i=Uo(r),s=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vo(s)),[s,Vo(s)]}function Ka(e){let t=Vo(e);return[Nn(e),t,Nn(t)]}function Nn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Ya=["left","right"],Ua=["right","left"],Gp=["top","bottom"],Xp=["bottom","top"];function Kp(e,t,o){switch(e){case"top":case"bottom":return o?t?Ua:Ya:t?Ya:Ua;case"left":case"right":return t?Gp:Xp;default:return[]}}function qa(e,t,o,n){let r=ct(e),i=Kp(Ee(e),o==="start",n);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Nn)))),i}function Vo(e){let t=Ee(e);return Up[t]+e.slice(t.length)}function qp(e){return{top:0,right:0,bottom:0,left:0,...e}}function In(e){return typeof e!="number"?qp(e):{top:e,right:e,bottom:e,left:e}}function qt(e){let{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Et(e,t,o=!0){return e.filter(r=>r.parentId===t).flatMap(r=>[...!o||r.context?.open?[r]:[],...Et(e,r.id,o)])}function go(e){return`data-base-ui-${e}`}var Ue=h(z(),1),Ja=h(Mt(),1);var Za={style:{transition:"none"}};var Zp="data-base-ui-swipe-ignore",Qp="data-swipe-ignore",ww=`[${Zp}]`,vw=`[${Qp}]`;var Qa={fallbackAxisSide:"end"};var $a=h(Q(),1),Jp=Ue.createContext(null),$p=()=>Ue.useContext(Jp),em=go("portal");function Ur(e={}){let{ref:t,container:o,componentProps:n=be,elementProps:r}=e,i=Lt(),a=$p()?.portalNode,[d,c]=Ue.useState(null),[l,f]=Ue.useState(null),p=Y(v=>{v!==null&&f(v)}),m=Ue.useRef(null);D(()=>{if(o===null){m.current&&(m.current=null,f(null),c(null));return}if(i==null)return;let v=(o&&(Rn(o)?o:o.current))??a??document.body;if(v==null){m.current&&(m.current=null,f(null),c(null));return}m.current!==v&&(m.current=v,f(null),c(v))},[o,a,i]);let u=Ce("div",n,{ref:[t,p],props:[{id:i,[em]:""},r]});return{portalNode:l,portalSubtree:d&&u?Ja.createPortal(u,d):null}}var Zt=h(z(),1);function ec(){let e=new Map;return{emit(t,o){e.get(t)?.forEach(n=>n(o))},on(t,o){e.has(t)||e.set(t,new Set),e.get(t).add(o)},off(t,o){e.get(t)?.delete(o)}}}var tm=h(Q(),1),om=Zt.createContext(null),nm=Zt.createContext(null),bo=()=>Zt.useContext(om)?.id||null,Dt=e=>{let t=Zt.useContext(nm);return e??t};var je=h(z(),1);function rm(e,t){let o=null,n=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){let i=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",d=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",c=i.width,l=i.height,f=i.x,p=i.y;return o==null&&t.x&&s&&(o=i.x-t.x),n==null&&t.y&&a&&(n=i.y-t.y),f-=o||0,p-=n||0,c=0,l=0,!r||d?(c=t.axis==="y"?i.width:0,l=t.axis==="x"?i.height:0,f=s&&t.x!=null?t.x:f,p=a&&t.y!=null?t.y:p):r&&!d&&(l=t.axis==="x"?i.height:l,c=t.axis==="y"?i.width:c),r=!0,{width:c,height:l,x:f,y:p,top:p,right:f+c,bottom:p+l,left:f}}}}function tc(e){return e!=null&&e.clientX!=null}function Gr(e,t={}){let{enabled:o=!0,axis:n="both"}=t,r="rootStore"in e?e.rootStore:e,i=r.useState("open"),s=r.useState("floatingElement"),a=r.useState("domReferenceElement"),d=r.context.dataRef,c=je.useRef(!1),l=je.useRef(null),[f,p]=je.useState(),[m,u]=je.useState([]),g=Y(b=>{r.set("positionReference",b)}),v=Y((b,S,x)=>{c.current||d.current.openEvent&&!tc(d.current.openEvent)||r.set("positionReference",rm(x??a,{x:b,y:S,axis:n,dataRef:d,pointerType:f}))}),_=Y(b=>{i?l.current||(v(b.clientX,b.clientY,b.currentTarget),u([])):v(b.clientX,b.clientY,b.currentTarget)}),w=Rt(f)?s:i;je.useEffect(()=>{if(!o){g(a);return}if(!w)return;function b(){l.current?.(),l.current=null}let S=ge(s);function x(E){let T=Me(E);ie(s,T)?b():v(E.clientX,E.clientY)}return!d.current.openEvent||tc(d.current.openEvent)?l.current=re(S,"mousemove",x):g(a),b},[w,o,s,d,a,r,v,g,m]),je.useEffect(()=>()=>{r.set("positionReference",null)},[r]),je.useEffect(()=>{o&&!s&&(c.current=!1)},[o,s]),je.useEffect(()=>{!o&&i&&(c.current=!0)},[o,i]);let y=je.useMemo(()=>{function b(S){p(S.pointerType)}return{onPointerDown:b,onPointerEnter:b,onMouseMove:_,onMouseEnter:_}},[_]);return je.useMemo(()=>o?{reference:y,trigger:y}:{},[o,y])}var Fe=h(z(),1);function im(){return!1}function sm(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Xr(e,t={}){let{enabled:o=!0,escapeKey:n=!0,outsidePress:r=!0,outsidePressEvent:i="sloppy",referencePress:s=im,bubbles:a,externalTree:d}=t,c="rootStore"in e?e.rootStore:e,l=c.useState("open"),f=c.useState("floatingElement"),{dataRef:p}=c.context,m=Dt(d),u=Y(typeof r=="function"?r:()=>!1),g=typeof r=="function"?u:r,v=g!==!1,_=Y(()=>i),{escapeKey:w,outsidePress:y}=sm(a),b=Fe.useRef(!1),S=Fe.useRef(!1),x=Fe.useRef(!1),E=Fe.useRef(!1),T=Fe.useRef(""),k=Fe.useRef(null),C=rt(),j=rt(),A=Y(()=>{j.clear(),p.current.insideReactTree=!1}),L=Y(W=>{let oe=p.current.floatingContext?.nodeId;return(m?Et(m.nodesRef.current,oe):[]).some(se=>se.context?.open&&!se.context.dataRef.current[W])}),I=Y(W=>An(W,c.select("floatingElement"))||An(W,c.select("domReferenceElement"))),R=Y(W=>{s()&&c.setOpen(!1,ee(U.triggerPress,W.nativeEvent))}),N=Y(W=>{if(!l||!o||!n||W.key!=="Escape"||E.current||!w&&L("__escapeKeyBubbles"))return;let oe=Ba(W)?W.nativeEvent:W,te=ee(U.escapeKey,oe);c.setOpen(!1,te),te.isCanceled||W.preventDefault(),!w&&!te.isPropagationAllowed&&W.stopPropagation()}),H=Y(()=>{p.current.insideReactTree=!0,j.start(0,A)}),P=Y(W=>{if(!l||!o||W.button!==0)return;let oe=Me(W.nativeEvent);ie(c.select("floatingElement"),oe)&&(b.current||(b.current=!0,S.current=!1))}),O=Y(W=>{!l||!o||(W.defaultPrevented||W.nativeEvent.defaultPrevented)&&b.current&&(S.current=!0)});Fe.useEffect(()=>{if(!l||!o)return;p.current.__escapeKeyBubbles=w,p.current.__outsidePressBubbles=y;let W=new Ye,oe=new Ye;function te(){W.clear(),E.current=!0}function se(){W.start(xt.engine.webkit?5:0,()=>{E.current=!1})}function G(){x.current=!0,oe.start(0,()=>{x.current=!1})}function K(){b.current=!1,S.current=!1}function J(){let B=T.current,F=B==="pen"||!B?"mouse":B,he=_(),ke=typeof he=="function"?he():he;return typeof ke=="string"?ke:ke[F]}function ne(B){let F=J();return F==="intentional"&&B.type!=="click"||F==="sloppy"&&B.type==="click"}function me(B){let F=p.current.floatingContext?.nodeId,he=m&&Et(m.nodesRef.current,F).some(ke=>An(B,ke.context?.elements.floating));return I(B)||he}function le(B){if(ne(B)){B.type!=="click"&&!I(B)&&(oe.clear(),x.current=!1),A();return}if(p.current.insideReactTree){A();return}let F=Me(B),he=`[${go("inert")}]`,ke=V(F)?F.getRootNode():null,kt=Array.from((uo(ke)?ke:xe(c.select("floatingElement"))).querySelectorAll(he)),Lo=c.context.triggerElements;if(F&&(Lo.hasElement(F)||Lo.hasMatchingElement(We=>ie(We,F))))return;let _t=V(F)?F:null;for(;_t&&!nt(_t);){let We=tt(_t);if(nt(We)||!V(We))break;_t=We}if(!(kt.length&&V(F)&&!za(F)&&!ie(F,c.select("floatingElement"))&&kt.every(We=>!ie(_t,We)))){if(we(F)&&!("touches"in B)){let We=nt(F),Pt=Ae(F),Ct=/auto|scroll/,un=We||Ct.test(Pt.overflowX),fn=We||Ct.test(Pt.overflowY),pn=un&&F.clientWidth>0&&F.scrollWidth>F.clientWidth,mn=fn&&F.clientHeight>0&&F.scrollHeight>F.clientHeight,gn=Pt.direction==="rtl",ae=mn&&(gn?B.offsetX<=F.offsetWidth-F.clientWidth:B.offsetX>F.clientWidth),Ie=pn&&B.offsetY>F.clientHeight;if(ae||Ie)return}if(!me(B)){if(J()==="intentional"&&x.current){oe.clear(),x.current=!1;return}typeof g=="function"&&!g(B)||L("__outsidePressBubbles")||(c.setOpen(!1,ee(U.outsidePress,B)),A())}}}function X(B){J()!=="sloppy"||B.pointerType==="touch"||!c.select("open")||!o||I(B)||le(B)}function pe(B){if(J()!=="sloppy"||!c.select("open")||!o||I(B))return;let F=B.touches[0];F&&(k.current={startTime:Date.now(),startX:F.clientX,startY:F.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},C.start(1e3,()=>{k.current&&(k.current.dismissOnTouchEnd=!1,k.current.dismissOnMouseDown=!1)}))}function ue(B,F){let he=Me(B);if(!he)return;let ke=re(he,B.type,()=>{F(B),ke()})}function vt(B){T.current="touch",ue(B,pe)}function Te(B){C.clear(),B.type==="pointerdown"&&(T.current=B.pointerType),!(B.type==="mousedown"&&k.current&&!k.current.dismissOnMouseDown)&&ue(B,F=>{F.type==="pointerdown"?X(F):le(F)})}function Ve(B){if(!b.current)return;let F=S.current;if(K(),J()==="intentional"){if(B.type==="pointercancel"){F&&G();return}if(!me(B)){if(F){G();return}typeof g=="function"&&!g(B)||(oe.clear(),x.current=!0,A())}}}function Ke(B){if(J()!=="sloppy"||!k.current||I(B))return;let F=B.touches[0];if(!F)return;let he=Math.abs(F.clientX-k.current.startX),ke=Math.abs(F.clientY-k.current.startY),kt=Math.sqrt(he*he+ke*ke);kt>5&&(k.current.dismissOnTouchEnd=!0),kt>10&&(le(B),C.clear(),k.current=null)}function He(B){ue(B,Ke)}function no(B){J()!=="sloppy"||!k.current||I(B)||(k.current.dismissOnTouchEnd&&le(B),C.clear(),k.current=null)}function dn(B){ue(B,no)}let _e=xe(f),ro=it(n&&it(re(_e,"keydown",N),re(_e,"compositionstart",te),re(_e,"compositionend",se)),v&&it(re(_e,"click",Te,!0),re(_e,"pointerdown",Te,!0),re(_e,"pointerup",Ve,!0),re(_e,"pointercancel",Ve,!0),re(_e,"mousedown",Te,!0),re(_e,"mouseup",Ve,!0),re(_e,"touchstart",vt,!0),re(_e,"touchmove",He,!0),re(_e,"touchend",dn,!0)));return()=>{ro(),W.clear(),oe.clear(),K(),x.current=!1}},[p,f,n,v,g,l,o,w,y,N,A,_,L,I,m,c,C]),Fe.useEffect(A,[g,A]);let M=Fe.useMemo(()=>({onKeyDown:N,onPointerDown:R,onClick:R}),[N,R]),Z=Fe.useMemo(()=>({onKeyDown:N,onPointerDown:O,onMouseDown:O,onClickCapture:H,onMouseDownCapture(W){H(),P(W)},onPointerDownCapture(W){H(),P(W)},onMouseUpCapture:H,onTouchEndCapture:H,onTouchMoveCapture:H}),[N,H,P,O]);return Fe.useMemo(()=>o?{reference:M,floating:Z,trigger:M}:{},[o,M,Z])}var Ne=h(z(),1);function oc(e,t,o){let{reference:n,floating:r}=e,i=De(t),s=Go(t),a=Uo(s),d=Ee(t),c=i==="y",l=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,p=n[a]/2-r[a]/2,m;switch(d){case"top":m={x:l,y:n.y-r.height};break;case"bottom":m={x:l,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:f};break;case"left":m={x:n.x-r.width,y:f};break;default:m={x:n.x,y:n.y}}switch(ct(t)){case"start":m[s]-=p*(o&&c?-1:1);break;case"end":m[s]+=p*(o&&c?-1:1);break}return m}async function ic(e,t){var o;t===void 0&&(t={});let{x:n,y:r,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=at(t,e),u=In(m),v=a[p?f==="floating"?"reference":"floating":f],_=qt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(v)))==null||o?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:d})),w=f==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},S=qt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:y,strategy:d}):w);return{top:(_.top-S.top+u.top)/b.y,bottom:(S.bottom-_.bottom+u.bottom)/b.y,left:(_.left-S.left+u.left)/b.x,right:(S.right-_.right+u.right)/b.x}}var am=50,sc=async(e,t,o)=>{let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:ic},d=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:l,y:f}=oc(c,n,d),p=n,m=0,u={};for(let g=0;g<i.length;g++){let v=i[g];if(!v)continue;let{name:_,fn:w}=v,{x:y,y:b,data:S,reset:x}=await w({x:l,y:f,initialPlacement:n,placement:p,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:e,floating:t}});l=y??l,f=b??f,u[_]={...u[_],...S},x&&m<am&&(m++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(c=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):x.rects),{x:l,y:f}=oc(c,p,d)),g=-1)}return{x:l,y:f,placement:p,strategy:r,middlewareData:u}};var ac=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;let{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:c}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:g=!0,...v}=at(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let _=Ee(r),w=De(a),y=Ee(a)===a,b=await(d.isRTL==null?void 0:d.isRTL(c.floating)),S=p||(y||!g?[Vo(a)]:Ka(a)),x=u!=="none";!p&&x&&S.push(...qa(a,g,u,b));let E=[a,...S],T=await d.detectOverflow(t,v),k=[],C=((n=i.flip)==null?void 0:n.overflows)||[];if(l&&k.push(T[_]),f){let I=Xa(r,s,b);k.push(T[I[0]],T[I[1]])}if(C=[...C,{placement:r,overflows:k}],!k.every(I=>I<=0)){var j,A;let I=(((j=i.flip)==null?void 0:j.index)||0)+1,R=E[I];if(R&&(!(f==="alignment"?w!==De(R):!1)||C.every(P=>De(P.placement)===w?P.overflows[0]>0:!0)))return{data:{index:I,overflows:C},reset:{placement:R}};let N=(A=C.filter(H=>H.overflows[0]<=0).sort((H,P)=>H.overflows[1]-P.overflows[1])[0])==null?void 0:A.placement;if(!N)switch(m){case"bestFit":{var L;let H=(L=C.filter(P=>{if(x){let O=De(P.placement);return O===w||O==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(O=>O>0).reduce((O,M)=>O+M,0)]).sort((P,O)=>P[1]-O[1])[0])==null?void 0:L[0];H&&(N=H);break}case"initialPlacement":N=a;break}if(r!==N)return{reset:{placement:N}}}return{}}}};function nc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rc(e){return Ga.some(t=>e[t]>=0)}var cc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o,platform:n}=t,{strategy:r="referenceHidden",...i}=at(e,t);switch(r){case"referenceHidden":{let s=await n.detectOverflow(t,{...i,elementContext:"reference"}),a=nc(s,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:rc(a)}}}case"escaped":{let s=await n.detectOverflow(t,{...i,altBoundary:!0}),a=nc(s,o.floating);return{data:{escapedOffsets:a,escaped:rc(a)}}}default:return{}}}}};var lc=new Set(["left","top"]);async function cm(e,t){let{placement:o,platform:n,elements:r}=e,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Ee(o),a=ct(o),d=De(o)==="y",c=lc.has(s)?-1:1,l=i&&d?-1:1,f=at(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:u}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof u=="number"&&(m=a==="end"?u*-1:u),d?{x:m*l,y:p*c}:{x:p*c,y:m*l}}var dc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;let{x:r,y:i,placement:s,middlewareData:a}=t,d=await cm(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+d.x,y:i+d.y,data:{...d,placement:s}}}}},uc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:d={fn:_=>{let{x:w,y}=_;return{x:w,y}}},...c}=at(e,t),l={x:o,y:n},f=await i.detectOverflow(t,c),p=De(Ee(r)),m=Ln(p),u=l[m],g=l[p];if(s){let _=m==="y"?"top":"left",w=m==="y"?"bottom":"right",y=u+f[_],b=u-f[w];u=Yo(y,u,b)}if(a){let _=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=g+f[_],b=g-f[w];g=Yo(y,g,b)}let v=d.fn({...t,[m]:u,[p]:g});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[m]:s,[p]:a}}}}}},fc=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:n,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:c=!0}=at(e,t),l={x:o,y:n},f=De(r),p=Ln(f),m=l[p],u=l[f],g=at(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(d){let y=p==="y"?"height":"width",b=i.reference[p]-i.floating[y]+v.mainAxis,S=i.reference[p]+i.reference[y]-v.mainAxis;m<b?m=b:m>S&&(m=S)}if(c){var _,w;let y=p==="y"?"width":"height",b=lc.has(Ee(r)),S=i.reference[f]-i.floating[y]+(b&&((_=s.offset)==null?void 0:_[f])||0)+(b?0:v.crossAxis),x=i.reference[f]+i.reference[y]+(b?0:((w=s.offset)==null?void 0:w[f])||0)-(b?v.crossAxis:0);u<S?u=S:u>x&&(u=x)}return{[p]:m,[f]:u}}}},pc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,n;let{placement:r,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...c}=at(e,t),l=await s.detectOverflow(t,c),f=Ee(r),p=ct(r),m=De(r)==="y",{width:u,height:g}=i.floating,v,_;f==="top"||f==="bottom"?(v=f,_=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=f,v=p==="end"?"top":"bottom");let w=g-l.top-l.bottom,y=u-l.left-l.right,b=Ht(g-l[v],w),S=Ht(u-l[_],y),x=!t.middlewareData.shift,E=b,T=S;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(T=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=w),x&&!p){let C=Be(l.left,0),j=Be(l.right,0),A=Be(l.top,0),L=Be(l.bottom,0);m?T=u-2*(C!==0||j!==0?C+j:Be(l.left,l.right)):E=g-2*(A!==0||L!==0?A+L:Be(l.top,l.bottom))}await d({...t,availableWidth:T,availableHeight:E});let k=await s.getDimensions(a.floating);return u!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}};function hc(e){let t=Ae(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=we(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n,a=zt(o)!==i||zt(n)!==s;return a&&(o=i,n=s),{width:o,height:n,$:a}}function qr(e){return V(e)?e:e.contextElement}function ho(e){let t=qr(e);if(!we(t))return st(1);let o=t.getBoundingClientRect(),{width:n,height:r,$:i}=hc(t),s=(i?zt(o.width):o.width)/n,a=(i?zt(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var lm=st(0);function wc(e){let t=ge(e);return!En()||!t.visualViewport?lm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dm(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ge(e)?!1:t}function Qt(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let r=e.getBoundingClientRect(),i=qr(e),s=st(1);t&&(n?V(n)&&(s=ho(n)):s=ho(e));let a=dm(i,o,n)?wc(i):st(0),d=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,l=r.width/s.x,f=r.height/s.y;if(i){let p=ge(i),m=n&&V(n)?ge(n):n,u=p,g=Tn(u);for(;g&&n&&m!==u;){let v=ho(g),_=g.getBoundingClientRect(),w=Ae(g),y=_.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,b=_.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;d*=v.x,c*=v.y,l*=v.x,f*=v.y,d+=y,c+=b,u=ge(g),g=Tn(u)}}return qt({width:l,height:f,x:d,y:c})}function Mn(e,t){let o=jo(e).scrollLeft;return t?t.left+o:Qt(ot(e)).left+o}function vc(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Mn(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function um(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e,i=r==="fixed",s=ot(n),a=t?Do(t.floating):!1;if(n===s||a&&i)return o;let d={scrollLeft:0,scrollTop:0},c=st(1),l=st(0),f=we(n);if((f||!f&&!i)&&((Gt(n)!=="body"||fo(s))&&(d=jo(n)),f)){let m=Qt(n);c=ho(n),l.x=m.x+n.clientLeft,l.y=m.y+n.clientTop}let p=s&&!f&&!i?vc(s,d):st(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-d.scrollLeft*c.x+l.x+p.x,y:o.y*c.y-d.scrollTop*c.y+l.y+p.y}}function fm(e){return Array.from(e.getClientRects())}function pm(e){let t=ot(e),o=jo(e),n=e.ownerDocument.body,r=Be(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Be(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+Mn(e),a=-o.scrollTop;return Ae(n).direction==="rtl"&&(s+=Be(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:s,y:a}}var mc=25;function mm(e,t){let o=ge(e),n=ot(e),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,d=0;if(r){i=r.width,s=r.height;let l=En();(!l||l&&t==="fixed")&&(a=r.offsetLeft,d=r.offsetTop)}let c=Mn(n);if(c<=0){let l=n.ownerDocument,f=l.body,p=getComputedStyle(f),m=l.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,u=Math.abs(n.clientWidth-f.clientWidth-m);u<=mc&&(i-=u)}else c<=mc&&(i+=c);return{width:i,height:s,x:a,y:d}}function gm(e,t){let o=Qt(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=we(e)?ho(e):st(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=r*i.x,c=n*i.y;return{width:s,height:a,x:d,y:c}}function gc(e,t,o){let n;if(t==="viewport")n=mm(e,o);else if(t==="document")n=pm(ot(e));else if(V(t))n=gm(t,o);else{let r=wc(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return qt(n)}function _c(e,t){let o=tt(e);return o===t||!V(o)||nt(o)?!1:Ae(o).position==="fixed"||_c(o,t)}function bm(e,t){let o=t.get(e);if(o)return o;let n=It(e,[],!1).filter(a=>V(a)&&Gt(a)!=="body"),r=null,i=Ae(e).position==="fixed",s=i?tt(e):e;for(;V(s)&&!nt(s);){let a=Ae(s),d=Sn(s);!d&&a.position==="fixed"&&(r=null),(i?!d&&!r:!d&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||fo(s)&&!d&&_c(e,s))?n=n.filter(l=>l!==s):r=a,s=tt(s)}return t.set(e,n),n}function hm(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e,s=[...o==="clippingAncestors"?Do(t)?[]:bm(t,this._c):[].concat(o),n],a=gc(t,s[0],r),d=a.top,c=a.right,l=a.bottom,f=a.left;for(let p=1;p<s.length;p++){let m=gc(t,s[p],r);d=Be(m.top,d),c=Ht(m.right,c),l=Ht(m.bottom,l),f=Be(m.left,f)}return{width:c-f,height:l-d,x:f,y:d}}function wm(e){let{width:t,height:o}=hc(e);return{width:t,height:o}}function vm(e,t,o){let n=we(t),r=ot(t),i=o==="fixed",s=Qt(e,!0,i,t),a={scrollLeft:0,scrollTop:0},d=st(0);function c(){d.x=Mn(r)}if(n||!n&&!i)if((Gt(t)!=="body"||fo(r))&&(a=jo(t)),n){let m=Qt(t,!0,i,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else r&&c();i&&!n&&r&&c();let l=r&&!n&&!i?vc(r,a):st(0),f=s.left+a.scrollLeft-d.x-l.x,p=s.top+a.scrollTop-d.y-l.y;return{x:f,y:p,width:s.width,height:s.height}}function Kr(e){return Ae(e).position==="static"}function bc(e,t){if(!we(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return ot(e)===o&&(o=o.ownerDocument.body),o}function yc(e,t){let o=ge(e);if(Do(e))return o;if(!we(e)){let r=tt(e);for(;r&&!nt(r);){if(V(r)&&!Kr(r))return r;r=tt(r)}return o}let n=bc(e,t);for(;n&&va(n)&&Kr(n);)n=bc(n,t);return n&&nt(n)&&Kr(n)&&!Sn(n)?o:n||_a(e)||o}var _m=async function(e){let t=this.getOffsetParent||yc,o=this.getDimensions,n=await o(e.floating);return{reference:vm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ym(e){return Ae(e).direction==="rtl"}var Zr={convertOffsetParentRelativeRectToViewportRelativeRect:um,getDocumentElement:ot,getClippingRect:hm,getOffsetParent:yc,getElementRects:_m,getClientRects:fm,getDimensions:wm,getScale:ho,isElement:V,isRTL:ym};function xc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xm(e,t){let o=null,n,r=ot(e);function i(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();let c=e.getBoundingClientRect(),{left:l,top:f,width:p,height:m}=c;if(a||t(),!p||!m)return;let u=Wo(f),g=Wo(r.clientWidth-(l+p)),v=Wo(r.clientHeight-(f+m)),_=Wo(l),y={rootMargin:-u+"px "+-g+"px "+-v+"px "+-_+"px",threshold:Be(0,Ht(1,d))||1},b=!0;function S(x){let E=x[0].intersectionRatio;if(E!==d){if(!b)return s();E?s(!1,E):n=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!xc(c,e.getBoundingClientRect())&&s(),b=!1}try{o=new IntersectionObserver(S,{...y,root:r.ownerDocument})}catch{o=new IntersectionObserver(S,y)}o.observe(e)}return s(!0),i}function Xo(e,t,o,n){n===void 0&&(n={});let{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,c=qr(e),l=r||i?[...c?It(c):[],...t?It(t):[]]:[];l.forEach(_=>{r&&_.addEventListener("scroll",o,{passive:!0}),i&&_.addEventListener("resize",o)});let f=c&&a?xm(c,o):null,p=-1,m=null;s&&(m=new ResizeObserver(_=>{let[w]=_;w&&w.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),o()}),c&&!d&&m.observe(c),t&&m.observe(t));let u,g=d?Qt(e):null;d&&v();function v(){let _=Qt(e);g&&!xc(g,_)&&o(),g=_,u=requestAnimationFrame(v)}return o(),()=>{var _;l.forEach(w=>{r&&w.removeEventListener("scroll",o),i&&w.removeEventListener("resize",o)}),f?.(),(_=m)==null||_.disconnect(),m=null,d&&cancelAnimationFrame(u)}}var Rc=dc;var Sc=uc,Ec=ac,Tc=pc,kc=cc;var Pc=fc,Bn=(e,t,o)=>{let n=new Map,r={platform:Zr,...o},i={...r.platform,_c:n};return sc(e,t,{...r,platform:i})};var ve=h(z(),1),Ac=h(z(),1),Oc=h(Mt(),1),Sm=typeof document<"u",Em=function(){},Hn=Sm?Ac.useLayoutEffect:Em;function zn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(n=o;n--!==0;)if(!zn(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=o;n--!==0;){let i=r[n];if(!(i==="_owner"&&e.$$typeof)&&!zn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Nc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cc(e,t){let o=Nc(e);return Math.round(t*o)/o}function Qr(e){let t=ve.useRef(e);return Hn(()=>{t.current=e}),t}function Lc(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:c}=e,[l,f]=ve.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ve.useState(n);zn(p,n)||m(n);let[u,g]=ve.useState(null),[v,_]=ve.useState(null),w=ve.useCallback(P=>{P!==x.current&&(x.current=P,g(P))},[]),y=ve.useCallback(P=>{P!==E.current&&(E.current=P,_(P))},[]),b=i||u,S=s||v,x=ve.useRef(null),E=ve.useRef(null),T=ve.useRef(l),k=d!=null,C=Qr(d),j=Qr(r),A=Qr(c),L=ve.useCallback(()=>{if(!x.current||!E.current)return;let P={placement:t,strategy:o,middleware:p};j.current&&(P.platform=j.current),Bn(x.current,E.current,P).then(O=>{let M={...O,isPositioned:A.current!==!1};I.current&&!zn(T.current,M)&&(T.current=M,Oc.flushSync(()=>{f(M)}))})},[p,t,o,j,A]);Hn(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[c]);let I=ve.useRef(!1);Hn(()=>(I.current=!0,()=>{I.current=!1}),[]),Hn(()=>{if(b&&(x.current=b),S&&(E.current=S),b&&S){if(C.current)return C.current(b,S,L);L()}},[b,S,L,C,k]);let R=ve.useMemo(()=>({reference:x,floating:E,setReference:w,setFloating:y}),[w,y]),N=ve.useMemo(()=>({reference:b,floating:S}),[b,S]),H=ve.useMemo(()=>{let P={position:o,left:0,top:0};if(!N.floating)return P;let O=Cc(N.floating,l.x),M=Cc(N.floating,l.y);return a?{...P,transform:"translate("+O+"px, "+M+"px)",...Nc(N.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:O,top:M}},[o,a,N.floating,l.x,l.y]);return ve.useMemo(()=>({...l,update:L,refs:R,elements:N,floatingStyles:H}),[l,L,R,N,H])}var Jr=(e,t)=>{let o=Rc(e);return{name:o.name,fn:o.fn,options:[e,t]}},$r=(e,t)=>{let o=Sc(e);return{name:o.name,fn:o.fn,options:[e,t]}},ei=(e,t)=>({fn:Pc(e).fn,options:[e,t]}),ti=(e,t)=>{let o=Ec(e);return{name:o.name,fn:o.fn,options:[e,t]}},oi=(e,t)=>{let o=Tc(e);return{name:o.name,fn:o.fn,options:[e,t]}};var ni=(e,t)=>{let o=kc(e);return{name:o.name,fn:o.fn,options:[e,t]}};var _o=h(z(),1),qc=h(Mt(),1);var Xc=h(z(),1);var q=(e,t,o,n,r,i,...s)=>{if(s.length>0)throw new Error(Pe(1));let a;if(e&&t&&o&&n&&r&&i)a=(d,c,l,f)=>{let p=e(d,c,l,f),m=t(d,c,l,f),u=o(d,c,l,f),g=n(d,c,l,f),v=r(d,c,l,f);return i(p,m,u,g,v,c,l,f)};else if(e&&t&&o&&n&&r)a=(d,c,l,f)=>{let p=e(d,c,l,f),m=t(d,c,l,f),u=o(d,c,l,f),g=n(d,c,l,f);return r(p,m,u,g,c,l,f)};else if(e&&t&&o&&n)a=(d,c,l,f)=>{let p=e(d,c,l,f),m=t(d,c,l,f),u=o(d,c,l,f);return n(p,m,u,c,l,f)};else if(e&&t&&o)a=(d,c,l,f)=>{let p=e(d,c,l,f),m=t(d,c,l,f);return o(p,m,c,l,f)};else if(e&&t)a=(d,c,l,f)=>{let p=e(d,c,l,f);return t(p,c,l,f)};else if(e)a=e;else throw new Error("Missing arguments");return a};var Uc=h(z(),1),li=h(ii(),1),Gc=h(jc(),1);var Fc=h(z(),1);var si=[],ai;function Vc(){return ai}function Wc(e){si.push(e)}function ci(e){let t=(o,n)=>{let r=Se(Wm).current,i;try{ai=r;for(let s of si)s.before(r);i=e(o,n);for(let s of si)s.after(r);r.didInitialize=!0}finally{ai=void 0}return i};return t.displayName=e.displayName||e.name,t}function Yc(e){return Fc.forwardRef(ci(e))}function Wm(){return{didInitialize:!1}}var Ym=ao(19),Um=Ym?Xm:Km;function jn(e,t,o,n,r){return Um(e,t,o,n,r)}function Gm(e,t,o,n,r){let i=Uc.useCallback(()=>t(e.getSnapshot(),o,n,r),[e,t,o,n,r]);return(0,li.useSyncExternalStore)(e.subscribe,i,i)}Wc({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let o=0;o<e.syncHooks.length;o+=1){let n=e.syncHooks[o],r=n.selector(n.store.state,n.a1,n.a2,n.a3);Object.is(n.value,r)||(t=!0,n.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let o=new Set;for(let r of e.syncHooks)o.add(r.store);let n=[];for(let r of o)n.push(r.subscribe(t));return()=>{for(let r of n)r()}}),(0,li.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Xm(e,t,o,n,r){let i=Vc();if(!i)return Gm(e,t,o,n,r);let s=i.syncIndex;i.syncIndex+=1;let a;return i.didInitialize?(a=i.syncHooks[s],(a.store!==e||a.selector!==t||!Object.is(a.a1,o)||!Object.is(a.a2,n)||!Object.is(a.a3,r))&&(a.store!==e&&(i.didChangeStore=!0),a.store=e,a.selector=t,a.a1=o,a.a2=n,a.a3=r,a.value=t(e.getSnapshot(),o,n,r))):(a={store:e,selector:t,a1:o,a2:n,a3:r,value:t(e.getSnapshot(),o,n,r)},i.syncHooks.push(a)),a.value}function Km(e,t,o,n,r){return(0,Gc.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,o,n,r))}var Fn=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let o=this.updateTick;for(let n of this.listeners){if(o!==this.updateTick)return;n(t)}}update(t){for(let o in t)if(!Object.is(this.state[o],t[o])){this.setState({...this.state,...t});return}}set(t,o){Object.is(this.state[t],o)||this.setState({...this.state,[t]:o})}notifyAll(){let t={...this.state};this.setState(t)}use(t,o,n,r){return jn(this,t,o,n,r)}};var Jt=h(z(),1);var vo=class extends Fn{constructor(t,o={},n){super(t),this.context=o,this.selectors=n}useSyncedValue(t,o){Jt.useDebugValue(t);let n=this;D(()=>{n.state[t]!==o&&n.set(t,o)},[n,t,o])}useSyncedValueWithCleanup(t,o){let n=this;D(()=>(n.state[t]!==o&&n.set(t,o),()=>{n.set(t,void 0)}),[n,t,o])}useSyncedValues(t){let o=this,n=Object.values(t);D(()=>{o.update(t)},[o,...n])}useControlledProp(t,o){Jt.useDebugValue(t);let n=this,r=o!==void 0;D(()=>{r&&!Object.is(n.state[t],o)&&n.setState({...n.state,[t]:o})},[n,t,o,r])}select(t,o,n,r){let i=this.selectors[t];return i(this.state,o,n,r)}useState(t,o,n,r){return Jt.useDebugValue(t),jn(this,this.selectors[t],o,n,r)}useContextCallback(t,o){Jt.useDebugValue(t);let n=Y(o??Nt);this.context[t]=n}useStateSetter(t){let o=Jt.useRef(void 0);return o.current===void 0&&(o.current=n=>{this.set(t,n)}),o.current}observe(t,o){let n;typeof t=="function"?n=t:n=this.selectors[t];let r=n(this.state);return o(r,r,this),this.subscribe(i=>{let s=n(i);if(!Object.is(r,s)){let a=r;r=s,o(s,a,this)}})}};var qm={open:q(e=>e.open),transitionStatus:q(e=>e.transitionStatus),domReferenceElement:q(e=>e.domReferenceElement),referenceElement:q(e=>e.positionReference??e.referenceElement),floatingElement:q(e=>e.floatingElement),floatingId:q(e=>e.floatingId)},pt=class extends vo{constructor(t){let{syncOnly:o,nested:n,onOpenChange:r,triggerElements:i,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:ec(),nested:n,triggerElements:i},qm),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&Ha(o))&&(this.context.dataRef.current.openEvent=t?o:void 0)};dispatchOpenChange=(t,o)=>{this.syncOpenEvent(t,o.event);let n={open:t,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",n)};setOpen=(t,o)=>{if(this.syncOnly){this.context.onOpenChange?.(t,o);return}this.dispatchOpenChange(t,o),this.context.onOpenChange?.(t,o)}};function Kc(e){let{popupStore:t,treatPopupAsFloatingElement:o=!1,floatingRootContext:n,floatingId:r,nested:i,onOpenChange:s}=e,a=t.useState("open"),d=t.useState("activeTriggerElement"),c=t.useState(o?"popupElement":"positionerElement"),l=t.context.triggerElements,f=s,p=Xc.useRef(null);n===void 0&&p.current===null&&(p.current=new pt({open:a,transitionStatus:void 0,referenceElement:d,floatingElement:c,triggerElements:l,onOpenChange:f,floatingId:r,syncOnly:!0,nested:i}));let m=n??p.current;return t.useSyncedValue("floatingId",r),D(()=>{let u={open:a,floatingId:r,referenceElement:d,floatingElement:c};V(d)&&(u.domReferenceElement=d),m.state.positionReference===m.state.referenceElement&&(u.positionReference=d),m.update(u)},[a,r,d,c,m]),m.context.onOpenChange=f,m.context.nested=i,m}var Zc={tabIndex:-1,[Dr]:""};function Qc(e,t,o=!1){let n=Lt(),r=bo()!=null,i=_o.useRef(null);e===void 0&&i.current===null&&(i.current=t(n,r));let s=e??i.current;return Kc({popupStore:s,treatPopupAsFloatingElement:o,floatingRootContext:s.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:s.setOpen}),{store:s,internalStore:i.current}}function Zm(e,t){let o=_o.useRef(null),n=_o.useRef(null);return _o.useCallback(r=>{if(e===void 0)return;let i=!1;if(o.current!==null){let s=o.current,a=n.current,d=t.context.triggerElements.getById(s);a&&d===a&&(t.context.triggerElements.delete(s),i=!0),o.current=null,n.current=null}if(r!==null&&(o.current=e,n.current=r,t.context.triggerElements.add(e,r),i=!0),i){let s=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==s&&t.set("triggerCount",s)}},[t,e])}function Qm(e,t,o,n=!1){t?e.preventUnmountingOnClose=!1:n&&(e.preventUnmountingOnClose=!0);let r=o?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=o??null)}function Jm(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Jc(e,t,o,n={}){let r=o.reason,i=r===U.triggerHover,s=t&&r===U.triggerFocus,a=!t&&(r===U.triggerPress||r===U.escapeKey),d=Jm(o);if(e.context.onOpenChange?.(t,o),o.isCanceled)return;n.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,o);let c=()=>{let l={...n.extraState,open:t};s?l.instantType="focus":a?l.instantType="dismiss":i&&(l.instantType=void 0),Qm(l,t,o.trigger,d()),e.update(l)};i?qc.flushSync(c):c()}function $c(e,t,o,n){Oa(()=>{t===void 0&&e.state.open===!1&&o&&(e.state={...e.state,open:!0,activeTriggerId:n,preventUnmountingOnClose:!1})})}function el(e,t,o,n){let r=o.useState("isMountedByTrigger",e),i=Zm(e,o),s=Y(a=>{if(i(a),!a)return;let d=o.select("open"),c=o.select("activeTriggerId");if(c===e){o.update({activeTriggerElement:a,...d?n:null});return}c==null&&d&&o.update({activeTriggerId:e,activeTriggerElement:a,...n})});return D(()=>{r&&o.update({activeTriggerElement:t.current,...n})},[r,o,t,...Object.values(n)]),{registerTrigger:s,isMountedByThisTrigger:r}}function tl(e,t={}){let{closeOnActiveTriggerUnmount:o=!1}=t,n=e.useState("open"),r=e.useState("triggerCount");D(()=>{if(!n){e.state.triggerCount!==0&&e.set("triggerCount",0);return}let i=e.context.triggerElements.size,s={};e.state.triggerCount!==i&&(s.triggerCount=i);let a=e.select("activeTriggerId"),d=null;if(a){let c=e.context.triggerElements.getById(a);c?c!==e.state.activeTriggerElement&&(s.activeTriggerElement=c):d=a}if(!d&&!a&&i===1){let c=e.context.triggerElements.entries().next();if(!c.done){let[l,f]=c.value;s.activeTriggerId=l,s.activeTriggerElement=f}}(s.triggerCount!==void 0||s.activeTriggerId!==void 0||s.activeTriggerElement!==void 0)&&e.update(s),d&&o&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===d&&!e.context.triggerElements.getById(d)){let c=ee(U.none);e.setOpen(!1,c),c.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[n,e,r,o])}function ol(e,t,o){let{mounted:n,setMounted:r,transitionStatus:i}=ha(e),s=t.useState("preventUnmountingOnClose"),a=e?!1:s;t.useSyncedValues({mounted:n,transitionStatus:i,preventUnmountingOnClose:a});let d=Y(()=>{r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)});return Pn({enabled:n&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||d()}}),{forceUnmount:d,transitionStatus:i}}function nl(e,t){e.useSyncedValues(t),D(()=>()=>{e.update({activeTriggerProps:be,inactiveTriggerProps:be,popupProps:be})},[e])}var jt=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,o){let n=this.idMap.get(t);n!==o&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(o),this.idMap.set(t,o))}delete(t){let o=this.idMap.get(t);o&&(this.elementsSet.delete(o),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(let o of this.elementsSet)if(t(o))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function rl(){return new pt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new jt,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function sl(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:rl(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:be,inactiveTriggerProps:be,popupProps:be}}function al(e,t,o=!1){return new pt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:o,onOpenChange:void 0})}var Ko=q(e=>e.triggerIdProp??e.activeTriggerId),di=q(e=>e.openProp??e.open),il=q(e=>(e.popupElement?.id??e.floatingId)||void 0);function cl(e,t){return t!==void 0&&di(e)&&Ko(e)===t}function $m(e,t){return cl(e,t)?!0:t!==void 0&&di(e)&&Ko(e)==null&&e.triggerCount===1}var ll={open:di,mounted:q(e=>e.mounted),transitionStatus:q(e=>e.transitionStatus),floatingRootContext:q(e=>e.floatingRootContext),triggerCount:q(e=>e.triggerCount),preventUnmountingOnClose:q(e=>e.preventUnmountingOnClose),payload:q(e=>e.payload),activeTriggerId:Ko,activeTriggerElement:q(e=>e.mounted?e.activeTriggerElement:null),popupId:il,isTriggerActive:q((e,t)=>t!==void 0&&Ko(e)===t),isOpenedByTrigger:q((e,t)=>cl(e,t)),isMountedByTrigger:q((e,t)=>t!==void 0&&Ko(e)===t&&e.mounted),triggerProps:q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:q((e,t)=>$m(e,t)?il(e):void 0),popupProps:q(e=>e.popupProps),popupElement:q(e=>e.popupElement),positionerElement:q(e=>e.positionerElement)};function dl(e){let{open:t=!1,onOpenChange:o,elements:n={}}=e,r=Lt(),i=bo()!=null,s=Se(()=>new pt({open:t,transitionStatus:void 0,onOpenChange:o,referenceElement:n.reference??null,floatingElement:n.floating??null,triggerElements:new jt,floatingId:r,syncOnly:!1,nested:i})).current;return D(()=>{let a={open:t,floatingId:r};n.reference!==void 0&&(a.referenceElement=n.reference,a.domReferenceElement=V(n.reference)?n.reference:null),n.floating!==void 0&&(a.floatingElement=n.floating),s.update(a)},[t,r,n.reference,n.floating,s]),s.context.onOpenChange=o,s.context.nested=i,s}function ui(e={}){let{nodeId:t,externalTree:o}=e,n=dl(e),r=e.rootContext||n,i=r.useState("referenceElement"),s=r.useState("floatingElement"),a=r.useState("domReferenceElement"),d=r.useState("open"),c=r.useState("floatingId"),[l,f]=Ne.useState(null),[p,m]=Ne.useState(void 0),[u,g]=Ne.useState(void 0),v=Ne.useRef(null),_=Dt(o),w=Ne.useMemo(()=>({reference:i,floating:s,domReference:a}),[i,s,a]),y=Lc({...e,elements:{...w,...l&&{reference:l}}}),b=V(p)?p:null,S=u===void 0?r.state.floatingElement:u;r.useSyncedValue("referenceElement",p??null),r.useSyncedValue("domReferenceElement",p===void 0?a:b),r.useSyncedValue("floatingElement",S);let x=Ne.useCallback(A=>{let L=V(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;f(L),y.refs.setReference(L)},[y.refs]),E=Ne.useCallback(A=>{(V(A)||A===null)&&(v.current=A,m(A)),(V(y.refs.reference.current)||y.refs.reference.current===null||A!==null&&!V(A))&&y.refs.setReference(A)},[y.refs,m]),T=Ne.useCallback(A=>{g(A),y.refs.setFloating(A)},[y.refs]),k=Ne.useMemo(()=>({...y.refs,setReference:E,setFloating:T,setPositionReference:x,domReference:v}),[y.refs,E,T,x]),C=Ne.useMemo(()=>({...y.elements,domReference:a}),[y.elements,a]),j=Ne.useMemo(()=>({...y,dataRef:r.context.dataRef,open:d,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:k,elements:C,nodeId:t,rootStore:r}),[y,k,C,t,r,d,c]);return D(()=>{a&&(v.current=a)},[a]),D(()=>{r.context.dataRef.current.floatingContext=j;let A=_?.nodesRef.current.find(L=>L.id===t);A&&(A.context=j)}),Ne.useMemo(()=>({...y,context:j,refs:k,elements:C,rootStore:r}),[y,k,C,j,r])}var mt=h(z(),1);var fi=xt.os.mac&&xt.engine.webkit;function pi(e,t={}){let{enabled:o=!0,delay:n}=t,r="rootStore"in e?e.rootStore:e,{events:i,dataRef:s}=r.context,a=mt.useRef(!1),d=mt.useRef(null),c=mt.useRef(!0),l=rt();mt.useEffect(()=>{let p=r.select("domReferenceElement");if(!o)return;let m=ge(p);function u(){let _=r.select("domReferenceElement");!r.select("open")&&we(_)&&_===Cn(xe(_))&&(a.current=!0)}function g(){c.current=!0}function v(){c.current=!1}return it(re(m,"blur",u),fi&&re(m,"keydown",g,!0),fi&&re(m,"pointerdown",v,!0))},[r,o]),mt.useEffect(()=>{if(!o)return;function p(m){if(m.reason===U.triggerPress||m.reason===U.escapeKey){let u=r.select("domReferenceElement");V(u)&&(d.current=u,a.current=!0)}}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,o,r]);let f=mt.useMemo(()=>{function p(){a.current=!1,d.current=null}return{onMouseLeave(){p()},onFocus(m){let u=m.currentTarget;if(a.current){if(d.current===u)return;p()}let g=Me(m.nativeEvent);if(V(g)){if(fi&&!m.relatedTarget){if(!c.current&&!Da(g))return}else if(!ja(g))return}let v=Bt(m.relatedTarget,r.context.triggerElements),{nativeEvent:_,currentTarget:w}=m,y=typeof n=="function"?n():n;if(r.select("open")&&v||y===0||y===void 0){r.setOpen(!0,ee(U.triggerFocus,_,w));return}l.start(y,()=>{a.current||r.setOpen(!0,ee(U.triggerFocus,_,w))})},onBlur(m){p();let u=m.relatedTarget,g=m.nativeEvent,v=V(u)&&u.hasAttribute(go("focus-guard"))&&u.getAttribute("data-type")==="outside";l.start(0,()=>{let _=r.select("domReferenceElement"),w=Cn(xe(_));!u&&w===_||ie(s.current.floatingContext?.refs.floating.current,w)||ie(_,w)||v||Bt(u??w,r.context.triggerElements)||r.setOpen(!1,ee(U.triggerFocus,g))})}}},[s,n,r,l]);return mt.useMemo(()=>o?{reference:f,trigger:f}:{},[o,f])}var gi=h(z(),1);var mi=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Ye,this.restTimeout=new Ye,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Vn=new WeakMap;function yo(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Vn.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Vn.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Wn(e,t){let{scopeElement:o,referenceElement:n,floatingElement:r}=t,i=Vn.get(o);i&&i!==e&&yo(i),yo(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=n,e.pointerEventsFloatingElement=r,Vn.set(o,e),o.style.pointerEvents="none",n.style.pointerEvents="auto",r.style.pointerEvents="auto"}function xo(e){let t=e.context.dataRef.current,o=Se(()=>t.hoverInteractionState??mi.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=o),co(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function bi(e,t={}){let{enabled:o=!0,closeDelay:n=0,nodeId:r}=t,i="rootStore"in e?e.rootStore:e,s=i.useState("open"),a=i.useState("floatingElement"),d=i.useState("domReferenceElement"),{dataRef:c}=i.context,l=Dt(),f=bo(),p=xo(i),m=rt(),u=Y(()=>On(c.current.openEvent?.type,p.interactedInside)),g=Y(()=>Fa(c.current.openEvent?.type)),v=Y(()=>{yo(p)});D(()=>{s||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,v())},[s,p,v]),gi.useEffect(()=>v,[v]),D(()=>{if(o&&s&&p.handleCloseOptions?.blockPointerEvents&&g()&&V(d)&&a){let _=d,w=a,y=xe(a),b=l?.nodesRef.current.find(T=>T.id===f)?.context?.elements.floating;b&&(b.style.pointerEvents="");let S=p.pointerEventsScopeElement!==w?p.pointerEventsScopeElement:null,x=b!==w?b:null,E=p.handleCloseOptions?.getScope?.()??S??x??_.closest("[data-rootownerid]")??y.body;return Wn(p,{scopeElement:E,referenceElement:_,floatingElement:w}),()=>{v()}}},[o,s,d,a,p,g,l,f,v]),gi.useEffect(()=>{if(!o)return;function _(){return!!(l&&f&&Et(l.nodesRef.current,f).length>0)}function w(T){let k=St(n,"close",p.pointerType),C=()=>{i.setOpen(!1,ee(U.triggerHover,T)),l?.events.emit("floating.closed",T)};k?p.openChangeTimeout.start(k,C):(p.openChangeTimeout.clear(),C())}function y(T){let k=Me(T);if(!Fr(k)){p.interactedInside=!1;return}p.interactedInside=k?.closest("[aria-haspopup]")!=null}function b(){p.openChangeTimeout.clear(),m.clear(),l?.events.off("floating.closed",x),v()}function S(T){if(_()&&l){l.events.on("floating.closed",x);return}if(Bt(T.relatedTarget,i.context.triggerElements))return;let k=c.current.floatingContext?.nodeId??r,C=T.relatedTarget;if(!(l&&k&&V(C)&&Et(l.nodesRef.current,k,!1).some(A=>ie(A.context?.elements.floating,C)))){if(p.handler){p.handler(T);return}v(),g()&&!u()&&w(T)}}function x(T){!l||!f||_()||m.start(0,()=>{l.events.off("floating.closed",x),i.setOpen(!1,ee(U.triggerHover,T)),l.events.emit("floating.closed",T)})}let E=a;return it(E&&re(E,"mouseenter",b),E&&re(E,"mouseleave",S),E&&re(E,"pointerdown",y,!0),()=>{l?.events.off("floating.closed",x)})},[o,a,i,c,n,r,g,u,v,p,l,f,m])}var Ft=h(z(),1),ul=h(Mt(),1);var eg={current:null};function hi(e,t={}){let{enabled:o=!0,delay:n=0,handleClose:r=null,mouseOnly:i=!1,restMs:s=0,move:a=!0,triggerElementRef:d=eg,externalTree:c,isActiveTrigger:l=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m}=t,u="rootStore"in e?e.rootStore:e,{dataRef:g,events:v}=u.context,_=Dt(c),w=xo(u),y=Ft.useRef(!1),b=ze(r),S=ze(n),x=ze(s),E=ze(o),T=ze(m),k=ze(p),C=Y(()=>On(g.current.openEvent?.type,w.interactedInside)),j=Y(()=>T.current?.()!==!1),A=Y((R,N,H)=>{let P=u.context.triggerElements;if(P.hasElement(N))return!R||!ie(R,N);if(!V(H))return!1;let O=H;return P.hasMatchingElement(M=>ie(M,O))&&(!R||!ie(R,O))}),L=Y(()=>{if(!w.handler)return;xe(u.select("domReferenceElement")).removeEventListener("mousemove",w.handler),w.handler=void 0}),I=Y(()=>{yo(w)});return l&&(w.handleCloseOptions=b.current?.__options),Ft.useEffect(()=>L,[L]),Ft.useEffect(()=>{if(!o)return;function R(N){N.open?y.current=!1:(y.current=N.reason===U.triggerHover,L(),w.openChangeTimeout.clear(),w.restTimeout.clear(),w.blockMouseMove=!0,w.restTimeoutPending=!1)}return v.on("openchange",R),()=>{v.off("openchange",R)}},[o,v,w,L]),Ft.useEffect(()=>{if(!o)return;function R(O,M=!0){let Z=St(S.current,"close",w.pointerType);Z?w.openChangeTimeout.start(Z,()=>{u.setOpen(!1,ee(U.triggerHover,O)),_?.events.emit("floating.closed",O)}):M&&(w.openChangeTimeout.clear(),u.setOpen(!1,ee(U.triggerHover,O)),_?.events.emit("floating.closed",O))}let N=d.current??(l?u.select("domReferenceElement"):null);if(!V(N))return;function H(O){if(w.openChangeTimeout.clear(),w.blockMouseMove=!1,i&&!Rt(w.pointerType))return;let M=Vr(x.current),Z=St(S.current,"open",w.pointerType),W=Me(O),oe=O.currentTarget??null,te=u.select("domReferenceElement"),se=oe;if(V(W)&&!u.context.triggerElements.hasElement(W)){for(let ue of u.context.triggerElements.elements())if(ie(ue,W)){se=ue;break}}V(oe)&&V(te)&&!u.context.triggerElements.hasElement(oe)&&ie(oe,te)&&(se=te);let G=se==null?!1:A(te,se,W),K=u.select("open"),J=k.current?.()??u.select("transitionStatus")==="ending",ne=!K&&J&&y.current,me=!G&&V(se)&&V(te)&&ie(te,se)&&ne,le=M>0&&!Z,X=G&&(K||ne)||me,pe=!K||G;if(X){j()&&u.setOpen(!0,ee(U.triggerHover,O,se));return}le||(Z?w.openChangeTimeout.start(Z,()=>{pe&&j()&&u.setOpen(!0,ee(U.triggerHover,O,se))}):pe&&j()&&u.setOpen(!0,ee(U.triggerHover,O,se)))}function P(O){if(C()){I();return}L();let M=u.select("domReferenceElement"),Z=xe(M);w.restTimeout.clear(),w.restTimeoutPending=!1;let W=g.current.floatingContext??f?.();if(Bt(O.relatedTarget,u.context.triggerElements))return;if(b.current&&W){u.select("open")||w.openChangeTimeout.clear();let te=d.current;w.handler=b.current({...W,tree:_,x:O.clientX,y:O.clientY,onClose(){I(),L(),E.current&&!C()&&te===u.select("domReferenceElement")&&R(O,!0)}}),Z.addEventListener("mousemove",w.handler),w.handler(O);return}(w.pointerType!=="touch"||!ie(u.select("floatingElement"),O.relatedTarget))&&R(O)}return a?it(re(N,"mousemove",H,{once:!0}),re(N,"mouseenter",H),re(N,"mouseleave",P)):it(re(N,"mouseenter",H),re(N,"mouseleave",P))},[L,I,g,S,u,o,b,w,l,A,C,i,a,x,d,_,E,f,k,j]),Ft.useMemo(()=>{if(!o)return;function R(N){w.pointerType=N.pointerType}return{onPointerDown:R,onPointerEnter:R,onMouseMove(N){let{nativeEvent:H}=N,P=N.currentTarget,O=u.select("domReferenceElement"),M=u.select("open"),Z=A(O,P,N.target);if(i&&!Rt(w.pointerType))return;if(M&&Z&&w.handleCloseOptions?.blockPointerEvents){let te=u.select("floatingElement");if(te){let se=w.handleCloseOptions?.getScope?.()??P.ownerDocument.body;Wn(w,{scopeElement:se,referenceElement:P,floatingElement:te})}}let W=Vr(x.current);if(M&&!Z||W===0||!Z&&w.restTimeoutPending&&N.movementX**2+N.movementY**2<2)return;w.restTimeout.clear();function oe(){if(w.restTimeoutPending=!1,C())return;let te=u.select("open");!w.blockMouseMove&&(!te||Z)&&j()&&u.setOpen(!0,ee(U.triggerHover,H,P))}w.pointerType==="touch"?ul.flushSync(()=>{oe()}):Z&&M?oe():(w.restTimeoutPending=!0,w.restTimeout.start(W,oe))}}},[o,w,C,A,i,u,x,j])}var fl=.1,tg=fl*fl,ce=.5;function Yn(e,t,o,n,r,i){return n>=t!=i>=t&&e<=(r-o)*(t-n)/(i-n)+o}function Un(e,t,o,n,r,i,s,a,d,c){let l=!1;return Yn(e,t,o,n,r,i)&&(l=!l),Yn(e,t,r,i,s,a)&&(l=!l),Yn(e,t,s,a,d,c)&&(l=!l),Yn(e,t,d,c,o,n)&&(l=!l),l}function og(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function Gn(e,t,o,n,r,i){let s=Math.min(o,r),a=Math.max(o,r),d=Math.min(n,i),c=Math.max(n,i);return e>=s&&e<=a&&t>=d&&t<=c}function wi(e={}){let{blockPointerEvents:t=!1}=e,o=new Ye,n=({x:r,y:i,placement:s,elements:a,onClose:d,nodeId:c,tree:l})=>{let f=s?.split("-")[0],p=!1,m=null,u=null,g=typeof performance<"u"?performance.now():0;function v(w,y){let b=performance.now(),S=b-g;if(m===null||u===null||S===0)return m=w,u=y,g=b,!1;let x=w-m,E=y-u,T=x*x+E*E,k=S*S*tg;return m=w,u=y,g=b,T<k}function _(){o.clear(),d()}return function(y){o.clear();let b=a.domReference,S=a.floating;if(!b||!S||f==null||r==null||i==null)return;let{clientX:x,clientY:E}=y,T=Me(y),k=y.type==="mouseleave",C=ie(S,T),j=ie(b,T);if(C&&(p=!0,!k))return;if(j&&(p=!1,!k)){p=!0;return}if(k&&V(y.relatedTarget)&&ie(S,y.relatedTarget))return;function A(){return!!(l&&Et(l.nodesRef.current,c).length>0)}function L(){A()||_()}if(A())return;let I=b.getBoundingClientRect(),R=S.getBoundingClientRect(),N=r>R.right-R.width/2,H=i>R.bottom-R.height/2,P=R.width>I.width,O=R.height>I.height,M=(P?I:R).left,Z=(P?I:R).right,W=(O?I:R).top,oe=(O?I:R).bottom;if(f==="top"&&i>=I.bottom-1||f==="bottom"&&i<=I.top+1||f==="left"&&r>=I.right-1||f==="right"&&r<=I.left+1){L();return}let te=!1;switch(f){case"top":te=Gn(x,E,M,I.top+1,Z,R.bottom-1);break;case"bottom":te=Gn(x,E,M,R.top+1,Z,I.bottom-1);break;case"left":te=Gn(x,E,R.right-1,oe,I.left+1,W);break;case"right":te=Gn(x,E,I.right-1,oe,R.left+1,W);break;default:}if(te)return;if(p&&!og(x,E,I)){L();return}if(!k&&v(x,E)){L();return}let se=!1;switch(f){case"top":{let G=P?ce/2:ce*4,K=P||N?r+G:r-G,J=P?r-G:N?r+G:r-G,ne=i+ce+1,me=N||P?R.bottom-ce:R.top,le=N?P?R.bottom-ce:R.top:R.bottom-ce;se=Un(x,E,K,ne,J,ne,R.left,me,R.right,le);break}case"bottom":{let G=P?ce/2:ce*4,K=P||N?r+G:r-G,J=P?r-G:N?r+G:r-G,ne=i-ce,me=N||P?R.top+ce:R.bottom,le=N?P?R.top+ce:R.bottom:R.top+ce;se=Un(x,E,K,ne,J,ne,R.left,me,R.right,le);break}case"left":{let G=O?ce/2:ce*4,K=O||H?i+G:i-G,J=O?i-G:H?i+G:i-G,ne=r+ce+1,me=H||O?R.right-ce:R.left,le=H?O?R.right-ce:R.left:R.right-ce;se=Un(x,E,me,R.top,le,R.bottom,ne,K,ne,J);break}case"right":{let G=O?ce/2:ce*4,K=O||H?i+G:i-G,J=O?i-G:H?i+G:i-G,ne=r-ce,me=H||O?R.left+ce:R.right,le=H?O?R.left+ce:R.right:R.left+ce;se=Un(x,E,ne,K,ne,J,me,R.top,le,R.bottom);break}default:}se?p||o.start(40,L):L()}};return n.__options={...e,blockPointerEvents:t},n}var vi=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Yt.startingStyle]="startingStyle",e[e.endingStyle=Yt.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),qo=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),ng={[qo.popupOpen]:""},B_={[qo.popupOpen]:"",[qo.pressed]:""},rg={[vi.open]:""},ig={[vi.closed]:""},sg={[vi.anchorHidden]:""},pl={open(e){return e?ng:null}};var Ro={open(e){return e?rg:ig},anchorHidden(e){return e?sg:null}};function ml(e){return ao(19)?e:e?"true":void 0}var Ge=h(z(),1);var ag=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:n,placement:r,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:c,padding:l=0,offsetParent:f="real"}=at(e,t)||{};if(c==null)return{};let p=In(l),m={x:o,y:n},u=Go(r),g=Uo(u),v=await s.getDimensions(c),_=u==="y",w=_?"top":"left",y=_?"bottom":"right",b=_?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[u]-m[u]-i.floating[g],x=m[u]-i.reference[u],E=f==="real"?await s.getOffsetParent?.(c):a.floating,T=a.floating[b]||i.floating[g];(!T||!await s.isElement?.(E))&&(T=a.floating[b]||i.floating[g]);let k=S/2-x/2,C=T/2-v[g]/2-1,j=Math.min(p[w],C),A=Math.min(p[y],C),L=j,I=T-v[g]-A,R=T/2-v[g]/2+k,N=Yo(L,R,I),H=!d.arrow&&ct(r)!=null&&R!==N&&i.reference[g]/2-(R<L?j:A)-v[g]/2<0,P=H?R<L?R-L:R-I:0;return{[u]:m[u]+P,data:{[u]:N,centerOffset:R-N-P,...H&&{alignmentOffset:P}},reset:H}}}),gl=(e,t)=>({...ag(e),options:[e,t]});var cg=ni().fn,bl={name:"hide",async fn(e){let{width:t,height:o,x:n,y:r}=e.rects.reference,i=t===0&&o===0&&n===0&&r===0;return{data:{referenceHidden:(await cg(e)).data?.referenceHidden||i}}}};var Zo={sideX:"left",sideY:"top"},hl={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:n},elements:{floating:r},platform:i,strategy:s,placement:a}=e,d=ge(r),c=d.getComputedStyle(r);if(!(c.transitionDuration!=="0s"&&c.transitionDuration!==""))return{x:t,y:o,data:Zo};let f=await i.getOffsetParent?.(r),p={width:0,height:0};if(s==="fixed"&&d?.visualViewport)p={width:d.visualViewport.width,height:d.visualViewport.height};else if(f===d){let w=xe(r);p={width:w.documentElement.clientWidth,height:w.documentElement.clientHeight}}else await i.isElement?.(f)&&(p=await i.getDimensions(f));let m=Ee(a),u=t,g=o;m==="left"&&(u=p.width-(t+n.width)),m==="top"&&(g=p.height-(o+n.height));let v=m==="left"?"right":Zo.sideX,_=m==="top"?"bottom":Zo.sideY;return{x:u,y:g,data:{sideX:v,sideY:_}}}};function _l(e,t,o){let n=e==="inline-start"||e==="inline-end";return{top:"top",right:n?o?"inline-start":"inline-end":"right",bottom:"bottom",left:n?o?"inline-end":"inline-start":"left"}[t]}function wl(e,t,o){let{rects:n,placement:r}=e;return{side:_l(t,Ee(r),o),align:ct(r)||"center",anchor:{width:n.reference.width,height:n.reference.height},positioner:{width:n.floating.width,height:n.floating.height}}}function yl(e){let{anchor:t,positionMethod:o="absolute",side:n="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,collisionBoundary:a,collisionPadding:d=5,sticky:c=!1,arrowPadding:l=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:u,mounted:g,collisionAvoidance:v,shiftCrossAxis:_=!1,nodeId:w,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:S}=e,[x,E]=Ge.useState(null);!g&&x!==null&&E(null);let T=v.side||"flip",k=v.align||"flip",C=v.fallbackAxisSide||"end",j=typeof t=="function"?t:void 0,A=Y(j),L=j?A:t,I=ze(t),R=ze(g),H=so()==="rtl",P=x||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":H?"left":"right","inline-start":H?"right":"left"}[n],O=i==="center"?P:`${P}-${i}`,M=d,Z=1,W=n==="bottom"?Z:0,oe=n==="top"?Z:0,te=n==="right"?Z:0,se=n==="left"?Z:0;typeof M=="number"?M={top:M+W,right:M+se,bottom:M+oe,left:M+te}:M&&(M={top:(M.top||0)+W,right:(M.right||0)+se,bottom:(M.bottom||0)+oe,left:(M.left||0)+te});let G={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:M},K=Ge.useRef(null),J=ze(r),ne=ze(s),me=typeof r!="function"?r:0,le=typeof s!="function"?s:0,X=[];p&&X.push(p),X.push(Jr(ae=>{let Ie=wl(ae,n,H),ut=typeof J.current=="function"?J.current(Ie):J.current,qe=typeof ne.current=="function"?ne.current(Ie):ne.current;return{mainAxis:ut,crossAxis:qe,alignmentAxis:qe}},[me,le,H,n]));let pe=k==="none"&&T!=="shift",ue=!pe&&(c||_||T==="shift"),vt=T==="none"?null:ti({...G,padding:{top:M.top+Z,right:M.right+Z,bottom:M.bottom+Z,left:M.left+Z},mainAxis:!_&&T==="flip",crossAxis:k==="flip"?"alignment":!1,fallbackAxisSideDirection:C}),Te=pe?null:$r(ae=>{let Ie=xe(ae.elements.floating).documentElement;return{...G,rootBoundary:_?{x:0,y:0,width:Ie.clientWidth,height:Ie.clientHeight}:void 0,mainAxis:k!=="none",crossAxis:ue,limiter:c||_?void 0:ei(ut=>{if(!K.current)return{};let{width:qe,height:yt}=K.current.getBoundingClientRect(),et=De(Ee(ut.placement)),Vt=et==="y"?qe:yt,io=et==="y"?M.left+M.right:M.top+M.bottom;return{offset:Vt/2+io/2}})}},[G,c,_,M,k]);T==="shift"||k==="shift"||i==="center"?X.push(Te,vt):X.push(vt,Te),X.push(oi({...G,apply({elements:{floating:ae},availableWidth:Ie,availableHeight:ut,rects:qe}){if(!R.current)return;let yt=ae.style;yt.setProperty("--available-width",`${Ie}px`),yt.setProperty("--available-height",`${ut}px`);let et=ge(ae).devicePixelRatio||1,{x:Vt,y:io,width:bn,height:br}=qe.reference,hr=(Math.round((Vt+bn)*et)-Math.round(Vt*et))/et,wr=(Math.round((io+br)*et)-Math.round(io*et))/et;yt.setProperty("--anchor-width",`${hr}px`),yt.setProperty("--anchor-height",`${wr}px`)}}),gl(ae=>({element:K.current||xe(ae.elements.floating).createElement("div"),padding:l,offsetParent:"floating"}),[l]),{name:"transformOrigin",fn(ae){let{elements:Ie,middlewareData:ut,placement:qe,rects:yt,y:et}=ae,Vt=Ee(qe),io=De(Vt),bn=K.current,br=ut.arrow?.x||0,hr=ut.arrow?.y||0,wr=bn?.clientWidth||0,ff=bn?.clientHeight||0,vr=br+wr/2,Us=hr+ff/2,pf=Math.abs(ut.shift?.y||0),mf=yt.reference.height/2,Io=typeof r=="function"?r(wl(ae,n,H)):r,gf=pf>Io,bf={top:`${vr}px calc(100% + ${Io}px)`,bottom:`${vr}px ${-Io}px`,left:`calc(100% + ${Io}px) ${Us}px`,right:`${-Io}px ${Us}px`}[Vt],hf=`${vr}px ${yt.reference.y+mf-et}px`;return Ie.floating.style.setProperty("--transform-origin",ue&&io==="y"&&gf?hf:bf),{}}},bl,y),D(()=>{!g&&u&&u.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,u]);let Ve=Ge.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:Ke,elements:He,x:no,y:dn,middlewareData:_e,update:ro,placement:B,context:F,isPositioned:he,floatingStyles:ke}=ui({rootContext:u,open:m?g:void 0,placement:O,middleware:X,strategy:o,whileElementsMounted:m?void 0:(...ae)=>Xo(...ae,Ve),nodeId:w,externalTree:S}),{sideX:kt,sideY:Lo}=_e.adaptiveOrigin||Zo,_t=he?o:"fixed",We=Ge.useMemo(()=>{let ae=y?{position:_t,[kt]:no,[Lo]:dn}:{position:_t,...ke};return he||(ae.opacity=0),ae},[y,_t,kt,no,Lo,dn,ke,he]),Pt=Ge.useRef(null);D(()=>{if(!g)return;let ae=I.current,Ie=typeof ae=="function"?ae():ae,qe=(vl(Ie)?Ie.current:Ie)||null||null;qe!==Pt.current&&(Ke.setPositionReference(qe),Pt.current=qe)},[g,Ke,L,I]),Ge.useEffect(()=>{if(!g)return;let ae=I.current;typeof ae!="function"&&vl(ae)&&ae.current!==Pt.current&&(Ke.setPositionReference(ae.current),Pt.current=ae.current)},[g,Ke,L,I]),Ge.useEffect(()=>{if(m&&g&&He.reference&&He.floating)return Xo(He.reference,He.floating,ro,Ve)},[m,g,He,ro,Ve]);let Ct=Ee(B),un=_l(n,Ct,H),fn=ct(B)||"center",pn=!!_e.hide?.referenceHidden;D(()=>{b&&g&&he&&E(Ct)},[b,g,he,Ct]);let mn=Ge.useMemo(()=>({position:"absolute",top:_e.arrow?.y,left:_e.arrow?.x}),[_e.arrow]),gn=_e.arrow?.centerOffset!==0;return Ge.useMemo(()=>({positionerStyles:We,arrowStyles:mn,arrowRef:K,arrowUncentered:gn,side:un,align:fn,physicalSide:Ct,anchorHidden:pn,refs:Ke,context:F,isPositioned:he,update:ro}),[We,mn,K,gn,un,fn,Ct,pn,Ke,F,he,ro])}function vl(e){return e!=null&&"current"in e}function Xn(e){return e==="starting"?Za:be}function xl(e,t,{styles:o,transitionStatus:n,props:r,refs:i,hidden:s,inert:a=!1}){let d={...o};return a&&(d.pointerEvents="none"),Ce("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:s,style:d},Xn(n),r],stateAttributesMapping:Ro})}var Rl=h(z(),1);var _i=Rl.forwardRef(function(t,o){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:s=!1,nativeButton:a=!0,style:d,...c}=t,{getButtonProps:l,buttonRef:f}=Ea({disabled:i,focusableWhenDisabled:s,native:a});return Ce("button",t,{state:{disabled:i},ref:[o,f],props:[c,l]})});var Le=h(z(),1),Cl=h(Mt(),1);var Sl=h(z(),1);function El(e){let[t,o]=Sl.useState({current:e,previous:null});return e!==t.current&&o({current:e,previous:t.current}),t.previous}var So=h(z(),1);function yi(e){let t=Ae(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=we(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n;return(zt(o)!==i||zt(n)!==s)&&(o=i,n=s),{width:o,height:n}}function kl(e){let{popupElement:t,positionerElement:o,content:n,mounted:r,onMeasureLayout:i,onMeasureLayoutComplete:s,side:a,direction:d}=e,c=mo(t,!0,!1),l=lo(),f=So.useRef(null),p=So.useRef(!0),m=So.useRef(Nt),u=Y(i),g=Y(s),v=So.useMemo(()=>{let _=a==="top",w=a==="left";return d==="rtl"?(_=_||a==="inline-end",w=w||a==="inline-end"):(_=_||a==="inline-start",w=w||a==="inline-start"),_?{position:"absolute",[a==="top"?"bottom":"top"]:"0",[w?"right":"left"]:"0"}:be},[a,d]);D(()=>{if(!r){m.current=Nt,p.current=!0,f.current=null;return}if(!t||!o)return;m.current=Tl(t,v),xi(t,"auto");let _=qn(t,"position","static"),w=qn(t,"transform","none"),y=qn(t,"scale","1"),b=Tl(o,{"--available-width":"max-content","--available-height":"max-content"});function S(){_(),w(),b()}function x(){S(),y()}if(u?.(),p.current||f.current===null){Kn(o,"max-content");let C=yi(t);return f.current=C,Kn(o,C),x(),g?.(null,C),p.current=!1,()=>{m.current(),m.current=Nt}}Kn(o,"max-content");let E=f.current,T=yi(t);f.current=T,xi(t,E),x(),g?.(E,T),Kn(o,T);let k=new AbortController;return l.request(()=>{xi(t,T),c(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},k.signal)}),()=>{k.abort(),l.cancel(),m.current(),m.current=Nt}},[n,t,o,c,l,r,u,g,v])}function qn(e,t,o){let n=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,n)}}function Tl(e,t){let o=[];for(let[n,r]of Object.entries(t))o.push(qn(e,n,r));return o.length?()=>{o.forEach(n=>n())}:Nt}function xi(e,t){let o=t==="auto"?"auto":`${t.width}px`,n=t==="auto"?"auto":`${t.height}px`;e.style.setProperty("--popup-width",o),e.style.setProperty("--popup-height",n)}function Kn(e,t){let o=t==="max-content"?"max-content":`${t.width}px`,n=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",o),e.style.setProperty("--positioner-height",n)}var Eo=h(Q(),1);function Al(e){let{store:t,side:o,cssVars:n,children:r}=e,i=so(),s=t.useState("activeTriggerElement"),a=t.useState("activeTriggerId"),d=t.useState("open"),c=t.useState("payload"),l=t.useState("mounted"),f=t.useState("popupElement"),p=t.useState("positionerElement"),m=El(d?s:null),u=ug(a,c),g=Le.useRef(null),[v,_]=Le.useState(null),[w,y]=Le.useState(null),b=Le.useRef(null),S=Le.useRef(null),x=mo(b,!0,!1),E=lo(),[T,k]=Le.useState(null),[C,j]=Le.useState(!1);D(()=>(t.set("hasViewport",!0),()=>{t.set("hasViewport",!1)}),[t]);let A=Y(()=>{b.current?.style.setProperty("animation","none"),b.current?.style.setProperty("transition","none"),S.current?.style.setProperty("display","none")}),L=Y(P=>{b.current?.style.removeProperty("animation"),b.current?.style.removeProperty("transition"),S.current?.style.removeProperty("display"),P&&k(P)}),I=Le.useRef(null);D(()=>{(!d||!l)&&(I.current=null)},[d,l]),D(()=>{if(s&&m&&s!==m&&I.current!==s&&g.current){_(g.current),j(!0);let P=dg(m,s);y(P),E.request(()=>{Cl.flushSync(()=>{j(!1)}),x(()=>{_(null),k(null),g.current=null})}),I.current=s}},[s,m,v,x,E]),D(()=>{let P=b.current;if(!P)return;let O=xe(P).createElement("div");for(let M of Array.from(P.childNodes))O.appendChild(M.cloneNode(!0));g.current=O});let R=v!=null,N;R?N=(0,Eo.jsxs)(Le.Fragment,{children:[(0,Eo.jsx)("div",{"data-previous":!0,inert:ml(!0),ref:S,style:{...T?{[n.popupWidth]:`${T.width}px`,[n.popupHeight]:`${T.height}px`}:null,position:"absolute"},"data-ending-style":C?void 0:""},"previous"),(0,Eo.jsx)("div",{"data-current":!0,ref:b,"data-starting-style":C?"":void 0,children:r},u)]}):N=(0,Eo.jsx)("div",{"data-current":!0,ref:b,children:r},u),D(()=>{let P=S.current;!P||!v||P.replaceChildren(...Array.from(v.childNodes))},[v]),kl({popupElement:f,positionerElement:p,mounted:l,content:c,onMeasureLayout:A,onMeasureLayoutComplete:L,side:o,direction:i});let H={activationDirection:lg(w),transitioning:R};return{children:N,state:H}}function lg(e){if(e)return`${Pl(e.horizontal,5,"right","left")} ${Pl(e.vertical,5,"down","up")}`}function Pl(e,t,o,n){return e>t?o:e<-t?n:""}function dg(e,t){let o=e.getBoundingClientRect(),n=t.getBoundingClientRect(),r={x:o.left+o.width/2,y:o.top+o.height/2},i={x:n.left+n.width/2,y:n.top+n.height/2};return{horizontal:i.x-r.x,vertical:i.y-r.y}}function ug(e,t){let[o,n]=Le.useState(0),r=Le.useRef(e),i=Le.useRef(t),s=Le.useRef(!1);return D(()=>{let a=r.current,d=i.current,c=e!==a,l=t!==d;c?(n(f=>f+1),s.current=!l):s.current&&l&&(n(f=>f+1),s.current=!1),r.current=e,i.current=t},[e,t]),`${e??"current"}-${o}`}var Zn=h(z(),1),Ol=h(Mt(),1);var Nl=h(Q(),1),Ll=Zn.forwardRef(function(t,o){let{children:n,container:r,className:i,render:s,style:a,...d}=t,{portalNode:c,portalSubtree:l}=Ur({container:r,ref:o,componentProps:t,elementProps:d});return!l&&!c?null:(0,Nl.jsxs)(Zn.Fragment,{children:[l,c&&Ol.createPortal(n,c)]})});var Qe={};At(Qe,{Arrow:()=>ql,Handle:()=>Qo,Popup:()=>Xl,Portal:()=>Wl,Positioner:()=>Ul,Provider:()=>Zl,Root:()=>Ml,Trigger:()=>jl,Viewport:()=>$l,createHandle:()=>ed});var gt=h(z(),1);var Qn=h(z(),1),Ri=Qn.createContext(void 0);function Ze(e){let t=Qn.useContext(Ri);if(t===void 0&&!e)throw new Error(Pe(72));return t}var Il=h(z(),1);var fg={...ll,disabled:q(e=>e.disabled),instantType:q(e=>e.instantType),isInstantPhase:q(e=>e.isInstantPhase),trackCursorAxis:q(e=>e.trackCursorAxis),disableHoverablePopup:q(e=>e.disableHoverablePopup),lastOpenChangeReason:q(e=>e.openChangeReason),closeOnClick:q(e=>e.closeOnClick),closeDelay:q(e=>e.closeDelay),hasViewport:q(e=>e.hasViewport)},To=class e extends vo{constructor(t,o,n=!1){let r=new jt,i={...pg(),...t};i.floatingRootContext=al(r,o,n),super(i,{popupRef:Il.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},fg)}setOpen=(t,o)=>{Jc(this,t,o,{extraState:{openChangeReason:o.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,ee(U.triggerPress,t))}static useStore(t,o){return Qc(t,(r,i)=>new e(o,r,i)).store}};function pg(){return{...sl(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var Jn=h(Q(),1),Ml=ci(function(t){let{disabled:o=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:a,onOpenChange:d,onOpenChangeComplete:c,handle:l,triggerId:f,defaultTriggerId:p=null,children:m}=t,u=To.useStore(l?.store,{open:n,openProp:r,activeTriggerId:p,triggerIdProp:f});$c(u,r,n,p),u.useControlledProp("openProp",r),u.useControlledProp("triggerIdProp",f),u.useContextCallback("onOpenChange",d),u.useContextCallback("onOpenChangeComplete",c);let g=u.useState("open"),v=!o&&g,_=u.useState("activeTriggerId"),w=u.useState("mounted"),y=u.useState("payload");u.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i}),u.useSyncedValue("disabled",o),tl(u,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:b,transitionStatus:S}=ol(v,u),x=u.useState("isInstantPhase"),E=u.useState("instantType"),T=u.useState("lastOpenChangeReason"),k=gt.useRef(null);D(()=>{g&&o&&u.setOpen(!1,ee(U.disabled))},[g,o,u]),D(()=>{S==="ending"&&T===U.none||S!=="ending"&&x?(E!=="delay"&&(k.current=E),u.set("instantType","delay")):k.current!==null&&(u.set("instantType",k.current),k.current=null)},[S,x,T,E,u]),D(()=>{v&&_==null&&u.set("payload",void 0)},[u,_,v]);let C=gt.useCallback(()=>{u.setOpen(!1,ee(U.imperativeAction))},[u]);gt.useImperativeHandle(a,()=>({unmount:b,close:C}),[b,C]);let j=v||w||!o&&s!=="none";return(0,Jn.jsxs)(Ri.Provider,{value:u,children:[j&&(0,Jn.jsx)(mg,{store:u,disabled:o,trackCursorAxis:s}),typeof m=="function"?m({payload:y}):m]})});function mg({store:e,disabled:t,trackCursorAxis:o}){let n=e.useState("floatingRootContext"),r=Xr(n,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),i=Gr(n,{enabled:!t&&o!=="none",axis:o==="none"?void 0:o}),s=gt.useMemo(()=>ye(i.reference,r.reference),[i.reference,r.reference]),a=gt.useMemo(()=>ye(i.trigger,r.trigger),[i.trigger,r.trigger]),d=gt.useMemo(()=>ye(Zc,i.floating,r.floating),[i.floating,r.floating]);return nl(e,{activeTriggerProps:s,inactiveTriggerProps:a,popupProps:d}),null}var er=h(z(),1);var $n=h(z(),1),Si=$n.createContext(void 0);function Bl(){return $n.useContext(Si)}var Hl=(function(e){return e[e.popupOpen=qo.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});var Dl="data-base-ui-tooltip-trigger";function zl(e){if("composedPath"in e){let o=e.composedPath();for(let n=0;n<o.length;n+=1){let r=o[n];if(V(r))return r}}let t=e.target;return V(t)?t:null}function gg(e){let t=e;for(;t;){if(t.hasAttribute(Dl))return t;let o=t.parentElement;if(o){t=o;continue}let n=t.getRootNode();t="host"in n&&V(n.host)?n.host:null}return null}var jl=Yc(function(t,o){let{render:n,className:r,style:i,handle:s,payload:a,disabled:d,delay:c,closeOnClick:l=!0,closeDelay:f,id:p,...m}=t,u=Ze(!0),g=s?.store??u;if(!g)throw new Error(Pe(82));let v=ga(p),_=g.useState("isTriggerActive",v),w=g.useState("isOpenedByTrigger",v),y=g.useState("floatingRootContext"),b=er.useRef(null),S=c??600,x=f??0,{registerTrigger:E,isMountedByThisTrigger:T}=el(v,b,g,{payload:a,closeOnClick:l,closeDelay:x}),k=Bl(),{delayRef:C,isInstantPhase:j,hasProvider:A}=Yr(y,{open:w}),L=xo(y);g.useSyncedValue("isInstantPhase",j);let I=g.useState("disabled"),R=d??I,N=ze(R),H=g.useState("trackCursorAxis"),P=g.useState("disableHoverablePopup"),O=er.useRef(!1),M=rt(),Z=er.useRef(void 0);function W(){let X=k?.delay,pe=typeof C.current=="object"?C.current.open:void 0,ue=S;return A&&(pe!==0?ue=c??X??S:ue=0),ue}function oe(X){let pe=b.current;if(!pe||!X)return!1;let ue=gg(X);return ue!==null&&ue!==pe&&ie(pe,ue)}function te(X){let pe=oe(X);return O.current=pe,pe&&(L.openChangeTimeout.clear(),L.restTimeout.clear(),L.restTimeoutPending=!1,M.clear()),pe}let se=hi(y,{enabled:!R,mouseOnly:!0,move:!1,handleClose:!P&&H!=="both"?wi():null,restMs:W,delay(){let X=typeof C.current=="object"?C.current.close:void 0,pe=x;return f==null&&A&&(pe=X),{close:pe}},triggerElementRef:b,isActiveTrigger:_,isClosing:()=>g.select("transitionStatus")==="ending",shouldOpen(){return!O.current}}),G=pi(y,{enabled:!R}).reference,K=X=>{let pe=O.current,ue=zl(X),vt=te(ue),Te=b.current,Ve=Te&&ue&&ie(Te,ue);if(vt&&g.select("open")&&g.select("lastOpenChangeReason")===U.triggerHover){g.setOpen(!1,ee(U.triggerHover,X));return}if(pe&&!vt&&Ve&&!N.current&&!g.select("open")&&Te&&Rt(Z.current)){let Ke=()=>{!O.current&&!N.current&&!g.select("open")&&g.setOpen(!0,ee(U.triggerHover,X,Te))},He=W();He===0?(M.clear(),Ke()):M.start(He,Ke)}},J=g.useState("triggerProps",T);return Ce("button",t,{state:{open:w},ref:[o,E,b],props:[se,G,T||H!=="none"?J:void 0,{onMouseOver(X){K(X.nativeEvent)},onFocus(X){oe(zl(X.nativeEvent))&&X.preventBaseUIHandler()},onMouseLeave(){O.current=!1,M.clear(),Z.current=void 0},onPointerEnter(X){Z.current=X.pointerType},onPointerDown(X){Z.current=X.pointerType,g.set("closeOnClick",l),l&&!g.select("open")&&g.cancelPendingOpen(X.nativeEvent)},onClick(X){l&&!g.select("open")&&g.cancelPendingOpen(X.nativeEvent)},id:v,[Hl.triggerDisabled]:R?"":void 0,[Dl]:R?void 0:""},m],stateAttributesMapping:pl})});var Vl=h(z(),1);var tr=h(z(),1),Ei=tr.createContext(void 0);function Fl(){let e=tr.useContext(Ei);if(e===void 0)throw new Error(Pe(70));return e}var Ti=h(Q(),1),Wl=Vl.forwardRef(function(t,o){let{keepMounted:n=!1,...r}=t;return Ze().useState("mounted")||n?(0,Ti.jsx)(Ei.Provider,{value:n,children:(0,Ti.jsx)(Ll,{ref:o,...r})}):null});var nr=h(z(),1);var or=h(z(),1),ki=or.createContext(void 0);function ko(){let e=or.useContext(ki);if(e===void 0)throw new Error(Pe(71));return e}var Yl=h(Q(),1),Ul=nr.forwardRef(function(t,o){let{render:n,className:r,anchor:i,positionMethod:s="absolute",side:a="top",align:d="center",sideOffset:c=0,alignOffset:l=0,collisionBoundary:f="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:u=!1,disableAnchorTracking:g=!1,collisionAvoidance:v=Qa,style:_,...w}=t,y=Ze(),b=Fl(),S=y.useState("open"),x=y.useState("mounted"),E=y.useState("trackCursorAxis"),T=y.useState("disableHoverablePopup"),k=y.useState("floatingRootContext"),C=y.useState("instantType"),j=y.useState("transitionStatus"),A=y.useState("hasViewport"),L=yl({anchor:i,positionMethod:s,floatingRootContext:k,mounted:x,side:a,sideOffset:c,align:d,alignOffset:l,collisionBoundary:f,collisionPadding:p,sticky:u,arrowPadding:m,disableAnchorTracking:g,keepMounted:b,collisionAvoidance:v,adaptiveOrigin:A?hl:void 0}),I=nr.useMemo(()=>({open:S,side:L.side,align:L.align,anchorHidden:L.anchorHidden,instant:E!=="none"?"tracking-cursor":C}),[S,L.side,L.align,L.anchorHidden,E,C]),R=xl(t,I,{styles:L.positionerStyles,transitionStatus:j,props:w,refs:[o,y.useStateSetter("positionerElement")],hidden:!x,inert:!S||E==="both"||T});return(0,Yl.jsx)(ki.Provider,{value:L,children:R})});var Gl=h(z(),1);var bg={...Ro,...wa},Xl=Gl.forwardRef(function(t,o){let{render:n,className:r,style:i,...s}=t,a=Ze(),{side:d,align:c}=ko(),l=a.useState("open"),f=a.useState("instantType"),p=a.useState("transitionStatus"),m=a.useState("popupProps"),u=a.useState("floatingRootContext"),g=a.useState("disabled"),v=a.useState("closeDelay");Pn({open:l,ref:a.context.popupRef,onComplete(){l&&a.context.onOpenChangeComplete?.(!0)}}),bi(u,{enabled:!g,closeDelay:v});let _=a.useStateSetter("popupElement");return Ce("div",t,{state:{open:l,side:d,align:c,instant:f,transitionStatus:p},ref:[o,a.context.popupRef,_],props:[m,Xn(p),s],stateAttributesMapping:bg})});var Kl=h(z(),1);var ql=Kl.forwardRef(function(t,o){let{render:n,className:r,style:i,...s}=t,a=Ze(),{arrowRef:d,side:c,align:l,arrowUncentered:f,arrowStyles:p}=ko(),m=a.useState("open"),u=a.useState("instantType");return Ce("div",t,{state:{open:m,side:c,align:l,uncentered:f,instant:u},ref:[o,d],props:[{style:p,"aria-hidden":!0},s],stateAttributesMapping:Ro})});var Pi=h(z(),1);var Ci=h(Q(),1),Zl=function(t){let{delay:o,closeDelay:n,timeout:r=400}=t,i=Pi.useMemo(()=>({delay:o,closeDelay:n}),[o,n]),s=Pi.useMemo(()=>({open:o,close:n}),[o,n]);return(0,Ci.jsx)(Si.Provider,{value:i,children:(0,Ci.jsx)(Wr,{delay:s,timeoutMs:r,children:t.children})})};var Jl=h(z(),1);var Ql=(function(e){return e.popupWidth="--popup-width",e.popupHeight="--popup-height",e})({});var hg={activationDirection:e=>e?{"data-activation-direction":e}:null},$l=Jl.forwardRef(function(t,o){let{render:n,className:r,style:i,children:s,...a}=t,d=Ze(),c=ko(),l=d.useState("instantType"),{children:f,state:p}=Al({store:d,side:c.side,cssVars:Ql,children:s}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:l};return Ce("div",t,{state:m,ref:o,props:[a,{children:f}],stateAttributesMapping:hg})});var Qo=class{constructor(){this.store=new To}open(t){let o=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!o)throw new Error(Pe(81,t));this.store.setOpen(!0,ee(U.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,ee(U.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function ed(){return new Qo}function bt(e){return Ce(e.defaultTagName??"div",e,e)}var nd=h(de(),1),Ai="data-wp-hash";function Oi(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&vg(document)),e.__wpStyleRuntime}function wg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ai}]`))if(o.getAttribute(Ai)===t)return!0;return!1}function rd(e,t,o){if(!e.head)return;let n=Oi(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(wg(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ai,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function vg(e){let t=Oi();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)rd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function id(e,t){let o=Oi();o.styles.set(e,t);for(let n of o.documents.keys())rd(n,e,t)}typeof process>"u",id("a495f9d138",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var td={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};typeof process>"u",id("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var od={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},Je=(0,nd.forwardRef)(function({variant:t="body-md",render:o,className:n,...r},i){return bt({render:o,defaultTagName:"span",ref:i,props:ye(r,{className:$(td.text,od.heading,od.p,td[t],n)})})});var ld=h(Q(),1),Ni="data-wp-hash";function Li(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&yg(document)),e.__wpStyleRuntime}function _g(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ni}]`))if(o.getAttribute(Ni)===t)return!0;return!1}function cd(e,t,o){if(!e.head)return;let n=Li(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(_g(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ni,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function yg(e){let t=Li();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)cd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function xg(e,t){let o=Li();o.styles.set(e,t);for(let n of o.documents.keys())cd(n,e,t)}typeof process>"u",xg("9db2873e7f","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-background-surface-error,#f6e6e3);color:var(--wpds-color-foreground-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-background-surface-warning,#fde6be);color:var(--wpds-color-foreground-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-background-surface-caution,#fee995);color:var(--wpds-color-foreground-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-background-surface-success,#c6f7cd);color:var(--wpds-color-foreground-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-background-surface-info,#deebfa);color:var(--wpds-color-foreground-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}}");var sd={badge:"_96e6251aad1a6136__badge","is-high-intent":"_99f7158cb520f750__is-high-intent","is-medium-intent":"c20ebef2365bc8b7__is-medium-intent","is-low-intent":"_365e1626c6202e52__is-low-intent","is-stable-intent":"_33f8198127ddf4ef__is-stable-intent","is-informational-intent":"_04c1aca8fc449412__is-informational-intent","is-draft-intent":"_90726e69d495ec19__is-draft-intent","is-none-intent":"_898f4a544993bd39__is-none-intent"},Ii=(0,ad.forwardRef)(function({intent:t="none",className:o,...n},r){return(0,ld.jsx)(Je,{ref:r,className:$(sd.badge,sd[`is-${t}-intent`],o),...n,variant:"body-sm"})});var rr=h(de(),1),dd=h(Ot(),1),fd=h(Q(),1);import{speak as Rg}from"@wordpress/a11y";var Mi="data-wp-hash";function Bi(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Eg(document)),e.__wpStyleRuntime}function Sg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Mi}]`))if(o.getAttribute(Mi)===t)return!0;return!1}function ud(e,t,o){if(!e.head)return;let n=Bi(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Sg(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Mi,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Eg(e){let t=Bi();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)ud(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function ir(e,t){let o=Bi();o.styles.set(e,t);for(let n of o.documents.keys())ud(n,e,t)}typeof process>"u",ir("b74f1ac304",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);inset-inline-start:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var Jo={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"};typeof process>"u",ir("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Tg={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",ir("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var kg={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"};typeof process>"u",ir("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var Pg={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},pd=(0,rr.forwardRef)(function({tone:t="brand",variant:o="solid",size:n="default",className:r,focusableWhenDisabled:i=!0,disabled:s,loading:a,loadingAnnouncement:d=(0,dd.__)("Loading"),children:c,...l},f){let p=$(Pg.button,Tg["box-sizing"],kg["outset-ring--focus-except-active"],o!=="unstyled"&&Jo.button,Jo[`is-${t}`],Jo[`is-${o}`],Jo[`is-${n}`],a&&Jo["is-loading"],r);return(0,rr.useEffect)(()=>{a&&d&&Rg(d)},[a,d]),(0,fd.jsx)(_i,{ref:f,className:p,focusableWhenDisabled:i,disabled:s??a,...l,children:c})});var wd=h(de(),1);var gd=h(de(),1),bd=h($t(),1),hd=h(Q(),1),eo=(0,gd.forwardRef)(function({icon:t,size:o=24,...n},r){return(0,hd.jsx)(bd.SVG,{ref:r,...t.props,...n,width:o,height:o})});var _d=h(Q(),1),Hi="data-wp-hash";function zi(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Ag(document)),e.__wpStyleRuntime}function Cg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Hi}]`))if(o.getAttribute(Hi)===t)return!0;return!1}function vd(e,t,o){if(!e.head)return;let n=zi(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Cg(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Hi,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Ag(e){let t=zi();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)vd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Og(e,t){let o=zi();o.styles.set(e,t);for(let n of o.documents.keys())vd(n,e,t)}typeof process>"u",Og("b74f1ac304",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);inset-inline-start:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var Ng={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"},Di=(0,wd.forwardRef)(function({className:t,icon:o,...n},r){return(0,_d.jsx)(eo,{ref:r,icon:o,className:$(Ng.icon,t),size:24,...n})});Di.displayName="Button.Icon";var sr=Object.assign(pd,{Icon:Di});var ar=h($t(),1),ji=h(Q(),1),Fi=(0,ji.jsx)(ar.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ji.jsx)(ar.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})});var cr=h($t(),1),Vi=h(Q(),1),Wi=(0,Vi.jsx)(cr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Vi.jsx)(cr.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});var lr=h($t(),1),Yi=h(Q(),1),Ui=(0,Yi.jsx)(lr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Yi.jsx)(lr.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})});var dr=h($t(),1),Gi=h(Q(),1),Xi=(0,Gi.jsx)(dr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Gi.jsx)(dr.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})});var ur=h($t(),1),Ki=h(Q(),1),qi=(0,Ki.jsx)(ur.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Ki.jsx)(ur.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})});var yd=h(de(),1);function Zi(e,t,o){return(0,yd.cloneElement)(e??t,{children:o})}var Lg=h(Rd(),1);var Ed=h(Qi(),1),{lock:h4,unlock:Td}=(0,Ed.__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/ui");function Ig(){let e=Lg;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return Td(e.privateApis).ThemeProvider}var kd=Ig();var Pd=h(de(),1),Ji="data-wp-hash";function $i(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Bg(document)),e.__wpStyleRuntime}function Mg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ji}]`))if(o.getAttribute(Ji)===t)return!0;return!1}function Cd(e,t,o){if(!e.head)return;let n=$i(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Mg(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ji,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Bg(e){let t=$i();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Cd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Hg(e,t){let o=$i();o.styles.set(e,t);for(let n of o.documents.keys())Cd(n,e,t)}typeof process>"u",Hg("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var zg={stack:"_19ce0419607e1896__stack"},Dg={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},Po=(0,Pd.forwardRef)(function({direction:t,gap:o,align:n,justify:r,wrap:i,render:s,...a},d){let c={gap:o&&Dg[o],alignItems:n,justifyContent:r,flexDirection:t,flexWrap:i};return bt({render:s,ref:d,props:ye(a,{style:c,className:zg.stack})})});var Kd=h(de(),1);var Vd=h(de(),1);var Id=h(de(),1);var ts="data-wp-hash";function os(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Fg(document)),e.__wpStyleRuntime}function jg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ts}]`))if(o.getAttribute(ts)===t)return!0;return!1}function Od(e,t,o){if(!e.head)return;let n=os(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(jg(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(ts,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Fg(e){let t=os();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Od(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Vg(e,t){let o=os();o.styles.set(e,t);for(let n of o.documents.keys())Od(n,e,t)}typeof process>"u",Vg("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var Ad={slot:"_11fc52b637ff8a7e__slot"},Nd="data-wp-compat-overlay-slot";function Wg(){return typeof document>"u"?null:document}function Yg(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var ht=null;function es(e){return e.setAttribute("aria-hidden","false"),e}function Ug(e){let t=e.createElement("div");return t.setAttribute(Nd,""),Ad.slot&&t.classList.add(Ad.slot),e.body.appendChild(t),t}function Ld(){if(typeof window>"u"||!Yg()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=Wg();if(!e||!e.body)return;if(ht&&ht.ownerDocument===e&&ht.isConnected)return es(ht);let t=e.querySelector(`[${Nd}]`);return t instanceof HTMLDivElement?(ht=es(t),ht):(ht?.isConnected&&ht.remove(),ht=es(Ug(e)),ht)}var Md=h(Q(),1),Bd=(0,Id.forwardRef)(function({container:t,...o},n){return(0,Md.jsx)(Qe.Portal,{container:t??Ld(),...o,ref:n})});var Hd=h(de(),1),jd=h(Q(),1),ns="data-wp-hash";function rs(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Xg(document)),e.__wpStyleRuntime}function Gg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ns}]`))if(o.getAttribute(ns)===t)return!0;return!1}function zd(e,t,o){if(!e.head)return;let n=rs(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Gg(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(ns,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Xg(e){let t=rs();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)zd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Dd(e,t){let o=rs();o.styles.set(e,t);for(let n of o.documents.keys())zd(n,e,t)}typeof process>"u",Dd("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Kg={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Dd("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var qg={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},Fd=(0,Hd.forwardRef)(function({align:t="center",className:o,side:n="top",sideOffset:r=4,...i},s){return(0,jd.jsx)(Qe.Positioner,{ref:s,align:t,side:n,sideOffset:r,...i,className:$(Kg["box-sizing"],qg.positioner,o)})});var $o=h(Q(),1),is="data-wp-hash";function ss(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Qg(document)),e.__wpStyleRuntime}function Zg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${is}]`))if(o.getAttribute(is)===t)return!0;return!1}function Wd(e,t,o){if(!e.head)return;let n=ss(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Zg(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(is,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Qg(e){let t=ss();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Wd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Jg(e,t){let o=ss();o.styles.set(e,t);for(let n of o.documents.keys())Wd(n,e,t)}typeof process>"u",Jg("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var $g={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},eb={background:"#1e1e1e"},as=(0,Vd.forwardRef)(function({portal:t,positioner:o,children:n,className:r,...i},s){let a=(0,$o.jsx)(kd,{color:eb,children:(0,$o.jsx)(Qe.Popup,{ref:s,className:$($g.popup,r),...i,children:n})}),d=Zi(o,(0,$o.jsx)(Fd,{}),a);return Zi(t,(0,$o.jsx)(Bd,{}),d)});var Yd=h(de(),1),Ud=h(Q(),1),cs=(0,Yd.forwardRef)(function(t,o){return(0,Ud.jsx)(Qe.Trigger,{ref:o,...t})});var Gd=h(Q(),1);function ls(e){return(0,Gd.jsx)(Qe.Root,{...e})}var lt=h(Q(),1),ds="data-wp-hash";function us(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&nb(document)),e.__wpStyleRuntime}function ob(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ds}]`))if(o.getAttribute(ds)===t)return!0;return!1}function qd(e,t,o){if(!e.head)return;let n=us(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(ob(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(ds,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function nb(e){let t=us();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)qd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function rb(e,t){let o=us();o.styles.set(e,t);for(let n of o.documents.keys())qd(n,e,t)}typeof process>"u",rb("c5cdafb1bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._28cfdc260e755391__icon-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset}.f1c70d719989a85a__icon{margin:-1px}}}");var Xd={"icon-button":"_28cfdc260e755391__icon-button",icon:"f1c70d719989a85a__icon"},fs=(0,Kd.forwardRef)(function({label:t,className:o,children:n,disabled:r,focusableWhenDisabled:i=!0,icon:s,size:a,shortcut:d,positioner:c,...l},f){let p=$(Xd["icon-button"],o);return(0,lt.jsxs)(ls,{children:[(0,lt.jsx)(cs,{ref:f,disabled:r&&!i,render:(0,lt.jsx)(sr,{...l,size:a,"aria-label":t,"aria-keyshortcuts":d?.ariaKeyShortcut,disabled:r,focusableWhenDisabled:i}),className:p,children:(0,lt.jsx)(eo,{icon:s,size:24,className:Xd.icon})}),(0,lt.jsxs)(as,{positioner:c,children:[t,d&&(0,lt.jsxs)(lt.Fragment,{children:[" ",(0,lt.jsx)("span",{"aria-hidden":"true",children:d.displayShortcut})]})]})]})});var Zd=h(de(),1),Qd=h(Ot(),1),Co=h(Q(),1),ps="data-wp-hash";function ms(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&sb(document)),e.__wpStyleRuntime}function ib(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ps}]`))if(o.getAttribute(ps)===t)return!0;return!1}function Jd(e,t,o){if(!e.head)return;let n=ms(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(ib(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(ps,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function sb(e){let t=ms();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Jd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function pr(e,t){let o=ms();o.styles.set(e,t);for(let n of o.documents.keys())Jd(n,e,t)}typeof process>"u",pr("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var ab={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",pr("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var cb={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"};typeof process>"u",pr("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var fr={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};typeof process>"u",pr("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var lb={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},en=(0,Zd.forwardRef)(function({children:t,variant:o="default",tone:n="brand",openInNewTab:r=!1,render:i,className:s,...a},d){return bt({render:i,defaultTagName:"a",ref:d,props:ye(a,{className:$(lb.a,ab["box-sizing"],cb["outset-ring--focus-except-active"],o!=="unstyled"&&fr.link,o!=="unstyled"&&fr[`is-${n}`],o==="unstyled"&&fr["is-unstyled"],s),target:r?"_blank":void 0,children:(0,Co.jsxs)(Co.Fragment,{children:[t,r&&(0,Co.jsx)("span",{className:fr["link-icon"],role:"img","aria-label":(0,Qd.__)("(opens in a new tab)")})]})})})});var tn={};At(tn,{ActionButton:()=>xu,ActionLink:()=>Eu,Actions:()=>fu,CloseIcon:()=>hu,Description:()=>lu,Root:()=>tu,Title:()=>iu});var Ao=h(de(),1);import{speak as db}from"@wordpress/a11y";var Oo=h(Q(),1),bs="data-wp-hash";function hs(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&fb(document)),e.__wpStyleRuntime}function ub(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${bs}]`))if(o.getAttribute(bs)===t)return!0;return!1}function $d(e,t,o){if(!e.head)return;let n=hs(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(ub(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(bs,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function fb(e){let t=hs();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)$d(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function eu(e,t){let o=hs();o.styles.set(e,t);for(let n of o.documents.keys())$d(n,e,t)}typeof process>"u",eu("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var pb={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",eu("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var gs={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},mb={neutral:null,info:Xi,warning:Fi,success:qi,error:Ui};function gb(e){return e==="error"?"assertive":"polite"}function bb(e){if(e){if(typeof e=="string")return e;try{return(0,Ao.renderToString)(e)}catch{return}}}function hb(e,t){let o=bb(e);(0,Ao.useEffect)(()=>{o&&db(o,t)},[o,t])}var tu=(0,Ao.forwardRef)(function({intent:t="neutral",children:o,icon:n,spokenMessage:r=o,politeness:i=gb(t),render:s,...a},d){hb(r,i);let c=n===null?null:n??mb[t],l=$(gs.notice,gs[`is-${t}`],pb["box-sizing"]);return bt({defaultTagName:"div",render:s,ref:d,props:ye({className:l,children:(0,Oo.jsxs)(Oo.Fragment,{children:[o,c&&(0,Oo.jsx)(eo,{className:gs.icon,icon:c})]})},a)})});var ou=h(de(),1);var ru=h(Q(),1),ws="data-wp-hash";function vs(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&vb(document)),e.__wpStyleRuntime}function wb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ws}]`))if(o.getAttribute(ws)===t)return!0;return!1}function nu(e,t,o){if(!e.head)return;let n=vs(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(wb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(ws,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function vb(e){let t=vs();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)nu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function _b(e,t){let o=vs();o.styles.set(e,t);for(let n of o.documents.keys())nu(n,e,t)}typeof process>"u",_b("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var yb={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},iu=(0,ou.forwardRef)(function({className:t,...o},n){return(0,ru.jsx)(Je,{ref:n,variant:"heading-md",className:$(yb.title,t),...o})});var su=h(de(),1);var cu=h(Q(),1),_s="data-wp-hash";function ys(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Rb(document)),e.__wpStyleRuntime}function xb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${_s}]`))if(o.getAttribute(_s)===t)return!0;return!1}function au(e,t,o){if(!e.head)return;let n=ys(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(xb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(_s,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Rb(e){let t=ys();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)au(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Sb(e,t){let o=ys();o.styles.set(e,t);for(let n of o.documents.keys())au(n,e,t)}typeof process>"u",Sb("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var Eb={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},lu=(0,su.forwardRef)(function({className:t,...o},n){return(0,cu.jsx)(Je,{ref:n,variant:"body-md",className:$(Eb.description,t),...o})});var du=h(de(),1);var xs="data-wp-hash";function Rs(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&kb(document)),e.__wpStyleRuntime}function Tb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${xs}]`))if(o.getAttribute(xs)===t)return!0;return!1}function uu(e,t,o){if(!e.head)return;let n=Rs(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Tb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(xs,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function kb(e){let t=Rs();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)uu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Pb(e,t){let o=Rs();o.styles.set(e,t);for(let n of o.documents.keys())uu(n,e,t)}typeof process>"u",Pb("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var Cb={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},fu=(0,du.forwardRef)(function({render:t,...o},n){return bt({defaultTagName:"div",render:t,ref:n,props:ye({className:Cb.actions},o)})});var pu=h(de(),1),mu=h(Ot(),1);var bu=h(Q(),1),Ss="data-wp-hash";function Es(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Ob(document)),e.__wpStyleRuntime}function Ab(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ss}]`))if(o.getAttribute(Ss)===t)return!0;return!1}function gu(e,t,o){if(!e.head)return;let n=Es(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Ab(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ss,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Ob(e){let t=Es();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)gu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Nb(e,t){let o=Es();o.styles.set(e,t);for(let n of o.documents.keys())gu(n,e,t)}typeof process>"u",Nb("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var Lb={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},hu=(0,pu.forwardRef)(function({className:t,icon:o=Wi,label:n=(0,mu.__)("Dismiss"),...r},i){return(0,bu.jsx)(fs,{...r,ref:i,className:$(Lb["close-icon"],t),variant:"minimal",size:"small",tone:"neutral",icon:o,label:n})});var vu=h(de(),1);var yu=h(Q(),1),Ts="data-wp-hash";function ks(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Mb(document)),e.__wpStyleRuntime}function Ib(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ts}]`))if(o.getAttribute(Ts)===t)return!0;return!1}function _u(e,t,o){if(!e.head)return;let n=ks(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Ib(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ts,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Mb(e){let t=ks();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)_u(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Bb(e,t){let o=ks();o.styles.set(e,t);for(let n of o.documents.keys())_u(n,e,t)}typeof process>"u",Bb("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var wu={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},xu=(0,vu.forwardRef)(function({className:t,loading:o,loadingAnnouncement:n,variant:r,...i},s){return(0,yu.jsx)(sr,{...i,...o!==void 0?{loading:o,loadingAnnouncement:n??""}:{},ref:s,size:"compact",tone:"neutral",variant:r,className:$(wu["action-button"],wu[`is-action-button-${r}`],t)})});var Ru=h(de(),1);var Cs=h(Q(),1),Ps="data-wp-hash";function As(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&zb(document)),e.__wpStyleRuntime}function Hb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ps}]`))if(o.getAttribute(Ps)===t)return!0;return!1}function Su(e,t,o){if(!e.head)return;let n=As(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Hb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ps,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function zb(e){let t=As();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Su(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Db(e,t){let o=As();o.styles.set(e,t);for(let n of o.documents.keys())Su(n,e,t)}typeof process>"u",Db("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var jb={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},Eu=(0,Ru.forwardRef)(function({className:t,render:o,...n},r){return(0,Cs.jsx)(Je,{ref:r,className:$(jb["action-link"],t),...n,variant:"body-md",render:(0,Cs.jsx)(en,{tone:"neutral",variant:"default",render:o})})});var Tu=h(de(),1),ku=h(Q(),1),Pu=(0,Tu.forwardRef)(({children:e,className:t,ariaLabel:o,as:n="div",...r},i)=>(0,ku.jsx)(n,{ref:i,className:$("admin-ui-navigable-region",t),"aria-label":o,role:"region",tabIndex:"-1",...r,children:e}));Pu.displayName="NavigableRegion";var Cu=Pu;var Ou=h(on(),1),{Fill:Nu,Slot:Lu}=(0,Ou.createSlotFill)("SidebarToggle");var $e=h(Q(),1),Os="data-wp-hash";function Ns(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Vb(document)),e.__wpStyleRuntime}function Fb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Os}]`))if(o.getAttribute(Os)===t)return!0;return!1}function Iu(e,t,o){if(!e.head)return;let n=Ns(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Fb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Os,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Vb(e){let t=Ns();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Iu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Wb(e,t){let o=Ns();o.styles.set(e,t);for(let n of o.documents.keys())Iu(n,e,t)}typeof process>"u",Wb("ddd9aab364","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var to={page:"_956b6df0898efed0__page",header:"_0625b55e82a0d93d__header","header-content":"a43c44d5ae28b2e8__header-content","header-actions":"b7cb5b9daf3a3b25__header-actions","header-title":"_8113be94e7caf73c__header-title","header-visual":"_9a776c7f70996f61__header-visual","sidebar-toggle-slot":"d5e0920cd15d35bc__sidebar-toggle-slot","header-subtitle":"_60fea2f6bf5319cd__header-subtitle",content:"be5e57d029ec4036__content","has-padding":"_128806d0b26e3a50__has-padding"};function Mu({headingLevel:e=1,breadcrumbs:t,badges:o,visual:n,title:r,subTitle:i,actions:s,showSidebarToggle:a=!0}){let d=`h${e}`;return(0,$e.jsxs)(Po,{direction:"column",className:to.header,children:[(0,$e.jsxs)(Po,{className:to["header-content"],direction:"row",gap:"sm",justify:"space-between",children:[(0,$e.jsxs)(Po,{direction:"row",gap:"sm",align:"center",justify:"start",children:[a&&(0,$e.jsx)(Lu,{bubblesVirtually:!0,className:to["sidebar-toggle-slot"]}),n&&(0,$e.jsx)("div",{className:to["header-visual"],"aria-hidden":"true",children:n}),r&&(0,$e.jsx)(Je,{className:to["header-title"],render:(0,$e.jsx)(d,{}),variant:"heading-lg",children:r}),t,o]}),s&&(0,$e.jsx)(Po,{align:"center",className:to["header-actions"],direction:"row",gap:"sm",children:s})]}),i&&(0,$e.jsx)(Je,{render:(0,$e.jsx)("p",{}),variant:"body-md",className:to["header-subtitle"],children:i})]})}var nn=h(Q(),1),Is="data-wp-hash";function Ms(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Ub(document)),e.__wpStyleRuntime}function Yb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Is}]`))if(o.getAttribute(Is)===t)return!0;return!1}function Bu(e,t,o){if(!e.head)return;let n=Ms(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Yb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Is,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Ub(e){let t=Ms();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Bu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Gb(e,t){let o=Ms();o.styles.set(e,t);for(let n of o.documents.keys())Bu(n,e,t)}typeof process>"u",Gb("ddd9aab364","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var Ls={page:"_956b6df0898efed0__page",header:"_0625b55e82a0d93d__header","header-content":"a43c44d5ae28b2e8__header-content","header-actions":"b7cb5b9daf3a3b25__header-actions","header-title":"_8113be94e7caf73c__header-title","header-visual":"_9a776c7f70996f61__header-visual","sidebar-toggle-slot":"d5e0920cd15d35bc__sidebar-toggle-slot","header-subtitle":"_60fea2f6bf5319cd__header-subtitle",content:"be5e57d029ec4036__content","has-padding":"_128806d0b26e3a50__has-padding"};function Hu({headingLevel:e,breadcrumbs:t,badges:o,visual:n,title:r,subTitle:i,children:s,className:a,actions:d,ariaLabel:c,hasPadding:l=!1,showSidebarToggle:f=!0}){let p=$(Ls.page,a);return(0,nn.jsxs)(Cu,{className:p,ariaLabel:c??(typeof r=="string"?r:""),children:[(r||t||o||d||n)&&(0,nn.jsx)(Mu,{headingLevel:e,breadcrumbs:t,badges:o,visual:n,title:r,subTitle:i,actions:d,showSidebarToggle:f}),l?(0,nn.jsx)("div",{className:$(Ls.content,Ls["has-padding"]),children:s}):s]})}Hu.SidebarToggleFill=Nu;var Bs=Hu;var dt=h(on()),lf=h(rn()),df=h(de()),Tt=h(Ot()),uf=h(mr());import{privateApis as l0}from"@wordpress/connectors";var ju=h(Qi()),{lock:l3,unlock:No}=(0,ju.__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/routes");if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='09e9b056ea']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","09e9b056ea"),e.appendChild(document.createTextNode(".connectors-page{box-sizing:border-box;margin:0 auto;max-width:680px;padding:24px;width:100%}.connectors-page .components-item{background:#fff;border:1px solid #ddd;border-radius:8px;overflow:hidden;padding:20px;scroll-margin-top:120px}.connectors-page .connector-settings__error{color:#cc1818}.connectors-page .connector-settings .components-text-control__input{font-family:monospace;scroll-margin-top:120px}.connectors-page__file-mods-notice{margin-bottom:16px}.connectors-page--empty{align-items:center;display:flex;flex-direction:column;flex-grow:1;gap:32px;justify-content:center;text-align:center}.connectors-page .ai-plugin-callout{background-color:#e7d4e4;background-image:radial-gradient(ellipse 70% 120% at 18% 115%,rgba(202,158,198,.75) 0,rgba(202,158,198,0) 60%),radial-gradient(ellipse 55% 110% at 92% -15%,rgba(208,175,217,.7) 0,rgba(208,175,217,0) 65%),radial-gradient(ellipse 40% 85% at 58% -10%,rgba(170,130,184,.45) 0,rgba(170,130,184,0) 70%);border-radius:8px;overflow:hidden;padding:24px;padding-inline-end:150px;position:relative}[dir=rtl] .connectors-page .ai-plugin-callout{background-image:radial-gradient(ellipse 70% 120% at 82% 115%,rgba(202,158,198,.75) 0,rgba(202,158,198,0) 60%),radial-gradient(ellipse 55% 110% at 8% -15%,rgba(208,175,217,.7) 0,rgba(208,175,217,0) 65%),radial-gradient(ellipse 40% 85% at 42% -10%,rgba(170,130,184,.45) 0,rgba(170,130,184,0) 70%)}.connectors-page .ai-plugin-callout__content{align-items:flex-start;display:flex;flex-direction:column;gap:12px;padding-top:2px}.connectors-page .ai-plugin-callout__content p{font-size:13px;line-height:20px;margin:0}.connectors-page .ai-plugin-callout__decoration{height:110px;inset-inline-end:16px;position:absolute;top:12px;width:110px}.connectors-page>p{color:#949494}@media (max-width:680px){.connectors-page .ai-plugin-callout{padding:12px;padding-inline-end:100px}.connectors-page .ai-plugin-callout__decoration{height:75px;inset-inline-end:8px;top:8px;width:75px}}@media (max-width:480px){.connectors-page{padding:8px}.connectors-page .ai-plugin-callout{padding-inline-end:130px}.connectors-page .components-item{padding:12px}.connectors-page .components-item>.components-v-stack>.components-h-stack:first-child svg{height:32px;width:32px}.connectors-page .components-item>.components-v-stack>.components-h-stack:first-child>.components-h-stack:last-child{align-items:flex-end;flex-direction:column}}")),document.head.appendChild(e)}var cn=h(on()),Ws=h(mr()),ln=h(rn()),wt=h(de()),Xe=h(Ot()),rf=h(Hs()),sf=h(Wu());var gr=h(on()),js=h(de()),Qu=h(rn()),oo=h(Ot());import{__experimentalRegisterConnector as Xb,__experimentalConnectorItem as Zu,__experimentalDefaultConnectorSettings as Kb,__experimentalApplicationPasswordConnectorSettings as qb,privateApis as Zb}from"@wordpress/connectors";var zs=h(mr()),an=h(rn()),sn=h(de()),fe=h(Ot()),Yu=h(Hs());function Ds({file:e,settingName:t,connectorName:o,isInstalled:n,isActivated:r,keySource:i="none",initialIsConnected:s=!1}){let[a,d]=(0,sn.useState)(!1),[c,l]=(0,sn.useState)(!1),[f,p]=(0,sn.useState)(s),[m,u]=(0,sn.useState)(null),g=e?.replace(/\.php$/,""),v=g?.includes("/")?g.split("/")[0]:g,{derivedPluginStatus:_,canManagePlugins:w,currentApiKey:y,currentUsername:b,hasStoredCredentials:S,hasResolvedSettings:x,canInstallPlugins:E}=(0,an.useSelect)(K=>{let J=K(zs.store),me=J.getEntityRecord("root","site")?.[t],le=typeof me=="string"?me:"",X=typeof me=="object"&&me!==null?me:void 0,pe=X!==void 0?!!X.username&&!!X.password:!!le,ue=J.hasFinishedResolution("getEntityRecord",["root","site"]),vt=!!J.canUser("create",{kind:"root",name:"plugin"}),Te={currentApiKey:le,currentUsername:X?.username??"",hasStoredCredentials:pe,hasResolvedSettings:ue,canInstallPlugins:vt};if(!e)return{...Te,derivedPluginStatus:ue?"active":"checking",canManagePlugins:void 0};let Ve=J.getEntityRecord("root","plugin",g);if(!J.hasFinishedResolution("getEntityRecord",["root","plugin",g]))return{...Te,derivedPluginStatus:"checking",canManagePlugins:void 0};if(Ve){let no=Ve.status==="active"||Ve.status==="network-active";return{...Te,derivedPluginStatus:no?"active":"inactive",canManagePlugins:!0}}let He="not-installed";return r?He="active":n&&(He="inactive"),{...Te,derivedPluginStatus:He,canManagePlugins:!1}},[e,g,t,n,r]),T=m??_,k=w,C=T==="active"&&f||m==="active"&&S,{saveEntityRecord:j,invalidateResolution:A}=(0,an.useDispatch)(zs.store),{createSuccessNotice:L,createErrorNotice:I}=(0,an.useDispatch)(Yu.store),R=K=>j("root","site",{[t]:K},{throwOnError:!0}),N=()=>{L((0,fe.sprintf)((0,fe.__)("%s connected successfully."),o),{id:"connector-connect-success",type:"snackbar"})},H=()=>{L((0,fe.sprintf)((0,fe.__)("%s disconnected."),o),{id:"connector-disconnect-success",type:"snackbar"})},P=()=>{I((0,fe.sprintf)((0,fe.__)("Failed to disconnect %s."),o),{id:"connector-disconnect-error",type:"snackbar"})},O=async()=>{if(v){l(!0);try{await j("root","plugin",{slug:v,status:"active"},{throwOnError:!0}),u("active"),A("getEntityRecord",["root","site"]),d(!0),L((0,fe.sprintf)((0,fe.__)("Plugin for %s installed and activated successfully."),o),{id:"connector-plugin-install-success",type:"snackbar"})}catch{I((0,fe.sprintf)((0,fe.__)("Failed to install plugin for %s."),o),{id:"connector-plugin-install-error",type:"snackbar"})}finally{l(!1)}}},M=async()=>{if(e){l(!0);try{await j("root","plugin",{plugin:g,status:"active"},{throwOnError:!0}),u("active"),A("getEntityRecord",["root","site"]),d(!0),L((0,fe.sprintf)((0,fe.__)("Plugin for %s activated successfully."),o),{id:"connector-plugin-activate-success",type:"snackbar"})}catch{I((0,fe.sprintf)((0,fe.__)("Failed to activate plugin for %s."),o),{id:"connector-plugin-activate-error",type:"snackbar"})}finally{l(!1)}}};return{pluginStatus:T,canInstallPlugins:E,canActivatePlugins:k,isExpanded:a,setIsExpanded:d,isBusy:c,isConnected:C,currentApiKey:y,currentUsername:b,hasResolvedSettings:x,keySource:i,handleButtonClick:()=>{if(T==="not-installed"){if(E===!1)return;O()}else if(T==="inactive"){if(k===!1)return;M()}else d(!a)},getButtonLabel:()=>{if(c)return T==="not-installed"?(0,fe.__)("Installing\u2026"):(0,fe.__)("Activating\u2026");if(a)return(0,fe.__)("Cancel");if(C)return(0,fe.__)("Edit");switch(T){case"checking":return(0,fe.__)("Checking\u2026");case"not-installed":return(0,fe.__)("Install");case"inactive":return(0,fe.__)("Activate");case"active":return(0,fe.__)("Set up")}},saveApiKey:async K=>{let J=y;try{let le=(await R(K))?.[t];if(K&&(le===J||!le))throw new Error("It was not possible to connect to the provider using this key.");p(!0),N()}catch(ne){throw console.error("Failed to save API key:",ne),ne}},removeApiKey:async()=>{try{await R(""),p(!1),H()}catch(K){console.error("Failed to remove API key:",K),P()}},saveCredentials:async({username:K,applicationPassword:J})=>{try{let le=(await R({username:K,password:J}))?.[t];if(!le?.username||!le?.password)throw new Error((0,fe.__)("It was not possible to save these credentials."));p(!0),N()}catch(ne){throw console.error("Failed to save credentials:",ne),ne}},removeCredentials:async()=>{try{await R({username:"",password:""}),p(!1),H()}catch(K){console.error("Failed to remove credentials:",K),P()}}}}var Uu=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364l2.0201-1.1685a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.4043-.6813zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z",fill:"currentColor"})),Gu=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("path",{d:"M6.2 21.024L12.416 17.536L12.52 17.232L12.416 17.064H12.112L11.072 17L7.52 16.904L4.44 16.776L1.456 16.616L0.704 16.456L0 15.528L0.072 15.064L0.704 14.64L1.608 14.72L3.608 14.856L6.608 15.064L8.784 15.192L12.008 15.528H12.52L12.592 15.32L12.416 15.192L12.28 15.064L9.176 12.96L5.816 10.736L4.056 9.456L3.104 8.808L2.624 8.2L2.416 6.872L3.28 5.92L4.44 6L4.736 6.08L5.912 6.984L8.424 8.928L11.704 11.344L12.184 11.744L12.376 11.608L12.4 11.512L12.184 11.152L10.4 7.928L8.496 4.648L7.648 3.288L7.424 2.472C7.344 2.136 7.288 1.856 7.288 1.512L8.272 0.176L8.816 0L10.128 0.176L10.68 0.656L11.496 2.52L12.816 5.456L14.864 9.448L15.464 10.632L15.784 11.728L15.904 12.064H16.112V11.872L16.28 9.624L16.592 6.864L16.896 3.312L17 2.312L17.496 1.112L18.48 0.464L19.248 0.832L19.88 1.736L19.792 2.32L19.416 4.76L18.68 8.584L18.2 11.144H18.48L18.8 10.824L20.096 9.104L22.272 6.384L23.232 5.304L24.352 4.112L25.072 3.544H26.432L27.432 5.032L26.984 6.568L25.584 8.344L24.424 9.848L22.76 12.088L21.72 13.88L21.816 14.024L22.064 14L25.824 13.2L27.856 12.832L30.28 12.416L31.376 12.928L31.496 13.448L31.064 14.512L28.472 15.152L25.432 15.76L20.904 16.832L20.848 16.872L20.912 16.952L22.952 17.144L23.824 17.192H25.96L29.936 17.488L30.976 18.176L31.6 19.016L31.496 19.656L29.896 20.472L27.736 19.96L22.696 18.76L20.968 18.328H20.728V18.472L22.168 19.88L24.808 22.264L28.112 25.336L28.28 26.096L27.856 26.696L27.408 26.632L24.504 24.448L23.384 23.464L20.848 21.328H20.68V21.552L21.264 22.408L24.352 27.048L24.512 28.472L24.288 28.936L23.488 29.216L22.608 29.056L20.8 26.52L18.936 23.664L17.432 21.104L17.248 21.208L16.36 30.768L15.944 31.256L14.984 31.624L14.184 31.016L13.76 30.032L14.184 28.088L14.696 25.552L15.112 23.536L15.488 21.032L15.712 20.2L15.696 20.144L15.512 20.168L13.624 22.76L10.752 26.64L8.48 29.072L7.936 29.288L6.992 28.8L7.08 27.928L7.608 27.152L10.752 23.152L12.648 20.672L13.872 19.24L13.864 19.032H13.792L5.44 24.456L3.952 24.648L3.312 24.048L3.392 23.064L3.696 22.744L6.208 21.016L6.2 21.024Z",fill:"#D97757"})),Xu=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4V28C32 30.2091 30.2091 32 28 32H4C1.79086 32 0 30.2091 0 28V4Z",fill:"#F0F0F0"}),React.createElement("path",{d:"M14.5 8V12H17.5V8H19V12H20.5C20.7652 12 21.0196 12.1054 21.2071 12.2929C21.3946 12.4804 21.5 12.7348 21.5 13V17L18.5 21V23C18.5 23.2652 18.3946 23.5196 18.2071 23.7071C18.0196 23.8946 17.7652 24 17.5 24H14.5C14.2348 24 13.9804 23.8946 13.7929 23.7071C13.6054 23.5196 13.5 23.2652 13.5 23V21L10.5 17V13C10.5 12.7348 10.6054 12.4804 10.7929 12.2929C10.9804 12.1054 11.2348 12 11.5 12H13V8H14.5ZM15 20.5V22.5H17V20.5L20 16.5V13.5H12V16.5L15 20.5Z",fill:"#949494"})),Ku=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("rect",{width:"44",height:"44",fill:"#357B49",rx:"6"}),React.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"m29.746 28.31-6.392-16.797c-.152-.397-.305-.672-.789-.675-.673 0-1.408.611-1.746 1.316l-7.378 16.154c-.072.16-.143.311-.214.454-.5.995-1.045 1.546-2.357 1.626a.399.399 0 0 0-.16.033l-.01.004a.399.399 0 0 0-.23.392v.01c0 .054.01.106.03.155l.004.01a.416.416 0 0 0 .394.252h6.212a.417.417 0 0 0 .307-.12.416.416 0 0 0 .124-.305.398.398 0 0 0-.105-.302.399.399 0 0 0-.294-.127c-.757 0-2.197-.062-2.197-1.164.02-.318.103-.63.245-.916l1.399-3.152c.52-1.163 1.654-1.163 2.572-1.163h5.843c.023 0 .044 0 .062.003.13.014.16.081.214.242l1.534 4.07a2.857 2.857 0 0 1 .216 1.04c0 .054-.003.104-.01.153-.09.726-.831.887-1.49.887a.4.4 0 0 0-.294.127l-.007.008-.007.008a.401.401 0 0 0-.092.286v.01c0 .054.01.106.03.155l.005.01a.42.42 0 0 0 .395.252h7.011a.413.413 0 0 0 .279-.13.412.412 0 0 0 .11-.297.387.387 0 0 0-.09-.294.388.388 0 0 0-.277-.135c-1.448-.122-2.295-.643-2.847-2.08Zm-11.985-5.844 2.847-6.304c.361-.728.659-1.486.889-2.265 0-.06.03-.092.06-.092s.061.032.061.091c.02.122.045.247.073.374.197.888.584 1.878.914 2.723l.176.453 1.684 4.529a.927.927 0 0 1 .092.4.473.473 0 0 1-.009.094c-.041.202-.228.272-.602.272h-6.063c-.122 0-.184-.03-.184-.092a.36.36 0 0 1 .062-.183Zm17.107-.721c0 .786-.446 1.231-1.25 1.231-.806 0-1.125-.409-1.125-1.034 0-.786.465-1.231 1.25-1.231.785 0 1.125.427 1.125 1.034ZM9.629 23.002c.803 0 1.25-.447 1.25-1.231 0-.607-.343-1.036-1.128-1.036-.785 0-1.25.447-1.25 1.231 0 .625.325 1.036 1.128 1.036Z",clipRule:"evenodd"})),qu=()=>React.createElement("svg",{width:"40",height:"40",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"#3186FF"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-0)"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-1)"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-2)"}),React.createElement("defs",null,React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-0",x1:"7",x2:"11",y1:"15.5",y2:"12"},React.createElement("stop",{stopColor:"#08B962"}),React.createElement("stop",{offset:"1",stopColor:"#08B962",stopOpacity:"0"})),React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-1",x1:"8",x2:"11.5",y1:"5.5",y2:"11"},React.createElement("stop",{stopColor:"#F94543"}),React.createElement("stop",{offset:"1",stopColor:"#F94543",stopOpacity:"0"})),React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-2",x1:"3.5",x2:"17.5",y1:"13.5",y2:"12"},React.createElement("stop",{stopColor:"#FABC12"}),React.createElement("stop",{offset:".46",stopColor:"#FABC12",stopOpacity:"0"}))));var{store:Qb}=No(Zb);function Ju(){try{return JSON.parse(document.getElementById("wp-script-module-data-options-connectors-wp-admin")?.textContent??"{}")}catch{return{}}}function Fs(){return Ju().connectors??{}}function $u(){return!!Ju().isFileModDisabled}var Jb={google:qu,openai:Uu,anthropic:Gu,akismet:Ku};function $b(e,t){if(t)return React.createElement("img",{src:t,alt:"",width:40,height:40});let o=Jb[e];return React.createElement(o||Xu,null)}var e0=()=>React.createElement("span",{style:{color:"#345b37",backgroundColor:"#eff8f0",padding:"4px 12px",borderRadius:"2px",fontSize:"13px",fontWeight:"var(--wpds-typography-font-weight-emphasis)",whiteSpace:"nowrap"}},(0,oo.__)("Connected")),t0=({slug:e})=>React.createElement(en,{href:(0,oo.sprintf)((0,oo.__)("https://wordpress.org/plugins/%s/"),e),openInNewTab:!0},(0,oo.__)("Learn more")),o0=()=>React.createElement(Ii,null,(0,oo.__)("Not available"));function ef({isConnected:e,showUnavailableBadge:t,pluginSlug:o,isExpanded:n,isBusy:r,pluginStatus:i,actionButtonRef:s,handleButtonClick:a,getButtonLabel:d}){return React.createElement(gr.__experimentalHStack,{spacing:3,expanded:!1},e&&React.createElement(e0,null),t&&(o?React.createElement(t0,{slug:o}):React.createElement(o0,null)),!t&&React.createElement(gr.Button,{ref:s,variant:n||e?"tertiary":"secondary",size:"compact",onClick:a,disabled:i==="checking"||r,isBusy:r,accessibleWhenDisabled:!0},d()))}function tf(e){let t=e?.replace(/\.php$/,"");return t?.includes("/")?t.split("/")[0]:t}function n0({name:e,description:t,logo:o,authentication:n,plugin:r}){let i=n?.method==="api_key"?n:void 0,s=i?.settingName??"",a=i?.credentialsUrl??void 0,d=tf(r?.file),{pluginStatus:c,canInstallPlugins:l,canActivatePlugins:f,isExpanded:p,setIsExpanded:m,isBusy:u,isConnected:g,currentApiKey:v,hasResolvedSettings:_,keySource:w,handleButtonClick:y,getButtonLabel:b,saveApiKey:S,removeApiKey:x}=Ds({file:r?.file,settingName:s,connectorName:e,isInstalled:r?.isInstalled,isActivated:r?.isActivated,keySource:i?.keySource,initialIsConnected:i?.isConnected}),E=w==="env"||w==="constant",T=c==="not-installed"&&l===!1||c==="inactive"&&f===!1,k=(0,js.useRef)(null);return React.createElement(Zu,{className:d?`connector-item--${d}`:void 0,logo:o,name:e,description:t,actionArea:React.createElement(ef,{isConnected:g,showUnavailableBadge:T,pluginSlug:d,isExpanded:p,isBusy:u,pluginStatus:c,actionButtonRef:k,handleButtonClick:y,getButtonLabel:b})},p&&c==="active"&&_&&React.createElement(Kb,{key:g?"connected":"setup",initialValue:E?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":v,helpUrl:a,readOnly:g||E,keySource:w,onRemove:E?void 0:async()=>{await x(),k.current?.focus()},onSave:async C=>{await S(C),m(!1),k.current?.focus()}}))}function r0({name:e,description:t,logo:o,authentication:n,plugin:r}){let i=n?.method==="application_password"?n:void 0,s=i?.settingName??"",a=i?.credentialsUrl??void 0,d=tf(r?.file),{pluginStatus:c,canInstallPlugins:l,canActivatePlugins:f,isExpanded:p,setIsExpanded:m,isBusy:u,isConnected:g,currentUsername:v,hasResolvedSettings:_,keySource:w,handleButtonClick:y,getButtonLabel:b,saveCredentials:S,removeCredentials:x}=Ds({file:r?.file,settingName:s,connectorName:e,isInstalled:r?.isInstalled,isActivated:r?.isActivated,keySource:i?.keySource,initialIsConnected:i?.isConnected}),E=w==="env"||w==="constant",T=(0,js.useRef)(null),k=c==="not-installed"&&l===!1||c==="inactive"&&f===!1;return React.createElement(Zu,{className:d?`connector-item--${d}`:void 0,logo:o,name:e,description:t,actionArea:React.createElement(ef,{isConnected:g,showUnavailableBadge:k,pluginSlug:d,isExpanded:p,isBusy:u,pluginStatus:c,actionButtonRef:T,handleButtonClick:y,getButtonLabel:b})},p&&c==="active"&&_&&React.createElement(qb,{key:g?"connected":"setup",initialUsername:E?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":v,helpUrl:a,readOnly:g||E,keySource:w,onRemove:E?void 0:async()=>{await x(),T.current?.focus()},onSave:async C=>{await S(C),m(!1),T.current?.focus()}}))}function of(){let e=Fs(),t=o=>o.replace(/[^a-z0-9-_]/gi,"-");for(let[o,n]of Object.entries(e)){if(o==="akismet"&&!n.plugin?.isInstalled)continue;let{authentication:r}=n,i=t(o),s={name:n.name,description:n.description,type:n.type,logo:$b(o,n.logoUrl),authentication:r,plugin:n.plugin},a=No((0,Qu.select)(Qb)).getConnector(i);r.method==="api_key"&&!a?.render?s.render=n0:r.method==="application_password"&&!a?.render&&(s.render=r0),Xb(i,s)}}function nf(){return React.createElement("div",{className:"ai-plugin-callout__decoration","aria-hidden":"true"},React.createElement("svg",{viewBox:"0 0 248 248",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",focusable:"false",style:{width:"100%",height:"100%"}},React.createElement("image",{href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAQAElEQVR4AezdC3ojWW5tYflOzPbIbI/M9sh8+WdrdZ+KpiiKL5FB5KedwN7AeSFIpHRYmfX/PubXVGAqMBV4kQpMw3qRBzXbnApMBT4+pmHNq2AqMBV4mQpMw3qZR3X9RmeGqcCrV2Aa1qs/wdn/VOCNKjAN640e9hx1KvDqFZiG9epPcPY/FThWgZ1q07B2+mDnWFOBPVZgGtYen+qcaSqw0wpMw9rpg51jTQX2WIFpWMee6mhTganAU1ZgGtZTPpbZ1FRgKnCsAtOwjlVltKnAVOApKzAN6ykfy2zqcRWYlV6pAtOwXulpzV6nAm9egWlYb/4CmONPBV6pAtOwXulpve9e//Nw9P/7xL8d7Hy9aQWubFhvWrU59qMr8D+HBcPBna93rcA0rHd98q91bs3q3w9bBv7Bna93rMA0rHd86nPmqcCLVmAa1os+uF/Y9m8u6Q7rvw8bgLnDOhTiXb+mYb3rk3+tc//rYbsaVTjQP18amct4+h9hftt3BaZh7fv57v107rNg7+ec831WYBrWZyHGPHUF/vewu//6xNqg+HMRfyjMrb+edb5pWM/6ZGZfawX86Bc0qTU2/htVYBrWGz3sOepU4NUrMA3r1Z/g7H8q8EYVmIZ1h4c9U04FpgL3qcA0rPvUdWadCkwF7lCBaVh3KOpMORWYCtynAtOw7lPXmfVdKjDnfGgFpmE9tNyz2FRgKnBNBaZhXVO9GTsVmAo8tALTsB5a7llsKjAVuKYCv9uwrtn5jJ0KTAXergLTsN7ukc+BpwKvW4FpWK/77GbnU4G3q8A0rLd75L914Fl3KnB9BaZhXV/DmWEqMBV4UAWmYT2o0LPMVGAqcH0FpmFdX8OZYSowFfhrBe7GpmHdrbQz8VRgKnDrCkzDunVFZ76pwFTgbhWYhnW30s7EU4GpwK0rMA3r1hW9fr6ZYSowFfiiAtOwvijMyFOBqcDzVWAa1vM9k9nRVGAq8EUFpmF9UZiRpwKPqMCs8bMKTMP6Wb0meyowFfjFCkzD+sXiz9JTganAzyowDetn9ZrsqcBU4Bcr8NIN6xfrNktPBaYCv1CBaVi/UPRZciowFbisAtOwLqvbjJoKTAV+oQLTsH6h6LPkBRWYIVOBQwWmYR2KMF9TganAa1RgGtZrPKfZ5VRgKnCowDSsQxHmayowFXimCny9l2lYX9dmIlOBqcCTVWAa1pM9kNnOVGAq8HUFpmF9XZuJTAWmAk9WgWlYT/ZArt/OzDAV2G8FpmHt99nOyaYCu6vANKzdPdK7HOjfDrP+9yf4B/fP138efoeDma+pwP0rMA3r/jXewwqaVFjP8x8HAmIHd74eXIG3W24a1ts98pse+H8Os8HBzNdU4P4VmIZ1/xrvYQU/9v3L4SCwNqh/P2iwagdpvqYC96nANKz71HVmnQpMBe5QgXduWHco526n9B3W9tJ91fi7Pfwc7HkqMA3reZ7FM+/kXw+bc7EeDvTPV1z8jzC/TQXuWYFpWPes7sw9FZgK3LQC07BuWs7dTva/h5P91ye6YGfT2EP4eb9mZ/uowDSsfTzHe5/CHVXQqKzHbjX6YCpwtwpMw7pbaX808f8dsoN7oQOdr6nAVGBbgWlY24o8hvvEzXcnp1YTl3cq51ExTdRe7GldE6ev2vhTgbtV4KyGdbfV33diDeC7T9bE5T1LlezFntb94PRVG38qcLcKTMO6W2lPTuy/GPdfiJfED+6G6Lg8/m/Dnuxne7lOe5Y9/naNZv0HVGAa1gOKfMYSGkI4I/1XUp59f79SlFn0sRWYhvXYereaex/3PyunQT9iiePlPMbOKlOBJ67ANKzfeTiakvufVsdDmjgtPnYq8PYVmIb1Oy8B9z7uf06tLi7vVM7EpgJvVYFpWM/xuF1mB3dFz7Gr2cXOK/B6x5uG9RzPzH1VeI4dzS6mAk9YgWlYT/hQZktTganA8QpMwzpel1GnAlOBJ6zANKyLH8oMnApMBR5dgWlYj674rDcVmApcXIFpWBeXbgZOBaYCj67ANKxHV3zWe8UKzJ6fpALTsJ7kQcw2pgJTge8rMA3r+xpNxlRgKvAkFZiG9SQPYrYxFZgKfF+BRzSs73cxGVOBqcBU4IwKTMM6o0iTMhWYCjxHBaZhPcdzmF1MBaYCZ1RgGtYZRXrSFP9Wln/gD/htEwd/mTqNT4Nyj2ny+7/3sDgYh4NxNBYHcdrH4Tc8HOifL/E044hsmjgN0tj2Ko6DcfLE8EADcfmAg1w64IMXrcA0rNd5cN6Y3njrjnE4pvkHANP58iCNxQO+B3x11v84HA6c9+DO1ytWYBrW6zw1/6Df/FtZlz8vtYPLZ5iRv16BaVi//gjO3sD2zYb7F0mB30Q4aHBpfBqU68cjHPjl4iHNPy5oDljH4yBeLh7SxNN+Mr7cY+PFmpNtLf52/2suv9yx11TgF8ZOw/qFor/gkt7kKzrCJZox9xzf3GN3WIFpWK/xUN27hHbsuyIXyyBGZ/FAgzgrh7aO59PE5AQaiKfJ2WriNCiPPZabxsqBa8ebw9rAD9agmX+r0QcvVoFpWK/xwLzxvOFcGq87pof0OHtKE5MDLqpxwAMO4mksDfggjgMecBBPY2lsEKdBGouDOB5oEGdx4Ac8pLFpY1+sAtOwfuuBXb+uN/H1s9x2hm0zWH/8u+1KM9tbVmAa1ms8dj/SuEh2odyOXUSHtTGksadyjZETjuWm/e/BKc+4A/1g09iPw69j2kH+OHe8XHMF89GOjaeXx+LAD41nt5rcwYtVYBrWiz2wZbvehBoZ8IVYPNAgzuKw5vK32prLD8dy08xRHosDP5TLbrVtLg7lscbRWDzQIM7isObyaYMXrMA0rBd8aN9s2Y9lodQ4m/ZK1r7Duu80Np0f0n7ZzvK3qsA0rFtV8vHzeFP6r9+Bbwesy/lAgzgrh8YaC+t3I3SclRdoEGflbDU6TYwfaBBn5Ww1fN2nPB820ECcZiweaLDmyqGBcSunDV6sAtOwXuyBPWC73tTe9NulaNuLfhqsuY1nV13eOeONMRb4t4Q93HK+mevBFZiG9eCC33i5ay+S3efAui3fibjc3+o06625OH3VjKOZZ9V9aCB/1XC5q2YczTyrfq7vgt5YWMc076qN/2IVeIGG9WIVfdx2vSG9CaFVaRpDSI+zcuisxgDrHMXYFfLhO018m0eDrY6D2AoapNmjvUN7FcdDueLyQU762B1UYBrWDh7iHGEq8C4VmIa1vyfdJbTvNDqdi/Ww3g3JgfKe1TpT+2+/zpHGtne6HEgbu5MKTMPayYNcjuENC9sL7iXl765LaPi78MvOLZZ3dmc65/y3WG/meGAFpmE9sNhPuJQ7HhffT7i1i7fkTODy/eJJZuBzVmAa1nM+l2t21SW0S+fm4Qdv5lV/hR+dNNXt/p0jje1M6a9wrvY89swKTMM6s1AvnuZNHF7xKO092xnibNrYF6nAJduchnVJ1Z57jO8sQjt1aR3c8aS/inWe7f6dI43tLPSQNnYnFZiGtZMHuRzDhTOsl869gdkl9cOna7Bqz+g7i72H9hhnV00DU4O0sTupwDSsnTzIOcZU4B0qMA3rRZ/yiW27gAYX1aXxw3rf0wV9ec9qfeJ3bP9pbHv346NzqUHa2J1UYBrWTh7kcgwNKSR7E4e0V7LtnXU2e2fxQBvsvALTsHb+gD+P544nfEovZdo7u24cD6s+/k4rMA1rfw/WJTq4eO50/OANvtXjz2pdoLd/31HZp3OksTQQx1n89TEn+HsFpmH9vRRv6XjTw94O70w+Wdzbud7+PNOw9vcScLcDLqq/O52Lafgu75Xizu5M60X8K+1/9nqiAtOwThTnRUPerLD+SORTs+AN3dH4EH9W6zztv3PZdxrb3ukhbexOKrD/hrWTBzXHmApMBT4+pmHt71Xgwhn6TsQJXcIH9zs04AP/meE87b9z2Xca2/7pciBt7E4qMA1rJw9yOYY3LJxz6awRwDL85V1n96niOed/+cO+2wGmYb3bE//reXd21/PncJ3pnA8d/gyY316nAtOwXudZnbvTfzkkgovqg/vnix+8of+Ih9/SDu5Tf/nEr722fzaN7QDp8yNhFdmRnYa1o4d54ijexOFE2tOG2nu2jcbZtLE7rsA0rP09XN9ZhE7nniq440l/Fes82/07Rxr7KmeZfV5RgaVhXTHLDH2mCrhwhvXS2Zs7rHutEazaM/rO0v7Z9sgPac7kU8NpYlVkR3Ya1o4e5hzlLxWYS/e/lGMfZBrWPp7jeoouqNl0fljve3w3sl5Yl/9sVvM5tv80tj07kw8d2LSxO6nANKydPMjlGN6omhIk0wLt1dDe2c7F4uHVzjT7vaAC07AuKNoLDumeh33B7X/Yd/hYfqWxizzuXiswDWt/T9aFM6yXzvywvrnTnr0KPkRor76jsl/nSGNpII6z+GBHFZiGtaOHecFRvOnhgqFPPcSZfLL41Jt81Ob2tM40rD09zb+dxd0OuKj+m/L17y7c4euM14v4zsqZ1ov41zvF7PhoBaZhHS3LS4verOCN20F8ahY0s3Q+xJ/VOk/771z2ncauexeDVRt/BxWYhrWDhzhHmAq8SwWmYX3zpF8w7MIZ+k7EEVzCB/c7NOAD/5nhPO2/c9l3Gtv+6XIgbexOKjANaycPcjmGNyycc+msEcAy/OVdZ/ep4jnnf/nDvtsBpmG92xP/63nd88Bf1ddmzgPnfOjw2id9w91Pw9rfQ3cBDS6qOx0/eDNv9fizWp/4bffvHGlse0//+Y+EzTD2aSswDetpH81NN+ZNHG468YMma+/Zlo2zaWN3XIFpWPt7uL6zCJ0uzrrjSX+Utaa1gW9dFg+0r7Dm8strLJs2dscVmIa1v4frwhnWS2c8rCf26Rqs2j381mZrOCwO617pPghg24uckM6mseVqXs5kjrSxO6nA7RrWTgoyx3iaCmhIT7OZ2chzVGAa1nM8h1vuwgV1aN44u973uJyH8u5lfWJnbWh9Fg+tTXeJ7jultGPjxRrL4mCcM5kDH+yoAtOwdvQwP4/iDQve+J/SBx4+fuFXa7Pti8WBf2pbckK5bBp7avzEdlKBaVg7eZDfHMOPV+Gb1HPCP85pbbbB/BXpx+xXeV/px+YYbQcVmIa1g4e4OYILZ1gvnfnBm7wh8mDVil1jfcezzulSvPXFzC2eJk4DcTqLgzgN0tfxdHkgjrP4YEcVmIa1o4f5w6N4w/9wyFnp5tVgzkr+Iskc6yeHX6R9KV87/suJJ/C7FZiG9bv1v8fq7nbARfWp+eW4rIZTeT+NmdeFN/vTsfKNsyfAf4prx/90vb3nP9X5pmE91eO4yWY0C1h/JPKpWfCGbiE5sGrFrrHb+eyn9a1nbjZNnAbGirE4iJcrRhNPY2lAl8Pigx1VYBrWjh7mHGUqsPcKTMPa3xN24Qy+y+h0LtaD+x06Kwfwe8Ia9gTWtRaLgzjtK8hpoPtu7gAAEABJREFU/+Uan8Y2li4H0sbupALTsO77IH9jdm9YOOfS2uU4yL/3Xq0B6zo4nLPXddwp33zOdMs5T603sQdWYBrWA4s9Sz2kAu6u4LsPHR6ymVnkthWYhnXbej7DbC6gwUV1++EHb2Y6Kw/4tHvBj2fWgdZi29N3nwiKl2ucfbJpLA3SrYkPdlSBaVg7epgnjuJNHE6kPTzUnthTi4uvKPeYVuzhdha8fwWmYd2/xo9ewR0OrN9h8INYe+JD/FmtPR7bfxr7rHuffd2wAtOwbljMJ5nKJ2qwXjq7hA5tUxOQB/z0Z7TtnW2vLB7at+blU0PnShu7kwpMw9rJg5xjTAXeoQJP07DeodgPOqML6tCSx+56aC6rgV/uM1qf+NkjrPvDQ7rvsJxJDdLG7qQC07B28iCXY3jDgjdysjdwWHU+lPes1nnaP98+7TuNpQUxiI/dSQWmYe3kQX5zDPc94ZvUpwy3d3bdIB5WffydVmAa1v4erAtnWC+d+cEb3KlZecCnPQY/X8XFevvvOyx7TmObVRxn08bupALTsHbyIOcYf6mAZrZ+SvqX4JDXrcA0rNd9dl/t3N0NuKj+Kocux8U04HvBXs+1l+dz1TmmYV1Vvqcc7AIa1h+J/JWY4A3dxuXAqhV7Jus87d9+7c2e01ga0OWw+OBXK3Dbxadh3baeM9tUYCpwxwpMw7pjcR8wtbsaaCm+S/SQHmflpL+K9R2Ti3Ro/6zzhM4iJ8hJH7uDCkzDeu2H2Bvz0lNoBHDp+EeO03zCqXXLYU/lTewFKzAN66kf2rebc08D3yZ+kaBZXTP+i2lHngrcpwLTsO5T10fN6jIaWk/zwUN6nJWTzm457dmgsdo7tF8WD+05zspJH7uDCkzD2sFD3BzBmzQUirNpr2btPbT3OHtKKzb2xSswDet1H6A7Gt95AL+T4CFNPKTtwXZOtvPwgzNv9VUr9gx29nBGBaZhnVGkJ03xxvNXVoBvmyweaEC/9oLePM8EZ+qc63/Vnsa2Xw0MB+PSx75YBaZhvdgDm+1OBd65AtOwXvfpu7cJ6ynS2HTfYbiEhrQ9WH+tKHQe515Bx8vj0wYvWIG9NKwXLP3VW/bG04BAQzLhqtFpQQzir26dxbmB33mcO6SJywN++tgXq8A0rBd7YMt23cWERf5IYz/u+Mv8K1rqmFbsEfbY+se0R+xl1rhxBaZh3bigd5rOhfn2r6B4E9LBdw6WXjU67RZo3tYxZ5p1XGbTAA84GNf+jaMBH/iXwFhzs41vbTadxUF+uXScTRv7xBWYhvXED+fJtuZNvX4ad4vtmVMT+dFcS7Lxa7NcQme5144/a5FJul0FpmHdrpb3nMm/beXuBe65zqm5u7Q+lXMqZu+w5vjuZv2nYdbYOb753Fex5+Rvc6x/zfjtfMPvXIFpWHcu8I2m743lzdWUNG924NO9cfFAuwXMaw22+fDWWfeVxq65cmCdo/il1lywjrduKLbulb/ml7Nq4z9pBaZhPemDmW1NBaYCHx8fmyJMw9oU5AmoexXfBbBtpwtrNl2O+x9IK/8aay5Y57CGtcG6YiwO4jTAAw7iacbRrEGHNPq1MJc5oblop9Zfcxsz9gkrMA3r+R6KS2Twhv5ud3JCubg3aPyn1nhvYPanY3+abw245WW+ucwJ3+1HTvgud+JPUIFpWE/wEDZb6IJ9I59N3cnA2QM2ica6YGc3oaFTgd+twDSs363/sdV9d+Rymi2OhxqJ+FYr/285sZ9ZY829jtLAtmvJSRMvP41NE8fB/HQWB3HaLWAuc0LzrXu1Lp2VE2iDJ6/ANKwnf0Cf2/PmCp/SH5PG/hHu9Jv5V7TMJZoxp8YXu9SaP6xzpLHp/JA29okrMA3r+R6O7wZCu4uz7lzS+RC/hbVGaD5rpPHpbBpLA37AYc3lbzX5tHvBmtYAfuvgIU08jZ8+9gkqMA3rdx+CNwS0C74L95AeZ9PkuhwHfvq11hqhueJsa7E4uOg+lntMM47OGgvrePqtz2RO6wB/uz6dBvyAvwjeY5vTsH73OXvzwLFd+FHlmH5P7au93HPNY3PbBxyLjfbGFZiG9bsPvx891l1oVODTwnQ8rFoXxmLp11qX1qG57MUakMYP4sf0NPFy0+Ks+Kr7L9XVJu1aa43OxG8+fkizl2O5xcf+YgWmYf1i8Y8s7c1TE1rfsGmsnIbyIX6tNZd1Q/Ph1gY+XS4OaXQ84CCexqd9NV7s1rCWdYFvfrY9sTSQE/DBE1VgGtafh/FUv/lRKLSxOJt2L2uN0Bpx9pj2lX4q15gV5T7SHlv/mPbIPc1aJyowDetEce4c8qf4uX9dxCV08IZqa3yIX2vN1Tps87mExsG+6WuuOA3kBBzE04yjsWniNDA/ncVvAWtVa745WesEGsRZOTTg33JP5hz8sALTsH5YsCdL9yaCJ9vWVdvxiaEzsVdNdOPBmirceNqZ7icVmIb1k2rdNtcdSrh0Zn/iw6Xjn3GcS291YW+5P3PCpXO6iF/vui6dZ8ZdUYFpWFcU78qh3jzeAFDTofmELLREnJWTfmtrbmuE5rfHtPbKpomXm8amieNgHJ3FQZwGdJzFbwHnMifwzclaO9AgzsqhAR/4g1+qwDSsXyr8LDsVmAr8vALTsH5es0tGuJPxHQM0nu9iF8TpLB5oEGfl0G453lzmNLc1Ag3E0+RsNXEalMfiII7DT8Yfy01jzResA3FWDu3Y+mJygjyIs3Jo63g+bfALFfhpw/qFLe5iSZe1sF4k870hQgeNs6c0MTkBhziLAz/gIc1etppYmjge0uPiW00sTRwP6XHxrSaWJo6H9Dh7ShOTE3CIszjwAx7S7CVt7IMrMA3rwQWf5aYCU4HLKzAN6/La/WSky16XuGzj+tSJ1mUui4dy46wcuh9NcEhj8SAP4qwc2jreXmhicgINxNPk0I6Np5fH4nDp+NY6Nl7MGsE6EGfl0Na9prFygjyIs3Jo63h7oQ1+oQLTsH6h6J9LejOs+JQ/ztU+Dr/OzT2Wdxj+cUz/u/bxj1+rxi/CD+dq8s/NPZZ3yXjzGBdwiLM48AMe0ti0sQ+uwDSsxxTcn9DBXYhV2a1GT2Nx4AfjaOxWo6exOPCDcTQ2jaUBP+Cw5vK3mnwa8AMOxqTxaZDG4sAP5bJbbZuLQ3mscTQWBz4N8IBDnC2XxYM8iLP44M4VmIZ15wJ/Tu/CPXxKH3HWG4LO4oEGcRaHNZe/1dZcfpAHxqR1kbxqYvKAH+TQ2LTG09NYOV9p3uRy4KvxxoKc0JxsGisP+AGHNZe/1eTTgB9wMCbtu73KH9ypAtOw7lTYN53WG/tNj/7ix36R7U/DesyDcu+xwqr+6kkaHtLYn2ryjQs4xFkc+MFeaJDG4iCOAw78IL7VitHFV06Ls+I0wAMO4luNnsbiwA84xFk84OFczV7KdQEf0sbesQLTsO5Y3GVqnziFZD8SpfHp3jxpLA34QQ6NTbv3ePOfWkvcnqA8FgdxHPi0Y/unywlyaMak8WliaSwN+EEOjU271XjzmivggztXYBrWnQv8Ob0flcKn9BHPfnz+irOf0gc/fCy/0thkfjiliZXH4sAPOMSzNIizOPADDvEsDeIsDvyAQzxLgziLAz/gIY39qSbfuIBDnMUHd67ANKxbFPgfc3jh9u8u+ZO3iL/mEeTQXeJuNbE0Vh7wgxya+beaWBorD/hBDm0dby80sfJYGojjIId2bDxdTsDh0vGtdWy8WOuw1gF+kENb95rGlsfKA36QQ1vH2wtNrDyWFsTyx96wAtOwbljMmWoq8FkBDUyT+6RjblWBaVi3quQ/5nFfEv6hjvdOFfC3GrwG3unMDznrNKzbltmLtMtdfrN7AYd0eWn9aSyWxp4ab4wc4Mu9dLy9nBovbh1oLRYHceMBDziIpxlHY9PEaZDGOg9NHAfjaGJ4oEGclUMzBgc+TQwPNIizcmjG4P/y8fFhLzSxNJa2Qnzl49+gAtOwblDEmWIqMBV4TAWmYV1XZ5er0Cz+JHZ/Afx0PJQvvtXE0thHjbcXa321vrj9gBy5q8angZyAg3jaT8Yfy01jm5O1DvCDHNqx9cXKY+UBP8ihreP5NLHyWBqI4yCHNrhRBaZhXV5IL0Yvyj41aiY6rH+FAw/liaex6fxwShMrj8WBH3CIs3jAwV62Gj1NHA/pcfGtJpYmjof0uPhWE0sTx0N6nD2lickJOMRZHPgBD2n2stXE0sRxSBt7owo8uGHdaNfPM417ivW/fH6enc1OpgI7rMA0rMsfqmblAtaPAM1C669qsOn8IIeu0W01epq5cUhjG8/iwJcHOPxkvHxjgR9wOLZXa5bHygN+wOHS8db4ajy9dVgc+KHx7Fbb5uJQHmscjcUDDeIsDny1B+NogxtVYBrWjQr5OY0XqAYG/E/5Aw8fn7/ibLksDvzP1A88fHz+Ek/jk9mtRk9jcTiWu2prLj/I+Wo8vTwWB364x3hzWwf4AQdrpvG3mhgN+AEHY9L4W02MBuIBH9ywAtOwLi+mOwovVOCbicUDDeKsHBqLA58GeMAhzpbL4sCXB3jAIc6Wy+JBHsRZHNZc/lZbc/kA8sAYHPhbjU4DfjiWm7bNxaGxbLksDnx5gAcc4my5LB7kQZzFYc3lb7U1V2zwgwpMw/pBsTapLtvD+sJMc/nakDT2mHZs/Fe5jTdGDvDpLB5oEGdxWHPb66qtufwg56vx9PJYHPjhHuPNbR3gBxysmcbfamI04AccjEm7Za3MPfhBBaZh/aBYkzoVmAr8bgWmYV1efxfJ27uKOCve7HhIE99qYmksDvyAQ5zFAx7O1ezlVK74qTnFHz3eeu2JxYEfcIizeMDDudotz9qaL28fdYBpWJdX2l2ET4KAbyYvfhzS6HiQQxNP49PE0lga8IMcGpt27/HmP7WWuD1BeSwO4jjwacf2T5cT5NCMSePTxNJYGvCDHBqbdu/x5j+1lrg9DS6owDSsC4r2OcS9xopP+eMSzZiPz1/88Cl9xNmP5RcekuPsKU1MTsAhzuLAX0GDSzRjjAV+wCHO4sBfQYNztZ/kHpvz0vHmMhb4AR9cUIFpWOcVzZ+K/qt2thEuYWnghUgXx0GcBngoV3yriaWxxgI/yKGta6Wx5bHygB/k0Nbx9kITK4+lgTgOcmjHxtPlBBwuHd9ax8aLtQ5rHeAHObR1r2lseaw84Ac5tHW8vdDEymNpII6DHNqx8fTBDyswDeu8gvlkyIuPPW/ED7Im9a0r4B98fOsC/OTw07DOq5aLVvcg7HkjJmsqcF4Fjv3TNOeNfMOsaVjnPXTf0rtIZRuBe7FBOouDeLl40Pjo4mnG0cTSWBrwgxyaMWl8mlgaSwN+kEMzJs1eaGJpLA3EcTCOxuIgTgM84CCeZhyNTROnQRprPzRxHIyjieGBBnFWDs0YHPg0MTzQIM7KoRmDg73QxPBAA/E042hsmjhtcEEFpmFdUFjYef8AAA5ZSURBVLQZMhW4uAIz8KoKTMP65/K5q4I14gI1FPOn5ilNvDnKY0+NF5MTHjW+vX61vnh7kmNfq8anQXksDuI4/GT8sdw01nzBOhBn5dCOrS8mJ8iDOCuHto7n08TkBBqIp8nZauI0KI/FB99UYBrWPxfIiwd6scngBxxcwKexNOCDOA54wEE8jaUBP+AQZ/GAh59q8htrLziksTiI44EGcXEc0lgcxPFAg7g4DmksDuJ4oEGcxYEf8JDG/lSTbxzYCw54wEE8jaUBH8RxwAM++KYC07C+KdCEpwJTgeepwGs1rMfUrctRl6qt6N84Cuk+MdxqYmnsT8fLNw7Wy1k8WEMeu9XoaSwO/GAcjU1jacAPOFx6VmPh0vH2+NV4evtkceCD+jWepQFfHuABhzhbLosHeRBncfjJWe0xGDv4pgLTsL4p0GfYvUP4lD7irBf0x+EXiwP/IP35wsMf4fBbnC2XxYF/SPvzhYc/wuE38TT+Qfpg09iPz1/88Cl9rLn8j8Mvtjz2IP354gc5RHar0dNYHPjBOBq71ehpLA78YByNTWNpwAdxHPg04G81Og34AQdj0vhbTYwG/HAsN00uP+CDbyowDeuvBXKf0IuNLcoPcujsVqOnsTjwg3E0dqvR01gc+ME4GrvV6GksDvxgHI1NY2nADzisufytJp8G/ICDMWl8GqSxOPBDuexW2+biUB5rHI3FgU8DPOAgnsbfamI04AccjEnjbzUxGvADDsYEfLBUYBrWUoyD64Xir1bAejmKh0Pan684axzRiw+HS8abx9hgToizOKy5/K225vKDPDAmrb2umpg84Ac5NDat8fQ0Fgd+MI72Ta0+5MsDfmg8m8bKA37AYc3lbzX5NOAHHIxJ66yrJiYP+EEOjU1rPD2NxUGuD30AHywVmIa1FONM17fwZ6ZO2gtWQMN4wW2/x5anYf31OWtGweVp0TQ2TRyHNH4QP6aniZebxqaxOPADDnEWD3g4V7OXU7nip+YUf/R467UnFgd+wCHO4gEP52r3Pqv9uMSH9jT2swLTsD4L8Wm8WPrUxo8sn/Kf/z15epp4Gp9+zng5co05NV5MHvBD49k0c8lbNTEa8IMcGpv23XjxU7ni5oTyWBzEceDTjq1PlxPk0IxJ49PE0lga8IMcGpt27/HmP7WWuD1BeSwO9ioH8HfA2WechvXPpfIjQSgaZ49pX+nHco9pl4w3j3EBhziLAz/gIY09V/tJ7rE5f2O8fVg34BBnceAHPKSx52o/yT025zq++Fvbd29Y/hSDXgR8l52wXoTioVzxtF5Y54wv99h4seZkW4sf5NDXtdLY8lh5wA9yaOt4e6GJlcfSQBwHObRj4+lyAg6Xjm+tY+PFWoe1DvCDHNq61zS2PFYeHFtrHS8u79rx5rBuwMH8adagDT4r8M4Ny4vBi2P91OazLGOmAlOBZ6zAOzcsz8PFJvBfFbPv21bAH2S3nXFmu1kF3rlhdbnJVlDf+vdXc9aL0DS2XHEcjKOzOIjTAA+tJ55mnDyxNJYG/CCHZkwanyaWxtKAH+TQjEmzF5pYGksDcRyMo7E4iNMADziIpxlHY9PEaZDG2g9NHAfjaGJ4oEGclUMzBgc+TQwPNIizcmjG4GAvNDE80EA8zTgamyZOgzQWB3EcjKMNPivwzg3rswRjpgJTgVepwDs3LH96bS83V43fcyyPTRPHoR8jVo1frpxwLDeNLY991Pj2+tX64vYDcuxr1fg0kBNwEE/7yfhjuWlsc7LWAX6QQzu2vlh5rDw4lrtqfHnXjjeHdQMO5k+zBg3o/3lwVu1A3+vrnRuWy3YPP/Tk4+JbTSxNHA/pcfGtJpYmjof0OHtKE5MTcIizOPADHtLsZauJpYnjIT0uvtXE0sTxkB4X32piaeJ4SI+zpzQxOQGHOIvDuhYe5ID4VqOnieMhPS6+1cTSxPGQ7gMioKe9nX3nhvV2D3sOfFYF3rohnFWhX0x654blr1j4hBBcoHoMLB5oEGdxuHS8Nb4aT7dGwCHONp7FgS8P8IBDnC2XxYM8iLM4XHpWY+HS8fb41Xi6PQYc4i6vG8+m8+VBGosDP5TLprHygB9wuPSsxsKx8XSX8OBHQ/wt8VYNa/OEPfjgBSnMbjV6GosDPxhHY7caPY3FgR+Mo7FpLA34AYc1l7/V5NOAH3AwJo2/1cRowA/HctO2uTg0li2XxYEvD/CAQ5wtl8WDPIiL48Df6qsmJg/4AYc1l7/V5NOAH47lpm1zcWgsu+aKvT3epWH5Nj/00HEvCuDTWTzQIM7KobE48LcanQb8cCw3bZuLQ2PZclkc+PIADzjE2XJZPMiDOIvDmsvfamsuP8gDY9L4W02MBvxwLDdtm4tDY9lyWRz48gAPOIin8beaGA34AQdj0vhbTYwG/ICDMWn8rSZGe0u8S8PqUxe2B+0CM6wvjDSXn8dyj2n3GG8fx9ZKs6Yc4NNZPNAgzuKw5nbWVVtz+UHOV+Pp5bE48MM9xpvbOsAPOFgzjb/VxGjgNYIDDsbg8Ey1sre3wrs0rLd6qHPYj4+PKcIuK/AuDauLUbYH6XLTHQGk8YP4MT1NvNy0OCt+TE8TlwdpLB5wiLM48AMe0thzNXs5lStuPjiWJ35MTxM3FtL4QfyYniZebhqbxuLADzjEWTzg4VzNXk7lip+aU/xW45vnbey7NCw/94ceLu6TJODTvdBwSKPjQQ5NPI1PE9tq9DRWDs0YHPg0MTzQIM7KobE43Hu8+a0D/K/Wp8sJOBiTxqcd2z+9PFYOzRgc+DQxPNAgzsqhsTjce7z5rQP8r9anywk4GJPGpx3bP/3t8C4N6+0e7Bx4KrDHChxvWPs7qYtU6E8sJ8T/7+BAOouD+CH85wsPLmCJ4mnG0dg0cRqksafGi8kJxkKclUNb1+LTxOQEGsRZOTRjcGivYniQB+JpxtHYNHEapLE4iONgHI3FQZwGeLAfmniacTSxNJYG/CCHZkwanyaWxtKAH+TQjEmzF5pYGksDcRyMo7E4iNMADziIpxlHY9PEaW+Jd2lYXlzQJzxv+bDn0FOBV6/AuzQsdwCwXni++rOb/U8F3q4C79KwtpeYHjTNX3UA33LTWBzEaYAHjY8mnmYcjU0Tp0Eae2q8mJxgLMRZObR1LT5NTE6gQZyVQzPmXz4+PmjtVQwP8kA8zTgamyZOgzQWB3EcjKOxOIjTAA/2QxNPM44mlsbSgB/k0IxJ49PE0lga8IMcmjFp9kITS2NpII6DcTQWB3Ea4AEH8TTjaGyaOO0t8S4N6y0f7hx6KrC3Crxzw/KnlgtMcL/l2a4anwZywrHcNLa8a8ebx9rAD9agmX+riaWx8oAf5NDW8XyaWHksDcRxkLPVxGkgJ+AgnvaT8cdy09jmZK0D/CCHdmx9sfJYecAPcmjreD5NrDyWBuI4yNlq4jSQE3AQT2s8nQ/8t8U7NywX8F4AsL4AcBBPx0OaeBpLZ4M4DdJYHMTxQIM4iwM/4CGN/akm3ziwFxzwgIN4GksDPojjgAccxNNYGvBBHAc84CCextKAH3CIs3jAw081+Y21FxzSWBzE8UCDuDgOaSwO4niggb8WpJHR8Uvw8mPeuWG9/MObA7xVBXxg5N7srQ69Pew7Nyx/TccFJvRCYOmhesVZOXQvIBzSWDzIgzgrh3ZsPF1OwCHONp7FgS8PcHAuHPBQLpvGygN+wOHYXh8x3hpfrU9vnywO/NB4dqttc3EojzWOxuKBBnEWh3vUyrx+VPRM7QV/S7xzw/LgQw8f98IAfjoejmnlsuXxj+Ue08plG88ey01bc/l01jjg0wAPOIin8beaGA344Vhu2jYXh8ay5bI48OUBHnCIs+WyeJAHcRaHNZe/1dZcfpAHxqTxt5oYDfjhWG7aNheHxrJrrtjb450b1rGH735gRTlePEGczp7SxOQBPxhHY7caPY3FgR+Mo7FbjZ7G4sAPxtHYNJYG/IDDmsvfavJpwA84GJPG32piNOCHY7lp21wcGsuWy+LAlwd4wCHOlsviQR7EWRzWXP5WW3P5QR4YE/DBUoFpWEsxDq4XiotNcMl5kP588cMf4fBbnDXuIH2wOLg8/fj8hYdP6SPOGkdn8UCDOIvDmsvfamsuP8gDY9La66qJyQN+kENj0xpPT2Nx4AfjaGzatePNY07gBxzWtfhbTT4N+AEHY9La66qJyQN+kENj0xpPT2NxkOv1B3za4LMC07A+CzFmKjAVeP4KTMP66zNyZxBcnhZNY9PEcUjjB/Fjepp4uWlsGosDP+AQZ/GAh3M1ezmVK35qTvFHj7dee2Jx4Acc4iwe8PAX7UDoB/Pnix/ufVbruMQH/p8NzG9/q8A0rL/Vod+9QHwSA+4W0vEghy6exqeJbTV6GiuHZgwOfJoYHmgQZ+XQWBzuPd781gH+V+vT5QQcjEnj047tn14eK4dmDA58mhgeaBBn5dBYHO493vzWAf5X69PlBBzs1TjAB0sFpmEtxRh3KjAVeO4KTMN67ufzTLv7yQXwT3Kf6YyzlyevwF0a1pOfebZ3ugKajX8sbpvlkyyxVceP/ejiE641b/ypwE0qMA3rJmXc1STuUPxTJttDuWsRW3X8WMM6Nn4dN/5U4KIKTMO6qGwzaCowFfiNCkzD+o2q72nNOctU4IEVmIb1wGLPUlOBqcB1FZiGdV39ZvRUYCrwwApMw3pgsWepqcBrV+D3dz8N6/efwexgKjAVOLMC07DOLNSkTQWmAr9fgWlYv/8MZgdTganAmRWYhnVmoa5PmxmmAlOBayswDevaCs74qcBU4GEVmIb1sFLPQlOBqcC1FZiGdW0FZ/xU4J8rMMqdKjAN606FnWmnAlOB21dgGtbtazozTgWmAneqwDSsOxV2pp0KTAVuX4H/DwAA//9sB2hHAAAABklEQVQDAB9QlitZA9bLAAAAAElFTkSuQmCC",width:"248",height:"248",style:{mixBlendMode:"multiply"}})))}var i0="ai",s0="ai-wp-admin",Vs="ai/ai",a0="https://wordpress.org/plugins/ai/",Ys=Object.values(Fs()),c0=Ys.some(e=>e.type==="ai_provider"),af=[];for(let e of Ys)e.type==="ai_provider"&&e.authentication.method==="api_key"&&af.push(e.authentication.settingName);function cf(){let[e,t]=(0,wt.useState)(!1),[o,n]=(0,wt.useState)(!1),r=(0,wt.useRef)(null);(0,wt.useEffect)(()=>{o&&r.current?.focus()},[o]);let i=(0,wt.useRef)(Ys.some(S=>S.type==="ai_provider"&&S.authentication.method==="api_key"&&S.authentication.isConnected)).current,{pluginStatus:s,canInstallPlugins:a,canManagePlugins:d,hasConnectedProvider:c}=(0,ln.useSelect)(S=>{let x=S(Ws.store),E=!!x.canUser("create",{kind:"root",name:"plugin"}),T=x.getEntityRecord("root","site"),k=i||af.some(A=>!!T?.[A]),C=x.getEntityRecord("root","plugin",Vs);return x.hasFinishedResolution("getEntityRecord",["root","plugin",Vs])?C?{pluginStatus:C.status==="active"?"active":"inactive",canInstallPlugins:E,canManagePlugins:!0,hasConnectedProvider:k}:{pluginStatus:"not-installed",canInstallPlugins:E,canManagePlugins:E,hasConnectedProvider:k}:{pluginStatus:"checking",canInstallPlugins:E,canManagePlugins:void 0,hasConnectedProvider:k}},[]),{saveEntityRecord:l}=(0,ln.useDispatch)(Ws.store),{createSuccessNotice:f,createErrorNotice:p}=(0,ln.useDispatch)(rf.store),m=async()=>{t(!0);try{await l("root","plugin",{slug:i0,status:"active"},{throwOnError:!0}),n(!0),f((0,Xe.__)("AI plugin installed and activated successfully."),{id:"ai-plugin-install-success",type:"snackbar"})}catch{p((0,Xe.__)("Failed to install the AI plugin."),{id:"ai-plugin-install-error",type:"snackbar"})}finally{t(!1)}},u=async()=>{t(!0);try{await l("root","plugin",{plugin:Vs,status:"active"},{throwOnError:!0}),n(!0),f((0,Xe.__)("AI plugin activated successfully."),{id:"ai-plugin-activate-success",type:"snackbar"})}catch{p((0,Xe.__)("Failed to activate the AI plugin."),{id:"ai-plugin-activate-error",type:"snackbar"})}finally{t(!1)}};if(!c0||s==="checking"||s==="active"&&i&&!o||s==="inactive"&&d===!1)return null;let g=s==="active"&&!c,v=s==="active"&&c&&(!i||o),_=s==="not-installed"||s==="inactive",w=s==="not-installed"&&a===!1,y=()=>v?(0,Xe.__)("The <strong>AI plugin</strong> is ready to use. You can use it to generate featured images, alt text, titles, excerpts and more. <a>Learn more</a>"):g?(0,Xe.__)("The <strong>AI plugin</strong> is installed. Connect an AI provider below to generate featured images, alt text, titles, excerpts, and more. <a>Learn more</a>"):(0,Xe.__)("The <strong>AI plugin</strong> can use your AI connectors to generate featured images, alt text, titles, excerpts and more. <a>Learn more</a>"),b=()=>s==="not-installed"?{label:e?(0,Xe.__)("Installing\u2026"):(0,Xe.__)("Install the AI plugin"),disabled:e,onClick:e?void 0:m}:{label:e?(0,Xe.__)("Activating\u2026"):(0,Xe.__)("Activate the AI plugin"),disabled:e,onClick:e?void 0:u};return React.createElement("div",{className:"ai-plugin-callout"},React.createElement("div",{className:"ai-plugin-callout__content"},React.createElement("p",null,(0,wt.createInterpolateElement)(y(),{strong:React.createElement("strong",null),a:React.createElement(cn.ExternalLink,{href:a0})})),!w&&(_?React.createElement(cn.Button,{variant:"primary",size:"compact",isBusy:e,disabled:b().disabled,accessibleWhenDisabled:!0,onClick:b().onClick},b().label):React.createElement(cn.Button,{ref:r,variant:"secondary",size:"compact",href:(0,sf.addQueryArgs)("options-general.php",{page:s0})},(0,Xe.__)("Control features in the AI plugin")))),React.createElement(nf,null))}var{store:d0}=No(l0);of();function u0(){let e=$u(),{connectors:t,canInstallPlugins:o,isAiPluginInstalled:n}=(0,lf.useSelect)(c=>{let l=c(uf.store),f=l.getEntityRecord("root","plugin","ai/ai");return{connectors:No(c(d0)).getConnectors(),canInstallPlugins:l.canUser("create",{kind:"root",name:"plugin"}),isAiPluginInstalled:!!f}},[]),r=t.filter(c=>c.render),i=Array.from(new Set(t.filter(c=>c.type==="ai_provider").map(c=>c.plugin?.file?.split("/")[0]).filter(c=>!!c))).sort(),s=new Set(t.filter(c=>c.plugin?.isInstalled).map(c=>c.plugin?.file?.split("/")[0]).filter(c=>!!c));n&&s.add("ai");let a=["ai",...i].filter(c=>!s.has(c)),d=r.length===0;return React.createElement(Bs,{title:(0,Tt.__)("Connectors"),subTitle:(0,Tt.__)("All of your API keys and credentials are stored here and shared across plugins. Configure once and use everywhere.")},React.createElement("div",{className:`connectors-page${d?" connectors-page--empty":""}`},a.length>0&&(e||!o)&&React.createElement(tn.Root,{intent:"info",className:"connectors-page__file-mods-notice"},React.createElement(tn.Description,null,e?(0,Tt.__)("Plugins cannot be installed here due to your site configuration. Install them manually using your normal deployment workflow."):(0,Tt.__)("You do not have permission to install plugins. Please ask a site administrator to install them for you."))),d?React.createElement(dt.__experimentalVStack,{alignment:"center",spacing:3,style:{maxWidth:480}},React.createElement(dt.__experimentalVStack,{alignment:"center",spacing:2},React.createElement(dt.__experimentalHeading,{level:2,size:15},(0,Tt.__)("No connectors yet")),React.createElement(dt.__experimentalText,{size:12},(0,Tt.__)("Connectors appear here when you install plugins that use external services. Each plugin registers the API keys it needs, and you manage them all in one place."))),React.createElement(dt.Button,{variant:"secondary",href:"plugin-install.php",__next40pxDefaultSize:!0},(0,Tt.__)("Learn more"))):React.createElement(dt.__experimentalVStack,{spacing:3},React.createElement(cf,null),React.createElement(dt.__experimentalVStack,{spacing:3,role:"list"},t.map(c=>c.render?React.createElement(c.render,{key:c.slug,slug:c.slug,name:c.name,description:c.description,type:c.type,logo:c.logo,authentication:c.authentication,plugin:c.plugin}):null))),o&&!e&&React.createElement("p",null,(0,df.createInterpolateElement)((0,Tt.__)("If the connector you need is not listed, <a>search the plugin directory</a> to see if a connector is available."),{a:React.createElement("a",{href:"plugin-install.php?s=connector&tab=search&type=tag"})}))))}function f0(){return React.createElement(u0,null)}var p0=f0;export{p0 as stage};
+var If=Object.create;var Rr=Object.defineProperty;var Mf=Object.getOwnPropertyDescriptor;var Bf=Object.getOwnPropertyNames;var Hf=Object.getPrototypeOf,zf=Object.prototype.hasOwnProperty;var Re=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ot=(e,t)=>{for(var o in t)Rr(e,o,{get:t[o],enumerable:!0})},Df=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Bf(t))!zf.call(e,r)&&r!==o&&Rr(e,r,{get:()=>t[r],enumerable:!(n=Mf(t,r))||n.enumerable});return e};var b=(e,t,o)=>(o=e!=null?If(Hf(e)):{},Df(t||!e||!e.__esModule?Rr(o,"default",{value:e,enumerable:!0}):o,e));var lt=Re((M0,ea)=>{ea.exports=window.wp.i18n});var ce=Re((H0,oa)=>{oa.exports=window.wp.element});var z=Re((z0,na)=>{na.exports=window.React});var K=Re((U0,aa)=>{aa.exports=window.ReactJSXRuntime});var Mt=Re((Zh,Ia)=>{Ia.exports=window.ReactDOM});var Fc=Re(jc=>{"use strict";var ho=z();function Vm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wm=typeof Object.is=="function"?Object.is:Vm,Ym=ho.useState,Um=ho.useEffect,Gm=ho.useLayoutEffect,Xm=ho.useDebugValue;function Km(e,t){var o=t(),n=Ym({inst:{value:o,getSnapshot:t}}),r=n[0].inst,i=n[1];return Gm(function(){r.value=o,r.getSnapshot=t,ci(r)&&i({inst:r})},[e,o,t]),Um(function(){return ci(r)&&i({inst:r}),e(function(){ci(r)&&i({inst:r})})},[e]),Xm(o),o}function ci(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!Wm(e,o)}catch{return!0}}function qm(e,t){return t()}var Zm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?qm:Km;jc.useSyncExternalStore=ho.useSyncExternalStore!==void 0?ho.useSyncExternalStore:Zm});var li=Re((z1,Vc)=>{"use strict";Vc.exports=Fc()});var Yc=Re(Wc=>{"use strict";var Dn=z(),Qm=li();function Jm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $m=typeof Object.is=="function"?Object.is:Jm,eg=Qm.useSyncExternalStore,tg=Dn.useRef,og=Dn.useEffect,ng=Dn.useMemo,rg=Dn.useDebugValue;Wc.useSyncExternalStoreWithSelector=function(e,t,o,n,r){var i=tg(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=ng(function(){function l(m){if(!c){if(c=!0,d=m,m=n(m),r!==void 0&&s.hasValue){var u=s.value;if(r(u,m))return f=u}return f=m}if(u=f,$m(d,m))return u;var g=n(m);return r!==void 0&&r(u,g)?(d=m,u):(d=m,f=g)}var c=!1,d,f,p=o===void 0?null:o;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,o,n,r]);var a=eg(e,i[0],i[1]);return og(function(){s.hasValue=!0,s.value=a},[a]),rg(a),a}});var Gc=Re((j1,Uc)=>{"use strict";Uc.exports=Yc()});var $t=Re((g4,xd)=>{xd.exports=window.wp.primitives});var Od=Re((H4,Ad)=>{Ad.exports=window.wp.theme});var ts=Re((z4,Nd)=>{Nd.exports=window.wp.privateApis});var tn=Re((P3,Gu)=>{Gu.exports=window.wp.components});var nn=Re((j3,ef)=>{ef.exports=window.wp.data});var hr=Re((F3,tf)=>{tf.exports=window.wp.coreData});var Us=Re((Y3,nf)=>{nf.exports=window.wp.notices});var sf=Re((U3,rf)=>{rf.exports=window.wp.url});function ta(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=ta(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function jf(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=ta(e))&&(n&&(n+=" "),n+=t);return n}var $=jf;var gd=b(ce(),1);var Ff=b(z(),1),Io={...Ff};var ia=b(z(),1),ra={};function Se(e,t){let o=ia.useRef(ra);return o.current===ra&&(o.current=e(t)),o}var Sr=Io.useInsertionEffect,Vf=Sr&&Sr!==Io.useLayoutEffect?Sr:e=>e();function Y(e){let t=Se(Wf).current;return t.next=e,Vf(t.effect),t.trampoline}function Wf(){let e={next:void 0,callback:Yf,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Yf(){}var sa=b(z(),1),Uf=()=>{},D=typeof document<"u"?sa.useLayoutEffect:Uf;var bn=b(z(),1),Er=bn.createContext(void 0);function so(){return bn.useContext(Er)?.direction??"ltr"}function Gf(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set("code",n.toString()),r.forEach(s=>i.searchParams.append("args[]",s)),`${t} error #${n}; visit ${i} for the full message.`}}var Xf=Gf("https://base-ui.com/production-error","Base UI"),ke=Xf;var Wt=b(z(),1);function Tr(e,t,o,n){let r=Se(la).current;return Kf(r,e,t,o,n)&&da(r,[e,t,o,n]),r.callback}function ca(e){let t=Se(la).current;return qf(t,e)&&da(t,e),t.callback}function la(){return{callback:null,cleanup:null,refs:[]}}function Kf(e,t,o,n,r){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==n||e.refs[3]!==r}function qf(e,t){return e.refs.length!==t.length||e.refs.some((o,n)=>o!==t[n])}function da(e,t){if(e.refs=t,t.every(o=>o==null)){e.callback=null;return}e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),o!=null){let n=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=i(o);typeof s=="function"&&(n[r]=s);break}case"object":{i.current=o;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=n[r];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var fa=b(z(),1);var ua=b(z(),1),Zf=parseInt(ua.version,10);function ao(e){return Zf>=e}function kr(e){if(!fa.isValidElement(e))return null;let t=e,o=t.props;return(ao(19)?o?.ref:t.ref)??null}function Mo(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Nt(){}var eh=Object.freeze([]),be=Object.freeze({});function pa(e,t){let o={};for(let n in e){let r=e[n];if(t?.hasOwnProperty(n)){let i=t[n](r);i!=null&&Object.assign(o,i);continue}r===!0?o[`data-${n.toLowerCase()}`]="":r&&(o[`data-${n.toLowerCase()}`]=r.toString())}return o}function ma(e,t){return typeof e=="function"?e(t):e}function ga(e,t){return typeof e=="function"?e(t):e}var Pr={};function we(e,t,o,n,r){if(!o&&!n&&!r&&!e)return hn(t);let i=hn(e);return t&&(i=Bo(i,t)),o&&(i=Bo(i,o)),n&&(i=Bo(i,n)),r&&(i=Bo(i,r)),i}function ba(e){if(e.length===0)return Pr;if(e.length===1)return hn(e[0]);let t=hn(e[0]);for(let o=1;o<e.length;o+=1)t=Bo(t,e[o]);return t}function hn(e){return Cr(e)?{...wa(e,Pr)}:Qf(e)}function Bo(e,t){return Cr(t)?wa(t,e):Jf(e,t)}function Qf(e){let t={...e};for(let o in t){let n=t[o];ha(o,n)&&(t[o]=va(n))}return t}function Jf(e,t){if(!t)return e;for(let o in t){let n=t[o];switch(o){case"style":{e[o]=Mo(e.style,n);break}case"className":{e[o]=Ar(e.className,n);break}default:ha(o,n)?e[o]=$f(e[o],n):e[o]=n}}return e}function ha(e,t){let o=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2);return o===111&&n===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function Cr(e){return typeof e=="function"}function wa(e,t){return Cr(e)?e(t):e??Pr}function $f(e,t){return t?e?(...o)=>{let n=o[0];if(_a(n)){let i=n;Ho(i);let s=t(...o);return i.baseUIHandlerPrevented||e?.(...o),s}let r=t(...o);return e?.(...o),r}:va(t):e}function va(e){return e&&((...t)=>{let o=t[0];return _a(o)&&Ho(o),e(...t)})}function Ho(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Ar(e,t){return t?e?t+" "+e:t:e}function _a(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var Or=b(z(),1);function Pe(e,t,o={}){let n=t.render,r=ep(t,o);if(o.enabled===!1)return null;let i=o.state??be;return np(e,n,r,i)}function ep(e,t={}){let{className:o,style:n,render:r}=e,{state:i=be,ref:s,props:a,stateAttributesMapping:l,enabled:c=!0}=t,d=c?ma(o,i):void 0,f=c?ga(n,i):void 0,p=c?pa(i,l):be,m=c&&a?tp(a):void 0,u=c?Mo(p,m)??{}:be;return typeof document<"u"&&(c?Array.isArray(s)?u.ref=ca([u.ref,kr(r),...s]):u.ref=Tr(u.ref,kr(r),s):Tr(null,null)),c?(d!==void 0&&(u.className=Ar(u.className,d)),f!==void 0&&(u.style=Mo(u.style,f)),u):be}function tp(e){return Array.isArray(e)?ba(e):we(void 0,e)}var op=Symbol.for("react.lazy");function np(e,t,o,n){if(t){if(typeof t=="function")return t(o,n);let r=we(o,t.props);r.ref=o.ref;let i=t;return i?.$$typeof===op&&(i=Wt.Children.toArray(t)[0]),Wt.cloneElement(i,r)}if(e&&typeof e=="string")return rp(e,o);throw new Error(ke(8))}function rp(e,t){return e==="button"?(0,Or.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,Or.createElement)("img",{alt:"",...t,key:t.key}):Wt.createElement(e,t)}var wn=b(z(),1);var ya=0;function ip(e,t="mui"){let[o,n]=wn.useState(e),r=e||o;return wn.useEffect(()=>{o==null&&(ya+=1,n(`${t}-${ya}`))},[o,t]),r}var xa=Io.useId;function Lt(e,t){if(xa!==void 0){let o=xa();return e??(t?`${t}-${o}`:o)}return ip(e,t)}function Ra(e){return Lt(e,"base-ui")}var U={};Ot(U,{cancelOpen:()=>Lp,chipRemovePress:()=>gp,clearPress:()=>mp,closePress:()=>fp,closeWatcher:()=>Tp,decrementPress:()=>wp,disabled:()=>Mp,drag:()=>Ap,escapeKey:()=>Ep,focusOut:()=>Sp,imperativeAction:()=>zp,incrementPress:()=>hp,initial:()=>Hp,inputBlur:()=>yp,inputChange:()=>vp,inputClear:()=>_p,inputPaste:()=>xp,inputPress:()=>Rp,itemPress:()=>up,keyboard:()=>Pp,linkPress:()=>pp,listNavigation:()=>kp,missing:()=>Bp,none:()=>sp,outsidePress:()=>dp,pointer:()=>Cp,scrub:()=>Np,siblingOpen:()=>Ip,swipe:()=>Dp,trackPress:()=>bp,triggerFocus:()=>lp,triggerHover:()=>cp,triggerPress:()=>ap,wheel:()=>Op,windowResize:()=>jp});var sp="none",ap="trigger-press",cp="trigger-hover",lp="trigger-focus",dp="outside-press",up="item-press",fp="close-press",pp="link-press",mp="clear-press",gp="chip-remove-press",bp="track-press",hp="increment-press",wp="decrement-press",vp="input-change",_p="input-clear",yp="input-blur",xp="input-paste",Rp="input-press",Sp="focus-out",Ep="escape-key",Tp="close-watcher",kp="list-navigation",Pp="keyboard",Cp="pointer",Ap="drag",Op="wheel",Np="scrub",Lp="cancel-open",Ip="sibling-open",Mp="disabled",Bp="missing",Hp="initial",zp="imperative-action",Dp="swipe",jp="window-resize";function ee(e,t,o,n){let r=!1,i=!1,s=n??be;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){i=!0},get isCanceled(){return r},get isPropagationAllowed(){return i},trigger:o,...s}}var Lr=b(z(),1);var Sa=b(z(),1),Fp=[];function co(e){Sa.useEffect(e,Fp)}var vn=null,kh=globalThis.requestAnimationFrame,Nr=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let o=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let r=0;r<o.length;r+=1)o[r]?.(t)};request(t){let o=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(t){let o=t-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}},_n=new Nr,dt=class e{static create(){return new e}static request(t){return _n.request(t)}static cancel(t){return _n.cancel(t)}currentId=vn;request(t){this.cancel(),this.currentId=_n.request(()=>{this.currentId=vn,t()})}cancel=()=>{this.currentId!==vn&&(_n.cancel(this.currentId),this.currentId=vn)};disposeEffect=()=>this.cancel};function lo(){let e=Se(dt.create).current;return co(e.disposeEffect),e}function Ea(e,t=!1,o=!1){let[n,r]=Lr.useState(e&&t?"idle":void 0),[i,s]=Lr.useState(e);return e&&!i&&(s(!0),r("starting")),!e&&i&&n!=="ending"&&!o&&r("ending"),!e&&!i&&n==="ending"&&r(void 0),D(()=>{if(!e&&i&&n!=="ending"&&o){let a=dt.request(()=>{r("ending")});return()=>{dt.cancel(a)}}},[e,i,n,o]),D(()=>{if(!e||t)return;let a=dt.request(()=>{r(void 0)});return()=>{dt.cancel(a)}},[t,e]),D(()=>{if(!e||!t)return;e&&i&&n!=="idle"&&r("starting");let a=dt.request(()=>{r("idle")});return()=>{dt.cancel(a)}},[t,e,i,n]),{mounted:i,setMounted:s,transitionStatus:n}}var Yt=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),Vp={[Yt.startingStyle]:""},Wp={[Yt.endingStyle]:""},Ta={transitionStatus(e){return e==="starting"?Vp:e==="ending"?Wp:null}};var fo=b(z(),1);function yn(){return typeof window<"u"}function Gt(e){return xn(e)?(e.nodeName||"").toLowerCase():"#document"}function me(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ft(e){var t;return(t=(xn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xn(e){return yn()?e instanceof Node||e instanceof me(e).Node:!1}function F(e){return yn()?e instanceof Element||e instanceof me(e).Element:!1}function ye(e){return yn()?e instanceof HTMLElement||e instanceof me(e).HTMLElement:!1}function uo(e){return!yn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof me(e).ShadowRoot}function zo(e){let{overflow:t,overflowX:o,overflowY:n,display:r}=Ie(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&r!=="inline"&&r!=="contents"}function ka(e){return/^(table|td|th)$/.test(Gt(e))}function Do(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Yp=/transform|translate|scale|rotate|perspective|filter/,Up=/paint|layout|strict|content/,Ut=e=>!!e&&e!=="none",Ir;function Rn(e){let t=F(e)?Ie(e):e;return Ut(t.transform)||Ut(t.translate)||Ut(t.scale)||Ut(t.rotate)||Ut(t.perspective)||!Sn()&&(Ut(t.backdropFilter)||Ut(t.filter))||Yp.test(t.willChange||"")||Up.test(t.contain||"")}function Pa(e){let t=ut(e);for(;ye(t)&&!pt(t);){if(Rn(t))return t;if(Do(t))return null;t=ut(t)}return null}function Sn(){return Ir==null&&(Ir=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ir}function pt(e){return/^(html|body|#document)$/.test(Gt(e))}function Ie(e){return me(e).getComputedStyle(e)}function jo(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ut(e){if(Gt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||uo(e)&&e.host||ft(e);return uo(t)?t.host:t}function Ca(e){let t=ut(e);return pt(t)?(e.ownerDocument||e).body:ye(t)&&zo(t)?t:Ca(t)}function It(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let r=Ca(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=me(r);if(i){let a=En(s);return t.concat(s,s.visualViewport||[],zo(r)?r:[],a&&o?It(a):[])}else return t.concat(r,It(r,[],o))}function En(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Tn=b(z(),1),Gp=Tn.createContext(void 0);function Aa(e=!1){let t=Tn.useContext(Gp);if(t===void 0&&!e)throw new Error(ke(16));return t}var Oa=b(z(),1);function Na(e){let{focusableWhenDisabled:t,disabled:o,composite:n=!1,tabIndex:r=0,isNativeButton:i}=e,s=n&&t!==!1,a=n&&t===!1;return{props:Oa.useMemo(()=>{let c={onKeyDown(d){o&&t&&d.key!=="Tab"&&d.preventDefault()}};return n||(c.tabIndex=r,!i&&o&&(c.tabIndex=t?r:-1)),(i&&(t||s)||!i&&o)&&(c["aria-disabled"]=o),i&&(!t||a)&&(c.disabled=o),c},[n,o,t,s,a,i,r])}}function La(e={}){let{disabled:t=!1,focusableWhenDisabled:o,tabIndex:n=0,native:r=!0,composite:i}=e,s=fo.useRef(null),a=Aa(!0),l=i??a!==void 0,{props:c}=Na({focusableWhenDisabled:o,disabled:t,composite:l,tabIndex:n,isNativeButton:r}),d=fo.useCallback(()=>{let m=s.current;Mr(m)&&l&&t&&c.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,c.disabled,l]);D(d,[d]);let f=fo.useCallback((m={})=>{let{onClick:u,onMouseDown:g,onKeyUp:v,onKeyDown:_,onPointerDown:w,...y}=m;return we({onClick(h){if(t){h.preventDefault();return}u?.(h)},onMouseDown(h){t||g?.(h)},onKeyDown(h){if(t||(Ho(h),_?.(h),h.baseUIHandlerPrevented))return;let T=h.target===h.currentTarget,x=h.currentTarget,R=Mr(x),E=!r&&Xp(x),k=T&&(r?R:!E),C=h.key==="Enter",W=h.key===" ",O=x.getAttribute("role"),L=O?.startsWith("menuitem")||O==="option"||O==="gridcell";if(T&&l&&W){if(h.defaultPrevented&&L)return;h.preventDefault(),E||r&&R?(x.click(),h.preventBaseUIHandler()):k&&(u?.(h),h.preventBaseUIHandler());return}k&&(!r&&(W||C)&&h.preventDefault(),!r&&C&&u?.(h))},onKeyUp(h){if(!t){if(Ho(h),v?.(h),h.target===h.currentTarget&&r&&l&&Mr(h.currentTarget)&&h.key===" "){h.preventDefault();return}h.baseUIHandlerPrevented||h.target===h.currentTarget&&!r&&!l&&h.key===" "&&u?.(h)}},onPointerDown(h){if(t){h.preventDefault();return}w?.(h)}},r?{type:"button"}:{role:"button"},c,y)},[t,c,l,r]),p=Y(m=>{s.current=m,d()});return{getButtonProps:f,buttonRef:p}}function Mr(e){return ye(e)&&e.tagName==="BUTTON"}function Xp(e){return!!(e?.tagName==="A"&&e?.href)}function re(e,t,o,n){return e.addEventListener(t,o,n),()=>{e.removeEventListener(t,o,n)}}function He(e){let t=Se(Kp,e).current;return t.next=e,D(t.effect),t}function Kp(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function xe(e){return e?.ownerDocument||document}var Ha=b(z(),1);var Ba=b(Mt(),1);function Ma(e){return e==null?e:"current"in e?e.current:e}function po(e,t=!1,o=!0){let n=lo();return Y((r,i=null)=>{n.cancel();let s=Ma(e);if(s==null)return;let a=s,l=()=>{Ba.flushSync(r)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function c(){Promise.all(a.getAnimations().map(d=>d.finished)).then(()=>{i?.aborted||l()}).catch(()=>{if(o){i?.aborted||l();return}let d=a.getAnimations();!i?.aborted&&d.length>0&&d.some(f=>f.pending||f.playState!=="finished")&&c()})}if(t){let d=Yt.startingStyle;if(!a.hasAttribute(d)){n.request(c);return}let f=new MutationObserver(()=>{a.hasAttribute(d)||(f.disconnect(),c())});f.observe(a,{attributes:!0,attributeFilter:[d]}),i?.addEventListener("abort",()=>f.disconnect(),{once:!0});return}n.request(c)})}function kn(e){let{enabled:t=!0,open:o,ref:n,onComplete:r}=e,i=Y(r),s=po(n,o,!1);Ha.useEffect(()=>{if(!t)return;let a=new AbortController;return s(i,a.signal),()=>{a.abort()}},[t,o,i,s])}var za=b(z(),1);function Da(e){let t=za.useRef(!0);t.current&&(t.current=!1,e())}var Rt={};Ot(Rt,{engine:()=>jr,env:()=>Vr,os:()=>zr,screenReader:()=>Fr});var zr={};Ot(zr,{android:()=>Va,apple:()=>Hr,ios:()=>Br,linux:()=>$p,mac:()=>Wa,windows:()=>Jp});function qp(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Zp,platform:Qp,maxTouchPoints:ja}=qp(),Xt=Zp.toLowerCase(),Kt=Qp.toLowerCase();var Br=/^i(os$|p)/.test(Kt)||Kt==="macintel"&&ja>1,Fa="android",Va=Kt===Fa||Xt.includes(Fa),Wa=!Br&&Kt.startsWith("mac"),Jp=Kt.startsWith("win"),$p=!Va&&/^(linux|chrome os)/.test(Kt),Hr=Wa||Br;var jr={};Ot(jr,{blink:()=>tm,gecko:()=>em,webkit:()=>Dr});var Dr=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),em=!Dr&&Xt.includes("firefox"),tm=!Dr&&Xt.includes("chrom");var Fr={};Ot(Fr,{voiceOver:()=>om});var om=Hr;var Vr={};Ot(Vr,{jsdom:()=>nm});var nm=/jsdom|happydom/.test(Xt);var Fo=0,We=class e{static create(){return new e}currentId=Fo;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Fo,o()},t)}isStarted(){return this.currentId!==Fo}clear=()=>{this.currentId!==Fo&&(clearTimeout(this.currentId),this.currentId=Fo)};disposeEffect=()=>this.clear};function ot(){let e=Se(We.create).current;return co(e.disposeEffect),e}var Ce=b(z(),1);function Ya(e){return"nativeEvent"in e}function St(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function Ua(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var Wr="data-base-ui-focusable";var Yr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Pn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ie(e,t){if(!e||!t)return!1;let o=t.getRootNode?.();if(e.contains(t))return!0;if(o&&uo(o)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Me(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Bt(e,t){if(!F(e))return!1;let o=e;if(t.hasElement(o))return!o.hasAttribute("data-trigger-disabled");for(let[,n]of t.entries())if(ie(n,o))return!n.hasAttribute("data-trigger-disabled");return!1}function Cn(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let o=e;return o.target!=null&&t.contains(o.target)}function Ga(e){return e.matches("html,body")}function Xa(e){return ye(e)&&e.matches(Yr)}function Ur(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Yr}`)!=null}function Ka(e){if(!e||Rt.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function rm(e,t){return t!=null&&!St(t)?0:typeof e=="function"?e():e}function Et(e,t,o){let n=rm(e,o);return typeof n=="number"?n:n?.[t]}function Gr(e){return typeof e=="function"?e():e}function An(e,t){return t||e==="click"||e==="mousedown"}function qa(e){return e?.includes("mouse")&&e!=="mousedown"}var Za=b(K(),1),Qa=Ce.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new We,currentIdRef:{current:null},currentContextRef:{current:null}});function im(e,t){e.current=t.current}function Xr(e){let{children:t,delay:o,timeoutMs:n=0}=e,r=Ce.useRef(o),i=Ce.useRef(o),s=Ce.useRef(null),a=Ce.useRef(null),l=ot();return D(()=>{if(i.current=o,!s.current){r.current=o;return}r.current={open:Et(r.current,"open"),close:Et(o,"close")}},[o,s,r,i]),(0,Za.jsx)(Qa.Provider,{value:Ce.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:i,currentIdRef:s,timeoutMs:n,currentContextRef:a,timeout:l}),[n,l]),children:t})}function Kr(e,t={open:!1}){let{open:o}=t,n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),i=Ce.useContext(Qa),{currentIdRef:s,delayRef:a,timeoutMs:l,initialDelayRef:c,currentContextRef:d,hasProvider:f,timeout:p}=i,[m,u]=Ce.useState(!1),g=Ce.useRef(o),v=Ce.useRef(!1);return D(()=>{g.current=o},[o]),D(()=>()=>{v.current=!0},[]),D(()=>{function _(){v.current||u(!1),d.current?.setIsInstantPhase(!1),s.current=null,d.current=null,a.current=c.current,p.clear()}if(s.current&&!o&&s.current===r){if(u(!1),l){let w=r;return p.start(l,()=>{n.select("open")||s.current&&s.current!==w||_()}),()=>{(g.current||s.current!==w)&&p.clear()}}_()}},[o,r,s,a,l,c,d,p,n]),D(()=>{if(!o)return;let _=d.current,w=s.current;p.clear(),d.current={onOpenChange:n.setOpen,setIsInstantPhase:u},s.current=r,a.current={open:0,close:Et(c.current,"close")},w!==null&&w!==r?(u(!0),_?.setIsInstantPhase(!0),_?.onOpenChange(!1,ee(U.none))):(u(!1),_?.setIsInstantPhase(!1))},[o,r,n,s,a,c,d,p]),D(()=>()=>{if(s.current===r){if(d.current=null,!g.current)return;s.current=null,im(a,c),p.clear()}},[d,s,a,r,c,p]),Ce.useMemo(()=>({hasProvider:f,delayRef:a,isInstantPhase:m}),[f,a,m])}function nt(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}var ec=["top","right","bottom","left"];var Ht=Math.min,rt=Math.max,zt=Math.round,Wo=Math.floor,mt=e=>({x:e,y:e}),sm={left:"right",right:"left",bottom:"top",top:"bottom"};function Nn(e,t,o){return rt(e,Ht(t,o))}function it(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function Ln(e){return e==="x"?"y":"x"}function Yo(e){return e==="y"?"height":"width"}function ze(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Uo(e){return Ln(ze(e))}function tc(e,t,o){o===void 0&&(o=!1);let n=st(e),r=Uo(e),i=Yo(r),s=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vo(s)),[s,Vo(s)]}function oc(e){let t=Vo(e);return[On(e),t,On(t)]}function On(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Ja=["left","right"],$a=["right","left"],am=["top","bottom"],cm=["bottom","top"];function lm(e,t,o){switch(e){case"top":case"bottom":return o?t?$a:Ja:t?Ja:$a;case"left":case"right":return t?am:cm;default:return[]}}function nc(e,t,o,n){let r=st(e),i=lm(Ae(e),o==="start",n);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(On)))),i}function Vo(e){let t=Ae(e);return sm[t]+e.slice(t.length)}function dm(e){var t,o,n,r;return{top:(t=e.top)!=null?t:0,right:(o=e.right)!=null?o:0,bottom:(n=e.bottom)!=null?n:0,left:(r=e.left)!=null?r:0}}function In(e){return typeof e!="number"?dm(e):{top:e,right:e,bottom:e,left:e}}function qt(e){let{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Tt(e,t,o=!0){return e.filter(r=>r.parentId===t).flatMap(r=>[...!o||r.context?.open?[r]:[],...Tt(e,r.id,o)])}function mo(e){return`data-base-ui-${e}`}var Ye=b(z(),1),sc=b(Mt(),1);var rc={style:{transition:"none"}};var um="data-base-ui-swipe-ignore",fm="data-swipe-ignore",zw=`[${um}]`,Dw=`[${fm}]`;var ic={fallbackAxisSide:"end"};var ac=b(K(),1),pm=Ye.createContext(null),mm=()=>Ye.useContext(pm),gm=mo("portal");function qr(e={}){let{ref:t,container:o,componentProps:n=be,elementProps:r}=e,i=Lt(),a=mm()?.portalNode,[l,c]=Ye.useState(null),[d,f]=Ye.useState(null),p=Y(v=>{v!==null&&f(v)}),m=Ye.useRef(null);D(()=>{if(o===null){m.current&&(m.current=null,f(null),c(null));return}if(i==null)return;let v=(o&&(xn(o)?o:o.current))??a??document.body;if(v==null){m.current&&(m.current=null,f(null),c(null));return}m.current!==v&&(m.current=v,f(null),c(v))},[o,a,i]);let u=Pe("div",n,{ref:[t,p],props:[{id:i,[gm]:""},r]});return{portalNode:d,portalSubtree:l&&u?sc.createPortal(u,l):null}}var Zt=b(z(),1);function cc(){let e=new Map;return{emit(t,o){e.get(t)?.forEach(n=>n(o))},on(t,o){e.has(t)||e.set(t,new Set),e.get(t).add(o)},off(t,o){e.get(t)?.delete(o)}}}var bm=b(K(),1),hm=Zt.createContext(null),wm=Zt.createContext(null),go=()=>Zt.useContext(hm)?.id||null,Dt=e=>{let t=Zt.useContext(wm);return e??t};var De=b(z(),1);function vm(e,t){let o=null,n=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){let i=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",l=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",c=i.width,d=i.height,f=i.x,p=i.y;return o==null&&t.x&&s&&(o=i.x-t.x),n==null&&t.y&&a&&(n=i.y-t.y),f-=o||0,p-=n||0,c=0,d=0,!r||l?(c=t.axis==="y"?i.width:0,d=t.axis==="x"?i.height:0,f=s&&t.x!=null?t.x:f,p=a&&t.y!=null?t.y:p):r&&!l&&(d=t.axis==="x"?i.height:d,c=t.axis==="y"?i.width:c),r=!0,{width:c,height:d,x:f,y:p,top:p,right:f+c,bottom:p+d,left:f}}}}function lc(e){return e!=null&&e.clientX!=null}function Zr(e,t={}){let{enabled:o=!0,axis:n="both"}=t,r="rootStore"in e?e.rootStore:e,i=r.useState("open"),s=r.useState("floatingElement"),a=r.useState("domReferenceElement"),l=r.context.dataRef,c=De.useRef(!1),d=De.useRef(null),[f,p]=De.useState(),[m,u]=De.useState([]),g=Y(h=>{r.set("positionReference",h)}),v=Y((h,T,x)=>{c.current||l.current.openEvent&&!lc(l.current.openEvent)||r.set("positionReference",vm(x??a,{x:h,y:T,axis:n,dataRef:l,pointerType:f}))}),_=Y(h=>{i?d.current||(v(h.clientX,h.clientY,h.currentTarget),u([])):v(h.clientX,h.clientY,h.currentTarget)}),w=St(f)?s:i;De.useEffect(()=>{if(!o){g(a);return}if(!w)return;function h(){d.current?.(),d.current=null}let T=me(s);function x(R){let E=Me(R);ie(s,E)?h():v(R.clientX,R.clientY)}return!l.current.openEvent||lc(l.current.openEvent)?d.current=re(T,"mousemove",x):g(a),h},[w,o,s,l,a,r,v,g,m]),De.useEffect(()=>()=>{r.set("positionReference",null)},[r]),De.useEffect(()=>{o&&!s&&(c.current=!1)},[o,s]),De.useEffect(()=>{!o&&i&&(c.current=!0)},[o,i]);let y=De.useMemo(()=>{function h(T){p(T.pointerType)}return{onPointerDown:h,onPointerEnter:h,onMouseMove:_,onMouseEnter:_}},[_]);return De.useMemo(()=>o?{reference:y,trigger:y}:{},[o,y])}var je=b(z(),1);function _m(){return!1}function ym(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Qr(e,t={}){let{enabled:o=!0,escapeKey:n=!0,outsidePress:r=!0,outsidePressEvent:i="sloppy",referencePress:s=_m,bubbles:a,externalTree:l}=t,c="rootStore"in e?e.rootStore:e,d=c.useState("open"),f=c.useState("floatingElement"),{dataRef:p}=c.context,m=Dt(l),u=Y(typeof r=="function"?r:()=>!1),g=typeof r=="function"?u:r,v=g!==!1,_=Y(()=>i),{escapeKey:w,outsidePress:y}=ym(a),h=je.useRef(!1),T=je.useRef(!1),x=je.useRef(!1),R=je.useRef(!1),E=je.useRef(""),k=je.useRef(null),C=ot(),W=ot(),O=Y(()=>{W.clear(),p.current.insideReactTree=!1}),L=Y(V=>{let oe=p.current.floatingContext?.nodeId;return(m?Tt(m.nodesRef.current,oe):[]).some(se=>se.context?.open&&!se.context.dataRef.current[V])}),I=Y(V=>Cn(V,c.select("floatingElement"))||Cn(V,c.select("domReferenceElement"))),S=Y(V=>{s()&&c.setOpen(!1,ee(U.triggerPress,V.nativeEvent))}),N=Y(V=>{if(!d||!o||!n||V.key!=="Escape"||R.current||!w&&L("__escapeKeyBubbles"))return;let oe=Ya(V)?V.nativeEvent:V,te=ee(U.escapeKey,oe);c.setOpen(!1,te),te.isCanceled||V.preventDefault(),!w&&!te.isPropagationAllowed&&V.stopPropagation()}),H=Y(()=>{p.current.insideReactTree=!0,W.start(0,O)}),P=Y(V=>{if(!d||!o||V.button!==0)return;let oe=Me(V.nativeEvent);ie(c.select("floatingElement"),oe)&&(h.current||(h.current=!0,T.current=!1))}),A=Y(V=>{!d||!o||(V.defaultPrevented||V.nativeEvent.defaultPrevented)&&h.current&&(T.current=!0)});je.useEffect(()=>{if(!d||!o)return;p.current.__escapeKeyBubbles=w,p.current.__outsidePressBubbles=y;let V=new We,oe=new We;function te(){V.clear(),R.current=!0}function se(){V.start(Rt.engine.webkit?5:0,()=>{R.current=!1})}function G(){x.current=!0,oe.start(0,()=>{x.current=!1})}function q(){h.current=!1,T.current=!1}function J(){let B=E.current,j=B==="pen"||!B?"mouse":B,he=_(),Te=typeof he=="function"?he():he;return typeof Te=="string"?Te:Te[j]}function ne(B){let j=J();return j==="intentional"&&B.type!=="click"||j==="sloppy"&&B.type==="click"}function ge(B){let j=p.current.floatingContext?.nodeId,he=m&&Tt(m.nodesRef.current,j).some(Te=>Cn(B,Te.context?.elements.floating));return I(B)||he}function de(B){if(ne(B)){B.type!=="click"&&!I(B)&&(oe.clear(),x.current=!1),O();return}if(p.current.insideReactTree){O();return}let j=Me(B),he=`[${mo("inert")}]`,Te=F(j)?j.getRootNode():null,Pt=Array.from((uo(Te)?Te:xe(c.select("floatingElement"))).querySelectorAll(he)),No=c.context.triggerElements;if(j&&(No.hasElement(j)||No.hasMatchingElement(Ve=>ie(Ve,j))))return;let yt=F(j)?j:null;for(;yt&&!pt(yt);){let Ve=ut(yt);if(pt(Ve)||!F(Ve))break;yt=Ve}if(!(Pt.length&&F(j)&&!Ga(j)&&!ie(j,c.select("floatingElement"))&&Pt.every(Ve=>!ie(yt,Ve)))){if(ye(j)&&!("touches"in B)){let Ve=pt(j),Ct=Ie(j),At=/auto|scroll/,dn=Ve||At.test(Ct.overflowX),un=Ve||At.test(Ct.overflowY),fn=dn&&j.clientWidth>0&&j.scrollWidth>j.clientWidth,pn=un&&j.clientHeight>0&&j.scrollHeight>j.clientHeight,mn=Ct.direction==="rtl",ae=pn&&(mn?B.offsetX<=j.offsetWidth-j.clientWidth:B.offsetX>j.clientWidth),Le=fn&&B.offsetY>j.clientHeight;if(ae||Le)return}if(!ge(B)){if(J()==="intentional"&&x.current){oe.clear(),x.current=!1;return}typeof g=="function"&&!g(B)||L("__outsidePressBubbles")||(c.setOpen(!1,ee(U.outsidePress,B)),O())}}}function X(B){J()!=="sloppy"||B.pointerType==="touch"||!c.select("open")||!o||I(B)||de(B)}function pe(B){if(J()!=="sloppy"||!c.select("open")||!o||I(B))return;let j=B.touches[0];j&&(k.current={startTime:Date.now(),startX:j.clientX,startY:j.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},C.start(1e3,()=>{k.current&&(k.current.dismissOnTouchEnd=!1,k.current.dismissOnMouseDown=!1)}))}function ue(B,j){let he=Me(B);if(!he)return;let Te=re(he,B.type,()=>{j(B),Te()})}function _t(B){E.current="touch",ue(B,pe)}function Ee(B){C.clear(),B.type==="pointerdown"&&(E.current=B.pointerType),!(B.type==="mousedown"&&k.current&&!k.current.dismissOnMouseDown)&&ue(B,j=>{j.type==="pointerdown"?X(j):de(j)})}function Fe(B){if(!h.current)return;let j=T.current;if(q(),J()==="intentional"){if(B.type==="pointercancel"){j&&G();return}if(!ge(B)){if(j){G();return}typeof g=="function"&&!g(B)||(oe.clear(),x.current=!0,O())}}}function Xe(B){if(J()!=="sloppy"||!k.current||I(B))return;let j=B.touches[0];if(!j)return;let he=Math.abs(j.clientX-k.current.startX),Te=Math.abs(j.clientY-k.current.startY),Pt=Math.sqrt(he*he+Te*Te);Pt>5&&(k.current.dismissOnTouchEnd=!0),Pt>10&&(de(B),C.clear(),k.current=null)}function Be(B){ue(B,Xe)}function no(B){J()!=="sloppy"||!k.current||I(B)||(k.current.dismissOnTouchEnd&&de(B),C.clear(),k.current=null)}function ln(B){ue(B,no)}let _e=xe(f),ro=nt(n&&nt(re(_e,"keydown",N),re(_e,"compositionstart",te),re(_e,"compositionend",se)),v&&nt(re(_e,"click",Ee,!0),re(_e,"pointerdown",Ee,!0),re(_e,"pointerup",Fe,!0),re(_e,"pointercancel",Fe,!0),re(_e,"mousedown",Ee,!0),re(_e,"mouseup",Fe,!0),re(_e,"touchstart",_t,!0),re(_e,"touchmove",Be,!0),re(_e,"touchend",ln,!0)));return()=>{ro(),V.clear(),oe.clear(),q(),x.current=!1}},[p,f,n,v,g,d,o,w,y,N,O,_,L,I,m,c,C]),je.useEffect(O,[g,O]);let M=je.useMemo(()=>({onKeyDown:N,onPointerDown:S,onClick:S}),[N,S]),Q=je.useMemo(()=>({onKeyDown:N,onPointerDown:A,onMouseDown:A,onClickCapture:H,onMouseDownCapture(V){H(),P(V)},onPointerDownCapture(V){H(),P(V)},onMouseUpCapture:H,onTouchEndCapture:H,onTouchMoveCapture:H}),[N,H,P,A]);return je.useMemo(()=>o?{reference:M,floating:Q,trigger:M}:{},[o,M,Q])}var Oe=b(z(),1);function dc(e,t,o){let{reference:n,floating:r}=e,i=ze(t),s=Uo(t),a=Yo(s),l=Ae(t),c=i==="y",d=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,p=n[a]/2-r[a]/2,m;switch(l){case"top":m={x:d,y:n.y-r.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:f};break;case"left":m={x:n.x-r.width,y:f};break;default:m={x:n.x,y:n.y}}let u=st(t);return u&&(m[s]+=p*(u==="end"?1:-1)*(o&&c?-1:1)),m}async function pc(e,t){var o;t===void 0&&(t={});let{x:n,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=it(t,e),u=In(m),v=a[p?f==="floating"?"reference":"floating":f],_=qt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(v)))==null||o?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),w=f==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),h=await(i.isElement==null?void 0:i.isElement(y))&&await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1},T=qt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:y,strategy:l}):w);return{top:(_.top-T.top+u.top)/h.y,bottom:(T.bottom-_.bottom+u.bottom)/h.y,left:(_.left-T.left+u.left)/h.x,right:(T.right-_.right+u.right)/h.x}}var xm=50,mc=async(e,t,o)=>{let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:pc},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=dc(c,n,l),p=n,m=0,u={};for(let g=0;g<i.length;g++){let v=i[g];if(!v)continue;let{name:_,fn:w}=v,{x:y,y:h,data:T,reset:x}=await w({x:d,y:f,initialPlacement:n,placement:p,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:e,floating:t}});d=y??d,f=h??f,u[_]={...u[_],...T},x&&m<xm&&(m++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(c=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):x.rects),{x:d,y:f}=dc(c,p,l)),g=-1)}return{x:d,y:f,placement:p,strategy:r,middlewareData:u}};var gc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;let{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:g=!0,...v}=it(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let _=Ae(r),w=ze(a),y=Ae(a)===a,h=await(l.isRTL==null?void 0:l.isRTL(c.floating)),T=p||(y||!g?[Vo(a)]:oc(a)),x=u!=="none";!p&&x&&T.push(...nc(a,g,u,h));let R=[a,...T],E=await l.detectOverflow(t,v),k=[],C=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&k.push(E[_]),f){let I=tc(r,s,h);k.push(E[I[0]],E[I[1]])}if(C=[...C,{placement:r,overflows:k}],!k.every(I=>I<=0)){var W,O;let I=(((W=i.flip)==null?void 0:W.index)||0)+1,S=R[I];if(S&&(!(f==="alignment"?w!==ze(S):!1)||C.every(P=>ze(P.placement)===w?P.overflows[0]>0:!0)))return{data:{index:I,overflows:C},reset:{placement:S}};let N=(O=C.filter(H=>H.overflows[0]<=0).sort((H,P)=>H.overflows[1]-P.overflows[1])[0])==null?void 0:O.placement;if(!N)switch(m){case"bestFit":{var L;let H=(L=C.filter(P=>{if(x){let A=ze(P.placement);return A===w||A==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(A=>A>0).reduce((A,M)=>A+M,0)]).sort((P,A)=>P[1]-A[1])[0])==null?void 0:L[0];H&&(N=H);break}case"initialPlacement":N=a;break}if(r!==N)return{reset:{placement:N}}}return{}}}};function uc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fc(e){return ec.some(t=>e[t]>=0)}var bc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o,platform:n}=t,{strategy:r="referenceHidden",...i}=it(e,t);switch(r){case"referenceHidden":{let s=await n.detectOverflow(t,{...i,elementContext:"reference"}),a=uc(s,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:fc(a)}}}case"escaped":{let s=await n.detectOverflow(t,{...i,altBoundary:!0}),a=uc(s,o.floating);return{data:{escapedOffsets:a,escaped:fc(a)}}}default:return{}}}}};var hc=new Set(["left","top"]);async function Rm(e,t){let{placement:o,platform:n,elements:r}=e,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Ae(o),a=st(o),l=ze(o)==="y",c=hc.has(s)?-1:1,d=i&&l?-1:1,f=it(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:u}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof u=="number"&&(m=a==="end"?u*-1:u),l?{x:m*d,y:p*c}:{x:p*c,y:m*d}}var wc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;let{x:r,y:i,placement:s,middlewareData:a}=t,l=await Rm(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},vc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:w=>{let{x:y,y:h}=w;return{x:y,y:h}}},...c}=it(e,t),d={x:o,y:n},f=await i.detectOverflow(t,c),p=ze(r),m=Ln(p),u=d[m],g=d[p],v=(w,y)=>Nn(y+f[w==="y"?"top":"left"],y,y-f[w==="y"?"bottom":"right"]);s&&(u=v(m,u)),a&&(g=v(p,g));let _=l.fn({...t,[m]:u,[p]:g});return{..._,data:{x:_.x-o,y:_.y-n,enabled:{[m]:s,[p]:a}}}}}},_c=function(e){return e===void 0&&(e={}),{options:e,fn(t){var o,n;let{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=it(e,t),p={x:r,y:i},m=ze(s),u=Ln(m),g=p[u],v=p[m],_=it(c,t),w=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:(o=_.mainAxis)!=null?o:0,crossAxis:(n=_.crossAxis)!=null?n:0};if(d){let T=u==="y"?"height":"width",x=a.reference[u]-a.floating[T]+w.mainAxis,R=a.reference[u]+a.reference[T]-w.mainAxis;g<x?g=x:g>R&&(g=R)}if(f){var y,h;let T=u==="y"?"width":"height",x=hc.has(Ae(s)),R=a.reference[m]-a.floating[T]+(x&&((y=l.offset)==null?void 0:y[m])||0)+(x?0:w.crossAxis),E=a.reference[m]+a.reference[T]+(x?0:((h=l.offset)==null?void 0:h[m])||0)-(x?w.crossAxis:0);v<R?v=R:v>E&&(v=E)}return{[u]:g,[m]:v}}}},yc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:o,rects:n,platform:r,elements:i}=t,{apply:s=()=>{},...a}=it(e,t),l=await r.detectOverflow(t,a),c=Ae(o),d=st(o),f=ze(o)==="y",{width:p,height:m}=n.floating,u,g;c==="top"||c==="bottom"?(u=c,g=d===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,u=d==="end"?"top":"bottom");let v=m-l.top-l.bottom,_=p-l.left-l.right,w=Ht(m-l[u],v),y=Ht(p-l[g],_),h=t.middlewareData.shift,T=!h,x=w,R=y;h!=null&&h.enabled.x&&(R=_),h!=null&&h.enabled.y&&(x=v),T&&!d&&(f?R=p-2*rt(l.left,l.right):x=m-2*rt(l.top,l.bottom)),await s({...t,availableWidth:R,availableHeight:x});let E=await r.getDimensions(i.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function Sc(e){let t=Ie(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=ye(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n,a=zt(o)!==i||zt(n)!==s;return a&&(o=i,n=s),{width:o,height:n,$:a}}function $r(e){return F(e)?e:e.contextElement}function bo(e){let t=$r(e);if(!ye(t))return mt(1);let o=t.getBoundingClientRect(),{width:n,height:r,$:i}=Sc(t),s=(i?zt(o.width):o.width)/n,a=(i?zt(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Sm=mt(0);function Ec(e){let t=me(e);return!Sn()||!t.visualViewport?Sm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Em(e,t,o){return t===void 0&&(t=!1),!!o&&t&&o===me(e)}function Qt(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let r=e.getBoundingClientRect(),i=$r(e),s=mt(1);t&&(n?F(n)&&(s=bo(n)):s=bo(e));let a=Em(i,o,n)?Ec(i):mt(0),l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(i&&n){let p=me(i),m=F(n)?me(n):n,u=p,g=En(u);for(;g&&m!==u;){let v=bo(g),_=g.getBoundingClientRect(),w=Ie(g),y=_.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,h=_.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,f*=v.y,l+=y,c+=h,u=me(g),g=En(u)}}return qt({width:d,height:f,x:l,y:c})}function Mn(e,t){let o=jo(e).scrollLeft;return t?t.left+o:Qt(ft(e)).left+o}function Tc(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Mn(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function Tm(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e,i=r==="fixed",s=ft(n),a=t?Do(t.floating):!1;if(n===s||a&&i)return o;let l={scrollLeft:0,scrollTop:0},c=mt(1),d=mt(0),f=ye(n);if((f||!i)&&((Gt(n)!=="body"||zo(s))&&(l=jo(n)),f)){let m=Qt(n);c=bo(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}let p=s&&!f&&!i?Tc(s,l):mt(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:o.y*c.y-l.scrollTop*c.y+d.y+p.y}}function km(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Pm(e){let t=jo(e),o=e.ownerDocument.body,n=rt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=rt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),i=-t.scrollLeft+Mn(e),s=-t.scrollTop;return Ie(o).direction==="rtl"&&(i+=rt(e.clientWidth,o.clientWidth)-n),{width:n,height:r,x:i,y:s}}var Cm=25;function Am(e,t,o){o===void 0&&(o="viewport");let n=o==="layoutViewport",r=me(e),i=ft(e),s=r.visualViewport,a=i.clientWidth,l=i.clientHeight,c=0,d=0;if(s){let p=!Sn()||t==="fixed";n?p||(c=-s.offsetLeft,d=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,d=s.offsetTop))}if(Mn(i)<=0){let p=i.ownerDocument,m=p.body,u=getComputedStyle(m),g=p.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,v=Math.abs(i.clientWidth-m.clientWidth-g),_=getComputedStyle(i).scrollbarGutter==="stable both-edges"?v/2:v;_<=Cm&&(a-=_)}return{width:a,height:l,x:c,y:d}}function Om(e,t){let o=Qt(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=bo(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function xc(e,t,o){let n;if(t==="viewport"||t==="layoutViewport")n=Am(e,o,t);else if(t==="document")n=Pm(ft(e));else if(F(t))n=Om(t,o);else{let r=Ec(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return qt(n)}function Nm(e,t){let o=t.get(e);if(o)return o;let n=It(e,[],!1).filter(a=>F(a)&&Gt(a)!=="body"),r=null,i=Ie(e).position==="fixed",s=i?ut(e):e;for(;F(s)&&!pt(s);){let a=Ie(s),l=Rn(s),c=r?r.position:i?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(f=>f!==s):r=a,s=ut(s)}return t.set(e,n),n}function Lm(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e,s=[...o==="clippingAncestors"?Do(t)?[]:Nm(t,this._c):[].concat(o),n],a=xc(t,s[0],r),l=a.top,c=a.right,d=a.bottom,f=a.left;for(let p=1;p<s.length;p++){let m=xc(t,s[p],r);l=rt(m.top,l),c=Ht(m.right,c),d=Ht(m.bottom,d),f=rt(m.left,f)}return{width:c-f,height:d-l,x:f,y:l}}function Im(e){let{width:t,height:o}=Sc(e);return{width:t,height:o}}function Mm(e,t,o){let n=ye(t),r=ft(t),i=o==="fixed",s=Qt(e,!0,i,t),a={scrollLeft:0,scrollTop:0},l=mt(0);if((n||!i)&&((Gt(t)!=="body"||zo(r))&&(a=jo(t)),n)){let p=Qt(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&r&&(l.x=Mn(r));let c=r&&!n&&!i?Tc(r,a):mt(0),d=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function Jr(e){return Ie(e).position==="static"}function Rc(e,t){if(!ye(e)||Ie(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return ft(e)===o&&(o=o.ownerDocument.body),o}function kc(e,t){let o=me(e);if(Do(e))return o;if(!ye(e)){let r=ut(e);for(;r&&!pt(r);){if(F(r)&&!Jr(r))return r;r=ut(r)}return o}let n=Rc(e,t);for(;n&&ka(n)&&Jr(n);)n=Rc(n,t);return n&&pt(n)&&Jr(n)&&!Rn(n)?o:n||Pa(e)||o}var Bm=async function(e){let t=this.getOffsetParent||kc,o=this.getDimensions,n=await o(e.floating);return{reference:Mm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Hm(e){return Ie(e).direction==="rtl"}var ei={convertOffsetParentRelativeRectToViewportRelativeRect:Tm,getDocumentElement:ft,getClippingRect:Lm,getOffsetParent:kc,getElementRects:Bm,getClientRects:km,getDimensions:Im,getScale:bo,isElement:F,isRTL:Hm};function Pc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zm(e,t,o){let n=null,r,i=ft(e);function s(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function a(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),s();let p=e.getBoundingClientRect(),{left:m,top:u,width:g,height:v}=p;if(d||t(),!g||!v)return;let _=Wo(u),w=Wo(i.clientWidth-(m+g)),y=Wo(i.clientHeight-(u+v)),h=Wo(m),x={rootMargin:-_+"px "+-w+"px "+-y+"px "+-h+"px",threshold:rt(0,Ht(1,f))||1},R=!0;function E(k){let C=k[0].intersectionRatio;if(!Pc(p,e.getBoundingClientRect()))return a();if(C!==f){if(!R)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R=!1}try{n=new IntersectionObserver(E,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}let l=me(e),c=()=>a(o);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),s()}}function Go(e,t,o,n){n===void 0&&(n={});let{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=$r(e),d=r||i?[...c?It(c):[],...t?It(t):[]]:[];d.forEach(_=>{r&&_.addEventListener("scroll",o),i&&_.addEventListener("resize",o)});let f=c&&a?zm(c,o,i):null,p=-1,m=null;s&&(m=new ResizeObserver(_=>{let[w]=_;w&&w.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),o()}),c&&!l&&m.observe(c),t&&m.observe(t));let u,g=l?Qt(e):null;l&&v();function v(){let _=Qt(e);g&&!Pc(g,_)&&o(),g=_,u=requestAnimationFrame(v)}return o(),()=>{var _;d.forEach(w=>{r&&w.removeEventListener("scroll",o),i&&w.removeEventListener("resize",o)}),f?.(),(_=m)==null||_.disconnect(),m=null,l&&cancelAnimationFrame(u)}}var Cc=wc;var Ac=vc,Oc=gc,Nc=yc,Lc=bc;var Ic=_c,Bn=(e,t,o)=>{let n=new Map,r=o??{},i={...ei,...r.platform,_c:n};return mc(e,t,{...r,platform:i})};var ve=b(z(),1),Bc=b(z(),1),Hc=b(Mt(),1),jm=typeof document<"u",Fm=function(){},Hn=jm?Bc.useLayoutEffect:Fm;function zn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(n=o;n--!==0;)if(!zn(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=o;n--!==0;){let i=r[n];if(!(i==="_owner"&&e.$$typeof)&&!zn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function zc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mc(e,t){let o=zc(e);return Math.round(t*o)/o}function ti(e){let t=ve.useRef(e);return Hn(()=>{t.current=e}),t}function Dc(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=ve.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ve.useState(n);zn(p,n)||m(n);let[u,g]=ve.useState(null),[v,_]=ve.useState(null),w=ve.useCallback(P=>{P!==x.current&&(x.current=P,g(P))},[]),y=ve.useCallback(P=>{P!==R.current&&(R.current=P,_(P))},[]),h=i||u,T=s||v,x=ve.useRef(null),R=ve.useRef(null),E=ve.useRef(d),k=l!=null,C=ti(l),W=ti(r),O=ti(c),L=ve.useCallback(()=>{if(!x.current||!R.current)return;let P={placement:t,strategy:o,middleware:p};W.current&&(P.platform=W.current),Bn(x.current,R.current,P).then(A=>{let M={...A,isPositioned:O.current!==!1};I.current&&!zn(E.current,M)&&(E.current=M,Hc.flushSync(()=>{f(M)}))})},[p,t,o,W,O]);Hn(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[c]);let I=ve.useRef(!1);Hn(()=>(I.current=!0,()=>{I.current=!1}),[]),Hn(()=>{if(h&&(x.current=h),T&&(R.current=T),h&&T){if(C.current)return C.current(h,T,L);L()}},[h,T,L,C,k]);let S=ve.useMemo(()=>({reference:x,floating:R,setReference:w,setFloating:y}),[w,y]),N=ve.useMemo(()=>({reference:h,floating:T}),[h,T]),H=ve.useMemo(()=>{let P={position:o,left:0,top:0};if(!N.floating)return P;let A=Mc(N.floating,d.x),M=Mc(N.floating,d.y);return a?{...P,transform:"translate("+A+"px, "+M+"px)",...zc(N.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:A,top:M}},[o,a,N.floating,d.x,d.y]);return ve.useMemo(()=>({...d,update:L,refs:S,elements:N,floatingStyles:H}),[d,L,S,N,H])}var oi=(e,t)=>{let o=Cc(e);return{name:o.name,fn:o.fn,options:[e,t]}},ni=(e,t)=>{let o=Ac(e);return{name:o.name,fn:o.fn,options:[e,t]}},ri=(e,t)=>({fn:Ic(e).fn,options:[e,t]}),ii=(e,t)=>{let o=Oc(e);return{name:o.name,fn:o.fn,options:[e,t]}},si=(e,t)=>{let o=Nc(e);return{name:o.name,fn:o.fn,options:[e,t]}};var ai=(e,t)=>{let o=Lc(e);return{name:o.name,fn:o.fn,options:[e,t]}};var vo=b(z(),1),tl=b(Mt(),1);var $c=b(z(),1);var Z=(e,t,o,n,r,i,...s)=>{if(s.length>0)throw new Error(ke(1));let a;if(e&&t&&o&&n&&r&&i)a=(l,c,d,f)=>{let p=e(l,c,d,f),m=t(l,c,d,f),u=o(l,c,d,f),g=n(l,c,d,f),v=r(l,c,d,f);return i(p,m,u,g,v,c,d,f)};else if(e&&t&&o&&n&&r)a=(l,c,d,f)=>{let p=e(l,c,d,f),m=t(l,c,d,f),u=o(l,c,d,f),g=n(l,c,d,f);return r(p,m,u,g,c,d,f)};else if(e&&t&&o&&n)a=(l,c,d,f)=>{let p=e(l,c,d,f),m=t(l,c,d,f),u=o(l,c,d,f);return n(p,m,u,c,d,f)};else if(e&&t&&o)a=(l,c,d,f)=>{let p=e(l,c,d,f),m=t(l,c,d,f);return o(p,m,c,d,f)};else if(e&&t)a=(l,c,d,f)=>{let p=e(l,c,d,f);return t(p,c,d,f)};else if(e)a=e;else throw new Error("Missing arguments");return a};var Qc=b(z(),1),pi=b(li(),1),Jc=b(Gc(),1);var Xc=b(z(),1);var di=[],ui;function Kc(){return ui}function qc(e){di.push(e)}function fi(e){let t=(o,n)=>{let r=Se(ig).current,i;try{ui=r;for(let s of di)s.before(r);i=e(o,n);for(let s of di)s.after(r);r.didInitialize=!0}finally{ui=void 0}return i};return t.displayName=e.displayName||e.name,t}function Zc(e){return Xc.forwardRef(fi(e))}function ig(){return{didInitialize:!1}}var sg=ao(19),ag=sg?lg:dg;function jn(e,t,o,n,r){return ag(e,t,o,n,r)}function cg(e,t,o,n,r){let i=Qc.useCallback(()=>t(e.getSnapshot(),o,n,r),[e,t,o,n,r]);return(0,pi.useSyncExternalStore)(e.subscribe,i,i)}qc({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let o=0;o<e.syncHooks.length;o+=1){let n=e.syncHooks[o],r=n.selector(n.store.state,n.a1,n.a2,n.a3);Object.is(n.value,r)||(t=!0,n.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let o=new Set;for(let r of e.syncHooks)o.add(r.store);let n=[];for(let r of o)n.push(r.subscribe(t));return()=>{for(let r of n)r()}}),(0,pi.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function lg(e,t,o,n,r){let i=Kc();if(!i)return cg(e,t,o,n,r);let s=i.syncIndex;i.syncIndex+=1;let a;return i.didInitialize?(a=i.syncHooks[s],(a.store!==e||a.selector!==t||!Object.is(a.a1,o)||!Object.is(a.a2,n)||!Object.is(a.a3,r))&&(a.store!==e&&(i.didChangeStore=!0),a.store=e,a.selector=t,a.a1=o,a.a2=n,a.a3=r,a.value=t(e.getSnapshot(),o,n,r))):(a={store:e,selector:t,a1:o,a2:n,a3:r,value:t(e.getSnapshot(),o,n,r)},i.syncHooks.push(a)),a.value}function dg(e,t,o,n,r){return(0,Jc.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,o,n,r))}var Fn=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let o=this.updateTick;for(let n of this.listeners){if(o!==this.updateTick)return;n(t)}}update(t){for(let o in t)if(!Object.is(this.state[o],t[o])){this.setState({...this.state,...t});return}}set(t,o){Object.is(this.state[t],o)||this.setState({...this.state,[t]:o})}notifyAll(){let t={...this.state};this.setState(t)}use(t,o,n,r){return jn(this,t,o,n,r)}};var Jt=b(z(),1);var wo=class extends Fn{constructor(t,o={},n){super(t),this.context=o,this.selectors=n}useSyncedValue(t,o){Jt.useDebugValue(t);let n=this;D(()=>{n.state[t]!==o&&n.set(t,o)},[n,t,o])}useSyncedValueWithCleanup(t,o){let n=this;D(()=>(n.state[t]!==o&&n.set(t,o),()=>{n.set(t,void 0)}),[n,t,o])}useSyncedValues(t){let o=this,n=Object.values(t);D(()=>{o.update(t)},[o,...n])}useControlledProp(t,o){Jt.useDebugValue(t);let n=this,r=o!==void 0;D(()=>{r&&!Object.is(n.state[t],o)&&n.setState({...n.state,[t]:o})},[n,t,o,r])}select(t,o,n,r){let i=this.selectors[t];return i(this.state,o,n,r)}useState(t,o,n,r){return Jt.useDebugValue(t),jn(this,this.selectors[t],o,n,r)}useContextCallback(t,o){Jt.useDebugValue(t);let n=Y(o??Nt);this.context[t]=n}useStateSetter(t){let o=Jt.useRef(void 0);return o.current===void 0&&(o.current=n=>{this.set(t,n)}),o.current}observe(t,o){let n;typeof t=="function"?n=t:n=this.selectors[t];let r=n(this.state);return o(r,r,this),this.subscribe(i=>{let s=n(i);if(!Object.is(r,s)){let a=r;r=s,o(s,a,this)}})}};var ug={open:Z(e=>e.open),transitionStatus:Z(e=>e.transitionStatus),domReferenceElement:Z(e=>e.domReferenceElement),referenceElement:Z(e=>e.positionReference??e.referenceElement),floatingElement:Z(e=>e.floatingElement),floatingId:Z(e=>e.floatingId)},gt=class extends wo{constructor(t){let{syncOnly:o,nested:n,onOpenChange:r,triggerElements:i,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:cc(),nested:n,triggerElements:i},ug),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&Ua(o))&&(this.context.dataRef.current.openEvent=t?o:void 0)};dispatchOpenChange=(t,o)=>{this.syncOpenEvent(t,o.event);let n={open:t,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",n)};setOpen=(t,o)=>{if(this.syncOnly){this.context.onOpenChange?.(t,o);return}this.dispatchOpenChange(t,o),this.context.onOpenChange?.(t,o)}};function el(e){let{popupStore:t,treatPopupAsFloatingElement:o=!1,floatingRootContext:n,floatingId:r,nested:i,onOpenChange:s}=e,a=t.useState("open"),l=t.useState("activeTriggerElement"),c=t.useState(o?"popupElement":"positionerElement"),d=t.context.triggerElements,f=s,p=$c.useRef(null);n===void 0&&p.current===null&&(p.current=new gt({open:a,transitionStatus:void 0,referenceElement:l,floatingElement:c,triggerElements:d,onOpenChange:f,floatingId:r,syncOnly:!0,nested:i}));let m=n??p.current;return t.useSyncedValue("floatingId",r),D(()=>{let u={open:a,floatingId:r,referenceElement:l,floatingElement:c};F(l)&&(u.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(u.positionReference=l),m.update(u)},[a,r,l,c,m]),m.context.onOpenChange=f,m.context.nested=i,m}var ol={tabIndex:-1,[Wr]:""};function nl(e,t,o=!1){let n=Lt(),r=go()!=null,i=vo.useRef(null);e===void 0&&i.current===null&&(i.current=t(n,r));let s=e??i.current;return el({popupStore:s,treatPopupAsFloatingElement:o,floatingRootContext:s.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:s.setOpen}),{store:s,internalStore:i.current}}function fg(e,t){let o=vo.useRef(null),n=vo.useRef(null);return vo.useCallback(r=>{if(e===void 0)return;let i=!1;if(o.current!==null){let s=o.current,a=n.current,l=t.context.triggerElements.getById(s);a&&l===a&&(t.context.triggerElements.delete(s),i=!0),o.current=null,n.current=null}if(r!==null&&(o.current=e,n.current=r,t.context.triggerElements.add(e,r),i=!0),i){let s=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==s&&t.set("triggerCount",s)}},[t,e])}function pg(e,t,o,n=!1){t?e.preventUnmountingOnClose=!1:n&&(e.preventUnmountingOnClose=!0);let r=o?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=o??null)}function mg(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function rl(e,t,o,n={}){let r=o.reason,i=r===U.triggerHover,s=t&&r===U.triggerFocus,a=!t&&(r===U.triggerPress||r===U.escapeKey),l=mg(o);if(e.context.onOpenChange?.(t,o),o.isCanceled)return;n.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,o);let c=()=>{let d={...n.extraState,open:t};s?d.instantType="focus":a?d.instantType="dismiss":i&&(d.instantType=void 0),pg(d,t,o.trigger,l()),e.update(d)};i?tl.flushSync(c):c()}function il(e,t,o,n){Da(()=>{t===void 0&&e.state.open===!1&&o&&(e.state={...e.state,open:!0,activeTriggerId:n,preventUnmountingOnClose:!1})})}function sl(e,t,o,n){let r=o.useState("isMountedByTrigger",e),i=fg(e,o),s=Y(a=>{if(i(a),!a)return;let l=o.select("open"),c=o.select("activeTriggerId");if(c===e){o.update({activeTriggerElement:a,...l?n:null});return}c==null&&l&&o.update({activeTriggerId:e,activeTriggerElement:a,...n})});return D(()=>{r&&o.update({activeTriggerElement:t.current,...n})},[r,o,t,...Object.values(n)]),{registerTrigger:s,isMountedByThisTrigger:r}}function al(e,t={}){let{closeOnActiveTriggerUnmount:o=!1}=t,n=e.useState("open"),r=e.useState("triggerCount");D(()=>{if(!n){e.state.triggerCount!==0&&e.set("triggerCount",0);return}let i=e.context.triggerElements.size,s={};e.state.triggerCount!==i&&(s.triggerCount=i);let a=e.select("activeTriggerId"),l=null;if(a){let c=e.context.triggerElements.getById(a);c?c!==e.state.activeTriggerElement&&(s.activeTriggerElement=c):l=a}if(!l&&!a&&i===1){let c=e.context.triggerElements.entries().next();if(!c.done){let[d,f]=c.value;s.activeTriggerId=d,s.activeTriggerElement=f}}(s.triggerCount!==void 0||s.activeTriggerId!==void 0||s.activeTriggerElement!==void 0)&&e.update(s),l&&o&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===l&&!e.context.triggerElements.getById(l)){let c=ee(U.none);e.setOpen(!1,c),c.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[n,e,r,o])}function cl(e,t,o){let{mounted:n,setMounted:r,transitionStatus:i}=Ea(e),s=t.useState("preventUnmountingOnClose"),a=e?!1:s;t.useSyncedValues({mounted:n,transitionStatus:i,preventUnmountingOnClose:a});let l=Y(()=>{r(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)});return kn({enabled:n&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:i}}function ll(e,t){e.useSyncedValues(t),D(()=>()=>{e.update({activeTriggerProps:be,inactiveTriggerProps:be,popupProps:be})},[e])}var jt=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,o){let n=this.idMap.get(t);n!==o&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(o),this.idMap.set(t,o))}delete(t){let o=this.idMap.get(t);o&&(this.elementsSet.delete(o),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(let o of this.elementsSet)if(t(o))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function dl(){return new gt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new jt,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function fl(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:dl(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:be,inactiveTriggerProps:be,popupProps:be}}function pl(e,t,o=!1){return new gt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:o,onOpenChange:void 0})}var Xo=Z(e=>e.triggerIdProp??e.activeTriggerId),mi=Z(e=>e.openProp??e.open),ul=Z(e=>(e.popupElement?.id??e.floatingId)||void 0);function ml(e,t){return t!==void 0&&mi(e)&&Xo(e)===t}function gg(e,t){return ml(e,t)?!0:t!==void 0&&mi(e)&&Xo(e)==null&&e.triggerCount===1}var gl={open:mi,mounted:Z(e=>e.mounted),transitionStatus:Z(e=>e.transitionStatus),floatingRootContext:Z(e=>e.floatingRootContext),triggerCount:Z(e=>e.triggerCount),preventUnmountingOnClose:Z(e=>e.preventUnmountingOnClose),payload:Z(e=>e.payload),activeTriggerId:Xo,activeTriggerElement:Z(e=>e.mounted?e.activeTriggerElement:null),popupId:ul,isTriggerActive:Z((e,t)=>t!==void 0&&Xo(e)===t),isOpenedByTrigger:Z((e,t)=>ml(e,t)),isMountedByTrigger:Z((e,t)=>t!==void 0&&Xo(e)===t&&e.mounted),triggerProps:Z((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Z((e,t)=>gg(e,t)?ul(e):void 0),popupProps:Z(e=>e.popupProps),popupElement:Z(e=>e.popupElement),positionerElement:Z(e=>e.positionerElement)};function bl(e){let{open:t=!1,onOpenChange:o,elements:n={}}=e,r=Lt(),i=go()!=null,s=Se(()=>new gt({open:t,transitionStatus:void 0,onOpenChange:o,referenceElement:n.reference??null,floatingElement:n.floating??null,triggerElements:new jt,floatingId:r,syncOnly:!1,nested:i})).current;return D(()=>{let a={open:t,floatingId:r};n.reference!==void 0&&(a.referenceElement=n.reference,a.domReferenceElement=F(n.reference)?n.reference:null),n.floating!==void 0&&(a.floatingElement=n.floating),s.update(a)},[t,r,n.reference,n.floating,s]),s.context.onOpenChange=o,s.context.nested=i,s}function gi(e={}){let{nodeId:t,externalTree:o}=e,n=bl(e),r=e.rootContext||n,i=r.useState("referenceElement"),s=r.useState("floatingElement"),a=r.useState("domReferenceElement"),l=r.useState("open"),c=r.useState("floatingId"),[d,f]=Oe.useState(null),[p,m]=Oe.useState(void 0),[u,g]=Oe.useState(void 0),v=Oe.useRef(null),_=Dt(o),w=Oe.useMemo(()=>({reference:i,floating:s,domReference:a}),[i,s,a]),y=Dc({...e,elements:{...w,...d&&{reference:d}}}),h=F(p)?p:null,T=u===void 0?r.state.floatingElement:u;r.useSyncedValue("referenceElement",p??null),r.useSyncedValue("domReferenceElement",p===void 0?a:h),r.useSyncedValue("floatingElement",T);let x=Oe.useCallback(O=>{let L=F(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;f(L),y.refs.setReference(L)},[y.refs]),R=Oe.useCallback(O=>{(F(O)||O===null)&&(v.current=O,m(O)),(F(y.refs.reference.current)||y.refs.reference.current===null||O!==null&&!F(O))&&y.refs.setReference(O)},[y.refs,m]),E=Oe.useCallback(O=>{g(O),y.refs.setFloating(O)},[y.refs]),k=Oe.useMemo(()=>({...y.refs,setReference:R,setFloating:E,setPositionReference:x,domReference:v}),[y.refs,R,E,x]),C=Oe.useMemo(()=>({...y.elements,domReference:a}),[y.elements,a]),W=Oe.useMemo(()=>({...y,dataRef:r.context.dataRef,open:l,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:k,elements:C,nodeId:t,rootStore:r}),[y,k,C,t,r,l,c]);return D(()=>{a&&(v.current=a)},[a]),D(()=>{r.context.dataRef.current.floatingContext=W;let O=_?.nodesRef.current.find(L=>L.id===t);O&&(O.context=W)}),Oe.useMemo(()=>({...y,context:W,refs:k,elements:C,rootStore:r}),[y,k,C,W,r])}var bt=b(z(),1);var bi=Rt.os.mac&&Rt.engine.webkit;function hi(e,t={}){let{enabled:o=!0,delay:n}=t,r="rootStore"in e?e.rootStore:e,{events:i,dataRef:s}=r.context,a=bt.useRef(!1),l=bt.useRef(null),c=bt.useRef(!0),d=ot();bt.useEffect(()=>{let p=r.select("domReferenceElement");if(!o)return;let m=me(p);function u(){let _=r.select("domReferenceElement");!r.select("open")&&ye(_)&&_===Pn(xe(_))&&(a.current=!0)}function g(){c.current=!0}function v(){c.current=!1}return nt(re(m,"blur",u),bi&&re(m,"keydown",g,!0),bi&&re(m,"pointerdown",v,!0))},[r,o]),bt.useEffect(()=>{if(!o)return;function p(m){if(m.reason===U.triggerPress||m.reason===U.escapeKey){let u=r.select("domReferenceElement");F(u)&&(l.current=u,a.current=!0)}}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,o,r]);let f=bt.useMemo(()=>{function p(){a.current=!1,l.current=null}return{onMouseLeave(){p()},onFocus(m){let u=m.currentTarget;if(a.current){if(l.current===u)return;p()}let g=Me(m.nativeEvent);if(F(g)){if(bi&&!m.relatedTarget){if(!c.current&&!Xa(g))return}else if(!Ka(g))return}let v=Bt(m.relatedTarget,r.context.triggerElements),{nativeEvent:_,currentTarget:w}=m,y=typeof n=="function"?n():n;if(r.select("open")&&v||y===0||y===void 0){r.setOpen(!0,ee(U.triggerFocus,_,w));return}d.start(y,()=>{a.current||r.setOpen(!0,ee(U.triggerFocus,_,w))})},onBlur(m){p();let u=m.relatedTarget,g=m.nativeEvent,v=F(u)&&u.hasAttribute(mo("focus-guard"))&&u.getAttribute("data-type")==="outside";d.start(0,()=>{let _=r.select("domReferenceElement"),w=Pn(xe(_));!u&&w===_||ie(s.current.floatingContext?.refs.floating.current,w)||ie(_,w)||v||Bt(u??w,r.context.triggerElements)||r.setOpen(!1,ee(U.triggerFocus,g))})}}},[s,n,r,d]);return bt.useMemo(()=>o?{reference:f,trigger:f}:{},[o,f])}var vi=b(z(),1);var wi=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new We,this.restTimeout=new We,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Vn=new WeakMap;function _o(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Vn.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Vn.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Wn(e,t){let{scopeElement:o,referenceElement:n,floatingElement:r}=t,i=Vn.get(o);i&&i!==e&&_o(i),_o(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=n,e.pointerEventsFloatingElement=r,Vn.set(o,e),o.style.pointerEvents="none",n.style.pointerEvents="auto",r.style.pointerEvents="auto"}function yo(e){let t=e.context.dataRef.current,o=Se(()=>t.hoverInteractionState??wi.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=o),co(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function _i(e,t={}){let{enabled:o=!0,closeDelay:n=0,nodeId:r}=t,i="rootStore"in e?e.rootStore:e,s=i.useState("open"),a=i.useState("floatingElement"),l=i.useState("domReferenceElement"),{dataRef:c}=i.context,d=Dt(),f=go(),p=yo(i),m=ot(),u=Y(()=>An(c.current.openEvent?.type,p.interactedInside)),g=Y(()=>qa(c.current.openEvent?.type)),v=Y(()=>{_o(p)});D(()=>{s||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,v())},[s,p,v]),vi.useEffect(()=>v,[v]),D(()=>{if(o&&s&&p.handleCloseOptions?.blockPointerEvents&&g()&&F(l)&&a){let _=l,w=a,y=xe(a),h=d?.nodesRef.current.find(E=>E.id===f)?.context?.elements.floating;h&&(h.style.pointerEvents="");let T=p.pointerEventsScopeElement!==w?p.pointerEventsScopeElement:null,x=h!==w?h:null,R=p.handleCloseOptions?.getScope?.()??T??x??_.closest("[data-rootownerid]")??y.body;return Wn(p,{scopeElement:R,referenceElement:_,floatingElement:w}),()=>{v()}}},[o,s,l,a,p,g,d,f,v]),vi.useEffect(()=>{if(!o)return;function _(){return!!(d&&f&&Tt(d.nodesRef.current,f).length>0)}function w(E){let k=Et(n,"close",p.pointerType),C=()=>{i.setOpen(!1,ee(U.triggerHover,E)),d?.events.emit("floating.closed",E)};k?p.openChangeTimeout.start(k,C):(p.openChangeTimeout.clear(),C())}function y(E){let k=Me(E);if(!Ur(k)){p.interactedInside=!1;return}p.interactedInside=k?.closest("[aria-haspopup]")!=null}function h(){p.openChangeTimeout.clear(),m.clear(),d?.events.off("floating.closed",x),v()}function T(E){if(_()&&d){d.events.on("floating.closed",x);return}if(Bt(E.relatedTarget,i.context.triggerElements))return;let k=c.current.floatingContext?.nodeId??r,C=E.relatedTarget;if(!(d&&k&&F(C)&&Tt(d.nodesRef.current,k,!1).some(O=>ie(O.context?.elements.floating,C)))){if(p.handler){p.handler(E);return}v(),g()&&!u()&&w(E)}}function x(E){!d||!f||_()||m.start(0,()=>{d.events.off("floating.closed",x),i.setOpen(!1,ee(U.triggerHover,E)),d.events.emit("floating.closed",E)})}let R=a;return nt(R&&re(R,"mouseenter",h),R&&re(R,"mouseleave",T),R&&re(R,"pointerdown",y,!0),()=>{d?.events.off("floating.closed",x)})},[o,a,i,c,n,r,g,u,v,p,d,f,m])}var Ft=b(z(),1),hl=b(Mt(),1);var bg={current:null};function yi(e,t={}){let{enabled:o=!0,delay:n=0,handleClose:r=null,mouseOnly:i=!1,restMs:s=0,move:a=!0,triggerElementRef:l=bg,externalTree:c,isActiveTrigger:d=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m}=t,u="rootStore"in e?e.rootStore:e,{dataRef:g,events:v}=u.context,_=Dt(c),w=yo(u),y=Ft.useRef(!1),h=He(r),T=He(n),x=He(s),R=He(o),E=He(m),k=He(p),C=Y(()=>An(g.current.openEvent?.type,w.interactedInside)),W=Y(()=>E.current?.()!==!1),O=Y((S,N,H)=>{let P=u.context.triggerElements;if(P.hasElement(N))return!S||!ie(S,N);if(!F(H))return!1;let A=H;return P.hasMatchingElement(M=>ie(M,A))&&(!S||!ie(S,A))}),L=Y(()=>{if(!w.handler)return;xe(u.select("domReferenceElement")).removeEventListener("mousemove",w.handler),w.handler=void 0}),I=Y(()=>{_o(w)});return d&&(w.handleCloseOptions=h.current?.__options),Ft.useEffect(()=>L,[L]),Ft.useEffect(()=>{if(!o)return;function S(N){N.open?y.current=!1:(y.current=N.reason===U.triggerHover,L(),w.openChangeTimeout.clear(),w.restTimeout.clear(),w.blockMouseMove=!0,w.restTimeoutPending=!1)}return v.on("openchange",S),()=>{v.off("openchange",S)}},[o,v,w,L]),Ft.useEffect(()=>{if(!o)return;function S(A,M=!0){let Q=Et(T.current,"close",w.pointerType);Q?w.openChangeTimeout.start(Q,()=>{u.setOpen(!1,ee(U.triggerHover,A)),_?.events.emit("floating.closed",A)}):M&&(w.openChangeTimeout.clear(),u.setOpen(!1,ee(U.triggerHover,A)),_?.events.emit("floating.closed",A))}let N=l.current??(d?u.select("domReferenceElement"):null);if(!F(N))return;function H(A){if(w.openChangeTimeout.clear(),w.blockMouseMove=!1,i&&!St(w.pointerType))return;let M=Gr(x.current),Q=Et(T.current,"open",w.pointerType),V=Me(A),oe=A.currentTarget??null,te=u.select("domReferenceElement"),se=oe;if(F(V)&&!u.context.triggerElements.hasElement(V)){for(let ue of u.context.triggerElements.elements())if(ie(ue,V)){se=ue;break}}F(oe)&&F(te)&&!u.context.triggerElements.hasElement(oe)&&ie(oe,te)&&(se=te);let G=se==null?!1:O(te,se,V),q=u.select("open"),J=k.current?.()??u.select("transitionStatus")==="ending",ne=!q&&J&&y.current,ge=!G&&F(se)&&F(te)&&ie(te,se)&&ne,de=M>0&&!Q,X=G&&(q||ne)||ge,pe=!q||G;if(X){W()&&u.setOpen(!0,ee(U.triggerHover,A,se));return}de||(Q?w.openChangeTimeout.start(Q,()=>{pe&&W()&&u.setOpen(!0,ee(U.triggerHover,A,se))}):pe&&W()&&u.setOpen(!0,ee(U.triggerHover,A,se)))}function P(A){if(C()){I();return}L();let M=u.select("domReferenceElement"),Q=xe(M);w.restTimeout.clear(),w.restTimeoutPending=!1;let V=g.current.floatingContext??f?.();if(Bt(A.relatedTarget,u.context.triggerElements))return;if(h.current&&V){u.select("open")||w.openChangeTimeout.clear();let te=l.current;w.handler=h.current({...V,tree:_,x:A.clientX,y:A.clientY,onClose(){I(),L(),R.current&&!C()&&te===u.select("domReferenceElement")&&S(A,!0)}}),Q.addEventListener("mousemove",w.handler),w.handler(A);return}(w.pointerType!=="touch"||!ie(u.select("floatingElement"),A.relatedTarget))&&S(A)}return a?nt(re(N,"mousemove",H,{once:!0}),re(N,"mouseenter",H),re(N,"mouseleave",P)):nt(re(N,"mouseenter",H),re(N,"mouseleave",P))},[L,I,g,T,u,o,h,w,d,O,C,i,a,x,l,_,R,f,k,W]),Ft.useMemo(()=>{if(!o)return;function S(N){w.pointerType=N.pointerType}return{onPointerDown:S,onPointerEnter:S,onMouseMove(N){let{nativeEvent:H}=N,P=N.currentTarget,A=u.select("domReferenceElement"),M=u.select("open"),Q=O(A,P,N.target);if(i&&!St(w.pointerType))return;if(M&&Q&&w.handleCloseOptions?.blockPointerEvents){let te=u.select("floatingElement");if(te){let se=w.handleCloseOptions?.getScope?.()??P.ownerDocument.body;Wn(w,{scopeElement:se,referenceElement:P,floatingElement:te})}}let V=Gr(x.current);if(M&&!Q||V===0||!Q&&w.restTimeoutPending&&N.movementX**2+N.movementY**2<2)return;w.restTimeout.clear();function oe(){if(w.restTimeoutPending=!1,C())return;let te=u.select("open");!w.blockMouseMove&&(!te||Q)&&W()&&u.setOpen(!0,ee(U.triggerHover,H,P))}w.pointerType==="touch"?hl.flushSync(()=>{oe()}):Q&&M?oe():(w.restTimeoutPending=!0,w.restTimeout.start(V,oe))}}},[o,w,C,O,i,u,x,W])}var wl=.1,hg=wl*wl,le=.5;function Yn(e,t,o,n,r,i){return n>=t!=i>=t&&e<=(r-o)*(t-n)/(i-n)+o}function Un(e,t,o,n,r,i,s,a,l,c){let d=!1;return Yn(e,t,o,n,r,i)&&(d=!d),Yn(e,t,r,i,s,a)&&(d=!d),Yn(e,t,s,a,l,c)&&(d=!d),Yn(e,t,l,c,o,n)&&(d=!d),d}function wg(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function Gn(e,t,o,n,r,i){let s=Math.min(o,r),a=Math.max(o,r),l=Math.min(n,i),c=Math.max(n,i);return e>=s&&e<=a&&t>=l&&t<=c}function xi(e={}){let{blockPointerEvents:t=!1}=e,o=new We,n=({x:r,y:i,placement:s,elements:a,onClose:l,nodeId:c,tree:d})=>{let f=s?.split("-")[0],p=!1,m=null,u=null,g=typeof performance<"u"?performance.now():0;function v(w,y){let h=performance.now(),T=h-g;if(m===null||u===null||T===0)return m=w,u=y,g=h,!1;let x=w-m,R=y-u,E=x*x+R*R,k=T*T*hg;return m=w,u=y,g=h,E<k}function _(){o.clear(),l()}return function(y){o.clear();let h=a.domReference,T=a.floating;if(!h||!T||f==null||r==null||i==null)return;let{clientX:x,clientY:R}=y,E=Me(y),k=y.type==="mouseleave",C=ie(T,E),W=ie(h,E);if(C&&(p=!0,!k))return;if(W&&(p=!1,!k)){p=!0;return}if(k&&F(y.relatedTarget)&&ie(T,y.relatedTarget))return;function O(){return!!(d&&Tt(d.nodesRef.current,c).length>0)}function L(){O()||_()}if(O())return;let I=h.getBoundingClientRect(),S=T.getBoundingClientRect(),N=r>S.right-S.width/2,H=i>S.bottom-S.height/2,P=S.width>I.width,A=S.height>I.height,M=(P?I:S).left,Q=(P?I:S).right,V=(A?I:S).top,oe=(A?I:S).bottom;if(f==="top"&&i>=I.bottom-1||f==="bottom"&&i<=I.top+1||f==="left"&&r>=I.right-1||f==="right"&&r<=I.left+1){L();return}let te=!1;switch(f){case"top":te=Gn(x,R,M,I.top+1,Q,S.bottom-1);break;case"bottom":te=Gn(x,R,M,S.top+1,Q,I.bottom-1);break;case"left":te=Gn(x,R,S.right-1,oe,I.left+1,V);break;case"right":te=Gn(x,R,I.right-1,oe,S.left+1,V);break;default:}if(te)return;if(p&&!wg(x,R,I)){L();return}if(!k&&v(x,R)){L();return}let se=!1;switch(f){case"top":{let G=P?le/2:le*4,q=P||N?r+G:r-G,J=P?r-G:N?r+G:r-G,ne=i+le+1,ge=N||P?S.bottom-le:S.top,de=N?P?S.bottom-le:S.top:S.bottom-le;se=Un(x,R,q,ne,J,ne,S.left,ge,S.right,de);break}case"bottom":{let G=P?le/2:le*4,q=P||N?r+G:r-G,J=P?r-G:N?r+G:r-G,ne=i-le,ge=N||P?S.top+le:S.bottom,de=N?P?S.top+le:S.bottom:S.top+le;se=Un(x,R,q,ne,J,ne,S.left,ge,S.right,de);break}case"left":{let G=A?le/2:le*4,q=A||H?i+G:i-G,J=A?i-G:H?i+G:i-G,ne=r+le+1,ge=H||A?S.right-le:S.left,de=H?A?S.right-le:S.left:S.right-le;se=Un(x,R,ge,S.top,de,S.bottom,ne,q,ne,J);break}case"right":{let G=A?le/2:le*4,q=A||H?i+G:i-G,J=A?i-G:H?i+G:i-G,ne=r-le,ge=H||A?S.left+le:S.right,de=H?A?S.left+le:S.right:S.left+le;se=Un(x,R,ne,q,ne,J,ge,S.top,de,S.bottom);break}default:}se?p||o.start(40,L):L()}};return n.__options={...e,blockPointerEvents:t},n}var Ri=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Yt.startingStyle]="startingStyle",e[e.endingStyle=Yt.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Ko=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),vg={[Ko.popupOpen]:""},oy={[Ko.popupOpen]:"",[Ko.pressed]:""},_g={[Ri.open]:""},yg={[Ri.closed]:""},xg={[Ri.anchorHidden]:""},vl={open(e){return e?vg:null}};var xo={open(e){return e?_g:yg},anchorHidden(e){return e?xg:null}};function _l(e){return ao(19)?e:e?"true":void 0}var Ue=b(z(),1);var Rg=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:n,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0,offsetParent:f="real"}=it(e,t)||{};if(c==null)return{};let p=In(d),m={x:o,y:n},u=Uo(r),g=Yo(u),v=await s.getDimensions(c),_=u==="y",w=_?"top":"left",y=_?"bottom":"right",h=_?"clientHeight":"clientWidth",T=i.reference[g]+i.reference[u]-m[u]-i.floating[g],x=m[u]-i.reference[u],R=f==="real"?await s.getOffsetParent?.(c):a.floating,E=a.floating[h]||i.floating[g];(!E||!await s.isElement?.(R))&&(E=a.floating[h]||i.floating[g]);let k=T/2-x/2,C=E/2-v[g]/2-1,W=Math.min(p[w],C),O=Math.min(p[y],C),L=W,I=E-v[g]-O,S=E/2-v[g]/2+k,N=Nn(L,S,I),H=!l.arrow&&st(r)!=null&&S!==N&&i.reference[g]/2-(S<L?W:O)-v[g]/2<0,P=H?S<L?S-L:S-I:0;return{[u]:m[u]+P,data:{[u]:N,centerOffset:S-N-P,...H&&{alignmentOffset:P}},reset:H}}}),yl=(e,t)=>({...Rg(e),options:[e,t]});var Sg=ai().fn,xl={name:"hide",async fn(e){let{width:t,height:o,x:n,y:r}=e.rects.reference,i=t===0&&o===0&&n===0&&r===0;return{data:{referenceHidden:(await Sg(e)).data?.referenceHidden||i}}}};var qo={sideX:"left",sideY:"top"},Rl={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:n},elements:{floating:r},platform:i,strategy:s,placement:a}=e,l=me(r),c=l.getComputedStyle(r);if(!(c.transitionDuration!=="0s"&&c.transitionDuration!==""))return{x:t,y:o,data:qo};let f=await i.getOffsetParent?.(r),p={width:0,height:0};if(s==="fixed"&&l?.visualViewport)p={width:l.visualViewport.width,height:l.visualViewport.height};else if(f===l){let w=xe(r);p={width:w.documentElement.clientWidth,height:w.documentElement.clientHeight}}else await i.isElement?.(f)&&(p=await i.getDimensions(f));let m=Ae(a),u=t,g=o;m==="left"&&(u=p.width-(t+n.width)),m==="top"&&(g=p.height-(o+n.height));let v=m==="left"?"right":qo.sideX,_=m==="top"?"bottom":qo.sideY;return{x:u,y:g,data:{sideX:v,sideY:_}}}};function Tl(e,t,o){let n=e==="inline-start"||e==="inline-end";return{top:"top",right:n?o?"inline-start":"inline-end":"right",bottom:"bottom",left:n?o?"inline-end":"inline-start":"left"}[t]}function Sl(e,t,o){let{rects:n,placement:r}=e;return{side:Tl(t,Ae(r),o),align:st(r)||"center",anchor:{width:n.reference.width,height:n.reference.height},positioner:{width:n.floating.width,height:n.floating.height}}}function kl(e){let{anchor:t,positionMethod:o="absolute",side:n="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,collisionBoundary:a,collisionPadding:l=5,sticky:c=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:u,mounted:g,collisionAvoidance:v,shiftCrossAxis:_=!1,nodeId:w,adaptiveOrigin:y,lazyFlip:h=!1,externalTree:T}=e,[x,R]=Ue.useState(null);!g&&x!==null&&R(null);let E=v.side||"flip",k=v.align||"flip",C=v.fallbackAxisSide||"end",W=typeof t=="function"?t:void 0,O=Y(W),L=W?O:t,I=He(t),S=He(g),H=so()==="rtl",P=x||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":H?"left":"right","inline-start":H?"right":"left"}[n],A=i==="center"?P:`${P}-${i}`,M=l,Q=1,V=n==="bottom"?Q:0,oe=n==="top"?Q:0,te=n==="right"?Q:0,se=n==="left"?Q:0;typeof M=="number"?M={top:M+V,right:M+se,bottom:M+oe,left:M+te}:M&&(M={top:(M.top||0)+V,right:(M.right||0)+se,bottom:(M.bottom||0)+oe,left:(M.left||0)+te});let G={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:M},q=Ue.useRef(null),J=He(r),ne=He(s),ge=typeof r!="function"?r:0,de=typeof s!="function"?s:0,X=[];p&&X.push(p),X.push(oi(ae=>{let Le=Sl(ae,n,H),ct=typeof J.current=="function"?J.current(Le):J.current,Ke=typeof ne.current=="function"?ne.current(Le):ne.current;return{mainAxis:ct,crossAxis:Ke,alignmentAxis:Ke}},[ge,de,H,n]));let pe=k==="none"&&E!=="shift",ue=!pe&&(c||_||E==="shift"),_t=E==="none"?null:ii({...G,padding:{top:M.top+Q,right:M.right+Q,bottom:M.bottom+Q,left:M.left+Q},mainAxis:!_&&E==="flip",crossAxis:k==="flip"?"alignment":!1,fallbackAxisSideDirection:C}),Ee=pe?null:ni(ae=>{let Le=xe(ae.elements.floating).documentElement;return{...G,rootBoundary:_?{x:0,y:0,width:Le.clientWidth,height:Le.clientHeight}:void 0,mainAxis:k!=="none",crossAxis:ue,limiter:c||_?void 0:ri(ct=>{if(!q.current)return{};let{width:Ke,height:xt}=q.current.getBoundingClientRect(),tt=ze(Ae(ct.placement)),Vt=tt==="y"?Ke:xt,io=tt==="y"?M.left+M.right:M.top+M.bottom;return{offset:Vt/2+io/2}})}},[G,c,_,M,k]);E==="shift"||k==="shift"||i==="center"?X.push(Ee,_t):X.push(_t,Ee),X.push(si({...G,apply({elements:{floating:ae},availableWidth:Le,availableHeight:ct,rects:Ke}){if(!S.current)return;let xt=ae.style;xt.setProperty("--available-width",`${Le}px`),xt.setProperty("--available-height",`${ct}px`);let tt=me(ae).devicePixelRatio||1,{x:Vt,y:io,width:gn,height:vr}=Ke.reference,_r=(Math.round((Vt+gn)*tt)-Math.round(Vt*tt))/tt,yr=(Math.round((io+vr)*tt)-Math.round(io*tt))/tt;xt.setProperty("--anchor-width",`${_r}px`),xt.setProperty("--anchor-height",`${yr}px`)}}),yl(ae=>({element:q.current||xe(ae.elements.floating).createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(ae){let{elements:Le,middlewareData:ct,placement:Ke,rects:xt,y:tt}=ae,Vt=Ae(Ke),io=ze(Vt),gn=q.current,vr=ct.arrow?.x||0,_r=ct.arrow?.y||0,yr=gn?.clientWidth||0,Pf=gn?.clientHeight||0,xr=vr+yr/2,$s=_r+Pf/2,Cf=Math.abs(ct.shift?.y||0),Af=xt.reference.height/2,Lo=typeof r=="function"?r(Sl(ae,n,H)):r,Of=Cf>Lo,Nf={top:`${xr}px calc(100% + ${Lo}px)`,bottom:`${xr}px ${-Lo}px`,left:`calc(100% + ${Lo}px) ${$s}px`,right:`${-Lo}px ${$s}px`}[Vt],Lf=`${xr}px ${xt.reference.y+Af-tt}px`;return Le.floating.style.setProperty("--transform-origin",ue&&io==="y"&&Of?Lf:Nf),{}}},xl,y),D(()=>{!g&&u&&u.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,u]);let Fe=Ue.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:Xe,elements:Be,x:no,y:ln,middlewareData:_e,update:ro,placement:B,context:j,isPositioned:he,floatingStyles:Te}=gi({rootContext:u,open:m?g:void 0,placement:A,middleware:X,strategy:o,whileElementsMounted:m?void 0:(...ae)=>Go(...ae,Fe),nodeId:w,externalTree:T}),{sideX:Pt,sideY:No}=_e.adaptiveOrigin||qo,yt=he?o:"fixed",Ve=Ue.useMemo(()=>{let ae=y?{position:yt,[Pt]:no,[No]:ln}:{position:yt,...Te};return he||(ae.opacity=0),ae},[y,yt,Pt,no,No,ln,Te,he]),Ct=Ue.useRef(null);D(()=>{if(!g)return;let ae=I.current,Le=typeof ae=="function"?ae():ae,Ke=(El(Le)?Le.current:Le)||null||null;Ke!==Ct.current&&(Xe.setPositionReference(Ke),Ct.current=Ke)},[g,Xe,L,I]),Ue.useEffect(()=>{if(!g)return;let ae=I.current;typeof ae!="function"&&El(ae)&&ae.current!==Ct.current&&(Xe.setPositionReference(ae.current),Ct.current=ae.current)},[g,Xe,L,I]),Ue.useEffect(()=>{if(m&&g&&Be.reference&&Be.floating)return Go(Be.reference,Be.floating,ro,Fe)},[m,g,Be,ro,Fe]);let At=Ae(B),dn=Tl(n,At,H),un=st(B)||"center",fn=!!_e.hide?.referenceHidden;D(()=>{h&&g&&he&&R(At)},[h,g,he,At]);let pn=Ue.useMemo(()=>({position:"absolute",top:_e.arrow?.y,left:_e.arrow?.x}),[_e.arrow]),mn=_e.arrow?.centerOffset!==0;return Ue.useMemo(()=>({positionerStyles:Ve,arrowStyles:pn,arrowRef:q,arrowUncentered:mn,side:dn,align:un,physicalSide:At,anchorHidden:fn,refs:Xe,context:j,isPositioned:he,update:ro}),[Ve,pn,q,mn,dn,un,At,fn,Xe,j,he,ro])}function El(e){return e!=null&&"current"in e}function Xn(e){return e==="starting"?rc:be}function Pl(e,t,{styles:o,transitionStatus:n,props:r,refs:i,hidden:s,inert:a=!1}){let l={...o};return a&&(l.pointerEvents="none"),Pe("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:s,style:l},Xn(n),r],stateAttributesMapping:xo})}var Cl=b(z(),1);var Si=Cl.forwardRef(function(t,o){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:s=!1,nativeButton:a=!0,style:l,...c}=t,{getButtonProps:d,buttonRef:f}=La({disabled:i,focusableWhenDisabled:s,native:a});return Pe("button",t,{state:{disabled:i},ref:[o,f],props:[c,d]})});var Ne=b(z(),1),Hl=b(Mt(),1);var Al=b(z(),1);function Ol(e){let[t,o]=Al.useState({current:e,previous:null});return e!==t.current&&o({current:e,previous:t.current}),t.previous}var Ro=b(z(),1);function Ei(e){let t=Ie(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=ye(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n;return(zt(o)!==i||zt(n)!==s)&&(o=i,n=s),{width:o,height:n}}function Ll(e){let{popupElement:t,positionerElement:o,content:n,mounted:r,onMeasureLayout:i,onMeasureLayoutComplete:s,side:a,direction:l}=e,c=po(t,!0,!1),d=lo(),f=Ro.useRef(null),p=Ro.useRef(!0),m=Ro.useRef(Nt),u=Y(i),g=Y(s),v=Ro.useMemo(()=>{let _=a==="top",w=a==="left";return l==="rtl"?(_=_||a==="inline-end",w=w||a==="inline-end"):(_=_||a==="inline-start",w=w||a==="inline-start"),_?{position:"absolute",[a==="top"?"bottom":"top"]:"0",[w?"right":"left"]:"0"}:be},[a,l]);D(()=>{if(!r){m.current=Nt,p.current=!0,f.current=null;return}if(!t||!o)return;m.current=Nl(t,v),Ti(t,"auto");let _=qn(t,"position","static"),w=qn(t,"transform","none"),y=qn(t,"scale","1"),h=Nl(o,{"--available-width":"max-content","--available-height":"max-content"});function T(){_(),w(),h()}function x(){T(),y()}if(u?.(),p.current||f.current===null){Kn(o,"max-content");let C=Ei(t);return f.current=C,Kn(o,C),x(),g?.(null,C),p.current=!1,()=>{m.current(),m.current=Nt}}Kn(o,"max-content");let R=f.current,E=Ei(t);f.current=E,Ti(t,R),x(),g?.(R,E),Kn(o,E);let k=new AbortController;return d.request(()=>{Ti(t,E),c(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},k.signal)}),()=>{k.abort(),d.cancel(),m.current(),m.current=Nt}},[n,t,o,c,d,r,u,g,v])}function qn(e,t,o){let n=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,n)}}function Nl(e,t){let o=[];for(let[n,r]of Object.entries(t))o.push(qn(e,n,r));return o.length?()=>{o.forEach(n=>n())}:Nt}function Ti(e,t){let o=t==="auto"?"auto":`${t.width}px`,n=t==="auto"?"auto":`${t.height}px`;e.style.setProperty("--popup-width",o),e.style.setProperty("--popup-height",n)}function Kn(e,t){let o=t==="max-content"?"max-content":`${t.width}px`,n=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",o),e.style.setProperty("--positioner-height",n)}var Il=b(z(),1);var Ml=b(K(),1),Zn=function(t){let{direction:o="ltr"}=t,n=Il.useMemo(()=>({direction:o}),[o]);return(0,Ml.jsx)(Er.Provider,{value:n,children:t.children})};var So=b(K(),1);function zl(e){let{store:t,side:o,cssVars:n,children:r}=e,i=so(),s=t.useState("activeTriggerElement"),a=t.useState("activeTriggerId"),l=t.useState("open"),c=t.useState("payload"),d=t.useState("mounted"),f=t.useState("popupElement"),p=t.useState("positionerElement"),m=Ol(l?s:null),u=kg(a,c),g=Ne.useRef(null),[v,_]=Ne.useState(null),[w,y]=Ne.useState(null),h=Ne.useRef(null),T=Ne.useRef(null),x=po(h,!0,!1),R=lo(),[E,k]=Ne.useState(null),[C,W]=Ne.useState(!1);D(()=>(t.set("hasViewport",!0),()=>{t.set("hasViewport",!1)}),[t]);let O=Y(()=>{h.current?.style.setProperty("animation","none"),h.current?.style.setProperty("transition","none"),T.current?.style.setProperty("display","none")}),L=Y(P=>{h.current?.style.removeProperty("animation"),h.current?.style.removeProperty("transition"),T.current?.style.removeProperty("display"),P&&k(P)}),I=Ne.useRef(null);D(()=>{(!l||!d)&&(I.current=null)},[l,d]),D(()=>{if(s&&m&&s!==m&&I.current!==s&&g.current){_(g.current),W(!0);let P=Tg(m,s);y(P),R.request(()=>{Hl.flushSync(()=>{W(!1)}),x(()=>{_(null),k(null),g.current=null})}),I.current=s}},[s,m,v,x,R]),D(()=>{let P=h.current;if(!P)return;let A=xe(P).createElement("div");for(let M of Array.from(P.childNodes))A.appendChild(M.cloneNode(!0));g.current=A});let S=v!=null,N;S?N=(0,So.jsxs)(Ne.Fragment,{children:[(0,So.jsx)("div",{"data-previous":!0,inert:_l(!0),ref:T,style:{...E?{[n.popupWidth]:`${E.width}px`,[n.popupHeight]:`${E.height}px`}:null,position:"absolute"},"data-ending-style":C?void 0:""},"previous"),(0,So.jsx)("div",{"data-current":!0,ref:h,"data-starting-style":C?"":void 0,children:r},u)]}):N=(0,So.jsx)("div",{"data-current":!0,ref:h,children:r},u),D(()=>{let P=T.current;!P||!v||P.replaceChildren(...Array.from(v.childNodes))},[v]),Ll({popupElement:f,positionerElement:p,mounted:d,content:c,onMeasureLayout:O,onMeasureLayoutComplete:L,side:o,direction:i});let H={activationDirection:Eg(w),transitioning:S};return{children:N,state:H}}function Eg(e){if(e)return`${Bl(e.horizontal,5,"right","left")} ${Bl(e.vertical,5,"down","up")}`}function Bl(e,t,o,n){return e>t?o:e<-t?n:""}function Tg(e,t){let o=e.getBoundingClientRect(),n=t.getBoundingClientRect(),r={x:o.left+o.width/2,y:o.top+o.height/2},i={x:n.left+n.width/2,y:n.top+n.height/2};return{horizontal:i.x-r.x,vertical:i.y-r.y}}function kg(e,t){let[o,n]=Ne.useState(0),r=Ne.useRef(e),i=Ne.useRef(t),s=Ne.useRef(!1);return D(()=>{let a=r.current,l=i.current,c=e!==a,d=t!==l;c?(n(f=>f+1),s.current=!d):s.current&&d&&(n(f=>f+1),s.current=!1),r.current=e,i.current=t},[e,t]),`${e??"current"}-${o}`}var Qn=b(z(),1),Dl=b(Mt(),1);var jl=b(K(),1),Fl=Qn.forwardRef(function(t,o){let{children:n,container:r,className:i,render:s,style:a,...l}=t,{portalNode:c,portalSubtree:d}=qr({container:r,ref:o,componentProps:t,elementProps:l});return!d&&!c?null:(0,jl.jsxs)(Qn.Fragment,{children:[d,c&&Dl.createPortal(n,c)]})});var Ze={};Ot(Ze,{Arrow:()=>nd,Handle:()=>Zo,Popup:()=>td,Portal:()=>Ql,Positioner:()=>$l,Provider:()=>rd,Root:()=>Wl,Trigger:()=>Kl,Viewport:()=>ad,createHandle:()=>cd});var ht=b(z(),1);var Jn=b(z(),1),ki=Jn.createContext(void 0);function qe(e){let t=Jn.useContext(ki);if(t===void 0&&!e)throw new Error(ke(72));return t}var Vl=b(z(),1);var Pg={...gl,disabled:Z(e=>e.disabled),instantType:Z(e=>e.instantType),isInstantPhase:Z(e=>e.isInstantPhase),trackCursorAxis:Z(e=>e.trackCursorAxis),disableHoverablePopup:Z(e=>e.disableHoverablePopup),lastOpenChangeReason:Z(e=>e.openChangeReason),closeOnClick:Z(e=>e.closeOnClick),closeDelay:Z(e=>e.closeDelay),hasViewport:Z(e=>e.hasViewport)},Eo=class e extends wo{constructor(t,o,n=!1){let r=new jt,i={...Cg(),...t};i.floatingRootContext=pl(r,o,n),super(i,{popupRef:Vl.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},Pg)}setOpen=(t,o)=>{rl(this,t,o,{extraState:{openChangeReason:o.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,ee(U.triggerPress,t))}static useStore(t,o){return nl(t,(r,i)=>new e(o,r,i)).store}};function Cg(){return{...fl(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var $n=b(K(),1),Wl=fi(function(t){let{disabled:o=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:a,onOpenChange:l,onOpenChangeComplete:c,handle:d,triggerId:f,defaultTriggerId:p=null,children:m}=t,u=Eo.useStore(d?.store,{open:n,openProp:r,activeTriggerId:p,triggerIdProp:f});il(u,r,n,p),u.useControlledProp("openProp",r),u.useControlledProp("triggerIdProp",f),u.useContextCallback("onOpenChange",l),u.useContextCallback("onOpenChangeComplete",c);let g=u.useState("open"),v=!o&&g,_=u.useState("activeTriggerId"),w=u.useState("mounted"),y=u.useState("payload");u.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i}),u.useSyncedValue("disabled",o),al(u,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:h,transitionStatus:T}=cl(v,u),x=u.useState("isInstantPhase"),R=u.useState("instantType"),E=u.useState("lastOpenChangeReason"),k=ht.useRef(null);D(()=>{g&&o&&u.setOpen(!1,ee(U.disabled))},[g,o,u]),D(()=>{T==="ending"&&E===U.none||T!=="ending"&&x?(R!=="delay"&&(k.current=R),u.set("instantType","delay")):k.current!==null&&(u.set("instantType",k.current),k.current=null)},[T,x,E,R,u]),D(()=>{v&&_==null&&u.set("payload",void 0)},[u,_,v]);let C=ht.useCallback(()=>{u.setOpen(!1,ee(U.imperativeAction))},[u]);ht.useImperativeHandle(a,()=>({unmount:h,close:C}),[h,C]);let W=v||w||!o&&s!=="none";return(0,$n.jsxs)(ki.Provider,{value:u,children:[W&&(0,$n.jsx)(Ag,{store:u,disabled:o,trackCursorAxis:s}),typeof m=="function"?m({payload:y}):m]})});function Ag({store:e,disabled:t,trackCursorAxis:o}){let n=e.useState("floatingRootContext"),r=Qr(n,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),i=Zr(n,{enabled:!t&&o!=="none",axis:o==="none"?void 0:o}),s=ht.useMemo(()=>we(i.reference,r.reference),[i.reference,r.reference]),a=ht.useMemo(()=>we(i.trigger,r.trigger),[i.trigger,r.trigger]),l=ht.useMemo(()=>we(ol,i.floating,r.floating),[i.floating,r.floating]);return ll(e,{activeTriggerProps:s,inactiveTriggerProps:a,popupProps:l}),null}var tr=b(z(),1);var er=b(z(),1),Pi=er.createContext(void 0);function Yl(){return er.useContext(Pi)}var Ul=(function(e){return e[e.popupOpen=Ko.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});var Xl="data-base-ui-tooltip-trigger";function Gl(e){if("composedPath"in e){let o=e.composedPath();for(let n=0;n<o.length;n+=1){let r=o[n];if(F(r))return r}}let t=e.target;return F(t)?t:null}function Og(e){let t=e;for(;t;){if(t.hasAttribute(Xl))return t;let o=t.parentElement;if(o){t=o;continue}let n=t.getRootNode();t="host"in n&&F(n.host)?n.host:null}return null}var Kl=Zc(function(t,o){let{render:n,className:r,style:i,handle:s,payload:a,disabled:l,delay:c,closeOnClick:d=!0,closeDelay:f,id:p,...m}=t,u=qe(!0),g=s?.store??u;if(!g)throw new Error(ke(82));let v=Ra(p),_=g.useState("isTriggerActive",v),w=g.useState("isOpenedByTrigger",v),y=g.useState("floatingRootContext"),h=tr.useRef(null),T=c??600,x=f??0,{registerTrigger:R,isMountedByThisTrigger:E}=sl(v,h,g,{payload:a,closeOnClick:d,closeDelay:x}),k=Yl(),{delayRef:C,isInstantPhase:W,hasProvider:O}=Kr(y,{open:w}),L=yo(y);g.useSyncedValue("isInstantPhase",W);let I=g.useState("disabled"),S=l??I,N=He(S),H=g.useState("trackCursorAxis"),P=g.useState("disableHoverablePopup"),A=tr.useRef(!1),M=ot(),Q=tr.useRef(void 0);function V(){let X=k?.delay,pe=typeof C.current=="object"?C.current.open:void 0,ue=T;return O&&(pe!==0?ue=c??X??T:ue=0),ue}function oe(X){let pe=h.current;if(!pe||!X)return!1;let ue=Og(X);return ue!==null&&ue!==pe&&ie(pe,ue)}function te(X){let pe=oe(X);return A.current=pe,pe&&(L.openChangeTimeout.clear(),L.restTimeout.clear(),L.restTimeoutPending=!1,M.clear()),pe}let se=yi(y,{enabled:!S,mouseOnly:!0,move:!1,handleClose:!P&&H!=="both"?xi():null,restMs:V,delay(){let X=typeof C.current=="object"?C.current.close:void 0,pe=x;return f==null&&O&&(pe=X),{close:pe}},triggerElementRef:h,isActiveTrigger:_,isClosing:()=>g.select("transitionStatus")==="ending",shouldOpen(){return!A.current}}),G=hi(y,{enabled:!S}).reference,q=X=>{let pe=A.current,ue=Gl(X),_t=te(ue),Ee=h.current,Fe=Ee&&ue&&ie(Ee,ue);if(_t&&g.select("open")&&g.select("lastOpenChangeReason")===U.triggerHover){g.setOpen(!1,ee(U.triggerHover,X));return}if(pe&&!_t&&Fe&&!N.current&&!g.select("open")&&Ee&&St(Q.current)){let Xe=()=>{!A.current&&!N.current&&!g.select("open")&&g.setOpen(!0,ee(U.triggerHover,X,Ee))},Be=V();Be===0?(M.clear(),Xe()):M.start(Be,Xe)}},J=g.useState("triggerProps",E);return Pe("button",t,{state:{open:w},ref:[o,R,h],props:[se,G,E||H!=="none"?J:void 0,{onMouseOver(X){q(X.nativeEvent)},onFocus(X){oe(Gl(X.nativeEvent))&&X.preventBaseUIHandler()},onMouseLeave(){A.current=!1,M.clear(),Q.current=void 0},onPointerEnter(X){Q.current=X.pointerType},onPointerDown(X){Q.current=X.pointerType,g.set("closeOnClick",d),d&&!g.select("open")&&g.cancelPendingOpen(X.nativeEvent)},onClick(X){d&&!g.select("open")&&g.cancelPendingOpen(X.nativeEvent)},id:v,[Ul.triggerDisabled]:S?"":void 0,[Xl]:S?void 0:""},m],stateAttributesMapping:vl})});var Zl=b(z(),1);var or=b(z(),1),Ci=or.createContext(void 0);function ql(){let e=or.useContext(Ci);if(e===void 0)throw new Error(ke(70));return e}var Ai=b(K(),1),Ql=Zl.forwardRef(function(t,o){let{keepMounted:n=!1,...r}=t;return qe().useState("mounted")||n?(0,Ai.jsx)(Ci.Provider,{value:n,children:(0,Ai.jsx)(Fl,{ref:o,...r})}):null});var rr=b(z(),1);var nr=b(z(),1),Oi=nr.createContext(void 0);function To(){let e=nr.useContext(Oi);if(e===void 0)throw new Error(ke(71));return e}var Jl=b(K(),1),$l=rr.forwardRef(function(t,o){let{render:n,className:r,anchor:i,positionMethod:s="absolute",side:a="top",align:l="center",sideOffset:c=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:u=!1,disableAnchorTracking:g=!1,collisionAvoidance:v=ic,style:_,...w}=t,y=qe(),h=ql(),T=y.useState("open"),x=y.useState("mounted"),R=y.useState("trackCursorAxis"),E=y.useState("disableHoverablePopup"),k=y.useState("floatingRootContext"),C=y.useState("instantType"),W=y.useState("transitionStatus"),O=y.useState("hasViewport"),L=kl({anchor:i,positionMethod:s,floatingRootContext:k,mounted:x,side:a,sideOffset:c,align:l,alignOffset:d,collisionBoundary:f,collisionPadding:p,sticky:u,arrowPadding:m,disableAnchorTracking:g,keepMounted:h,collisionAvoidance:v,adaptiveOrigin:O?Rl:void 0}),I=rr.useMemo(()=>({open:T,side:L.side,align:L.align,anchorHidden:L.anchorHidden,instant:R!=="none"?"tracking-cursor":C}),[T,L.side,L.align,L.anchorHidden,R,C]),S=Pl(t,I,{styles:L.positionerStyles,transitionStatus:W,props:w,refs:[o,y.useStateSetter("positionerElement")],hidden:!x,inert:!T||R==="both"||E});return(0,Jl.jsx)(Oi.Provider,{value:L,children:S})});var ed=b(z(),1);var Ng={...xo,...Ta},td=ed.forwardRef(function(t,o){let{render:n,className:r,style:i,...s}=t,a=qe(),{side:l,align:c}=To(),d=a.useState("open"),f=a.useState("instantType"),p=a.useState("transitionStatus"),m=a.useState("popupProps"),u=a.useState("floatingRootContext"),g=a.useState("disabled"),v=a.useState("closeDelay");kn({open:d,ref:a.context.popupRef,onComplete(){d&&a.context.onOpenChangeComplete?.(!0)}}),_i(u,{enabled:!g,closeDelay:v});let _=a.useStateSetter("popupElement");return Pe("div",t,{state:{open:d,side:l,align:c,instant:f,transitionStatus:p},ref:[o,a.context.popupRef,_],props:[m,Xn(p),s],stateAttributesMapping:Ng})});var od=b(z(),1);var nd=od.forwardRef(function(t,o){let{render:n,className:r,style:i,...s}=t,a=qe(),{arrowRef:l,side:c,align:d,arrowUncentered:f,arrowStyles:p}=To(),m=a.useState("open"),u=a.useState("instantType");return Pe("div",t,{state:{open:m,side:c,align:d,uncentered:f,instant:u},ref:[o,l],props:[{style:p,"aria-hidden":!0},s],stateAttributesMapping:xo})});var Ni=b(z(),1);var Li=b(K(),1),rd=function(t){let{delay:o,closeDelay:n,timeout:r=400}=t,i=Ni.useMemo(()=>({delay:o,closeDelay:n}),[o,n]),s=Ni.useMemo(()=>({open:o,close:n}),[o,n]);return(0,Li.jsx)(Pi.Provider,{value:i,children:(0,Li.jsx)(Xr,{delay:s,timeoutMs:r,children:t.children})})};var sd=b(z(),1);var id=(function(e){return e.popupWidth="--popup-width",e.popupHeight="--popup-height",e})({});var Lg={activationDirection:e=>e?{"data-activation-direction":e}:null},ad=sd.forwardRef(function(t,o){let{render:n,className:r,style:i,children:s,...a}=t,l=qe(),c=To(),d=l.useState("instantType"),{children:f,state:p}=zl({store:l,side:c.side,cssVars:id,children:s}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:d};return Pe("div",t,{state:m,ref:o,props:[a,{children:f}],stateAttributesMapping:Lg})});var Zo=class{constructor(){this.store=new Eo}open(t){let o=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!o)throw new Error(ke(81,t));this.store.setOpen(!0,ee(U.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,ee(U.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function cd(){return new Zo}function Qe(e){return Pe(e.defaultTagName??"div",e,e)}var ud=b(ce(),1),Ii="data-wp-hash";function Mi(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Mg(document)),e.__wpStyleRuntime}function Ig(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ii}]`))if(o.getAttribute(Ii)===t)return!0;return!1}function fd(e,t,o){if(!e.head)return;let n=Mi(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Ig(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ii,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Mg(e){let t=Mi();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)fd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function pd(e,t){let o=Mi();o.styles.set(e,t);for(let n of o.documents.keys())fd(n,e,t)}typeof process>"u",pd("a495f9d138",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var ld={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};typeof process>"u",pd("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var dd={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},Je=(0,ud.forwardRef)(function({variant:t="body-md",render:o,className:n,...r},i){return Qe({render:o,defaultTagName:"span",ref:i,props:we(r,{className:$(ld.text,dd.heading,dd.p,ld[t],n)})})});var hd=b(K(),1),Bi="data-wp-hash";function Hi(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Hg(document)),e.__wpStyleRuntime}function Bg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Bi}]`))if(o.getAttribute(Bi)===t)return!0;return!1}function bd(e,t,o){if(!e.head)return;let n=Hi(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Bg(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Bi,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Hg(e){let t=Hi();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)bd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function zg(e,t){let o=Hi();o.styles.set(e,t);for(let n of o.documents.keys())bd(n,e,t)}typeof process>"u",zg("9db2873e7f","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-background-surface-error,#f6e6e3);color:var(--wpds-color-foreground-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-background-surface-warning,#fde6be);color:var(--wpds-color-foreground-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-background-surface-caution,#fee995);color:var(--wpds-color-foreground-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-background-surface-success,#c6f7cd);color:var(--wpds-color-foreground-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-background-surface-info,#deebfa);color:var(--wpds-color-foreground-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}}");var md={badge:"_96e6251aad1a6136__badge","is-high-intent":"_99f7158cb520f750__is-high-intent","is-medium-intent":"c20ebef2365bc8b7__is-medium-intent","is-low-intent":"_365e1626c6202e52__is-low-intent","is-stable-intent":"_33f8198127ddf4ef__is-stable-intent","is-informational-intent":"_04c1aca8fc449412__is-informational-intent","is-draft-intent":"_90726e69d495ec19__is-draft-intent","is-none-intent":"_898f4a544993bd39__is-none-intent"},zi=(0,gd.forwardRef)(function({intent:t="none",className:o,...n},r){return(0,hd.jsx)(Je,{ref:r,className:$(md.badge,md[`is-${t}-intent`],o),...n,variant:"body-sm"})});var ir=b(ce(),1),wd=b(lt(),1),_d=b(K(),1);import{speak as Dg}from"@wordpress/a11y";var Di="data-wp-hash";function ji(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Fg(document)),e.__wpStyleRuntime}function jg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Di}]`))if(o.getAttribute(Di)===t)return!0;return!1}function vd(e,t,o){if(!e.head)return;let n=ji(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(jg(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Di,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Fg(e){let t=ji();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)vd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function sr(e,t){let o=ji();o.styles.set(e,t);for(let n of o.documents.keys())vd(n,e,t)}typeof process>"u",sr("b74f1ac304",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);inset-inline-start:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var Qo={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"};typeof process>"u",sr("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Vg={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",sr("2ffedd8246","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var Wg={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-within-visible":"_64de9947bf305b7a__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",sr("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var Yg={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},yd=(0,ir.forwardRef)(function({tone:t="brand",variant:o="solid",size:n="default",className:r,focusableWhenDisabled:i=!0,disabled:s,loading:a,loadingAnnouncement:l=(0,wd.__)("Loading"),children:c,...d},f){let p=$(Yg.button,Vg["box-sizing"],Wg["outset-ring--focus-except-active"],o!=="unstyled"&&Qo.button,Qo[`is-${t}`],Qo[`is-${o}`],Qo[`is-${n}`],a&&Qo["is-loading"],r);return(0,ir.useEffect)(()=>{a&&l&&Dg(l)},[a,l]),(0,_d.jsx)(Si,{ref:f,className:p,focusableWhenDisabled:i,disabled:s??a,...d,children:c})});var Td=b(ce(),1);var Rd=b(ce(),1),Sd=b($t(),1),Ed=b(K(),1),eo=(0,Rd.forwardRef)(function({icon:t,size:o=24,...n},r){return(0,Ed.jsx)(Sd.SVG,{ref:r,...t.props,...n,width:o,height:o})});var Pd=b(K(),1),Fi="data-wp-hash";function Vi(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Gg(document)),e.__wpStyleRuntime}function Ug(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Fi}]`))if(o.getAttribute(Fi)===t)return!0;return!1}function kd(e,t,o){if(!e.head)return;let n=Vi(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Ug(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Fi,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Gg(e){let t=Vi();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)kd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Xg(e,t){let o=Vi();o.styles.set(e,t);for(let n of o.documents.keys())kd(n,e,t)}typeof process>"u",Xg("b74f1ac304",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);inset-inline-start:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var Kg={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"},Wi=(0,Td.forwardRef)(function({className:t,icon:o,...n},r){return(0,Pd.jsx)(eo,{ref:r,icon:o,className:$(Kg.icon,t),size:24,...n})});Wi.displayName="Button.Icon";var ar=Object.assign(yd,{Icon:Wi});var cr=b($t(),1),Yi=b(K(),1),Ui=(0,Yi.jsx)(cr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Yi.jsx)(cr.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})});var lr=b($t(),1),Gi=b(K(),1),Xi=(0,Gi.jsx)(lr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Gi.jsx)(lr.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});var dr=b($t(),1),Ki=b(K(),1),qi=(0,Ki.jsx)(dr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Ki.jsx)(dr.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})});var ur=b($t(),1),Zi=b(K(),1),Qi=(0,Zi.jsx)(ur.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Zi.jsx)(ur.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})});var fr=b($t(),1),Ji=b(K(),1),$i=(0,Ji.jsx)(fr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Ji.jsx)(fr.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})});var Cd=b(ce(),1);function es(e,t,o){return(0,Cd.cloneElement)(e??t,{children:o})}var qg=b(Od(),1);var Ld=b(ts(),1),{lock:D4,unlock:Id}=(0,Ld.__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/ui");function Zg(){let e=qg;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return Id(e.privateApis).ThemeProvider}var Md=Zg();var Bd=b(ce(),1),os="data-wp-hash";function ns(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Jg(document)),e.__wpStyleRuntime}function Qg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${os}]`))if(o.getAttribute(os)===t)return!0;return!1}function Hd(e,t,o){if(!e.head)return;let n=ns(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Qg(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(os,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Jg(e){let t=ns();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Hd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function $g(e,t){let o=ns();o.styles.set(e,t);for(let n of o.documents.keys())Hd(n,e,t)}typeof process>"u",$g("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var eb={stack:"_19ce0419607e1896__stack"},tb={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},ko=(0,Bd.forwardRef)(function({direction:t,gap:o,align:n,justify:r,wrap:i,render:s,...a},l){let c={gap:o&&tb[o],alignItems:n,justifyContent:r,flexDirection:t,flexWrap:i};return Qe({render:s,ref:l,props:we(a,{style:c,className:eb.stack})})});var du=b(ce(),1);var Zd=b(ce(),1);var Vd=b(ce(),1);var is="data-wp-hash";function ss(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&nb(document)),e.__wpStyleRuntime}function ob(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${is}]`))if(o.getAttribute(is)===t)return!0;return!1}function Dd(e,t,o){if(!e.head)return;let n=ss(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(ob(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(is,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function nb(e){let t=ss();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Dd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function rb(e,t){let o=ss();o.styles.set(e,t);for(let n of o.documents.keys())Dd(n,e,t)}typeof process>"u",rb("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var zd={slot:"_11fc52b637ff8a7e__slot"},jd="data-wp-compat-overlay-slot";function ib(){return typeof document>"u"?null:document}function sb(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var wt=null;function rs(e){return e.setAttribute("aria-hidden","false"),e}function ab(e){let t=e.createElement("div");return t.setAttribute(jd,""),zd.slot&&t.classList.add(zd.slot),e.body.appendChild(t),t}function Fd(){if(typeof window>"u"||!sb()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=ib();if(!e||!e.body)return;if(wt&&wt.ownerDocument===e&&wt.isConnected)return rs(wt);let t=e.querySelector(`[${jd}]`);return t instanceof HTMLDivElement?(wt=rs(t),wt):(wt?.isConnected&&wt.remove(),wt=rs(ab(e)),wt)}var Wd=b(K(),1),Yd=(0,Vd.forwardRef)(function({container:t,...o},n){return(0,Wd.jsx)(Ze.Portal,{container:t??Fd(),...o,ref:n})});var Ud=b(ce(),1),Kd=b(K(),1),as="data-wp-hash";function cs(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&lb(document)),e.__wpStyleRuntime}function cb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${as}]`))if(o.getAttribute(as)===t)return!0;return!1}function Gd(e,t,o){if(!e.head)return;let n=cs(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(cb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(as,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function lb(e){let t=cs();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Gd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Xd(e,t){let o=cs();o.styles.set(e,t);for(let n of o.documents.keys())Gd(n,e,t)}typeof process>"u",Xd("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var db={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Xd("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var ub={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},qd=(0,Ud.forwardRef)(function({align:t="center",className:o,side:n="top",sideOffset:r=4,...i},s){return(0,Kd.jsx)(Ze.Positioner,{ref:s,align:t,side:n,sideOffset:r,...i,className:$(db["box-sizing"],ub.positioner,o)})});var Jo=b(K(),1),ls="data-wp-hash";function ds(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&pb(document)),e.__wpStyleRuntime}function fb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ls}]`))if(o.getAttribute(ls)===t)return!0;return!1}function Qd(e,t,o){if(!e.head)return;let n=ds(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(fb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(ls,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function pb(e){let t=ds();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Qd(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function mb(e,t){let o=ds();o.styles.set(e,t);for(let n of o.documents.keys())Qd(n,e,t)}typeof process>"u",mb("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var gb={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},bb={background:"#1e1e1e"},us=(0,Zd.forwardRef)(function({portal:t,positioner:o,children:n,className:r,...i},s){let a=(0,Jo.jsx)(Md,{color:bb,children:(0,Jo.jsx)(Ze.Popup,{ref:s,className:$(gb.popup,r),...i,children:n})}),l=es(o,(0,Jo.jsx)(qd,{}),a);return es(t,(0,Jo.jsx)(Yd,{}),l)});var Jd=b(ce(),1),$d=b(K(),1),fs=(0,Jd.forwardRef)(function(t,o){return(0,$d.jsx)(Ze.Trigger,{ref:o,...t})});var eu=b(lt(),1),tu=b(K(),1);function ou({children:e}){return(0,tu.jsx)(Zn,{direction:(0,eu.isRTL)()?"rtl":"ltr",children:e})}var ps=b(K(),1);function ms(e){return(0,ps.jsx)(ou,{children:(0,ps.jsx)(Ze.Root,{...e})})}var iu=b(ce(),1),mr=b(lt(),1);var nu=b(ce(),1),gs="data-wp-hash";function bs(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&vb(document)),e.__wpStyleRuntime}function wb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${gs}]`))if(o.getAttribute(gs)===t)return!0;return!1}function ru(e,t,o){if(!e.head)return;let n=bs(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(wb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(gs,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function vb(e){let t=bs();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)ru(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function _b(e,t){let o=bs();o.styles.set(e,t);for(let n of o.documents.keys())ru(n,e,t)}typeof process>"u",_b("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var yb={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},hs=(0,nu.forwardRef)(function({render:t,...o},n){return Qe({render:t,ref:n,props:we({className:yb["visually-hidden"]},o,{"data-visually-hidden":""})})});var pr=b(K(),1);function su({"aria-describedby":e,"aria-keyshortcuts":t,shortcut:o}){let n=(0,iu.useId)(),r=o?n:void 0,i=[e,r].filter(Boolean).join(" ");return{descriptionId:r,targetProps:{"aria-describedby":i||void 0,"aria-keyshortcuts":o?.ariaKeyShortcut??t}}}function au({descriptionId:e,shortcut:t}){return(0,pr.jsx)(hs,{id:e,"aria-hidden":"true",render:(0,pr.jsx)("span",{}),children:(0,mr.sprintf)((0,mr.__)("Keyboard shortcut: %s"),t.label??t.ariaKeyShortcut)})}function cu({className:e,shortcut:t}){return(0,pr.jsx)("span",{"aria-hidden":"true",className:e,dir:"ltr",children:t.displayShortcut})}var $e=b(K(),1),ws="data-wp-hash";function vs(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Rb(document)),e.__wpStyleRuntime}function xb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ws}]`))if(o.getAttribute(ws)===t)return!0;return!1}function uu(e,t,o){if(!e.head)return;let n=vs(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(xb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(ws,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Rb(e){let t=vs();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)uu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Sb(e,t){let o=vs();o.styles.set(e,t);for(let n of o.documents.keys())uu(n,e,t)}typeof process>"u",Sb("c5cdafb1bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._28cfdc260e755391__icon-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset}.f1c70d719989a85a__icon{margin:-1px}}}");var lu={"icon-button":"_28cfdc260e755391__icon-button",icon:"f1c70d719989a85a__icon"},_s=(0,du.forwardRef)(function({label:t,className:o,children:n,disabled:r,focusableWhenDisabled:i=!0,icon:s,size:a,shortcut:l,positioner:c,"aria-describedby":d,"aria-keyshortcuts":f,...p},m){let u=$(lu["icon-button"],o),{descriptionId:g,targetProps:v}=su({"aria-describedby":d,"aria-keyshortcuts":f,shortcut:l});return(0,$e.jsxs)(ms,{children:[(0,$e.jsxs)(fs,{ref:m,...v,disabled:r&&!i,render:(0,$e.jsx)(ar,{...p,size:a,"aria-label":t,disabled:r,focusableWhenDisabled:i}),className:u,children:[(0,$e.jsx)(eo,{icon:s,size:24,className:lu.icon}),l&&g&&(0,$e.jsx)(au,{descriptionId:g,shortcut:l})]}),(0,$e.jsxs)(us,{positioner:c,children:[t,l&&(0,$e.jsxs)($e.Fragment,{children:[" ",(0,$e.jsx)(cu,{shortcut:l})]})]})]})});var fu=b(ce(),1),pu=b(lt(),1),Po=b(K(),1),ys="data-wp-hash";function xs(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Tb(document)),e.__wpStyleRuntime}function Eb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ys}]`))if(o.getAttribute(ys)===t)return!0;return!1}function mu(e,t,o){if(!e.head)return;let n=xs(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Eb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(ys,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Tb(e){let t=xs();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)mu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function br(e,t){let o=xs();o.styles.set(e,t);for(let n of o.documents.keys())mu(n,e,t)}typeof process>"u",br("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var kb={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",br("2ffedd8246","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var Pb={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-within-visible":"_64de9947bf305b7a__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",br("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var gr={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};typeof process>"u",br("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var Cb={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},$o=(0,fu.forwardRef)(function({children:t,variant:o="default",tone:n="brand",openInNewTab:r=!1,render:i,className:s,...a},l){return Qe({render:i,defaultTagName:"a",ref:l,props:we(a,{className:$(Cb.a,kb["box-sizing"],Pb["outset-ring--focus-except-active"],o!=="unstyled"&&gr.link,o!=="unstyled"&&gr[`is-${n}`],o==="unstyled"&&gr["is-unstyled"],s),target:r?"_blank":void 0,children:(0,Po.jsxs)(Po.Fragment,{children:[t,r&&(0,Po.jsx)("span",{className:gr["link-icon"],role:"img","aria-label":(0,pu.__)("(opens in a new tab)")})]})})})});var en={};Ot(en,{ActionButton:()=>zu,ActionLink:()=>Fu,Actions:()=>Pu,CloseIcon:()=>Lu,Description:()=>Eu,Root:()=>hu,Title:()=>yu});var Co=b(ce(),1);import{speak as Ab}from"@wordpress/a11y";var Ao=b(K(),1),Ss="data-wp-hash";function Es(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Nb(document)),e.__wpStyleRuntime}function Ob(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ss}]`))if(o.getAttribute(Ss)===t)return!0;return!1}function gu(e,t,o){if(!e.head)return;let n=Es(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Ob(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ss,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Nb(e){let t=Es();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)gu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function bu(e,t){let o=Es();o.styles.set(e,t);for(let n of o.documents.keys())gu(n,e,t)}typeof process>"u",bu("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Lb={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",bu("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var Rs={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},Ib={neutral:null,info:Qi,warning:Ui,success:$i,error:qi};function Mb(e){return e==="error"?"assertive":"polite"}function Bb(e){if(e){if(typeof e=="string")return e;try{return(0,Co.renderToString)(e)}catch{return}}}function Hb(e,t){let o=Bb(e);(0,Co.useEffect)(()=>{o&&Ab(o,t)},[o,t])}var hu=(0,Co.forwardRef)(function({intent:t="neutral",children:o,icon:n,spokenMessage:r=o,politeness:i=Mb(t),render:s,...a},l){Hb(r,i);let c=n===null?null:n??Ib[t],d=$(Rs.notice,Rs[`is-${t}`],Lb["box-sizing"]);return Qe({defaultTagName:"div",render:s,ref:l,props:we({className:d,children:(0,Ao.jsxs)(Ao.Fragment,{children:[o,c&&(0,Ao.jsx)(eo,{className:Rs.icon,icon:c})]})},a)})});var wu=b(ce(),1);var _u=b(K(),1),Ts="data-wp-hash";function ks(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Db(document)),e.__wpStyleRuntime}function zb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ts}]`))if(o.getAttribute(Ts)===t)return!0;return!1}function vu(e,t,o){if(!e.head)return;let n=ks(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(zb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ts,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Db(e){let t=ks();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)vu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function jb(e,t){let o=ks();o.styles.set(e,t);for(let n of o.documents.keys())vu(n,e,t)}typeof process>"u",jb("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var Fb={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},yu=(0,wu.forwardRef)(function({className:t,...o},n){return(0,_u.jsx)(Je,{ref:n,variant:"heading-md",className:$(Fb.title,t),...o})});var xu=b(ce(),1);var Su=b(K(),1),Ps="data-wp-hash";function Cs(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Wb(document)),e.__wpStyleRuntime}function Vb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ps}]`))if(o.getAttribute(Ps)===t)return!0;return!1}function Ru(e,t,o){if(!e.head)return;let n=Cs(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Vb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ps,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Wb(e){let t=Cs();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Ru(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Yb(e,t){let o=Cs();o.styles.set(e,t);for(let n of o.documents.keys())Ru(n,e,t)}typeof process>"u",Yb("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var Ub={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},Eu=(0,xu.forwardRef)(function({className:t,...o},n){return(0,Su.jsx)(Je,{ref:n,variant:"body-md",className:$(Ub.description,t),...o})});var Tu=b(ce(),1);var As="data-wp-hash";function Os(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Xb(document)),e.__wpStyleRuntime}function Gb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${As}]`))if(o.getAttribute(As)===t)return!0;return!1}function ku(e,t,o){if(!e.head)return;let n=Os(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Gb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(As,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Xb(e){let t=Os();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)ku(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Kb(e,t){let o=Os();o.styles.set(e,t);for(let n of o.documents.keys())ku(n,e,t)}typeof process>"u",Kb("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var qb={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},Pu=(0,Tu.forwardRef)(function({render:t,...o},n){return Qe({defaultTagName:"div",render:t,ref:n,props:we({className:qb.actions},o)})});var Cu=b(ce(),1),Au=b(lt(),1);var Nu=b(K(),1),Ns="data-wp-hash";function Ls(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Qb(document)),e.__wpStyleRuntime}function Zb(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ns}]`))if(o.getAttribute(Ns)===t)return!0;return!1}function Ou(e,t,o){if(!e.head)return;let n=Ls(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Zb(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ns,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Qb(e){let t=Ls();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Ou(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Jb(e,t){let o=Ls();o.styles.set(e,t);for(let n of o.documents.keys())Ou(n,e,t)}typeof process>"u",Jb("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var $b={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},Lu=(0,Cu.forwardRef)(function({className:t,icon:o=Xi,label:n=(0,Au.__)("Dismiss"),...r},i){return(0,Nu.jsx)(_s,{...r,ref:i,className:$($b["close-icon"],t),variant:"minimal",size:"small",tone:"neutral",icon:o,label:n})});var Mu=b(ce(),1);var Hu=b(K(),1),Is="data-wp-hash";function Ms(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&t0(document)),e.__wpStyleRuntime}function e0(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Is}]`))if(o.getAttribute(Is)===t)return!0;return!1}function Bu(e,t,o){if(!e.head)return;let n=Ms(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(e0(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Is,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function t0(e){let t=Ms();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Bu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function o0(e,t){let o=Ms();o.styles.set(e,t);for(let n of o.documents.keys())Bu(n,e,t)}typeof process>"u",o0("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var Iu={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},zu=(0,Mu.forwardRef)(function({className:t,loading:o,loadingAnnouncement:n,variant:r,...i},s){return(0,Hu.jsx)(ar,{...i,...o!==void 0?{loading:o,loadingAnnouncement:n??""}:{},ref:s,size:"compact",tone:"neutral",variant:r,className:$(Iu["action-button"],Iu[`is-action-button-${r}`],t)})});var Du=b(ce(),1);var Hs=b(K(),1),Bs="data-wp-hash";function zs(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&r0(document)),e.__wpStyleRuntime}function n0(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Bs}]`))if(o.getAttribute(Bs)===t)return!0;return!1}function ju(e,t,o){if(!e.head)return;let n=zs(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(n0(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Bs,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function r0(e){let t=zs();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)ju(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function i0(e,t){let o=zs();o.styles.set(e,t);for(let n of o.documents.keys())ju(n,e,t)}typeof process>"u",i0("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var s0={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},Fu=(0,Du.forwardRef)(function({className:t,render:o,...n},r){return(0,Hs.jsx)(Je,{ref:r,className:$(s0["action-link"],t),...n,variant:"body-md",render:(0,Hs.jsx)($o,{tone:"neutral",variant:"default",render:o})})});var Vu=b(ce(),1),Wu=b(K(),1),Yu=(0,Vu.forwardRef)(({children:e,className:t,ariaLabel:o,as:n="div",...r},i)=>(0,Wu.jsx)(n,{ref:i,className:$("admin-ui-navigable-region",t),"aria-label":o,role:"region",tabIndex:"-1",...r,children:e}));Yu.displayName="NavigableRegion";var Uu=Yu;var Xu=b(tn(),1),{Fill:Ku,Slot:qu}=(0,Xu.createSlotFill)("SidebarToggle");var et=b(K(),1),Ds="data-wp-hash";function js(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&c0(document)),e.__wpStyleRuntime}function a0(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Ds}]`))if(o.getAttribute(Ds)===t)return!0;return!1}function Zu(e,t,o){if(!e.head)return;let n=js(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(a0(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ds,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function c0(e){let t=js();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Zu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function l0(e,t){let o=js();o.styles.set(e,t);for(let n of o.documents.keys())Zu(n,e,t)}typeof process>"u",l0("ddd9aab364","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var to={page:"_956b6df0898efed0__page",header:"_0625b55e82a0d93d__header","header-content":"a43c44d5ae28b2e8__header-content","header-actions":"b7cb5b9daf3a3b25__header-actions","header-title":"_8113be94e7caf73c__header-title","header-visual":"_9a776c7f70996f61__header-visual","sidebar-toggle-slot":"d5e0920cd15d35bc__sidebar-toggle-slot","header-subtitle":"_60fea2f6bf5319cd__header-subtitle",content:"be5e57d029ec4036__content","has-padding":"_128806d0b26e3a50__has-padding"};function Qu({headingLevel:e=1,breadcrumbs:t,badges:o,visual:n,title:r,subTitle:i,actions:s,showSidebarToggle:a=!0}){let l=`h${e}`;return(0,et.jsxs)(ko,{direction:"column",className:to.header,children:[(0,et.jsxs)(ko,{className:to["header-content"],direction:"row",gap:"sm",justify:"space-between",children:[(0,et.jsxs)(ko,{direction:"row",gap:"sm",align:"center",justify:"start",children:[a&&(0,et.jsx)(qu,{bubblesVirtually:!0,className:to["sidebar-toggle-slot"]}),n&&(0,et.jsx)("div",{className:to["header-visual"],"aria-hidden":"true",children:n}),r&&(0,et.jsx)(Je,{className:to["header-title"],render:(0,et.jsx)(l,{}),variant:"heading-lg",children:r}),t,o]}),s&&(0,et.jsx)(ko,{align:"center",className:to["header-actions"],direction:"row",gap:"sm",children:s})]}),i&&(0,et.jsx)(Je,{render:(0,et.jsx)("p",{}),variant:"body-md",className:to["header-subtitle"],children:i})]})}var on=b(K(),1),Vs="data-wp-hash";function Ws(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&u0(document)),e.__wpStyleRuntime}function d0(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${Vs}]`))if(o.getAttribute(Vs)===t)return!0;return!1}function Ju(e,t,o){if(!e.head)return;let n=Ws(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(d0(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Vs,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function u0(e){let t=Ws();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Ju(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function f0(e,t){let o=Ws();o.styles.set(e,t);for(let n of o.documents.keys())Ju(n,e,t)}typeof process>"u",f0("ddd9aab364","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var Fs={page:"_956b6df0898efed0__page",header:"_0625b55e82a0d93d__header","header-content":"a43c44d5ae28b2e8__header-content","header-actions":"b7cb5b9daf3a3b25__header-actions","header-title":"_8113be94e7caf73c__header-title","header-visual":"_9a776c7f70996f61__header-visual","sidebar-toggle-slot":"d5e0920cd15d35bc__sidebar-toggle-slot","header-subtitle":"_60fea2f6bf5319cd__header-subtitle",content:"be5e57d029ec4036__content","has-padding":"_128806d0b26e3a50__has-padding"};function $u({headingLevel:e,breadcrumbs:t,badges:o,visual:n,title:r,subTitle:i,children:s,className:a,actions:l,ariaLabel:c,hasPadding:d=!1,showSidebarToggle:f=!0}){let p=$(Fs.page,a);return(0,on.jsxs)(Uu,{className:p,ariaLabel:c??(typeof r=="string"?r:""),children:[(r||t||o||l||n)&&(0,on.jsx)(Qu,{headingLevel:e,breadcrumbs:t,badges:o,visual:n,title:r,subTitle:i,actions:l,showSidebarToggle:f}),d?(0,on.jsx)("div",{className:$(Fs.content,Fs["has-padding"]),children:s}):s]})}$u.SidebarToggleFill=Ku;var Ys=$u;var at=b(tn()),Ef=b(nn()),Tf=b(ce()),kt=b(lt()),kf=b(hr());import{privateApis as C0}from"@wordpress/connectors";var of=b(ts()),{lock:V3,unlock:Oo}=(0,of.__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/routes");if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='09e9b056ea']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","09e9b056ea"),e.appendChild(document.createTextNode(".connectors-page{box-sizing:border-box;margin:0 auto;max-width:680px;padding:24px;width:100%}.connectors-page .components-item{background:#fff;border:1px solid #ddd;border-radius:8px;overflow:hidden;padding:20px;scroll-margin-top:120px}.connectors-page .connector-settings__error{color:#cc1818}.connectors-page .connector-settings .components-text-control__input{font-family:monospace;scroll-margin-top:120px}.connectors-page__file-mods-notice{margin-bottom:16px}.connectors-page--empty{align-items:center;display:flex;flex-direction:column;flex-grow:1;gap:32px;justify-content:center;text-align:center}.connectors-page .ai-plugin-callout{background-color:#e7d4e4;background-image:radial-gradient(ellipse 70% 120% at 18% 115%,rgba(202,158,198,.75) 0,rgba(202,158,198,0) 60%),radial-gradient(ellipse 55% 110% at 92% -15%,rgba(208,175,217,.7) 0,rgba(208,175,217,0) 65%),radial-gradient(ellipse 40% 85% at 58% -10%,rgba(170,130,184,.45) 0,rgba(170,130,184,0) 70%);border-radius:8px;overflow:hidden;padding:24px;padding-inline-end:150px;position:relative}[dir=rtl] .connectors-page .ai-plugin-callout{background-image:radial-gradient(ellipse 70% 120% at 82% 115%,rgba(202,158,198,.75) 0,rgba(202,158,198,0) 60%),radial-gradient(ellipse 55% 110% at 8% -15%,rgba(208,175,217,.7) 0,rgba(208,175,217,0) 65%),radial-gradient(ellipse 40% 85% at 42% -10%,rgba(170,130,184,.45) 0,rgba(170,130,184,0) 70%)}.connectors-page .ai-plugin-callout__content{align-items:flex-start;display:flex;flex-direction:column;gap:12px;padding-top:2px}.connectors-page .ai-plugin-callout__content p{font-size:13px;line-height:20px;margin:0}.connectors-page .ai-plugin-callout__decoration{height:110px;inset-inline-end:16px;position:absolute;top:12px;width:110px}.connectors-page>p{color:#949494}@media (max-width:680px){.connectors-page .ai-plugin-callout{padding:12px;padding-inline-end:100px}.connectors-page .ai-plugin-callout__decoration{height:75px;inset-inline-end:8px;top:8px;width:75px}}@media (max-width:480px){.connectors-page{padding:8px}.connectors-page .ai-plugin-callout{padding-inline-end:130px}.connectors-page .components-item{padding:12px}.connectors-page .components-item>.components-v-stack>.components-h-stack:first-child svg{height:32px;width:32px}.connectors-page .components-item>.components-v-stack>.components-h-stack:first-child>.components-h-stack:last-child{align-items:flex-end;flex-direction:column}}")),document.head.appendChild(e)}var an=b(tn()),Qs=b(hr()),cn=b(nn()),vt=b(ce()),Ge=b(lt()),yf=b(Us()),xf=b(sf());var wr=b(tn()),Ks=b(ce()),mf=b(nn()),oo=b(lt());import{__experimentalRegisterConnector as p0,__experimentalConnectorItem as pf,__experimentalDefaultConnectorSettings as m0,__experimentalApplicationPasswordConnectorSettings as g0,privateApis as b0}from"@wordpress/connectors";var Gs=b(hr()),sn=b(nn()),rn=b(ce()),fe=b(lt()),af=b(Us());function Xs({file:e,settingName:t,connectorName:o,isInstalled:n,isActivated:r,keySource:i="none",initialIsConnected:s=!1}){let[a,l]=(0,rn.useState)(!1),[c,d]=(0,rn.useState)(!1),[f,p]=(0,rn.useState)(s),[m,u]=(0,rn.useState)(null),g=e?.replace(/\.php$/,""),v=g?.includes("/")?g.split("/")[0]:g,{derivedPluginStatus:_,canManagePlugins:w,currentApiKey:y,currentUsername:h,hasStoredCredentials:T,hasResolvedSettings:x,canInstallPlugins:R}=(0,sn.useSelect)(q=>{let J=q(Gs.store),ge=J.getEntityRecord("root","site")?.[t],de=typeof ge=="string"?ge:"",X=typeof ge=="object"&&ge!==null?ge:void 0,pe=X!==void 0?!!X.username&&!!X.password:!!de,ue=J.hasFinishedResolution("getEntityRecord",["root","site"]),_t=!!J.canUser("create",{kind:"root",name:"plugin"}),Ee={currentApiKey:de,currentUsername:X?.username??"",hasStoredCredentials:pe,hasResolvedSettings:ue,canInstallPlugins:_t};if(!e)return{...Ee,derivedPluginStatus:ue?"active":"checking",canManagePlugins:void 0};let Fe=J.getEntityRecord("root","plugin",g);if(!J.hasFinishedResolution("getEntityRecord",["root","plugin",g]))return{...Ee,derivedPluginStatus:"checking",canManagePlugins:void 0};if(Fe){let no=Fe.status==="active"||Fe.status==="network-active";return{...Ee,derivedPluginStatus:no?"active":"inactive",canManagePlugins:!0}}let Be="not-installed";return r?Be="active":n&&(Be="inactive"),{...Ee,derivedPluginStatus:Be,canManagePlugins:!1}},[e,g,t,n,r]),E=m??_,k=w,C=E==="active"&&f||m==="active"&&T,{saveEntityRecord:W,invalidateResolution:O}=(0,sn.useDispatch)(Gs.store),{createSuccessNotice:L,createErrorNotice:I}=(0,sn.useDispatch)(af.store),S=q=>W("root","site",{[t]:q},{throwOnError:!0}),N=()=>{L((0,fe.sprintf)((0,fe.__)("%s connected successfully."),o),{id:"connector-connect-success",type:"snackbar"})},H=()=>{L((0,fe.sprintf)((0,fe.__)("%s disconnected."),o),{id:"connector-disconnect-success",type:"snackbar"})},P=()=>{I((0,fe.sprintf)((0,fe.__)("Failed to disconnect %s."),o),{id:"connector-disconnect-error",type:"snackbar"})},A=async()=>{if(v){d(!0);try{await W("root","plugin",{slug:v,status:"active"},{throwOnError:!0}),u("active"),O("getEntityRecord",["root","site"]),l(!0),L((0,fe.sprintf)((0,fe.__)("Plugin for %s installed and activated successfully."),o),{id:"connector-plugin-install-success",type:"snackbar"})}catch{I((0,fe.sprintf)((0,fe.__)("Failed to install plugin for %s."),o),{id:"connector-plugin-install-error",type:"snackbar"})}finally{d(!1)}}},M=async()=>{if(e){d(!0);try{await W("root","plugin",{plugin:g,status:"active"},{throwOnError:!0}),u("active"),O("getEntityRecord",["root","site"]),l(!0),L((0,fe.sprintf)((0,fe.__)("Plugin for %s activated successfully."),o),{id:"connector-plugin-activate-success",type:"snackbar"})}catch{I((0,fe.sprintf)((0,fe.__)("Failed to activate plugin for %s."),o),{id:"connector-plugin-activate-error",type:"snackbar"})}finally{d(!1)}}};return{pluginStatus:E,canInstallPlugins:R,canActivatePlugins:k,isExpanded:a,setIsExpanded:l,isBusy:c,isConnected:C,currentApiKey:y,currentUsername:h,hasResolvedSettings:x,keySource:i,handleButtonClick:()=>{if(E==="not-installed"){if(R===!1)return;A()}else if(E==="inactive"){if(k===!1)return;M()}else l(!a)},getButtonLabel:()=>{if(c)return E==="not-installed"?(0,fe.__)("Installing\u2026"):(0,fe.__)("Activating\u2026");if(a)return(0,fe.__)("Cancel");if(C)return(0,fe.__)("Edit");switch(E){case"checking":return(0,fe.__)("Checking\u2026");case"not-installed":return(0,fe.__)("Install");case"inactive":return(0,fe.__)("Activate");case"active":return(0,fe.__)("Set up")}},saveApiKey:async q=>{let J=y;try{let de=(await S(q))?.[t];if(q&&(de===J||!de))throw new Error("It was not possible to connect to the provider using this key.");p(!0),N()}catch(ne){throw console.error("Failed to save API key:",ne),ne}},removeApiKey:async()=>{try{await S(""),p(!1),H()}catch(q){console.error("Failed to remove API key:",q),P()}},saveCredentials:async({username:q,applicationPassword:J})=>{try{let de=(await S({username:q,password:J}))?.[t];if(!de?.username||!de?.password)throw new Error((0,fe.__)("It was not possible to save these credentials."));p(!0),N()}catch(ne){throw console.error("Failed to save credentials:",ne),ne}},removeCredentials:async()=>{try{await S({username:"",password:""}),p(!1),H()}catch(q){console.error("Failed to remove credentials:",q),P()}}}}var cf=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364l2.0201-1.1685a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.4043-.6813zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z",fill:"currentColor"})),lf=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("path",{d:"M6.2 21.024L12.416 17.536L12.52 17.232L12.416 17.064H12.112L11.072 17L7.52 16.904L4.44 16.776L1.456 16.616L0.704 16.456L0 15.528L0.072 15.064L0.704 14.64L1.608 14.72L3.608 14.856L6.608 15.064L8.784 15.192L12.008 15.528H12.52L12.592 15.32L12.416 15.192L12.28 15.064L9.176 12.96L5.816 10.736L4.056 9.456L3.104 8.808L2.624 8.2L2.416 6.872L3.28 5.92L4.44 6L4.736 6.08L5.912 6.984L8.424 8.928L11.704 11.344L12.184 11.744L12.376 11.608L12.4 11.512L12.184 11.152L10.4 7.928L8.496 4.648L7.648 3.288L7.424 2.472C7.344 2.136 7.288 1.856 7.288 1.512L8.272 0.176L8.816 0L10.128 0.176L10.68 0.656L11.496 2.52L12.816 5.456L14.864 9.448L15.464 10.632L15.784 11.728L15.904 12.064H16.112V11.872L16.28 9.624L16.592 6.864L16.896 3.312L17 2.312L17.496 1.112L18.48 0.464L19.248 0.832L19.88 1.736L19.792 2.32L19.416 4.76L18.68 8.584L18.2 11.144H18.48L18.8 10.824L20.096 9.104L22.272 6.384L23.232 5.304L24.352 4.112L25.072 3.544H26.432L27.432 5.032L26.984 6.568L25.584 8.344L24.424 9.848L22.76 12.088L21.72 13.88L21.816 14.024L22.064 14L25.824 13.2L27.856 12.832L30.28 12.416L31.376 12.928L31.496 13.448L31.064 14.512L28.472 15.152L25.432 15.76L20.904 16.832L20.848 16.872L20.912 16.952L22.952 17.144L23.824 17.192H25.96L29.936 17.488L30.976 18.176L31.6 19.016L31.496 19.656L29.896 20.472L27.736 19.96L22.696 18.76L20.968 18.328H20.728V18.472L22.168 19.88L24.808 22.264L28.112 25.336L28.28 26.096L27.856 26.696L27.408 26.632L24.504 24.448L23.384 23.464L20.848 21.328H20.68V21.552L21.264 22.408L24.352 27.048L24.512 28.472L24.288 28.936L23.488 29.216L22.608 29.056L20.8 26.52L18.936 23.664L17.432 21.104L17.248 21.208L16.36 30.768L15.944 31.256L14.984 31.624L14.184 31.016L13.76 30.032L14.184 28.088L14.696 25.552L15.112 23.536L15.488 21.032L15.712 20.2L15.696 20.144L15.512 20.168L13.624 22.76L10.752 26.64L8.48 29.072L7.936 29.288L6.992 28.8L7.08 27.928L7.608 27.152L10.752 23.152L12.648 20.672L13.872 19.24L13.864 19.032H13.792L5.44 24.456L3.952 24.648L3.312 24.048L3.392 23.064L3.696 22.744L6.208 21.016L6.2 21.024Z",fill:"#D97757"})),df=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4V28C32 30.2091 30.2091 32 28 32H4C1.79086 32 0 30.2091 0 28V4Z",fill:"#F0F0F0"}),React.createElement("path",{d:"M14.5 8V12H17.5V8H19V12H20.5C20.7652 12 21.0196 12.1054 21.2071 12.2929C21.3946 12.4804 21.5 12.7348 21.5 13V17L18.5 21V23C18.5 23.2652 18.3946 23.5196 18.2071 23.7071C18.0196 23.8946 17.7652 24 17.5 24H14.5C14.2348 24 13.9804 23.8946 13.7929 23.7071C13.6054 23.5196 13.5 23.2652 13.5 23V21L10.5 17V13C10.5 12.7348 10.6054 12.4804 10.7929 12.2929C10.9804 12.1054 11.2348 12 11.5 12H13V8H14.5ZM15 20.5V22.5H17V20.5L20 16.5V13.5H12V16.5L15 20.5Z",fill:"#949494"})),uf=()=>React.createElement("svg",{width:"40",height:"40",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("rect",{width:"44",height:"44",fill:"#357B49",rx:"6"}),React.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"m29.746 28.31-6.392-16.797c-.152-.397-.305-.672-.789-.675-.673 0-1.408.611-1.746 1.316l-7.378 16.154c-.072.16-.143.311-.214.454-.5.995-1.045 1.546-2.357 1.626a.399.399 0 0 0-.16.033l-.01.004a.399.399 0 0 0-.23.392v.01c0 .054.01.106.03.155l.004.01a.416.416 0 0 0 .394.252h6.212a.417.417 0 0 0 .307-.12.416.416 0 0 0 .124-.305.398.398 0 0 0-.105-.302.399.399 0 0 0-.294-.127c-.757 0-2.197-.062-2.197-1.164.02-.318.103-.63.245-.916l1.399-3.152c.52-1.163 1.654-1.163 2.572-1.163h5.843c.023 0 .044 0 .062.003.13.014.16.081.214.242l1.534 4.07a2.857 2.857 0 0 1 .216 1.04c0 .054-.003.104-.01.153-.09.726-.831.887-1.49.887a.4.4 0 0 0-.294.127l-.007.008-.007.008a.401.401 0 0 0-.092.286v.01c0 .054.01.106.03.155l.005.01a.42.42 0 0 0 .395.252h7.011a.413.413 0 0 0 .279-.13.412.412 0 0 0 .11-.297.387.387 0 0 0-.09-.294.388.388 0 0 0-.277-.135c-1.448-.122-2.295-.643-2.847-2.08Zm-11.985-5.844 2.847-6.304c.361-.728.659-1.486.889-2.265 0-.06.03-.092.06-.092s.061.032.061.091c.02.122.045.247.073.374.197.888.584 1.878.914 2.723l.176.453 1.684 4.529a.927.927 0 0 1 .092.4.473.473 0 0 1-.009.094c-.041.202-.228.272-.602.272h-6.063c-.122 0-.184-.03-.184-.092a.36.36 0 0 1 .062-.183Zm17.107-.721c0 .786-.446 1.231-1.25 1.231-.806 0-1.125-.409-1.125-1.034 0-.786.465-1.231 1.25-1.231.785 0 1.125.427 1.125 1.034ZM9.629 23.002c.803 0 1.25-.447 1.25-1.231 0-.607-.343-1.036-1.128-1.036-.785 0-1.25.447-1.25 1.231 0 .625.325 1.036 1.128 1.036Z",clipRule:"evenodd"})),ff=()=>React.createElement("svg",{width:"40",height:"40",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"#3186FF"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-0)"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-1)"}),React.createElement("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"url(#lobe-icons-gemini-fill-2)"}),React.createElement("defs",null,React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-0",x1:"7",x2:"11",y1:"15.5",y2:"12"},React.createElement("stop",{stopColor:"#08B962"}),React.createElement("stop",{offset:"1",stopColor:"#08B962",stopOpacity:"0"})),React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-1",x1:"8",x2:"11.5",y1:"5.5",y2:"11"},React.createElement("stop",{stopColor:"#F94543"}),React.createElement("stop",{offset:"1",stopColor:"#F94543",stopOpacity:"0"})),React.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"lobe-icons-gemini-fill-2",x1:"3.5",x2:"17.5",y1:"13.5",y2:"12"},React.createElement("stop",{stopColor:"#FABC12"}),React.createElement("stop",{offset:".46",stopColor:"#FABC12",stopOpacity:"0"}))));var{store:h0}=Oo(b0);function gf(){try{return JSON.parse(document.getElementById("wp-script-module-data-options-connectors-wp-admin")?.textContent??"{}")}catch{return{}}}function qs(){return gf().connectors??{}}function bf(){return!!gf().isFileModDisabled}var w0={google:ff,openai:cf,anthropic:lf,akismet:uf};function v0(e,t){if(t)return React.createElement("img",{src:t,alt:"",width:40,height:40});let o=w0[e];return React.createElement(o||df,null)}var _0=()=>React.createElement("span",{style:{color:"#345b37",backgroundColor:"#eff8f0",padding:"4px 12px",borderRadius:"2px",fontSize:"13px",fontWeight:"var(--wpds-typography-font-weight-emphasis)",whiteSpace:"nowrap"}},(0,oo.__)("Connected")),y0=({slug:e})=>React.createElement($o,{href:(0,oo.sprintf)((0,oo.__)("https://wordpress.org/plugins/%s/"),e),openInNewTab:!0},(0,oo.__)("Learn more")),x0=()=>React.createElement(zi,null,(0,oo.__)("Not available"));function hf({isConnected:e,showUnavailableBadge:t,pluginSlug:o,isExpanded:n,isBusy:r,pluginStatus:i,actionButtonRef:s,handleButtonClick:a,getButtonLabel:l}){return React.createElement(wr.__experimentalHStack,{spacing:3,expanded:!1},e&&React.createElement(_0,null),t&&(o?React.createElement(y0,{slug:o}):React.createElement(x0,null)),!t&&React.createElement(wr.Button,{ref:s,variant:n||e?"tertiary":"secondary",size:"compact",onClick:a,disabled:i==="checking"||r,isBusy:r,accessibleWhenDisabled:!0},l()))}function wf(e){let t=e?.replace(/\.php$/,"");return t?.includes("/")?t.split("/")[0]:t}function R0({name:e,description:t,logo:o,authentication:n,plugin:r}){let i=n?.method==="api_key"?n:void 0,s=i?.settingName??"",a=i?.credentialsUrl??void 0,l=wf(r?.file),{pluginStatus:c,canInstallPlugins:d,canActivatePlugins:f,isExpanded:p,setIsExpanded:m,isBusy:u,isConnected:g,currentApiKey:v,hasResolvedSettings:_,keySource:w,handleButtonClick:y,getButtonLabel:h,saveApiKey:T,removeApiKey:x}=Xs({file:r?.file,settingName:s,connectorName:e,isInstalled:r?.isInstalled,isActivated:r?.isActivated,keySource:i?.keySource,initialIsConnected:i?.isConnected}),R=w==="env"||w==="constant",E=c==="not-installed"&&d===!1||c==="inactive"&&f===!1,k=(0,Ks.useRef)(null);return React.createElement(pf,{className:l?`connector-item--${l}`:void 0,logo:o,name:e,description:t,actionArea:React.createElement(hf,{isConnected:g,showUnavailableBadge:E,pluginSlug:l,isExpanded:p,isBusy:u,pluginStatus:c,actionButtonRef:k,handleButtonClick:y,getButtonLabel:h})},p&&c==="active"&&_&&React.createElement(m0,{key:g?"connected":"setup",initialValue:R?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":v,helpUrl:a,readOnly:g||R,keySource:w,onRemove:R?void 0:async()=>{await x(),k.current?.focus()},onSave:async C=>{await T(C),m(!1),k.current?.focus()}}))}function S0({name:e,description:t,logo:o,authentication:n,plugin:r}){let i=n?.method==="application_password"?n:void 0,s=i?.settingName??"",a=i?.credentialsUrl??void 0,l=wf(r?.file),{pluginStatus:c,canInstallPlugins:d,canActivatePlugins:f,isExpanded:p,setIsExpanded:m,isBusy:u,isConnected:g,currentUsername:v,hasResolvedSettings:_,keySource:w,handleButtonClick:y,getButtonLabel:h,saveCredentials:T,removeCredentials:x}=Xs({file:r?.file,settingName:s,connectorName:e,isInstalled:r?.isInstalled,isActivated:r?.isActivated,keySource:i?.keySource,initialIsConnected:i?.isConnected}),R=w==="env"||w==="constant",E=(0,Ks.useRef)(null),k=c==="not-installed"&&d===!1||c==="inactive"&&f===!1;return React.createElement(pf,{className:l?`connector-item--${l}`:void 0,logo:o,name:e,description:t,actionArea:React.createElement(hf,{isConnected:g,showUnavailableBadge:k,pluginSlug:l,isExpanded:p,isBusy:u,pluginStatus:c,actionButtonRef:E,handleButtonClick:y,getButtonLabel:h})},p&&c==="active"&&_&&React.createElement(g0,{key:g?"connected":"setup",initialUsername:R?"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022":v,helpUrl:a,readOnly:g||R,keySource:w,onRemove:R?void 0:async()=>{await x(),E.current?.focus()},onSave:async C=>{await T(C),m(!1),E.current?.focus()}}))}function vf(){let e=qs(),t=o=>o.replace(/[^a-z0-9-_]/gi,"-");for(let[o,n]of Object.entries(e)){if(o==="akismet"&&!n.plugin?.isInstalled)continue;let{authentication:r}=n,i=t(o),s={name:n.name,description:n.description,type:n.type,logo:v0(o,n.logoUrl),authentication:r,plugin:n.plugin},a=Oo((0,mf.select)(h0)).getConnector(i);r.method==="api_key"&&!a?.render?s.render=R0:r.method==="application_password"&&!a?.render&&(s.render=S0),p0(i,s)}}function _f(){return React.createElement("div",{className:"ai-plugin-callout__decoration","aria-hidden":"true"},React.createElement("svg",{viewBox:"0 0 248 248",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",focusable:"false",style:{width:"100%",height:"100%"}},React.createElement("image",{href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAQAElEQVR4AezdC3ojWW5tYflOzPbIbI/M9sh8+WdrdZ+KpiiKL5FB5KedwN7AeSFIpHRYmfX/PubXVGAqMBV4kQpMw3qRBzXbnApMBT4+pmHNq2AqMBV4mQpMw3qZR3X9RmeGqcCrV2Aa1qs/wdn/VOCNKjAN640e9hx1KvDqFZiG9epPcPY/FThWgZ1q07B2+mDnWFOBPVZgGtYen+qcaSqw0wpMw9rpg51jTQX2WIFpWMee6mhTganAU1ZgGtZTPpbZ1FRgKnCsAtOwjlVltKnAVOApKzAN6ykfy2zqcRWYlV6pAtOwXulpzV6nAm9egWlYb/4CmONPBV6pAtOwXulpve9e//Nw9P/7xL8d7Hy9aQWubFhvWrU59qMr8D+HBcPBna93rcA0rHd98q91bs3q3w9bBv7Bna93rMA0rHd86nPmqcCLVmAa1os+uF/Y9m8u6Q7rvw8bgLnDOhTiXb+mYb3rk3+tc//rYbsaVTjQP18amct4+h9hftt3BaZh7fv57v107rNg7+ec831WYBrWZyHGPHUF/vewu//6xNqg+HMRfyjMrb+edb5pWM/6ZGZfawX86Bc0qTU2/htVYBrWGz3sOepU4NUrMA3r1Z/g7H8q8EYVmIZ1h4c9U04FpgL3qcA0rPvUdWadCkwF7lCBaVh3KOpMORWYCtynAtOw7lPXmfVdKjDnfGgFpmE9tNyz2FRgKnBNBaZhXVO9GTsVmAo8tALTsB5a7llsKjAVuKYCv9uwrtn5jJ0KTAXergLTsN7ukc+BpwKvW4FpWK/77GbnU4G3q8A0rLd75L914Fl3KnB9BaZhXV/DmWEqMBV4UAWmYT2o0LPMVGAqcH0FpmFdX8OZYSowFfhrBe7GpmHdrbQz8VRgKnDrCkzDunVFZ76pwFTgbhWYhnW30s7EU4GpwK0rMA3r1hW9fr6ZYSowFfiiAtOwvijMyFOBqcDzVWAa1vM9k9nRVGAq8EUFpmF9UZiRpwKPqMCs8bMKTMP6Wb0meyowFfjFCkzD+sXiz9JTganAzyowDetn9ZrsqcBU4Bcr8NIN6xfrNktPBaYCv1CBaVi/UPRZciowFbisAtOwLqvbjJoKTAV+oQLTsH6h6LPkBRWYIVOBQwWmYR2KMF9TganAa1RgGtZrPKfZ5VRgKnCowDSsQxHmayowFXimCny9l2lYX9dmIlOBqcCTVWAa1pM9kNnOVGAq8HUFpmF9XZuJTAWmAk9WgWlYT/ZArt/OzDAV2G8FpmHt99nOyaYCu6vANKzdPdK7HOjfDrP+9yf4B/fP138efoeDma+pwP0rMA3r/jXewwqaVFjP8x8HAmIHd74eXIG3W24a1ts98pse+H8Os8HBzNdU4P4VmIZ1/xrvYQU/9v3L4SCwNqh/P2iwagdpvqYC96nANKz71HVmnQpMBe5QgXduWHco526n9B3W9tJ91fi7Pfwc7HkqMA3reZ7FM+/kXw+bc7EeDvTPV1z8jzC/TQXuWYFpWPes7sw9FZgK3LQC07BuWs7dTva/h5P91ye6YGfT2EP4eb9mZ/uowDSsfTzHe5/CHVXQqKzHbjX6YCpwtwpMw7pbaX808f8dsoN7oQOdr6nAVGBbgWlY24o8hvvEzXcnp1YTl3cq51ExTdRe7GldE6ev2vhTgbtV4KyGdbfV33diDeC7T9bE5T1LlezFntb94PRVG38qcLcKTMO6W2lPTuy/GPdfiJfED+6G6Lg8/m/Dnuxne7lOe5Y9/naNZv0HVGAa1gOKfMYSGkI4I/1XUp59f79SlFn0sRWYhvXYereaex/3PyunQT9iiePlPMbOKlOBJ67ANKzfeTiakvufVsdDmjgtPnYq8PYVmIb1Oy8B9z7uf06tLi7vVM7EpgJvVYFpWM/xuF1mB3dFz7Gr2cXOK/B6x5uG9RzPzH1VeI4dzS6mAk9YgWlYT/hQZktTganA8QpMwzpel1GnAlOBJ6zANKyLH8oMnApMBR5dgWlYj674rDcVmApcXIFpWBeXbgZOBaYCj67ANKxHV3zWe8UKzJ6fpALTsJ7kQcw2pgJTge8rMA3r+xpNxlRgKvAkFZiG9SQPYrYxFZgKfF+BRzSs73cxGVOBqcBU4IwKTMM6o0iTMhWYCjxHBaZhPcdzmF1MBaYCZ1RgGtYZRXrSFP9Wln/gD/htEwd/mTqNT4Nyj2ny+7/3sDgYh4NxNBYHcdrH4Tc8HOifL/E044hsmjgN0tj2Ko6DcfLE8EADcfmAg1w64IMXrcA0rNd5cN6Y3njrjnE4pvkHANP58iCNxQO+B3x11v84HA6c9+DO1ytWYBrW6zw1/6Df/FtZlz8vtYPLZ5iRv16BaVi//gjO3sD2zYb7F0mB30Q4aHBpfBqU68cjHPjl4iHNPy5oDljH4yBeLh7SxNN+Mr7cY+PFmpNtLf52/2suv9yx11TgF8ZOw/qFor/gkt7kKzrCJZox9xzf3GN3WIFpWK/xUN27hHbsuyIXyyBGZ/FAgzgrh7aO59PE5AQaiKfJ2WriNCiPPZabxsqBa8ebw9rAD9agmX+r0QcvVoFpWK/xwLzxvOFcGq87pof0OHtKE5MDLqpxwAMO4mksDfggjgMecBBPY2lsEKdBGouDOB5oEGdx4Ac8pLFpY1+sAtOwfuuBXb+uN/H1s9x2hm0zWH/8u+1KM9tbVmAa1ms8dj/SuEh2odyOXUSHtTGksadyjZETjuWm/e/BKc+4A/1g09iPw69j2kH+OHe8XHMF89GOjaeXx+LAD41nt5rcwYtVYBrWiz2wZbvehBoZ8IVYPNAgzuKw5vK32prLD8dy08xRHosDP5TLbrVtLg7lscbRWDzQIM7isObyaYMXrMA0rBd8aN9s2Y9lodQ4m/ZK1r7Duu80Np0f0n7ZzvK3qsA0rFtV8vHzeFP6r9+Bbwesy/lAgzgrh8YaC+t3I3SclRdoEGflbDU6TYwfaBBn5Ww1fN2nPB820ECcZiweaLDmyqGBcSunDV6sAtOwXuyBPWC73tTe9NulaNuLfhqsuY1nV13eOeONMRb4t4Q93HK+mevBFZiG9eCC33i5ay+S3efAui3fibjc3+o06625OH3VjKOZZ9V9aCB/1XC5q2YczTyrfq7vgt5YWMc076qN/2IVeIGG9WIVfdx2vSG9CaFVaRpDSI+zcuisxgDrHMXYFfLhO018m0eDrY6D2AoapNmjvUN7FcdDueLyQU762B1UYBrWDh7iHGEq8C4VmIa1vyfdJbTvNDqdi/Ww3g3JgfKe1TpT+2+/zpHGtne6HEgbu5MKTMPayYNcjuENC9sL7iXl765LaPi78MvOLZZ3dmc65/y3WG/meGAFpmE9sNhPuJQ7HhffT7i1i7fkTODy/eJJZuBzVmAa1nM+l2t21SW0S+fm4Qdv5lV/hR+dNNXt/p0jje1M6a9wrvY89swKTMM6s1AvnuZNHF7xKO092xnibNrYF6nAJduchnVJ1Z57jO8sQjt1aR3c8aS/inWe7f6dI43tLPSQNnYnFZiGtZMHuRzDhTOsl869gdkl9cOna7Bqz+g7i72H9hhnV00DU4O0sTupwDSsnTzIOcZU4B0qMA3rRZ/yiW27gAYX1aXxw3rf0wV9ec9qfeJ3bP9pbHv346NzqUHa2J1UYBrWTh7kcgwNKSR7E4e0V7LtnXU2e2fxQBvsvALTsHb+gD+P544nfEovZdo7u24cD6s+/k4rMA1rfw/WJTq4eO50/OANvtXjz2pdoLd/31HZp3OksTQQx1n89TEn+HsFpmH9vRRv6XjTw94O70w+Wdzbud7+PNOw9vcScLcDLqq/O52Lafgu75Xizu5M60X8K+1/9nqiAtOwThTnRUPerLD+SORTs+AN3dH4EH9W6zztv3PZdxrb3ukhbexOKrD/hrWTBzXHmApMBT4+pmHt71Xgwhn6TsQJXcIH9zs04AP/meE87b9z2Xca2/7pciBt7E4qMA1rJw9yOYY3LJxz6awRwDL85V1n96niOed/+cO+2wGmYb3bE//reXd21/PncJ3pnA8d/gyY316nAtOwXudZnbvTfzkkgovqg/vnix+8of+Ih9/SDu5Tf/nEr722fzaN7QDp8yNhFdmRnYa1o4d54ijexOFE2tOG2nu2jcbZtLE7rsA0rP09XN9ZhE7nniq440l/Fes82/07Rxr7KmeZfV5RgaVhXTHLDH2mCrhwhvXS2Zs7rHutEazaM/rO0v7Z9sgPac7kU8NpYlVkR3Ya1o4e5hzlLxWYS/e/lGMfZBrWPp7jeoouqNl0fljve3w3sl5Yl/9sVvM5tv80tj07kw8d2LSxO6nANKydPMjlGN6omhIk0wLt1dDe2c7F4uHVzjT7vaAC07AuKNoLDumeh33B7X/Yd/hYfqWxizzuXiswDWt/T9aFM6yXzvywvrnTnr0KPkRor76jsl/nSGNpII6z+GBHFZiGtaOHecFRvOnhgqFPPcSZfLL41Jt81Ob2tM40rD09zb+dxd0OuKj+m/L17y7c4euM14v4zsqZ1ov41zvF7PhoBaZhHS3LS4verOCN20F8ahY0s3Q+xJ/VOk/771z2ncauexeDVRt/BxWYhrWDhzhHmAq8SwWmYX3zpF8w7MIZ+k7EEVzCB/c7NOAD/5nhPO2/c9l3Gtv+6XIgbexOKjANaycPcjmGNyycc+msEcAy/OVdZ/ep4jnnf/nDvtsBpmG92xP/63nd88Bf1ddmzgPnfOjw2id9w91Pw9rfQ3cBDS6qOx0/eDNv9fizWp/4bffvHGlse0//+Y+EzTD2aSswDetpH81NN+ZNHG468YMma+/Zlo2zaWN3XIFpWPt7uL6zCJ0uzrrjSX+Utaa1gW9dFg+0r7Dm8strLJs2dscVmIa1v4frwhnWS2c8rCf26Rqs2j381mZrOCwO617pPghg24uckM6mseVqXs5kjrSxO6nA7RrWTgoyx3iaCmhIT7OZ2chzVGAa1nM8h1vuwgV1aN44u973uJyH8u5lfWJnbWh9Fg+tTXeJ7jultGPjxRrL4mCcM5kDH+yoAtOwdvQwP4/iDQve+J/SBx4+fuFXa7Pti8WBf2pbckK5bBp7avzEdlKBaVg7eZDfHMOPV+Gb1HPCP85pbbbB/BXpx+xXeV/px+YYbQcVmIa1g4e4OYILZ1gvnfnBm7wh8mDVil1jfcezzulSvPXFzC2eJk4DcTqLgzgN0tfxdHkgjrP4YEcVmIa1o4f5w6N4w/9wyFnp5tVgzkr+Iskc6yeHX6R9KV87/suJJ/C7FZiG9bv1v8fq7nbARfWp+eW4rIZTeT+NmdeFN/vTsfKNsyfAf4prx/90vb3nP9X5pmE91eO4yWY0C1h/JPKpWfCGbiE5sGrFrrHb+eyn9a1nbjZNnAbGirE4iJcrRhNPY2lAl8Pigx1VYBrWjh7mHGUqsPcKTMPa3xN24Qy+y+h0LtaD+x06Kwfwe8Ia9gTWtRaLgzjtK8hpoPtu7gAAEABJREFU/+Uan8Y2li4H0sbupALTsO77IH9jdm9YOOfS2uU4yL/3Xq0B6zo4nLPXddwp33zOdMs5T603sQdWYBrWA4s9Sz2kAu6u4LsPHR6ymVnkthWYhnXbej7DbC6gwUV1++EHb2Y6Kw/4tHvBj2fWgdZi29N3nwiKl2ucfbJpLA3SrYkPdlSBaVg7epgnjuJNHE6kPTzUnthTi4uvKPeYVuzhdha8fwWmYd2/xo9ewR0OrN9h8INYe+JD/FmtPR7bfxr7rHuffd2wAtOwbljMJ5nKJ2qwXjq7hA5tUxOQB/z0Z7TtnW2vLB7at+blU0PnShu7kwpMw9rJg5xjTAXeoQJP07DeodgPOqML6tCSx+56aC6rgV/uM1qf+NkjrPvDQ7rvsJxJDdLG7qQC07B28iCXY3jDgjdysjdwWHU+lPes1nnaP98+7TuNpQUxiI/dSQWmYe3kQX5zDPc94ZvUpwy3d3bdIB5WffydVmAa1v4erAtnWC+d+cEb3KlZecCnPQY/X8XFevvvOyx7TmObVRxn08bupALTsHbyIOcYf6mAZrZ+SvqX4JDXrcA0rNd9dl/t3N0NuKj+Kocux8U04HvBXs+1l+dz1TmmYV1Vvqcc7AIa1h+J/JWY4A3dxuXAqhV7Jus87d9+7c2e01ga0OWw+OBXK3Dbxadh3baeM9tUYCpwxwpMw7pjcR8wtbsaaCm+S/SQHmflpL+K9R2Ti3Ro/6zzhM4iJ8hJH7uDCkzDeu2H2Bvz0lNoBHDp+EeO03zCqXXLYU/lTewFKzAN66kf2rebc08D3yZ+kaBZXTP+i2lHngrcpwLTsO5T10fN6jIaWk/zwUN6nJWTzm457dmgsdo7tF8WD+05zspJH7uDCkzD2sFD3BzBmzQUirNpr2btPbT3OHtKKzb2xSswDet1H6A7Gt95AL+T4CFNPKTtwXZOtvPwgzNv9VUr9gx29nBGBaZhnVGkJ03xxvNXVoBvmyweaEC/9oLePM8EZ+qc63/Vnsa2Xw0MB+PSx75YBaZhvdgDm+1OBd65AtOwXvfpu7cJ6ynS2HTfYbiEhrQ9WH+tKHQe515Bx8vj0wYvWIG9NKwXLP3VW/bG04BAQzLhqtFpQQzir26dxbmB33mcO6SJywN++tgXq8A0rBd7YMt23cWERf5IYz/u+Mv8K1rqmFbsEfbY+se0R+xl1rhxBaZh3bigd5rOhfn2r6B4E9LBdw6WXjU67RZo3tYxZ5p1XGbTAA84GNf+jaMBH/iXwFhzs41vbTadxUF+uXScTRv7xBWYhvXED+fJtuZNvX4ad4vtmVMT+dFcS7Lxa7NcQme5144/a5FJul0FpmHdrpb3nMm/beXuBe65zqm5u7Q+lXMqZu+w5vjuZv2nYdbYOb753Fex5+Rvc6x/zfjtfMPvXIFpWHcu8I2m743lzdWUNG924NO9cfFAuwXMaw22+fDWWfeVxq65cmCdo/il1lywjrduKLbulb/ml7Nq4z9pBaZhPemDmW1NBaYCHx8fmyJMw9oU5AmoexXfBbBtpwtrNl2O+x9IK/8aay5Y57CGtcG6YiwO4jTAAw7iacbRrEGHNPq1MJc5oblop9Zfcxsz9gkrMA3r+R6KS2Twhv5ud3JCubg3aPyn1nhvYPanY3+abw245WW+ucwJ3+1HTvgud+JPUIFpWE/wEDZb6IJ9I59N3cnA2QM2ica6YGc3oaFTgd+twDSs363/sdV9d+Rymi2OhxqJ+FYr/285sZ9ZY829jtLAtmvJSRMvP41NE8fB/HQWB3HaLWAuc0LzrXu1Lp2VE2iDJ6/ANKwnf0Cf2/PmCp/SH5PG/hHu9Jv5V7TMJZoxp8YXu9SaP6xzpLHp/JA29okrMA3r+R6O7wZCu4uz7lzS+RC/hbVGaD5rpPHpbBpLA37AYc3lbzX5tHvBmtYAfuvgIU08jZ8+9gkqMA3rdx+CNwS0C74L95AeZ9PkuhwHfvq11hqhueJsa7E4uOg+lntMM47OGgvrePqtz2RO6wB/uz6dBvyAvwjeY5vTsH73OXvzwLFd+FHlmH5P7au93HPNY3PbBxyLjfbGFZiG9bsPvx891l1oVODTwnQ8rFoXxmLp11qX1qG57MUakMYP4sf0NPFy0+Ks+Kr7L9XVJu1aa43OxG8+fkizl2O5xcf+YgWmYf1i8Y8s7c1TE1rfsGmsnIbyIX6tNZd1Q/Ph1gY+XS4OaXQ84CCexqd9NV7s1rCWdYFvfrY9sTSQE/DBE1VgGtafh/FUv/lRKLSxOJt2L2uN0Bpx9pj2lX4q15gV5T7SHlv/mPbIPc1aJyowDetEce4c8qf4uX9dxCV08IZqa3yIX2vN1Tps87mExsG+6WuuOA3kBBzE04yjsWniNDA/ncVvAWtVa745WesEGsRZOTTg33JP5hz8sALTsH5YsCdL9yaCJ9vWVdvxiaEzsVdNdOPBmirceNqZ7icVmIb1k2rdNtcdSrh0Zn/iw6Xjn3GcS291YW+5P3PCpXO6iF/vui6dZ8ZdUYFpWFcU78qh3jzeAFDTofmELLREnJWTfmtrbmuE5rfHtPbKpomXm8amieNgHJ3FQZwGdJzFbwHnMifwzclaO9AgzsqhAR/4g1+qwDSsXyr8LDsVmAr8vALTsH5es0tGuJPxHQM0nu9iF8TpLB5oEGfl0G453lzmNLc1Ag3E0+RsNXEalMfiII7DT8Yfy01jzResA3FWDu3Y+mJygjyIs3Jo63g+bfALFfhpw/qFLe5iSZe1sF4k870hQgeNs6c0MTkBhziLAz/gIc1etppYmjge0uPiW00sTRwP6XHxrSaWJo6H9Dh7ShOTE3CIszjwAx7S7CVt7IMrMA3rwQWf5aYCU4HLKzAN6/La/WSky16XuGzj+tSJ1mUui4dy46wcuh9NcEhj8SAP4qwc2jreXmhicgINxNPk0I6Np5fH4nDp+NY6Nl7MGsE6EGfl0Na9prFygjyIs3Jo63h7oQ1+oQLTsH6h6J9LejOs+JQ/ztU+Dr/OzT2Wdxj+cUz/u/bxj1+rxi/CD+dq8s/NPZZ3yXjzGBdwiLM48AMe0ti0sQ+uwDSsxxTcn9DBXYhV2a1GT2Nx4AfjaOxWo6exOPCDcTQ2jaUBP+Cw5vK3mnwa8AMOxqTxaZDG4sAP5bJbbZuLQ3mscTQWBz4N8IBDnC2XxYM8iLP44M4VmIZ15wJ/Tu/CPXxKH3HWG4LO4oEGcRaHNZe/1dZcfpAHxqR1kbxqYvKAH+TQ2LTG09NYOV9p3uRy4KvxxoKc0JxsGisP+AGHNZe/1eTTgB9wMCbtu73KH9ypAtOw7lTYN53WG/tNj/7ix36R7U/DesyDcu+xwqr+6kkaHtLYn2ryjQs4xFkc+MFeaJDG4iCOAw78IL7VitHFV06Ls+I0wAMO4luNnsbiwA84xFk84OFczV7KdQEf0sbesQLTsO5Y3GVqnziFZD8SpfHp3jxpLA34QQ6NTbv3ePOfWkvcnqA8FgdxHPi0Y/unywlyaMak8WliaSwN+EEOjU271XjzmivggztXYBrWnQv8Ob0flcKn9BHPfnz+irOf0gc/fCy/0thkfjiliZXH4sAPOMSzNIizOPADDvEsDeIsDvyAQzxLgziLAz/gIY39qSbfuIBDnMUHd67ANKxbFPgfc3jh9u8u+ZO3iL/mEeTQXeJuNbE0Vh7wgxya+beaWBorD/hBDm0dby80sfJYGojjIId2bDxdTsDh0vGtdWy8WOuw1gF+kENb95rGlsfKA36QQ1vH2wtNrDyWFsTyx96wAtOwbljMmWoq8FkBDUyT+6RjblWBaVi3quQ/5nFfEv6hjvdOFfC3GrwG3unMDznrNKzbltmLtMtdfrN7AYd0eWn9aSyWxp4ab4wc4Mu9dLy9nBovbh1oLRYHceMBDziIpxlHY9PEaZDGOg9NHAfjaGJ4oEGclUMzBgc+TQwPNIizcmjG4P/y8fFhLzSxNJa2Qnzl49+gAtOwblDEmWIqMBV4TAWmYV1XZ5er0Cz+JHZ/Afx0PJQvvtXE0thHjbcXa321vrj9gBy5q8angZyAg3jaT8Yfy01jm5O1DvCDHNqx9cXKY+UBP8ihreP5NLHyWBqI4yCHNrhRBaZhXV5IL0Yvyj41aiY6rH+FAw/liaex6fxwShMrj8WBH3CIs3jAwV62Gj1NHA/pcfGtJpYmjof0uPhWE0sTx0N6nD2lickJOMRZHPgBD2n2stXE0sRxSBt7owo8uGHdaNfPM417ivW/fH6enc1OpgI7rMA0rMsfqmblAtaPAM1C669qsOn8IIeu0W01epq5cUhjG8/iwJcHOPxkvHxjgR9wOLZXa5bHygN+wOHS8db4ajy9dVgc+KHx7Fbb5uJQHmscjcUDDeIsDny1B+NogxtVYBrWjQr5OY0XqAYG/E/5Aw8fn7/ibLksDvzP1A88fHz+Ek/jk9mtRk9jcTiWu2prLj/I+Wo8vTwWB364x3hzWwf4AQdrpvG3mhgN+AEHY9L4W02MBuIBH9ywAtOwLi+mOwovVOCbicUDDeKsHBqLA58GeMAhzpbL4sCXB3jAIc6Wy+JBHsRZHNZc/lZbc/kA8sAYHPhbjU4DfjiWm7bNxaGxbLksDnx5gAcc4my5LB7kQZzFYc3lb7U1V2zwgwpMw/pBsTapLtvD+sJMc/nakDT2mHZs/Fe5jTdGDvDpLB5oEGdxWHPb66qtufwg56vx9PJYHPjhHuPNbR3gBxysmcbfamI04AccjEm7Za3MPfhBBaZh/aBYkzoVmAr8bgWmYV1efxfJ27uKOCve7HhIE99qYmksDvyAQ5zFAx7O1ezlVK74qTnFHz3eeu2JxYEfcIizeMDDudotz9qaL28fdYBpWJdX2l2ET4KAbyYvfhzS6HiQQxNP49PE0lga8IMcGpt27/HmP7WWuD1BeSwO4jjwacf2T5cT5NCMSePTxNJYGvCDHBqbdu/x5j+1lrg9DS6owDSsC4r2OcS9xopP+eMSzZiPz1/88Cl9xNmP5RcekuPsKU1MTsAhzuLAX0GDSzRjjAV+wCHO4sBfQYNztZ/kHpvz0vHmMhb4AR9cUIFpWOcVzZ+K/qt2thEuYWnghUgXx0GcBngoV3yriaWxxgI/yKGta6Wx5bHygB/k0Nbx9kITK4+lgTgOcmjHxtPlBBwuHd9ax8aLtQ5rHeAHObR1r2lseaw84Ac5tHW8vdDEymNpII6DHNqx8fTBDyswDeu8gvlkyIuPPW/ED7Im9a0r4B98fOsC/OTw07DOq5aLVvcg7HkjJmsqcF4Fjv3TNOeNfMOsaVjnPXTf0rtIZRuBe7FBOouDeLl40Pjo4mnG0cTSWBrwgxyaMWl8mlgaSwN+kEMzJs1eaGJpLA3EcTCOxuIgTgM84CCeZhyNTROnQRprPzRxHIyjieGBBnFWDs0YHPg0MTzQIM7KoRmDg73QxPBAA/E042hsmjhtcEEFpmFdUFjYef8AAA5ZSURBVLQZMhW4uAIz8KoKTMP65/K5q4I14gI1FPOn5ilNvDnKY0+NF5MTHjW+vX61vnh7kmNfq8anQXksDuI4/GT8sdw01nzBOhBn5dCOrS8mJ8iDOCuHto7n08TkBBqIp8nZauI0KI/FB99UYBrWPxfIiwd6scngBxxcwKexNOCDOA54wEE8jaUBP+AQZ/GAh59q8htrLziksTiI44EGcXEc0lgcxPFAg7g4DmksDuJ4oEGcxYEf8JDG/lSTbxzYCw54wEE8jaUBH8RxwAM++KYC07C+KdCEpwJTgeepwGs1rMfUrctRl6qt6N84Cuk+MdxqYmnsT8fLNw7Wy1k8WEMeu9XoaSwO/GAcjU1jacAPOFx6VmPh0vH2+NV4evtkceCD+jWepQFfHuABhzhbLosHeRBncfjJWe0xGDv4pgLTsL4p0GfYvUP4lD7irBf0x+EXiwP/IP35wsMf4fBbnC2XxYF/SPvzhYc/wuE38TT+Qfpg09iPz1/88Cl9rLn8j8Mvtjz2IP354gc5RHar0dNYHPjBOBq71ehpLA78YByNTWNpwAdxHPg04G81Og34AQdj0vhbTYwG/HAsN00uP+CDbyowDeuvBXKf0IuNLcoPcujsVqOnsTjwg3E0dqvR01gc+ME4GrvV6GksDvxgHI1NY2nADzisufytJp8G/ICDMWl8GqSxOPBDuexW2+biUB5rHI3FgU8DPOAgnsbfamI04AccjEnjbzUxGvADDsYEfLBUYBrWUoyD64Xir1bAejmKh0Pan684axzRiw+HS8abx9hgToizOKy5/K225vKDPDAmrb2umpg84Ac5NDat8fQ0Fgd+MI72Ta0+5MsDfmg8m8bKA37AYc3lbzX5NOAHHIxJ66yrJiYP+EEOjU1rPD2NxUGuD30AHywVmIa1FONM17fwZ6ZO2gtWQMN4wW2/x5anYf31OWtGweVp0TQ2TRyHNH4QP6aniZebxqaxOPADDnEWD3g4V7OXU7nip+YUf/R467UnFgd+wCHO4gEP52r3Pqv9uMSH9jT2swLTsD4L8Wm8WPrUxo8sn/Kf/z15epp4Gp9+zng5co05NV5MHvBD49k0c8lbNTEa8IMcGpv23XjxU7ni5oTyWBzEceDTjq1PlxPk0IxJ49PE0lga8IMcGpt27/HmP7WWuD1BeSwO9ioH8HfA2WechvXPpfIjQSgaZ49pX+nHco9pl4w3j3EBhziLAz/gIY09V/tJ7rE5f2O8fVg34BBnceAHPKSx52o/yT025zq++Fvbd29Y/hSDXgR8l52wXoTioVzxtF5Y54wv99h4seZkW4sf5NDXtdLY8lh5wA9yaOt4e6GJlcfSQBwHObRj4+lyAg6Xjm+tY+PFWoe1DvCDHNq61zS2PFYeHFtrHS8u79rx5rBuwMH8adagDT4r8M4Ny4vBi2P91OazLGOmAlOBZ6zAOzcsz8PFJvBfFbPv21bAH2S3nXFmu1kF3rlhdbnJVlDf+vdXc9aL0DS2XHEcjKOzOIjTAA+tJ55mnDyxNJYG/CCHZkwanyaWxtKAH+TQjEmzF5pYGksDcRyMo7E4iNMADziIpxlHY9PEaZDG2g9NHAfjaGJ4oEGclUMzBgc+TQwPNIizcmjG4GAvNDE80EA8zTgamyZOgzQWB3EcjKMNPivwzg3rswRjpgJTgVepwDs3LH96bS83V43fcyyPTRPHoR8jVo1frpxwLDeNLY991Pj2+tX64vYDcuxr1fg0kBNwEE/7yfhjuWlsc7LWAX6QQzu2vlh5rDw4lrtqfHnXjjeHdQMO5k+zBg3o/3lwVu1A3+vrnRuWy3YPP/Tk4+JbTSxNHA/pcfGtJpYmjof0OHtKE5MTcIizOPADHtLsZauJpYnjIT0uvtXE0sTxkB4X32piaeJ4SI+zpzQxOQGHOIvDuhYe5ID4VqOnieMhPS6+1cTSxPGQ7gMioKe9nX3nhvV2D3sOfFYF3rohnFWhX0x654blr1j4hBBcoHoMLB5oEGdxuHS8Nb4aT7dGwCHONp7FgS8P8IBDnC2XxYM8iLM4XHpWY+HS8fb41Xi6PQYc4i6vG8+m8+VBGosDP5TLprHygB9wuPSsxsKx8XSX8OBHQ/wt8VYNa/OEPfjgBSnMbjV6GosDPxhHY7caPY3FgR+Mo7FpLA34AYc1l7/V5NOAH3AwJo2/1cRowA/HctO2uTg0li2XxYEvD/CAQ5wtl8WDPIiL48Df6qsmJg/4AYc1l7/V5NOAH47lpm1zcWgsu+aKvT3epWH5Nj/00HEvCuDTWTzQIM7KobE48LcanQb8cCw3bZuLQ2PZclkc+PIADzjE2XJZPMiDOIvDmsvfamsuP8gDY9L4W02MBvxwLDdtm4tDY9lyWRz48gAPOIin8beaGA34AQdj0vhbTYwG/ICDMWn8rSZGe0u8S8PqUxe2B+0CM6wvjDSXn8dyj2n3GG8fx9ZKs6Yc4NNZPNAgzuKw5nbWVVtz+UHOV+Pp5bE48MM9xpvbOsAPOFgzjb/VxGjgNYIDDsbg8Ey1sre3wrs0rLd6qHPYj4+PKcIuK/AuDauLUbYH6XLTHQGk8YP4MT1NvNy0OCt+TE8TlwdpLB5wiLM48AMe0thzNXs5lStuPjiWJ35MTxM3FtL4QfyYniZebhqbxuLADzjEWTzg4VzNXk7lip+aU/xW45vnbey7NCw/94ceLu6TJODTvdBwSKPjQQ5NPI1PE9tq9DRWDs0YHPg0MTzQIM7KobE43Hu8+a0D/K/Wp8sJOBiTxqcd2z+9PFYOzRgc+DQxPNAgzsqhsTjce7z5rQP8r9anywk4GJPGpx3bP/3t8C4N6+0e7Bx4KrDHChxvWPs7qYtU6E8sJ8T/7+BAOouD+CH85wsPLmCJ4mnG0dg0cRqksafGi8kJxkKclUNb1+LTxOQEGsRZOTRjcGivYniQB+JpxtHYNHEapLE4iONgHI3FQZwGeLAfmniacTSxNJYG/CCHZkwanyaWxtKAH+TQjEmzF5pYGksDcRyMo7E4iNMADziIpxlHY9PEaW+Jd2lYXlzQJzxv+bDn0FOBV6/AuzQsdwCwXni++rOb/U8F3q4C79KwtpeYHjTNX3UA33LTWBzEaYAHjY8mnmYcjU0Tp0Eae2q8mJxgLMRZObR1LT5NTE6gQZyVQzPmXz4+PmjtVQwP8kA8zTgamyZOgzQWB3EcjKOxOIjTAA/2QxNPM44mlsbSgB/k0IxJ49PE0lga8IMcmjFp9kITS2NpII6DcTQWB3Ea4AEH8TTjaGyaOO0t8S4N6y0f7hx6KrC3Crxzw/KnlgtMcL/l2a4anwZywrHcNLa8a8ebx9rAD9agmX+riaWx8oAf5NDW8XyaWHksDcRxkLPVxGkgJ+AgnvaT8cdy09jmZK0D/CCHdmx9sfJYecAPcmjreD5NrDyWBuI4yNlq4jSQE3AQT2s8nQ/8t8U7NywX8F4AsL4AcBBPx0OaeBpLZ4M4DdJYHMTxQIM4iwM/4CGN/akm3ziwFxzwgIN4GksDPojjgAccxNNYGvBBHAc84CCextKAH3CIs3jAw081+Y21FxzSWBzE8UCDuDgOaSwO4niggb8WpJHR8Uvw8mPeuWG9/MObA7xVBXxg5N7srQ69Pew7Nyx/TccFJvRCYOmhesVZOXQvIBzSWDzIgzgrh3ZsPF1OwCHONp7FgS8PcHAuHPBQLpvGygN+wOHYXh8x3hpfrU9vnywO/NB4dqttc3EojzWOxuKBBnEWh3vUyrx+VPRM7QV/S7xzw/LgQw8f98IAfjoejmnlsuXxj+Ue08plG88ey01bc/l01jjg0wAPOIin8beaGA344Vhu2jYXh8ay5bI48OUBHnCIs+WyeJAHcRaHNZe/1dZcfpAHxqTxt5oYDfjhWG7aNheHxrJrrtjb450b1rGH735gRTlePEGczp7SxOQBPxhHY7caPY3FgR+Mo7FbjZ7G4sAPxtHYNJYG/IDDmsvfavJpwA84GJPG32piNOCHY7lp21wcGsuWy+LAlwd4wCHOlsviQR7EWRzWXP5WW3P5QR4YE/DBUoFpWEsxDq4XiotNcMl5kP588cMf4fBbnDXuIH2wOLg8/fj8hYdP6SPOGkdn8UCDOIvDmsvfamsuP8gDY9La66qJyQN+kENj0xpPT2Nx4AfjaGzatePNY07gBxzWtfhbTT4N+AEHY9La66qJyQN+kENj0xpPT2NxkOv1B3za4LMC07A+CzFmKjAVeP4KTMP66zNyZxBcnhZNY9PEcUjjB/Fjepp4uWlsGosDP+AQZ/GAh3M1ezmVK35qTvFHj7dee2Jx4Acc4iwe8PAX7UDoB/Pnix/ufVbruMQH/p8NzG9/q8A0rL/Vod+9QHwSA+4W0vEghy6exqeJbTV6GiuHZgwOfJoYHmgQZ+XQWBzuPd781gH+V+vT5QQcjEnj047tn14eK4dmDA58mhgeaBBn5dBYHO493vzWAf5X69PlBBzs1TjAB0sFpmEtxRh3KjAVeO4KTMN67ufzTLv7yQXwT3Kf6YyzlyevwF0a1pOfebZ3ugKajX8sbpvlkyyxVceP/ejiE641b/ypwE0qMA3rJmXc1STuUPxTJttDuWsRW3X8WMM6Nn4dN/5U4KIKTMO6qGwzaCowFfiNCkzD+o2q72nNOctU4IEVmIb1wGLPUlOBqcB1FZiGdV39ZvRUYCrwwApMw3pgsWepqcBrV+D3dz8N6/efwexgKjAVOLMC07DOLNSkTQWmAr9fgWlYv/8MZgdTganAmRWYhnVmoa5PmxmmAlOBayswDevaCs74qcBU4GEVmIb1sFLPQlOBqcC1FZiGdW0FZ/xU4J8rMMqdKjAN606FnWmnAlOB21dgGtbtazozTgWmAneqwDSsOxV2pp0KTAVuX4H/DwAA//9sB2hHAAAABklEQVQDAB9QlitZA9bLAAAAAElFTkSuQmCC",width:"248",height:"248",style:{mixBlendMode:"multiply"}})))}var E0="ai",T0="ai-wp-admin",Zs="ai/ai",k0="https://wordpress.org/plugins/ai/",Js=Object.values(qs()),P0=Js.some(e=>e.type==="ai_provider"),Rf=[];for(let e of Js)e.type==="ai_provider"&&e.authentication.method==="api_key"&&Rf.push(e.authentication.settingName);function Sf(){let[e,t]=(0,vt.useState)(!1),[o,n]=(0,vt.useState)(!1),r=(0,vt.useRef)(null);(0,vt.useEffect)(()=>{o&&r.current?.focus()},[o]);let i=(0,vt.useRef)(Js.some(T=>T.type==="ai_provider"&&T.authentication.method==="api_key"&&T.authentication.isConnected)).current,{pluginStatus:s,canInstallPlugins:a,canManagePlugins:l,hasConnectedProvider:c}=(0,cn.useSelect)(T=>{let x=T(Qs.store),R=!!x.canUser("create",{kind:"root",name:"plugin"}),E=x.getEntityRecord("root","site"),k=i||Rf.some(O=>!!E?.[O]),C=x.getEntityRecord("root","plugin",Zs);return x.hasFinishedResolution("getEntityRecord",["root","plugin",Zs])?C?{pluginStatus:C.status==="active"?"active":"inactive",canInstallPlugins:R,canManagePlugins:!0,hasConnectedProvider:k}:{pluginStatus:"not-installed",canInstallPlugins:R,canManagePlugins:R,hasConnectedProvider:k}:{pluginStatus:"checking",canInstallPlugins:R,canManagePlugins:void 0,hasConnectedProvider:k}},[]),{saveEntityRecord:d}=(0,cn.useDispatch)(Qs.store),{createSuccessNotice:f,createErrorNotice:p}=(0,cn.useDispatch)(yf.store),m=async()=>{t(!0);try{await d("root","plugin",{slug:E0,status:"active"},{throwOnError:!0}),n(!0),f((0,Ge.__)("AI plugin installed and activated successfully."),{id:"ai-plugin-install-success",type:"snackbar"})}catch{p((0,Ge.__)("Failed to install the AI plugin."),{id:"ai-plugin-install-error",type:"snackbar"})}finally{t(!1)}},u=async()=>{t(!0);try{await d("root","plugin",{plugin:Zs,status:"active"},{throwOnError:!0}),n(!0),f((0,Ge.__)("AI plugin activated successfully."),{id:"ai-plugin-activate-success",type:"snackbar"})}catch{p((0,Ge.__)("Failed to activate the AI plugin."),{id:"ai-plugin-activate-error",type:"snackbar"})}finally{t(!1)}};if(!P0||s==="checking"||s==="active"&&i&&!o||s==="inactive"&&l===!1)return null;let g=s==="active"&&!c,v=s==="active"&&c&&(!i||o),_=s==="not-installed"||s==="inactive",w=s==="not-installed"&&a===!1,y=()=>v?(0,Ge.__)("The <strong>AI plugin</strong> is ready to use. You can use it to generate featured images, alt text, titles, excerpts and more. <a>Learn more</a>"):g?(0,Ge.__)("The <strong>AI plugin</strong> is installed. Connect an AI provider below to generate featured images, alt text, titles, excerpts, and more. <a>Learn more</a>"):(0,Ge.__)("The <strong>AI plugin</strong> can use your AI connectors to generate featured images, alt text, titles, excerpts and more. <a>Learn more</a>"),h=()=>s==="not-installed"?{label:e?(0,Ge.__)("Installing\u2026"):(0,Ge.__)("Install the AI plugin"),disabled:e,onClick:e?void 0:m}:{label:e?(0,Ge.__)("Activating\u2026"):(0,Ge.__)("Activate the AI plugin"),disabled:e,onClick:e?void 0:u};return React.createElement("div",{className:"ai-plugin-callout"},React.createElement("div",{className:"ai-plugin-callout__content"},React.createElement("p",null,(0,vt.createInterpolateElement)(y(),{strong:React.createElement("strong",null),a:React.createElement(an.ExternalLink,{href:k0})})),!w&&(_?React.createElement(an.Button,{variant:"primary",size:"compact",isBusy:e,disabled:h().disabled,accessibleWhenDisabled:!0,onClick:h().onClick},h().label):React.createElement(an.Button,{ref:r,variant:"secondary",size:"compact",href:(0,xf.addQueryArgs)("options-general.php",{page:T0})},(0,Ge.__)("Control features in the AI plugin")))),React.createElement(_f,null))}var{store:A0}=Oo(C0);vf();function O0(){let e=bf(),{connectors:t,canInstallPlugins:o,isAiPluginInstalled:n}=(0,Ef.useSelect)(c=>{let d=c(kf.store),f=d.getEntityRecord("root","plugin","ai/ai");return{connectors:Oo(c(A0)).getConnectors(),canInstallPlugins:d.canUser("create",{kind:"root",name:"plugin"}),isAiPluginInstalled:!!f}},[]),r=t.filter(c=>c.render),i=Array.from(new Set(t.filter(c=>c.type==="ai_provider").map(c=>c.plugin?.file?.split("/")[0]).filter(c=>!!c))).sort(),s=new Set(t.filter(c=>c.plugin?.isInstalled).map(c=>c.plugin?.file?.split("/")[0]).filter(c=>!!c));n&&s.add("ai");let a=["ai",...i].filter(c=>!s.has(c)),l=r.length===0;return React.createElement(Ys,{title:(0,kt.__)("Connectors"),subTitle:(0,kt.__)("All of your API keys and credentials are stored here and shared across plugins. Configure once and use everywhere.")},React.createElement("div",{className:`connectors-page${l?" connectors-page--empty":""}`},a.length>0&&(e||!o)&&React.createElement(en.Root,{intent:"info",className:"connectors-page__file-mods-notice"},React.createElement(en.Description,null,e?(0,kt.__)("Plugins cannot be installed here due to your site configuration. Install them manually using your normal deployment workflow."):(0,kt.__)("You do not have permission to install plugins. Please ask a site administrator to install them for you."))),l?React.createElement(at.__experimentalVStack,{alignment:"center",spacing:3,style:{maxWidth:480}},React.createElement(at.__experimentalVStack,{alignment:"center",spacing:2},React.createElement(at.__experimentalHeading,{level:2,size:15},(0,kt.__)("No connectors yet")),React.createElement(at.__experimentalText,{size:12},(0,kt.__)("Connectors appear here when you install plugins that use external services. Each plugin registers the API keys it needs, and you manage them all in one place."))),React.createElement(at.Button,{variant:"secondary",href:"plugin-install.php",__next40pxDefaultSize:!0},(0,kt.__)("Learn more"))):React.createElement(at.__experimentalVStack,{spacing:3},React.createElement(Sf,null),React.createElement(at.__experimentalVStack,{spacing:3,role:"list"},t.map(c=>c.render?React.createElement(c.render,{key:c.slug,slug:c.slug,name:c.name,description:c.description,type:c.type,logo:c.logo,authentication:c.authentication,plugin:c.plugin}):null))),o&&!e&&React.createElement("p",null,(0,Tf.createInterpolateElement)((0,kt.__)("If the connector you need is not listed, <a>search the plugin directory</a> to see if a connector is available."),{a:React.createElement("a",{href:"plugin-install.php?s=connector&tab=search&type=tag"})}))))}function N0(){return React.createElement(O0,null)}var L0=N0;export{L0 as stage};
/*! Bundled license information:
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
diff --git a/wp-includes/build/routes/font-list/content.js b/wp-includes/build/routes/font-list/content.js
index 47ca7f4007..9683f74f08 100644
--- a/wp-includes/build/routes/font-list/content.js
+++ b/wp-includes/build/routes/font-list/content.js
@@ -78,7 +78,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
}
function useSyncExternalStore$2(subscribe, getSnapshot) {
- didWarnOld18Alpha || void 0 === React48.startTransition || (didWarnOld18Alpha = true, console.error(
+ didWarnOld18Alpha || void 0 === React49.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 = getSnapshot();
@@ -88,7 +88,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
"The result of getSnapshot should be cached to avoid an infinite loop"
), didWarnUncachedGetSnapshot = true);
}
- cachedValue = useState29({
+ cachedValue = useState28({
inst: { value, getSnapshot }
});
var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
@@ -126,8 +126,8 @@ var require_use_sync_external_store_shim_development = __commonJS({
return getSnapshot();
}
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
- var React48 = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is, useState29 = React48.useState, useEffect20 = React48.useEffect, useLayoutEffect4 = React48.useLayoutEffect, useDebugValue2 = React48.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 !== React48.useSyncExternalStore ? React48.useSyncExternalStore : shim;
+ var React49 = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is, useState28 = React49.useState, useEffect20 = React49.useEffect, useLayoutEffect4 = React49.useLayoutEffect, useDebugValue2 = React49.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 !== React49.useSyncExternalStore ? React49.useSyncExternalStore : shim;
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
})();
}
@@ -154,14 +154,14 @@ var require_with_selector_development = __commonJS({
return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
}
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
- var React48 = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore2 = shim.useSyncExternalStore, useRef23 = React48.useRef, useEffect20 = React48.useEffect, useMemo29 = React48.useMemo, useDebugValue2 = React48.useDebugValue;
+ var React49 = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore2 = shim.useSyncExternalStore, useRef23 = React49.useRef, useEffect20 = React49.useEffect, useMemo30 = React49.useMemo, useDebugValue2 = React49.useDebugValue;
exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
var instRef = useRef23(null);
if (null === instRef.current) {
var inst = { hasValue: false, value: null };
instRef.current = inst;
} else inst = instRef.current;
- instRef = useMemo29(
+ instRef = useMemo30(
function() {
function memoizedSelector(nextSnapshot) {
if (!hasMemo) {
@@ -1451,7 +1451,7 @@ function getParentNode(node) {
function getNearestOverflowAncestor(node) {
const parentNode = getParentNode(node);
if (isLastTraversableNode(parentNode)) {
- return node.ownerDocument ? node.ownerDocument.body : node.body;
+ return (node.ownerDocument || node).body;
}
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
return parentNode;
@@ -2198,12 +2198,12 @@ function getOppositePlacement(placement) {
return oppositeSideMap[side] + placement.slice(side.length);
}
function expandPaddingObject(padding) {
+ var _padding$top, _padding$right, _padding$bottom, _padding$left;
return {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0,
- ...padding
+ top: (_padding$top = padding.top) != null ? _padding$top : 0,
+ right: (_padding$right = padding.right) != null ? _padding$right : 0,
+ bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
+ left: (_padding$left = padding.left) != null ? _padding$left : 0
};
}
function getPaddingObject(padding) {
@@ -3248,13 +3248,9 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
y: reference.y
};
}
- switch (getAlignment(placement)) {
- case "start":
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
- break;
- case "end":
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
- break;
+ const alignment = getAlignment(placement);
+ if (alignment) {
+ coords[alignmentAxis] += commonAlign * (alignment === "end" ? 1 : -1) * (rtl && isVertical ? -1 : 1);
}
return coords;
}
@@ -3294,10 +3290,7 @@ async function detectOverflow(state, options) {
height: rects.floating.height
} : rects.reference;
const offsetParent = await (platform3.getOffsetParent == null ? void 0 : platform3.getOffsetParent(elements2.floating));
- const offsetScale = await (platform3.isElement == null ? void 0 : platform3.isElement(offsetParent)) ? await (platform3.getScale == null ? void 0 : platform3.getScale(offsetParent)) || {
- x: 1,
- y: 1
- } : {
+ const offsetScale = await (platform3.isElement == null ? void 0 : platform3.isElement(offsetParent)) && await (platform3.getScale == null ? void 0 : platform3.getScale(offsetParent)) || {
x: 1,
y: 1
};
@@ -3676,23 +3669,16 @@ var shift = function(options) {
y: y2
};
const overflow = await platform3.detectOverflow(state, detectOverflowOptions);
- const crossAxis = getSideAxis(getSide(placement));
+ const crossAxis = getSideAxis(placement);
const mainAxis = getOppositeAxis(crossAxis);
let mainAxisCoord = coords[mainAxis];
let crossAxisCoord = coords[crossAxis];
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === "y" ? "top" : "left"], coord, coord - overflow[axis === "y" ? "bottom" : "right"]);
if (checkMainAxis) {
- const minSide = mainAxis === "y" ? "top" : "left";
- const maxSide = mainAxis === "y" ? "bottom" : "right";
- const min2 = mainAxisCoord + overflow[minSide];
- const max2 = mainAxisCoord - overflow[maxSide];
- mainAxisCoord = clamp(min2, mainAxisCoord, max2);
+ mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
}
if (checkCrossAxis) {
- const minSide = crossAxis === "y" ? "top" : "left";
- const maxSide = crossAxis === "y" ? "bottom" : "right";
- const min2 = crossAxisCoord + overflow[minSide];
- const max2 = crossAxisCoord - overflow[maxSide];
- crossAxisCoord = clamp(min2, crossAxisCoord, max2);
+ crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
}
const limitedCoords = limiter.fn({
...state,
@@ -3720,6 +3706,7 @@ var limitShift = function(options) {
return {
options,
fn(state) {
+ var _rawOffset$mainAxis, _rawOffset$crossAxis;
const {
x: x2,
y: y2,
@@ -3745,9 +3732,8 @@ var limitShift = function(options) {
mainAxis: rawOffset,
crossAxis: 0
} : {
- mainAxis: 0,
- crossAxis: 0,
- ...rawOffset
+ mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
+ crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
};
if (checkMainAxis) {
const len = mainAxis === "y" ? "height" : "width";
@@ -3786,7 +3772,6 @@ var size = function(options) {
name: "size",
options,
async fn(state) {
- var _state$middlewareData, _state$middlewareData2;
const {
placement,
rects,
@@ -3819,24 +3804,21 @@ var size = function(options) {
const maximumClippingWidth = width - overflow.left - overflow.right;
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
- const noShift = !state.middlewareData.shift;
+ const shiftData = state.middlewareData.shift;
+ const noShift = !shiftData;
let availableHeight = overflowAvailableHeight;
let availableWidth = overflowAvailableWidth;
- if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
+ if (shiftData != null && shiftData.enabled.x) {
availableWidth = maximumClippingWidth;
}
- if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
+ if (shiftData != null && shiftData.enabled.y) {
availableHeight = maximumClippingHeight;
}
if (noShift && !alignment) {
- const xMin = max(overflow.left, 0);
- const xMax = max(overflow.right, 0);
- const yMin = max(overflow.top, 0);
- const yMax = max(overflow.bottom, 0);
if (isYAxis) {
- availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
+ availableWidth = width - 2 * max(overflow.left, overflow.right);
} else {
- availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
+ availableHeight = height - 2 * max(overflow.top, overflow.bottom);
}
}
await apply({
@@ -3918,10 +3900,7 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
if (isFixed === void 0) {
isFixed = false;
}
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
- return false;
- }
- return isFixed;
+ return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
}
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
if (includeScale === void 0) {
@@ -3947,12 +3926,12 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
let y2 = (clientRect.top + visualOffsets.y) / scale.y;
let width = clientRect.width / scale.x;
let height = clientRect.height / scale.y;
- if (domElement) {
+ if (domElement && offsetParent) {
const win = getWindow(domElement);
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
+ const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
let currentWin = win;
let currentIFrame = getFrameElement(currentWin);
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
+ while (currentIFrame && offsetWin !== currentWin) {
const iframeScale = getScale(currentIFrame);
const iframeRect = currentIFrame.getBoundingClientRect();
const css = getComputedStyle2(currentIFrame);
@@ -4011,7 +3990,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
let scale = createCoords(1);
const offsets = createCoords(0);
const isOffsetParentAnElement = isHTMLElement(offsetParent);
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (isOffsetParentAnElement || !isFixed) {
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
scroll = getNodeScroll(offsetParent);
}
@@ -4031,15 +4010,14 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
};
}
function getClientRects(element) {
- return Array.from(element.getClientRects());
+ return element.getClientRects ? Array.from(element.getClientRects()) : [];
}
-function getDocumentRect(element) {
- const html = getDocumentElement(element);
- const scroll = getNodeScroll(element);
- const body = element.ownerDocument.body;
+function getDocumentRect(html) {
+ const scroll = getNodeScroll(html);
+ const body = html.ownerDocument.body;
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
- let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
+ let x2 = -scroll.scrollLeft + getWindowScrollBarX(html);
const y2 = -scroll.scrollTop;
if (getComputedStyle2(body).direction === "rtl") {
x2 += max(html.clientWidth, body.clientWidth) - width;
@@ -4052,7 +4030,11 @@ function getDocumentRect(element) {
};
}
var SCROLLBAR_MAX = 25;
-function getViewportRect(element, strategy) {
+function getViewportRect(element, strategy, rootBoundary) {
+ if (rootBoundary === void 0) {
+ rootBoundary = "viewport";
+ }
+ const isLayoutViewport = rootBoundary === "layoutViewport";
const win = getWindow(element);
const html = getDocumentElement(element);
const visualViewport = win.visualViewport;
@@ -4061,12 +4043,19 @@ function getViewportRect(element, strategy) {
let x2 = 0;
let y2 = 0;
if (visualViewport) {
- width = visualViewport.width;
- height = visualViewport.height;
- const visualViewportBased = isWebKit();
- if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
- x2 = visualViewport.offsetLeft;
- y2 = visualViewport.offsetTop;
+ const layoutRelativeClientCoords = !isWebKit() || strategy === "fixed";
+ if (isLayoutViewport) {
+ if (!layoutRelativeClientCoords) {
+ x2 = -visualViewport.offsetLeft;
+ y2 = -visualViewport.offsetTop;
+ }
+ } else {
+ width = visualViewport.width;
+ height = visualViewport.height;
+ if (layoutRelativeClientCoords) {
+ x2 = visualViewport.offsetLeft;
+ y2 = visualViewport.offsetTop;
+ }
}
}
const windowScrollbarX = getWindowScrollBarX(html);
@@ -4075,12 +4064,11 @@ function getViewportRect(element, strategy) {
const body = doc.body;
const bodyStyles = getComputedStyle(body);
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
- const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
- if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
- width -= clippingStableScrollbarWidth;
+ const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
+ const gutter = getComputedStyle(html).scrollbarGutter === "stable both-edges" ? reservedWidth / 2 : reservedWidth;
+ if (gutter <= SCROLLBAR_MAX) {
+ width -= gutter;
}
- } else if (windowScrollbarX <= SCROLLBAR_MAX) {
- width += windowScrollbarX;
}
return {
width,
@@ -4093,7 +4081,7 @@ function getInnerBoundingClientRect(element, strategy) {
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
const top = clientRect.top + element.clientTop;
const left = clientRect.left + element.clientLeft;
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
+ const scale = getScale(element);
const width = element.clientWidth * scale.x;
const height = element.clientHeight * scale.y;
const x2 = left * scale.x;
@@ -4107,8 +4095,8 @@ function getInnerBoundingClientRect(element, strategy) {
}
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
let rect;
- if (clippingAncestor === "viewport") {
- rect = getViewportRect(element, strategy);
+ if (clippingAncestor === "viewport" || clippingAncestor === "layoutViewport") {
+ rect = getViewportRect(element, strategy, clippingAncestor);
} else if (clippingAncestor === "document") {
rect = getDocumentRect(getDocumentElement(element));
} else if (isElement(clippingAncestor)) {
@@ -4124,33 +4112,24 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
}
return rectToClientRect(rect);
}
-function hasFixedPositionAncestor(element, stopNode) {
- const parentNode = getParentNode(element);
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
- return false;
- }
- return getComputedStyle2(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
-}
function getClippingElementAncestors(element, cache) {
const cachedResult = cache.get(element);
if (cachedResult) {
return cachedResult;
}
let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
- let currentContainingBlockComputedStyle = null;
+ let lastKeptComputedStyle = null;
const elementIsFixed = getComputedStyle2(element).position === "fixed";
let currentNode = elementIsFixed ? getParentNode(element) : element;
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
const computedStyle = getComputedStyle2(currentNode);
const currentNodeIsContaining = isContainingBlock(currentNode);
- if (!currentNodeIsContaining && computedStyle.position === "fixed") {
- currentContainingBlockComputedStyle = null;
- }
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
+ const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? "fixed" : "";
+ const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === "fixed" || lastPosition === "absolute" && computedStyle.position === "static");
if (shouldDropCurrentNode) {
result = result.filter((ancestor) => ancestor !== currentNode);
} else {
- currentContainingBlockComputedStyle = computedStyle;
+ lastKeptComputedStyle = computedStyle;
}
currentNode = getParentNode(currentNode);
}
@@ -4205,10 +4184,7 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
scrollTop: 0
};
const offsets = createCoords(0);
- function setLeftRTLScrollbarOffset() {
- offsets.x = getWindowScrollBarX(documentElement);
- }
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (isOffsetParentAnElement || !isFixed) {
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
scroll = getNodeScroll(offsetParent);
}
@@ -4216,12 +4192,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
offsets.x = offsetRect.x + offsetParent.clientLeft;
offsets.y = offsetRect.y + offsetParent.clientTop;
- } else if (documentElement) {
- setLeftRTLScrollbarOffset();
}
}
- if (isFixed && !isOffsetParentAnElement && documentElement) {
- setLeftRTLScrollbarOffset();
+ if (!isOffsetParentAnElement && documentElement) {
+ offsets.x = getWindowScrollBarX(documentElement);
}
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
@@ -4305,7 +4279,7 @@ var platform2 = {
function rectsAreEqual(a2, b2) {
return a2.x === b2.x && a2.y === b2.y && a2.width === b2.width && a2.height === b2.height;
}
-function observeMove(element, onMove) {
+function observeMove(element, onMove, ancestorResize) {
let io = null;
let timeoutId;
const root = getDocumentElement(element);
@@ -4348,6 +4322,9 @@ function observeMove(element, onMove) {
let isFirstUpdate = true;
function handleObserve(entries) {
const ratio = entries[0].intersectionRatio;
+ if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
+ return refresh();
+ }
if (ratio !== threshold) {
if (!isFirstUpdate) {
return refresh();
@@ -4360,9 +4337,6 @@ function observeMove(element, onMove) {
refresh(false, ratio);
}
}
- if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
- refresh();
- }
isFirstUpdate = false;
}
try {
@@ -4376,8 +4350,14 @@ function observeMove(element, onMove) {
}
io.observe(element);
}
+ const win = getWindow(element);
+ const handleResize = () => refresh(ancestorResize);
+ win.addEventListener("resize", handleResize);
refresh(true);
- return cleanup;
+ return () => {
+ win.removeEventListener("resize", handleResize);
+ cleanup();
+ };
}
function autoUpdate(reference, floating, update2, options) {
if (options === void 0) {
@@ -4393,12 +4373,10 @@ function autoUpdate(reference, floating, update2, options) {
const referenceEl = unwrapElement(reference);
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
ancestors.forEach((ancestor) => {
- ancestorScroll && ancestor.addEventListener("scroll", update2, {
- passive: true
- });
+ ancestorScroll && ancestor.addEventListener("scroll", update2);
ancestorResize && ancestor.addEventListener("resize", update2);
});
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2) : null;
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2, ancestorResize) : null;
let reobserveFrame = -1;
let resizeObserver = null;
if (elementResize) {
@@ -4457,11 +4435,9 @@ var hide2 = hide;
var limitShift2 = limitShift;
var computePosition2 = (reference, floating, options) => {
const cache = /* @__PURE__ */ new Map();
- const mergedOptions = {
- platform: platform2,
- ...options
- };
+ const mergedOptions = options != null ? options : {};
const platformWithCache = {
+ ...platform2,
...mergedOptions.platform,
_c: cache
};
@@ -7392,7 +7368,7 @@ function usePositioner(componentProps, state, {
}
// node_modules/@base-ui/react/utils/usePopupViewport.mjs
-var React33 = __toESM(require_react(), 1);
+var React34 = __toESM(require_react(), 1);
var ReactDOM6 = __toESM(require_react_dom(), 1);
// node_modules/@base-ui/utils/usePreviousValue.mjs
@@ -7563,8 +7539,25 @@ function setPositionerCssSize(positionerElement, size4) {
positionerElement.style.setProperty("--positioner-height", height);
}
-// node_modules/@base-ui/react/utils/usePopupViewport.mjs
+// node_modules/@base-ui/react/direction-provider/DirectionProvider.mjs
+var React33 = __toESM(require_react(), 1);
var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
+var DirectionProvider = function DirectionProvider2(props) {
+ const {
+ direction = "ltr"
+ } = props;
+ const contextValue = React33.useMemo(() => ({
+ direction
+ }), [direction]);
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DirectionContext.Provider, {
+ value: contextValue,
+ children: props.children
+ });
+};
+if (true) DirectionProvider.displayName = "DirectionProvider";
+
+// node_modules/@base-ui/react/utils/usePopupViewport.mjs
+var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
function usePopupViewport(parameters) {
const {
store,
@@ -7582,15 +7575,15 @@ function usePopupViewport(parameters) {
const positionerElement = store.useState("positionerElement");
const previousActiveTrigger = usePreviousValue(open ? activeTrigger : null);
const currentContentKey = usePopupContentKey(activeTriggerId, payload);
- const capturedNodeRef = React33.useRef(null);
- const [previousContentNode, setPreviousContentNode] = React33.useState(null);
- const [newTriggerOffset, setNewTriggerOffset] = React33.useState(null);
- const currentContainerRef = React33.useRef(null);
- const previousContainerRef = React33.useRef(null);
+ const capturedNodeRef = React34.useRef(null);
+ const [previousContentNode, setPreviousContentNode] = React34.useState(null);
+ const [newTriggerOffset, setNewTriggerOffset] = React34.useState(null);
+ const currentContainerRef = React34.useRef(null);
+ const previousContainerRef = React34.useRef(null);
const onAnimationsFinished = useAnimationsFinished(currentContainerRef, true, false);
const cleanupFrame = useAnimationFrame();
- const [previousContentDimensions, setPreviousContentDimensions] = React33.useState(null);
- const [showStartingStyleAttribute, setShowStartingStyleAttribute] = React33.useState(false);
+ const [previousContentDimensions, setPreviousContentDimensions] = React34.useState(null);
+ const [showStartingStyleAttribute, setShowStartingStyleAttribute] = React34.useState(false);
useIsoLayoutEffect(() => {
store.set("hasViewport", true);
return () => {
@@ -7610,7 +7603,7 @@ function usePopupViewport(parameters) {
setPreviousContentDimensions(previousDimensions);
}
});
- const lastHandledTriggerRef = React33.useRef(null);
+ const lastHandledTriggerRef = React34.useRef(null);
useIsoLayoutEffect(() => {
if (!open || !mounted) {
lastHandledTriggerRef.current = null;
@@ -7649,14 +7642,14 @@ function usePopupViewport(parameters) {
const isTransitioning = previousContentNode != null;
let childrenToRender;
if (!isTransitioning) {
- childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
+ childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
"data-current": true,
ref: currentContainerRef,
children
}, currentContentKey);
} else {
- childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(React33.Fragment, {
- children: [/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
+ childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(React34.Fragment, {
+ children: [/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
"data-previous": true,
inert: inertValue(true),
ref: previousContainerRef,
@@ -7668,7 +7661,7 @@ function usePopupViewport(parameters) {
position: "absolute"
},
"data-ending-style": showStartingStyleAttribute ? void 0 : ""
- }, "previous"), /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
+ }, "previous"), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
"data-current": true,
ref: currentContainerRef,
"data-starting-style": showStartingStyleAttribute ? "" : void 0,
@@ -7734,10 +7727,10 @@ function calculateRelativePosition(from, to) {
};
}
function usePopupContentKey(activeTriggerId, payload) {
- const [contentKey, setContentKey] = React33.useState(0);
- const previousActiveTriggerIdRef = React33.useRef(activeTriggerId);
- const previousPayloadRef = React33.useRef(payload);
- const pendingPayloadUpdateRef = React33.useRef(false);
+ const [contentKey, setContentKey] = React34.useState(0);
+ const previousActiveTriggerIdRef = React34.useRef(activeTriggerId);
+ const previousPayloadRef = React34.useRef(payload);
+ const pendingPayloadUpdateRef = React34.useRef(false);
useIsoLayoutEffect(() => {
const previousActiveTriggerId = previousActiveTriggerIdRef.current;
const previousPayload = previousPayloadRef.current;
@@ -7757,10 +7750,10 @@ function usePopupContentKey(activeTriggerId, payload) {
}
// node_modules/@base-ui/react/utils/FloatingPortalLite.mjs
-var React34 = __toESM(require_react(), 1);
+var React35 = __toESM(require_react(), 1);
var ReactDOM7 = __toESM(require_react_dom(), 1);
-var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
-var FloatingPortalLite = /* @__PURE__ */ React34.forwardRef(function FloatingPortalLite2(componentProps, forwardedRef) {
+var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
+var FloatingPortalLite = /* @__PURE__ */ React35.forwardRef(function FloatingPortalLite2(componentProps, forwardedRef) {
const {
children,
container,
@@ -7781,7 +7774,7 @@ var FloatingPortalLite = /* @__PURE__ */ React34.forwardRef(function FloatingPor
if (!portalSubtree && !portalNode) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(React34.Fragment, {
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(React35.Fragment, {
children: [portalSubtree, portalNode && /* @__PURE__ */ ReactDOM7.createPortal(children, portalNode)]
});
});
@@ -7803,14 +7796,14 @@ __export(index_parts_exports, {
});
// node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs
-var React37 = __toESM(require_react(), 1);
+var React38 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/root/TooltipRootContext.mjs
-var React35 = __toESM(require_react(), 1);
-var TooltipRootContext = /* @__PURE__ */ React35.createContext(void 0);
+var React36 = __toESM(require_react(), 1);
+var TooltipRootContext = /* @__PURE__ */ React36.createContext(void 0);
if (true) TooltipRootContext.displayName = "TooltipRootContext";
function useTooltipRootContext(optional) {
- const context = React35.useContext(TooltipRootContext);
+ const context = React36.useContext(TooltipRootContext);
if (context === void 0 && !optional) {
throw new Error(true ? "Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>." : formatErrorMessage_default(72));
}
@@ -7818,7 +7811,7 @@ function useTooltipRootContext(optional) {
}
// node_modules/@base-ui/react/tooltip/store/TooltipStore.mjs
-var React36 = __toESM(require_react(), 1);
+var React37 = __toESM(require_react(), 1);
var selectors2 = {
...popupStoreSelectors,
disabled: createSelector((state) => state.disabled),
@@ -7840,7 +7833,7 @@ var TooltipStore = class _TooltipStore extends ReactStore {
};
state.floatingRootContext = createPopupFloatingRootContext(triggerElements, floatingId, nested);
super(state, {
- popupRef: /* @__PURE__ */ React36.createRef(),
+ popupRef: /* @__PURE__ */ React37.createRef(),
onOpenChange: void 0,
onOpenChangeComplete: void 0,
triggerElements
@@ -7878,7 +7871,7 @@ function createInitialState() {
}
// node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs
-var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
var TooltipRoot = fastComponent(function TooltipRoot2(props) {
const {
disabled: disabled2 = false,
@@ -7925,7 +7918,7 @@ var TooltipRoot = fastComponent(function TooltipRoot2(props) {
const isInstantPhase = store.useState("isInstantPhase");
const instantType = store.useState("instantType");
const lastOpenChangeReason = store.useState("lastOpenChangeReason");
- const previousInstantTypeRef = React37.useRef(null);
+ const previousInstantTypeRef = React38.useRef(null);
useIsoLayoutEffect(() => {
if (openState && disabled2) {
store.setOpen(false, createChangeEventDetails(reason_parts_exports.disabled));
@@ -7949,17 +7942,17 @@ var TooltipRoot = fastComponent(function TooltipRoot2(props) {
}
}
}, [store, activeTriggerId, open]);
- const handleImperativeClose = React37.useCallback(() => {
+ const handleImperativeClose = React38.useCallback(() => {
store.setOpen(false, createChangeEventDetails(reason_parts_exports.imperativeAction));
}, [store]);
- React37.useImperativeHandle(actionsRef, () => ({
+ React38.useImperativeHandle(actionsRef, () => ({
unmount: forceUnmount,
close: handleImperativeClose
}), [forceUnmount, handleImperativeClose]);
const shouldRenderInteractions = open || mounted || !disabled2 && trackCursorAxis !== "none";
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(TooltipRootContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(TooltipRootContext.Provider, {
value: store,
- children: [shouldRenderInteractions && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TooltipInteractions, {
+ children: [shouldRenderInteractions && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipInteractions, {
store,
disabled: disabled2,
trackCursorAxis
@@ -7983,9 +7976,9 @@ function TooltipInteractions({
enabled: !disabled2 && trackCursorAxis !== "none",
axis: trackCursorAxis === "none" ? void 0 : trackCursorAxis
});
- const activeTriggerProps = React37.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);
- const inactiveTriggerProps = React37.useMemo(() => mergeProps(clientPoint.trigger, dismiss.trigger), [clientPoint.trigger, dismiss.trigger]);
- const popupProps = React37.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, clientPoint.floating, dismiss.floating), [clientPoint.floating, dismiss.floating]);
+ const activeTriggerProps = React38.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);
+ const inactiveTriggerProps = React38.useMemo(() => mergeProps(clientPoint.trigger, dismiss.trigger), [clientPoint.trigger, dismiss.trigger]);
+ const popupProps = React38.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, clientPoint.floating, dismiss.floating), [clientPoint.floating, dismiss.floating]);
usePopupInteractionProps(store, {
activeTriggerProps,
inactiveTriggerProps,
@@ -7995,14 +7988,14 @@ function TooltipInteractions({
}
// node_modules/@base-ui/react/tooltip/trigger/TooltipTrigger.mjs
-var React39 = __toESM(require_react(), 1);
+var React40 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/provider/TooltipProviderContext.mjs
-var React38 = __toESM(require_react(), 1);
-var TooltipProviderContext = /* @__PURE__ */ React38.createContext(void 0);
+var React39 = __toESM(require_react(), 1);
+var TooltipProviderContext = /* @__PURE__ */ React39.createContext(void 0);
if (true) TooltipProviderContext.displayName = "TooltipProviderContext";
function useTooltipProviderContext() {
- return React38.useContext(TooltipProviderContext);
+ return React39.useContext(TooltipProviderContext);
}
// node_modules/@base-ui/react/tooltip/trigger/TooltipTriggerDataAttributes.mjs
@@ -8072,7 +8065,7 @@ var TooltipTrigger = fastComponentRef(function TooltipTrigger2(componentProps, f
const isTriggerActive = store.useState("isTriggerActive", thisTriggerId);
const isOpenedByThisTrigger = store.useState("isOpenedByTrigger", thisTriggerId);
const floatingRootContext = store.useState("floatingRootContext");
- const triggerElementRef = React39.useRef(null);
+ const triggerElementRef = React40.useRef(null);
const delayWithDefault = delay ?? OPEN_DELAY;
const closeDelayWithDefault = closeDelay ?? 0;
const {
@@ -8098,9 +8091,9 @@ var TooltipTrigger = fastComponentRef(function TooltipTrigger2(componentProps, f
const disabledRef = useValueAsRef(disabled2);
const trackCursorAxis = store.useState("trackCursorAxis");
const disableHoverablePopup = store.useState("disableHoverablePopup");
- const isNestedTriggerHoveredRef = React39.useRef(false);
+ const isNestedTriggerHoveredRef = React40.useRef(false);
const nestedTriggerOpenTimeout = useTimeout();
- const pointerTypeRef = React39.useRef(void 0);
+ const pointerTypeRef = React40.useRef(void 0);
function getOpenDelay() {
const providerDelay = providerContext?.delay;
const groupOpenValue = typeof delayRef.current === "object" ? delayRef.current.open : void 0;
@@ -8233,14 +8226,14 @@ var TooltipTrigger = fastComponentRef(function TooltipTrigger2(componentProps, f
if (true) TooltipTrigger.displayName = "TooltipTrigger";
// node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
-var React41 = __toESM(require_react(), 1);
+var React42 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/portal/TooltipPortalContext.mjs
-var React40 = __toESM(require_react(), 1);
-var TooltipPortalContext = /* @__PURE__ */ React40.createContext(void 0);
+var React41 = __toESM(require_react(), 1);
+var TooltipPortalContext = /* @__PURE__ */ React41.createContext(void 0);
if (true) TooltipPortalContext.displayName = "TooltipPortalContext";
function useTooltipPortalContext() {
- const value = React40.useContext(TooltipPortalContext);
+ const value = React41.useContext(TooltipPortalContext);
if (value === void 0) {
throw new Error(true ? "Base UI: <Tooltip.Portal> is missing." : formatErrorMessage_default(70));
}
@@ -8248,8 +8241,8 @@ function useTooltipPortalContext() {
}
// node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
-var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
-var TooltipPortal = /* @__PURE__ */ React41.forwardRef(function TooltipPortal2(props, forwardedRef) {
+var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
+var TooltipPortal = /* @__PURE__ */ React42.forwardRef(function TooltipPortal2(props, forwardedRef) {
const {
keepMounted = false,
...portalProps
@@ -8260,9 +8253,9 @@ var TooltipPortal = /* @__PURE__ */ React41.forwardRef(function TooltipPortal2(p
if (!shouldRender) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipPortalContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TooltipPortalContext.Provider, {
value: keepMounted,
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FloatingPortalLite, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(FloatingPortalLite, {
ref: forwardedRef,
...portalProps
})
@@ -8271,14 +8264,14 @@ var TooltipPortal = /* @__PURE__ */ React41.forwardRef(function TooltipPortal2(p
if (true) TooltipPortal.displayName = "TooltipPortal";
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
-var React43 = __toESM(require_react(), 1);
+var React44 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositionerContext.mjs
-var React42 = __toESM(require_react(), 1);
-var TooltipPositionerContext = /* @__PURE__ */ React42.createContext(void 0);
+var React43 = __toESM(require_react(), 1);
+var TooltipPositionerContext = /* @__PURE__ */ React43.createContext(void 0);
if (true) TooltipPositionerContext.displayName = "TooltipPositionerContext";
function useTooltipPositionerContext() {
- const context = React42.useContext(TooltipPositionerContext);
+ const context = React43.useContext(TooltipPositionerContext);
if (context === void 0) {
throw new Error(true ? "Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>." : formatErrorMessage_default(71));
}
@@ -8286,8 +8279,8 @@ function useTooltipPositionerContext() {
}
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
-var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
-var TooltipPositioner = /* @__PURE__ */ React43.forwardRef(function TooltipPositioner2(componentProps, forwardedRef) {
+var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
+var TooltipPositioner = /* @__PURE__ */ React44.forwardRef(function TooltipPositioner2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8334,7 +8327,7 @@ var TooltipPositioner = /* @__PURE__ */ React43.forwardRef(function TooltipPosit
collisionAvoidance,
adaptiveOrigin: hasViewport ? adaptiveOrigin : void 0
});
- const state = React43.useMemo(() => ({
+ const state = React44.useMemo(() => ({
open,
side: positioning.side,
align: positioning.align,
@@ -8349,7 +8342,7 @@ var TooltipPositioner = /* @__PURE__ */ React43.forwardRef(function TooltipPosit
hidden: !mounted,
inert: !open || trackCursorAxis === "both" || disableHoverablePopup
});
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TooltipPositionerContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TooltipPositionerContext.Provider, {
value: positioning,
children: element
});
@@ -8357,12 +8350,12 @@ var TooltipPositioner = /* @__PURE__ */ React43.forwardRef(function TooltipPosit
if (true) TooltipPositioner.displayName = "TooltipPositioner";
// node_modules/@base-ui/react/tooltip/popup/TooltipPopup.mjs
-var React44 = __toESM(require_react(), 1);
+var React45 = __toESM(require_react(), 1);
var stateAttributesMapping = {
...popupStateMapping,
...transitionStatusMapping
};
-var TooltipPopup = /* @__PURE__ */ React44.forwardRef(function TooltipPopup2(componentProps, forwardedRef) {
+var TooltipPopup = /* @__PURE__ */ React45.forwardRef(function TooltipPopup2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8413,8 +8406,8 @@ var TooltipPopup = /* @__PURE__ */ React44.forwardRef(function TooltipPopup2(com
if (true) TooltipPopup.displayName = "TooltipPopup";
// node_modules/@base-ui/react/tooltip/arrow/TooltipArrow.mjs
-var React45 = __toESM(require_react(), 1);
-var TooltipArrow = /* @__PURE__ */ React45.forwardRef(function TooltipArrow2(componentProps, forwardedRef) {
+var React46 = __toESM(require_react(), 1);
+var TooltipArrow = /* @__PURE__ */ React46.forwardRef(function TooltipArrow2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8452,25 +8445,25 @@ var TooltipArrow = /* @__PURE__ */ React45.forwardRef(function TooltipArrow2(com
if (true) TooltipArrow.displayName = "TooltipArrow";
// node_modules/@base-ui/react/tooltip/provider/TooltipProvider.mjs
-var React46 = __toESM(require_react(), 1);
-var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
+var React47 = __toESM(require_react(), 1);
+var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
var TooltipProvider = function TooltipProvider2(props) {
const {
delay,
closeDelay,
timeout = 400
} = props;
- const contextValue = React46.useMemo(() => ({
+ const contextValue = React47.useMemo(() => ({
delay,
closeDelay
}), [delay, closeDelay]);
- const delayValue = React46.useMemo(() => ({
+ const delayValue = React47.useMemo(() => ({
open: delay,
close: closeDelay
}), [delay, closeDelay]);
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TooltipProviderContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TooltipProviderContext.Provider, {
value: contextValue,
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FloatingDelayGroup, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(FloatingDelayGroup, {
delay: delayValue,
timeoutMs: timeout,
children: props.children
@@ -8480,7 +8473,7 @@ var TooltipProvider = function TooltipProvider2(props) {
if (true) TooltipProvider.displayName = "TooltipProvider";
// node_modules/@base-ui/react/tooltip/viewport/TooltipViewport.mjs
-var React47 = __toESM(require_react(), 1);
+var React48 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/viewport/TooltipViewportCssVars.mjs
var TooltipViewportCssVars = /* @__PURE__ */ (function(TooltipViewportCssVars2) {
@@ -8495,7 +8488,7 @@ var stateAttributesMapping2 = {
"data-activation-direction": value
} : null
};
-var TooltipViewport = /* @__PURE__ */ React47.forwardRef(function TooltipViewport2(componentProps, forwardedRef) {
+var TooltipViewport = /* @__PURE__ */ React48.forwardRef(function TooltipViewport2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8700,28 +8693,28 @@ var icon_default = (0, import_element11.forwardRef)(
// packages/icons/build-module/library/chevron-left.mjs
var import_primitives = __toESM(require_primitives(), 1);
-var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
-var chevron_left_default = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives.Path, { d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" }) });
+var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
+var chevron_left_default = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives.Path, { d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" }) });
// packages/icons/build-module/library/chevron-right.mjs
var import_primitives2 = __toESM(require_primitives(), 1);
-var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
-var chevron_right_default = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives2.Path, { d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" }) });
+var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
+var chevron_right_default = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives2.Path, { d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" }) });
// packages/icons/build-module/library/more-vertical.mjs
var import_primitives3 = __toESM(require_primitives(), 1);
-var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
-var more_vertical_default = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives3.Path, { d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z" }) });
+var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
+var more_vertical_default = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_primitives3.Path, { d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z" }) });
// packages/icons/build-module/library/next.mjs
var import_primitives4 = __toESM(require_primitives(), 1);
-var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
-var next_default = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_primitives4.Path, { d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z" }) });
+var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
+var next_default = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_primitives4.Path, { d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z" }) });
// packages/icons/build-module/library/previous.mjs
var import_primitives5 = __toESM(require_primitives(), 1);
-var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
-var previous_default = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_primitives5.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_primitives5.Path, { d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z" }) });
+var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
+var previous_default = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives5.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives5.Path, { d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z" }) });
// packages/ui/build-module/utils/render-slot-with-children.mjs
var import_element12 = __toESM(require_element(), 1);
@@ -9025,10 +9018,10 @@ function getWpCompatOverlaySlot() {
}
// packages/ui/build-module/tooltip/portal.mjs
-var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
var Portal = (0, import_element14.forwardRef)(
function TooltipPortal3({ container, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
index_parts_exports.Portal,
{
container: container ?? getWpCompatOverlaySlot(),
@@ -9041,7 +9034,7 @@ var Portal = (0, import_element14.forwardRef)(
// packages/ui/build-module/tooltip/positioner.mjs
var import_element15 = __toESM(require_element(), 1);
-var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE4 = "data-wp-hash";
function getRuntime4() {
const globalScope = globalThis;
@@ -9132,7 +9125,7 @@ if (typeof process === "undefined" || true) {
var style_default3 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
var Positioner = (0, import_element15.forwardRef)(
function TooltipPositioner3({ align = "center", className, side = "top", sideOffset = 4, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
index_parts_exports.Positioner,
{
ref,
@@ -9151,7 +9144,7 @@ var Positioner = (0, import_element15.forwardRef)(
);
// packages/ui/build-module/tooltip/popup.mjs
-var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE5 = "data-wp-hash";
function getRuntime5() {
const globalScope = globalThis;
@@ -9238,7 +9231,7 @@ if (typeof process === "undefined" || true) {
var style_default4 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
var POPUP_COLOR = { background: "#1e1e1e" };
var Popup = (0, import_element16.forwardRef)(function TooltipPopup3({ portal, positioner, children, className, ...props }, ref) {
- const popupContent = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ThemeProvider, { color: POPUP_COLOR, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
+ const popupContent = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ThemeProvider, { color: POPUP_COLOR, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
index_parts_exports.Popup,
{
ref,
@@ -9249,31 +9242,38 @@ var Popup = (0, import_element16.forwardRef)(function TooltipPopup3({ portal, po
) });
const positionedPopup = renderSlotWithChildren(
positioner,
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Positioner, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Positioner, {}),
popupContent
);
- return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Portal, {}), positionedPopup);
+ return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Portal, {}), positionedPopup);
});
// packages/ui/build-module/tooltip/trigger.mjs
var import_element17 = __toESM(require_element(), 1);
-var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
var Trigger = (0, import_element17.forwardRef)(
function TooltipTrigger3(props, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(index_parts_exports.Trigger, { ref, ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(index_parts_exports.Trigger, { ref, ...props });
}
);
+// packages/ui/build-module/utils/direction-provider.mjs
+var import_i18n = __toESM(require_i18n(), 1);
+var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
+function DirectionProvider3({ children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DirectionProvider, { direction: (0, import_i18n.isRTL)() ? "rtl" : "ltr", children });
+}
+
// packages/ui/build-module/tooltip/root.mjs
-var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
function Root(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(index_parts_exports.Root, { ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DirectionProvider3, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(index_parts_exports.Root, { ...props }) });
}
// packages/ui/build-module/tooltip/provider.mjs
-var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
function Provider({ ...props }) {
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(index_parts_exports.Provider, { ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(index_parts_exports.Provider, { ...props });
}
// packages/ui/build-module/skeleton/skeleton.mjs
@@ -9390,10 +9390,10 @@ var Skeleton = (0, import_element18.forwardRef)(
// packages/admin-ui/build-module/navigable-region/index.mjs
var import_element19 = __toESM(require_element(), 1);
-var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
var NavigableRegion = (0, import_element19.forwardRef)(
({ children, className, ariaLabel, as: Tag = "div", ...props }, ref) => {
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
Tag,
{
ref,
@@ -9415,7 +9415,7 @@ var import_components = __toESM(require_components(), 1);
var { Fill: SidebarToggleFill, Slot: SidebarToggleSlot } = (0, import_components.createSlotFill)("SidebarToggle");
// packages/admin-ui/build-module/page/header.mjs
-var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE7 = "data-wp-hash";
function getRuntime7() {
const globalScope = globalThis;
@@ -9511,8 +9511,8 @@ function Header({
showSidebarToggle = true
}) {
const HeadingTag = `h${headingLevel}`;
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Stack, { direction: "column", className: style_default6.header, children: [
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Stack, { direction: "column", className: style_default6.header, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
Stack,
{
className: style_default6["header-content"],
@@ -9520,15 +9520,15 @@ function Header({
gap: "sm",
justify: "space-between",
children: [
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Stack, { direction: "row", gap: "sm", align: "center", justify: "start", children: [
- showSidebarToggle && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Stack, { direction: "row", gap: "sm", align: "center", justify: "start", children: [
+ showSidebarToggle && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
SidebarToggleSlot,
{
bubblesVirtually: true,
className: style_default6["sidebar-toggle-slot"]
}
),
- visual && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
+ visual && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
"div",
{
className: style_default6["header-visual"],
@@ -9536,11 +9536,11 @@ function Header({
children: visual
}
),
- title && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
+ title && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
Text,
{
className: style_default6["header-title"],
- render: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(HeadingTag, {}),
+ render: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(HeadingTag, {}),
variant: "heading-lg",
children: title
}
@@ -9548,7 +9548,7 @@ function Header({
breadcrumbs,
badges
] }),
- actions && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
+ actions && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
Stack,
{
align: "center",
@@ -9561,10 +9561,10 @@ function Header({
]
}
),
- subTitle && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
+ subTitle && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
Text,
{
- render: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", {}),
+ render: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", {}),
variant: "body-md",
className: style_default6["header-subtitle"],
children: subTitle
@@ -9574,7 +9574,7 @@ function Header({
}
// packages/admin-ui/build-module/page/index.mjs
-var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE8 = "data-wp-hash";
function getRuntime8() {
const globalScope = globalThis;
@@ -9675,8 +9675,8 @@ function Page({
}) {
const classes = clsx_default(style_default7.page, className);
const effectiveAriaLabel = ariaLabel ?? (typeof title === "string" ? title : "");
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(navigable_region_default, { className: classes, ariaLabel: effectiveAriaLabel, children: [
- (title || breadcrumbs || badges || actions || visual) && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(navigable_region_default, { className: classes, ariaLabel: effectiveAriaLabel, children: [
+ (title || breadcrumbs || badges || actions || visual) && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
Header,
{
headingLevel,
@@ -9689,7 +9689,7 @@ function Page({
showSidebarToggle
}
),
- hasPadding ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
+ hasPadding ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
"div",
{
className: clsx_default(
@@ -9705,19 +9705,19 @@ Page.SidebarToggleFill = SidebarToggleFill;
var page_default = Page;
// routes/font-list/stage.tsx
-var import_i18n47 = __toESM(require_i18n());
-var import_components60 = __toESM(require_components());
+var import_i18n48 = __toESM(require_i18n());
+var import_components58 = __toESM(require_components());
var import_editor = __toESM(require_editor());
var import_core_data12 = __toESM(require_core_data());
var import_data13 = __toESM(require_data());
-var import_element52 = __toESM(require_element());
+var import_element51 = __toESM(require_element());
// packages/global-styles-ui/build-module/global-styles-ui.mjs
-var import_components59 = __toESM(require_components(), 1);
+var import_components57 = __toESM(require_components(), 1);
var import_blocks5 = __toESM(require_blocks(), 1);
var import_data12 = __toESM(require_data(), 1);
var import_block_editor14 = __toESM(require_block_editor(), 1);
-var import_element51 = __toESM(require_element(), 1);
+var import_element50 = __toESM(require_element(), 1);
var import_compose6 = __toESM(require_compose(), 1);
// packages/global-styles-engine/build-module/utils/object.mjs
@@ -11124,7 +11124,7 @@ var GlobalStylesContext = (0, import_element20.createContext)({
});
// packages/global-styles-ui/build-module/provider.mjs
-var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
function GlobalStylesProvider({
children,
value,
@@ -11145,22 +11145,22 @@ function GlobalStylesProvider({
}),
[value, baseValue, merged, onChange, fontLibraryEnabled]
);
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GlobalStylesContext.Provider, { value: contextValue, children });
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(GlobalStylesContext.Provider, { value: contextValue, children });
}
// packages/global-styles-ui/build-module/screen-root.mjs
var import_components8 = __toESM(require_components(), 1);
-var import_i18n5 = __toESM(require_i18n(), 1);
+var import_i18n6 = __toESM(require_i18n(), 1);
var import_data2 = __toESM(require_data(), 1);
var import_core_data2 = __toESM(require_core_data(), 1);
// packages/global-styles-ui/build-module/icon-with-current-color.mjs
-var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
function IconWithCurrentColor({
className,
...props
}) {
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
icon_default,
{
className: clsx_default(
@@ -11174,27 +11174,27 @@ function IconWithCurrentColor({
// packages/global-styles-ui/build-module/navigation-button.mjs
var import_components2 = __toESM(require_components(), 1);
-var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
function GenericNavigationButton({
icon,
children,
...props
}) {
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_components2.__experimentalItem, { ...props, children: [
- icon && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_components2.__experimentalHStack, { justify: "flex-start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(IconWithCurrentColor, { icon, size: 24 }),
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_components2.FlexItem, { children })
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_components2.__experimentalItem, { ...props, children: [
+ icon && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_components2.__experimentalHStack, { justify: "flex-start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(IconWithCurrentColor, { icon, size: 24 }),
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components2.FlexItem, { children })
] }),
!icon && children
] });
}
function NavigationButtonAsItem(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_components2.Navigator.Button, { as: GenericNavigationButton, ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components2.Navigator.Button, { as: GenericNavigationButton, ...props });
}
// packages/global-styles-ui/build-module/root-menu.mjs
var import_components3 = __toESM(require_components(), 1);
-var import_i18n3 = __toESM(require_i18n(), 1);
+var import_i18n4 = __toESM(require_i18n(), 1);
var import_block_editor = __toESM(require_block_editor(), 1);
// node_modules/colord/plugins/a11y.mjs
@@ -11223,10 +11223,10 @@ function a11y_default(o3) {
var import_element22 = __toESM(require_element(), 1);
var import_data = __toESM(require_data(), 1);
var import_core_data = __toESM(require_core_data(), 1);
-var import_i18n2 = __toESM(require_i18n(), 1);
+var import_i18n3 = __toESM(require_i18n(), 1);
// packages/global-styles-ui/build-module/utils.mjs
-var import_i18n = __toESM(require_i18n(), 1);
+var import_i18n2 = __toESM(require_i18n(), 1);
// packages/global-styles-ui/build-module/lock-unlock.mjs
var import_private_apis4 = __toESM(require_private_apis(), 1);
@@ -11239,35 +11239,35 @@ var { lock: lock3, unlock: unlock3 } = (0, import_private_apis4.__dangerousOptIn
var { getViewportBreakpoints: getViewportBreakpoints2 } = unlock3(privateApis);
var VALID_ELEMENT_STATES = {
link: [
- { value: ":link", label: (0, import_i18n.__)("Link") },
- { value: ":any-link", label: (0, import_i18n.__)("Any Link") },
- { value: ":visited", label: (0, import_i18n.__)("Visited") },
- { value: ":hover", label: (0, import_i18n.__)("Hover") },
- { value: ":focus", label: (0, import_i18n.__)("Focus") },
- { value: ":focus-visible", label: (0, import_i18n.__)("Focus-visible") },
- { value: ":active", label: (0, import_i18n.__)("Active") }
+ { value: ":link", label: (0, import_i18n2.__)("Link") },
+ { value: ":any-link", label: (0, import_i18n2.__)("Any Link") },
+ { value: ":visited", label: (0, import_i18n2.__)("Visited") },
+ { value: ":hover", label: (0, import_i18n2.__)("Hover") },
+ { value: ":focus", label: (0, import_i18n2.__)("Focus") },
+ { value: ":focus-visible", label: (0, import_i18n2.__)("Focus-visible") },
+ { value: ":active", label: (0, import_i18n2.__)("Active") }
],
button: [
- { value: ":link", label: (0, import_i18n.__)("Link") },
- { value: ":any-link", label: (0, import_i18n.__)("Any Link") },
- { value: ":visited", label: (0, import_i18n.__)("Visited") },
- { value: ":hover", label: (0, import_i18n.__)("Hover") },
- { value: ":focus", label: (0, import_i18n.__)("Focus") },
- { value: ":focus-visible", label: (0, import_i18n.__)("Focus-visible") },
- { value: ":active", label: (0, import_i18n.__)("Active") }
+ { value: ":link", label: (0, import_i18n2.__)("Link") },
+ { value: ":any-link", label: (0, import_i18n2.__)("Any Link") },
+ { value: ":visited", label: (0, import_i18n2.__)("Visited") },
+ { value: ":hover", label: (0, import_i18n2.__)("Hover") },
+ { value: ":focus", label: (0, import_i18n2.__)("Focus") },
+ { value: ":focus-visible", label: (0, import_i18n2.__)("Focus-visible") },
+ { value: ":active", label: (0, import_i18n2.__)("Active") }
]
};
var VALID_BLOCK_STATES = {
"core/button": [
- { value: ":hover", label: (0, import_i18n.__)("Hover") },
- { value: ":focus", label: (0, import_i18n.__)("Focus") },
- { value: ":focus-visible", label: (0, import_i18n.__)("Focus-visible") },
- { value: ":active", label: (0, import_i18n.__)("Active") }
+ { value: ":hover", label: (0, import_i18n2.__)("Hover") },
+ { value: ":focus", label: (0, import_i18n2.__)("Focus") },
+ { value: ":focus-visible", label: (0, import_i18n2.__)("Focus-visible") },
+ { value: ":active", label: (0, import_i18n2.__)("Active") }
]
};
var RESPONSIVE_STATES = [
- { value: "@tablet", label: (0, import_i18n.__)("Tablet") },
- { value: "@mobile", label: (0, import_i18n.__)("Mobile") }
+ { value: "@tablet", label: (0, import_i18n2.__)("Tablet") },
+ { value: "@mobile", label: (0, import_i18n2.__)("Mobile") }
];
function removePropertiesFromObject(object, properties) {
if (!properties?.length) {
@@ -11444,7 +11444,7 @@ function hasThemeVariation({
settings,
styles
}) {
- return title === (0, import_i18n2.__)("Default") || Object.keys(settings || {}).length > 0 || Object.keys(styles || {}).length > 0;
+ return title === (0, import_i18n3.__)("Default") || Object.keys(settings || {}).length > 0 || Object.keys(styles || {}).length > 0;
}
function useCurrentMergeThemeStyleVariationsWithUserConfig(properties = []) {
const { variationsFromTheme } = (0, import_data.useSelect)((select) => {
@@ -11462,7 +11462,7 @@ function useCurrentMergeThemeStyleVariationsWithUserConfig(properties = []) {
clonedUserVariation,
properties
);
- userVariationWithoutProperties.title = (0, import_i18n2.__)("Default");
+ userVariationWithoutProperties.title = (0, import_i18n3.__)("Default");
const variationsWithPropertiesAndBase = variationsFromTheme.filter((variation) => {
return isVariationWithProperties(variation, properties);
}).map((variation) => {
@@ -11480,7 +11480,7 @@ function useCurrentMergeThemeStyleVariationsWithUserConfig(properties = []) {
}
// packages/global-styles-ui/build-module/root-menu.mjs
-var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
var {
useHasDimensionsPanel,
useHasTypographyPanel,
@@ -11528,7 +11528,7 @@ function useStylesPreviewColors() {
// packages/global-styles-ui/build-module/typography-example.mjs
var import_element23 = __toESM(require_element(), 1);
var import_components4 = __toESM(require_components(), 1);
-var import_i18n4 = __toESM(require_i18n(), 1);
+var import_i18n5 = __toESM(require_i18n(), 1);
// packages/global-styles-ui/build-module/font-library/utils/preview-styles.mjs
function findNearest(input, numbers) {
@@ -11618,7 +11618,7 @@ function getFacePreviewStyle(face) {
}
// packages/global-styles-ui/build-module/typography-example.mjs
-var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
function PreviewTypography({
fontSize,
variation
@@ -11640,7 +11640,7 @@ function PreviewTypography({
bodyPreviewStyle.fontSize = fontSize;
headingPreviewStyle.fontSize = fontSize;
}
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
import_components4.__unstableMotion.div,
{
animate: {
@@ -11660,8 +11660,8 @@ function PreviewTypography({
lineHeight: 1
},
children: [
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { style: headingPreviewStyle, children: (0, import_i18n4._x)("A", "Uppercase letter A") }),
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { style: bodyPreviewStyle, children: (0, import_i18n4._x)("a", "Lowercase letter A") })
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { style: headingPreviewStyle, children: (0, import_i18n5._x)("A", "Uppercase letter A") }),
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { style: bodyPreviewStyle, children: (0, import_i18n5._x)("a", "Lowercase letter A") })
]
}
);
@@ -11669,14 +11669,14 @@ function PreviewTypography({
// packages/global-styles-ui/build-module/highlighted-colors.mjs
var import_components5 = __toESM(require_components(), 1);
-var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime32 = __toESM(require_jsx_runtime(), 1);
function HighlightedColors({
normalizedColorSwatchSize,
ratio
}) {
const { highlightedColors } = useStylesPreviewColors();
const scaledSwatchSize = normalizedColorSwatchSize * ratio;
- return highlightedColors.map(({ slug, color }, index2) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
+ return highlightedColors.map(({ slug, color }, index2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
import_components5.__unstableMotion.div,
{
style: {
@@ -11705,7 +11705,7 @@ function HighlightedColors({
var import_components6 = __toESM(require_components(), 1);
var import_compose = __toESM(require_compose(), 1);
var import_element24 = __toESM(require_element(), 1);
-var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1);
var normalizedWidth = 248;
var normalizedHeight = 152;
var THROTTLE_OPTIONS = {
@@ -11746,10 +11746,10 @@ function PreviewWrapper({
const fallbackRatio = width ? width / normalizedWidth : 1;
const ratio = ratioState ? ratioState : fallbackRatio;
const isReady = !!width;
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { style: { position: "relative" }, children: containerResizeListener }),
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { style: { position: "relative" }, children: containerResizeListener }),
!isReady && // Match the preview aspect ratio so layout doesn't jump once width is measured.
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
Skeleton,
{
className: "global-styles-ui-preview__wrapper",
@@ -11758,7 +11758,7 @@ function PreviewWrapper({
}
}
),
- isReady && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
+ isReady && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
"div",
{
className: clsx_default("global-styles-ui-preview__wrapper", {
@@ -11770,7 +11770,7 @@ function PreviewWrapper({
onMouseEnter: () => setIsHovered(true),
onMouseLeave: () => setIsHovered(false),
tabIndex: -1,
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
import_components6.__unstableMotion.div,
{
style: {
@@ -11792,7 +11792,7 @@ function PreviewWrapper({
var preview_wrapper_default = PreviewWrapper;
// packages/global-styles-ui/build-module/preview-styles.mjs
-var import_jsx_runtime32 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime34 = __toESM(require_jsx_runtime(), 1);
var firstFrameVariants = {
start: {
scale: 1,
@@ -11842,14 +11842,14 @@ function PreviewStyles({
"elements.h1.color.text"
);
const { paletteColors } = useStylesPreviewColors();
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
preview_wrapper_default,
{
label,
isFocused,
withHoverView,
children: [
- ({ ratio, key }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ ({ ratio, key }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
import_components7.__unstableMotion.div,
{
variants: firstFrameVariants,
@@ -11857,7 +11857,7 @@ function PreviewStyles({
height: "100%",
overflow: "hidden"
},
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
import_components7.__experimentalHStack,
{
spacing: 10 * ratio,
@@ -11867,14 +11867,14 @@ function PreviewStyles({
overflow: "hidden"
},
children: [
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
PreviewTypography,
{
fontSize: 65 * ratio,
variation
}
),
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_components7.__experimentalVStack, { spacing: 4 * ratio, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_components7.__experimentalVStack, { spacing: 4 * ratio, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
HighlightedColors,
{
normalizedColorSwatchSize: 32,
@@ -11887,7 +11887,7 @@ function PreviewStyles({
},
key
),
- ({ key }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ ({ key }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
import_components7.__unstableMotion.div,
{
variants: withHoverView ? midFrameVariants : void 0,
@@ -11900,7 +11900,7 @@ function PreviewStyles({
filter: "blur(60px)",
opacity: 0.1
},
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
import_components7.__experimentalHStack,
{
spacing: 0,
@@ -11909,7 +11909,7 @@ function PreviewStyles({
height: "100%",
overflow: "hidden"
},
- children: paletteColors.slice(0, 4).map(({ color }, index2) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ children: paletteColors.slice(0, 4).map(({ color }, index2) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
"div",
{
style: {
@@ -11925,7 +11925,7 @@ function PreviewStyles({
},
key
),
- ({ ratio, key }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ ({ ratio, key }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
import_components7.__unstableMotion.div,
{
variants: secondFrameVariants,
@@ -11936,7 +11936,7 @@ function PreviewStyles({
position: "absolute",
top: 0
},
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
import_components7.__experimentalVStack,
{
spacing: 3 * ratio,
@@ -11947,7 +11947,7 @@ function PreviewStyles({
padding: 10 * ratio,
boxSizing: "border-box"
},
- children: label && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ children: label && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
"div",
{
style: {
@@ -11973,11 +11973,11 @@ function PreviewStyles({
var preview_styles_default = PreviewStyles;
// packages/global-styles-ui/build-module/screen-root.mjs
-var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime35 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-block-list.mjs
var import_blocks2 = __toESM(require_blocks(), 1);
-var import_i18n7 = __toESM(require_i18n(), 1);
+var import_i18n8 = __toESM(require_i18n(), 1);
var import_components11 = __toESM(require_components(), 1);
var import_data4 = __toESM(require_data(), 1);
var import_element25 = __toESM(require_element(), 1);
@@ -11989,7 +11989,7 @@ import { speak } from "@wordpress/a11y";
var import_blocks = __toESM(require_blocks(), 1);
var import_data3 = __toESM(require_data(), 1);
var import_components9 = __toESM(require_components(), 1);
-var import_jsx_runtime34 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime36 = __toESM(require_jsx_runtime(), 1);
function getFilteredBlockStyles(blockStyles, variations) {
return blockStyles?.filter(
(style) => style.source === "block" || variations.includes(style.name)
@@ -12010,13 +12010,13 @@ function useBlockVariations(name2) {
// packages/global-styles-ui/build-module/screen-header.mjs
var import_components10 = __toESM(require_components(), 1);
-var import_i18n6 = __toESM(require_i18n(), 1);
+var import_i18n7 = __toESM(require_i18n(), 1);
var import_block_editor2 = __toESM(require_block_editor(), 1);
-var import_jsx_runtime35 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime37 = __toESM(require_jsx_runtime(), 1);
var { StateControl, StateControlBadges } = unlock3(import_block_editor2.privateApis);
// packages/global-styles-ui/build-module/screen-block-list.mjs
-var import_jsx_runtime36 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime38 = __toESM(require_jsx_runtime(), 1);
var {
useHasDimensionsPanel: useHasDimensionsPanel2,
useHasTypographyPanel: useHasTypographyPanel2,
@@ -12060,13 +12060,13 @@ function BlockMenuItem({ block }) {
if (!hasBlockMenuItem) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
NavigationButtonAsItem,
{
path: "/blocks/" + encodeURIComponent(block.name),
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_components11.__experimentalHStack, { justify: "flex-start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_block_editor3.BlockIcon, { icon: block.icon }),
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components11.FlexItem, { children: block.title })
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_components11.__experimentalHStack, { justify: "flex-start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_block_editor3.BlockIcon, { icon: block.icon }),
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components11.FlexItem, { children: block.title })
] })
}
);
@@ -12084,20 +12084,20 @@ function BlockList({ filterValue }) {
return;
}
const count = blockTypesListRef.current?.childElementCount || 0;
- const resultsFoundMessage = (0, import_i18n7.sprintf)(
+ const resultsFoundMessage = (0, import_i18n8.sprintf)(
/* translators: %d: number of results. */
- (0, import_i18n7._n)("%d result found.", "%d results found.", count),
+ (0, import_i18n8._n)("%d result found.", "%d results found.", count),
count
);
debouncedSpeak(resultsFoundMessage, "polite");
}, [filterValue, debouncedSpeak]);
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
"div",
{
ref: blockTypesListRef,
className: "global-styles-ui-block-types-item-list",
role: "list",
- children: filteredBlockTypes.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_components11.__experimentalText, { align: "center", as: "p", children: (0, import_i18n7.__)("No blocks found.") }) : filteredBlockTypes.map((block) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
+ children: filteredBlockTypes.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components11.__experimentalText, { align: "center", as: "p", children: (0, import_i18n8.__)("No blocks found.") }) : filteredBlockTypes.map((block) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
BlockMenuItem,
{
block
@@ -12116,27 +12116,27 @@ var import_element27 = __toESM(require_element(), 1);
var import_data5 = __toESM(require_data(), 1);
var import_core_data3 = __toESM(require_core_data(), 1);
var import_components14 = __toESM(require_components(), 1);
-var import_i18n8 = __toESM(require_i18n(), 1);
+var import_i18n9 = __toESM(require_i18n(), 1);
// packages/global-styles-ui/build-module/block-preview-panel.mjs
var import_block_editor4 = __toESM(require_block_editor(), 1);
var import_blocks3 = __toESM(require_blocks(), 1);
var import_components12 = __toESM(require_components(), 1);
var import_element26 = __toESM(require_element(), 1);
-var import_jsx_runtime37 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime39 = __toESM(require_jsx_runtime(), 1);
var { getViewportBreakpoints: getViewportBreakpoints3, getViewportBreakpointValueInPixels: getViewportBreakpointValueInPixels2 } = unlock3(
privateApis
);
// packages/global-styles-ui/build-module/subtitle.mjs
var import_components13 = __toESM(require_components(), 1);
-var import_jsx_runtime38 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime40 = __toESM(require_jsx_runtime(), 1);
function Subtitle({ children, level = 2 }) {
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_components13.__experimentalHeading, { className: "global-styles-ui-subtitle", level, children });
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components13.__experimentalHeading, { className: "global-styles-ui-subtitle", level, children });
}
// packages/global-styles-ui/build-module/screen-block.mjs
-var import_jsx_runtime39 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime41 = __toESM(require_jsx_runtime(), 1);
var {
useHasDimensionsPanel: useHasDimensionsPanel3,
useHasTypographyPanel: useHasTypographyPanel3,
@@ -12157,37 +12157,37 @@ var {
} = unlock3(import_block_editor5.privateApis);
// packages/global-styles-ui/build-module/screen-typography.mjs
-var import_i18n22 = __toESM(require_i18n(), 1);
-var import_components33 = __toESM(require_components(), 1);
+var import_i18n23 = __toESM(require_i18n(), 1);
+var import_components31 = __toESM(require_components(), 1);
var import_element39 = __toESM(require_element(), 1);
// packages/global-styles-ui/build-module/screen-body.mjs
var import_components15 = __toESM(require_components(), 1);
-var import_jsx_runtime40 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime42 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/typography-elements.mjs
-var import_i18n9 = __toESM(require_i18n(), 1);
+var import_i18n10 = __toESM(require_i18n(), 1);
var import_components16 = __toESM(require_components(), 1);
-var import_jsx_runtime41 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime43 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/variations/variations-typography.mjs
var import_components18 = __toESM(require_components(), 1);
// packages/global-styles-ui/build-module/preview-typography.mjs
var import_components17 = __toESM(require_components(), 1);
-var import_jsx_runtime42 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime44 = __toESM(require_jsx_runtime(), 1);
var StylesPreviewTypography = ({
variation,
isFocused,
withHoverView
}) => {
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
preview_wrapper_default,
{
label: variation.title,
isFocused,
withHoverView,
- children: ({ ratio, key }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
+ children: ({ ratio, key }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
import_components17.__experimentalHStack,
{
spacing: 10 * ratio,
@@ -12196,7 +12196,7 @@ var StylesPreviewTypography = ({
height: "100%",
overflow: "hidden"
},
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
PreviewTypography,
{
variation,
@@ -12214,8 +12214,8 @@ var preview_typography_default = StylesPreviewTypography;
// packages/global-styles-ui/build-module/variations/variation.mjs
var import_element28 = __toESM(require_element(), 1);
var import_keycodes = __toESM(require_keycodes(), 1);
-var import_i18n10 = __toESM(require_i18n(), 1);
-var import_jsx_runtime43 = __toESM(require_jsx_runtime(), 1);
+var import_i18n11 = __toESM(require_i18n(), 1);
+var import_jsx_runtime45 = __toESM(require_jsx_runtime(), 1);
function Variation({
variation,
children,
@@ -12255,14 +12255,14 @@ function Variation({
);
let label = variation?.title;
if (variation?.description) {
- label = (0, import_i18n10.sprintf)(
+ label = (0, import_i18n11.sprintf)(
/* translators: 1: variation title. 2: variation description. */
- (0, import_i18n10._x)("%1$s (%2$s)", "variation label"),
+ (0, import_i18n11._x)("%1$s (%2$s)", "variation label"),
variation?.title,
variation?.description
);
}
- const content = /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
+ const content = /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
"div",
{
className: clsx_default("global-styles-ui-variations_item", {
@@ -12276,7 +12276,7 @@ function Variation({
"aria-current": isActive,
onFocus: () => setIsFocused(true),
onBlur: () => setIsFocused(false),
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
"div",
{
className: clsx_default("global-styles-ui-variations_item-preview", {
@@ -12287,14 +12287,14 @@ function Variation({
)
}
);
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(GlobalStylesContext.Provider, { value: context, children: showTooltip ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(tooltip_exports.Root, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(tooltip_exports.Trigger, { render: content }),
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(tooltip_exports.Popup, { children: variation?.title })
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(GlobalStylesContext.Provider, { value: context, children: showTooltip ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(tooltip_exports.Root, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(tooltip_exports.Trigger, { render: content }),
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(tooltip_exports.Popup, { children: variation?.title })
] }) : content });
}
// packages/global-styles-ui/build-module/variations/variations-typography.mjs
-var import_jsx_runtime44 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime46 = __toESM(require_jsx_runtime(), 1);
var propertiesToFilter = ["typography"];
function TypographyVariations({
title,
@@ -12304,9 +12304,9 @@ function TypographyVariations({
if (typographyVariations?.length <= 1) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_components18.__experimentalVStack, { spacing: 3, children: [
- title && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Subtitle, { level: 3, children: title }),
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_components18.__experimentalVStack, { spacing: 3, children: [
+ title && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Subtitle, { level: 3, children: title }),
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
import_components18.__experimentalGrid,
{
columns: 3,
@@ -12314,13 +12314,13 @@ function TypographyVariations({
className: "global-styles-ui-style-variations-container",
children: typographyVariations.map(
(variation, index2) => {
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
Variation,
{
variation,
properties: propertiesToFilter,
showTooltip: true,
- children: () => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
+ children: () => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
preview_typography_default,
{
variation
@@ -12337,15 +12337,15 @@ function TypographyVariations({
}
// packages/global-styles-ui/build-module/font-families.mjs
-var import_i18n20 = __toESM(require_i18n(), 1);
-var import_components31 = __toESM(require_components(), 1);
+var import_i18n21 = __toESM(require_i18n(), 1);
+var import_components29 = __toESM(require_components(), 1);
var import_element38 = __toESM(require_element(), 1);
// packages/global-styles-ui/build-module/font-library/context.mjs
var import_element29 = __toESM(require_element(), 1);
var import_data6 = __toESM(require_data(), 1);
var import_core_data5 = __toESM(require_core_data(), 1);
-var import_i18n12 = __toESM(require_i18n(), 1);
+var import_i18n13 = __toESM(require_i18n(), 1);
// packages/global-styles-ui/build-module/font-library/api.mjs
var import_api_fetch = __toESM(require_api_fetch(), 1);
@@ -12390,31 +12390,103 @@ async function fetchInstallFontFace(fontFamilyId, data, registry) {
};
}
-// packages/global-styles-ui/build-module/font-library/utils/index.mjs
-var import_components19 = __toESM(require_components(), 1);
+// node_modules/tslib/tslib.es6.mjs
+var __assign = function() {
+ __assign = Object.assign || function __assign2(t3) {
+ for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
+ s2 = arguments[i2];
+ for (var p3 in s2) if (Object.prototype.hasOwnProperty.call(s2, p3)) t3[p3] = s2[p3];
+ }
+ return t3;
+ };
+ return __assign.apply(this, arguments);
+};
+
+// node_modules/lower-case/dist.es2015/index.js
+function lowerCase(str) {
+ return str.toLowerCase();
+}
+
+// node_modules/no-case/dist.es2015/index.js
+var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
+var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
+function noCase(input, options) {
+ if (options === void 0) {
+ options = {};
+ }
+ var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
+ var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
+ var start = 0;
+ var end = result.length;
+ while (result.charAt(start) === "\0")
+ start++;
+ while (result.charAt(end - 1) === "\0")
+ end--;
+ return result.slice(start, end).split("\0").map(transform).join(delimiter);
+}
+function replace(input, re, value) {
+ if (re instanceof RegExp)
+ return input.replace(re, value);
+ return re.reduce(function(input2, re2) {
+ return input2.replace(re2, value);
+ }, input);
+}
+
+// node_modules/dot-case/dist.es2015/index.js
+function dotCase(input, options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return noCase(input, __assign({ delimiter: "." }, options));
+}
+
+// node_modules/param-case/dist.es2015/index.js
+function paramCase(input, options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return dotCase(input, __assign({ delimiter: "-" }, options));
+}
+
+// packages/kebab-case/build-module/index.mjs
+function kebabCase(str) {
+ let input = str?.toString?.() ?? "";
+ input = input.replace(/['\u2019]/, "");
+ return paramCase(input, {
+ splitRegexp: [
+ /(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,
+ // fooBar => foo-bar, 3Bar => 3-bar
+ /(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,
+ // 3bar => 3-bar
+ /([A-Za-z])([0-9])/g,
+ // Foo3 => foo-3, foo3 => foo-3
+ /([A-Z])([A-Z][a-z])/g
+ // FOOBar => foo-bar
+ ]
+ });
+}
// packages/global-styles-ui/build-module/font-library/utils/constants.mjs
-var import_i18n11 = __toESM(require_i18n(), 1);
+var import_i18n12 = __toESM(require_i18n(), 1);
var ALLOWED_FILE_EXTENSIONS = ["otf", "ttf", "woff", "woff2"];
var FONT_WEIGHTS = {
- 100: (0, import_i18n11._x)("Thin", "font weight"),
- 200: (0, import_i18n11._x)("Extra-light", "font weight"),
- 300: (0, import_i18n11._x)("Light", "font weight"),
- 400: (0, import_i18n11._x)("Normal", "font weight"),
- 500: (0, import_i18n11._x)("Medium", "font weight"),
- 600: (0, import_i18n11._x)("Semi-bold", "font weight"),
- 700: (0, import_i18n11._x)("Bold", "font weight"),
- 800: (0, import_i18n11._x)("Extra-bold", "font weight"),
- 900: (0, import_i18n11._x)("Black", "font weight")
+ 100: (0, import_i18n12._x)("Thin", "font weight"),
+ 200: (0, import_i18n12._x)("Extra-light", "font weight"),
+ 300: (0, import_i18n12._x)("Light", "font weight"),
+ 400: (0, import_i18n12._x)("Normal", "font weight"),
+ 500: (0, import_i18n12._x)("Medium", "font weight"),
+ 600: (0, import_i18n12._x)("Semi-bold", "font weight"),
+ 700: (0, import_i18n12._x)("Bold", "font weight"),
+ 800: (0, import_i18n12._x)("Extra-bold", "font weight"),
+ 900: (0, import_i18n12._x)("Black", "font weight")
};
var FONT_STYLES = {
- normal: (0, import_i18n11._x)("Normal", "font style"),
- italic: (0, import_i18n11._x)("Italic", "font style")
+ normal: (0, import_i18n12._x)("Normal", "font style"),
+ italic: (0, import_i18n12._x)("Italic", "font style")
};
// packages/global-styles-ui/build-module/font-library/utils/index.mjs
var { File } = window;
-var { kebabCase } = unlock3(import_components19.privateApis);
function setUIValuesNeeded(font2, extraValues = {}) {
if (!font2.name && (font2.fontFamily || font2.slug)) {
font2.name = font2.fontFamily || font2.slug;
@@ -12688,7 +12760,7 @@ function toggleFont(font2, face, initialfonts = []) {
}
// packages/global-styles-ui/build-module/font-library/context.mjs
-var import_jsx_runtime45 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime47 = __toESM(require_jsx_runtime(), 1);
var FontLibraryContext = (0, import_element29.createContext)(
{}
);
@@ -12885,7 +12957,7 @@ function FontLibraryProvider({ children }) {
await saveFontFamilies(activeFonts);
}
if (installationErrorMessages.length > 0) {
- const installError = new Error((0, import_i18n12.__)("There was an error installing fonts."));
+ const installError = new Error((0, import_i18n13.__)("There was an error installing fonts."));
installError.installationErrors = installationErrorMessages;
throw installError;
}
@@ -12895,7 +12967,7 @@ function FontLibraryProvider({ children }) {
}
async function uninstallFontFamily(fontFamilyToUninstall) {
if (!fontFamilyToUninstall?.id) {
- throw new Error((0, import_i18n12.__)("Font family to uninstall is not defined."));
+ throw new Error((0, import_i18n13.__)("Font family to uninstall is not defined."));
}
try {
await deleteEntityRecord(
@@ -13000,7 +13072,7 @@ function FontLibraryProvider({ children }) {
loadFontFaceInBrowser(fontFace, src, "document");
loadedFontUrls.add(src);
};
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
FontLibraryContext.Provider,
{
value: {
@@ -13028,27 +13100,27 @@ function FontLibraryProvider({ children }) {
var context_default = FontLibraryProvider;
// packages/global-styles-ui/build-module/font-library/modal.mjs
-var import_i18n18 = __toESM(require_i18n(), 1);
-var import_components29 = __toESM(require_components(), 1);
+var import_i18n19 = __toESM(require_i18n(), 1);
+var import_components27 = __toESM(require_components(), 1);
var import_core_data8 = __toESM(require_core_data(), 1);
var import_data8 = __toESM(require_data(), 1);
// packages/global-styles-ui/build-module/font-library/installed-fonts.mjs
-var import_components23 = __toESM(require_components(), 1);
+var import_components22 = __toESM(require_components(), 1);
var import_core_data6 = __toESM(require_core_data(), 1);
var import_data7 = __toESM(require_data(), 1);
var import_element33 = __toESM(require_element(), 1);
-var import_i18n14 = __toESM(require_i18n(), 1);
+var import_i18n15 = __toESM(require_i18n(), 1);
// packages/global-styles-ui/build-module/font-library/font-card.mjs
-var import_i18n13 = __toESM(require_i18n(), 1);
+var import_i18n14 = __toESM(require_i18n(), 1);
var import_element31 = __toESM(require_element(), 1);
-var import_components21 = __toESM(require_components(), 1);
+var import_components20 = __toESM(require_components(), 1);
// packages/global-styles-ui/build-module/font-library/font-demo.mjs
-var import_components20 = __toESM(require_components(), 1);
+var import_components19 = __toESM(require_components(), 1);
var import_element30 = __toESM(require_element(), 1);
-var import_jsx_runtime46 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime48 = __toESM(require_jsx_runtime(), 1);
function getPreviewUrl(fontFace) {
if (fontFace.preview) {
return fontFace.preview;
@@ -13112,7 +13184,7 @@ function FontDemo({ font: font2, text }) {
};
loadAsset();
}, [fontFace, isIntersecting, loadFontFaceAsset, isPreviewImage]);
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ref, children: isPreviewImage ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ref, children: isPreviewImage ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
"img",
{
src: previewUrl,
@@ -13120,8 +13192,8 @@ function FontDemo({ font: font2, text }) {
alt: text,
className: "font-library__font-variant_demo-image"
}
- ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
- import_components20.__experimentalText,
+ ) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
+ import_components19.__experimentalText,
{
style: textDemoStyle,
className: "font-library__font-variant_demo-text",
@@ -13132,7 +13204,7 @@ function FontDemo({ font: font2, text }) {
var font_demo_default = FontDemo;
// packages/global-styles-ui/build-module/font-library/font-card.mjs
-var import_jsx_runtime47 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime49 = __toESM(require_jsx_runtime(), 1);
function FontCard({
font: font2,
onClick,
@@ -13144,15 +13216,15 @@ function FontCard({
const style = {
cursor: !!onClick ? "pointer" : "default"
};
- const navigator2 = (0, import_components21.useNavigator)();
+ const navigator2 = (0, import_components20.useNavigator)();
const ref = (0, import_element31.useRef)(null);
(0, import_element31.useEffect)(() => {
if (shouldFocus) {
ref.current?.focus();
}
}, [shouldFocus]);
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
- import_components21.Button,
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ import_components20.Button,
{
ref,
__next40pxDefaultSize: true,
@@ -13164,19 +13236,19 @@ function FontCard({
},
style,
className: "font-library__font-card",
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_components21.Flex, { justify: "space-between", wrap: false, children: [
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(font_demo_default, { font: font2 }),
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_components21.Flex, { justify: "flex-end", children: [
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components21.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components21.__experimentalText, { className: "font-library__font-card__count", children: variantsText || (0, import_i18n13.sprintf)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_components20.Flex, { justify: "space-between", wrap: false, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(font_demo_default, { font: font2 }),
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_components20.Flex, { justify: "flex-end", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components20.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components20.__experimentalText, { className: "font-library__font-card__count", children: variantsText || (0, import_i18n14.sprintf)(
/* translators: %d: Number of font variants. */
- (0, import_i18n13._n)(
+ (0, import_i18n14._n)(
"%d variant",
"%d variants",
variantsCount
),
variantsCount
) }) }),
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_components21.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(icon_default, { icon: (0, import_i18n13.isRTL)() ? chevron_left_default : chevron_right_default }) })
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components20.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(icon_default, { icon: (0, import_i18n14.isRTL)() ? chevron_left_default : chevron_right_default }) })
] })
] })
}
@@ -13186,8 +13258,8 @@ var font_card_default = FontCard;
// packages/global-styles-ui/build-module/font-library/library-font-variant.mjs
var import_element32 = __toESM(require_element(), 1);
-var import_components22 = __toESM(require_components(), 1);
-var import_jsx_runtime48 = __toESM(require_jsx_runtime(), 1);
+var import_components21 = __toESM(require_components(), 1);
+var import_jsx_runtime50 = __toESM(require_jsx_runtime(), 1);
function LibraryFontVariant({
face,
font: font2
@@ -13208,16 +13280,16 @@ function LibraryFontVariant({
};
const displayName = font2.name + " " + getFontFaceVariantName(face);
const checkboxId = (0, import_element32.useId)();
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "font-library__font-card", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_components22.Flex, { justify: "flex-start", align: "center", gap: "1rem", children: [
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
- import_components22.CheckboxControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "font-library__font-card", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_components21.Flex, { justify: "flex-start", align: "center", gap: "1rem", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
+ import_components21.CheckboxControl,
{
checked: isInstalled,
onChange: handleToggleActivation,
id: checkboxId
}
),
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("label", { htmlFor: checkboxId, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("label", { htmlFor: checkboxId, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
font_demo_default,
{
font: face,
@@ -13263,7 +13335,7 @@ function sortFontFaces(faces) {
}
// packages/global-styles-ui/build-module/font-library/installed-fonts.mjs
-var import_jsx_runtime49 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime51 = __toESM(require_jsx_runtime(), 1);
function getFontFamiliesKey(fontFamilies) {
if (!fontFamilies) {
return "";
@@ -13339,14 +13411,14 @@ function InstalledFonts() {
await saveFontFamilies(fontFamilies);
setNotice({
type: "success",
- message: (0, import_i18n14.__)("Font family updated successfully.")
+ message: (0, import_i18n15.__)("Font family updated successfully.")
});
} catch (error) {
setNotice({
type: "error",
- message: (0, import_i18n14.sprintf)(
+ message: (0, import_i18n15.sprintf)(
/* translators: %s: error message */
- (0, import_i18n14.__)("There was an error updating the font family. %s"),
+ (0, import_i18n15.__)("There was an error updating the font family. %s"),
error.message
)
});
@@ -13373,9 +13445,9 @@ function InstalledFonts() {
font2.slug,
font2.source
).length;
- return (0, import_i18n14.sprintf)(
+ return (0, import_i18n15.sprintf)(
/* translators: 1: Active font variants, 2: Total font variants. */
- (0, import_i18n14.__)("%1$d of %2$d active"),
+ (0, import_i18n15.__)("%1$d of %2$d active"),
variantsActive,
variantsInstalled
);
@@ -13418,40 +13490,40 @@ function InstalledFonts() {
}
};
const hasFonts = baseThemeFonts.length > 0 || baseCustomFonts.length > 0;
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "font-library__tabpanel-layout", children: [
- isResolvingLibrary && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "font-library__loading", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components23.ProgressBar, {}) }),
- !isResolvingLibrary && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
- import_components23.Navigator,
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "font-library__tabpanel-layout", children: [
+ isResolvingLibrary && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "font-library__loading", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components22.ProgressBar, {}) }),
+ !isResolvingLibrary && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
+ import_components22.Navigator,
{
initialPath: libraryFontSelected ? "/fontFamily" : "/",
children: [
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components23.Navigator.Screen, { path: "/", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_components23.__experimentalVStack, { spacing: "8", children: [
- notice && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
- import_components23.Notice,
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components22.Navigator.Screen, { path: "/", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_components22.__experimentalVStack, { spacing: "8", children: [
+ notice && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
+ import_components22.Notice,
{
status: notice.type,
onRemove: () => setNotice(null),
children: notice.message
}
),
- !hasFonts && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components23.__experimentalText, { as: "p", children: (0, import_i18n14.__)("No fonts installed.") }),
- baseThemeFonts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_components23.__experimentalVStack, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h2", {
+ !hasFonts && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components22.__experimentalText, { as: "p", children: (0, import_i18n15.__)("No fonts installed.") }),
+ baseThemeFonts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_components22.__experimentalVStack, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("h2", {
className: "font-library__fonts-title",
/* translators: Heading for a list of fonts provided by the theme. */
- children: (0, import_i18n14._x)("Theme", "font source")
+ children: (0, import_i18n15._x)("Theme", "font source")
}),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
"ul",
{
role: "list",
className: "font-library__fonts-list",
- children: baseThemeFonts.map((font2) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ children: baseThemeFonts.map((font2) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
"li",
{
className: "font-library__fonts-list-item",
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
font_card_default,
{
font: font2,
@@ -13474,22 +13546,22 @@ function InstalledFonts() {
}
)
] }),
- baseCustomFonts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_components23.__experimentalVStack, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h2", {
+ baseCustomFonts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_components22.__experimentalVStack, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("h2", {
className: "font-library__fonts-title",
/* translators: Heading for a list of fonts installed by the user. */
- children: (0, import_i18n14._x)("Custom", "font source")
+ children: (0, import_i18n15._x)("Custom", "font source")
}),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
"ul",
{
role: "list",
className: "font-library__fonts-list",
- children: baseCustomFonts.map((font2) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ children: baseCustomFonts.map((font2) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
"li",
{
className: "font-library__fonts-list-item",
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
font_card_default,
{
font: font2,
@@ -13513,8 +13585,8 @@ function InstalledFonts() {
)
] })
] }) }),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_components23.Navigator.Screen, { path: "/fontFamily", children: [
- libraryFontSelected && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_components22.Navigator.Screen, { path: "/fontFamily", children: [
+ libraryFontSelected && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
ConfirmDeleteDialog,
{
font: libraryFontSelected,
@@ -13525,11 +13597,11 @@ function InstalledFonts() {
handleSetLibraryFontSelected
}
),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_components23.Flex, { justify: "flex-start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
- import_components23.Navigator.BackButton,
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_components22.Flex, { justify: "flex-start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
+ import_components22.Navigator.BackButton,
{
- icon: (0, import_i18n14.isRTL)() ? chevron_right_default : chevron_left_default,
+ icon: (0, import_i18n15.isRTL)() ? chevron_right_default : chevron_left_default,
size: "small",
onClick: () => {
setLastSelectedFontSlug(
@@ -13540,11 +13612,11 @@ function InstalledFonts() {
);
setNotice(null);
},
- label: (0, import_i18n14.__)("Back")
+ label: (0, import_i18n15.__)("Back")
}
),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
- import_components23.__experimentalHeading,
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
+ import_components22.__experimentalHeading,
{
level: 2,
size: 13,
@@ -13553,47 +13625,47 @@ function InstalledFonts() {
}
)
] }),
- notice && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components23.__experimentalSpacer, { margin: 1 }),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
- import_components23.Notice,
+ notice && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components22.__experimentalSpacer, { margin: 1 }),
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
+ import_components22.Notice,
{
status: notice.type,
onRemove: () => setNotice(null),
children: notice.message
}
),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components23.__experimentalSpacer, { margin: 1 })
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components22.__experimentalSpacer, { margin: 1 })
] }),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components23.__experimentalSpacer, { margin: 4 }),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components23.__experimentalText, { children: (0, import_i18n14.__)(
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components22.__experimentalSpacer, { margin: 4 }),
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components22.__experimentalText, { children: (0, import_i18n15.__)(
"Choose font variants. Keep in mind that too many variants could make your site slower."
) }),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components23.__experimentalSpacer, { margin: 4 }),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_components23.__experimentalVStack, { spacing: 0, children: [
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
- import_components23.CheckboxControl,
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components22.__experimentalSpacer, { margin: 4 }),
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_components22.__experimentalVStack, { spacing: 0, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
+ import_components22.CheckboxControl,
{
className: "font-library__select-all",
- label: (0, import_i18n14.__)("Select all"),
+ label: (0, import_i18n15.__)("Select all"),
checked: isSelectAllChecked,
onChange: toggleSelectAll,
indeterminate: isIndeterminate
}
),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components23.__experimentalSpacer, { margin: 8 }),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components22.__experimentalSpacer, { margin: 8 }),
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
"ul",
{
role: "list",
className: "font-library__fonts-list",
children: libraryFontSelected && getFontFacesToDisplay(
libraryFontSelected
- ).map((face, i2) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ ).map((face, i2) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
"li",
{
className: "font-library__fonts-list-item",
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
library_font_variant_default,
{
font: libraryFontSelected,
@@ -13611,27 +13683,27 @@ function InstalledFonts() {
]
}
),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_components23.__experimentalHStack, { justify: "flex-end", className: "font-library__footer", children: [
- isInstalling && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_components23.ProgressBar, {}),
- shouldDisplayDeleteButton && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
- import_components23.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_components22.__experimentalHStack, { justify: "flex-end", className: "font-library__footer", children: [
+ isInstalling && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components22.ProgressBar, {}),
+ shouldDisplayDeleteButton && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
+ import_components22.Button,
{
__next40pxDefaultSize: true,
isDestructive: true,
variant: "tertiary",
onClick: handleUninstallClick,
- children: (0, import_i18n14.__)("Delete")
+ children: (0, import_i18n15.__)("Delete")
}
),
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
- import_components23.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
+ import_components22.Button,
{
__next40pxDefaultSize: true,
variant: "primary",
onClick: handleUpdate,
disabled: !fontFamiliesHasChanges,
accessibleWhenDisabled: true,
- children: (0, import_i18n14.__)("Update")
+ children: (0, import_i18n15.__)("Update")
}
)
] })
@@ -13646,7 +13718,7 @@ function ConfirmDeleteDialog({
uninstallFontFamily,
handleSetLibraryFontSelected
}) {
- const navigator2 = (0, import_components23.useNavigator)();
+ const navigator2 = (0, import_components22.useNavigator)();
const handleConfirmUninstall = async () => {
setNotice(null);
setIsOpen(false);
@@ -13656,30 +13728,30 @@ function ConfirmDeleteDialog({
handleSetLibraryFontSelected(void 0);
setNotice({
type: "success",
- message: (0, import_i18n14.__)("Font family uninstalled successfully.")
+ message: (0, import_i18n15.__)("Font family uninstalled successfully.")
});
} catch (error) {
setNotice({
type: "error",
- message: (0, import_i18n14.__)("There was an error uninstalling the font family.") + error.message
+ message: (0, import_i18n15.__)("There was an error uninstalling the font family.") + error.message
});
}
};
const handleCancelUninstall = () => {
setIsOpen(false);
};
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
- import_components23.__experimentalConfirmDialog,
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
+ import_components22.__experimentalConfirmDialog,
{
isOpen,
- cancelButtonText: (0, import_i18n14.__)("Cancel"),
- confirmButtonText: (0, import_i18n14.__)("Delete"),
+ cancelButtonText: (0, import_i18n15.__)("Cancel"),
+ confirmButtonText: (0, import_i18n15.__)("Delete"),
onCancel: handleCancelUninstall,
onConfirm: handleConfirmUninstall,
size: "medium",
- children: font2 && (0, import_i18n14.sprintf)(
+ children: font2 && (0, import_i18n15.sprintf)(
/* translators: %s: Name of the font. */
- (0, import_i18n14.__)(
+ (0, import_i18n15.__)(
'Are you sure you want to delete "%s" font and all its variants and assets?'
),
font2.name
@@ -13691,9 +13763,9 @@ var installed_fonts_default = InstalledFonts;
// packages/global-styles-ui/build-module/font-library/font-collection.mjs
var import_element35 = __toESM(require_element(), 1);
-var import_components26 = __toESM(require_components(), 1);
+var import_components25 = __toESM(require_components(), 1);
var import_compose3 = __toESM(require_compose(), 1);
-var import_i18n16 = __toESM(require_i18n(), 1);
+var import_i18n17 = __toESM(require_i18n(), 1);
var import_core_data7 = __toESM(require_core_data(), 1);
// packages/global-styles-ui/build-module/font-library/utils/filter-fonts.mjs
@@ -13737,9 +13809,9 @@ function isFontFontFaceInOutline(slug, face, outline) {
}
// packages/global-styles-ui/build-module/font-library/google-fonts-confirm-dialog.mjs
-var import_i18n15 = __toESM(require_i18n(), 1);
-var import_components24 = __toESM(require_components(), 1);
-var import_jsx_runtime50 = __toESM(require_jsx_runtime(), 1);
+var import_i18n16 = __toESM(require_i18n(), 1);
+var import_components23 = __toESM(require_components(), 1);
+var import_jsx_runtime52 = __toESM(require_jsx_runtime(), 1);
function GoogleFontsConfirmDialog() {
const handleConfirm = () => {
window.localStorage.setItem(
@@ -13748,24 +13820,24 @@ function GoogleFontsConfirmDialog() {
);
window.dispatchEvent(new Event("storage"));
};
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "font-library__google-fonts-confirm", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components24.Card, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_components24.CardBody, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components24.__experimentalHeading, { level: 2, children: (0, import_i18n15.__)("Connect to Google Fonts") }),
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components24.__experimentalSpacer, { margin: 6 }),
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components24.__experimentalText, { as: "p", children: (0, import_i18n15.__)(
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "font-library__google-fonts-confirm", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components23.Card, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_components23.CardBody, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components23.__experimentalHeading, { level: 2, children: (0, import_i18n16.__)("Connect to Google Fonts") }),
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components23.__experimentalSpacer, { margin: 6 }),
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components23.__experimentalText, { as: "p", children: (0, import_i18n16.__)(
"To install fonts from Google you must give permission to connect directly to Google servers. The fonts you install will be downloaded from Google and stored on your site. Your site will then use these locally-hosted fonts."
) }),
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components24.__experimentalSpacer, { margin: 3 }),
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components24.__experimentalText, { as: "p", children: (0, import_i18n15.__)(
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components23.__experimentalSpacer, { margin: 3 }),
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components23.__experimentalText, { as: "p", children: (0, import_i18n16.__)(
"You can alternatively upload files directly on the Upload tab."
) }),
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_components24.__experimentalSpacer, { margin: 6 }),
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
- import_components24.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components23.__experimentalSpacer, { margin: 6 }),
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
+ import_components23.Button,
{
__next40pxDefaultSize: true,
variant: "primary",
onClick: handleConfirm,
- children: (0, import_i18n15.__)("Allow access to Google Fonts")
+ children: (0, import_i18n16.__)("Allow access to Google Fonts")
}
)
] }) }) });
@@ -13774,8 +13846,8 @@ var google_fonts_confirm_dialog_default = GoogleFontsConfirmDialog;
// packages/global-styles-ui/build-module/font-library/collection-font-variant.mjs
var import_element34 = __toESM(require_element(), 1);
-var import_components25 = __toESM(require_components(), 1);
-var import_jsx_runtime51 = __toESM(require_jsx_runtime(), 1);
+var import_components24 = __toESM(require_components(), 1);
+var import_jsx_runtime53 = __toESM(require_jsx_runtime(), 1);
function CollectionFontVariant({
face,
font: font2,
@@ -13791,16 +13863,16 @@ function CollectionFontVariant({
};
const displayName = font2.name + " " + getFontFaceVariantName(face);
const checkboxId = (0, import_element34.useId)();
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "font-library__font-card", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_components25.Flex, { justify: "flex-start", align: "center", gap: "1rem", children: [
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
- import_components25.CheckboxControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "font-library__font-card", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_components24.Flex, { justify: "flex-start", align: "center", gap: "1rem", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
+ import_components24.CheckboxControl,
{
checked: selected,
onChange: handleToggleActivation,
id: checkboxId
}
),
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("label", { htmlFor: checkboxId, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("label", { htmlFor: checkboxId, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
font_demo_default,
{
font: face,
@@ -13813,10 +13885,10 @@ function CollectionFontVariant({
var collection_font_variant_default = CollectionFontVariant;
// packages/global-styles-ui/build-module/font-library/font-collection.mjs
-var import_jsx_runtime52 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime54 = __toESM(require_jsx_runtime(), 1);
var DEFAULT_CATEGORY = {
slug: "all",
- name: (0, import_i18n16._x)("All", "font categories")
+ name: (0, import_i18n17._x)("All", "font categories")
};
var LOCAL_STORAGE_ITEM = "wp-font-library-google-fonts-permission";
var MIN_WINDOW_HEIGHT = 500;
@@ -13884,7 +13956,11 @@ function FontCollection({ slug }) {
setFilters({ ...filters, search: value });
setPage(1);
};
- const debouncedUpdateSearchInput = (0, import_compose3.debounce)(handleUpdateSearchInput, 300);
+ const debouncedUpdateSearchInput = (0, import_compose3.debounce)(
+ // @ts-expect-error `debounce` expects a `(...args: unknown[]) => unknown` callback.
+ handleUpdateSearchInput,
+ 300
+ );
const handleToggleVariant = (font2, face) => {
const newFontsToInstall = toggleFont(font2, face, fontsToInstall);
setFontsToInstall(newFontsToInstall);
@@ -13921,7 +13997,7 @@ function FontCollection({ slug }) {
} catch {
setNotice({
type: "error",
- message: (0, import_i18n16.__)(
+ message: (0, import_i18n17.__)(
"Error installing the fonts, could not be downloaded."
)
});
@@ -13931,7 +14007,7 @@ function FontCollection({ slug }) {
await installFonts([fontFamily]);
setNotice({
type: "success",
- message: (0, import_i18n16.__)("Fonts were installed successfully.")
+ message: (0, import_i18n17.__)("Fonts were installed successfully.")
});
} catch (error) {
setNotice({
@@ -13957,35 +14033,35 @@ function FontCollection({ slug }) {
return sortFontFaces(fontFamily.fontFace);
};
if (renderConfirmDialog) {
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(google_fonts_confirm_dialog_default, {});
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(google_fonts_confirm_dialog_default, {});
}
const showActions = slug === "google-fonts" && !renderConfirmDialog && !selectedFont;
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "font-library__tabpanel-layout", children: [
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "font-library__loading", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.ProgressBar, {}) }),
- !isLoading && selectedCollection && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
- import_components26.Navigator,
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "font-library__tabpanel-layout", children: [
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "font-library__loading", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.ProgressBar, {}) }),
+ !isLoading && selectedCollection && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
+ import_components25.Navigator,
{
initialPath: "/",
className: "font-library__tabpanel-layout",
children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_components26.Navigator.Screen, { path: "/", children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_components26.__experimentalHStack, { justify: "space-between", children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_components26.__experimentalVStack, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalHeading, { level: 2, size: 13, children: selectedCollection.name }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalText, { children: selectedCollection.description })
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_components25.Navigator.Screen, { path: "/", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_components25.__experimentalHStack, { justify: "space-between", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_components25.__experimentalVStack, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalHeading, { level: 2, size: 13, children: selectedCollection.name }),
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalText, { children: selectedCollection.description })
] }),
- showActions && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.DropdownMenu,
+ showActions && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.DropdownMenu,
{
icon: more_vertical_default,
- label: (0, import_i18n16.__)("Actions"),
+ label: (0, import_i18n17.__)("Actions"),
popoverProps: {
position: "bottom left"
},
controls: [
{
- title: (0, import_i18n16.__)(
+ title: (0, import_i18n17.__)(
"Revoke access to Google Fonts"
),
onClick: revokeAccess
@@ -13994,26 +14070,26 @@ function FontCollection({ slug }) {
}
)
] }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalSpacer, { margin: 4 }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_components26.__experimentalHStack, { spacing: 4, justify: "space-between", children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.SearchControl,
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalSpacer, { margin: 4 }),
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_components25.__experimentalHStack, { spacing: 4, justify: "space-between", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.SearchControl,
{
className: "font-library__search",
value: filters.search,
- placeholder: (0, import_i18n16.__)("Font name\u2026"),
- label: (0, import_i18n16.__)("Search"),
+ placeholder: (0, import_i18n17.__)("Font name\u2026"),
+ label: (0, import_i18n17.__)("Search"),
onChange: debouncedUpdateSearchInput,
hideLabelFromVision: false
}
),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.SelectControl,
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.SelectControl,
{
- label: (0, import_i18n16.__)("Category"),
+ label: (0, import_i18n17.__)("Category"),
value: filters.category,
onChange: handleCategoryFilter,
- children: categories && categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
+ children: categories && categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
"option",
{
value: category.slug,
@@ -14024,20 +14100,20 @@ function FontCollection({ slug }) {
}
)
] }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalSpacer, { margin: 4 }),
- !!selectedCollection?.font_families?.length && !fonts.length && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalText, { children: (0, import_i18n16.__)(
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalSpacer, { margin: 4 }),
+ !!selectedCollection?.font_families?.length && !fonts.length && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalText, { children: (0, import_i18n17.__)(
"No fonts found. Try with a different search term."
) }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "font-library__fonts-grid__main", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "font-library__fonts-grid__main", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
"ul",
{
role: "list",
className: "font-library__fonts-list",
- children: items.map((font2) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
+ children: items.map((font2) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
"li",
{
className: "font-library__fonts-list-item",
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
font_card_default,
{
font: font2.font_family_settings,
@@ -14056,12 +14132,12 @@ function FontCollection({ slug }) {
}
) })
] }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_components26.Navigator.Screen, { path: "/fontFamily", children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_components26.Flex, { justify: "flex-start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.Navigator.BackButton,
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_components25.Navigator.Screen, { path: "/fontFamily", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_components25.Flex, { justify: "flex-start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.Navigator.BackButton,
{
- icon: (0, import_i18n16.isRTL)() ? chevron_right_default : chevron_left_default,
+ icon: (0, import_i18n17.isRTL)() ? chevron_right_default : chevron_left_default,
size: "small",
onClick: () => {
setLastSelectedFontSlug(
@@ -14070,11 +14146,11 @@ function FontCollection({ slug }) {
setSelectedFont(null);
setNotice(null);
},
- label: (0, import_i18n16.__)("Back")
+ label: (0, import_i18n17.__)("Back")
}
),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.__experimentalHeading,
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.__experimentalHeading,
{
level: 2,
size: 13,
@@ -14083,42 +14159,42 @@ function FontCollection({ slug }) {
}
)
] }),
- notice && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalSpacer, { margin: 1 }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.Notice,
+ notice && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalSpacer, { margin: 1 }),
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.Notice,
{
status: notice.type,
onRemove: () => setNotice(null),
children: notice.message
}
),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalSpacer, { margin: 1 })
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalSpacer, { margin: 1 })
] }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalSpacer, { margin: 4 }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalText, { children: (0, import_i18n16.__)("Select font variants to install.") }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalSpacer, { margin: 4 }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.CheckboxControl,
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalSpacer, { margin: 4 }),
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalText, { children: (0, import_i18n17.__)("Select font variants to install.") }),
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalSpacer, { margin: 4 }),
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.CheckboxControl,
{
className: "font-library__select-all",
- label: (0, import_i18n16.__)("Select all"),
+ label: (0, import_i18n17.__)("Select all"),
checked: isSelectAllChecked,
onChange: toggleSelectAll,
indeterminate: isIndeterminate
}
),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalVStack, { spacing: 0, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalVStack, { spacing: 0, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
"ul",
{
role: "list",
className: "font-library__fonts-list",
children: selectedFont && getSortedFontFaces(selectedFont).map(
- (face, i2) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
+ (face, i2) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
"li",
{
className: "font-library__fonts-list-item",
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
collection_font_variant_default,
{
font: selectedFont,
@@ -14138,18 +14214,18 @@ function FontCollection({ slug }) {
)
}
) }),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_components26.__experimentalSpacer, { margin: 16 })
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_components25.__experimentalSpacer, { margin: 16 })
] })
]
}
),
- selectedFont && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.Flex,
+ selectedFont && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.Flex,
{
justify: "flex-end",
className: "font-library__footer",
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.Button,
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.Button,
{
__next40pxDefaultSize: true,
variant: "primary",
@@ -14157,30 +14233,30 @@ function FontCollection({ slug }) {
isBusy: isInstalling,
disabled: fontsToInstall.length === 0 || isInstalling,
accessibleWhenDisabled: true,
- children: (0, import_i18n16.__)("Install")
+ children: (0, import_i18n17.__)("Install")
}
)
}
),
- !selectedFont && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
- import_components26.__experimentalHStack,
+ !selectedFont && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
+ import_components25.__experimentalHStack,
{
expanded: false,
className: "font-library__footer",
justify: "end",
spacing: 6,
children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.__experimentalHStack,
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.__experimentalHStack,
{
justify: "flex-start",
expanded: false,
spacing: 1,
className: "font-library__page-selection",
children: (0, import_element35.createInterpolateElement)(
- (0, import_i18n16.sprintf)(
+ (0, import_i18n17.sprintf)(
// translators: 1: Current page number, 2: Total number of pages.
- (0, import_i18n16._x)(
+ (0, import_i18n17._x)(
"<div>Page</div>%1$s<div>of %2$d</div>",
"paging"
),
@@ -14188,12 +14264,12 @@ function FontCollection({ slug }) {
totalPages
),
{
- div: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { "aria-hidden": true }),
+ div: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { "aria-hidden": true }),
// @ts-expect-error — Tag injected via sprintf argument, not visible in format string.
- CurrentPage: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.SelectControl,
+ CurrentPage: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.SelectControl,
{
- "aria-label": (0, import_i18n16.__)(
+ "aria-label": (0, import_i18n17.__)(
"Current page"
),
value: page.toString(),
@@ -14216,28 +14292,28 @@ function FontCollection({ slug }) {
)
}
),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_components26.__experimentalHStack, { expanded: false, spacing: 1, children: [
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_components25.__experimentalHStack, { expanded: false, spacing: 1, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.Button,
{
onClick: () => setPage(page - 1),
disabled: page === 1,
accessibleWhenDisabled: true,
- label: (0, import_i18n16.__)("Previous page"),
- icon: (0, import_i18n16.isRTL)() ? next_default : previous_default,
+ label: (0, import_i18n17.__)("Previous page"),
+ icon: (0, import_i18n17.isRTL)() ? next_default : previous_default,
showTooltip: true,
size: "compact",
tooltipPosition: "top"
}
),
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
- import_components26.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
+ import_components25.Button,
{
onClick: () => setPage(page + 1),
disabled: page === totalPages,
accessibleWhenDisabled: true,
- label: (0, import_i18n16.__)("Next page"),
- icon: (0, import_i18n16.isRTL)() ? previous_default : next_default,
+ label: (0, import_i18n17.__)("Next page"),
+ icon: (0, import_i18n17.isRTL)() ? previous_default : next_default,
showTooltip: true,
size: "compact",
tooltipPosition: "top"
@@ -14253,8 +14329,8 @@ function FontCollection({ slug }) {
var font_collection_default = FontCollection;
// packages/global-styles-ui/build-module/font-library/upload-fonts.mjs
-var import_i18n17 = __toESM(require_i18n(), 1);
-var import_components28 = __toESM(require_components(), 1);
+var import_i18n18 = __toESM(require_i18n(), 1);
+var import_components26 = __toESM(require_components(), 1);
var import_element36 = __toESM(require_element(), 1);
// packages/global-styles-ui/build-module/font-library/lib/unbrotli.mjs
@@ -18073,12 +18149,12 @@ var inflate_default = (function() {
var STR_APPLY_UIA_OK = true;
try {
String.fromCharCode.apply(null, [0]);
- } catch (__43) {
+ } catch (__42) {
STR_APPLY_OK = false;
}
try {
String.fromCharCode.apply(null, new Uint8Array(1));
- } catch (__43) {
+ } catch (__42) {
STR_APPLY_UIA_OK = false;
}
var _utf8len = new utils.Buf8(256);
@@ -24290,8 +24366,6 @@ var LongVertMetric = class {
var vmtx$1 = Object.freeze({ __proto__: null, vmtx });
// packages/global-styles-ui/build-module/font-library/utils/make-families-from-faces.mjs
-var import_components27 = __toESM(require_components(), 1);
-var { kebabCase: kebabCase2 } = unlock3(import_components27.privateApis);
function makeFamiliesFromFaces(fontFaces) {
const fontFamiliesObject = fontFaces.reduce(
(acc, item) => {
@@ -24299,7 +24373,7 @@ function makeFamiliesFromFaces(fontFaces) {
acc[item.fontFamily] = {
name: item.fontFamily,
fontFamily: item.fontFamily,
- slug: kebabCase2(item.fontFamily.toLowerCase()),
+ slug: kebabCase(item.fontFamily.toLowerCase()),
fontFace: []
};
}
@@ -24312,7 +24386,7 @@ function makeFamiliesFromFaces(fontFaces) {
}
// packages/global-styles-ui/build-module/font-library/upload-fonts.mjs
-var import_jsx_runtime53 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime55 = __toESM(require_jsx_runtime(), 1);
function UploadFonts() {
const { installFonts } = (0, import_element36.useContext)(FontLibraryContext);
const [isUploading, setIsUploading] = (0, import_element36.useState)(false);
@@ -24352,7 +24426,7 @@ function UploadFonts() {
if (allowedFiles.length > 0) {
loadFiles(allowedFiles);
} else {
- const message = hasInvalidFiles ? (0, import_i18n17.__)("Sorry, you are not allowed to upload this file type.") : (0, import_i18n17.__)("No fonts found to install.");
+ const message = hasInvalidFiles ? (0, import_i18n18.__)("Sorry, you are not allowed to upload this file type.") : (0, import_i18n18.__)("No fonts found to install.");
setNotice({
type: "error",
message
@@ -24422,7 +24496,7 @@ function UploadFonts() {
await installFonts(fontFamilies);
setNotice({
type: "success",
- message: (0, import_i18n17.__)("Fonts were installed successfully.")
+ message: (0, import_i18n18.__)("Fonts were installed successfully.")
});
} catch (error) {
const typedError = error;
@@ -24434,42 +24508,42 @@ function UploadFonts() {
}
setIsUploading(false);
};
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "font-library__tabpanel-layout", children: [
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components28.DropZone, { onFilesDrop: handleDropZone }),
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_components28.__experimentalVStack, { className: "font-library__local-fonts", justify: "start", children: [
- notice && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
- import_components28.Notice,
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "font-library__tabpanel-layout", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components26.DropZone, { onFilesDrop: handleDropZone }),
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_components26.__experimentalVStack, { className: "font-library__local-fonts", justify: "start", children: [
+ notice && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
+ import_components26.Notice,
{
status: notice.type,
__unstableHTML: true,
onRemove: () => setNotice(null),
children: [
notice.message,
- notice.errors && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("ul", { children: notice.errors.map((error, index2) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("li", { children: error }, index2)) })
+ notice.errors && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("ul", { children: notice.errors.map((error, index2) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("li", { children: error }, index2)) })
]
}
),
- isUploading && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components28.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "font-library__upload-area", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components28.ProgressBar, {}) }) }),
- !isUploading && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
- import_components28.FormFileUpload,
+ isUploading && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components26.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "font-library__upload-area", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components26.ProgressBar, {}) }) }),
+ !isUploading && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
+ import_components26.FormFileUpload,
{
accept: ALLOWED_FILE_EXTENSIONS.map(
(ext) => `.${ext}`
).join(","),
multiple: true,
onChange: onFilesUpload,
- render: ({ openFileDialog }) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
- import_components28.Button,
+ render: ({ openFileDialog }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
+ import_components26.Button,
{
__next40pxDefaultSize: true,
className: "font-library__upload-area",
onClick: openFileDialog,
- children: (0, import_i18n17.__)("Upload font")
+ children: (0, import_i18n18.__)("Upload font")
}
)
}
),
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_components28.__experimentalText, { className: "font-library__upload-area__text", children: (0, import_i18n17.__)(
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components26.__experimentalText, { className: "font-library__upload-area__text", children: (0, import_i18n18.__)(
"Uploaded fonts appear in your library and can be used in your theme. Supported formats: .ttf, .otf, .woff, and .woff2."
) })
] })
@@ -24478,114 +24552,114 @@ function UploadFonts() {
var upload_fonts_default = UploadFonts;
// packages/global-styles-ui/build-module/font-library/modal.mjs
-var import_jsx_runtime54 = __toESM(require_jsx_runtime(), 1);
-var { Tabs } = unlock3(import_components29.privateApis);
+var import_jsx_runtime56 = __toESM(require_jsx_runtime(), 1);
+var { Tabs } = unlock3(import_components27.privateApis);
var DEFAULT_TAB = {
id: "installed-fonts",
- title: (0, import_i18n18._x)("Library", "Font library")
+ title: (0, import_i18n19._x)("Library", "Font library")
};
var UPLOAD_TAB = {
id: "upload-fonts",
- title: (0, import_i18n18._x)("Upload", "noun")
+ title: (0, import_i18n19._x)("Upload", "noun")
};
// packages/global-styles-ui/build-module/font-family-item.mjs
-var import_i18n19 = __toESM(require_i18n(), 1);
-var import_components30 = __toESM(require_components(), 1);
+var import_i18n20 = __toESM(require_i18n(), 1);
+var import_components28 = __toESM(require_components(), 1);
var import_element37 = __toESM(require_element(), 1);
-var import_jsx_runtime55 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime57 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/font-families.mjs
-var import_jsx_runtime56 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime58 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/font-sizes/font-sizes-count.mjs
-var import_i18n21 = __toESM(require_i18n(), 1);
-var import_components32 = __toESM(require_components(), 1);
-var import_jsx_runtime57 = __toESM(require_jsx_runtime(), 1);
+var import_i18n22 = __toESM(require_i18n(), 1);
+var import_components30 = __toESM(require_components(), 1);
+var import_jsx_runtime59 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-typography.mjs
-var import_jsx_runtime58 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime60 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-typography-element.mjs
-var import_i18n23 = __toESM(require_i18n(), 1);
-var import_components34 = __toESM(require_components(), 1);
+var import_i18n24 = __toESM(require_i18n(), 1);
+var import_components32 = __toESM(require_components(), 1);
var import_element40 = __toESM(require_element(), 1);
// packages/global-styles-ui/build-module/typography-panel.mjs
var import_block_editor6 = __toESM(require_block_editor(), 1);
-var import_jsx_runtime59 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime61 = __toESM(require_jsx_runtime(), 1);
var { useSettingsForBlockElement: useSettingsForBlockElement4, TypographyPanel: StylesTypographyPanel2 } = unlock3(import_block_editor6.privateApis);
// packages/global-styles-ui/build-module/typography-preview.mjs
-var import_jsx_runtime60 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime62 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-typography-element.mjs
-var import_jsx_runtime61 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime63 = __toESM(require_jsx_runtime(), 1);
var elements = {
text: {
- description: (0, import_i18n23.__)("Manage the fonts used on the site."),
- title: (0, import_i18n23.__)("Text")
+ description: (0, import_i18n24.__)("Manage the fonts used on the site."),
+ title: (0, import_i18n24.__)("Text")
},
link: {
- description: (0, import_i18n23.__)("Manage the fonts and typography used on the links."),
- title: (0, import_i18n23.__)("Links")
+ description: (0, import_i18n24.__)("Manage the fonts and typography used on the links."),
+ title: (0, import_i18n24.__)("Links")
},
heading: {
- description: (0, import_i18n23.__)("Manage the fonts and typography used on headings."),
- title: (0, import_i18n23.__)("Headings")
+ description: (0, import_i18n24.__)("Manage the fonts and typography used on headings."),
+ title: (0, import_i18n24.__)("Headings")
},
caption: {
- description: (0, import_i18n23.__)("Manage the fonts and typography used on captions."),
- title: (0, import_i18n23.__)("Captions")
+ description: (0, import_i18n24.__)("Manage the fonts and typography used on captions."),
+ title: (0, import_i18n24.__)("Captions")
},
button: {
- description: (0, import_i18n23.__)("Manage the fonts and typography used on buttons."),
- title: (0, import_i18n23.__)("Buttons")
+ description: (0, import_i18n24.__)("Manage the fonts and typography used on buttons."),
+ title: (0, import_i18n24.__)("Buttons")
}
};
// packages/global-styles-ui/build-module/screen-colors.mjs
-var import_i18n25 = __toESM(require_i18n(), 1);
-var import_components37 = __toESM(require_components(), 1);
+var import_i18n26 = __toESM(require_i18n(), 1);
+var import_components35 = __toESM(require_components(), 1);
var import_block_editor7 = __toESM(require_block_editor(), 1);
// packages/global-styles-ui/build-module/palette.mjs
-var import_components36 = __toESM(require_components(), 1);
-var import_i18n24 = __toESM(require_i18n(), 1);
+var import_components34 = __toESM(require_components(), 1);
+var import_i18n25 = __toESM(require_i18n(), 1);
var import_element41 = __toESM(require_element(), 1);
// packages/global-styles-ui/build-module/color-indicator-wrapper.mjs
-var import_components35 = __toESM(require_components(), 1);
-var import_jsx_runtime62 = __toESM(require_jsx_runtime(), 1);
+var import_components33 = __toESM(require_components(), 1);
+var import_jsx_runtime64 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/palette.mjs
-var import_jsx_runtime63 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime65 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-colors.mjs
-var import_jsx_runtime64 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime66 = __toESM(require_jsx_runtime(), 1);
var { useSettingsForBlockElement: useSettingsForBlockElement5, ColorPanel: StylesColorPanel2 } = unlock3(
import_block_editor7.privateApis
);
// packages/global-styles-ui/build-module/screen-color-palette.mjs
-var import_i18n28 = __toESM(require_i18n(), 1);
+var import_i18n29 = __toESM(require_i18n(), 1);
// packages/global-styles-ui/build-module/color-palette-panel.mjs
var import_compose4 = __toESM(require_compose(), 1);
-var import_components40 = __toESM(require_components(), 1);
-var import_i18n26 = __toESM(require_i18n(), 1);
+var import_components38 = __toESM(require_components(), 1);
+var import_i18n27 = __toESM(require_i18n(), 1);
// packages/global-styles-ui/build-module/variations/variations-color.mjs
-var import_components39 = __toESM(require_components(), 1);
+var import_components37 = __toESM(require_components(), 1);
// packages/global-styles-ui/build-module/preview-colors.mjs
-var import_components38 = __toESM(require_components(), 1);
+var import_components36 = __toESM(require_components(), 1);
// packages/global-styles-ui/build-module/preset-colors.mjs
-var import_jsx_runtime65 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime67 = __toESM(require_jsx_runtime(), 1);
function PresetColors() {
const { paletteColors } = useStylesPreviewColors();
- return paletteColors.slice(0, 4).map(({ slug, color }, index2) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
+ return paletteColors.slice(0, 4).map(({ slug, color }, index2) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
"div",
{
style: {
@@ -24599,7 +24673,7 @@ function PresetColors() {
}
// packages/global-styles-ui/build-module/preview-colors.mjs
-var import_jsx_runtime66 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime68 = __toESM(require_jsx_runtime(), 1);
var firstFrameVariants2 = {
start: {
scale: 1,
@@ -24615,22 +24689,22 @@ var StylesPreviewColors = ({
isFocused,
withHoverView
}) => {
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
preview_wrapper_default,
{
label,
isFocused,
withHoverView,
- children: ({ key }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
- import_components38.__unstableMotion.div,
+ children: ({ key }) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
+ import_components36.__unstableMotion.div,
{
variants: firstFrameVariants2,
style: {
height: "100%",
overflow: "hidden"
},
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
- import_components38.__experimentalHStack,
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
+ import_components36.__experimentalHStack,
{
spacing: 0,
justify: "center",
@@ -24638,7 +24712,7 @@ var StylesPreviewColors = ({
height: "100%",
overflow: "hidden"
},
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(PresetColors, {})
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PresetColors, {})
}
)
},
@@ -24650,7 +24724,7 @@ var StylesPreviewColors = ({
var preview_colors_default = StylesPreviewColors;
// packages/global-styles-ui/build-module/variations/variations-color.mjs
-var import_jsx_runtime67 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime69 = __toESM(require_jsx_runtime(), 1);
var propertiesToFilter2 = ["color"];
function ColorVariations({
title,
@@ -24660,16 +24734,16 @@ function ColorVariations({
if (colorVariations?.length <= 1) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_components39.__experimentalVStack, { spacing: 3, children: [
- title && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Subtitle, { level: 3, children: title }),
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_components39.__experimentalGrid, { gap, children: colorVariations.map((variation, index2) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_components37.__experimentalVStack, { spacing: 3, children: [
+ title && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Subtitle, { level: 3, children: title }),
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_components37.__experimentalGrid, { gap, children: colorVariations.map((variation, index2) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
Variation,
{
variation,
isPill: true,
properties: propertiesToFilter2,
showTooltip: true,
- children: () => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(preview_colors_default, {})
+ children: () => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(preview_colors_default, {})
},
index2
)) })
@@ -24677,108 +24751,115 @@ function ColorVariations({
}
// packages/global-styles-ui/build-module/color-palette-panel.mjs
-var import_jsx_runtime68 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime70 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/gradients-palette-panel.mjs
var import_compose5 = __toESM(require_compose(), 1);
-var import_components41 = __toESM(require_components(), 1);
-var import_i18n27 = __toESM(require_i18n(), 1);
-var import_jsx_runtime69 = __toESM(require_jsx_runtime(), 1);
+var import_components39 = __toESM(require_components(), 1);
+var import_i18n28 = __toESM(require_i18n(), 1);
+var import_jsx_runtime71 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-color-palette.mjs
-var import_jsx_runtime70 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime72 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-background.mjs
-var import_i18n29 = __toESM(require_i18n(), 1);
+var import_i18n30 = __toESM(require_i18n(), 1);
var import_block_editor9 = __toESM(require_block_editor(), 1);
-var import_components42 = __toESM(require_components(), 1);
+var import_components40 = __toESM(require_components(), 1);
// packages/global-styles-ui/build-module/background-panel.mjs
var import_block_editor8 = __toESM(require_block_editor(), 1);
-var import_jsx_runtime71 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime73 = __toESM(require_jsx_runtime(), 1);
var { BackgroundPanel: StylesBackgroundPanel2 } = unlock3(
import_block_editor8.privateApis
);
// packages/global-styles-ui/build-module/screen-background.mjs
-var import_jsx_runtime72 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime74 = __toESM(require_jsx_runtime(), 1);
var { useHasBackgroundPanel: useHasBackgroundPanel4 } = unlock3(import_block_editor9.privateApis);
// packages/global-styles-ui/build-module/shadows-panel.mjs
-var import_components44 = __toESM(require_components(), 1);
-var import_i18n31 = __toESM(require_i18n(), 1);
+var import_i18n33 = __toESM(require_i18n(), 1);
+
+// packages/global-styles-ui/build-module/presets/preset-group.mjs
+var import_components42 = __toESM(require_components(), 1);
+var import_i18n32 = __toESM(require_i18n(), 1);
var import_element42 = __toESM(require_element(), 1);
-// packages/global-styles-ui/build-module/confirm-reset-shadow-dialog.mjs
-var import_components43 = __toESM(require_components(), 1);
-var import_i18n30 = __toESM(require_i18n(), 1);
-var import_jsx_runtime73 = __toESM(require_jsx_runtime(), 1);
+// packages/global-styles-ui/build-module/presets/dialogs/confirm-reset-dialog.mjs
+var import_components41 = __toESM(require_components(), 1);
+var import_i18n31 = __toESM(require_i18n(), 1);
+var import_jsx_runtime75 = __toESM(require_jsx_runtime(), 1);
+
+// packages/global-styles-ui/build-module/presets/preset-group.mjs
+var import_jsx_runtime76 = __toESM(require_jsx_runtime(), 1);
+var { Menu } = unlock3(import_components42.privateApis);
// packages/global-styles-ui/build-module/shadows-panel.mjs
-var import_jsx_runtime74 = __toESM(require_jsx_runtime(), 1);
-var { Menu } = unlock3(import_components44.privateApis);
+var import_jsx_runtime77 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/shadows-edit-panel.mjs
+var import_components46 = __toESM(require_components(), 1);
+var import_i18n36 = __toESM(require_i18n(), 1);
+var import_element44 = __toESM(require_element(), 1);
+
+// packages/global-styles-ui/build-module/presets/preset-edit-header.mjs
+var import_components43 = __toESM(require_components(), 1);
+var import_jsx_runtime78 = __toESM(require_jsx_runtime(), 1);
+var { Menu: Menu2 } = unlock3(import_components43.privateApis);
+
+// packages/global-styles-ui/build-module/presets/dialogs/confirm-delete-dialog.mjs
+var import_components44 = __toESM(require_components(), 1);
+var import_i18n34 = __toESM(require_i18n(), 1);
+var import_jsx_runtime79 = __toESM(require_jsx_runtime(), 1);
+
+// packages/global-styles-ui/build-module/presets/dialogs/rename-dialog.mjs
var import_components45 = __toESM(require_components(), 1);
-var import_i18n32 = __toESM(require_i18n(), 1);
+var import_i18n35 = __toESM(require_i18n(), 1);
var import_element43 = __toESM(require_element(), 1);
-var import_jsx_runtime75 = __toESM(require_jsx_runtime(), 1);
-var { Menu: Menu2 } = unlock3(import_components45.privateApis);
-var customShadowMenuItems = [
- {
- label: (0, import_i18n32.__)("Rename"),
- action: "rename"
- },
- {
- label: (0, import_i18n32.__)("Delete"),
- action: "delete"
- }
-];
-var presetShadowMenuItems = [
- {
- label: (0, import_i18n32.__)("Reset"),
- action: "reset"
- }
-];
+var import_jsx_runtime80 = __toESM(require_jsx_runtime(), 1);
+
+// packages/global-styles-ui/build-module/shadows-edit-panel.mjs
+var import_jsx_runtime81 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-shadows.mjs
-var import_jsx_runtime76 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime82 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-layout.mjs
-var import_i18n33 = __toESM(require_i18n(), 1);
+var import_i18n37 = __toESM(require_i18n(), 1);
var import_block_editor11 = __toESM(require_block_editor(), 1);
// packages/global-styles-ui/build-module/dimensions-panel.mjs
var import_block_editor10 = __toESM(require_block_editor(), 1);
-var import_element44 = __toESM(require_element(), 1);
-var import_jsx_runtime77 = __toESM(require_jsx_runtime(), 1);
+var import_element45 = __toESM(require_element(), 1);
+var import_jsx_runtime83 = __toESM(require_jsx_runtime(), 1);
var { useSettingsForBlockElement: useSettingsForBlockElement6, DimensionsPanel: StylesDimensionsPanel2 } = unlock3(import_block_editor10.privateApis);
// packages/global-styles-ui/build-module/screen-layout.mjs
-var import_jsx_runtime78 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime84 = __toESM(require_jsx_runtime(), 1);
var { useHasDimensionsPanel: useHasDimensionsPanel4, useSettingsForBlockElement: useSettingsForBlockElement7 } = unlock3(
import_block_editor11.privateApis
);
// packages/global-styles-ui/build-module/screen-style-variations.mjs
-var import_components48 = __toESM(require_components(), 1);
-var import_i18n36 = __toESM(require_i18n(), 1);
+var import_components49 = __toESM(require_components(), 1);
+var import_i18n40 = __toESM(require_i18n(), 1);
// packages/global-styles-ui/build-module/style-variations-content.mjs
-var import_i18n35 = __toESM(require_i18n(), 1);
-var import_components47 = __toESM(require_components(), 1);
+var import_i18n39 = __toESM(require_i18n(), 1);
+var import_components48 = __toESM(require_components(), 1);
// packages/global-styles-ui/build-module/style-variations-container.mjs
var import_core_data9 = __toESM(require_core_data(), 1);
var import_data9 = __toESM(require_data(), 1);
-var import_element45 = __toESM(require_element(), 1);
-var import_components46 = __toESM(require_components(), 1);
-var import_i18n34 = __toESM(require_i18n(), 1);
-var import_jsx_runtime79 = __toESM(require_jsx_runtime(), 1);
+var import_element46 = __toESM(require_element(), 1);
+var import_components47 = __toESM(require_components(), 1);
+var import_i18n38 = __toESM(require_i18n(), 1);
+var import_jsx_runtime85 = __toESM(require_jsx_runtime(), 1);
function StyleVariationsContainer({
gap = 2
}) {
- const { user } = (0, import_element45.useContext)(GlobalStylesContext);
+ const { user } = (0, import_element46.useContext)(GlobalStylesContext);
const userStyles = user?.styles;
const variations = (0, import_data9.useSelect)((select) => {
const result = select(
@@ -24794,10 +24875,10 @@ function StyleVariationsContainer({
]);
}
);
- const themeVariations = (0, import_element45.useMemo)(() => {
+ const themeVariations = (0, import_element46.useMemo)(() => {
const withEmptyVariation = [
{
- title: (0, import_i18n34.__)("Default"),
+ title: (0, import_i18n38.__)("Default"),
settings: {},
styles: {}
},
@@ -24840,14 +24921,14 @@ function StyleVariationsContainer({
if (!fullStyleVariations || fullStyleVariations.length < 1) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
- import_components46.__experimentalGrid,
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
+ import_components47.__experimentalGrid,
{
columns: 2,
className: "global-styles-ui-style-variations-container",
gap,
children: themeVariations.map(
- (variation, index2) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Variation, { variation, children: (isFocused) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
+ (variation, index2) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Variation, { variation, children: (isFocused) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
preview_styles_default,
{
label: variation?.title,
@@ -24863,95 +24944,74 @@ function StyleVariationsContainer({
var style_variations_container_default = StyleVariationsContainer;
// packages/global-styles-ui/build-module/style-variations-content.mjs
-var import_jsx_runtime80 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime86 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-style-variations.mjs
-var import_jsx_runtime81 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime87 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-css.mjs
-var import_i18n37 = __toESM(require_i18n(), 1);
-var import_components49 = __toESM(require_components(), 1);
+var import_i18n41 = __toESM(require_i18n(), 1);
+var import_components50 = __toESM(require_components(), 1);
var import_block_editor12 = __toESM(require_block_editor(), 1);
-var import_jsx_runtime82 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime88 = __toESM(require_jsx_runtime(), 1);
var { AdvancedPanel: StylesAdvancedPanel2 } = unlock3(import_block_editor12.privateApis);
// packages/global-styles-ui/build-module/screen-revisions/index.mjs
-var import_i18n40 = __toESM(require_i18n(), 1);
-var import_components52 = __toESM(require_components(), 1);
-var import_element47 = __toESM(require_element(), 1);
+var import_i18n44 = __toESM(require_i18n(), 1);
+var import_components53 = __toESM(require_components(), 1);
+var import_element48 = __toESM(require_element(), 1);
// packages/global-styles-ui/build-module/screen-revisions/use-global-styles-revisions.mjs
var import_data10 = __toESM(require_data(), 1);
var import_core_data10 = __toESM(require_core_data(), 1);
-var import_element46 = __toESM(require_element(), 1);
+var import_element47 = __toESM(require_element(), 1);
// packages/global-styles-ui/build-module/screen-revisions/revisions-buttons.mjs
-var import_i18n38 = __toESM(require_i18n(), 1);
-var import_components50 = __toESM(require_components(), 1);
+var import_i18n42 = __toESM(require_i18n(), 1);
+var import_components51 = __toESM(require_components(), 1);
var import_date = __toESM(require_date(), 1);
var import_core_data11 = __toESM(require_core_data(), 1);
var import_data11 = __toESM(require_data(), 1);
var import_keycodes2 = __toESM(require_keycodes(), 1);
-var import_jsx_runtime83 = __toESM(require_jsx_runtime(), 1);
-var { Badge: WCBadge } = unlock3(import_components50.privateApis);
+var import_jsx_runtime89 = __toESM(require_jsx_runtime(), 1);
+var { Badge: WCBadge } = unlock3(import_components51.privateApis);
var DAY_IN_MILLISECONDS = 60 * 60 * 1e3 * 24;
// packages/global-styles-ui/build-module/pagination/index.mjs
-var import_components51 = __toESM(require_components(), 1);
-var import_i18n39 = __toESM(require_i18n(), 1);
-var import_jsx_runtime84 = __toESM(require_jsx_runtime(), 1);
+var import_components52 = __toESM(require_components(), 1);
+var import_i18n43 = __toESM(require_i18n(), 1);
+var import_jsx_runtime90 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/screen-revisions/index.mjs
-var import_jsx_runtime85 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime91 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/font-sizes/font-sizes.mjs
-var import_i18n42 = __toESM(require_i18n(), 1);
+var import_i18n45 = __toESM(require_i18n(), 1);
var import_components54 = __toESM(require_components(), 1);
-var import_element48 = __toESM(require_element(), 1);
-
-// packages/global-styles-ui/build-module/font-sizes/confirm-reset-font-sizes-dialog.mjs
-var import_components53 = __toESM(require_components(), 1);
-var import_i18n41 = __toESM(require_i18n(), 1);
-var import_jsx_runtime86 = __toESM(require_jsx_runtime(), 1);
-
-// packages/global-styles-ui/build-module/font-sizes/font-sizes.mjs
-var import_jsx_runtime87 = __toESM(require_jsx_runtime(), 1);
-var { Menu: Menu3 } = unlock3(import_components54.privateApis);
+var import_jsx_runtime92 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/font-sizes/font-size.mjs
-var import_i18n46 = __toESM(require_i18n(), 1);
-var import_components58 = __toESM(require_components(), 1);
-var import_element50 = __toESM(require_element(), 1);
+var import_i18n47 = __toESM(require_i18n(), 1);
+var import_components56 = __toESM(require_components(), 1);
+var import_element49 = __toESM(require_element(), 1);
// packages/global-styles-ui/build-module/font-sizes/font-size-preview.mjs
var import_block_editor13 = __toESM(require_block_editor(), 1);
-var import_i18n43 = __toESM(require_i18n(), 1);
-var import_jsx_runtime88 = __toESM(require_jsx_runtime(), 1);
-
-// packages/global-styles-ui/build-module/font-sizes/confirm-delete-font-size-dialog.mjs
-var import_components55 = __toESM(require_components(), 1);
-var import_i18n44 = __toESM(require_i18n(), 1);
-var import_jsx_runtime89 = __toESM(require_jsx_runtime(), 1);
-
-// packages/global-styles-ui/build-module/font-sizes/rename-font-size-dialog.mjs
-var import_components56 = __toESM(require_components(), 1);
-var import_i18n45 = __toESM(require_i18n(), 1);
-var import_element49 = __toESM(require_element(), 1);
-var import_jsx_runtime90 = __toESM(require_jsx_runtime(), 1);
+var import_i18n46 = __toESM(require_i18n(), 1);
+var import_jsx_runtime93 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/size-control/index.mjs
-var import_components57 = __toESM(require_components(), 1);
-var import_jsx_runtime91 = __toESM(require_jsx_runtime(), 1);
+var import_components55 = __toESM(require_components(), 1);
+var import_jsx_runtime94 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/font-sizes/font-size.mjs
-var import_jsx_runtime92 = __toESM(require_jsx_runtime(), 1);
-var { Menu: Menu4 } = unlock3(import_components58.privateApis);
+var import_jsx_runtime95 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/global-styles-ui.mjs
-var import_jsx_runtime93 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime96 = __toESM(require_jsx_runtime(), 1);
// packages/global-styles-ui/build-module/with-global-styles-provider.mjs
-var import_jsx_runtime94 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime97 = __toESM(require_jsx_runtime(), 1);
function withGlobalStylesProvider(Component) {
return function WrappedComponent({
value,
@@ -24959,13 +25019,13 @@ function withGlobalStylesProvider(Component) {
onChange,
...props
}) {
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
GlobalStylesProvider,
{
value,
baseValue,
onChange,
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Component, { ...props })
+ children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Component, { ...props })
}
);
};
@@ -24981,7 +25041,7 @@ var ColorVariations2 = withGlobalStylesProvider(ColorVariations);
var TypographyVariations2 = withGlobalStylesProvider(TypographyVariations);
// packages/global-styles-ui/build-module/font-library/font-library.mjs
-var import_jsx_runtime95 = __toESM(require_jsx_runtime(), 1);
+var import_jsx_runtime98 = __toESM(require_jsx_runtime(), 1);
function FontLibrary({
value,
baseValue,
@@ -24991,21 +25051,21 @@ function FontLibrary({
let content;
switch (activeTab) {
case "upload-fonts":
- content = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(upload_fonts_default, {});
+ content = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(upload_fonts_default, {});
break;
case "installed-fonts":
- content = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(installed_fonts_default, {});
+ content = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(installed_fonts_default, {});
break;
default:
- content = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(font_collection_default, { slug: activeTab });
+ content = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(font_collection_default, { slug: activeTab });
}
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
GlobalStylesProvider,
{
value,
baseValue,
onChange,
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(context_default, { children: content })
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(context_default, { children: content })
}
);
}
@@ -25026,13 +25086,13 @@ if (typeof document !== "undefined" && true && !document.head.querySelector("sty
}
// routes/font-list/stage.tsx
-var { Tabs: Tabs2 } = unlock4(import_components60.privateApis);
+var { Tabs: Tabs2 } = unlock4(import_components58.privateApis);
var { useGlobalStyles } = unlock4(import_editor.privateApis);
function FontLibraryPage() {
const { records: collections = [] } = (0, import_core_data12.useEntityRecords)("root", "fontCollection", {
_fields: "slug,name,description"
});
- const [activeTab, setActiveTab] = (0, import_element52.useState)("installed-fonts");
+ const [activeTab, setActiveTab] = (0, import_element51.useState)("installed-fonts");
const { base, user, setUser, isReady } = useGlobalStyles();
const canUserCreate = (0, import_data13.useSelect)((select) => {
return select(import_core_data12.store).canUser("create", {
@@ -25046,22 +25106,22 @@ function FontLibraryPage() {
const tabs = [
{
id: "installed-fonts",
- title: (0, import_i18n47._x)("Library", "Font library")
+ title: (0, import_i18n48._x)("Library", "Font library")
}
];
if (canUserCreate) {
tabs.push({
id: "upload-fonts",
- title: (0, import_i18n47._x)("Upload", "noun")
+ title: (0, import_i18n48._x)("Upload", "noun")
});
tabs.push(
...(collections || []).map(({ slug, name: name2 }) => ({
id: slug,
- title: collections && collections.length === 1 && slug === "google-fonts" ? (0, import_i18n47.__)("Install Fonts") : name2
+ title: collections && collections.length === 1 && slug === "google-fonts" ? (0, import_i18n48.__)("Install Fonts") : name2
}))
);
}
- return /* @__PURE__ */ React.createElement(page_default, { title: (0, import_i18n47.__)("Fonts"), className: "font-library-page" }, /* @__PURE__ */ React.createElement(
+ return /* @__PURE__ */ React.createElement(page_default, { title: (0, import_i18n48.__)("Fonts"), className: "font-library-page" }, /* @__PURE__ */ React.createElement(
Tabs2,
{
selectedTabId: activeTab,
diff --git a/wp-includes/build/routes/font-list/content.min.asset.php b/wp-includes/build/routes/font-list/content.min.asset.php
index 262da5eb82..93a78c7d9e 100644
--- a/wp-includes/build/routes/font-list/content.min.asset.php
+++ b/wp-includes/build/routes/font-list/content.min.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-primitives', 'wp-private-apis', 'wp-style-engine', 'wp-theme'), 'module_dependencies' => array(array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/route', 'import' => 'static')), 'version' => '61420e33e08ab40e4373');
\ No newline at end of file
+<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-primitives', 'wp-private-apis', 'wp-style-engine', 'wp-theme'), 'module_dependencies' => array(array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/route', 'import' => 'static')), 'version' => '43d7c20a365e66da5be0');
\ No newline at end of file
diff --git a/wp-includes/build/routes/font-list/content.min.js b/wp-includes/build/routes/font-list/content.min.js
index b1476d4593..4b9b08be15 100644
--- a/wp-includes/build/routes/font-list/content.min.js
+++ b/wp-includes/build/routes/font-list/content.min.js
@@ -1,4 +1,4 @@
-var ov=Object.create;var Ca=Object.defineProperty;var nv=Object.getOwnPropertyDescriptor;var sv=Object.getOwnPropertyNames;var iv=Object.getPrototypeOf,av=Object.prototype.hasOwnProperty;var Ut=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var tt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),no=(e,t)=>{for(var r in t)Ca(e,r,{get:t[r],enumerable:!0})},lv=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of sv(t))!av.call(e,n)&&n!==r&&Ca(e,n,{get:()=>t[n],enumerable:!(o=nv(t,n))||o.enumerable});return e};var h=(e,t,r)=>(r=e!=null?ov(iv(e)):{},lv(t||!e||!e.__esModule?Ca(r,"default",{value:e,enumerable:!0}):r,e));var Ce=tt((AE,_u)=>{_u.exports=window.wp.i18n});var Te=tt((LE,Pu)=>{Pu.exports=window.wp.element});var be=tt((NE,ku)=>{ku.exports=window.React});var Y=tt((HE,Lu)=>{Lu.exports=window.ReactJSXRuntime});var lo=tt((MT,nf)=>{nf.exports=window.ReactDOM});var md=tt(pd=>{"use strict";var dn=be();function c0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var u0=typeof Object.is=="function"?Object.is:c0,f0=dn.useState,d0=dn.useEffect,p0=dn.useLayoutEffect,m0=dn.useDebugValue;function h0(e,t){var r=t(),o=f0({inst:{value:r,getSnapshot:t}}),n=o[0].inst,s=o[1];return p0(function(){n.value=r,n.getSnapshot=t,il(n)&&s({inst:n})},[e,r,t]),d0(function(){return il(n)&&s({inst:n}),e(function(){il(n)&&s({inst:n})})},[e]),m0(r),r}function il(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!u0(e,r)}catch{return!0}}function g0(e,t){return t()}var y0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g0:h0;pd.useSyncExternalStore=dn.useSyncExternalStore!==void 0?dn.useSyncExternalStore:y0});var al=tt((EO,hd)=>{"use strict";hd.exports=md()});var yd=tt(gd=>{"use strict";var $s=be(),v0=al();function b0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var w0=typeof Object.is=="function"?Object.is:b0,x0=v0.useSyncExternalStore,S0=$s.useRef,C0=$s.useEffect,R0=$s.useMemo,E0=$s.useDebugValue;gd.useSyncExternalStoreWithSelector=function(e,t,r,o,n){var s=S0(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=R0(function(){function u(g){if(!l){if(l=!0,c=g,g=o(g),n!==void 0&&i.hasValue){var d=i.value;if(n(d,g))return f=d}return f=g}if(d=f,w0(c,g))return d;var v=o(g);return n!==void 0&&n(d,v)?(c=g,d):(c=g,f=v)}var l=!1,c,f,m=r===void 0?null:r;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,r,o,n]);var a=x0(e,s[0],s[1]);return C0(function(){i.hasValue=!0,i.value=a},[a]),E0(a),a}});var bd=tt((_O,vd)=>{"use strict";vd.exports=yd()});var Cn=tt((z3,Vp)=>{Vp.exports=window.wp.primitives});var Bo=tt((rA,Bp)=>{Bp.exports=window.wp.compose});var Hp=tt((nA,jp)=>{jp.exports=window.wp.theme});var us=tt((sA,Up)=>{Up.exports=window.wp.privateApis});var ce=tt((s4,Cm)=>{Cm.exports=window.wp.components});var Am=tt((y4,Fm)=>{Fm.exports=window.wp.editor});var ar=tt((v4,Im)=>{Im.exports=window.wp.coreData});var Jt=tt((b4,Lm)=>{Lm.exports=window.wp.data});var Tn=tt((w4,Nm)=>{Nm.exports=window.wp.blocks});var Vt=tt((x4,Dm)=>{Dm.exports=window.wp.blockEditor});var Vm=tt((_4,Mm)=>{Mm.exports=window.wp.styleEngine});var Gm=tt((B4,Wm)=>{"use strict";Wm.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,s;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(t[n]!==r[n])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),o=s.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[n]))return!1;for(n=o;n--!==0;){var i=s[n];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}});var Xm=tt((j4,Zm)=>{"use strict";var q1=function(t){return Z1(t)&&!X1(t)};function Z1(e){return!!e&&typeof e=="object"}function X1(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Q1(e)}var K1=typeof Symbol=="function"&&Symbol.for,J1=K1?Symbol.for("react.element"):60103;function Q1(e){return e.$$typeof===J1}function $1(e){return Array.isArray(e)?[]:{}}function hs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?On($1(e),e,t):e}function ew(e,t,r){return e.concat(t).map(function(o){return hs(o,r)})}function tw(e,t){if(!t.customMerge)return On;var r=t.customMerge(e);return typeof r=="function"?r:On}function rw(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ym(e){return Object.keys(e).concat(rw(e))}function qm(e,t){try{return t in e}catch{return!1}}function ow(e,t){return qm(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function nw(e,t,r){var o={};return r.isMergeableObject(e)&&Ym(e).forEach(function(n){o[n]=hs(e[n],r)}),Ym(t).forEach(function(n){ow(e,n)||(qm(e,n)&&r.isMergeableObject(t[n])?o[n]=tw(n,r)(e[n],t[n],r):o[n]=hs(t[n],r))}),o}function On(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ew,r.isMergeableObject=r.isMergeableObject||q1,r.cloneUnlessOtherwiseSpecified=hs;var o=Array.isArray(t),n=Array.isArray(e),s=o===n;return s?o?r.arrayMerge(e,t,r):nw(e,t,r):hs(t,r)}On.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(o,n){return On(o,n,r)},{})};var sw=On;Zm.exports=sw});var Mc=tt((FL,ig)=>{ig.exports=window.wp.keycodes});var ug=tt((UL,cg)=>{cg.exports=window.wp.apiFetch});var My=tt((uj,Dy)=>{Dy.exports=window.wp.date});function Ou(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Ou(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function cv(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Ou(e))&&(o&&(o+=" "),o+=t);return o}var st=cv;var uv=h(be(),1),qn={...uv};var Au=h(be(),1),Fu={};function Tt(e,t){let r=Au.useRef(Fu);return r.current===Fu&&(r.current=e(t)),r}var Ra=qn.useInsertionEffect,fv=Ra&&Ra!==qn.useLayoutEffect?Ra:e=>e();function _e(e){let t=Tt(dv).current;return t.next=e,fv(t.effect),t.trampoline}function dv(){let e={next:void 0,callback:pv,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function pv(){}var Iu=h(be(),1),mv=()=>{},ge=typeof document<"u"?Iu.useLayoutEffect:mv;var As=h(be(),1),hv=As.createContext(void 0);function tn(){return As.useContext(hv)?.direction??"ltr"}function gv(e,t){return function(o,...n){let s=new URL(e);return s.searchParams.set("code",o.toString()),n.forEach(i=>s.searchParams.append("args[]",i)),`${t} error #${o}; visit ${s} for the full message.`}}var yv=gv("https://base-ui.com/production-error","Base UI"),Wt=yv;var _o=h(be(),1);function Ea(e,t,r,o){let n=Tt(Du).current;return vv(n,e,t,r,o)&&Mu(n,[e,t,r,o]),n.callback}function Nu(e){let t=Tt(Du).current;return bv(t,e)&&Mu(t,e),t.callback}function Du(){return{callback:null,cleanup:null,refs:[]}}function vv(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function bv(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function Mu(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){let o=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let s=t[n];if(s!=null)switch(typeof s){case"function":{let i=s(r);typeof i=="function"&&(o[n]=i);break}case"object":{s.current=r;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let s=t[n];if(s!=null)switch(typeof s){case"function":{let i=o[n];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}default:}}}}}}var Bu=h(be(),1);var Vu=h(be(),1),wv=parseInt(Vu.version,10);function rn(e){return wv>=e}function Ta(e){if(!Bu.isValidElement(e))return null;let t=e,r=t.props;return(rn(19)?r?.ref:t.ref)??null}function Zn(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function so(){}var JE=Object.freeze([]),pt=Object.freeze({});function zu(e,t){let r={};for(let o in e){let n=e[o];if(t?.hasOwnProperty(o)){let s=t[o](n);s!=null&&Object.assign(r,s);continue}n===!0?r[`data-${o.toLowerCase()}`]="":n&&(r[`data-${o.toLowerCase()}`]=n.toString())}return r}function ju(e,t){return typeof e=="function"?e(t):e}function Hu(e,t){return typeof e=="function"?e(t):e}var _a={};function or(e,t,r,o,n){if(!r&&!o&&!n&&!e)return Is(t);let s=Is(e);return t&&(s=Xn(s,t)),r&&(s=Xn(s,r)),o&&(s=Xn(s,o)),n&&(s=Xn(s,n)),s}function Uu(e){if(e.length===0)return _a;if(e.length===1)return Is(e[0]);let t=Is(e[0]);for(let r=1;r<e.length;r+=1)t=Xn(t,e[r]);return t}function Is(e){return Oa(e)?{...Gu(e,_a)}:xv(e)}function Xn(e,t){return Oa(t)?Gu(t,e):Sv(e,t)}function xv(e){let t={...e};for(let r in t){let o=t[r];Wu(r,o)&&(t[r]=Yu(o))}return t}function Sv(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=Zn(e.style,o);break}case"className":{e[r]=Pa(e.className,o);break}default:Wu(r,o)?e[r]=Cv(e[r],o):e[r]=o}}return e}function Wu(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),n=e.charCodeAt(2);return r===111&&o===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function Oa(e){return typeof e=="function"}function Gu(e,t){return Oa(e)?e(t):e??_a}function Cv(e,t){return t?e?(...r)=>{let o=r[0];if(Zu(o)){let s=o;qu(s);let i=t(...r);return s.baseUIHandlerPrevented||e?.(...r),i}let n=t(...r);return e?.(...r),n}:Yu(t):e}function Yu(e){return e&&((...t)=>{let r=t[0];return Zu(r)&&qu(r),e(...t)})}function qu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Pa(e,t){return t?e?t+" "+e:t:e}function Zu(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var ka=h(be(),1);function Gt(e,t,r={}){let o=t.render,n=Rv(t,r);if(r.enabled===!1)return null;let s=r.state??pt;return _v(e,o,n,s)}function Rv(e,t={}){let{className:r,style:o,render:n}=e,{state:s=pt,ref:i,props:a,stateAttributesMapping:u,enabled:l=!0}=t,c=l?ju(r,s):void 0,f=l?Hu(o,s):void 0,m=l?zu(s,u):pt,g=l&&a?Ev(a):void 0,d=l?Zn(m,g)??{}:pt;return typeof document<"u"&&(l?Array.isArray(i)?d.ref=Nu([d.ref,Ta(n),...i]):d.ref=Ea(d.ref,Ta(n),i):Ea(null,null)),l?(c!==void 0&&(d.className=Pa(d.className,c)),f!==void 0&&(d.style=Zn(d.style,f)),d):pt}function Ev(e){return Array.isArray(e)?Uu(e):or(void 0,e)}var Tv=Symbol.for("react.lazy");function _v(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let n=or(r,t.props);n.ref=r.ref;let s=t;return s?.$$typeof===Tv&&(s=_o.Children.toArray(t)[0]),_o.cloneElement(s,n)}if(e&&typeof e=="string")return Ov(e,r);throw new Error(Wt(8))}function Ov(e,t){return e==="button"?(0,ka.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,ka.createElement)("img",{alt:"",...t,key:t.key}):_o.createElement(e,t)}var Ls=h(be(),1);var Xu=0;function Pv(e,t="mui"){let[r,o]=Ls.useState(e),n=e||r;return Ls.useEffect(()=>{r==null&&(Xu+=1,o(`${t}-${Xu}`))},[r,t]),n}var Ku=qn.useId;function io(e,t){if(Ku!==void 0){let r=Ku();return e??(t?`${t}-${r}`:r)}return Pv(e,t)}function Ju(e){return io(e,"base-ui")}var Oe={};no(Oe,{cancelOpen:()=>ob,chipRemovePress:()=>Bv,clearPress:()=>Vv,closePress:()=>Dv,closeWatcher:()=>Kv,decrementPress:()=>Hv,disabled:()=>sb,drag:()=>eb,escapeKey:()=>Xv,focusOut:()=>Zv,imperativeAction:()=>lb,incrementPress:()=>jv,initial:()=>ab,inputBlur:()=>Gv,inputChange:()=>Uv,inputClear:()=>Wv,inputPaste:()=>Yv,inputPress:()=>qv,itemPress:()=>Nv,keyboard:()=>Qv,linkPress:()=>Mv,listNavigation:()=>Jv,missing:()=>ib,none:()=>kv,outsidePress:()=>Lv,pointer:()=>$v,scrub:()=>rb,siblingOpen:()=>nb,swipe:()=>cb,trackPress:()=>zv,triggerFocus:()=>Iv,triggerHover:()=>Av,triggerPress:()=>Fv,wheel:()=>tb,windowResize:()=>ub});var kv="none",Fv="trigger-press",Av="trigger-hover",Iv="trigger-focus",Lv="outside-press",Nv="item-press",Dv="close-press",Mv="link-press",Vv="clear-press",Bv="chip-remove-press",zv="track-press",jv="increment-press",Hv="decrement-press",Uv="input-change",Wv="input-clear",Gv="input-blur",Yv="input-paste",qv="input-press",Zv="focus-out",Xv="escape-key",Kv="close-watcher",Jv="list-navigation",Qv="keyboard",$v="pointer",eb="drag",tb="wheel",rb="scrub",ob="cancel-open",nb="sibling-open",sb="disabled",ib="missing",ab="initial",lb="imperative-action",cb="swipe",ub="window-resize";function ze(e,t,r,o){let n=!1,s=!1,i=o??pt;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){s=!0},get isCanceled(){return n},get isPropagationAllowed(){return s},trigger:r,...i}}var Aa=h(be(),1);var Qu=h(be(),1),fb=[];function on(e){Qu.useEffect(e,fb)}var Ns=null,RT=globalThis.requestAnimationFrame,Fa=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let r=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let n=0;n<r.length;n+=1)r[n]?.(t)};request(t){let r=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(t){let r=t-this.startId;r<0||r>=this.callbacks.length||(this.callbacks[r]=null,this.callbacksCount-=1)}},Ds=new Fa,Pr=class e{static create(){return new e}static request(t){return Ds.request(t)}static cancel(t){return Ds.cancel(t)}currentId=Ns;request(t){this.cancel(),this.currentId=Ds.request(()=>{this.currentId=Ns,t()})}cancel=()=>{this.currentId!==Ns&&(Ds.cancel(this.currentId),this.currentId=Ns)};disposeEffect=()=>this.cancel};function nn(){let e=Tt(Pr.create).current;return on(e.disposeEffect),e}function $u(e,t=!1,r=!1){let[o,n]=Aa.useState(e&&t?"idle":void 0),[s,i]=Aa.useState(e);return e&&!s&&(i(!0),n("starting")),!e&&s&&o!=="ending"&&!r&&n("ending"),!e&&!s&&o==="ending"&&n(void 0),ge(()=>{if(!e&&s&&o!=="ending"&&r){let a=Pr.request(()=>{n("ending")});return()=>{Pr.cancel(a)}}},[e,s,o,r]),ge(()=>{if(!e||t)return;let a=Pr.request(()=>{n(void 0)});return()=>{Pr.cancel(a)}},[t,e]),ge(()=>{if(!e||!t)return;e&&s&&o!=="idle"&&n("starting");let a=Pr.request(()=>{n("idle")});return()=>{Pr.cancel(a)}},[t,e,s,o]),{mounted:s,setMounted:i,transitionStatus:o}}var Oo=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),db={[Oo.startingStyle]:""},pb={[Oo.endingStyle]:""},ef={transitionStatus(e){return e==="starting"?db:e==="ending"?pb:null}};function Ms(){return typeof window<"u"}function ko(e){return Vs(e)?(e.nodeName||"").toLowerCase():"#document"}function lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wr(e){var t;return(t=(Vs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vs(e){return Ms()?e instanceof Node||e instanceof lt(e).Node:!1}function we(e){return Ms()?e instanceof Element||e instanceof lt(e).Element:!1}function St(e){return Ms()?e instanceof HTMLElement||e instanceof lt(e).HTMLElement:!1}function sn(e){return!Ms()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lt(e).ShadowRoot}function an(e){let{overflow:t,overflowX:r,overflowY:o,display:n}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&n!=="inline"&&n!=="contents"}function tf(e){return/^(table|td|th)$/.test(ko(e))}function Kn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var mb=/transform|translate|scale|rotate|perspective|filter/,hb=/paint|layout|strict|content/,Po=e=>!!e&&e!=="none",Ia;function Bs(e){let t=we(e)?Pt(e):e;return Po(t.transform)||Po(t.translate)||Po(t.scale)||Po(t.rotate)||Po(t.perspective)||!zs()&&(Po(t.backdropFilter)||Po(t.filter))||mb.test(t.willChange||"")||hb.test(t.contain||"")}function rf(e){let t=br(e);for(;St(t)&&!xr(t);){if(Bs(t))return t;if(Kn(t))return null;t=br(t)}return null}function zs(){return Ia==null&&(Ia=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ia}function xr(e){return/^(html|body|#document)$/.test(ko(e))}function Pt(e){return lt(e).getComputedStyle(e)}function Jn(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function br(e){if(ko(e)==="html")return e;let t=e.assignedSlot||e.parentNode||sn(e)&&e.host||wr(e);return sn(t)?t.host:t}function of(e){let t=br(e);return xr(t)?e.ownerDocument?e.ownerDocument.body:e.body:St(t)&&an(t)?t:of(t)}function ao(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=of(e),s=n===((o=e.ownerDocument)==null?void 0:o.body),i=lt(n);if(s){let a=js(i);return t.concat(i,i.visualViewport||[],an(n)?n:[],a&&r?ao(a):[])}else return t.concat(n,ao(n,[],r))}function js(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ye(e,t,r,o){return e.addEventListener(t,r,o),()=>{e.removeEventListener(t,r,o)}}function Yt(e){let t=Tt(gb,e).current;return t.next=e,ge(t.effect),t}function gb(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Ct(e){return e?.ownerDocument||document}var lf=h(be(),1);var af=h(lo(),1);function sf(e){return e==null?e:"current"in e?e.current:e}function ln(e,t=!1,r=!0){let o=nn();return _e((n,s=null)=>{o.cancel();let i=sf(e);if(i==null)return;let a=i,u=()=>{af.flushSync(n)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function l(){Promise.all(a.getAnimations().map(c=>c.finished)).then(()=>{s?.aborted||u()}).catch(()=>{if(r){s?.aborted||u();return}let c=a.getAnimations();!s?.aborted&&c.length>0&&c.some(f=>f.pending||f.playState!=="finished")&&l()})}if(t){let c=Oo.startingStyle;if(!a.hasAttribute(c)){o.request(l);return}let f=new MutationObserver(()=>{a.hasAttribute(c)||(f.disconnect(),l())});f.observe(a,{attributes:!0,attributeFilter:[c]}),s?.addEventListener("abort",()=>f.disconnect(),{once:!0});return}o.request(l)})}function Hs(e){let{enabled:t=!0,open:r,ref:o,onComplete:n}=e,s=_e(n),i=ln(o,r,!1);lf.useEffect(()=>{if(!t)return;let a=new AbortController;return i(s,a.signal),()=>{a.abort()}},[t,r,s,i])}var cf=h(be(),1);function uf(e){let t=cf.useRef(!0);t.current&&(t.current=!1,e())}var Yr={};no(Yr,{engine:()=>Va,env:()=>za,os:()=>Da,screenReader:()=>Ba});var Da={};no(Da,{android:()=>pf,apple:()=>Na,ios:()=>La,linux:()=>xb,mac:()=>mf,windows:()=>wb});function yb(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:vb,platform:bb,maxTouchPoints:ff}=yb(),Fo=vb.toLowerCase(),Ao=bb.toLowerCase();var La=/^i(os$|p)/.test(Ao)||Ao==="macintel"&&ff>1,df="android",pf=Ao===df||Fo.includes(df),mf=!La&&Ao.startsWith("mac"),wb=Ao.startsWith("win"),xb=!pf&&/^(linux|chrome os)/.test(Ao),Na=mf||La;var Va={};no(Va,{blink:()=>Cb,gecko:()=>Sb,webkit:()=>Ma});var Ma=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),Sb=!Ma&&Fo.includes("firefox"),Cb=!Ma&&Fo.includes("chrom");var Ba={};no(Ba,{voiceOver:()=>Rb});var Rb=Na;var za={};no(za,{jsdom:()=>Eb});var Eb=/jsdom|happydom/.test(Fo);var Qn=0,nr=class e{static create(){return new e}currentId=Qn;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Qn,r()},t)}isStarted(){return this.currentId!==Qn}clear=()=>{this.currentId!==Qn&&(clearTimeout(this.currentId),this.currentId=Qn)};disposeEffect=()=>this.clear};function Sr(){let e=Tt(nr.create).current;return on(e.disposeEffect),e}var kt=h(be(),1);function hf(e){return"nativeEvent"in e}function qr(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function gf(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var ja="data-base-ui-focusable";var Ha="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Us(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Ze(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&sn(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Dt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function co(e,t){if(!we(e))return!1;let r=e;if(t.hasElement(r))return!r.hasAttribute("data-trigger-disabled");for(let[,o]of t.entries())if(Ze(o,r))return!o.hasAttribute("data-trigger-disabled");return!1}function Ws(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let r=e;return r.target!=null&&t.contains(r.target)}function yf(e){return e.matches("html,body")}function vf(e){return St(e)&&e.matches(Ha)}function Ua(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Ha}`)!=null}function bf(e){if(!e||Yr.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Tb(e,t){return t!=null&&!qr(t)?0:typeof e=="function"?e():e}function Zr(e,t,r){let o=Tb(e,r);return typeof o=="number"?o:o?.[t]}function Wa(e){return typeof e=="function"?e():e}function Gs(e,t){return t||e==="click"||e==="mousedown"}function wf(e){return e?.includes("mouse")&&e!=="mousedown"}var xf=h(Y(),1),Sf=kt.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new nr,currentIdRef:{current:null},currentContextRef:{current:null}});function _b(e,t){e.current=t.current}function Ga(e){let{children:t,delay:r,timeoutMs:o=0}=e,n=kt.useRef(r),s=kt.useRef(r),i=kt.useRef(null),a=kt.useRef(null),u=Sr();return ge(()=>{if(s.current=r,!i.current){n.current=r;return}n.current={open:Zr(n.current,"open"),close:Zr(r,"close")}},[r,i,n,s]),(0,xf.jsx)(Sf.Provider,{value:kt.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:s,currentIdRef:i,timeoutMs:o,currentContextRef:a,timeout:u}),[o,u]),children:t})}function Ya(e,t={open:!1}){let{open:r}=t,o="rootStore"in e?e.rootStore:e,n=o.useState("floatingId"),s=kt.useContext(Sf),{currentIdRef:i,delayRef:a,timeoutMs:u,initialDelayRef:l,currentContextRef:c,hasProvider:f,timeout:m}=s,[g,d]=kt.useState(!1),v=kt.useRef(r),S=kt.useRef(!1);return ge(()=>{v.current=r},[r]),ge(()=>()=>{S.current=!0},[]),ge(()=>{function C(){S.current||d(!1),c.current?.setIsInstantPhase(!1),i.current=null,c.current=null,a.current=l.current,m.clear()}if(i.current&&!r&&i.current===n){if(d(!1),u){let w=n;return m.start(u,()=>{o.select("open")||i.current&&i.current!==w||C()}),()=>{(v.current||i.current!==w)&&m.clear()}}C()}},[r,n,i,a,u,l,c,m,o]),ge(()=>{if(!r)return;let C=c.current,w=i.current;m.clear(),c.current={onOpenChange:o.setOpen,setIsInstantPhase:d},i.current=n,a.current={open:0,close:Zr(l.current,"close")},w!==null&&w!==n?(d(!0),C?.setIsInstantPhase(!0),C?.onOpenChange(!1,ze(Oe.none))):(d(!1),C?.setIsInstantPhase(!1))},[r,n,o,i,a,l,c,m]),ge(()=>()=>{if(i.current===n){if(c.current=null,!v.current)return;i.current=null,_b(a,l),m.clear()}},[c,i,a,n,l,m]),kt.useMemo(()=>({hasProvider:f,delayRef:a,isInstantPhase:g}),[f,a,g])}function Cr(...e){return()=>{for(let t=0;t<e.length;t+=1){let r=e[t];r&&r()}}}var Ef=["top","right","bottom","left"];var uo=Math.min,Mt=Math.max,fo=Math.round,es=Math.floor,Rr=e=>({x:e,y:e}),Ob={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(e,t,r){return Mt(e,uo(t,r))}function Er(e,t){return typeof e=="function"?e(t):e}function _t(e){return e.split("-")[0]}function Tr(e){return e.split("-")[1]}function qs(e){return e==="x"?"y":"x"}function rs(e){return e==="y"?"height":"width"}function qt(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function os(e){return qs(qt(e))}function Tf(e,t,r){r===void 0&&(r=!1);let o=Tr(e),n=os(e),s=rs(n),i=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=$n(i)),[i,$n(i)]}function _f(e){let t=$n(e);return[Ys(e),t,Ys(t)]}function Ys(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Cf=["left","right"],Rf=["right","left"],Pb=["top","bottom"],kb=["bottom","top"];function Fb(e,t,r){switch(e){case"top":case"bottom":return r?t?Rf:Cf:t?Cf:Rf;case"left":case"right":return t?Pb:kb;default:return[]}}function Of(e,t,r,o){let n=Tr(e),s=Fb(_t(e),r==="start",o);return n&&(s=s.map(i=>i+"-"+n),t&&(s=s.concat(s.map(Ys)))),s}function $n(e){let t=_t(e);return Ob[t]+e.slice(t.length)}function Ab(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zs(e){return typeof e!="number"?Ab(e):{top:e,right:e,bottom:e,left:e}}function Io(e){let{x:t,y:r,width:o,height:n}=e;return{width:o,height:n,top:r,left:t,right:t+o,bottom:r+n,x:t,y:r}}function Xr(e,t,r=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!r||n.context?.open?[n]:[],...Xr(e,n.id,r)])}function cn(e){return`data-base-ui-${e}`}var sr=h(be(),1),Ff=h(lo(),1);var Pf={style:{transition:"none"}};var Ib="data-base-ui-swipe-ignore",Lb="data-swipe-ignore",E_=`[${Ib}]`,T_=`[${Lb}]`;var kf={fallbackAxisSide:"end"};var Af=h(Y(),1),Nb=sr.createContext(null),Db=()=>sr.useContext(Nb),Mb=cn("portal");function qa(e={}){let{ref:t,container:r,componentProps:o=pt,elementProps:n}=e,s=io(),a=Db()?.portalNode,[u,l]=sr.useState(null),[c,f]=sr.useState(null),m=_e(S=>{S!==null&&f(S)}),g=sr.useRef(null);ge(()=>{if(r===null){g.current&&(g.current=null,f(null),l(null));return}if(s==null)return;let S=(r&&(Vs(r)?r:r.current))??a??document.body;if(S==null){g.current&&(g.current=null,f(null),l(null));return}g.current!==S&&(g.current=S,f(null),l(S))},[r,a,s]);let d=Gt("div",o,{ref:[t,m],props:[{id:s,[Mb]:""},n]});return{portalNode:c,portalSubtree:u&&d?Ff.createPortal(d,u):null}}var Lo=h(be(),1);function If(){let e=new Map;return{emit(t,r){e.get(t)?.forEach(o=>o(r))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){e.get(t)?.delete(r)}}}var Vb=h(Y(),1),Bb=Lo.createContext(null),zb=Lo.createContext(null),un=()=>Lo.useContext(Bb)?.id||null,po=e=>{let t=Lo.useContext(zb);return e??t};var Zt=h(be(),1);function jb(e,t){let r=null,o=null,n=!1;return{contextElement:e||void 0,getBoundingClientRect(){let s=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",u=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",l=s.width,c=s.height,f=s.x,m=s.y;return r==null&&t.x&&i&&(r=s.x-t.x),o==null&&t.y&&a&&(o=s.y-t.y),f-=r||0,m-=o||0,l=0,c=0,!n||u?(l=t.axis==="y"?s.width:0,c=t.axis==="x"?s.height:0,f=i&&t.x!=null?t.x:f,m=a&&t.y!=null?t.y:m):n&&!u&&(c=t.axis==="x"?s.height:c,l=t.axis==="y"?s.width:l),n=!0,{width:l,height:c,x:f,y:m,top:m,right:f+l,bottom:m+c,left:f}}}}function Lf(e){return e!=null&&e.clientX!=null}function Za(e,t={}){let{enabled:r=!0,axis:o="both"}=t,n="rootStore"in e?e.rootStore:e,s=n.useState("open"),i=n.useState("floatingElement"),a=n.useState("domReferenceElement"),u=n.context.dataRef,l=Zt.useRef(!1),c=Zt.useRef(null),[f,m]=Zt.useState(),[g,d]=Zt.useState([]),v=_e(R=>{n.set("positionReference",R)}),S=_e((R,k,T)=>{l.current||u.current.openEvent&&!Lf(u.current.openEvent)||n.set("positionReference",jb(T??a,{x:R,y:k,axis:o,dataRef:u,pointerType:f}))}),C=_e(R=>{s?c.current||(S(R.clientX,R.clientY,R.currentTarget),d([])):S(R.clientX,R.clientY,R.currentTarget)}),w=qr(f)?i:s;Zt.useEffect(()=>{if(!r){v(a);return}if(!w)return;function R(){c.current?.(),c.current=null}let k=lt(i);function T(_){let A=Dt(_);Ze(i,A)?R():S(_.clientX,_.clientY)}return!u.current.openEvent||Lf(u.current.openEvent)?c.current=Ye(k,"mousemove",T):v(a),R},[w,r,i,u,a,n,S,v,g]),Zt.useEffect(()=>()=>{n.set("positionReference",null)},[n]),Zt.useEffect(()=>{r&&!i&&(l.current=!1)},[r,i]),Zt.useEffect(()=>{!r&&s&&(l.current=!0)},[r,s]);let b=Zt.useMemo(()=>{function R(k){m(k.pointerType)}return{onPointerDown:R,onPointerEnter:R,onMouseMove:C,onMouseEnter:C}},[C]);return Zt.useMemo(()=>r?{reference:b,trigger:b}:{},[r,b])}var Xt=h(be(),1);function Hb(){return!1}function Ub(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Xa(e,t={}){let{enabled:r=!0,escapeKey:o=!0,outsidePress:n=!0,outsidePressEvent:s="sloppy",referencePress:i=Hb,bubbles:a,externalTree:u}=t,l="rootStore"in e?e.rootStore:e,c=l.useState("open"),f=l.useState("floatingElement"),{dataRef:m}=l.context,g=po(u),d=_e(typeof n=="function"?n:()=>!1),v=typeof n=="function"?d:n,S=v!==!1,C=_e(()=>s),{escapeKey:w,outsidePress:b}=Ub(a),R=Xt.useRef(!1),k=Xt.useRef(!1),T=Xt.useRef(!1),_=Xt.useRef(!1),A=Xt.useRef(""),N=Xt.useRef(null),q=Sr(),U=Sr(),x=_e(()=>{U.clear(),m.current.insideReactTree=!1}),I=_e(F=>{let Z=m.current.floatingContext?.nodeId;return(g?Xr(g.nodesRef.current,Z):[]).some(xe=>xe.context?.open&&!xe.context.dataRef.current[F])}),W=_e(F=>Ws(F,l.select("floatingElement"))||Ws(F,l.select("domReferenceElement"))),O=_e(F=>{i()&&l.setOpen(!1,ze(Oe.triggerPress,F.nativeEvent))}),D=_e(F=>{if(!c||!r||!o||F.key!=="Escape"||_.current||!w&&I("__escapeKeyBubbles"))return;let Z=hf(F)?F.nativeEvent:F,se=ze(Oe.escapeKey,Z);l.setOpen(!1,se),se.isCanceled||F.preventDefault(),!w&&!se.isPropagationAllowed&&F.stopPropagation()}),J=_e(()=>{m.current.insideReactTree=!0,U.start(0,x)}),M=_e(F=>{if(!c||!r||F.button!==0)return;let Z=Dt(F.nativeEvent);Ze(l.select("floatingElement"),Z)&&(R.current||(R.current=!0,k.current=!1))}),E=_e(F=>{!c||!r||(F.defaultPrevented||F.nativeEvent.defaultPrevented)&&R.current&&(k.current=!0)});Xt.useEffect(()=>{if(!c||!r)return;m.current.__escapeKeyBubbles=w,m.current.__outsidePressBubbles=b;let F=new nr,Z=new nr;function se(){F.clear(),_.current=!0}function xe(){F.start(Yr.engine.webkit?5:0,()=>{_.current=!1})}function ie(){T.current=!0,Z.start(0,()=>{T.current=!1})}function ye(){R.current=!1,k.current=!1}function Ee(){let V=A.current,re=V==="pen"||!V?"mouse":V,De=C(),Ue=typeof De=="function"?De():De;return typeof Ue=="string"?Ue:Ue[re]}function ee(V){let re=Ee();return re==="intentional"&&V.type!=="click"||re==="sloppy"&&V.type==="click"}function Ae(V){let re=m.current.floatingContext?.nodeId,De=g&&Xr(g.nodesRef.current,re).some(Ue=>Ws(V,Ue.context?.elements.floating));return W(V)||De}function Ie(V){if(ee(V)){V.type!=="click"&&!W(V)&&(Z.clear(),T.current=!1),x();return}if(m.current.insideReactTree){x();return}let re=Dt(V),De=`[${cn("inert")}]`,Ue=we(re)?re.getRootNode():null,ot=Array.from((sn(Ue)?Ue:Ct(l.select("floatingElement"))).querySelectorAll(De)),ut=l.context.triggerElements;if(re&&(ut.hasElement(re)||ut.hasMatchingElement(We=>Ze(We,re))))return;let je=we(re)?re:null;for(;je&&!xr(je);){let We=br(je);if(xr(We)||!we(We))break;je=We}if(!(ot.length&&we(re)&&!yf(re)&&!Ze(re,l.select("floatingElement"))&&ot.every(We=>!Ze(je,We)))){if(St(re)&&!("touches"in V)){let We=xr(re),nt=Pt(re),ve=/auto|scroll/,Or=We||ve.test(nt.overflowX),yr=We||ve.test(nt.overflowY),$e=Or&&re.clientWidth>0&&re.scrollWidth>re.clientWidth,Hr=yr&&re.clientHeight>0&&re.scrollHeight>re.clientHeight,Et=nt.direction==="rtl",Ne=Hr&&(Et?V.offsetX<=re.offsetWidth-re.clientWidth:V.offsetX>re.clientWidth),qe=$e&&V.offsetY>re.clientHeight;if(Ne||qe)return}if(!Ae(V)){if(Ee()==="intentional"&&T.current){Z.clear(),T.current=!1;return}typeof v=="function"&&!v(V)||I("__outsidePressBubbles")||(l.setOpen(!1,ze(Oe.outsidePress,V)),x())}}}function ke(V){Ee()!=="sloppy"||V.pointerType==="touch"||!l.select("open")||!r||W(V)||Ie(V)}function He(V){if(Ee()!=="sloppy"||!l.select("open")||!r||W(V))return;let re=V.touches[0];re&&(N.current={startTime:Date.now(),startX:re.clientX,startY:re.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},q.start(1e3,()=>{N.current&&(N.current.dismissOnTouchEnd=!1,N.current.dismissOnMouseDown=!1)}))}function G(V,re){let De=Dt(V);if(!De)return;let Ue=Ye(De,V.type,()=>{re(V),Ue()})}function j(V){A.current="touch",G(V,He)}function X(V){q.clear(),V.type==="pointerdown"&&(A.current=V.pointerType),!(V.type==="mousedown"&&N.current&&!N.current.dismissOnMouseDown)&&G(V,re=>{re.type==="pointerdown"?ke(re):Ie(re)})}function H(V){if(!R.current)return;let re=k.current;if(ye(),Ee()==="intentional"){if(V.type==="pointercancel"){re&&ie();return}if(!Ae(V)){if(re){ie();return}typeof v=="function"&&!v(V)||(Z.clear(),T.current=!0,x())}}}function K(V){if(Ee()!=="sloppy"||!N.current||W(V))return;let re=V.touches[0];if(!re)return;let De=Math.abs(re.clientX-N.current.startX),Ue=Math.abs(re.clientY-N.current.startY),ot=Math.sqrt(De*De+Ue*Ue);ot>5&&(N.current.dismissOnTouchEnd=!0),ot>10&&(Ie(V),q.clear(),N.current=null)}function fe(V){G(V,K)}function ue(V){Ee()!=="sloppy"||!N.current||W(V)||(N.current.dismissOnTouchEnd&&Ie(V),q.clear(),N.current=null)}function de(V){G(V,ue)}let pe=Ct(f),me=Cr(o&&Cr(Ye(pe,"keydown",D),Ye(pe,"compositionstart",se),Ye(pe,"compositionend",xe)),S&&Cr(Ye(pe,"click",X,!0),Ye(pe,"pointerdown",X,!0),Ye(pe,"pointerup",H,!0),Ye(pe,"pointercancel",H,!0),Ye(pe,"mousedown",X,!0),Ye(pe,"mouseup",H,!0),Ye(pe,"touchstart",j,!0),Ye(pe,"touchmove",fe,!0),Ye(pe,"touchend",de,!0)));return()=>{me(),F.clear(),Z.clear(),ye(),T.current=!1}},[m,f,o,S,v,c,r,w,b,D,x,C,I,W,g,l,q]),Xt.useEffect(x,[v,x]);let L=Xt.useMemo(()=>({onKeyDown:D,onPointerDown:O,onClick:O}),[D,O]),$=Xt.useMemo(()=>({onKeyDown:D,onPointerDown:E,onMouseDown:E,onClickCapture:J,onMouseDownCapture(F){J(),M(F)},onPointerDownCapture(F){J(),M(F)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[D,J,M,E]);return Xt.useMemo(()=>r?{reference:L,floating:$,trigger:L}:{},[r,L,$])}var Ft=h(be(),1);function Nf(e,t,r){let{reference:o,floating:n}=e,s=qt(t),i=os(t),a=rs(i),u=_t(t),l=s==="y",c=o.x+o.width/2-n.width/2,f=o.y+o.height/2-n.height/2,m=o[a]/2-n[a]/2,g;switch(u){case"top":g={x:c,y:o.y-n.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:f};break;case"left":g={x:o.x-n.width,y:f};break;default:g={x:o.x,y:o.y}}switch(Tr(t)){case"start":g[i]-=m*(r&&l?-1:1);break;case"end":g[i]+=m*(r&&l?-1:1);break}return g}async function Vf(e,t){var r;t===void 0&&(t={});let{x:o,y:n,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:m=!1,padding:g=0}=Er(t,e),d=Zs(g),S=a[m?f==="floating"?"reference":"floating":f],C=Io(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(S)))==null||r?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:c,strategy:u})),w=f==="floating"?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),R=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},k=Io(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:u}):w);return{top:(C.top-k.top+d.top)/R.y,bottom:(k.bottom-C.bottom+d.bottom)/R.y,left:(C.left-k.left+d.left)/R.x,right:(k.right-C.right+d.right)/R.x}}var Wb=50,Bf=async(e,t,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:s=[],platform:i}=r,a=i.detectOverflow?i:{...i,detectOverflow:Vf},u=await(i.isRTL==null?void 0:i.isRTL(t)),l=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:c,y:f}=Nf(l,o,u),m=o,g=0,d={};for(let v=0;v<s.length;v++){let S=s[v];if(!S)continue;let{name:C,fn:w}=S,{x:b,y:R,data:k,reset:T}=await w({x:c,y:f,initialPlacement:o,placement:m,strategy:n,middlewareData:d,rects:l,platform:a,elements:{reference:e,floating:t}});c=b??c,f=R??f,d[C]={...d[C],...k},T&&g<Wb&&(g++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(l=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):T.rects),{x:c,y:f}=Nf(l,m,u)),v=-1)}return{x:c,y:f,placement:m,strategy:n,middlewareData:d}};var zf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;let{placement:n,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:v=!0,...S}=Er(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};let C=_t(n),w=qt(a),b=_t(a)===a,R=await(u.isRTL==null?void 0:u.isRTL(l.floating)),k=m||(b||!v?[$n(a)]:_f(a)),T=d!=="none";!m&&T&&k.push(...Of(a,v,d,R));let _=[a,...k],A=await u.detectOverflow(t,S),N=[],q=((o=s.flip)==null?void 0:o.overflows)||[];if(c&&N.push(A[C]),f){let W=Tf(n,i,R);N.push(A[W[0]],A[W[1]])}if(q=[...q,{placement:n,overflows:N}],!N.every(W=>W<=0)){var U,x;let W=(((U=s.flip)==null?void 0:U.index)||0)+1,O=_[W];if(O&&(!(f==="alignment"?w!==qt(O):!1)||q.every(M=>qt(M.placement)===w?M.overflows[0]>0:!0)))return{data:{index:W,overflows:q},reset:{placement:O}};let D=(x=q.filter(J=>J.overflows[0]<=0).sort((J,M)=>J.overflows[1]-M.overflows[1])[0])==null?void 0:x.placement;if(!D)switch(g){case"bestFit":{var I;let J=(I=q.filter(M=>{if(T){let E=qt(M.placement);return E===w||E==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(E=>E>0).reduce((E,L)=>E+L,0)]).sort((M,E)=>M[1]-E[1])[0])==null?void 0:I[0];J&&(D=J);break}case"initialPlacement":D=a;break}if(n!==D)return{reset:{placement:D}}}return{}}}};function Df(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mf(e){return Ef.some(t=>e[t]>=0)}var jf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:o}=t,{strategy:n="referenceHidden",...s}=Er(e,t);switch(n){case"referenceHidden":{let i=await o.detectOverflow(t,{...s,elementContext:"reference"}),a=Df(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Mf(a)}}}case"escaped":{let i=await o.detectOverflow(t,{...s,altBoundary:!0}),a=Df(i,r.floating);return{data:{escapedOffsets:a,escaped:Mf(a)}}}default:return{}}}}};var Hf=new Set(["left","top"]);async function Gb(e,t){let{placement:r,platform:o,elements:n}=e,s=await(o.isRTL==null?void 0:o.isRTL(n.floating)),i=_t(r),a=Tr(r),u=qt(r)==="y",l=Hf.has(i)?-1:1,c=s&&u?-1:1,f=Er(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof d=="number"&&(g=a==="end"?d*-1:d),u?{x:g*c,y:m*l}:{x:m*l,y:g*c}}var Uf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;let{x:n,y:s,placement:i,middlewareData:a}=t,u=await Gb(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:n+u.x,y:s+u.y,data:{...u,placement:i}}}}},Wf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:n,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:C=>{let{x:w,y:b}=C;return{x:w,y:b}}},...l}=Er(e,t),c={x:r,y:o},f=await s.detectOverflow(t,l),m=qt(_t(n)),g=qs(m),d=c[g],v=c[m];if(i){let C=g==="y"?"top":"left",w=g==="y"?"bottom":"right",b=d+f[C],R=d-f[w];d=ts(b,d,R)}if(a){let C=m==="y"?"top":"left",w=m==="y"?"bottom":"right",b=v+f[C],R=v-f[w];v=ts(b,v,R)}let S=u.fn({...t,[g]:d,[m]:v});return{...S,data:{x:S.x-r,y:S.y-o,enabled:{[g]:i,[m]:a}}}}}},Gf=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:o,placement:n,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=Er(e,t),c={x:r,y:o},f=qt(n),m=qs(f),g=c[m],d=c[f],v=Er(a,t),S=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){let b=m==="y"?"height":"width",R=s.reference[m]-s.floating[b]+S.mainAxis,k=s.reference[m]+s.reference[b]-S.mainAxis;g<R?g=R:g>k&&(g=k)}if(l){var C,w;let b=m==="y"?"width":"height",R=Hf.has(_t(n)),k=s.reference[f]-s.floating[b]+(R&&((C=i.offset)==null?void 0:C[f])||0)+(R?0:S.crossAxis),T=s.reference[f]+s.reference[b]+(R?0:((w=i.offset)==null?void 0:w[f])||0)-(R?S.crossAxis:0);d<k?d=k:d>T&&(d=T)}return{[m]:g,[f]:d}}}},Yf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;let{placement:n,rects:s,platform:i,elements:a}=t,{apply:u=()=>{},...l}=Er(e,t),c=await i.detectOverflow(t,l),f=_t(n),m=Tr(n),g=qt(n)==="y",{width:d,height:v}=s.floating,S,C;f==="top"||f==="bottom"?(S=f,C=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=f,S=m==="end"?"top":"bottom");let w=v-c.top-c.bottom,b=d-c.left-c.right,R=uo(v-c[S],w),k=uo(d-c[C],b),T=!t.middlewareData.shift,_=R,A=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=w),T&&!m){let q=Mt(c.left,0),U=Mt(c.right,0),x=Mt(c.top,0),I=Mt(c.bottom,0);g?A=d-2*(q!==0||U!==0?q+U:Mt(c.left,c.right)):_=v-2*(x!==0||I!==0?x+I:Mt(c.top,c.bottom))}await u({...t,availableWidth:A,availableHeight:_});let N=await i.getDimensions(a.floating);return d!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function Kf(e){let t=Pt(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=St(e),s=n?e.offsetWidth:r,i=n?e.offsetHeight:o,a=fo(r)!==s||fo(o)!==i;return a&&(r=s,o=i),{width:r,height:o,$:a}}function Ja(e){return we(e)?e:e.contextElement}function fn(e){let t=Ja(e);if(!St(t))return Rr(1);let r=t.getBoundingClientRect(),{width:o,height:n,$:s}=Kf(t),i=(s?fo(r.width):r.width)/o,a=(s?fo(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}var Yb=Rr(0);function Jf(e){let t=lt(e);return!zs()||!t.visualViewport?Yb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qb(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==lt(e)?!1:t}function No(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=Ja(e),i=Rr(1);t&&(o?we(o)&&(i=fn(o)):i=fn(e));let a=qb(s,r,o)?Jf(s):Rr(0),u=(n.left+a.x)/i.x,l=(n.top+a.y)/i.y,c=n.width/i.x,f=n.height/i.y;if(s){let m=lt(s),g=o&&we(o)?lt(o):o,d=m,v=js(d);for(;v&&o&&g!==d;){let S=fn(v),C=v.getBoundingClientRect(),w=Pt(v),b=C.left+(v.clientLeft+parseFloat(w.paddingLeft))*S.x,R=C.top+(v.clientTop+parseFloat(w.paddingTop))*S.y;u*=S.x,l*=S.y,c*=S.x,f*=S.y,u+=b,l+=R,d=lt(v),v=js(d)}}return Io({width:c,height:f,x:u,y:l})}function Xs(e,t){let r=Jn(e).scrollLeft;return t?t.left+r:No(wr(e)).left+r}function Qf(e,t){let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Xs(e,r),n=r.top+t.scrollTop;return{x:o,y:n}}function Zb(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e,s=n==="fixed",i=wr(o),a=t?Kn(t.floating):!1;if(o===i||a&&s)return r;let u={scrollLeft:0,scrollTop:0},l=Rr(1),c=Rr(0),f=St(o);if((f||!f&&!s)&&((ko(o)!=="body"||an(i))&&(u=Jn(o)),f)){let g=No(o);l=fn(o),c.x=g.x+o.clientLeft,c.y=g.y+o.clientTop}let m=i&&!f&&!s?Qf(i,u):Rr(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+c.x+m.x,y:r.y*l.y-u.scrollTop*l.y+c.y+m.y}}function Xb(e){return Array.from(e.getClientRects())}function Kb(e){let t=wr(e),r=Jn(e),o=e.ownerDocument.body,n=Mt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=Mt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),i=-r.scrollLeft+Xs(e),a=-r.scrollTop;return Pt(o).direction==="rtl"&&(i+=Mt(t.clientWidth,o.clientWidth)-n),{width:n,height:s,x:i,y:a}}var qf=25;function Jb(e,t){let r=lt(e),o=wr(e),n=r.visualViewport,s=o.clientWidth,i=o.clientHeight,a=0,u=0;if(n){s=n.width,i=n.height;let c=zs();(!c||c&&t==="fixed")&&(a=n.offsetLeft,u=n.offsetTop)}let l=Xs(o);if(l<=0){let c=o.ownerDocument,f=c.body,m=getComputedStyle(f),g=c.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,d=Math.abs(o.clientWidth-f.clientWidth-g);d<=qf&&(s-=d)}else l<=qf&&(s+=l);return{width:s,height:i,x:a,y:u}}function Qb(e,t){let r=No(e,!0,t==="fixed"),o=r.top+e.clientTop,n=r.left+e.clientLeft,s=St(e)?fn(e):Rr(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=n*s.x,l=o*s.y;return{width:i,height:a,x:u,y:l}}function Zf(e,t,r){let o;if(t==="viewport")o=Jb(e,r);else if(t==="document")o=Kb(wr(e));else if(we(t))o=Qb(t,r);else{let n=Jf(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Io(o)}function $f(e,t){let r=br(e);return r===t||!we(r)||xr(r)?!1:Pt(r).position==="fixed"||$f(r,t)}function $b(e,t){let r=t.get(e);if(r)return r;let o=ao(e,[],!1).filter(a=>we(a)&&ko(a)!=="body"),n=null,s=Pt(e).position==="fixed",i=s?br(e):e;for(;we(i)&&!xr(i);){let a=Pt(i),u=Bs(i);!u&&a.position==="fixed"&&(n=null),(s?!u&&!n:!u&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||an(i)&&!u&&$f(e,i))?o=o.filter(c=>c!==i):n=a,i=br(i)}return t.set(e,o),o}function e0(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e,i=[...r==="clippingAncestors"?Kn(t)?[]:$b(t,this._c):[].concat(r),o],a=Zf(t,i[0],n),u=a.top,l=a.right,c=a.bottom,f=a.left;for(let m=1;m<i.length;m++){let g=Zf(t,i[m],n);u=Mt(g.top,u),l=uo(g.right,l),c=uo(g.bottom,c),f=Mt(g.left,f)}return{width:l-f,height:c-u,x:f,y:u}}function t0(e){let{width:t,height:r}=Kf(e);return{width:t,height:r}}function r0(e,t,r){let o=St(t),n=wr(t),s=r==="fixed",i=No(e,!0,s,t),a={scrollLeft:0,scrollTop:0},u=Rr(0);function l(){u.x=Xs(n)}if(o||!o&&!s)if((ko(t)!=="body"||an(n))&&(a=Jn(t)),o){let g=No(t,!0,s,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else n&&l();s&&!o&&n&&l();let c=n&&!o&&!s?Qf(n,a):Rr(0),f=i.left+a.scrollLeft-u.x-c.x,m=i.top+a.scrollTop-u.y-c.y;return{x:f,y:m,width:i.width,height:i.height}}function Ka(e){return Pt(e).position==="static"}function Xf(e,t){if(!St(e)||Pt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return wr(e)===r&&(r=r.ownerDocument.body),r}function ed(e,t){let r=lt(e);if(Kn(e))return r;if(!St(e)){let n=br(e);for(;n&&!xr(n);){if(we(n)&&!Ka(n))return n;n=br(n)}return r}let o=Xf(e,t);for(;o&&tf(o)&&Ka(o);)o=Xf(o,t);return o&&xr(o)&&Ka(o)&&!Bs(o)?r:o||rf(e)||r}var o0=async function(e){let t=this.getOffsetParent||ed,r=this.getDimensions,o=await r(e.floating);return{reference:r0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function n0(e){return Pt(e).direction==="rtl"}var Qa={convertOffsetParentRelativeRectToViewportRelativeRect:Zb,getDocumentElement:wr,getClippingRect:e0,getOffsetParent:ed,getElementRects:o0,getClientRects:Xb,getDimensions:t0,getScale:fn,isElement:we,isRTL:n0};function td(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function s0(e,t){let r=null,o,n=wr(e);function s(){var a;clearTimeout(o),(a=r)==null||a.disconnect(),r=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();let l=e.getBoundingClientRect(),{left:c,top:f,width:m,height:g}=l;if(a||t(),!m||!g)return;let d=es(f),v=es(n.clientWidth-(c+m)),S=es(n.clientHeight-(f+g)),C=es(c),b={rootMargin:-d+"px "+-v+"px "+-S+"px "+-C+"px",threshold:Mt(0,uo(1,u))||1},R=!0;function k(T){let _=T[0].intersectionRatio;if(_!==u){if(!R)return i();_?i(!1,_):o=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!td(l,e.getBoundingClientRect())&&i(),R=!1}try{r=new IntersectionObserver(k,{...b,root:n.ownerDocument})}catch{r=new IntersectionObserver(k,b)}r.observe(e)}return i(!0),s}function ns(e,t,r,o){o===void 0&&(o={});let{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,l=Ja(e),c=n||s?[...l?ao(l):[],...t?ao(t):[]]:[];c.forEach(C=>{n&&C.addEventListener("scroll",r,{passive:!0}),s&&C.addEventListener("resize",r)});let f=l&&a?s0(l,r):null,m=-1,g=null;i&&(g=new ResizeObserver(C=>{let[w]=C;w&&w.target===l&&g&&t&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),r()}),l&&!u&&g.observe(l),t&&g.observe(t));let d,v=u?No(e):null;u&&S();function S(){let C=No(e);v&&!td(v,C)&&r(),v=C,d=requestAnimationFrame(S)}return r(),()=>{var C;c.forEach(w=>{n&&w.removeEventListener("scroll",r),s&&w.removeEventListener("resize",r)}),f?.(),(C=g)==null||C.disconnect(),g=null,u&&cancelAnimationFrame(d)}}var rd=Uf;var od=Wf,nd=zf,sd=Yf,id=jf;var ad=Gf,Ks=(e,t,r)=>{let o=new Map,n={platform:Qa,...r},s={...n.platform,_c:o};return Bf(e,t,{...n,platform:s})};var yt=h(be(),1),cd=h(be(),1),ud=h(lo(),1),a0=typeof document<"u",l0=function(){},Js=a0?cd.useLayoutEffect:l0;function Qs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,o,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!Qs(e[o],t[o]))return!1;return!0}if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,n[o]))return!1;for(o=r;o--!==0;){let s=n[o];if(!(s==="_owner"&&e.$$typeof)&&!Qs(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function fd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ld(e,t){let r=fd(e);return Math.round(t*r)/r}function $a(e){let t=yt.useRef(e);return Js(()=>{t.current=e}),t}function dd(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:n,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[c,f]=yt.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=yt.useState(o);Qs(m,o)||g(o);let[d,v]=yt.useState(null),[S,C]=yt.useState(null),w=yt.useCallback(M=>{M!==T.current&&(T.current=M,v(M))},[]),b=yt.useCallback(M=>{M!==_.current&&(_.current=M,C(M))},[]),R=s||d,k=i||S,T=yt.useRef(null),_=yt.useRef(null),A=yt.useRef(c),N=u!=null,q=$a(u),U=$a(n),x=$a(l),I=yt.useCallback(()=>{if(!T.current||!_.current)return;let M={placement:t,strategy:r,middleware:m};U.current&&(M.platform=U.current),Ks(T.current,_.current,M).then(E=>{let L={...E,isPositioned:x.current!==!1};W.current&&!Qs(A.current,L)&&(A.current=L,ud.flushSync(()=>{f(L)}))})},[m,t,r,U,x]);Js(()=>{l===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[l]);let W=yt.useRef(!1);Js(()=>(W.current=!0,()=>{W.current=!1}),[]),Js(()=>{if(R&&(T.current=R),k&&(_.current=k),R&&k){if(q.current)return q.current(R,k,I);I()}},[R,k,I,q,N]);let O=yt.useMemo(()=>({reference:T,floating:_,setReference:w,setFloating:b}),[w,b]),D=yt.useMemo(()=>({reference:R,floating:k}),[R,k]),J=yt.useMemo(()=>{let M={position:r,left:0,top:0};if(!D.floating)return M;let E=ld(D.floating,c.x),L=ld(D.floating,c.y);return a?{...M,transform:"translate("+E+"px, "+L+"px)",...fd(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:E,top:L}},[r,a,D.floating,c.x,c.y]);return yt.useMemo(()=>({...c,update:I,refs:O,elements:D,floatingStyles:J}),[c,I,O,D,J])}var el=(e,t)=>{let r=rd(e);return{name:r.name,fn:r.fn,options:[e,t]}},tl=(e,t)=>{let r=od(e);return{name:r.name,fn:r.fn,options:[e,t]}},rl=(e,t)=>({fn:ad(e).fn,options:[e,t]}),ol=(e,t)=>{let r=nd(e);return{name:r.name,fn:r.fn,options:[e,t]}},nl=(e,t)=>{let r=sd(e);return{name:r.name,fn:r.fn,options:[e,t]}};var sl=(e,t)=>{let r=id(e);return{name:r.name,fn:r.fn,options:[e,t]}};var mn=h(be(),1),Od=h(lo(),1);var Td=h(be(),1);var Me=(e,t,r,o,n,s,...i)=>{if(i.length>0)throw new Error(Wt(1));let a;if(e&&t&&r&&o&&n&&s)a=(u,l,c,f)=>{let m=e(u,l,c,f),g=t(u,l,c,f),d=r(u,l,c,f),v=o(u,l,c,f),S=n(u,l,c,f);return s(m,g,d,v,S,l,c,f)};else if(e&&t&&r&&o&&n)a=(u,l,c,f)=>{let m=e(u,l,c,f),g=t(u,l,c,f),d=r(u,l,c,f),v=o(u,l,c,f);return n(m,g,d,v,l,c,f)};else if(e&&t&&r&&o)a=(u,l,c,f)=>{let m=e(u,l,c,f),g=t(u,l,c,f),d=r(u,l,c,f);return o(m,g,d,l,c,f)};else if(e&&t&&r)a=(u,l,c,f)=>{let m=e(u,l,c,f),g=t(u,l,c,f);return r(m,g,l,c,f)};else if(e&&t)a=(u,l,c,f)=>{let m=e(u,l,c,f);return t(m,l,c,f)};else if(e)a=e;else throw new Error("Missing arguments");return a};var Rd=h(be(),1),fl=h(al(),1),Ed=h(bd(),1);var wd=h(be(),1);var ll=[],cl;function xd(){return cl}function Sd(e){ll.push(e)}function ul(e){let t=(r,o)=>{let n=Tt(T0).current,s;try{cl=n;for(let i of ll)i.before(n);s=e(r,o);for(let i of ll)i.after(n);n.didInitialize=!0}finally{cl=void 0}return s};return t.displayName=e.displayName||e.name,t}function Cd(e){return wd.forwardRef(ul(e))}function T0(){return{didInitialize:!1}}var _0=rn(19),O0=_0?k0:F0;function ei(e,t,r,o,n){return O0(e,t,r,o,n)}function P0(e,t,r,o,n){let s=Rd.useCallback(()=>t(e.getSnapshot(),r,o,n),[e,t,r,o,n]);return(0,fl.useSyncExternalStore)(e.subscribe,s,s)}Sd({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let r=0;r<e.syncHooks.length;r+=1){let o=e.syncHooks[r],n=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,n)||(t=!0,o.value=n)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let r=new Set;for(let n of e.syncHooks)r.add(n.store);let o=[];for(let n of r)o.push(n.subscribe(t));return()=>{for(let n of o)n()}}),(0,fl.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function k0(e,t,r,o,n){let s=xd();if(!s)return P0(e,t,r,o,n);let i=s.syncIndex;s.syncIndex+=1;let a;return s.didInitialize?(a=s.syncHooks[i],(a.store!==e||a.selector!==t||!Object.is(a.a1,r)||!Object.is(a.a2,o)||!Object.is(a.a3,n))&&(a.store!==e&&(s.didChangeStore=!0),a.store=e,a.selector=t,a.a1=r,a.a2=o,a.a3=n,a.value=t(e.getSnapshot(),r,o,n))):(a={store:e,selector:t,a1:r,a2:o,a3:n,value:t(e.getSnapshot(),r,o,n)},s.syncHooks.push(a)),a.value}function F0(e,t,r,o,n){return(0,Ed.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,r,o,n))}var ti=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let r=this.updateTick;for(let o of this.listeners){if(r!==this.updateTick)return;o(t)}}update(t){for(let r in t)if(!Object.is(this.state[r],t[r])){this.setState({...this.state,...t});return}}set(t,r){Object.is(this.state[t],r)||this.setState({...this.state,[t]:r})}notifyAll(){let t={...this.state};this.setState(t)}use(t,r,o,n){return ei(this,t,r,o,n)}};var Do=h(be(),1);var pn=class extends ti{constructor(t,r={},o){super(t),this.context=r,this.selectors=o}useSyncedValue(t,r){Do.useDebugValue(t);let o=this;ge(()=>{o.state[t]!==r&&o.set(t,r)},[o,t,r])}useSyncedValueWithCleanup(t,r){let o=this;ge(()=>(o.state[t]!==r&&o.set(t,r),()=>{o.set(t,void 0)}),[o,t,r])}useSyncedValues(t){let r=this,o=Object.values(t);ge(()=>{r.update(t)},[r,...o])}useControlledProp(t,r){Do.useDebugValue(t);let o=this,n=r!==void 0;ge(()=>{n&&!Object.is(o.state[t],r)&&o.setState({...o.state,[t]:r})},[o,t,r,n])}select(t,r,o,n){let s=this.selectors[t];return s(this.state,r,o,n)}useState(t,r,o,n){return Do.useDebugValue(t),ei(this,this.selectors[t],r,o,n)}useContextCallback(t,r){Do.useDebugValue(t);let o=_e(r??so);this.context[t]=o}useStateSetter(t){let r=Do.useRef(void 0);return r.current===void 0&&(r.current=o=>{this.set(t,o)}),r.current}observe(t,r){let o;typeof t=="function"?o=t:o=this.selectors[t];let n=o(this.state);return r(n,n,this),this.subscribe(s=>{let i=o(s);if(!Object.is(n,i)){let a=n;n=i,r(i,a,this)}})}};var A0={open:Me(e=>e.open),transitionStatus:Me(e=>e.transitionStatus),domReferenceElement:Me(e=>e.domReferenceElement),referenceElement:Me(e=>e.positionReference??e.referenceElement),floatingElement:Me(e=>e.floatingElement),floatingId:Me(e=>e.floatingId)},kr=class extends pn{constructor(t){let{syncOnly:r,nested:o,onOpenChange:n,triggerElements:s,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:If(),nested:o,triggerElements:s},A0),this.syncOnly=r}syncOpenEvent=(t,r)=>{(!t||!this.state.open||r!=null&&gf(r))&&(this.context.dataRef.current.openEvent=t?r:void 0)};dispatchOpenChange=(t,r)=>{this.syncOpenEvent(t,r.event);let o={open:t,reason:r.reason,nativeEvent:r.event,nested:this.context.nested,triggerElement:r.trigger};this.context.events.emit("openchange",o)};setOpen=(t,r)=>{if(this.syncOnly){this.context.onOpenChange?.(t,r);return}this.dispatchOpenChange(t,r),this.context.onOpenChange?.(t,r)}};function _d(e){let{popupStore:t,treatPopupAsFloatingElement:r=!1,floatingRootContext:o,floatingId:n,nested:s,onOpenChange:i}=e,a=t.useState("open"),u=t.useState("activeTriggerElement"),l=t.useState(r?"popupElement":"positionerElement"),c=t.context.triggerElements,f=i,m=Td.useRef(null);o===void 0&&m.current===null&&(m.current=new kr({open:a,transitionStatus:void 0,referenceElement:u,floatingElement:l,triggerElements:c,onOpenChange:f,floatingId:n,syncOnly:!0,nested:s}));let g=o??m.current;return t.useSyncedValue("floatingId",n),ge(()=>{let d={open:a,floatingId:n,referenceElement:u,floatingElement:l};we(u)&&(d.domReferenceElement=u),g.state.positionReference===g.state.referenceElement&&(d.positionReference=u),g.update(d)},[a,n,u,l,g]),g.context.onOpenChange=f,g.context.nested=s,g}var Pd={tabIndex:-1,[ja]:""};function kd(e,t,r=!1){let o=io(),n=un()!=null,s=mn.useRef(null);e===void 0&&s.current===null&&(s.current=t(o,n));let i=e??s.current;return _d({popupStore:i,treatPopupAsFloatingElement:r,floatingRootContext:i.state.floatingRootContext,floatingId:o,nested:n,onOpenChange:i.setOpen}),{store:i,internalStore:s.current}}function I0(e,t){let r=mn.useRef(null),o=mn.useRef(null);return mn.useCallback(n=>{if(e===void 0)return;let s=!1;if(r.current!==null){let i=r.current,a=o.current,u=t.context.triggerElements.getById(i);a&&u===a&&(t.context.triggerElements.delete(i),s=!0),r.current=null,o.current=null}if(n!==null&&(r.current=e,o.current=n,t.context.triggerElements.add(e,n),s=!0),s){let i=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==i&&t.set("triggerCount",i)}},[t,e])}function L0(e,t,r,o=!1){t?e.preventUnmountingOnClose=!1:o&&(e.preventUnmountingOnClose=!0);let n=r?.id??null;(n||t)&&(e.activeTriggerId=n,e.activeTriggerElement=r??null)}function N0(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Fd(e,t,r,o={}){let n=r.reason,s=n===Oe.triggerHover,i=t&&n===Oe.triggerFocus,a=!t&&(n===Oe.triggerPress||n===Oe.escapeKey),u=N0(r);if(e.context.onOpenChange?.(t,r),r.isCanceled)return;o.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,r);let l=()=>{let c={...o.extraState,open:t};i?c.instantType="focus":a?c.instantType="dismiss":s&&(c.instantType=void 0),L0(c,t,r.trigger,u()),e.update(c)};s?Od.flushSync(l):l()}function Ad(e,t,r,o){uf(()=>{t===void 0&&e.state.open===!1&&r&&(e.state={...e.state,open:!0,activeTriggerId:o,preventUnmountingOnClose:!1})})}function Id(e,t,r,o){let n=r.useState("isMountedByTrigger",e),s=I0(e,r),i=_e(a=>{if(s(a),!a)return;let u=r.select("open"),l=r.select("activeTriggerId");if(l===e){r.update({activeTriggerElement:a,...u?o:null});return}l==null&&u&&r.update({activeTriggerId:e,activeTriggerElement:a,...o})});return ge(()=>{n&&r.update({activeTriggerElement:t.current,...o})},[n,r,t,...Object.values(o)]),{registerTrigger:i,isMountedByThisTrigger:n}}function Ld(e,t={}){let{closeOnActiveTriggerUnmount:r=!1}=t,o=e.useState("open"),n=e.useState("triggerCount");ge(()=>{if(!o){e.state.triggerCount!==0&&e.set("triggerCount",0);return}let s=e.context.triggerElements.size,i={};e.state.triggerCount!==s&&(i.triggerCount=s);let a=e.select("activeTriggerId"),u=null;if(a){let l=e.context.triggerElements.getById(a);l?l!==e.state.activeTriggerElement&&(i.activeTriggerElement=l):u=a}if(!u&&!a&&s===1){let l=e.context.triggerElements.entries().next();if(!l.done){let[c,f]=l.value;i.activeTriggerId=c,i.activeTriggerElement=f}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),u&&r&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===u&&!e.context.triggerElements.getById(u)){let l=ze(Oe.none);e.setOpen(!1,l),l.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,n,r])}function Nd(e,t,r){let{mounted:o,setMounted:n,transitionStatus:s}=$u(e),i=t.useState("preventUnmountingOnClose"),a=e?!1:i;t.useSyncedValues({mounted:o,transitionStatus:s,preventUnmountingOnClose:a});let u=_e(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),r?.(),t.context.onOpenChangeComplete?.(!1)});return Hs({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:s}}function Dd(e,t){e.useSyncedValues(t),ge(()=>()=>{e.update({activeTriggerProps:pt,inactiveTriggerProps:pt,popupProps:pt})},[e])}var mo=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,r){let o=this.idMap.get(t);o!==r&&(o!==void 0&&this.elementsSet.delete(o),this.elementsSet.add(r),this.idMap.set(t,r))}delete(t){let r=this.idMap.get(t);r&&(this.elementsSet.delete(r),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(let r of this.elementsSet)if(t(r))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Md(){return new kr({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new mo,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Bd(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Md(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:pt,inactiveTriggerProps:pt,popupProps:pt}}function zd(e,t,r=!1){return new kr({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:r,onOpenChange:void 0})}var ss=Me(e=>e.triggerIdProp??e.activeTriggerId),dl=Me(e=>e.openProp??e.open),Vd=Me(e=>(e.popupElement?.id??e.floatingId)||void 0);function jd(e,t){return t!==void 0&&dl(e)&&ss(e)===t}function D0(e,t){return jd(e,t)?!0:t!==void 0&&dl(e)&&ss(e)==null&&e.triggerCount===1}var Hd={open:dl,mounted:Me(e=>e.mounted),transitionStatus:Me(e=>e.transitionStatus),floatingRootContext:Me(e=>e.floatingRootContext),triggerCount:Me(e=>e.triggerCount),preventUnmountingOnClose:Me(e=>e.preventUnmountingOnClose),payload:Me(e=>e.payload),activeTriggerId:ss,activeTriggerElement:Me(e=>e.mounted?e.activeTriggerElement:null),popupId:Vd,isTriggerActive:Me((e,t)=>t!==void 0&&ss(e)===t),isOpenedByTrigger:Me((e,t)=>jd(e,t)),isMountedByTrigger:Me((e,t)=>t!==void 0&&ss(e)===t&&e.mounted),triggerProps:Me((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Me((e,t)=>D0(e,t)?Vd(e):void 0),popupProps:Me(e=>e.popupProps),popupElement:Me(e=>e.popupElement),positionerElement:Me(e=>e.positionerElement)};function Ud(e){let{open:t=!1,onOpenChange:r,elements:o={}}=e,n=io(),s=un()!=null,i=Tt(()=>new kr({open:t,transitionStatus:void 0,onOpenChange:r,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new mo,floatingId:n,syncOnly:!1,nested:s})).current;return ge(()=>{let a={open:t,floatingId:n};o.reference!==void 0&&(a.referenceElement=o.reference,a.domReferenceElement=we(o.reference)?o.reference:null),o.floating!==void 0&&(a.floatingElement=o.floating),i.update(a)},[t,n,o.reference,o.floating,i]),i.context.onOpenChange=r,i.context.nested=s,i}function pl(e={}){let{nodeId:t,externalTree:r}=e,o=Ud(e),n=e.rootContext||o,s=n.useState("referenceElement"),i=n.useState("floatingElement"),a=n.useState("domReferenceElement"),u=n.useState("open"),l=n.useState("floatingId"),[c,f]=Ft.useState(null),[m,g]=Ft.useState(void 0),[d,v]=Ft.useState(void 0),S=Ft.useRef(null),C=po(r),w=Ft.useMemo(()=>({reference:s,floating:i,domReference:a}),[s,i,a]),b=dd({...e,elements:{...w,...c&&{reference:c}}}),R=we(m)?m:null,k=d===void 0?n.state.floatingElement:d;n.useSyncedValue("referenceElement",m??null),n.useSyncedValue("domReferenceElement",m===void 0?a:R),n.useSyncedValue("floatingElement",k);let T=Ft.useCallback(x=>{let I=we(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;f(I),b.refs.setReference(I)},[b.refs]),_=Ft.useCallback(x=>{(we(x)||x===null)&&(S.current=x,g(x)),(we(b.refs.reference.current)||b.refs.reference.current===null||x!==null&&!we(x))&&b.refs.setReference(x)},[b.refs,g]),A=Ft.useCallback(x=>{v(x),b.refs.setFloating(x)},[b.refs]),N=Ft.useMemo(()=>({...b.refs,setReference:_,setFloating:A,setPositionReference:T,domReference:S}),[b.refs,_,A,T]),q=Ft.useMemo(()=>({...b.elements,domReference:a}),[b.elements,a]),U=Ft.useMemo(()=>({...b,dataRef:n.context.dataRef,open:u,onOpenChange:n.setOpen,events:n.context.events,floatingId:l,refs:N,elements:q,nodeId:t,rootStore:n}),[b,N,q,t,n,u,l]);return ge(()=>{a&&(S.current=a)},[a]),ge(()=>{n.context.dataRef.current.floatingContext=U;let x=C?.nodesRef.current.find(I=>I.id===t);x&&(x.context=U)}),Ft.useMemo(()=>({...b,context:U,refs:N,elements:q,rootStore:n}),[b,N,q,U,n])}var Fr=h(be(),1);var ml=Yr.os.mac&&Yr.engine.webkit;function hl(e,t={}){let{enabled:r=!0,delay:o}=t,n="rootStore"in e?e.rootStore:e,{events:s,dataRef:i}=n.context,a=Fr.useRef(!1),u=Fr.useRef(null),l=Fr.useRef(!0),c=Sr();Fr.useEffect(()=>{let m=n.select("domReferenceElement");if(!r)return;let g=lt(m);function d(){let C=n.select("domReferenceElement");!n.select("open")&&St(C)&&C===Us(Ct(C))&&(a.current=!0)}function v(){l.current=!0}function S(){l.current=!1}return Cr(Ye(g,"blur",d),ml&&Ye(g,"keydown",v,!0),ml&&Ye(g,"pointerdown",S,!0))},[n,r]),Fr.useEffect(()=>{if(!r)return;function m(g){if(g.reason===Oe.triggerPress||g.reason===Oe.escapeKey){let d=n.select("domReferenceElement");we(d)&&(u.current=d,a.current=!0)}}return s.on("openchange",m),()=>{s.off("openchange",m)}},[s,r,n]);let f=Fr.useMemo(()=>{function m(){a.current=!1,u.current=null}return{onMouseLeave(){m()},onFocus(g){let d=g.currentTarget;if(a.current){if(u.current===d)return;m()}let v=Dt(g.nativeEvent);if(we(v)){if(ml&&!g.relatedTarget){if(!l.current&&!vf(v))return}else if(!bf(v))return}let S=co(g.relatedTarget,n.context.triggerElements),{nativeEvent:C,currentTarget:w}=g,b=typeof o=="function"?o():o;if(n.select("open")&&S||b===0||b===void 0){n.setOpen(!0,ze(Oe.triggerFocus,C,w));return}c.start(b,()=>{a.current||n.setOpen(!0,ze(Oe.triggerFocus,C,w))})},onBlur(g){m();let d=g.relatedTarget,v=g.nativeEvent,S=we(d)&&d.hasAttribute(cn("focus-guard"))&&d.getAttribute("data-type")==="outside";c.start(0,()=>{let C=n.select("domReferenceElement"),w=Us(Ct(C));!d&&w===C||Ze(i.current.floatingContext?.refs.floating.current,w)||Ze(C,w)||S||co(d??w,n.context.triggerElements)||n.setOpen(!1,ze(Oe.triggerFocus,v))})}}},[i,o,n,c]);return Fr.useMemo(()=>r?{reference:f,trigger:f}:{},[r,f])}var yl=h(be(),1);var gl=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new nr,this.restTimeout=new nr,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},ri=new WeakMap;function hn(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&ri.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),ri.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function oi(e,t){let{scopeElement:r,referenceElement:o,floatingElement:n}=t,s=ri.get(r);s&&s!==e&&hn(s),hn(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=r,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=n,ri.set(r,e),r.style.pointerEvents="none",o.style.pointerEvents="auto",n.style.pointerEvents="auto"}function gn(e){let t=e.context.dataRef.current,r=Tt(()=>t.hoverInteractionState??gl.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=r),on(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function vl(e,t={}){let{enabled:r=!0,closeDelay:o=0,nodeId:n}=t,s="rootStore"in e?e.rootStore:e,i=s.useState("open"),a=s.useState("floatingElement"),u=s.useState("domReferenceElement"),{dataRef:l}=s.context,c=po(),f=un(),m=gn(s),g=Sr(),d=_e(()=>Gs(l.current.openEvent?.type,m.interactedInside)),v=_e(()=>wf(l.current.openEvent?.type)),S=_e(()=>{hn(m)});ge(()=>{i||(m.pointerType=void 0,m.restTimeoutPending=!1,m.interactedInside=!1,S())},[i,m,S]),yl.useEffect(()=>S,[S]),ge(()=>{if(r&&i&&m.handleCloseOptions?.blockPointerEvents&&v()&&we(u)&&a){let C=u,w=a,b=Ct(a),R=c?.nodesRef.current.find(A=>A.id===f)?.context?.elements.floating;R&&(R.style.pointerEvents="");let k=m.pointerEventsScopeElement!==w?m.pointerEventsScopeElement:null,T=R!==w?R:null,_=m.handleCloseOptions?.getScope?.()??k??T??C.closest("[data-rootownerid]")??b.body;return oi(m,{scopeElement:_,referenceElement:C,floatingElement:w}),()=>{S()}}},[r,i,u,a,m,v,c,f,S]),yl.useEffect(()=>{if(!r)return;function C(){return!!(c&&f&&Xr(c.nodesRef.current,f).length>0)}function w(A){let N=Zr(o,"close",m.pointerType),q=()=>{s.setOpen(!1,ze(Oe.triggerHover,A)),c?.events.emit("floating.closed",A)};N?m.openChangeTimeout.start(N,q):(m.openChangeTimeout.clear(),q())}function b(A){let N=Dt(A);if(!Ua(N)){m.interactedInside=!1;return}m.interactedInside=N?.closest("[aria-haspopup]")!=null}function R(){m.openChangeTimeout.clear(),g.clear(),c?.events.off("floating.closed",T),S()}function k(A){if(C()&&c){c.events.on("floating.closed",T);return}if(co(A.relatedTarget,s.context.triggerElements))return;let N=l.current.floatingContext?.nodeId??n,q=A.relatedTarget;if(!(c&&N&&we(q)&&Xr(c.nodesRef.current,N,!1).some(x=>Ze(x.context?.elements.floating,q)))){if(m.handler){m.handler(A);return}S(),v()&&!d()&&w(A)}}function T(A){!c||!f||C()||g.start(0,()=>{c.events.off("floating.closed",T),s.setOpen(!1,ze(Oe.triggerHover,A)),c.events.emit("floating.closed",A)})}let _=a;return Cr(_&&Ye(_,"mouseenter",R),_&&Ye(_,"mouseleave",k),_&&Ye(_,"pointerdown",b,!0),()=>{c?.events.off("floating.closed",T)})},[r,a,s,l,o,n,v,d,S,m,c,f,g])}var ho=h(be(),1),Wd=h(lo(),1);var M0={current:null};function bl(e,t={}){let{enabled:r=!0,delay:o=0,handleClose:n=null,mouseOnly:s=!1,restMs:i=0,move:a=!0,triggerElementRef:u=M0,externalTree:l,isActiveTrigger:c=!0,getHandleCloseContext:f,isClosing:m,shouldOpen:g}=t,d="rootStore"in e?e.rootStore:e,{dataRef:v,events:S}=d.context,C=po(l),w=gn(d),b=ho.useRef(!1),R=Yt(n),k=Yt(o),T=Yt(i),_=Yt(r),A=Yt(g),N=Yt(m),q=_e(()=>Gs(v.current.openEvent?.type,w.interactedInside)),U=_e(()=>A.current?.()!==!1),x=_e((O,D,J)=>{let M=d.context.triggerElements;if(M.hasElement(D))return!O||!Ze(O,D);if(!we(J))return!1;let E=J;return M.hasMatchingElement(L=>Ze(L,E))&&(!O||!Ze(O,E))}),I=_e(()=>{if(!w.handler)return;Ct(d.select("domReferenceElement")).removeEventListener("mousemove",w.handler),w.handler=void 0}),W=_e(()=>{hn(w)});return c&&(w.handleCloseOptions=R.current?.__options),ho.useEffect(()=>I,[I]),ho.useEffect(()=>{if(!r)return;function O(D){D.open?b.current=!1:(b.current=D.reason===Oe.triggerHover,I(),w.openChangeTimeout.clear(),w.restTimeout.clear(),w.blockMouseMove=!0,w.restTimeoutPending=!1)}return S.on("openchange",O),()=>{S.off("openchange",O)}},[r,S,w,I]),ho.useEffect(()=>{if(!r)return;function O(E,L=!0){let $=Zr(k.current,"close",w.pointerType);$?w.openChangeTimeout.start($,()=>{d.setOpen(!1,ze(Oe.triggerHover,E)),C?.events.emit("floating.closed",E)}):L&&(w.openChangeTimeout.clear(),d.setOpen(!1,ze(Oe.triggerHover,E)),C?.events.emit("floating.closed",E))}let D=u.current??(c?d.select("domReferenceElement"):null);if(!we(D))return;function J(E){if(w.openChangeTimeout.clear(),w.blockMouseMove=!1,s&&!qr(w.pointerType))return;let L=Wa(T.current),$=Zr(k.current,"open",w.pointerType),F=Dt(E),Z=E.currentTarget??null,se=d.select("domReferenceElement"),xe=Z;if(we(F)&&!d.context.triggerElements.hasElement(F)){for(let G of d.context.triggerElements.elements())if(Ze(G,F)){xe=G;break}}we(Z)&&we(se)&&!d.context.triggerElements.hasElement(Z)&&Ze(Z,se)&&(xe=se);let ie=xe==null?!1:x(se,xe,F),ye=d.select("open"),Ee=N.current?.()??d.select("transitionStatus")==="ending",ee=!ye&&Ee&&b.current,Ae=!ie&&we(xe)&&we(se)&&Ze(se,xe)&&ee,Ie=L>0&&!$,ke=ie&&(ye||ee)||Ae,He=!ye||ie;if(ke){U()&&d.setOpen(!0,ze(Oe.triggerHover,E,xe));return}Ie||($?w.openChangeTimeout.start($,()=>{He&&U()&&d.setOpen(!0,ze(Oe.triggerHover,E,xe))}):He&&U()&&d.setOpen(!0,ze(Oe.triggerHover,E,xe)))}function M(E){if(q()){W();return}I();let L=d.select("domReferenceElement"),$=Ct(L);w.restTimeout.clear(),w.restTimeoutPending=!1;let F=v.current.floatingContext??f?.();if(co(E.relatedTarget,d.context.triggerElements))return;if(R.current&&F){d.select("open")||w.openChangeTimeout.clear();let se=u.current;w.handler=R.current({...F,tree:C,x:E.clientX,y:E.clientY,onClose(){W(),I(),_.current&&!q()&&se===d.select("domReferenceElement")&&O(E,!0)}}),$.addEventListener("mousemove",w.handler),w.handler(E);return}(w.pointerType!=="touch"||!Ze(d.select("floatingElement"),E.relatedTarget))&&O(E)}return a?Cr(Ye(D,"mousemove",J,{once:!0}),Ye(D,"mouseenter",J),Ye(D,"mouseleave",M)):Cr(Ye(D,"mouseenter",J),Ye(D,"mouseleave",M))},[I,W,v,k,d,r,R,w,c,x,q,s,a,T,u,C,_,f,N,U]),ho.useMemo(()=>{if(!r)return;function O(D){w.pointerType=D.pointerType}return{onPointerDown:O,onPointerEnter:O,onMouseMove(D){let{nativeEvent:J}=D,M=D.currentTarget,E=d.select("domReferenceElement"),L=d.select("open"),$=x(E,M,D.target);if(s&&!qr(w.pointerType))return;if(L&&$&&w.handleCloseOptions?.blockPointerEvents){let se=d.select("floatingElement");if(se){let xe=w.handleCloseOptions?.getScope?.()??M.ownerDocument.body;oi(w,{scopeElement:xe,referenceElement:M,floatingElement:se})}}let F=Wa(T.current);if(L&&!$||F===0||!$&&w.restTimeoutPending&&D.movementX**2+D.movementY**2<2)return;w.restTimeout.clear();function Z(){if(w.restTimeoutPending=!1,q())return;let se=d.select("open");!w.blockMouseMove&&(!se||$)&&U()&&d.setOpen(!0,ze(Oe.triggerHover,J,M))}w.pointerType==="touch"?Wd.flushSync(()=>{Z()}):$&&L?Z():(w.restTimeoutPending=!0,w.restTimeout.start(F,Z))}}},[r,w,q,x,s,d,T,U])}var Gd=.1,V0=Gd*Gd,Ke=.5;function ni(e,t,r,o,n,s){return o>=t!=s>=t&&e<=(n-r)*(t-o)/(s-o)+r}function si(e,t,r,o,n,s,i,a,u,l){let c=!1;return ni(e,t,r,o,n,s)&&(c=!c),ni(e,t,n,s,i,a)&&(c=!c),ni(e,t,i,a,u,l)&&(c=!c),ni(e,t,u,l,r,o)&&(c=!c),c}function B0(e,t,r){return e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height}function ii(e,t,r,o,n,s){let i=Math.min(r,n),a=Math.max(r,n),u=Math.min(o,s),l=Math.max(o,s);return e>=i&&e<=a&&t>=u&&t<=l}function wl(e={}){let{blockPointerEvents:t=!1}=e,r=new nr,o=({x:n,y:s,placement:i,elements:a,onClose:u,nodeId:l,tree:c})=>{let f=i?.split("-")[0],m=!1,g=null,d=null,v=typeof performance<"u"?performance.now():0;function S(w,b){let R=performance.now(),k=R-v;if(g===null||d===null||k===0)return g=w,d=b,v=R,!1;let T=w-g,_=b-d,A=T*T+_*_,N=k*k*V0;return g=w,d=b,v=R,A<N}function C(){r.clear(),u()}return function(b){r.clear();let R=a.domReference,k=a.floating;if(!R||!k||f==null||n==null||s==null)return;let{clientX:T,clientY:_}=b,A=Dt(b),N=b.type==="mouseleave",q=Ze(k,A),U=Ze(R,A);if(q&&(m=!0,!N))return;if(U&&(m=!1,!N)){m=!0;return}if(N&&we(b.relatedTarget)&&Ze(k,b.relatedTarget))return;function x(){return!!(c&&Xr(c.nodesRef.current,l).length>0)}function I(){x()||C()}if(x())return;let W=R.getBoundingClientRect(),O=k.getBoundingClientRect(),D=n>O.right-O.width/2,J=s>O.bottom-O.height/2,M=O.width>W.width,E=O.height>W.height,L=(M?W:O).left,$=(M?W:O).right,F=(E?W:O).top,Z=(E?W:O).bottom;if(f==="top"&&s>=W.bottom-1||f==="bottom"&&s<=W.top+1||f==="left"&&n>=W.right-1||f==="right"&&n<=W.left+1){I();return}let se=!1;switch(f){case"top":se=ii(T,_,L,W.top+1,$,O.bottom-1);break;case"bottom":se=ii(T,_,L,O.top+1,$,W.bottom-1);break;case"left":se=ii(T,_,O.right-1,Z,W.left+1,F);break;case"right":se=ii(T,_,W.right-1,Z,O.left+1,F);break;default:}if(se)return;if(m&&!B0(T,_,W)){I();return}if(!N&&S(T,_)){I();return}let xe=!1;switch(f){case"top":{let ie=M?Ke/2:Ke*4,ye=M||D?n+ie:n-ie,Ee=M?n-ie:D?n+ie:n-ie,ee=s+Ke+1,Ae=D||M?O.bottom-Ke:O.top,Ie=D?M?O.bottom-Ke:O.top:O.bottom-Ke;xe=si(T,_,ye,ee,Ee,ee,O.left,Ae,O.right,Ie);break}case"bottom":{let ie=M?Ke/2:Ke*4,ye=M||D?n+ie:n-ie,Ee=M?n-ie:D?n+ie:n-ie,ee=s-Ke,Ae=D||M?O.top+Ke:O.bottom,Ie=D?M?O.top+Ke:O.bottom:O.top+Ke;xe=si(T,_,ye,ee,Ee,ee,O.left,Ae,O.right,Ie);break}case"left":{let ie=E?Ke/2:Ke*4,ye=E||J?s+ie:s-ie,Ee=E?s-ie:J?s+ie:s-ie,ee=n+Ke+1,Ae=J||E?O.right-Ke:O.left,Ie=J?E?O.right-Ke:O.left:O.right-Ke;xe=si(T,_,Ae,O.top,Ie,O.bottom,ee,ye,ee,Ee);break}case"right":{let ie=E?Ke/2:Ke*4,ye=E||J?s+ie:s-ie,Ee=E?s-ie:J?s+ie:s-ie,ee=n-Ke,Ae=J||E?O.left+Ke:O.right,Ie=J?E?O.left+Ke:O.right:O.left+Ke;xe=si(T,_,ee,ye,ee,Ee,Ae,O.top,Ie,O.bottom);break}default:}xe?m||r.start(40,I):I()}};return o.__options={...e,blockPointerEvents:t},o}var xl=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Oo.startingStyle]="startingStyle",e[e.endingStyle=Oo.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),is=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),z0={[is.popupOpen]:""},Uk={[is.popupOpen]:"",[is.pressed]:""},j0={[xl.open]:""},H0={[xl.closed]:""},U0={[xl.anchorHidden]:""},Yd={open(e){return e?z0:null}};var yn={open(e){return e?j0:H0},anchorHidden(e){return e?U0:null}};function qd(e){return rn(19)?e:e?"true":void 0}var ir=h(be(),1);var W0=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:n,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:l,padding:c=0,offsetParent:f="real"}=Er(e,t)||{};if(l==null)return{};let m=Zs(c),g={x:r,y:o},d=os(n),v=rs(d),S=await i.getDimensions(l),C=d==="y",w=C?"top":"left",b=C?"bottom":"right",R=C?"clientHeight":"clientWidth",k=s.reference[v]+s.reference[d]-g[d]-s.floating[v],T=g[d]-s.reference[d],_=f==="real"?await i.getOffsetParent?.(l):a.floating,A=a.floating[R]||s.floating[v];(!A||!await i.isElement?.(_))&&(A=a.floating[R]||s.floating[v]);let N=k/2-T/2,q=A/2-S[v]/2-1,U=Math.min(m[w],q),x=Math.min(m[b],q),I=U,W=A-S[v]-x,O=A/2-S[v]/2+N,D=ts(I,O,W),J=!u.arrow&&Tr(n)!=null&&O!==D&&s.reference[v]/2-(O<I?U:x)-S[v]/2<0,M=J?O<I?O-I:O-W:0;return{[d]:g[d]+M,data:{[d]:D,centerOffset:O-D-M,...J&&{alignmentOffset:M}},reset:J}}}),Zd=(e,t)=>({...W0(e),options:[e,t]});var G0=sl().fn,Xd={name:"hide",async fn(e){let{width:t,height:r,x:o,y:n}=e.rects.reference,s=t===0&&r===0&&o===0&&n===0;return{data:{referenceHidden:(await G0(e)).data?.referenceHidden||s}}}};var as={sideX:"left",sideY:"top"},Kd={name:"adaptiveOrigin",async fn(e){let{x:t,y:r,rects:{floating:o},elements:{floating:n},platform:s,strategy:i,placement:a}=e,u=lt(n),l=u.getComputedStyle(n);if(!(l.transitionDuration!=="0s"&&l.transitionDuration!==""))return{x:t,y:r,data:as};let f=await s.getOffsetParent?.(n),m={width:0,height:0};if(i==="fixed"&&u?.visualViewport)m={width:u.visualViewport.width,height:u.visualViewport.height};else if(f===u){let w=Ct(n);m={width:w.documentElement.clientWidth,height:w.documentElement.clientHeight}}else await s.isElement?.(f)&&(m=await s.getDimensions(f));let g=_t(a),d=t,v=r;g==="left"&&(d=m.width-(t+o.width)),g==="top"&&(v=m.height-(r+o.height));let S=g==="left"?"right":as.sideX,C=g==="top"?"bottom":as.sideY;return{x:d,y:v,data:{sideX:S,sideY:C}}}};function $d(e,t,r){let o=e==="inline-start"||e==="inline-end";return{top:"top",right:o?r?"inline-start":"inline-end":"right",bottom:"bottom",left:o?r?"inline-end":"inline-start":"left"}[t]}function Jd(e,t,r){let{rects:o,placement:n}=e;return{side:$d(t,_t(n),r),align:Tr(n)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function ep(e){let{anchor:t,positionMethod:r="absolute",side:o="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,collisionBoundary:a,collisionPadding:u=5,sticky:l=!1,arrowPadding:c=5,disableAnchorTracking:f=!1,inline:m,keepMounted:g=!1,floatingRootContext:d,mounted:v,collisionAvoidance:S,shiftCrossAxis:C=!1,nodeId:w,adaptiveOrigin:b,lazyFlip:R=!1,externalTree:k}=e,[T,_]=ir.useState(null);!v&&T!==null&&_(null);let A=S.side||"flip",N=S.align||"flip",q=S.fallbackAxisSide||"end",U=typeof t=="function"?t:void 0,x=_e(U),I=U?x:t,W=Yt(t),O=Yt(v),J=tn()==="rtl",M=T||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":J?"left":"right","inline-start":J?"right":"left"}[o],E=s==="center"?M:`${M}-${s}`,L=u,$=1,F=o==="bottom"?$:0,Z=o==="top"?$:0,se=o==="right"?$:0,xe=o==="left"?$:0;typeof L=="number"?L={top:L+F,right:L+xe,bottom:L+Z,left:L+se}:L&&(L={top:(L.top||0)+F,right:(L.right||0)+xe,bottom:(L.bottom||0)+Z,left:(L.left||0)+se});let ie={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:L},ye=ir.useRef(null),Ee=Yt(n),ee=Yt(i),Ae=typeof n!="function"?n:0,Ie=typeof i!="function"?i:0,ke=[];m&&ke.push(m),ke.push(el(Ne=>{let qe=Jd(Ne,o,J),P=typeof Ee.current=="function"?Ee.current(qe):Ee.current,Q=typeof ee.current=="function"?ee.current(qe):ee.current;return{mainAxis:P,crossAxis:Q,alignmentAxis:Q}},[Ae,Ie,J,o]));let He=N==="none"&&A!=="shift",G=!He&&(l||C||A==="shift"),j=A==="none"?null:ol({...ie,padding:{top:L.top+$,right:L.right+$,bottom:L.bottom+$,left:L.left+$},mainAxis:!C&&A==="flip",crossAxis:N==="flip"?"alignment":!1,fallbackAxisSideDirection:q}),X=He?null:tl(Ne=>{let qe=Ct(Ne.elements.floating).documentElement;return{...ie,rootBoundary:C?{x:0,y:0,width:qe.clientWidth,height:qe.clientHeight}:void 0,mainAxis:N!=="none",crossAxis:G,limiter:l||C?void 0:rl(P=>{if(!ye.current)return{};let{width:Q,height:y}=ye.current.getBoundingClientRect(),oe=qt(_t(P.placement)),Be=oe==="y"?Q:y,te=oe==="y"?L.left+L.right:L.top+L.bottom;return{offset:Be/2+te/2}})}},[ie,l,C,L,N]);A==="shift"||N==="shift"||s==="center"?ke.push(X,j):ke.push(j,X),ke.push(nl({...ie,apply({elements:{floating:Ne},availableWidth:qe,availableHeight:P,rects:Q}){if(!O.current)return;let y=Ne.style;y.setProperty("--available-width",`${qe}px`),y.setProperty("--available-height",`${P}px`);let oe=lt(Ne).devicePixelRatio||1,{x:Be,y:te,width:ht,height:ne}=Q.reference,Qe=(Math.round((Be+ht)*oe)-Math.round(Be*oe))/oe,B=(Math.round((te+ne)*oe)-Math.round(te*oe))/oe;y.setProperty("--anchor-width",`${Qe}px`),y.setProperty("--anchor-height",`${B}px`)}}),Zd(Ne=>({element:ye.current||Ct(Ne.elements.floating).createElement("div"),padding:c,offsetParent:"floating"}),[c]),{name:"transformOrigin",fn(Ne){let{elements:qe,middlewareData:P,placement:Q,rects:y,y:oe}=Ne,Be=_t(Q),te=qt(Be),ht=ye.current,ne=P.arrow?.x||0,Qe=P.arrow?.y||0,B=ht?.clientWidth||0,z=ht?.clientHeight||0,vr=ne+B/2,Ge=Qe+z/2,le=Math.abs(P.shift?.y||0),Ur=y.reference.height/2,tr=typeof n=="function"?n(Jd(Ne,o,J)):n,et=le>tr,Ve={top:`${vr}px calc(100% + ${tr}px)`,bottom:`${vr}px ${-tr}px`,left:`calc(100% + ${tr}px) ${Ge}px`,right:`${-tr}px ${Ge}px`}[Be],ft=`${vr}px ${y.reference.y+Ur-oe}px`;return qe.floating.style.setProperty("--transform-origin",G&&te==="y"&&et?ft:Ve),{}}},Xd,b),ge(()=>{!v&&d&&d.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[v,d]);let H=ir.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:K,elements:fe,x:ue,y:de,middlewareData:pe,update:me,placement:V,context:re,isPositioned:De,floatingStyles:Ue}=pl({rootContext:d,open:g?v:void 0,placement:E,middleware:ke,strategy:r,whileElementsMounted:g?void 0:(...Ne)=>ns(...Ne,H),nodeId:w,externalTree:k}),{sideX:ot,sideY:ut}=pe.adaptiveOrigin||as,je=De?r:"fixed",We=ir.useMemo(()=>{let Ne=b?{position:je,[ot]:ue,[ut]:de}:{position:je,...Ue};return De||(Ne.opacity=0),Ne},[b,je,ot,ue,ut,de,Ue,De]),nt=ir.useRef(null);ge(()=>{if(!v)return;let Ne=W.current,qe=typeof Ne=="function"?Ne():Ne,Q=(Qd(qe)?qe.current:qe)||null||null;Q!==nt.current&&(K.setPositionReference(Q),nt.current=Q)},[v,K,I,W]),ir.useEffect(()=>{if(!v)return;let Ne=W.current;typeof Ne!="function"&&Qd(Ne)&&Ne.current!==nt.current&&(K.setPositionReference(Ne.current),nt.current=Ne.current)},[v,K,I,W]),ir.useEffect(()=>{if(g&&v&&fe.reference&&fe.floating)return ns(fe.reference,fe.floating,me,H)},[g,v,fe,me,H]);let ve=_t(V),Or=$d(o,ve,J),yr=Tr(V)||"center",$e=!!pe.hide?.referenceHidden;ge(()=>{R&&v&&De&&_(ve)},[R,v,De,ve]);let Hr=ir.useMemo(()=>({position:"absolute",top:pe.arrow?.y,left:pe.arrow?.x}),[pe.arrow]),Et=pe.arrow?.centerOffset!==0;return ir.useMemo(()=>({positionerStyles:We,arrowStyles:Hr,arrowRef:ye,arrowUncentered:Et,side:Or,align:yr,physicalSide:ve,anchorHidden:$e,refs:K,context:re,isPositioned:De,update:me}),[We,Hr,ye,Et,Or,yr,ve,$e,K,re,De,me])}function Qd(e){return e!=null&&"current"in e}function ai(e){return e==="starting"?Pf:pt}function tp(e,t,{styles:r,transitionStatus:o,props:n,refs:s,hidden:i,inert:a=!1}){let u={...r};return a&&(u.pointerEvents="none"),Gt("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:i,style:u},ai(o),n],stateAttributesMapping:yn})}var At=h(be(),1),ap=h(lo(),1);var rp=h(be(),1);function op(e){let[t,r]=rp.useState({current:e,previous:null});return e!==t.current&&r({current:e,previous:t.current}),t.previous}var vn=h(be(),1);function Sl(e){let t=Pt(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=St(e),s=n?e.offsetWidth:r,i=n?e.offsetHeight:o;return(fo(r)!==s||fo(o)!==i)&&(r=s,o=i),{width:r,height:o}}function sp(e){let{popupElement:t,positionerElement:r,content:o,mounted:n,onMeasureLayout:s,onMeasureLayoutComplete:i,side:a,direction:u}=e,l=ln(t,!0,!1),c=nn(),f=vn.useRef(null),m=vn.useRef(!0),g=vn.useRef(so),d=_e(s),v=_e(i),S=vn.useMemo(()=>{let C=a==="top",w=a==="left";return u==="rtl"?(C=C||a==="inline-end",w=w||a==="inline-end"):(C=C||a==="inline-start",w=w||a==="inline-start"),C?{position:"absolute",[a==="top"?"bottom":"top"]:"0",[w?"right":"left"]:"0"}:pt},[a,u]);ge(()=>{if(!n){g.current=so,m.current=!0,f.current=null;return}if(!t||!r)return;g.current=np(t,S),Cl(t,"auto");let C=ci(t,"position","static"),w=ci(t,"transform","none"),b=ci(t,"scale","1"),R=np(r,{"--available-width":"max-content","--available-height":"max-content"});function k(){C(),w(),R()}function T(){k(),b()}if(d?.(),m.current||f.current===null){li(r,"max-content");let q=Sl(t);return f.current=q,li(r,q),T(),v?.(null,q),m.current=!1,()=>{g.current(),g.current=so}}li(r,"max-content");let _=f.current,A=Sl(t);f.current=A,Cl(t,_),T(),v?.(_,A),li(r,A);let N=new AbortController;return c.request(()=>{Cl(t,A),l(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},N.signal)}),()=>{N.abort(),c.cancel(),g.current(),g.current=so}},[o,t,r,l,c,n,d,v,S])}function ci(e,t,r){let o=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,o)}}function np(e,t){let r=[];for(let[o,n]of Object.entries(t))r.push(ci(e,o,n));return r.length?()=>{r.forEach(o=>o())}:so}function Cl(e,t){let r=t==="auto"?"auto":`${t.width}px`,o=t==="auto"?"auto":`${t.height}px`;e.style.setProperty("--popup-width",r),e.style.setProperty("--popup-height",o)}function li(e,t){let r=t==="max-content"?"max-content":`${t.width}px`,o=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",r),e.style.setProperty("--positioner-height",o)}var bn=h(Y(),1);function lp(e){let{store:t,side:r,cssVars:o,children:n}=e,s=tn(),i=t.useState("activeTriggerElement"),a=t.useState("activeTriggerId"),u=t.useState("open"),l=t.useState("payload"),c=t.useState("mounted"),f=t.useState("popupElement"),m=t.useState("positionerElement"),g=op(u?i:null),d=Z0(a,l),v=At.useRef(null),[S,C]=At.useState(null),[w,b]=At.useState(null),R=At.useRef(null),k=At.useRef(null),T=ln(R,!0,!1),_=nn(),[A,N]=At.useState(null),[q,U]=At.useState(!1);ge(()=>(t.set("hasViewport",!0),()=>{t.set("hasViewport",!1)}),[t]);let x=_e(()=>{R.current?.style.setProperty("animation","none"),R.current?.style.setProperty("transition","none"),k.current?.style.setProperty("display","none")}),I=_e(M=>{R.current?.style.removeProperty("animation"),R.current?.style.removeProperty("transition"),k.current?.style.removeProperty("display"),M&&N(M)}),W=At.useRef(null);ge(()=>{(!u||!c)&&(W.current=null)},[u,c]),ge(()=>{if(i&&g&&i!==g&&W.current!==i&&v.current){C(v.current),U(!0);let M=q0(g,i);b(M),_.request(()=>{ap.flushSync(()=>{U(!1)}),T(()=>{C(null),N(null),v.current=null})}),W.current=i}},[i,g,S,T,_]),ge(()=>{let M=R.current;if(!M)return;let E=Ct(M).createElement("div");for(let L of Array.from(M.childNodes))E.appendChild(L.cloneNode(!0));v.current=E});let O=S!=null,D;O?D=(0,bn.jsxs)(At.Fragment,{children:[(0,bn.jsx)("div",{"data-previous":!0,inert:qd(!0),ref:k,style:{...A?{[o.popupWidth]:`${A.width}px`,[o.popupHeight]:`${A.height}px`}:null,position:"absolute"},"data-ending-style":q?void 0:""},"previous"),(0,bn.jsx)("div",{"data-current":!0,ref:R,"data-starting-style":q?"":void 0,children:n},d)]}):D=(0,bn.jsx)("div",{"data-current":!0,ref:R,children:n},d),ge(()=>{let M=k.current;!M||!S||M.replaceChildren(...Array.from(S.childNodes))},[S]),sp({popupElement:f,positionerElement:m,mounted:c,content:l,onMeasureLayout:x,onMeasureLayoutComplete:I,side:r,direction:s});let J={activationDirection:Y0(w),transitioning:O};return{children:D,state:J}}function Y0(e){if(e)return`${ip(e.horizontal,5,"right","left")} ${ip(e.vertical,5,"down","up")}`}function ip(e,t,r,o){return e>t?r:e<-t?o:""}function q0(e,t){let r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),n={x:r.left+r.width/2,y:r.top+r.height/2},s={x:o.left+o.width/2,y:o.top+o.height/2};return{horizontal:s.x-n.x,vertical:s.y-n.y}}function Z0(e,t){let[r,o]=At.useState(0),n=At.useRef(e),s=At.useRef(t),i=At.useRef(!1);return ge(()=>{let a=n.current,u=s.current,l=e!==a,c=t!==u;l?(o(f=>f+1),i.current=!c):i.current&&c&&(o(f=>f+1),i.current=!1),n.current=e,s.current=t},[e,t]),`${e??"current"}-${r}`}var ui=h(be(),1),cp=h(lo(),1);var up=h(Y(),1),fp=ui.forwardRef(function(t,r){let{children:o,container:n,className:s,render:i,style:a,...u}=t,{portalNode:l,portalSubtree:c}=qa({container:n,ref:r,componentProps:t,elementProps:u});return!c&&!l?null:(0,up.jsxs)(ui.Fragment,{children:[c,l&&cp.createPortal(o,l)]})});var Kt={};no(Kt,{Arrow:()=>_p,Handle:()=>ls,Popup:()=>Ep,Portal:()=>xp,Positioner:()=>Cp,Provider:()=>Op,Root:()=>pp,Trigger:()=>vp,Viewport:()=>Fp,createHandle:()=>Ap});var Ar=h(be(),1);var fi=h(be(),1),Rl=fi.createContext(void 0);function cr(e){let t=fi.useContext(Rl);if(t===void 0&&!e)throw new Error(Wt(72));return t}var dp=h(be(),1);var X0={...Hd,disabled:Me(e=>e.disabled),instantType:Me(e=>e.instantType),isInstantPhase:Me(e=>e.isInstantPhase),trackCursorAxis:Me(e=>e.trackCursorAxis),disableHoverablePopup:Me(e=>e.disableHoverablePopup),lastOpenChangeReason:Me(e=>e.openChangeReason),closeOnClick:Me(e=>e.closeOnClick),closeDelay:Me(e=>e.closeDelay),hasViewport:Me(e=>e.hasViewport)},wn=class e extends pn{constructor(t,r,o=!1){let n=new mo,s={...K0(),...t};s.floatingRootContext=zd(n,r,o),super(s,{popupRef:dp.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},X0)}setOpen=(t,r)=>{Fd(this,t,r,{extraState:{openChangeReason:r.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,ze(Oe.triggerPress,t))}static useStore(t,r){return kd(t,(n,s)=>new e(r,n,s)).store}};function K0(){return{...Bd(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var di=h(Y(),1),pp=ul(function(t){let{disabled:r=!1,defaultOpen:o=!1,open:n,disableHoverablePopup:s=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:u,onOpenChangeComplete:l,handle:c,triggerId:f,defaultTriggerId:m=null,children:g}=t,d=wn.useStore(c?.store,{open:o,openProp:n,activeTriggerId:m,triggerIdProp:f});Ad(d,n,o,m),d.useControlledProp("openProp",n),d.useControlledProp("triggerIdProp",f),d.useContextCallback("onOpenChange",u),d.useContextCallback("onOpenChangeComplete",l);let v=d.useState("open"),S=!r&&v,C=d.useState("activeTriggerId"),w=d.useState("mounted"),b=d.useState("payload");d.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s}),d.useSyncedValue("disabled",r),Ld(d,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:R,transitionStatus:k}=Nd(S,d),T=d.useState("isInstantPhase"),_=d.useState("instantType"),A=d.useState("lastOpenChangeReason"),N=Ar.useRef(null);ge(()=>{v&&r&&d.setOpen(!1,ze(Oe.disabled))},[v,r,d]),ge(()=>{k==="ending"&&A===Oe.none||k!=="ending"&&T?(_!=="delay"&&(N.current=_),d.set("instantType","delay")):N.current!==null&&(d.set("instantType",N.current),N.current=null)},[k,T,A,_,d]),ge(()=>{S&&C==null&&d.set("payload",void 0)},[d,C,S]);let q=Ar.useCallback(()=>{d.setOpen(!1,ze(Oe.imperativeAction))},[d]);Ar.useImperativeHandle(a,()=>({unmount:R,close:q}),[R,q]);let U=S||w||!r&&i!=="none";return(0,di.jsxs)(Rl.Provider,{value:d,children:[U&&(0,di.jsx)(J0,{store:d,disabled:r,trackCursorAxis:i}),typeof g=="function"?g({payload:b}):g]})});function J0({store:e,disabled:t,trackCursorAxis:r}){let o=e.useState("floatingRootContext"),n=Xa(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=Za(o,{enabled:!t&&r!=="none",axis:r==="none"?void 0:r}),i=Ar.useMemo(()=>or(s.reference,n.reference),[s.reference,n.reference]),a=Ar.useMemo(()=>or(s.trigger,n.trigger),[s.trigger,n.trigger]),u=Ar.useMemo(()=>or(Pd,s.floating,n.floating),[s.floating,n.floating]);return Dd(e,{activeTriggerProps:i,inactiveTriggerProps:a,popupProps:u}),null}var mi=h(be(),1);var pi=h(be(),1),El=pi.createContext(void 0);function mp(){return pi.useContext(El)}var hp=(function(e){return e[e.popupOpen=is.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});var yp="data-base-ui-tooltip-trigger";function gp(e){if("composedPath"in e){let r=e.composedPath();for(let o=0;o<r.length;o+=1){let n=r[o];if(we(n))return n}}let t=e.target;return we(t)?t:null}function Q0(e){let t=e;for(;t;){if(t.hasAttribute(yp))return t;let r=t.parentElement;if(r){t=r;continue}let o=t.getRootNode();t="host"in o&&we(o.host)?o.host:null}return null}var vp=Cd(function(t,r){let{render:o,className:n,style:s,handle:i,payload:a,disabled:u,delay:l,closeOnClick:c=!0,closeDelay:f,id:m,...g}=t,d=cr(!0),v=i?.store??d;if(!v)throw new Error(Wt(82));let S=Ju(m),C=v.useState("isTriggerActive",S),w=v.useState("isOpenedByTrigger",S),b=v.useState("floatingRootContext"),R=mi.useRef(null),k=l??600,T=f??0,{registerTrigger:_,isMountedByThisTrigger:A}=Id(S,R,v,{payload:a,closeOnClick:c,closeDelay:T}),N=mp(),{delayRef:q,isInstantPhase:U,hasProvider:x}=Ya(b,{open:w}),I=gn(b);v.useSyncedValue("isInstantPhase",U);let W=v.useState("disabled"),O=u??W,D=Yt(O),J=v.useState("trackCursorAxis"),M=v.useState("disableHoverablePopup"),E=mi.useRef(!1),L=Sr(),$=mi.useRef(void 0);function F(){let ke=N?.delay,He=typeof q.current=="object"?q.current.open:void 0,G=k;return x&&(He!==0?G=l??ke??k:G=0),G}function Z(ke){let He=R.current;if(!He||!ke)return!1;let G=Q0(ke);return G!==null&&G!==He&&Ze(He,G)}function se(ke){let He=Z(ke);return E.current=He,He&&(I.openChangeTimeout.clear(),I.restTimeout.clear(),I.restTimeoutPending=!1,L.clear()),He}let xe=bl(b,{enabled:!O,mouseOnly:!0,move:!1,handleClose:!M&&J!=="both"?wl():null,restMs:F,delay(){let ke=typeof q.current=="object"?q.current.close:void 0,He=T;return f==null&&x&&(He=ke),{close:He}},triggerElementRef:R,isActiveTrigger:C,isClosing:()=>v.select("transitionStatus")==="ending",shouldOpen(){return!E.current}}),ie=hl(b,{enabled:!O}).reference,ye=ke=>{let He=E.current,G=gp(ke),j=se(G),X=R.current,H=X&&G&&Ze(X,G);if(j&&v.select("open")&&v.select("lastOpenChangeReason")===Oe.triggerHover){v.setOpen(!1,ze(Oe.triggerHover,ke));return}if(He&&!j&&H&&!D.current&&!v.select("open")&&X&&qr($.current)){let K=()=>{!E.current&&!D.current&&!v.select("open")&&v.setOpen(!0,ze(Oe.triggerHover,ke,X))},fe=F();fe===0?(L.clear(),K()):L.start(fe,K)}},Ee=v.useState("triggerProps",A);return Gt("button",t,{state:{open:w},ref:[r,_,R],props:[xe,ie,A||J!=="none"?Ee:void 0,{onMouseOver(ke){ye(ke.nativeEvent)},onFocus(ke){Z(gp(ke.nativeEvent))&&ke.preventBaseUIHandler()},onMouseLeave(){E.current=!1,L.clear(),$.current=void 0},onPointerEnter(ke){$.current=ke.pointerType},onPointerDown(ke){$.current=ke.pointerType,v.set("closeOnClick",c),c&&!v.select("open")&&v.cancelPendingOpen(ke.nativeEvent)},onClick(ke){c&&!v.select("open")&&v.cancelPendingOpen(ke.nativeEvent)},id:S,[hp.triggerDisabled]:O?"":void 0,[yp]:O?void 0:""},g],stateAttributesMapping:Yd})});var wp=h(be(),1);var hi=h(be(),1),Tl=hi.createContext(void 0);function bp(){let e=hi.useContext(Tl);if(e===void 0)throw new Error(Wt(70));return e}var _l=h(Y(),1),xp=wp.forwardRef(function(t,r){let{keepMounted:o=!1,...n}=t;return cr().useState("mounted")||o?(0,_l.jsx)(Tl.Provider,{value:o,children:(0,_l.jsx)(fp,{ref:r,...n})}):null});var yi=h(be(),1);var gi=h(be(),1),Ol=gi.createContext(void 0);function xn(){let e=gi.useContext(Ol);if(e===void 0)throw new Error(Wt(71));return e}var Sp=h(Y(),1),Cp=yi.forwardRef(function(t,r){let{render:o,className:n,anchor:s,positionMethod:i="absolute",side:a="top",align:u="center",sideOffset:l=0,alignOffset:c=0,collisionBoundary:f="clipping-ancestors",collisionPadding:m=5,arrowPadding:g=5,sticky:d=!1,disableAnchorTracking:v=!1,collisionAvoidance:S=kf,style:C,...w}=t,b=cr(),R=bp(),k=b.useState("open"),T=b.useState("mounted"),_=b.useState("trackCursorAxis"),A=b.useState("disableHoverablePopup"),N=b.useState("floatingRootContext"),q=b.useState("instantType"),U=b.useState("transitionStatus"),x=b.useState("hasViewport"),I=ep({anchor:s,positionMethod:i,floatingRootContext:N,mounted:T,side:a,sideOffset:l,align:u,alignOffset:c,collisionBoundary:f,collisionPadding:m,sticky:d,arrowPadding:g,disableAnchorTracking:v,keepMounted:R,collisionAvoidance:S,adaptiveOrigin:x?Kd:void 0}),W=yi.useMemo(()=>({open:k,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:_!=="none"?"tracking-cursor":q}),[k,I.side,I.align,I.anchorHidden,_,q]),O=tp(t,W,{styles:I.positionerStyles,transitionStatus:U,props:w,refs:[r,b.useStateSetter("positionerElement")],hidden:!T,inert:!k||_==="both"||A});return(0,Sp.jsx)(Ol.Provider,{value:I,children:O})});var Rp=h(be(),1);var $0={...yn,...ef},Ep=Rp.forwardRef(function(t,r){let{render:o,className:n,style:s,...i}=t,a=cr(),{side:u,align:l}=xn(),c=a.useState("open"),f=a.useState("instantType"),m=a.useState("transitionStatus"),g=a.useState("popupProps"),d=a.useState("floatingRootContext"),v=a.useState("disabled"),S=a.useState("closeDelay");Hs({open:c,ref:a.context.popupRef,onComplete(){c&&a.context.onOpenChangeComplete?.(!0)}}),vl(d,{enabled:!v,closeDelay:S});let C=a.useStateSetter("popupElement");return Gt("div",t,{state:{open:c,side:u,align:l,instant:f,transitionStatus:m},ref:[r,a.context.popupRef,C],props:[g,ai(m),i],stateAttributesMapping:$0})});var Tp=h(be(),1);var _p=Tp.forwardRef(function(t,r){let{render:o,className:n,style:s,...i}=t,a=cr(),{arrowRef:u,side:l,align:c,arrowUncentered:f,arrowStyles:m}=xn(),g=a.useState("open"),d=a.useState("instantType");return Gt("div",t,{state:{open:g,side:l,align:c,uncentered:f,instant:d},ref:[r,u],props:[{style:m,"aria-hidden":!0},i],stateAttributesMapping:yn})});var Pl=h(be(),1);var kl=h(Y(),1),Op=function(t){let{delay:r,closeDelay:o,timeout:n=400}=t,s=Pl.useMemo(()=>({delay:r,closeDelay:o}),[r,o]),i=Pl.useMemo(()=>({open:r,close:o}),[r,o]);return(0,kl.jsx)(El.Provider,{value:s,children:(0,kl.jsx)(Ga,{delay:i,timeoutMs:n,children:t.children})})};var kp=h(be(),1);var Pp=(function(e){return e.popupWidth="--popup-width",e.popupHeight="--popup-height",e})({});var e1={activationDirection:e=>e?{"data-activation-direction":e}:null},Fp=kp.forwardRef(function(t,r){let{render:o,className:n,style:s,children:i,...a}=t,u=cr(),l=xn(),c=u.useState("instantType"),{children:f,state:m}=lp({store:u,side:l.side,cssVars:Pp,children:i}),g={activationDirection:m.activationDirection,transitioning:m.transitioning,instant:c};return Gt("div",t,{state:g,ref:r,props:[a,{children:f}],stateAttributesMapping:e1})});var ls=class{constructor(){this.store=new wn}open(t){let r=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!r)throw new Error(Wt(81,t));this.store.setOpen(!0,ze(Oe.imperativeAction,void 0,r))}close(){this.store.setOpen(!1,ze(Oe.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function Ap(){return new ls}function Sn(e){return Gt(e.defaultTagName??"div",e,e)}var Np=h(Te(),1),Fl="data-wp-hash";function Al(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&r1(document)),e.__wpStyleRuntime}function t1(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Fl}]`))if(r.getAttribute(Fl)===t)return!0;return!1}function Dp(e,t,r){if(!e.head)return;let o=Al(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(t1(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(Fl,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function r1(e){let t=Al();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Dp(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Mp(e,t){let r=Al();r.styles.set(e,t);for(let o of r.documents.keys())Dp(o,e,t)}typeof process>"u",Mp("a495f9d138",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var Ip={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};typeof process>"u",Mp("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var Lp={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},vi=(0,Np.forwardRef)(function({variant:t="body-md",render:r,className:o,...n},s){return Sn({render:r,defaultTagName:"span",ref:s,props:or(n,{className:st(Ip.text,Lp.heading,Lp.p,Ip[t],o)})})});var bi=h(Te(),1),cs=(0,bi.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,bi.cloneElement)(e,{width:t,height:t,...r,ref:o}));var wi=h(Cn(),1),Il=h(Y(),1),Mo=(0,Il.jsx)(wi.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Il.jsx)(wi.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});var xi=h(Cn(),1),Ll=h(Y(),1),Vo=(0,Ll.jsx)(xi.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Ll.jsx)(xi.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var Si=h(Cn(),1),Nl=h(Y(),1),Dl=(0,Nl.jsx)(Si.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Nl.jsx)(Si.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var Ci=h(Cn(),1),Ml=h(Y(),1),Ri=(0,Ml.jsx)(Ci.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Ml.jsx)(Ci.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})});var Ei=h(Cn(),1),Vl=h(Y(),1),Ti=(0,Vl.jsx)(Ei.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Vl.jsx)(Ei.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})});var zp=h(Te(),1);function Bl(e,t,r){return(0,zp.cloneElement)(e??t,{children:r})}var o1=h(Hp(),1);var Wp=h(us(),1),{lock:iA,unlock:Gp}=(0,Wp.__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/ui");function n1(){let e=o1;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return Gp(e.privateApis).ThemeProvider}var Yp=n1();var qp=h(Te(),1),zl="data-wp-hash";function jl(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&i1(document)),e.__wpStyleRuntime}function s1(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${zl}]`))if(r.getAttribute(zl)===t)return!0;return!1}function Zp(e,t,r){if(!e.head)return;let o=jl(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(s1(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(zl,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function i1(e){let t=jl();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Zp(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function a1(e,t){let r=jl();r.styles.set(e,t);for(let o of r.documents.keys())Zp(o,e,t)}typeof process>"u",a1("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var l1={stack:"_19ce0419607e1896__stack"},c1={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},Rn=(0,qp.forwardRef)(function({direction:t,gap:r,align:o,justify:n,wrap:s,render:i,...a},u){let l={gap:r&&c1[r],alignItems:o,justifyContent:n,flexDirection:t,flexWrap:s};return Sn({render:i,ref:u,props:or(a,{style:l,className:l1.stack})})});var En={};no(En,{Popup:()=>am,Portal:()=>_i,Positioner:()=>Oi,Provider:()=>mm,Root:()=>dm,Trigger:()=>um});var sm=h(Te(),1);var $p=h(Te(),1);var Ul="data-wp-hash";function Wl(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&f1(document)),e.__wpStyleRuntime}function u1(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Ul}]`))if(r.getAttribute(Ul)===t)return!0;return!1}function Kp(e,t,r){if(!e.head)return;let o=Wl(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(u1(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(Ul,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function f1(e){let t=Wl();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Kp(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function d1(e,t){let r=Wl();r.styles.set(e,t);for(let o of r.documents.keys())Kp(o,e,t)}typeof process>"u",d1("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var Xp={slot:"_11fc52b637ff8a7e__slot"},Jp="data-wp-compat-overlay-slot";function p1(){return typeof document>"u"?null:document}function m1(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var Ir=null;function Hl(e){return e.setAttribute("aria-hidden","false"),e}function h1(e){let t=e.createElement("div");return t.setAttribute(Jp,""),Xp.slot&&t.classList.add(Xp.slot),e.body.appendChild(t),t}function Qp(){if(typeof window>"u"||!m1()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=p1();if(!e||!e.body)return;if(Ir&&Ir.ownerDocument===e&&Ir.isConnected)return Hl(Ir);let t=e.querySelector(`[${Jp}]`);return t instanceof HTMLDivElement?(Ir=Hl(t),Ir):(Ir?.isConnected&&Ir.remove(),Ir=Hl(h1(e)),Ir)}var em=h(Y(),1),_i=(0,$p.forwardRef)(function({container:t,...r},o){return(0,em.jsx)(Kt.Portal,{container:t??Qp(),...r,ref:o})});var tm=h(Te(),1),nm=h(Y(),1),Gl="data-wp-hash";function Yl(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&y1(document)),e.__wpStyleRuntime}function g1(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Gl}]`))if(r.getAttribute(Gl)===t)return!0;return!1}function rm(e,t,r){if(!e.head)return;let o=Yl(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(g1(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(Gl,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function y1(e){let t=Yl();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)rm(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function om(e,t){let r=Yl();r.styles.set(e,t);for(let o of r.documents.keys())rm(o,e,t)}typeof process>"u",om("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var v1={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",om("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var b1={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},Oi=(0,tm.forwardRef)(function({align:t="center",className:r,side:o="top",sideOffset:n=4,...s},i){return(0,nm.jsx)(Kt.Positioner,{ref:i,align:t,side:o,sideOffset:n,...s,className:st(v1["box-sizing"],b1.positioner,r)})});var fs=h(Y(),1),ql="data-wp-hash";function Zl(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&x1(document)),e.__wpStyleRuntime}function w1(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${ql}]`))if(r.getAttribute(ql)===t)return!0;return!1}function im(e,t,r){if(!e.head)return;let o=Zl(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(w1(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(ql,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function x1(e){let t=Zl();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)im(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function S1(e,t){let r=Zl();r.styles.set(e,t);for(let o of r.documents.keys())im(o,e,t)}typeof process>"u",S1("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var C1={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},R1={background:"#1e1e1e"},am=(0,sm.forwardRef)(function({portal:t,positioner:r,children:o,className:n,...s},i){let a=(0,fs.jsx)(Yp,{color:R1,children:(0,fs.jsx)(Kt.Popup,{ref:i,className:st(C1.popup,n),...s,children:o})}),u=Bl(r,(0,fs.jsx)(Oi,{}),a);return Bl(t,(0,fs.jsx)(_i,{}),u)});var lm=h(Te(),1),cm=h(Y(),1),um=(0,lm.forwardRef)(function(t,r){return(0,cm.jsx)(Kt.Trigger,{ref:r,...t})});var fm=h(Y(),1);function dm(e){return(0,fm.jsx)(Kt.Root,{...e})}var pm=h(Y(),1);function mm({...e}){return(0,pm.jsx)(Kt.Provider,{...e})}var gm=h(Te(),1),Xl="data-wp-hash";function Kl(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&T1(document)),e.__wpStyleRuntime}function E1(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Xl}]`))if(r.getAttribute(Xl)===t)return!0;return!1}function ym(e,t,r){if(!e.head)return;let o=Kl(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(E1(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(Xl,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function T1(e){let t=Kl();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)ym(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function vm(e,t){let r=Kl();r.styles.set(e,t);for(let o of r.documents.keys())ym(o,e,t)}typeof process>"u",vm("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var _1={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",vm("ed2c39ec90","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.b20cc1690085c2f0__skeleton{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);display:block;@media (forced-colors:active){border:var(--wpds-border-width-xs,1px) solid CanvasText}}._9b143194fdb45f93__pulse{@media not (prefers-reduced-motion){animation:e2b9fe0690281bc8__skeleton-pulse 1.5s ease-in-out infinite}}@keyframes e2b9fe0690281bc8__skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}}}");var hm={skeleton:"b20cc1690085c2f0__skeleton",pulse:"_9b143194fdb45f93__pulse","skeleton-pulse":"e2b9fe0690281bc8__skeleton-pulse"},Jl=(0,gm.forwardRef)(function({render:t,...r},o){return Sn({render:t,ref:o,props:or({className:st(hm.skeleton,hm.pulse,_1["box-sizing"]),"aria-hidden":!0},r)})});var bm=h(Te(),1),wm=h(Y(),1),xm=(0,bm.forwardRef)(({children:e,className:t,ariaLabel:r,as:o="div",...n},s)=>(0,wm.jsx)(o,{ref:s,className:st("admin-ui-navigable-region",t),"aria-label":r,role:"region",tabIndex:"-1",...n,children:e}));xm.displayName="NavigableRegion";var Sm=xm;var Rm=h(ce(),1),{Fill:Em,Slot:Tm}=(0,Rm.createSlotFill)("SidebarToggle");var ur=h(Y(),1),Ql="data-wp-hash";function $l(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&P1(document)),e.__wpStyleRuntime}function O1(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Ql}]`))if(r.getAttribute(Ql)===t)return!0;return!1}function _m(e,t,r){if(!e.head)return;let o=$l(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(O1(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(Ql,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function P1(e){let t=$l();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)_m(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function k1(e,t){let r=$l();r.styles.set(e,t);for(let o of r.documents.keys())_m(o,e,t)}typeof process>"u",k1("ddd9aab364","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var zo={page:"_956b6df0898efed0__page",header:"_0625b55e82a0d93d__header","header-content":"a43c44d5ae28b2e8__header-content","header-actions":"b7cb5b9daf3a3b25__header-actions","header-title":"_8113be94e7caf73c__header-title","header-visual":"_9a776c7f70996f61__header-visual","sidebar-toggle-slot":"d5e0920cd15d35bc__sidebar-toggle-slot","header-subtitle":"_60fea2f6bf5319cd__header-subtitle",content:"be5e57d029ec4036__content","has-padding":"_128806d0b26e3a50__has-padding"};function Om({headingLevel:e=1,breadcrumbs:t,badges:r,visual:o,title:n,subTitle:s,actions:i,showSidebarToggle:a=!0}){let u=`h${e}`;return(0,ur.jsxs)(Rn,{direction:"column",className:zo.header,children:[(0,ur.jsxs)(Rn,{className:zo["header-content"],direction:"row",gap:"sm",justify:"space-between",children:[(0,ur.jsxs)(Rn,{direction:"row",gap:"sm",align:"center",justify:"start",children:[a&&(0,ur.jsx)(Tm,{bubblesVirtually:!0,className:zo["sidebar-toggle-slot"]}),o&&(0,ur.jsx)("div",{className:zo["header-visual"],"aria-hidden":"true",children:o}),n&&(0,ur.jsx)(vi,{className:zo["header-title"],render:(0,ur.jsx)(u,{}),variant:"heading-lg",children:n}),t,r]}),i&&(0,ur.jsx)(Rn,{align:"center",className:zo["header-actions"],direction:"row",gap:"sm",children:i})]}),s&&(0,ur.jsx)(vi,{render:(0,ur.jsx)("p",{}),variant:"body-md",className:zo["header-subtitle"],children:s})]})}var ds=h(Y(),1),tc="data-wp-hash";function rc(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&A1(document)),e.__wpStyleRuntime}function F1(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${tc}]`))if(r.getAttribute(tc)===t)return!0;return!1}function Pm(e,t,r){if(!e.head)return;let o=rc(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(F1(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(tc,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function A1(e){let t=rc();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Pm(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function I1(e,t){let r=rc();r.styles.set(e,t);for(let o of r.documents.keys())Pm(o,e,t)}typeof process>"u",I1("ddd9aab364","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var ec={page:"_956b6df0898efed0__page",header:"_0625b55e82a0d93d__header","header-content":"a43c44d5ae28b2e8__header-content","header-actions":"b7cb5b9daf3a3b25__header-actions","header-title":"_8113be94e7caf73c__header-title","header-visual":"_9a776c7f70996f61__header-visual","sidebar-toggle-slot":"d5e0920cd15d35bc__sidebar-toggle-slot","header-subtitle":"_60fea2f6bf5319cd__header-subtitle",content:"be5e57d029ec4036__content","has-padding":"_128806d0b26e3a50__has-padding"};function km({headingLevel:e,breadcrumbs:t,badges:r,visual:o,title:n,subTitle:s,children:i,className:a,actions:u,ariaLabel:l,hasPadding:c=!1,showSidebarToggle:f=!0}){let m=st(ec.page,a);return(0,ds.jsxs)(Sm,{className:m,ariaLabel:l??(typeof n=="string"?n:""),children:[(n||t||r||u||o)&&(0,ds.jsx)(Om,{headingLevel:e,breadcrumbs:t,badges:r,visual:o,title:n,subTitle:s,actions:u,showSidebarToggle:f}),c?(0,ds.jsx)("div",{className:st(ec.content,ec["has-padding"]),children:i}):i]})}km.SidebarToggleFill=Em;var oc=km;var Un=h(Ce()),Jy=h(ce()),Qy=h(Am()),ba=h(ar()),$y=h(Jt()),ev=h(Te());var Zy=h(ce(),1),Xy=h(Tn(),1),xE=h(Jt(),1),SE=h(Vt(),1),vu=h(Te(),1),CE=h(Bo(),1);function _n(e,t,r){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};let o=t.pop(),n=e;for(let s of t){let i=n[s];n=n[s]=Array.isArray(i)?[...i]:{...i}}return n[o]=r,e}var vt=(e,t,r)=>{let o=Array.isArray(t)?t:t.split("."),n=e;return o.forEach(s=>{n=n?.[s]}),n??r};var L1=["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.textTransform","typography.writingMode","viewport.mobile","viewport.tablet"];function nc(e,t,r){let o=r?".blocks."+r:"",n=t?"."+t:"",s=`settings${o}${n}`,i=`settings${n}`;if(t)return vt(e,s)??vt(e,i);let a={};return L1.forEach(u=>{let l=vt(e,`settings${o}.${u}`)??vt(e,`settings.${u}`);l!==void 0&&(a=_n(a,u.split("."),l))}),a}function sc(e,t,r,o){let n=o?".blocks."+o:"",s=t?"."+t:"",i=`settings${n}${s}`;return _n(e,i.split("."),r)}var jm=h(Vm(),1);var N1="1600px",D1="320px",M1=1,V1=.25,B1=.75,z1="14px";function Bm({minimumFontSize:e,maximumFontSize:t,fontSize:r,minimumViewportWidth:o=D1,maximumViewportWidth:n=N1,scaleFactor:s=M1,minimumFontSizeLimit:i}){if(i=Lr(i)?i:z1,r){let b=Lr(r);if(!b?.unit||!b?.value)return null;let R=Lr(i,{coerceTo:b.unit});if(R?.value&&!e&&!t&&b?.value<=R?.value)return null;if(t||(t=`${b.value}${b.unit}`),!e){let k=b.unit==="px"?b.value:b.value*16,T=Math.min(Math.max(1-.075*Math.log2(k),V1),B1),_=ps(b.value*T,3);R?.value&&_<R?.value?e=`${R.value}${R.unit}`:e=`${_}${b.unit}`}}let a=Lr(e),u=a?.unit||"rem",l=Lr(t,{coerceTo:u});if(!a||!l)return null;let c=Lr(e,{coerceTo:"rem"}),f=Lr(n,{coerceTo:u}),m=Lr(o,{coerceTo:u});if(!f||!m||!c)return null;let g=f.value-m.value;if(!g)return null;let d=ps(m.value/100,3),v=ps(d,3)+u,S=100*((l.value-a.value)/g),C=ps((S||1)*s,3),w=`${c.value}${c.unit} + ((1vw - ${v}) * ${C})`;return`clamp(${e}, ${w}, ${t})`}function Lr(e,t={}){if(typeof e!="string"&&typeof e!="number")return null;isFinite(e)&&(e=`${e}px`);let{coerceTo:r,rootSizeValue:o,acceptableUnits:n}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},s=n?.join("|"),i=new RegExp(`^(\\d*\\.?\\d+)(${s}){1,1}$`),a=e.toString().match(i);if(!a||a.length<3)return null;let[,u,l]=a,c=parseFloat(u);return r==="px"&&(l==="em"||l==="rem")&&(c=c*o,l=r),l==="px"&&(r==="em"||r==="rem")&&(c=c/o,l=r),(r==="em"||r==="rem")&&(l==="em"||l==="rem")&&(l=r),l?{value:ps(c,3),unit:l}:null}function ps(e,t=3){let r=Math.pow(10,t);return Math.round(e*r)/r}function ic(e){let t=e?.fluid;return t===!0||t&&typeof t=="object"&&Object.keys(t).length>0}function j1(e){let t=e?.typography??{},r=e?.layout,o=Lr(r?.wideSize)?r?.wideSize:null;return ic(t)&&o?{fluid:{maxViewportWidth:o,...typeof t.fluid=="object"?t.fluid:{}}}:{fluid:t?.fluid}}function zm(e,t){let{size:r}=e;if(!r||r==="0"||e?.fluid===!1||!ic(t?.typography)&&!ic(e))return r;let o=j1(t)?.fluid??{},n=Bm({minimumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.min,maximumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.max,fontSize:r,minimumFontSizeLimit:typeof o=="object"?o?.minFontSize:void 0,maximumViewportWidth:typeof o=="object"?o?.maxViewportWidth:void 0,minimumViewportWidth:typeof o=="object"?o?.minViewportWidth:void 0});return n||r}var H1=[{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:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>zm(e,t),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:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]},{path:["border","radiusSizes"],valueKey:"size",cssVarInfix:"border-radius",classes:[]},{path:["dimensions","dimensionSizes"],valueKey:"size",cssVarInfix:"dimension",classes:[]}];function U1(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let r=(0,jm.getCSSValueFromRawStyle)(vt(t,e.ref));return typeof r=="object"&&r!==null&&"ref"in r&&r?.ref?void 0:r===void 0?e:r}return e}function W1(e,t){if(!e||!t||!Array.isArray(t))return e;let r=t.find(o=>o?.name===e);return r?.href?r?.href:e}function Hm(e,t){if(!e||!t)return e;let r=U1(e,t);return typeof r=="object"&&r!==null&&"url"in r&&r?.url&&(r.url=W1(r.url,t?._links?.["wp:theme-file"])),r}function Um(e,t,r=[],o="slug",n){let s=[t?vt(e,["blocks",t,...r]):void 0,vt(e,r)].filter(Boolean);for(let i of s)if(i){let a=["custom","theme","default"];for(let u of a){let l=i[u];if(l){let c=l.find(f=>f[o]===n);if(c)return o==="slug"||Um(e,t,r,"slug",c.slug)[o]===c[o]?c:void 0}}}}function G1(e,t,r,[o,n]=[]){let s=H1.find(a=>a.cssVarInfix===o);if(!s||!e.settings)return r;let i=Um(e.settings,t,s.path,"slug",n);if(i){let{valueKey:a}=s,u=i[a];return Pi(e,t,u)}return r}function Y1(e,t,r,o=[]){let n=(t?vt(e?.settings??{},["blocks",t,"custom",...o]):void 0)??vt(e?.settings??{},["custom",...o]);return n?Pi(e,t,n):r}function Pi(e,t,r){if(!r||typeof r!="string")if(typeof r=="object"&&r!==null&&"ref"in r&&typeof r.ref=="string"){let l=vt(e,r.ref);if(!l||typeof l=="object"&&"ref"in l)return l;r=l}else return r;let o="var:",n="var(--wp--",s=")",i;if(r.startsWith(o))i=r.slice(o.length).split("|");else if(r.startsWith(n)&&r.endsWith(s))i=r.slice(n.length,-s.length).split("--");else return r;let[a,...u]=i;return a==="preset"?G1(e,t,r,u):a==="custom"?Y1(e,t,r,u):r}function ki(e,t,r,o=!0){let n=t?"."+t:"",s=r?`styles.blocks.${r}${n}`:`styles${n}`;if(!e)return;let i=vt(e,s),a=void 0;if(i===void 0&&a){let l=!0,c=e;for(let f of s.split(".")){if(!c||typeof c!="object"||!Object.hasOwn(c,f)){l=!1;break}c=c[f]}l||(i=vt(e,a))}return o?Pi(e,r,i):i}function ac(e,t,r,o){let n=t?"."+t:"",s=o?`styles.blocks.${o}${n}`:`styles${n}`;return _n(e,s.split("."),r)}var lc=h(Gm(),1);function ms(e,t){return typeof e!="object"||typeof t!="object"?e===t:(0,lc.default)(e?.styles,t?.styles)&&(0,lc.default)(e?.settings,t?.settings)}var Qm=h(Xm(),1);function Km(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jm(e){var t,r;return Km(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(Km(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}function jo(e,t){return(0,Qm.default)(e,t,{isMergeableObject:Jm,customMerge:r=>{if(r==="backgroundImage")return(o,n)=>n??o}})}var iw={grad:.9,turn:360,rad:360/(2*Math.PI)},Kr=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Rt=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},dr=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},ih=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},$m=function(e){return{r:dr(e.r,0,255),g:dr(e.g,0,255),b:dr(e.b,0,255),a:dr(e.a)}},cc=function(e){return{r:Rt(e.r),g:Rt(e.g),b:Rt(e.b),a:Rt(e.a,3)}},aw=/^#([0-9a-f]{3,8})$/i,Fi=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ah=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,s=Math.max(t,r,o),i=s-Math.min(t,r,o),a=i?s===t?(r-o)/i:s===r?2+(o-t)/i:4+(t-r)/i:0;return{h:60*(a<0?a+6:a),s:s?i/s*100:0,v:s/255*100,a:n}},lh=function(e){var t=e.h,r=e.s,o=e.v,n=e.a;t=t/360*6,r/=100,o/=100;var s=Math.floor(t),i=o*(1-r),a=o*(1-(t-s)*r),u=o*(1-(1-t+s)*r),l=s%6;return{r:255*[o,a,i,i,u,o][l],g:255*[u,o,o,a,i,i][l],b:255*[i,i,u,o,o,a][l],a:n}},eh=function(e){return{h:ih(e.h),s:dr(e.s,0,100),l:dr(e.l,0,100),a:dr(e.a)}},th=function(e){return{h:Rt(e.h),s:Rt(e.s),l:Rt(e.l),a:Rt(e.a,3)}},rh=function(e){return lh((r=(t=e).s,{h:t.h,s:(r*=((o=t.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:t.a}));var t,r,o},gs=function(e){return{h:(t=ah(e)).h,s:(n=(200-(r=t.s))*(o=t.v)/100)>0&&n<200?r*o/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,o,n},lw=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,cw=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,uw=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fw=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,dc={string:[[function(e){var t=aw.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Rt(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Rt(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=uw.exec(e)||fw.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:$m({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=lw.exec(e)||cw.exec(e);if(!t)return null;var r,o,n=eh({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*(iw[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return rh(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,n=e.a,s=n===void 0?1:n;return Kr(t)&&Kr(r)&&Kr(o)?$m({r:Number(t),g:Number(r),b:Number(o),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,r=e.s,o=e.l,n=e.a,s=n===void 0?1:n;if(!Kr(t)||!Kr(r)||!Kr(o))return null;var i=eh({h:Number(t),s:Number(r),l:Number(o),a:Number(s)});return rh(i)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,s=n===void 0?1:n;if(!Kr(t)||!Kr(r)||!Kr(o))return null;var i=(function(a){return{h:ih(a.h),s:dr(a.s,0,100),v:dr(a.v,0,100),a:dr(a.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(s)});return lh(i)},"hsv"]]},oh=function(e,t){for(var r=0;r<t.length;r++){var o=t[r][0](e);if(o)return[o,t[r][1]]}return[null,void 0]},dw=function(e){return typeof e=="string"?oh(e.trim(),dc.string):typeof e=="object"&&e!==null?oh(e,dc.object):[null,void 0]};var uc=function(e,t){var r=gs(e);return{h:r.h,s:dr(r.s+100*t,0,100),l:r.l,a:r.a}},fc=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},nh=function(e,t){var r=gs(e);return{h:r.h,s:r.s,l:dr(r.l+100*t,0,100),a:r.a}},pc=(function(){function e(t){this.parsed=dw(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return Rt(fc(this.rgba),2)},e.prototype.isDark=function(){return fc(this.rgba)<.5},e.prototype.isLight=function(){return fc(this.rgba)>=.5},e.prototype.toHex=function(){return t=cc(this.rgba),r=t.r,o=t.g,n=t.b,i=(s=t.a)<1?Fi(Rt(255*s)):"","#"+Fi(r)+Fi(o)+Fi(n)+i;var t,r,o,n,s,i},e.prototype.toRgb=function(){return cc(this.rgba)},e.prototype.toRgbString=function(){return t=cc(this.rgba),r=t.r,o=t.g,n=t.b,(s=t.a)<1?"rgba("+r+", "+o+", "+n+", "+s+")":"rgb("+r+", "+o+", "+n+")";var t,r,o,n,s},e.prototype.toHsl=function(){return th(gs(this.rgba))},e.prototype.toHslString=function(){return t=th(gs(this.rgba)),r=t.h,o=t.s,n=t.l,(s=t.a)<1?"hsla("+r+", "+o+"%, "+n+"%, "+s+")":"hsl("+r+", "+o+"%, "+n+"%)";var t,r,o,n,s},e.prototype.toHsv=function(){return t=ah(this.rgba),{h:Rt(t.h),s:Rt(t.s),v:Rt(t.v),a:Rt(t.a,3)};var t},e.prototype.invert=function(){return fr({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),fr(uc(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),fr(uc(this.rgba,-t))},e.prototype.grayscale=function(){return fr(uc(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),fr(nh(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),fr(nh(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?fr({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):Rt(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=gs(this.rgba);return typeof t=="number"?fr({h:t,s:r.s,l:r.l,a:r.a}):Rt(r.h)},e.prototype.isEqual=function(t){return this.toHex()===fr(t).toHex()},e})(),fr=function(e){return e instanceof pc?e:new pc(e)},sh=[],ch=function(e){e.forEach(function(t){sh.indexOf(t)<0&&(t(pc,dc),sh.push(t))})};function pw(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(r=>{let o=fr(r).toRgb();t.r.push(o.r/255),t.g.push(o.g/255),t.b.push(o.b/255),t.a.push(o.a)}),t}function uh(e){return`${e}{filter:none}`}function fh(e,t){return`${e}{filter:url(#${t})}`}function dh(e,t){let r=pw(t);return`
+var gv=Object.create;var Ra=Object.defineProperty;var yv=Object.getOwnPropertyDescriptor;var vv=Object.getOwnPropertyNames;var bv=Object.getPrototypeOf,wv=Object.prototype.hasOwnProperty;var zt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var tt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ro=(e,t)=>{for(var r in t)Ra(e,r,{get:t[r],enumerable:!0})},xv=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of vv(t))!wv.call(e,n)&&n!==r&&Ra(e,n,{get:()=>t[n],enumerable:!(o=yv(t,n))||o.enumerable});return e};var h=(e,t,r)=>(r=e!=null?gv(bv(e)):{},xv(t||!e||!e.__esModule?Ra(r,"default",{value:e,enumerable:!0}):r,e));var xe=tt((q2,Ou)=>{Ou.exports=window.wp.i18n});var ke=tt((X2,Fu)=>{Fu.exports=window.wp.element});var ge=tt((K2,Au)=>{Au.exports=window.React});var Y=tt((oT,Du)=>{Du.exports=window.ReactJSXRuntime});var io=tt((QT,af)=>{af.exports=window.ReactDOM});var md=tt(pd=>{"use strict";var ln=ge();function S0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var C0=typeof Object.is=="function"?Object.is:S0,R0=ln.useState,E0=ln.useEffect,T0=ln.useLayoutEffect,_0=ln.useDebugValue;function P0(e,t){var r=t(),o=R0({inst:{value:r,getSnapshot:t}}),n=o[0].inst,s=o[1];return T0(function(){n.value=r,n.getSnapshot=t,ll(n)&&s({inst:n})},[e,r,t]),E0(function(){return ll(n)&&s({inst:n}),e(function(){ll(n)&&s({inst:n})})},[e]),_0(r),r}function ll(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!C0(e,r)}catch{return!0}}function O0(e,t){return t()}var k0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?O0:P0;pd.useSyncExternalStore=ln.useSyncExternalStore!==void 0?ln.useSyncExternalStore:k0});var cl=tt((jP,hd)=>{"use strict";hd.exports=md()});var yd=tt(gd=>{"use strict";var Qs=ge(),F0=cl();function A0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var I0=typeof Object.is=="function"?Object.is:A0,L0=F0.useSyncExternalStore,N0=Qs.useRef,D0=Qs.useEffect,M0=Qs.useMemo,V0=Qs.useDebugValue;gd.useSyncExternalStoreWithSelector=function(e,t,r,o,n){var s=N0(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=M0(function(){function u(g){if(!l){if(l=!0,c=g,g=o(g),n!==void 0&&i.hasValue){var d=i.value;if(n(d,g))return f=d}return f=g}if(d=f,I0(c,g))return d;var v=o(g);return n!==void 0&&n(d,v)?(c=g,d):(c=g,f=v)}var l=!1,c,f,m=r===void 0?null:r;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,r,o,n]);var a=L0(e,s[0],s[1]);return D0(function(){i.hasValue=!0,i.value=a},[a]),V0(a),a}});var bd=tt((UP,vd)=>{"use strict";vd.exports=yd()});var bn=tt((oA,jp)=>{jp.exports=window.wp.primitives});var No=tt((nA,zp)=>{zp.exports=window.wp.compose});var Wp=tt((xA,Hp)=>{Hp.exports=window.wp.theme});var as=tt((SA,Gp)=>{Gp.exports=window.wp.privateApis});var ce=tt((T4,_m)=>{_m.exports=window.wp.components});var Dm=tt((V4,Nm)=>{Nm.exports=window.wp.editor});var nr=tt((B4,Mm)=>{Mm.exports=window.wp.coreData});var Xt=tt((j4,Vm)=>{Vm.exports=window.wp.data});var Sn=tt((z4,Bm)=>{Bm.exports=window.wp.blocks});var Dt=tt((U4,jm)=>{jm.exports=window.wp.blockEditor});var Um=tt((Z4,zm)=>{zm.exports=window.wp.styleEngine});var Xm=tt((i5,Zm)=>{"use strict";Zm.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,s;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(t[n]!==r[n])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),o=s.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[n]))return!1;for(n=o;n--!==0;){var i=s[n];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}});var $m=tt((l5,Qm)=>{"use strict";var i1=function(t){return a1(t)&&!l1(t)};function a1(e){return!!e&&typeof e=="object"}function l1(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||f1(e)}var c1=typeof Symbol=="function"&&Symbol.for,u1=c1?Symbol.for("react.element"):60103;function f1(e){return e.$$typeof===u1}function d1(e){return Array.isArray(e)?[]:{}}function ds(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Rn(d1(e),e,t):e}function p1(e,t,r){return e.concat(t).map(function(o){return ds(o,r)})}function m1(e,t){if(!t.customMerge)return Rn;var r=t.customMerge(e);return typeof r=="function"?r:Rn}function h1(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Km(e){return Object.keys(e).concat(h1(e))}function Jm(e,t){try{return t in e}catch{return!1}}function g1(e,t){return Jm(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function y1(e,t,r){var o={};return r.isMergeableObject(e)&&Km(e).forEach(function(n){o[n]=ds(e[n],r)}),Km(t).forEach(function(n){g1(e,n)||(Jm(e,n)&&r.isMergeableObject(t[n])?o[n]=m1(n,r)(e[n],t[n],r):o[n]=ds(t[n],r))}),o}function Rn(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||p1,r.isMergeableObject=r.isMergeableObject||i1,r.cloneUnlessOtherwiseSpecified=ds;var o=Array.isArray(t),n=Array.isArray(e),s=o===n;return s?o?r.arrayMerge(e,t,r):y1(e,t,r):ds(t,r)}Rn.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(o,n){return Rn(o,n,r)},{})};var v1=Rn;Qm.exports=v1});var jc=tt((QL,ug)=>{ug.exports=window.wp.keycodes});var mg=tt((uN,pg)=>{pg.exports=window.wp.apiFetch});var Xy=tt((Qz,Zy)=>{Zy.exports=window.wp.date});function ku(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=ku(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Sv(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=ku(e))&&(o&&(o+=" "),o+=t);return o}var st=Sv;var Cv=h(ge(),1),Wn={...Cv};var Lu=h(ge(),1),Iu={};function Rt(e,t){let r=Lu.useRef(Iu);return r.current===Iu&&(r.current=e(t)),r}var Ea=Wn.useInsertionEffect,Rv=Ea&&Ea!==Wn.useLayoutEffect?Ea:e=>e();function Te(e){let t=Rt(Ev).current;return t.next=e,Rv(t.effect),t.trampoline}function Ev(){let e={next:void 0,callback:Tv,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Tv(){}var Nu=h(ge(),1),_v=()=>{},ye=typeof document<"u"?Nu.useLayoutEffect:_v;var ks=h(ge(),1),Ta=ks.createContext(void 0);function Qo(){return ks.useContext(Ta)?.direction??"ltr"}function Pv(e,t){return function(o,...n){let s=new URL(e);return s.searchParams.set("code",o.toString()),n.forEach(i=>s.searchParams.append("args[]",i)),`${t} error #${o}; visit ${s} for the full message.`}}var Ov=Pv("https://base-ui.com/production-error","Base UI"),Ut=Ov;var Eo=h(ge(),1);function _a(e,t,r,o){let n=Rt(Vu).current;return kv(n,e,t,r,o)&&Bu(n,[e,t,r,o]),n.callback}function Mu(e){let t=Rt(Vu).current;return Fv(t,e)&&Bu(t,e),t.callback}function Vu(){return{callback:null,cleanup:null,refs:[]}}function kv(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function Fv(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function Bu(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){let o=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let s=t[n];if(s!=null)switch(typeof s){case"function":{let i=s(r);typeof i=="function"&&(o[n]=i);break}case"object":{s.current=r;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let s=t[n];if(s!=null)switch(typeof s){case"function":{let i=o[n];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}default:}}}}}}var zu=h(ge(),1);var ju=h(ge(),1),Av=parseInt(ju.version,10);function $o(e){return Av>=e}function Pa(e){if(!zu.isValidElement(e))return null;let t=e,r=t.props;return($o(19)?r?.ref:t.ref)??null}function Gn(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function oo(){}var dT=Object.freeze([]),pt=Object.freeze({});function Uu(e,t){let r={};for(let o in e){let n=e[o];if(t?.hasOwnProperty(o)){let s=t[o](n);s!=null&&Object.assign(r,s);continue}n===!0?r[`data-${o.toLowerCase()}`]="":n&&(r[`data-${o.toLowerCase()}`]=n.toString())}return r}function Hu(e,t){return typeof e=="function"?e(t):e}function Wu(e,t){return typeof e=="function"?e(t):e}var Oa={};function er(e,t,r,o,n){if(!r&&!o&&!n&&!e)return Fs(t);let s=Fs(e);return t&&(s=Yn(s,t)),r&&(s=Yn(s,r)),o&&(s=Yn(s,o)),n&&(s=Yn(s,n)),s}function Gu(e){if(e.length===0)return Oa;if(e.length===1)return Fs(e[0]);let t=Fs(e[0]);for(let r=1;r<e.length;r+=1)t=Yn(t,e[r]);return t}function Fs(e){return ka(e)?{...qu(e,Oa)}:Iv(e)}function Yn(e,t){return ka(t)?qu(t,e):Lv(e,t)}function Iv(e){let t={...e};for(let r in t){let o=t[r];Yu(r,o)&&(t[r]=Zu(o))}return t}function Lv(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=Gn(e.style,o);break}case"className":{e[r]=Fa(e.className,o);break}default:Yu(r,o)?e[r]=Nv(e[r],o):e[r]=o}}return e}function Yu(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),n=e.charCodeAt(2);return r===111&&o===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function ka(e){return typeof e=="function"}function qu(e,t){return ka(e)?e(t):e??Oa}function Nv(e,t){return t?e?(...r)=>{let o=r[0];if(Ku(o)){let s=o;Xu(s);let i=t(...r);return s.baseUIHandlerPrevented||e?.(...r),i}let n=t(...r);return e?.(...r),n}:Zu(t):e}function Zu(e){return e&&((...t)=>{let r=t[0];return Ku(r)&&Xu(r),e(...t)})}function Xu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Fa(e,t){return t?e?t+" "+e:t:e}function Ku(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var Aa=h(ge(),1);function Ht(e,t,r={}){let o=t.render,n=Dv(t,r);if(r.enabled===!1)return null;let s=r.state??pt;return Bv(e,o,n,s)}function Dv(e,t={}){let{className:r,style:o,render:n}=e,{state:s=pt,ref:i,props:a,stateAttributesMapping:u,enabled:l=!0}=t,c=l?Hu(r,s):void 0,f=l?Wu(o,s):void 0,m=l?Uu(s,u):pt,g=l&&a?Mv(a):void 0,d=l?Gn(m,g)??{}:pt;return typeof document<"u"&&(l?Array.isArray(i)?d.ref=Mu([d.ref,Pa(n),...i]):d.ref=_a(d.ref,Pa(n),i):_a(null,null)),l?(c!==void 0&&(d.className=Fa(d.className,c)),f!==void 0&&(d.style=Gn(d.style,f)),d):pt}function Mv(e){return Array.isArray(e)?Gu(e):er(void 0,e)}var Vv=Symbol.for("react.lazy");function Bv(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let n=er(r,t.props);n.ref=r.ref;let s=t;return s?.$$typeof===Vv&&(s=Eo.Children.toArray(t)[0]),Eo.cloneElement(s,n)}if(e&&typeof e=="string")return jv(e,r);throw new Error(Ut(8))}function jv(e,t){return e==="button"?(0,Aa.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,Aa.createElement)("img",{alt:"",...t,key:t.key}):Eo.createElement(e,t)}var As=h(ge(),1);var Ju=0;function zv(e,t="mui"){let[r,o]=As.useState(e),n=e||r;return As.useEffect(()=>{r==null&&(Ju+=1,o(`${t}-${Ju}`))},[r,t]),n}var Qu=Wn.useId;function no(e,t){if(Qu!==void 0){let r=Qu();return e??(t?`${t}-${r}`:r)}return zv(e,t)}function $u(e){return no(e,"base-ui")}var _e={};ro(_e,{cancelOpen:()=>hb,chipRemovePress:()=>Jv,clearPress:()=>Kv,closePress:()=>Zv,closeWatcher:()=>lb,decrementPress:()=>eb,disabled:()=>yb,drag:()=>db,escapeKey:()=>ab,focusOut:()=>ib,imperativeAction:()=>wb,incrementPress:()=>$v,initial:()=>bb,inputBlur:()=>ob,inputChange:()=>tb,inputClear:()=>rb,inputPaste:()=>nb,inputPress:()=>sb,itemPress:()=>qv,keyboard:()=>ub,linkPress:()=>Xv,listNavigation:()=>cb,missing:()=>vb,none:()=>Uv,outsidePress:()=>Yv,pointer:()=>fb,scrub:()=>mb,siblingOpen:()=>gb,swipe:()=>xb,trackPress:()=>Qv,triggerFocus:()=>Gv,triggerHover:()=>Wv,triggerPress:()=>Hv,wheel:()=>pb,windowResize:()=>Sb});var Uv="none",Hv="trigger-press",Wv="trigger-hover",Gv="trigger-focus",Yv="outside-press",qv="item-press",Zv="close-press",Xv="link-press",Kv="clear-press",Jv="chip-remove-press",Qv="track-press",$v="increment-press",eb="decrement-press",tb="input-change",rb="input-clear",ob="input-blur",nb="input-paste",sb="input-press",ib="focus-out",ab="escape-key",lb="close-watcher",cb="list-navigation",ub="keyboard",fb="pointer",db="drag",pb="wheel",mb="scrub",hb="cancel-open",gb="sibling-open",yb="disabled",vb="missing",bb="initial",wb="imperative-action",xb="swipe",Sb="window-resize";function je(e,t,r,o){let n=!1,s=!1,i=o??pt;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){s=!0},get isCanceled(){return n},get isPropagationAllowed(){return s},trigger:r,...i}}var La=h(ge(),1);var ef=h(ge(),1),Cb=[];function en(e){ef.useEffect(e,Cb)}var Is=null,BT=globalThis.requestAnimationFrame,Ia=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let r=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let n=0;n<r.length;n+=1)r[n]?.(t)};request(t){let r=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(t){let r=t-this.startId;r<0||r>=this.callbacks.length||(this.callbacks[r]=null,this.callbacksCount-=1)}},Ls=new Ia,Er=class e{static create(){return new e}static request(t){return Ls.request(t)}static cancel(t){return Ls.cancel(t)}currentId=Is;request(t){this.cancel(),this.currentId=Ls.request(()=>{this.currentId=Is,t()})}cancel=()=>{this.currentId!==Is&&(Ls.cancel(this.currentId),this.currentId=Is)};disposeEffect=()=>this.cancel};function tn(){let e=Rt(Er.create).current;return en(e.disposeEffect),e}function tf(e,t=!1,r=!1){let[o,n]=La.useState(e&&t?"idle":void 0),[s,i]=La.useState(e);return e&&!s&&(i(!0),n("starting")),!e&&s&&o!=="ending"&&!r&&n("ending"),!e&&!s&&o==="ending"&&n(void 0),ye(()=>{if(!e&&s&&o!=="ending"&&r){let a=Er.request(()=>{n("ending")});return()=>{Er.cancel(a)}}},[e,s,o,r]),ye(()=>{if(!e||t)return;let a=Er.request(()=>{n(void 0)});return()=>{Er.cancel(a)}},[t,e]),ye(()=>{if(!e||!t)return;e&&s&&o!=="idle"&&n("starting");let a=Er.request(()=>{n("idle")});return()=>{Er.cancel(a)}},[t,e,s,o]),{mounted:s,setMounted:i,transitionStatus:o}}var To=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),Rb={[To.startingStyle]:""},Eb={[To.endingStyle]:""},rf={transitionStatus(e){return e==="starting"?Rb:e==="ending"?Eb:null}};function Ns(){return typeof window<"u"}function Po(e){return Ds(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _r(e){var t;return(t=(Ds(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ds(e){return Ns()?e instanceof Node||e instanceof it(e).Node:!1}function Se(e){return Ns()?e instanceof Element||e instanceof it(e).Element:!1}function Et(e){return Ns()?e instanceof HTMLElement||e instanceof it(e).HTMLElement:!1}function rn(e){return!Ns()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}function qn(e){let{overflow:t,overflowX:r,overflowY:o,display:n}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&n!=="inline"&&n!=="contents"}function of(e){return/^(table|td|th)$/.test(Po(e))}function Zn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Tb=/transform|translate|scale|rotate|perspective|filter/,_b=/paint|layout|strict|content/,_o=e=>!!e&&e!=="none",Na;function Ms(e){let t=Se(e)?Lt(e):e;return _o(t.transform)||_o(t.translate)||_o(t.scale)||_o(t.rotate)||_o(t.perspective)||!Vs()&&(_o(t.backdropFilter)||_o(t.filter))||Tb.test(t.willChange||"")||_b.test(t.contain||"")}function nf(e){let t=Tr(e);for(;Et(t)&&!Pr(t);){if(Ms(t))return t;if(Zn(t))return null;t=Tr(t)}return null}function Vs(){return Na==null&&(Na=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Na}function Pr(e){return/^(html|body|#document)$/.test(Po(e))}function Lt(e){return it(e).getComputedStyle(e)}function Xn(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Tr(e){if(Po(e)==="html")return e;let t=e.assignedSlot||e.parentNode||rn(e)&&e.host||_r(e);return rn(t)?t.host:t}function sf(e){let t=Tr(e);return Pr(t)?(e.ownerDocument||e).body:Et(t)&&qn(t)?t:sf(t)}function so(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=sf(e),s=n===((o=e.ownerDocument)==null?void 0:o.body),i=it(n);if(s){let a=Bs(i);return t.concat(i,i.visualViewport||[],qn(n)?n:[],a&&r?so(a):[])}else return t.concat(n,so(n,[],r))}function Bs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ye(e,t,r,o){return e.addEventListener(t,r,o),()=>{e.removeEventListener(t,r,o)}}function Wt(e){let t=Rt(Pb,e).current;return t.next=e,ye(t.effect),t}function Pb(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function xt(e){return e?.ownerDocument||document}var uf=h(ge(),1);var cf=h(io(),1);function lf(e){return e==null?e:"current"in e?e.current:e}function on(e,t=!1,r=!0){let o=tn();return Te((n,s=null)=>{o.cancel();let i=lf(e);if(i==null)return;let a=i,u=()=>{cf.flushSync(n)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function l(){Promise.all(a.getAnimations().map(c=>c.finished)).then(()=>{s?.aborted||u()}).catch(()=>{if(r){s?.aborted||u();return}let c=a.getAnimations();!s?.aborted&&c.length>0&&c.some(f=>f.pending||f.playState!=="finished")&&l()})}if(t){let c=To.startingStyle;if(!a.hasAttribute(c)){o.request(l);return}let f=new MutationObserver(()=>{a.hasAttribute(c)||(f.disconnect(),l())});f.observe(a,{attributes:!0,attributeFilter:[c]}),s?.addEventListener("abort",()=>f.disconnect(),{once:!0});return}o.request(l)})}function js(e){let{enabled:t=!0,open:r,ref:o,onComplete:n}=e,s=Te(n),i=on(o,r,!1);uf.useEffect(()=>{if(!t)return;let a=new AbortController;return i(s,a.signal),()=>{a.abort()}},[t,r,s,i])}var ff=h(ge(),1);function df(e){let t=ff.useRef(!0);t.current&&(t.current=!1,e())}var Wr={};ro(Wr,{engine:()=>ja,env:()=>Ua,os:()=>Va,screenReader:()=>za});var Va={};ro(Va,{android:()=>hf,apple:()=>Ma,ios:()=>Da,linux:()=>Ib,mac:()=>gf,windows:()=>Ab});function Ob(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:kb,platform:Fb,maxTouchPoints:pf}=Ob(),Oo=kb.toLowerCase(),ko=Fb.toLowerCase();var Da=/^i(os$|p)/.test(ko)||ko==="macintel"&&pf>1,mf="android",hf=ko===mf||Oo.includes(mf),gf=!Da&&ko.startsWith("mac"),Ab=ko.startsWith("win"),Ib=!hf&&/^(linux|chrome os)/.test(ko),Ma=gf||Da;var ja={};ro(ja,{blink:()=>Nb,gecko:()=>Lb,webkit:()=>Ba});var Ba=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),Lb=!Ba&&Oo.includes("firefox"),Nb=!Ba&&Oo.includes("chrom");var za={};ro(za,{voiceOver:()=>Db});var Db=Ma;var Ua={};ro(Ua,{jsdom:()=>Mb});var Mb=/jsdom|happydom/.test(Oo);var Kn=0,tr=class e{static create(){return new e}currentId=Kn;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Kn,r()},t)}isStarted(){return this.currentId!==Kn}clear=()=>{this.currentId!==Kn&&(clearTimeout(this.currentId),this.currentId=Kn)};disposeEffect=()=>this.clear};function vr(){let e=Rt(tr.create).current;return en(e.disposeEffect),e}var _t=h(ge(),1);function yf(e){return"nativeEvent"in e}function Gr(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function vf(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var Ha="data-base-ui-focusable";var Wa="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function zs(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Ze(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&rn(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Nt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function ao(e,t){if(!Se(e))return!1;let r=e;if(t.hasElement(r))return!r.hasAttribute("data-trigger-disabled");for(let[,o]of t.entries())if(Ze(o,r))return!o.hasAttribute("data-trigger-disabled");return!1}function Us(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let r=e;return r.target!=null&&t.contains(r.target)}function bf(e){return e.matches("html,body")}function wf(e){return Et(e)&&e.matches(Wa)}function Ga(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Wa}`)!=null}function xf(e){if(!e||Wr.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Vb(e,t){return t!=null&&!Gr(t)?0:typeof e=="function"?e():e}function Yr(e,t,r){let o=Vb(e,r);return typeof o=="number"?o:o?.[t]}function Ya(e){return typeof e=="function"?e():e}function Hs(e,t){return t||e==="click"||e==="mousedown"}function Sf(e){return e?.includes("mouse")&&e!=="mousedown"}var Cf=h(Y(),1),Rf=_t.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new tr,currentIdRef:{current:null},currentContextRef:{current:null}});function Bb(e,t){e.current=t.current}function qa(e){let{children:t,delay:r,timeoutMs:o=0}=e,n=_t.useRef(r),s=_t.useRef(r),i=_t.useRef(null),a=_t.useRef(null),u=vr();return ye(()=>{if(s.current=r,!i.current){n.current=r;return}n.current={open:Yr(n.current,"open"),close:Yr(r,"close")}},[r,i,n,s]),(0,Cf.jsx)(Rf.Provider,{value:_t.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:s,currentIdRef:i,timeoutMs:o,currentContextRef:a,timeout:u}),[o,u]),children:t})}function Za(e,t={open:!1}){let{open:r}=t,o="rootStore"in e?e.rootStore:e,n=o.useState("floatingId"),s=_t.useContext(Rf),{currentIdRef:i,delayRef:a,timeoutMs:u,initialDelayRef:l,currentContextRef:c,hasProvider:f,timeout:m}=s,[g,d]=_t.useState(!1),v=_t.useRef(r),x=_t.useRef(!1);return ye(()=>{v.current=r},[r]),ye(()=>()=>{x.current=!0},[]),ye(()=>{function C(){x.current||d(!1),c.current?.setIsInstantPhase(!1),i.current=null,c.current=null,a.current=l.current,m.clear()}if(i.current&&!r&&i.current===n){if(d(!1),u){let w=n;return m.start(u,()=>{o.select("open")||i.current&&i.current!==w||C()}),()=>{(v.current||i.current!==w)&&m.clear()}}C()}},[r,n,i,a,u,l,c,m,o]),ye(()=>{if(!r)return;let C=c.current,w=i.current;m.clear(),c.current={onOpenChange:o.setOpen,setIsInstantPhase:d},i.current=n,a.current={open:0,close:Yr(l.current,"close")},w!==null&&w!==n?(d(!0),C?.setIsInstantPhase(!0),C?.onOpenChange(!1,je(_e.none))):(d(!1),C?.setIsInstantPhase(!1))},[r,n,o,i,a,l,c,m]),ye(()=>()=>{if(i.current===n){if(c.current=null,!v.current)return;i.current=null,Bb(a,l),m.clear()}},[c,i,a,n,l,m]),_t.useMemo(()=>({hasProvider:f,delayRef:a,isInstantPhase:g}),[f,a,g])}function br(...e){return()=>{for(let t=0;t<e.length;t+=1){let r=e[t];r&&r()}}}var _f=["top","right","bottom","left"];var lo=Math.min,wr=Math.max,co=Math.round,Qn=Math.floor,Or=e=>({x:e,y:e}),jb={left:"right",right:"left",bottom:"top",top:"bottom"};function Gs(e,t,r){return wr(e,lo(t,r))}function xr(e,t){return typeof e=="function"?e(t):e}function Pt(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function Ys(e){return e==="x"?"y":"x"}function $n(e){return e==="y"?"height":"width"}function Gt(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function es(e){return Ys(Gt(e))}function Pf(e,t,r){r===void 0&&(r=!1);let o=Sr(e),n=es(e),s=$n(n),i=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Jn(i)),[i,Jn(i)]}function Of(e){let t=Jn(e);return[Ws(e),t,Ws(t)]}function Ws(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Ef=["left","right"],Tf=["right","left"],zb=["top","bottom"],Ub=["bottom","top"];function Hb(e,t,r){switch(e){case"top":case"bottom":return r?t?Tf:Ef:t?Ef:Tf;case"left":case"right":return t?zb:Ub;default:return[]}}function kf(e,t,r,o){let n=Sr(e),s=Hb(Pt(e),r==="start",o);return n&&(s=s.map(i=>i+"-"+n),t&&(s=s.concat(s.map(Ws)))),s}function Jn(e){let t=Pt(e);return jb[t]+e.slice(t.length)}function Wb(e){var t,r,o,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(o=e.bottom)!=null?o:0,left:(n=e.left)!=null?n:0}}function qs(e){return typeof e!="number"?Wb(e):{top:e,right:e,bottom:e,left:e}}function Fo(e){let{x:t,y:r,width:o,height:n}=e;return{width:o,height:n,top:r,left:t,right:t+o,bottom:r+n,x:t,y:r}}function qr(e,t,r=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!r||n.context?.open?[n]:[],...qr(e,n.id,r)])}function nn(e){return`data-base-ui-${e}`}var rr=h(ge(),1),If=h(io(),1);var Ff={style:{transition:"none"}};var Gb="data-base-ui-swipe-ignore",Yb="data-swipe-ignore",j_=`[${Gb}]`,z_=`[${Yb}]`;var Af={fallbackAxisSide:"end"};var Lf=h(Y(),1),qb=rr.createContext(null),Zb=()=>rr.useContext(qb),Xb=nn("portal");function Xa(e={}){let{ref:t,container:r,componentProps:o=pt,elementProps:n}=e,s=no(),a=Zb()?.portalNode,[u,l]=rr.useState(null),[c,f]=rr.useState(null),m=Te(x=>{x!==null&&f(x)}),g=rr.useRef(null);ye(()=>{if(r===null){g.current&&(g.current=null,f(null),l(null));return}if(s==null)return;let x=(r&&(Ds(r)?r:r.current))??a??document.body;if(x==null){g.current&&(g.current=null,f(null),l(null));return}g.current!==x&&(g.current=x,f(null),l(x))},[r,a,s]);let d=Ht("div",o,{ref:[t,m],props:[{id:s,[Xb]:""},n]});return{portalNode:c,portalSubtree:u&&d?If.createPortal(d,u):null}}var Ao=h(ge(),1);function Nf(){let e=new Map;return{emit(t,r){e.get(t)?.forEach(o=>o(r))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){e.get(t)?.delete(r)}}}var Kb=h(Y(),1),Jb=Ao.createContext(null),Qb=Ao.createContext(null),sn=()=>Ao.useContext(Jb)?.id||null,uo=e=>{let t=Ao.useContext(Qb);return e??t};var Yt=h(ge(),1);function $b(e,t){let r=null,o=null,n=!1;return{contextElement:e||void 0,getBoundingClientRect(){let s=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",u=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",l=s.width,c=s.height,f=s.x,m=s.y;return r==null&&t.x&&i&&(r=s.x-t.x),o==null&&t.y&&a&&(o=s.y-t.y),f-=r||0,m-=o||0,l=0,c=0,!n||u?(l=t.axis==="y"?s.width:0,c=t.axis==="x"?s.height:0,f=i&&t.x!=null?t.x:f,m=a&&t.y!=null?t.y:m):n&&!u&&(c=t.axis==="x"?s.height:c,l=t.axis==="y"?s.width:l),n=!0,{width:l,height:c,x:f,y:m,top:m,right:f+l,bottom:m+c,left:f}}}}function Df(e){return e!=null&&e.clientX!=null}function Ka(e,t={}){let{enabled:r=!0,axis:o="both"}=t,n="rootStore"in e?e.rootStore:e,s=n.useState("open"),i=n.useState("floatingElement"),a=n.useState("domReferenceElement"),u=n.context.dataRef,l=Yt.useRef(!1),c=Yt.useRef(null),[f,m]=Yt.useState(),[g,d]=Yt.useState([]),v=Te(R=>{n.set("positionReference",R)}),x=Te((R,A,T)=>{l.current||u.current.openEvent&&!Df(u.current.openEvent)||n.set("positionReference",$b(T??a,{x:R,y:A,axis:o,dataRef:u,pointerType:f}))}),C=Te(R=>{s?c.current||(x(R.clientX,R.clientY,R.currentTarget),d([])):x(R.clientX,R.clientY,R.currentTarget)}),w=Gr(f)?i:s;Yt.useEffect(()=>{if(!r){v(a);return}if(!w)return;function R(){c.current?.(),c.current=null}let A=it(i);function T(_){let P=Nt(_);Ze(i,P)?R():x(_.clientX,_.clientY)}return!u.current.openEvent||Df(u.current.openEvent)?c.current=Ye(A,"mousemove",T):v(a),R},[w,r,i,u,a,n,x,v,g]),Yt.useEffect(()=>()=>{n.set("positionReference",null)},[n]),Yt.useEffect(()=>{r&&!i&&(l.current=!1)},[r,i]),Yt.useEffect(()=>{!r&&s&&(l.current=!0)},[r,s]);let b=Yt.useMemo(()=>{function R(A){m(A.pointerType)}return{onPointerDown:R,onPointerEnter:R,onMouseMove:C,onMouseEnter:C}},[C]);return Yt.useMemo(()=>r?{reference:b,trigger:b}:{},[r,b])}var qt=h(ge(),1);function e0(){return!1}function t0(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Ja(e,t={}){let{enabled:r=!0,escapeKey:o=!0,outsidePress:n=!0,outsidePressEvent:s="sloppy",referencePress:i=e0,bubbles:a,externalTree:u}=t,l="rootStore"in e?e.rootStore:e,c=l.useState("open"),f=l.useState("floatingElement"),{dataRef:m}=l.context,g=uo(u),d=Te(typeof n=="function"?n:()=>!1),v=typeof n=="function"?d:n,x=v!==!1,C=Te(()=>s),{escapeKey:w,outsidePress:b}=t0(a),R=qt.useRef(!1),A=qt.useRef(!1),T=qt.useRef(!1),_=qt.useRef(!1),P=qt.useRef(""),N=qt.useRef(null),q=vr(),H=vr(),S=Te(()=>{H.clear(),m.current.insideReactTree=!1}),I=Te(F=>{let Z=m.current.floatingContext?.nodeId;return(g?qr(g.nodesRef.current,Z):[]).some(we=>we.context?.open&&!we.context.dataRef.current[F])}),W=Te(F=>Us(F,l.select("floatingElement"))||Us(F,l.select("domReferenceElement"))),O=Te(F=>{i()&&l.setOpen(!1,je(_e.triggerPress,F.nativeEvent))}),D=Te(F=>{if(!c||!r||!o||F.key!=="Escape"||_.current||!w&&I("__escapeKeyBubbles"))return;let Z=yf(F)?F.nativeEvent:F,se=je(_e.escapeKey,Z);l.setOpen(!1,se),se.isCanceled||F.preventDefault(),!w&&!se.isPropagationAllowed&&F.stopPropagation()}),J=Te(()=>{m.current.insideReactTree=!0,H.start(0,S)}),M=Te(F=>{if(!c||!r||F.button!==0)return;let Z=Nt(F.nativeEvent);Ze(l.select("floatingElement"),Z)&&(R.current||(R.current=!0,A.current=!1))}),E=Te(F=>{!c||!r||(F.defaultPrevented||F.nativeEvent.defaultPrevented)&&R.current&&(A.current=!0)});qt.useEffect(()=>{if(!c||!r)return;m.current.__escapeKeyBubbles=w,m.current.__outsidePressBubbles=b;let F=new tr,Z=new tr;function se(){F.clear(),_.current=!0}function we(){F.start(Wr.engine.webkit?5:0,()=>{_.current=!1})}function ie(){T.current=!0,Z.start(0,()=>{T.current=!1})}function ve(){R.current=!1,A.current=!1}function Ee(){let V=P.current,re=V==="pen"||!V?"mouse":V,Ne=C(),He=typeof Ne=="function"?Ne():Ne;return typeof He=="string"?He:He[re]}function ee(V){let re=Ee();return re==="intentional"&&V.type!=="click"||re==="sloppy"&&V.type==="click"}function Fe(V){let re=m.current.floatingContext?.nodeId,Ne=g&&qr(g.nodesRef.current,re).some(He=>Us(V,He.context?.elements.floating));return W(V)||Ne}function Ae(V){if(ee(V)){V.type!=="click"&&!W(V)&&(Z.clear(),T.current=!1),S();return}if(m.current.insideReactTree){S();return}let re=Nt(V),Ne=`[${nn("inert")}]`,He=Se(re)?re.getRootNode():null,ot=Array.from((rn(He)?He:xt(l.select("floatingElement"))).querySelectorAll(Ne)),ut=l.context.triggerElements;if(re&&(ut.hasElement(re)||ut.hasMatchingElement(We=>Ze(We,re))))return;let ze=Se(re)?re:null;for(;ze&&!Pr(ze);){let We=Tr(ze);if(Pr(We)||!Se(We))break;ze=We}if(!(ot.length&&Se(re)&&!bf(re)&&!Ze(re,l.select("floatingElement"))&&ot.every(We=>!Ze(ze,We)))){if(Et(re)&&!("touches"in V)){let We=Pr(re),nt=Lt(re),be=/auto|scroll/,Rr=We||be.test(nt.overflowX),gr=We||be.test(nt.overflowY),$e=Rr&&re.clientWidth>0&&re.scrollWidth>re.clientWidth,jr=gr&&re.clientHeight>0&&re.scrollHeight>re.clientHeight,Ct=nt.direction==="rtl",Le=jr&&(Ct?V.offsetX<=re.offsetWidth-re.clientWidth:V.offsetX>re.clientWidth),qe=$e&&V.offsetY>re.clientHeight;if(Le||qe)return}if(!Fe(V)){if(Ee()==="intentional"&&T.current){Z.clear(),T.current=!1;return}typeof v=="function"&&!v(V)||I("__outsidePressBubbles")||(l.setOpen(!1,je(_e.outsidePress,V)),S())}}}function Oe(V){Ee()!=="sloppy"||V.pointerType==="touch"||!l.select("open")||!r||W(V)||Ae(V)}function Ue(V){if(Ee()!=="sloppy"||!l.select("open")||!r||W(V))return;let re=V.touches[0];re&&(N.current={startTime:Date.now(),startX:re.clientX,startY:re.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},q.start(1e3,()=>{N.current&&(N.current.dismissOnTouchEnd=!1,N.current.dismissOnMouseDown=!1)}))}function G(V,re){let Ne=Nt(V);if(!Ne)return;let He=Ye(Ne,V.type,()=>{re(V),He()})}function z(V){P.current="touch",G(V,Ue)}function X(V){q.clear(),V.type==="pointerdown"&&(P.current=V.pointerType),!(V.type==="mousedown"&&N.current&&!N.current.dismissOnMouseDown)&&G(V,re=>{re.type==="pointerdown"?Oe(re):Ae(re)})}function U(V){if(!R.current)return;let re=A.current;if(ve(),Ee()==="intentional"){if(V.type==="pointercancel"){re&&ie();return}if(!Fe(V)){if(re){ie();return}typeof v=="function"&&!v(V)||(Z.clear(),T.current=!0,S())}}}function K(V){if(Ee()!=="sloppy"||!N.current||W(V))return;let re=V.touches[0];if(!re)return;let Ne=Math.abs(re.clientX-N.current.startX),He=Math.abs(re.clientY-N.current.startY),ot=Math.sqrt(Ne*Ne+He*He);ot>5&&(N.current.dismissOnTouchEnd=!0),ot>10&&(Ae(V),q.clear(),N.current=null)}function fe(V){G(V,K)}function ue(V){Ee()!=="sloppy"||!N.current||W(V)||(N.current.dismissOnTouchEnd&&Ae(V),q.clear(),N.current=null)}function de(V){G(V,ue)}let pe=xt(f),me=br(o&&br(Ye(pe,"keydown",D),Ye(pe,"compositionstart",se),Ye(pe,"compositionend",we)),x&&br(Ye(pe,"click",X,!0),Ye(pe,"pointerdown",X,!0),Ye(pe,"pointerup",U,!0),Ye(pe,"pointercancel",U,!0),Ye(pe,"mousedown",X,!0),Ye(pe,"mouseup",U,!0),Ye(pe,"touchstart",z,!0),Ye(pe,"touchmove",fe,!0),Ye(pe,"touchend",de,!0)));return()=>{me(),F.clear(),Z.clear(),ve(),T.current=!1}},[m,f,o,x,v,c,r,w,b,D,S,C,I,W,g,l,q]),qt.useEffect(S,[v,S]);let L=qt.useMemo(()=>({onKeyDown:D,onPointerDown:O,onClick:O}),[D,O]),$=qt.useMemo(()=>({onKeyDown:D,onPointerDown:E,onMouseDown:E,onClickCapture:J,onMouseDownCapture(F){J(),M(F)},onPointerDownCapture(F){J(),M(F)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[D,J,M,E]);return qt.useMemo(()=>r?{reference:L,floating:$,trigger:L}:{},[r,L,$])}var Ot=h(ge(),1);function Mf(e,t,r){let{reference:o,floating:n}=e,s=Gt(t),i=es(t),a=$n(i),u=Pt(t),l=s==="y",c=o.x+o.width/2-n.width/2,f=o.y+o.height/2-n.height/2,m=o[a]/2-n[a]/2,g;switch(u){case"top":g={x:c,y:o.y-n.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:f};break;case"left":g={x:o.x-n.width,y:f};break;default:g={x:o.x,y:o.y}}let d=Sr(t);return d&&(g[i]+=m*(d==="end"?1:-1)*(r&&l?-1:1)),g}async function jf(e,t){var r;t===void 0&&(t={});let{x:o,y:n,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:m=!1,padding:g=0}=xr(t,e),d=qs(g),x=a[m?f==="floating"?"reference":"floating":f],C=Fo(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:c,strategy:u})),w=f==="floating"?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),R=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},A=Fo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:u}):w);return{top:(C.top-A.top+d.top)/R.y,bottom:(A.bottom-C.bottom+d.bottom)/R.y,left:(C.left-A.left+d.left)/R.x,right:(A.right-C.right+d.right)/R.x}}var r0=50,zf=async(e,t,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:s=[],platform:i}=r,a=i.detectOverflow?i:{...i,detectOverflow:jf},u=await(i.isRTL==null?void 0:i.isRTL(t)),l=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:c,y:f}=Mf(l,o,u),m=o,g=0,d={};for(let v=0;v<s.length;v++){let x=s[v];if(!x)continue;let{name:C,fn:w}=x,{x:b,y:R,data:A,reset:T}=await w({x:c,y:f,initialPlacement:o,placement:m,strategy:n,middlewareData:d,rects:l,platform:a,elements:{reference:e,floating:t}});c=b??c,f=R??f,d[C]={...d[C],...A},T&&g<r0&&(g++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(l=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):T.rects),{x:c,y:f}=Mf(l,m,u)),v=-1)}return{x:c,y:f,placement:m,strategy:n,middlewareData:d}};var Uf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;let{placement:n,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:v=!0,...x}=xr(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};let C=Pt(n),w=Gt(a),b=Pt(a)===a,R=await(u.isRTL==null?void 0:u.isRTL(l.floating)),A=m||(b||!v?[Jn(a)]:Of(a)),T=d!=="none";!m&&T&&A.push(...kf(a,v,d,R));let _=[a,...A],P=await u.detectOverflow(t,x),N=[],q=((o=s.flip)==null?void 0:o.overflows)||[];if(c&&N.push(P[C]),f){let W=Pf(n,i,R);N.push(P[W[0]],P[W[1]])}if(q=[...q,{placement:n,overflows:N}],!N.every(W=>W<=0)){var H,S;let W=(((H=s.flip)==null?void 0:H.index)||0)+1,O=_[W];if(O&&(!(f==="alignment"?w!==Gt(O):!1)||q.every(M=>Gt(M.placement)===w?M.overflows[0]>0:!0)))return{data:{index:W,overflows:q},reset:{placement:O}};let D=(S=q.filter(J=>J.overflows[0]<=0).sort((J,M)=>J.overflows[1]-M.overflows[1])[0])==null?void 0:S.placement;if(!D)switch(g){case"bestFit":{var I;let J=(I=q.filter(M=>{if(T){let E=Gt(M.placement);return E===w||E==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(E=>E>0).reduce((E,L)=>E+L,0)]).sort((M,E)=>M[1]-E[1])[0])==null?void 0:I[0];J&&(D=J);break}case"initialPlacement":D=a;break}if(n!==D)return{reset:{placement:D}}}return{}}}};function Vf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bf(e){return _f.some(t=>e[t]>=0)}var Hf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:o}=t,{strategy:n="referenceHidden",...s}=xr(e,t);switch(n){case"referenceHidden":{let i=await o.detectOverflow(t,{...s,elementContext:"reference"}),a=Vf(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Bf(a)}}}case"escaped":{let i=await o.detectOverflow(t,{...s,altBoundary:!0}),a=Vf(i,r.floating);return{data:{escapedOffsets:a,escaped:Bf(a)}}}default:return{}}}}};var Wf=new Set(["left","top"]);async function o0(e,t){let{placement:r,platform:o,elements:n}=e,s=await(o.isRTL==null?void 0:o.isRTL(n.floating)),i=Pt(r),a=Sr(r),u=Gt(r)==="y",l=Wf.has(i)?-1:1,c=s&&u?-1:1,f=xr(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof d=="number"&&(g=a==="end"?d*-1:d),u?{x:g*c,y:m*l}:{x:m*l,y:g*c}}var Gf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;let{x:n,y:s,placement:i,middlewareData:a}=t,u=await o0(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:n+u.x,y:s+u.y,data:{...u,placement:i}}}}},Yf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:n,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:w=>{let{x:b,y:R}=w;return{x:b,y:R}}},...l}=xr(e,t),c={x:r,y:o},f=await s.detectOverflow(t,l),m=Gt(n),g=Ys(m),d=c[g],v=c[m],x=(w,b)=>Gs(b+f[w==="y"?"top":"left"],b,b-f[w==="y"?"bottom":"right"]);i&&(d=x(g,d)),a&&(v=x(m,v));let C=u.fn({...t,[g]:d,[m]:v});return{...C,data:{x:C.x-r,y:C.y-o,enabled:{[g]:i,[m]:a}}}}}},qf=function(e){return e===void 0&&(e={}),{options:e,fn(t){var r,o;let{x:n,y:s,placement:i,rects:a,middlewareData:u}=t,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=xr(e,t),m={x:n,y:s},g=Gt(i),d=Ys(g),v=m[d],x=m[g],C=xr(l,t),w=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:(r=C.mainAxis)!=null?r:0,crossAxis:(o=C.crossAxis)!=null?o:0};if(c){let A=d==="y"?"height":"width",T=a.reference[d]-a.floating[A]+w.mainAxis,_=a.reference[d]+a.reference[A]-w.mainAxis;v<T?v=T:v>_&&(v=_)}if(f){var b,R;let A=d==="y"?"width":"height",T=Wf.has(Pt(i)),_=a.reference[g]-a.floating[A]+(T&&((b=u.offset)==null?void 0:b[g])||0)+(T?0:w.crossAxis),P=a.reference[g]+a.reference[A]+(T?0:((R=u.offset)==null?void 0:R[g])||0)-(T?w.crossAxis:0);x<_?x=_:x>P&&(x=P)}return{[d]:v,[g]:x}}}},Zf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:r,rects:o,platform:n,elements:s}=t,{apply:i=()=>{},...a}=xr(e,t),u=await n.detectOverflow(t,a),l=Pt(r),c=Sr(r),f=Gt(r)==="y",{width:m,height:g}=o.floating,d,v;l==="top"||l==="bottom"?(d=l,v=c===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(v=l,d=c==="end"?"top":"bottom");let x=g-u.top-u.bottom,C=m-u.left-u.right,w=lo(g-u[d],x),b=lo(m-u[v],C),R=t.middlewareData.shift,A=!R,T=w,_=b;R!=null&&R.enabled.x&&(_=C),R!=null&&R.enabled.y&&(T=x),A&&!c&&(f?_=m-2*wr(u.left,u.right):T=g-2*wr(u.top,u.bottom)),await i({...t,availableWidth:_,availableHeight:T});let P=await n.getDimensions(s.floating);return m!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function Jf(e){let t=Lt(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Et(e),s=n?e.offsetWidth:r,i=n?e.offsetHeight:o,a=co(r)!==s||co(o)!==i;return a&&(r=s,o=i),{width:r,height:o,$:a}}function $a(e){return Se(e)?e:e.contextElement}function an(e){let t=$a(e);if(!Et(t))return Or(1);let r=t.getBoundingClientRect(),{width:o,height:n,$:s}=Jf(t),i=(s?co(r.width):r.width)/o,a=(s?co(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}var n0=Or(0);function Qf(e){let t=it(e);return!Vs()||!t.visualViewport?n0:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function s0(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===it(e)}function Io(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=$a(e),i=Or(1);t&&(o?Se(o)&&(i=an(o)):i=an(e));let a=s0(s,r,o)?Qf(s):Or(0),u=(n.left+a.x)/i.x,l=(n.top+a.y)/i.y,c=n.width/i.x,f=n.height/i.y;if(s&&o){let m=it(s),g=Se(o)?it(o):o,d=m,v=Bs(d);for(;v&&g!==d;){let x=an(v),C=v.getBoundingClientRect(),w=Lt(v),b=C.left+(v.clientLeft+parseFloat(w.paddingLeft))*x.x,R=C.top+(v.clientTop+parseFloat(w.paddingTop))*x.y;u*=x.x,l*=x.y,c*=x.x,f*=x.y,u+=b,l+=R,d=it(v),v=Bs(d)}}return Fo({width:c,height:f,x:u,y:l})}function Zs(e,t){let r=Xn(e).scrollLeft;return t?t.left+r:Io(_r(e)).left+r}function $f(e,t){let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Zs(e,r),n=r.top+t.scrollTop;return{x:o,y:n}}function i0(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e,s=n==="fixed",i=_r(o),a=t?Zn(t.floating):!1;if(o===i||a&&s)return r;let u={scrollLeft:0,scrollTop:0},l=Or(1),c=Or(0),f=Et(o);if((f||!s)&&((Po(o)!=="body"||qn(i))&&(u=Xn(o)),f)){let g=Io(o);l=an(o),c.x=g.x+o.clientLeft,c.y=g.y+o.clientTop}let m=i&&!f&&!s?$f(i,u):Or(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+c.x+m.x,y:r.y*l.y-u.scrollTop*l.y+c.y+m.y}}function a0(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function l0(e){let t=Xn(e),r=e.ownerDocument.body,o=wr(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=wr(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+Zs(e),i=-t.scrollTop;return Lt(r).direction==="rtl"&&(s+=wr(e.clientWidth,r.clientWidth)-o),{width:o,height:n,x:s,y:i}}var c0=25;function u0(e,t,r){r===void 0&&(r="viewport");let o=r==="layoutViewport",n=it(e),s=_r(e),i=n.visualViewport,a=s.clientWidth,u=s.clientHeight,l=0,c=0;if(i){let m=!Vs()||t==="fixed";o?m||(l=-i.offsetLeft,c=-i.offsetTop):(a=i.width,u=i.height,m&&(l=i.offsetLeft,c=i.offsetTop))}if(Zs(s)<=0){let m=s.ownerDocument,g=m.body,d=getComputedStyle(g),v=m.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,x=Math.abs(s.clientWidth-g.clientWidth-v),C=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;C<=c0&&(a-=C)}return{width:a,height:u,x:l,y:c}}function f0(e,t){let r=Io(e,!0,t==="fixed"),o=r.top+e.clientTop,n=r.left+e.clientLeft,s=an(e),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=n*s.x,l=o*s.y;return{width:i,height:a,x:u,y:l}}function Xf(e,t,r){let o;if(t==="viewport"||t==="layoutViewport")o=u0(e,r,t);else if(t==="document")o=l0(_r(e));else if(Se(t))o=f0(t,r);else{let n=Qf(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Fo(o)}function d0(e,t){let r=t.get(e);if(r)return r;let o=so(e,[],!1).filter(a=>Se(a)&&Po(a)!=="body"),n=null,s=Lt(e).position==="fixed",i=s?Tr(e):e;for(;Se(i)&&!Pr(i);){let a=Lt(i),u=Ms(i),l=n?n.position:s?"fixed":"";!u&&(l==="fixed"||l==="absolute"&&a.position==="static")?o=o.filter(f=>f!==i):n=a,i=Tr(i)}return t.set(e,o),o}function p0(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e,i=[...r==="clippingAncestors"?Zn(t)?[]:d0(t,this._c):[].concat(r),o],a=Xf(t,i[0],n),u=a.top,l=a.right,c=a.bottom,f=a.left;for(let m=1;m<i.length;m++){let g=Xf(t,i[m],n);u=wr(g.top,u),l=lo(g.right,l),c=lo(g.bottom,c),f=wr(g.left,f)}return{width:l-f,height:c-u,x:f,y:u}}function m0(e){let{width:t,height:r}=Jf(e);return{width:t,height:r}}function h0(e,t,r){let o=Et(t),n=_r(t),s=r==="fixed",i=Io(e,!0,s,t),a={scrollLeft:0,scrollTop:0},u=Or(0);if((o||!s)&&((Po(t)!=="body"||qn(n))&&(a=Xn(t)),o)){let m=Io(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}!o&&n&&(u.x=Zs(n));let l=n&&!o&&!s?$f(n,a):Or(0),c=i.left+a.scrollLeft-u.x-l.x,f=i.top+a.scrollTop-u.y-l.y;return{x:c,y:f,width:i.width,height:i.height}}function Qa(e){return Lt(e).position==="static"}function Kf(e,t){if(!Et(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _r(e)===r&&(r=r.ownerDocument.body),r}function ed(e,t){let r=it(e);if(Zn(e))return r;if(!Et(e)){let n=Tr(e);for(;n&&!Pr(n);){if(Se(n)&&!Qa(n))return n;n=Tr(n)}return r}let o=Kf(e,t);for(;o&&of(o)&&Qa(o);)o=Kf(o,t);return o&&Pr(o)&&Qa(o)&&!Ms(o)?r:o||nf(e)||r}var g0=async function(e){let t=this.getOffsetParent||ed,r=this.getDimensions,o=await r(e.floating);return{reference:h0(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function y0(e){return Lt(e).direction==="rtl"}var el={convertOffsetParentRelativeRectToViewportRelativeRect:i0,getDocumentElement:_r,getClippingRect:p0,getOffsetParent:ed,getElementRects:g0,getClientRects:a0,getDimensions:m0,getScale:an,isElement:Se,isRTL:y0};function td(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function v0(e,t,r){let o=null,n,s=_r(e);function i(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function a(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),i();let m=e.getBoundingClientRect(),{left:g,top:d,width:v,height:x}=m;if(c||t(),!v||!x)return;let C=Qn(d),w=Qn(s.clientWidth-(g+v)),b=Qn(s.clientHeight-(d+x)),R=Qn(g),T={rootMargin:-C+"px "+-w+"px "+-b+"px "+-R+"px",threshold:wr(0,lo(1,f))||1},_=!0;function P(N){let q=N[0].intersectionRatio;if(!td(m,e.getBoundingClientRect()))return a();if(q!==f){if(!_)return a();q?a(!1,q):n=setTimeout(()=>{a(!1,1e-7)},1e3)}_=!1}try{o=new IntersectionObserver(P,{...T,root:s.ownerDocument})}catch{o=new IntersectionObserver(P,T)}o.observe(e)}let u=it(e),l=()=>a(r);return u.addEventListener("resize",l),a(!0),()=>{u.removeEventListener("resize",l),i()}}function ts(e,t,r,o){o===void 0&&(o={});let{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,l=$a(e),c=n||s?[...l?so(l):[],...t?so(t):[]]:[];c.forEach(C=>{n&&C.addEventListener("scroll",r),s&&C.addEventListener("resize",r)});let f=l&&a?v0(l,r,s):null,m=-1,g=null;i&&(g=new ResizeObserver(C=>{let[w]=C;w&&w.target===l&&g&&t&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),r()}),l&&!u&&g.observe(l),t&&g.observe(t));let d,v=u?Io(e):null;u&&x();function x(){let C=Io(e);v&&!td(v,C)&&r(),v=C,d=requestAnimationFrame(x)}return r(),()=>{var C;c.forEach(w=>{n&&w.removeEventListener("scroll",r),s&&w.removeEventListener("resize",r)}),f?.(),(C=g)==null||C.disconnect(),g=null,u&&cancelAnimationFrame(d)}}var rd=Gf;var od=Yf,nd=Uf,sd=Zf,id=Hf;var ad=qf,Xs=(e,t,r)=>{let o=new Map,n=r??{},s={...el,...n.platform,_c:o};return zf(e,t,{...n,platform:s})};var yt=h(ge(),1),cd=h(ge(),1),ud=h(io(),1),w0=typeof document<"u",x0=function(){},Ks=w0?cd.useLayoutEffect:x0;function Js(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,o,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!Js(e[o],t[o]))return!1;return!0}if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,n[o]))return!1;for(o=r;o--!==0;){let s=n[o];if(!(s==="_owner"&&e.$$typeof)&&!Js(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function fd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ld(e,t){let r=fd(e);return Math.round(t*r)/r}function tl(e){let t=yt.useRef(e);return Ks(()=>{t.current=e}),t}function dd(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:n,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[c,f]=yt.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=yt.useState(o);Js(m,o)||g(o);let[d,v]=yt.useState(null),[x,C]=yt.useState(null),w=yt.useCallback(M=>{M!==T.current&&(T.current=M,v(M))},[]),b=yt.useCallback(M=>{M!==_.current&&(_.current=M,C(M))},[]),R=s||d,A=i||x,T=yt.useRef(null),_=yt.useRef(null),P=yt.useRef(c),N=u!=null,q=tl(u),H=tl(n),S=tl(l),I=yt.useCallback(()=>{if(!T.current||!_.current)return;let M={placement:t,strategy:r,middleware:m};H.current&&(M.platform=H.current),Xs(T.current,_.current,M).then(E=>{let L={...E,isPositioned:S.current!==!1};W.current&&!Js(P.current,L)&&(P.current=L,ud.flushSync(()=>{f(L)}))})},[m,t,r,H,S]);Ks(()=>{l===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[l]);let W=yt.useRef(!1);Ks(()=>(W.current=!0,()=>{W.current=!1}),[]),Ks(()=>{if(R&&(T.current=R),A&&(_.current=A),R&&A){if(q.current)return q.current(R,A,I);I()}},[R,A,I,q,N]);let O=yt.useMemo(()=>({reference:T,floating:_,setReference:w,setFloating:b}),[w,b]),D=yt.useMemo(()=>({reference:R,floating:A}),[R,A]),J=yt.useMemo(()=>{let M={position:r,left:0,top:0};if(!D.floating)return M;let E=ld(D.floating,c.x),L=ld(D.floating,c.y);return a?{...M,transform:"translate("+E+"px, "+L+"px)",...fd(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:E,top:L}},[r,a,D.floating,c.x,c.y]);return yt.useMemo(()=>({...c,update:I,refs:O,elements:D,floatingStyles:J}),[c,I,O,D,J])}var rl=(e,t)=>{let r=rd(e);return{name:r.name,fn:r.fn,options:[e,t]}},ol=(e,t)=>{let r=od(e);return{name:r.name,fn:r.fn,options:[e,t]}},nl=(e,t)=>({fn:ad(e).fn,options:[e,t]}),sl=(e,t)=>{let r=nd(e);return{name:r.name,fn:r.fn,options:[e,t]}},il=(e,t)=>{let r=sd(e);return{name:r.name,fn:r.fn,options:[e,t]}};var al=(e,t)=>{let r=id(e);return{name:r.name,fn:r.fn,options:[e,t]}};var un=h(ge(),1),Pd=h(io(),1);var Td=h(ge(),1);var De=(e,t,r,o,n,s,...i)=>{if(i.length>0)throw new Error(Ut(1));let a;if(e&&t&&r&&o&&n&&s)a=(u,l,c,f)=>{let m=e(u,l,c,f),g=t(u,l,c,f),d=r(u,l,c,f),v=o(u,l,c,f),x=n(u,l,c,f);return s(m,g,d,v,x,l,c,f)};else if(e&&t&&r&&o&&n)a=(u,l,c,f)=>{let m=e(u,l,c,f),g=t(u,l,c,f),d=r(u,l,c,f),v=o(u,l,c,f);return n(m,g,d,v,l,c,f)};else if(e&&t&&r&&o)a=(u,l,c,f)=>{let m=e(u,l,c,f),g=t(u,l,c,f),d=r(u,l,c,f);return o(m,g,d,l,c,f)};else if(e&&t&&r)a=(u,l,c,f)=>{let m=e(u,l,c,f),g=t(u,l,c,f);return r(m,g,l,c,f)};else if(e&&t)a=(u,l,c,f)=>{let m=e(u,l,c,f);return t(m,l,c,f)};else if(e)a=e;else throw new Error("Missing arguments");return a};var Rd=h(ge(),1),pl=h(cl(),1),Ed=h(bd(),1);var wd=h(ge(),1);var ul=[],fl;function xd(){return fl}function Sd(e){ul.push(e)}function dl(e){let t=(r,o)=>{let n=Rt(B0).current,s;try{fl=n;for(let i of ul)i.before(n);s=e(r,o);for(let i of ul)i.after(n);n.didInitialize=!0}finally{fl=void 0}return s};return t.displayName=e.displayName||e.name,t}function Cd(e){return wd.forwardRef(dl(e))}function B0(){return{didInitialize:!1}}var j0=$o(19),z0=j0?H0:W0;function $s(e,t,r,o,n){return z0(e,t,r,o,n)}function U0(e,t,r,o,n){let s=Rd.useCallback(()=>t(e.getSnapshot(),r,o,n),[e,t,r,o,n]);return(0,pl.useSyncExternalStore)(e.subscribe,s,s)}Sd({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let r=0;r<e.syncHooks.length;r+=1){let o=e.syncHooks[r],n=o.selector(o.store.state,o.a1,o.a2,o.a3);Object.is(o.value,n)||(t=!0,o.value=n)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let r=new Set;for(let n of e.syncHooks)r.add(n.store);let o=[];for(let n of r)o.push(n.subscribe(t));return()=>{for(let n of o)n()}}),(0,pl.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function H0(e,t,r,o,n){let s=xd();if(!s)return U0(e,t,r,o,n);let i=s.syncIndex;s.syncIndex+=1;let a;return s.didInitialize?(a=s.syncHooks[i],(a.store!==e||a.selector!==t||!Object.is(a.a1,r)||!Object.is(a.a2,o)||!Object.is(a.a3,n))&&(a.store!==e&&(s.didChangeStore=!0),a.store=e,a.selector=t,a.a1=r,a.a2=o,a.a3=n,a.value=t(e.getSnapshot(),r,o,n))):(a={store:e,selector:t,a1:r,a2:o,a3:n,value:t(e.getSnapshot(),r,o,n)},s.syncHooks.push(a)),a.value}function W0(e,t,r,o,n){return(0,Ed.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,r,o,n))}var ei=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let r=this.updateTick;for(let o of this.listeners){if(r!==this.updateTick)return;o(t)}}update(t){for(let r in t)if(!Object.is(this.state[r],t[r])){this.setState({...this.state,...t});return}}set(t,r){Object.is(this.state[t],r)||this.setState({...this.state,[t]:r})}notifyAll(){let t={...this.state};this.setState(t)}use(t,r,o,n){return $s(this,t,r,o,n)}};var Lo=h(ge(),1);var cn=class extends ei{constructor(t,r={},o){super(t),this.context=r,this.selectors=o}useSyncedValue(t,r){Lo.useDebugValue(t);let o=this;ye(()=>{o.state[t]!==r&&o.set(t,r)},[o,t,r])}useSyncedValueWithCleanup(t,r){let o=this;ye(()=>(o.state[t]!==r&&o.set(t,r),()=>{o.set(t,void 0)}),[o,t,r])}useSyncedValues(t){let r=this,o=Object.values(t);ye(()=>{r.update(t)},[r,...o])}useControlledProp(t,r){Lo.useDebugValue(t);let o=this,n=r!==void 0;ye(()=>{n&&!Object.is(o.state[t],r)&&o.setState({...o.state,[t]:r})},[o,t,r,n])}select(t,r,o,n){let s=this.selectors[t];return s(this.state,r,o,n)}useState(t,r,o,n){return Lo.useDebugValue(t),$s(this,this.selectors[t],r,o,n)}useContextCallback(t,r){Lo.useDebugValue(t);let o=Te(r??oo);this.context[t]=o}useStateSetter(t){let r=Lo.useRef(void 0);return r.current===void 0&&(r.current=o=>{this.set(t,o)}),r.current}observe(t,r){let o;typeof t=="function"?o=t:o=this.selectors[t];let n=o(this.state);return r(n,n,this),this.subscribe(s=>{let i=o(s);if(!Object.is(n,i)){let a=n;n=i,r(i,a,this)}})}};var G0={open:De(e=>e.open),transitionStatus:De(e=>e.transitionStatus),domReferenceElement:De(e=>e.domReferenceElement),referenceElement:De(e=>e.positionReference??e.referenceElement),floatingElement:De(e=>e.floatingElement),floatingId:De(e=>e.floatingId)},kr=class extends cn{constructor(t){let{syncOnly:r,nested:o,onOpenChange:n,triggerElements:s,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:Nf(),nested:o,triggerElements:s},G0),this.syncOnly=r}syncOpenEvent=(t,r)=>{(!t||!this.state.open||r!=null&&vf(r))&&(this.context.dataRef.current.openEvent=t?r:void 0)};dispatchOpenChange=(t,r)=>{this.syncOpenEvent(t,r.event);let o={open:t,reason:r.reason,nativeEvent:r.event,nested:this.context.nested,triggerElement:r.trigger};this.context.events.emit("openchange",o)};setOpen=(t,r)=>{if(this.syncOnly){this.context.onOpenChange?.(t,r);return}this.dispatchOpenChange(t,r),this.context.onOpenChange?.(t,r)}};function _d(e){let{popupStore:t,treatPopupAsFloatingElement:r=!1,floatingRootContext:o,floatingId:n,nested:s,onOpenChange:i}=e,a=t.useState("open"),u=t.useState("activeTriggerElement"),l=t.useState(r?"popupElement":"positionerElement"),c=t.context.triggerElements,f=i,m=Td.useRef(null);o===void 0&&m.current===null&&(m.current=new kr({open:a,transitionStatus:void 0,referenceElement:u,floatingElement:l,triggerElements:c,onOpenChange:f,floatingId:n,syncOnly:!0,nested:s}));let g=o??m.current;return t.useSyncedValue("floatingId",n),ye(()=>{let d={open:a,floatingId:n,referenceElement:u,floatingElement:l};Se(u)&&(d.domReferenceElement=u),g.state.positionReference===g.state.referenceElement&&(d.positionReference=u),g.update(d)},[a,n,u,l,g]),g.context.onOpenChange=f,g.context.nested=s,g}var Od={tabIndex:-1,[Ha]:""};function kd(e,t,r=!1){let o=no(),n=sn()!=null,s=un.useRef(null);e===void 0&&s.current===null&&(s.current=t(o,n));let i=e??s.current;return _d({popupStore:i,treatPopupAsFloatingElement:r,floatingRootContext:i.state.floatingRootContext,floatingId:o,nested:n,onOpenChange:i.setOpen}),{store:i,internalStore:s.current}}function Y0(e,t){let r=un.useRef(null),o=un.useRef(null);return un.useCallback(n=>{if(e===void 0)return;let s=!1;if(r.current!==null){let i=r.current,a=o.current,u=t.context.triggerElements.getById(i);a&&u===a&&(t.context.triggerElements.delete(i),s=!0),r.current=null,o.current=null}if(n!==null&&(r.current=e,o.current=n,t.context.triggerElements.add(e,n),s=!0),s){let i=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==i&&t.set("triggerCount",i)}},[t,e])}function q0(e,t,r,o=!1){t?e.preventUnmountingOnClose=!1:o&&(e.preventUnmountingOnClose=!0);let n=r?.id??null;(n||t)&&(e.activeTriggerId=n,e.activeTriggerElement=r??null)}function Z0(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Fd(e,t,r,o={}){let n=r.reason,s=n===_e.triggerHover,i=t&&n===_e.triggerFocus,a=!t&&(n===_e.triggerPress||n===_e.escapeKey),u=Z0(r);if(e.context.onOpenChange?.(t,r),r.isCanceled)return;o.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,r);let l=()=>{let c={...o.extraState,open:t};i?c.instantType="focus":a?c.instantType="dismiss":s&&(c.instantType=void 0),q0(c,t,r.trigger,u()),e.update(c)};s?Pd.flushSync(l):l()}function Ad(e,t,r,o){df(()=>{t===void 0&&e.state.open===!1&&r&&(e.state={...e.state,open:!0,activeTriggerId:o,preventUnmountingOnClose:!1})})}function Id(e,t,r,o){let n=r.useState("isMountedByTrigger",e),s=Y0(e,r),i=Te(a=>{if(s(a),!a)return;let u=r.select("open"),l=r.select("activeTriggerId");if(l===e){r.update({activeTriggerElement:a,...u?o:null});return}l==null&&u&&r.update({activeTriggerId:e,activeTriggerElement:a,...o})});return ye(()=>{n&&r.update({activeTriggerElement:t.current,...o})},[n,r,t,...Object.values(o)]),{registerTrigger:i,isMountedByThisTrigger:n}}function Ld(e,t={}){let{closeOnActiveTriggerUnmount:r=!1}=t,o=e.useState("open"),n=e.useState("triggerCount");ye(()=>{if(!o){e.state.triggerCount!==0&&e.set("triggerCount",0);return}let s=e.context.triggerElements.size,i={};e.state.triggerCount!==s&&(i.triggerCount=s);let a=e.select("activeTriggerId"),u=null;if(a){let l=e.context.triggerElements.getById(a);l?l!==e.state.activeTriggerElement&&(i.activeTriggerElement=l):u=a}if(!u&&!a&&s===1){let l=e.context.triggerElements.entries().next();if(!l.done){let[c,f]=l.value;i.activeTriggerId=c,i.activeTriggerElement=f}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),u&&r&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===u&&!e.context.triggerElements.getById(u)){let l=je(_e.none);e.setOpen(!1,l),l.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,n,r])}function Nd(e,t,r){let{mounted:o,setMounted:n,transitionStatus:s}=tf(e),i=t.useState("preventUnmountingOnClose"),a=e?!1:i;t.useSyncedValues({mounted:o,transitionStatus:s,preventUnmountingOnClose:a});let u=Te(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),r?.(),t.context.onOpenChangeComplete?.(!1)});return js({enabled:o&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:s}}function Dd(e,t){e.useSyncedValues(t),ye(()=>()=>{e.update({activeTriggerProps:pt,inactiveTriggerProps:pt,popupProps:pt})},[e])}var fo=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,r){let o=this.idMap.get(t);o!==r&&(o!==void 0&&this.elementsSet.delete(o),this.elementsSet.add(r),this.idMap.set(t,r))}delete(t){let r=this.idMap.get(t);r&&(this.elementsSet.delete(r),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(let r of this.elementsSet)if(t(r))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Md(){return new kr({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new fo,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Bd(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Md(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:pt,inactiveTriggerProps:pt,popupProps:pt}}function jd(e,t,r=!1){return new kr({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:r,onOpenChange:void 0})}var rs=De(e=>e.triggerIdProp??e.activeTriggerId),ml=De(e=>e.openProp??e.open),Vd=De(e=>(e.popupElement?.id??e.floatingId)||void 0);function zd(e,t){return t!==void 0&&ml(e)&&rs(e)===t}function X0(e,t){return zd(e,t)?!0:t!==void 0&&ml(e)&&rs(e)==null&&e.triggerCount===1}var Ud={open:ml,mounted:De(e=>e.mounted),transitionStatus:De(e=>e.transitionStatus),floatingRootContext:De(e=>e.floatingRootContext),triggerCount:De(e=>e.triggerCount),preventUnmountingOnClose:De(e=>e.preventUnmountingOnClose),payload:De(e=>e.payload),activeTriggerId:rs,activeTriggerElement:De(e=>e.mounted?e.activeTriggerElement:null),popupId:Vd,isTriggerActive:De((e,t)=>t!==void 0&&rs(e)===t),isOpenedByTrigger:De((e,t)=>zd(e,t)),isMountedByTrigger:De((e,t)=>t!==void 0&&rs(e)===t&&e.mounted),triggerProps:De((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:De((e,t)=>X0(e,t)?Vd(e):void 0),popupProps:De(e=>e.popupProps),popupElement:De(e=>e.popupElement),positionerElement:De(e=>e.positionerElement)};function Hd(e){let{open:t=!1,onOpenChange:r,elements:o={}}=e,n=no(),s=sn()!=null,i=Rt(()=>new kr({open:t,transitionStatus:void 0,onOpenChange:r,referenceElement:o.reference??null,floatingElement:o.floating??null,triggerElements:new fo,floatingId:n,syncOnly:!1,nested:s})).current;return ye(()=>{let a={open:t,floatingId:n};o.reference!==void 0&&(a.referenceElement=o.reference,a.domReferenceElement=Se(o.reference)?o.reference:null),o.floating!==void 0&&(a.floatingElement=o.floating),i.update(a)},[t,n,o.reference,o.floating,i]),i.context.onOpenChange=r,i.context.nested=s,i}function hl(e={}){let{nodeId:t,externalTree:r}=e,o=Hd(e),n=e.rootContext||o,s=n.useState("referenceElement"),i=n.useState("floatingElement"),a=n.useState("domReferenceElement"),u=n.useState("open"),l=n.useState("floatingId"),[c,f]=Ot.useState(null),[m,g]=Ot.useState(void 0),[d,v]=Ot.useState(void 0),x=Ot.useRef(null),C=uo(r),w=Ot.useMemo(()=>({reference:s,floating:i,domReference:a}),[s,i,a]),b=dd({...e,elements:{...w,...c&&{reference:c}}}),R=Se(m)?m:null,A=d===void 0?n.state.floatingElement:d;n.useSyncedValue("referenceElement",m??null),n.useSyncedValue("domReferenceElement",m===void 0?a:R),n.useSyncedValue("floatingElement",A);let T=Ot.useCallback(S=>{let I=Se(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;f(I),b.refs.setReference(I)},[b.refs]),_=Ot.useCallback(S=>{(Se(S)||S===null)&&(x.current=S,g(S)),(Se(b.refs.reference.current)||b.refs.reference.current===null||S!==null&&!Se(S))&&b.refs.setReference(S)},[b.refs,g]),P=Ot.useCallback(S=>{v(S),b.refs.setFloating(S)},[b.refs]),N=Ot.useMemo(()=>({...b.refs,setReference:_,setFloating:P,setPositionReference:T,domReference:x}),[b.refs,_,P,T]),q=Ot.useMemo(()=>({...b.elements,domReference:a}),[b.elements,a]),H=Ot.useMemo(()=>({...b,dataRef:n.context.dataRef,open:u,onOpenChange:n.setOpen,events:n.context.events,floatingId:l,refs:N,elements:q,nodeId:t,rootStore:n}),[b,N,q,t,n,u,l]);return ye(()=>{a&&(x.current=a)},[a]),ye(()=>{n.context.dataRef.current.floatingContext=H;let S=C?.nodesRef.current.find(I=>I.id===t);S&&(S.context=H)}),Ot.useMemo(()=>({...b,context:H,refs:N,elements:q,rootStore:n}),[b,N,q,H,n])}var Fr=h(ge(),1);var gl=Wr.os.mac&&Wr.engine.webkit;function yl(e,t={}){let{enabled:r=!0,delay:o}=t,n="rootStore"in e?e.rootStore:e,{events:s,dataRef:i}=n.context,a=Fr.useRef(!1),u=Fr.useRef(null),l=Fr.useRef(!0),c=vr();Fr.useEffect(()=>{let m=n.select("domReferenceElement");if(!r)return;let g=it(m);function d(){let C=n.select("domReferenceElement");!n.select("open")&&Et(C)&&C===zs(xt(C))&&(a.current=!0)}function v(){l.current=!0}function x(){l.current=!1}return br(Ye(g,"blur",d),gl&&Ye(g,"keydown",v,!0),gl&&Ye(g,"pointerdown",x,!0))},[n,r]),Fr.useEffect(()=>{if(!r)return;function m(g){if(g.reason===_e.triggerPress||g.reason===_e.escapeKey){let d=n.select("domReferenceElement");Se(d)&&(u.current=d,a.current=!0)}}return s.on("openchange",m),()=>{s.off("openchange",m)}},[s,r,n]);let f=Fr.useMemo(()=>{function m(){a.current=!1,u.current=null}return{onMouseLeave(){m()},onFocus(g){let d=g.currentTarget;if(a.current){if(u.current===d)return;m()}let v=Nt(g.nativeEvent);if(Se(v)){if(gl&&!g.relatedTarget){if(!l.current&&!wf(v))return}else if(!xf(v))return}let x=ao(g.relatedTarget,n.context.triggerElements),{nativeEvent:C,currentTarget:w}=g,b=typeof o=="function"?o():o;if(n.select("open")&&x||b===0||b===void 0){n.setOpen(!0,je(_e.triggerFocus,C,w));return}c.start(b,()=>{a.current||n.setOpen(!0,je(_e.triggerFocus,C,w))})},onBlur(g){m();let d=g.relatedTarget,v=g.nativeEvent,x=Se(d)&&d.hasAttribute(nn("focus-guard"))&&d.getAttribute("data-type")==="outside";c.start(0,()=>{let C=n.select("domReferenceElement"),w=zs(xt(C));!d&&w===C||Ze(i.current.floatingContext?.refs.floating.current,w)||Ze(C,w)||x||ao(d??w,n.context.triggerElements)||n.setOpen(!1,je(_e.triggerFocus,v))})}}},[i,o,n,c]);return Fr.useMemo(()=>r?{reference:f,trigger:f}:{},[r,f])}var bl=h(ge(),1);var vl=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new tr,this.restTimeout=new tr,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},ti=new WeakMap;function fn(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&ti.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),ti.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function ri(e,t){let{scopeElement:r,referenceElement:o,floatingElement:n}=t,s=ti.get(r);s&&s!==e&&fn(s),fn(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=r,e.pointerEventsReferenceElement=o,e.pointerEventsFloatingElement=n,ti.set(r,e),r.style.pointerEvents="none",o.style.pointerEvents="auto",n.style.pointerEvents="auto"}function dn(e){let t=e.context.dataRef.current,r=Rt(()=>t.hoverInteractionState??vl.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=r),en(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function wl(e,t={}){let{enabled:r=!0,closeDelay:o=0,nodeId:n}=t,s="rootStore"in e?e.rootStore:e,i=s.useState("open"),a=s.useState("floatingElement"),u=s.useState("domReferenceElement"),{dataRef:l}=s.context,c=uo(),f=sn(),m=dn(s),g=vr(),d=Te(()=>Hs(l.current.openEvent?.type,m.interactedInside)),v=Te(()=>Sf(l.current.openEvent?.type)),x=Te(()=>{fn(m)});ye(()=>{i||(m.pointerType=void 0,m.restTimeoutPending=!1,m.interactedInside=!1,x())},[i,m,x]),bl.useEffect(()=>x,[x]),ye(()=>{if(r&&i&&m.handleCloseOptions?.blockPointerEvents&&v()&&Se(u)&&a){let C=u,w=a,b=xt(a),R=c?.nodesRef.current.find(P=>P.id===f)?.context?.elements.floating;R&&(R.style.pointerEvents="");let A=m.pointerEventsScopeElement!==w?m.pointerEventsScopeElement:null,T=R!==w?R:null,_=m.handleCloseOptions?.getScope?.()??A??T??C.closest("[data-rootownerid]")??b.body;return ri(m,{scopeElement:_,referenceElement:C,floatingElement:w}),()=>{x()}}},[r,i,u,a,m,v,c,f,x]),bl.useEffect(()=>{if(!r)return;function C(){return!!(c&&f&&qr(c.nodesRef.current,f).length>0)}function w(P){let N=Yr(o,"close",m.pointerType),q=()=>{s.setOpen(!1,je(_e.triggerHover,P)),c?.events.emit("floating.closed",P)};N?m.openChangeTimeout.start(N,q):(m.openChangeTimeout.clear(),q())}function b(P){let N=Nt(P);if(!Ga(N)){m.interactedInside=!1;return}m.interactedInside=N?.closest("[aria-haspopup]")!=null}function R(){m.openChangeTimeout.clear(),g.clear(),c?.events.off("floating.closed",T),x()}function A(P){if(C()&&c){c.events.on("floating.closed",T);return}if(ao(P.relatedTarget,s.context.triggerElements))return;let N=l.current.floatingContext?.nodeId??n,q=P.relatedTarget;if(!(c&&N&&Se(q)&&qr(c.nodesRef.current,N,!1).some(S=>Ze(S.context?.elements.floating,q)))){if(m.handler){m.handler(P);return}x(),v()&&!d()&&w(P)}}function T(P){!c||!f||C()||g.start(0,()=>{c.events.off("floating.closed",T),s.setOpen(!1,je(_e.triggerHover,P)),c.events.emit("floating.closed",P)})}let _=a;return br(_&&Ye(_,"mouseenter",R),_&&Ye(_,"mouseleave",A),_&&Ye(_,"pointerdown",b,!0),()=>{c?.events.off("floating.closed",T)})},[r,a,s,l,o,n,v,d,x,m,c,f,g])}var po=h(ge(),1),Wd=h(io(),1);var K0={current:null};function xl(e,t={}){let{enabled:r=!0,delay:o=0,handleClose:n=null,mouseOnly:s=!1,restMs:i=0,move:a=!0,triggerElementRef:u=K0,externalTree:l,isActiveTrigger:c=!0,getHandleCloseContext:f,isClosing:m,shouldOpen:g}=t,d="rootStore"in e?e.rootStore:e,{dataRef:v,events:x}=d.context,C=uo(l),w=dn(d),b=po.useRef(!1),R=Wt(n),A=Wt(o),T=Wt(i),_=Wt(r),P=Wt(g),N=Wt(m),q=Te(()=>Hs(v.current.openEvent?.type,w.interactedInside)),H=Te(()=>P.current?.()!==!1),S=Te((O,D,J)=>{let M=d.context.triggerElements;if(M.hasElement(D))return!O||!Ze(O,D);if(!Se(J))return!1;let E=J;return M.hasMatchingElement(L=>Ze(L,E))&&(!O||!Ze(O,E))}),I=Te(()=>{if(!w.handler)return;xt(d.select("domReferenceElement")).removeEventListener("mousemove",w.handler),w.handler=void 0}),W=Te(()=>{fn(w)});return c&&(w.handleCloseOptions=R.current?.__options),po.useEffect(()=>I,[I]),po.useEffect(()=>{if(!r)return;function O(D){D.open?b.current=!1:(b.current=D.reason===_e.triggerHover,I(),w.openChangeTimeout.clear(),w.restTimeout.clear(),w.blockMouseMove=!0,w.restTimeoutPending=!1)}return x.on("openchange",O),()=>{x.off("openchange",O)}},[r,x,w,I]),po.useEffect(()=>{if(!r)return;function O(E,L=!0){let $=Yr(A.current,"close",w.pointerType);$?w.openChangeTimeout.start($,()=>{d.setOpen(!1,je(_e.triggerHover,E)),C?.events.emit("floating.closed",E)}):L&&(w.openChangeTimeout.clear(),d.setOpen(!1,je(_e.triggerHover,E)),C?.events.emit("floating.closed",E))}let D=u.current??(c?d.select("domReferenceElement"):null);if(!Se(D))return;function J(E){if(w.openChangeTimeout.clear(),w.blockMouseMove=!1,s&&!Gr(w.pointerType))return;let L=Ya(T.current),$=Yr(A.current,"open",w.pointerType),F=Nt(E),Z=E.currentTarget??null,se=d.select("domReferenceElement"),we=Z;if(Se(F)&&!d.context.triggerElements.hasElement(F)){for(let G of d.context.triggerElements.elements())if(Ze(G,F)){we=G;break}}Se(Z)&&Se(se)&&!d.context.triggerElements.hasElement(Z)&&Ze(Z,se)&&(we=se);let ie=we==null?!1:S(se,we,F),ve=d.select("open"),Ee=N.current?.()??d.select("transitionStatus")==="ending",ee=!ve&&Ee&&b.current,Fe=!ie&&Se(we)&&Se(se)&&Ze(se,we)&&ee,Ae=L>0&&!$,Oe=ie&&(ve||ee)||Fe,Ue=!ve||ie;if(Oe){H()&&d.setOpen(!0,je(_e.triggerHover,E,we));return}Ae||($?w.openChangeTimeout.start($,()=>{Ue&&H()&&d.setOpen(!0,je(_e.triggerHover,E,we))}):Ue&&H()&&d.setOpen(!0,je(_e.triggerHover,E,we)))}function M(E){if(q()){W();return}I();let L=d.select("domReferenceElement"),$=xt(L);w.restTimeout.clear(),w.restTimeoutPending=!1;let F=v.current.floatingContext??f?.();if(ao(E.relatedTarget,d.context.triggerElements))return;if(R.current&&F){d.select("open")||w.openChangeTimeout.clear();let se=u.current;w.handler=R.current({...F,tree:C,x:E.clientX,y:E.clientY,onClose(){W(),I(),_.current&&!q()&&se===d.select("domReferenceElement")&&O(E,!0)}}),$.addEventListener("mousemove",w.handler),w.handler(E);return}(w.pointerType!=="touch"||!Ze(d.select("floatingElement"),E.relatedTarget))&&O(E)}return a?br(Ye(D,"mousemove",J,{once:!0}),Ye(D,"mouseenter",J),Ye(D,"mouseleave",M)):br(Ye(D,"mouseenter",J),Ye(D,"mouseleave",M))},[I,W,v,A,d,r,R,w,c,S,q,s,a,T,u,C,_,f,N,H]),po.useMemo(()=>{if(!r)return;function O(D){w.pointerType=D.pointerType}return{onPointerDown:O,onPointerEnter:O,onMouseMove(D){let{nativeEvent:J}=D,M=D.currentTarget,E=d.select("domReferenceElement"),L=d.select("open"),$=S(E,M,D.target);if(s&&!Gr(w.pointerType))return;if(L&&$&&w.handleCloseOptions?.blockPointerEvents){let se=d.select("floatingElement");if(se){let we=w.handleCloseOptions?.getScope?.()??M.ownerDocument.body;ri(w,{scopeElement:we,referenceElement:M,floatingElement:se})}}let F=Ya(T.current);if(L&&!$||F===0||!$&&w.restTimeoutPending&&D.movementX**2+D.movementY**2<2)return;w.restTimeout.clear();function Z(){if(w.restTimeoutPending=!1,q())return;let se=d.select("open");!w.blockMouseMove&&(!se||$)&&H()&&d.setOpen(!0,je(_e.triggerHover,J,M))}w.pointerType==="touch"?Wd.flushSync(()=>{Z()}):$&&L?Z():(w.restTimeoutPending=!0,w.restTimeout.start(F,Z))}}},[r,w,q,S,s,d,T,H])}var Gd=.1,J0=Gd*Gd,Ke=.5;function oi(e,t,r,o,n,s){return o>=t!=s>=t&&e<=(n-r)*(t-o)/(s-o)+r}function ni(e,t,r,o,n,s,i,a,u,l){let c=!1;return oi(e,t,r,o,n,s)&&(c=!c),oi(e,t,n,s,i,a)&&(c=!c),oi(e,t,i,a,u,l)&&(c=!c),oi(e,t,u,l,r,o)&&(c=!c),c}function Q0(e,t,r){return e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height}function si(e,t,r,o,n,s){let i=Math.min(r,n),a=Math.max(r,n),u=Math.min(o,s),l=Math.max(o,s);return e>=i&&e<=a&&t>=u&&t<=l}function Sl(e={}){let{blockPointerEvents:t=!1}=e,r=new tr,o=({x:n,y:s,placement:i,elements:a,onClose:u,nodeId:l,tree:c})=>{let f=i?.split("-")[0],m=!1,g=null,d=null,v=typeof performance<"u"?performance.now():0;function x(w,b){let R=performance.now(),A=R-v;if(g===null||d===null||A===0)return g=w,d=b,v=R,!1;let T=w-g,_=b-d,P=T*T+_*_,N=A*A*J0;return g=w,d=b,v=R,P<N}function C(){r.clear(),u()}return function(b){r.clear();let R=a.domReference,A=a.floating;if(!R||!A||f==null||n==null||s==null)return;let{clientX:T,clientY:_}=b,P=Nt(b),N=b.type==="mouseleave",q=Ze(A,P),H=Ze(R,P);if(q&&(m=!0,!N))return;if(H&&(m=!1,!N)){m=!0;return}if(N&&Se(b.relatedTarget)&&Ze(A,b.relatedTarget))return;function S(){return!!(c&&qr(c.nodesRef.current,l).length>0)}function I(){S()||C()}if(S())return;let W=R.getBoundingClientRect(),O=A.getBoundingClientRect(),D=n>O.right-O.width/2,J=s>O.bottom-O.height/2,M=O.width>W.width,E=O.height>W.height,L=(M?W:O).left,$=(M?W:O).right,F=(E?W:O).top,Z=(E?W:O).bottom;if(f==="top"&&s>=W.bottom-1||f==="bottom"&&s<=W.top+1||f==="left"&&n>=W.right-1||f==="right"&&n<=W.left+1){I();return}let se=!1;switch(f){case"top":se=si(T,_,L,W.top+1,$,O.bottom-1);break;case"bottom":se=si(T,_,L,O.top+1,$,W.bottom-1);break;case"left":se=si(T,_,O.right-1,Z,W.left+1,F);break;case"right":se=si(T,_,W.right-1,Z,O.left+1,F);break;default:}if(se)return;if(m&&!Q0(T,_,W)){I();return}if(!N&&x(T,_)){I();return}let we=!1;switch(f){case"top":{let ie=M?Ke/2:Ke*4,ve=M||D?n+ie:n-ie,Ee=M?n-ie:D?n+ie:n-ie,ee=s+Ke+1,Fe=D||M?O.bottom-Ke:O.top,Ae=D?M?O.bottom-Ke:O.top:O.bottom-Ke;we=ni(T,_,ve,ee,Ee,ee,O.left,Fe,O.right,Ae);break}case"bottom":{let ie=M?Ke/2:Ke*4,ve=M||D?n+ie:n-ie,Ee=M?n-ie:D?n+ie:n-ie,ee=s-Ke,Fe=D||M?O.top+Ke:O.bottom,Ae=D?M?O.top+Ke:O.bottom:O.top+Ke;we=ni(T,_,ve,ee,Ee,ee,O.left,Fe,O.right,Ae);break}case"left":{let ie=E?Ke/2:Ke*4,ve=E||J?s+ie:s-ie,Ee=E?s-ie:J?s+ie:s-ie,ee=n+Ke+1,Fe=J||E?O.right-Ke:O.left,Ae=J?E?O.right-Ke:O.left:O.right-Ke;we=ni(T,_,Fe,O.top,Ae,O.bottom,ee,ve,ee,Ee);break}case"right":{let ie=E?Ke/2:Ke*4,ve=E||J?s+ie:s-ie,Ee=E?s-ie:J?s+ie:s-ie,ee=n-Ke,Fe=J||E?O.left+Ke:O.right,Ae=J?E?O.left+Ke:O.right:O.left+Ke;we=ni(T,_,ee,ve,ee,Ee,Fe,O.top,Ae,O.bottom);break}default:}we?m||r.start(40,I):I()}};return o.__options={...e,blockPointerEvents:t},o}var Cl=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=To.startingStyle]="startingStyle",e[e.endingStyle=To.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),os=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),$0={[os.popupOpen]:""},nk={[os.popupOpen]:"",[os.pressed]:""},ew={[Cl.open]:""},tw={[Cl.closed]:""},rw={[Cl.anchorHidden]:""},Yd={open(e){return e?$0:null}};var pn={open(e){return e?ew:tw},anchorHidden(e){return e?rw:null}};function qd(e){return $o(19)?e:e?"true":void 0}var or=h(ge(),1);var ow=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:n,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:l,padding:c=0,offsetParent:f="real"}=xr(e,t)||{};if(l==null)return{};let m=qs(c),g={x:r,y:o},d=es(n),v=$n(d),x=await i.getDimensions(l),C=d==="y",w=C?"top":"left",b=C?"bottom":"right",R=C?"clientHeight":"clientWidth",A=s.reference[v]+s.reference[d]-g[d]-s.floating[v],T=g[d]-s.reference[d],_=f==="real"?await i.getOffsetParent?.(l):a.floating,P=a.floating[R]||s.floating[v];(!P||!await i.isElement?.(_))&&(P=a.floating[R]||s.floating[v]);let N=A/2-T/2,q=P/2-x[v]/2-1,H=Math.min(m[w],q),S=Math.min(m[b],q),I=H,W=P-x[v]-S,O=P/2-x[v]/2+N,D=Gs(I,O,W),J=!u.arrow&&Sr(n)!=null&&O!==D&&s.reference[v]/2-(O<I?H:S)-x[v]/2<0,M=J?O<I?O-I:O-W:0;return{[d]:g[d]+M,data:{[d]:D,centerOffset:O-D-M,...J&&{alignmentOffset:M}},reset:J}}}),Zd=(e,t)=>({...ow(e),options:[e,t]});var nw=al().fn,Xd={name:"hide",async fn(e){let{width:t,height:r,x:o,y:n}=e.rects.reference,s=t===0&&r===0&&o===0&&n===0;return{data:{referenceHidden:(await nw(e)).data?.referenceHidden||s}}}};var ns={sideX:"left",sideY:"top"},Kd={name:"adaptiveOrigin",async fn(e){let{x:t,y:r,rects:{floating:o},elements:{floating:n},platform:s,strategy:i,placement:a}=e,u=it(n),l=u.getComputedStyle(n);if(!(l.transitionDuration!=="0s"&&l.transitionDuration!==""))return{x:t,y:r,data:ns};let f=await s.getOffsetParent?.(n),m={width:0,height:0};if(i==="fixed"&&u?.visualViewport)m={width:u.visualViewport.width,height:u.visualViewport.height};else if(f===u){let w=xt(n);m={width:w.documentElement.clientWidth,height:w.documentElement.clientHeight}}else await s.isElement?.(f)&&(m=await s.getDimensions(f));let g=Pt(a),d=t,v=r;g==="left"&&(d=m.width-(t+o.width)),g==="top"&&(v=m.height-(r+o.height));let x=g==="left"?"right":ns.sideX,C=g==="top"?"bottom":ns.sideY;return{x:d,y:v,data:{sideX:x,sideY:C}}}};function $d(e,t,r){let o=e==="inline-start"||e==="inline-end";return{top:"top",right:o?r?"inline-start":"inline-end":"right",bottom:"bottom",left:o?r?"inline-end":"inline-start":"left"}[t]}function Jd(e,t,r){let{rects:o,placement:n}=e;return{side:$d(t,Pt(n),r),align:Sr(n)||"center",anchor:{width:o.reference.width,height:o.reference.height},positioner:{width:o.floating.width,height:o.floating.height}}}function ep(e){let{anchor:t,positionMethod:r="absolute",side:o="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,collisionBoundary:a,collisionPadding:u=5,sticky:l=!1,arrowPadding:c=5,disableAnchorTracking:f=!1,inline:m,keepMounted:g=!1,floatingRootContext:d,mounted:v,collisionAvoidance:x,shiftCrossAxis:C=!1,nodeId:w,adaptiveOrigin:b,lazyFlip:R=!1,externalTree:A}=e,[T,_]=or.useState(null);!v&&T!==null&&_(null);let P=x.side||"flip",N=x.align||"flip",q=x.fallbackAxisSide||"end",H=typeof t=="function"?t:void 0,S=Te(H),I=H?S:t,W=Wt(t),O=Wt(v),J=Qo()==="rtl",M=T||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":J?"left":"right","inline-start":J?"right":"left"}[o],E=s==="center"?M:`${M}-${s}`,L=u,$=1,F=o==="bottom"?$:0,Z=o==="top"?$:0,se=o==="right"?$:0,we=o==="left"?$:0;typeof L=="number"?L={top:L+F,right:L+we,bottom:L+Z,left:L+se}:L&&(L={top:(L.top||0)+F,right:(L.right||0)+we,bottom:(L.bottom||0)+Z,left:(L.left||0)+se});let ie={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:L},ve=or.useRef(null),Ee=Wt(n),ee=Wt(i),Fe=typeof n!="function"?n:0,Ae=typeof i!="function"?i:0,Oe=[];m&&Oe.push(m),Oe.push(rl(Le=>{let qe=Jd(Le,o,J),k=typeof Ee.current=="function"?Ee.current(qe):Ee.current,Q=typeof ee.current=="function"?ee.current(qe):ee.current;return{mainAxis:k,crossAxis:Q,alignmentAxis:Q}},[Fe,Ae,J,o]));let Ue=N==="none"&&P!=="shift",G=!Ue&&(l||C||P==="shift"),z=P==="none"?null:sl({...ie,padding:{top:L.top+$,right:L.right+$,bottom:L.bottom+$,left:L.left+$},mainAxis:!C&&P==="flip",crossAxis:N==="flip"?"alignment":!1,fallbackAxisSideDirection:q}),X=Ue?null:ol(Le=>{let qe=xt(Le.elements.floating).documentElement;return{...ie,rootBoundary:C?{x:0,y:0,width:qe.clientWidth,height:qe.clientHeight}:void 0,mainAxis:N!=="none",crossAxis:G,limiter:l||C?void 0:nl(k=>{if(!ve.current)return{};let{width:Q,height:y}=ve.current.getBoundingClientRect(),oe=Gt(Pt(k.placement)),Ve=oe==="y"?Q:y,te=oe==="y"?L.left+L.right:L.top+L.bottom;return{offset:Ve/2+te/2}})}},[ie,l,C,L,N]);P==="shift"||N==="shift"||s==="center"?Oe.push(X,z):Oe.push(z,X),Oe.push(il({...ie,apply({elements:{floating:Le},availableWidth:qe,availableHeight:k,rects:Q}){if(!O.current)return;let y=Le.style;y.setProperty("--available-width",`${qe}px`),y.setProperty("--available-height",`${k}px`);let oe=it(Le).devicePixelRatio||1,{x:Ve,y:te,width:ht,height:ne}=Q.reference,Qe=(Math.round((Ve+ht)*oe)-Math.round(Ve*oe))/oe,B=(Math.round((te+ne)*oe)-Math.round(te*oe))/oe;y.setProperty("--anchor-width",`${Qe}px`),y.setProperty("--anchor-height",`${B}px`)}}),Zd(Le=>({element:ve.current||xt(Le.elements.floating).createElement("div"),padding:c,offsetParent:"floating"}),[c]),{name:"transformOrigin",fn(Le){let{elements:qe,middlewareData:k,placement:Q,rects:y,y:oe}=Le,Ve=Pt(Q),te=Gt(Ve),ht=ve.current,ne=k.arrow?.x||0,Qe=k.arrow?.y||0,B=ht?.clientWidth||0,j=ht?.clientHeight||0,yr=ne+B/2,Ge=Qe+j/2,le=Math.abs(k.shift?.y||0),zr=y.reference.height/2,Qt=typeof n=="function"?n(Jd(Le,o,J)):n,et=le>Qt,Me={top:`${yr}px calc(100% + ${Qt}px)`,bottom:`${yr}px ${-Qt}px`,left:`calc(100% + ${Qt}px) ${Ge}px`,right:`${-Qt}px ${Ge}px`}[Ve],ft=`${yr}px ${y.reference.y+zr-oe}px`;return qe.floating.style.setProperty("--transform-origin",G&&te==="y"&&et?ft:Me),{}}},Xd,b),ye(()=>{!v&&d&&d.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[v,d]);let U=or.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:K,elements:fe,x:ue,y:de,middlewareData:pe,update:me,placement:V,context:re,isPositioned:Ne,floatingStyles:He}=hl({rootContext:d,open:g?v:void 0,placement:E,middleware:Oe,strategy:r,whileElementsMounted:g?void 0:(...Le)=>ts(...Le,U),nodeId:w,externalTree:A}),{sideX:ot,sideY:ut}=pe.adaptiveOrigin||ns,ze=Ne?r:"fixed",We=or.useMemo(()=>{let Le=b?{position:ze,[ot]:ue,[ut]:de}:{position:ze,...He};return Ne||(Le.opacity=0),Le},[b,ze,ot,ue,ut,de,He,Ne]),nt=or.useRef(null);ye(()=>{if(!v)return;let Le=W.current,qe=typeof Le=="function"?Le():Le,Q=(Qd(qe)?qe.current:qe)||null||null;Q!==nt.current&&(K.setPositionReference(Q),nt.current=Q)},[v,K,I,W]),or.useEffect(()=>{if(!v)return;let Le=W.current;typeof Le!="function"&&Qd(Le)&&Le.current!==nt.current&&(K.setPositionReference(Le.current),nt.current=Le.current)},[v,K,I,W]),or.useEffect(()=>{if(g&&v&&fe.reference&&fe.floating)return ts(fe.reference,fe.floating,me,U)},[g,v,fe,me,U]);let be=Pt(V),Rr=$d(o,be,J),gr=Sr(V)||"center",$e=!!pe.hide?.referenceHidden;ye(()=>{R&&v&&Ne&&_(be)},[R,v,Ne,be]);let jr=or.useMemo(()=>({position:"absolute",top:pe.arrow?.y,left:pe.arrow?.x}),[pe.arrow]),Ct=pe.arrow?.centerOffset!==0;return or.useMemo(()=>({positionerStyles:We,arrowStyles:jr,arrowRef:ve,arrowUncentered:Ct,side:Rr,align:gr,physicalSide:be,anchorHidden:$e,refs:K,context:re,isPositioned:Ne,update:me}),[We,jr,ve,Ct,Rr,gr,be,$e,K,re,Ne,me])}function Qd(e){return e!=null&&"current"in e}function ii(e){return e==="starting"?Ff:pt}function tp(e,t,{styles:r,transitionStatus:o,props:n,refs:s,hidden:i,inert:a=!1}){let u={...r};return a&&(u.pointerEvents="none"),Ht("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:i,style:u},ii(o),n],stateAttributesMapping:pn})}var kt=h(ge(),1),cp=h(io(),1);var rp=h(ge(),1);function op(e){let[t,r]=rp.useState({current:e,previous:null});return e!==t.current&&r({current:e,previous:t.current}),t.previous}var mn=h(ge(),1);function Rl(e){let t=Lt(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Et(e),s=n?e.offsetWidth:r,i=n?e.offsetHeight:o;return(co(r)!==s||co(o)!==i)&&(r=s,o=i),{width:r,height:o}}function sp(e){let{popupElement:t,positionerElement:r,content:o,mounted:n,onMeasureLayout:s,onMeasureLayoutComplete:i,side:a,direction:u}=e,l=on(t,!0,!1),c=tn(),f=mn.useRef(null),m=mn.useRef(!0),g=mn.useRef(oo),d=Te(s),v=Te(i),x=mn.useMemo(()=>{let C=a==="top",w=a==="left";return u==="rtl"?(C=C||a==="inline-end",w=w||a==="inline-end"):(C=C||a==="inline-start",w=w||a==="inline-start"),C?{position:"absolute",[a==="top"?"bottom":"top"]:"0",[w?"right":"left"]:"0"}:pt},[a,u]);ye(()=>{if(!n){g.current=oo,m.current=!0,f.current=null;return}if(!t||!r)return;g.current=np(t,x),El(t,"auto");let C=li(t,"position","static"),w=li(t,"transform","none"),b=li(t,"scale","1"),R=np(r,{"--available-width":"max-content","--available-height":"max-content"});function A(){C(),w(),R()}function T(){A(),b()}if(d?.(),m.current||f.current===null){ai(r,"max-content");let q=Rl(t);return f.current=q,ai(r,q),T(),v?.(null,q),m.current=!1,()=>{g.current(),g.current=oo}}ai(r,"max-content");let _=f.current,P=Rl(t);f.current=P,El(t,_),T(),v?.(_,P),ai(r,P);let N=new AbortController;return c.request(()=>{El(t,P),l(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},N.signal)}),()=>{N.abort(),c.cancel(),g.current(),g.current=oo}},[o,t,r,l,c,n,d,v,x])}function li(e,t,r){let o=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,o)}}function np(e,t){let r=[];for(let[o,n]of Object.entries(t))r.push(li(e,o,n));return r.length?()=>{r.forEach(o=>o())}:oo}function El(e,t){let r=t==="auto"?"auto":`${t.width}px`,o=t==="auto"?"auto":`${t.height}px`;e.style.setProperty("--popup-width",r),e.style.setProperty("--popup-height",o)}function ai(e,t){let r=t==="max-content"?"max-content":`${t.width}px`,o=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",r),e.style.setProperty("--positioner-height",o)}var ip=h(ge(),1);var ap=h(Y(),1),ci=function(t){let{direction:r="ltr"}=t,o=ip.useMemo(()=>({direction:r}),[r]);return(0,ap.jsx)(Ta.Provider,{value:o,children:t.children})};var hn=h(Y(),1);function up(e){let{store:t,side:r,cssVars:o,children:n}=e,s=Qo(),i=t.useState("activeTriggerElement"),a=t.useState("activeTriggerId"),u=t.useState("open"),l=t.useState("payload"),c=t.useState("mounted"),f=t.useState("popupElement"),m=t.useState("positionerElement"),g=op(u?i:null),d=aw(a,l),v=kt.useRef(null),[x,C]=kt.useState(null),[w,b]=kt.useState(null),R=kt.useRef(null),A=kt.useRef(null),T=on(R,!0,!1),_=tn(),[P,N]=kt.useState(null),[q,H]=kt.useState(!1);ye(()=>(t.set("hasViewport",!0),()=>{t.set("hasViewport",!1)}),[t]);let S=Te(()=>{R.current?.style.setProperty("animation","none"),R.current?.style.setProperty("transition","none"),A.current?.style.setProperty("display","none")}),I=Te(M=>{R.current?.style.removeProperty("animation"),R.current?.style.removeProperty("transition"),A.current?.style.removeProperty("display"),M&&N(M)}),W=kt.useRef(null);ye(()=>{(!u||!c)&&(W.current=null)},[u,c]),ye(()=>{if(i&&g&&i!==g&&W.current!==i&&v.current){C(v.current),H(!0);let M=iw(g,i);b(M),_.request(()=>{cp.flushSync(()=>{H(!1)}),T(()=>{C(null),N(null),v.current=null})}),W.current=i}},[i,g,x,T,_]),ye(()=>{let M=R.current;if(!M)return;let E=xt(M).createElement("div");for(let L of Array.from(M.childNodes))E.appendChild(L.cloneNode(!0));v.current=E});let O=x!=null,D;O?D=(0,hn.jsxs)(kt.Fragment,{children:[(0,hn.jsx)("div",{"data-previous":!0,inert:qd(!0),ref:A,style:{...P?{[o.popupWidth]:`${P.width}px`,[o.popupHeight]:`${P.height}px`}:null,position:"absolute"},"data-ending-style":q?void 0:""},"previous"),(0,hn.jsx)("div",{"data-current":!0,ref:R,"data-starting-style":q?"":void 0,children:n},d)]}):D=(0,hn.jsx)("div",{"data-current":!0,ref:R,children:n},d),ye(()=>{let M=A.current;!M||!x||M.replaceChildren(...Array.from(x.childNodes))},[x]),sp({popupElement:f,positionerElement:m,mounted:c,content:l,onMeasureLayout:S,onMeasureLayoutComplete:I,side:r,direction:s});let J={activationDirection:sw(w),transitioning:O};return{children:D,state:J}}function sw(e){if(e)return`${lp(e.horizontal,5,"right","left")} ${lp(e.vertical,5,"down","up")}`}function lp(e,t,r,o){return e>t?r:e<-t?o:""}function iw(e,t){let r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),n={x:r.left+r.width/2,y:r.top+r.height/2},s={x:o.left+o.width/2,y:o.top+o.height/2};return{horizontal:s.x-n.x,vertical:s.y-n.y}}function aw(e,t){let[r,o]=kt.useState(0),n=kt.useRef(e),s=kt.useRef(t),i=kt.useRef(!1);return ye(()=>{let a=n.current,u=s.current,l=e!==a,c=t!==u;l?(o(f=>f+1),i.current=!c):i.current&&c&&(o(f=>f+1),i.current=!1),n.current=e,s.current=t},[e,t]),`${e??"current"}-${r}`}var ui=h(ge(),1),fp=h(io(),1);var dp=h(Y(),1),pp=ui.forwardRef(function(t,r){let{children:o,container:n,className:s,render:i,style:a,...u}=t,{portalNode:l,portalSubtree:c}=Xa({container:n,ref:r,componentProps:t,elementProps:u});return!c&&!l?null:(0,dp.jsxs)(ui.Fragment,{children:[c,l&&fp.createPortal(o,l)]})});var Zt={};ro(Zt,{Arrow:()=>Op,Handle:()=>ss,Popup:()=>_p,Portal:()=>Cp,Positioner:()=>Ep,Provider:()=>kp,Root:()=>hp,Trigger:()=>wp,Viewport:()=>Ip,createHandle:()=>Lp});var Ar=h(ge(),1);var fi=h(ge(),1),Tl=fi.createContext(void 0);function ir(e){let t=fi.useContext(Tl);if(t===void 0&&!e)throw new Error(Ut(72));return t}var mp=h(ge(),1);var lw={...Ud,disabled:De(e=>e.disabled),instantType:De(e=>e.instantType),isInstantPhase:De(e=>e.isInstantPhase),trackCursorAxis:De(e=>e.trackCursorAxis),disableHoverablePopup:De(e=>e.disableHoverablePopup),lastOpenChangeReason:De(e=>e.openChangeReason),closeOnClick:De(e=>e.closeOnClick),closeDelay:De(e=>e.closeDelay),hasViewport:De(e=>e.hasViewport)},gn=class e extends cn{constructor(t,r,o=!1){let n=new fo,s={...cw(),...t};s.floatingRootContext=jd(n,r,o),super(s,{popupRef:mp.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},lw)}setOpen=(t,r)=>{Fd(this,t,r,{extraState:{openChangeReason:r.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,je(_e.triggerPress,t))}static useStore(t,r){return kd(t,(n,s)=>new e(r,n,s)).store}};function cw(){return{...Bd(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var di=h(Y(),1),hp=dl(function(t){let{disabled:r=!1,defaultOpen:o=!1,open:n,disableHoverablePopup:s=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:u,onOpenChangeComplete:l,handle:c,triggerId:f,defaultTriggerId:m=null,children:g}=t,d=gn.useStore(c?.store,{open:o,openProp:n,activeTriggerId:m,triggerIdProp:f});Ad(d,n,o,m),d.useControlledProp("openProp",n),d.useControlledProp("triggerIdProp",f),d.useContextCallback("onOpenChange",u),d.useContextCallback("onOpenChangeComplete",l);let v=d.useState("open"),x=!r&&v,C=d.useState("activeTriggerId"),w=d.useState("mounted"),b=d.useState("payload");d.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s}),d.useSyncedValue("disabled",r),Ld(d,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:R,transitionStatus:A}=Nd(x,d),T=d.useState("isInstantPhase"),_=d.useState("instantType"),P=d.useState("lastOpenChangeReason"),N=Ar.useRef(null);ye(()=>{v&&r&&d.setOpen(!1,je(_e.disabled))},[v,r,d]),ye(()=>{A==="ending"&&P===_e.none||A!=="ending"&&T?(_!=="delay"&&(N.current=_),d.set("instantType","delay")):N.current!==null&&(d.set("instantType",N.current),N.current=null)},[A,T,P,_,d]),ye(()=>{x&&C==null&&d.set("payload",void 0)},[d,C,x]);let q=Ar.useCallback(()=>{d.setOpen(!1,je(_e.imperativeAction))},[d]);Ar.useImperativeHandle(a,()=>({unmount:R,close:q}),[R,q]);let H=x||w||!r&&i!=="none";return(0,di.jsxs)(Tl.Provider,{value:d,children:[H&&(0,di.jsx)(uw,{store:d,disabled:r,trackCursorAxis:i}),typeof g=="function"?g({payload:b}):g]})});function uw({store:e,disabled:t,trackCursorAxis:r}){let o=e.useState("floatingRootContext"),n=Ja(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=Ka(o,{enabled:!t&&r!=="none",axis:r==="none"?void 0:r}),i=Ar.useMemo(()=>er(s.reference,n.reference),[s.reference,n.reference]),a=Ar.useMemo(()=>er(s.trigger,n.trigger),[s.trigger,n.trigger]),u=Ar.useMemo(()=>er(Od,s.floating,n.floating),[s.floating,n.floating]);return Dd(e,{activeTriggerProps:i,inactiveTriggerProps:a,popupProps:u}),null}var mi=h(ge(),1);var pi=h(ge(),1),_l=pi.createContext(void 0);function gp(){return pi.useContext(_l)}var yp=(function(e){return e[e.popupOpen=os.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});var bp="data-base-ui-tooltip-trigger";function vp(e){if("composedPath"in e){let r=e.composedPath();for(let o=0;o<r.length;o+=1){let n=r[o];if(Se(n))return n}}let t=e.target;return Se(t)?t:null}function fw(e){let t=e;for(;t;){if(t.hasAttribute(bp))return t;let r=t.parentElement;if(r){t=r;continue}let o=t.getRootNode();t="host"in o&&Se(o.host)?o.host:null}return null}var wp=Cd(function(t,r){let{render:o,className:n,style:s,handle:i,payload:a,disabled:u,delay:l,closeOnClick:c=!0,closeDelay:f,id:m,...g}=t,d=ir(!0),v=i?.store??d;if(!v)throw new Error(Ut(82));let x=$u(m),C=v.useState("isTriggerActive",x),w=v.useState("isOpenedByTrigger",x),b=v.useState("floatingRootContext"),R=mi.useRef(null),A=l??600,T=f??0,{registerTrigger:_,isMountedByThisTrigger:P}=Id(x,R,v,{payload:a,closeOnClick:c,closeDelay:T}),N=gp(),{delayRef:q,isInstantPhase:H,hasProvider:S}=Za(b,{open:w}),I=dn(b);v.useSyncedValue("isInstantPhase",H);let W=v.useState("disabled"),O=u??W,D=Wt(O),J=v.useState("trackCursorAxis"),M=v.useState("disableHoverablePopup"),E=mi.useRef(!1),L=vr(),$=mi.useRef(void 0);function F(){let Oe=N?.delay,Ue=typeof q.current=="object"?q.current.open:void 0,G=A;return S&&(Ue!==0?G=l??Oe??A:G=0),G}function Z(Oe){let Ue=R.current;if(!Ue||!Oe)return!1;let G=fw(Oe);return G!==null&&G!==Ue&&Ze(Ue,G)}function se(Oe){let Ue=Z(Oe);return E.current=Ue,Ue&&(I.openChangeTimeout.clear(),I.restTimeout.clear(),I.restTimeoutPending=!1,L.clear()),Ue}let we=xl(b,{enabled:!O,mouseOnly:!0,move:!1,handleClose:!M&&J!=="both"?Sl():null,restMs:F,delay(){let Oe=typeof q.current=="object"?q.current.close:void 0,Ue=T;return f==null&&S&&(Ue=Oe),{close:Ue}},triggerElementRef:R,isActiveTrigger:C,isClosing:()=>v.select("transitionStatus")==="ending",shouldOpen(){return!E.current}}),ie=yl(b,{enabled:!O}).reference,ve=Oe=>{let Ue=E.current,G=vp(Oe),z=se(G),X=R.current,U=X&&G&&Ze(X,G);if(z&&v.select("open")&&v.select("lastOpenChangeReason")===_e.triggerHover){v.setOpen(!1,je(_e.triggerHover,Oe));return}if(Ue&&!z&&U&&!D.current&&!v.select("open")&&X&&Gr($.current)){let K=()=>{!E.current&&!D.current&&!v.select("open")&&v.setOpen(!0,je(_e.triggerHover,Oe,X))},fe=F();fe===0?(L.clear(),K()):L.start(fe,K)}},Ee=v.useState("triggerProps",P);return Ht("button",t,{state:{open:w},ref:[r,_,R],props:[we,ie,P||J!=="none"?Ee:void 0,{onMouseOver(Oe){ve(Oe.nativeEvent)},onFocus(Oe){Z(vp(Oe.nativeEvent))&&Oe.preventBaseUIHandler()},onMouseLeave(){E.current=!1,L.clear(),$.current=void 0},onPointerEnter(Oe){$.current=Oe.pointerType},onPointerDown(Oe){$.current=Oe.pointerType,v.set("closeOnClick",c),c&&!v.select("open")&&v.cancelPendingOpen(Oe.nativeEvent)},onClick(Oe){c&&!v.select("open")&&v.cancelPendingOpen(Oe.nativeEvent)},id:x,[yp.triggerDisabled]:O?"":void 0,[bp]:O?void 0:""},g],stateAttributesMapping:Yd})});var Sp=h(ge(),1);var hi=h(ge(),1),Pl=hi.createContext(void 0);function xp(){let e=hi.useContext(Pl);if(e===void 0)throw new Error(Ut(70));return e}var Ol=h(Y(),1),Cp=Sp.forwardRef(function(t,r){let{keepMounted:o=!1,...n}=t;return ir().useState("mounted")||o?(0,Ol.jsx)(Pl.Provider,{value:o,children:(0,Ol.jsx)(pp,{ref:r,...n})}):null});var yi=h(ge(),1);var gi=h(ge(),1),kl=gi.createContext(void 0);function yn(){let e=gi.useContext(kl);if(e===void 0)throw new Error(Ut(71));return e}var Rp=h(Y(),1),Ep=yi.forwardRef(function(t,r){let{render:o,className:n,anchor:s,positionMethod:i="absolute",side:a="top",align:u="center",sideOffset:l=0,alignOffset:c=0,collisionBoundary:f="clipping-ancestors",collisionPadding:m=5,arrowPadding:g=5,sticky:d=!1,disableAnchorTracking:v=!1,collisionAvoidance:x=Af,style:C,...w}=t,b=ir(),R=xp(),A=b.useState("open"),T=b.useState("mounted"),_=b.useState("trackCursorAxis"),P=b.useState("disableHoverablePopup"),N=b.useState("floatingRootContext"),q=b.useState("instantType"),H=b.useState("transitionStatus"),S=b.useState("hasViewport"),I=ep({anchor:s,positionMethod:i,floatingRootContext:N,mounted:T,side:a,sideOffset:l,align:u,alignOffset:c,collisionBoundary:f,collisionPadding:m,sticky:d,arrowPadding:g,disableAnchorTracking:v,keepMounted:R,collisionAvoidance:x,adaptiveOrigin:S?Kd:void 0}),W=yi.useMemo(()=>({open:A,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:_!=="none"?"tracking-cursor":q}),[A,I.side,I.align,I.anchorHidden,_,q]),O=tp(t,W,{styles:I.positionerStyles,transitionStatus:H,props:w,refs:[r,b.useStateSetter("positionerElement")],hidden:!T,inert:!A||_==="both"||P});return(0,Rp.jsx)(kl.Provider,{value:I,children:O})});var Tp=h(ge(),1);var dw={...pn,...rf},_p=Tp.forwardRef(function(t,r){let{render:o,className:n,style:s,...i}=t,a=ir(),{side:u,align:l}=yn(),c=a.useState("open"),f=a.useState("instantType"),m=a.useState("transitionStatus"),g=a.useState("popupProps"),d=a.useState("floatingRootContext"),v=a.useState("disabled"),x=a.useState("closeDelay");js({open:c,ref:a.context.popupRef,onComplete(){c&&a.context.onOpenChangeComplete?.(!0)}}),wl(d,{enabled:!v,closeDelay:x});let C=a.useStateSetter("popupElement");return Ht("div",t,{state:{open:c,side:u,align:l,instant:f,transitionStatus:m},ref:[r,a.context.popupRef,C],props:[g,ii(m),i],stateAttributesMapping:dw})});var Pp=h(ge(),1);var Op=Pp.forwardRef(function(t,r){let{render:o,className:n,style:s,...i}=t,a=ir(),{arrowRef:u,side:l,align:c,arrowUncentered:f,arrowStyles:m}=yn(),g=a.useState("open"),d=a.useState("instantType");return Ht("div",t,{state:{open:g,side:l,align:c,uncentered:f,instant:d},ref:[r,u],props:[{style:m,"aria-hidden":!0},i],stateAttributesMapping:pn})});var Fl=h(ge(),1);var Al=h(Y(),1),kp=function(t){let{delay:r,closeDelay:o,timeout:n=400}=t,s=Fl.useMemo(()=>({delay:r,closeDelay:o}),[r,o]),i=Fl.useMemo(()=>({open:r,close:o}),[r,o]);return(0,Al.jsx)(_l.Provider,{value:s,children:(0,Al.jsx)(qa,{delay:i,timeoutMs:n,children:t.children})})};var Ap=h(ge(),1);var Fp=(function(e){return e.popupWidth="--popup-width",e.popupHeight="--popup-height",e})({});var pw={activationDirection:e=>e?{"data-activation-direction":e}:null},Ip=Ap.forwardRef(function(t,r){let{render:o,className:n,style:s,children:i,...a}=t,u=ir(),l=yn(),c=u.useState("instantType"),{children:f,state:m}=up({store:u,side:l.side,cssVars:Fp,children:i}),g={activationDirection:m.activationDirection,transitioning:m.transitioning,instant:c};return Ht("div",t,{state:g,ref:r,props:[a,{children:f}],stateAttributesMapping:pw})});var ss=class{constructor(){this.store=new gn}open(t){let r=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!r)throw new Error(Ut(81,t));this.store.setOpen(!0,je(_e.imperativeAction,void 0,r))}close(){this.store.setOpen(!1,je(_e.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function Lp(){return new ss}function vn(e){return Ht(e.defaultTagName??"div",e,e)}var Mp=h(ke(),1),Il="data-wp-hash";function Ll(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&hw(document)),e.__wpStyleRuntime}function mw(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Il}]`))if(r.getAttribute(Il)===t)return!0;return!1}function Vp(e,t,r){if(!e.head)return;let o=Ll(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(mw(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(Il,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function hw(e){let t=Ll();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Vp(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Bp(e,t){let r=Ll();r.styles.set(e,t);for(let o of r.documents.keys())Vp(o,e,t)}typeof process>"u",Bp("a495f9d138",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var Np={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};typeof process>"u",Bp("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var Dp={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},vi=(0,Mp.forwardRef)(function({variant:t="body-md",render:r,className:o,...n},s){return vn({render:r,defaultTagName:"span",ref:s,props:er(n,{className:st(Np.text,Dp.heading,Dp.p,Np[t],o)})})});var bi=h(ke(),1),is=(0,bi.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,bi.cloneElement)(e,{width:t,height:t,...r,ref:o}));var wi=h(bn(),1),Nl=h(Y(),1),Do=(0,Nl.jsx)(wi.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Nl.jsx)(wi.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});var xi=h(bn(),1),Dl=h(Y(),1),Mo=(0,Dl.jsx)(xi.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Dl.jsx)(xi.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var Si=h(bn(),1),Ml=h(Y(),1),Vl=(0,Ml.jsx)(Si.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Ml.jsx)(Si.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var Ci=h(bn(),1),Bl=h(Y(),1),Ri=(0,Bl.jsx)(Ci.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Bl.jsx)(Ci.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})});var Ei=h(bn(),1),jl=h(Y(),1),Ti=(0,jl.jsx)(Ei.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jl.jsx)(Ei.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})});var Up=h(ke(),1);function zl(e,t,r){return(0,Up.cloneElement)(e??t,{children:r})}var gw=h(Wp(),1);var Yp=h(as(),1),{lock:CA,unlock:qp}=(0,Yp.__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/ui");function yw(){let e=gw;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return qp(e.privateApis).ThemeProvider}var Zp=yw();var Xp=h(ke(),1),Ul="data-wp-hash";function Hl(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&bw(document)),e.__wpStyleRuntime}function vw(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Ul}]`))if(r.getAttribute(Ul)===t)return!0;return!1}function Kp(e,t,r){if(!e.head)return;let o=Hl(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(vw(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(Ul,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function bw(e){let t=Hl();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Kp(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function ww(e,t){let r=Hl();r.styles.set(e,t);for(let o of r.documents.keys())Kp(o,e,t)}typeof process>"u",ww("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var xw={stack:"_19ce0419607e1896__stack"},Sw={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},wn=(0,Xp.forwardRef)(function({direction:t,gap:r,align:o,justify:n,wrap:s,render:i,...a},u){let l={gap:r&&Sw[r],alignItems:o,justifyContent:n,flexDirection:t,flexWrap:s};return vn({render:i,ref:u,props:er(a,{style:l,className:xw.stack})})});var xn={};ro(xn,{Popup:()=>cm,Portal:()=>_i,Positioner:()=>Pi,Provider:()=>vm,Root:()=>gm,Trigger:()=>dm});var am=h(ke(),1);var tm=h(ke(),1);var Gl="data-wp-hash";function Yl(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Rw(document)),e.__wpStyleRuntime}function Cw(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Gl}]`))if(r.getAttribute(Gl)===t)return!0;return!1}function Qp(e,t,r){if(!e.head)return;let o=Yl(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Cw(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(Gl,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function Rw(e){let t=Yl();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Qp(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Ew(e,t){let r=Yl();r.styles.set(e,t);for(let o of r.documents.keys())Qp(o,e,t)}typeof process>"u",Ew("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var Jp={slot:"_11fc52b637ff8a7e__slot"},$p="data-wp-compat-overlay-slot";function Tw(){return typeof document>"u"?null:document}function _w(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var Ir=null;function Wl(e){return e.setAttribute("aria-hidden","false"),e}function Pw(e){let t=e.createElement("div");return t.setAttribute($p,""),Jp.slot&&t.classList.add(Jp.slot),e.body.appendChild(t),t}function em(){if(typeof window>"u"||!_w()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=Tw();if(!e||!e.body)return;if(Ir&&Ir.ownerDocument===e&&Ir.isConnected)return Wl(Ir);let t=e.querySelector(`[${$p}]`);return t instanceof HTMLDivElement?(Ir=Wl(t),Ir):(Ir?.isConnected&&Ir.remove(),Ir=Wl(Pw(e)),Ir)}var rm=h(Y(),1),_i=(0,tm.forwardRef)(function({container:t,...r},o){return(0,rm.jsx)(Zt.Portal,{container:t??em(),...r,ref:o})});var om=h(ke(),1),im=h(Y(),1),ql="data-wp-hash";function Zl(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&kw(document)),e.__wpStyleRuntime}function Ow(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${ql}]`))if(r.getAttribute(ql)===t)return!0;return!1}function nm(e,t,r){if(!e.head)return;let o=Zl(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Ow(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(ql,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function kw(e){let t=Zl();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)nm(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function sm(e,t){let r=Zl();r.styles.set(e,t);for(let o of r.documents.keys())nm(o,e,t)}typeof process>"u",sm("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Fw={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",sm("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var Aw={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},Pi=(0,om.forwardRef)(function({align:t="center",className:r,side:o="top",sideOffset:n=4,...s},i){return(0,im.jsx)(Zt.Positioner,{ref:i,align:t,side:o,sideOffset:n,...s,className:st(Fw["box-sizing"],Aw.positioner,r)})});var ls=h(Y(),1),Xl="data-wp-hash";function Kl(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Lw(document)),e.__wpStyleRuntime}function Iw(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Xl}]`))if(r.getAttribute(Xl)===t)return!0;return!1}function lm(e,t,r){if(!e.head)return;let o=Kl(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Iw(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(Xl,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function Lw(e){let t=Kl();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)lm(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Nw(e,t){let r=Kl();r.styles.set(e,t);for(let o of r.documents.keys())lm(o,e,t)}typeof process>"u",Nw("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var Dw={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},Mw={background:"#1e1e1e"},cm=(0,am.forwardRef)(function({portal:t,positioner:r,children:o,className:n,...s},i){let a=(0,ls.jsx)(Zp,{color:Mw,children:(0,ls.jsx)(Zt.Popup,{ref:i,className:st(Dw.popup,n),...s,children:o})}),u=zl(r,(0,ls.jsx)(Pi,{}),a);return zl(t,(0,ls.jsx)(_i,{}),u)});var um=h(ke(),1),fm=h(Y(),1),dm=(0,um.forwardRef)(function(t,r){return(0,fm.jsx)(Zt.Trigger,{ref:r,...t})});var pm=h(xe(),1),mm=h(Y(),1);function hm({children:e}){return(0,mm.jsx)(ci,{direction:(0,pm.isRTL)()?"rtl":"ltr",children:e})}var Jl=h(Y(),1);function gm(e){return(0,Jl.jsx)(hm,{children:(0,Jl.jsx)(Zt.Root,{...e})})}var ym=h(Y(),1);function vm({...e}){return(0,ym.jsx)(Zt.Provider,{...e})}var wm=h(ke(),1),Ql="data-wp-hash";function $l(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Bw(document)),e.__wpStyleRuntime}function Vw(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${Ql}]`))if(r.getAttribute(Ql)===t)return!0;return!1}function xm(e,t,r){if(!e.head)return;let o=$l(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Vw(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(Ql,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function Bw(e){let t=$l();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)xm(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Sm(e,t){let r=$l();r.styles.set(e,t);for(let o of r.documents.keys())xm(o,e,t)}typeof process>"u",Sm("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var jw={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Sm("ed2c39ec90","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.b20cc1690085c2f0__skeleton{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);display:block;@media (forced-colors:active){border:var(--wpds-border-width-xs,1px) solid CanvasText}}._9b143194fdb45f93__pulse{@media not (prefers-reduced-motion){animation:e2b9fe0690281bc8__skeleton-pulse 1.5s ease-in-out infinite}}@keyframes e2b9fe0690281bc8__skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}}}");var bm={skeleton:"b20cc1690085c2f0__skeleton",pulse:"_9b143194fdb45f93__pulse","skeleton-pulse":"e2b9fe0690281bc8__skeleton-pulse"},ec=(0,wm.forwardRef)(function({render:t,...r},o){return vn({render:t,ref:o,props:er({className:st(bm.skeleton,bm.pulse,jw["box-sizing"]),"aria-hidden":!0},r)})});var Cm=h(ke(),1),Rm=h(Y(),1),Em=(0,Cm.forwardRef)(({children:e,className:t,ariaLabel:r,as:o="div",...n},s)=>(0,Rm.jsx)(o,{ref:s,className:st("admin-ui-navigable-region",t),"aria-label":r,role:"region",tabIndex:"-1",...n,children:e}));Em.displayName="NavigableRegion";var Tm=Em;var Pm=h(ce(),1),{Fill:Om,Slot:km}=(0,Pm.createSlotFill)("SidebarToggle");var ar=h(Y(),1),tc="data-wp-hash";function rc(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Uw(document)),e.__wpStyleRuntime}function zw(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${tc}]`))if(r.getAttribute(tc)===t)return!0;return!1}function Fm(e,t,r){if(!e.head)return;let o=rc(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(zw(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(tc,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function Uw(e){let t=rc();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Fm(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Hw(e,t){let r=rc();r.styles.set(e,t);for(let o of r.documents.keys())Fm(o,e,t)}typeof process>"u",Hw("ddd9aab364","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var Vo={page:"_956b6df0898efed0__page",header:"_0625b55e82a0d93d__header","header-content":"a43c44d5ae28b2e8__header-content","header-actions":"b7cb5b9daf3a3b25__header-actions","header-title":"_8113be94e7caf73c__header-title","header-visual":"_9a776c7f70996f61__header-visual","sidebar-toggle-slot":"d5e0920cd15d35bc__sidebar-toggle-slot","header-subtitle":"_60fea2f6bf5319cd__header-subtitle",content:"be5e57d029ec4036__content","has-padding":"_128806d0b26e3a50__has-padding"};function Am({headingLevel:e=1,breadcrumbs:t,badges:r,visual:o,title:n,subTitle:s,actions:i,showSidebarToggle:a=!0}){let u=`h${e}`;return(0,ar.jsxs)(wn,{direction:"column",className:Vo.header,children:[(0,ar.jsxs)(wn,{className:Vo["header-content"],direction:"row",gap:"sm",justify:"space-between",children:[(0,ar.jsxs)(wn,{direction:"row",gap:"sm",align:"center",justify:"start",children:[a&&(0,ar.jsx)(km,{bubblesVirtually:!0,className:Vo["sidebar-toggle-slot"]}),o&&(0,ar.jsx)("div",{className:Vo["header-visual"],"aria-hidden":"true",children:o}),n&&(0,ar.jsx)(vi,{className:Vo["header-title"],render:(0,ar.jsx)(u,{}),variant:"heading-lg",children:n}),t,r]}),i&&(0,ar.jsx)(wn,{align:"center",className:Vo["header-actions"],direction:"row",gap:"sm",children:i})]}),s&&(0,ar.jsx)(vi,{render:(0,ar.jsx)("p",{}),variant:"body-md",className:Vo["header-subtitle"],children:s})]})}var cs=h(Y(),1),nc="data-wp-hash";function sc(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Gw(document)),e.__wpStyleRuntime}function Ww(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${nc}]`))if(r.getAttribute(nc)===t)return!0;return!1}function Im(e,t,r){if(!e.head)return;let o=sc(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Ww(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(nc,t),s.appendChild(e.createTextNode(r)),e.head.appendChild(s),n.add(t)}function Gw(e){let t=sc();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Im(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function Yw(e,t){let r=sc();r.styles.set(e,t);for(let o of r.documents.keys())Im(o,e,t)}typeof process>"u",Yw("ddd9aab364","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var oc={page:"_956b6df0898efed0__page",header:"_0625b55e82a0d93d__header","header-content":"a43c44d5ae28b2e8__header-content","header-actions":"b7cb5b9daf3a3b25__header-actions","header-title":"_8113be94e7caf73c__header-title","header-visual":"_9a776c7f70996f61__header-visual","sidebar-toggle-slot":"d5e0920cd15d35bc__sidebar-toggle-slot","header-subtitle":"_60fea2f6bf5319cd__header-subtitle",content:"be5e57d029ec4036__content","has-padding":"_128806d0b26e3a50__has-padding"};function Lm({headingLevel:e,breadcrumbs:t,badges:r,visual:o,title:n,subTitle:s,children:i,className:a,actions:u,ariaLabel:l,hasPadding:c=!1,showSidebarToggle:f=!0}){let m=st(oc.page,a);return(0,cs.jsxs)(Tm,{className:m,ariaLabel:l??(typeof n=="string"?n:""),children:[(n||t||r||u||o)&&(0,cs.jsx)(Am,{headingLevel:e,breadcrumbs:t,badges:r,visual:o,title:n,subTitle:s,actions:u,showSidebarToggle:f}),c?(0,cs.jsx)("div",{className:st(oc.content,oc["has-padding"]),children:i}):i]})}Lm.SidebarToggleFill=Om;var ic=Lm;var jn=h(xe()),uv=h(ce()),fv=h(Dm()),wa=h(nr()),dv=h(Xt()),pv=h(ke());var av=h(ce(),1),lv=h(Sn(),1),D2=h(Xt(),1),M2=h(Dt(),1),wu=h(ke(),1),V2=h(No(),1);function Cn(e,t,r){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};let o=t.pop(),n=e;for(let s of t){let i=n[s];n=n[s]=Array.isArray(i)?[...i]:{...i}}return n[o]=r,e}var vt=(e,t,r)=>{let o=Array.isArray(t)?t:t.split("."),n=e;return o.forEach(s=>{n=n?.[s]}),n??r};var qw=["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.textTransform","typography.writingMode","viewport.mobile","viewport.tablet"];function ac(e,t,r){let o=r?".blocks."+r:"",n=t?"."+t:"",s=`settings${o}${n}`,i=`settings${n}`;if(t)return vt(e,s)??vt(e,i);let a={};return qw.forEach(u=>{let l=vt(e,`settings${o}.${u}`)??vt(e,`settings.${u}`);l!==void 0&&(a=Cn(a,u.split("."),l))}),a}function lc(e,t,r,o){let n=o?".blocks."+o:"",s=t?"."+t:"",i=`settings${n}${s}`;return Cn(e,i.split("."),r)}var Gm=h(Um(),1);var Zw="1600px",Xw="320px",Kw=1,Jw=.25,Qw=.75,$w="14px";function Hm({minimumFontSize:e,maximumFontSize:t,fontSize:r,minimumViewportWidth:o=Xw,maximumViewportWidth:n=Zw,scaleFactor:s=Kw,minimumFontSizeLimit:i}){if(i=Lr(i)?i:$w,r){let b=Lr(r);if(!b?.unit||!b?.value)return null;let R=Lr(i,{coerceTo:b.unit});if(R?.value&&!e&&!t&&b?.value<=R?.value)return null;if(t||(t=`${b.value}${b.unit}`),!e){let A=b.unit==="px"?b.value:b.value*16,T=Math.min(Math.max(1-.075*Math.log2(A),Jw),Qw),_=us(b.value*T,3);R?.value&&_<R?.value?e=`${R.value}${R.unit}`:e=`${_}${b.unit}`}}let a=Lr(e),u=a?.unit||"rem",l=Lr(t,{coerceTo:u});if(!a||!l)return null;let c=Lr(e,{coerceTo:"rem"}),f=Lr(n,{coerceTo:u}),m=Lr(o,{coerceTo:u});if(!f||!m||!c)return null;let g=f.value-m.value;if(!g)return null;let d=us(m.value/100,3),v=us(d,3)+u,x=100*((l.value-a.value)/g),C=us((x||1)*s,3),w=`${c.value}${c.unit} + ((1vw - ${v}) * ${C})`;return`clamp(${e}, ${w}, ${t})`}function Lr(e,t={}){if(typeof e!="string"&&typeof e!="number")return null;isFinite(e)&&(e=`${e}px`);let{coerceTo:r,rootSizeValue:o,acceptableUnits:n}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},s=n?.join("|"),i=new RegExp(`^(\\d*\\.?\\d+)(${s}){1,1}$`),a=e.toString().match(i);if(!a||a.length<3)return null;let[,u,l]=a,c=parseFloat(u);return r==="px"&&(l==="em"||l==="rem")&&(c=c*o,l=r),l==="px"&&(r==="em"||r==="rem")&&(c=c/o,l=r),(r==="em"||r==="rem")&&(l==="em"||l==="rem")&&(l=r),l?{value:us(c,3),unit:l}:null}function us(e,t=3){let r=Math.pow(10,t);return Math.round(e*r)/r}function cc(e){let t=e?.fluid;return t===!0||t&&typeof t=="object"&&Object.keys(t).length>0}function e1(e){let t=e?.typography??{},r=e?.layout,o=Lr(r?.wideSize)?r?.wideSize:null;return cc(t)&&o?{fluid:{maxViewportWidth:o,...typeof t.fluid=="object"?t.fluid:{}}}:{fluid:t?.fluid}}function Wm(e,t){let{size:r}=e;if(!r||r==="0"||e?.fluid===!1||!cc(t?.typography)&&!cc(e))return r;let o=e1(t)?.fluid??{},n=Hm({minimumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.min,maximumFontSize:typeof e?.fluid=="boolean"?void 0:e?.fluid?.max,fontSize:r,minimumFontSizeLimit:typeof o=="object"?o?.minFontSize:void 0,maximumViewportWidth:typeof o=="object"?o?.maxViewportWidth:void 0,minimumViewportWidth:typeof o=="object"?o?.minViewportWidth:void 0});return n||r}var t1=[{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:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>Wm(e,t),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:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]},{path:["border","radiusSizes"],valueKey:"size",cssVarInfix:"border-radius",classes:[]},{path:["dimensions","dimensionSizes"],valueKey:"size",cssVarInfix:"dimension",classes:[]}];function r1(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let r=(0,Gm.getCSSValueFromRawStyle)(vt(t,e.ref));return typeof r=="object"&&r!==null&&"ref"in r&&r?.ref?void 0:r===void 0?e:r}return e}function o1(e,t){if(!e||!t||!Array.isArray(t))return e;let r=t.find(o=>o?.name===e);return r?.href?r?.href:e}function Ym(e,t){if(!e||!t)return e;let r=r1(e,t);return typeof r=="object"&&r!==null&&"url"in r&&r?.url&&(r.url=o1(r.url,t?._links?.["wp:theme-file"])),r}function qm(e,t,r=[],o="slug",n){let s=[t?vt(e,["blocks",t,...r]):void 0,vt(e,r)].filter(Boolean);for(let i of s)if(i){let a=["custom","theme","default"];for(let u of a){let l=i[u];if(l){let c=l.find(f=>f[o]===n);if(c)return o==="slug"||qm(e,t,r,"slug",c.slug)[o]===c[o]?c:void 0}}}}function n1(e,t,r,[o,n]=[]){let s=t1.find(a=>a.cssVarInfix===o);if(!s||!e.settings)return r;let i=qm(e.settings,t,s.path,"slug",n);if(i){let{valueKey:a}=s,u=i[a];return Oi(e,t,u)}return r}function s1(e,t,r,o=[]){let n=(t?vt(e?.settings??{},["blocks",t,"custom",...o]):void 0)??vt(e?.settings??{},["custom",...o]);return n?Oi(e,t,n):r}function Oi(e,t,r){if(!r||typeof r!="string")if(typeof r=="object"&&r!==null&&"ref"in r&&typeof r.ref=="string"){let l=vt(e,r.ref);if(!l||typeof l=="object"&&"ref"in l)return l;r=l}else return r;let o="var:",n="var(--wp--",s=")",i;if(r.startsWith(o))i=r.slice(o.length).split("|");else if(r.startsWith(n)&&r.endsWith(s))i=r.slice(n.length,-s.length).split("--");else return r;let[a,...u]=i;return a==="preset"?n1(e,t,r,u):a==="custom"?s1(e,t,r,u):r}function ki(e,t,r,o=!0){let n=t?"."+t:"",s=r?`styles.blocks.${r}${n}`:`styles${n}`;if(!e)return;let i=vt(e,s),a=void 0;if(i===void 0&&a){let l=!0,c=e;for(let f of s.split(".")){if(!c||typeof c!="object"||!Object.hasOwn(c,f)){l=!1;break}c=c[f]}l||(i=vt(e,a))}return o?Oi(e,r,i):i}function uc(e,t,r,o){let n=t?"."+t:"",s=o?`styles.blocks.${o}${n}`:`styles${n}`;return Cn(e,s.split("."),r)}var fc=h(Xm(),1);function fs(e,t){return typeof e!="object"||typeof t!="object"?e===t:(0,fc.default)(e?.styles,t?.styles)&&(0,fc.default)(e?.settings,t?.settings)}var rh=h($m(),1);function eh(e){return Object.prototype.toString.call(e)==="[object Object]"}function th(e){var t,r;return eh(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(eh(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}function Bo(e,t){return(0,rh.default)(e,t,{isMergeableObject:th,customMerge:r=>{if(r==="backgroundImage")return(o,n)=>n??o}})}var b1={grad:.9,turn:360,rad:360/(2*Math.PI)},Zr=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},St=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},cr=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},uh=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},oh=function(e){return{r:cr(e.r,0,255),g:cr(e.g,0,255),b:cr(e.b,0,255),a:cr(e.a)}},dc=function(e){return{r:St(e.r),g:St(e.g),b:St(e.b),a:St(e.a,3)}},w1=/^#([0-9a-f]{3,8})$/i,Fi=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},fh=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,s=Math.max(t,r,o),i=s-Math.min(t,r,o),a=i?s===t?(r-o)/i:s===r?2+(o-t)/i:4+(t-r)/i:0;return{h:60*(a<0?a+6:a),s:s?i/s*100:0,v:s/255*100,a:n}},dh=function(e){var t=e.h,r=e.s,o=e.v,n=e.a;t=t/360*6,r/=100,o/=100;var s=Math.floor(t),i=o*(1-r),a=o*(1-(t-s)*r),u=o*(1-(1-t+s)*r),l=s%6;return{r:255*[o,a,i,i,u,o][l],g:255*[u,o,o,a,i,i][l],b:255*[i,i,u,o,o,a][l],a:n}},nh=function(e){return{h:uh(e.h),s:cr(e.s,0,100),l:cr(e.l,0,100),a:cr(e.a)}},sh=function(e){return{h:St(e.h),s:St(e.s),l:St(e.l),a:St(e.a,3)}},ih=function(e){return dh((r=(t=e).s,{h:t.h,s:(r*=((o=t.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:t.a}));var t,r,o},ps=function(e){return{h:(t=fh(e)).h,s:(n=(200-(r=t.s))*(o=t.v)/100)>0&&n<200?r*o/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,o,n},x1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,R1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hc={string:[[function(e){var t=w1.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?St(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?St(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=C1.exec(e)||R1.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:oh({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=x1.exec(e)||S1.exec(e);if(!t)return null;var r,o,n=nh({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*(b1[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return ih(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,n=e.a,s=n===void 0?1:n;return Zr(t)&&Zr(r)&&Zr(o)?oh({r:Number(t),g:Number(r),b:Number(o),a:Number(s)}):null},"rgb"],[function(e){var t=e.h,r=e.s,o=e.l,n=e.a,s=n===void 0?1:n;if(!Zr(t)||!Zr(r)||!Zr(o))return null;var i=nh({h:Number(t),s:Number(r),l:Number(o),a:Number(s)});return ih(i)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,s=n===void 0?1:n;if(!Zr(t)||!Zr(r)||!Zr(o))return null;var i=(function(a){return{h:uh(a.h),s:cr(a.s,0,100),v:cr(a.v,0,100),a:cr(a.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(s)});return dh(i)},"hsv"]]},ah=function(e,t){for(var r=0;r<t.length;r++){var o=t[r][0](e);if(o)return[o,t[r][1]]}return[null,void 0]},E1=function(e){return typeof e=="string"?ah(e.trim(),hc.string):typeof e=="object"&&e!==null?ah(e,hc.object):[null,void 0]};var pc=function(e,t){var r=ps(e);return{h:r.h,s:cr(r.s+100*t,0,100),l:r.l,a:r.a}},mc=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},lh=function(e,t){var r=ps(e);return{h:r.h,s:r.s,l:cr(r.l+100*t,0,100),a:r.a}},gc=(function(){function e(t){this.parsed=E1(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return St(mc(this.rgba),2)},e.prototype.isDark=function(){return mc(this.rgba)<.5},e.prototype.isLight=function(){return mc(this.rgba)>=.5},e.prototype.toHex=function(){return t=dc(this.rgba),r=t.r,o=t.g,n=t.b,i=(s=t.a)<1?Fi(St(255*s)):"","#"+Fi(r)+Fi(o)+Fi(n)+i;var t,r,o,n,s,i},e.prototype.toRgb=function(){return dc(this.rgba)},e.prototype.toRgbString=function(){return t=dc(this.rgba),r=t.r,o=t.g,n=t.b,(s=t.a)<1?"rgba("+r+", "+o+", "+n+", "+s+")":"rgb("+r+", "+o+", "+n+")";var t,r,o,n,s},e.prototype.toHsl=function(){return sh(ps(this.rgba))},e.prototype.toHslString=function(){return t=sh(ps(this.rgba)),r=t.h,o=t.s,n=t.l,(s=t.a)<1?"hsla("+r+", "+o+"%, "+n+"%, "+s+")":"hsl("+r+", "+o+"%, "+n+"%)";var t,r,o,n,s},e.prototype.toHsv=function(){return t=fh(this.rgba),{h:St(t.h),s:St(t.s),v:St(t.v),a:St(t.a,3)};var t},e.prototype.invert=function(){return lr({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),lr(pc(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),lr(pc(this.rgba,-t))},e.prototype.grayscale=function(){return lr(pc(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),lr(lh(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),lr(lh(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?lr({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):St(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=ps(this.rgba);return typeof t=="number"?lr({h:t,s:r.s,l:r.l,a:r.a}):St(r.h)},e.prototype.isEqual=function(t){return this.toHex()===lr(t).toHex()},e})(),lr=function(e){return e instanceof gc?e:new gc(e)},ch=[],ph=function(e){e.forEach(function(t){ch.indexOf(t)<0&&(t(gc,hc),ch.push(t))})};function T1(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(r=>{let o=lr(r).toRgb();t.r.push(o.r/255),t.g.push(o.g/255),t.b.push(o.b/255),t.a.push(o.a)}),t}function mh(e){return`${e}{filter:none}`}function hh(e,t){return`${e}{filter:url(#${t})}`}function gh(e,t){let r=T1(t);return`
<svg
xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 0 0"
@@ -27,15 +27,15 @@ var ov=Object.create;var Ca=Object.defineProperty;var nv=Object.getOwnPropertyDe
<feComposite in2="SourceGraphic" operator="in"></feComposite>
</filter>
</defs>
-</svg>`}var ph={mobile:"480px",tablet:"782px"},mh=/^(\d+|\d*\.\d+)(px|em|rem)$/,mw=16;function hw(e){return"mobile"in e||"tablet"in e}function gw(e){return!e||typeof e!="object"?{}:hw(e)?e:e.settings?.viewport??{}}function yw(e){return typeof e=="string"&&mh.test(e.trim())}function mc(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(mh);if(!t)return;let r=Number.parseFloat(t[1]);return t[2]==="px"?r:r*mw}function hc(e){let t=gw(e),r={},o={};Object.keys(ph).forEach(a=>{let u=a,l=t[u],c=mc(l);c!==void 0&&yw(l)&&(r[u]=l.trim(),o[u]=c)});let n=Object.keys(r);if(!n.length)return{...ph};if(n.length===1)return r;let s=r.mobile,i=r.tablet;return o.mobile>=o.tablet?{mobile:s}:{mobile:s,tablet:i}}function hh(e){let t=hc(e),r={};return t.mobile&&(r["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(r["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),r}function Ai(e,t,r,{resolveRefs:o=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[r])return;let n=i=>{Object.keys(i).forEach(a=>{let u=i[a];if(typeof u=="object"&&u!==null)if(u.ref!==void 0)if(typeof u.ref!="string"||u.ref.trim()==="")delete i[a];else{let l=vt(e,u.ref);l!=null?i[a]=l:delete i[a]}else n(u),Object.keys(u).length===0&&delete i[a]})},s=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[r]));return o&&n(s),s}var vc="default";function bh(e){let t=e?.viewport,r=e?.pseudoState;return(!t||t===vc)&&(!r||r===vc)}function vw(e){return bh(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==vc)}function bw(e,t){let r=vw(t);return r.length?vt(e,r):e}var ww=new Set(["blocks","variations","css"]),gc=Object.freeze({value:{},sources:{}}),xw={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function go(e){let t=xw[e];return t?{...t}:null}function yo(e,t){return!e||!t?null:{styles:e,source:t}}function Sw(e){return e.join(".")}function Cw(e){return{...e}}function wh(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function yc(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function vo(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let r of Object.keys(e))if(!ww.has(r)){if(r==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}wh(e[r])||(t[r]=e[r])}return Object.keys(t).length===0?null:t}var gh=new Set(["backgroundImage"]);function xh(e,t,r,o,n,s=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let i of Object.keys(t)){let a=t[i];if(wh(a))continue;if(yc(a)){if(a.ref.trim()==="")continue;let l=vt(r,a.ref);if(l==null||yc(l))continue;a=l}let u=[...s,i];if(!gh.has(i)&&a!==null&&typeof a=="object"&&!Array.isArray(a)&&!yc(a)){let l=e[i]&&typeof e[i]=="object"&&!Array.isArray(e[i])?e[i]:{};e[i]=xh({...l},a,r,o,n,u)}else e[i]=gh.has(i)&&a!==null&&typeof a=="object"&&!Array.isArray(a)?{...a}:a,o&&n&&(n[Sw(u)]=Cw(o))}return e}function Ii(e,t){if(!e)return null;let r=bw(e,t);return r&&typeof r=="object"&&!Array.isArray(r)?r:null}var Rw=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function Ew(e){return e.startsWith("elements.")?!1:Rw.some(t=>e===t||e.startsWith(`${t}.`))}function Sh(e,t){if(!e||typeof e!="object")return;let[r,...o]=t;if(o.length===0){delete e[r];return}let n=e[r];n&&typeof n=="object"&&(Sh(n,o),Object.keys(n).length===0&&delete e[r])}function Tw(e,t){for(let r of Object.keys(t))t[r].layer==="root"&&Ew(r)&&(Sh(e,r.split(".")),delete t[r])}function _w(e,t,r){let o=e?.background?.backgroundImage;if(!o)return;let n=Hm(o,{...t,_links:r??void 0});n!==void 0&&(e.background.backgroundImage=n)}function yh(e,{blockName:t,variationName:r=null,elements:o=null,viewport:n=null,pseudoState:s=null}={}){if(!e||!e.styles||!t)return gc;let i=e.styles,a={viewport:n,pseudoState:s},u=i,l=i.blocks?.[t]??null,c=(o??[]).map(S=>i.elements?.[S]??null).filter(S=>!!S),f=r?Ai(e,t,r)??null:null,m=[yo(vo(u),go("root")),...c.map(S=>yo(vo(S),go("element"))),l?yo(vo(l),go("block")):null,f?yo(vo(f),go("blockVariation")):null];bh(a)||m.push(yo(vo(Ii(u,a)),go("root")),...c.map(S=>yo(vo(Ii(S,a)),go("element"))),l?yo(vo(Ii(l,a)),go("block")):null,f?yo(vo(Ii(f,a)),go("blockVariation")):null);let g=m.filter(Boolean);if(g.length===0)return gc;let d={},v=g.reduce((S,C)=>xh(S,C.styles,e,C.source,d),{});return Tw(v,d),_w(v,e,e._links??null),{value:v,sources:d}}var Ow={},vh=new WeakMap;function Ch(e,t={}){let r=e?.styles;if(!r||typeof r!="object")return yh(e,t);let o=vh.get(r);o||(o=new WeakMap,vh.set(r,o));let n=e?._links??Ow,s=o.get(n);s||(s=new Map,o.set(n,s));let i=`${t.elements?.join(",")??""}:${t.viewport??""}:${t.pseudoState??""}`,a=(t.blockName||"")+""+(t.variationName||"")+""+i;if(s.has(a))return s.get(a);let u=yh(e,t);return s.set(a,u),u}var Rh=h(us(),1),{lock:Eh,unlock:t5}=(0,Rh.__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");var Pn={};Eh(Pn,{getResponsiveMediaQueries:hh,getViewportBreakpoints:hc,getViewportBreakpointValueInPixels:mc,getDuotoneFilter:dh,getDuotoneStylesheet:fh,getDuotoneUnsetStylesheet:uh,resolveStyle:Ch,getVariationStyle:Ai});var bc=h(Te(),1);var Th=h(Te(),1),Ot=(0,Th.createContext)({user:{styles:{},settings:{}},base:{styles:{},settings:{}},merged:{styles:{},settings:{}},onChange:()=>{},fontLibraryEnabled:!1});var _h=h(Y(),1);function ys({children:e,value:t,baseValue:r,onChange:o,fontLibraryEnabled:n}){let s=(0,bc.useMemo)(()=>jo(r,t),[r,t]),i=(0,bc.useMemo)(()=>({user:t,base:r,merged:s,onChange:o,fontLibraryEnabled:n}),[t,r,s,o,n]);return(0,_h.jsx)(Ot.Provider,{value:i,children:e})}var Qr=h(ce(),1),Wh=h(Ce(),1);var Hw=h(Jt(),1),Uw=h(ar(),1);var Oh=h(Y(),1);function wc({className:e,...t}){return(0,Oh.jsx)(cs,{className:st(e,"global-styles-ui-icon-with-current-color"),...t})}var bo=h(ce(),1);var Ho=h(Y(),1);function Pw({icon:e,children:t,...r}){return(0,Ho.jsxs)(bo.__experimentalItem,{...r,children:[e&&(0,Ho.jsxs)(bo.__experimentalHStack,{justify:"flex-start",children:[(0,Ho.jsx)(wc,{icon:e,size:24}),(0,Ho.jsx)(bo.FlexItem,{children:t})]}),!e&&t]})}function Nr(e){return(0,Ho.jsx)(bo.Navigator.Button,{as:Pw,...e})}var Aw=h(ce(),1);var Iw=h(Ce(),1),Nh=h(Vt(),1);var xc=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Sc=function(e){return .2126*xc(e.r)+.7152*xc(e.g)+.0722*xc(e.b)};function Ph(e){e.prototype.luminance=function(){return t=Sc(this.rgba),(r=2)===void 0&&(r=0),o===void 0&&(o=Math.pow(10,r)),Math.round(o*t)/o+0;var t,r,o},e.prototype.contrast=function(t){t===void 0&&(t="#FFF");var r,o,n,s,i,a,u,l=t instanceof e?t:new e(t);return s=this.rgba,i=l.toRgb(),a=Sc(s),u=Sc(i),r=a>u?(a+.05)/(u+.05):(u+.05)/(a+.05),(o=2)===void 0&&(o=0),n===void 0&&(n=Math.pow(10,o)),Math.floor(n*r)/n+0},e.prototype.isReadable=function(t,r){return t===void 0&&(t="#FFF"),r===void 0&&(r={}),this.contrast(t)>=(a=(i=(o=r).size)===void 0?"normal":i,(s=(n=o.level)===void 0?"AA":n)==="AAA"&&a==="normal"?7:s==="AA"&&a==="large"?3:4.5);var o,n,s,i,a}}var _r=h(Te(),1),Ih=h(Jt(),1),Lh=h(ar(),1),Rc=h(Ce(),1);var mt=h(Ce(),1);var kh=h(us(),1),{lock:_5,unlock:Fe}=(0,kh.__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-ui");var{getViewportBreakpoints:F5}=Fe(Pn),A5={link:[{value:":link",label:(0,mt.__)("Link")},{value:":any-link",label:(0,mt.__)("Any Link")},{value:":visited",label:(0,mt.__)("Visited")},{value:":hover",label:(0,mt.__)("Hover")},{value:":focus",label:(0,mt.__)("Focus")},{value:":focus-visible",label:(0,mt.__)("Focus-visible")},{value:":active",label:(0,mt.__)("Active")}],button:[{value:":link",label:(0,mt.__)("Link")},{value:":any-link",label:(0,mt.__)("Any Link")},{value:":visited",label:(0,mt.__)("Visited")},{value:":hover",label:(0,mt.__)("Hover")},{value:":focus",label:(0,mt.__)("Focus")},{value:":focus-visible",label:(0,mt.__)("Focus-visible")},{value:":active",label:(0,mt.__)("Active")}]},I5={"core/button":[{value:":hover",label:(0,mt.__)("Hover")},{value:":focus",label:(0,mt.__)("Focus")},{value:":focus-visible",label:(0,mt.__)("Focus-visible")},{value:":active",label:(0,mt.__)("Active")}]},L5=[{value:"@tablet",label:(0,mt.__)("Tablet")},{value:"@mobile",label:(0,mt.__)("Mobile")}];function Cc(e,t){if(!t?.length||typeof e!="object"||!e||!Object.keys(e).length)return e;for(let r in e)t.includes(r)?delete e[r]:typeof e[r]=="object"&&Cc(e[r],t);return e}var Li=(e,t)=>{if(!e||!t?.length)return{};let r={};return Object.keys(e).forEach(o=>{if(t.includes(o))r[o]=e[o];else if(typeof e[o]=="object"){let n=Li(e[o],t);Object.keys(n).length&&(r[o]=n)}}),r};function vs(e,t){let r=Li(structuredClone(e),t);return ms(r,e)}function Fh(e,t){if(!Array.isArray(e)||!t)return null;let o=t.replace("var(","").replace(")","")?.split("--").slice(-1)[0];return e.find(n=>n.slug===o)}function Ah(e){let t=e?.settings?.typography?.fontFamilies?.theme,r=e?.settings?.typography?.fontFamilies?.custom,o=[];t&&r?o=[...t,...r]:t?o=t:r&&(o=r);let n=e?.styles?.typography?.fontFamily,s=Fh(o,n),i=e?.styles?.elements?.heading?.typography?.fontFamily,a;return i?a=Fh(o,e?.styles?.elements?.heading?.typography?.fontFamily):a=s,[s,a]}ch([Ph]);function Xe(e,t,r="merged",o=!0,n){let{user:s,base:i,merged:a,onChange:u}=(0,_r.useContext)(Ot),l=n?.split(".").filter(Boolean)??[],c=l.find(S=>S.startsWith(":")),f=l.filter(S=>!S.startsWith(":")).join("."),m=[e,f].filter(Boolean).join("."),g=a;r==="base"?g=i:r==="user"&&(g=s);let d=(0,_r.useMemo)(()=>{let S=ki(g,m,t,o);return c?S?.[c]??{}:S},[g,m,t,o,c]),v=(0,_r.useCallback)(S=>{let C=S;c&&(C={...ki(s,m,t,!1),[c]:S});let w=ac(s,m,C,t);u(w)},[s,u,m,t,c]);return[d,v]}function Je(e,t,r="merged"){let{user:o,base:n,merged:s,onChange:i}=(0,_r.useContext)(Ot),a=s;r==="base"?a=n:r==="user"&&(a=o);let u=(0,_r.useMemo)(()=>nc(a,e,t),[a,e,t]),l=(0,_r.useCallback)(c=>{let f=sc(o,e,c,t);i(f)},[o,i,e,t]);return[u,l]}var kw=[];function Fw({title:e,settings:t,styles:r}){return e===(0,Rc.__)("Default")||Object.keys(t||{}).length>0||Object.keys(r||{}).length>0}function Ni(e=[]){let{variationsFromTheme:t}=(0,Ih.useSelect)(o=>({variationsFromTheme:o(Lh.store).__experimentalGetCurrentThemeGlobalStylesVariations?.()||kw}),[]),{user:r}=(0,_r.useContext)(Ot);return(0,_r.useMemo)(()=>{let o=structuredClone(r),n=Cc(o,e);n.title=(0,Rc.__)("Default");let s=t.filter(a=>vs(a,e)).map(a=>jo(n,a)),i=[n,...s];return i?.length?i.filter(Fw):[]},[e,r,t])}var Ec=h(Y(),1),{useHasDimensionsPanel:G5,useHasTypographyPanel:Y5,useHasColorPanel:q5,useSettingsForBlockElement:Z5,useHasBackgroundPanel:X5}=Fe(Nh.privateApis);var Dr=h(ce(),1);function kn(){let[e="black"]=Xe("color.text"),[t="white"]=Xe("color.background"),[r=e]=Xe("elements.h1.color.text"),[o=r]=Xe("elements.link.color.text"),[n=o]=Xe("elements.button.color.background"),[s]=Je("color.palette.core")||[],[i]=Je("color.palette.theme")||[],[a]=Je("color.palette.custom")||[],u=(i??[]).concat(a??[]).concat(s??[]),l=u.filter(({color:m})=>m===e),c=u.filter(({color:m})=>m===n),f=l.concat(c).concat(u).filter(({color:m})=>m!==t).slice(0,2);return{paletteColors:u,highlightedColors:f}}var Vh=h(Te(),1),Bh=h(ce(),1),_c=h(Ce(),1);function Lw(e,t){return t.length===0?null:(t.sort((r,o)=>Math.abs(e-r)-Math.abs(e-o)),t[0])}function Nw(e){let t=[];return e.forEach(r=>{let o=String(r.fontWeight).split(" ");if(o.length===2){let n=parseInt(o[0]),s=parseInt(o[1]);for(let i=n;i<=s;i+=100)t.push(i)}else o.length===1&&t.push(parseInt(o[0]))}),t}function Dh(e){let t=/^(?!generic\([ a-zA-Z\-]+\)$)(?!^[a-zA-Z\-]+$).+/,r=e.trim(),o=n=>(n=n.trim(),n.match(t)?(n=n.replace(/^["']|["']$/g,""),`"${n}"`):n);return r.includes(",")?r.split(",").map(o).filter(n=>n!=="").join(", "):o(r)}function Tc(e){if(!e)return"";let t=e.trim();return t.includes(",")&&(t=(t.split(",").find(r=>r.trim()!=="")??"").trim()),t=t.replace(/^["']|["']$/g,""),window.navigator.userAgent.toLowerCase().includes("firefox")&&(t=`"${t}"`),t}function Fn(e){let t={fontFamily:Dh(e.fontFamily)};if(!("fontFace"in e)||!Array.isArray(e.fontFace))return t.fontWeight="400",t.fontStyle="normal",t;if(e.fontFace){let r=e.fontFace.filter(o=>o?.fontStyle&&o.fontStyle.toLowerCase()==="normal");if(r.length>0){t.fontStyle="normal";let o=Nw(r),n=Lw(400,o);t.fontWeight=String(n)||"400"}else t.fontStyle=e.fontFace.length&&e.fontFace[0].fontStyle||"normal",t.fontWeight=e.fontFace.length&&String(e.fontFace[0].fontWeight)||"400"}return t}function Mh(e){return{fontFamily:Dh(e.fontFamily),fontStyle:e.fontStyle||"normal",fontWeight:e.fontWeight||"400"}}var bs=h(Y(),1);function Di({fontSize:e,variation:t}){let{base:r}=(0,Vh.useContext)(Ot),o=r;t&&(o={...r,...t});let[n]=Xe("color.text"),[s,i]=Ah(o),a=s?Fn(s):{},u=i?Fn(i):{};return n&&(a.color=n,u.color=n),e&&(a.fontSize=e,u.fontSize=e),(0,bs.jsxs)(Bh.__unstableMotion.div,{animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"},style:{textAlign:"center",lineHeight:1},children:[(0,bs.jsx)("span",{style:u,children:(0,_c._x)("A","Uppercase letter A")}),(0,bs.jsx)("span",{style:a,children:(0,_c._x)("a","Lowercase letter A")})]})}var zh=h(ce(),1);var jh=h(Y(),1);function Hh({normalizedColorSwatchSize:e,ratio:t}){let{highlightedColors:r}=kn(),o=e*t;return r.map(({slug:n,color:s},i)=>(0,jh.jsx)(zh.__unstableMotion.div,{style:{height:o,width:o,background:s,borderRadius:o/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:i===1?.2:.1}},`${n}-${i}`))}var Uh=h(ce(),1),An=h(Bo(),1),Uo=h(Te(),1);var Jr=h(Y(),1),Oc=248,Pc=152,Dw={leading:!0,trailing:!0};function Mw({children:e,label:t,isFocused:r,withHoverView:o}){let[n="white"]=Xe("color.background"),[s]=Xe("color.gradient"),i=(0,An.useReducedMotion)(),[a,u]=(0,Uo.useState)(!1),[l,{width:c}]=(0,An.useResizeObserver)(),[f,m]=(0,Uo.useState)(c),[g,d]=(0,Uo.useState)(),v=(0,An.useThrottle)(m,250,Dw);(0,Uo.useLayoutEffect)(()=>{c&&v(c)},[c,v]),(0,Uo.useLayoutEffect)(()=>{let b=f?f/Oc:1,R=b-(g||0);(Math.abs(R)>.1||!g)&&d(b)},[f,g]);let S=c?c/Oc:1,C=g||S,w=!!c;return(0,Jr.jsxs)(Jr.Fragment,{children:[(0,Jr.jsx)("div",{style:{position:"relative"},children:l}),!w&&(0,Jr.jsx)(Jl,{className:"global-styles-ui-preview__wrapper",style:{aspectRatio:Oc/Pc}}),w&&(0,Jr.jsx)("div",{className:st("global-styles-ui-preview__wrapper",{"is-hoverable":o}),style:{height:Pc*C},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),tabIndex:-1,children:(0,Jr.jsx)(Uh.__unstableMotion.div,{style:{height:Pc*C,width:"100%",background:s??n},initial:"start",animate:(a||r)&&!i&&t?"hover":"start",children:[].concat(e).map((b,R)=>b({ratio:C,key:R}))})})]})}var In=Mw;var Qt=h(Y(),1),Vw={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},Bw={hover:{opacity:1},start:{opacity:.5}},zw={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};function jw({label:e,isFocused:t,withHoverView:r,variation:o}){let[n]=Xe("typography.fontWeight"),[s="serif"]=Xe("typography.fontFamily"),[i=s]=Xe("elements.h1.typography.fontFamily"),[a=n]=Xe("elements.h1.typography.fontWeight"),[u="black"]=Xe("color.text"),[l=u]=Xe("elements.h1.color.text"),{paletteColors:c}=kn();return(0,Qt.jsxs)(In,{label:e,isFocused:t,withHoverView:r,children:[({ratio:f,key:m})=>(0,Qt.jsx)(Dr.__unstableMotion.div,{variants:Vw,style:{height:"100%",overflow:"hidden"},children:(0,Qt.jsxs)(Dr.__experimentalHStack,{spacing:10*f,justify:"center",style:{height:"100%",overflow:"hidden"},children:[(0,Qt.jsx)(Di,{fontSize:65*f,variation:o}),(0,Qt.jsx)(Dr.__experimentalVStack,{spacing:4*f,children:(0,Qt.jsx)(Hh,{normalizedColorSwatchSize:32,ratio:f})})]})},m),({key:f})=>(0,Qt.jsx)(Dr.__unstableMotion.div,{variants:r?Bw:void 0,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1},children:(0,Qt.jsx)(Dr.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"},children:c.slice(0,4).map(({color:m},g)=>(0,Qt.jsx)("div",{style:{height:"100%",background:m,flexGrow:1}},g))})},f),({ratio:f,key:m})=>(0,Qt.jsx)(Dr.__unstableMotion.div,{variants:zw,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0},children:(0,Qt.jsx)(Dr.__experimentalVStack,{spacing:3*f,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*f,boxSizing:"border-box"},children:e&&(0,Qt.jsx)("div",{style:{fontSize:40*f,fontFamily:i,color:l,fontWeight:a,lineHeight:"1em",textAlign:"center"},children:e})})},m)]})}var kc=jw;var Gh=h(Y(),1);var Ac=h(Tn(),1),Ln=h(Ce(),1),Go=h(ce(),1),Ic=h(Jt(),1),wo=h(Te(),1),Mi=h(Vt(),1),Jh=h(Bo(),1);import{speak as qw}from"@wordpress/a11y";var Yh=h(Tn(),1),qh=h(Jt(),1),Ww=h(ce(),1);var Gw=h(Y(),1);function Yw(e,t){return e?.filter(r=>r.source==="block"||t.includes(r.name))||[]}function Fc(e){let t=(0,qh.useSelect)(n=>{let{getBlockStyles:s}=n(Yh.store);return s(e)},[e]),[r]=Xe("variations",e),o=Object.keys(r??{});return Yw(t,o)}var Wo=h(ce(),1),Zh=h(Ce(),1);var Xh=h(Vt(),1);var Kh=h(Y(),1),{StateControl:_I,StateControlBadges:OI}=Fe(Xh.privateApis);var Mr=h(Y(),1),{useHasDimensionsPanel:Zw,useHasTypographyPanel:Xw,useHasBorderPanel:Kw,useSettingsForBlockElement:Jw,useHasColorPanel:Qw,useHasBackgroundPanel:$w}=Fe(Mi.privateApis);function ex(){let e=(0,Ic.useSelect)(n=>n(Ac.store).getBlockTypes(),[]),t=(n,s)=>{let{core:i,noncore:a}=n;return(s.name.startsWith("core/")?i:a).push(s),n},{core:r,noncore:o}=e.reduce(t,{core:[],noncore:[]});return[...r,...o]}function tx(e){let[t]=Je("",e),r=Jw(t,e),o=Xw(r),n=Qw(r),s=$w(r),i=Kw(r),a=Zw(r),u=i||a,l=!!Fc(e)?.length;return o||n||s||u||l}function rx({block:e}){return tx(e.name)?(0,Mr.jsx)(Nr,{path:"/blocks/"+encodeURIComponent(e.name),children:(0,Mr.jsxs)(Go.__experimentalHStack,{justify:"flex-start",children:[(0,Mr.jsx)(Mi.BlockIcon,{icon:e.icon}),(0,Mr.jsx)(Go.FlexItem,{children:e.title})]})}):null}function ox({filterValue:e}){let t=ex(),r=(0,Jh.useDebounce)(qw,500),{isMatchingSearchTerm:o}=(0,Ic.useSelect)(Ac.store),n=e?t.filter(i=>o(i,e)):t,s=(0,wo.useRef)(null);return(0,wo.useEffect)(()=>{if(!e)return;let i=s.current?.childElementCount||0,a=(0,Ln.sprintf)((0,Ln._n)("%d result found.","%d results found.",i),i);r(a,"polite")},[e,r]),(0,Mr.jsx)("div",{ref:s,className:"global-styles-ui-block-types-item-list",role:"list",children:n.length===0?(0,Mr.jsx)(Go.__experimentalText,{align:"center",as:"p",children:(0,Ln.__)("No blocks found.")}):n.map(i=>(0,Mr.jsx)(rx,{block:i},"menu-itemblock-"+i.name))})}var DI=(0,wo.memo)(ox);var lx=h(Tn(),1),tg=h(Vt(),1),Lc=h(Te(),1),cx=h(Jt(),1),ux=h(ar(),1),Nc=h(ce(),1),rg=h(Ce(),1);var nx=h(Vt(),1),Qh=h(Tn(),1),sx=h(ce(),1),ix=h(Te(),1);var ax=h(Y(),1),{getViewportBreakpoints:UI,getViewportBreakpointValueInPixels:WI}=Fe(Pn);var $h=h(ce(),1),eg=h(Y(),1);function lr({children:e,level:t=2}){return(0,eg.jsx)($h.__experimentalHeading,{className:"global-styles-ui-subtitle",level:t,children:e})}var Dc=h(Y(),1);var{useHasDimensionsPanel:sL,useHasTypographyPanel:iL,useHasBorderPanel:aL,useSettingsForBlockElement:lL,useHasColorPanel:cL,useHasFiltersPanel:uL,useHasImageSettingsPanel:fL,useHasBackgroundPanel:dL,BackgroundPanel:pL,BorderPanel:mL,ColorPanel:hL,TypographyPanel:gL,DimensionsPanel:yL,FiltersPanel:vL,ImageSettingsPanel:bL,AdvancedPanel:wL}=Fe(tg.privateApis);var C2=h(Ce(),1),R2=h(ce(),1),E2=h(Te(),1);var fx=h(ce(),1);var dx=h(Y(),1);var px=h(Ce(),1),Vi=h(ce(),1);var og=h(Y(),1);var ji=h(ce(),1);var ng=h(ce(),1);var Bi=h(Y(),1),mx=({variation:e,isFocused:t,withHoverView:r})=>(0,Bi.jsx)(In,{label:e.title,isFocused:t,withHoverView:r,children:({ratio:o,key:n})=>(0,Bi.jsx)(ng.__experimentalHStack,{spacing:10*o,justify:"center",style:{height:"100%",overflow:"hidden"},children:(0,Bi.jsx)(Di,{variation:e,fontSize:85*o})},n)}),sg=mx;var Yo=h(Te(),1),ag=h(Mc(),1),zi=h(Ce(),1);var xo=h(Y(),1);function Nn({variation:e,children:t,isPill:r=!1,properties:o,showTooltip:n=!1}){let[s,i]=(0,Yo.useState)(!1),{base:a,user:u,onChange:l}=(0,Yo.useContext)(Ot),c=(0,Yo.useMemo)(()=>{let S=jo(a,e);return o&&(S=Li(S,o)),{user:e,base:a,merged:S,onChange:()=>{}}},[e,a,o]),f=()=>l(e),m=S=>{S.keyCode===ag.ENTER&&(S.preventDefault(),f())},g=(0,Yo.useMemo)(()=>ms(u,e),[u,e]),d=e?.title;e?.description&&(d=(0,zi.sprintf)((0,zi._x)("%1$s (%2$s)","variation label"),e?.title,e?.description));let v=(0,xo.jsx)("div",{className:st("global-styles-ui-variations_item",{"is-active":g}),role:"button",onClick:f,onKeyDown:m,tabIndex:0,"aria-label":d,"aria-current":g,onFocus:()=>i(!0),onBlur:()=>i(!1),children:(0,xo.jsx)("div",{className:st("global-styles-ui-variations_item-preview",{"is-pill":r}),children:t(s)})});return(0,xo.jsx)(Ot.Provider,{value:c,children:n?(0,xo.jsxs)(En.Root,{children:[(0,xo.jsx)(En.Trigger,{render:v}),(0,xo.jsx)(En.Popup,{children:e?.title})]}):v})}var qo=h(Y(),1),lg=["typography"];function Hi({title:e,gap:t=2}){let r=Ni(lg);return r?.length<=1?null:(0,qo.jsxs)(ji.__experimentalVStack,{spacing:3,children:[e&&(0,qo.jsx)(lr,{level:3,children:e}),(0,qo.jsx)(ji.__experimentalGrid,{columns:3,gap:t,className:"global-styles-ui-style-variations-container",children:r.map((o,n)=>(0,qo.jsx)(Nn,{variation:o,properties:lg,showTooltip:!0,children:()=>(0,qo.jsx)(sg,{variation:o})},n))})]})}var x2=h(Ce(),1),Ts=h(ce(),1);var S2=h(Te(),1);var $r=h(Te(),1),Eo=h(Jt(),1),Ro=h(ar(),1),jc=h(Ce(),1);var Vc=h(ug(),1),fg=h(ar(),1),dg="/wp/v2/font-families";function pg(e){let{receiveEntityRecords:t}=e.dispatch(fg.store);t("postType","wp_font_family",[],void 0,!0)}async function mg(e,t){let o=await(0,Vc.default)({path:dg,method:"POST",body:e});return pg(t),{id:o.id,...o.font_family_settings,fontFace:[]}}async function hg(e,t,r){let o={path:`${dg}/${e}/font-faces`,method:"POST",body:t},n=await(0,Vc.default)(o);return pg(r),{id:n.id,...n.font_face_settings}}var vg=h(ce(),1);var pr=h(Ce(),1),Bc=["otf","ttf","woff","woff2"],gg={100:(0,pr._x)("Thin","font weight"),200:(0,pr._x)("Extra-light","font weight"),300:(0,pr._x)("Light","font weight"),400:(0,pr._x)("Normal","font weight"),500:(0,pr._x)("Medium","font weight"),600:(0,pr._x)("Semi-bold","font weight"),700:(0,pr._x)("Bold","font weight"),800:(0,pr._x)("Extra-bold","font weight"),900:(0,pr._x)("Black","font weight")},yg={normal:(0,pr._x)("Normal","font style"),italic:(0,pr._x)("Italic","font style")};var{File:bg}=window,{kebabCase:hx}=Fe(vg.privateApis);function So(e,t={}){return!e.name&&(e.fontFamily||e.slug)&&(e.name=e.fontFamily||e.slug),{...e,...t}}function gx(e){return typeof e!="string"?!1:e!==decodeURIComponent(e)}function Ui(e){let t=gg[e.fontWeight??""]||e.fontWeight,r=e.fontStyle==="normal"?"":yg[e.fontStyle??""]||e.fontStyle;return`${t} ${r}`}function yx(e=[],t=[]){let r=new Map;for(let o of e)r.set(`${o.fontWeight}${o.fontStyle}`,o);for(let o of t)r.set(`${o.fontWeight}${o.fontStyle}`,o);return Array.from(r.values())}function wg(e=[],t=[]){let r=new Map;for(let o of e)r.set(o.slug,{...o});for(let o of t)if(r.has(o.slug)){let{fontFace:n,...s}=o,i=r.get(o.slug),a=yx(i.fontFace,n);r.set(o.slug,{...s,fontFace:a})}else r.set(o.slug,{...o});return Array.from(r.values())}async function Co(e,t,r="all"){let o;if(typeof t=="string")o=`url(${t})`;else if(t instanceof bg)o=await t.arrayBuffer();else return;let s=await new window.FontFace(Tc(e.fontFamily),o,{style:e.fontStyle,weight:String(e.fontWeight)}).load();if((r==="document"||r==="all")&&document.fonts.add(s),r==="iframe"||r==="all"){let i=document.querySelector('iframe[name="editor-canvas"]');i?.contentDocument&&i.contentDocument.fonts.add(s)}}function ws(e,t="all"){let r=o=>{o.forEach(n=>{n.family===Tc(e?.fontFamily)&&n.weight===e?.fontWeight&&n.style===e?.fontStyle&&o.delete(n)})};if((t==="document"||t==="all")&&r(document.fonts),t==="iframe"||t==="all"){let o=document.querySelector('iframe[name="editor-canvas"]');o?.contentDocument&&r(o.contentDocument.fonts)}}function Dn(e){if(!e)return;let t;if(Array.isArray(e)?t=e[0]:t=e,!t.startsWith("file:."))return gx(t)||(t=encodeURI(t)),t}function xg(e){let t=new FormData,{fontFace:r,category:o,...n}=e,s={...n,slug:hx(e.slug)};return t.append("font_family_settings",JSON.stringify(s)),t}function Sg(e){return(e?.fontFace??[]).map((r,o)=>{let n={...r},s=new FormData;if(n.file){let i=Array.isArray(n.file)?n.file:[n.file],a=[];i.forEach((u,l)=>{let c=`file-${o}-${l}`;s.append(c,u,u.name),a.push(c)}),n.src=a.length===1?a[0]:a,delete n.file,s.append("font_face_settings",JSON.stringify(n))}else s.append("font_face_settings",JSON.stringify(n));return s})}async function Cg(e,t,r){let o=[];for(let s of t)try{let i=await hg(e,s,r);o.push({status:"fulfilled",value:i})}catch(i){o.push({status:"rejected",reason:i})}let n={errors:[],successes:[]};return o.forEach((s,i)=>{if(s.status==="fulfilled"&&s.value){let a=s.value;n.successes.push(a)}else s.reason&&n.errors.push({data:t[i],message:s.reason.message})}),n}async function Rg(e){e=Array.isArray(e)?e:[e];let t=await Promise.all(e.map(async r=>fetch(new Request(r)).then(o=>{if(!o.ok)throw new Error(`Error downloading font face asset from ${r}. Server responded with status: ${o.status}`);return o.blob()}).then(o=>{let n=r.split("/").pop();return new bg([o],n,{type:o.type})})));return t.length===1?t[0]:t}function zc(e,t){return t.findIndex(r=>r.fontWeight===e.fontWeight&&r.fontStyle===e.fontStyle)!==-1}function Eg(e,t,r){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};let o=t.pop(),n=e;for(let s of t){let i=n[s];n=n[s]=Array.isArray(i)?[...i]:{...i}}return n[o]=r,e}function Wi(e,t,r=[]){let o=u=>u.slug===e.slug,n=u=>u.find(o),s=u=>u?r.filter(l=>!o(l)):[...r,e],i=u=>{let l=f=>f.fontWeight===t.fontWeight&&f.fontStyle===t.fontStyle;if(!u)return[...r,{...e,fontFace:[t]}];let c=u.fontFace||[];return c.find(l)?c=c.filter(f=>!l(f)):c=[...c,t],c.length===0?r.filter(f=>!o(f)):r.map(f=>o(f)?{...f,fontFace:c}:f)},a=n(r);return t?i(a):s(a)}var Tg=h(Y(),1),Bt=(0,$r.createContext)({});Bt.displayName="FontLibraryContext";function vx({children:e}){let t=(0,Eo.useRegistry)(),{saveEntityRecord:r,deleteEntityRecord:o}=(0,Eo.useDispatch)(Ro.store),{globalStylesId:n}=(0,Eo.useSelect)(E=>{let{__experimentalGetCurrentGlobalStylesId:L}=E(Ro.store);return{globalStylesId:L()}},[]),s=(0,Ro.useEntityRecord)("root","globalStyles",n),[i,a]=(0,$r.useState)(!1),{records:u=[],isResolving:l}=(0,Ro.useEntityRecords)("postType","wp_font_family",{_embed:!0}),c=(u||[]).map(E=>({id:E.id,...E.font_family_settings||{},fontFace:E?._embedded?.font_faces?.map(L=>L.font_face_settings)||[]}))||[],[f,m]=Je("typography.fontFamilies"),g=async E=>{if(!s.record)return;let L=s.record,$=Eg(L??{},["settings","typography","fontFamilies"],E);await r("root","globalStyles",$)},[d,v]=(0,$r.useState)(""),[S,C]=(0,$r.useState)(void 0),w=f?.theme?f.theme.map(E=>So(E,{source:"theme"})).sort((E,L)=>E.name.localeCompare(L.name)):[],b=f?.custom?f.custom.map(E=>So(E,{source:"custom"})).sort((E,L)=>E.name.localeCompare(L.name)):[],R=c?c.map(E=>So(E,{source:"custom"})).sort((E,L)=>E.name.localeCompare(L.name)):[];(0,$r.useEffect)(()=>{d||C(void 0)},[d]);let k=E=>{if(!E){C(void 0);return}let $=(E.source==="theme"?w:R).find(F=>F.slug===E.slug);C({...$||E,source:E.source})},[T]=(0,$r.useState)(new Set),_=E=>E.reduce(($,F)=>{let Z=F?.fontFace&&F.fontFace?.length>0?F?.fontFace.map(se=>`${se.fontStyle??""}${se.fontWeight??""}`):["normal400"];return $[F.slug]=Z,$},{}),A=E=>_(E==="theme"?w:b),N=(E,L,$,F)=>!L&&!$?!!A(F)[E]:!!A(F)[E]?.includes((L??"")+($??"")),q=(E,L)=>A(L)[E]||[];async function U(E){a(!0);try{let L=[],$=[];for(let Z of E){let se=!1,xe=await(0,Eo.resolveSelect)(Ro.store).getEntityRecords("postType","wp_font_family",{slug:Z.slug,per_page:1,_embed:!0}),ie=xe&&xe.length>0?xe[0]:null,ye=ie?{id:ie.id,...ie.font_family_settings,fontFace:(ie?._embedded?.font_faces??[]).map(Ie=>Ie.font_face_settings)||[]}:null;ye||(se=!0,ye=await mg(xg(Z),t));let Ee=ye.fontFace&&Z.fontFace?ye.fontFace.filter(Ie=>Ie&&Z.fontFace&&zc(Ie,Z.fontFace)):[];ye.fontFace&&Z.fontFace&&(Z.fontFace=Z.fontFace.filter(Ie=>!zc(Ie,ye.fontFace)));let ee=[],Ae=[];if(Z?.fontFace?.length??!1){let Ie=await Cg(ye.id,Sg(Z),t);ee=Ie?.successes,Ae=Ie?.errors}(ee?.length>0||Ee?.length>0)&&(ye.fontFace=[...ee],L.push(ye)),ye&&!Z?.fontFace?.length&&L.push(ye),se&&(Z?.fontFace?.length??0)>0&&ee?.length===0&&await o("postType","wp_font_family",ye.id,{force:!0}),$=$.concat(Ae)}let F=$.reduce((Z,se)=>Z.includes(se.message)?Z:[...Z,se.message],[]);if(L.length>0){let Z=W(L);await g(Z)}if(F.length>0){let Z=new Error((0,jc.__)("There was an error installing fonts."));throw Z.installationErrors=F,Z}}finally{a(!1)}}async function x(E){if(!E?.id)throw new Error((0,jc.__)("Font family to uninstall is not defined."));try{await o("postType","wp_font_family",E.id,{force:!0});let L=I(E);return await g(L),{deleted:!0}}catch(L){throw console.error("There was an error uninstalling the font family:",L),L}}let I=E=>{let $=(f?.[E.source??""]??[]).filter(Z=>Z.slug!==E.slug),F={...f,[E.source??""]:$};return m(F),E.fontFace&&E.fontFace.forEach(Z=>{ws(Z,"all")}),F},W=E=>{let L=O(E),$={...f,custom:wg(f?.custom,L)};return m($),D(L),$},O=E=>E.map(({id:L,fontFace:$,...F})=>({...F,...$&&$.length>0?{fontFace:$.map(({id:Z,...se})=>se)}:{}})),D=E=>{E.forEach(L=>{L.fontFace&&L.fontFace.forEach($=>{let F=Dn($?.src??"");F&&Co($,F,"all")})})},J=(E,L)=>{let $=f?.[E.source??""]??[],F=Wi(E,L,$);m({...f,[E.source??""]:F});let Z=N(E.slug,L?.fontStyle??"",L?.fontWeight??"",E.source??"custom");if(L&&Z)ws(L,"all");else{let se=Dn(L?.src??"");L&&se&&Co(L,se,"all")}},M=async E=>{if(!E.src)return;let L=Dn(E.src);!L||T.has(L)||(Co(E,L,"document"),T.add(L))};return(0,Tg.jsx)(Bt.Provider,{value:{libraryFontSelected:S,handleSetLibraryFontSelected:k,fontFamilies:f??{},baseCustomFonts:R,isFontActivated:N,getFontFacesActivated:q,loadFontFaceAsset:M,installFonts:U,uninstallFontFamily:x,toggleActivateFont:J,getAvailableFontsOutline:_,modalTabOpen:d,setModalTabOpen:v,saveFontFamilies:g,isResolvingLibrary:l,isInstalling:i},children:e})}var Gi=vx;var aa=h(Ce(),1),Yc=h(ce(),1),cy=h(ar(),1),b2=h(Jt(),1);var Le=h(ce(),1),Ss=h(ar(),1),Hc=h(Jt(),1),zr=h(Te(),1),it=h(Ce(),1);var Vn=h(Ce(),1),qi=h(Te(),1),mr=h(ce(),1);var _g=h(ce(),1),Vr=h(Te(),1);var Yi=h(Y(),1);function bx(e){if(e.preview)return e.preview;if(e.src)return Array.isArray(e.src)?e.src[0]:e.src}function wx(e){return"fontStyle"in e&&e.fontStyle||"fontWeight"in e&&e.fontWeight?e:"fontFace"in e&&e.fontFace&&e.fontFace.length?e.fontFace.find(t=>t.fontStyle==="normal"&&t.fontWeight==="400")||e.fontFace[0]:{fontStyle:"normal",fontWeight:"400",fontFamily:e.fontFamily}}function xx({font:e,text:t}){let r=(0,Vr.useRef)(null),o=wx(e),n=Fn(e);t=t||("name"in e?e.name:"");let s=e.preview,[i,a]=(0,Vr.useState)(!1),[u,l]=(0,Vr.useState)(!1),{loadFontFaceAsset:c}=(0,Vr.useContext)(Bt),f=s??bx(o),m=f&&f.match(/\.(png|jpg|jpeg|gif|svg)$/i),g=Mh(o),d={fontSize:"18px",lineHeight:1,opacity:u?"1":"0",...n,...g};return(0,Vr.useEffect)(()=>{let v=new window.IntersectionObserver(([S])=>{a(S.isIntersecting)},{});return r.current&&v.observe(r.current),()=>v.disconnect()},[r]),(0,Vr.useEffect)(()=>{(async()=>i&&(!m&&o.src&&await c(o),l(!0)))()},[o,i,c,m]),(0,Yi.jsx)("div",{ref:r,children:m?(0,Yi.jsx)("img",{src:f,loading:"lazy",alt:t,className:"font-library__font-variant_demo-image"}):(0,Yi.jsx)(_g.__experimentalText,{style:d,className:"font-library__font-variant_demo-text",children:t})})}var Mn=xx;var Br=h(Y(),1);function Sx({font:e,onClick:t,variantsText:r,navigatorPath:o,shouldFocus:n}){let s=e.fontFace?.length||1,i={cursor:t?"pointer":"default"},a=(0,mr.useNavigator)(),u=(0,qi.useRef)(null);return(0,qi.useEffect)(()=>{n&&u.current?.focus()},[n]),(0,Br.jsx)(mr.Button,{ref:u,__next40pxDefaultSize:!0,onClick:()=>{t(),o&&a.goTo(o)},style:i,className:"font-library__font-card",children:(0,Br.jsxs)(mr.Flex,{justify:"space-between",wrap:!1,children:[(0,Br.jsx)(Mn,{font:e}),(0,Br.jsxs)(mr.Flex,{justify:"flex-end",children:[(0,Br.jsx)(mr.FlexItem,{children:(0,Br.jsx)(mr.__experimentalText,{className:"font-library__font-card__count",children:r||(0,Vn.sprintf)((0,Vn._n)("%d variant","%d variants",s),s)})}),(0,Br.jsx)(mr.FlexItem,{children:(0,Br.jsx)(cs,{icon:(0,Vn.isRTL)()?Mo:Vo})})]})]})})}var xs=Sx;var Zi=h(Te(),1),Xi=h(ce(),1);var Zo=h(Y(),1);function Cx({face:e,font:t}){let{isFontActivated:r,toggleActivateFont:o}=(0,Zi.useContext)(Bt),n=(t?.fontFace?.length??0)>0?r(t.slug,e.fontStyle,e.fontWeight,t.source):r(t.slug,void 0,void 0,t.source),s=()=>{if((t?.fontFace?.length??0)>0){o(t,e);return}o(t)},i=t.name+" "+Ui(e),a=(0,Zi.useId)();return(0,Zo.jsx)("div",{className:"font-library__font-card",children:(0,Zo.jsxs)(Xi.Flex,{justify:"flex-start",align:"center",gap:"1rem",children:[(0,Zo.jsx)(Xi.CheckboxControl,{checked:n,onChange:s,id:a}),(0,Zo.jsx)("label",{htmlFor:a,children:(0,Zo.jsx)(Mn,{font:e,text:i,onClick:s})})]})})}var Og=Cx;function Pg(e){switch(e){case"normal":return 400;case"bold":return 700;case"bolder":return 500;case"lighter":return 300;default:return parseInt(e,10)}}function Ki(e){return e.sort((t,r)=>t.fontStyle==="normal"&&r.fontStyle!=="normal"?-1:r.fontStyle==="normal"&&t.fontStyle!=="normal"?1:t.fontStyle===r.fontStyle?Pg(t.fontWeight?.toString()??"normal")-Pg(r.fontWeight?.toString()??"normal"):!t.fontStyle||!r.fontStyle?t.fontStyle?-1:1:t.fontStyle.localeCompare(r.fontStyle))}var Re=h(Y(),1);function kg(e){if(!e)return"";let t={};for(let r of Object.keys(e).sort())t[r]=(e[r]??[]).map(o=>({slug:o.slug,fontFace:(o.fontFace??[]).map(n=>`${n.fontStyle}-${n.fontWeight}`).sort()})).sort((o,n)=>o.slug.localeCompare(n.slug));return JSON.stringify(t)}function Rx(){let{baseCustomFonts:e,libraryFontSelected:t,handleSetLibraryFontSelected:r,uninstallFontFamily:o,isResolvingLibrary:n,isInstalling:s,saveFontFamilies:i,getFontFacesActivated:a}=(0,zr.useContext)(Bt),[u,l]=Je("typography.fontFamilies"),[c,f]=(0,zr.useState)(void 0),[m,g]=(0,zr.useState)(!1),[d,v]=(0,zr.useState)(null),[S]=Je("typography.fontFamilies",void 0,"base"),C=(0,Hc.useSelect)(F=>{let{__experimentalGetCurrentGlobalStylesId:Z}=F(Ss.store);return Z()},[]),w=(0,Ss.useEntityRecord)("root","globalStyles",C),b=w?.edits?.settings?.typography?.fontFamilies,R=w?.record?.settings?.typography?.fontFamilies,k=(0,zr.useMemo)(()=>b===void 0?!1:kg(b)!==kg(R),[b,R]),T=u?.theme?u.theme.map(F=>So(F,{source:"theme"})).sort((F,Z)=>F.name.localeCompare(Z.name)):[],_=new Set(T.map(F=>F.slug)),A=S?.theme?T.concat(S.theme.filter(F=>!_.has(F.slug)).map(F=>So(F,{source:"theme"})).sort((F,Z)=>F.name.localeCompare(Z.name))):[],N=t?.source==="custom"&&t?.id,q=(0,Hc.useSelect)(F=>{let{canUser:Z}=F(Ss.store);return N&&Z("delete",{kind:"postType",name:"wp_font_family",id:N})},[N]),U=!!t&&t?.source!=="theme"&&q,x=()=>{g(!0)},I=async()=>{v(null);try{await i(u),v({type:"success",message:(0,it.__)("Font family updated successfully.")})}catch(F){v({type:"error",message:(0,it.sprintf)((0,it.__)("There was an error updating the font family. %s"),F.message)})}},W=F=>F?!F.fontFace||!F.fontFace.length?[{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"400"}]:Ki(F.fontFace):[],O=F=>{let Z=F?.fontFace&&(F?.fontFace?.length??0)>0?F.fontFace.length:1,se=a(F.slug,F.source).length;return(0,it.sprintf)((0,it.__)("%1$d of %2$d active"),se,Z)};(0,zr.useEffect)(()=>{r(t)},[]);let D=t?a(t.slug,t.source).length:0,J=t?.fontFace?.length??(t?.fontFamily?1:0),M=D>0&&D!==J,E=D===J,L=()=>{if(!t||!t?.source)return;let F=u?.[t.source]?.filter(se=>se.slug!==t.slug)??[],Z=E?F:[...F,t];l({...u,[t.source]:Z}),t.fontFace&&t.fontFace.forEach(se=>{if(E)ws(se,"all");else{let xe=Dn(se?.src??"");xe&&Co(se,xe,"all")}})},$=A.length>0||e.length>0;return(0,Re.jsxs)("div",{className:"font-library__tabpanel-layout",children:[n&&(0,Re.jsx)("div",{className:"font-library__loading",children:(0,Re.jsx)(Le.ProgressBar,{})}),!n&&(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsxs)(Le.Navigator,{initialPath:t?"/fontFamily":"/",children:[(0,Re.jsx)(Le.Navigator.Screen,{path:"/",children:(0,Re.jsxs)(Le.__experimentalVStack,{spacing:"8",children:[d&&(0,Re.jsx)(Le.Notice,{status:d.type,onRemove:()=>v(null),children:d.message}),!$&&(0,Re.jsx)(Le.__experimentalText,{as:"p",children:(0,it.__)("No fonts installed.")}),A.length>0&&(0,Re.jsxs)(Le.__experimentalVStack,{children:[(0,Re.jsx)("h2",{className:"font-library__fonts-title",children:(0,it._x)("Theme","font source")}),(0,Re.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:A.map(F=>(0,Re.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Re.jsx)(xs,{font:F,navigatorPath:"/fontFamily",variantsText:O(F),shouldFocus:F.slug===c,onClick:()=>{v(null),r(F)}})},F.slug))})]}),e.length>0&&(0,Re.jsxs)(Le.__experimentalVStack,{children:[(0,Re.jsx)("h2",{className:"font-library__fonts-title",children:(0,it._x)("Custom","font source")}),(0,Re.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:e.map(F=>(0,Re.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Re.jsx)(xs,{font:F,navigatorPath:"/fontFamily",variantsText:O(F),shouldFocus:F.slug===c,onClick:()=>{v(null),r(F)}})},F.slug))})]})]})}),(0,Re.jsxs)(Le.Navigator.Screen,{path:"/fontFamily",children:[t&&(0,Re.jsx)(Ex,{font:t,isOpen:m,setIsOpen:g,setNotice:v,uninstallFontFamily:o,handleSetLibraryFontSelected:r}),(0,Re.jsxs)(Le.Flex,{justify:"flex-start",children:[(0,Re.jsx)(Le.Navigator.BackButton,{icon:(0,it.isRTL)()?Vo:Mo,size:"small",onClick:()=>{f(t?.slug),r(void 0),v(null)},label:(0,it.__)("Back")}),(0,Re.jsx)(Le.__experimentalHeading,{level:2,size:13,className:"global-styles-ui-header",children:t?.name})]}),d&&(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)(Le.__experimentalSpacer,{margin:1}),(0,Re.jsx)(Le.Notice,{status:d.type,onRemove:()=>v(null),children:d.message}),(0,Re.jsx)(Le.__experimentalSpacer,{margin:1})]}),(0,Re.jsx)(Le.__experimentalSpacer,{margin:4}),(0,Re.jsx)(Le.__experimentalText,{children:(0,it.__)("Choose font variants. Keep in mind that too many variants could make your site slower.")}),(0,Re.jsx)(Le.__experimentalSpacer,{margin:4}),(0,Re.jsxs)(Le.__experimentalVStack,{spacing:0,children:[(0,Re.jsx)(Le.CheckboxControl,{className:"font-library__select-all",label:(0,it.__)("Select all"),checked:E,onChange:L,indeterminate:M}),(0,Re.jsx)(Le.__experimentalSpacer,{margin:8}),(0,Re.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:t&&W(t).map((F,Z)=>(0,Re.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Re.jsx)(Og,{font:t,face:F},`face${Z}`)},`face${Z}`))})]})]})]}),(0,Re.jsxs)(Le.__experimentalHStack,{justify:"flex-end",className:"font-library__footer",children:[s&&(0,Re.jsx)(Le.ProgressBar,{}),U&&(0,Re.jsx)(Le.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"tertiary",onClick:x,children:(0,it.__)("Delete")}),(0,Re.jsx)(Le.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:I,disabled:!k,accessibleWhenDisabled:!0,children:(0,it.__)("Update")})]})]})]})}function Ex({font:e,isOpen:t,setIsOpen:r,setNotice:o,uninstallFontFamily:n,handleSetLibraryFontSelected:s}){let i=(0,Le.useNavigator)(),a=async()=>{o(null),r(!1);try{await n(e),i.goBack(),s(void 0),o({type:"success",message:(0,it.__)("Font family uninstalled successfully.")})}catch(l){o({type:"error",message:(0,it.__)("There was an error uninstalling the font family.")+l.message})}},u=()=>{r(!1)};return(0,Re.jsx)(Le.__experimentalConfirmDialog,{isOpen:t,cancelButtonText:(0,it.__)("Cancel"),confirmButtonText:(0,it.__)("Delete"),onCancel:u,onConfirm:a,size:"medium",children:e&&(0,it.sprintf)((0,it.__)('Are you sure you want to delete "%s" font and all its variants and assets?'),e.name)})}var Ji=Rx;var wt=h(Te(),1),Se=h(ce(),1),Vg=h(Bo(),1),rt=h(Ce(),1);var Bg=h(ar(),1);function Fg(e,t){let{category:r,search:o}=t,n=e||[];return r&&r!=="all"&&(n=n.filter(s=>s.categories&&s.categories.indexOf(r)!==-1)),o&&(n=n.filter(s=>s.font_family_settings&&s.font_family_settings.name.toLowerCase().includes(o.toLowerCase()))),n}function Ag(e){return e.reduce((t,r)=>({...t,[r.slug]:(r?.fontFace||[]).reduce((o,n)=>({...o,[`${n.fontStyle}-${n.fontWeight}`]:!0}),{})}),{})}function Ig(e,t,r){return t?!!r[e]?.[`${t.fontStyle}-${t.fontWeight}`]:!!r[e]}var Cs=h(Ce(),1),zt=h(ce(),1),hr=h(Y(),1);function Tx(){let e=()=>{window.localStorage.setItem("wp-font-library-google-fonts-permission","true"),window.dispatchEvent(new Event("storage"))};return(0,hr.jsx)("div",{className:"font-library__google-fonts-confirm",children:(0,hr.jsx)(zt.Card,{children:(0,hr.jsxs)(zt.CardBody,{children:[(0,hr.jsx)(zt.__experimentalHeading,{level:2,children:(0,Cs.__)("Connect to Google Fonts")}),(0,hr.jsx)(zt.__experimentalSpacer,{margin:6}),(0,hr.jsx)(zt.__experimentalText,{as:"p",children:(0,Cs.__)("To install fonts from Google you must give permission to connect directly to Google servers. The fonts you install will be downloaded from Google and stored on your site. Your site will then use these locally-hosted fonts.")}),(0,hr.jsx)(zt.__experimentalSpacer,{margin:3}),(0,hr.jsx)(zt.__experimentalText,{as:"p",children:(0,Cs.__)("You can alternatively upload files directly on the Upload tab.")}),(0,hr.jsx)(zt.__experimentalSpacer,{margin:6}),(0,hr.jsx)(zt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:e,children:(0,Cs.__)("Allow access to Google Fonts")})]})})})}var Lg=Tx;var Ng=h(Te(),1),Qi=h(ce(),1);var Xo=h(Y(),1);function _x({face:e,font:t,handleToggleVariant:r,selected:o}){let n=()=>{if(t?.fontFace){r(t,e);return}r(t)},s=t.name+" "+Ui(e),i=(0,Ng.useId)();return(0,Xo.jsx)("div",{className:"font-library__font-card",children:(0,Xo.jsxs)(Qi.Flex,{justify:"flex-start",align:"center",gap:"1rem",children:[(0,Xo.jsx)(Qi.CheckboxControl,{checked:o,onChange:n,id:i}),(0,Xo.jsx)("label",{htmlFor:i,children:(0,Xo.jsx)(Mn,{font:e,text:s,onClick:n})})]})})}var Dg=_x;var he=h(Y(),1),Ox={slug:"all",name:(0,rt._x)("All","font categories")},Mg="wp-font-library-google-fonts-permission",Px=500;function kx({slug:e}){let t=e==="google-fonts",r=()=>window.localStorage.getItem(Mg)==="true",[o,n]=(0,wt.useState)(null),[s,i]=(0,wt.useState)(void 0),[a,u]=(0,wt.useState)(null),[l,c]=(0,wt.useState)([]),[f,m]=(0,wt.useState)(1),[g,d]=(0,wt.useState)({}),[v,S]=(0,wt.useState)(t&&!r()),{installFonts:C,isInstalling:w}=(0,wt.useContext)(Bt),{record:b,isResolving:R}=(0,Bg.useEntityRecord)("root","fontCollection",e);(0,wt.useEffect)(()=>{let ee=()=>{S(t&&!r())};return ee(),window.addEventListener("storage",ee),()=>window.removeEventListener("storage",ee)},[e,t]);let k=()=>{window.localStorage.setItem(Mg,"false"),window.dispatchEvent(new Event("storage"))};(0,wt.useEffect)(()=>{n(null)},[e]),(0,wt.useEffect)(()=>{c([])},[o]);let T=(0,wt.useMemo)(()=>b?.font_families??[],[b]),_=b?.categories??[],A=[Ox,..._],N=(0,wt.useMemo)(()=>Fg(T,g),[T,g]),q=Math.max(window.innerHeight,Px),U=Math.floor((q-417)/61),x=Math.ceil(N.length/U),I=(f-1)*U,W=f*U,O=N.slice(I,W),D=ee=>{d({...g,category:ee}),m(1)},M=(0,Vg.debounce)(ee=>{d({...g,search:ee}),m(1)},300),E=(ee,Ae)=>{let Ie=Wi(ee,Ae,l);c(Ie)},L=Ag(l),$=()=>{c([])},F=l.length>0?l[0]?.fontFace?.length??0:0,Z=F>0&&F!==o?.fontFace?.length,se=F===o?.fontFace?.length,xe=()=>{let ee=[];!se&&o&&ee.push(o),c(ee)},ie=async()=>{u(null);let ee=l[0];try{ee?.fontFace&&await Promise.all(ee.fontFace.map(async Ae=>{Ae.src&&(Ae.file=await Rg(Ae.src))}))}catch{u({type:"error",message:(0,rt.__)("Error installing the fonts, could not be downloaded.")});return}try{await C([ee]),u({type:"success",message:(0,rt.__)("Fonts were installed successfully.")})}catch(Ae){u({type:"error",message:Ae.message})}$()},ye=ee=>ee?!ee.fontFace||!ee.fontFace.length?[{fontFamily:ee.fontFamily,fontStyle:"normal",fontWeight:"400"}]:Ki(ee.fontFace):[];if(v)return(0,he.jsx)(Lg,{});let Ee=e==="google-fonts"&&!v&&!o;return(0,he.jsxs)("div",{className:"font-library__tabpanel-layout",children:[R&&(0,he.jsx)("div",{className:"font-library__loading",children:(0,he.jsx)(Se.ProgressBar,{})}),!R&&b&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsxs)(Se.Navigator,{initialPath:"/",className:"font-library__tabpanel-layout",children:[(0,he.jsxs)(Se.Navigator.Screen,{path:"/",children:[(0,he.jsxs)(Se.__experimentalHStack,{justify:"space-between",children:[(0,he.jsxs)(Se.__experimentalVStack,{children:[(0,he.jsx)(Se.__experimentalHeading,{level:2,size:13,children:b.name}),(0,he.jsx)(Se.__experimentalText,{children:b.description})]}),Ee&&(0,he.jsx)(Se.DropdownMenu,{icon:Dl,label:(0,rt.__)("Actions"),popoverProps:{position:"bottom left"},controls:[{title:(0,rt.__)("Revoke access to Google Fonts"),onClick:k}]})]}),(0,he.jsx)(Se.__experimentalSpacer,{margin:4}),(0,he.jsxs)(Se.__experimentalHStack,{spacing:4,justify:"space-between",children:[(0,he.jsx)(Se.SearchControl,{className:"font-library__search",value:g.search,placeholder:(0,rt.__)("Font name\u2026"),label:(0,rt.__)("Search"),onChange:M,hideLabelFromVision:!1}),(0,he.jsx)(Se.SelectControl,{label:(0,rt.__)("Category"),value:g.category,onChange:D,children:A&&A.map(ee=>(0,he.jsx)("option",{value:ee.slug,children:ee.name},ee.slug))})]}),(0,he.jsx)(Se.__experimentalSpacer,{margin:4}),!!b?.font_families?.length&&!N.length&&(0,he.jsx)(Se.__experimentalText,{children:(0,rt.__)("No fonts found. Try with a different search term.")}),(0,he.jsx)("div",{className:"font-library__fonts-grid__main",children:(0,he.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:O.map(ee=>(0,he.jsx)("li",{className:"font-library__fonts-list-item",children:(0,he.jsx)(xs,{font:ee.font_family_settings,navigatorPath:"/fontFamily",shouldFocus:ee.font_family_settings.slug===s,onClick:()=>{n(ee.font_family_settings)}})},ee.font_family_settings.slug))})})]}),(0,he.jsxs)(Se.Navigator.Screen,{path:"/fontFamily",children:[(0,he.jsxs)(Se.Flex,{justify:"flex-start",children:[(0,he.jsx)(Se.Navigator.BackButton,{icon:(0,rt.isRTL)()?Vo:Mo,size:"small",onClick:()=>{i(o?.slug),n(null),u(null)},label:(0,rt.__)("Back")}),(0,he.jsx)(Se.__experimentalHeading,{level:2,size:13,className:"global-styles-ui-header",children:o?.name})]}),a&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(Se.__experimentalSpacer,{margin:1}),(0,he.jsx)(Se.Notice,{status:a.type,onRemove:()=>u(null),children:a.message}),(0,he.jsx)(Se.__experimentalSpacer,{margin:1})]}),(0,he.jsx)(Se.__experimentalSpacer,{margin:4}),(0,he.jsx)(Se.__experimentalText,{children:(0,rt.__)("Select font variants to install.")}),(0,he.jsx)(Se.__experimentalSpacer,{margin:4}),(0,he.jsx)(Se.CheckboxControl,{className:"font-library__select-all",label:(0,rt.__)("Select all"),checked:se,onChange:xe,indeterminate:Z}),(0,he.jsx)(Se.__experimentalVStack,{spacing:0,children:(0,he.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:o&&ye(o).map((ee,Ae)=>(0,he.jsx)("li",{className:"font-library__fonts-list-item",children:(0,he.jsx)(Dg,{font:o,face:ee,handleToggleVariant:E,selected:Ig(o.slug,o.fontFace?ee:null,L)})},`face${Ae}`))})}),(0,he.jsx)(Se.__experimentalSpacer,{margin:16})]})]}),o&&(0,he.jsx)(Se.Flex,{justify:"flex-end",className:"font-library__footer",children:(0,he.jsx)(Se.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:ie,isBusy:w,disabled:l.length===0||w,accessibleWhenDisabled:!0,children:(0,rt.__)("Install")})}),!o&&(0,he.jsxs)(Se.__experimentalHStack,{expanded:!1,className:"font-library__footer",justify:"end",spacing:6,children:[(0,he.jsx)(Se.__experimentalHStack,{justify:"flex-start",expanded:!1,spacing:1,className:"font-library__page-selection",children:(0,wt.createInterpolateElement)((0,rt.sprintf)((0,rt._x)("<div>Page</div>%1$s<div>of %2$d</div>","paging"),"<CurrentPage />",x),{div:(0,he.jsx)("div",{"aria-hidden":!0}),CurrentPage:(0,he.jsx)(Se.SelectControl,{"aria-label":(0,rt.__)("Current page"),value:f.toString(),options:[...Array(x)].map((ee,Ae)=>({label:(Ae+1).toString(),value:(Ae+1).toString()})),onChange:ee=>m(parseInt(ee)),size:"small",variant:"minimal"})})}),(0,he.jsxs)(Se.__experimentalHStack,{expanded:!1,spacing:1,children:[(0,he.jsx)(Se.Button,{onClick:()=>m(f-1),disabled:f===1,accessibleWhenDisabled:!0,label:(0,rt.__)("Previous page"),icon:(0,rt.isRTL)()?Ri:Ti,showTooltip:!0,size:"compact",tooltipPosition:"top"}),(0,he.jsx)(Se.Button,{onClick:()=>m(f+1),disabled:f===x,accessibleWhenDisabled:!0,label:(0,rt.__)("Next page"),icon:(0,rt.isRTL)()?Ti:Ri,showTooltip:!0,size:"compact",tooltipPosition:"top"})]})]})]})]})}var $i=kx;var Bn=h(Ce(),1),It=h(ce(),1),Es=h(Te(),1);var ea=(e=>typeof Ut<"u"?Ut:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ut<"u"?Ut:t)[r]}):e)(function(e){if(typeof Ut<"u")return Ut.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),zg=(function(){var e,t,r;return(function(){function o(n,s,i){function a(c,f){if(!s[c]){if(!n[c]){var m=typeof ea=="function"&&ea;if(!f&&m)return m(c,!0);if(u)return u(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var d=s[c]={exports:{}};n[c][0].call(d.exports,function(v){var S=n[c][1][v];return a(S||v)},d,d.exports,o,n,s,i)}return s[c].exports}for(var u=typeof ea=="function"&&ea,l=0;l<i.length;l++)a(i[l]);return a}return o})()({1:[function(o,n,s){var i=4096,a=2*i+32,u=2*i-1,l=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function c(f){this.buf_=new Uint8Array(a),this.input_=f,this.reset()}c.READ_SIZE=i,c.IBUF_MASK=u,c.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var f=0;f<4;f++)this.val_|=this.buf_[this.pos_]<<8*f,++this.pos_;return this.bit_end_pos_>0},c.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var f=this.buf_ptr_,m=this.input_.read(this.buf_,f,i);if(m<0)throw new Error("Unexpected end of input");if(m<i){this.eos_=1;for(var g=0;g<32;g++)this.buf_[f+m+g]=0}if(f===0){for(var g=0;g<32;g++)this.buf_[(i<<1)+g]=this.buf_[g];this.buf_ptr_=i}else this.buf_ptr_=0;this.bit_end_pos_+=m<<3}},c.prototype.fillBitWindow=function(){for(;this.bit_pos_>=8;)this.val_>>>=8,this.val_|=this.buf_[this.pos_&u]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},c.prototype.readBits=function(f){32-this.bit_pos_<f&&this.fillBitWindow();var m=this.val_>>>this.bit_pos_&l[f];return this.bit_pos_+=f,m},n.exports=c},{}],2:[function(o,n,s){var i=0,a=1,u=2,l=3;s.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),s.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},{}],3:[function(o,n,s){var i=o("./streams").BrotliInput,a=o("./streams").BrotliOutput,u=o("./bit_reader"),l=o("./dictionary"),c=o("./huffman").HuffmanCode,f=o("./huffman").BrotliBuildHuffmanTable,m=o("./context"),g=o("./prefix"),d=o("./transform"),v=8,S=16,C=256,w=704,b=26,R=6,k=2,T=8,_=255,A=1080,N=18,q=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),U=16,x=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),I=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),W=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function O(G){var j;return G.readBits(1)===0?16:(j=G.readBits(3),j>0?17+j:(j=G.readBits(3),j>0?8+j:17))}function D(G){if(G.readBits(1)){var j=G.readBits(3);return j===0?1:G.readBits(j)+(1<<j)}return 0}function J(){this.meta_block_length=0,this.input_end=0,this.is_uncompressed=0,this.is_metadata=!1}function M(G){var j=new J,X,H,K;if(j.input_end=G.readBits(1),j.input_end&&G.readBits(1))return j;if(X=G.readBits(2)+4,X===7){if(j.is_metadata=!0,G.readBits(1)!==0)throw new Error("Invalid reserved bit");if(H=G.readBits(2),H===0)return j;for(K=0;K<H;K++){var fe=G.readBits(8);if(K+1===H&&H>1&&fe===0)throw new Error("Invalid size byte");j.meta_block_length|=fe<<K*8}}else for(K=0;K<X;++K){var ue=G.readBits(4);if(K+1===X&&X>4&&ue===0)throw new Error("Invalid size nibble");j.meta_block_length|=ue<<K*4}return++j.meta_block_length,!j.input_end&&!j.is_metadata&&(j.is_uncompressed=G.readBits(1)),j}function E(G,j,X){var H=j,K;return X.fillBitWindow(),j+=X.val_>>>X.bit_pos_&_,K=G[j].bits-T,K>0&&(X.bit_pos_+=T,j+=G[j].value,j+=X.val_>>>X.bit_pos_&(1<<K)-1),X.bit_pos_+=G[j].bits,G[j].value}function L(G,j,X,H){for(var K=0,fe=v,ue=0,de=0,pe=32768,me=[],V=0;V<32;V++)me.push(new c(0,0));for(f(me,0,5,G,N);K<j&&pe>0;){var re=0,De;if(H.readMoreInput(),H.fillBitWindow(),re+=H.val_>>>H.bit_pos_&31,H.bit_pos_+=me[re].bits,De=me[re].value&255,De<S)ue=0,X[K++]=De,De!==0&&(fe=De,pe-=32768>>De);else{var Ue=De-14,ot,ut,je=0;if(De===S&&(je=fe),de!==je&&(ue=0,de=je),ot=ue,ue>0&&(ue-=2,ue<<=Ue),ue+=H.readBits(Ue)+3,ut=ue-ot,K+ut>j)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var We=0;We<ut;We++)X[K+We]=de;K+=ut,de!==0&&(pe-=ut<<15-de)}}if(pe!==0)throw new Error("[ReadHuffmanCodeLengths] space = "+pe);for(;K<j;K++)X[K]=0}function $(G,j,X,H){var K=0,fe,ue=new Uint8Array(G);if(H.readMoreInput(),fe=H.readBits(2),fe===1){for(var de,pe=G-1,me=0,V=new Int32Array(4),re=H.readBits(2)+1;pe;)pe>>=1,++me;for(de=0;de<re;++de)V[de]=H.readBits(me)%G,ue[V[de]]=2;switch(ue[V[0]]=1,re){case 1:break;case 3:if(V[0]===V[1]||V[0]===V[2]||V[1]===V[2])throw new Error("[ReadHuffmanCode] invalid symbols");break;case 2:if(V[0]===V[1])throw new Error("[ReadHuffmanCode] invalid symbols");ue[V[1]]=1;break;case 4:if(V[0]===V[1]||V[0]===V[2]||V[0]===V[3]||V[1]===V[2]||V[1]===V[3]||V[2]===V[3])throw new Error("[ReadHuffmanCode] invalid symbols");H.readBits(1)?(ue[V[2]]=3,ue[V[3]]=3):ue[V[0]]=2;break}}else{var de,De=new Uint8Array(N),Ue=32,ot=0,ut=[new c(2,0),new c(2,4),new c(2,3),new c(3,2),new c(2,0),new c(2,4),new c(2,3),new c(4,1),new c(2,0),new c(2,4),new c(2,3),new c(3,2),new c(2,0),new c(2,4),new c(2,3),new c(4,5)];for(de=fe;de<N&&Ue>0;++de){var je=q[de],We=0,nt;H.fillBitWindow(),We+=H.val_>>>H.bit_pos_&15,H.bit_pos_+=ut[We].bits,nt=ut[We].value,De[je]=nt,nt!==0&&(Ue-=32>>nt,++ot)}if(!(ot===1||Ue===0))throw new Error("[ReadHuffmanCode] invalid num_codes or space");L(De,G,ue,H)}if(K=f(j,X,T,ue,G),K===0)throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return K}function F(G,j,X){var H,K;return H=E(G,j,X),K=g.kBlockLengthPrefixCode[H].nbits,g.kBlockLengthPrefixCode[H].offset+X.readBits(K)}function Z(G,j,X){var H;return G<U?(X+=x[G],X&=3,H=j[X]+I[G]):H=G-U+1,H}function se(G,j){for(var X=G[j],H=j;H;--H)G[H]=G[H-1];G[0]=X}function xe(G,j){var X=new Uint8Array(256),H;for(H=0;H<256;++H)X[H]=H;for(H=0;H<j;++H){var K=G[H];G[H]=X[K],K&&se(X,K)}}function ie(G,j){this.alphabet_size=G,this.num_htrees=j,this.codes=new Array(j+j*W[G+31>>>5]),this.htrees=new Uint32Array(j)}ie.prototype.decode=function(G){var j,X,H=0;for(j=0;j<this.num_htrees;++j)this.htrees[j]=H,X=$(this.alphabet_size,this.codes,H,G),H+=X};function ye(G,j){var X={num_htrees:null,context_map:null},H,K=0,fe,ue;j.readMoreInput();var de=X.num_htrees=D(j)+1,pe=X.context_map=new Uint8Array(G);if(de<=1)return X;for(H=j.readBits(1),H&&(K=j.readBits(4)+1),fe=[],ue=0;ue<A;ue++)fe[ue]=new c(0,0);for($(de+K,fe,0,j),ue=0;ue<G;){var me;if(j.readMoreInput(),me=E(fe,0,j),me===0)pe[ue]=0,++ue;else if(me<=K)for(var V=1+(1<<me)+j.readBits(me);--V;){if(ue>=G)throw new Error("[DecodeContextMap] i >= context_map_size");pe[ue]=0,++ue}else pe[ue]=me-K,++ue}return j.readBits(1)&&xe(pe,G),X}function Ee(G,j,X,H,K,fe,ue){var de=X*2,pe=X,me=E(j,X*A,ue),V;me===0?V=K[de+(fe[pe]&1)]:me===1?V=K[de+(fe[pe]-1&1)]+1:V=me-2,V>=G&&(V-=G),H[X]=V,K[de+(fe[pe]&1)]=V,++fe[pe]}function ee(G,j,X,H,K,fe){var ue=K+1,de=X&K,pe=fe.pos_&u.IBUF_MASK,me;if(j<8||fe.bit_pos_+(j<<3)<fe.bit_end_pos_){for(;j-- >0;)fe.readMoreInput(),H[de++]=fe.readBits(8),de===ue&&(G.write(H,ue),de=0);return}if(fe.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;fe.bit_pos_<32;)H[de]=fe.val_>>>fe.bit_pos_,fe.bit_pos_+=8,++de,--j;if(me=fe.bit_end_pos_-fe.bit_pos_>>3,pe+me>u.IBUF_MASK){for(var V=u.IBUF_MASK+1-pe,re=0;re<V;re++)H[de+re]=fe.buf_[pe+re];me-=V,de+=V,j-=V,pe=0}for(var re=0;re<me;re++)H[de+re]=fe.buf_[pe+re];if(de+=me,j-=me,de>=ue){G.write(H,ue),de-=ue;for(var re=0;re<de;re++)H[re]=H[ue+re]}for(;de+j>=ue;){if(me=ue-de,fe.input_.read(H,de,me)<me)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");G.write(H,ue),j-=me,de=0}if(fe.input_.read(H,de,j)<j)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");fe.reset()}function Ae(G){var j=G.bit_pos_+7&-8,X=G.readBits(j-G.bit_pos_);return X==0}function Ie(G){var j=new i(G),X=new u(j);O(X);var H=M(X);return H.meta_block_length}s.BrotliDecompressedSize=Ie;function ke(G,j){var X=new i(G);j==null&&(j=Ie(G));var H=new Uint8Array(j),K=new a(H);return He(X,K),K.pos<K.buffer.length&&(K.buffer=K.buffer.subarray(0,K.pos)),K.buffer}s.BrotliDecompressBuffer=ke;function He(G,j){var X,H=0,K=0,fe=0,ue,de=0,pe,me,V,re,De=[16,15,11,4],Ue=0,ot=0,ut=0,je=[new ie(0,0),new ie(0,0),new ie(0,0)],We,nt,ve,Or=128+u.READ_SIZE;ve=new u(G),fe=O(ve),ue=(1<<fe)-16,pe=1<<fe,me=pe-1,V=new Uint8Array(pe+Or+l.maxDictionaryWordLength),re=pe,We=[],nt=[];for(var yr=0;yr<3*A;yr++)We[yr]=new c(0,0),nt[yr]=new c(0,0);for(;!K;){var $e=0,Hr,Et=[1<<28,1<<28,1<<28],Ne=[0],qe=[1,1,1],P=[0,1,0,1,0,1],Q=[0],y,oe,Be,te,ht=null,ne=null,Qe,B=null,z,vr=0,Ge=null,le=0,Ur=0,tr=null,et=0,Ve=0,ft=0,gt,xt;for(X=0;X<3;++X)je[X].codes=null,je[X].htrees=null;ve.readMoreInput();var Wr=M(ve);if($e=Wr.meta_block_length,H+$e>j.buffer.length){var To=new Uint8Array(H+$e);To.set(j.buffer),j.buffer=To}if(K=Wr.input_end,Hr=Wr.is_uncompressed,Wr.is_metadata){for(Ae(ve);$e>0;--$e)ve.readMoreInput(),ve.readBits(8);continue}if($e!==0){if(Hr){ve.bit_pos_=ve.bit_pos_+7&-8,ee(j,$e,H,V,me,ve),H+=$e;continue}for(X=0;X<3;++X)qe[X]=D(ve)+1,qe[X]>=2&&($(qe[X]+2,We,X*A,ve),$(b,nt,X*A,ve),Et[X]=F(nt,X*A,ve),Q[X]=1);for(ve.readMoreInput(),y=ve.readBits(2),oe=U+(ve.readBits(4)<<y),Be=(1<<y)-1,te=oe+(48<<y),ne=new Uint8Array(qe[0]),X=0;X<qe[0];++X)ve.readMoreInput(),ne[X]=ve.readBits(2)<<1;var at=ye(qe[0]<<R,ve);Qe=at.num_htrees,ht=at.context_map;var Lt=ye(qe[2]<<k,ve);for(z=Lt.num_htrees,B=Lt.context_map,je[0]=new ie(C,Qe),je[1]=new ie(w,qe[1]),je[2]=new ie(te,z),X=0;X<3;++X)je[X].decode(ve);for(Ge=0,tr=0,gt=ne[Ne[0]],Ve=m.lookupOffsets[gt],ft=m.lookupOffsets[gt+1],xt=je[1].htrees[0];$e>0;){var dt,Nt,jt,$o,wa,Ht,rr,Gr,Wn,en,Gn;for(ve.readMoreInput(),Et[1]===0&&(Ee(qe[1],We,1,Ne,P,Q,ve),Et[1]=F(nt,A,ve),xt=je[1].htrees[Ne[1]]),--Et[1],dt=E(je[1].codes,xt,ve),Nt=dt>>6,Nt>=2?(Nt-=2,rr=-1):rr=0,jt=g.kInsertRangeLut[Nt]+(dt>>3&7),$o=g.kCopyRangeLut[Nt]+(dt&7),wa=g.kInsertLengthPrefixCode[jt].offset+ve.readBits(g.kInsertLengthPrefixCode[jt].nbits),Ht=g.kCopyLengthPrefixCode[$o].offset+ve.readBits(g.kCopyLengthPrefixCode[$o].nbits),ot=V[H-1&me],ut=V[H-2&me],en=0;en<wa;++en)ve.readMoreInput(),Et[0]===0&&(Ee(qe[0],We,0,Ne,P,Q,ve),Et[0]=F(nt,0,ve),vr=Ne[0]<<R,Ge=vr,gt=ne[Ne[0]],Ve=m.lookupOffsets[gt],ft=m.lookupOffsets[gt+1]),Wn=m.lookup[Ve+ot]|m.lookup[ft+ut],le=ht[Ge+Wn],--Et[0],ut=ot,ot=E(je[0].codes,je[0].htrees[le],ve),V[H&me]=ot,(H&me)===me&&j.write(V,pe),++H;if($e-=wa,$e<=0)break;if(rr<0){var Wn;if(ve.readMoreInput(),Et[2]===0&&(Ee(qe[2],We,2,Ne,P,Q,ve),Et[2]=F(nt,2*A,ve),Ur=Ne[2]<<k,tr=Ur),--Et[2],Wn=(Ht>4?3:Ht-2)&255,et=B[tr+Wn],rr=E(je[2].codes,je[2].htrees[et],ve),rr>=oe){var xa,Cu,Yn;rr-=oe,Cu=rr&Be,rr>>=y,xa=(rr>>1)+1,Yn=(2+(rr&1)<<xa)-4,rr=oe+(Yn+ve.readBits(xa)<<y)+Cu}}if(Gr=Z(rr,De,Ue),Gr<0)throw new Error("[BrotliDecompress] invalid distance");if(H<ue&&de!==ue?de=H:de=ue,Gn=H&me,Gr>de)if(Ht>=l.minDictionaryWordLength&&Ht<=l.maxDictionaryWordLength){var Yn=l.offsetsByLength[Ht],Ru=Gr-de-1,Eu=l.sizeBitsByLength[Ht],tv=(1<<Eu)-1,rv=Ru&tv,Tu=Ru>>Eu;if(Yn+=rv*Ht,Tu<d.kNumTransforms){var Sa=d.transformDictionaryWord(V,Gn,Yn,Ht,Tu);if(Gn+=Sa,H+=Sa,$e-=Sa,Gn>=re){j.write(V,pe);for(var Fs=0;Fs<Gn-re;Fs++)V[Fs]=V[re+Fs]}}else throw new Error("Invalid backward reference. pos: "+H+" distance: "+Gr+" len: "+Ht+" bytes left: "+$e)}else throw new Error("Invalid backward reference. pos: "+H+" distance: "+Gr+" len: "+Ht+" bytes left: "+$e);else{if(rr>0&&(De[Ue&3]=Gr,++Ue),Ht>$e)throw new Error("Invalid backward reference. pos: "+H+" distance: "+Gr+" len: "+Ht+" bytes left: "+$e);for(en=0;en<Ht;++en)V[H&me]=V[H-Gr&me],(H&me)===me&&j.write(V,pe),++H,--$e}ot=V[H-1&me],ut=V[H-2&me]}H&=1073741823}}j.write(V,H&me)}s.BrotliDecompress=He,l.init()},{"./bit_reader":1,"./context":2,"./dictionary":6,"./huffman":7,"./prefix":9,"./streams":10,"./transform":11}],4:[function(o,n,s){var i=o("base64-js");s.init=function(){var a=o("./decode").BrotliDecompressBuffer,u=i.toByteArray(o("./dictionary.bin.js"));return a(u)}},{"./decode":3,"./dictionary.bin.js":5,"base64-js":8}],5:[function(o,n,s){n.exports="W5/fcQLn5gKf2XUbAiQ1XULX+TZz6ADToDsgqk6qVfeC0e4m6OO2wcQ1J76ZBVRV1fRkEsdu//62zQsFEZWSTCnMhcsQKlS2qOhuVYYMGCkV0fXWEoMFbESXrKEZ9wdUEsyw9g4bJlEt1Y6oVMxMRTEVbCIwZzJzboK5j8m4YH02qgXYhv1V+PM435sLVxyHJihaJREEhZGqL03txGFQLm76caGO/ovxKvzCby/3vMTtX/459f0igi7WutnKiMQ6wODSoRh/8Lx1V3Q99MvKtwB6bHdERYRY0hStJoMjNeTsNX7bn+Y7e4EQ3bf8xBc7L0BsyfFPK43dGSXpL6clYC/I328h54/VYrQ5i0648FgbGtl837svJ35L3Mot/+nPlNpWgKx1gGXQYqX6n+bbZ7wuyCHKcUok12Xjqub7NXZGzqBx0SD+uziNf87t7ve42jxSKQoW3nyxVrWIGlFShhCKxjpZZ5MeGna0+lBkk+kaN8F9qFBAFgEogyMBdcX/T1W/WnMOi/7ycWUQloEBKGeC48MkiwqJkJO+12eQiOFHMmck6q/IjWW3RZlany23TBm+cNr/84/oi5GGmGBZWrZ6j+zykVozz5fT/QH/Da6WTbZYYPynVNO7kxzuNN2kxKKWche5WveitPKAecB8YcAHz/+zXLjcLzkdDSktNIDwZE9J9X+tto43oJy65wApM3mDzYtCwX9lM+N5VR3kXYo0Z3t0TtXfgBFg7gU8oN0Dgl7fZlUbhNll+0uuohRVKjrEd8egrSndy5/Tgd2gqjA4CAVuC7ESUmL3DZoGnfhQV8uwnpi8EGvAVVsowNRxPudck7+oqAUDkwZopWqFnW1riss0t1z6iCISVKreYGNvQcXv+1L9+jbP8cd/dPUiqBso2q+7ZyFBvENCkkVr44iyPbtOoOoCecWsiuqMSML5lv+vN5MzUr+Dnh73G7Q1YnRYJVYXHRJaNAOByiaK6CusgFdBPE40r0rvqXV7tksKO2DrHYXBTv8P5ysqxEx8VDXUDDqkPH6NNOV/a2WH8zlkXRELSa8P+heNyJBBP7PgsG1EtWtNef6/i+lcayzQwQCsduidpbKfhWUDgAEmyhGu/zVTacI6RS0zTABrOYueemnVa19u9fT23N/Ta6RvTpof5DWygqreCqrDAgM4LID1+1T/taU6yTFVLqXOv+/MuQOFnaF8vLMKD7tKWDoBdALgxF33zQccCcdHx8fKIVdW69O7qHtXpeGr9jbbpFA+qRMWr5hp0s67FPc7HAiLV0g0/peZlW7hJPYEhZyhpSwahnf93/tZgfqZWXFdmdXBzqxGHLrQKxoAY6fRoBhgCRPmmGueYZ5JexTVDKUIXzkG/fqp/0U3hAgQdJ9zumutK6nqWbaqvm1pgu03IYR+G+8s0jDBBz8cApZFSBeuWasyqo2OMDKAZCozS+GWSvL/HsE9rHxooe17U3s/lTE+VZAk4j3dp6uIGaC0JMiqR5CUsabPyM0dOYDR7Ea7ip4USZlya38YfPtvrX/tBlhHilj55nZ1nfN24AOAi9BVtz/Mbn8AEDJCqJgsVUa6nQnSxv2Fs7l/NlCzpfYEjmPrNyib/+t0ei2eEMjvNhLkHCZlci4WhBe7ePZTmzYqlY9+1pxtS4GB+5lM1BHT9tS270EWUDYFq1I0yY/fNiAk4bk9yBgmef/f2k6AlYQZHsNFnW8wBQxCd68iWv7/35bXfz3JZmfGligWAKRjIs3IpzxQ27vAglHSiOzCYzJ9L9A1CdiyFvyR66ucA4jKifu5ehwER26yV7HjKqn5Mfozo7Coxxt8LWWPT47BeMxX8p0Pjb7hZn+6bw7z3Lw+7653j5sI8CLu5kThpMlj1m4c2ch3jGcP1FsT13vuK3qjecKTZk2kHcOZY40UX+qdaxstZqsqQqgXz+QGF99ZJLqr3VYu4aecl1Ab5GmqS8k/GV5b95zxQ5d4EfXUJ6kTS/CXF/aiqKDOT1T7Jz5z0PwDUcwr9clLN1OJGCiKfqvah+h3XzrBOiLOW8wvn8gW6qE8vPxi+Efv+UH55T7PQFVMh6cZ1pZQlzJpKZ7P7uWvwPGJ6DTlR6wbyj3Iv2HyefnRo/dv7dNx+qaa0N38iBsR++Uil7Wd4afwDNsrzDAK4fXZwvEY/jdKuIKXlfrQd2C39dW7ntnRbIp9OtGy9pPBn/V2ASoi/2UJZfS+xuGLH8bnLuPlzdTNS6zdyk8Dt/h6sfOW5myxh1f+zf3zZ3MX/mO9cQPp5pOx967ZA6/pqHvclNfnUFF+rq+Vd7alKr6KWPcIDhpn6v2K6NlUu6LrKo8b/pYpU/Gazfvtwhn7tEOUuXht5rUJdSf6sLjYf0VTYDgwJ81yaqKTUYej/tbHckSRb/HZicwGJqh1mAHB/IuNs9dc9yuvF3D5Xocm3elWFdq5oEy70dYFit79yaLiNjPj5UUcVmZUVhQEhW5V2Z6Cm4HVH/R8qlamRYwBileuh07CbEce3TXa2JmXWBf+ozt319psboobeZhVnwhMZzOeQJzhpTDbP71Tv8HuZxxUI/+ma3XW6DFDDs4+qmpERwHGBd2edxwUKlODRdUWZ/g0GOezrbzOZauFMai4QU6GVHV6aPNBiBndHSsV4IzpvUiiYyg6OyyrL4Dj5q/Lw3N5kAwftEVl9rNd7Jk5PDij2hTH6wIXnsyXkKePxbmHYgC8A6an5Fob/KH5GtC0l4eFso+VpxedtJHdHpNm+Bvy4C79yVOkrZsLrQ3OHCeB0Ra+kBIRldUGlDCEmq2RwXnfyh6Dz+alk6eftI2n6sastRrGwbwszBeDRS/Fa/KwRJkCzTsLr/JCs5hOPE/MPLYdZ1F1fv7D+VmysX6NpOC8aU9F4Qs6HvDyUy9PvFGDKZ/P5101TYHFl8pjj6wm/qyS75etZhhfg0UEL4OYmHk6m6dO192AzoIyPSV9QedDA4Ml23rRbqxMPMxf7FJnDc5FTElVS/PyqgePzmwVZ26NWhRDQ+oaT7ly7ell4s3DypS1s0g+tOr7XHrrkZj9+x/mJBttrLx98lFIaRZzHz4aC7r52/JQ4VjHahY2/YVXZn/QC2ztQb/sY3uRlyc5vQS8nLPGT/n27495i8HPA152z7Fh5aFpyn1GPJKHuPL8Iw94DuW3KjkURAWZXn4EQy89xiKEHN1mk/tkM4gYDBxwNoYvRfE6LFqsxWJtPrDGbsnLMap3Ka3MUoytW0cvieozOmdERmhcqzG+3HmZv2yZeiIeQTKGdRT4HHNxekm1tY+/n06rGmFleqLscSERzctTKM6G9P0Pc1RmVvrascIxaO1CQCiYPE15bD7c3xSeW7gXxYjgxcrUlcbIvO0r+Yplhx0kTt3qafDOmFyMjgGxXu73rddMHpV1wMubyAGcf/v5dLr5P72Ta9lBF+fzMJrMycwv+9vnU3ANIl1cH9tfW7af8u0/HG0vV47jNFXzFTtaha1xvze/s8KMtCYucXc1nzfd/MQydUXn/b72RBt5wO/3jRcMH9BdhC/yctKBIveRYPrNpDWqBsO8VMmP+WvRaOcA4zRMR1PvSoO92rS7pYEv+fZfEfTMzEdM+6X5tLlyxExhqLRkms5EuLovLfx66de5fL2/yX02H52FPVwahrPqmN/E0oVXnsCKhbi/yRxX83nRbUKWhzYceXOntfuXn51NszJ6MO73pQf5Pl4in3ec4JU8hF7ppV34+mm9r1LY0ee/i1O1wpd8+zfLztE0cqBxggiBi5Bu95v9l3r9r/U5hweLn+TbfxowrWDqdJauKd8+q/dH8sbPkc9ttuyO94f7/XK/nHX46MPFLEb5qQlNPvhJ50/59t9ft3LXu7uVaWaO2bDrDCnRSzZyWvFKxO1+vT8MwwunR3bX0CkfPjqb4K9O19tn5X50PvmYpEwHtiW9WtzuV/s76B1zvLLNkViNd8ySxIl/3orfqP90TyTGaf7/rx8jQzeHJXdmh/N6YDvbvmTBwCdxfEQ1NcL6wNMdSIXNq7b1EUzRy1/Axsyk5p22GMG1b+GxFgbHErZh92wuvco0AuOLXct9hvw2nw/LqIcDRRmJmmZzcgUa7JpM/WV/S9IUfbF56TL2orzqwebdRD8nIYNJ41D/hz37Fo11p2Y21wzPcn713qVGhqtevStYfGH4n69OEJtPvbbLYWvscDqc3Hgnu166+tAyLnxrX0Y5zoYjV++1sI7t5kMr02KT/+uwtkc+rZLOf/qn/s3nYCf13Dg8/sB2diJgjGqjQ+TLhxbzyue2Ob7X6/9lUwW7a+lbznHzOYy8LKW1C/uRPbQY3KW/0gO9LXunHLvPL97afba9bFtc9hmz7GAttjVYlCvQAiOwAk/gC5+hkLEs6tr3AZKxLJtOEwk2dLxTYWsIB/j/ToWtIWzo906FrSG8iaqqqqqqiIiIiAgzMzMzNz+AyK+01/zi8n8S+Y1MjoRaQ80WU/G8MBlO+53VPXANrWm4wzGUVZUjjBJZVdhpcfkjsmcWaO+UEldXi1e+zq+HOsCpknYshuh8pOLISJun7TN0EIGW2xTnlOImeecnoGW4raxe2G1T3HEvfYUYMhG+gAFOAwh5nK8mZhwJMmN7r224QVsNFvZ87Z0qatvknklyPDK3Hy45PgVKXji52Wen4d4PlFVVYGnNap+fSpFbK90rYnhUc6n91Q3AY9E0tJOFrcfZtm/491XbcG/jsViUPPX76qmeuiz+qY1Hk7/1VPM405zWVuoheLUimpWYdVzCmUdKHebMdzgrYrb8mL2eeLSnRWHdonfZa8RsOU9F37w+591l5FLYHiOqWeHtE/lWrBHcRKp3uhtr8yXm8LU/5ms+NM6ZKsqu90cFZ4o58+k4rdrtB97NADFbwmEG7lXqvirhOTOqU14xuUF2myIjURcPHrPOQ4lmM3PeMg7bUuk0nnZi67bXsU6H8lhqIo8TaOrEafCO1ARK9PjC0QOoq2BxmMdgYB9G/lIb9++fqNJ2s7BHGFyBNmZAR8J3KCo012ikaSP8BCrf6VI0X5xdnbhHIO+B5rbOyB54zXkzfObyJ4ecwxfqBJMLFc7m59rNcw7hoHnFZ0b00zee+gTqvjm61Pb4xn0kcDX4jvHM0rBXZypG3DCKnD/Waa/ZtHmtFPgO5eETx+k7RrVg3aSwm2YoNXnCs3XPQDhNn+Fia6IlOOuIG6VJH7TP6ava26ehKHQa2T4N0tcZ9dPCGo3ZdnNltsHQbeYt5vPnJezV/cAeNypdml1vCHI8M81nSRP5Qi2+mI8v/sxiZru9187nRtp3f/42NemcONa+4eVC3PCZzc88aZh851CqSsshe70uPxeN/dmYwlwb3trwMrN1Gq8jbnApcVDx/yDPeYs5/7r62tsQ6lLg+DiFXTEhzR9dHqv0iT4tgj825W+H3XiRUNUZT2kR9Ri0+lp+UM3iQtS8uOE23Ly4KYtvqH13jghUntJRAewuzNLDXp8RxdcaA3cMY6TO2IeSFRXezeWIjCqyhsUdMYuCgYTZSKpBype1zRfq8FshvfBPc6BAQWl7/QxIDp3VGo1J3vn42OEs3qznws+YLRXbymyB19a9XBx6n/owcyxlEYyFWCi+kG9F+EyD/4yn80+agaZ9P7ay2Dny99aK2o91FkfEOY8hBwyfi5uwx2y5SaHmG+oq/zl1FX/8irOf8Y3vAcX/6uLP6A6nvMO24edSGPjQc827Rw2atX+z2bKq0CmW9mOtYnr5/AfDa1ZfPaXnKtlWborup7QYx+Or2uWb+N3N//2+yDcXMqIJdf55xl7/vsj4WoPPlxLxtVrkJ4w/tTe3mLdATOOYwxcq52w5Wxz5MbPdVs5O8/lhfE7dPj0bIiPQ3QV0iqm4m3YX8hRfc6jQ3fWepevMqUDJd86Z4vwM40CWHnn+WphsGHfieF02D3tmZvpWD+kBpNCFcLnZhcmmrhpGzzbdA+sQ1ar18OJD87IOKOFoRNznaHPNHUfUNhvY1iU+uhvEvpKHaUn3qK3exVVyX4joipp3um7FmYJWmA+WbIDshRpbVRx5/nqstCgy87FGbfVB8yDGCqS+2qCsnRwnSAN6zgzxfdB2nBT/vZ4/6uxb6oH8b4VBRxiIB93wLa47hG3w2SL/2Z27yOXJFwZpSJaBYyvajA7vRRYNKqljXKpt/CFD/tSMr18DKKbwB0xggBePatl1nki0yvqW5zchlyZmJ0OTxJ3D+fsYJs/mxYN5+Le5oagtcl+YsVvy8kSjI2YGvGjvmpkRS9W2dtXqWnVuxUhURm1lKtou/hdEq19VBp9OjGvHEQSmrpuf2R24mXGheil8KeiANY8fW1VERUfBImb64j12caBZmRViZHbeVMjCrPDg9A90IXrtnsYCuZtRQ0PyrKDjBNOsPfKsg1pA02gHlVr0OXiFhtp6nJqXVzcbfM0KnzC3ggOENPE9VBdmHKN6LYaijb4wXxJn5A0FSDF5j+h1ooZx885Jt3ZKzO5n7Z5WfNEOtyyPqQEnn7WLv5Fis3PdgMshjF1FRydbNyeBbyKI1oN1TRVrVK7kgsb/zjX4NDPIRMctVeaxVB38Vh1x5KbeJbU138AM5KzmZu3uny0ErygxiJF7GVXUrPzFxrlx1uFdAaZFDN9cvIb74qD9tzBMo7L7WIEYK+sla1DVMHpF0F7b3+Y6S+zjvLeDMCpapmJo1weBWuxKF3rOocih1gun4BoJh1kWnV/Jmiq6uOhK3VfKxEHEkafjLgK3oujaPzY6SXg8phhL4TNR1xvJd1Wa0aYFfPUMLrNBDCh4AuGRTbtKMc6Z1Udj8evY/ZpCuMAUefdo69DZUngoqE1P9A3PJfOf7WixCEj+Y6t7fYeHbbxUAoFV3M89cCKfma3fc1+jKRe7MFWEbQqEfyzO2x/wrO2VYH7iYdQ9BkPyI8/3kXBpLaCpU7eC0Yv/am/tEDu7HZpqg0EvHo0nf/R/gRzUWy33/HXMJQeu1GylKmOkXzlCfGFruAcPPhaGqZOtu19zsJ1SO2Jz4Ztth5cBX6mRQwWmDwryG9FUMlZzNckMdK+IoMJv1rOWnBamS2w2KHiaPMPLC15hCZm4KTpoZyj4E2TqC/P6r7/EhnDMhKicZZ1ZwxuC7DPzDGs53q8gXaI9kFTK+2LTq7bhwsTbrMV8Rsfua5lMS0FwbTitUVnVa1yTb5IX51mmYnUcP9wPr8Ji1tiYJeJV9GZTrQhF7vvdU2OTU42ogJ9FDwhmycI2LIg++03C6scYhUyUuMV5tkw6kGUoL+mjNC38+wMdWNljn6tGPpRES7veqrSn5TRuv+dh6JVL/iDHU1db4c9WK3++OrH3PqziF916UMUKn8G67nN60GfWiHrXYhUG3yVWmyYak59NHj8t1smG4UDiWz2rPHNrKnN4Zo1LBbr2/eF9YZ0n0blx2nG4X+EKFxvS3W28JESD+FWk61VCD3z/URGHiJl++7TdBwkCj6tGOH3qDb0QqcOF9Kzpj0HUb/KyFW3Yhj2VMKJqGZleFBH7vqvf7WqLC3XMuHV8q8a4sTFuxUtkD/6JIBvKaVjv96ndgruKZ1k/BHzqf2K9fLk7HGXANyLDd1vxkK/i055pnzl+zw6zLnwXlVYVtfmacJgEpRP1hbGgrYPVN6v2lG+idQNGmwcKXu/8xEj/P6qe/sB2WmwNp6pp8jaISMkwdleFXYK55NHWLTTbutSUqjBfDGWo/Yg918qQ+8BRZSAHZbfuNZz2O0sov1Ue4CWlVg3rFhM3Kljj9ksGd/NUhk4nH+a5UN2+1i8+NM3vRNp7uQ6sqexSCukEVlVZriHNqFi5rLm9TMWa4qm3idJqppQACol2l4VSuvWLfta4JcXy3bROPNbXOgdOhG47LC0CwW/dMlSx4Jf17aEU3yA1x9p+Yc0jupXgcMuYNku64iYOkGToVDuJvlbEKlJqsmiHbvNrIVZEH+yFdF8DbleZ6iNiWwMqvtMp/mSpwx5KxRrT9p3MAPTHGtMbfvdFhyj9vhaKcn3At8Lc16Ai+vBcSp1ztXi7rCJZx/ql7TXcclq6Q76UeKWDy9boS0WHIjUuWhPG8LBmW5y2rhuTpM5vsLt+HOLh1Yf0DqXa9tsfC+kaKt2htA0ai/L2i7RKoNjEwztkmRU0GfgW1TxUvPFhg0V7DdfWJk5gfrccpYv+MA9M0dkGTLECeYwUixRzjRFdmjG7zdZIl3XKB9YliNKI31lfa7i2JG5C8Ss+rHe0D7Z696/V3DEAOWHnQ9yNahMUl5kENWS6pHKKp2D1BaSrrHdE1w2qNxIztpXgUIrF0bm15YML4b6V1k+GpNysTahKMVrrS85lTVo9OGJ96I47eAy5rYWpRf/mIzeoYU1DKaQCTUVwrhHeyNoDqHel+lLxr9WKzhSYw7vrR6+V5q0pfi2k3L1zqkubY6rrd9ZLvSuWNf0uqnkY+FpTvFzSW9Fp0b9l8JA7THV9eCi/PY/SCZIUYx3BU2alj7Cm3VV6eYpios4b6WuNOJdYXUK3zTqj5CVG2FqYM4Z7CuIU0qO05XR0d71FHM0YhZmJmTRfLlXEumN82BGtzdX0S19t1e+bUieK8zRmqpa4Qc5TSjifmaQsY2ETLjhI36gMR1+7qpjdXXHiceUekfBaucHShAOiFXmv3sNmGQyU5iVgnoocuonQXEPTFwslHtS8R+A47StI9wj0iSrtbi5rMysczFiImsQ+bdFClnFjjpXXwMy6O7qfjOr8Fb0a7ODItisjnn3EQO16+ypd1cwyaAW5Yzxz5QknfMO7643fXW/I9y3U2xH27Oapqr56Z/tEzglj6IbT6HEHjopiXqeRbe5mQQvxtcbDOVverN0ZgMdzqRYRjaXtMRd56Q4cZSmdPvZJdSrhJ1D9zNXPqAEqPIavPdfubt5oke2kmv0dztIszSv2VYuoyf1UuopbsYb+uX9h6WpwjpgtZ6fNNawNJ4q8O3CFoSbioAaOSZMx2GYaPYB+rEb6qjQiNRFQ76TvwNFVKD+BhH9VhcKGsXzmMI7BptU/CNWolM7YzROvpFAntsiWJp6eR2d3GarcYShVYSUqhmYOWj5E96NK2WvmYNTeY7Zs4RUEdv9h9QT4EseKt6LzLrqEOs3hxAY1MaNWpSa6zZx8F3YOVeCYMS88W+CYHDuWe4yoc6YK+djDuEOrBR5lvh0r+Q9uM88lrjx9x9AtgpQVNE8r+3O6Gvw59D+kBF/UMXyhliYUtPjmvXGY6Dk3x+kEOW+GtdMVC4EZTqoS/jmR0P0LS75DOc/w2vnri97M4SdbZ8qeU7gg8DVbERkU5geaMQO3mYrSYyAngeUQqrN0C0/vsFmcgWNXNeidsTAj7/4MncJR0caaBUpbLK1yBCBNRjEv6KvuVSdpPnEMJdsRRtqJ+U8tN1gXA4ePHc6ZT0eviI73UOJF0fEZ8YaneAQqQdGphNvwM4nIqPnXxV0xA0fnCT+oAhJuyw/q8jO0y8CjSteZExwBpIN6SvNp6A5G/abi6egeND/1GTguhuNjaUbbnSbGd4L8937Ezm34Eyi6n1maeOBxh3PI0jzJDf5mh/BsLD7F2GOKvlA/5gtvxI3/eV4sLfKW5Wy+oio+es/u6T8UU+nsofy57Icb/JlZHPFtCgd/x+bwt3ZT+xXTtTtTrGAb4QehC6X9G+8YT+ozcLxDsdCjsuOqwPFnrdLYaFc92Ui0m4fr39lYmlCaqTit7G6O/3kWDkgtXjNH4BiEm/+jegQnihOtfffn33WxsFjhfMd48HT+f6o6X65j7XR8WLSHMFkxbvOYsrRsF1bowDuSQ18Mkxk4qz2zoGPL5fu9h2Hqmt1asl3Q3Yu3szOc+spiCmX4AETBM3pLoTYSp3sVxahyhL8eC4mPN9k2x3o0xkiixIzM3CZFzf5oR4mecQ5+ax2wCah3/crmnHoqR0+KMaOPxRif1oEFRFOO/kTPPmtww+NfMXxEK6gn6iU32U6fFruIz8Q4WgljtnaCVTBgWx7diUdshC9ZEa5yKpRBBeW12r/iNc/+EgNqmhswNB8SBoihHXeDF7rrWDLcmt3V8GYYN7pXRy4DZjj4DJuUBL5iC3DQAaoo4vkftqVTYRGLS3mHZ7gdmdTTqbgNN/PTdTCOTgXolc88MhXAEUMdX0iy1JMuk5wLsgeu0QUYlz2S4skTWwJz6pOm/8ihrmgGfFgri+ZWUK2gAPHgbWa8jaocdSuM4FJYoKicYX/ZSENkg9Q1ZzJfwScfVnR2DegOGwCvmogaWJCLQepv9WNlU6QgsmOwICquU28Mlk3d9W5E81lU/5Ez0LcX6lwKMWDNluNKfBDUy/phJgBcMnfkh9iRxrdOzgs08JdPB85Lwo+GUSb4t3nC+0byqMZtO2fQJ4U2zGIr49t/28qmmGv2RanDD7a3FEcdtutkW8twwwlUSpb8QalodddbBfNHKDQ828BdE7OBgFdiKYohLawFYqpybQoxATZrheLhdI7+0Zlu9Q1myRcd15r9UIm8K2LGJxqTegntqNVMKnf1a8zQiyUR1rxoqjiFxeHxqFcYUTHfDu7rhbWng6qOxOsI+5A1p9mRyEPdVkTlE24vY54W7bWc6jMgZvNXdfC9/9q7408KDsbdL7Utz7QFSDetz2picArzrdpL8OaCHC9V26RroemtDZ5yNM/KGkWMyTmfnInEvwtSD23UcFcjhaE3VKzkoaEMKGBft4XbIO6forTY1lmGQwVmKicBCiArDzE+1oIxE08fWeviIOD5TznqH+OoHadvoOP20drMPe5Irg3XBQziW2XDuHYzjqQQ4wySssjXUs5H+t3FWYMHppUnBHMx/nYIT5d7OmjDbgD9F6na3m4l7KdkeSO3kTEPXafiWinogag7b52taiZhL1TSvBFmEZafFq2H8khQaZXuitCewT5FBgVtPK0j4xUHPfUz3Q28eac1Z139DAP23dgki94EC8vbDPTQC97HPPSWjUNG5tWKMsaxAEMKC0665Xvo1Ntd07wCLNf8Q56mrEPVpCxlIMVlQlWRxM3oAfpgIc+8KC3rEXUog5g06vt7zgXY8grH7hhwVSaeuvC06YYRAwpbyk/Unzj9hLEZNs2oxPQB9yc+GnL6zTgq7rI++KDJwX2SP8Sd6YzTuw5lV/kU6eQxRD12omfQAW6caTR4LikYkBB1CMOrvgRr/VY75+NSB40Cni6bADAtaK+vyxVWpf9NeKJxN2KYQ8Q2xPB3K1s7fuhvWbr2XpgW044VD6DRs0qXoqKf1NFsaGvKJc47leUV3pppP/5VTKFhaGuol4Esfjf5zyCyUHmHthChcYh4hYLQF+AFWsuq4t0wJyWgdwQVOZiV0efRHPoK5+E1vjz9wTJmVkITC9oEstAsyZSgE/dbicwKr89YUxKZI+owD205Tm5lnnmDRuP/JnzxX3gMtlrcX0UesZdxyQqYQuEW4R51vmQ5xOZteUd8SJruMlTUzhtVw/Nq7eUBcqN2/HVotgfngif60yKEtoUx3WYOZlVJuJOh8u59fzSDPFYtQgqDUAGyGhQOAvKroXMcOYY0qjnStJR/G3aP+Jt1sLVlGV8POwr/6OGsqetnyF3TmTqZjENfnXh51oxe9qVUw2M78EzAJ+IM8lZ1MBPQ9ZWSVc4J3mWSrLKrMHReA5qdGoz0ODRsaA+vwxXA2cAM4qlfzBJA6581m4hzxItQw5dxrrBL3Y6kCbUcFxo1S8jyV44q//+7ASNNudZ6xeaNOSIUffqMn4A9lIjFctYn2gpEPAb3f7p3iIBN8H14FUGQ9ct2hPsL+cEsTgUrR47uJVN4n4wt/wgfwwHuOnLd4yobkofy8JvxSQTA7rMpDIc608SlZFJfZYcmbT0tAHpPE8MrtQ42siTUNWxqvWZOmvu9f0JPoQmg+6l7sZWwyfi6PXkxJnwBraUG0MYG4zYHQz3igy/XsFkx5tNQxw43qvI9dU3f0DdhOUlHKjmi1VAr2Kiy0HZwD8VeEbhh0OiDdMYspolQsYdSwjCcjeowIXNZVUPmL2wwIkYhmXKhGozdCJ4lRKbsf4NBh/XnQoS92NJEWOVOFs2YhN8c5QZFeK0pRdAG40hqvLbmoSA8xQmzOOEc7wLcme9JOsjPCEgpCwUs9E2DohMHRhUeyGIN6TFvrbny8nDuilsDpzrH5mS76APoIEJmItS67sQJ+nfwddzmjPxcBEBBCw0kWDwd0EZCkNeOD7NNQhtBm7KHL9mRxj6U1yWU2puzlIDtpYxdH4ZPeXBJkTGAJfUr/oTCz/iypY6uXaR2V1doPxJYlrw2ghH0D5gbrhFcIxzYwi4a/4hqVdf2DdxBp6vGYDjavxMAAoy+1+3aiO6S3W/QAKNVXagDtvsNtx7Ks+HKgo6U21B+QSZgIogV5Bt+BnXisdVfy9VyXV+2P5fMuvdpAjM1o/K9Z+XnE4EOCrue+kcdYHqAQ0/Y/OmNlQ6OI33jH/uD1RalPaHpJAm2av0/xtpqdXVKNDrc9F2izo23Wu7firgbURFDNX9eGGeYBhiypyXZft2j3hTvzE6PMWKsod//rEILDkzBXfi7xh0eFkfb3/1zzPK/PI5Nk3FbZyTl4mq5BfBoVoqiPHO4Q4QKZAlrQ3MdNfi3oxIjvsM3kAFv3fdufurqYR3PSwX/mpGy/GFI/B2MNPiNdOppWVbs/gjF3YH+QA9jMhlAbhvasAHstB0IJew09iAkmXHl1/TEj+jvHOpOGrPRQXbPADM+Ig2/OEcUcpgPTItMtW4DdqgfYVI/+4hAFWYjUGpOP/UwNuB7+BbKOcALbjobdgzeBQfjgNSp2GOpxzGLj70Vvq5cw2AoYENwKLUtJUX8sGRox4dVa/TN4xKwaKcl9XawQR/uNus700Hf17pyNnezrUgaY9e4MADhEDBpsJT6y1gDJs1q6wlwGhuUzGR7C8kgpjPyHWwsvrf3yn1zJEIRa5eSxoLAZOCR9xbuztxFRJW9ZmMYfCFJ0evm9F2fVnuje92Rc4Pl6A8bluN8MZyyJGZ0+sNSb//DvAFxC2BqlEsFwccWeAl6CyBcQV1bx4mQMBP1Jxqk1EUADNLeieS2dUFbQ/c/kvwItbZ7tx0st16viqd53WsRmPTKv2AD8CUnhtPWg5aUegNpsYgasaw2+EVooeNKmrW3MFtj76bYHJm5K9gpAXZXsE5U8DM8XmVOSJ1F1WnLy6nQup+jx52bAb+rCq6y9WXl2B2oZDhfDkW7H3oYfT/4xx5VncBuxMXP2lNfhUVQjSSzSRbuZFE4vFawlzveXxaYKVs8LpvAb8IRYF3ZHiRnm0ADeNPWocwxSzNseG7NrSEVZoHdKWqaGEBz1N8Pt7kFbqh3LYmAbm9i1IChIpLpM5AS6mr6OAPHMwwznVy61YpBYX8xZDN/a+lt7n+x5j4bNOVteZ8lj3hpAHSx1VR8vZHec4AHO9XFCdjZ9eRkSV65ljMmZVzaej2qFn/qt1lvWzNZEfHxK3qOJrHL6crr0CRzMox5f2e8ALBB4UGFZKA3tN6F6IXd32GTJXGQ7DTi9j/dNcLF9jCbDcWGKxoKTYblIwbLDReL00LRcDPMcQuXLMh5YzgtfjkFK1DP1iDzzYYVZz5M/kWYRlRpig1htVRjVCknm+h1M5LiEDXOyHREhvzCGpFZjHS0RsK27o2avgdilrJkalWqPW3D9gmwV37HKmfM3F8YZj2ar+vHFvf3B8CRoH4kDHIK9mrAg+owiEwNjjd9V+FsQKYR8czJrUkf7Qoi2YaW6EVDZp5zYlqiYtuXOTHk4fAcZ7qBbdLDiJq0WNV1l2+Hntk1mMWvxrYmc8kIx8G3rW36J6Ra4lLrTOCgiOihmow+YnzUT19jbV2B3RWqSHyxkhmgsBqMYWvOcUom1jDQ436+fcbu3xf2bbeqU/ca+C4DOKE+e3qvmeMqW3AxejfzBRFVcwVYPq4L0APSWWoJu+5UYX4qg5U6YTioqQGPG9XrnuZ/BkxuYpe6Li87+18EskyQW/uA+uk2rpHpr6hut2TlVbKgWkFpx+AZffweiw2+VittkEyf/ifinS/0ItRL2Jq3tQOcxPaWO2xrG68GdFoUpZgFXaP2wYVtRc6xYCfI1CaBqyWpg4bx8OHBQwsV4XWMibZZ0LYjWEy2IxQ1mZrf1/UNbYCJplWu3nZ4WpodIGVA05d+RWSS+ET9tH3RfGGmNI1cIY7evZZq7o+a0bjjygpmR3mVfalkT/SZGT27Q8QGalwGlDOS9VHCyFAIL0a1Q7JiW3saz9gqY8lqKynFrPCzxkU4SIfLc9VfCI5edgRhDXs0edO992nhTKHriREP1NJC6SROMgQ0xO5kNNZOhMOIT99AUElbxqeZF8A3xrfDJsWtDnUenAHdYWSwAbYjFqQZ+D5gi3hNK8CSxU9i6f6ClL9IGlj1OPMQAsr84YG6ijsJpCaGWj75c3yOZKBB9mNpQNPUKkK0D6wgLH8MGoyRxTX6Y05Q4AnYNXMZwXM4eij/9WpsM/9CoRnFQXGR6MEaY+FXvXEO3RO0JaStk6OXuHVATHJE+1W+TU3bSZ2ksMtqjO0zfSJCdBv7y2d8DMx6TfVme3q0ZpTKMMu4YL/t7ciTNtdDkwPogh3Cnjx7qk08SHwf+dksZ7M2vCOlfsF0hQ6J4ehPCaHTNrM/zBSOqD83dBEBCW/F/LEmeh0nOHd7oVl3/Qo/9GUDkkbj7yz+9cvvu+dDAtx8NzCDTP4iKdZvk9MWiizvtILLepysflSvTLFBZ37RLwiriqyRxYv/zrgFd/9XVHh/OmzBvDX4mitMR/lUavs2Vx6cR94lzAkplm3IRNy4TFfu47tuYs9EQPIPVta4P64tV+sZ7n3ued3cgEx2YK+QL5+xms6osk8qQbTyuKVGdaX9FQqk6qfDnT5ykxk0VK7KZ62b6DNDUfQlqGHxSMKv1P0XN5BqMeKG1P4Wp5QfZDUCEldppoX0U6ss2jIko2XpURKCIhfaOqLPfShdtS37ZrT+jFRSH2xYVV1rmT/MBtRQhxiO4MQ3iAGlaZi+9PWBEIXOVnu9jN1f921lWLZky9bqbM3J2MAAI9jmuAx3gyoEUa6P2ivs0EeNv/OR+AX6q5SW6l5HaoFuS6jr6yg9limu+P0KYKzfMXWcQSfTXzpOzKEKpwI3YGXZpSSy2LTlMgfmFA3CF6R5c9xWEtRuCg2ZPUQ2Nb6dRFTNd4TfGHrnEWSKHPuRyiJSDAZ+KX0VxmSHjGPbQTLVpqixia2uyhQ394gBMt7C3ZAmxn/DJS+l1fBsAo2Eir/C0jG9csd4+/tp12pPc/BVJGaK9mfvr7M/CeztrmCO5qY06Edi4xAGtiEhnWAbzLy2VEyazE1J5nPmgU4RpW4Sa0TnOT6w5lgt3/tMpROigHHmexBGAMY0mdcDbDxWIz41NgdD6oxgHsJRgr5RnT6wZAkTOcStU4NMOQNemSO7gxGahdEsC+NRVGxMUhQmmM0llWRbbmFGHzEqLM4Iw0H7577Kyo+Zf+2cUFIOw93gEY171vQaM0HLwpjpdRR6Jz7V0ckE7XzYJ0TmY9znLdzkva0vNrAGGT5SUZ5uaHDkcGvI0ySpwkasEgZPMseYcu85w8HPdSNi+4T6A83iAwDbxgeFcB1ZM2iGXzFcEOUlYVrEckaOyodfvaYSQ7GuB4ISE0nYJc15X/1ciDTPbPCgYJK55VkEor4LvzL9S2WDy4xj+6FOqVyTAC2ZNowheeeSI5hA/02l8UYkv4nk9iaVn+kCVEUstgk5Hyq+gJm6R9vG3rhuM904he/hFmNQaUIATB1y3vw+OmxP4X5Yi6A5I5jJufHCjF9+AGNwnEllZjUco6XhsO5T5+R3yxz5yLVOnAn0zuS+6zdj0nTJbEZCbXJdtpfYZfCeCOqJHoE2vPPFS6eRLjIJlG69X93nfR0mxSFXzp1Zc0lt/VafDaImhUMtbnqWVb9M4nGNQLN68BHP7AR8Il9dkcxzmBv8PCZlw9guY0lurbBsmNYlwJZsA/B15/HfkbjbwPddaVecls/elmDHNW2r4crAx43feNkfRwsaNq/yyJ0d/p5hZ6AZajz7DBfUok0ZU62gCzz7x8eVfJTKA8IWn45vINLSM1q+HF9CV9qF3zP6Ml21kPPL3CXzkuYUlnSqT+Ij4tI/od5KwIs+tDajDs64owN7tOAd6eucGz+KfO26iNcBFpbWA5732bBNWO4kHNpr9D955L61bvHCF/mwSrz6eQaDjfDEANqGMkFc+NGxpKZzCD2sj/JrHd+zlPQ8Iz7Q+2JVIiVCuCKoK/hlAEHzvk/Piq3mRL1rT/fEh9hoT5GJmeYswg1otiKydizJ/fS2SeKHVu6Z3JEHjiW8NaTQgP5xdBli8nC57XiN9hrquBu99hn9zqwo92+PM2JXtpeVZS0PdqR5mDyDreMMtEws+CpwaRyyzoYtfcvt9PJIW0fJVNNi/FFyRsea7peLvJrL+5b4GOXJ8tAr+ATk9f8KmiIsRhqRy0vFzwRV3Z5dZ3QqIU8JQ/uQpkJbjMUMFj2F9sCFeaBjI4+fL/oN3+LQgjI4zuAfQ+3IPIPFQBccf0clJpsfpnBxD84atwtupkGqKvrH7cGNl/QcWcSi6wcVDML6ljOgYbo+2BOAWNNjlUBPiyitUAwbnhFvLbnqw42kR3Yp2kv2dMeDdcGOX5kT4S6M44KHEB/SpCfl7xgsUvs+JNY9G3O2X/6FEt9FyAn57lrbiu+tl83sCymSvq9eZbe9mchL7MTf/Ta78e80zSf0hYY5eUU7+ff14jv7Xy8qjzfzzzvaJnrIdvFb5BLWKcWGy5/w7+vV2cvIfwHqdTB+RuJK5oj9mbt0Hy94AmjMjjwYNZlNS6uiyxNnwNyt3gdreLb64p/3+08nXkb92LTkkRgFOwk1oGEVllcOj5lv1hfAZywDows0944U8vUFw+A/nuVq/UCygsrmWIBnHyU01d0XJPwriEOvx/ISK6Pk4y2w0gmojZs7lU8TtakBAdne4v/aNxmMpK4VcGMp7si0yqsiolXRuOi1Z1P7SqD3Zmp0CWcyK4Ubmp2SXiXuI5nGLCieFHKHNRIlcY3Pys2dwMTYCaqlyWSITwr2oGXvyU3h1Pf8eQ3w1bnD7ilocVjYDkcXR3Oo1BXgMLTUjNw2xMVwjtp99NhSVc5aIWrDQT5DHPKtCtheBP4zHcw4dz2eRdTMamhlHhtfgqJJHI7NGDUw1XL8vsSeSHyKqDtqoAmrQqsYwvwi7HW3ojWyhIa5oz5xJTaq14NAzFLjVLR12rRNUQ6xohDnrWFb5bG9yf8aCD8d5phoackcNJp+Dw3Due3RM+5Rid7EuIgsnwgpX0rUWh/nqPtByMhMZZ69NpgvRTKZ62ViZ+Q7Dp5r4K0d7EfJuiy06KuIYauRh5Ecrhdt2QpTS1k1AscEHvapNbU3HL1F2TFyR33Wxb5MvH5iZsrn3SDcsxlnnshO8PLwmdGN+paWnQuORtZGX37uhFT64SeuPsx8UOokY6ON85WdQ1dki5zErsJGazcBOddWJEKqNPiJpsMD1GrVLrVY+AOdPWQneTyyP1hRX/lMM4ZogGGOhYuAdr7F/DOiAoc++cn5vlf0zkMUJ40Z1rlgv9BelPqVOpxKeOpzKdF8maK+1Vv23MO9k/8+qpLoxrIGH2EDQlnGmH8CD31G8QqlyQIcpmR5bwmSVw9/Ns6IHgulCRehvZ/+VrM60Cu/r3AontFfrljew74skYe2uyn7JKQtFQBQRJ9ryGic/zQOsbS4scUBctA8cPToQ3x6ZBQu6DPu5m1bnCtP8TllLYA0UTQNVqza5nfew3Mopy1GPUwG5jsl0OVXniPmAcmLqO5HG8Hv3nSLecE9oOjPDXcsTxoCBxYyzBdj4wmnyEV4kvFDunipS8SSkvdaMnTBN9brHUR8xdmmEAp/Pdqk9uextp1t+JrtXwpN/MG2w/qhRMpSNxQ1uhg/kKO30eQ/FyHUDkWHT8V6gGRU4DhDMxZu7xXij9Ui6jlpWmQCqJg3FkOTq3WKneCRYZxBXMNAVLQgHXSCGSqNdjebY94oyIpVjMYehAiFx/tqzBXFHZaL5PeeD74rW5OysFoUXY8sebUZleFTUa/+zBKVTFDopTReXNuZq47QjkWnxjirCommO4L/GrFtVV21EpMyw8wyThL5Y59d88xtlx1g1ttSICDwnof6lt/6zliPzgVUL8jWBjC0o2D6Kg+jNuThkAlaDJsq/AG2aKA//A76avw2KNqtv223P+Wq3StRDDNKFFgtsFukYt1GFDWooFVXitaNhb3RCyJi4cMeNjROiPEDb4k+G3+hD8tsg+5hhmSc/8t2JTSwYoCzAI75doq8QTHe+E/Tw0RQSUDlU+6uBeNN3h6jJGX/mH8oj0i3caCNsjvTnoh73BtyZpsflHLq6AfwJNCDX4S98h4+pCOhGKDhV3rtkKHMa3EG4J9y8zFWI4UsfNzC/Rl5midNn7gwoN9j23HGCQQ+OAZpTTPMdiVow740gIyuEtd0qVxMyNXhHcnuXRKdw5wDUSL358ktjMXmAkvIB73BLa1vfF9BAUZInPYJiwxqFWQQBVk7gQH4ojfUQ/KEjn+A/WR6EEe4CtbpoLe1mzHkajgTIoE0SLDHVauKhrq12zrAXBGbPPWKCt4DGedq3JyGRbmPFW32bE7T20+73BatV/qQhhBWfWBFHfhYWXjALts38FemnoT+9bn1jDBMcUMmYgSc0e7GQjv2MUBwLU8ionCpgV+Qrhg7iUIfUY6JFxR0Y+ZTCPM+rVuq0GNLyJXX6nrUTt8HzFBRY1E/FIm2EeVA9NcXrj7S6YYIChVQCWr/m2fYUjC4j0XLkzZ8GCSLfmkW3PB/xq+nlXsKVBOj7vTvqKCOMq7Ztqr3cQ+N8gBnPaAps+oGwWOkbuxnRYj/x/WjiDclVrs22xMK4qArE1Ztk1456kiJriw6abkNeRHogaPRBgbgF9Z8i/tbzWELN4CvbqtrqV9TtGSnmPS2F9kqOIBaazHYaJ9bi3AoDBvlZasMluxt0BDXfhp02Jn411aVt6S4TUB8ZgFDkI6TP6gwPY85w+oUQSsjIeXVminrwIdK2ZAawb8Se6XOJbOaliQxHSrnAeONDLuCnFejIbp4YDtBcQCwMsYiRZfHefuEJqJcwKTTJ8sx5hjHmJI1sPFHOr6W9AhZ2NAod38mnLQk1gOz2LCAohoQbgMbUK9RMEA3LkiF7Sr9tLZp6lkciIGhE2V546w3Mam53VtVkGbB9w0Yk2XiRnCmbpxmHr2k4eSC0RuNbjNsUfDIfc8DZvRvgUDe1IlKdZTzcT4ZGEb53dp8VtsoZlyXzLHOdAbsp1LPTVaHvLA0GYDFMbAW/WUBfUAdHwqLFAV+3uHvYWrCfhUOR2i89qvCBoOb48usAGdcF2M4aKn79k/43WzBZ+xR1L0uZfia70XP9soQReeuhZiUnXFDG1T8/OXNmssTSnYO+3kVLAgeiY719uDwL9FQycgLPessNihMZbAKG7qwPZyG11G1+ZA3jAX2yddpYfmaKBlmfcK/V0mwIRUDC0nJSOPUl2KB8h13F4dlVZiRhdGY5farwN+f9hEb1cRi41ZcGDn6Xe9MMSTOY81ULJyXIHSWFIQHstVYLiJEiUjktlHiGjntN5/btB8Fu+vp28zl2fZXN+dJDyN6EXhS+0yzqpl/LSJNEUVxmu7BsNdjAY0jVsAhkNuuY0E1G48ej25mSt+00yPbQ4SRCVkIwb6ISvYtmJRPz9Zt5dk76blf+lJwAPH5KDF+vHAmACLoCdG2Adii6dOHnNJnTmZtoOGO8Q1jy1veMw6gbLFToQmfJa7nT7Al89mRbRkZZQxJTKgK5Kc9INzmTJFp0tpAPzNmyL/F08bX3nhCumM/cR/2RPn9emZ3VljokttZD1zVWXlUIqEU7SLk5I0lFRU0AcENXBYazNaVzsVHA/sD3o9hm42wbHIRb/BBQTKzAi8s3+bMtpOOZgLdQzCYPfX3UUxKd1WYVkGH7lh/RBBgMZZwXzU9+GYxdBqlGs0LP+DZ5g2BWNh6FAcR944B+K/JTWI3t9YyVyRhlP4CCoUk/mmF7+r2pilVBjxXBHFaBfBtr9hbVn2zDuI0kEOG3kBx8CGdPOjX1ph1POOZJUO1JEGG0jzUy2tK4X0CgVNYhmkqqQysRNtKuPdCJqK3WW57kaV17vXgiyPrl4KEEWgiGF1euI4QkSFHFf0TDroQiLNKJiLbdhH0YBhriRNCHPxSqJmNNoketaioohqMglh6wLtEGWSM1EZbQg72h0UJAIPVFCAJOThpQGGdKfFovcwEeiBuZHN2Ob4uVM7+gwZLz1D9E7ta4RmMZ24OBBAg7Eh6dLXGofZ4U2TFOCQMKjwhVckjrydRS+YaqCw1kYt6UexuzbNEDyYLTZnrY1PzsHZJT4U+awO2xlqTSYu6n/U29O2wPXgGOEKDMSq+zTUtyc8+6iLp0ivav4FKx+xxVy4FxhIF/pucVDqpsVe2jFOfdZhTzLz2QjtzvsTCvDPU7bzDH2eXVKUV9TZ+qFtaSSxnYgYdXKwVreIgvWhT9eGDB2OvnWyPLfIIIfNnfIxU8nW7MbcH05nhlsYtaW9EZRsxWcKdEqInq1DiZPKCz7iGmAU9/ccnnQud2pNgIGFYOTAWjhIrd63aPDgfj8/sdlD4l+UTlcxTI9jbaMqqN0gQxSHs60IAcW3cH4p3V1aSciTKB29L1tz2eUQhRiTgTvmqc+sGtBNh4ky0mQJGsdycBREP+fAaSs1EREDVo5gvgi5+aCN7NECw30owbCc1mSpjiahyNVwJd1jiGgzSwfTpzf2c5XJvG/g1n0fH88KHNnf+u7ZiRMlXueSIsloJBUtW9ezvsx9grfsX/FNxnbxU1Lvg0hLxixypHKGFAaPu0xCD8oDTeFSyfRT6s8109GMUZL8m2xXp8X2dpPCWWdX84iga4BrTlOfqox4shqEgh/Ht4qRst52cA1xOIUuOxgfUivp6v5f8IVyaryEdpVk72ERAwdT4aoY1usBgmP+0m06Q216H/nubtNYxHaOIYjcach3A8Ez/zc0KcShhel0HCYjFsA0FjYqyJ5ZUH1aZw3+zWC0hLpM6GDfcAdn9fq2orPmZbW6XXrf+Krc9RtvII5jeD3dFoT1KwZJwxfUMvc5KLfn8rROW23Jw89sJ2a5dpB3qWDUBWF2iX8OCuKprHosJ2mflBR+Wqs86VvgI/XMnsqb97+VlKdPVysczPj8Jhzf+WCvGBHijAqYlavbF60soMWlHbvKT+ScvhprgeTln51xX0sF+Eadc/l2s2a5BgkVbHYyz0E85p0LstqH+gEGiR84nBRRFIn8hLSZrGwqjZ3E29cuGi+5Z5bp7EM8MWFa9ssS/vy4VrDfECSv7DSU84DaP0sXI3Ap4lWznQ65nQoTKRWU30gd7Nn8ZowUvGIx4aqyXGwmA/PB4qN8msJUODezUHEl0VP9uo+cZ8vPFodSIB4C7lQYjEFj8yu49C2KIV3qxMFYTevG8KqAr0TPlkbzHHnTpDpvpzziAiNFh8xiT7C/TiyH0EguUw4vxAgpnE27WIypV+uFN2zW7xniF/n75trs9IJ5amB1zXXZ1LFkJ6GbS/dFokzl4cc2mamVwhL4XU0Av5gDWAl+aEWhAP7t2VIwU+EpvfOPDcLASX7H7lZpXA2XQfbSlD4qU18NffNPoAKMNSccBfO9YVVgmlW4RydBqfHAV7+hrZ84WJGho6bNT0YMhxxLdOx/dwGj0oyak9aAkNJ8lRJzUuA8sR+fPyiyTgUHio5+Pp+YaKlHrhR41jY5NESPS3x+zTMe0S2HnLOKCOQPpdxKyviBvdHrCDRqO+l96HhhNBLXWv4yEMuEUYo8kXnYJM8oIgVM4XJ+xXOev4YbWeqsvgq0lmw4/PiYr9sYLt+W5EAuYSFnJEan8CwJwbtASBfLBBpJZiRPor/aCJBZsM+MhvS7ZepyHvU8m5WSmaZnxuLts8ojl6KkS8oSAHkq5GWlCB/NgJ5W3rO2Cj1MK7ahxsCrbTT3a0V/QQH+sErxV4XUWDHx0kkFy25bPmBMBQ6BU3HoHhhYcJB9JhP6NXUWKxnE0raXHB6U9KHpWdQCQI72qevp5fMzcm+AvC85rsynVQhruDA9fp9COe7N56cg1UKGSas89vrN+WlGLYTwi5W+0xYdKEGtGCeNJwXKDU0XqU5uQYnWsMwTENLGtbQMvoGjIFIEMzCRal4rnBAg7D/CSn8MsCvS+FDJJAzoiioJEhZJgAp9n2+1Yznr7H+6eT4YkJ9Mpj60ImcW4i4iHDLn9RydB8dx3QYm3rsX6n4VRrZDsYK6DCGwkwd5n3/INFEpk16fYpP6JtMQpqEMzcOfQGAHXBTEGzuLJ03GYQL9bmV2/7ExDlRf+Uvf1sM2frRtCWmal12pMgtonvSCtR4n1CLUZRdTHDHP1Otwqd+rcdlavnKjUB/OYXQHUJzpNyFoKpQK+2OgrEKpGyIgIBgn2y9QHnTJihZOpEvOKIoHAMGAXHmj21Lym39Mbiow4IF+77xNuewziNVBxr6KD5e+9HzZSBIlUa/AmsDFJFXeyrQakR3FwowTGcADJHcEfhGkXYNGSYo4dh4bxwLM+28xjiqkdn0/3R4UEkvcBrBfn/SzBc1XhKM2VPlJgKSorjDac96V2UnQYXl1/yZPT4DVelgO+soMjexXwYO58VLl5xInQUZI8jc3H2CPnCNb9X05nOxIy4MlecasTqGK6s2az4RjpF2cQP2G28R+7wDPsZDZC/kWtjdoHC7SpdPmqQrUAhMwKVuxCmYTiD9q/O7GHtZvPSN0CAUQN/rymXZNniYLlJDE70bsk6Xxsh4kDOdxe7A2wo7P9F5YvqqRDI6brf79yPCSp4I0jVoO4YnLYtX5nzspR5WB4AKOYtR1ujXbOQpPyYDvfRE3FN5zw0i7reehdi7yV0YDRKRllGCGRk5Yz+Uv1fYl2ZwrnGsqsjgAVo0xEUba8ohjaNMJNwTwZA/wBDWFSCpg1eUH8MYL2zdioxRTqgGQrDZxQyNzyBJPXZF0+oxITJAbj7oNC5JwgDMUJaM5GqlGCWc//KCIrI+aclEe4IA0uzv7cuj6GCdaJONpi13O544vbtIHBF+A+JeDFUQNy61Gki3rtyQ4aUywn6ru314/dkGiP8Iwjo0J/2Txs49ZkwEl4mx+iYUUO55I6pJzU4P+7RRs+DXZkyKUYZqVWrPF4I94m4Wx1tXeE74o9GuX977yvJ/jkdak8+AmoHVjI15V+WwBdARFV2IPirJgVMdsg1Pez2VNHqa7EHWdTkl3XTcyjG9BiueWFvQfXI8aWSkuuRmqi/HUuzqyvLJfNfs0txMqldYYflWB1BS31WkuPJGGwXUCpjiQSktkuBMWwHjSkQxeehqw1Kgz0Trzm7QbtgxiEPDVmWCNCAeCfROTphd1ZNOhzLy6XfJyG6Xgd5MCAZw4xie0Sj5AnY1/akDgNS9YFl3Y06vd6FAsg2gVQJtzG7LVq1OH2frbXNHWH/NY89NNZ4QUSJqL2yEcGADbT38X0bGdukqYlSoliKOcsSTuqhcaemUeYLLoI8+MZor2RxXTRThF1LrHfqf/5LcLAjdl4EERgUysYS2geE+yFdasU91UgUDsc2cSQ1ZoT9+uLOwdgAmifwQqF028INc2IQEDfTmUw3eZxvz7Ud1z3xc1PQfeCvfKsB9jOhRj7rFyb9XcDWLcYj0bByosychMezMLVkFiYcdBBQtvI6K0KRuOZQH2kBsYHJaXTkup8F0eIhO1/GcIwWKpr2mouB7g5TUDJNvORXPXa/mU8bh27TAZYBe2sKx4NSv5OjnHIWD2RuysCzBlUfeNXhDd2jxnHoUlheJ3jBApzURy0fwm2FwwsSU0caQGl0Kv8hopRQE211NnvtLRsmCNrhhpEDoNiZEzD2QdJWKbRRWnaFedXHAELSN0t0bfsCsMf0ktfBoXBoNA+nZN9+pSlmuzspFevmsqqcMllzzvkyXrzoA+Ryo1ePXpdGOoJvhyru+EBRsmOp7MXZ0vNUMUqHLUoKglg1p73sWeZmPc+KAw0pE2zIsFFE5H4192KwDvDxdxEYoDBDNZjbg2bmADTeUKK57IPD4fTYF4c6EnXx/teYMORBDtIhPJneiZny7Nv/zG+YmekIKCoxr6kauE2bZtBLufetNG0BtBY7f+/ImUypMBvdWu/Q7vTMRzw5aQGZWuc1V0HEsItFYMIBnoKGZ0xcarba/TYZq50kCaflFysYjA4EDKHqGdpYWdKYmm+a7TADmW35yfnOYpZYrkpVEtiqF0EujI00aeplNs2k+qyFZNeE3CDPL9P6b4PQ/kataHkVpLSEVGK7EX6rAa7IVNrvZtFvOA6okKvBgMtFDAGZOx88MeBcJ8AR3AgUUeIznAN6tjCUipGDZONm1FjWJp4A3QIzSaIOmZ7DvF/ysYYbM/fFDOV0jntAjRdapxJxL0eThpEhKOjCDDq2ks+3GrwxqIFKLe1WdOzII8XIOPGnwy6LKXVfpSDOTEfaRsGujhpS4hBIsMOqHbl16PJxc4EkaVu9wpEYlF/84NSv5Zum4drMfp9yXbzzAOJqqS4YkI4cBrFrC7bMPiCfgI3nNZAqkk3QOZqR+yyqx+nDQKBBBZ7QKrfGMCL+XpqFaBJU0wpkBdAhbR4hJsmT5aynlvkouoxm/NjD5oe6BzVIO9uktM+/5dEC5P7vZvarmuO/lKXz4sBabVPIATuKTrwbJP8XUkdM6uEctHKXICUJGjaZIWRbZp8czquQYfY6ynBUCfIU+gG6wqSIBmYIm9pZpXdaL121V7q0VjDjmQnXvMe7ysoEZnZL15B0SpxS1jjd83uNIOKZwu5MPzg2NhOx3xMOPYwEn2CUzbSrwAs5OAtrz3GAaUkJOU74XwjaYUmGJdZBS1NJVkGYrToINLKDjxcuIlyfVsKQSG/G4DyiO2SlQvJ0d0Ot1uOG5IFSAkq+PRVMgVMDvOIJMdqjeCFKUGRWBW9wigYvcbU7CQL/7meF2KZAaWl+4y9uhowAX7elogAvItAAxo2+SFxGRsHGEW9BnhlTuWigYxRcnVUBRQHV41LV+Fr5CJYV7sHfeywswx4XMtUx6EkBhR+q8AXXUA8uPJ73Pb49i9KG9fOljvXeyFj9ixgbo6CcbAJ7WHWqKHy/h+YjBwp6VcN7M89FGzQ04qbrQtgrOFybg3gQRTYG5xn73ArkfQWjCJROwy3J38Dx/D7jOa6BBNsitEw1wGq780EEioOeD+ZGp2J66ADiVGMayiHYucMk8nTK2zzT9CnEraAk95kQjy4k0GRElLL5YAKLQErJ5rp1eay9O4Fb6yJGm9U4FaMwPGxtKD6odIIHKoWnhKo1U8KIpFC+MVn59ZXmc7ZTBZfsg6FQ8W10YfTr4u0nYrpHZbZ1jXiLmooF0cOm0+mPnJBXQtepc7n0BqOipNCqI6yyloTeRShNKH04FIo0gcMk0H/xThyN4pPAWjDDkEp3lNNPRNVfpMI44CWRlRgViP64eK0JSRp0WUvCWYumlW/c58Vcz/yMwVcW5oYb9+26TEhwvbxiNg48hl1VI1UXTU//Eta+BMKnGUivctfL5wINDD0giQL1ipt6U7C9cd4+lgqY2lMUZ02Uv6Prs+ZEZer7ZfWBXVghlfOOrClwsoOFKzWEfz6RZu1eCs+K8fLvkts5+BX0gyrFYve0C3qHrn5U/Oh6D/CihmWIrY7HUZRhJaxde+tldu6adYJ+LeXupQw0XExC36RETdNFxcq9glMu4cNQSX9cqR/GQYp+IxUkIcNGWVU7ZtGa6P3XAyodRt0XeS3Tp01AnCh0ZbUh4VrSZeV9RWfSoWyxnY3hzcZ30G/InDq4wxRrEejreBxnhIQbkxenxkaxl+k7eLUQkUR6vKJ2iDFNGX3WmVA1yaOH+mvhBd+sE6vacQzFobwY5BqEAFmejwW5ne7HtVNolOUgJc8CsUxmc/LBi8N5mu9VsIA5HyErnS6zeCz7VLI9+n/hbT6hTokMXTVyXJRKSG2hd2labXTbtmK4fNH3IZBPreSA4FMeVouVN3zG5x9CiGpLw/3pceo4qGqp+rVp+z+7yQ98oEf+nyH4F3+J9IheDBa94Wi63zJbLBCIZm7P0asHGpIJt3PzE3m0S4YIWyXBCVXGikj8MudDPB/6Nm2v4IxJ5gU0ii0guy5SUHqGUYzTP0jIJU5E82RHUXtX4lDdrihBLdP1YaG1AGUC12rQKuIaGvCpMjZC9bWSCYnjDlvpWbkdXMTNeBHLKiuoozMGIvkczmP0aRJSJ8PYnLCVNhKHXBNckH79e8Z8Kc2wUej4sQZoH8qDRGkg86maW/ZQWGNnLcXmq3FlXM6ssR/3P6E/bHMvm6HLrv1yRixit25JsH3/IOr2UV4BWJhxXW5BJ6Xdr07n9kF3ZNAk6/Xpc5MSFmYJ2R7bdL8Kk7q1OU9Elg/tCxJ8giT27wSTySF0GOxg4PbYJdi/Nyia9Nn89CGDulfJemm1aiEr/eleGSN+5MRrVJ4K6lgyTTIW3i9cQ0dAi6FHt0YMbH3wDSAtGLSAccezzxHitt1QdhW36CQgPcA8vIIBh3/JNjf/Obmc2yzpk8edSlS4lVdwgW5vzbYEyFoF4GCBBby1keVNueHAH+evi+H7oOVfS3XuPQSNTXOONAbzJeSb5stwdQHl1ZjrGoE49I8+A9j3t+ahhQj74FCSWpZrj7wRSFJJnnwi1T9HL5qrCFW/JZq6P62XkMWTb+u4lGpKfmmwiJWx178GOG7KbrZGqyWwmuyKWPkNswkZ1q8uptUlviIi+AXh2bOOTOLsrtNkfqbQJeh24reebkINLkjut5r4d9GR/r8CBa9SU0UQhsnZp5cP+RqWCixRm7i4YRFbtZ4EAkhtNa6jHb6gPYQv7MKqkPLRmX3dFsK8XsRLVZ6IEVrCbmNDc8o5mqsogjAQfoC9Bc7R6gfw03m+lQpv6kTfhxscDIX6s0w+fBxtkhjXAXr10UouWCx3C/p/FYwJRS/AXRKkjOb5CLmK4XRe0+xeDDwVkJPZau52bzLEDHCqV0f44pPgKOkYKgTZJ33fmk3Tu8SdxJ02SHM8Fem5SMsWqRyi2F1ynfRJszcFKykdWlNqgDA/L9lKYBmc7Zu/q9ii1FPF47VJkqhirUob53zoiJtVVRVwMR34gV9iqcBaHbRu9kkvqk3yMpfRFG49pKKjIiq7h/VpRwPGTHoY4cg05X5028iHsLvUW/uz+kjPyIEhhcKUwCkJAwbR9pIEGOn8z6svAO8i89sJ3dL5qDWFYbS+HGPRMxYwJItFQN86YESeJQhn2urGiLRffQeLptDl8dAgb+Tp47UQPxWOw17OeChLN1WnzlkPL1T5O+O3Menpn4C3IY5LEepHpnPeZHbvuWfeVtPlkH4LZjPbBrkJT3NoRJzBt86CO0Xq59oQ+8dsm0ymRcmQyn8w71mhmcuEI5byuF+C88VPYly2sEzjlzAQ3vdn/1+Hzguw6qFNNbqenhZGbdiG6RwZaTG7jTA2X9RdXjDN9yj1uQpyO4Lx8KRAcZcbZMafp4wPOd5MdXoFY52V1A8M9hi3sso93+uprE0qYNMjkE22CvK4HuUxqN7oIz5pWuETq1lQAjqlSlqdD2Rnr/ggp/TVkQYjn9lMfYelk2sH5HPdopYo7MHwlV1or9Bxf+QCyLzm92vzG2wjiIjC/ZHEJzeroJl6bdFPTpZho5MV2U86fLQqxNlGIMqCGy+9WYhJ8ob1r0+Whxde9L2PdysETv97O+xVw+VNN1TZSQN5I6l9m5Ip6pLIqLm4a1B1ffH6gHyqT9p82NOjntRWGIofO3bJz5GhkvSWbsXueTAMaJDou99kGLqDlhwBZNEQ4mKPuDvVwSK4WmLluHyhA97pZiVe8g+JxmnJF8IkV/tCs4Jq/HgOoAEGR9tCDsDbDmi3OviUQpG5D8XmKcSAUaFLRXb2lmJTNYdhtYyfjBYZQmN5qT5CNuaD3BVnlkCk7bsMW3AtXkNMMTuW4HjUERSJnVQ0vsBGa1wo3Qh7115XGeTF3NTz8w0440AgU7c3bSXO/KMINaIWXd0oLpoq/0/QJxCQSJ9XnYy1W7TYLBJpHsVWD1ahsA7FjNvRd6mxCiHsm8g6Z0pnzqIpF1dHUtP2ITU5Z1hZHbu+L3BEEStBbL9XYvGfEakv1bmf+bOZGnoiuHEdlBnaChxYKNzB23b8sw8YyT7Ajxfk49eJIAvdbVkdFCe2J0gMefhQ0bIZxhx3fzMIysQNiN8PgOUKxOMur10LduigREDRMZyP4oGWrP1GFY4t6groASsZ421os48wAdnrbovNhLt7ScNULkwZ5AIZJTrbaKYTLjA1oJ3sIuN/aYocm/9uoQHEIlacF1s/TM1fLcPTL38O9fOsjMEIwoPKfvt7opuI9G2Hf/PR4aCLDQ7wNmIdEuXJ/QNL72k5q4NejAldPfe3UVVqzkys8YZ/jYOGOp6c+YzRCrCuq0M11y7TiN6qk7YXRMn/gukxrEimbMQjr3jwRM6dKVZ4RUfWQr8noPXLJq6yh5R3EH1IVOHESst/LItbG2D2vRsZRkAObzvQAAD3mb3/G4NzopI0FAiHfbpq0X72adg6SRj+8OHMShtFxxLZlf/nLgRLbClwl5WmaYSs+yEjkq48tY7Z2bE0N91mJwt+ua0NlRJIDh0HikF4UvSVorFj2YVu9YeS5tfvlVjPSoNu/Zu6dEUfBOT555hahBdN3Sa5Xuj2Rvau1lQNIaC944y0RWj9UiNDskAK1WoL+EfXcC6IbBXFRyVfX/WKXxPAwUyIAGW8ggZ08hcijKTt1YKnUO6QPvcrmDVAb0FCLIXn5id4fD/Jx4tw/gbXs7WF9b2RgXtPhLBG9vF5FEkdHAKrQHZAJC/HWvk7nvzzDzIXZlfFTJoC3JpGgLPBY7SQTjGlUvG577yNutZ1hTfs9/1nkSXK9zzKLRZ3VODeKUovJe0WCq1zVMYxCJMenmNzPIU2S8TA4E7wWmbNkxq9rI2dd6v0VpcAPVMxnDsvWTWFayyqvKZO7Z08a62i/oH2/jxf8rpmfO64in3FLiL1GX8IGtVE9M23yGsIqJbxDTy+LtaMWDaPqkymb5VrQdzOvqldeU0SUi6IirG8UZ3jcpRbwHa1C0Dww9G/SFX3gPvTJQE+kyz+g1BeMILKKO+olcHzctOWgzxYHnOD7dpCRtuZEXACjgqesZMasoPgnuDC4nUviAAxDc5pngjoAITIkvhKwg5d608pdrZcA+qn5TMT6Uo/QzBaOxBCLTJX3Mgk85rMfsnWx86oLxf7p2PX5ONqieTa/qM3tPw4ZXvlAp83NSD8F7+ZgctK1TpoYwtiU2h02HCGioH5tkVCqNVTMH5p00sRy2JU1qyDBP2CII/Dg4WDsIl+zgeX7589srx6YORRQMBfKbodbB743Tl4WLKOEnwWUVBsm94SOlCracU72MSyj068wdpYjyz1FwC2bjQnxnB6Mp/pZ+yyZXtguEaYB+kqhjQ6UUmwSFazOb+rhYjLaoiM+aN9/8KKn0zaCTFpN9eKwWy7/u4EHzO46TdFSNjMfn2iPSJwDPCFHc0I1+vjdAZw5ZjqR/uzi9Zn20oAa5JnLEk/EA3VRWE7J/XrupfFJPtCUuqHPpnlL7ISJtRpSVcB8qsZCm2QEkWoROtCKKxUh3yEcMbWYJwk6DlEBG0bZP6eg06FL3v6RPb7odGuwm7FN8fG4woqtB8e7M5klPpo97GoObNwt+ludTAmxyC5hmcFx+dIvEZKI6igFKHqLH01iY1o7903VzG9QGetyVx5RNmBYUU+zIuSva/yIcECUi4pRmE3VkF2avqulQEUY4yZ/wmNboBzPmAPey3+dSYtBZUjeWWT0pPwCz4Vozxp9xeClIU60qvEFMQCaPvPaA70WlOP9f/ey39macvpGCVa+zfa8gO44wbxpJUlC8GN/pRMTQtzY8Z8/hiNrU+Zq64ZfFGIkdj7m7abcK1EBtws1X4J/hnqvasPvvDSDYWN+QcQVGMqXalkDtTad5rYY0TIR1Eqox3czwPMjKPvF5sFv17Thujr1IZ1Ytl4VX1J0vjXKmLY4lmXipRAro0qVGEcXxEVMMEl54jQMd4J7RjgomU0j1ptjyxY+cLiSyXPfiEcIS2lWDK3ISAy6UZ3Hb5vnPncA94411jcy75ay6B6DSTzK6UTCZR9uDANtPBrvIDgjsfarMiwoax2OlLxaSoYn4iRgkpEGqEkwox5tyI8aKkLlfZ12lO11TxsqRMY89j5JaO55XfPJPDL1LGSnC88Re9Ai+Nu5bZjtwRrvFITUFHPR4ZmxGslQMecgbZO7nHk32qHxYkdvWpup07ojcMCaVrpFAyFZJJbNvBpZfdf39Hdo2kPtT7v0/f8R/B5Nz4f1t9/3zNM/7n6SUHfcWk5dfQFJvcJMgPolGCpOFb/WC0FGWU2asuQyT+rm88ZKZ78Cei/CAh939CH0JYbpZIPtxc2ufXqjS3pHH9lnWK4iJ7OjR/EESpCo2R3MYKyE7rHfhTvWho4cL1QdN4jFTyR6syMwFm124TVDDRXMNveI1Dp/ntwdz8k8kxw7iFSx6+Yx6O+1LzMVrN0BBzziZi9kneZSzgollBnVwBh6oSOPHXrglrOj+QmR/AESrhDpKrWT+8/AiMDxS/5wwRNuGQPLlJ9ovomhJWn8sMLVItQ8N/7IXvtD8kdOoHaw+vBSbFImQsv/OCAIui99E+YSIOMlMvBXkAt+NAZK8wB9Jf8CPtB+TOUOR+z71d/AFXpPBT6+A5FLjxMjLIEoJzrQfquvxEIi+WoUzGR1IzQFNvbYOnxb2PyQ0kGdyXKzW2axQL8lNAXPk6NEjqrRD1oZtKLlFoofrXw0dCNWASHzy+7PSzOUJ3XtaPZsxLDjr+o41fKuKWNmjiZtfkOzItvlV2MDGSheGF0ma04qE3TUEfqJMrXFm7DpK+27DSvCUVf7rbNoljPhha5W7KBqVq0ShUSTbRmuqPtQreVWH4JET5yMhuqMoSd4r/N8sDmeQiQQvi1tcZv7Moc7dT5X5AtCD6kNEGZOzVcNYlpX4AbTsLgSYYliiPyVoniuYYySxsBy5cgb3pD+EK0Gpb0wJg031dPgaL8JZt6sIvzNPEHfVPOjXmaXj4bd4voXzpZ5GApMhILgMbCEWZ2zwgdeQgjNHLbPIt+KqxRwWPLTN6HwZ0Ouijj4UF+Sg0Au8XuIKW0WxlexdrFrDcZJ8Shauat3X0XmHygqgL1nAu2hrJFb4wZXkcS+i36KMyU1yFvYv23bQUJi/3yQpqr/naUOoiEWOxckyq/gq43dFou1DVDaYMZK9tho7+IXXokBCs5GRfOcBK7g3A+jXQ39K4YA8PBRW4m5+yR0ZAxWJncjRVbITvIAPHYRt1EJ3YLiUbqIvoKHtzHKtUy1ddRUQ0AUO41vonZDUOW+mrszw+SW/6Q/IUgNpcXFjkM7F4CSSQ2ExZg85otsMs7kqsQD4OxYeBNDcSpifjMoLb7GEbGWTwasVObmB/bfPcUlq0wYhXCYEDWRW02TP5bBrYsKTGWjnWDDJ1F7zWai0zW/2XsCuvBQjPFcTYaQX3tSXRSm8hsAoDdjArK/OFp6vcWYOE7lizP0Yc+8p16i7/NiXIiiQTp7c7Xus925VEtlKAjUdFhyaiLT7VxDagprMFwix4wZ05u0qj7cDWFd0W9OYHIu3JbJKMXRJ1aYNovugg+QqRN7fNHSi26VSgBpn+JfMuPo3aeqPWik/wI5Rz3BWarPQX4i5+dM0npwVOsX+KsOhC7vDg+OJsz4Q5zlnIeflUWL6QYMbf9WDfLmosLF4Qev3mJiOuHjoor/dMeBpA9iKDkMjYBNbRo414HCxjsHrB4EXNbHzNMDHCLuNBG6Sf+J4MZ/ElVsDSLxjIiGsTPhw8BPjxbfQtskj+dyNMKOOcUYIRBEIqbazz3lmjlRQhplxq673VklMMY6597vu+d89ec/zq7Mi4gQvh87ehYbpOuZEXj5g/Q7S7BFDAAB9DzG35SC853xtWVcnZQoH54jeOqYLR9NDuwxsVthTV7V99n/B7HSbAytbEyVTz/5NhJ8gGIjG0E5j3griULUd5Rg7tQR+90hJgNQKQH2btbSfPcaTOfIexc1db1BxUOhM1vWCpLaYuKr3FdNTt/T3PWCpEUWDKEtzYrjpzlL/wri3MITKsFvtF8QVV/NhVo97aKIBgdliNc10dWdXVDpVtsNn+2UIolrgqdWA4EY8so0YvB4a+aLzMXiMAuOHQrXY0tr+CL10JbvZzgjJJuB1cRkdT7DUqTvnswVUp5kkUSFVtIIFYK05+tQxT6992HHNWVhWxUsD1PkceIrlXuUVRogwmfdhyrf6zzaL8+c0L7GXMZOteAhAVQVwdJh+7nrX7x4LaIIfz2F2v7Dg/uDfz2Fa+4gFm2zHAor8UqimJG3VTJtZEoFXhnDYXvxMJFc6ku2bhbCxzij2z5UNuK0jmp1mnvkVNUfR+SEmj1Lr94Lym75PO7Fs0MIr3GdsWXRXSfgLTVY0FLqba97u1In8NAcY7IC6TjWLigwKEIm43NxTdaVTv9mcKkzuzBkKd8x/xt1p/9BbP7Wyb4bpo1K1gnOpbLvKz58pWl3B55RJ/Z5mRDLPtNQg14jdOEs9+h/V5UVpwrAI8kGbX8KPVPDIMfIqKDjJD9UyDOPhjZ3vFAyecwyq4akUE9mDOtJEK1hpDyi6Ae87sWAClXGTiwPwN7PXWwjxaR79ArHRIPeYKTunVW24sPr/3HPz2IwH8oKH4OlWEmt4BLM6W5g4kMcYbLwj2usodD1088stZA7VOsUSpEVl4w7NMb1EUHMRxAxLF0CIV+0L3iZb+ekB1vSDSFjAZ3hfLJf7gFaXrOKn+mhR+rWw/eTXIcAgl4HvFuBg1LOmOAwJH3eoVEjjwheKA4icbrQCmvAtpQ0mXG0agYp5mj4Rb6mdQ+RV4QBPbxMqh9C7o8nP0Wko2ocnCHeRGhN1XVyT2b9ACsL+6ylUy+yC3QEnaKRIJK91YtaoSrcWZMMwxuM0E9J68Z+YyjA0g8p1PfHAAIROy6Sa04VXOuT6A351FOWhKfTGsFJ3RTJGWYPoLk5FVK4OaYR9hkJvezwF9vQN1126r6isMGXWTqFW+3HL3I/jurlIdDWIVvYY+s6yq7lrFSPAGRdnU7PVwY/SvWbZGpXzy3BQ2LmAJlrONUsZs4oGkly0V267xbD5KMY8woNNsmWG1VVgLCra8aQBBcI4DP2BlNwxhiCtHlaz6OWFoCW0vMR3ErrG7JyMjTSCnvRcsEHgmPnwA6iNpJ2DrFb4gLlhKJyZGaWkA97H6FFdwEcLT6DRQQL++fOkVC4cYGW1TG/3iK5dShRSuiBulmihqgjR45Vi03o2RbQbP3sxt90VxQ6vzdlGfkXmmKmjOi080JSHkLntjvsBJnv7gKscOaTOkEaRQqAnCA4HWtB4XnMtOhpRmH2FH8tTXrIjAGNWEmudQLCkcVlGTQ965Kh0H6ixXbgImQP6b42B49sO5C8pc7iRlgyvSYvcnH9FgQ3azLbQG2cUW96SDojTQStxkOJyOuDGTHAnnWkz29aEwN9FT8EJ4yhXOg+jLTrCPKeEoJ9a7lDXOjEr8AgX4BmnMQ668oW0zYPyQiVMPxKRHtpfnEEyaKhdzNVThlxxDQNdrHeZiUFb6NoY2KwvSb7BnRcpJy+/g/zAYx3fYSN5QEaVD2Y1VsNWxB0BSO12MRsRY8JLfAezRMz5lURuLUnG1ToKk6Q30FughqWN6gBNcFxP/nY/iv+iaUQOa+2Nuym46wtI/DvSfzSp1jEi4SdYBE7YhTiVV5cX9gwboVDMVgZp5YBQlHOQvaDNfcCoCJuYhf5kz5kwiIKPjzgpcRJHPbOhJajeoeRL53cuMahhV8Z7IRr6M4hW0JzT7mzaMUzQpm866zwM7Cs07fJYXuWvjAMkbe5O6V4bu71sOG6JQ4oL8zIeXHheFVavzxmlIyBkgc9IZlEDplMPr8xlcyss4pVUdwK1e7CK2kTsSdq7g5SHRAl3pYUB9Ko4fsh4qleOyJv1z3KFSTSvwEcRO/Ew8ozEDYZSqpfoVW9uhJfYrNAXR0Z3VmeoAD+rVWtwP/13sE/3ICX3HhDG3CMc476dEEC0K3umSAD4j+ZQLVdFOsWL2C1TH5+4KiSWH+lMibo+B55hR3Gq40G1n25sGcN0mEcoU2wN9FCVyQLBhYOu9aHVLWjEKx2JIUZi5ySoHUAI9b8hGzaLMxCZDMLhv8MkcpTqEwz9KFDpCpqQhVmsGQN8m24wyB82FAKNmjgfKRsXRmsSESovAwXjBIoMKSG51p6Um8b3i7GISs7kjTq/PZoioCfJzfKdJTN0Q45kQEQuh9H88M3yEs3DbtRTKALraM0YC8laiMiOOe6ADmTcCiREeAWZelBaEXRaSuj2lx0xHaRYqF65O0Lo5OCFU18A8cMDE4MLYm9w2QSr9NgQAIcRxZsNpA7UJR0e71JL+VU+ISWFk5I97lra8uGg7GlQYhGd4Gc6rxsLFRiIeGO4abP4S4ekQ1fiqDCy87GZHd52fn5aaDGuvOmIofrzpVwMvtbreZ/855OaXTRcNiNE0wzGZSxbjg26v8ko8L537v/XCCWP2MFaArJpvnkep0pA+O86MWjRAZPQRfznZiSIaTppy6m3p6HrNSsY7fDtz7Cl4V/DJAjQDoyiL2uwf1UHVd2AIrzBUSlJaTj4k6NL97a/GqhWKU9RUmjnYKpm2r+JYUcrkCuZKvcYvrg8pDoUKQywY9GDWg03DUFSirlUXBS5SWn/KAntnf0IdHGL/7mwXqDG+LZYjbEdQmqUqq4y54TNmWUP7IgcAw5816YBzwiNIJiE9M4lPCzeI/FGBeYy3p6IAmH4AjXXmvQ4Iy0Y82NTobcAggT2Cdqz6Mx4TdGoq9fn2etrWKUNFyatAHydQTVUQ2S5OWVUlugcNvoUrlA8cJJz9MqOa/W3iVno4zDHfE7zhoY5f5lRTVZDhrQbR8LS4eRLz8iPMyBL6o4PiLlp89FjdokQLaSBmKHUwWp0na5fE3v9zny2YcDXG/jfI9sctulHRbdkI5a4GOPJx4oAJQzVZ/yYAado8KNZUdEFs9ZPiBsausotXMNebEgr0dyopuqfScFJ3ODNPHgclACPdccwv0YJGQdsN2lhoV4HVGBxcEUeUX/alr4nqpcc1CCR3vR7g40zteQg/JvWmFlUE4mAiTpHlYGrB7w+U2KdSwQz2QJKBe/5eiixWipmfP15AFWrK8Sh1GBBYLgzki1wTMhGQmagXqJ2+FuqJ8f0XzXCVJFHQdMAw8xco11HhM347alrAu+wmX3pDFABOvkC+WPX0Uhg1Z5MVHKNROxaR84YV3s12UcM+70cJ460SzEaKLyh472vOMD3XnaK7zxZcXlWqenEvcjmgGNR2OKbI1s8U+iwiW+HotHalp3e1MGDy6BMVIvajnAzkFHbeVsgjmJUkrP9OAwnEHYXVBqYx3q7LvXjoVR0mY8h+ZaOnh053pdsGkmbqhyryN01eVHySr+CkDYkSMeZ1xjPNVM+gVLTDKu2VGsMUJqWO4TwPDP0VOg2/8ITbAUaMGb4LjL7L+Pi11lEVMXTYIlAZ/QHmTENjyx3kDkBdfcvvQt6tKk6jYFM4EG5UXDTaF5+1ZjRz6W7MdJPC+wTkbDUim4p5QQH3b9kGk2Bkilyeur8Bc20wm5uJSBO95GfYDI1EZipoRaH7uVveneqz43tlTZGRQ4a7CNmMHgXyOQQOL6WQkgMUTQDT8vh21aSdz7ERiZT1jK9F+v6wgFvuEmGngSvIUR2CJkc5tx1QygfZnAruONobB1idCLB1FCfO7N1ZdRocT8/Wye+EnDiO9pzqIpnLDl4bkaRKW+ekBVwHn46Shw1X0tclt/0ROijuUB4kIInrVJU4buWf4YITJtjOJ6iKdr1u+flgQeFH70GxKjhdgt/MrwfB4K/sXczQ+9zYcrD4dhY6qZhZ010rrxggWA8JaZyg2pYij8ieYEg1aZJkZK9O1Re7sB0iouf60rK0Gd+AYlp7soqCBCDGwfKeUQhCBn0E0o0GS6PdmjLi0TtCYZeqazqwN+yNINIA8Lk3iPDnWUiIPLGNcHmZDxfeK0iAdxm/T7LnN+gemRL61hHIc0NCAZaiYJR+OHnLWSe8sLrK905B5eEJHNlWq4RmEXIaFTmo49f8w61+NwfEUyuJAwVqZCLFcyHBKAcIVj3sNzfEOXzVKIndxHw+AR93owhbCxUZf6Gs8cz6/1VdrFEPrv330+9s6BtMVPJ3zl/Uf9rUi0Z/opexfdL3ykF76e999GPfVv8fJv/Y/+/5hEMon1tqNFyVRevV9y9/uIvsG3dbB8GRRrgaEXfhx+2xeOFt+cEn3RZanNxdEe2+B6MHpNbrRE53PlDifPvFcp4kO78ILR0T4xyW/WGPyBsqGdoA7zJJCu1TKbGfhnqgnRbxbB2B3UZoeQ2bz2sTVnUwokTcTU21RxN1PYPS3Sar7T0eRIsyCNowr9amwoMU/od9s2APtiKNL6ENOlyKADstAEWKA+sdKDhrJ6BOhRJmZ+QJbAaZ3/5Fq0/lumCgEzGEbu3yi0Y4I4EgVAjqxh4HbuQn0GrRhOWyAfsglQJAVL1y/6yezS2k8RE2MstJLh92NOB3GCYgFXznF4d25qiP4ZCyI4RYGesut6FXK6GwPpKK8WHEkhYui0AyEmr5Ml3uBFtPFdnioI8RiCooa7Z1G1WuyIi3nSNglutc+xY8BkeW3JJXPK6jd2VIMpaSxpVtFq+R+ySK9J6WG5Qvt+C+QH1hyYUOVK7857nFmyDBYgZ/o+AnibzNVqyYCJQvyDXDTK+iXdkA71bY7TL3bvuLxLBQ8kbTvTEY9aqkQ3+MiLWbEgjLzOH+lXgco1ERgzd80rDCymlpaRQbOYnKG/ODoFl46lzT0cjM5FYVvv0qLUbD5lyJtMUaC1pFlTkNONx6lliaX9o0i/1vws5bNKn5OuENQEKmLlcP4o2ZmJjD4zzd3Fk32uQ4uRWkPSUqb4LBe3EXHdORNB2BWsws5daRnMfNVX7isPSb1hMQdAJi1/qmDMfRUlCU74pmnzjbXfL8PVG8NsW6IQM2Ne23iCPIpryJjYbVnm5hCvKpMa7HLViNiNc+xTfDIaKm3jctViD8A1M9YPJNk003VVr4Zo2MuGW8vil8SLaGpPXqG7I4DLdtl8a4Rbx1Lt4w5Huqaa1XzZBtj208EJVGcmKYEuaeN27zT9EE6a09JerXdEbpaNgNqYJdhP1NdqiPKsbDRUi86XvvNC7rME5mrSQtrzAZVndtSjCMqd8BmaeGR4l4YFULGRBeXIV9Y4yxLFdyoUNpiy2IhePSWzBofYPP0eIa2q5JP4j9G8at/AqoSsLAUuRXtvgsqX/zYwsE+of6oSDbUOo4RMJw+DOUTJq+hnqwKim9Yy/napyZNTc2rCq6V9jHtJbxGPDwlzWj/Sk3zF/BHOlT/fSjSq7FqlPI1q6J+ru8Aku008SFINXZfOfnZNOvGPMtEmn2gLPt+H4QLA+/SYe4j398auzhKIp2Pok3mPC5q1IN1HgR+mnEfc4NeeHYwd2/kpszR3cBn7ni9NbIqhtSWFW8xbUJuUPVOeeXu3j0IGZmFNiwaNZ6rH4/zQ2ODz6tFxRLsUYZu1bfd1uIvfQDt4YD/efKYv8VF8bHGDgK22w2Wqwpi43vNCOXFJZCGMqWiPbL8mil6tsmOTXAWCyMCw73e2rADZj2IK6rqksM3EXF2cbLb4vjB14wa/yXK5vwU+05MzERJ5nXsXsW21o7M+gO0js2OyKciP5uF2iXyb2DiptwQeHeqygkrNsqVCSlldxBMpwHi1vfc8RKpP/4L3Lmpq6DZcvhDDfxTCE3splacTcOtXdK2g303dIWBVe2wD/Gvja1cClFQ67gw0t1ZUttsUgQ1Veky8oOpS6ksYEc4bqseCbZy766SvL3FodmnahlWJRgVCNjPxhL/fk2wyvlKhITH/VQCipOI0dNcRa5B1M5HmOBjTLeZQJy237e2mobwmDyJNHePhdDmiknvLKaDbShL+Is1XTCJuLQd2wmdJL7+mKvs294whXQD+vtd88KKk0DXP8B1Xu9J+xo69VOuFgexgTrcvI6SyltuLix9OPuE6/iRJYoBMEXxU4shQMf4Fjqwf1PtnJ/wWSZd29rhZjRmTGgiGTAUQqRz+nCdjeMfYhsBD5Lv60KILWEvNEHfmsDs2L0A252351eUoYxAysVaCJVLdH9QFWAmqJDCODUcdoo12+gd6bW2boY0pBVHWL6LQDK5bYWh1V8vFvi0cRpfwv7cJiMX3AZNJuTddHehTIdU0YQ/sQ1dLoF2xQPcCuHKiuCWOY30DHe1OwcClLAhqAKyqlnIbH/8u9ScJpcS4kgp6HKDUdiOgRaRGSiUCRBjzI5gSksMZKqy7Sd51aeg0tgJ+x0TH9YH2Mgsap9N7ENZdEB0bey2DMTrBA1hn56SErNHf3tKtqyL9b6yXEP97/rc+jgD2N1LNUH6RM9AzP3kSipr06RkKOolR7HO768jjWiH1X92jA7dkg7gcNcjqsZCgfqWw0tPXdLg20cF6vnQypg7gLtkazrHAodyYfENPQZsdfnjMZiNu4nJO97D1/sQE+3vNFzrSDOKw+keLECYf7RJwVHeP/j79833oZ0egonYB2FlFE5qj02B/LVOMJQlsB8uNg3Leg4qtZwntsOSNidR0abbZmAK4sCzvt8Yiuz2yrNCJoH5O8XvX/vLeR/BBYTWj0sOPYM/jyxRd5+/JziKAABaPcw/34UA3aj/gLZxZgRCWN6m4m3demanNgsx0P237/Q+Ew5VYnJPkyCY0cIVHoFn2Ay/e7U4P19APbPFXEHX94N6KhEMPG7iwB3+I+O1jd5n6VSgHegxgaSawO6iQCYFgDsPSMsNOcUj4q3sF6KzGaH/0u5PQoAj/8zq6Uc9MoNrGqhYeb2jQo0WlGlXjxtanZLS24/OIN5Gx/2g684BPDQpwlqnkFcxpmP/osnOXrFuu4PqifouQH0eF5qCkvITQbJw/Zvy5mAHWC9oU+cTiYhJmSfKsCyt1cGVxisKu+NymEQIAyaCgud/V09qT3nk/9s/SWsYtha7yNpzBIMM40rCSGaJ9u6lEkl00vXBiEt7p9P5IBCiavynEOv7FgLqPdeqxRiCwuFVMolSIUBcoyfUC2e2FJSAUgYdVGFf0b0Kn2EZlK97yyxrT2MVgvtRikfdaAW8RwEEfN+B7/eK8bBdp7URpbqn1xcrC6d2UjdsKbzCjBFqkKkoZt7Mrhg6YagE7spkqj0jOrWM+UGQ0MUlG2evP1uE1p2xSv4dMK0dna6ENcNUF+xkaJ7B764NdxLCpuvhblltVRAf7vK5qPttJ/9RYFUUSGcLdibnz6mf7WkPO3MkUUhR2mAOuGv8IWw5XG1ZvoVMnjSAZe6T7WYA99GENxoHkMiKxHlCuK5Gd0INrISImHQrQmv6F4mqU/TTQ8nHMDzCRivKySQ8dqkpQgnUMnwIkaAuc6/FGq1hw3b2Sba398BhUwUZSAIO8XZvnuLdY2n6hOXws+gq9BHUKcKFA6kz6FDnpxLPICa3qGhnc97bo1FT/XJk48LrkHJ2CAtBv0RtN97N21plfpXHvZ8gMJb7Zc4cfI6MbPwsW7AilCSXMFIEUEmir8XLEklA0ztYbGpTTGqttp5hpFTTIqUyaAIqvMT9A/x+Ji5ejA4Bhxb/cl1pUdOD6epd3yilIdO6j297xInoiBPuEDW2/UfslDyhGkQs7Wy253bVnlT+SWg89zYIK/9KXFl5fe+jow2rd5FXv8zDPrmfMXiUPt9QBO/iK4QGbX5j/7Rx1c1vzsY8ONbP3lVIaPrhL4+1QrECTN3nyKavGG0gBBtHvTKhGoBHgMXHStFowN+HKrPriYu+OZ05Frn8okQrPaaxoKP1ULCS/cmKFN3gcH7HQlVjraCeQmtjg1pSQxeuqXiSKgLpxc/1OiZsU4+n4lz4hpahGyWBURLi4642n1gn9qz9bIsaCeEPJ0uJmenMWp2tJmIwLQ6VSgDYErOeBCfSj9P4G/vI7oIF+l/n5fp956QgxGvur77ynawAu3G9MdFbJbu49NZnWnnFcQHjxRuhUYvg1U/e84N4JTecciDAKb/KYIFXzloyuE1eYXf54MmhjTq7B/yBToDzzpx3tJCTo3HCmVPYfmtBRe3mPYEE/6RlTIxbf4fSOcaKFGk4gbaUWe44hVk9SZzhW80yfW5QWBHxmtUzvMhfVQli4gZTktIOZd9mjJ5hsbmzttaHQB29Am3dZkmx3g/qvYocyhZ2PXAWsNQiIaf+Q8W/MWPIK7/TjvCx5q2XRp4lVWydMc2wIQkhadDB0xsnw/kSEyGjLKjI4coVIwtubTF3E7MJ6LS6UOsJKj82XVAVPJJcepfewbzE91ivXZvOvYfsmMevwtPpfMzGmC7WJlyW2j0jh7AF1JLmwEJSKYwIvu6DHc3YnyLH9ZdIBnQ+nOVDRiP+REpqv++typYHIvoJyICGA40d8bR7HR2k7do6UQTHF4oriYeIQbxKe4Th6+/l1BjUtS9hqORh3MbgvYrStXTfSwaBOmAVQZzpYNqsAmQyjY56MUqty3c/xH6GuhNvNaG9vGbG6cPtBM8UA3e8r51D0AR9kozKuGGSMgLz3nAHxDNnc7GTwpLj7/6HeWp1iksDeTjwCLpxejuMtpMnGJgsiku1sOACwQ9ukzESiDRN77YNESxR5LphOlcASXA5uIts1LnBIcn1J7BLWs49DMALSnuz95gdOrTZr0u1SeYHinno/pE58xYoXbVO/S+FEMMs5qyWkMnp8Q3ClyTlZP52Y9nq7b8fITPuVXUk9ohG5EFHw4gAEcjFxfKb3xuAsEjx2z1wxNbSZMcgS9GKyW3R6KwJONgtA64LTyxWm8Bvudp0M1FdJPEGopM4Fvg7G/hsptkhCfHFegv4ENwxPeXmYhxwZy7js+BeM27t9ODBMynVCLJ7RWcBMteZJtvjOYHb5lOnCLYWNEMKC59BA7covu1cANa2PXL05iGdufOzkgFqqHBOrgQVUmLEc+Mkz4Rq8O6WkNr7atNkH4M8d+SD1t/tSzt3oFql+neVs+AwEI5JaBJaxARtY2Z4mKoUqxds4UpZ0sv3zIbNoo0J4fihldQTX3XNcuNcZmcrB5LTWMdzeRuAtBk3cZHYQF6gTi3PNuDJ0nmR+4LPLoHvxQIxRgJ9iNNXqf2SYJhcvCtJiVWo85TsyFOuq7EyBPJrAdhEgE0cTq16FQXhYPJFqSfiVn0IQnPOy0LbU4BeG94QjdYNB0CiQ3QaxQqD2ebSMiNjaVaw8WaM4Z5WnzcVDsr4eGweSLa2DE3BWViaxhZFIcSTjgxNCAfelg+hznVOYoe5VqTYs1g7WtfTm3e4/WduC6p+qqAM8H4ZyrJCGpewThTDPe6H7CzX/zQ8Tm+r65HeZn+MsmxUciEWPlAVaK/VBaQBWfoG/aRL/jSZIQfep/89GjasWmbaWzeEZ2R1FOjvyJT37O9B8046SRSKVEnXWlBqbkb5XCS3qFeuE9xb9+frEknxWB5h1D/hruz2iVDEAS7+qkEz5Ot5agHJc7WCdY94Ws61sURcX5nG8UELGBAHZ3i+3VulAyT0nKNNz4K2LBHBWJcTBX1wzf+//u/j/9+//v87+9/l9Lbh/L/uyNYiTsWV2LwsjaA6MxTuzFMqmxW8Jw/+IppdX8t/Clgi1rI1SN0UC/r6tX/4lUc2VV1OQReSeCsjUpKZchw4XUcjHfw6ryCV3R8s6VXm67vp4n+lcPV9gJwmbKQEsmrJi9c2vkwrm8HFbVYNTaRGq8D91t9n5+U+aD/hNtN3HjC/nC/vUoGFSCkXP+NlRcmLUqLbiUBl4LYf1U/CCvwtd3ryCH8gUmGITAxiH1O5rnGTz7y1LuFjmnFGQ1UWuM7HwfXtWl2fPFKklYwNUpF2IL/TmaRETjQiM5SJacI+3Gv5MBU8lP5Io6gWkawpyzNEVGqOdx4YlO1dCvjbWFZWbCmeiFKPSlMKtKcMFLs/KQxtgAHi7NZNCQ32bBAW2mbHflVZ8wXKi1JKVHkW20bnYnl3dKWJeWJOiX3oKPBD6Zbi0ZvSIuWktUHB8qDR8DMMh1ZfkBL9FS9x5r0hBGLJ8pUCJv3NYH+Ae8p40mZWd5m5fhobFjQeQvqTT4VKWIYfRL0tfaXKiVl75hHReuTJEcqVlug+eOIIc4bdIydtn2K0iNZPsYWQvQio2qbO3OqAlPHDDOB7DfjGEfVF51FqqNacd6QmgFKJpMfLp5DHTv4wXlONKVXF9zTJpDV4m1sYZqJPhotcsliZM8yksKkCkzpiXt+EcRQvSQqmBS9WdWkxMTJXPSw94jqI3varCjQxTazjlMH8jTS8ilaW8014/vwA/LNa+YiFoyyx3s/KswP3O8QW1jtq45yTM/DX9a8M4voTVaO2ebvw1EooDw/yg6Y1faY+WwrdVs5Yt0hQ5EwRfYXSFxray1YvSM+kYmlpLG2/9mm1MfmbKHXr44Ih8nVKb1M537ZANUkCtdsPZ80JVKVKabVHCadaLXg+IV8i5GSwpZti0h6diTaKs9sdpUKEpd7jDUpYmHtiX33SKiO3tuydkaxA7pEc9XIQEOfWJlszj5YpL5bKeQyT7aZSBOamvSHl8xsWvgo26IP/bqk+0EJUz+gkkcvlUlyPp2kdKFtt7y5aCdks9ZJJcFp5ZWeaWKgtnXMN3ORwGLBE0PtkEIek5FY2aVssUZHtsWIvnljMVJtuVIjpZup/5VL1yPOHWWHkOMc6YySWMckczD5jUj2mlLVquFaMU8leGVaqeXis+aRRL8zm4WuBk6cyWfGMxgtr8useQEx7k/PvRoZyd9nde1GUCV84gMX8Ogu/BWezYPSR27llzQnA97oo0pYyxobYUJfsj+ysTm9zJ+S4pk0TGo9VTG0KjqYhTmALfoDZVKla2b5yhv241PxFaLJs3i05K0AAIdcGxCJZmT3ZdT7CliR7q+kur7WdQjygYtOWRL9B8E4s4LI8KpAj7bE0dg7DLOaX+MGeAi0hMMSSWZEz+RudXbZCsGYS0QqiXjH9XQbd8sCB+nIVTq7/T/FDS+zWY9q7Z2fdq1tdLb6v3hKKVDAw5gjj6o9r1wHFROdHc18MJp4SJ2Ucvu+iQ9EgkekW8VCM+psM6y+/2SBy8tNN4a3L1MzP+OLsyvESo5gS7IQOnIqMmviJBVc6zbVG1n8eXiA3j46kmvvtJlewwNDrxk4SbJOtP/TV/lIVK9ueShNbbMHfwnLTLLhbZuO79ec5XvfgRwLFK+w1r5ZWW15rVFZrE+wKqNRv5KqsLNfpGgnoUU6Y71NxEmN7MyqwqAQqoIULOw/LbuUB2+uE75gJt+kq1qY4LoxV+qR/zalupea3D5+WMeaRIn0sAI6DDWDh158fqUb4YhAxhREbUN0qyyJYkBU4V2KARXDT65gW3gRsiv7xSPYEKLwzgriWcWgPr0sbZnv7m1XHNFW6xPdGNZUdxFiUYlmXNjDVWuu7LCkX/nVkrXaJhiYktBISC2xgBXQnNEP+cptWl1eG62a7CPXrnrkTQ5BQASbEqUZWMDiZUisKyHDeLFOaJILUo5f6iDt4ZO8MlqaKLto0AmTHVVbkGuyPa1R/ywZsWRoRDoRdNMMHwYTsklMVnlAd2S0282bgMI8fiJpDh69OSL6K3qbo20KfpNMurnYGQSr/stFqZ7hYsxKlLnKAKhsmB8AIpEQ4bd/NrTLTXefsE6ChRmKWjXKVgpGoPs8GAicgKVw4K0qgDgy1A6hFq1WRat3fHF+FkU+b6H4NWpOU3KXTxrIb2qSHAb+qhm8hiSROi/9ofapjxhyKxxntPpge6KL5Z4+WBMYkAcE6+0Hd3Yh2zBsK2MV3iW0Y6cvOCroXlRb2MMJtdWx+3dkFzGh2Pe3DZ9QpSqpaR/rE1ImOrHqYYyccpiLC22amJIjRWVAherTfpQLmo6/K2pna85GrDuQPlH1Tsar8isAJbXLafSwOof4gg9RkAGm/oYpBQQiPUoyDk2BCQ1k+KILq48ErFo4WSRhHLq/y7mgw3+L85PpP6xWr6cgp9sOjYjKagOrxF148uhuaWtjet953fh1IQiEzgC+d2IgBCcUZqgTAICm2bR8oCjDLBsmg+ThyhfD+zBalsKBY1Ce54Y/t9cwfbLu9SFwEgphfopNA3yNxgyDafUM3mYTovZNgPGdd4ZFFOj1vtfFW3u7N+iHEN1HkeesDMXKPyoCDCGVMo4GCCD6PBhQ3dRZIHy0Y/3MaE5zU9mTCrwwnZojtE+qNpMSkJSpmGe0EzLyFelMJqhfFQ7a50uXxZ8pCc2wxtAKWgHoeamR2O7R+bq7IbPYItO0esdRgoTaY38hZLJ5y02oIVwoPokGIzxAMDuanQ1vn2WDQ00Rh6o5QOaCRu99fwDbQcN0XAuqkFpxT/cfz3slGRVokrNU0iqiMAJFEbKScZdmSkTUznC0U+MfwFOGdLgsewRyPKwBZYSmy6U325iUhBQNxbAC3FLKDV9VSOuQpOOukJ/GAmu/tyEbX9DgEp6dv1zoU0IqzpG6gssSjIYRVPGgU1QAQYRgIT8gEV0EXr1sqeh2I6rXjtmoCYyEDCe/PkFEi/Q48FuT29p557iN+LCwk5CK/CZ2WdAdfQZh2Z9QGrzPLSNRj5igUWzl9Vi0rCqH8G1Kp4QMLkuwMCAypdviDXyOIk0AHTM8HBYKh3b0/F+DxoNj4ZdoZfCpQVdnZarqoMaHWnMLNVcyevytGsrXQEoIbubqWYNo7NRHzdc0zvT21fWVirj7g36iy6pxogfvgHp1xH1Turbz8QyyHnXeBJicpYUctbzApwzZ1HT+FPEXMAgUZetgeGMwt4G+DHiDT2Lu+PT21fjJCAfV16a/Wu1PqOkUHSTKYhWW6PhhHUlNtWzFnA7MbY+r64vkwdpfNB2JfWgWXAvkzd42K4lN9x7Wrg4kIKgXCb4mcW595MCPJ/cTfPAMQMFWwnqwde4w8HZYJFpQwcSMhjVz4B8p6ncSCN1X4klxoIH4BN2J6taBMj6lHkAOs8JJAmXq5xsQtrPIPIIp/HG6i21xMGcFgqDXSRF0xQg14d2uy6HgKE13LSvQe52oShF5Jx1R6avyL4thhXQZHfC94oZzuPUBKFYf1VvDaxIrtV6dNGSx7DO0i1p6CzBkuAmEqyWceQY7F9+U0ObYDzoa1iKao/cOD/v6Q9gHrrr1uCeOk8fST9MG23Ul0KmM3r+Wn6Hi6WAcL7gEeaykicvgjzkjSwFsAXIR81Zx4QJ6oosVyJkCcT+4xAldCcihqvTf94HHUPXYp3REIaR4dhpQF6+FK1H0i9i7Pvh8owu3lO4PT1iuqu+DkL2Bj9+kdfGAg2TXw03iNHyobxofLE2ibjsYDPgeEQlRMR7afXbSGQcnPjI2D+sdtmuQ771dbASUsDndU7t58jrrNGRzISvwioAlHs5FA+cBE5Ccznkd8NMV6BR6ksnKLPZnMUawRDU1MZ/ib3xCdkTblHKu4blNiylH5n213yM0zubEie0o4JhzcfAy3H5qh2l17uLooBNLaO+gzonTH2uF8PQu9EyH+pjGsACTMy4cHzsPdymUSXYJOMP3yTkXqvO/lpvt0cX5ekDEu9PUfBeZODkFuAjXCaGdi6ew4qxJ8PmFfwmPpkgQjQlWqomFY6UkjmcnAtJG75EVR+NpzGpP1Ef5qUUbfowrC3zcSLX3BxgWEgEx/v9cP8H8u1Mvt9/rMDYf6sjwU1xSOPBgzFEeJLMRVFtKo5QHsUYT8ZRLCah27599EuqoC9PYjYO6aoAMHB8X1OHwEAYouHfHB3nyb2B+SnZxM/vw/bCtORjLMSy5aZoEpvgdGvlJfNPFUu/p7Z4VVK1hiI0/UTuB3ZPq4ohEbm7Mntgc1evEtknaosgZSwnDC2BdMmibpeg48X8Ixl+/8+xXdbshQXUPPvx8jT3fkELivHSmqbhblfNFShWAyQnJ3WBU6SMYSIpTDmHjdLVAdlADdz9gCplZw6mTiHqDwIsxbm9ErGusiVpg2w8Q3khKV/R9Oj8PFeF43hmW/nSd99nZzhyjCX3QOZkkB6BsH4H866WGyv9E0hVAzPYah2tkRfQZMmP2rinfOeQalge0ovhduBjJs9a1GBwReerceify49ctOh5/65ATYuMsAkVltmvTLBk4oHpdl6i+p8DoNj4Fb2vhdFYer2JSEilEwPd5n5zNoGBXEjreg/wh2NFnNRaIUHSOXa4eJRwygZoX6vnWnqVdCRT1ARxeFrNBJ+tsdooMwqnYhE7zIxnD8pZH+P0Nu1wWxCPTADfNWmqx626IBJJq6NeapcGeOmbtXvl0TeWG0Y7OGGV4+EHTtNBIT5Wd0Bujl7inXgZgfXTM5efD3qDTJ54O9v3Bkv+tdIRlq1kXcVD0BEMirmFxglNPt5pedb1AnxuCYMChUykwsTIWqT23XDpvTiKEru1cTcEMeniB+HQDehxPXNmkotFdwUPnilB/u4Nx5Xc6l8J9jH1EgKZUUt8t8cyoZleDBEt8oibDmJRAoMKJ5Oe9CSWS5ZMEJvacsGVdXDWjp/Ype5x0p9PXB2PAwt2LRD3d+ftNgpuyvxlP8pB84oB1i73vAVpwyrmXW72hfW6Dzn9Jkj4++0VQ4d0KSx1AsDA4OtXXDo63/w+GD+zC7w5SJaxsmnlYRQ4dgdjA7tTl2KNLnpJ+mvkoDxtt1a4oPaX3EVqj96o9sRKBQqU7ZOiupeAIyLMD+Y3YwHx30XWHB5CQiw7q3mj1EDlP2eBsZbz79ayUMbyHQ7s8gu4Lgip1LiGJj7NQj905/+rgUYKAA5qdrlHKIknWmqfuR+PB8RdBkDg/NgnlT89G72h2NvySnj7UyBwD+mi/IWs1xWbxuVwUIVXun5cMqBtFbrccI+DILjsVQg6eeq0itiRfedn89CvyFtpkxaauEvSANuZmB1p8FGPbU94J9medwsZ9HkUYjmI7OH5HuxendLbxTaYrPuIfE2ffXFKhoNBUp33HsFAXmCV/Vxpq5AYgFoRr5Ay93ZLRlgaIPjhZjXZZChT+aE5iWAXMX0oSFQEtwjiuhQQItTQX5IYrKfKB+queTNplR1Hoflo5/I6aPPmACwQCE2jTOYo5Dz1cs7Sod0KTG/3kEDGk3kUaUCON19xSJCab3kNpWZhSWkO8l+SpW70Wn3g0ciOIJO5JXma6dbos6jyisuxXwUUhj2+1uGhcvuliKtWwsUTw4gi1c/diEEpZHoKoxTBeMDmhPhKTx7TXWRakV8imJR355DcIHkR9IREHxohP4TbyR5LtFU24umRPRmEYHbpe1LghyxPx7YgUHjNbbQFRQhh4KeU1EabXx8FS3JAxp2rwRDoeWkJgWRUSKw6gGP5U2PuO9V4ZuiKXGGzFQuRuf+tkSSsbBtRJKhCi3ENuLlXhPbjTKD4djXVnfXFds6Zb+1XiUrRfyayGxJq1+SYBEfbKlgjiSmk0orgTqzSS+DZ5rTqsJbttiNtp+KMqGE2AHGFw6jQqM5vD6vMptmXV9OAjq49Uf/Lx9Opam+Hn5O9p8qoBBAQixzQZ4eNVkO9sPzJAMyR1y4/RCQQ1s0pV5KAU5sKLw3tkcFbI/JqrjCsK4Mw+W8aod4lioYuawUiCyVWBE/qPaFi5bnkgpfu/ae47174rI1fqQoTbW0HrU6FAejq7ByM0V4zkZTg02/YJK2N7hUQRCeZ4BIgSEqgD8XsjzG6LIsSbuHoIdz/LhFzbNn1clci1NHWJ0/6/O8HJMdIpEZbqi1RrrFfoo/rI/7ufm2MPG5lUI0IYJ4MAiHRTSOFJ2oTverFHYXThkYFIoyFx6rMYFgaOKM4xNWdlOnIcKb/suptptgTOTdVIf4YgdaAjJnIAm4qNNHNQqqAzvi53GkyRCEoseUBrHohZsjUbkR8gfKtc/+Oa72lwxJ8Mq6HDfDATbfbJhzeIuFQJSiw1uZprHlzUf90WgqG76zO0eCB1WdPv1IT6sNxxh91GEL2YpgC97ikFHyoaH92ndwduqZ6IYjkg20DX33MWdoZk7QkcKUCgisIYslOaaLyvIIqRKWQj16jE1DlQWJJaPopWTJjXfixEjRJJo8g4++wuQjbq+WVYjsqCuNIQW3YjnxKe2M5ZKEqq+cX7ZVgnkbsU3RWIyXA1rxv4kGersYJjD//auldXGmcEbcfTeF16Y1708FB1HIfmWv6dSFi6oD4E+RIjCsEZ+kY7dKnwReJJw3xCjKvi3kGN42rvyhUlIz0Bp+fNSV5xwFiuBzG296e5s/oHoFtUyUplmPulIPl+e1CQIQVtjlzLzzzbV+D/OVQtYzo5ixtMi5BmHuG4N/uKfJk5UIREp7+12oZlKtPBomXSzAY0KgtbPzzZoHQxujnREUgBU+O/jKKhgxVhRPtbqyHiUaRwRpHv7pgRPyUrnE7fYkVblGmfTY28tFCvlILC04Tz3ivkNWVazA+OsYrxvRM/hiNn8Fc4bQBeUZABGx5S/xFf9Lbbmk298X7iFg2yeimvsQqqJ+hYbt6uq+Zf9jC+Jcwiccd61NKQtFvGWrgJiHB5lwi6fR8KzYS7EaEHf/ka9EC7H8D+WEa3TEACHBkNSj/cXxFeq4RllC+fUFm2xtstYLL2nos1DfzsC9vqDDdRVcPA3Ho95aEQHvExVThXPqym65llkKlfRXbPTRiDepdylHjmV9YTWAEjlD9DdQnCem7Aj/ml58On366392214B5zrmQz/9ySG2mFqEwjq5sFl5tYJPw5hNz8lyZPUTsr5E0F2C9VMPnZckWP7+mbwp/BiN7f4kf7vtGnZF2JGvjK/sDX1RtcFY5oPQnE4lIAYV49U3C9SP0LCY/9i/WIFK9ORjzM9kG/KGrAuwFmgdEpdLaiqQNpCTGZVuAO65afkY1h33hrqyLjZy92JK3/twdj9pafFcwfXONmPQWldPlMe7jlP24Js0v9m8bIJ9TgS2IuRvE9ZVRaCwSJYOtAfL5H/YS4FfzKWKbek+GFulheyKtDNlBtrdmr+KU+ibHTdalzFUmMfxw3f36x+3cQbJLItSilW9cuvZEMjKw987jykZRlsH/UI+HlKfo2tLwemBEeBFtmxF2xmItA/dAIfQ+rXnm88dqvXa+GapOYVt/2waFimXFx3TC2MUiOi5/Ml+3rj/YU6Ihx2hXgiDXFsUeQkRAD6wF3SCPi2flk7XwKAA4zboqynuELD312EJ88lmDEVOMa1W/K/a8tGylZRMrMoILyoMQzzbDJHNZrhH77L9qSC42HVmKiZ5S0016UTp83gOhCwz9XItK9fgXfK3F5d7nZCBUekoLxrutQaPHa16Rjsa0gTrzyjqTnmcIcrxg6X6dkKiucudc0DD5W4pJPf0vuDW8r5/uw24YfMuxFRpD2ovT2mFX79xH6Jf+MVdv2TYqR6/955QgVPe3JCD/WjAYcLA9tpXgFiEjge2J5ljeI/iUzg91KQuHkII4mmHZxC3XQORLAC6G7uFn5LOmlnXkjFdoO976moNTxElS8HdxWoPAkjjocDR136m2l+f5t6xaaNgdodOvTu0rievnhNAB79WNrVs6EsPgkgfahF9gSFzzAd+rJSraw5Mllit7vUP5YxA843lUpu6/5jAR0RvH4rRXkSg3nE+O5GFyfe+L0s5r3k05FyghSFnKo4TTgs07qj4nTLqOYj6qaW9knJTDkF5OFMYbmCP+8H16Ty482OjvERV6OFyw043L9w3hoJi408sR+SGo1WviXUu8d7qS+ehKjpKwxeCthsm2LBFSFeetx0x4AaKPxtp3CxdWqCsLrB1s/j5TAhc1jNZsXWl6tjo/WDoewxzg8T8NnhZ1niUwL/nhfygLanCnRwaFGDyLw+sfZhyZ1UtYTp8TYB6dE7R3VsKKH95CUxJ8u8N+9u2/9HUNKHW3x3w5GQrfOPafk2w5qZq8MaHT0ebeY3wIsp3rN9lrpIsW9c1ws3VNV+JwNz0Lo9+V7zZr6GD56We6gWVIvtmam5GPPkVAbr74r6SwhuL+TRXtW/0pgyX16VNl4/EAD50TnUPuwrW6OcUO2VlWXS0inq872kk7GUlW6o/ozFKq+Sip6LcTtSDfDrPTcCHhx75H8BeRon+KG2wRwzfDgWhALmiWOMO6h3pm1UCZEPEjScyk7tdLx6WrdA2N1QTPENvNnhCQjW6kl057/qv7IwRryHrZBCwVSbLLnFRiHdTwk8mlYixFt1slEcPD7FVht13HyqVeyD55HOXrh2ElAxJyinGeoFzwKA91zfrdLvDxJSjzmImfvTisreI25EDcVfGsmxLVbfU8PGe/7NmWWKjXcdTJ11jAlVIY/Bv/mcxg/Q10vCHwKG1GW/XbJq5nxDhyLqiorn7Wd7VEVL8UgVzpHMjQ+Z8DUgSukiVwWAKkeTlVVeZ7t1DGnCgJVIdBPZAEK5f8CDyDNo7tK4/5DBjdD5MPV86TaEhGsLVFPQSI68KlBYy84FievdU9gWh6XZrugvtCZmi9vfd6db6V7FmoEcRHnG36VZH8N4aZaldq9zZawt1uBFgxYYx+Gs/qW1jwANeFy+LCoymyM6zgG7j8bGzUyLhvrbJkTYAEdICEb4kMKusKT9V3eIwMLsjdUdgijMc+7iKrr+TxrVWG0U+W95SGrxnxGrE4eaJFfgvAjUM4SAy8UaRwE9j6ZQH5qYAWGtXByvDiLSDfOD0yFA3UCMKSyQ30fyy1mIRg4ZcgZHLNHWl+c9SeijOvbOJxoQy7lTN2r3Y8p6ovxvUY74aOYbuVezryqXA6U+fcp6wSV9X5/OZKP18tB56Ua0gMyxJI7XyNT7IrqN8GsB9rL/kP5KMrjXxgqKLDa+V5OCH6a5hmOWemMUsea9vQl9t5Oce76PrTyTv50ExOqngE3PHPfSL//AItPdB7kGnyTRhVUUFNdJJ2z7RtktZwgmQzhBG/G7QsjZmJfCE7k75EmdIKH7xlnmDrNM/XbTT6FzldcH/rcRGxlPrv4qDScqE7JSmQABJWqRT/TUcJSwoQM+1jvDigvrjjH8oeK2in1S+/yO1j8xAws/T5u0VnIvAPqaE1atNuN0cuRliLcH2j0nTL4JpcR7w9Qya0JoaHgsOiALLCCzRkl1UUESz+ze/gIXHGtDwgYrK6pCFKJ1webSDog4zTlPkgXZqxlQDiYMjhDpwTtBW2WxthWbov9dt2X9XFLFmcF+eEc1UaQ74gqZiZsdj63pH1qcv3Vy8JYciogIVKsJ8Yy3J9w/GhjWVSQAmrS0BPOWK+RKV+0lWqXgYMnIFwpcZVD7zPSp547i9HlflB8gVnSTGmmq1ClO081OW/UH11pEQMfkEdDFzjLC1Cdo/BdL3s7cXb8J++Hzz1rhOUVZFIPehRiZ8VYu6+7Er7j5PSZu9g/GBdmNzJmyCD9wiswj9BZw+T3iBrg81re36ihMLjoVLoWc+62a1U/7qVX5CpvTVF7rocSAKwv4cBVqZm7lLDS/qoXs4fMs/VQi6BtVbNA3uSzKpQfjH1o3x4LrvkOn40zhm6hjduDglzJUwA0POabgdXIndp9fzhOo23Pe+Rk9GSLX0d71Poqry8NQDTzNlsa+JTNG9+UrEf+ngxCjGEsDCc0bz+udVRyHQI1jmEO3S+IOQycEq7XwB6z3wfMfa73m8PVRp+iOgtZfeSBl01xn03vMaQJkyj7vnhGCklsCWVRUl4y+5oNUzQ63B2dbjDF3vikd/3RUMifPYnX5Glfuk2FsV/7RqjI9yKTbE8wJY+74p7qXO8+dIYgjtLD/N8TJtRh04N9tXJA4H59IkMmLElgvr0Q5OCeVfdAt+5hkh4pQgfRMHpL74XatLQpPiOyHRs/OdmHtBf8nOZcxVKzdGclIN16lE7kJ+pVMjspOI+5+TqLRO6m0ZpNXJoZRv9MPDRcAfJUtNZHyig/s2wwReakFgPPJwCQmu1I30/tcBbji+Na53i1W1N+BqoY7Zxo+U/M9XyJ4Ok2SSkBtoOrwuhAY3a03Eu6l8wFdIG1cN+e8hopTkiKF093KuH/BcB39rMiGDLn6XVhGKEaaT/vqb/lufuAdpGExevF1+J9itkFhCfymWr9vGb3BTK4j598zRH7+e+MU9maruZqb0pkGxRDRE1CD4Z8LV4vhgPidk5w2Bq816g3nHw1//j3JStz7NR9HIWELO8TMn3QrP/zZp//+Dv9p429/ogv+GATR+n/UdF+ns9xNkXZQJXY4t9jMkJNUFygAtzndXwjss+yWH9HAnLQQfhAskdZS2l01HLWv7L7us5uTH409pqitvfSOQg/c+Zt7k879P3K9+WV68n7+3cZfuRd/dDPP/03rn+d+/nBvWfgDlt8+LzjqJ/vx3CnNOwiXhho778C96iD+1TBvRZYeP+EH81LE0vVwOOrmCLB3iKzI1x+vJEsrPH4uF0UB4TJ4X3uDfOCo3PYpYe0MF4bouh0DQ/l43fxUF7Y+dpWuvTSffB0yO2UQUETI/LwCZE3BvnevJ7c9zUlY3H58xzke6DNFDQG8n0WtDN4LAYN4nogKav1ezOfK/z+t6tsCTp+dhx4ymjWuCJk1dEUifDP+HyS4iP/Vg9B2jTo9L4NbiBuDS4nuuHW6H+JDQn2JtqRKGkEQPEYE7uzazXIkcxIAqUq1esasZBETlEZY7y7Jo+RoV/IsjY9eIMkUvr42Hc0xqtsavZvhz1OLwSxMOTuqzlhb0WbdOwBH9EYiyBjatz40bUxTHbiWxqJ0uma19qhPruvcWJlbiSSH48OLDDpaHPszvyct41ZfTu10+vjox6kOqK6v0K/gEPphEvMl/vwSv+A4Hhm36JSP9IXTyCZDm4kKsqD5ay8b1Sad/vaiyO5N/sDfEV6Z4q95E+yfjxpqBoBETW2C7xl4pIO2bDODDFurUPwE7EWC2Uplq+AHmBHvir2PSgkR12/Ry65O0aZtQPeXi9mTlF/Wj5GQ+vFkYyhXsLTjrBSP9hwk4GPqDP5rBn5/l8b0mLRAvRSzXHc293bs3s8EsdE3m2exxidWVB4joHR+S+dz5/W+v00K3TqN14CDBth8eWcsTbiwXPsygHdGid0PEdy6HHm2v/IUuV5RVapYmzGsX90mpnIdNGcOOq64Dbc5GUbYpD9M7S+6cLY//QmjxFLP5cuTFRm3vA5rkFZroFnO3bjHF35uU3s8mvL7Tp9nyTc4mymTJ5sLIp7umSnGkO23faehtz3mmTS7fbVx5rP7x3HXIjRNeq/A3xCs9JNB08c9S9BF2O3bOur0ItslFxXgRPdaapBIi4dRpKGxVz7ir69t/bc9qTxjvtOyGOfiLGDhR4fYywHv1WdOplxIV87TpLBy3Wc0QP0P9s4G7FBNOdITS/tep3o3h1TEa5XDDii7fWtqRzUEReP2fbxz7bHWWJdbIOxOUJZtItNZpTFRfj6vm9sYjRxQVO+WTdiOhdPeTJ+8YirPvoeL88l5iLYOHd3b/Imkq+1ZN1El3UikhftuteEYxf1Wujof8Pr4ICTu5ezZyZ4tHQMxlzUHLYO2VMOoNMGL/20S5i2o2obfk+8qqdR7xzbRDbgU0lnuIgz4LelQ5XS7xbLuSQtNS95v3ZUOdaUx/Qd8qxCt6xf2E62yb/HukLO6RyorV8KgYl5YNc75y+KvefrxY+lc/64y9kvWP0a0bDz/rojq+RWjO06WeruWqNFU7r3HPIcLWRql8ICZsz2Ls/qOm/CLn6++X+Qf7mGspYCrZod/lpl6Rw4xN/yuq8gqV4B6aHk1hVE1SfILxWu5gvXqbfARYQpspcxKp1F/c8XOPzkZvmoSw+vEqBLdrq1fr3wAPv5NnM9i8F+jdAuxkP5Z71c6uhK3enlnGymr7UsWZKC12qgUiG8XXGQ9mxnqz4GSIlybF9eXmbqj2sHX+a1jf0gRoONHRdRSrIq03Ty89eQ1GbV/Bk+du4+V15zls+vvERvZ4E7ZbnxWTVjDjb4o/k8jlw44pTIrUGxxuJvBeO+heuhOjpFsO6lVJ/aXnJDa/bM0Ql1cLbXE/Pbv3EZ3vj3iVrB5irjupZTzlnv677NrI9UNYNqbPgp/HZXS+lJmk87wec+7YOxTDo2aw2l3NfDr34VNlvqWJBknuK7oSlZ6/T10zuOoPZOeoIk81N+sL843WJ2Q4Z0fZ3scsqC/JV2fuhWi1jGURSKZV637lf53Xnnx16/vKEXY89aVJ0fv91jGdfG+G4+sniwHes4hS+udOr4RfhFhG/F5gUG35QaU+McuLmclb5ZWmR+sG5V6nf+PxYzlrnFGxpZaK8eqqVo0NfmAWoGfXDiT/FnUbWvzGDOTr8aktOZWg4BYvz5YH12ZbfCcGtNk+dDAZNGWvHov+PIOnY9Prjg8h/wLRrT69suaMVZ5bNuK00lSVpnqSX1NON/81FoP92rYndionwgOiA8WMf4vc8l15KqEEG4yAm2+WAN5Brfu1sq9suWYqgoajgOYt/JCk1gC8wPkK+XKCtRX6TAtgvrnuBgNRmn6I8lVDipOVB9kX6Oxkp4ZKyd1M6Gj8/v2U7k+YQBL95Kb9PQENucJb0JlW3b5tObN7m/Z1j1ev388d7o15zgXsI9CikAGAViR6lkJv7nb4Ak40M2G8TJ447kN+pvfHiOFjSUSP6PM+QfbAywKJCBaxSVxpizHseZUyUBhq59vFwrkyGoRiHbo0apweEZeSLuNiQ+HAekOnarFg00dZNXaPeoHPTRR0FmEyqYExOVaaaO8c0uFUh7U4e/UxdBmthlBDgg257Q33j1hA7HTxSeTTSuVnPZbgW1nodwmG16aKBDKxEetv7D9OjO0JhrbJTnoe+kcGoDJazFSO8/fUN9Jy/g4XK5PUkw2dgPDGpJqBfhe7GA+cjzfE/EGsMM+FV9nj9IAhrSfT/J3QE5TEIYyk5UjsI6ZZcCPr6A8FZUF4g9nnpVmjX90MLSQysIPD0nFzqwCcSJmIb5mYv2Cmk+C1MDFkZQyCBq4c/Yai9LJ6xYkGS/x2s5/frIW2vmG2Wrv0APpCdgCA9snFvfpe8uc0OwdRs4G9973PGEBnQB5qKrCQ6m6X/H7NInZ7y/1674/ZXOVp7OeuCRk8JFS516VHrnH1HkIUIlTIljjHaQtEtkJtosYul77cVwjk3gW1Ajaa6zWeyHGLlpk3VHE2VFzT2yI/EvlGUSz2H9zYE1s4nsKMtMqNyKNtL/59CpFJki5Fou6VXGm8vWATEPwrUVOLvoA8jLuwOzVBCgHB2Cr5V6OwEWtJEKokJkfc87h+sNHTvMb0KVTp5284QTPupoWvQVUwUeogZR3kBMESYo0mfukewRVPKh5+rzLQb7HKjFFIgWhj1w3yN/qCNoPI8XFiUgBNT1hCHBsAz8L7Oyt8wQWUFj92ONn/APyJFg8hzueqoJdNj57ROrFbffuS/XxrSXLTRgj5uxZjpgQYceeMc2wJrahReSKpm3QjHfqExTLAB2ipVumE8pqcZv8LYXQiPHHsgb5BMW8zM5pvQit+mQx8XGaVDcfVbLyMTlY8xcfmm/RSAT/H09UQol5gIz7rESDmnrQ4bURIB4iRXMDQwxgex1GgtDxKp2HayIkR+E/aDmCttNm2C6lytWdfOVzD6X2SpDWjQDlMRvAp1symWv4my1bPCD+E1EmGnMGWhNwmycJnDV2WrQNxO45ukEb08AAffizYKVULp15I4vbNK5DzWwCSUADfmKhfGSUqii1L2UsE8rB7mLuHuUJZOx4+WiizHBJ/hwboaBzhpNOVvgFTf5cJsHef7L1HCI9dOUUbb+YxUJWn6dYOLz+THi91kzY5dtO5c+grX7v0jEbsuoOGnoIreDIg/sFMyG+TyCLIcAWd1IZ1UNFxE8Uie13ucm40U2fcxC0u3WLvLOxwu+F7MWUsHsdtFQZ7W+nlfCASiAKyh8rnP3EyDByvtJb6Kax6/HkLzT9SyEyTMVM1zPtM0MJY14DmsWh4MgD15Ea9Hd00AdkTZ0EiG5NAGuIBzQJJ0JR0na+OB7lQA6UKxMfihIQ7GCCnVz694QvykWXTxpS2soDu+smru1UdIxSvAszBFD1c8c6ZOobA8bJiJIvuycgIXBQIXWwhyTgZDQxJTRXgEwRNAawGSXO0a1DKjdihLVNp/taE/xYhsgwe+VpKEEB4LlraQyE84gEihxCnbfoyOuJIEXy2FIYw+JjRusybKlU2g/vhTSGTydvCvXhYBdtAXtS2v7LkHtmXh/8fly1do8FI/D0f8UbzVb5h+KRhMGSAmR2mhi0YG/uj7wgxcfzCrMvdjitUIpXDX8ae2JcF/36qUWIMwN6JsjaRGNj+jEteGDcFyTUb8X/NHSucKMJp7pduxtD6KuxVlyxxwaeiC1FbGBESO84lbyrAugYxdl+2N8/6AgWpo/IeoAOcsG35IA/b3AuSyoa55L7llBLlaWlEWvuCFd8f8NfcTUgzJv6CbB+6ohWwodlk9nGWFpBAOaz5uEW5xBvmjnHFeDsb0mXwayj3mdYq5gxxNf3H3/tnCgHwjSrpSgVxLmiTtuszdRUFIsn6LiMPjL808vL1uQhDbM7aA43mISXReqjSskynIRcHCJ9qeFopJfx9tqyUoGbSwJex/0aDE3plBPGtNBYgWbdLom3+Q/bjdizR2/AS/c/dH/d3G7pyl1qDXgtOFtEqidwLqxPYtrNEveasWq3vPUUtqTeu8gpov4bdOQRI2kneFvRNMrShyVeEupK1PoLDPMSfWMIJcs267mGB8X9CehQCF0gIyhpP10mbyM7lwW1e6TGvHBV1sg/UyTghHPGRqMyaebC6pbB1WKNCQtlai1GGvmq9zUKaUzLaXsXEBYtHxmFbEZ2kJhR164LhWW2Tlp1dhsGE7ZgIWRBOx3Zcu2DxgH+G83WTPceKG0TgQKKiiNNOlWgvqNEbnrk6fVD+AqRam2OguZb0YWSTX88N+i/ELSxbaUUpPx4vJUzYg/WonSeA8xUK6u7DPHgpqWpEe6D4cXg5uK9FIYVba47V/nb+wyOtk+zG8RrS4EA0ouwa04iByRLSvoJA2FzaobbZtXnq8GdbfqEp5I2dpfpj59TCVif6+E75p665faiX8gS213RqBxTZqfHP46nF6NSenOneuT+vgbLUbdTH2/t0REFXZJOEB6DHvx6N6g9956CYrY/AYcm9gELJXYkrSi+0F0geKDZgOCIYkLU/+GOW5aGj8mvLFgtFH5+XC8hvAE3CvHRfl4ofM/Qwk4x2A+R+nyc9gNu/9Tem7XW4XRnyRymf52z09cTOdr+PG6+P/Vb4QiXlwauc5WB1z3o+IJjlbxI8MyWtSzT+k4sKVbhF3xa+vDts3NxXa87iiu+xRH9cAprnOL2h6vV54iQRXuOAj1s8nLFK8gZ70ThIQcWdF19/2xaJmT0efrkNDkWbpAQPdo92Z8+Hn/aLjbOzB9AI/k12fPs9HhUNDJ1u6ax2VxD3R6PywN7BrLJ26z6s3QoMp76qzzwetrDABKSGkfW5PwS1GvYNUbK6uRqxfyVGNyFB0E+OugMM8kKwmJmupuRWO8XkXXXQECyRVw9UyIrtCtcc4oNqXqr7AURBmKn6Khz3eBN96LwIJrAGP9mr/59uTOSx631suyT+QujDd4beUFpZ0kJEEnjlP+X/Kr2kCKhnENTg4BsMTOmMqlj2WMFLRUlVG0fzdCBgUta9odrJfpVdFomTi6ak0tFjXTcdqqvWBAzjY6hVrH9sbt3Z9gn+AVDpTcQImefbB4edirjzrsNievve4ZT4EUZWV3TxEsIW+9MT/RJoKfZZYSRGfC1CwPG/9rdMOM8qR/LUYvw5f/emUSoD7YSFuOoqchdUg2UePd1eCtFSKgxLSZ764oy4lvRCIH6bowPxZWwxNFctksLeil47pfevcBipkkBIc4ngZG+kxGZ71a72KQ7VaZ6MZOZkQJZXM6kb/Ac0/XkJx8dvyfJcWbI3zONEaEPIW8GbkYjsZcwy+eMoKrYjDmvEEixHzkCSCRPRzhOfJZuLdcbx19EL23MA8rnjTZZ787FGMnkqnpuzB5/90w1gtUSRaWcb0eta8198VEeZMUSfIhyuc4/nywFQ9uqn7jdqXh+5wwv+RK9XouNPbYdoEelNGo34KyySwigsrfCe0v/PlWPvQvQg8R0KgHO18mTVThhQrlbEQ0Kp/JxPdjHyR7E1QPw/ut0r+HDDG7BwZFm9IqEUZRpv2WpzlMkOemeLcAt5CsrzskLGaVOAxyySzZV/D2EY7ydNZMf8e8VhHcKGHAWNszf1EOq8fNstijMY4JXyATwTdncFFqcNDfDo+mWFvxJJpc4sEZtjXyBdoFcxbUmniCoKq5jydUHNjYJxMqN1KzYV62MugcELVhS3Bnd+TLLOh7dws/zSXWzxEb4Nj4aFun5x4kDWLK5TUF/yCXB/cZYvI9kPgVsG2jShtXkxfgT+xzjJofXqPEnIXIQ1lnIdmVzBOM90EXvJUW6a0nZ/7XjJGl8ToO3H/fdxnxmTNKBZxnkpXLVgLXCZywGT3YyS75w/PAH5I/jMuRspej8xZObU9kREbRA+kqjmKRFaKGWAmFQspC+QLbKPf0RaK3OXvBSWqo46p70ws/eZpu6jCtZUgQy6r4tHMPUdAgWGGUYNbuv/1a6K+MVFsd3T183+T8capSo6m0+Sh57fEeG/95dykGJBQMj09DSW2bY0mUonDy9a8trLnnL5B5LW3Nl8rJZNysO8Zb+80zXxqUGFpud3Qzwb7bf+8mq6x0TAnJU9pDQR9YQmZhlna2xuxJt0aCO/f1SU8gblOrbIyMsxTlVUW69VJPzYU2HlRXcqE2lLLxnObZuz2tT9CivfTAUYfmzJlt/lOPgsR6VN64/xQd4Jlk/RV7UKVv2Gx/AWsmTAuCWKhdwC+4HmKEKYZh2Xis4KsUR1BeObs1c13wqFRnocdmuheaTV30gvVXZcouzHKK5zwrN52jXJEuX6dGx3BCpV/++4f3hyaW/cQJLFKqasjsMuO3B3WlMq2gyYfdK1e7L2pO/tRye2mwzwZPfdUMrl5wdLqdd2Kv/wVtnpyWYhd49L6rsOV+8HXPrWH2Kup89l2tz6bf80iYSd+V4LROSOHeamvexR524q4r43rTmtFzQvArpvWfLYFZrbFspBsXNUqqenjxNNsFXatZvlIhk7teUPfK+YL32F8McTnjv0BZNppb+vshoCrtLXjIWq3EJXpVXIlG6ZNL0dh6qEm2WMwDjD3LfOfkGh1/czYc/0qhiD2ozNnH4882MVVt3JbVFkbwowNCO3KL5IoYW5wlVeGCViOuv1svZx7FbzxKzA4zGqBlRRaRWCobXaVq4yYCWbZf8eiJwt3OY+MFiSJengcFP2t0JMfzOiJ7cECvpx7neg1Rc5x+7myPJOXt2FohVRyXtD+/rDoTOyGYInJelZMjolecVHUhUNqvdZWg2J2t0jPmiLFeRD/8fOT4o+NGILb+TufCo9ceBBm3JLVn+MO2675n7qiEX/6W+188cYg3Zn5NSTjgOKfWFSAANa6raCxSoVU851oJLY11WIoYK0du0ec5E4tCnAPoKh71riTsjVIp3gKvBbEYQiNYrmH22oLQWA2AdwMnID6PX9b58dR2QKo4qag1D1Z+L/FwEKTR7osOZPWECPJIHQqPUsM5i/CH5YupVPfFA5pHUBcsesh8eO5YhyWnaVRPZn/BmdXVumZWPxMP5e28zm2uqHgFoT9CymHYNNrzrrjlXZM06HnzDxYNlI5b/QosxLmmrqDFqmogQdqk0WLkUceoAvQxHgkIyvWU69BPFr24VB6+lx75Rna6dGtrmOxDnvBojvi1/4dHjVeg8owofPe1cOnxU1ioh016s/Vudv9mhV9f35At+Sh28h1bpp8xhr09+vf47Elx3Ms6hyp6QvB3t0vnLbOhwo660cp7K0vvepabK7YJfxEWWfrC2YzJfYOjygPwfwd/1amTqa0hZ5ueebhWYVMubRTwIjj+0Oq0ohU3zfRfuL8gt59XsHdwKtxTQQ4Y2qz6gisxnm2UdlmpEkgOsZz7iEk6QOt8BuPwr+NR01LTqXmJo1C76o1N274twJvl+I069TiLpenK/miRxhyY8jvYV6W1WuSwhH9q7kuwnJMtm7IWcqs7HsnyHSqWXLSpYtZGaR1V3t0gauninFPZGtWskF65rtti48UV9uV9KM8kfDYs0pgB00S+TlzTXV6P8mxq15b9En8sz3jWSszcifZa/NuufPNnNTb031pptt0+sRSH/7UG8pzbsgtt3OG3ut7B9JzDMt2mTZuyRNIV8D54TuTrpNcHtgmMlYJeiY9XS83NYJicjRjtJSf9BZLsQv629QdDsKQhTK5CnXhpk7vMNkHzPhm0ExW/VCGApHfPyBagtZQTQmPHx7g5IXXsrQDPzIVhv2LB6Ih138iSDww1JNHrDvzUxvp73MsQBVhW8EbrReaVUcLB1R3PUXyaYG4HpJUcLVxMgDxcPkVRQpL7VTAGabDzbKcvg12t5P8TSGQkrj/gOrpnbiDHwluA73xbXts/L7u468cRWSWRtgTwlQnA47EKg0OiZDgFxAKQQUcsbGomITgeXUAAyKe03eA7Mp4gnyKQmm0LXJtEk6ddksMJCuxDmmHzmVhO+XaN2A54MIh3niw5CF7PwiXFZrnA8wOdeHLvvhdoqIDG9PDI7UnWWHq526T8y6ixJPhkuVKZnoUruOpUgOOp3iIKBjk+yi1vHo5cItHXb1PIKzGaZlRS0g5d3MV2pD8FQdGYLZ73aae/eEIUePMc4NFz8pIUfLCrrF4jVWH5gQneN3S8vANBmUXrEcKGn6hIUN95y1vpsvLwbGpzV9L0ZKTan6TDXM05236uLJcIEMKVAxKNT0K8WljuwNny3BNQRfzovA85beI9zr1AGNYnYCVkR1aGngWURUrgqR+gRrQhxW81l3CHevjvGEPzPMTxdsIfB9dfGRbZU0cg/1mcubtECX4tvaedmNAvTxCJtc2QaoUalGfENCGK7IS/O8CRpdOVca8EWCRwv2sSWE8CJPW5PCugjCXPd3h6U60cPD+bdhtXZuYB6stcoveE7Sm5MM2yvfUHXFSW7KzLmi7/EeEWL0wqcOH9MOSKjhCHHmw+JGLcYE/7SBZQCRggox0ZZTAxrlzNNXYXL5fNIjkdT4YMqVUz6p8YDt049v4OXGdg3qTrtLBUXOZf7ahPlZAY/O+7Sp0bvGSHdyQ8B1LOsplqMb9Se8VAE7gIdSZvxbRSrfl+Lk5Qaqi5QJceqjitdErcHXg/3MryljPSIAMaaloFm1cVwBJ8DNmkDqoGROSHFetrgjQ5CahuKkdH5pRPigMrgTtlFI8ufJPJSUlGgTjbBSvpRc0zypiUn6U5KZqcRoyrtzhmJ7/caeZkmVRwJQeLOG8LY6vP5ChpKhc8Js0El+n6FXqbx9ItdtLtYP92kKfaTLtCi8StLZdENJa9Ex1nOoz1kQ7qxoiZFKRyLf4O4CHRT0T/0W9F8epNKVoeyxUXhy3sQMMsJjQJEyMOjmOhMFgOmmlscV4eFi1CldU92yjwleirEKPW3bPAuEhRZV7JsKV3Lr5cETAiFuX5Nw5UlF7d2HZ96Bh0sgFIL5KGaKSoVYVlvdKpZJVP5+NZ7xDEkQhmDgsDKciazJCXJ6ZN2B3FY2f6VZyGl/t4aunGIAk/BHaS+i+SpdRfnB/OktOvyjinWNfM9Ksr6WwtCa1hCmeRI6icpFM4o8quCLsikU0tMoZI/9EqXRMpKGaWzofl4nQuVQm17d5fU5qXCQeCDqVaL9XJ9qJ08n3G3EFZS28SHEb3cdRBdtO0YcTzil3QknNKEe/smQ1fTb0XbpyNB5xAeuIlf+5KWlEY0DqJbsnzJlQxJPOVyHiKMx5Xu9FcEv1Fbg6Fhm4t+Jyy5JC1W3YO8dYLsO0PXPbxodBgttTbH3rt9Cp1lJIk2r3O1Zqu94eRbnIz2f50lWolYzuKsj4PMok4abHLO8NAC884hiXx5Fy5pWKO0bWL7uEGXaJCtznhP67SlQ4xjWIfgq6EpZ28QMtuZK7JC0RGbl9nA4XtFLug/NLMoH1pGt9IonAJqcEDLyH6TDROcbsmGPaGIxMo41IUAnQVPMPGByp4mOmh9ZQMkBAcksUK55LsZj7E5z5XuZoyWCKu6nHmDq22xI/9Z8YdxJy4kWpD16jLVrpwGLWfyOD0Wd+cBzFBxVaGv7S5k9qwh/5t/LQEXsRqI3Q9Rm3QIoaZW9GlsDaKOUyykyWuhNOprSEi0s1G4rgoiX1V743EELti+pJu5og6X0g6oTynUqlhH9k6ezyRi05NGZHz0nvp3HOJr7ebrAUFrDjbkFBObEvdQWkkUbL0pEvMU46X58vF9j9F3j6kpyetNUBItrEubW9ZvMPM4qNqLlsSBJqOH3XbNwv/cXDXNxN8iFLzUhteisYY+RlHYOuP29/Cb+L+xv+35Rv7xudnZ6ohK4cMPfCG8KI7dNmjNk/H4e84pOxn/sZHK9psfvj8ncA8qJz7O8xqbxESDivGJOZzF7o5PJLQ7g34qAWoyuA+x3btU98LT6ZyGyceIXjrqob2CAVql4VOTQPUQYvHV/g4zAuCZGvYQBtf0wmd5lilrvuEn1BXLny01B4h4SMDlYsnNpm9d7m9h578ufpef9Z4WplqWQvqo52fyUA7J24eZD5av6SyGIV9kpmHNqyvdfzcpEMw97BvknV2fq+MFHun9BT3Lsf8pbzvisWiIQvYkng+8Vxk1V+dli1u56kY50LRjaPdotvT5BwqtwyF+emo/z9J3yVUVGfKrxQtJMOAQWoQii/4dp9wgybSa5mkucmRLtEQZ/pz0tL/NVcgWAd95nEQ3Tg6tNbuyn3Iepz65L3huMUUBntllWuu4DbtOFSMSbpILV4fy6wlM0SOvi6CpLh81c1LreIvKd61uEWBcDw1lUBUW1I0Z+m/PaRlX+PQ/oxg0Ye6KUiIiTF4ADNk59Ydpt5/rkxmq9tV5Kcp/eQLUVVmBzQNVuytQCP6Ezd0G8eLxWyHpmZWJ3bAzkWTtg4lZlw42SQezEmiUPaJUuR/qklVA/87S4ArFCpALdY3QRdUw3G3XbWUp6aq9z0zUizcPa7351p9JXOZyfdZBFnqt90VzQndXB/mwf8LC9STj5kenVpNuqOQQP3mIRJj7eV21FxG8VAxKrEn3c+XfmZ800EPb9/5lIlijscUbB6da0RQaMook0zug1G0tKi/JBC4rw7/D3m4ARzAkzMcVrDcT2SyFtUdWAsFlsPDFqV3N+EjyXaoEePwroaZCiLqEzb8MW+PNE9TmTC01EzWli51PzZvUqkmyuROU+V6ik+Le/9qT6nwzUzf9tP68tYei0YaDGx6kAd7jn1cKqOCuYbiELH9zYqcc4MnRJjkeGiqaGwLImhyeKs+xKJMBlOJ05ow9gGCKZ1VpnMKoSCTbMS+X+23y042zOb5MtcY/6oBeAo1Vy89OTyhpavFP78jXCcFH0t7Gx24hMEOm2gsEfGabVpQgvFqbQKMsknFRRmuPHcZu0Su/WMFphZvB2r/EGbG72rpGGho3h+Msz0uGzJ7hNK2uqQiE1qmn0zgacKYYZBCqsxV+sjbpoVdSilW/b94n2xNb648VmNIoizqEWhBnsen+d0kbCPmRItfWqSBeOd9Wne3c6bcd6uvXOJ6WdiSsuXq0ndhqrQ4QoWUjCjYtZ0EAhnSOP1m44xkf0O7jXghrzSJWxP4a/t72jU29Vu2rvu4n7HfHkkmQOMGSS+NPeLGO5I73mC2B7+lMiBQQZRM9/9liLIfowupUFAbPBbR+lxDM6M8Ptgh1paJq5Rvs7yEuLQv/7d1oU2woFSb3FMPWQOKMuCuJ7pDDjpIclus5TeEoMBy2YdVB4fxmesaCeMNsEgTHKS5WDSGyNUOoEpcC2OFWtIRf0w27ck34/DjxRTVIcc9+kqZE6iMSiVDsiKdP/Xz5XfEhm/sBhO50p1rvJDlkyyxuJ9SPgs7YeUJBjXdeAkE+P9OQJm6SZnn1svcduI78dYmbkE2mtziPrcjVisXG78spLvbZaSFx/Rks9zP4LKn0Cdz/3JsetkT06A8f/yCgMO6Mb1Hme0JJ7b2wZz1qleqTuKBGokhPVUZ0dVu+tnQYNEY1fmkZSz6+EGZ5EzL7657mreZGR3jUfaEk458PDniBzsSmBKhDRzfXameryJv9/D5m6HIqZ0R+ouCE54Dzp4IJuuD1e4Dc5i+PpSORJfG23uVgqixAMDvchMR0nZdH5brclYwRoJRWv/rlxGRI5ffD5NPGmIDt7vDE1434pYdVZIFh89Bs94HGGJbTwrN8T6lh1HZFTOB4lWzWj6EVqxSMvC0/ljWBQ3F2kc/mO2b6tWonT2JEqEwFts8rz2h+oWNds9ceR2cb7zZvJTDppHaEhK5avWqsseWa2Dt5BBhabdWSktS80oMQrL4TvAM9b5HMmyDnO+OkkbMXfUJG7eXqTIG6lqSOEbqVR+qYdP7uWb57WEJqzyh411GAVsDinPs7KvUeXItlcMdOUWzXBH6zscymV1LLVCtc8IePojzXHF9m5b5zGwBRdzcyUJkiu938ApmAayRdJrX1PmVguWUvt2ThQ62czItTyWJMW2An/hdDfMK7SiFQlGIdAbltHz3ycoh7j9V7GxNWBpbtcSdqm4XxRwTawc3cbZ+xfSv9qQfEkDKfZTwCkqWGI/ur250ItXlMlh6vUNWEYIg9A3GzbgmbqvTN8js2YMo87CU5y6nZ4dbJLDQJj9fc7yM7tZzJDZFtqOcU8+mZjYlq4VmifI23iHb1ZoT9E+kT2dolnP1AfiOkt7PQCSykBiXy5mv637IegWSKj9IKrYZf4Lu9+I7ub+mkRdlvYzehh/jaJ9n7HUH5b2IbgeNdkY7wx1yVzxS7pbvky6+nmVUtRllEFfweUQ0/nG017WoUYSxs+j2B4FV/F62EtHlMWZXYrjGHpthnNb1x66LKZ0Qe92INWHdfR/vqp02wMS8r1G4dJqHok8KmQ7947G13a4YXbsGgHcBvRuVu1eAi4/A5+ZixmdSXM73LupB/LH7O9yxLTVXJTyBbI1S49TIROrfVCOb/czZ9pM4JsZx8kUz8dQGv7gUWKxXvTH7QM/3J2OuXXgciUhqY+cgtaOliQQVOYthBLV3xpESZT3rmfEYNZxmpBbb24CRao86prn+i9TNOh8VxRJGXJfXHATJHs1T5txgc/opYrY8XjlGQQbRcoxIBcnVsMjmU1ymmIUL4dviJXndMAJ0Yet+c7O52/p98ytlmAsGBaTAmMhimAnvp1TWNGM9BpuitGj+t810CU2UhorrjPKGtThVC8WaXw04WFnT5fTjqmPyrQ0tN3CkLsctVy2xr0ZWgiWVZ1OrlFjjxJYsOiZv2cAoOvE+7sY0I/TwWcZqMoyIKNOftwP7w++Rfg67ljfovKYa50if3fzE/8aPYVey/Nq35+nH2sLPh/fP5TsylSKGOZ4k69d2PnH43+kq++sRXHQqGArWdwhx+hpwQC6JgT2uxehYU4Zbw7oNb6/HLikPyJROGK2ouyr+vzseESp9G50T4AyFrSqOQ0rroCYP4sMDFBrHn342EyZTMlSyk47rHSq89Y9/nI3zG5lX16Z5lxphguLOcZUndL8wNcrkyjH82jqg8Bo8OYkynrxZvbFno5lUS3OPr8Ko3mX9NoRPdYOKKjD07bvgFgpZ/RF+YzkWvJ/Hs/tUbfeGzGWLxNAjfDzHHMVSDwB5SabQLsIZHiBp43FjGkaienYoDd18hu2BGwOK7U3o70K/WY/kuuKdmdrykIBUdG2mvE91L1JtTbh20mOLbk1vCAamu7utlXeGU2ooVikbU/actcgmsC1FKk2qmj3GWeIWbj4tGIxE7BLcBWUvvcnd/lYxsMV4F917fWeFB/XbINN3qGvIyTpCalz1lVewdIGqeAS/gB8Mi+sA+BqDiX3VGD2eUunTRbSY+AuDy4E3Qx3hAhwnSXX+B0zuj3eQ1miS8Vux2z/l6/BkWtjKGU72aJkOCWhGcSf3+kFkkB15vGOsQrSdFr6qTj0gBYiOlnBO41170gOWHSUoBVRU2JjwppYdhIFDfu7tIRHccSNM5KZOFDPz0TGMAjzzEpeLwTWp+kn201kU6NjbiMQJx83+LX1e1tZ10kuChJZ/XBUQ1dwaBHjTDJDqOympEk8X2M3VtVw21JksChA8w1tTefO3RJ1FMbqZ01bHHkudDB/OhLfe7P5GOHaI28ZXKTMuqo0hLWQ4HabBsGG7NbP1RiXtETz074er6w/OerJWEqjmkq2y51q1BVI+JUudnVa3ogBpzdhFE7fC7kybrAt2Z6RqDjATAUEYeYK45WMupBKQRtQlU+uNsjnzj6ZmGrezA+ASrWxQ6LMkHRXqXwNq7ftv28dUx/ZSJciDXP2SWJsWaN0FjPX9Yko6LobZ7aYW/IdUktI9apTLyHS8DyWPyuoZyxN1TK/vtfxk3HwWh6JczZC8Ftn0bIJay2g+n5wd7lm9rEsKO+svqVmi+c1j88hSCxbzrg4+HEP0Nt1/B6YW1XVm09T1CpAKjc9n18hjqsaFGdfyva1ZG0Xu3ip6N6JGpyTSqY5h4BOlpLPaOnyw45PdXTN+DtAKg7DLrLFTnWusoSBHk3s0d7YouJHq85/R09Tfc37ENXZF48eAYLnq9GLioNcwDZrC6FW6godB8JnqYUPvn0pWLfQz0lM0Yy8Mybgn84Ds3Q9bDP10bLyOV+qzxa4Rd9Dhu7cju8mMaONXK3UqmBQ9qIg7etIwEqM/kECk/Dzja4Bs1xR+Q/tCbc8IKrSGsTdJJ0vge7IG20W687uVmK6icWQ6cD3lwFzgNMGtFvO5qyJeKflGLAAcQZOrkxVwy3cWvqlGpvjmf9Qe6Ap20MPbV92DPV0OhFM4kz8Yr0ffC2zLWSQ1kqY6QdQrttR3kh1YLtQd1kCEv5hVoPIRWl5ERcUTttBIrWp6Xs5Ehh5OUUwI5aEBvuiDmUoENmnVw1FohCrbRp1A1E+XSlWVOTi7ADW+5Ohb9z1vK4qx5R5lPdGCPBJZ00mC+Ssp8VUbgpGAvXWMuWQQRbCqI6Rr2jtxZxtfP7W/8onz+yz0Gs76LaT5HX9ecyiZCB/ZR/gFtMxPsDwohoeCRtiuLxE1GM1vUEUgBv86+eehL58/P56QFGQ/MqOe/vC76L63jzmeax4exd/OKTUvkXg+fOJUHych9xt/9goJMrapSgvXrj8+8vk/N80f22Sewj6cyGqt1B6mztoeklVHHraouhvHJaG/OuBz6DHKMpFmQULU1bRWlyYE0RPXYYkUycIemN7TLtgNCJX6BqdyxDKkegO7nJK5xQ7OVYDZTMf9bVHidtk6DQX9Et+V9M7esgbsYBdEeUpsB0Xvw2kd9+rI7V+m47u+O/tq7mw7262HU1WlS9uFzsV6JxIHNmUCy0QS9e077JGRFbG65z3/dOKB/Zk+yDdKpUmdXjn/aS3N5nv4fK7bMHHmPlHd4E2+iTbV5rpzScRnxk6KARuDTJ8Q1LpK2mP8gj1EbuJ9RIyY+EWK4hCiIDBAS1Tm2IEXAFfgKPgdL9O6mAa06wjCcUAL6EsxPQWO9VNegBPm/0GgkZbDxCynxujX/92vmGcjZRMAY45puak2sFLCLSwXpEsyy5fnF0jGJBhm+fNSHKKUUfy+276A7/feLOFxxUuHRNJI2Osenxyvf8DAGObT60pfTTlhEg9u/KKkhJqm5U1/+BEcSkpFDA5XeCqxwXmPac1jcuZ3JWQ+p0NdWzb/5v1ZvF8GtMTFFEdQjpLO0bwPb0BHNWnip3liDXI2fXf05jjvfJ0NpjLCUgfTh9CMFYVFKEd4Z/OG/2C+N435mnK+9t1gvCiVcaaH7rK4+PjCvpVNiz+t2QyqH1O8x3JKZVl6Q+Lp/XK8wMjVMslOq9FdSw5FtUs/CptXH9PW+wbWHgrV17R5jTVOtGtKFu3nb80T+E0tv9QkzW3J2dbaw/8ddAKZ0pxIaEqLjlPrji3VgJ3GvdFvlqD8075woxh4fVt0JZE0KVFsAvqhe0dqN9b35jtSpnYMXkU+vZq+IAHad3IHc2s/LYrnD1anfG46IFiMIr9oNbZDWvwthqYNqOigaKd/XlLU4XHfk/PXIjPsLy/9/kAtQ+/wKH+hI/IROWj5FPvTZAT9f7j4ZXQyG4M0TujMAFXYkKvEHv1xhySekgXGGqNxWeWKlf8dDAlLuB1cb/qOD+rk7cmwt+1yKpk9cudqBanTi6zTbXRtV8qylNtjyOVKy1HTz0GW9rjt6sSjAZcT5R+KdtyYb0zyqG9pSLuCw5WBwAn7fjBjKLLoxLXMI+52L9cLwIR2B6OllJZLHJ8vDxmWdtF+QJnmt1rsHPIWY20lftk8fYePkAIg6Hgn532QoIpegMxiWgAOfe5/U44APR8Ac0NeZrVh3gEhs12W+tVSiWiUQekf/YBECUy5fdYbA08dd7VzPAP9aiVcIB9k6tY7WdJ1wNV+bHeydNtmC6G5ICtFC1ZwmJU/j8hf0I8TRVKSiz5oYIa93EpUI78X8GYIAZabx47/n8LDAAJ0nNtP1rpROprqKMBRecShca6qXuTSI3jZBLOB3Vp381B5rCGhjSvh/NSVkYp2qIdP/Bg="},{}],6:[function(o,n,s){var i=o("./dictionary-browser");s.init=function(){s.dictionary=i.init()},s.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),s.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),s.minDictionaryWordLength=4,s.maxDictionaryWordLength=24},{"./dictionary-browser":4}],7:[function(o,n,s){function i(f,m){this.bits=f,this.value=m}s.HuffmanCode=i;var a=15;function u(f,m){for(var g=1<<m-1;f&g;)g>>=1;return(f&g-1)+g}function l(f,m,g,d,v){do d-=g,f[m+d]=new i(v.bits,v.value);while(d>0)}function c(f,m,g){for(var d=1<<m-g;m<a&&(d-=f[m],!(d<=0));)++m,d<<=1;return m-g}s.BrotliBuildHuffmanTable=function(f,m,g,d,v){var S=m,C,w,b,R,k,T,_,A,N,q,U,x=new Int32Array(a+1),I=new Int32Array(a+1);for(U=new Int32Array(v),b=0;b<v;b++)x[d[b]]++;for(I[1]=0,w=1;w<a;w++)I[w+1]=I[w]+x[w];for(b=0;b<v;b++)d[b]!==0&&(U[I[d[b]]++]=b);if(A=g,N=1<<A,q=N,I[a]===1){for(R=0;R<q;++R)f[m+R]=new i(0,U[0]&65535);return q}for(R=0,b=0,w=1,k=2;w<=g;++w,k<<=1)for(;x[w]>0;--x[w])C=new i(w&255,U[b++]&65535),l(f,m+R,k,N,C),R=u(R,w);for(_=q-1,T=-1,w=g+1,k=2;w<=a;++w,k<<=1)for(;x[w]>0;--x[w])(R&_)!==T&&(m+=N,A=c(x,w,g),N=1<<A,q+=N,T=R&_,f[S+T]=new i(A+g&255,m-S-T&65535)),C=new i(w-g&255,U[b++]&65535),l(f,m+(R>>g),k,N,C),R=u(R,w);return q}},{}],8:[function(o,n,s){"use strict";s.byteLength=g,s.toByteArray=v,s.fromByteArray=w;for(var i=[],a=[],u=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=l.length;c<f;++c)i[c]=l[c],a[l.charCodeAt(c)]=c;a[45]=62,a[95]=63;function m(b){var R=b.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=b.indexOf("=");k===-1&&(k=R);var T=k===R?0:4-k%4;return[k,T]}function g(b){var R=m(b),k=R[0],T=R[1];return(k+T)*3/4-T}function d(b,R,k){return(R+k)*3/4-k}function v(b){for(var R,k=m(b),T=k[0],_=k[1],A=new u(d(b,T,_)),N=0,q=_>0?T-4:T,U=0;U<q;U+=4)R=a[b.charCodeAt(U)]<<18|a[b.charCodeAt(U+1)]<<12|a[b.charCodeAt(U+2)]<<6|a[b.charCodeAt(U+3)],A[N++]=R>>16&255,A[N++]=R>>8&255,A[N++]=R&255;return _===2&&(R=a[b.charCodeAt(U)]<<2|a[b.charCodeAt(U+1)]>>4,A[N++]=R&255),_===1&&(R=a[b.charCodeAt(U)]<<10|a[b.charCodeAt(U+1)]<<4|a[b.charCodeAt(U+2)]>>2,A[N++]=R>>8&255,A[N++]=R&255),A}function S(b){return i[b>>18&63]+i[b>>12&63]+i[b>>6&63]+i[b&63]}function C(b,R,k){for(var T,_=[],A=R;A<k;A+=3)T=(b[A]<<16&16711680)+(b[A+1]<<8&65280)+(b[A+2]&255),_.push(S(T));return _.join("")}function w(b){for(var R,k=b.length,T=k%3,_=[],A=16383,N=0,q=k-T;N<q;N+=A)_.push(C(b,N,N+A>q?q:N+A));return T===1?(R=b[k-1],_.push(i[R>>2]+i[R<<4&63]+"==")):T===2&&(R=(b[k-2]<<8)+b[k-1],_.push(i[R>>10]+i[R>>4&63]+i[R<<2&63]+"=")),_.join("")}},{}],9:[function(o,n,s){function i(a,u){this.offset=a,this.nbits=u}s.kBlockLengthPrefixCode=[new i(1,2),new i(5,2),new i(9,2),new i(13,2),new i(17,3),new i(25,3),new i(33,3),new i(41,3),new i(49,4),new i(65,4),new i(81,4),new i(97,4),new i(113,5),new i(145,5),new i(177,5),new i(209,5),new i(241,6),new i(305,6),new i(369,7),new i(497,8),new i(753,9),new i(1265,10),new i(2289,11),new i(4337,12),new i(8433,13),new i(16625,24)],s.kInsertLengthPrefixCode=[new i(0,0),new i(1,0),new i(2,0),new i(3,0),new i(4,0),new i(5,0),new i(6,1),new i(8,1),new i(10,2),new i(14,2),new i(18,3),new i(26,3),new i(34,4),new i(50,4),new i(66,5),new i(98,5),new i(130,6),new i(194,7),new i(322,8),new i(578,9),new i(1090,10),new i(2114,12),new i(6210,14),new i(22594,24)],s.kCopyLengthPrefixCode=[new i(2,0),new i(3,0),new i(4,0),new i(5,0),new i(6,0),new i(7,0),new i(8,0),new i(9,0),new i(10,1),new i(12,1),new i(14,2),new i(18,2),new i(22,3),new i(30,3),new i(38,4),new i(54,4),new i(70,5),new i(102,5),new i(134,6),new i(198,7),new i(326,8),new i(582,9),new i(1094,10),new i(2118,24)],s.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],s.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},{}],10:[function(o,n,s){function i(u){this.buffer=u,this.pos=0}i.prototype.read=function(u,l,c){this.pos+c>this.buffer.length&&(c=this.buffer.length-this.pos);for(var f=0;f<c;f++)u[l+f]=this.buffer[this.pos+f];return this.pos+=c,c},s.BrotliInput=i;function a(u){this.buffer=u,this.pos=0}a.prototype.write=function(u,l){if(this.pos+l>this.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(u.subarray(0,l),this.pos),this.pos+=l,l},s.BrotliOutput=a},{}],11:[function(o,n,s){var i=o("./dictionary"),a=0,u=1,l=2,c=3,f=4,m=5,g=6,d=7,v=8,S=9,C=10,w=11,b=12,R=13,k=14,T=15,_=16,A=17,N=18,q=19,U=20;function x(O,D,J){this.prefix=new Uint8Array(O.length),this.transform=D,this.suffix=new Uint8Array(J.length);for(var M=0;M<O.length;M++)this.prefix[M]=O.charCodeAt(M);for(var M=0;M<J.length;M++)this.suffix[M]=J.charCodeAt(M)}var I=[new x("",a,""),new x("",a," "),new x(" ",a," "),new x("",b,""),new x("",C," "),new x("",a," the "),new x(" ",a,""),new x("s ",a," "),new x("",a," of "),new x("",C,""),new x("",a," and "),new x("",R,""),new x("",u,""),new x(", ",a," "),new x("",a,", "),new x(" ",C," "),new x("",a," in "),new x("",a," to "),new x("e ",a," "),new x("",a,'"'),new x("",a,"."),new x("",a,'">'),new x("",a,`
-`),new x("",c,""),new x("",a,"]"),new x("",a," for "),new x("",k,""),new x("",l,""),new x("",a," a "),new x("",a," that "),new x(" ",C,""),new x("",a,". "),new x(".",a,""),new x(" ",a,", "),new x("",T,""),new x("",a," with "),new x("",a,"'"),new x("",a," from "),new x("",a," by "),new x("",_,""),new x("",A,""),new x(" the ",a,""),new x("",f,""),new x("",a,". The "),new x("",w,""),new x("",a," on "),new x("",a," as "),new x("",a," is "),new x("",d,""),new x("",u,"ing "),new x("",a,`
- `),new x("",a,":"),new x(" ",a,". "),new x("",a,"ed "),new x("",U,""),new x("",N,""),new x("",g,""),new x("",a,"("),new x("",C,", "),new x("",v,""),new x("",a," at "),new x("",a,"ly "),new x(" the ",a," of "),new x("",m,""),new x("",S,""),new x(" ",C,", "),new x("",C,'"'),new x(".",a,"("),new x("",w," "),new x("",C,'">'),new x("",a,'="'),new x(" ",a,"."),new x(".com/",a,""),new x(" the ",a," of the "),new x("",C,"'"),new x("",a,". This "),new x("",a,","),new x(".",a," "),new x("",C,"("),new x("",C,"."),new x("",a," not "),new x(" ",a,'="'),new x("",a,"er "),new x(" ",w," "),new x("",a,"al "),new x(" ",w,""),new x("",a,"='"),new x("",w,'"'),new x("",C,". "),new x(" ",a,"("),new x("",a,"ful "),new x(" ",C,". "),new x("",a,"ive "),new x("",a,"less "),new x("",w,"'"),new x("",a,"est "),new x(" ",C,"."),new x("",w,'">'),new x(" ",a,"='"),new x("",C,","),new x("",a,"ize "),new x("",w,"."),new x("\xC2\xA0",a,""),new x(" ",a,","),new x("",C,'="'),new x("",w,'="'),new x("",a,"ous "),new x("",w,", "),new x("",C,"='"),new x(" ",C,","),new x(" ",w,'="'),new x(" ",w,", "),new x("",w,","),new x("",w,"("),new x("",w,". "),new x(" ",w,"."),new x("",w,"='"),new x(" ",w,". "),new x(" ",C,'="'),new x(" ",w,"='"),new x(" ",C,"='")];s.kTransforms=I,s.kNumTransforms=I.length;function W(O,D){return O[D]<192?(O[D]>=97&&O[D]<=122&&(O[D]^=32),1):O[D]<224?(O[D+1]^=32,2):(O[D+2]^=5,3)}s.transformDictionaryWord=function(O,D,J,M,E){var L=I[E].prefix,$=I[E].suffix,F=I[E].transform,Z=F<b?0:F-(b-1),se=0,xe=D,ie;Z>M&&(Z=M);for(var ye=0;ye<L.length;)O[D++]=L[ye++];for(J+=Z,M-=Z,F<=S&&(M-=F),se=0;se<M;se++)O[D++]=i.dictionary[J+se];if(ie=D-M,F===C)W(O,ie);else if(F===w)for(;M>0;){var Ee=W(O,ie);ie+=Ee,M-=Ee}for(var ee=0;ee<$.length;)O[D++]=$[ee++];return D-xe}},{"./dictionary":6}],12:[function(o,n,s){n.exports=o("./dec/decode").BrotliDecompressBuffer},{"./dec/decode":3}]},{},[12])(12)})();var ta=(e=>typeof Ut<"u"?Ut:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ut<"u"?Ut:t)[r]}):e)(function(e){if(typeof Ut<"u")return Ut.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),jg=(function(){var e,t,r;return(function(){function o(n,s,i){function a(c,f){if(!s[c]){if(!n[c]){var m=typeof ta=="function"&&ta;if(!f&&m)return m(c,!0);if(u)return u(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var d=s[c]={exports:{}};n[c][0].call(d.exports,function(v){var S=n[c][1][v];return a(S||v)},d,d.exports,o,n,s,i)}return s[c].exports}for(var u=typeof ta=="function"&&ta,l=0;l<i.length;l++)a(i[l]);return a}return o})()({1:[function(o,n,s){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function a(c,f){return Object.prototype.hasOwnProperty.call(c,f)}s.assign=function(c){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var m=f.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var g in m)a(m,g)&&(c[g]=m[g])}}return c},s.shrinkBuf=function(c,f){return c.length===f?c:c.subarray?c.subarray(0,f):(c.length=f,c)};var u={arraySet:function(c,f,m,g,d){if(f.subarray&&c.subarray){c.set(f.subarray(m,m+g),d);return}for(var v=0;v<g;v++)c[d+v]=f[m+v]},flattenChunks:function(c){var f,m,g,d,v,S;for(g=0,f=0,m=c.length;f<m;f++)g+=c[f].length;for(S=new Uint8Array(g),d=0,f=0,m=c.length;f<m;f++)v=c[f],S.set(v,d),d+=v.length;return S}},l={arraySet:function(c,f,m,g,d){for(var v=0;v<g;v++)c[d+v]=f[m+v]},flattenChunks:function(c){return[].concat.apply([],c)}};s.setTyped=function(c){c?(s.Buf8=Uint8Array,s.Buf16=Uint16Array,s.Buf32=Int32Array,s.assign(s,u)):(s.Buf8=Array,s.Buf16=Array,s.Buf32=Array,s.assign(s,l))},s.setTyped(i)},{}],2:[function(o,n,s){"use strict";var i=o("./common"),a=!0,u=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{u=!1}for(var l=new i.Buf8(256),c=0;c<256;c++)l[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;l[254]=l[254]=1,s.string2buf=function(m){var g,d,v,S,C,w=m.length,b=0;for(S=0;S<w;S++)d=m.charCodeAt(S),(d&64512)===55296&&S+1<w&&(v=m.charCodeAt(S+1),(v&64512)===56320&&(d=65536+(d-55296<<10)+(v-56320),S++)),b+=d<128?1:d<2048?2:d<65536?3:4;for(g=new i.Buf8(b),C=0,S=0;C<b;S++)d=m.charCodeAt(S),(d&64512)===55296&&S+1<w&&(v=m.charCodeAt(S+1),(v&64512)===56320&&(d=65536+(d-55296<<10)+(v-56320),S++)),d<128?g[C++]=d:d<2048?(g[C++]=192|d>>>6,g[C++]=128|d&63):d<65536?(g[C++]=224|d>>>12,g[C++]=128|d>>>6&63,g[C++]=128|d&63):(g[C++]=240|d>>>18,g[C++]=128|d>>>12&63,g[C++]=128|d>>>6&63,g[C++]=128|d&63);return g};function f(m,g){if(g<65534&&(m.subarray&&u||!m.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(m,g));for(var d="",v=0;v<g;v++)d+=String.fromCharCode(m[v]);return d}s.buf2binstring=function(m){return f(m,m.length)},s.binstring2buf=function(m){for(var g=new i.Buf8(m.length),d=0,v=g.length;d<v;d++)g[d]=m.charCodeAt(d);return g},s.buf2string=function(m,g){var d,v,S,C,w=g||m.length,b=new Array(w*2);for(v=0,d=0;d<w;){if(S=m[d++],S<128){b[v++]=S;continue}if(C=l[S],C>4){b[v++]=65533,d+=C-1;continue}for(S&=C===2?31:C===3?15:7;C>1&&d<w;)S=S<<6|m[d++]&63,C--;if(C>1){b[v++]=65533;continue}S<65536?b[v++]=S:(S-=65536,b[v++]=55296|S>>10&1023,b[v++]=56320|S&1023)}return f(b,v)},s.utf8border=function(m,g){var d;for(g=g||m.length,g>m.length&&(g=m.length),d=g-1;d>=0&&(m[d]&192)===128;)d--;return d<0||d===0?g:d+l[m[d]]>g?d:g}},{"./common":1}],3:[function(o,n,s){"use strict";function i(a,u,l,c){for(var f=a&65535|0,m=a>>>16&65535|0,g=0;l!==0;){g=l>2e3?2e3:l,l-=g;do f=f+u[c++]|0,m=m+f|0;while(--g);f%=65521,m%=65521}return f|m<<16|0}n.exports=i},{}],4:[function(o,n,s){"use strict";n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(o,n,s){"use strict";function i(){for(var l,c=[],f=0;f<256;f++){l=f;for(var m=0;m<8;m++)l=l&1?3988292384^l>>>1:l>>>1;c[f]=l}return c}var a=i();function u(l,c,f,m){var g=a,d=m+f;l^=-1;for(var v=m;v<d;v++)l=l>>>8^g[(l^c[v])&255];return l^-1}n.exports=u},{}],6:[function(o,n,s){"use strict";function i(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}n.exports=i},{}],7:[function(o,n,s){"use strict";var i=30,a=12;n.exports=function(l,c){var f,m,g,d,v,S,C,w,b,R,k,T,_,A,N,q,U,x,I,W,O,D,J,M,E;f=l.state,m=l.next_in,M=l.input,g=m+(l.avail_in-5),d=l.next_out,E=l.output,v=d-(c-l.avail_out),S=d+(l.avail_out-257),C=f.dmax,w=f.wsize,b=f.whave,R=f.wnext,k=f.window,T=f.hold,_=f.bits,A=f.lencode,N=f.distcode,q=(1<<f.lenbits)-1,U=(1<<f.distbits)-1;e:do{_<15&&(T+=M[m++]<<_,_+=8,T+=M[m++]<<_,_+=8),x=A[T&q];t:for(;;){if(I=x>>>24,T>>>=I,_-=I,I=x>>>16&255,I===0)E[d++]=x&65535;else if(I&16){W=x&65535,I&=15,I&&(_<I&&(T+=M[m++]<<_,_+=8),W+=T&(1<<I)-1,T>>>=I,_-=I),_<15&&(T+=M[m++]<<_,_+=8,T+=M[m++]<<_,_+=8),x=N[T&U];r:for(;;){if(I=x>>>24,T>>>=I,_-=I,I=x>>>16&255,I&16){if(O=x&65535,I&=15,_<I&&(T+=M[m++]<<_,_+=8,_<I&&(T+=M[m++]<<_,_+=8)),O+=T&(1<<I)-1,O>C){l.msg="invalid distance too far back",f.mode=i;break e}if(T>>>=I,_-=I,I=d-v,O>I){if(I=O-I,I>b&&f.sane){l.msg="invalid distance too far back",f.mode=i;break e}if(D=0,J=k,R===0){if(D+=w-I,I<W){W-=I;do E[d++]=k[D++];while(--I);D=d-O,J=E}}else if(R<I){if(D+=w+R-I,I-=R,I<W){W-=I;do E[d++]=k[D++];while(--I);if(D=0,R<W){I=R,W-=I;do E[d++]=k[D++];while(--I);D=d-O,J=E}}}else if(D+=R-I,I<W){W-=I;do E[d++]=k[D++];while(--I);D=d-O,J=E}for(;W>2;)E[d++]=J[D++],E[d++]=J[D++],E[d++]=J[D++],W-=3;W&&(E[d++]=J[D++],W>1&&(E[d++]=J[D++]))}else{D=d-O;do E[d++]=E[D++],E[d++]=E[D++],E[d++]=E[D++],W-=3;while(W>2);W&&(E[d++]=E[D++],W>1&&(E[d++]=E[D++]))}}else if((I&64)===0){x=N[(x&65535)+(T&(1<<I)-1)];continue r}else{l.msg="invalid distance code",f.mode=i;break e}break}}else if((I&64)===0){x=A[(x&65535)+(T&(1<<I)-1)];continue t}else if(I&32){f.mode=a;break e}else{l.msg="invalid literal/length code",f.mode=i;break e}break}}while(m<g&&d<S);W=_>>3,m-=W,_-=W<<3,T&=(1<<_)-1,l.next_in=m,l.next_out=d,l.avail_in=m<g?5+(g-m):5-(m-g),l.avail_out=d<S?257+(S-d):257-(d-S),f.hold=T,f.bits=_}},{}],8:[function(o,n,s){"use strict";var i=o("../utils/common"),a=o("./adler32"),u=o("./crc32"),l=o("./inffast"),c=o("./inftrees"),f=0,m=1,g=2,d=4,v=5,S=6,C=0,w=1,b=2,R=-2,k=-3,T=-4,_=-5,A=8,N=1,q=2,U=3,x=4,I=5,W=6,O=7,D=8,J=9,M=10,E=11,L=12,$=13,F=14,Z=15,se=16,xe=17,ie=18,ye=19,Ee=20,ee=21,Ae=22,Ie=23,ke=24,He=25,G=26,j=27,X=28,H=29,K=30,fe=31,ue=32,de=852,pe=592,me=15,V=me;function re(P){return(P>>>24&255)+(P>>>8&65280)+((P&65280)<<8)+((P&255)<<24)}function De(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ue(P){var Q;return!P||!P.state?R:(Q=P.state,P.total_in=P.total_out=Q.total=0,P.msg="",Q.wrap&&(P.adler=Q.wrap&1),Q.mode=N,Q.last=0,Q.havedict=0,Q.dmax=32768,Q.head=null,Q.hold=0,Q.bits=0,Q.lencode=Q.lendyn=new i.Buf32(de),Q.distcode=Q.distdyn=new i.Buf32(pe),Q.sane=1,Q.back=-1,C)}function ot(P){var Q;return!P||!P.state?R:(Q=P.state,Q.wsize=0,Q.whave=0,Q.wnext=0,Ue(P))}function ut(P,Q){var y,oe;return!P||!P.state||(oe=P.state,Q<0?(y=0,Q=-Q):(y=(Q>>4)+1,Q<48&&(Q&=15)),Q&&(Q<8||Q>15))?R:(oe.window!==null&&oe.wbits!==Q&&(oe.window=null),oe.wrap=y,oe.wbits=Q,ot(P))}function je(P,Q){var y,oe;return P?(oe=new De,P.state=oe,oe.window=null,y=ut(P,Q),y!==C&&(P.state=null),y):R}function We(P){return je(P,V)}var nt=!0,ve,Or;function yr(P){if(nt){var Q;for(ve=new i.Buf32(512),Or=new i.Buf32(32),Q=0;Q<144;)P.lens[Q++]=8;for(;Q<256;)P.lens[Q++]=9;for(;Q<280;)P.lens[Q++]=7;for(;Q<288;)P.lens[Q++]=8;for(c(m,P.lens,0,288,ve,0,P.work,{bits:9}),Q=0;Q<32;)P.lens[Q++]=5;c(g,P.lens,0,32,Or,0,P.work,{bits:5}),nt=!1}P.lencode=ve,P.lenbits=9,P.distcode=Or,P.distbits=5}function $e(P,Q,y,oe){var Be,te=P.state;return te.window===null&&(te.wsize=1<<te.wbits,te.wnext=0,te.whave=0,te.window=new i.Buf8(te.wsize)),oe>=te.wsize?(i.arraySet(te.window,Q,y-te.wsize,te.wsize,0),te.wnext=0,te.whave=te.wsize):(Be=te.wsize-te.wnext,Be>oe&&(Be=oe),i.arraySet(te.window,Q,y-oe,Be,te.wnext),oe-=Be,oe?(i.arraySet(te.window,Q,y-oe,oe,0),te.wnext=oe,te.whave=te.wsize):(te.wnext+=Be,te.wnext===te.wsize&&(te.wnext=0),te.whave<te.wsize&&(te.whave+=Be))),0}function Hr(P,Q){var y,oe,Be,te,ht,ne,Qe,B,z,vr,Ge,le,Ur,tr,et=0,Ve,ft,gt,xt,Wr,To,at,Lt,dt=new i.Buf8(4),Nt,jt,$o=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return R;y=P.state,y.mode===L&&(y.mode=$),ht=P.next_out,Be=P.output,Qe=P.avail_out,te=P.next_in,oe=P.input,ne=P.avail_in,B=y.hold,z=y.bits,vr=ne,Ge=Qe,Lt=C;e:for(;;)switch(y.mode){case N:if(y.wrap===0){y.mode=$;break}for(;z<16;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}if(y.wrap&2&&B===35615){y.check=0,dt[0]=B&255,dt[1]=B>>>8&255,y.check=u(y.check,dt,2,0),B=0,z=0,y.mode=q;break}if(y.flags=0,y.head&&(y.head.done=!1),!(y.wrap&1)||(((B&255)<<8)+(B>>8))%31){P.msg="incorrect header check",y.mode=K;break}if((B&15)!==A){P.msg="unknown compression method",y.mode=K;break}if(B>>>=4,z-=4,at=(B&15)+8,y.wbits===0)y.wbits=at;else if(at>y.wbits){P.msg="invalid window size",y.mode=K;break}y.dmax=1<<at,P.adler=y.check=1,y.mode=B&512?M:L,B=0,z=0;break;case q:for(;z<16;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}if(y.flags=B,(y.flags&255)!==A){P.msg="unknown compression method",y.mode=K;break}if(y.flags&57344){P.msg="unknown header flags set",y.mode=K;break}y.head&&(y.head.text=B>>8&1),y.flags&512&&(dt[0]=B&255,dt[1]=B>>>8&255,y.check=u(y.check,dt,2,0)),B=0,z=0,y.mode=U;case U:for(;z<32;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}y.head&&(y.head.time=B),y.flags&512&&(dt[0]=B&255,dt[1]=B>>>8&255,dt[2]=B>>>16&255,dt[3]=B>>>24&255,y.check=u(y.check,dt,4,0)),B=0,z=0,y.mode=x;case x:for(;z<16;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}y.head&&(y.head.xflags=B&255,y.head.os=B>>8),y.flags&512&&(dt[0]=B&255,dt[1]=B>>>8&255,y.check=u(y.check,dt,2,0)),B=0,z=0,y.mode=I;case I:if(y.flags&1024){for(;z<16;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}y.length=B,y.head&&(y.head.extra_len=B),y.flags&512&&(dt[0]=B&255,dt[1]=B>>>8&255,y.check=u(y.check,dt,2,0)),B=0,z=0}else y.head&&(y.head.extra=null);y.mode=W;case W:if(y.flags&1024&&(le=y.length,le>ne&&(le=ne),le&&(y.head&&(at=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),i.arraySet(y.head.extra,oe,te,le,at)),y.flags&512&&(y.check=u(y.check,oe,le,te)),ne-=le,te+=le,y.length-=le),y.length))break e;y.length=0,y.mode=O;case O:if(y.flags&2048){if(ne===0)break e;le=0;do at=oe[te+le++],y.head&&at&&y.length<65536&&(y.head.name+=String.fromCharCode(at));while(at&&le<ne);if(y.flags&512&&(y.check=u(y.check,oe,le,te)),ne-=le,te+=le,at)break e}else y.head&&(y.head.name=null);y.length=0,y.mode=D;case D:if(y.flags&4096){if(ne===0)break e;le=0;do at=oe[te+le++],y.head&&at&&y.length<65536&&(y.head.comment+=String.fromCharCode(at));while(at&&le<ne);if(y.flags&512&&(y.check=u(y.check,oe,le,te)),ne-=le,te+=le,at)break e}else y.head&&(y.head.comment=null);y.mode=J;case J:if(y.flags&512){for(;z<16;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}if(B!==(y.check&65535)){P.msg="header crc mismatch",y.mode=K;break}B=0,z=0}y.head&&(y.head.hcrc=y.flags>>9&1,y.head.done=!0),P.adler=y.check=0,y.mode=L;break;case M:for(;z<32;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}P.adler=y.check=re(B),B=0,z=0,y.mode=E;case E:if(y.havedict===0)return P.next_out=ht,P.avail_out=Qe,P.next_in=te,P.avail_in=ne,y.hold=B,y.bits=z,b;P.adler=y.check=1,y.mode=L;case L:if(Q===v||Q===S)break e;case $:if(y.last){B>>>=z&7,z-=z&7,y.mode=j;break}for(;z<3;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}switch(y.last=B&1,B>>>=1,z-=1,B&3){case 0:y.mode=F;break;case 1:if(yr(y),y.mode=Ee,Q===S){B>>>=2,z-=2;break e}break;case 2:y.mode=xe;break;case 3:P.msg="invalid block type",y.mode=K}B>>>=2,z-=2;break;case F:for(B>>>=z&7,z-=z&7;z<32;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}if((B&65535)!==(B>>>16^65535)){P.msg="invalid stored block lengths",y.mode=K;break}if(y.length=B&65535,B=0,z=0,y.mode=Z,Q===S)break e;case Z:y.mode=se;case se:if(le=y.length,le){if(le>ne&&(le=ne),le>Qe&&(le=Qe),le===0)break e;i.arraySet(Be,oe,te,le,ht),ne-=le,te+=le,Qe-=le,ht+=le,y.length-=le;break}y.mode=L;break;case xe:for(;z<14;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}if(y.nlen=(B&31)+257,B>>>=5,z-=5,y.ndist=(B&31)+1,B>>>=5,z-=5,y.ncode=(B&15)+4,B>>>=4,z-=4,y.nlen>286||y.ndist>30){P.msg="too many length or distance symbols",y.mode=K;break}y.have=0,y.mode=ie;case ie:for(;y.have<y.ncode;){for(;z<3;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}y.lens[$o[y.have++]]=B&7,B>>>=3,z-=3}for(;y.have<19;)y.lens[$o[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,Nt={bits:y.lenbits},Lt=c(f,y.lens,0,19,y.lencode,0,y.work,Nt),y.lenbits=Nt.bits,Lt){P.msg="invalid code lengths set",y.mode=K;break}y.have=0,y.mode=ye;case ye:for(;y.have<y.nlen+y.ndist;){for(;et=y.lencode[B&(1<<y.lenbits)-1],Ve=et>>>24,ft=et>>>16&255,gt=et&65535,!(Ve<=z);){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}if(gt<16)B>>>=Ve,z-=Ve,y.lens[y.have++]=gt;else{if(gt===16){for(jt=Ve+2;z<jt;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}if(B>>>=Ve,z-=Ve,y.have===0){P.msg="invalid bit length repeat",y.mode=K;break}at=y.lens[y.have-1],le=3+(B&3),B>>>=2,z-=2}else if(gt===17){for(jt=Ve+3;z<jt;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}B>>>=Ve,z-=Ve,at=0,le=3+(B&7),B>>>=3,z-=3}else{for(jt=Ve+7;z<jt;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}B>>>=Ve,z-=Ve,at=0,le=11+(B&127),B>>>=7,z-=7}if(y.have+le>y.nlen+y.ndist){P.msg="invalid bit length repeat",y.mode=K;break}for(;le--;)y.lens[y.have++]=at}}if(y.mode===K)break;if(y.lens[256]===0){P.msg="invalid code -- missing end-of-block",y.mode=K;break}if(y.lenbits=9,Nt={bits:y.lenbits},Lt=c(m,y.lens,0,y.nlen,y.lencode,0,y.work,Nt),y.lenbits=Nt.bits,Lt){P.msg="invalid literal/lengths set",y.mode=K;break}if(y.distbits=6,y.distcode=y.distdyn,Nt={bits:y.distbits},Lt=c(g,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,Nt),y.distbits=Nt.bits,Lt){P.msg="invalid distances set",y.mode=K;break}if(y.mode=Ee,Q===S)break e;case Ee:y.mode=ee;case ee:if(ne>=6&&Qe>=258){P.next_out=ht,P.avail_out=Qe,P.next_in=te,P.avail_in=ne,y.hold=B,y.bits=z,l(P,Ge),ht=P.next_out,Be=P.output,Qe=P.avail_out,te=P.next_in,oe=P.input,ne=P.avail_in,B=y.hold,z=y.bits,y.mode===L&&(y.back=-1);break}for(y.back=0;et=y.lencode[B&(1<<y.lenbits)-1],Ve=et>>>24,ft=et>>>16&255,gt=et&65535,!(Ve<=z);){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}if(ft&&(ft&240)===0){for(xt=Ve,Wr=ft,To=gt;et=y.lencode[To+((B&(1<<xt+Wr)-1)>>xt)],Ve=et>>>24,ft=et>>>16&255,gt=et&65535,!(xt+Ve<=z);){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}B>>>=xt,z-=xt,y.back+=xt}if(B>>>=Ve,z-=Ve,y.back+=Ve,y.length=gt,ft===0){y.mode=G;break}if(ft&32){y.back=-1,y.mode=L;break}if(ft&64){P.msg="invalid literal/length code",y.mode=K;break}y.extra=ft&15,y.mode=Ae;case Ae:if(y.extra){for(jt=y.extra;z<jt;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}y.length+=B&(1<<y.extra)-1,B>>>=y.extra,z-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=Ie;case Ie:for(;et=y.distcode[B&(1<<y.distbits)-1],Ve=et>>>24,ft=et>>>16&255,gt=et&65535,!(Ve<=z);){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}if((ft&240)===0){for(xt=Ve,Wr=ft,To=gt;et=y.distcode[To+((B&(1<<xt+Wr)-1)>>xt)],Ve=et>>>24,ft=et>>>16&255,gt=et&65535,!(xt+Ve<=z);){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}B>>>=xt,z-=xt,y.back+=xt}if(B>>>=Ve,z-=Ve,y.back+=Ve,ft&64){P.msg="invalid distance code",y.mode=K;break}y.offset=gt,y.extra=ft&15,y.mode=ke;case ke:if(y.extra){for(jt=y.extra;z<jt;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}y.offset+=B&(1<<y.extra)-1,B>>>=y.extra,z-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){P.msg="invalid distance too far back",y.mode=K;break}y.mode=He;case He:if(Qe===0)break e;if(le=Ge-Qe,y.offset>le){if(le=y.offset-le,le>y.whave&&y.sane){P.msg="invalid distance too far back",y.mode=K;break}le>y.wnext?(le-=y.wnext,Ur=y.wsize-le):Ur=y.wnext-le,le>y.length&&(le=y.length),tr=y.window}else tr=Be,Ur=ht-y.offset,le=y.length;le>Qe&&(le=Qe),Qe-=le,y.length-=le;do Be[ht++]=tr[Ur++];while(--le);y.length===0&&(y.mode=ee);break;case G:if(Qe===0)break e;Be[ht++]=y.length,Qe--,y.mode=ee;break;case j:if(y.wrap){for(;z<32;){if(ne===0)break e;ne--,B|=oe[te++]<<z,z+=8}if(Ge-=Qe,P.total_out+=Ge,y.total+=Ge,Ge&&(P.adler=y.check=y.flags?u(y.check,Be,Ge,ht-Ge):a(y.check,Be,Ge,ht-Ge)),Ge=Qe,(y.flags?B:re(B))!==y.check){P.msg="incorrect data check",y.mode=K;break}B=0,z=0}y.mode=X;case X:if(y.wrap&&y.flags){for(;z<32;){if(ne===0)break e;ne--,B+=oe[te++]<<z,z+=8}if(B!==(y.total&4294967295)){P.msg="incorrect length check",y.mode=K;break}B=0,z=0}y.mode=H;case H:Lt=w;break e;case K:Lt=k;break e;case fe:return T;case ue:default:return R}return P.next_out=ht,P.avail_out=Qe,P.next_in=te,P.avail_in=ne,y.hold=B,y.bits=z,(y.wsize||Ge!==P.avail_out&&y.mode<K&&(y.mode<j||Q!==d))&&$e(P,P.output,P.next_out,Ge-P.avail_out)?(y.mode=fe,T):(vr-=P.avail_in,Ge-=P.avail_out,P.total_in+=vr,P.total_out+=Ge,y.total+=Ge,y.wrap&&Ge&&(P.adler=y.check=y.flags?u(y.check,Be,Ge,P.next_out-Ge):a(y.check,Be,Ge,P.next_out-Ge)),P.data_type=y.bits+(y.last?64:0)+(y.mode===L?128:0)+(y.mode===Ee||y.mode===Z?256:0),(vr===0&&Ge===0||Q===d)&&Lt===C&&(Lt=_),Lt)}function Et(P){if(!P||!P.state)return R;var Q=P.state;return Q.window&&(Q.window=null),P.state=null,C}function Ne(P,Q){var y;return!P||!P.state||(y=P.state,(y.wrap&2)===0)?R:(y.head=Q,Q.done=!1,C)}function qe(P,Q){var y=Q.length,oe,Be,te;return!P||!P.state||(oe=P.state,oe.wrap!==0&&oe.mode!==E)?R:oe.mode===E&&(Be=1,Be=a(Be,Q,y,0),Be!==oe.check)?k:(te=$e(P,Q,y,y),te?(oe.mode=fe,T):(oe.havedict=1,C))}s.inflateReset=ot,s.inflateReset2=ut,s.inflateResetKeep=Ue,s.inflateInit=We,s.inflateInit2=je,s.inflate=Hr,s.inflateEnd=Et,s.inflateGetHeader=Ne,s.inflateSetDictionary=qe,s.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(o,n,s){"use strict";var i=o("../utils/common"),a=15,u=852,l=592,c=0,f=1,m=2,g=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],v=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],S=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(w,b,R,k,T,_,A,N){var q=N.bits,U=0,x=0,I=0,W=0,O=0,D=0,J=0,M=0,E=0,L=0,$,F,Z,se,xe,ie=null,ye=0,Ee,ee=new i.Buf16(a+1),Ae=new i.Buf16(a+1),Ie=null,ke=0,He,G,j;for(U=0;U<=a;U++)ee[U]=0;for(x=0;x<k;x++)ee[b[R+x]]++;for(O=q,W=a;W>=1&&ee[W]===0;W--);if(O>W&&(O=W),W===0)return T[_++]=1<<24|64<<16|0,T[_++]=1<<24|64<<16|0,N.bits=1,0;for(I=1;I<W&&ee[I]===0;I++);for(O<I&&(O=I),M=1,U=1;U<=a;U++)if(M<<=1,M-=ee[U],M<0)return-1;if(M>0&&(w===c||W!==1))return-1;for(Ae[1]=0,U=1;U<a;U++)Ae[U+1]=Ae[U]+ee[U];for(x=0;x<k;x++)b[R+x]!==0&&(A[Ae[b[R+x]]++]=x);if(w===c?(ie=Ie=A,Ee=19):w===f?(ie=g,ye-=257,Ie=d,ke-=257,Ee=256):(ie=v,Ie=S,Ee=-1),L=0,x=0,U=I,xe=_,D=O,J=0,Z=-1,E=1<<O,se=E-1,w===f&&E>u||w===m&&E>l)return 1;for(;;){He=U-J,A[x]<Ee?(G=0,j=A[x]):A[x]>Ee?(G=Ie[ke+A[x]],j=ie[ye+A[x]]):(G=96,j=0),$=1<<U-J,F=1<<D,I=F;do F-=$,T[xe+(L>>J)+F]=He<<24|G<<16|j|0;while(F!==0);for($=1<<U-1;L&$;)$>>=1;if($!==0?(L&=$-1,L+=$):L=0,x++,--ee[U]===0){if(U===W)break;U=b[R+A[x]]}if(U>O&&(L&se)!==Z){for(J===0&&(J=O),xe+=I,D=U-J,M=1<<D;D+J<W&&(M-=ee[D+J],!(M<=0));)D++,M<<=1;if(E+=1<<D,w===f&&E>u||w===m&&E>l)return 1;Z=L&se,T[Z]=O<<24|D<<16|xe-_|0}}return L!==0&&(T[xe+L]=U-J<<24|64<<16|0),N.bits=O,0}},{"../utils/common":1}],10:[function(o,n,s){"use strict";n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(o,n,s){"use strict";function i(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}n.exports=i},{}],"/lib/inflate.js":[function(o,n,s){"use strict";var i=o("./zlib/inflate"),a=o("./utils/common"),u=o("./utils/strings"),l=o("./zlib/constants"),c=o("./zlib/messages"),f=o("./zlib/zstream"),m=o("./zlib/gzheader"),g=Object.prototype.toString;function d(C){if(!(this instanceof d))return new d(C);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},C||{});var w=this.options;w.raw&&w.windowBits>=0&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),w.windowBits>=0&&w.windowBits<16&&!(C&&C.windowBits)&&(w.windowBits+=32),w.windowBits>15&&w.windowBits<48&&(w.windowBits&15)===0&&(w.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var b=i.inflateInit2(this.strm,w.windowBits);if(b!==l.Z_OK)throw new Error(c[b]);if(this.header=new m,i.inflateGetHeader(this.strm,this.header),w.dictionary&&(typeof w.dictionary=="string"?w.dictionary=u.string2buf(w.dictionary):g.call(w.dictionary)==="[object ArrayBuffer]"&&(w.dictionary=new Uint8Array(w.dictionary)),w.raw&&(b=i.inflateSetDictionary(this.strm,w.dictionary),b!==l.Z_OK)))throw new Error(c[b])}d.prototype.push=function(C,w){var b=this.strm,R=this.options.chunkSize,k=this.options.dictionary,T,_,A,N,q,U=!1;if(this.ended)return!1;_=w===~~w?w:w===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof C=="string"?b.input=u.binstring2buf(C):g.call(C)==="[object ArrayBuffer]"?b.input=new Uint8Array(C):b.input=C,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new a.Buf8(R),b.next_out=0,b.avail_out=R),T=i.inflate(b,l.Z_NO_FLUSH),T===l.Z_NEED_DICT&&k&&(T=i.inflateSetDictionary(this.strm,k)),T===l.Z_BUF_ERROR&&U===!0&&(T=l.Z_OK,U=!1),T!==l.Z_STREAM_END&&T!==l.Z_OK)return this.onEnd(T),this.ended=!0,!1;b.next_out&&(b.avail_out===0||T===l.Z_STREAM_END||b.avail_in===0&&(_===l.Z_FINISH||_===l.Z_SYNC_FLUSH))&&(this.options.to==="string"?(A=u.utf8border(b.output,b.next_out),N=b.next_out-A,q=u.buf2string(b.output,A),b.next_out=N,b.avail_out=R-N,N&&a.arraySet(b.output,b.output,A,N,0),this.onData(q)):this.onData(a.shrinkBuf(b.output,b.next_out))),b.avail_in===0&&b.avail_out===0&&(U=!0)}while((b.avail_in>0||b.avail_out===0)&&T!==l.Z_STREAM_END);return T===l.Z_STREAM_END&&(_=l.Z_FINISH),_===l.Z_FINISH?(T=i.inflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===l.Z_OK):(_===l.Z_SYNC_FLUSH&&(this.onEnd(l.Z_OK),b.avail_out=0),!0)},d.prototype.onData=function(C){this.chunks.push(C)},d.prototype.onEnd=function(C){C===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=C,this.msg=this.strm.msg};function v(C,w){var b=new d(w);if(b.push(C,!0),b.err)throw b.msg||c[b.err];return b.result}function S(C,w){return w=w||{},w.raw=!0,v(C,w)}s.Inflate=d,s.inflate=v,s.inflateRaw=S,s.ungzip=v},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")})();var qN=globalThis.fetch,ra=class{constructor(e,t={},r){this.type=e,this.detail=t,this.msg=r,Object.defineProperty(this,"__mayPropagate",{enumerable:!1,writable:!0}),this.__mayPropagate=!0}preventDefault(){}stopPropagation(){this.__mayPropagate=!1}valueOf(){return this}toString(){return this.msg?`[${this.type} event]: ${this.msg}`:`[${this.type} event]`}},Fx=class{constructor(){this.listeners={}}addEventListener(e,t,r){let o=this.listeners[e]||[];r?o.unshift(t):o.push(t),this.listeners[e]=o}removeEventListener(e,t){let r=this.listeners[e]||[],o=r.findIndex(n=>n===t);o>-1&&(r.splice(o,1),this.listeners[e]=r)}dispatch(e){let t=this.listeners[e.type];if(t)for(let r=0,o=t.length;r<o&&e.__mayPropagate;r++)t[r](e)}},Ax=new Date("1904-01-01T00:00:00+0000").getTime();function Ix(e){return Array.from(e).map(t=>String.fromCharCode(t)).join("")}var Lx=class{constructor(e,t,r){this.name=(r||e.tag||"").trim(),this.length=e.length,this.start=e.offset,this.offset=0,this.data=t,["getInt8","getUint8","getInt16","getUint16","getInt32","getUint32","getBigInt64","getBigUint64"].forEach(o=>{let n=o.replace(/get(Big)?/,"").toLowerCase(),s=parseInt(o.replace(/[^\d]/g,""))/8;Object.defineProperty(this,n,{get:()=>this.getValue(o,s)})})}get currentPosition(){return this.start+this.offset}set currentPosition(e){this.start=e,this.offset=0}skip(e=0,t=8){this.offset+=e*t/8}getValue(e,t){let r=this.start+this.offset;this.offset+=t;try{return this.data[e](r)}catch(o){throw console.error("parser",e,t,this),console.error("parser",this.start,this.offset),o}}flags(e){if(e===8||e===16||e===32||e===64)return this[`uint${e}`].toString(2).padStart(e,0).split("").map(t=>t==="1");console.error("Error parsing flags: flag types can only be 1, 2, 4, or 8 bytes long"),console.trace()}get tag(){let e=this.uint32;return Ix([e>>24&255,e>>16&255,e>>8&255,e&255])}get fixed(){let e=this.int16,t=Math.round(1e3*this.uint16/65356);return e+t/1e3}get legacyFixed(){let e=this.uint16,t=this.uint16.toString(16).padStart(4,0);return parseFloat(`${e}.${t}`)}get uint24(){return(this.uint8<<16)+(this.uint8<<8)+this.uint8}get uint128(){let e=0;for(let t=0;t<5;t++){let r=this.uint8;if(e=e*128+(r&127),r<128)break}return e}get longdatetime(){return new Date(Ax+1e3*parseInt(this.int64.toString()))}get fword(){return this.int16}get ufword(){return this.uint16}get Offset16(){return this.uint16}get Offset32(){return this.uint32}get F2DOT14(){let e=p.uint16,t=[0,1,-2,-1][e>>14],r=e&16383;return t+r/16384}verifyLength(){this.offset!=this.length&&console.error(`unexpected parsed table size (${this.offset}) for "${this.name}" (expected ${this.length})`)}readBytes(e=0,t=0,r=8,o=!1){if(e=e||this.length,e===0)return[];t&&(this.currentPosition=t);let n=`${o?"":"u"}int${r}`,s=[];for(;e--;)s.push(this[n]);return s}},ct=class{constructor(e){Object.defineProperty(this,"parser",{enumerable:!1,get:()=>e});let r=e.currentPosition;Object.defineProperty(this,"start",{enumerable:!1,get:()=>r})}load(e){Object.keys(e).forEach(t=>{let r=Object.getOwnPropertyDescriptor(e,t);r.get?this[t]=r.get.bind(this):r.value!==void 0&&(this[t]=r.value)}),this.parser.length&&this.parser.verifyLength()}},Pe=class extends ct{constructor(e,t,r){let{parser:o,start:n}=super(new Lx(e,t,r));Object.defineProperty(this,"p",{enumerable:!1,get:()=>o}),Object.defineProperty(this,"tableStart",{enumerable:!1,get:()=>n})}};function ae(e,t,r){let o;Object.defineProperty(e,t,{get:()=>o||(o=r(),o),enumerable:!0})}var Nx=class extends Pe{constructor(e,t,r){let{p:o}=super({offset:0,length:12},t,"sfnt");this.version=o.uint32,this.numTables=o.uint16,this.searchRange=o.uint16,this.entrySelector=o.uint16,this.rangeShift=o.uint16,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(n=>new Dx(o)),this.tables={},this.directory.forEach(n=>{let s=()=>r(this.tables,{tag:n.tag,offset:n.offset,length:n.length},t);ae(this.tables,n.tag.trim(),s)})}},Dx=class{constructor(e){this.tag=e.tag,this.checksum=e.uint32,this.offset=e.uint32,this.length=e.uint32}},Hg=jg.inflate||void 0,Ug=void 0,Mx=class extends Pe{constructor(e,t,r){let{p:o}=super({offset:0,length:44},t,"woff");this.signature=o.tag,this.flavor=o.uint32,this.length=o.uint32,this.numTables=o.uint16,o.uint16,this.totalSfntSize=o.uint32,this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.metaOffset=o.uint32,this.metaLength=o.uint32,this.metaOrigLength=o.uint32,this.privOffset=o.uint32,this.privLength=o.uint32,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(n=>new Vx(o)),Bx(this,t,r)}},Vx=class{constructor(e){this.tag=e.tag,this.offset=e.uint32,this.compLength=e.uint32,this.origLength=e.uint32,this.origChecksum=e.uint32}};function Bx(e,t,r){e.tables={},e.directory.forEach(o=>{ae(e.tables,o.tag.trim(),()=>{let n=0,s=t;if(o.compLength!==o.origLength){let i=t.buffer.slice(o.offset,o.offset+o.compLength),a;if(Hg)a=Hg(new Uint8Array(i));else if(Ug)a=Ug(new Uint8Array(i));else{let u="no brotli decoder available to decode WOFF2 font";throw font.onerror&&font.onerror(u),new Error(u)}s=new DataView(a.buffer)}else n=o.offset;return r(e.tables,{tag:o.tag,offset:n,length:o.origLength},s)})})}var Wg=zg,Gg=void 0,zx=class extends Pe{constructor(e,t,r){let{p:o}=super({offset:0,length:48},t,"woff2");this.signature=o.tag,this.flavor=o.uint32,this.length=o.uint32,this.numTables=o.uint16,o.uint16,this.totalSfntSize=o.uint32,this.totalCompressedSize=o.uint32,this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.metaOffset=o.uint32,this.metaLength=o.uint32,this.metaOrigLength=o.uint32,this.privOffset=o.uint32,this.privLength=o.uint32,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(a=>new jx(o));let n=o.currentPosition;this.directory[0].offset=0,this.directory.forEach((a,u)=>{let l=this.directory[u+1];l&&(l.offset=a.offset+(a.transformLength!==void 0?a.transformLength:a.origLength))});let s,i=t.buffer.slice(n);if(Wg)s=Wg(new Uint8Array(i));else if(Gg)s=new Uint8Array(Gg(i));else{let a="no brotli decoder available to decode WOFF2 font";throw e.onerror&&e.onerror(a),new Error(a)}Hx(this,s,r)}},jx=class{constructor(e){this.flags=e.uint8;let t=this.tagNumber=this.flags&63;t===63?this.tag=e.tag:this.tag=Ux(t);let o=(this.transformVersion=(this.flags&192)>>6)!==0;(this.tag==="glyf"||this.tag==="loca")&&(o=this.transformVersion!==3),this.origLength=e.uint128,o&&(this.transformLength=e.uint128)}};function Hx(e,t,r){e.tables={},e.directory.forEach(o=>{ae(e.tables,o.tag.trim(),()=>{let n=o.offset,s=n+(o.transformLength?o.transformLength:o.origLength),i=new DataView(t.slice(n,s).buffer);try{return r(e.tables,{tag:o.tag,offset:0,length:o.origLength},i)}catch(a){console.error(a)}})})}function Ux(e){return["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"][e&63]}var Qg={},$g=!1;Promise.all([Promise.resolve().then(function(){return yS}),Promise.resolve().then(function(){return bS}),Promise.resolve().then(function(){return xS}),Promise.resolve().then(function(){return RS}),Promise.resolve().then(function(){return TS}),Promise.resolve().then(function(){return FS}),Promise.resolve().then(function(){return IS}),Promise.resolve().then(function(){return NS}),Promise.resolve().then(function(){return GS}),Promise.resolve().then(function(){return rC}),Promise.resolve().then(function(){return UC}),Promise.resolve().then(function(){return GC}),Promise.resolve().then(function(){return XC}),Promise.resolve().then(function(){return $C}),Promise.resolve().then(function(){return tR}),Promise.resolve().then(function(){return oR}),Promise.resolve().then(function(){return iR}),Promise.resolve().then(function(){return lR}),Promise.resolve().then(function(){return uR}),Promise.resolve().then(function(){return dR}),Promise.resolve().then(function(){return mR}),Promise.resolve().then(function(){return gR}),Promise.resolve().then(function(){return bR}),Promise.resolve().then(function(){return SR}),Promise.resolve().then(function(){return CR}),Promise.resolve().then(function(){return ER}),Promise.resolve().then(function(){return _R}),Promise.resolve().then(function(){return PR}),Promise.resolve().then(function(){return FR}),Promise.resolve().then(function(){return LR}),Promise.resolve().then(function(){return zR}),Promise.resolve().then(function(){return WR}),Promise.resolve().then(function(){return qR}),Promise.resolve().then(function(){return JR}),Promise.resolve().then(function(){return $R}),Promise.resolve().then(function(){return t2}),Promise.resolve().then(function(){return n2}),Promise.resolve().then(function(){return i2}),Promise.resolve().then(function(){return f2}),Promise.resolve().then(function(){return p2}),Promise.resolve().then(function(){return g2})]).then(e=>{e.forEach(t=>{let r=Object.keys(t)[0];Qg[r]=t[r]}),$g=!0});function Wx(e,t,r){let o=t.tag.replace(/[^\w\d]/g,""),n=Qg[o];return n?new n(t,r,e):(console.warn(`lib-font has no definition for ${o}. The table was skipped.`),{})}function Gx(){let e=0;function t(r,o){if(!$g)return e>10?o(new Error("loading took too long")):(e++,setTimeout(()=>t(r),250));r(Wx)}return new Promise((r,o)=>t(r))}function Yx(e,t){let r=e.lastIndexOf("."),o=(e.substring(r+1)||"").toLowerCase(),n={ttf:"truetype",otf:"opentype",woff:"woff",woff2:"woff2"}[o];if(n)return n;let s={eot:"The .eot format is not supported: it died in January 12, 2016, when Microsoft retired all versions of IE that didn't already support WOFF.",svg:"The .svg format is not supported: SVG fonts (not to be confused with OpenType with embedded SVG) were so bad we took the entire fonts chapter out of the SVG specification again.",fon:"The .fon format is not supported: this is an ancient Windows bitmap font format.",ttc:"Based on the current CSS specification, font collections are not (yet?) supported."}[o];if(s||(s=`${e} is not a known webfont format.`),t)throw new Error(s);console.warn(`Could not load font: ${s}`)}async function qx(e,t,r={}){if(!globalThis.document)return;let o=Yx(t,r.errorOnStyle);if(!o)return;let n=document.createElement("style");n.className="injected-by-Font-js";let s=[];return r.styleRules&&(s=Object.entries(r.styleRules).map(([i,a])=>`${i}: ${a};`)),n.textContent=`
+</svg>`}var yh={mobile:"480px",tablet:"782px"},vh=/^(\d+|\d*\.\d+)(px|em|rem)$/,_1=16;function P1(e){return"mobile"in e||"tablet"in e}function O1(e){return!e||typeof e!="object"?{}:P1(e)?e:e.settings?.viewport??{}}function k1(e){return typeof e=="string"&&vh.test(e.trim())}function yc(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(vh);if(!t)return;let r=Number.parseFloat(t[1]);return t[2]==="px"?r:r*_1}function vc(e){let t=O1(e),r={},o={};Object.keys(yh).forEach(a=>{let u=a,l=t[u],c=yc(l);c!==void 0&&k1(l)&&(r[u]=l.trim(),o[u]=c)});let n=Object.keys(r);if(!n.length)return{...yh};if(n.length===1)return r;let s=r.mobile,i=r.tablet;return o.mobile>=o.tablet?{mobile:s}:{mobile:s,tablet:i}}function bh(e){let t=vc(e),r={};return t.mobile&&(r["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(r["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),r}function Ai(e,t,r,{resolveRefs:o=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[r])return;let n=i=>{Object.keys(i).forEach(a=>{let u=i[a];if(typeof u=="object"&&u!==null)if(u.ref!==void 0)if(typeof u.ref!="string"||u.ref.trim()==="")delete i[a];else{let l=vt(e,u.ref);l!=null?i[a]=l:delete i[a]}else n(u),Object.keys(u).length===0&&delete i[a]})},s=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[r]));return o&&n(s),s}var xc="default";function Ch(e){let t=e?.viewport,r=e?.pseudoState;return(!t||t===xc)&&(!r||r===xc)}function F1(e){return Ch(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==xc)}function A1(e,t){let r=F1(t);return r.length?vt(e,r):e}var I1=new Set(["blocks","variations","css"]),bc=Object.freeze({value:{},sources:{}}),L1={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function mo(e){let t=L1[e];return t?{...t}:null}function ho(e,t){return!e||!t?null:{styles:e,source:t}}function N1(e){return e.join(".")}function D1(e){return{...e}}function Rh(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function wc(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function go(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let r of Object.keys(e))if(!I1.has(r)){if(r==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}Rh(e[r])||(t[r]=e[r])}return Object.keys(t).length===0?null:t}var wh=new Set(["backgroundImage"]);function Eh(e,t,r,o,n,s=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let i of Object.keys(t)){let a=t[i];if(Rh(a))continue;if(wc(a)){if(a.ref.trim()==="")continue;let l=vt(r,a.ref);if(l==null||wc(l))continue;a=l}let u=[...s,i];if(!wh.has(i)&&a!==null&&typeof a=="object"&&!Array.isArray(a)&&!wc(a)){let l=e[i]&&typeof e[i]=="object"&&!Array.isArray(e[i])?e[i]:{};e[i]=Eh({...l},a,r,o,n,u)}else e[i]=wh.has(i)&&a!==null&&typeof a=="object"&&!Array.isArray(a)?{...a}:a,o&&n&&(n[N1(u)]=D1(o))}return e}function Ii(e,t){if(!e)return null;let r=A1(e,t);return r&&typeof r=="object"&&!Array.isArray(r)?r:null}var M1=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function V1(e){return e.startsWith("elements.")?!1:M1.some(t=>e===t||e.startsWith(`${t}.`))}function Th(e,t){if(!e||typeof e!="object")return;let[r,...o]=t;if(o.length===0){delete e[r];return}let n=e[r];n&&typeof n=="object"&&(Th(n,o),Object.keys(n).length===0&&delete e[r])}function B1(e,t){for(let r of Object.keys(t))t[r].layer==="root"&&V1(r)&&(Th(e,r.split(".")),delete t[r])}function j1(e,t,r){let o=e?.background?.backgroundImage;if(!o)return;let n=Ym(o,{...t,_links:r??void 0});n!==void 0&&(e.background.backgroundImage=n)}function xh(e,{blockName:t,variationName:r=null,elements:o=null,viewport:n=null,pseudoState:s=null}={}){if(!e||!e.styles||!t)return bc;let i=e.styles,a={viewport:n,pseudoState:s},u=i,l=i.blocks?.[t]??null,c=(o??[]).map(x=>i.elements?.[x]??null).filter(x=>!!x),f=r?Ai(e,t,r)??null:null,m=[ho(go(u),mo("root")),...c.map(x=>ho(go(x),mo("element"))),l?ho(go(l),mo("block")):null,f?ho(go(f),mo("blockVariation")):null];Ch(a)||m.push(ho(go(Ii(u,a)),mo("root")),...c.map(x=>ho(go(Ii(x,a)),mo("element"))),l?ho(go(Ii(l,a)),mo("block")):null,f?ho(go(Ii(f,a)),mo("blockVariation")):null);let g=m.filter(Boolean);if(g.length===0)return bc;let d={},v=g.reduce((x,C)=>Eh(x,C.styles,e,C.source,d),{});return B1(v,d),j1(v,e,e._links??null),{value:v,sources:d}}var z1={},Sh=new WeakMap;function _h(e,t={}){let r=e?.styles;if(!r||typeof r!="object")return xh(e,t);let o=Sh.get(r);o||(o=new WeakMap,Sh.set(r,o));let n=e?._links??z1,s=o.get(n);s||(s=new Map,o.set(n,s));let i=`${t.elements?.join(",")??""}:${t.viewport??""}:${t.pseudoState??""}`,a=(t.blockName||"")+""+(t.variationName||"")+""+i;if(s.has(a))return s.get(a);let u=xh(e,t);return s.set(a,u),u}var Ph=h(as(),1),{lock:Oh,unlock:S5}=(0,Ph.__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");var En={};Oh(En,{getResponsiveMediaQueries:bh,getViewportBreakpoints:vc,getViewportBreakpointValueInPixels:yc,getDuotoneFilter:gh,getDuotoneStylesheet:hh,getDuotoneUnsetStylesheet:mh,resolveStyle:_h,getVariationStyle:Ai});var Sc=h(ke(),1);var kh=h(ke(),1),Tt=(0,kh.createContext)({user:{styles:{},settings:{}},base:{styles:{},settings:{}},merged:{styles:{},settings:{}},onChange:()=>{},fontLibraryEnabled:!1});var Fh=h(Y(),1);function ms({children:e,value:t,baseValue:r,onChange:o,fontLibraryEnabled:n}){let s=(0,Sc.useMemo)(()=>Bo(r,t),[r,t]),i=(0,Sc.useMemo)(()=>({user:t,base:r,merged:s,onChange:o,fontLibraryEnabled:n}),[t,r,s,o,n]);return(0,Fh.jsx)(Tt.Provider,{value:i,children:e})}var Jr=h(ce(),1),Zh=h(xe(),1);var tx=h(Xt(),1),rx=h(nr(),1);var Ah=h(Y(),1);function Cc({className:e,...t}){return(0,Ah.jsx)(is,{className:st(e,"global-styles-ui-icon-with-current-color"),...t})}var yo=h(ce(),1);var jo=h(Y(),1);function U1({icon:e,children:t,...r}){return(0,jo.jsxs)(yo.__experimentalItem,{...r,children:[e&&(0,jo.jsxs)(yo.__experimentalHStack,{justify:"flex-start",children:[(0,jo.jsx)(Cc,{icon:e,size:24}),(0,jo.jsx)(yo.FlexItem,{children:t})]}),!e&&t]})}function Xr(e){return(0,jo.jsx)(yo.Navigator.Button,{as:U1,...e})}var G1=h(ce(),1);var Y1=h(xe(),1),Bh=h(Dt(),1);var Rc=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Ec=function(e){return .2126*Rc(e.r)+.7152*Rc(e.g)+.0722*Rc(e.b)};function Ih(e){e.prototype.luminance=function(){return t=Ec(this.rgba),(r=2)===void 0&&(r=0),o===void 0&&(o=Math.pow(10,r)),Math.round(o*t)/o+0;var t,r,o},e.prototype.contrast=function(t){t===void 0&&(t="#FFF");var r,o,n,s,i,a,u,l=t instanceof e?t:new e(t);return s=this.rgba,i=l.toRgb(),a=Ec(s),u=Ec(i),r=a>u?(a+.05)/(u+.05):(u+.05)/(a+.05),(o=2)===void 0&&(o=0),n===void 0&&(n=Math.pow(10,o)),Math.floor(n*r)/n+0},e.prototype.isReadable=function(t,r){return t===void 0&&(t="#FFF"),r===void 0&&(r={}),this.contrast(t)>=(a=(i=(o=r).size)===void 0?"normal":i,(s=(n=o.level)===void 0?"AA":n)==="AAA"&&a==="normal"?7:s==="AA"&&a==="large"?3:4.5);var o,n,s,i,a}}var Cr=h(ke(),1),Mh=h(Xt(),1),Vh=h(nr(),1),_c=h(xe(),1);var mt=h(xe(),1);var Lh=h(as(),1),{lock:Z5,unlock:Be}=(0,Lh.__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-ui");var{getViewportBreakpoints:Q5}=Be(En),$5={link:[{value:":link",label:(0,mt.__)("Link")},{value:":any-link",label:(0,mt.__)("Any Link")},{value:":visited",label:(0,mt.__)("Visited")},{value:":hover",label:(0,mt.__)("Hover")},{value:":focus",label:(0,mt.__)("Focus")},{value:":focus-visible",label:(0,mt.__)("Focus-visible")},{value:":active",label:(0,mt.__)("Active")}],button:[{value:":link",label:(0,mt.__)("Link")},{value:":any-link",label:(0,mt.__)("Any Link")},{value:":visited",label:(0,mt.__)("Visited")},{value:":hover",label:(0,mt.__)("Hover")},{value:":focus",label:(0,mt.__)("Focus")},{value:":focus-visible",label:(0,mt.__)("Focus-visible")},{value:":active",label:(0,mt.__)("Active")}]},eI={"core/button":[{value:":hover",label:(0,mt.__)("Hover")},{value:":focus",label:(0,mt.__)("Focus")},{value:":focus-visible",label:(0,mt.__)("Focus-visible")},{value:":active",label:(0,mt.__)("Active")}]},tI=[{value:"@tablet",label:(0,mt.__)("Tablet")},{value:"@mobile",label:(0,mt.__)("Mobile")}];function Tc(e,t){if(!t?.length||typeof e!="object"||!e||!Object.keys(e).length)return e;for(let r in e)t.includes(r)?delete e[r]:typeof e[r]=="object"&&Tc(e[r],t);return e}var Li=(e,t)=>{if(!e||!t?.length)return{};let r={};return Object.keys(e).forEach(o=>{if(t.includes(o))r[o]=e[o];else if(typeof e[o]=="object"){let n=Li(e[o],t);Object.keys(n).length&&(r[o]=n)}}),r};function hs(e,t){let r=Li(structuredClone(e),t);return fs(r,e)}function Nh(e,t){if(!Array.isArray(e)||!t)return null;let o=t.replace("var(","").replace(")","")?.split("--").slice(-1)[0];return e.find(n=>n.slug===o)}function Dh(e){let t=e?.settings?.typography?.fontFamilies?.theme,r=e?.settings?.typography?.fontFamilies?.custom,o=[];t&&r?o=[...t,...r]:t?o=t:r&&(o=r);let n=e?.styles?.typography?.fontFamily,s=Nh(o,n),i=e?.styles?.elements?.heading?.typography?.fontFamily,a;return i?a=Nh(o,e?.styles?.elements?.heading?.typography?.fontFamily):a=s,[s,a]}ph([Ih]);function Xe(e,t,r="merged",o=!0,n){let{user:s,base:i,merged:a,onChange:u}=(0,Cr.useContext)(Tt),l=n?.split(".").filter(Boolean)??[],c=l.find(x=>x.startsWith(":")),f=l.filter(x=>!x.startsWith(":")).join("."),m=[e,f].filter(Boolean).join("."),g=a;r==="base"?g=i:r==="user"&&(g=s);let d=(0,Cr.useMemo)(()=>{let x=ki(g,m,t,o);return c?x?.[c]??{}:x},[g,m,t,o,c]),v=(0,Cr.useCallback)(x=>{let C=x;c&&(C={...ki(s,m,t,!1),[c]:x});let w=uc(s,m,C,t);u(w)},[s,u,m,t,c]);return[d,v]}function Je(e,t,r="merged"){let{user:o,base:n,merged:s,onChange:i}=(0,Cr.useContext)(Tt),a=s;r==="base"?a=n:r==="user"&&(a=o);let u=(0,Cr.useMemo)(()=>ac(a,e,t),[a,e,t]),l=(0,Cr.useCallback)(c=>{let f=lc(o,e,c,t);i(f)},[o,i,e,t]);return[u,l]}var H1=[];function W1({title:e,settings:t,styles:r}){return e===(0,_c.__)("Default")||Object.keys(t||{}).length>0||Object.keys(r||{}).length>0}function Ni(e=[]){let{variationsFromTheme:t}=(0,Mh.useSelect)(o=>({variationsFromTheme:o(Vh.store).__experimentalGetCurrentThemeGlobalStylesVariations?.()||H1}),[]),{user:r}=(0,Cr.useContext)(Tt);return(0,Cr.useMemo)(()=>{let o=structuredClone(r),n=Tc(o,e);n.title=(0,_c.__)("Default");let s=t.filter(a=>hs(a,e)).map(a=>Bo(n,a)),i=[n,...s];return i?.length?i.filter(W1):[]},[e,r,t])}var Pc=h(Y(),1),{useHasDimensionsPanel:dI,useHasTypographyPanel:pI,useHasColorPanel:mI,useSettingsForBlockElement:hI,useHasBackgroundPanel:gI}=Be(Bh.privateApis);var Nr=h(ce(),1);function Tn(){let[e="black"]=Xe("color.text"),[t="white"]=Xe("color.background"),[r=e]=Xe("elements.h1.color.text"),[o=r]=Xe("elements.link.color.text"),[n=o]=Xe("elements.button.color.background"),[s]=Je("color.palette.core")||[],[i]=Je("color.palette.theme")||[],[a]=Je("color.palette.custom")||[],u=(i??[]).concat(a??[]).concat(s??[]),l=u.filter(({color:m})=>m===e),c=u.filter(({color:m})=>m===n),f=l.concat(c).concat(u).filter(({color:m})=>m!==t).slice(0,2);return{paletteColors:u,highlightedColors:f}}var Uh=h(ke(),1),Hh=h(ce(),1),kc=h(xe(),1);function q1(e,t){return t.length===0?null:(t.sort((r,o)=>Math.abs(e-r)-Math.abs(e-o)),t[0])}function Z1(e){let t=[];return e.forEach(r=>{let o=String(r.fontWeight).split(" ");if(o.length===2){let n=parseInt(o[0]),s=parseInt(o[1]);for(let i=n;i<=s;i+=100)t.push(i)}else o.length===1&&t.push(parseInt(o[0]))}),t}function jh(e){let t=/^(?!generic\([ a-zA-Z\-]+\)$)(?!^[a-zA-Z\-]+$).+/,r=e.trim(),o=n=>(n=n.trim(),n.match(t)?(n=n.replace(/^["']|["']$/g,""),`"${n}"`):n);return r.includes(",")?r.split(",").map(o).filter(n=>n!=="").join(", "):o(r)}function Oc(e){if(!e)return"";let t=e.trim();return t.includes(",")&&(t=(t.split(",").find(r=>r.trim()!=="")??"").trim()),t=t.replace(/^["']|["']$/g,""),window.navigator.userAgent.toLowerCase().includes("firefox")&&(t=`"${t}"`),t}function _n(e){let t={fontFamily:jh(e.fontFamily)};if(!("fontFace"in e)||!Array.isArray(e.fontFace))return t.fontWeight="400",t.fontStyle="normal",t;if(e.fontFace){let r=e.fontFace.filter(o=>o?.fontStyle&&o.fontStyle.toLowerCase()==="normal");if(r.length>0){t.fontStyle="normal";let o=Z1(r),n=q1(400,o);t.fontWeight=String(n)||"400"}else t.fontStyle=e.fontFace.length&&e.fontFace[0].fontStyle||"normal",t.fontWeight=e.fontFace.length&&String(e.fontFace[0].fontWeight)||"400"}return t}function zh(e){return{fontFamily:jh(e.fontFamily),fontStyle:e.fontStyle||"normal",fontWeight:e.fontWeight||"400"}}var gs=h(Y(),1);function Di({fontSize:e,variation:t}){let{base:r}=(0,Uh.useContext)(Tt),o=r;t&&(o={...r,...t});let[n]=Xe("color.text"),[s,i]=Dh(o),a=s?_n(s):{},u=i?_n(i):{};return n&&(a.color=n,u.color=n),e&&(a.fontSize=e,u.fontSize=e),(0,gs.jsxs)(Hh.__unstableMotion.div,{animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"},style:{textAlign:"center",lineHeight:1},children:[(0,gs.jsx)("span",{style:u,children:(0,kc._x)("A","Uppercase letter A")}),(0,gs.jsx)("span",{style:a,children:(0,kc._x)("a","Lowercase letter A")})]})}var Wh=h(ce(),1);var Gh=h(Y(),1);function Yh({normalizedColorSwatchSize:e,ratio:t}){let{highlightedColors:r}=Tn(),o=e*t;return r.map(({slug:n,color:s},i)=>(0,Gh.jsx)(Wh.__unstableMotion.div,{style:{height:o,width:o,background:s,borderRadius:o/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:i===1?.2:.1}},`${n}-${i}`))}var qh=h(ce(),1),Pn=h(No(),1),zo=h(ke(),1);var Kr=h(Y(),1),Fc=248,Ac=152,X1={leading:!0,trailing:!0};function K1({children:e,label:t,isFocused:r,withHoverView:o}){let[n="white"]=Xe("color.background"),[s]=Xe("color.gradient"),i=(0,Pn.useReducedMotion)(),[a,u]=(0,zo.useState)(!1),[l,{width:c}]=(0,Pn.useResizeObserver)(),[f,m]=(0,zo.useState)(c),[g,d]=(0,zo.useState)(),v=(0,Pn.useThrottle)(m,250,X1);(0,zo.useLayoutEffect)(()=>{c&&v(c)},[c,v]),(0,zo.useLayoutEffect)(()=>{let b=f?f/Fc:1,R=b-(g||0);(Math.abs(R)>.1||!g)&&d(b)},[f,g]);let x=c?c/Fc:1,C=g||x,w=!!c;return(0,Kr.jsxs)(Kr.Fragment,{children:[(0,Kr.jsx)("div",{style:{position:"relative"},children:l}),!w&&(0,Kr.jsx)(ec,{className:"global-styles-ui-preview__wrapper",style:{aspectRatio:Fc/Ac}}),w&&(0,Kr.jsx)("div",{className:st("global-styles-ui-preview__wrapper",{"is-hoverable":o}),style:{height:Ac*C},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),tabIndex:-1,children:(0,Kr.jsx)(qh.__unstableMotion.div,{style:{height:Ac*C,width:"100%",background:s??n},initial:"start",animate:(a||r)&&!i&&t?"hover":"start",children:[].concat(e).map((b,R)=>b({ratio:C,key:R}))})})]})}var On=K1;var Kt=h(Y(),1),J1={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},Q1={hover:{opacity:1},start:{opacity:.5}},$1={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};function ex({label:e,isFocused:t,withHoverView:r,variation:o}){let[n]=Xe("typography.fontWeight"),[s="serif"]=Xe("typography.fontFamily"),[i=s]=Xe("elements.h1.typography.fontFamily"),[a=n]=Xe("elements.h1.typography.fontWeight"),[u="black"]=Xe("color.text"),[l=u]=Xe("elements.h1.color.text"),{paletteColors:c}=Tn();return(0,Kt.jsxs)(On,{label:e,isFocused:t,withHoverView:r,children:[({ratio:f,key:m})=>(0,Kt.jsx)(Nr.__unstableMotion.div,{variants:J1,style:{height:"100%",overflow:"hidden"},children:(0,Kt.jsxs)(Nr.__experimentalHStack,{spacing:10*f,justify:"center",style:{height:"100%",overflow:"hidden"},children:[(0,Kt.jsx)(Di,{fontSize:65*f,variation:o}),(0,Kt.jsx)(Nr.__experimentalVStack,{spacing:4*f,children:(0,Kt.jsx)(Yh,{normalizedColorSwatchSize:32,ratio:f})})]})},m),({key:f})=>(0,Kt.jsx)(Nr.__unstableMotion.div,{variants:r?Q1:void 0,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1},children:(0,Kt.jsx)(Nr.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"},children:c.slice(0,4).map(({color:m},g)=>(0,Kt.jsx)("div",{style:{height:"100%",background:m,flexGrow:1}},g))})},f),({ratio:f,key:m})=>(0,Kt.jsx)(Nr.__unstableMotion.div,{variants:$1,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0},children:(0,Kt.jsx)(Nr.__experimentalVStack,{spacing:3*f,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*f,boxSizing:"border-box"},children:e&&(0,Kt.jsx)("div",{style:{fontSize:40*f,fontFamily:i,color:l,fontWeight:a,lineHeight:"1em",textAlign:"center"},children:e})})},m)]})}var Ic=ex;var Xh=h(Y(),1);var Nc=h(Sn(),1),kn=h(xe(),1),Ho=h(ce(),1),Dc=h(Xt(),1),vo=h(ke(),1),Mi=h(Dt(),1),tg=h(No(),1);import{speak as ix}from"@wordpress/a11y";var Kh=h(Sn(),1),Jh=h(Xt(),1),ox=h(ce(),1);var nx=h(Y(),1);function sx(e,t){return e?.filter(r=>r.source==="block"||t.includes(r.name))||[]}function Lc(e){let t=(0,Jh.useSelect)(n=>{let{getBlockStyles:s}=n(Kh.store);return s(e)},[e]),[r]=Xe("variations",e),o=Object.keys(r??{});return sx(t,o)}var Uo=h(ce(),1),Qh=h(xe(),1);var $h=h(Dt(),1);var eg=h(Y(),1),{StateControl:ZI,StateControlBadges:XI}=Be($h.privateApis);var Dr=h(Y(),1),{useHasDimensionsPanel:ax,useHasTypographyPanel:lx,useHasBorderPanel:cx,useSettingsForBlockElement:ux,useHasColorPanel:fx,useHasBackgroundPanel:dx}=Be(Mi.privateApis);function px(){let e=(0,Dc.useSelect)(n=>n(Nc.store).getBlockTypes(),[]),t=(n,s)=>{let{core:i,noncore:a}=n;return(s.name.startsWith("core/")?i:a).push(s),n},{core:r,noncore:o}=e.reduce(t,{core:[],noncore:[]});return[...r,...o]}function mx(e){let[t]=Je("",e),r=ux(t,e),o=lx(r),n=fx(r),s=dx(r),i=cx(r),a=ax(r),u=i||a,l=!!Lc(e)?.length;return o||n||s||u||l}function hx({block:e}){return mx(e.name)?(0,Dr.jsx)(Xr,{path:"/blocks/"+encodeURIComponent(e.name),children:(0,Dr.jsxs)(Ho.__experimentalHStack,{justify:"flex-start",children:[(0,Dr.jsx)(Mi.BlockIcon,{icon:e.icon}),(0,Dr.jsx)(Ho.FlexItem,{children:e.title})]})}):null}function gx({filterValue:e}){let t=px(),r=(0,tg.useDebounce)(ix,500),{isMatchingSearchTerm:o}=(0,Dc.useSelect)(Nc.store),n=e?t.filter(i=>o(i,e)):t,s=(0,vo.useRef)(null);return(0,vo.useEffect)(()=>{if(!e)return;let i=s.current?.childElementCount||0,a=(0,kn.sprintf)((0,kn._n)("%d result found.","%d results found.",i),i);r(a,"polite")},[e,r]),(0,Dr.jsx)("div",{ref:s,className:"global-styles-ui-block-types-item-list",role:"list",children:n.length===0?(0,Dr.jsx)(Ho.__experimentalText,{align:"center",as:"p",children:(0,kn.__)("No blocks found.")}):n.map(i=>(0,Dr.jsx)(hx,{block:i},"menu-itemblock-"+i.name))})}var oL=(0,vo.memo)(gx);var xx=h(Sn(),1),sg=h(Dt(),1),Mc=h(ke(),1),Sx=h(Xt(),1),Cx=h(nr(),1),Vc=h(ce(),1),ig=h(xe(),1);var yx=h(Dt(),1),rg=h(Sn(),1),vx=h(ce(),1),bx=h(ke(),1);var wx=h(Y(),1),{getViewportBreakpoints:uL,getViewportBreakpointValueInPixels:fL}=Be(En);var og=h(ce(),1),ng=h(Y(),1);function ur({children:e,level:t=2}){return(0,ng.jsx)(og.__experimentalHeading,{className:"global-styles-ui-subtitle",level:t,children:e})}var Bc=h(Y(),1);var{useHasDimensionsPanel:TL,useHasTypographyPanel:_L,useHasBorderPanel:PL,useSettingsForBlockElement:OL,useHasColorPanel:kL,useHasFiltersPanel:FL,useHasImageSettingsPanel:AL,useHasBackgroundPanel:IL,BackgroundPanel:LL,BorderPanel:NL,ColorPanel:DL,TypographyPanel:ML,DimensionsPanel:VL,FiltersPanel:BL,ImageSettingsPanel:jL,AdvancedPanel:zL}=Be(sg.privateApis);var DE=h(xe(),1),ME=h(ce(),1),VE=h(ke(),1);var Rx=h(ce(),1);var Ex=h(Y(),1);var Tx=h(xe(),1),Vi=h(ce(),1);var ag=h(Y(),1);var zi=h(ce(),1);var lg=h(ce(),1);var Bi=h(Y(),1),_x=({variation:e,isFocused:t,withHoverView:r})=>(0,Bi.jsx)(On,{label:e.title,isFocused:t,withHoverView:r,children:({ratio:o,key:n})=>(0,Bi.jsx)(lg.__experimentalHStack,{spacing:10*o,justify:"center",style:{height:"100%",overflow:"hidden"},children:(0,Bi.jsx)(Di,{variation:e,fontSize:85*o})},n)}),cg=_x;var Wo=h(ke(),1),fg=h(jc(),1),ji=h(xe(),1);var bo=h(Y(),1);function Fn({variation:e,children:t,isPill:r=!1,properties:o,showTooltip:n=!1}){let[s,i]=(0,Wo.useState)(!1),{base:a,user:u,onChange:l}=(0,Wo.useContext)(Tt),c=(0,Wo.useMemo)(()=>{let x=Bo(a,e);return o&&(x=Li(x,o)),{user:e,base:a,merged:x,onChange:()=>{}}},[e,a,o]),f=()=>l(e),m=x=>{x.keyCode===fg.ENTER&&(x.preventDefault(),f())},g=(0,Wo.useMemo)(()=>fs(u,e),[u,e]),d=e?.title;e?.description&&(d=(0,ji.sprintf)((0,ji._x)("%1$s (%2$s)","variation label"),e?.title,e?.description));let v=(0,bo.jsx)("div",{className:st("global-styles-ui-variations_item",{"is-active":g}),role:"button",onClick:f,onKeyDown:m,tabIndex:0,"aria-label":d,"aria-current":g,onFocus:()=>i(!0),onBlur:()=>i(!1),children:(0,bo.jsx)("div",{className:st("global-styles-ui-variations_item-preview",{"is-pill":r}),children:t(s)})});return(0,bo.jsx)(Tt.Provider,{value:c,children:n?(0,bo.jsxs)(xn.Root,{children:[(0,bo.jsx)(xn.Trigger,{render:v}),(0,bo.jsx)(xn.Popup,{children:e?.title})]}):v})}var Go=h(Y(),1),dg=["typography"];function Ui({title:e,gap:t=2}){let r=Ni(dg);return r?.length<=1?null:(0,Go.jsxs)(zi.__experimentalVStack,{spacing:3,children:[e&&(0,Go.jsx)(ur,{level:3,children:e}),(0,Go.jsx)(zi.__experimentalGrid,{columns:3,gap:t,className:"global-styles-ui-style-variations-container",children:r.map((o,n)=>(0,Go.jsx)(Fn,{variation:o,properties:dg,showTooltip:!0,children:()=>(0,Go.jsx)(cg,{variation:o})},n))})]})}var LE=h(xe(),1),Cs=h(ce(),1);var NE=h(ke(),1);var Qr=h(ke(),1),Co=h(Xt(),1),So=h(nr(),1),Wc=h(xe(),1);var zc=h(mg(),1),hg=h(nr(),1),gg="/wp/v2/font-families";function yg(e){let{receiveEntityRecords:t}=e.dispatch(hg.store);t("postType","wp_font_family",[],void 0,!0)}async function vg(e,t){let o=await(0,zc.default)({path:gg,method:"POST",body:e});return yg(t),{id:o.id,...o.font_family_settings,fontFace:[]}}async function bg(e,t,r){let o={path:`${gg}/${e}/font-faces`,method:"POST",body:t},n=await(0,zc.default)(o);return yg(r),{id:n.id,...n.font_face_settings}}var An=function(){return An=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},An.apply(this,arguments)};function wg(e){return e.toLowerCase()}var Px=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Ox=/[^A-Z0-9]+/gi;function Sg(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,o=r===void 0?Px:r,n=t.stripRegexp,s=n===void 0?Ox:n,i=t.transform,a=i===void 0?wg:i,u=t.delimiter,l=u===void 0?" ":u,c=xg(xg(e,o,"$1\0$2"),s,"\0"),f=0,m=c.length;c.charAt(f)==="\0";)f++;for(;c.charAt(m-1)==="\0";)m--;return c.slice(f,m).split("\0").map(a).join(l)}function xg(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(o,n){return o.replace(n,r)},e)}function Cg(e,t){return t===void 0&&(t={}),Sg(e,An({delimiter:"."},t))}function Rg(e,t){return t===void 0&&(t={}),Cg(e,An({delimiter:"-"},t))}function Hi(e){let t=e?.toString?.()??"";return t=t.replace(/['\u2019]/,""),Rg(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}var fr=h(xe(),1),Uc=["otf","ttf","woff","woff2"],Eg={100:(0,fr._x)("Thin","font weight"),200:(0,fr._x)("Extra-light","font weight"),300:(0,fr._x)("Light","font weight"),400:(0,fr._x)("Normal","font weight"),500:(0,fr._x)("Medium","font weight"),600:(0,fr._x)("Semi-bold","font weight"),700:(0,fr._x)("Bold","font weight"),800:(0,fr._x)("Extra-bold","font weight"),900:(0,fr._x)("Black","font weight")},Tg={normal:(0,fr._x)("Normal","font style"),italic:(0,fr._x)("Italic","font style")};var{File:_g}=window;function wo(e,t={}){return!e.name&&(e.fontFamily||e.slug)&&(e.name=e.fontFamily||e.slug),{...e,...t}}function kx(e){return typeof e!="string"?!1:e!==decodeURIComponent(e)}function Wi(e){let t=Eg[e.fontWeight??""]||e.fontWeight,r=e.fontStyle==="normal"?"":Tg[e.fontStyle??""]||e.fontStyle;return`${t} ${r}`}function Fx(e=[],t=[]){let r=new Map;for(let o of e)r.set(`${o.fontWeight}${o.fontStyle}`,o);for(let o of t)r.set(`${o.fontWeight}${o.fontStyle}`,o);return Array.from(r.values())}function Pg(e=[],t=[]){let r=new Map;for(let o of e)r.set(o.slug,{...o});for(let o of t)if(r.has(o.slug)){let{fontFace:n,...s}=o,i=r.get(o.slug),a=Fx(i.fontFace,n);r.set(o.slug,{...s,fontFace:a})}else r.set(o.slug,{...o});return Array.from(r.values())}async function xo(e,t,r="all"){let o;if(typeof t=="string")o=`url(${t})`;else if(t instanceof _g)o=await t.arrayBuffer();else return;let s=await new window.FontFace(Oc(e.fontFamily),o,{style:e.fontStyle,weight:String(e.fontWeight)}).load();if((r==="document"||r==="all")&&document.fonts.add(s),r==="iframe"||r==="all"){let i=document.querySelector('iframe[name="editor-canvas"]');i?.contentDocument&&i.contentDocument.fonts.add(s)}}function ys(e,t="all"){let r=o=>{o.forEach(n=>{n.family===Oc(e?.fontFamily)&&n.weight===e?.fontWeight&&n.style===e?.fontStyle&&o.delete(n)})};if((t==="document"||t==="all")&&r(document.fonts),t==="iframe"||t==="all"){let o=document.querySelector('iframe[name="editor-canvas"]');o?.contentDocument&&r(o.contentDocument.fonts)}}function In(e){if(!e)return;let t;if(Array.isArray(e)?t=e[0]:t=e,!t.startsWith("file:."))return kx(t)||(t=encodeURI(t)),t}function Og(e){let t=new FormData,{fontFace:r,category:o,...n}=e,s={...n,slug:Hi(e.slug)};return t.append("font_family_settings",JSON.stringify(s)),t}function kg(e){return(e?.fontFace??[]).map((r,o)=>{let n={...r},s=new FormData;if(n.file){let i=Array.isArray(n.file)?n.file:[n.file],a=[];i.forEach((u,l)=>{let c=`file-${o}-${l}`;s.append(c,u,u.name),a.push(c)}),n.src=a.length===1?a[0]:a,delete n.file,s.append("font_face_settings",JSON.stringify(n))}else s.append("font_face_settings",JSON.stringify(n));return s})}async function Fg(e,t,r){let o=[];for(let s of t)try{let i=await bg(e,s,r);o.push({status:"fulfilled",value:i})}catch(i){o.push({status:"rejected",reason:i})}let n={errors:[],successes:[]};return o.forEach((s,i)=>{if(s.status==="fulfilled"&&s.value){let a=s.value;n.successes.push(a)}else s.reason&&n.errors.push({data:t[i],message:s.reason.message})}),n}async function Ag(e){e=Array.isArray(e)?e:[e];let t=await Promise.all(e.map(async r=>fetch(new Request(r)).then(o=>{if(!o.ok)throw new Error(`Error downloading font face asset from ${r}. Server responded with status: ${o.status}`);return o.blob()}).then(o=>{let n=r.split("/").pop();return new _g([o],n,{type:o.type})})));return t.length===1?t[0]:t}function Hc(e,t){return t.findIndex(r=>r.fontWeight===e.fontWeight&&r.fontStyle===e.fontStyle)!==-1}function Ig(e,t,r){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};let o=t.pop(),n=e;for(let s of t){let i=n[s];n=n[s]=Array.isArray(i)?[...i]:{...i}}return n[o]=r,e}function Gi(e,t,r=[]){let o=u=>u.slug===e.slug,n=u=>u.find(o),s=u=>u?r.filter(l=>!o(l)):[...r,e],i=u=>{let l=f=>f.fontWeight===t.fontWeight&&f.fontStyle===t.fontStyle;if(!u)return[...r,{...e,fontFace:[t]}];let c=u.fontFace||[];return c.find(l)?c=c.filter(f=>!l(f)):c=[...c,t],c.length===0?r.filter(f=>!o(f)):r.map(f=>o(f)?{...f,fontFace:c}:f)},a=n(r);return t?i(a):s(a)}var Lg=h(Y(),1),Mt=(0,Qr.createContext)({});Mt.displayName="FontLibraryContext";function Ax({children:e}){let t=(0,Co.useRegistry)(),{saveEntityRecord:r,deleteEntityRecord:o}=(0,Co.useDispatch)(So.store),{globalStylesId:n}=(0,Co.useSelect)(E=>{let{__experimentalGetCurrentGlobalStylesId:L}=E(So.store);return{globalStylesId:L()}},[]),s=(0,So.useEntityRecord)("root","globalStyles",n),[i,a]=(0,Qr.useState)(!1),{records:u=[],isResolving:l}=(0,So.useEntityRecords)("postType","wp_font_family",{_embed:!0}),c=(u||[]).map(E=>({id:E.id,...E.font_family_settings||{},fontFace:E?._embedded?.font_faces?.map(L=>L.font_face_settings)||[]}))||[],[f,m]=Je("typography.fontFamilies"),g=async E=>{if(!s.record)return;let L=s.record,$=Ig(L??{},["settings","typography","fontFamilies"],E);await r("root","globalStyles",$)},[d,v]=(0,Qr.useState)(""),[x,C]=(0,Qr.useState)(void 0),w=f?.theme?f.theme.map(E=>wo(E,{source:"theme"})).sort((E,L)=>E.name.localeCompare(L.name)):[],b=f?.custom?f.custom.map(E=>wo(E,{source:"custom"})).sort((E,L)=>E.name.localeCompare(L.name)):[],R=c?c.map(E=>wo(E,{source:"custom"})).sort((E,L)=>E.name.localeCompare(L.name)):[];(0,Qr.useEffect)(()=>{d||C(void 0)},[d]);let A=E=>{if(!E){C(void 0);return}let $=(E.source==="theme"?w:R).find(F=>F.slug===E.slug);C({...$||E,source:E.source})},[T]=(0,Qr.useState)(new Set),_=E=>E.reduce(($,F)=>{let Z=F?.fontFace&&F.fontFace?.length>0?F?.fontFace.map(se=>`${se.fontStyle??""}${se.fontWeight??""}`):["normal400"];return $[F.slug]=Z,$},{}),P=E=>_(E==="theme"?w:b),N=(E,L,$,F)=>!L&&!$?!!P(F)[E]:!!P(F)[E]?.includes((L??"")+($??"")),q=(E,L)=>P(L)[E]||[];async function H(E){a(!0);try{let L=[],$=[];for(let Z of E){let se=!1,we=await(0,Co.resolveSelect)(So.store).getEntityRecords("postType","wp_font_family",{slug:Z.slug,per_page:1,_embed:!0}),ie=we&&we.length>0?we[0]:null,ve=ie?{id:ie.id,...ie.font_family_settings,fontFace:(ie?._embedded?.font_faces??[]).map(Ae=>Ae.font_face_settings)||[]}:null;ve||(se=!0,ve=await vg(Og(Z),t));let Ee=ve.fontFace&&Z.fontFace?ve.fontFace.filter(Ae=>Ae&&Z.fontFace&&Hc(Ae,Z.fontFace)):[];ve.fontFace&&Z.fontFace&&(Z.fontFace=Z.fontFace.filter(Ae=>!Hc(Ae,ve.fontFace)));let ee=[],Fe=[];if(Z?.fontFace?.length??!1){let Ae=await Fg(ve.id,kg(Z),t);ee=Ae?.successes,Fe=Ae?.errors}(ee?.length>0||Ee?.length>0)&&(ve.fontFace=[...ee],L.push(ve)),ve&&!Z?.fontFace?.length&&L.push(ve),se&&(Z?.fontFace?.length??0)>0&&ee?.length===0&&await o("postType","wp_font_family",ve.id,{force:!0}),$=$.concat(Fe)}let F=$.reduce((Z,se)=>Z.includes(se.message)?Z:[...Z,se.message],[]);if(L.length>0){let Z=W(L);await g(Z)}if(F.length>0){let Z=new Error((0,Wc.__)("There was an error installing fonts."));throw Z.installationErrors=F,Z}}finally{a(!1)}}async function S(E){if(!E?.id)throw new Error((0,Wc.__)("Font family to uninstall is not defined."));try{await o("postType","wp_font_family",E.id,{force:!0});let L=I(E);return await g(L),{deleted:!0}}catch(L){throw console.error("There was an error uninstalling the font family:",L),L}}let I=E=>{let $=(f?.[E.source??""]??[]).filter(Z=>Z.slug!==E.slug),F={...f,[E.source??""]:$};return m(F),E.fontFace&&E.fontFace.forEach(Z=>{ys(Z,"all")}),F},W=E=>{let L=O(E),$={...f,custom:Pg(f?.custom,L)};return m($),D(L),$},O=E=>E.map(({id:L,fontFace:$,...F})=>({...F,...$&&$.length>0?{fontFace:$.map(({id:Z,...se})=>se)}:{}})),D=E=>{E.forEach(L=>{L.fontFace&&L.fontFace.forEach($=>{let F=In($?.src??"");F&&xo($,F,"all")})})},J=(E,L)=>{let $=f?.[E.source??""]??[],F=Gi(E,L,$);m({...f,[E.source??""]:F});let Z=N(E.slug,L?.fontStyle??"",L?.fontWeight??"",E.source??"custom");if(L&&Z)ys(L,"all");else{let se=In(L?.src??"");L&&se&&xo(L,se,"all")}},M=async E=>{if(!E.src)return;let L=In(E.src);!L||T.has(L)||(xo(E,L,"document"),T.add(L))};return(0,Lg.jsx)(Mt.Provider,{value:{libraryFontSelected:x,handleSetLibraryFontSelected:A,fontFamilies:f??{},baseCustomFonts:R,isFontActivated:N,getFontFacesActivated:q,loadFontFaceAsset:M,installFonts:H,uninstallFontFamily:S,toggleActivateFont:J,getAvailableFontsOutline:_,modalTabOpen:d,setModalTabOpen:v,saveFontFamilies:g,isResolvingLibrary:l,isInstalling:i},children:e})}var Yi=Ax;var la=h(xe(),1),Xc=h(ce(),1),gy=h(nr(),1),AE=h(Xt(),1);var Ie=h(ce(),1),bs=h(nr(),1),Gc=h(Xt(),1),Br=h(ke(),1),at=h(xe(),1);var Nn=h(xe(),1),Zi=h(ke(),1),dr=h(ce(),1);var Ng=h(ce(),1),Mr=h(ke(),1);var qi=h(Y(),1);function Ix(e){if(e.preview)return e.preview;if(e.src)return Array.isArray(e.src)?e.src[0]:e.src}function Lx(e){return"fontStyle"in e&&e.fontStyle||"fontWeight"in e&&e.fontWeight?e:"fontFace"in e&&e.fontFace&&e.fontFace.length?e.fontFace.find(t=>t.fontStyle==="normal"&&t.fontWeight==="400")||e.fontFace[0]:{fontStyle:"normal",fontWeight:"400",fontFamily:e.fontFamily}}function Nx({font:e,text:t}){let r=(0,Mr.useRef)(null),o=Lx(e),n=_n(e);t=t||("name"in e?e.name:"");let s=e.preview,[i,a]=(0,Mr.useState)(!1),[u,l]=(0,Mr.useState)(!1),{loadFontFaceAsset:c}=(0,Mr.useContext)(Mt),f=s??Ix(o),m=f&&f.match(/\.(png|jpg|jpeg|gif|svg)$/i),g=zh(o),d={fontSize:"18px",lineHeight:1,opacity:u?"1":"0",...n,...g};return(0,Mr.useEffect)(()=>{let v=new window.IntersectionObserver(([x])=>{a(x.isIntersecting)},{});return r.current&&v.observe(r.current),()=>v.disconnect()},[r]),(0,Mr.useEffect)(()=>{(async()=>i&&(!m&&o.src&&await c(o),l(!0)))()},[o,i,c,m]),(0,qi.jsx)("div",{ref:r,children:m?(0,qi.jsx)("img",{src:f,loading:"lazy",alt:t,className:"font-library__font-variant_demo-image"}):(0,qi.jsx)(Ng.__experimentalText,{style:d,className:"font-library__font-variant_demo-text",children:t})})}var Ln=Nx;var Vr=h(Y(),1);function Dx({font:e,onClick:t,variantsText:r,navigatorPath:o,shouldFocus:n}){let s=e.fontFace?.length||1,i={cursor:t?"pointer":"default"},a=(0,dr.useNavigator)(),u=(0,Zi.useRef)(null);return(0,Zi.useEffect)(()=>{n&&u.current?.focus()},[n]),(0,Vr.jsx)(dr.Button,{ref:u,__next40pxDefaultSize:!0,onClick:()=>{t(),o&&a.goTo(o)},style:i,className:"font-library__font-card",children:(0,Vr.jsxs)(dr.Flex,{justify:"space-between",wrap:!1,children:[(0,Vr.jsx)(Ln,{font:e}),(0,Vr.jsxs)(dr.Flex,{justify:"flex-end",children:[(0,Vr.jsx)(dr.FlexItem,{children:(0,Vr.jsx)(dr.__experimentalText,{className:"font-library__font-card__count",children:r||(0,Nn.sprintf)((0,Nn._n)("%d variant","%d variants",s),s)})}),(0,Vr.jsx)(dr.FlexItem,{children:(0,Vr.jsx)(is,{icon:(0,Nn.isRTL)()?Do:Mo})})]})]})})}var vs=Dx;var Xi=h(ke(),1),Ki=h(ce(),1);var Yo=h(Y(),1);function Mx({face:e,font:t}){let{isFontActivated:r,toggleActivateFont:o}=(0,Xi.useContext)(Mt),n=(t?.fontFace?.length??0)>0?r(t.slug,e.fontStyle,e.fontWeight,t.source):r(t.slug,void 0,void 0,t.source),s=()=>{if((t?.fontFace?.length??0)>0){o(t,e);return}o(t)},i=t.name+" "+Wi(e),a=(0,Xi.useId)();return(0,Yo.jsx)("div",{className:"font-library__font-card",children:(0,Yo.jsxs)(Ki.Flex,{justify:"flex-start",align:"center",gap:"1rem",children:[(0,Yo.jsx)(Ki.CheckboxControl,{checked:n,onChange:s,id:a}),(0,Yo.jsx)("label",{htmlFor:a,children:(0,Yo.jsx)(Ln,{font:e,text:i,onClick:s})})]})})}var Dg=Mx;function Mg(e){switch(e){case"normal":return 400;case"bold":return 700;case"bolder":return 500;case"lighter":return 300;default:return parseInt(e,10)}}function Ji(e){return e.sort((t,r)=>t.fontStyle==="normal"&&r.fontStyle!=="normal"?-1:r.fontStyle==="normal"&&t.fontStyle!=="normal"?1:t.fontStyle===r.fontStyle?Mg(t.fontWeight?.toString()??"normal")-Mg(r.fontWeight?.toString()??"normal"):!t.fontStyle||!r.fontStyle?t.fontStyle?-1:1:t.fontStyle.localeCompare(r.fontStyle))}var Re=h(Y(),1);function Vg(e){if(!e)return"";let t={};for(let r of Object.keys(e).sort())t[r]=(e[r]??[]).map(o=>({slug:o.slug,fontFace:(o.fontFace??[]).map(n=>`${n.fontStyle}-${n.fontWeight}`).sort()})).sort((o,n)=>o.slug.localeCompare(n.slug));return JSON.stringify(t)}function Vx(){let{baseCustomFonts:e,libraryFontSelected:t,handleSetLibraryFontSelected:r,uninstallFontFamily:o,isResolvingLibrary:n,isInstalling:s,saveFontFamilies:i,getFontFacesActivated:a}=(0,Br.useContext)(Mt),[u,l]=Je("typography.fontFamilies"),[c,f]=(0,Br.useState)(void 0),[m,g]=(0,Br.useState)(!1),[d,v]=(0,Br.useState)(null),[x]=Je("typography.fontFamilies",void 0,"base"),C=(0,Gc.useSelect)(F=>{let{__experimentalGetCurrentGlobalStylesId:Z}=F(bs.store);return Z()},[]),w=(0,bs.useEntityRecord)("root","globalStyles",C),b=w?.edits?.settings?.typography?.fontFamilies,R=w?.record?.settings?.typography?.fontFamilies,A=(0,Br.useMemo)(()=>b===void 0?!1:Vg(b)!==Vg(R),[b,R]),T=u?.theme?u.theme.map(F=>wo(F,{source:"theme"})).sort((F,Z)=>F.name.localeCompare(Z.name)):[],_=new Set(T.map(F=>F.slug)),P=x?.theme?T.concat(x.theme.filter(F=>!_.has(F.slug)).map(F=>wo(F,{source:"theme"})).sort((F,Z)=>F.name.localeCompare(Z.name))):[],N=t?.source==="custom"&&t?.id,q=(0,Gc.useSelect)(F=>{let{canUser:Z}=F(bs.store);return N&&Z("delete",{kind:"postType",name:"wp_font_family",id:N})},[N]),H=!!t&&t?.source!=="theme"&&q,S=()=>{g(!0)},I=async()=>{v(null);try{await i(u),v({type:"success",message:(0,at.__)("Font family updated successfully.")})}catch(F){v({type:"error",message:(0,at.sprintf)((0,at.__)("There was an error updating the font family. %s"),F.message)})}},W=F=>F?!F.fontFace||!F.fontFace.length?[{fontFamily:F.fontFamily,fontStyle:"normal",fontWeight:"400"}]:Ji(F.fontFace):[],O=F=>{let Z=F?.fontFace&&(F?.fontFace?.length??0)>0?F.fontFace.length:1,se=a(F.slug,F.source).length;return(0,at.sprintf)((0,at.__)("%1$d of %2$d active"),se,Z)};(0,Br.useEffect)(()=>{r(t)},[]);let D=t?a(t.slug,t.source).length:0,J=t?.fontFace?.length??(t?.fontFamily?1:0),M=D>0&&D!==J,E=D===J,L=()=>{if(!t||!t?.source)return;let F=u?.[t.source]?.filter(se=>se.slug!==t.slug)??[],Z=E?F:[...F,t];l({...u,[t.source]:Z}),t.fontFace&&t.fontFace.forEach(se=>{if(E)ys(se,"all");else{let we=In(se?.src??"");we&&xo(se,we,"all")}})},$=P.length>0||e.length>0;return(0,Re.jsxs)("div",{className:"font-library__tabpanel-layout",children:[n&&(0,Re.jsx)("div",{className:"font-library__loading",children:(0,Re.jsx)(Ie.ProgressBar,{})}),!n&&(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsxs)(Ie.Navigator,{initialPath:t?"/fontFamily":"/",children:[(0,Re.jsx)(Ie.Navigator.Screen,{path:"/",children:(0,Re.jsxs)(Ie.__experimentalVStack,{spacing:"8",children:[d&&(0,Re.jsx)(Ie.Notice,{status:d.type,onRemove:()=>v(null),children:d.message}),!$&&(0,Re.jsx)(Ie.__experimentalText,{as:"p",children:(0,at.__)("No fonts installed.")}),P.length>0&&(0,Re.jsxs)(Ie.__experimentalVStack,{children:[(0,Re.jsx)("h2",{className:"font-library__fonts-title",children:(0,at._x)("Theme","font source")}),(0,Re.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:P.map(F=>(0,Re.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Re.jsx)(vs,{font:F,navigatorPath:"/fontFamily",variantsText:O(F),shouldFocus:F.slug===c,onClick:()=>{v(null),r(F)}})},F.slug))})]}),e.length>0&&(0,Re.jsxs)(Ie.__experimentalVStack,{children:[(0,Re.jsx)("h2",{className:"font-library__fonts-title",children:(0,at._x)("Custom","font source")}),(0,Re.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:e.map(F=>(0,Re.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Re.jsx)(vs,{font:F,navigatorPath:"/fontFamily",variantsText:O(F),shouldFocus:F.slug===c,onClick:()=>{v(null),r(F)}})},F.slug))})]})]})}),(0,Re.jsxs)(Ie.Navigator.Screen,{path:"/fontFamily",children:[t&&(0,Re.jsx)(Bx,{font:t,isOpen:m,setIsOpen:g,setNotice:v,uninstallFontFamily:o,handleSetLibraryFontSelected:r}),(0,Re.jsxs)(Ie.Flex,{justify:"flex-start",children:[(0,Re.jsx)(Ie.Navigator.BackButton,{icon:(0,at.isRTL)()?Mo:Do,size:"small",onClick:()=>{f(t?.slug),r(void 0),v(null)},label:(0,at.__)("Back")}),(0,Re.jsx)(Ie.__experimentalHeading,{level:2,size:13,className:"global-styles-ui-header",children:t?.name})]}),d&&(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)(Ie.__experimentalSpacer,{margin:1}),(0,Re.jsx)(Ie.Notice,{status:d.type,onRemove:()=>v(null),children:d.message}),(0,Re.jsx)(Ie.__experimentalSpacer,{margin:1})]}),(0,Re.jsx)(Ie.__experimentalSpacer,{margin:4}),(0,Re.jsx)(Ie.__experimentalText,{children:(0,at.__)("Choose font variants. Keep in mind that too many variants could make your site slower.")}),(0,Re.jsx)(Ie.__experimentalSpacer,{margin:4}),(0,Re.jsxs)(Ie.__experimentalVStack,{spacing:0,children:[(0,Re.jsx)(Ie.CheckboxControl,{className:"font-library__select-all",label:(0,at.__)("Select all"),checked:E,onChange:L,indeterminate:M}),(0,Re.jsx)(Ie.__experimentalSpacer,{margin:8}),(0,Re.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:t&&W(t).map((F,Z)=>(0,Re.jsx)("li",{className:"font-library__fonts-list-item",children:(0,Re.jsx)(Dg,{font:t,face:F},`face${Z}`)},`face${Z}`))})]})]})]}),(0,Re.jsxs)(Ie.__experimentalHStack,{justify:"flex-end",className:"font-library__footer",children:[s&&(0,Re.jsx)(Ie.ProgressBar,{}),H&&(0,Re.jsx)(Ie.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"tertiary",onClick:S,children:(0,at.__)("Delete")}),(0,Re.jsx)(Ie.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:I,disabled:!A,accessibleWhenDisabled:!0,children:(0,at.__)("Update")})]})]})]})}function Bx({font:e,isOpen:t,setIsOpen:r,setNotice:o,uninstallFontFamily:n,handleSetLibraryFontSelected:s}){let i=(0,Ie.useNavigator)(),a=async()=>{o(null),r(!1);try{await n(e),i.goBack(),s(void 0),o({type:"success",message:(0,at.__)("Font family uninstalled successfully.")})}catch(l){o({type:"error",message:(0,at.__)("There was an error uninstalling the font family.")+l.message})}},u=()=>{r(!1)};return(0,Re.jsx)(Ie.__experimentalConfirmDialog,{isOpen:t,cancelButtonText:(0,at.__)("Cancel"),confirmButtonText:(0,at.__)("Delete"),onCancel:u,onConfirm:a,size:"medium",children:e&&(0,at.sprintf)((0,at.__)('Are you sure you want to delete "%s" font and all its variants and assets?'),e.name)})}var Qi=Vx;var bt=h(ke(),1),Ce=h(ce(),1),Yg=h(No(),1),rt=h(xe(),1);var qg=h(nr(),1);function Bg(e,t){let{category:r,search:o}=t,n=e||[];return r&&r!=="all"&&(n=n.filter(s=>s.categories&&s.categories.indexOf(r)!==-1)),o&&(n=n.filter(s=>s.font_family_settings&&s.font_family_settings.name.toLowerCase().includes(o.toLowerCase()))),n}function jg(e){return e.reduce((t,r)=>({...t,[r.slug]:(r?.fontFace||[]).reduce((o,n)=>({...o,[`${n.fontStyle}-${n.fontWeight}`]:!0}),{})}),{})}function zg(e,t,r){return t?!!r[e]?.[`${t.fontStyle}-${t.fontWeight}`]:!!r[e]}var ws=h(xe(),1),Vt=h(ce(),1),pr=h(Y(),1);function jx(){let e=()=>{window.localStorage.setItem("wp-font-library-google-fonts-permission","true"),window.dispatchEvent(new Event("storage"))};return(0,pr.jsx)("div",{className:"font-library__google-fonts-confirm",children:(0,pr.jsx)(Vt.Card,{children:(0,pr.jsxs)(Vt.CardBody,{children:[(0,pr.jsx)(Vt.__experimentalHeading,{level:2,children:(0,ws.__)("Connect to Google Fonts")}),(0,pr.jsx)(Vt.__experimentalSpacer,{margin:6}),(0,pr.jsx)(Vt.__experimentalText,{as:"p",children:(0,ws.__)("To install fonts from Google you must give permission to connect directly to Google servers. The fonts you install will be downloaded from Google and stored on your site. Your site will then use these locally-hosted fonts.")}),(0,pr.jsx)(Vt.__experimentalSpacer,{margin:3}),(0,pr.jsx)(Vt.__experimentalText,{as:"p",children:(0,ws.__)("You can alternatively upload files directly on the Upload tab.")}),(0,pr.jsx)(Vt.__experimentalSpacer,{margin:6}),(0,pr.jsx)(Vt.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:e,children:(0,ws.__)("Allow access to Google Fonts")})]})})})}var Ug=jx;var Hg=h(ke(),1),$i=h(ce(),1);var qo=h(Y(),1);function zx({face:e,font:t,handleToggleVariant:r,selected:o}){let n=()=>{if(t?.fontFace){r(t,e);return}r(t)},s=t.name+" "+Wi(e),i=(0,Hg.useId)();return(0,qo.jsx)("div",{className:"font-library__font-card",children:(0,qo.jsxs)($i.Flex,{justify:"flex-start",align:"center",gap:"1rem",children:[(0,qo.jsx)($i.CheckboxControl,{checked:o,onChange:n,id:i}),(0,qo.jsx)("label",{htmlFor:i,children:(0,qo.jsx)(Ln,{font:e,text:s,onClick:n})})]})})}var Wg=zx;var he=h(Y(),1),Ux={slug:"all",name:(0,rt._x)("All","font categories")},Gg="wp-font-library-google-fonts-permission",Hx=500;function Wx({slug:e}){let t=e==="google-fonts",r=()=>window.localStorage.getItem(Gg)==="true",[o,n]=(0,bt.useState)(null),[s,i]=(0,bt.useState)(void 0),[a,u]=(0,bt.useState)(null),[l,c]=(0,bt.useState)([]),[f,m]=(0,bt.useState)(1),[g,d]=(0,bt.useState)({}),[v,x]=(0,bt.useState)(t&&!r()),{installFonts:C,isInstalling:w}=(0,bt.useContext)(Mt),{record:b,isResolving:R}=(0,qg.useEntityRecord)("root","fontCollection",e);(0,bt.useEffect)(()=>{let ee=()=>{x(t&&!r())};return ee(),window.addEventListener("storage",ee),()=>window.removeEventListener("storage",ee)},[e,t]);let A=()=>{window.localStorage.setItem(Gg,"false"),window.dispatchEvent(new Event("storage"))};(0,bt.useEffect)(()=>{n(null)},[e]),(0,bt.useEffect)(()=>{c([])},[o]);let T=(0,bt.useMemo)(()=>b?.font_families??[],[b]),_=b?.categories??[],P=[Ux,..._],N=(0,bt.useMemo)(()=>Bg(T,g),[T,g]),q=Math.max(window.innerHeight,Hx),H=Math.floor((q-417)/61),S=Math.ceil(N.length/H),I=(f-1)*H,W=f*H,O=N.slice(I,W),D=ee=>{d({...g,category:ee}),m(1)},M=(0,Yg.debounce)(ee=>{d({...g,search:ee}),m(1)},300),E=(ee,Fe)=>{let Ae=Gi(ee,Fe,l);c(Ae)},L=jg(l),$=()=>{c([])},F=l.length>0?l[0]?.fontFace?.length??0:0,Z=F>0&&F!==o?.fontFace?.length,se=F===o?.fontFace?.length,we=()=>{let ee=[];!se&&o&&ee.push(o),c(ee)},ie=async()=>{u(null);let ee=l[0];try{ee?.fontFace&&await Promise.all(ee.fontFace.map(async Fe=>{Fe.src&&(Fe.file=await Ag(Fe.src))}))}catch{u({type:"error",message:(0,rt.__)("Error installing the fonts, could not be downloaded.")});return}try{await C([ee]),u({type:"success",message:(0,rt.__)("Fonts were installed successfully.")})}catch(Fe){u({type:"error",message:Fe.message})}$()},ve=ee=>ee?!ee.fontFace||!ee.fontFace.length?[{fontFamily:ee.fontFamily,fontStyle:"normal",fontWeight:"400"}]:Ji(ee.fontFace):[];if(v)return(0,he.jsx)(Ug,{});let Ee=e==="google-fonts"&&!v&&!o;return(0,he.jsxs)("div",{className:"font-library__tabpanel-layout",children:[R&&(0,he.jsx)("div",{className:"font-library__loading",children:(0,he.jsx)(Ce.ProgressBar,{})}),!R&&b&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsxs)(Ce.Navigator,{initialPath:"/",className:"font-library__tabpanel-layout",children:[(0,he.jsxs)(Ce.Navigator.Screen,{path:"/",children:[(0,he.jsxs)(Ce.__experimentalHStack,{justify:"space-between",children:[(0,he.jsxs)(Ce.__experimentalVStack,{children:[(0,he.jsx)(Ce.__experimentalHeading,{level:2,size:13,children:b.name}),(0,he.jsx)(Ce.__experimentalText,{children:b.description})]}),Ee&&(0,he.jsx)(Ce.DropdownMenu,{icon:Vl,label:(0,rt.__)("Actions"),popoverProps:{position:"bottom left"},controls:[{title:(0,rt.__)("Revoke access to Google Fonts"),onClick:A}]})]}),(0,he.jsx)(Ce.__experimentalSpacer,{margin:4}),(0,he.jsxs)(Ce.__experimentalHStack,{spacing:4,justify:"space-between",children:[(0,he.jsx)(Ce.SearchControl,{className:"font-library__search",value:g.search,placeholder:(0,rt.__)("Font name\u2026"),label:(0,rt.__)("Search"),onChange:M,hideLabelFromVision:!1}),(0,he.jsx)(Ce.SelectControl,{label:(0,rt.__)("Category"),value:g.category,onChange:D,children:P&&P.map(ee=>(0,he.jsx)("option",{value:ee.slug,children:ee.name},ee.slug))})]}),(0,he.jsx)(Ce.__experimentalSpacer,{margin:4}),!!b?.font_families?.length&&!N.length&&(0,he.jsx)(Ce.__experimentalText,{children:(0,rt.__)("No fonts found. Try with a different search term.")}),(0,he.jsx)("div",{className:"font-library__fonts-grid__main",children:(0,he.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:O.map(ee=>(0,he.jsx)("li",{className:"font-library__fonts-list-item",children:(0,he.jsx)(vs,{font:ee.font_family_settings,navigatorPath:"/fontFamily",shouldFocus:ee.font_family_settings.slug===s,onClick:()=>{n(ee.font_family_settings)}})},ee.font_family_settings.slug))})})]}),(0,he.jsxs)(Ce.Navigator.Screen,{path:"/fontFamily",children:[(0,he.jsxs)(Ce.Flex,{justify:"flex-start",children:[(0,he.jsx)(Ce.Navigator.BackButton,{icon:(0,rt.isRTL)()?Mo:Do,size:"small",onClick:()=>{i(o?.slug),n(null),u(null)},label:(0,rt.__)("Back")}),(0,he.jsx)(Ce.__experimentalHeading,{level:2,size:13,className:"global-styles-ui-header",children:o?.name})]}),a&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(Ce.__experimentalSpacer,{margin:1}),(0,he.jsx)(Ce.Notice,{status:a.type,onRemove:()=>u(null),children:a.message}),(0,he.jsx)(Ce.__experimentalSpacer,{margin:1})]}),(0,he.jsx)(Ce.__experimentalSpacer,{margin:4}),(0,he.jsx)(Ce.__experimentalText,{children:(0,rt.__)("Select font variants to install.")}),(0,he.jsx)(Ce.__experimentalSpacer,{margin:4}),(0,he.jsx)(Ce.CheckboxControl,{className:"font-library__select-all",label:(0,rt.__)("Select all"),checked:se,onChange:we,indeterminate:Z}),(0,he.jsx)(Ce.__experimentalVStack,{spacing:0,children:(0,he.jsx)("ul",{role:"list",className:"font-library__fonts-list",children:o&&ve(o).map((ee,Fe)=>(0,he.jsx)("li",{className:"font-library__fonts-list-item",children:(0,he.jsx)(Wg,{font:o,face:ee,handleToggleVariant:E,selected:zg(o.slug,o.fontFace?ee:null,L)})},`face${Fe}`))})}),(0,he.jsx)(Ce.__experimentalSpacer,{margin:16})]})]}),o&&(0,he.jsx)(Ce.Flex,{justify:"flex-end",className:"font-library__footer",children:(0,he.jsx)(Ce.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:ie,isBusy:w,disabled:l.length===0||w,accessibleWhenDisabled:!0,children:(0,rt.__)("Install")})}),!o&&(0,he.jsxs)(Ce.__experimentalHStack,{expanded:!1,className:"font-library__footer",justify:"end",spacing:6,children:[(0,he.jsx)(Ce.__experimentalHStack,{justify:"flex-start",expanded:!1,spacing:1,className:"font-library__page-selection",children:(0,bt.createInterpolateElement)((0,rt.sprintf)((0,rt._x)("<div>Page</div>%1$s<div>of %2$d</div>","paging"),"<CurrentPage />",S),{div:(0,he.jsx)("div",{"aria-hidden":!0}),CurrentPage:(0,he.jsx)(Ce.SelectControl,{"aria-label":(0,rt.__)("Current page"),value:f.toString(),options:[...Array(S)].map((ee,Fe)=>({label:(Fe+1).toString(),value:(Fe+1).toString()})),onChange:ee=>m(parseInt(ee)),size:"small",variant:"minimal"})})}),(0,he.jsxs)(Ce.__experimentalHStack,{expanded:!1,spacing:1,children:[(0,he.jsx)(Ce.Button,{onClick:()=>m(f-1),disabled:f===1,accessibleWhenDisabled:!0,label:(0,rt.__)("Previous page"),icon:(0,rt.isRTL)()?Ri:Ti,showTooltip:!0,size:"compact",tooltipPosition:"top"}),(0,he.jsx)(Ce.Button,{onClick:()=>m(f+1),disabled:f===S,accessibleWhenDisabled:!0,label:(0,rt.__)("Next page"),icon:(0,rt.isRTL)()?Ti:Ri,showTooltip:!0,size:"compact",tooltipPosition:"top"})]})]})]})]})}var ea=Wx;var Dn=h(xe(),1),Ft=h(ce(),1),Ss=h(ke(),1);var ta=(e=>typeof zt<"u"?zt:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof zt<"u"?zt:t)[r]}):e)(function(e){if(typeof zt<"u")return zt.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Zg=(function(){var e,t,r;return(function(){function o(n,s,i){function a(c,f){if(!s[c]){if(!n[c]){var m=typeof ta=="function"&&ta;if(!f&&m)return m(c,!0);if(u)return u(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var d=s[c]={exports:{}};n[c][0].call(d.exports,function(v){var x=n[c][1][v];return a(x||v)},d,d.exports,o,n,s,i)}return s[c].exports}for(var u=typeof ta=="function"&&ta,l=0;l<i.length;l++)a(i[l]);return a}return o})()({1:[function(o,n,s){var i=4096,a=2*i+32,u=2*i-1,l=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function c(f){this.buf_=new Uint8Array(a),this.input_=f,this.reset()}c.READ_SIZE=i,c.IBUF_MASK=u,c.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var f=0;f<4;f++)this.val_|=this.buf_[this.pos_]<<8*f,++this.pos_;return this.bit_end_pos_>0},c.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var f=this.buf_ptr_,m=this.input_.read(this.buf_,f,i);if(m<0)throw new Error("Unexpected end of input");if(m<i){this.eos_=1;for(var g=0;g<32;g++)this.buf_[f+m+g]=0}if(f===0){for(var g=0;g<32;g++)this.buf_[(i<<1)+g]=this.buf_[g];this.buf_ptr_=i}else this.buf_ptr_=0;this.bit_end_pos_+=m<<3}},c.prototype.fillBitWindow=function(){for(;this.bit_pos_>=8;)this.val_>>>=8,this.val_|=this.buf_[this.pos_&u]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},c.prototype.readBits=function(f){32-this.bit_pos_<f&&this.fillBitWindow();var m=this.val_>>>this.bit_pos_&l[f];return this.bit_pos_+=f,m},n.exports=c},{}],2:[function(o,n,s){var i=0,a=1,u=2,l=3;s.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),s.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},{}],3:[function(o,n,s){var i=o("./streams").BrotliInput,a=o("./streams").BrotliOutput,u=o("./bit_reader"),l=o("./dictionary"),c=o("./huffman").HuffmanCode,f=o("./huffman").BrotliBuildHuffmanTable,m=o("./context"),g=o("./prefix"),d=o("./transform"),v=8,x=16,C=256,w=704,b=26,R=6,A=2,T=8,_=255,P=1080,N=18,q=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),H=16,S=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),I=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),W=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function O(G){var z;return G.readBits(1)===0?16:(z=G.readBits(3),z>0?17+z:(z=G.readBits(3),z>0?8+z:17))}function D(G){if(G.readBits(1)){var z=G.readBits(3);return z===0?1:G.readBits(z)+(1<<z)}return 0}function J(){this.meta_block_length=0,this.input_end=0,this.is_uncompressed=0,this.is_metadata=!1}function M(G){var z=new J,X,U,K;if(z.input_end=G.readBits(1),z.input_end&&G.readBits(1))return z;if(X=G.readBits(2)+4,X===7){if(z.is_metadata=!0,G.readBits(1)!==0)throw new Error("Invalid reserved bit");if(U=G.readBits(2),U===0)return z;for(K=0;K<U;K++){var fe=G.readBits(8);if(K+1===U&&U>1&&fe===0)throw new Error("Invalid size byte");z.meta_block_length|=fe<<K*8}}else for(K=0;K<X;++K){var ue=G.readBits(4);if(K+1===X&&X>4&&ue===0)throw new Error("Invalid size nibble");z.meta_block_length|=ue<<K*4}return++z.meta_block_length,!z.input_end&&!z.is_metadata&&(z.is_uncompressed=G.readBits(1)),z}function E(G,z,X){var U=z,K;return X.fillBitWindow(),z+=X.val_>>>X.bit_pos_&_,K=G[z].bits-T,K>0&&(X.bit_pos_+=T,z+=G[z].value,z+=X.val_>>>X.bit_pos_&(1<<K)-1),X.bit_pos_+=G[z].bits,G[z].value}function L(G,z,X,U){for(var K=0,fe=v,ue=0,de=0,pe=32768,me=[],V=0;V<32;V++)me.push(new c(0,0));for(f(me,0,5,G,N);K<z&&pe>0;){var re=0,Ne;if(U.readMoreInput(),U.fillBitWindow(),re+=U.val_>>>U.bit_pos_&31,U.bit_pos_+=me[re].bits,Ne=me[re].value&255,Ne<x)ue=0,X[K++]=Ne,Ne!==0&&(fe=Ne,pe-=32768>>Ne);else{var He=Ne-14,ot,ut,ze=0;if(Ne===x&&(ze=fe),de!==ze&&(ue=0,de=ze),ot=ue,ue>0&&(ue-=2,ue<<=He),ue+=U.readBits(He)+3,ut=ue-ot,K+ut>z)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var We=0;We<ut;We++)X[K+We]=de;K+=ut,de!==0&&(pe-=ut<<15-de)}}if(pe!==0)throw new Error("[ReadHuffmanCodeLengths] space = "+pe);for(;K<z;K++)X[K]=0}function $(G,z,X,U){var K=0,fe,ue=new Uint8Array(G);if(U.readMoreInput(),fe=U.readBits(2),fe===1){for(var de,pe=G-1,me=0,V=new Int32Array(4),re=U.readBits(2)+1;pe;)pe>>=1,++me;for(de=0;de<re;++de)V[de]=U.readBits(me)%G,ue[V[de]]=2;switch(ue[V[0]]=1,re){case 1:break;case 3:if(V[0]===V[1]||V[0]===V[2]||V[1]===V[2])throw new Error("[ReadHuffmanCode] invalid symbols");break;case 2:if(V[0]===V[1])throw new Error("[ReadHuffmanCode] invalid symbols");ue[V[1]]=1;break;case 4:if(V[0]===V[1]||V[0]===V[2]||V[0]===V[3]||V[1]===V[2]||V[1]===V[3]||V[2]===V[3])throw new Error("[ReadHuffmanCode] invalid symbols");U.readBits(1)?(ue[V[2]]=3,ue[V[3]]=3):ue[V[0]]=2;break}}else{var de,Ne=new Uint8Array(N),He=32,ot=0,ut=[new c(2,0),new c(2,4),new c(2,3),new c(3,2),new c(2,0),new c(2,4),new c(2,3),new c(4,1),new c(2,0),new c(2,4),new c(2,3),new c(3,2),new c(2,0),new c(2,4),new c(2,3),new c(4,5)];for(de=fe;de<N&&He>0;++de){var ze=q[de],We=0,nt;U.fillBitWindow(),We+=U.val_>>>U.bit_pos_&15,U.bit_pos_+=ut[We].bits,nt=ut[We].value,Ne[ze]=nt,nt!==0&&(He-=32>>nt,++ot)}if(!(ot===1||He===0))throw new Error("[ReadHuffmanCode] invalid num_codes or space");L(Ne,G,ue,U)}if(K=f(z,X,T,ue,G),K===0)throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return K}function F(G,z,X){var U,K;return U=E(G,z,X),K=g.kBlockLengthPrefixCode[U].nbits,g.kBlockLengthPrefixCode[U].offset+X.readBits(K)}function Z(G,z,X){var U;return G<H?(X+=S[G],X&=3,U=z[X]+I[G]):U=G-H+1,U}function se(G,z){for(var X=G[z],U=z;U;--U)G[U]=G[U-1];G[0]=X}function we(G,z){var X=new Uint8Array(256),U;for(U=0;U<256;++U)X[U]=U;for(U=0;U<z;++U){var K=G[U];G[U]=X[K],K&&se(X,K)}}function ie(G,z){this.alphabet_size=G,this.num_htrees=z,this.codes=new Array(z+z*W[G+31>>>5]),this.htrees=new Uint32Array(z)}ie.prototype.decode=function(G){var z,X,U=0;for(z=0;z<this.num_htrees;++z)this.htrees[z]=U,X=$(this.alphabet_size,this.codes,U,G),U+=X};function ve(G,z){var X={num_htrees:null,context_map:null},U,K=0,fe,ue;z.readMoreInput();var de=X.num_htrees=D(z)+1,pe=X.context_map=new Uint8Array(G);if(de<=1)return X;for(U=z.readBits(1),U&&(K=z.readBits(4)+1),fe=[],ue=0;ue<P;ue++)fe[ue]=new c(0,0);for($(de+K,fe,0,z),ue=0;ue<G;){var me;if(z.readMoreInput(),me=E(fe,0,z),me===0)pe[ue]=0,++ue;else if(me<=K)for(var V=1+(1<<me)+z.readBits(me);--V;){if(ue>=G)throw new Error("[DecodeContextMap] i >= context_map_size");pe[ue]=0,++ue}else pe[ue]=me-K,++ue}return z.readBits(1)&&we(pe,G),X}function Ee(G,z,X,U,K,fe,ue){var de=X*2,pe=X,me=E(z,X*P,ue),V;me===0?V=K[de+(fe[pe]&1)]:me===1?V=K[de+(fe[pe]-1&1)]+1:V=me-2,V>=G&&(V-=G),U[X]=V,K[de+(fe[pe]&1)]=V,++fe[pe]}function ee(G,z,X,U,K,fe){var ue=K+1,de=X&K,pe=fe.pos_&u.IBUF_MASK,me;if(z<8||fe.bit_pos_+(z<<3)<fe.bit_end_pos_){for(;z-- >0;)fe.readMoreInput(),U[de++]=fe.readBits(8),de===ue&&(G.write(U,ue),de=0);return}if(fe.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;fe.bit_pos_<32;)U[de]=fe.val_>>>fe.bit_pos_,fe.bit_pos_+=8,++de,--z;if(me=fe.bit_end_pos_-fe.bit_pos_>>3,pe+me>u.IBUF_MASK){for(var V=u.IBUF_MASK+1-pe,re=0;re<V;re++)U[de+re]=fe.buf_[pe+re];me-=V,de+=V,z-=V,pe=0}for(var re=0;re<me;re++)U[de+re]=fe.buf_[pe+re];if(de+=me,z-=me,de>=ue){G.write(U,ue),de-=ue;for(var re=0;re<de;re++)U[re]=U[ue+re]}for(;de+z>=ue;){if(me=ue-de,fe.input_.read(U,de,me)<me)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");G.write(U,ue),z-=me,de=0}if(fe.input_.read(U,de,z)<z)throw new Error("[CopyUncompressedBlockToOutput] not enough bytes");fe.reset()}function Fe(G){var z=G.bit_pos_+7&-8,X=G.readBits(z-G.bit_pos_);return X==0}function Ae(G){var z=new i(G),X=new u(z);O(X);var U=M(X);return U.meta_block_length}s.BrotliDecompressedSize=Ae;function Oe(G,z){var X=new i(G);z==null&&(z=Ae(G));var U=new Uint8Array(z),K=new a(U);return Ue(X,K),K.pos<K.buffer.length&&(K.buffer=K.buffer.subarray(0,K.pos)),K.buffer}s.BrotliDecompressBuffer=Oe;function Ue(G,z){var X,U=0,K=0,fe=0,ue,de=0,pe,me,V,re,Ne=[16,15,11,4],He=0,ot=0,ut=0,ze=[new ie(0,0),new ie(0,0),new ie(0,0)],We,nt,be,Rr=128+u.READ_SIZE;be=new u(G),fe=O(be),ue=(1<<fe)-16,pe=1<<fe,me=pe-1,V=new Uint8Array(pe+Rr+l.maxDictionaryWordLength),re=pe,We=[],nt=[];for(var gr=0;gr<3*P;gr++)We[gr]=new c(0,0),nt[gr]=new c(0,0);for(;!K;){var $e=0,jr,Ct=[1<<28,1<<28,1<<28],Le=[0],qe=[1,1,1],k=[0,1,0,1,0,1],Q=[0],y,oe,Ve,te,ht=null,ne=null,Qe,B=null,j,yr=0,Ge=null,le=0,zr=0,Qt=null,et=0,Me=0,ft=0,gt,wt;for(X=0;X<3;++X)ze[X].codes=null,ze[X].htrees=null;be.readMoreInput();var Ur=M(be);if($e=Ur.meta_block_length,U+$e>z.buffer.length){var Ro=new Uint8Array(U+$e);Ro.set(z.buffer),z.buffer=Ro}if(K=Ur.input_end,jr=Ur.is_uncompressed,Ur.is_metadata){for(Fe(be);$e>0;--$e)be.readMoreInput(),be.readBits(8);continue}if($e!==0){if(jr){be.bit_pos_=be.bit_pos_+7&-8,ee(z,$e,U,V,me,be),U+=$e;continue}for(X=0;X<3;++X)qe[X]=D(be)+1,qe[X]>=2&&($(qe[X]+2,We,X*P,be),$(b,nt,X*P,be),Ct[X]=F(nt,X*P,be),Q[X]=1);for(be.readMoreInput(),y=be.readBits(2),oe=H+(be.readBits(4)<<y),Ve=(1<<y)-1,te=oe+(48<<y),ne=new Uint8Array(qe[0]),X=0;X<qe[0];++X)be.readMoreInput(),ne[X]=be.readBits(2)<<1;var lt=ve(qe[0]<<R,be);Qe=lt.num_htrees,ht=lt.context_map;var At=ve(qe[2]<<A,be);for(j=At.num_htrees,B=At.context_map,ze[0]=new ie(C,Qe),ze[1]=new ie(w,qe[1]),ze[2]=new ie(te,j),X=0;X<3;++X)ze[X].decode(be);for(Ge=0,Qt=0,gt=ne[Le[0]],Me=m.lookupOffsets[gt],ft=m.lookupOffsets[gt+1],wt=ze[1].htrees[0];$e>0;){var dt,It,Bt,Ko,xa,jt,$t,Hr,zn,Jo,Un;for(be.readMoreInput(),Ct[1]===0&&(Ee(qe[1],We,1,Le,k,Q,be),Ct[1]=F(nt,P,be),wt=ze[1].htrees[Le[1]]),--Ct[1],dt=E(ze[1].codes,wt,be),It=dt>>6,It>=2?(It-=2,$t=-1):$t=0,Bt=g.kInsertRangeLut[It]+(dt>>3&7),Ko=g.kCopyRangeLut[It]+(dt&7),xa=g.kInsertLengthPrefixCode[Bt].offset+be.readBits(g.kInsertLengthPrefixCode[Bt].nbits),jt=g.kCopyLengthPrefixCode[Ko].offset+be.readBits(g.kCopyLengthPrefixCode[Ko].nbits),ot=V[U-1&me],ut=V[U-2&me],Jo=0;Jo<xa;++Jo)be.readMoreInput(),Ct[0]===0&&(Ee(qe[0],We,0,Le,k,Q,be),Ct[0]=F(nt,0,be),yr=Le[0]<<R,Ge=yr,gt=ne[Le[0]],Me=m.lookupOffsets[gt],ft=m.lookupOffsets[gt+1]),zn=m.lookup[Me+ot]|m.lookup[ft+ut],le=ht[Ge+zn],--Ct[0],ut=ot,ot=E(ze[0].codes,ze[0].htrees[le],be),V[U&me]=ot,(U&me)===me&&z.write(V,pe),++U;if($e-=xa,$e<=0)break;if($t<0){var zn;if(be.readMoreInput(),Ct[2]===0&&(Ee(qe[2],We,2,Le,k,Q,be),Ct[2]=F(nt,2*P,be),zr=Le[2]<<A,Qt=zr),--Ct[2],zn=(jt>4?3:jt-2)&255,et=B[Qt+zn],$t=E(ze[2].codes,ze[2].htrees[et],be),$t>=oe){var Sa,Eu,Hn;$t-=oe,Eu=$t&Ve,$t>>=y,Sa=($t>>1)+1,Hn=(2+($t&1)<<Sa)-4,$t=oe+(Hn+be.readBits(Sa)<<y)+Eu}}if(Hr=Z($t,Ne,He),Hr<0)throw new Error("[BrotliDecompress] invalid distance");if(U<ue&&de!==ue?de=U:de=ue,Un=U&me,Hr>de)if(jt>=l.minDictionaryWordLength&&jt<=l.maxDictionaryWordLength){var Hn=l.offsetsByLength[jt],Tu=Hr-de-1,_u=l.sizeBitsByLength[jt],mv=(1<<_u)-1,hv=Tu&mv,Pu=Tu>>_u;if(Hn+=hv*jt,Pu<d.kNumTransforms){var Ca=d.transformDictionaryWord(V,Un,Hn,jt,Pu);if(Un+=Ca,U+=Ca,$e-=Ca,Un>=re){z.write(V,pe);for(var Os=0;Os<Un-re;Os++)V[Os]=V[re+Os]}}else throw new Error("Invalid backward reference. pos: "+U+" distance: "+Hr+" len: "+jt+" bytes left: "+$e)}else throw new Error("Invalid backward reference. pos: "+U+" distance: "+Hr+" len: "+jt+" bytes left: "+$e);else{if($t>0&&(Ne[He&3]=Hr,++He),jt>$e)throw new Error("Invalid backward reference. pos: "+U+" distance: "+Hr+" len: "+jt+" bytes left: "+$e);for(Jo=0;Jo<jt;++Jo)V[U&me]=V[U-Hr&me],(U&me)===me&&z.write(V,pe),++U,--$e}ot=V[U-1&me],ut=V[U-2&me]}U&=1073741823}}z.write(V,U&me)}s.BrotliDecompress=Ue,l.init()},{"./bit_reader":1,"./context":2,"./dictionary":6,"./huffman":7,"./prefix":9,"./streams":10,"./transform":11}],4:[function(o,n,s){var i=o("base64-js");s.init=function(){var a=o("./decode").BrotliDecompressBuffer,u=i.toByteArray(o("./dictionary.bin.js"));return a(u)}},{"./decode":3,"./dictionary.bin.js":5,"base64-js":8}],5:[function(o,n,s){n.exports="W5/fcQLn5gKf2XUbAiQ1XULX+TZz6ADToDsgqk6qVfeC0e4m6OO2wcQ1J76ZBVRV1fRkEsdu//62zQsFEZWSTCnMhcsQKlS2qOhuVYYMGCkV0fXWEoMFbESXrKEZ9wdUEsyw9g4bJlEt1Y6oVMxMRTEVbCIwZzJzboK5j8m4YH02qgXYhv1V+PM435sLVxyHJihaJREEhZGqL03txGFQLm76caGO/ovxKvzCby/3vMTtX/459f0igi7WutnKiMQ6wODSoRh/8Lx1V3Q99MvKtwB6bHdERYRY0hStJoMjNeTsNX7bn+Y7e4EQ3bf8xBc7L0BsyfFPK43dGSXpL6clYC/I328h54/VYrQ5i0648FgbGtl837svJ35L3Mot/+nPlNpWgKx1gGXQYqX6n+bbZ7wuyCHKcUok12Xjqub7NXZGzqBx0SD+uziNf87t7ve42jxSKQoW3nyxVrWIGlFShhCKxjpZZ5MeGna0+lBkk+kaN8F9qFBAFgEogyMBdcX/T1W/WnMOi/7ycWUQloEBKGeC48MkiwqJkJO+12eQiOFHMmck6q/IjWW3RZlany23TBm+cNr/84/oi5GGmGBZWrZ6j+zykVozz5fT/QH/Da6WTbZYYPynVNO7kxzuNN2kxKKWche5WveitPKAecB8YcAHz/+zXLjcLzkdDSktNIDwZE9J9X+tto43oJy65wApM3mDzYtCwX9lM+N5VR3kXYo0Z3t0TtXfgBFg7gU8oN0Dgl7fZlUbhNll+0uuohRVKjrEd8egrSndy5/Tgd2gqjA4CAVuC7ESUmL3DZoGnfhQV8uwnpi8EGvAVVsowNRxPudck7+oqAUDkwZopWqFnW1riss0t1z6iCISVKreYGNvQcXv+1L9+jbP8cd/dPUiqBso2q+7ZyFBvENCkkVr44iyPbtOoOoCecWsiuqMSML5lv+vN5MzUr+Dnh73G7Q1YnRYJVYXHRJaNAOByiaK6CusgFdBPE40r0rvqXV7tksKO2DrHYXBTv8P5ysqxEx8VDXUDDqkPH6NNOV/a2WH8zlkXRELSa8P+heNyJBBP7PgsG1EtWtNef6/i+lcayzQwQCsduidpbKfhWUDgAEmyhGu/zVTacI6RS0zTABrOYueemnVa19u9fT23N/Ta6RvTpof5DWygqreCqrDAgM4LID1+1T/taU6yTFVLqXOv+/MuQOFnaF8vLMKD7tKWDoBdALgxF33zQccCcdHx8fKIVdW69O7qHtXpeGr9jbbpFA+qRMWr5hp0s67FPc7HAiLV0g0/peZlW7hJPYEhZyhpSwahnf93/tZgfqZWXFdmdXBzqxGHLrQKxoAY6fRoBhgCRPmmGueYZ5JexTVDKUIXzkG/fqp/0U3hAgQdJ9zumutK6nqWbaqvm1pgu03IYR+G+8s0jDBBz8cApZFSBeuWasyqo2OMDKAZCozS+GWSvL/HsE9rHxooe17U3s/lTE+VZAk4j3dp6uIGaC0JMiqR5CUsabPyM0dOYDR7Ea7ip4USZlya38YfPtvrX/tBlhHilj55nZ1nfN24AOAi9BVtz/Mbn8AEDJCqJgsVUa6nQnSxv2Fs7l/NlCzpfYEjmPrNyib/+t0ei2eEMjvNhLkHCZlci4WhBe7ePZTmzYqlY9+1pxtS4GB+5lM1BHT9tS270EWUDYFq1I0yY/fNiAk4bk9yBgmef/f2k6AlYQZHsNFnW8wBQxCd68iWv7/35bXfz3JZmfGligWAKRjIs3IpzxQ27vAglHSiOzCYzJ9L9A1CdiyFvyR66ucA4jKifu5ehwER26yV7HjKqn5Mfozo7Coxxt8LWWPT47BeMxX8p0Pjb7hZn+6bw7z3Lw+7653j5sI8CLu5kThpMlj1m4c2ch3jGcP1FsT13vuK3qjecKTZk2kHcOZY40UX+qdaxstZqsqQqgXz+QGF99ZJLqr3VYu4aecl1Ab5GmqS8k/GV5b95zxQ5d4EfXUJ6kTS/CXF/aiqKDOT1T7Jz5z0PwDUcwr9clLN1OJGCiKfqvah+h3XzrBOiLOW8wvn8gW6qE8vPxi+Efv+UH55T7PQFVMh6cZ1pZQlzJpKZ7P7uWvwPGJ6DTlR6wbyj3Iv2HyefnRo/dv7dNx+qaa0N38iBsR++Uil7Wd4afwDNsrzDAK4fXZwvEY/jdKuIKXlfrQd2C39dW7ntnRbIp9OtGy9pPBn/V2ASoi/2UJZfS+xuGLH8bnLuPlzdTNS6zdyk8Dt/h6sfOW5myxh1f+zf3zZ3MX/mO9cQPp5pOx967ZA6/pqHvclNfnUFF+rq+Vd7alKr6KWPcIDhpn6v2K6NlUu6LrKo8b/pYpU/Gazfvtwhn7tEOUuXht5rUJdSf6sLjYf0VTYDgwJ81yaqKTUYej/tbHckSRb/HZicwGJqh1mAHB/IuNs9dc9yuvF3D5Xocm3elWFdq5oEy70dYFit79yaLiNjPj5UUcVmZUVhQEhW5V2Z6Cm4HVH/R8qlamRYwBileuh07CbEce3TXa2JmXWBf+ozt319psboobeZhVnwhMZzOeQJzhpTDbP71Tv8HuZxxUI/+ma3XW6DFDDs4+qmpERwHGBd2edxwUKlODRdUWZ/g0GOezrbzOZauFMai4QU6GVHV6aPNBiBndHSsV4IzpvUiiYyg6OyyrL4Dj5q/Lw3N5kAwftEVl9rNd7Jk5PDij2hTH6wIXnsyXkKePxbmHYgC8A6an5Fob/KH5GtC0l4eFso+VpxedtJHdHpNm+Bvy4C79yVOkrZsLrQ3OHCeB0Ra+kBIRldUGlDCEmq2RwXnfyh6Dz+alk6eftI2n6sastRrGwbwszBeDRS/Fa/KwRJkCzTsLr/JCs5hOPE/MPLYdZ1F1fv7D+VmysX6NpOC8aU9F4Qs6HvDyUy9PvFGDKZ/P5101TYHFl8pjj6wm/qyS75etZhhfg0UEL4OYmHk6m6dO192AzoIyPSV9QedDA4Ml23rRbqxMPMxf7FJnDc5FTElVS/PyqgePzmwVZ26NWhRDQ+oaT7ly7ell4s3DypS1s0g+tOr7XHrrkZj9+x/mJBttrLx98lFIaRZzHz4aC7r52/JQ4VjHahY2/YVXZn/QC2ztQb/sY3uRlyc5vQS8nLPGT/n27495i8HPA152z7Fh5aFpyn1GPJKHuPL8Iw94DuW3KjkURAWZXn4EQy89xiKEHN1mk/tkM4gYDBxwNoYvRfE6LFqsxWJtPrDGbsnLMap3Ka3MUoytW0cvieozOmdERmhcqzG+3HmZv2yZeiIeQTKGdRT4HHNxekm1tY+/n06rGmFleqLscSERzctTKM6G9P0Pc1RmVvrascIxaO1CQCiYPE15bD7c3xSeW7gXxYjgxcrUlcbIvO0r+Yplhx0kTt3qafDOmFyMjgGxXu73rddMHpV1wMubyAGcf/v5dLr5P72Ta9lBF+fzMJrMycwv+9vnU3ANIl1cH9tfW7af8u0/HG0vV47jNFXzFTtaha1xvze/s8KMtCYucXc1nzfd/MQydUXn/b72RBt5wO/3jRcMH9BdhC/yctKBIveRYPrNpDWqBsO8VMmP+WvRaOcA4zRMR1PvSoO92rS7pYEv+fZfEfTMzEdM+6X5tLlyxExhqLRkms5EuLovLfx66de5fL2/yX02H52FPVwahrPqmN/E0oVXnsCKhbi/yRxX83nRbUKWhzYceXOntfuXn51NszJ6MO73pQf5Pl4in3ec4JU8hF7ppV34+mm9r1LY0ee/i1O1wpd8+zfLztE0cqBxggiBi5Bu95v9l3r9r/U5hweLn+TbfxowrWDqdJauKd8+q/dH8sbPkc9ttuyO94f7/XK/nHX46MPFLEb5qQlNPvhJ50/59t9ft3LXu7uVaWaO2bDrDCnRSzZyWvFKxO1+vT8MwwunR3bX0CkfPjqb4K9O19tn5X50PvmYpEwHtiW9WtzuV/s76B1zvLLNkViNd8ySxIl/3orfqP90TyTGaf7/rx8jQzeHJXdmh/N6YDvbvmTBwCdxfEQ1NcL6wNMdSIXNq7b1EUzRy1/Axsyk5p22GMG1b+GxFgbHErZh92wuvco0AuOLXct9hvw2nw/LqIcDRRmJmmZzcgUa7JpM/WV/S9IUfbF56TL2orzqwebdRD8nIYNJ41D/hz37Fo11p2Y21wzPcn713qVGhqtevStYfGH4n69OEJtPvbbLYWvscDqc3Hgnu166+tAyLnxrX0Y5zoYjV++1sI7t5kMr02KT/+uwtkc+rZLOf/qn/s3nYCf13Dg8/sB2diJgjGqjQ+TLhxbzyue2Ob7X6/9lUwW7a+lbznHzOYy8LKW1C/uRPbQY3KW/0gO9LXunHLvPL97afba9bFtc9hmz7GAttjVYlCvQAiOwAk/gC5+hkLEs6tr3AZKxLJtOEwk2dLxTYWsIB/j/ToWtIWzo906FrSG8iaqqqqqqiIiIiAgzMzMzNz+AyK+01/zi8n8S+Y1MjoRaQ80WU/G8MBlO+53VPXANrWm4wzGUVZUjjBJZVdhpcfkjsmcWaO+UEldXi1e+zq+HOsCpknYshuh8pOLISJun7TN0EIGW2xTnlOImeecnoGW4raxe2G1T3HEvfYUYMhG+gAFOAwh5nK8mZhwJMmN7r224QVsNFvZ87Z0qatvknklyPDK3Hy45PgVKXji52Wen4d4PlFVVYGnNap+fSpFbK90rYnhUc6n91Q3AY9E0tJOFrcfZtm/491XbcG/jsViUPPX76qmeuiz+qY1Hk7/1VPM405zWVuoheLUimpWYdVzCmUdKHebMdzgrYrb8mL2eeLSnRWHdonfZa8RsOU9F37w+591l5FLYHiOqWeHtE/lWrBHcRKp3uhtr8yXm8LU/5ms+NM6ZKsqu90cFZ4o58+k4rdrtB97NADFbwmEG7lXqvirhOTOqU14xuUF2myIjURcPHrPOQ4lmM3PeMg7bUuk0nnZi67bXsU6H8lhqIo8TaOrEafCO1ARK9PjC0QOoq2BxmMdgYB9G/lIb9++fqNJ2s7BHGFyBNmZAR8J3KCo012ikaSP8BCrf6VI0X5xdnbhHIO+B5rbOyB54zXkzfObyJ4ecwxfqBJMLFc7m59rNcw7hoHnFZ0b00zee+gTqvjm61Pb4xn0kcDX4jvHM0rBXZypG3DCKnD/Waa/ZtHmtFPgO5eETx+k7RrVg3aSwm2YoNXnCs3XPQDhNn+Fia6IlOOuIG6VJH7TP6ava26ehKHQa2T4N0tcZ9dPCGo3ZdnNltsHQbeYt5vPnJezV/cAeNypdml1vCHI8M81nSRP5Qi2+mI8v/sxiZru9187nRtp3f/42NemcONa+4eVC3PCZzc88aZh851CqSsshe70uPxeN/dmYwlwb3trwMrN1Gq8jbnApcVDx/yDPeYs5/7r62tsQ6lLg+DiFXTEhzR9dHqv0iT4tgj825W+H3XiRUNUZT2kR9Ri0+lp+UM3iQtS8uOE23Ly4KYtvqH13jghUntJRAewuzNLDXp8RxdcaA3cMY6TO2IeSFRXezeWIjCqyhsUdMYuCgYTZSKpBype1zRfq8FshvfBPc6BAQWl7/QxIDp3VGo1J3vn42OEs3qznws+YLRXbymyB19a9XBx6n/owcyxlEYyFWCi+kG9F+EyD/4yn80+agaZ9P7ay2Dny99aK2o91FkfEOY8hBwyfi5uwx2y5SaHmG+oq/zl1FX/8irOf8Y3vAcX/6uLP6A6nvMO24edSGPjQc827Rw2atX+z2bKq0CmW9mOtYnr5/AfDa1ZfPaXnKtlWborup7QYx+Or2uWb+N3N//2+yDcXMqIJdf55xl7/vsj4WoPPlxLxtVrkJ4w/tTe3mLdATOOYwxcq52w5Wxz5MbPdVs5O8/lhfE7dPj0bIiPQ3QV0iqm4m3YX8hRfc6jQ3fWepevMqUDJd86Z4vwM40CWHnn+WphsGHfieF02D3tmZvpWD+kBpNCFcLnZhcmmrhpGzzbdA+sQ1ar18OJD87IOKOFoRNznaHPNHUfUNhvY1iU+uhvEvpKHaUn3qK3exVVyX4joipp3um7FmYJWmA+WbIDshRpbVRx5/nqstCgy87FGbfVB8yDGCqS+2qCsnRwnSAN6zgzxfdB2nBT/vZ4/6uxb6oH8b4VBRxiIB93wLa47hG3w2SL/2Z27yOXJFwZpSJaBYyvajA7vRRYNKqljXKpt/CFD/tSMr18DKKbwB0xggBePatl1nki0yvqW5zchlyZmJ0OTxJ3D+fsYJs/mxYN5+Le5oagtcl+YsVvy8kSjI2YGvGjvmpkRS9W2dtXqWnVuxUhURm1lKtou/hdEq19VBp9OjGvHEQSmrpuf2R24mXGheil8KeiANY8fW1VERUfBImb64j12caBZmRViZHbeVMjCrPDg9A90IXrtnsYCuZtRQ0PyrKDjBNOsPfKsg1pA02gHlVr0OXiFhtp6nJqXVzcbfM0KnzC3ggOENPE9VBdmHKN6LYaijb4wXxJn5A0FSDF5j+h1ooZx885Jt3ZKzO5n7Z5WfNEOtyyPqQEnn7WLv5Fis3PdgMshjF1FRydbNyeBbyKI1oN1TRVrVK7kgsb/zjX4NDPIRMctVeaxVB38Vh1x5KbeJbU138AM5KzmZu3uny0ErygxiJF7GVXUrPzFxrlx1uFdAaZFDN9cvIb74qD9tzBMo7L7WIEYK+sla1DVMHpF0F7b3+Y6S+zjvLeDMCpapmJo1weBWuxKF3rOocih1gun4BoJh1kWnV/Jmiq6uOhK3VfKxEHEkafjLgK3oujaPzY6SXg8phhL4TNR1xvJd1Wa0aYFfPUMLrNBDCh4AuGRTbtKMc6Z1Udj8evY/ZpCuMAUefdo69DZUngoqE1P9A3PJfOf7WixCEj+Y6t7fYeHbbxUAoFV3M89cCKfma3fc1+jKRe7MFWEbQqEfyzO2x/wrO2VYH7iYdQ9BkPyI8/3kXBpLaCpU7eC0Yv/am/tEDu7HZpqg0EvHo0nf/R/gRzUWy33/HXMJQeu1GylKmOkXzlCfGFruAcPPhaGqZOtu19zsJ1SO2Jz4Ztth5cBX6mRQwWmDwryG9FUMlZzNckMdK+IoMJv1rOWnBamS2w2KHiaPMPLC15hCZm4KTpoZyj4E2TqC/P6r7/EhnDMhKicZZ1ZwxuC7DPzDGs53q8gXaI9kFTK+2LTq7bhwsTbrMV8Rsfua5lMS0FwbTitUVnVa1yTb5IX51mmYnUcP9wPr8Ji1tiYJeJV9GZTrQhF7vvdU2OTU42ogJ9FDwhmycI2LIg++03C6scYhUyUuMV5tkw6kGUoL+mjNC38+wMdWNljn6tGPpRES7veqrSn5TRuv+dh6JVL/iDHU1db4c9WK3++OrH3PqziF916UMUKn8G67nN60GfWiHrXYhUG3yVWmyYak59NHj8t1smG4UDiWz2rPHNrKnN4Zo1LBbr2/eF9YZ0n0blx2nG4X+EKFxvS3W28JESD+FWk61VCD3z/URGHiJl++7TdBwkCj6tGOH3qDb0QqcOF9Kzpj0HUb/KyFW3Yhj2VMKJqGZleFBH7vqvf7WqLC3XMuHV8q8a4sTFuxUtkD/6JIBvKaVjv96ndgruKZ1k/BHzqf2K9fLk7HGXANyLDd1vxkK/i055pnzl+zw6zLnwXlVYVtfmacJgEpRP1hbGgrYPVN6v2lG+idQNGmwcKXu/8xEj/P6qe/sB2WmwNp6pp8jaISMkwdleFXYK55NHWLTTbutSUqjBfDGWo/Yg918qQ+8BRZSAHZbfuNZz2O0sov1Ue4CWlVg3rFhM3Kljj9ksGd/NUhk4nH+a5UN2+1i8+NM3vRNp7uQ6sqexSCukEVlVZriHNqFi5rLm9TMWa4qm3idJqppQACol2l4VSuvWLfta4JcXy3bROPNbXOgdOhG47LC0CwW/dMlSx4Jf17aEU3yA1x9p+Yc0jupXgcMuYNku64iYOkGToVDuJvlbEKlJqsmiHbvNrIVZEH+yFdF8DbleZ6iNiWwMqvtMp/mSpwx5KxRrT9p3MAPTHGtMbfvdFhyj9vhaKcn3At8Lc16Ai+vBcSp1ztXi7rCJZx/ql7TXcclq6Q76UeKWDy9boS0WHIjUuWhPG8LBmW5y2rhuTpM5vsLt+HOLh1Yf0DqXa9tsfC+kaKt2htA0ai/L2i7RKoNjEwztkmRU0GfgW1TxUvPFhg0V7DdfWJk5gfrccpYv+MA9M0dkGTLECeYwUixRzjRFdmjG7zdZIl3XKB9YliNKI31lfa7i2JG5C8Ss+rHe0D7Z696/V3DEAOWHnQ9yNahMUl5kENWS6pHKKp2D1BaSrrHdE1w2qNxIztpXgUIrF0bm15YML4b6V1k+GpNysTahKMVrrS85lTVo9OGJ96I47eAy5rYWpRf/mIzeoYU1DKaQCTUVwrhHeyNoDqHel+lLxr9WKzhSYw7vrR6+V5q0pfi2k3L1zqkubY6rrd9ZLvSuWNf0uqnkY+FpTvFzSW9Fp0b9l8JA7THV9eCi/PY/SCZIUYx3BU2alj7Cm3VV6eYpios4b6WuNOJdYXUK3zTqj5CVG2FqYM4Z7CuIU0qO05XR0d71FHM0YhZmJmTRfLlXEumN82BGtzdX0S19t1e+bUieK8zRmqpa4Qc5TSjifmaQsY2ETLjhI36gMR1+7qpjdXXHiceUekfBaucHShAOiFXmv3sNmGQyU5iVgnoocuonQXEPTFwslHtS8R+A47StI9wj0iSrtbi5rMysczFiImsQ+bdFClnFjjpXXwMy6O7qfjOr8Fb0a7ODItisjnn3EQO16+ypd1cwyaAW5Yzxz5QknfMO7643fXW/I9y3U2xH27Oapqr56Z/tEzglj6IbT6HEHjopiXqeRbe5mQQvxtcbDOVverN0ZgMdzqRYRjaXtMRd56Q4cZSmdPvZJdSrhJ1D9zNXPqAEqPIavPdfubt5oke2kmv0dztIszSv2VYuoyf1UuopbsYb+uX9h6WpwjpgtZ6fNNawNJ4q8O3CFoSbioAaOSZMx2GYaPYB+rEb6qjQiNRFQ76TvwNFVKD+BhH9VhcKGsXzmMI7BptU/CNWolM7YzROvpFAntsiWJp6eR2d3GarcYShVYSUqhmYOWj5E96NK2WvmYNTeY7Zs4RUEdv9h9QT4EseKt6LzLrqEOs3hxAY1MaNWpSa6zZx8F3YOVeCYMS88W+CYHDuWe4yoc6YK+djDuEOrBR5lvh0r+Q9uM88lrjx9x9AtgpQVNE8r+3O6Gvw59D+kBF/UMXyhliYUtPjmvXGY6Dk3x+kEOW+GtdMVC4EZTqoS/jmR0P0LS75DOc/w2vnri97M4SdbZ8qeU7gg8DVbERkU5geaMQO3mYrSYyAngeUQqrN0C0/vsFmcgWNXNeidsTAj7/4MncJR0caaBUpbLK1yBCBNRjEv6KvuVSdpPnEMJdsRRtqJ+U8tN1gXA4ePHc6ZT0eviI73UOJF0fEZ8YaneAQqQdGphNvwM4nIqPnXxV0xA0fnCT+oAhJuyw/q8jO0y8CjSteZExwBpIN6SvNp6A5G/abi6egeND/1GTguhuNjaUbbnSbGd4L8937Ezm34Eyi6n1maeOBxh3PI0jzJDf5mh/BsLD7F2GOKvlA/5gtvxI3/eV4sLfKW5Wy+oio+es/u6T8UU+nsofy57Icb/JlZHPFtCgd/x+bwt3ZT+xXTtTtTrGAb4QehC6X9G+8YT+ozcLxDsdCjsuOqwPFnrdLYaFc92Ui0m4fr39lYmlCaqTit7G6O/3kWDkgtXjNH4BiEm/+jegQnihOtfffn33WxsFjhfMd48HT+f6o6X65j7XR8WLSHMFkxbvOYsrRsF1bowDuSQ18Mkxk4qz2zoGPL5fu9h2Hqmt1asl3Q3Yu3szOc+spiCmX4AETBM3pLoTYSp3sVxahyhL8eC4mPN9k2x3o0xkiixIzM3CZFzf5oR4mecQ5+ax2wCah3/crmnHoqR0+KMaOPxRif1oEFRFOO/kTPPmtww+NfMXxEK6gn6iU32U6fFruIz8Q4WgljtnaCVTBgWx7diUdshC9ZEa5yKpRBBeW12r/iNc/+EgNqmhswNB8SBoihHXeDF7rrWDLcmt3V8GYYN7pXRy4DZjj4DJuUBL5iC3DQAaoo4vkftqVTYRGLS3mHZ7gdmdTTqbgNN/PTdTCOTgXolc88MhXAEUMdX0iy1JMuk5wLsgeu0QUYlz2S4skTWwJz6pOm/8ihrmgGfFgri+ZWUK2gAPHgbWa8jaocdSuM4FJYoKicYX/ZSENkg9Q1ZzJfwScfVnR2DegOGwCvmogaWJCLQepv9WNlU6QgsmOwICquU28Mlk3d9W5E81lU/5Ez0LcX6lwKMWDNluNKfBDUy/phJgBcMnfkh9iRxrdOzgs08JdPB85Lwo+GUSb4t3nC+0byqMZtO2fQJ4U2zGIr49t/28qmmGv2RanDD7a3FEcdtutkW8twwwlUSpb8QalodddbBfNHKDQ828BdE7OBgFdiKYohLawFYqpybQoxATZrheLhdI7+0Zlu9Q1myRcd15r9UIm8K2LGJxqTegntqNVMKnf1a8zQiyUR1rxoqjiFxeHxqFcYUTHfDu7rhbWng6qOxOsI+5A1p9mRyEPdVkTlE24vY54W7bWc6jMgZvNXdfC9/9q7408KDsbdL7Utz7QFSDetz2picArzrdpL8OaCHC9V26RroemtDZ5yNM/KGkWMyTmfnInEvwtSD23UcFcjhaE3VKzkoaEMKGBft4XbIO6forTY1lmGQwVmKicBCiArDzE+1oIxE08fWeviIOD5TznqH+OoHadvoOP20drMPe5Irg3XBQziW2XDuHYzjqQQ4wySssjXUs5H+t3FWYMHppUnBHMx/nYIT5d7OmjDbgD9F6na3m4l7KdkeSO3kTEPXafiWinogag7b52taiZhL1TSvBFmEZafFq2H8khQaZXuitCewT5FBgVtPK0j4xUHPfUz3Q28eac1Z139DAP23dgki94EC8vbDPTQC97HPPSWjUNG5tWKMsaxAEMKC0665Xvo1Ntd07wCLNf8Q56mrEPVpCxlIMVlQlWRxM3oAfpgIc+8KC3rEXUog5g06vt7zgXY8grH7hhwVSaeuvC06YYRAwpbyk/Unzj9hLEZNs2oxPQB9yc+GnL6zTgq7rI++KDJwX2SP8Sd6YzTuw5lV/kU6eQxRD12omfQAW6caTR4LikYkBB1CMOrvgRr/VY75+NSB40Cni6bADAtaK+vyxVWpf9NeKJxN2KYQ8Q2xPB3K1s7fuhvWbr2XpgW044VD6DRs0qXoqKf1NFsaGvKJc47leUV3pppP/5VTKFhaGuol4Esfjf5zyCyUHmHthChcYh4hYLQF+AFWsuq4t0wJyWgdwQVOZiV0efRHPoK5+E1vjz9wTJmVkITC9oEstAsyZSgE/dbicwKr89YUxKZI+owD205Tm5lnnmDRuP/JnzxX3gMtlrcX0UesZdxyQqYQuEW4R51vmQ5xOZteUd8SJruMlTUzhtVw/Nq7eUBcqN2/HVotgfngif60yKEtoUx3WYOZlVJuJOh8u59fzSDPFYtQgqDUAGyGhQOAvKroXMcOYY0qjnStJR/G3aP+Jt1sLVlGV8POwr/6OGsqetnyF3TmTqZjENfnXh51oxe9qVUw2M78EzAJ+IM8lZ1MBPQ9ZWSVc4J3mWSrLKrMHReA5qdGoz0ODRsaA+vwxXA2cAM4qlfzBJA6581m4hzxItQw5dxrrBL3Y6kCbUcFxo1S8jyV44q//+7ASNNudZ6xeaNOSIUffqMn4A9lIjFctYn2gpEPAb3f7p3iIBN8H14FUGQ9ct2hPsL+cEsTgUrR47uJVN4n4wt/wgfwwHuOnLd4yobkofy8JvxSQTA7rMpDIc608SlZFJfZYcmbT0tAHpPE8MrtQ42siTUNWxqvWZOmvu9f0JPoQmg+6l7sZWwyfi6PXkxJnwBraUG0MYG4zYHQz3igy/XsFkx5tNQxw43qvI9dU3f0DdhOUlHKjmi1VAr2Kiy0HZwD8VeEbhh0OiDdMYspolQsYdSwjCcjeowIXNZVUPmL2wwIkYhmXKhGozdCJ4lRKbsf4NBh/XnQoS92NJEWOVOFs2YhN8c5QZFeK0pRdAG40hqvLbmoSA8xQmzOOEc7wLcme9JOsjPCEgpCwUs9E2DohMHRhUeyGIN6TFvrbny8nDuilsDpzrH5mS76APoIEJmItS67sQJ+nfwddzmjPxcBEBBCw0kWDwd0EZCkNeOD7NNQhtBm7KHL9mRxj6U1yWU2puzlIDtpYxdH4ZPeXBJkTGAJfUr/oTCz/iypY6uXaR2V1doPxJYlrw2ghH0D5gbrhFcIxzYwi4a/4hqVdf2DdxBp6vGYDjavxMAAoy+1+3aiO6S3W/QAKNVXagDtvsNtx7Ks+HKgo6U21B+QSZgIogV5Bt+BnXisdVfy9VyXV+2P5fMuvdpAjM1o/K9Z+XnE4EOCrue+kcdYHqAQ0/Y/OmNlQ6OI33jH/uD1RalPaHpJAm2av0/xtpqdXVKNDrc9F2izo23Wu7firgbURFDNX9eGGeYBhiypyXZft2j3hTvzE6PMWKsod//rEILDkzBXfi7xh0eFkfb3/1zzPK/PI5Nk3FbZyTl4mq5BfBoVoqiPHO4Q4QKZAlrQ3MdNfi3oxIjvsM3kAFv3fdufurqYR3PSwX/mpGy/GFI/B2MNPiNdOppWVbs/gjF3YH+QA9jMhlAbhvasAHstB0IJew09iAkmXHl1/TEj+jvHOpOGrPRQXbPADM+Ig2/OEcUcpgPTItMtW4DdqgfYVI/+4hAFWYjUGpOP/UwNuB7+BbKOcALbjobdgzeBQfjgNSp2GOpxzGLj70Vvq5cw2AoYENwKLUtJUX8sGRox4dVa/TN4xKwaKcl9XawQR/uNus700Hf17pyNnezrUgaY9e4MADhEDBpsJT6y1gDJs1q6wlwGhuUzGR7C8kgpjPyHWwsvrf3yn1zJEIRa5eSxoLAZOCR9xbuztxFRJW9ZmMYfCFJ0evm9F2fVnuje92Rc4Pl6A8bluN8MZyyJGZ0+sNSb//DvAFxC2BqlEsFwccWeAl6CyBcQV1bx4mQMBP1Jxqk1EUADNLeieS2dUFbQ/c/kvwItbZ7tx0st16viqd53WsRmPTKv2AD8CUnhtPWg5aUegNpsYgasaw2+EVooeNKmrW3MFtj76bYHJm5K9gpAXZXsE5U8DM8XmVOSJ1F1WnLy6nQup+jx52bAb+rCq6y9WXl2B2oZDhfDkW7H3oYfT/4xx5VncBuxMXP2lNfhUVQjSSzSRbuZFE4vFawlzveXxaYKVs8LpvAb8IRYF3ZHiRnm0ADeNPWocwxSzNseG7NrSEVZoHdKWqaGEBz1N8Pt7kFbqh3LYmAbm9i1IChIpLpM5AS6mr6OAPHMwwznVy61YpBYX8xZDN/a+lt7n+x5j4bNOVteZ8lj3hpAHSx1VR8vZHec4AHO9XFCdjZ9eRkSV65ljMmZVzaej2qFn/qt1lvWzNZEfHxK3qOJrHL6crr0CRzMox5f2e8ALBB4UGFZKA3tN6F6IXd32GTJXGQ7DTi9j/dNcLF9jCbDcWGKxoKTYblIwbLDReL00LRcDPMcQuXLMh5YzgtfjkFK1DP1iDzzYYVZz5M/kWYRlRpig1htVRjVCknm+h1M5LiEDXOyHREhvzCGpFZjHS0RsK27o2avgdilrJkalWqPW3D9gmwV37HKmfM3F8YZj2ar+vHFvf3B8CRoH4kDHIK9mrAg+owiEwNjjd9V+FsQKYR8czJrUkf7Qoi2YaW6EVDZp5zYlqiYtuXOTHk4fAcZ7qBbdLDiJq0WNV1l2+Hntk1mMWvxrYmc8kIx8G3rW36J6Ra4lLrTOCgiOihmow+YnzUT19jbV2B3RWqSHyxkhmgsBqMYWvOcUom1jDQ436+fcbu3xf2bbeqU/ca+C4DOKE+e3qvmeMqW3AxejfzBRFVcwVYPq4L0APSWWoJu+5UYX4qg5U6YTioqQGPG9XrnuZ/BkxuYpe6Li87+18EskyQW/uA+uk2rpHpr6hut2TlVbKgWkFpx+AZffweiw2+VittkEyf/ifinS/0ItRL2Jq3tQOcxPaWO2xrG68GdFoUpZgFXaP2wYVtRc6xYCfI1CaBqyWpg4bx8OHBQwsV4XWMibZZ0LYjWEy2IxQ1mZrf1/UNbYCJplWu3nZ4WpodIGVA05d+RWSS+ET9tH3RfGGmNI1cIY7evZZq7o+a0bjjygpmR3mVfalkT/SZGT27Q8QGalwGlDOS9VHCyFAIL0a1Q7JiW3saz9gqY8lqKynFrPCzxkU4SIfLc9VfCI5edgRhDXs0edO992nhTKHriREP1NJC6SROMgQ0xO5kNNZOhMOIT99AUElbxqeZF8A3xrfDJsWtDnUenAHdYWSwAbYjFqQZ+D5gi3hNK8CSxU9i6f6ClL9IGlj1OPMQAsr84YG6ijsJpCaGWj75c3yOZKBB9mNpQNPUKkK0D6wgLH8MGoyRxTX6Y05Q4AnYNXMZwXM4eij/9WpsM/9CoRnFQXGR6MEaY+FXvXEO3RO0JaStk6OXuHVATHJE+1W+TU3bSZ2ksMtqjO0zfSJCdBv7y2d8DMx6TfVme3q0ZpTKMMu4YL/t7ciTNtdDkwPogh3Cnjx7qk08SHwf+dksZ7M2vCOlfsF0hQ6J4ehPCaHTNrM/zBSOqD83dBEBCW/F/LEmeh0nOHd7oVl3/Qo/9GUDkkbj7yz+9cvvu+dDAtx8NzCDTP4iKdZvk9MWiizvtILLepysflSvTLFBZ37RLwiriqyRxYv/zrgFd/9XVHh/OmzBvDX4mitMR/lUavs2Vx6cR94lzAkplm3IRNy4TFfu47tuYs9EQPIPVta4P64tV+sZ7n3ued3cgEx2YK+QL5+xms6osk8qQbTyuKVGdaX9FQqk6qfDnT5ykxk0VK7KZ62b6DNDUfQlqGHxSMKv1P0XN5BqMeKG1P4Wp5QfZDUCEldppoX0U6ss2jIko2XpURKCIhfaOqLPfShdtS37ZrT+jFRSH2xYVV1rmT/MBtRQhxiO4MQ3iAGlaZi+9PWBEIXOVnu9jN1f921lWLZky9bqbM3J2MAAI9jmuAx3gyoEUa6P2ivs0EeNv/OR+AX6q5SW6l5HaoFuS6jr6yg9limu+P0KYKzfMXWcQSfTXzpOzKEKpwI3YGXZpSSy2LTlMgfmFA3CF6R5c9xWEtRuCg2ZPUQ2Nb6dRFTNd4TfGHrnEWSKHPuRyiJSDAZ+KX0VxmSHjGPbQTLVpqixia2uyhQ394gBMt7C3ZAmxn/DJS+l1fBsAo2Eir/C0jG9csd4+/tp12pPc/BVJGaK9mfvr7M/CeztrmCO5qY06Edi4xAGtiEhnWAbzLy2VEyazE1J5nPmgU4RpW4Sa0TnOT6w5lgt3/tMpROigHHmexBGAMY0mdcDbDxWIz41NgdD6oxgHsJRgr5RnT6wZAkTOcStU4NMOQNemSO7gxGahdEsC+NRVGxMUhQmmM0llWRbbmFGHzEqLM4Iw0H7577Kyo+Zf+2cUFIOw93gEY171vQaM0HLwpjpdRR6Jz7V0ckE7XzYJ0TmY9znLdzkva0vNrAGGT5SUZ5uaHDkcGvI0ySpwkasEgZPMseYcu85w8HPdSNi+4T6A83iAwDbxgeFcB1ZM2iGXzFcEOUlYVrEckaOyodfvaYSQ7GuB4ISE0nYJc15X/1ciDTPbPCgYJK55VkEor4LvzL9S2WDy4xj+6FOqVyTAC2ZNowheeeSI5hA/02l8UYkv4nk9iaVn+kCVEUstgk5Hyq+gJm6R9vG3rhuM904he/hFmNQaUIATB1y3vw+OmxP4X5Yi6A5I5jJufHCjF9+AGNwnEllZjUco6XhsO5T5+R3yxz5yLVOnAn0zuS+6zdj0nTJbEZCbXJdtpfYZfCeCOqJHoE2vPPFS6eRLjIJlG69X93nfR0mxSFXzp1Zc0lt/VafDaImhUMtbnqWVb9M4nGNQLN68BHP7AR8Il9dkcxzmBv8PCZlw9guY0lurbBsmNYlwJZsA/B15/HfkbjbwPddaVecls/elmDHNW2r4crAx43feNkfRwsaNq/yyJ0d/p5hZ6AZajz7DBfUok0ZU62gCzz7x8eVfJTKA8IWn45vINLSM1q+HF9CV9qF3zP6Ml21kPPL3CXzkuYUlnSqT+Ij4tI/od5KwIs+tDajDs64owN7tOAd6eucGz+KfO26iNcBFpbWA5732bBNWO4kHNpr9D955L61bvHCF/mwSrz6eQaDjfDEANqGMkFc+NGxpKZzCD2sj/JrHd+zlPQ8Iz7Q+2JVIiVCuCKoK/hlAEHzvk/Piq3mRL1rT/fEh9hoT5GJmeYswg1otiKydizJ/fS2SeKHVu6Z3JEHjiW8NaTQgP5xdBli8nC57XiN9hrquBu99hn9zqwo92+PM2JXtpeVZS0PdqR5mDyDreMMtEws+CpwaRyyzoYtfcvt9PJIW0fJVNNi/FFyRsea7peLvJrL+5b4GOXJ8tAr+ATk9f8KmiIsRhqRy0vFzwRV3Z5dZ3QqIU8JQ/uQpkJbjMUMFj2F9sCFeaBjI4+fL/oN3+LQgjI4zuAfQ+3IPIPFQBccf0clJpsfpnBxD84atwtupkGqKvrH7cGNl/QcWcSi6wcVDML6ljOgYbo+2BOAWNNjlUBPiyitUAwbnhFvLbnqw42kR3Yp2kv2dMeDdcGOX5kT4S6M44KHEB/SpCfl7xgsUvs+JNY9G3O2X/6FEt9FyAn57lrbiu+tl83sCymSvq9eZbe9mchL7MTf/Ta78e80zSf0hYY5eUU7+ff14jv7Xy8qjzfzzzvaJnrIdvFb5BLWKcWGy5/w7+vV2cvIfwHqdTB+RuJK5oj9mbt0Hy94AmjMjjwYNZlNS6uiyxNnwNyt3gdreLb64p/3+08nXkb92LTkkRgFOwk1oGEVllcOj5lv1hfAZywDows0944U8vUFw+A/nuVq/UCygsrmWIBnHyU01d0XJPwriEOvx/ISK6Pk4y2w0gmojZs7lU8TtakBAdne4v/aNxmMpK4VcGMp7si0yqsiolXRuOi1Z1P7SqD3Zmp0CWcyK4Ubmp2SXiXuI5nGLCieFHKHNRIlcY3Pys2dwMTYCaqlyWSITwr2oGXvyU3h1Pf8eQ3w1bnD7ilocVjYDkcXR3Oo1BXgMLTUjNw2xMVwjtp99NhSVc5aIWrDQT5DHPKtCtheBP4zHcw4dz2eRdTMamhlHhtfgqJJHI7NGDUw1XL8vsSeSHyKqDtqoAmrQqsYwvwi7HW3ojWyhIa5oz5xJTaq14NAzFLjVLR12rRNUQ6xohDnrWFb5bG9yf8aCD8d5phoackcNJp+Dw3Due3RM+5Rid7EuIgsnwgpX0rUWh/nqPtByMhMZZ69NpgvRTKZ62ViZ+Q7Dp5r4K0d7EfJuiy06KuIYauRh5Ecrhdt2QpTS1k1AscEHvapNbU3HL1F2TFyR33Wxb5MvH5iZsrn3SDcsxlnnshO8PLwmdGN+paWnQuORtZGX37uhFT64SeuPsx8UOokY6ON85WdQ1dki5zErsJGazcBOddWJEKqNPiJpsMD1GrVLrVY+AOdPWQneTyyP1hRX/lMM4ZogGGOhYuAdr7F/DOiAoc++cn5vlf0zkMUJ40Z1rlgv9BelPqVOpxKeOpzKdF8maK+1Vv23MO9k/8+qpLoxrIGH2EDQlnGmH8CD31G8QqlyQIcpmR5bwmSVw9/Ns6IHgulCRehvZ/+VrM60Cu/r3AontFfrljew74skYe2uyn7JKQtFQBQRJ9ryGic/zQOsbS4scUBctA8cPToQ3x6ZBQu6DPu5m1bnCtP8TllLYA0UTQNVqza5nfew3Mopy1GPUwG5jsl0OVXniPmAcmLqO5HG8Hv3nSLecE9oOjPDXcsTxoCBxYyzBdj4wmnyEV4kvFDunipS8SSkvdaMnTBN9brHUR8xdmmEAp/Pdqk9uextp1t+JrtXwpN/MG2w/qhRMpSNxQ1uhg/kKO30eQ/FyHUDkWHT8V6gGRU4DhDMxZu7xXij9Ui6jlpWmQCqJg3FkOTq3WKneCRYZxBXMNAVLQgHXSCGSqNdjebY94oyIpVjMYehAiFx/tqzBXFHZaL5PeeD74rW5OysFoUXY8sebUZleFTUa/+zBKVTFDopTReXNuZq47QjkWnxjirCommO4L/GrFtVV21EpMyw8wyThL5Y59d88xtlx1g1ttSICDwnof6lt/6zliPzgVUL8jWBjC0o2D6Kg+jNuThkAlaDJsq/AG2aKA//A76avw2KNqtv223P+Wq3StRDDNKFFgtsFukYt1GFDWooFVXitaNhb3RCyJi4cMeNjROiPEDb4k+G3+hD8tsg+5hhmSc/8t2JTSwYoCzAI75doq8QTHe+E/Tw0RQSUDlU+6uBeNN3h6jJGX/mH8oj0i3caCNsjvTnoh73BtyZpsflHLq6AfwJNCDX4S98h4+pCOhGKDhV3rtkKHMa3EG4J9y8zFWI4UsfNzC/Rl5midNn7gwoN9j23HGCQQ+OAZpTTPMdiVow740gIyuEtd0qVxMyNXhHcnuXRKdw5wDUSL358ktjMXmAkvIB73BLa1vfF9BAUZInPYJiwxqFWQQBVk7gQH4ojfUQ/KEjn+A/WR6EEe4CtbpoLe1mzHkajgTIoE0SLDHVauKhrq12zrAXBGbPPWKCt4DGedq3JyGRbmPFW32bE7T20+73BatV/qQhhBWfWBFHfhYWXjALts38FemnoT+9bn1jDBMcUMmYgSc0e7GQjv2MUBwLU8ionCpgV+Qrhg7iUIfUY6JFxR0Y+ZTCPM+rVuq0GNLyJXX6nrUTt8HzFBRY1E/FIm2EeVA9NcXrj7S6YYIChVQCWr/m2fYUjC4j0XLkzZ8GCSLfmkW3PB/xq+nlXsKVBOj7vTvqKCOMq7Ztqr3cQ+N8gBnPaAps+oGwWOkbuxnRYj/x/WjiDclVrs22xMK4qArE1Ztk1456kiJriw6abkNeRHogaPRBgbgF9Z8i/tbzWELN4CvbqtrqV9TtGSnmPS2F9kqOIBaazHYaJ9bi3AoDBvlZasMluxt0BDXfhp02Jn411aVt6S4TUB8ZgFDkI6TP6gwPY85w+oUQSsjIeXVminrwIdK2ZAawb8Se6XOJbOaliQxHSrnAeONDLuCnFejIbp4YDtBcQCwMsYiRZfHefuEJqJcwKTTJ8sx5hjHmJI1sPFHOr6W9AhZ2NAod38mnLQk1gOz2LCAohoQbgMbUK9RMEA3LkiF7Sr9tLZp6lkciIGhE2V546w3Mam53VtVkGbB9w0Yk2XiRnCmbpxmHr2k4eSC0RuNbjNsUfDIfc8DZvRvgUDe1IlKdZTzcT4ZGEb53dp8VtsoZlyXzLHOdAbsp1LPTVaHvLA0GYDFMbAW/WUBfUAdHwqLFAV+3uHvYWrCfhUOR2i89qvCBoOb48usAGdcF2M4aKn79k/43WzBZ+xR1L0uZfia70XP9soQReeuhZiUnXFDG1T8/OXNmssTSnYO+3kVLAgeiY719uDwL9FQycgLPessNihMZbAKG7qwPZyG11G1+ZA3jAX2yddpYfmaKBlmfcK/V0mwIRUDC0nJSOPUl2KB8h13F4dlVZiRhdGY5farwN+f9hEb1cRi41ZcGDn6Xe9MMSTOY81ULJyXIHSWFIQHstVYLiJEiUjktlHiGjntN5/btB8Fu+vp28zl2fZXN+dJDyN6EXhS+0yzqpl/LSJNEUVxmu7BsNdjAY0jVsAhkNuuY0E1G48ej25mSt+00yPbQ4SRCVkIwb6ISvYtmJRPz9Zt5dk76blf+lJwAPH5KDF+vHAmACLoCdG2Adii6dOHnNJnTmZtoOGO8Q1jy1veMw6gbLFToQmfJa7nT7Al89mRbRkZZQxJTKgK5Kc9INzmTJFp0tpAPzNmyL/F08bX3nhCumM/cR/2RPn9emZ3VljokttZD1zVWXlUIqEU7SLk5I0lFRU0AcENXBYazNaVzsVHA/sD3o9hm42wbHIRb/BBQTKzAi8s3+bMtpOOZgLdQzCYPfX3UUxKd1WYVkGH7lh/RBBgMZZwXzU9+GYxdBqlGs0LP+DZ5g2BWNh6FAcR944B+K/JTWI3t9YyVyRhlP4CCoUk/mmF7+r2pilVBjxXBHFaBfBtr9hbVn2zDuI0kEOG3kBx8CGdPOjX1ph1POOZJUO1JEGG0jzUy2tK4X0CgVNYhmkqqQysRNtKuPdCJqK3WW57kaV17vXgiyPrl4KEEWgiGF1euI4QkSFHFf0TDroQiLNKJiLbdhH0YBhriRNCHPxSqJmNNoketaioohqMglh6wLtEGWSM1EZbQg72h0UJAIPVFCAJOThpQGGdKfFovcwEeiBuZHN2Ob4uVM7+gwZLz1D9E7ta4RmMZ24OBBAg7Eh6dLXGofZ4U2TFOCQMKjwhVckjrydRS+YaqCw1kYt6UexuzbNEDyYLTZnrY1PzsHZJT4U+awO2xlqTSYu6n/U29O2wPXgGOEKDMSq+zTUtyc8+6iLp0ivav4FKx+xxVy4FxhIF/pucVDqpsVe2jFOfdZhTzLz2QjtzvsTCvDPU7bzDH2eXVKUV9TZ+qFtaSSxnYgYdXKwVreIgvWhT9eGDB2OvnWyPLfIIIfNnfIxU8nW7MbcH05nhlsYtaW9EZRsxWcKdEqInq1DiZPKCz7iGmAU9/ccnnQud2pNgIGFYOTAWjhIrd63aPDgfj8/sdlD4l+UTlcxTI9jbaMqqN0gQxSHs60IAcW3cH4p3V1aSciTKB29L1tz2eUQhRiTgTvmqc+sGtBNh4ky0mQJGsdycBREP+fAaSs1EREDVo5gvgi5+aCN7NECw30owbCc1mSpjiahyNVwJd1jiGgzSwfTpzf2c5XJvG/g1n0fH88KHNnf+u7ZiRMlXueSIsloJBUtW9ezvsx9grfsX/FNxnbxU1Lvg0hLxixypHKGFAaPu0xCD8oDTeFSyfRT6s8109GMUZL8m2xXp8X2dpPCWWdX84iga4BrTlOfqox4shqEgh/Ht4qRst52cA1xOIUuOxgfUivp6v5f8IVyaryEdpVk72ERAwdT4aoY1usBgmP+0m06Q216H/nubtNYxHaOIYjcach3A8Ez/zc0KcShhel0HCYjFsA0FjYqyJ5ZUH1aZw3+zWC0hLpM6GDfcAdn9fq2orPmZbW6XXrf+Krc9RtvII5jeD3dFoT1KwZJwxfUMvc5KLfn8rROW23Jw89sJ2a5dpB3qWDUBWF2iX8OCuKprHosJ2mflBR+Wqs86VvgI/XMnsqb97+VlKdPVysczPj8Jhzf+WCvGBHijAqYlavbF60soMWlHbvKT+ScvhprgeTln51xX0sF+Eadc/l2s2a5BgkVbHYyz0E85p0LstqH+gEGiR84nBRRFIn8hLSZrGwqjZ3E29cuGi+5Z5bp7EM8MWFa9ssS/vy4VrDfECSv7DSU84DaP0sXI3Ap4lWznQ65nQoTKRWU30gd7Nn8ZowUvGIx4aqyXGwmA/PB4qN8msJUODezUHEl0VP9uo+cZ8vPFodSIB4C7lQYjEFj8yu49C2KIV3qxMFYTevG8KqAr0TPlkbzHHnTpDpvpzziAiNFh8xiT7C/TiyH0EguUw4vxAgpnE27WIypV+uFN2zW7xniF/n75trs9IJ5amB1zXXZ1LFkJ6GbS/dFokzl4cc2mamVwhL4XU0Av5gDWAl+aEWhAP7t2VIwU+EpvfOPDcLASX7H7lZpXA2XQfbSlD4qU18NffNPoAKMNSccBfO9YVVgmlW4RydBqfHAV7+hrZ84WJGho6bNT0YMhxxLdOx/dwGj0oyak9aAkNJ8lRJzUuA8sR+fPyiyTgUHio5+Pp+YaKlHrhR41jY5NESPS3x+zTMe0S2HnLOKCOQPpdxKyviBvdHrCDRqO+l96HhhNBLXWv4yEMuEUYo8kXnYJM8oIgVM4XJ+xXOev4YbWeqsvgq0lmw4/PiYr9sYLt+W5EAuYSFnJEan8CwJwbtASBfLBBpJZiRPor/aCJBZsM+MhvS7ZepyHvU8m5WSmaZnxuLts8ojl6KkS8oSAHkq5GWlCB/NgJ5W3rO2Cj1MK7ahxsCrbTT3a0V/QQH+sErxV4XUWDHx0kkFy25bPmBMBQ6BU3HoHhhYcJB9JhP6NXUWKxnE0raXHB6U9KHpWdQCQI72qevp5fMzcm+AvC85rsynVQhruDA9fp9COe7N56cg1UKGSas89vrN+WlGLYTwi5W+0xYdKEGtGCeNJwXKDU0XqU5uQYnWsMwTENLGtbQMvoGjIFIEMzCRal4rnBAg7D/CSn8MsCvS+FDJJAzoiioJEhZJgAp9n2+1Yznr7H+6eT4YkJ9Mpj60ImcW4i4iHDLn9RydB8dx3QYm3rsX6n4VRrZDsYK6DCGwkwd5n3/INFEpk16fYpP6JtMQpqEMzcOfQGAHXBTEGzuLJ03GYQL9bmV2/7ExDlRf+Uvf1sM2frRtCWmal12pMgtonvSCtR4n1CLUZRdTHDHP1Otwqd+rcdlavnKjUB/OYXQHUJzpNyFoKpQK+2OgrEKpGyIgIBgn2y9QHnTJihZOpEvOKIoHAMGAXHmj21Lym39Mbiow4IF+77xNuewziNVBxr6KD5e+9HzZSBIlUa/AmsDFJFXeyrQakR3FwowTGcADJHcEfhGkXYNGSYo4dh4bxwLM+28xjiqkdn0/3R4UEkvcBrBfn/SzBc1XhKM2VPlJgKSorjDac96V2UnQYXl1/yZPT4DVelgO+soMjexXwYO58VLl5xInQUZI8jc3H2CPnCNb9X05nOxIy4MlecasTqGK6s2az4RjpF2cQP2G28R+7wDPsZDZC/kWtjdoHC7SpdPmqQrUAhMwKVuxCmYTiD9q/O7GHtZvPSN0CAUQN/rymXZNniYLlJDE70bsk6Xxsh4kDOdxe7A2wo7P9F5YvqqRDI6brf79yPCSp4I0jVoO4YnLYtX5nzspR5WB4AKOYtR1ujXbOQpPyYDvfRE3FN5zw0i7reehdi7yV0YDRKRllGCGRk5Yz+Uv1fYl2ZwrnGsqsjgAVo0xEUba8ohjaNMJNwTwZA/wBDWFSCpg1eUH8MYL2zdioxRTqgGQrDZxQyNzyBJPXZF0+oxITJAbj7oNC5JwgDMUJaM5GqlGCWc//KCIrI+aclEe4IA0uzv7cuj6GCdaJONpi13O544vbtIHBF+A+JeDFUQNy61Gki3rtyQ4aUywn6ru314/dkGiP8Iwjo0J/2Txs49ZkwEl4mx+iYUUO55I6pJzU4P+7RRs+DXZkyKUYZqVWrPF4I94m4Wx1tXeE74o9GuX977yvJ/jkdak8+AmoHVjI15V+WwBdARFV2IPirJgVMdsg1Pez2VNHqa7EHWdTkl3XTcyjG9BiueWFvQfXI8aWSkuuRmqi/HUuzqyvLJfNfs0txMqldYYflWB1BS31WkuPJGGwXUCpjiQSktkuBMWwHjSkQxeehqw1Kgz0Trzm7QbtgxiEPDVmWCNCAeCfROTphd1ZNOhzLy6XfJyG6Xgd5MCAZw4xie0Sj5AnY1/akDgNS9YFl3Y06vd6FAsg2gVQJtzG7LVq1OH2frbXNHWH/NY89NNZ4QUSJqL2yEcGADbT38X0bGdukqYlSoliKOcsSTuqhcaemUeYLLoI8+MZor2RxXTRThF1LrHfqf/5LcLAjdl4EERgUysYS2geE+yFdasU91UgUDsc2cSQ1ZoT9+uLOwdgAmifwQqF028INc2IQEDfTmUw3eZxvz7Ud1z3xc1PQfeCvfKsB9jOhRj7rFyb9XcDWLcYj0bByosychMezMLVkFiYcdBBQtvI6K0KRuOZQH2kBsYHJaXTkup8F0eIhO1/GcIwWKpr2mouB7g5TUDJNvORXPXa/mU8bh27TAZYBe2sKx4NSv5OjnHIWD2RuysCzBlUfeNXhDd2jxnHoUlheJ3jBApzURy0fwm2FwwsSU0caQGl0Kv8hopRQE211NnvtLRsmCNrhhpEDoNiZEzD2QdJWKbRRWnaFedXHAELSN0t0bfsCsMf0ktfBoXBoNA+nZN9+pSlmuzspFevmsqqcMllzzvkyXrzoA+Ryo1ePXpdGOoJvhyru+EBRsmOp7MXZ0vNUMUqHLUoKglg1p73sWeZmPc+KAw0pE2zIsFFE5H4192KwDvDxdxEYoDBDNZjbg2bmADTeUKK57IPD4fTYF4c6EnXx/teYMORBDtIhPJneiZny7Nv/zG+YmekIKCoxr6kauE2bZtBLufetNG0BtBY7f+/ImUypMBvdWu/Q7vTMRzw5aQGZWuc1V0HEsItFYMIBnoKGZ0xcarba/TYZq50kCaflFysYjA4EDKHqGdpYWdKYmm+a7TADmW35yfnOYpZYrkpVEtiqF0EujI00aeplNs2k+qyFZNeE3CDPL9P6b4PQ/kataHkVpLSEVGK7EX6rAa7IVNrvZtFvOA6okKvBgMtFDAGZOx88MeBcJ8AR3AgUUeIznAN6tjCUipGDZONm1FjWJp4A3QIzSaIOmZ7DvF/ysYYbM/fFDOV0jntAjRdapxJxL0eThpEhKOjCDDq2ks+3GrwxqIFKLe1WdOzII8XIOPGnwy6LKXVfpSDOTEfaRsGujhpS4hBIsMOqHbl16PJxc4EkaVu9wpEYlF/84NSv5Zum4drMfp9yXbzzAOJqqS4YkI4cBrFrC7bMPiCfgI3nNZAqkk3QOZqR+yyqx+nDQKBBBZ7QKrfGMCL+XpqFaBJU0wpkBdAhbR4hJsmT5aynlvkouoxm/NjD5oe6BzVIO9uktM+/5dEC5P7vZvarmuO/lKXz4sBabVPIATuKTrwbJP8XUkdM6uEctHKXICUJGjaZIWRbZp8czquQYfY6ynBUCfIU+gG6wqSIBmYIm9pZpXdaL121V7q0VjDjmQnXvMe7ysoEZnZL15B0SpxS1jjd83uNIOKZwu5MPzg2NhOx3xMOPYwEn2CUzbSrwAs5OAtrz3GAaUkJOU74XwjaYUmGJdZBS1NJVkGYrToINLKDjxcuIlyfVsKQSG/G4DyiO2SlQvJ0d0Ot1uOG5IFSAkq+PRVMgVMDvOIJMdqjeCFKUGRWBW9wigYvcbU7CQL/7meF2KZAaWl+4y9uhowAX7elogAvItAAxo2+SFxGRsHGEW9BnhlTuWigYxRcnVUBRQHV41LV+Fr5CJYV7sHfeywswx4XMtUx6EkBhR+q8AXXUA8uPJ73Pb49i9KG9fOljvXeyFj9ixgbo6CcbAJ7WHWqKHy/h+YjBwp6VcN7M89FGzQ04qbrQtgrOFybg3gQRTYG5xn73ArkfQWjCJROwy3J38Dx/D7jOa6BBNsitEw1wGq780EEioOeD+ZGp2J66ADiVGMayiHYucMk8nTK2zzT9CnEraAk95kQjy4k0GRElLL5YAKLQErJ5rp1eay9O4Fb6yJGm9U4FaMwPGxtKD6odIIHKoWnhKo1U8KIpFC+MVn59ZXmc7ZTBZfsg6FQ8W10YfTr4u0nYrpHZbZ1jXiLmooF0cOm0+mPnJBXQtepc7n0BqOipNCqI6yyloTeRShNKH04FIo0gcMk0H/xThyN4pPAWjDDkEp3lNNPRNVfpMI44CWRlRgViP64eK0JSRp0WUvCWYumlW/c58Vcz/yMwVcW5oYb9+26TEhwvbxiNg48hl1VI1UXTU//Eta+BMKnGUivctfL5wINDD0giQL1ipt6U7C9cd4+lgqY2lMUZ02Uv6Prs+ZEZer7ZfWBXVghlfOOrClwsoOFKzWEfz6RZu1eCs+K8fLvkts5+BX0gyrFYve0C3qHrn5U/Oh6D/CihmWIrY7HUZRhJaxde+tldu6adYJ+LeXupQw0XExC36RETdNFxcq9glMu4cNQSX9cqR/GQYp+IxUkIcNGWVU7ZtGa6P3XAyodRt0XeS3Tp01AnCh0ZbUh4VrSZeV9RWfSoWyxnY3hzcZ30G/InDq4wxRrEejreBxnhIQbkxenxkaxl+k7eLUQkUR6vKJ2iDFNGX3WmVA1yaOH+mvhBd+sE6vacQzFobwY5BqEAFmejwW5ne7HtVNolOUgJc8CsUxmc/LBi8N5mu9VsIA5HyErnS6zeCz7VLI9+n/hbT6hTokMXTVyXJRKSG2hd2labXTbtmK4fNH3IZBPreSA4FMeVouVN3zG5x9CiGpLw/3pceo4qGqp+rVp+z+7yQ98oEf+nyH4F3+J9IheDBa94Wi63zJbLBCIZm7P0asHGpIJt3PzE3m0S4YIWyXBCVXGikj8MudDPB/6Nm2v4IxJ5gU0ii0guy5SUHqGUYzTP0jIJU5E82RHUXtX4lDdrihBLdP1YaG1AGUC12rQKuIaGvCpMjZC9bWSCYnjDlvpWbkdXMTNeBHLKiuoozMGIvkczmP0aRJSJ8PYnLCVNhKHXBNckH79e8Z8Kc2wUej4sQZoH8qDRGkg86maW/ZQWGNnLcXmq3FlXM6ssR/3P6E/bHMvm6HLrv1yRixit25JsH3/IOr2UV4BWJhxXW5BJ6Xdr07n9kF3ZNAk6/Xpc5MSFmYJ2R7bdL8Kk7q1OU9Elg/tCxJ8giT27wSTySF0GOxg4PbYJdi/Nyia9Nn89CGDulfJemm1aiEr/eleGSN+5MRrVJ4K6lgyTTIW3i9cQ0dAi6FHt0YMbH3wDSAtGLSAccezzxHitt1QdhW36CQgPcA8vIIBh3/JNjf/Obmc2yzpk8edSlS4lVdwgW5vzbYEyFoF4GCBBby1keVNueHAH+evi+H7oOVfS3XuPQSNTXOONAbzJeSb5stwdQHl1ZjrGoE49I8+A9j3t+ahhQj74FCSWpZrj7wRSFJJnnwi1T9HL5qrCFW/JZq6P62XkMWTb+u4lGpKfmmwiJWx178GOG7KbrZGqyWwmuyKWPkNswkZ1q8uptUlviIi+AXh2bOOTOLsrtNkfqbQJeh24reebkINLkjut5r4d9GR/r8CBa9SU0UQhsnZp5cP+RqWCixRm7i4YRFbtZ4EAkhtNa6jHb6gPYQv7MKqkPLRmX3dFsK8XsRLVZ6IEVrCbmNDc8o5mqsogjAQfoC9Bc7R6gfw03m+lQpv6kTfhxscDIX6s0w+fBxtkhjXAXr10UouWCx3C/p/FYwJRS/AXRKkjOb5CLmK4XRe0+xeDDwVkJPZau52bzLEDHCqV0f44pPgKOkYKgTZJ33fmk3Tu8SdxJ02SHM8Fem5SMsWqRyi2F1ynfRJszcFKykdWlNqgDA/L9lKYBmc7Zu/q9ii1FPF47VJkqhirUob53zoiJtVVRVwMR34gV9iqcBaHbRu9kkvqk3yMpfRFG49pKKjIiq7h/VpRwPGTHoY4cg05X5028iHsLvUW/uz+kjPyIEhhcKUwCkJAwbR9pIEGOn8z6svAO8i89sJ3dL5qDWFYbS+HGPRMxYwJItFQN86YESeJQhn2urGiLRffQeLptDl8dAgb+Tp47UQPxWOw17OeChLN1WnzlkPL1T5O+O3Menpn4C3IY5LEepHpnPeZHbvuWfeVtPlkH4LZjPbBrkJT3NoRJzBt86CO0Xq59oQ+8dsm0ymRcmQyn8w71mhmcuEI5byuF+C88VPYly2sEzjlzAQ3vdn/1+Hzguw6qFNNbqenhZGbdiG6RwZaTG7jTA2X9RdXjDN9yj1uQpyO4Lx8KRAcZcbZMafp4wPOd5MdXoFY52V1A8M9hi3sso93+uprE0qYNMjkE22CvK4HuUxqN7oIz5pWuETq1lQAjqlSlqdD2Rnr/ggp/TVkQYjn9lMfYelk2sH5HPdopYo7MHwlV1or9Bxf+QCyLzm92vzG2wjiIjC/ZHEJzeroJl6bdFPTpZho5MV2U86fLQqxNlGIMqCGy+9WYhJ8ob1r0+Whxde9L2PdysETv97O+xVw+VNN1TZSQN5I6l9m5Ip6pLIqLm4a1B1ffH6gHyqT9p82NOjntRWGIofO3bJz5GhkvSWbsXueTAMaJDou99kGLqDlhwBZNEQ4mKPuDvVwSK4WmLluHyhA97pZiVe8g+JxmnJF8IkV/tCs4Jq/HgOoAEGR9tCDsDbDmi3OviUQpG5D8XmKcSAUaFLRXb2lmJTNYdhtYyfjBYZQmN5qT5CNuaD3BVnlkCk7bsMW3AtXkNMMTuW4HjUERSJnVQ0vsBGa1wo3Qh7115XGeTF3NTz8w0440AgU7c3bSXO/KMINaIWXd0oLpoq/0/QJxCQSJ9XnYy1W7TYLBJpHsVWD1ahsA7FjNvRd6mxCiHsm8g6Z0pnzqIpF1dHUtP2ITU5Z1hZHbu+L3BEEStBbL9XYvGfEakv1bmf+bOZGnoiuHEdlBnaChxYKNzB23b8sw8YyT7Ajxfk49eJIAvdbVkdFCe2J0gMefhQ0bIZxhx3fzMIysQNiN8PgOUKxOMur10LduigREDRMZyP4oGWrP1GFY4t6groASsZ421os48wAdnrbovNhLt7ScNULkwZ5AIZJTrbaKYTLjA1oJ3sIuN/aYocm/9uoQHEIlacF1s/TM1fLcPTL38O9fOsjMEIwoPKfvt7opuI9G2Hf/PR4aCLDQ7wNmIdEuXJ/QNL72k5q4NejAldPfe3UVVqzkys8YZ/jYOGOp6c+YzRCrCuq0M11y7TiN6qk7YXRMn/gukxrEimbMQjr3jwRM6dKVZ4RUfWQr8noPXLJq6yh5R3EH1IVOHESst/LItbG2D2vRsZRkAObzvQAAD3mb3/G4NzopI0FAiHfbpq0X72adg6SRj+8OHMShtFxxLZlf/nLgRLbClwl5WmaYSs+yEjkq48tY7Z2bE0N91mJwt+ua0NlRJIDh0HikF4UvSVorFj2YVu9YeS5tfvlVjPSoNu/Zu6dEUfBOT555hahBdN3Sa5Xuj2Rvau1lQNIaC944y0RWj9UiNDskAK1WoL+EfXcC6IbBXFRyVfX/WKXxPAwUyIAGW8ggZ08hcijKTt1YKnUO6QPvcrmDVAb0FCLIXn5id4fD/Jx4tw/gbXs7WF9b2RgXtPhLBG9vF5FEkdHAKrQHZAJC/HWvk7nvzzDzIXZlfFTJoC3JpGgLPBY7SQTjGlUvG577yNutZ1hTfs9/1nkSXK9zzKLRZ3VODeKUovJe0WCq1zVMYxCJMenmNzPIU2S8TA4E7wWmbNkxq9rI2dd6v0VpcAPVMxnDsvWTWFayyqvKZO7Z08a62i/oH2/jxf8rpmfO64in3FLiL1GX8IGtVE9M23yGsIqJbxDTy+LtaMWDaPqkymb5VrQdzOvqldeU0SUi6IirG8UZ3jcpRbwHa1C0Dww9G/SFX3gPvTJQE+kyz+g1BeMILKKO+olcHzctOWgzxYHnOD7dpCRtuZEXACjgqesZMasoPgnuDC4nUviAAxDc5pngjoAITIkvhKwg5d608pdrZcA+qn5TMT6Uo/QzBaOxBCLTJX3Mgk85rMfsnWx86oLxf7p2PX5ONqieTa/qM3tPw4ZXvlAp83NSD8F7+ZgctK1TpoYwtiU2h02HCGioH5tkVCqNVTMH5p00sRy2JU1qyDBP2CII/Dg4WDsIl+zgeX7589srx6YORRQMBfKbodbB743Tl4WLKOEnwWUVBsm94SOlCracU72MSyj068wdpYjyz1FwC2bjQnxnB6Mp/pZ+yyZXtguEaYB+kqhjQ6UUmwSFazOb+rhYjLaoiM+aN9/8KKn0zaCTFpN9eKwWy7/u4EHzO46TdFSNjMfn2iPSJwDPCFHc0I1+vjdAZw5ZjqR/uzi9Zn20oAa5JnLEk/EA3VRWE7J/XrupfFJPtCUuqHPpnlL7ISJtRpSVcB8qsZCm2QEkWoROtCKKxUh3yEcMbWYJwk6DlEBG0bZP6eg06FL3v6RPb7odGuwm7FN8fG4woqtB8e7M5klPpo97GoObNwt+ludTAmxyC5hmcFx+dIvEZKI6igFKHqLH01iY1o7903VzG9QGetyVx5RNmBYUU+zIuSva/yIcECUi4pRmE3VkF2avqulQEUY4yZ/wmNboBzPmAPey3+dSYtBZUjeWWT0pPwCz4Vozxp9xeClIU60qvEFMQCaPvPaA70WlOP9f/ey39macvpGCVa+zfa8gO44wbxpJUlC8GN/pRMTQtzY8Z8/hiNrU+Zq64ZfFGIkdj7m7abcK1EBtws1X4J/hnqvasPvvDSDYWN+QcQVGMqXalkDtTad5rYY0TIR1Eqox3czwPMjKPvF5sFv17Thujr1IZ1Ytl4VX1J0vjXKmLY4lmXipRAro0qVGEcXxEVMMEl54jQMd4J7RjgomU0j1ptjyxY+cLiSyXPfiEcIS2lWDK3ISAy6UZ3Hb5vnPncA94411jcy75ay6B6DSTzK6UTCZR9uDANtPBrvIDgjsfarMiwoax2OlLxaSoYn4iRgkpEGqEkwox5tyI8aKkLlfZ12lO11TxsqRMY89j5JaO55XfPJPDL1LGSnC88Re9Ai+Nu5bZjtwRrvFITUFHPR4ZmxGslQMecgbZO7nHk32qHxYkdvWpup07ojcMCaVrpFAyFZJJbNvBpZfdf39Hdo2kPtT7v0/f8R/B5Nz4f1t9/3zNM/7n6SUHfcWk5dfQFJvcJMgPolGCpOFb/WC0FGWU2asuQyT+rm88ZKZ78Cei/CAh939CH0JYbpZIPtxc2ufXqjS3pHH9lnWK4iJ7OjR/EESpCo2R3MYKyE7rHfhTvWho4cL1QdN4jFTyR6syMwFm124TVDDRXMNveI1Dp/ntwdz8k8kxw7iFSx6+Yx6O+1LzMVrN0BBzziZi9kneZSzgollBnVwBh6oSOPHXrglrOj+QmR/AESrhDpKrWT+8/AiMDxS/5wwRNuGQPLlJ9ovomhJWn8sMLVItQ8N/7IXvtD8kdOoHaw+vBSbFImQsv/OCAIui99E+YSIOMlMvBXkAt+NAZK8wB9Jf8CPtB+TOUOR+z71d/AFXpPBT6+A5FLjxMjLIEoJzrQfquvxEIi+WoUzGR1IzQFNvbYOnxb2PyQ0kGdyXKzW2axQL8lNAXPk6NEjqrRD1oZtKLlFoofrXw0dCNWASHzy+7PSzOUJ3XtaPZsxLDjr+o41fKuKWNmjiZtfkOzItvlV2MDGSheGF0ma04qE3TUEfqJMrXFm7DpK+27DSvCUVf7rbNoljPhha5W7KBqVq0ShUSTbRmuqPtQreVWH4JET5yMhuqMoSd4r/N8sDmeQiQQvi1tcZv7Moc7dT5X5AtCD6kNEGZOzVcNYlpX4AbTsLgSYYliiPyVoniuYYySxsBy5cgb3pD+EK0Gpb0wJg031dPgaL8JZt6sIvzNPEHfVPOjXmaXj4bd4voXzpZ5GApMhILgMbCEWZ2zwgdeQgjNHLbPIt+KqxRwWPLTN6HwZ0Ouijj4UF+Sg0Au8XuIKW0WxlexdrFrDcZJ8Shauat3X0XmHygqgL1nAu2hrJFb4wZXkcS+i36KMyU1yFvYv23bQUJi/3yQpqr/naUOoiEWOxckyq/gq43dFou1DVDaYMZK9tho7+IXXokBCs5GRfOcBK7g3A+jXQ39K4YA8PBRW4m5+yR0ZAxWJncjRVbITvIAPHYRt1EJ3YLiUbqIvoKHtzHKtUy1ddRUQ0AUO41vonZDUOW+mrszw+SW/6Q/IUgNpcXFjkM7F4CSSQ2ExZg85otsMs7kqsQD4OxYeBNDcSpifjMoLb7GEbGWTwasVObmB/bfPcUlq0wYhXCYEDWRW02TP5bBrYsKTGWjnWDDJ1F7zWai0zW/2XsCuvBQjPFcTYaQX3tSXRSm8hsAoDdjArK/OFp6vcWYOE7lizP0Yc+8p16i7/NiXIiiQTp7c7Xus925VEtlKAjUdFhyaiLT7VxDagprMFwix4wZ05u0qj7cDWFd0W9OYHIu3JbJKMXRJ1aYNovugg+QqRN7fNHSi26VSgBpn+JfMuPo3aeqPWik/wI5Rz3BWarPQX4i5+dM0npwVOsX+KsOhC7vDg+OJsz4Q5zlnIeflUWL6QYMbf9WDfLmosLF4Qev3mJiOuHjoor/dMeBpA9iKDkMjYBNbRo414HCxjsHrB4EXNbHzNMDHCLuNBG6Sf+J4MZ/ElVsDSLxjIiGsTPhw8BPjxbfQtskj+dyNMKOOcUYIRBEIqbazz3lmjlRQhplxq673VklMMY6597vu+d89ec/zq7Mi4gQvh87ehYbpOuZEXj5g/Q7S7BFDAAB9DzG35SC853xtWVcnZQoH54jeOqYLR9NDuwxsVthTV7V99n/B7HSbAytbEyVTz/5NhJ8gGIjG0E5j3griULUd5Rg7tQR+90hJgNQKQH2btbSfPcaTOfIexc1db1BxUOhM1vWCpLaYuKr3FdNTt/T3PWCpEUWDKEtzYrjpzlL/wri3MITKsFvtF8QVV/NhVo97aKIBgdliNc10dWdXVDpVtsNn+2UIolrgqdWA4EY8so0YvB4a+aLzMXiMAuOHQrXY0tr+CL10JbvZzgjJJuB1cRkdT7DUqTvnswVUp5kkUSFVtIIFYK05+tQxT6992HHNWVhWxUsD1PkceIrlXuUVRogwmfdhyrf6zzaL8+c0L7GXMZOteAhAVQVwdJh+7nrX7x4LaIIfz2F2v7Dg/uDfz2Fa+4gFm2zHAor8UqimJG3VTJtZEoFXhnDYXvxMJFc6ku2bhbCxzij2z5UNuK0jmp1mnvkVNUfR+SEmj1Lr94Lym75PO7Fs0MIr3GdsWXRXSfgLTVY0FLqba97u1In8NAcY7IC6TjWLigwKEIm43NxTdaVTv9mcKkzuzBkKd8x/xt1p/9BbP7Wyb4bpo1K1gnOpbLvKz58pWl3B55RJ/Z5mRDLPtNQg14jdOEs9+h/V5UVpwrAI8kGbX8KPVPDIMfIqKDjJD9UyDOPhjZ3vFAyecwyq4akUE9mDOtJEK1hpDyi6Ae87sWAClXGTiwPwN7PXWwjxaR79ArHRIPeYKTunVW24sPr/3HPz2IwH8oKH4OlWEmt4BLM6W5g4kMcYbLwj2usodD1088stZA7VOsUSpEVl4w7NMb1EUHMRxAxLF0CIV+0L3iZb+ekB1vSDSFjAZ3hfLJf7gFaXrOKn+mhR+rWw/eTXIcAgl4HvFuBg1LOmOAwJH3eoVEjjwheKA4icbrQCmvAtpQ0mXG0agYp5mj4Rb6mdQ+RV4QBPbxMqh9C7o8nP0Wko2ocnCHeRGhN1XVyT2b9ACsL+6ylUy+yC3QEnaKRIJK91YtaoSrcWZMMwxuM0E9J68Z+YyjA0g8p1PfHAAIROy6Sa04VXOuT6A351FOWhKfTGsFJ3RTJGWYPoLk5FVK4OaYR9hkJvezwF9vQN1126r6isMGXWTqFW+3HL3I/jurlIdDWIVvYY+s6yq7lrFSPAGRdnU7PVwY/SvWbZGpXzy3BQ2LmAJlrONUsZs4oGkly0V267xbD5KMY8woNNsmWG1VVgLCra8aQBBcI4DP2BlNwxhiCtHlaz6OWFoCW0vMR3ErrG7JyMjTSCnvRcsEHgmPnwA6iNpJ2DrFb4gLlhKJyZGaWkA97H6FFdwEcLT6DRQQL++fOkVC4cYGW1TG/3iK5dShRSuiBulmihqgjR45Vi03o2RbQbP3sxt90VxQ6vzdlGfkXmmKmjOi080JSHkLntjvsBJnv7gKscOaTOkEaRQqAnCA4HWtB4XnMtOhpRmH2FH8tTXrIjAGNWEmudQLCkcVlGTQ965Kh0H6ixXbgImQP6b42B49sO5C8pc7iRlgyvSYvcnH9FgQ3azLbQG2cUW96SDojTQStxkOJyOuDGTHAnnWkz29aEwN9FT8EJ4yhXOg+jLTrCPKeEoJ9a7lDXOjEr8AgX4BmnMQ668oW0zYPyQiVMPxKRHtpfnEEyaKhdzNVThlxxDQNdrHeZiUFb6NoY2KwvSb7BnRcpJy+/g/zAYx3fYSN5QEaVD2Y1VsNWxB0BSO12MRsRY8JLfAezRMz5lURuLUnG1ToKk6Q30FughqWN6gBNcFxP/nY/iv+iaUQOa+2Nuym46wtI/DvSfzSp1jEi4SdYBE7YhTiVV5cX9gwboVDMVgZp5YBQlHOQvaDNfcCoCJuYhf5kz5kwiIKPjzgpcRJHPbOhJajeoeRL53cuMahhV8Z7IRr6M4hW0JzT7mzaMUzQpm866zwM7Cs07fJYXuWvjAMkbe5O6V4bu71sOG6JQ4oL8zIeXHheFVavzxmlIyBkgc9IZlEDplMPr8xlcyss4pVUdwK1e7CK2kTsSdq7g5SHRAl3pYUB9Ko4fsh4qleOyJv1z3KFSTSvwEcRO/Ew8ozEDYZSqpfoVW9uhJfYrNAXR0Z3VmeoAD+rVWtwP/13sE/3ICX3HhDG3CMc476dEEC0K3umSAD4j+ZQLVdFOsWL2C1TH5+4KiSWH+lMibo+B55hR3Gq40G1n25sGcN0mEcoU2wN9FCVyQLBhYOu9aHVLWjEKx2JIUZi5ySoHUAI9b8hGzaLMxCZDMLhv8MkcpTqEwz9KFDpCpqQhVmsGQN8m24wyB82FAKNmjgfKRsXRmsSESovAwXjBIoMKSG51p6Um8b3i7GISs7kjTq/PZoioCfJzfKdJTN0Q45kQEQuh9H88M3yEs3DbtRTKALraM0YC8laiMiOOe6ADmTcCiREeAWZelBaEXRaSuj2lx0xHaRYqF65O0Lo5OCFU18A8cMDE4MLYm9w2QSr9NgQAIcRxZsNpA7UJR0e71JL+VU+ISWFk5I97lra8uGg7GlQYhGd4Gc6rxsLFRiIeGO4abP4S4ekQ1fiqDCy87GZHd52fn5aaDGuvOmIofrzpVwMvtbreZ/855OaXTRcNiNE0wzGZSxbjg26v8ko8L537v/XCCWP2MFaArJpvnkep0pA+O86MWjRAZPQRfznZiSIaTppy6m3p6HrNSsY7fDtz7Cl4V/DJAjQDoyiL2uwf1UHVd2AIrzBUSlJaTj4k6NL97a/GqhWKU9RUmjnYKpm2r+JYUcrkCuZKvcYvrg8pDoUKQywY9GDWg03DUFSirlUXBS5SWn/KAntnf0IdHGL/7mwXqDG+LZYjbEdQmqUqq4y54TNmWUP7IgcAw5816YBzwiNIJiE9M4lPCzeI/FGBeYy3p6IAmH4AjXXmvQ4Iy0Y82NTobcAggT2Cdqz6Mx4TdGoq9fn2etrWKUNFyatAHydQTVUQ2S5OWVUlugcNvoUrlA8cJJz9MqOa/W3iVno4zDHfE7zhoY5f5lRTVZDhrQbR8LS4eRLz8iPMyBL6o4PiLlp89FjdokQLaSBmKHUwWp0na5fE3v9zny2YcDXG/jfI9sctulHRbdkI5a4GOPJx4oAJQzVZ/yYAado8KNZUdEFs9ZPiBsausotXMNebEgr0dyopuqfScFJ3ODNPHgclACPdccwv0YJGQdsN2lhoV4HVGBxcEUeUX/alr4nqpcc1CCR3vR7g40zteQg/JvWmFlUE4mAiTpHlYGrB7w+U2KdSwQz2QJKBe/5eiixWipmfP15AFWrK8Sh1GBBYLgzki1wTMhGQmagXqJ2+FuqJ8f0XzXCVJFHQdMAw8xco11HhM347alrAu+wmX3pDFABOvkC+WPX0Uhg1Z5MVHKNROxaR84YV3s12UcM+70cJ460SzEaKLyh472vOMD3XnaK7zxZcXlWqenEvcjmgGNR2OKbI1s8U+iwiW+HotHalp3e1MGDy6BMVIvajnAzkFHbeVsgjmJUkrP9OAwnEHYXVBqYx3q7LvXjoVR0mY8h+ZaOnh053pdsGkmbqhyryN01eVHySr+CkDYkSMeZ1xjPNVM+gVLTDKu2VGsMUJqWO4TwPDP0VOg2/8ITbAUaMGb4LjL7L+Pi11lEVMXTYIlAZ/QHmTENjyx3kDkBdfcvvQt6tKk6jYFM4EG5UXDTaF5+1ZjRz6W7MdJPC+wTkbDUim4p5QQH3b9kGk2Bkilyeur8Bc20wm5uJSBO95GfYDI1EZipoRaH7uVveneqz43tlTZGRQ4a7CNmMHgXyOQQOL6WQkgMUTQDT8vh21aSdz7ERiZT1jK9F+v6wgFvuEmGngSvIUR2CJkc5tx1QygfZnAruONobB1idCLB1FCfO7N1ZdRocT8/Wye+EnDiO9pzqIpnLDl4bkaRKW+ekBVwHn46Shw1X0tclt/0ROijuUB4kIInrVJU4buWf4YITJtjOJ6iKdr1u+flgQeFH70GxKjhdgt/MrwfB4K/sXczQ+9zYcrD4dhY6qZhZ010rrxggWA8JaZyg2pYij8ieYEg1aZJkZK9O1Re7sB0iouf60rK0Gd+AYlp7soqCBCDGwfKeUQhCBn0E0o0GS6PdmjLi0TtCYZeqazqwN+yNINIA8Lk3iPDnWUiIPLGNcHmZDxfeK0iAdxm/T7LnN+gemRL61hHIc0NCAZaiYJR+OHnLWSe8sLrK905B5eEJHNlWq4RmEXIaFTmo49f8w61+NwfEUyuJAwVqZCLFcyHBKAcIVj3sNzfEOXzVKIndxHw+AR93owhbCxUZf6Gs8cz6/1VdrFEPrv330+9s6BtMVPJ3zl/Uf9rUi0Z/opexfdL3ykF76e999GPfVv8fJv/Y/+/5hEMon1tqNFyVRevV9y9/uIvsG3dbB8GRRrgaEXfhx+2xeOFt+cEn3RZanNxdEe2+B6MHpNbrRE53PlDifPvFcp4kO78ILR0T4xyW/WGPyBsqGdoA7zJJCu1TKbGfhnqgnRbxbB2B3UZoeQ2bz2sTVnUwokTcTU21RxN1PYPS3Sar7T0eRIsyCNowr9amwoMU/od9s2APtiKNL6ENOlyKADstAEWKA+sdKDhrJ6BOhRJmZ+QJbAaZ3/5Fq0/lumCgEzGEbu3yi0Y4I4EgVAjqxh4HbuQn0GrRhOWyAfsglQJAVL1y/6yezS2k8RE2MstJLh92NOB3GCYgFXznF4d25qiP4ZCyI4RYGesut6FXK6GwPpKK8WHEkhYui0AyEmr5Ml3uBFtPFdnioI8RiCooa7Z1G1WuyIi3nSNglutc+xY8BkeW3JJXPK6jd2VIMpaSxpVtFq+R+ySK9J6WG5Qvt+C+QH1hyYUOVK7857nFmyDBYgZ/o+AnibzNVqyYCJQvyDXDTK+iXdkA71bY7TL3bvuLxLBQ8kbTvTEY9aqkQ3+MiLWbEgjLzOH+lXgco1ERgzd80rDCymlpaRQbOYnKG/ODoFl46lzT0cjM5FYVvv0qLUbD5lyJtMUaC1pFlTkNONx6lliaX9o0i/1vws5bNKn5OuENQEKmLlcP4o2ZmJjD4zzd3Fk32uQ4uRWkPSUqb4LBe3EXHdORNB2BWsws5daRnMfNVX7isPSb1hMQdAJi1/qmDMfRUlCU74pmnzjbXfL8PVG8NsW6IQM2Ne23iCPIpryJjYbVnm5hCvKpMa7HLViNiNc+xTfDIaKm3jctViD8A1M9YPJNk003VVr4Zo2MuGW8vil8SLaGpPXqG7I4DLdtl8a4Rbx1Lt4w5Huqaa1XzZBtj208EJVGcmKYEuaeN27zT9EE6a09JerXdEbpaNgNqYJdhP1NdqiPKsbDRUi86XvvNC7rME5mrSQtrzAZVndtSjCMqd8BmaeGR4l4YFULGRBeXIV9Y4yxLFdyoUNpiy2IhePSWzBofYPP0eIa2q5JP4j9G8at/AqoSsLAUuRXtvgsqX/zYwsE+of6oSDbUOo4RMJw+DOUTJq+hnqwKim9Yy/napyZNTc2rCq6V9jHtJbxGPDwlzWj/Sk3zF/BHOlT/fSjSq7FqlPI1q6J+ru8Aku008SFINXZfOfnZNOvGPMtEmn2gLPt+H4QLA+/SYe4j398auzhKIp2Pok3mPC5q1IN1HgR+mnEfc4NeeHYwd2/kpszR3cBn7ni9NbIqhtSWFW8xbUJuUPVOeeXu3j0IGZmFNiwaNZ6rH4/zQ2ODz6tFxRLsUYZu1bfd1uIvfQDt4YD/efKYv8VF8bHGDgK22w2Wqwpi43vNCOXFJZCGMqWiPbL8mil6tsmOTXAWCyMCw73e2rADZj2IK6rqksM3EXF2cbLb4vjB14wa/yXK5vwU+05MzERJ5nXsXsW21o7M+gO0js2OyKciP5uF2iXyb2DiptwQeHeqygkrNsqVCSlldxBMpwHi1vfc8RKpP/4L3Lmpq6DZcvhDDfxTCE3splacTcOtXdK2g303dIWBVe2wD/Gvja1cClFQ67gw0t1ZUttsUgQ1Veky8oOpS6ksYEc4bqseCbZy766SvL3FodmnahlWJRgVCNjPxhL/fk2wyvlKhITH/VQCipOI0dNcRa5B1M5HmOBjTLeZQJy237e2mobwmDyJNHePhdDmiknvLKaDbShL+Is1XTCJuLQd2wmdJL7+mKvs294whXQD+vtd88KKk0DXP8B1Xu9J+xo69VOuFgexgTrcvI6SyltuLix9OPuE6/iRJYoBMEXxU4shQMf4Fjqwf1PtnJ/wWSZd29rhZjRmTGgiGTAUQqRz+nCdjeMfYhsBD5Lv60KILWEvNEHfmsDs2L0A252351eUoYxAysVaCJVLdH9QFWAmqJDCODUcdoo12+gd6bW2boY0pBVHWL6LQDK5bYWh1V8vFvi0cRpfwv7cJiMX3AZNJuTddHehTIdU0YQ/sQ1dLoF2xQPcCuHKiuCWOY30DHe1OwcClLAhqAKyqlnIbH/8u9ScJpcS4kgp6HKDUdiOgRaRGSiUCRBjzI5gSksMZKqy7Sd51aeg0tgJ+x0TH9YH2Mgsap9N7ENZdEB0bey2DMTrBA1hn56SErNHf3tKtqyL9b6yXEP97/rc+jgD2N1LNUH6RM9AzP3kSipr06RkKOolR7HO768jjWiH1X92jA7dkg7gcNcjqsZCgfqWw0tPXdLg20cF6vnQypg7gLtkazrHAodyYfENPQZsdfnjMZiNu4nJO97D1/sQE+3vNFzrSDOKw+keLECYf7RJwVHeP/j79833oZ0egonYB2FlFE5qj02B/LVOMJQlsB8uNg3Leg4qtZwntsOSNidR0abbZmAK4sCzvt8Yiuz2yrNCJoH5O8XvX/vLeR/BBYTWj0sOPYM/jyxRd5+/JziKAABaPcw/34UA3aj/gLZxZgRCWN6m4m3demanNgsx0P237/Q+Ew5VYnJPkyCY0cIVHoFn2Ay/e7U4P19APbPFXEHX94N6KhEMPG7iwB3+I+O1jd5n6VSgHegxgaSawO6iQCYFgDsPSMsNOcUj4q3sF6KzGaH/0u5PQoAj/8zq6Uc9MoNrGqhYeb2jQo0WlGlXjxtanZLS24/OIN5Gx/2g684BPDQpwlqnkFcxpmP/osnOXrFuu4PqifouQH0eF5qCkvITQbJw/Zvy5mAHWC9oU+cTiYhJmSfKsCyt1cGVxisKu+NymEQIAyaCgud/V09qT3nk/9s/SWsYtha7yNpzBIMM40rCSGaJ9u6lEkl00vXBiEt7p9P5IBCiavynEOv7FgLqPdeqxRiCwuFVMolSIUBcoyfUC2e2FJSAUgYdVGFf0b0Kn2EZlK97yyxrT2MVgvtRikfdaAW8RwEEfN+B7/eK8bBdp7URpbqn1xcrC6d2UjdsKbzCjBFqkKkoZt7Mrhg6YagE7spkqj0jOrWM+UGQ0MUlG2evP1uE1p2xSv4dMK0dna6ENcNUF+xkaJ7B764NdxLCpuvhblltVRAf7vK5qPttJ/9RYFUUSGcLdibnz6mf7WkPO3MkUUhR2mAOuGv8IWw5XG1ZvoVMnjSAZe6T7WYA99GENxoHkMiKxHlCuK5Gd0INrISImHQrQmv6F4mqU/TTQ8nHMDzCRivKySQ8dqkpQgnUMnwIkaAuc6/FGq1hw3b2Sba398BhUwUZSAIO8XZvnuLdY2n6hOXws+gq9BHUKcKFA6kz6FDnpxLPICa3qGhnc97bo1FT/XJk48LrkHJ2CAtBv0RtN97N21plfpXHvZ8gMJb7Zc4cfI6MbPwsW7AilCSXMFIEUEmir8XLEklA0ztYbGpTTGqttp5hpFTTIqUyaAIqvMT9A/x+Ji5ejA4Bhxb/cl1pUdOD6epd3yilIdO6j297xInoiBPuEDW2/UfslDyhGkQs7Wy253bVnlT+SWg89zYIK/9KXFl5fe+jow2rd5FXv8zDPrmfMXiUPt9QBO/iK4QGbX5j/7Rx1c1vzsY8ONbP3lVIaPrhL4+1QrECTN3nyKavGG0gBBtHvTKhGoBHgMXHStFowN+HKrPriYu+OZ05Frn8okQrPaaxoKP1ULCS/cmKFN3gcH7HQlVjraCeQmtjg1pSQxeuqXiSKgLpxc/1OiZsU4+n4lz4hpahGyWBURLi4642n1gn9qz9bIsaCeEPJ0uJmenMWp2tJmIwLQ6VSgDYErOeBCfSj9P4G/vI7oIF+l/n5fp956QgxGvur77ynawAu3G9MdFbJbu49NZnWnnFcQHjxRuhUYvg1U/e84N4JTecciDAKb/KYIFXzloyuE1eYXf54MmhjTq7B/yBToDzzpx3tJCTo3HCmVPYfmtBRe3mPYEE/6RlTIxbf4fSOcaKFGk4gbaUWe44hVk9SZzhW80yfW5QWBHxmtUzvMhfVQli4gZTktIOZd9mjJ5hsbmzttaHQB29Am3dZkmx3g/qvYocyhZ2PXAWsNQiIaf+Q8W/MWPIK7/TjvCx5q2XRp4lVWydMc2wIQkhadDB0xsnw/kSEyGjLKjI4coVIwtubTF3E7MJ6LS6UOsJKj82XVAVPJJcepfewbzE91ivXZvOvYfsmMevwtPpfMzGmC7WJlyW2j0jh7AF1JLmwEJSKYwIvu6DHc3YnyLH9ZdIBnQ+nOVDRiP+REpqv++typYHIvoJyICGA40d8bR7HR2k7do6UQTHF4oriYeIQbxKe4Th6+/l1BjUtS9hqORh3MbgvYrStXTfSwaBOmAVQZzpYNqsAmQyjY56MUqty3c/xH6GuhNvNaG9vGbG6cPtBM8UA3e8r51D0AR9kozKuGGSMgLz3nAHxDNnc7GTwpLj7/6HeWp1iksDeTjwCLpxejuMtpMnGJgsiku1sOACwQ9ukzESiDRN77YNESxR5LphOlcASXA5uIts1LnBIcn1J7BLWs49DMALSnuz95gdOrTZr0u1SeYHinno/pE58xYoXbVO/S+FEMMs5qyWkMnp8Q3ClyTlZP52Y9nq7b8fITPuVXUk9ohG5EFHw4gAEcjFxfKb3xuAsEjx2z1wxNbSZMcgS9GKyW3R6KwJONgtA64LTyxWm8Bvudp0M1FdJPEGopM4Fvg7G/hsptkhCfHFegv4ENwxPeXmYhxwZy7js+BeM27t9ODBMynVCLJ7RWcBMteZJtvjOYHb5lOnCLYWNEMKC59BA7covu1cANa2PXL05iGdufOzkgFqqHBOrgQVUmLEc+Mkz4Rq8O6WkNr7atNkH4M8d+SD1t/tSzt3oFql+neVs+AwEI5JaBJaxARtY2Z4mKoUqxds4UpZ0sv3zIbNoo0J4fihldQTX3XNcuNcZmcrB5LTWMdzeRuAtBk3cZHYQF6gTi3PNuDJ0nmR+4LPLoHvxQIxRgJ9iNNXqf2SYJhcvCtJiVWo85TsyFOuq7EyBPJrAdhEgE0cTq16FQXhYPJFqSfiVn0IQnPOy0LbU4BeG94QjdYNB0CiQ3QaxQqD2ebSMiNjaVaw8WaM4Z5WnzcVDsr4eGweSLa2DE3BWViaxhZFIcSTjgxNCAfelg+hznVOYoe5VqTYs1g7WtfTm3e4/WduC6p+qqAM8H4ZyrJCGpewThTDPe6H7CzX/zQ8Tm+r65HeZn+MsmxUciEWPlAVaK/VBaQBWfoG/aRL/jSZIQfep/89GjasWmbaWzeEZ2R1FOjvyJT37O9B8046SRSKVEnXWlBqbkb5XCS3qFeuE9xb9+frEknxWB5h1D/hruz2iVDEAS7+qkEz5Ot5agHJc7WCdY94Ws61sURcX5nG8UELGBAHZ3i+3VulAyT0nKNNz4K2LBHBWJcTBX1wzf+//u/j/9+//v87+9/l9Lbh/L/uyNYiTsWV2LwsjaA6MxTuzFMqmxW8Jw/+IppdX8t/Clgi1rI1SN0UC/r6tX/4lUc2VV1OQReSeCsjUpKZchw4XUcjHfw6ryCV3R8s6VXm67vp4n+lcPV9gJwmbKQEsmrJi9c2vkwrm8HFbVYNTaRGq8D91t9n5+U+aD/hNtN3HjC/nC/vUoGFSCkXP+NlRcmLUqLbiUBl4LYf1U/CCvwtd3ryCH8gUmGITAxiH1O5rnGTz7y1LuFjmnFGQ1UWuM7HwfXtWl2fPFKklYwNUpF2IL/TmaRETjQiM5SJacI+3Gv5MBU8lP5Io6gWkawpyzNEVGqOdx4YlO1dCvjbWFZWbCmeiFKPSlMKtKcMFLs/KQxtgAHi7NZNCQ32bBAW2mbHflVZ8wXKi1JKVHkW20bnYnl3dKWJeWJOiX3oKPBD6Zbi0ZvSIuWktUHB8qDR8DMMh1ZfkBL9FS9x5r0hBGLJ8pUCJv3NYH+Ae8p40mZWd5m5fhobFjQeQvqTT4VKWIYfRL0tfaXKiVl75hHReuTJEcqVlug+eOIIc4bdIydtn2K0iNZPsYWQvQio2qbO3OqAlPHDDOB7DfjGEfVF51FqqNacd6QmgFKJpMfLp5DHTv4wXlONKVXF9zTJpDV4m1sYZqJPhotcsliZM8yksKkCkzpiXt+EcRQvSQqmBS9WdWkxMTJXPSw94jqI3varCjQxTazjlMH8jTS8ilaW8014/vwA/LNa+YiFoyyx3s/KswP3O8QW1jtq45yTM/DX9a8M4voTVaO2ebvw1EooDw/yg6Y1faY+WwrdVs5Yt0hQ5EwRfYXSFxray1YvSM+kYmlpLG2/9mm1MfmbKHXr44Ih8nVKb1M537ZANUkCtdsPZ80JVKVKabVHCadaLXg+IV8i5GSwpZti0h6diTaKs9sdpUKEpd7jDUpYmHtiX33SKiO3tuydkaxA7pEc9XIQEOfWJlszj5YpL5bKeQyT7aZSBOamvSHl8xsWvgo26IP/bqk+0EJUz+gkkcvlUlyPp2kdKFtt7y5aCdks9ZJJcFp5ZWeaWKgtnXMN3ORwGLBE0PtkEIek5FY2aVssUZHtsWIvnljMVJtuVIjpZup/5VL1yPOHWWHkOMc6YySWMckczD5jUj2mlLVquFaMU8leGVaqeXis+aRRL8zm4WuBk6cyWfGMxgtr8useQEx7k/PvRoZyd9nde1GUCV84gMX8Ogu/BWezYPSR27llzQnA97oo0pYyxobYUJfsj+ysTm9zJ+S4pk0TGo9VTG0KjqYhTmALfoDZVKla2b5yhv241PxFaLJs3i05K0AAIdcGxCJZmT3ZdT7CliR7q+kur7WdQjygYtOWRL9B8E4s4LI8KpAj7bE0dg7DLOaX+MGeAi0hMMSSWZEz+RudXbZCsGYS0QqiXjH9XQbd8sCB+nIVTq7/T/FDS+zWY9q7Z2fdq1tdLb6v3hKKVDAw5gjj6o9r1wHFROdHc18MJp4SJ2Ucvu+iQ9EgkekW8VCM+psM6y+/2SBy8tNN4a3L1MzP+OLsyvESo5gS7IQOnIqMmviJBVc6zbVG1n8eXiA3j46kmvvtJlewwNDrxk4SbJOtP/TV/lIVK9ueShNbbMHfwnLTLLhbZuO79ec5XvfgRwLFK+w1r5ZWW15rVFZrE+wKqNRv5KqsLNfpGgnoUU6Y71NxEmN7MyqwqAQqoIULOw/LbuUB2+uE75gJt+kq1qY4LoxV+qR/zalupea3D5+WMeaRIn0sAI6DDWDh158fqUb4YhAxhREbUN0qyyJYkBU4V2KARXDT65gW3gRsiv7xSPYEKLwzgriWcWgPr0sbZnv7m1XHNFW6xPdGNZUdxFiUYlmXNjDVWuu7LCkX/nVkrXaJhiYktBISC2xgBXQnNEP+cptWl1eG62a7CPXrnrkTQ5BQASbEqUZWMDiZUisKyHDeLFOaJILUo5f6iDt4ZO8MlqaKLto0AmTHVVbkGuyPa1R/ywZsWRoRDoRdNMMHwYTsklMVnlAd2S0282bgMI8fiJpDh69OSL6K3qbo20KfpNMurnYGQSr/stFqZ7hYsxKlLnKAKhsmB8AIpEQ4bd/NrTLTXefsE6ChRmKWjXKVgpGoPs8GAicgKVw4K0qgDgy1A6hFq1WRat3fHF+FkU+b6H4NWpOU3KXTxrIb2qSHAb+qhm8hiSROi/9ofapjxhyKxxntPpge6KL5Z4+WBMYkAcE6+0Hd3Yh2zBsK2MV3iW0Y6cvOCroXlRb2MMJtdWx+3dkFzGh2Pe3DZ9QpSqpaR/rE1ImOrHqYYyccpiLC22amJIjRWVAherTfpQLmo6/K2pna85GrDuQPlH1Tsar8isAJbXLafSwOof4gg9RkAGm/oYpBQQiPUoyDk2BCQ1k+KILq48ErFo4WSRhHLq/y7mgw3+L85PpP6xWr6cgp9sOjYjKagOrxF148uhuaWtjet953fh1IQiEzgC+d2IgBCcUZqgTAICm2bR8oCjDLBsmg+ThyhfD+zBalsKBY1Ce54Y/t9cwfbLu9SFwEgphfopNA3yNxgyDafUM3mYTovZNgPGdd4ZFFOj1vtfFW3u7N+iHEN1HkeesDMXKPyoCDCGVMo4GCCD6PBhQ3dRZIHy0Y/3MaE5zU9mTCrwwnZojtE+qNpMSkJSpmGe0EzLyFelMJqhfFQ7a50uXxZ8pCc2wxtAKWgHoeamR2O7R+bq7IbPYItO0esdRgoTaY38hZLJ5y02oIVwoPokGIzxAMDuanQ1vn2WDQ00Rh6o5QOaCRu99fwDbQcN0XAuqkFpxT/cfz3slGRVokrNU0iqiMAJFEbKScZdmSkTUznC0U+MfwFOGdLgsewRyPKwBZYSmy6U325iUhBQNxbAC3FLKDV9VSOuQpOOukJ/GAmu/tyEbX9DgEp6dv1zoU0IqzpG6gssSjIYRVPGgU1QAQYRgIT8gEV0EXr1sqeh2I6rXjtmoCYyEDCe/PkFEi/Q48FuT29p557iN+LCwk5CK/CZ2WdAdfQZh2Z9QGrzPLSNRj5igUWzl9Vi0rCqH8G1Kp4QMLkuwMCAypdviDXyOIk0AHTM8HBYKh3b0/F+DxoNj4ZdoZfCpQVdnZarqoMaHWnMLNVcyevytGsrXQEoIbubqWYNo7NRHzdc0zvT21fWVirj7g36iy6pxogfvgHp1xH1Turbz8QyyHnXeBJicpYUctbzApwzZ1HT+FPEXMAgUZetgeGMwt4G+DHiDT2Lu+PT21fjJCAfV16a/Wu1PqOkUHSTKYhWW6PhhHUlNtWzFnA7MbY+r64vkwdpfNB2JfWgWXAvkzd42K4lN9x7Wrg4kIKgXCb4mcW595MCPJ/cTfPAMQMFWwnqwde4w8HZYJFpQwcSMhjVz4B8p6ncSCN1X4klxoIH4BN2J6taBMj6lHkAOs8JJAmXq5xsQtrPIPIIp/HG6i21xMGcFgqDXSRF0xQg14d2uy6HgKE13LSvQe52oShF5Jx1R6avyL4thhXQZHfC94oZzuPUBKFYf1VvDaxIrtV6dNGSx7DO0i1p6CzBkuAmEqyWceQY7F9+U0ObYDzoa1iKao/cOD/v6Q9gHrrr1uCeOk8fST9MG23Ul0KmM3r+Wn6Hi6WAcL7gEeaykicvgjzkjSwFsAXIR81Zx4QJ6oosVyJkCcT+4xAldCcihqvTf94HHUPXYp3REIaR4dhpQF6+FK1H0i9i7Pvh8owu3lO4PT1iuqu+DkL2Bj9+kdfGAg2TXw03iNHyobxofLE2ibjsYDPgeEQlRMR7afXbSGQcnPjI2D+sdtmuQ771dbASUsDndU7t58jrrNGRzISvwioAlHs5FA+cBE5Ccznkd8NMV6BR6ksnKLPZnMUawRDU1MZ/ib3xCdkTblHKu4blNiylH5n213yM0zubEie0o4JhzcfAy3H5qh2l17uLooBNLaO+gzonTH2uF8PQu9EyH+pjGsACTMy4cHzsPdymUSXYJOMP3yTkXqvO/lpvt0cX5ekDEu9PUfBeZODkFuAjXCaGdi6ew4qxJ8PmFfwmPpkgQjQlWqomFY6UkjmcnAtJG75EVR+NpzGpP1Ef5qUUbfowrC3zcSLX3BxgWEgEx/v9cP8H8u1Mvt9/rMDYf6sjwU1xSOPBgzFEeJLMRVFtKo5QHsUYT8ZRLCah27599EuqoC9PYjYO6aoAMHB8X1OHwEAYouHfHB3nyb2B+SnZxM/vw/bCtORjLMSy5aZoEpvgdGvlJfNPFUu/p7Z4VVK1hiI0/UTuB3ZPq4ohEbm7Mntgc1evEtknaosgZSwnDC2BdMmibpeg48X8Ixl+/8+xXdbshQXUPPvx8jT3fkELivHSmqbhblfNFShWAyQnJ3WBU6SMYSIpTDmHjdLVAdlADdz9gCplZw6mTiHqDwIsxbm9ErGusiVpg2w8Q3khKV/R9Oj8PFeF43hmW/nSd99nZzhyjCX3QOZkkB6BsH4H866WGyv9E0hVAzPYah2tkRfQZMmP2rinfOeQalge0ovhduBjJs9a1GBwReerceify49ctOh5/65ATYuMsAkVltmvTLBk4oHpdl6i+p8DoNj4Fb2vhdFYer2JSEilEwPd5n5zNoGBXEjreg/wh2NFnNRaIUHSOXa4eJRwygZoX6vnWnqVdCRT1ARxeFrNBJ+tsdooMwqnYhE7zIxnD8pZH+P0Nu1wWxCPTADfNWmqx626IBJJq6NeapcGeOmbtXvl0TeWG0Y7OGGV4+EHTtNBIT5Wd0Bujl7inXgZgfXTM5efD3qDTJ54O9v3Bkv+tdIRlq1kXcVD0BEMirmFxglNPt5pedb1AnxuCYMChUykwsTIWqT23XDpvTiKEru1cTcEMeniB+HQDehxPXNmkotFdwUPnilB/u4Nx5Xc6l8J9jH1EgKZUUt8t8cyoZleDBEt8oibDmJRAoMKJ5Oe9CSWS5ZMEJvacsGVdXDWjp/Ype5x0p9PXB2PAwt2LRD3d+ftNgpuyvxlP8pB84oB1i73vAVpwyrmXW72hfW6Dzn9Jkj4++0VQ4d0KSx1AsDA4OtXXDo63/w+GD+zC7w5SJaxsmnlYRQ4dgdjA7tTl2KNLnpJ+mvkoDxtt1a4oPaX3EVqj96o9sRKBQqU7ZOiupeAIyLMD+Y3YwHx30XWHB5CQiw7q3mj1EDlP2eBsZbz79ayUMbyHQ7s8gu4Lgip1LiGJj7NQj905/+rgUYKAA5qdrlHKIknWmqfuR+PB8RdBkDg/NgnlT89G72h2NvySnj7UyBwD+mi/IWs1xWbxuVwUIVXun5cMqBtFbrccI+DILjsVQg6eeq0itiRfedn89CvyFtpkxaauEvSANuZmB1p8FGPbU94J9medwsZ9HkUYjmI7OH5HuxendLbxTaYrPuIfE2ffXFKhoNBUp33HsFAXmCV/Vxpq5AYgFoRr5Ay93ZLRlgaIPjhZjXZZChT+aE5iWAXMX0oSFQEtwjiuhQQItTQX5IYrKfKB+queTNplR1Hoflo5/I6aPPmACwQCE2jTOYo5Dz1cs7Sod0KTG/3kEDGk3kUaUCON19xSJCab3kNpWZhSWkO8l+SpW70Wn3g0ciOIJO5JXma6dbos6jyisuxXwUUhj2+1uGhcvuliKtWwsUTw4gi1c/diEEpZHoKoxTBeMDmhPhKTx7TXWRakV8imJR355DcIHkR9IREHxohP4TbyR5LtFU24umRPRmEYHbpe1LghyxPx7YgUHjNbbQFRQhh4KeU1EabXx8FS3JAxp2rwRDoeWkJgWRUSKw6gGP5U2PuO9V4ZuiKXGGzFQuRuf+tkSSsbBtRJKhCi3ENuLlXhPbjTKD4djXVnfXFds6Zb+1XiUrRfyayGxJq1+SYBEfbKlgjiSmk0orgTqzSS+DZ5rTqsJbttiNtp+KMqGE2AHGFw6jQqM5vD6vMptmXV9OAjq49Uf/Lx9Opam+Hn5O9p8qoBBAQixzQZ4eNVkO9sPzJAMyR1y4/RCQQ1s0pV5KAU5sKLw3tkcFbI/JqrjCsK4Mw+W8aod4lioYuawUiCyVWBE/qPaFi5bnkgpfu/ae47174rI1fqQoTbW0HrU6FAejq7ByM0V4zkZTg02/YJK2N7hUQRCeZ4BIgSEqgD8XsjzG6LIsSbuHoIdz/LhFzbNn1clci1NHWJ0/6/O8HJMdIpEZbqi1RrrFfoo/rI/7ufm2MPG5lUI0IYJ4MAiHRTSOFJ2oTverFHYXThkYFIoyFx6rMYFgaOKM4xNWdlOnIcKb/suptptgTOTdVIf4YgdaAjJnIAm4qNNHNQqqAzvi53GkyRCEoseUBrHohZsjUbkR8gfKtc/+Oa72lwxJ8Mq6HDfDATbfbJhzeIuFQJSiw1uZprHlzUf90WgqG76zO0eCB1WdPv1IT6sNxxh91GEL2YpgC97ikFHyoaH92ndwduqZ6IYjkg20DX33MWdoZk7QkcKUCgisIYslOaaLyvIIqRKWQj16jE1DlQWJJaPopWTJjXfixEjRJJo8g4++wuQjbq+WVYjsqCuNIQW3YjnxKe2M5ZKEqq+cX7ZVgnkbsU3RWIyXA1rxv4kGersYJjD//auldXGmcEbcfTeF16Y1708FB1HIfmWv6dSFi6oD4E+RIjCsEZ+kY7dKnwReJJw3xCjKvi3kGN42rvyhUlIz0Bp+fNSV5xwFiuBzG296e5s/oHoFtUyUplmPulIPl+e1CQIQVtjlzLzzzbV+D/OVQtYzo5ixtMi5BmHuG4N/uKfJk5UIREp7+12oZlKtPBomXSzAY0KgtbPzzZoHQxujnREUgBU+O/jKKhgxVhRPtbqyHiUaRwRpHv7pgRPyUrnE7fYkVblGmfTY28tFCvlILC04Tz3ivkNWVazA+OsYrxvRM/hiNn8Fc4bQBeUZABGx5S/xFf9Lbbmk298X7iFg2yeimvsQqqJ+hYbt6uq+Zf9jC+Jcwiccd61NKQtFvGWrgJiHB5lwi6fR8KzYS7EaEHf/ka9EC7H8D+WEa3TEACHBkNSj/cXxFeq4RllC+fUFm2xtstYLL2nos1DfzsC9vqDDdRVcPA3Ho95aEQHvExVThXPqym65llkKlfRXbPTRiDepdylHjmV9YTWAEjlD9DdQnCem7Aj/ml58On366392214B5zrmQz/9ySG2mFqEwjq5sFl5tYJPw5hNz8lyZPUTsr5E0F2C9VMPnZckWP7+mbwp/BiN7f4kf7vtGnZF2JGvjK/sDX1RtcFY5oPQnE4lIAYV49U3C9SP0LCY/9i/WIFK9ORjzM9kG/KGrAuwFmgdEpdLaiqQNpCTGZVuAO65afkY1h33hrqyLjZy92JK3/twdj9pafFcwfXONmPQWldPlMe7jlP24Js0v9m8bIJ9TgS2IuRvE9ZVRaCwSJYOtAfL5H/YS4FfzKWKbek+GFulheyKtDNlBtrdmr+KU+ibHTdalzFUmMfxw3f36x+3cQbJLItSilW9cuvZEMjKw987jykZRlsH/UI+HlKfo2tLwemBEeBFtmxF2xmItA/dAIfQ+rXnm88dqvXa+GapOYVt/2waFimXFx3TC2MUiOi5/Ml+3rj/YU6Ihx2hXgiDXFsUeQkRAD6wF3SCPi2flk7XwKAA4zboqynuELD312EJ88lmDEVOMa1W/K/a8tGylZRMrMoILyoMQzzbDJHNZrhH77L9qSC42HVmKiZ5S0016UTp83gOhCwz9XItK9fgXfK3F5d7nZCBUekoLxrutQaPHa16Rjsa0gTrzyjqTnmcIcrxg6X6dkKiucudc0DD5W4pJPf0vuDW8r5/uw24YfMuxFRpD2ovT2mFX79xH6Jf+MVdv2TYqR6/955QgVPe3JCD/WjAYcLA9tpXgFiEjge2J5ljeI/iUzg91KQuHkII4mmHZxC3XQORLAC6G7uFn5LOmlnXkjFdoO976moNTxElS8HdxWoPAkjjocDR136m2l+f5t6xaaNgdodOvTu0rievnhNAB79WNrVs6EsPgkgfahF9gSFzzAd+rJSraw5Mllit7vUP5YxA843lUpu6/5jAR0RvH4rRXkSg3nE+O5GFyfe+L0s5r3k05FyghSFnKo4TTgs07qj4nTLqOYj6qaW9knJTDkF5OFMYbmCP+8H16Ty482OjvERV6OFyw043L9w3hoJi408sR+SGo1WviXUu8d7qS+ehKjpKwxeCthsm2LBFSFeetx0x4AaKPxtp3CxdWqCsLrB1s/j5TAhc1jNZsXWl6tjo/WDoewxzg8T8NnhZ1niUwL/nhfygLanCnRwaFGDyLw+sfZhyZ1UtYTp8TYB6dE7R3VsKKH95CUxJ8u8N+9u2/9HUNKHW3x3w5GQrfOPafk2w5qZq8MaHT0ebeY3wIsp3rN9lrpIsW9c1ws3VNV+JwNz0Lo9+V7zZr6GD56We6gWVIvtmam5GPPkVAbr74r6SwhuL+TRXtW/0pgyX16VNl4/EAD50TnUPuwrW6OcUO2VlWXS0inq872kk7GUlW6o/ozFKq+Sip6LcTtSDfDrPTcCHhx75H8BeRon+KG2wRwzfDgWhALmiWOMO6h3pm1UCZEPEjScyk7tdLx6WrdA2N1QTPENvNnhCQjW6kl057/qv7IwRryHrZBCwVSbLLnFRiHdTwk8mlYixFt1slEcPD7FVht13HyqVeyD55HOXrh2ElAxJyinGeoFzwKA91zfrdLvDxJSjzmImfvTisreI25EDcVfGsmxLVbfU8PGe/7NmWWKjXcdTJ11jAlVIY/Bv/mcxg/Q10vCHwKG1GW/XbJq5nxDhyLqiorn7Wd7VEVL8UgVzpHMjQ+Z8DUgSukiVwWAKkeTlVVeZ7t1DGnCgJVIdBPZAEK5f8CDyDNo7tK4/5DBjdD5MPV86TaEhGsLVFPQSI68KlBYy84FievdU9gWh6XZrugvtCZmi9vfd6db6V7FmoEcRHnG36VZH8N4aZaldq9zZawt1uBFgxYYx+Gs/qW1jwANeFy+LCoymyM6zgG7j8bGzUyLhvrbJkTYAEdICEb4kMKusKT9V3eIwMLsjdUdgijMc+7iKrr+TxrVWG0U+W95SGrxnxGrE4eaJFfgvAjUM4SAy8UaRwE9j6ZQH5qYAWGtXByvDiLSDfOD0yFA3UCMKSyQ30fyy1mIRg4ZcgZHLNHWl+c9SeijOvbOJxoQy7lTN2r3Y8p6ovxvUY74aOYbuVezryqXA6U+fcp6wSV9X5/OZKP18tB56Ua0gMyxJI7XyNT7IrqN8GsB9rL/kP5KMrjXxgqKLDa+V5OCH6a5hmOWemMUsea9vQl9t5Oce76PrTyTv50ExOqngE3PHPfSL//AItPdB7kGnyTRhVUUFNdJJ2z7RtktZwgmQzhBG/G7QsjZmJfCE7k75EmdIKH7xlnmDrNM/XbTT6FzldcH/rcRGxlPrv4qDScqE7JSmQABJWqRT/TUcJSwoQM+1jvDigvrjjH8oeK2in1S+/yO1j8xAws/T5u0VnIvAPqaE1atNuN0cuRliLcH2j0nTL4JpcR7w9Qya0JoaHgsOiALLCCzRkl1UUESz+ze/gIXHGtDwgYrK6pCFKJ1webSDog4zTlPkgXZqxlQDiYMjhDpwTtBW2WxthWbov9dt2X9XFLFmcF+eEc1UaQ74gqZiZsdj63pH1qcv3Vy8JYciogIVKsJ8Yy3J9w/GhjWVSQAmrS0BPOWK+RKV+0lWqXgYMnIFwpcZVD7zPSp547i9HlflB8gVnSTGmmq1ClO081OW/UH11pEQMfkEdDFzjLC1Cdo/BdL3s7cXb8J++Hzz1rhOUVZFIPehRiZ8VYu6+7Er7j5PSZu9g/GBdmNzJmyCD9wiswj9BZw+T3iBrg81re36ihMLjoVLoWc+62a1U/7qVX5CpvTVF7rocSAKwv4cBVqZm7lLDS/qoXs4fMs/VQi6BtVbNA3uSzKpQfjH1o3x4LrvkOn40zhm6hjduDglzJUwA0POabgdXIndp9fzhOo23Pe+Rk9GSLX0d71Poqry8NQDTzNlsa+JTNG9+UrEf+ngxCjGEsDCc0bz+udVRyHQI1jmEO3S+IOQycEq7XwB6z3wfMfa73m8PVRp+iOgtZfeSBl01xn03vMaQJkyj7vnhGCklsCWVRUl4y+5oNUzQ63B2dbjDF3vikd/3RUMifPYnX5Glfuk2FsV/7RqjI9yKTbE8wJY+74p7qXO8+dIYgjtLD/N8TJtRh04N9tXJA4H59IkMmLElgvr0Q5OCeVfdAt+5hkh4pQgfRMHpL74XatLQpPiOyHRs/OdmHtBf8nOZcxVKzdGclIN16lE7kJ+pVMjspOI+5+TqLRO6m0ZpNXJoZRv9MPDRcAfJUtNZHyig/s2wwReakFgPPJwCQmu1I30/tcBbji+Na53i1W1N+BqoY7Zxo+U/M9XyJ4Ok2SSkBtoOrwuhAY3a03Eu6l8wFdIG1cN+e8hopTkiKF093KuH/BcB39rMiGDLn6XVhGKEaaT/vqb/lufuAdpGExevF1+J9itkFhCfymWr9vGb3BTK4j598zRH7+e+MU9maruZqb0pkGxRDRE1CD4Z8LV4vhgPidk5w2Bq816g3nHw1//j3JStz7NR9HIWELO8TMn3QrP/zZp//+Dv9p429/ogv+GATR+n/UdF+ns9xNkXZQJXY4t9jMkJNUFygAtzndXwjss+yWH9HAnLQQfhAskdZS2l01HLWv7L7us5uTH409pqitvfSOQg/c+Zt7k879P3K9+WV68n7+3cZfuRd/dDPP/03rn+d+/nBvWfgDlt8+LzjqJ/vx3CnNOwiXhho778C96iD+1TBvRZYeP+EH81LE0vVwOOrmCLB3iKzI1x+vJEsrPH4uF0UB4TJ4X3uDfOCo3PYpYe0MF4bouh0DQ/l43fxUF7Y+dpWuvTSffB0yO2UQUETI/LwCZE3BvnevJ7c9zUlY3H58xzke6DNFDQG8n0WtDN4LAYN4nogKav1ezOfK/z+t6tsCTp+dhx4ymjWuCJk1dEUifDP+HyS4iP/Vg9B2jTo9L4NbiBuDS4nuuHW6H+JDQn2JtqRKGkEQPEYE7uzazXIkcxIAqUq1esasZBETlEZY7y7Jo+RoV/IsjY9eIMkUvr42Hc0xqtsavZvhz1OLwSxMOTuqzlhb0WbdOwBH9EYiyBjatz40bUxTHbiWxqJ0uma19qhPruvcWJlbiSSH48OLDDpaHPszvyct41ZfTu10+vjox6kOqK6v0K/gEPphEvMl/vwSv+A4Hhm36JSP9IXTyCZDm4kKsqD5ay8b1Sad/vaiyO5N/sDfEV6Z4q95E+yfjxpqBoBETW2C7xl4pIO2bDODDFurUPwE7EWC2Uplq+AHmBHvir2PSgkR12/Ry65O0aZtQPeXi9mTlF/Wj5GQ+vFkYyhXsLTjrBSP9hwk4GPqDP5rBn5/l8b0mLRAvRSzXHc293bs3s8EsdE3m2exxidWVB4joHR+S+dz5/W+v00K3TqN14CDBth8eWcsTbiwXPsygHdGid0PEdy6HHm2v/IUuV5RVapYmzGsX90mpnIdNGcOOq64Dbc5GUbYpD9M7S+6cLY//QmjxFLP5cuTFRm3vA5rkFZroFnO3bjHF35uU3s8mvL7Tp9nyTc4mymTJ5sLIp7umSnGkO23faehtz3mmTS7fbVx5rP7x3HXIjRNeq/A3xCs9JNB08c9S9BF2O3bOur0ItslFxXgRPdaapBIi4dRpKGxVz7ir69t/bc9qTxjvtOyGOfiLGDhR4fYywHv1WdOplxIV87TpLBy3Wc0QP0P9s4G7FBNOdITS/tep3o3h1TEa5XDDii7fWtqRzUEReP2fbxz7bHWWJdbIOxOUJZtItNZpTFRfj6vm9sYjRxQVO+WTdiOhdPeTJ+8YirPvoeL88l5iLYOHd3b/Imkq+1ZN1El3UikhftuteEYxf1Wujof8Pr4ICTu5ezZyZ4tHQMxlzUHLYO2VMOoNMGL/20S5i2o2obfk+8qqdR7xzbRDbgU0lnuIgz4LelQ5XS7xbLuSQtNS95v3ZUOdaUx/Qd8qxCt6xf2E62yb/HukLO6RyorV8KgYl5YNc75y+KvefrxY+lc/64y9kvWP0a0bDz/rojq+RWjO06WeruWqNFU7r3HPIcLWRql8ICZsz2Ls/qOm/CLn6++X+Qf7mGspYCrZod/lpl6Rw4xN/yuq8gqV4B6aHk1hVE1SfILxWu5gvXqbfARYQpspcxKp1F/c8XOPzkZvmoSw+vEqBLdrq1fr3wAPv5NnM9i8F+jdAuxkP5Z71c6uhK3enlnGymr7UsWZKC12qgUiG8XXGQ9mxnqz4GSIlybF9eXmbqj2sHX+a1jf0gRoONHRdRSrIq03Ty89eQ1GbV/Bk+du4+V15zls+vvERvZ4E7ZbnxWTVjDjb4o/k8jlw44pTIrUGxxuJvBeO+heuhOjpFsO6lVJ/aXnJDa/bM0Ql1cLbXE/Pbv3EZ3vj3iVrB5irjupZTzlnv677NrI9UNYNqbPgp/HZXS+lJmk87wec+7YOxTDo2aw2l3NfDr34VNlvqWJBknuK7oSlZ6/T10zuOoPZOeoIk81N+sL843WJ2Q4Z0fZ3scsqC/JV2fuhWi1jGURSKZV637lf53Xnnx16/vKEXY89aVJ0fv91jGdfG+G4+sniwHes4hS+udOr4RfhFhG/F5gUG35QaU+McuLmclb5ZWmR+sG5V6nf+PxYzlrnFGxpZaK8eqqVo0NfmAWoGfXDiT/FnUbWvzGDOTr8aktOZWg4BYvz5YH12ZbfCcGtNk+dDAZNGWvHov+PIOnY9Prjg8h/wLRrT69suaMVZ5bNuK00lSVpnqSX1NON/81FoP92rYndionwgOiA8WMf4vc8l15KqEEG4yAm2+WAN5Brfu1sq9suWYqgoajgOYt/JCk1gC8wPkK+XKCtRX6TAtgvrnuBgNRmn6I8lVDipOVB9kX6Oxkp4ZKyd1M6Gj8/v2U7k+YQBL95Kb9PQENucJb0JlW3b5tObN7m/Z1j1ev388d7o15zgXsI9CikAGAViR6lkJv7nb4Ak40M2G8TJ447kN+pvfHiOFjSUSP6PM+QfbAywKJCBaxSVxpizHseZUyUBhq59vFwrkyGoRiHbo0apweEZeSLuNiQ+HAekOnarFg00dZNXaPeoHPTRR0FmEyqYExOVaaaO8c0uFUh7U4e/UxdBmthlBDgg257Q33j1hA7HTxSeTTSuVnPZbgW1nodwmG16aKBDKxEetv7D9OjO0JhrbJTnoe+kcGoDJazFSO8/fUN9Jy/g4XK5PUkw2dgPDGpJqBfhe7GA+cjzfE/EGsMM+FV9nj9IAhrSfT/J3QE5TEIYyk5UjsI6ZZcCPr6A8FZUF4g9nnpVmjX90MLSQysIPD0nFzqwCcSJmIb5mYv2Cmk+C1MDFkZQyCBq4c/Yai9LJ6xYkGS/x2s5/frIW2vmG2Wrv0APpCdgCA9snFvfpe8uc0OwdRs4G9973PGEBnQB5qKrCQ6m6X/H7NInZ7y/1674/ZXOVp7OeuCRk8JFS516VHrnH1HkIUIlTIljjHaQtEtkJtosYul77cVwjk3gW1Ajaa6zWeyHGLlpk3VHE2VFzT2yI/EvlGUSz2H9zYE1s4nsKMtMqNyKNtL/59CpFJki5Fou6VXGm8vWATEPwrUVOLvoA8jLuwOzVBCgHB2Cr5V6OwEWtJEKokJkfc87h+sNHTvMb0KVTp5284QTPupoWvQVUwUeogZR3kBMESYo0mfukewRVPKh5+rzLQb7HKjFFIgWhj1w3yN/qCNoPI8XFiUgBNT1hCHBsAz8L7Oyt8wQWUFj92ONn/APyJFg8hzueqoJdNj57ROrFbffuS/XxrSXLTRgj5uxZjpgQYceeMc2wJrahReSKpm3QjHfqExTLAB2ipVumE8pqcZv8LYXQiPHHsgb5BMW8zM5pvQit+mQx8XGaVDcfVbLyMTlY8xcfmm/RSAT/H09UQol5gIz7rESDmnrQ4bURIB4iRXMDQwxgex1GgtDxKp2HayIkR+E/aDmCttNm2C6lytWdfOVzD6X2SpDWjQDlMRvAp1symWv4my1bPCD+E1EmGnMGWhNwmycJnDV2WrQNxO45ukEb08AAffizYKVULp15I4vbNK5DzWwCSUADfmKhfGSUqii1L2UsE8rB7mLuHuUJZOx4+WiizHBJ/hwboaBzhpNOVvgFTf5cJsHef7L1HCI9dOUUbb+YxUJWn6dYOLz+THi91kzY5dtO5c+grX7v0jEbsuoOGnoIreDIg/sFMyG+TyCLIcAWd1IZ1UNFxE8Uie13ucm40U2fcxC0u3WLvLOxwu+F7MWUsHsdtFQZ7W+nlfCASiAKyh8rnP3EyDByvtJb6Kax6/HkLzT9SyEyTMVM1zPtM0MJY14DmsWh4MgD15Ea9Hd00AdkTZ0EiG5NAGuIBzQJJ0JR0na+OB7lQA6UKxMfihIQ7GCCnVz694QvykWXTxpS2soDu+smru1UdIxSvAszBFD1c8c6ZOobA8bJiJIvuycgIXBQIXWwhyTgZDQxJTRXgEwRNAawGSXO0a1DKjdihLVNp/taE/xYhsgwe+VpKEEB4LlraQyE84gEihxCnbfoyOuJIEXy2FIYw+JjRusybKlU2g/vhTSGTydvCvXhYBdtAXtS2v7LkHtmXh/8fly1do8FI/D0f8UbzVb5h+KRhMGSAmR2mhi0YG/uj7wgxcfzCrMvdjitUIpXDX8ae2JcF/36qUWIMwN6JsjaRGNj+jEteGDcFyTUb8X/NHSucKMJp7pduxtD6KuxVlyxxwaeiC1FbGBESO84lbyrAugYxdl+2N8/6AgWpo/IeoAOcsG35IA/b3AuSyoa55L7llBLlaWlEWvuCFd8f8NfcTUgzJv6CbB+6ohWwodlk9nGWFpBAOaz5uEW5xBvmjnHFeDsb0mXwayj3mdYq5gxxNf3H3/tnCgHwjSrpSgVxLmiTtuszdRUFIsn6LiMPjL808vL1uQhDbM7aA43mISXReqjSskynIRcHCJ9qeFopJfx9tqyUoGbSwJex/0aDE3plBPGtNBYgWbdLom3+Q/bjdizR2/AS/c/dH/d3G7pyl1qDXgtOFtEqidwLqxPYtrNEveasWq3vPUUtqTeu8gpov4bdOQRI2kneFvRNMrShyVeEupK1PoLDPMSfWMIJcs267mGB8X9CehQCF0gIyhpP10mbyM7lwW1e6TGvHBV1sg/UyTghHPGRqMyaebC6pbB1WKNCQtlai1GGvmq9zUKaUzLaXsXEBYtHxmFbEZ2kJhR164LhWW2Tlp1dhsGE7ZgIWRBOx3Zcu2DxgH+G83WTPceKG0TgQKKiiNNOlWgvqNEbnrk6fVD+AqRam2OguZb0YWSTX88N+i/ELSxbaUUpPx4vJUzYg/WonSeA8xUK6u7DPHgpqWpEe6D4cXg5uK9FIYVba47V/nb+wyOtk+zG8RrS4EA0ouwa04iByRLSvoJA2FzaobbZtXnq8GdbfqEp5I2dpfpj59TCVif6+E75p665faiX8gS213RqBxTZqfHP46nF6NSenOneuT+vgbLUbdTH2/t0REFXZJOEB6DHvx6N6g9956CYrY/AYcm9gELJXYkrSi+0F0geKDZgOCIYkLU/+GOW5aGj8mvLFgtFH5+XC8hvAE3CvHRfl4ofM/Qwk4x2A+R+nyc9gNu/9Tem7XW4XRnyRymf52z09cTOdr+PG6+P/Vb4QiXlwauc5WB1z3o+IJjlbxI8MyWtSzT+k4sKVbhF3xa+vDts3NxXa87iiu+xRH9cAprnOL2h6vV54iQRXuOAj1s8nLFK8gZ70ThIQcWdF19/2xaJmT0efrkNDkWbpAQPdo92Z8+Hn/aLjbOzB9AI/k12fPs9HhUNDJ1u6ax2VxD3R6PywN7BrLJ26z6s3QoMp76qzzwetrDABKSGkfW5PwS1GvYNUbK6uRqxfyVGNyFB0E+OugMM8kKwmJmupuRWO8XkXXXQECyRVw9UyIrtCtcc4oNqXqr7AURBmKn6Khz3eBN96LwIJrAGP9mr/59uTOSx631suyT+QujDd4beUFpZ0kJEEnjlP+X/Kr2kCKhnENTg4BsMTOmMqlj2WMFLRUlVG0fzdCBgUta9odrJfpVdFomTi6ak0tFjXTcdqqvWBAzjY6hVrH9sbt3Z9gn+AVDpTcQImefbB4edirjzrsNievve4ZT4EUZWV3TxEsIW+9MT/RJoKfZZYSRGfC1CwPG/9rdMOM8qR/LUYvw5f/emUSoD7YSFuOoqchdUg2UePd1eCtFSKgxLSZ764oy4lvRCIH6bowPxZWwxNFctksLeil47pfevcBipkkBIc4ngZG+kxGZ71a72KQ7VaZ6MZOZkQJZXM6kb/Ac0/XkJx8dvyfJcWbI3zONEaEPIW8GbkYjsZcwy+eMoKrYjDmvEEixHzkCSCRPRzhOfJZuLdcbx19EL23MA8rnjTZZ787FGMnkqnpuzB5/90w1gtUSRaWcb0eta8198VEeZMUSfIhyuc4/nywFQ9uqn7jdqXh+5wwv+RK9XouNPbYdoEelNGo34KyySwigsrfCe0v/PlWPvQvQg8R0KgHO18mTVThhQrlbEQ0Kp/JxPdjHyR7E1QPw/ut0r+HDDG7BwZFm9IqEUZRpv2WpzlMkOemeLcAt5CsrzskLGaVOAxyySzZV/D2EY7ydNZMf8e8VhHcKGHAWNszf1EOq8fNstijMY4JXyATwTdncFFqcNDfDo+mWFvxJJpc4sEZtjXyBdoFcxbUmniCoKq5jydUHNjYJxMqN1KzYV62MugcELVhS3Bnd+TLLOh7dws/zSXWzxEb4Nj4aFun5x4kDWLK5TUF/yCXB/cZYvI9kPgVsG2jShtXkxfgT+xzjJofXqPEnIXIQ1lnIdmVzBOM90EXvJUW6a0nZ/7XjJGl8ToO3H/fdxnxmTNKBZxnkpXLVgLXCZywGT3YyS75w/PAH5I/jMuRspej8xZObU9kREbRA+kqjmKRFaKGWAmFQspC+QLbKPf0RaK3OXvBSWqo46p70ws/eZpu6jCtZUgQy6r4tHMPUdAgWGGUYNbuv/1a6K+MVFsd3T183+T8capSo6m0+Sh57fEeG/95dykGJBQMj09DSW2bY0mUonDy9a8trLnnL5B5LW3Nl8rJZNysO8Zb+80zXxqUGFpud3Qzwb7bf+8mq6x0TAnJU9pDQR9YQmZhlna2xuxJt0aCO/f1SU8gblOrbIyMsxTlVUW69VJPzYU2HlRXcqE2lLLxnObZuz2tT9CivfTAUYfmzJlt/lOPgsR6VN64/xQd4Jlk/RV7UKVv2Gx/AWsmTAuCWKhdwC+4HmKEKYZh2Xis4KsUR1BeObs1c13wqFRnocdmuheaTV30gvVXZcouzHKK5zwrN52jXJEuX6dGx3BCpV/++4f3hyaW/cQJLFKqasjsMuO3B3WlMq2gyYfdK1e7L2pO/tRye2mwzwZPfdUMrl5wdLqdd2Kv/wVtnpyWYhd49L6rsOV+8HXPrWH2Kup89l2tz6bf80iYSd+V4LROSOHeamvexR524q4r43rTmtFzQvArpvWfLYFZrbFspBsXNUqqenjxNNsFXatZvlIhk7teUPfK+YL32F8McTnjv0BZNppb+vshoCrtLXjIWq3EJXpVXIlG6ZNL0dh6qEm2WMwDjD3LfOfkGh1/czYc/0qhiD2ozNnH4882MVVt3JbVFkbwowNCO3KL5IoYW5wlVeGCViOuv1svZx7FbzxKzA4zGqBlRRaRWCobXaVq4yYCWbZf8eiJwt3OY+MFiSJengcFP2t0JMfzOiJ7cECvpx7neg1Rc5x+7myPJOXt2FohVRyXtD+/rDoTOyGYInJelZMjolecVHUhUNqvdZWg2J2t0jPmiLFeRD/8fOT4o+NGILb+TufCo9ceBBm3JLVn+MO2675n7qiEX/6W+188cYg3Zn5NSTjgOKfWFSAANa6raCxSoVU851oJLY11WIoYK0du0ec5E4tCnAPoKh71riTsjVIp3gKvBbEYQiNYrmH22oLQWA2AdwMnID6PX9b58dR2QKo4qag1D1Z+L/FwEKTR7osOZPWECPJIHQqPUsM5i/CH5YupVPfFA5pHUBcsesh8eO5YhyWnaVRPZn/BmdXVumZWPxMP5e28zm2uqHgFoT9CymHYNNrzrrjlXZM06HnzDxYNlI5b/QosxLmmrqDFqmogQdqk0WLkUceoAvQxHgkIyvWU69BPFr24VB6+lx75Rna6dGtrmOxDnvBojvi1/4dHjVeg8owofPe1cOnxU1ioh016s/Vudv9mhV9f35At+Sh28h1bpp8xhr09+vf47Elx3Ms6hyp6QvB3t0vnLbOhwo660cp7K0vvepabK7YJfxEWWfrC2YzJfYOjygPwfwd/1amTqa0hZ5ueebhWYVMubRTwIjj+0Oq0ohU3zfRfuL8gt59XsHdwKtxTQQ4Y2qz6gisxnm2UdlmpEkgOsZz7iEk6QOt8BuPwr+NR01LTqXmJo1C76o1N274twJvl+I069TiLpenK/miRxhyY8jvYV6W1WuSwhH9q7kuwnJMtm7IWcqs7HsnyHSqWXLSpYtZGaR1V3t0gauninFPZGtWskF65rtti48UV9uV9KM8kfDYs0pgB00S+TlzTXV6P8mxq15b9En8sz3jWSszcifZa/NuufPNnNTb031pptt0+sRSH/7UG8pzbsgtt3OG3ut7B9JzDMt2mTZuyRNIV8D54TuTrpNcHtgmMlYJeiY9XS83NYJicjRjtJSf9BZLsQv629QdDsKQhTK5CnXhpk7vMNkHzPhm0ExW/VCGApHfPyBagtZQTQmPHx7g5IXXsrQDPzIVhv2LB6Ih138iSDww1JNHrDvzUxvp73MsQBVhW8EbrReaVUcLB1R3PUXyaYG4HpJUcLVxMgDxcPkVRQpL7VTAGabDzbKcvg12t5P8TSGQkrj/gOrpnbiDHwluA73xbXts/L7u468cRWSWRtgTwlQnA47EKg0OiZDgFxAKQQUcsbGomITgeXUAAyKe03eA7Mp4gnyKQmm0LXJtEk6ddksMJCuxDmmHzmVhO+XaN2A54MIh3niw5CF7PwiXFZrnA8wOdeHLvvhdoqIDG9PDI7UnWWHq526T8y6ixJPhkuVKZnoUruOpUgOOp3iIKBjk+yi1vHo5cItHXb1PIKzGaZlRS0g5d3MV2pD8FQdGYLZ73aae/eEIUePMc4NFz8pIUfLCrrF4jVWH5gQneN3S8vANBmUXrEcKGn6hIUN95y1vpsvLwbGpzV9L0ZKTan6TDXM05236uLJcIEMKVAxKNT0K8WljuwNny3BNQRfzovA85beI9zr1AGNYnYCVkR1aGngWURUrgqR+gRrQhxW81l3CHevjvGEPzPMTxdsIfB9dfGRbZU0cg/1mcubtECX4tvaedmNAvTxCJtc2QaoUalGfENCGK7IS/O8CRpdOVca8EWCRwv2sSWE8CJPW5PCugjCXPd3h6U60cPD+bdhtXZuYB6stcoveE7Sm5MM2yvfUHXFSW7KzLmi7/EeEWL0wqcOH9MOSKjhCHHmw+JGLcYE/7SBZQCRggox0ZZTAxrlzNNXYXL5fNIjkdT4YMqVUz6p8YDt049v4OXGdg3qTrtLBUXOZf7ahPlZAY/O+7Sp0bvGSHdyQ8B1LOsplqMb9Se8VAE7gIdSZvxbRSrfl+Lk5Qaqi5QJceqjitdErcHXg/3MryljPSIAMaaloFm1cVwBJ8DNmkDqoGROSHFetrgjQ5CahuKkdH5pRPigMrgTtlFI8ufJPJSUlGgTjbBSvpRc0zypiUn6U5KZqcRoyrtzhmJ7/caeZkmVRwJQeLOG8LY6vP5ChpKhc8Js0El+n6FXqbx9ItdtLtYP92kKfaTLtCi8StLZdENJa9Ex1nOoz1kQ7qxoiZFKRyLf4O4CHRT0T/0W9F8epNKVoeyxUXhy3sQMMsJjQJEyMOjmOhMFgOmmlscV4eFi1CldU92yjwleirEKPW3bPAuEhRZV7JsKV3Lr5cETAiFuX5Nw5UlF7d2HZ96Bh0sgFIL5KGaKSoVYVlvdKpZJVP5+NZ7xDEkQhmDgsDKciazJCXJ6ZN2B3FY2f6VZyGl/t4aunGIAk/BHaS+i+SpdRfnB/OktOvyjinWNfM9Ksr6WwtCa1hCmeRI6icpFM4o8quCLsikU0tMoZI/9EqXRMpKGaWzofl4nQuVQm17d5fU5qXCQeCDqVaL9XJ9qJ08n3G3EFZS28SHEb3cdRBdtO0YcTzil3QknNKEe/smQ1fTb0XbpyNB5xAeuIlf+5KWlEY0DqJbsnzJlQxJPOVyHiKMx5Xu9FcEv1Fbg6Fhm4t+Jyy5JC1W3YO8dYLsO0PXPbxodBgttTbH3rt9Cp1lJIk2r3O1Zqu94eRbnIz2f50lWolYzuKsj4PMok4abHLO8NAC884hiXx5Fy5pWKO0bWL7uEGXaJCtznhP67SlQ4xjWIfgq6EpZ28QMtuZK7JC0RGbl9nA4XtFLug/NLMoH1pGt9IonAJqcEDLyH6TDROcbsmGPaGIxMo41IUAnQVPMPGByp4mOmh9ZQMkBAcksUK55LsZj7E5z5XuZoyWCKu6nHmDq22xI/9Z8YdxJy4kWpD16jLVrpwGLWfyOD0Wd+cBzFBxVaGv7S5k9qwh/5t/LQEXsRqI3Q9Rm3QIoaZW9GlsDaKOUyykyWuhNOprSEi0s1G4rgoiX1V743EELti+pJu5og6X0g6oTynUqlhH9k6ezyRi05NGZHz0nvp3HOJr7ebrAUFrDjbkFBObEvdQWkkUbL0pEvMU46X58vF9j9F3j6kpyetNUBItrEubW9ZvMPM4qNqLlsSBJqOH3XbNwv/cXDXNxN8iFLzUhteisYY+RlHYOuP29/Cb+L+xv+35Rv7xudnZ6ohK4cMPfCG8KI7dNmjNk/H4e84pOxn/sZHK9psfvj8ncA8qJz7O8xqbxESDivGJOZzF7o5PJLQ7g34qAWoyuA+x3btU98LT6ZyGyceIXjrqob2CAVql4VOTQPUQYvHV/g4zAuCZGvYQBtf0wmd5lilrvuEn1BXLny01B4h4SMDlYsnNpm9d7m9h578ufpef9Z4WplqWQvqo52fyUA7J24eZD5av6SyGIV9kpmHNqyvdfzcpEMw97BvknV2fq+MFHun9BT3Lsf8pbzvisWiIQvYkng+8Vxk1V+dli1u56kY50LRjaPdotvT5BwqtwyF+emo/z9J3yVUVGfKrxQtJMOAQWoQii/4dp9wgybSa5mkucmRLtEQZ/pz0tL/NVcgWAd95nEQ3Tg6tNbuyn3Iepz65L3huMUUBntllWuu4DbtOFSMSbpILV4fy6wlM0SOvi6CpLh81c1LreIvKd61uEWBcDw1lUBUW1I0Z+m/PaRlX+PQ/oxg0Ye6KUiIiTF4ADNk59Ydpt5/rkxmq9tV5Kcp/eQLUVVmBzQNVuytQCP6Ezd0G8eLxWyHpmZWJ3bAzkWTtg4lZlw42SQezEmiUPaJUuR/qklVA/87S4ArFCpALdY3QRdUw3G3XbWUp6aq9z0zUizcPa7351p9JXOZyfdZBFnqt90VzQndXB/mwf8LC9STj5kenVpNuqOQQP3mIRJj7eV21FxG8VAxKrEn3c+XfmZ800EPb9/5lIlijscUbB6da0RQaMook0zug1G0tKi/JBC4rw7/D3m4ARzAkzMcVrDcT2SyFtUdWAsFlsPDFqV3N+EjyXaoEePwroaZCiLqEzb8MW+PNE9TmTC01EzWli51PzZvUqkmyuROU+V6ik+Le/9qT6nwzUzf9tP68tYei0YaDGx6kAd7jn1cKqOCuYbiELH9zYqcc4MnRJjkeGiqaGwLImhyeKs+xKJMBlOJ05ow9gGCKZ1VpnMKoSCTbMS+X+23y042zOb5MtcY/6oBeAo1Vy89OTyhpavFP78jXCcFH0t7Gx24hMEOm2gsEfGabVpQgvFqbQKMsknFRRmuPHcZu0Su/WMFphZvB2r/EGbG72rpGGho3h+Msz0uGzJ7hNK2uqQiE1qmn0zgacKYYZBCqsxV+sjbpoVdSilW/b94n2xNb648VmNIoizqEWhBnsen+d0kbCPmRItfWqSBeOd9Wne3c6bcd6uvXOJ6WdiSsuXq0ndhqrQ4QoWUjCjYtZ0EAhnSOP1m44xkf0O7jXghrzSJWxP4a/t72jU29Vu2rvu4n7HfHkkmQOMGSS+NPeLGO5I73mC2B7+lMiBQQZRM9/9liLIfowupUFAbPBbR+lxDM6M8Ptgh1paJq5Rvs7yEuLQv/7d1oU2woFSb3FMPWQOKMuCuJ7pDDjpIclus5TeEoMBy2YdVB4fxmesaCeMNsEgTHKS5WDSGyNUOoEpcC2OFWtIRf0w27ck34/DjxRTVIcc9+kqZE6iMSiVDsiKdP/Xz5XfEhm/sBhO50p1rvJDlkyyxuJ9SPgs7YeUJBjXdeAkE+P9OQJm6SZnn1svcduI78dYmbkE2mtziPrcjVisXG78spLvbZaSFx/Rks9zP4LKn0Cdz/3JsetkT06A8f/yCgMO6Mb1Hme0JJ7b2wZz1qleqTuKBGokhPVUZ0dVu+tnQYNEY1fmkZSz6+EGZ5EzL7657mreZGR3jUfaEk458PDniBzsSmBKhDRzfXameryJv9/D5m6HIqZ0R+ouCE54Dzp4IJuuD1e4Dc5i+PpSORJfG23uVgqixAMDvchMR0nZdH5brclYwRoJRWv/rlxGRI5ffD5NPGmIDt7vDE1434pYdVZIFh89Bs94HGGJbTwrN8T6lh1HZFTOB4lWzWj6EVqxSMvC0/ljWBQ3F2kc/mO2b6tWonT2JEqEwFts8rz2h+oWNds9ceR2cb7zZvJTDppHaEhK5avWqsseWa2Dt5BBhabdWSktS80oMQrL4TvAM9b5HMmyDnO+OkkbMXfUJG7eXqTIG6lqSOEbqVR+qYdP7uWb57WEJqzyh411GAVsDinPs7KvUeXItlcMdOUWzXBH6zscymV1LLVCtc8IePojzXHF9m5b5zGwBRdzcyUJkiu938ApmAayRdJrX1PmVguWUvt2ThQ62czItTyWJMW2An/hdDfMK7SiFQlGIdAbltHz3ycoh7j9V7GxNWBpbtcSdqm4XxRwTawc3cbZ+xfSv9qQfEkDKfZTwCkqWGI/ur250ItXlMlh6vUNWEYIg9A3GzbgmbqvTN8js2YMo87CU5y6nZ4dbJLDQJj9fc7yM7tZzJDZFtqOcU8+mZjYlq4VmifI23iHb1ZoT9E+kT2dolnP1AfiOkt7PQCSykBiXy5mv637IegWSKj9IKrYZf4Lu9+I7ub+mkRdlvYzehh/jaJ9n7HUH5b2IbgeNdkY7wx1yVzxS7pbvky6+nmVUtRllEFfweUQ0/nG017WoUYSxs+j2B4FV/F62EtHlMWZXYrjGHpthnNb1x66LKZ0Qe92INWHdfR/vqp02wMS8r1G4dJqHok8KmQ7947G13a4YXbsGgHcBvRuVu1eAi4/A5+ZixmdSXM73LupB/LH7O9yxLTVXJTyBbI1S49TIROrfVCOb/czZ9pM4JsZx8kUz8dQGv7gUWKxXvTH7QM/3J2OuXXgciUhqY+cgtaOliQQVOYthBLV3xpESZT3rmfEYNZxmpBbb24CRao86prn+i9TNOh8VxRJGXJfXHATJHs1T5txgc/opYrY8XjlGQQbRcoxIBcnVsMjmU1ymmIUL4dviJXndMAJ0Yet+c7O52/p98ytlmAsGBaTAmMhimAnvp1TWNGM9BpuitGj+t810CU2UhorrjPKGtThVC8WaXw04WFnT5fTjqmPyrQ0tN3CkLsctVy2xr0ZWgiWVZ1OrlFjjxJYsOiZv2cAoOvE+7sY0I/TwWcZqMoyIKNOftwP7w++Rfg67ljfovKYa50if3fzE/8aPYVey/Nq35+nH2sLPh/fP5TsylSKGOZ4k69d2PnH43+kq++sRXHQqGArWdwhx+hpwQC6JgT2uxehYU4Zbw7oNb6/HLikPyJROGK2ouyr+vzseESp9G50T4AyFrSqOQ0rroCYP4sMDFBrHn342EyZTMlSyk47rHSq89Y9/nI3zG5lX16Z5lxphguLOcZUndL8wNcrkyjH82jqg8Bo8OYkynrxZvbFno5lUS3OPr8Ko3mX9NoRPdYOKKjD07bvgFgpZ/RF+YzkWvJ/Hs/tUbfeGzGWLxNAjfDzHHMVSDwB5SabQLsIZHiBp43FjGkaienYoDd18hu2BGwOK7U3o70K/WY/kuuKdmdrykIBUdG2mvE91L1JtTbh20mOLbk1vCAamu7utlXeGU2ooVikbU/actcgmsC1FKk2qmj3GWeIWbj4tGIxE7BLcBWUvvcnd/lYxsMV4F917fWeFB/XbINN3qGvIyTpCalz1lVewdIGqeAS/gB8Mi+sA+BqDiX3VGD2eUunTRbSY+AuDy4E3Qx3hAhwnSXX+B0zuj3eQ1miS8Vux2z/l6/BkWtjKGU72aJkOCWhGcSf3+kFkkB15vGOsQrSdFr6qTj0gBYiOlnBO41170gOWHSUoBVRU2JjwppYdhIFDfu7tIRHccSNM5KZOFDPz0TGMAjzzEpeLwTWp+kn201kU6NjbiMQJx83+LX1e1tZ10kuChJZ/XBUQ1dwaBHjTDJDqOympEk8X2M3VtVw21JksChA8w1tTefO3RJ1FMbqZ01bHHkudDB/OhLfe7P5GOHaI28ZXKTMuqo0hLWQ4HabBsGG7NbP1RiXtETz074er6w/OerJWEqjmkq2y51q1BVI+JUudnVa3ogBpzdhFE7fC7kybrAt2Z6RqDjATAUEYeYK45WMupBKQRtQlU+uNsjnzj6ZmGrezA+ASrWxQ6LMkHRXqXwNq7ftv28dUx/ZSJciDXP2SWJsWaN0FjPX9Yko6LobZ7aYW/IdUktI9apTLyHS8DyWPyuoZyxN1TK/vtfxk3HwWh6JczZC8Ftn0bIJay2g+n5wd7lm9rEsKO+svqVmi+c1j88hSCxbzrg4+HEP0Nt1/B6YW1XVm09T1CpAKjc9n18hjqsaFGdfyva1ZG0Xu3ip6N6JGpyTSqY5h4BOlpLPaOnyw45PdXTN+DtAKg7DLrLFTnWusoSBHk3s0d7YouJHq85/R09Tfc37ENXZF48eAYLnq9GLioNcwDZrC6FW6godB8JnqYUPvn0pWLfQz0lM0Yy8Mybgn84Ds3Q9bDP10bLyOV+qzxa4Rd9Dhu7cju8mMaONXK3UqmBQ9qIg7etIwEqM/kECk/Dzja4Bs1xR+Q/tCbc8IKrSGsTdJJ0vge7IG20W687uVmK6icWQ6cD3lwFzgNMGtFvO5qyJeKflGLAAcQZOrkxVwy3cWvqlGpvjmf9Qe6Ap20MPbV92DPV0OhFM4kz8Yr0ffC2zLWSQ1kqY6QdQrttR3kh1YLtQd1kCEv5hVoPIRWl5ERcUTttBIrWp6Xs5Ehh5OUUwI5aEBvuiDmUoENmnVw1FohCrbRp1A1E+XSlWVOTi7ADW+5Ohb9z1vK4qx5R5lPdGCPBJZ00mC+Ssp8VUbgpGAvXWMuWQQRbCqI6Rr2jtxZxtfP7W/8onz+yz0Gs76LaT5HX9ecyiZCB/ZR/gFtMxPsDwohoeCRtiuLxE1GM1vUEUgBv86+eehL58/P56QFGQ/MqOe/vC76L63jzmeax4exd/OKTUvkXg+fOJUHych9xt/9goJMrapSgvXrj8+8vk/N80f22Sewj6cyGqt1B6mztoeklVHHraouhvHJaG/OuBz6DHKMpFmQULU1bRWlyYE0RPXYYkUycIemN7TLtgNCJX6BqdyxDKkegO7nJK5xQ7OVYDZTMf9bVHidtk6DQX9Et+V9M7esgbsYBdEeUpsB0Xvw2kd9+rI7V+m47u+O/tq7mw7262HU1WlS9uFzsV6JxIHNmUCy0QS9e077JGRFbG65z3/dOKB/Zk+yDdKpUmdXjn/aS3N5nv4fK7bMHHmPlHd4E2+iTbV5rpzScRnxk6KARuDTJ8Q1LpK2mP8gj1EbuJ9RIyY+EWK4hCiIDBAS1Tm2IEXAFfgKPgdL9O6mAa06wjCcUAL6EsxPQWO9VNegBPm/0GgkZbDxCynxujX/92vmGcjZRMAY45puak2sFLCLSwXpEsyy5fnF0jGJBhm+fNSHKKUUfy+276A7/feLOFxxUuHRNJI2Osenxyvf8DAGObT60pfTTlhEg9u/KKkhJqm5U1/+BEcSkpFDA5XeCqxwXmPac1jcuZ3JWQ+p0NdWzb/5v1ZvF8GtMTFFEdQjpLO0bwPb0BHNWnip3liDXI2fXf05jjvfJ0NpjLCUgfTh9CMFYVFKEd4Z/OG/2C+N435mnK+9t1gvCiVcaaH7rK4+PjCvpVNiz+t2QyqH1O8x3JKZVl6Q+Lp/XK8wMjVMslOq9FdSw5FtUs/CptXH9PW+wbWHgrV17R5jTVOtGtKFu3nb80T+E0tv9QkzW3J2dbaw/8ddAKZ0pxIaEqLjlPrji3VgJ3GvdFvlqD8075woxh4fVt0JZE0KVFsAvqhe0dqN9b35jtSpnYMXkU+vZq+IAHad3IHc2s/LYrnD1anfG46IFiMIr9oNbZDWvwthqYNqOigaKd/XlLU4XHfk/PXIjPsLy/9/kAtQ+/wKH+hI/IROWj5FPvTZAT9f7j4ZXQyG4M0TujMAFXYkKvEHv1xhySekgXGGqNxWeWKlf8dDAlLuB1cb/qOD+rk7cmwt+1yKpk9cudqBanTi6zTbXRtV8qylNtjyOVKy1HTz0GW9rjt6sSjAZcT5R+KdtyYb0zyqG9pSLuCw5WBwAn7fjBjKLLoxLXMI+52L9cLwIR2B6OllJZLHJ8vDxmWdtF+QJnmt1rsHPIWY20lftk8fYePkAIg6Hgn532QoIpegMxiWgAOfe5/U44APR8Ac0NeZrVh3gEhs12W+tVSiWiUQekf/YBECUy5fdYbA08dd7VzPAP9aiVcIB9k6tY7WdJ1wNV+bHeydNtmC6G5ICtFC1ZwmJU/j8hf0I8TRVKSiz5oYIa93EpUI78X8GYIAZabx47/n8LDAAJ0nNtP1rpROprqKMBRecShca6qXuTSI3jZBLOB3Vp381B5rCGhjSvh/NSVkYp2qIdP/Bg="},{}],6:[function(o,n,s){var i=o("./dictionary-browser");s.init=function(){s.dictionary=i.init()},s.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),s.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),s.minDictionaryWordLength=4,s.maxDictionaryWordLength=24},{"./dictionary-browser":4}],7:[function(o,n,s){function i(f,m){this.bits=f,this.value=m}s.HuffmanCode=i;var a=15;function u(f,m){for(var g=1<<m-1;f&g;)g>>=1;return(f&g-1)+g}function l(f,m,g,d,v){do d-=g,f[m+d]=new i(v.bits,v.value);while(d>0)}function c(f,m,g){for(var d=1<<m-g;m<a&&(d-=f[m],!(d<=0));)++m,d<<=1;return m-g}s.BrotliBuildHuffmanTable=function(f,m,g,d,v){var x=m,C,w,b,R,A,T,_,P,N,q,H,S=new Int32Array(a+1),I=new Int32Array(a+1);for(H=new Int32Array(v),b=0;b<v;b++)S[d[b]]++;for(I[1]=0,w=1;w<a;w++)I[w+1]=I[w]+S[w];for(b=0;b<v;b++)d[b]!==0&&(H[I[d[b]]++]=b);if(P=g,N=1<<P,q=N,I[a]===1){for(R=0;R<q;++R)f[m+R]=new i(0,H[0]&65535);return q}for(R=0,b=0,w=1,A=2;w<=g;++w,A<<=1)for(;S[w]>0;--S[w])C=new i(w&255,H[b++]&65535),l(f,m+R,A,N,C),R=u(R,w);for(_=q-1,T=-1,w=g+1,A=2;w<=a;++w,A<<=1)for(;S[w]>0;--S[w])(R&_)!==T&&(m+=N,P=c(S,w,g),N=1<<P,q+=N,T=R&_,f[x+T]=new i(P+g&255,m-x-T&65535)),C=new i(w-g&255,H[b++]&65535),l(f,m+(R>>g),A,N,C),R=u(R,w);return q}},{}],8:[function(o,n,s){"use strict";s.byteLength=g,s.toByteArray=v,s.fromByteArray=w;for(var i=[],a=[],u=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=l.length;c<f;++c)i[c]=l[c],a[l.charCodeAt(c)]=c;a[45]=62,a[95]=63;function m(b){var R=b.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var A=b.indexOf("=");A===-1&&(A=R);var T=A===R?0:4-A%4;return[A,T]}function g(b){var R=m(b),A=R[0],T=R[1];return(A+T)*3/4-T}function d(b,R,A){return(R+A)*3/4-A}function v(b){for(var R,A=m(b),T=A[0],_=A[1],P=new u(d(b,T,_)),N=0,q=_>0?T-4:T,H=0;H<q;H+=4)R=a[b.charCodeAt(H)]<<18|a[b.charCodeAt(H+1)]<<12|a[b.charCodeAt(H+2)]<<6|a[b.charCodeAt(H+3)],P[N++]=R>>16&255,P[N++]=R>>8&255,P[N++]=R&255;return _===2&&(R=a[b.charCodeAt(H)]<<2|a[b.charCodeAt(H+1)]>>4,P[N++]=R&255),_===1&&(R=a[b.charCodeAt(H)]<<10|a[b.charCodeAt(H+1)]<<4|a[b.charCodeAt(H+2)]>>2,P[N++]=R>>8&255,P[N++]=R&255),P}function x(b){return i[b>>18&63]+i[b>>12&63]+i[b>>6&63]+i[b&63]}function C(b,R,A){for(var T,_=[],P=R;P<A;P+=3)T=(b[P]<<16&16711680)+(b[P+1]<<8&65280)+(b[P+2]&255),_.push(x(T));return _.join("")}function w(b){for(var R,A=b.length,T=A%3,_=[],P=16383,N=0,q=A-T;N<q;N+=P)_.push(C(b,N,N+P>q?q:N+P));return T===1?(R=b[A-1],_.push(i[R>>2]+i[R<<4&63]+"==")):T===2&&(R=(b[A-2]<<8)+b[A-1],_.push(i[R>>10]+i[R>>4&63]+i[R<<2&63]+"=")),_.join("")}},{}],9:[function(o,n,s){function i(a,u){this.offset=a,this.nbits=u}s.kBlockLengthPrefixCode=[new i(1,2),new i(5,2),new i(9,2),new i(13,2),new i(17,3),new i(25,3),new i(33,3),new i(41,3),new i(49,4),new i(65,4),new i(81,4),new i(97,4),new i(113,5),new i(145,5),new i(177,5),new i(209,5),new i(241,6),new i(305,6),new i(369,7),new i(497,8),new i(753,9),new i(1265,10),new i(2289,11),new i(4337,12),new i(8433,13),new i(16625,24)],s.kInsertLengthPrefixCode=[new i(0,0),new i(1,0),new i(2,0),new i(3,0),new i(4,0),new i(5,0),new i(6,1),new i(8,1),new i(10,2),new i(14,2),new i(18,3),new i(26,3),new i(34,4),new i(50,4),new i(66,5),new i(98,5),new i(130,6),new i(194,7),new i(322,8),new i(578,9),new i(1090,10),new i(2114,12),new i(6210,14),new i(22594,24)],s.kCopyLengthPrefixCode=[new i(2,0),new i(3,0),new i(4,0),new i(5,0),new i(6,0),new i(7,0),new i(8,0),new i(9,0),new i(10,1),new i(12,1),new i(14,2),new i(18,2),new i(22,3),new i(30,3),new i(38,4),new i(54,4),new i(70,5),new i(102,5),new i(134,6),new i(198,7),new i(326,8),new i(582,9),new i(1094,10),new i(2118,24)],s.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],s.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},{}],10:[function(o,n,s){function i(u){this.buffer=u,this.pos=0}i.prototype.read=function(u,l,c){this.pos+c>this.buffer.length&&(c=this.buffer.length-this.pos);for(var f=0;f<c;f++)u[l+f]=this.buffer[this.pos+f];return this.pos+=c,c},s.BrotliInput=i;function a(u){this.buffer=u,this.pos=0}a.prototype.write=function(u,l){if(this.pos+l>this.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(u.subarray(0,l),this.pos),this.pos+=l,l},s.BrotliOutput=a},{}],11:[function(o,n,s){var i=o("./dictionary"),a=0,u=1,l=2,c=3,f=4,m=5,g=6,d=7,v=8,x=9,C=10,w=11,b=12,R=13,A=14,T=15,_=16,P=17,N=18,q=19,H=20;function S(O,D,J){this.prefix=new Uint8Array(O.length),this.transform=D,this.suffix=new Uint8Array(J.length);for(var M=0;M<O.length;M++)this.prefix[M]=O.charCodeAt(M);for(var M=0;M<J.length;M++)this.suffix[M]=J.charCodeAt(M)}var I=[new S("",a,""),new S("",a," "),new S(" ",a," "),new S("",b,""),new S("",C," "),new S("",a," the "),new S(" ",a,""),new S("s ",a," "),new S("",a," of "),new S("",C,""),new S("",a," and "),new S("",R,""),new S("",u,""),new S(", ",a," "),new S("",a,", "),new S(" ",C," "),new S("",a," in "),new S("",a," to "),new S("e ",a," "),new S("",a,'"'),new S("",a,"."),new S("",a,'">'),new S("",a,`
+`),new S("",c,""),new S("",a,"]"),new S("",a," for "),new S("",A,""),new S("",l,""),new S("",a," a "),new S("",a," that "),new S(" ",C,""),new S("",a,". "),new S(".",a,""),new S(" ",a,", "),new S("",T,""),new S("",a," with "),new S("",a,"'"),new S("",a," from "),new S("",a," by "),new S("",_,""),new S("",P,""),new S(" the ",a,""),new S("",f,""),new S("",a,". The "),new S("",w,""),new S("",a," on "),new S("",a," as "),new S("",a," is "),new S("",d,""),new S("",u,"ing "),new S("",a,`
+ `),new S("",a,":"),new S(" ",a,". "),new S("",a,"ed "),new S("",H,""),new S("",N,""),new S("",g,""),new S("",a,"("),new S("",C,", "),new S("",v,""),new S("",a," at "),new S("",a,"ly "),new S(" the ",a," of "),new S("",m,""),new S("",x,""),new S(" ",C,", "),new S("",C,'"'),new S(".",a,"("),new S("",w," "),new S("",C,'">'),new S("",a,'="'),new S(" ",a,"."),new S(".com/",a,""),new S(" the ",a," of the "),new S("",C,"'"),new S("",a,". This "),new S("",a,","),new S(".",a," "),new S("",C,"("),new S("",C,"."),new S("",a," not "),new S(" ",a,'="'),new S("",a,"er "),new S(" ",w," "),new S("",a,"al "),new S(" ",w,""),new S("",a,"='"),new S("",w,'"'),new S("",C,". "),new S(" ",a,"("),new S("",a,"ful "),new S(" ",C,". "),new S("",a,"ive "),new S("",a,"less "),new S("",w,"'"),new S("",a,"est "),new S(" ",C,"."),new S("",w,'">'),new S(" ",a,"='"),new S("",C,","),new S("",a,"ize "),new S("",w,"."),new S("\xC2\xA0",a,""),new S(" ",a,","),new S("",C,'="'),new S("",w,'="'),new S("",a,"ous "),new S("",w,", "),new S("",C,"='"),new S(" ",C,","),new S(" ",w,'="'),new S(" ",w,", "),new S("",w,","),new S("",w,"("),new S("",w,". "),new S(" ",w,"."),new S("",w,"='"),new S(" ",w,". "),new S(" ",C,'="'),new S(" ",w,"='"),new S(" ",C,"='")];s.kTransforms=I,s.kNumTransforms=I.length;function W(O,D){return O[D]<192?(O[D]>=97&&O[D]<=122&&(O[D]^=32),1):O[D]<224?(O[D+1]^=32,2):(O[D+2]^=5,3)}s.transformDictionaryWord=function(O,D,J,M,E){var L=I[E].prefix,$=I[E].suffix,F=I[E].transform,Z=F<b?0:F-(b-1),se=0,we=D,ie;Z>M&&(Z=M);for(var ve=0;ve<L.length;)O[D++]=L[ve++];for(J+=Z,M-=Z,F<=x&&(M-=F),se=0;se<M;se++)O[D++]=i.dictionary[J+se];if(ie=D-M,F===C)W(O,ie);else if(F===w)for(;M>0;){var Ee=W(O,ie);ie+=Ee,M-=Ee}for(var ee=0;ee<$.length;)O[D++]=$[ee++];return D-we}},{"./dictionary":6}],12:[function(o,n,s){n.exports=o("./dec/decode").BrotliDecompressBuffer},{"./dec/decode":3}]},{},[12])(12)})();var ra=(e=>typeof zt<"u"?zt:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof zt<"u"?zt:t)[r]}):e)(function(e){if(typeof zt<"u")return zt.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Xg=(function(){var e,t,r;return(function(){function o(n,s,i){function a(c,f){if(!s[c]){if(!n[c]){var m=typeof ra=="function"&&ra;if(!f&&m)return m(c,!0);if(u)return u(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var d=s[c]={exports:{}};n[c][0].call(d.exports,function(v){var x=n[c][1][v];return a(x||v)},d,d.exports,o,n,s,i)}return s[c].exports}for(var u=typeof ra=="function"&&ra,l=0;l<i.length;l++)a(i[l]);return a}return o})()({1:[function(o,n,s){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function a(c,f){return Object.prototype.hasOwnProperty.call(c,f)}s.assign=function(c){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var m=f.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var g in m)a(m,g)&&(c[g]=m[g])}}return c},s.shrinkBuf=function(c,f){return c.length===f?c:c.subarray?c.subarray(0,f):(c.length=f,c)};var u={arraySet:function(c,f,m,g,d){if(f.subarray&&c.subarray){c.set(f.subarray(m,m+g),d);return}for(var v=0;v<g;v++)c[d+v]=f[m+v]},flattenChunks:function(c){var f,m,g,d,v,x;for(g=0,f=0,m=c.length;f<m;f++)g+=c[f].length;for(x=new Uint8Array(g),d=0,f=0,m=c.length;f<m;f++)v=c[f],x.set(v,d),d+=v.length;return x}},l={arraySet:function(c,f,m,g,d){for(var v=0;v<g;v++)c[d+v]=f[m+v]},flattenChunks:function(c){return[].concat.apply([],c)}};s.setTyped=function(c){c?(s.Buf8=Uint8Array,s.Buf16=Uint16Array,s.Buf32=Int32Array,s.assign(s,u)):(s.Buf8=Array,s.Buf16=Array,s.Buf32=Array,s.assign(s,l))},s.setTyped(i)},{}],2:[function(o,n,s){"use strict";var i=o("./common"),a=!0,u=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{u=!1}for(var l=new i.Buf8(256),c=0;c<256;c++)l[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;l[254]=l[254]=1,s.string2buf=function(m){var g,d,v,x,C,w=m.length,b=0;for(x=0;x<w;x++)d=m.charCodeAt(x),(d&64512)===55296&&x+1<w&&(v=m.charCodeAt(x+1),(v&64512)===56320&&(d=65536+(d-55296<<10)+(v-56320),x++)),b+=d<128?1:d<2048?2:d<65536?3:4;for(g=new i.Buf8(b),C=0,x=0;C<b;x++)d=m.charCodeAt(x),(d&64512)===55296&&x+1<w&&(v=m.charCodeAt(x+1),(v&64512)===56320&&(d=65536+(d-55296<<10)+(v-56320),x++)),d<128?g[C++]=d:d<2048?(g[C++]=192|d>>>6,g[C++]=128|d&63):d<65536?(g[C++]=224|d>>>12,g[C++]=128|d>>>6&63,g[C++]=128|d&63):(g[C++]=240|d>>>18,g[C++]=128|d>>>12&63,g[C++]=128|d>>>6&63,g[C++]=128|d&63);return g};function f(m,g){if(g<65534&&(m.subarray&&u||!m.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(m,g));for(var d="",v=0;v<g;v++)d+=String.fromCharCode(m[v]);return d}s.buf2binstring=function(m){return f(m,m.length)},s.binstring2buf=function(m){for(var g=new i.Buf8(m.length),d=0,v=g.length;d<v;d++)g[d]=m.charCodeAt(d);return g},s.buf2string=function(m,g){var d,v,x,C,w=g||m.length,b=new Array(w*2);for(v=0,d=0;d<w;){if(x=m[d++],x<128){b[v++]=x;continue}if(C=l[x],C>4){b[v++]=65533,d+=C-1;continue}for(x&=C===2?31:C===3?15:7;C>1&&d<w;)x=x<<6|m[d++]&63,C--;if(C>1){b[v++]=65533;continue}x<65536?b[v++]=x:(x-=65536,b[v++]=55296|x>>10&1023,b[v++]=56320|x&1023)}return f(b,v)},s.utf8border=function(m,g){var d;for(g=g||m.length,g>m.length&&(g=m.length),d=g-1;d>=0&&(m[d]&192)===128;)d--;return d<0||d===0?g:d+l[m[d]]>g?d:g}},{"./common":1}],3:[function(o,n,s){"use strict";function i(a,u,l,c){for(var f=a&65535|0,m=a>>>16&65535|0,g=0;l!==0;){g=l>2e3?2e3:l,l-=g;do f=f+u[c++]|0,m=m+f|0;while(--g);f%=65521,m%=65521}return f|m<<16|0}n.exports=i},{}],4:[function(o,n,s){"use strict";n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(o,n,s){"use strict";function i(){for(var l,c=[],f=0;f<256;f++){l=f;for(var m=0;m<8;m++)l=l&1?3988292384^l>>>1:l>>>1;c[f]=l}return c}var a=i();function u(l,c,f,m){var g=a,d=m+f;l^=-1;for(var v=m;v<d;v++)l=l>>>8^g[(l^c[v])&255];return l^-1}n.exports=u},{}],6:[function(o,n,s){"use strict";function i(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}n.exports=i},{}],7:[function(o,n,s){"use strict";var i=30,a=12;n.exports=function(l,c){var f,m,g,d,v,x,C,w,b,R,A,T,_,P,N,q,H,S,I,W,O,D,J,M,E;f=l.state,m=l.next_in,M=l.input,g=m+(l.avail_in-5),d=l.next_out,E=l.output,v=d-(c-l.avail_out),x=d+(l.avail_out-257),C=f.dmax,w=f.wsize,b=f.whave,R=f.wnext,A=f.window,T=f.hold,_=f.bits,P=f.lencode,N=f.distcode,q=(1<<f.lenbits)-1,H=(1<<f.distbits)-1;e:do{_<15&&(T+=M[m++]<<_,_+=8,T+=M[m++]<<_,_+=8),S=P[T&q];t:for(;;){if(I=S>>>24,T>>>=I,_-=I,I=S>>>16&255,I===0)E[d++]=S&65535;else if(I&16){W=S&65535,I&=15,I&&(_<I&&(T+=M[m++]<<_,_+=8),W+=T&(1<<I)-1,T>>>=I,_-=I),_<15&&(T+=M[m++]<<_,_+=8,T+=M[m++]<<_,_+=8),S=N[T&H];r:for(;;){if(I=S>>>24,T>>>=I,_-=I,I=S>>>16&255,I&16){if(O=S&65535,I&=15,_<I&&(T+=M[m++]<<_,_+=8,_<I&&(T+=M[m++]<<_,_+=8)),O+=T&(1<<I)-1,O>C){l.msg="invalid distance too far back",f.mode=i;break e}if(T>>>=I,_-=I,I=d-v,O>I){if(I=O-I,I>b&&f.sane){l.msg="invalid distance too far back",f.mode=i;break e}if(D=0,J=A,R===0){if(D+=w-I,I<W){W-=I;do E[d++]=A[D++];while(--I);D=d-O,J=E}}else if(R<I){if(D+=w+R-I,I-=R,I<W){W-=I;do E[d++]=A[D++];while(--I);if(D=0,R<W){I=R,W-=I;do E[d++]=A[D++];while(--I);D=d-O,J=E}}}else if(D+=R-I,I<W){W-=I;do E[d++]=A[D++];while(--I);D=d-O,J=E}for(;W>2;)E[d++]=J[D++],E[d++]=J[D++],E[d++]=J[D++],W-=3;W&&(E[d++]=J[D++],W>1&&(E[d++]=J[D++]))}else{D=d-O;do E[d++]=E[D++],E[d++]=E[D++],E[d++]=E[D++],W-=3;while(W>2);W&&(E[d++]=E[D++],W>1&&(E[d++]=E[D++]))}}else if((I&64)===0){S=N[(S&65535)+(T&(1<<I)-1)];continue r}else{l.msg="invalid distance code",f.mode=i;break e}break}}else if((I&64)===0){S=P[(S&65535)+(T&(1<<I)-1)];continue t}else if(I&32){f.mode=a;break e}else{l.msg="invalid literal/length code",f.mode=i;break e}break}}while(m<g&&d<x);W=_>>3,m-=W,_-=W<<3,T&=(1<<_)-1,l.next_in=m,l.next_out=d,l.avail_in=m<g?5+(g-m):5-(m-g),l.avail_out=d<x?257+(x-d):257-(d-x),f.hold=T,f.bits=_}},{}],8:[function(o,n,s){"use strict";var i=o("../utils/common"),a=o("./adler32"),u=o("./crc32"),l=o("./inffast"),c=o("./inftrees"),f=0,m=1,g=2,d=4,v=5,x=6,C=0,w=1,b=2,R=-2,A=-3,T=-4,_=-5,P=8,N=1,q=2,H=3,S=4,I=5,W=6,O=7,D=8,J=9,M=10,E=11,L=12,$=13,F=14,Z=15,se=16,we=17,ie=18,ve=19,Ee=20,ee=21,Fe=22,Ae=23,Oe=24,Ue=25,G=26,z=27,X=28,U=29,K=30,fe=31,ue=32,de=852,pe=592,me=15,V=me;function re(k){return(k>>>24&255)+(k>>>8&65280)+((k&65280)<<8)+((k&255)<<24)}function Ne(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function He(k){var Q;return!k||!k.state?R:(Q=k.state,k.total_in=k.total_out=Q.total=0,k.msg="",Q.wrap&&(k.adler=Q.wrap&1),Q.mode=N,Q.last=0,Q.havedict=0,Q.dmax=32768,Q.head=null,Q.hold=0,Q.bits=0,Q.lencode=Q.lendyn=new i.Buf32(de),Q.distcode=Q.distdyn=new i.Buf32(pe),Q.sane=1,Q.back=-1,C)}function ot(k){var Q;return!k||!k.state?R:(Q=k.state,Q.wsize=0,Q.whave=0,Q.wnext=0,He(k))}function ut(k,Q){var y,oe;return!k||!k.state||(oe=k.state,Q<0?(y=0,Q=-Q):(y=(Q>>4)+1,Q<48&&(Q&=15)),Q&&(Q<8||Q>15))?R:(oe.window!==null&&oe.wbits!==Q&&(oe.window=null),oe.wrap=y,oe.wbits=Q,ot(k))}function ze(k,Q){var y,oe;return k?(oe=new Ne,k.state=oe,oe.window=null,y=ut(k,Q),y!==C&&(k.state=null),y):R}function We(k){return ze(k,V)}var nt=!0,be,Rr;function gr(k){if(nt){var Q;for(be=new i.Buf32(512),Rr=new i.Buf32(32),Q=0;Q<144;)k.lens[Q++]=8;for(;Q<256;)k.lens[Q++]=9;for(;Q<280;)k.lens[Q++]=7;for(;Q<288;)k.lens[Q++]=8;for(c(m,k.lens,0,288,be,0,k.work,{bits:9}),Q=0;Q<32;)k.lens[Q++]=5;c(g,k.lens,0,32,Rr,0,k.work,{bits:5}),nt=!1}k.lencode=be,k.lenbits=9,k.distcode=Rr,k.distbits=5}function $e(k,Q,y,oe){var Ve,te=k.state;return te.window===null&&(te.wsize=1<<te.wbits,te.wnext=0,te.whave=0,te.window=new i.Buf8(te.wsize)),oe>=te.wsize?(i.arraySet(te.window,Q,y-te.wsize,te.wsize,0),te.wnext=0,te.whave=te.wsize):(Ve=te.wsize-te.wnext,Ve>oe&&(Ve=oe),i.arraySet(te.window,Q,y-oe,Ve,te.wnext),oe-=Ve,oe?(i.arraySet(te.window,Q,y-oe,oe,0),te.wnext=oe,te.whave=te.wsize):(te.wnext+=Ve,te.wnext===te.wsize&&(te.wnext=0),te.whave<te.wsize&&(te.whave+=Ve))),0}function jr(k,Q){var y,oe,Ve,te,ht,ne,Qe,B,j,yr,Ge,le,zr,Qt,et=0,Me,ft,gt,wt,Ur,Ro,lt,At,dt=new i.Buf8(4),It,Bt,Ko=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return R;y=k.state,y.mode===L&&(y.mode=$),ht=k.next_out,Ve=k.output,Qe=k.avail_out,te=k.next_in,oe=k.input,ne=k.avail_in,B=y.hold,j=y.bits,yr=ne,Ge=Qe,At=C;e:for(;;)switch(y.mode){case N:if(y.wrap===0){y.mode=$;break}for(;j<16;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}if(y.wrap&2&&B===35615){y.check=0,dt[0]=B&255,dt[1]=B>>>8&255,y.check=u(y.check,dt,2,0),B=0,j=0,y.mode=q;break}if(y.flags=0,y.head&&(y.head.done=!1),!(y.wrap&1)||(((B&255)<<8)+(B>>8))%31){k.msg="incorrect header check",y.mode=K;break}if((B&15)!==P){k.msg="unknown compression method",y.mode=K;break}if(B>>>=4,j-=4,lt=(B&15)+8,y.wbits===0)y.wbits=lt;else if(lt>y.wbits){k.msg="invalid window size",y.mode=K;break}y.dmax=1<<lt,k.adler=y.check=1,y.mode=B&512?M:L,B=0,j=0;break;case q:for(;j<16;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}if(y.flags=B,(y.flags&255)!==P){k.msg="unknown compression method",y.mode=K;break}if(y.flags&57344){k.msg="unknown header flags set",y.mode=K;break}y.head&&(y.head.text=B>>8&1),y.flags&512&&(dt[0]=B&255,dt[1]=B>>>8&255,y.check=u(y.check,dt,2,0)),B=0,j=0,y.mode=H;case H:for(;j<32;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}y.head&&(y.head.time=B),y.flags&512&&(dt[0]=B&255,dt[1]=B>>>8&255,dt[2]=B>>>16&255,dt[3]=B>>>24&255,y.check=u(y.check,dt,4,0)),B=0,j=0,y.mode=S;case S:for(;j<16;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}y.head&&(y.head.xflags=B&255,y.head.os=B>>8),y.flags&512&&(dt[0]=B&255,dt[1]=B>>>8&255,y.check=u(y.check,dt,2,0)),B=0,j=0,y.mode=I;case I:if(y.flags&1024){for(;j<16;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}y.length=B,y.head&&(y.head.extra_len=B),y.flags&512&&(dt[0]=B&255,dt[1]=B>>>8&255,y.check=u(y.check,dt,2,0)),B=0,j=0}else y.head&&(y.head.extra=null);y.mode=W;case W:if(y.flags&1024&&(le=y.length,le>ne&&(le=ne),le&&(y.head&&(lt=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),i.arraySet(y.head.extra,oe,te,le,lt)),y.flags&512&&(y.check=u(y.check,oe,le,te)),ne-=le,te+=le,y.length-=le),y.length))break e;y.length=0,y.mode=O;case O:if(y.flags&2048){if(ne===0)break e;le=0;do lt=oe[te+le++],y.head&<&&y.length<65536&&(y.head.name+=String.fromCharCode(lt));while(lt&&le<ne);if(y.flags&512&&(y.check=u(y.check,oe,le,te)),ne-=le,te+=le,lt)break e}else y.head&&(y.head.name=null);y.length=0,y.mode=D;case D:if(y.flags&4096){if(ne===0)break e;le=0;do lt=oe[te+le++],y.head&<&&y.length<65536&&(y.head.comment+=String.fromCharCode(lt));while(lt&&le<ne);if(y.flags&512&&(y.check=u(y.check,oe,le,te)),ne-=le,te+=le,lt)break e}else y.head&&(y.head.comment=null);y.mode=J;case J:if(y.flags&512){for(;j<16;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}if(B!==(y.check&65535)){k.msg="header crc mismatch",y.mode=K;break}B=0,j=0}y.head&&(y.head.hcrc=y.flags>>9&1,y.head.done=!0),k.adler=y.check=0,y.mode=L;break;case M:for(;j<32;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}k.adler=y.check=re(B),B=0,j=0,y.mode=E;case E:if(y.havedict===0)return k.next_out=ht,k.avail_out=Qe,k.next_in=te,k.avail_in=ne,y.hold=B,y.bits=j,b;k.adler=y.check=1,y.mode=L;case L:if(Q===v||Q===x)break e;case $:if(y.last){B>>>=j&7,j-=j&7,y.mode=z;break}for(;j<3;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}switch(y.last=B&1,B>>>=1,j-=1,B&3){case 0:y.mode=F;break;case 1:if(gr(y),y.mode=Ee,Q===x){B>>>=2,j-=2;break e}break;case 2:y.mode=we;break;case 3:k.msg="invalid block type",y.mode=K}B>>>=2,j-=2;break;case F:for(B>>>=j&7,j-=j&7;j<32;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}if((B&65535)!==(B>>>16^65535)){k.msg="invalid stored block lengths",y.mode=K;break}if(y.length=B&65535,B=0,j=0,y.mode=Z,Q===x)break e;case Z:y.mode=se;case se:if(le=y.length,le){if(le>ne&&(le=ne),le>Qe&&(le=Qe),le===0)break e;i.arraySet(Ve,oe,te,le,ht),ne-=le,te+=le,Qe-=le,ht+=le,y.length-=le;break}y.mode=L;break;case we:for(;j<14;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}if(y.nlen=(B&31)+257,B>>>=5,j-=5,y.ndist=(B&31)+1,B>>>=5,j-=5,y.ncode=(B&15)+4,B>>>=4,j-=4,y.nlen>286||y.ndist>30){k.msg="too many length or distance symbols",y.mode=K;break}y.have=0,y.mode=ie;case ie:for(;y.have<y.ncode;){for(;j<3;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}y.lens[Ko[y.have++]]=B&7,B>>>=3,j-=3}for(;y.have<19;)y.lens[Ko[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,It={bits:y.lenbits},At=c(f,y.lens,0,19,y.lencode,0,y.work,It),y.lenbits=It.bits,At){k.msg="invalid code lengths set",y.mode=K;break}y.have=0,y.mode=ve;case ve:for(;y.have<y.nlen+y.ndist;){for(;et=y.lencode[B&(1<<y.lenbits)-1],Me=et>>>24,ft=et>>>16&255,gt=et&65535,!(Me<=j);){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}if(gt<16)B>>>=Me,j-=Me,y.lens[y.have++]=gt;else{if(gt===16){for(Bt=Me+2;j<Bt;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}if(B>>>=Me,j-=Me,y.have===0){k.msg="invalid bit length repeat",y.mode=K;break}lt=y.lens[y.have-1],le=3+(B&3),B>>>=2,j-=2}else if(gt===17){for(Bt=Me+3;j<Bt;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}B>>>=Me,j-=Me,lt=0,le=3+(B&7),B>>>=3,j-=3}else{for(Bt=Me+7;j<Bt;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}B>>>=Me,j-=Me,lt=0,le=11+(B&127),B>>>=7,j-=7}if(y.have+le>y.nlen+y.ndist){k.msg="invalid bit length repeat",y.mode=K;break}for(;le--;)y.lens[y.have++]=lt}}if(y.mode===K)break;if(y.lens[256]===0){k.msg="invalid code -- missing end-of-block",y.mode=K;break}if(y.lenbits=9,It={bits:y.lenbits},At=c(m,y.lens,0,y.nlen,y.lencode,0,y.work,It),y.lenbits=It.bits,At){k.msg="invalid literal/lengths set",y.mode=K;break}if(y.distbits=6,y.distcode=y.distdyn,It={bits:y.distbits},At=c(g,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,It),y.distbits=It.bits,At){k.msg="invalid distances set",y.mode=K;break}if(y.mode=Ee,Q===x)break e;case Ee:y.mode=ee;case ee:if(ne>=6&&Qe>=258){k.next_out=ht,k.avail_out=Qe,k.next_in=te,k.avail_in=ne,y.hold=B,y.bits=j,l(k,Ge),ht=k.next_out,Ve=k.output,Qe=k.avail_out,te=k.next_in,oe=k.input,ne=k.avail_in,B=y.hold,j=y.bits,y.mode===L&&(y.back=-1);break}for(y.back=0;et=y.lencode[B&(1<<y.lenbits)-1],Me=et>>>24,ft=et>>>16&255,gt=et&65535,!(Me<=j);){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}if(ft&&(ft&240)===0){for(wt=Me,Ur=ft,Ro=gt;et=y.lencode[Ro+((B&(1<<wt+Ur)-1)>>wt)],Me=et>>>24,ft=et>>>16&255,gt=et&65535,!(wt+Me<=j);){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}B>>>=wt,j-=wt,y.back+=wt}if(B>>>=Me,j-=Me,y.back+=Me,y.length=gt,ft===0){y.mode=G;break}if(ft&32){y.back=-1,y.mode=L;break}if(ft&64){k.msg="invalid literal/length code",y.mode=K;break}y.extra=ft&15,y.mode=Fe;case Fe:if(y.extra){for(Bt=y.extra;j<Bt;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}y.length+=B&(1<<y.extra)-1,B>>>=y.extra,j-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=Ae;case Ae:for(;et=y.distcode[B&(1<<y.distbits)-1],Me=et>>>24,ft=et>>>16&255,gt=et&65535,!(Me<=j);){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}if((ft&240)===0){for(wt=Me,Ur=ft,Ro=gt;et=y.distcode[Ro+((B&(1<<wt+Ur)-1)>>wt)],Me=et>>>24,ft=et>>>16&255,gt=et&65535,!(wt+Me<=j);){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}B>>>=wt,j-=wt,y.back+=wt}if(B>>>=Me,j-=Me,y.back+=Me,ft&64){k.msg="invalid distance code",y.mode=K;break}y.offset=gt,y.extra=ft&15,y.mode=Oe;case Oe:if(y.extra){for(Bt=y.extra;j<Bt;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}y.offset+=B&(1<<y.extra)-1,B>>>=y.extra,j-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){k.msg="invalid distance too far back",y.mode=K;break}y.mode=Ue;case Ue:if(Qe===0)break e;if(le=Ge-Qe,y.offset>le){if(le=y.offset-le,le>y.whave&&y.sane){k.msg="invalid distance too far back",y.mode=K;break}le>y.wnext?(le-=y.wnext,zr=y.wsize-le):zr=y.wnext-le,le>y.length&&(le=y.length),Qt=y.window}else Qt=Ve,zr=ht-y.offset,le=y.length;le>Qe&&(le=Qe),Qe-=le,y.length-=le;do Ve[ht++]=Qt[zr++];while(--le);y.length===0&&(y.mode=ee);break;case G:if(Qe===0)break e;Ve[ht++]=y.length,Qe--,y.mode=ee;break;case z:if(y.wrap){for(;j<32;){if(ne===0)break e;ne--,B|=oe[te++]<<j,j+=8}if(Ge-=Qe,k.total_out+=Ge,y.total+=Ge,Ge&&(k.adler=y.check=y.flags?u(y.check,Ve,Ge,ht-Ge):a(y.check,Ve,Ge,ht-Ge)),Ge=Qe,(y.flags?B:re(B))!==y.check){k.msg="incorrect data check",y.mode=K;break}B=0,j=0}y.mode=X;case X:if(y.wrap&&y.flags){for(;j<32;){if(ne===0)break e;ne--,B+=oe[te++]<<j,j+=8}if(B!==(y.total&4294967295)){k.msg="incorrect length check",y.mode=K;break}B=0,j=0}y.mode=U;case U:At=w;break e;case K:At=A;break e;case fe:return T;case ue:default:return R}return k.next_out=ht,k.avail_out=Qe,k.next_in=te,k.avail_in=ne,y.hold=B,y.bits=j,(y.wsize||Ge!==k.avail_out&&y.mode<K&&(y.mode<z||Q!==d))&&$e(k,k.output,k.next_out,Ge-k.avail_out)?(y.mode=fe,T):(yr-=k.avail_in,Ge-=k.avail_out,k.total_in+=yr,k.total_out+=Ge,y.total+=Ge,y.wrap&&Ge&&(k.adler=y.check=y.flags?u(y.check,Ve,Ge,k.next_out-Ge):a(y.check,Ve,Ge,k.next_out-Ge)),k.data_type=y.bits+(y.last?64:0)+(y.mode===L?128:0)+(y.mode===Ee||y.mode===Z?256:0),(yr===0&&Ge===0||Q===d)&&At===C&&(At=_),At)}function Ct(k){if(!k||!k.state)return R;var Q=k.state;return Q.window&&(Q.window=null),k.state=null,C}function Le(k,Q){var y;return!k||!k.state||(y=k.state,(y.wrap&2)===0)?R:(y.head=Q,Q.done=!1,C)}function qe(k,Q){var y=Q.length,oe,Ve,te;return!k||!k.state||(oe=k.state,oe.wrap!==0&&oe.mode!==E)?R:oe.mode===E&&(Ve=1,Ve=a(Ve,Q,y,0),Ve!==oe.check)?A:(te=$e(k,Q,y,y),te?(oe.mode=fe,T):(oe.havedict=1,C))}s.inflateReset=ot,s.inflateReset2=ut,s.inflateResetKeep=He,s.inflateInit=We,s.inflateInit2=ze,s.inflate=jr,s.inflateEnd=Ct,s.inflateGetHeader=Le,s.inflateSetDictionary=qe,s.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(o,n,s){"use strict";var i=o("../utils/common"),a=15,u=852,l=592,c=0,f=1,m=2,g=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],v=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],x=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(w,b,R,A,T,_,P,N){var q=N.bits,H=0,S=0,I=0,W=0,O=0,D=0,J=0,M=0,E=0,L=0,$,F,Z,se,we,ie=null,ve=0,Ee,ee=new i.Buf16(a+1),Fe=new i.Buf16(a+1),Ae=null,Oe=0,Ue,G,z;for(H=0;H<=a;H++)ee[H]=0;for(S=0;S<A;S++)ee[b[R+S]]++;for(O=q,W=a;W>=1&&ee[W]===0;W--);if(O>W&&(O=W),W===0)return T[_++]=1<<24|64<<16|0,T[_++]=1<<24|64<<16|0,N.bits=1,0;for(I=1;I<W&&ee[I]===0;I++);for(O<I&&(O=I),M=1,H=1;H<=a;H++)if(M<<=1,M-=ee[H],M<0)return-1;if(M>0&&(w===c||W!==1))return-1;for(Fe[1]=0,H=1;H<a;H++)Fe[H+1]=Fe[H]+ee[H];for(S=0;S<A;S++)b[R+S]!==0&&(P[Fe[b[R+S]]++]=S);if(w===c?(ie=Ae=P,Ee=19):w===f?(ie=g,ve-=257,Ae=d,Oe-=257,Ee=256):(ie=v,Ae=x,Ee=-1),L=0,S=0,H=I,we=_,D=O,J=0,Z=-1,E=1<<O,se=E-1,w===f&&E>u||w===m&&E>l)return 1;for(;;){Ue=H-J,P[S]<Ee?(G=0,z=P[S]):P[S]>Ee?(G=Ae[Oe+P[S]],z=ie[ve+P[S]]):(G=96,z=0),$=1<<H-J,F=1<<D,I=F;do F-=$,T[we+(L>>J)+F]=Ue<<24|G<<16|z|0;while(F!==0);for($=1<<H-1;L&$;)$>>=1;if($!==0?(L&=$-1,L+=$):L=0,S++,--ee[H]===0){if(H===W)break;H=b[R+P[S]]}if(H>O&&(L&se)!==Z){for(J===0&&(J=O),we+=I,D=H-J,M=1<<D;D+J<W&&(M-=ee[D+J],!(M<=0));)D++,M<<=1;if(E+=1<<D,w===f&&E>u||w===m&&E>l)return 1;Z=L&se,T[Z]=O<<24|D<<16|we-_|0}}return L!==0&&(T[we+L]=H-J<<24|64<<16|0),N.bits=O,0}},{"../utils/common":1}],10:[function(o,n,s){"use strict";n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(o,n,s){"use strict";function i(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}n.exports=i},{}],"/lib/inflate.js":[function(o,n,s){"use strict";var i=o("./zlib/inflate"),a=o("./utils/common"),u=o("./utils/strings"),l=o("./zlib/constants"),c=o("./zlib/messages"),f=o("./zlib/zstream"),m=o("./zlib/gzheader"),g=Object.prototype.toString;function d(C){if(!(this instanceof d))return new d(C);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},C||{});var w=this.options;w.raw&&w.windowBits>=0&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),w.windowBits>=0&&w.windowBits<16&&!(C&&C.windowBits)&&(w.windowBits+=32),w.windowBits>15&&w.windowBits<48&&(w.windowBits&15)===0&&(w.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var b=i.inflateInit2(this.strm,w.windowBits);if(b!==l.Z_OK)throw new Error(c[b]);if(this.header=new m,i.inflateGetHeader(this.strm,this.header),w.dictionary&&(typeof w.dictionary=="string"?w.dictionary=u.string2buf(w.dictionary):g.call(w.dictionary)==="[object ArrayBuffer]"&&(w.dictionary=new Uint8Array(w.dictionary)),w.raw&&(b=i.inflateSetDictionary(this.strm,w.dictionary),b!==l.Z_OK)))throw new Error(c[b])}d.prototype.push=function(C,w){var b=this.strm,R=this.options.chunkSize,A=this.options.dictionary,T,_,P,N,q,H=!1;if(this.ended)return!1;_=w===~~w?w:w===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof C=="string"?b.input=u.binstring2buf(C):g.call(C)==="[object ArrayBuffer]"?b.input=new Uint8Array(C):b.input=C,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new a.Buf8(R),b.next_out=0,b.avail_out=R),T=i.inflate(b,l.Z_NO_FLUSH),T===l.Z_NEED_DICT&&A&&(T=i.inflateSetDictionary(this.strm,A)),T===l.Z_BUF_ERROR&&H===!0&&(T=l.Z_OK,H=!1),T!==l.Z_STREAM_END&&T!==l.Z_OK)return this.onEnd(T),this.ended=!0,!1;b.next_out&&(b.avail_out===0||T===l.Z_STREAM_END||b.avail_in===0&&(_===l.Z_FINISH||_===l.Z_SYNC_FLUSH))&&(this.options.to==="string"?(P=u.utf8border(b.output,b.next_out),N=b.next_out-P,q=u.buf2string(b.output,P),b.next_out=N,b.avail_out=R-N,N&&a.arraySet(b.output,b.output,P,N,0),this.onData(q)):this.onData(a.shrinkBuf(b.output,b.next_out))),b.avail_in===0&&b.avail_out===0&&(H=!0)}while((b.avail_in>0||b.avail_out===0)&&T!==l.Z_STREAM_END);return T===l.Z_STREAM_END&&(_=l.Z_FINISH),_===l.Z_FINISH?(T=i.inflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===l.Z_OK):(_===l.Z_SYNC_FLUSH&&(this.onEnd(l.Z_OK),b.avail_out=0),!0)},d.prototype.onData=function(C){this.chunks.push(C)},d.prototype.onEnd=function(C){C===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=C,this.msg=this.strm.msg};function v(C,w){var b=new d(w);if(b.push(C,!0),b.err)throw b.msg||c[b.err];return b.result}function x(C,w){return w=w||{},w.raw=!0,v(C,w)}s.Inflate=d,s.inflate=v,s.inflateRaw=x,s.ungzip=v},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")})();var TD=globalThis.fetch,oa=class{constructor(e,t={},r){this.type=e,this.detail=t,this.msg=r,Object.defineProperty(this,"__mayPropagate",{enumerable:!1,writable:!0}),this.__mayPropagate=!0}preventDefault(){}stopPropagation(){this.__mayPropagate=!1}valueOf(){return this}toString(){return this.msg?`[${this.type} event]: ${this.msg}`:`[${this.type} event]`}},Gx=class{constructor(){this.listeners={}}addEventListener(e,t,r){let o=this.listeners[e]||[];r?o.unshift(t):o.push(t),this.listeners[e]=o}removeEventListener(e,t){let r=this.listeners[e]||[],o=r.findIndex(n=>n===t);o>-1&&(r.splice(o,1),this.listeners[e]=r)}dispatch(e){let t=this.listeners[e.type];if(t)for(let r=0,o=t.length;r<o&&e.__mayPropagate;r++)t[r](e)}},Yx=new Date("1904-01-01T00:00:00+0000").getTime();function qx(e){return Array.from(e).map(t=>String.fromCharCode(t)).join("")}var Zx=class{constructor(e,t,r){this.name=(r||e.tag||"").trim(),this.length=e.length,this.start=e.offset,this.offset=0,this.data=t,["getInt8","getUint8","getInt16","getUint16","getInt32","getUint32","getBigInt64","getBigUint64"].forEach(o=>{let n=o.replace(/get(Big)?/,"").toLowerCase(),s=parseInt(o.replace(/[^\d]/g,""))/8;Object.defineProperty(this,n,{get:()=>this.getValue(o,s)})})}get currentPosition(){return this.start+this.offset}set currentPosition(e){this.start=e,this.offset=0}skip(e=0,t=8){this.offset+=e*t/8}getValue(e,t){let r=this.start+this.offset;this.offset+=t;try{return this.data[e](r)}catch(o){throw console.error("parser",e,t,this),console.error("parser",this.start,this.offset),o}}flags(e){if(e===8||e===16||e===32||e===64)return this[`uint${e}`].toString(2).padStart(e,0).split("").map(t=>t==="1");console.error("Error parsing flags: flag types can only be 1, 2, 4, or 8 bytes long"),console.trace()}get tag(){let e=this.uint32;return qx([e>>24&255,e>>16&255,e>>8&255,e&255])}get fixed(){let e=this.int16,t=Math.round(1e3*this.uint16/65356);return e+t/1e3}get legacyFixed(){let e=this.uint16,t=this.uint16.toString(16).padStart(4,0);return parseFloat(`${e}.${t}`)}get uint24(){return(this.uint8<<16)+(this.uint8<<8)+this.uint8}get uint128(){let e=0;for(let t=0;t<5;t++){let r=this.uint8;if(e=e*128+(r&127),r<128)break}return e}get longdatetime(){return new Date(Yx+1e3*parseInt(this.int64.toString()))}get fword(){return this.int16}get ufword(){return this.uint16}get Offset16(){return this.uint16}get Offset32(){return this.uint32}get F2DOT14(){let e=p.uint16,t=[0,1,-2,-1][e>>14],r=e&16383;return t+r/16384}verifyLength(){this.offset!=this.length&&console.error(`unexpected parsed table size (${this.offset}) for "${this.name}" (expected ${this.length})`)}readBytes(e=0,t=0,r=8,o=!1){if(e=e||this.length,e===0)return[];t&&(this.currentPosition=t);let n=`${o?"":"u"}int${r}`,s=[];for(;e--;)s.push(this[n]);return s}},ct=class{constructor(e){Object.defineProperty(this,"parser",{enumerable:!1,get:()=>e});let r=e.currentPosition;Object.defineProperty(this,"start",{enumerable:!1,get:()=>r})}load(e){Object.keys(e).forEach(t=>{let r=Object.getOwnPropertyDescriptor(e,t);r.get?this[t]=r.get.bind(this):r.value!==void 0&&(this[t]=r.value)}),this.parser.length&&this.parser.verifyLength()}},Pe=class extends ct{constructor(e,t,r){let{parser:o,start:n}=super(new Zx(e,t,r));Object.defineProperty(this,"p",{enumerable:!1,get:()=>o}),Object.defineProperty(this,"tableStart",{enumerable:!1,get:()=>n})}};function ae(e,t,r){let o;Object.defineProperty(e,t,{get:()=>o||(o=r(),o),enumerable:!0})}var Xx=class extends Pe{constructor(e,t,r){let{p:o}=super({offset:0,length:12},t,"sfnt");this.version=o.uint32,this.numTables=o.uint16,this.searchRange=o.uint16,this.entrySelector=o.uint16,this.rangeShift=o.uint16,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(n=>new Kx(o)),this.tables={},this.directory.forEach(n=>{let s=()=>r(this.tables,{tag:n.tag,offset:n.offset,length:n.length},t);ae(this.tables,n.tag.trim(),s)})}},Kx=class{constructor(e){this.tag=e.tag,this.checksum=e.uint32,this.offset=e.uint32,this.length=e.uint32}},Kg=Xg.inflate||void 0,Jg=void 0,Jx=class extends Pe{constructor(e,t,r){let{p:o}=super({offset:0,length:44},t,"woff");this.signature=o.tag,this.flavor=o.uint32,this.length=o.uint32,this.numTables=o.uint16,o.uint16,this.totalSfntSize=o.uint32,this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.metaOffset=o.uint32,this.metaLength=o.uint32,this.metaOrigLength=o.uint32,this.privOffset=o.uint32,this.privLength=o.uint32,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(n=>new Qx(o)),$x(this,t,r)}},Qx=class{constructor(e){this.tag=e.tag,this.offset=e.uint32,this.compLength=e.uint32,this.origLength=e.uint32,this.origChecksum=e.uint32}};function $x(e,t,r){e.tables={},e.directory.forEach(o=>{ae(e.tables,o.tag.trim(),()=>{let n=0,s=t;if(o.compLength!==o.origLength){let i=t.buffer.slice(o.offset,o.offset+o.compLength),a;if(Kg)a=Kg(new Uint8Array(i));else if(Jg)a=Jg(new Uint8Array(i));else{let u="no brotli decoder available to decode WOFF2 font";throw font.onerror&&font.onerror(u),new Error(u)}s=new DataView(a.buffer)}else n=o.offset;return r(e.tables,{tag:o.tag,offset:n,length:o.origLength},s)})})}var Qg=Zg,$g=void 0,eS=class extends Pe{constructor(e,t,r){let{p:o}=super({offset:0,length:48},t,"woff2");this.signature=o.tag,this.flavor=o.uint32,this.length=o.uint32,this.numTables=o.uint16,o.uint16,this.totalSfntSize=o.uint32,this.totalCompressedSize=o.uint32,this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.metaOffset=o.uint32,this.metaLength=o.uint32,this.metaOrigLength=o.uint32,this.privOffset=o.uint32,this.privLength=o.uint32,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(a=>new tS(o));let n=o.currentPosition;this.directory[0].offset=0,this.directory.forEach((a,u)=>{let l=this.directory[u+1];l&&(l.offset=a.offset+(a.transformLength!==void 0?a.transformLength:a.origLength))});let s,i=t.buffer.slice(n);if(Qg)s=Qg(new Uint8Array(i));else if($g)s=new Uint8Array($g(i));else{let a="no brotli decoder available to decode WOFF2 font";throw e.onerror&&e.onerror(a),new Error(a)}rS(this,s,r)}},tS=class{constructor(e){this.flags=e.uint8;let t=this.tagNumber=this.flags&63;t===63?this.tag=e.tag:this.tag=oS(t);let o=(this.transformVersion=(this.flags&192)>>6)!==0;(this.tag==="glyf"||this.tag==="loca")&&(o=this.transformVersion!==3),this.origLength=e.uint128,o&&(this.transformLength=e.uint128)}};function rS(e,t,r){e.tables={},e.directory.forEach(o=>{ae(e.tables,o.tag.trim(),()=>{let n=o.offset,s=n+(o.transformLength?o.transformLength:o.origLength),i=new DataView(t.slice(n,s).buffer);try{return r(e.tables,{tag:o.tag,offset:0,length:o.origLength},i)}catch(a){console.error(a)}})})}function oS(e){return["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"][e&63]}var iy={},ay=!1;Promise.all([Promise.resolve().then(function(){return FS}),Promise.resolve().then(function(){return IS}),Promise.resolve().then(function(){return NS}),Promise.resolve().then(function(){return VS}),Promise.resolve().then(function(){return jS}),Promise.resolve().then(function(){return GS}),Promise.resolve().then(function(){return qS}),Promise.resolve().then(function(){return XS}),Promise.resolve().then(function(){return sC}),Promise.resolve().then(function(){return gC}),Promise.resolve().then(function(){return oR}),Promise.resolve().then(function(){return sR}),Promise.resolve().then(function(){return cR}),Promise.resolve().then(function(){return pR}),Promise.resolve().then(function(){return hR}),Promise.resolve().then(function(){return yR}),Promise.resolve().then(function(){return wR}),Promise.resolve().then(function(){return SR}),Promise.resolve().then(function(){return RR}),Promise.resolve().then(function(){return TR}),Promise.resolve().then(function(){return PR}),Promise.resolve().then(function(){return kR}),Promise.resolve().then(function(){return IR}),Promise.resolve().then(function(){return DR}),Promise.resolve().then(function(){return MR}),Promise.resolve().then(function(){return BR}),Promise.resolve().then(function(){return zR}),Promise.resolve().then(function(){return HR}),Promise.resolve().then(function(){return GR}),Promise.resolve().then(function(){return ZR}),Promise.resolve().then(function(){return eE}),Promise.resolve().then(function(){return nE}),Promise.resolve().then(function(){return aE}),Promise.resolve().then(function(){return fE}),Promise.resolve().then(function(){return pE}),Promise.resolve().then(function(){return hE}),Promise.resolve().then(function(){return vE}),Promise.resolve().then(function(){return wE}),Promise.resolve().then(function(){return EE}),Promise.resolve().then(function(){return _E}),Promise.resolve().then(function(){return kE})]).then(e=>{e.forEach(t=>{let r=Object.keys(t)[0];iy[r]=t[r]}),ay=!0});function nS(e,t,r){let o=t.tag.replace(/[^\w\d]/g,""),n=iy[o];return n?new n(t,r,e):(console.warn(`lib-font has no definition for ${o}. The table was skipped.`),{})}function sS(){let e=0;function t(r,o){if(!ay)return e>10?o(new Error("loading took too long")):(e++,setTimeout(()=>t(r),250));r(nS)}return new Promise((r,o)=>t(r))}function iS(e,t){let r=e.lastIndexOf("."),o=(e.substring(r+1)||"").toLowerCase(),n={ttf:"truetype",otf:"opentype",woff:"woff",woff2:"woff2"}[o];if(n)return n;let s={eot:"The .eot format is not supported: it died in January 12, 2016, when Microsoft retired all versions of IE that didn't already support WOFF.",svg:"The .svg format is not supported: SVG fonts (not to be confused with OpenType with embedded SVG) were so bad we took the entire fonts chapter out of the SVG specification again.",fon:"The .fon format is not supported: this is an ancient Windows bitmap font format.",ttc:"Based on the current CSS specification, font collections are not (yet?) supported."}[o];if(s||(s=`${e} is not a known webfont format.`),t)throw new Error(s);console.warn(`Could not load font: ${s}`)}async function aS(e,t,r={}){if(!globalThis.document)return;let o=iS(t,r.errorOnStyle);if(!o)return;let n=document.createElement("style");n.className="injected-by-Font-js";let s=[];return r.styleRules&&(s=Object.entries(r.styleRules).map(([i,a])=>`${i}: ${a};`)),n.textContent=`
@font-face {
font-family: "${e}";
${s.join(`
`)}
src: url("${t}") format("${o}");
-}`,globalThis.document.head.appendChild(n),n}var Zx=[0,1,0,0],Xx=[79,84,84,79],Kx=[119,79,70,70],Jx=[119,79,70,50];function oa(e,t){if(e.length===t.length){for(let r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function Qx(e){let t=[e.getUint8(0),e.getUint8(1),e.getUint8(2),e.getUint8(3)];if(oa(t,Zx)||oa(t,Xx))return"SFNT";if(oa(t,Kx))return"WOFF";if(oa(t,Jx))return"WOFF2"}function $x(e){if(!e.ok)throw new Error(`HTTP ${e.status} - ${e.statusText}`);return e}var sa=class extends Fx{constructor(e,t={}){super(),this.name=e,this.options=t,this.metrics=!1}get src(){return this.__src}set src(e){this.__src=e,(async()=>(globalThis.document&&!this.options.skipStyleSheet&&await qx(this.name,e,this.options),this.loadFont(e)))()}async loadFont(e,t){fetch(e).then(r=>$x(r)&&r.arrayBuffer()).then(r=>this.fromDataBuffer(r,t||e)).catch(r=>{let o=new ra("error",r,`Failed to load font at ${t||e}`);this.dispatch(o),this.onerror&&this.onerror(o)})}async fromDataBuffer(e,t){this.fontData=new DataView(e);let r=Qx(this.fontData);if(!r)throw new Error(`${t} is either an unsupported font format, or not a font at all.`);await this.parseBasicData(r);let o=new ra("load",{font:this});this.dispatch(o),this.onload&&this.onload(o)}async parseBasicData(e){return Gx().then(t=>(e==="SFNT"&&(this.opentype=new Nx(this,this.fontData,t)),e==="WOFF"&&(this.opentype=new Mx(this,this.fontData,t)),e==="WOFF2"&&(this.opentype=new zx(this,this.fontData,t)),this.opentype))}getGlyphId(e){return this.opentype.tables.cmap.getGlyphId(e)}reverse(e){return this.opentype.tables.cmap.reverse(e)}supports(e){return this.getGlyphId(e)!==0}supportsVariation(e){return this.opentype.tables.cmap.supportsVariation(e)!==!1}measureText(e,t=16){if(this.__unloaded)throw new Error("Cannot measure text: font was unloaded. Please reload before calling measureText()");let r=document.createElement("div");r.textContent=e,r.style.fontFamily=this.name,r.style.fontSize=`${t}px`,r.style.color="transparent",r.style.background="transparent",r.style.top="0",r.style.left="0",r.style.position="absolute",document.body.appendChild(r);let o=r.getBoundingClientRect();document.body.removeChild(r);let n=this.opentype.tables["OS/2"];return o.fontSize=t,o.ascender=n.sTypoAscender,o.descender=n.sTypoDescender,o}unload(){if(this.styleElement.parentNode){this.styleElement.parentNode.removeElement(this.styleElement);let e=new ra("unload",{font:this});this.dispatch(e),this.onunload&&this.onunload(e)}this._unloaded=!0}load(){if(this.__unloaded){delete this.__unloaded,document.head.appendChild(this.styleElement);let e=new ra("load",{font:this});this.dispatch(e),this.onload&&this.onload(e)}}};globalThis.Font=sa;var eo=class extends ct{constructor(e,t,r){super(e),this.plaformID=t,this.encodingID=r}},eS=class extends eo{constructor(e,t,r){super(e,t,r),this.format=0,this.length=e.uint16,this.language=e.uint16,this.glyphIdArray=[...new Array(256)].map(o=>e.uint8)}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 0. only supports(id) is implemented.")),0<=e&&e<=255}reverse(e){return console.warn("reverse not implemented for cmap subtable format 0"),{}}getSupportedCharCodes(){return[{start:1,end:256}]}},tS=class extends eo{constructor(e,t,r){super(e,t,r),this.format=2,this.length=e.uint16,this.language=e.uint16,this.subHeaderKeys=[...new Array(256)].map(i=>e.uint16);let o=Math.max(...this.subHeaderKeys),n=e.currentPosition;ae(this,"subHeaders",()=>(e.currentPosition=n,[...new Array(o)].map(i=>new rS(e))));let s=n+o*8;ae(this,"glyphIndexArray",()=>(e.currentPosition=s,[...new Array(o)].map(i=>e.uint16)))}supports(e){e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 2. only supports(id) is implemented."));let t=e&&255,r=e&&65280,o=this.subHeaders[r],n=this.subHeaders[o],s=n.firstCode,i=s+n.entryCount;return s<=t&&t<=i}reverse(e){return console.warn("reverse not implemented for cmap subtable format 2"),{}}getSupportedCharCodes(e=!1){return e?this.subHeaders.map(t=>({firstCode:t.firstCode,lastCode:t.lastCode})):this.subHeaders.map(t=>({start:t.firstCode,end:t.lastCode}))}},rS=class{constructor(e){this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.first+this.entryCount,this.idDelta=e.int16,this.idRangeOffset=e.uint16}},oS=class extends eo{constructor(e,t,r){super(e,t,r),this.format=4,this.length=e.uint16,this.language=e.uint16,this.segCountX2=e.uint16,this.segCount=this.segCountX2/2,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16;let o=e.currentPosition;ae(this,"endCode",()=>e.readBytes(this.segCount,o,16));let n=o+2+this.segCountX2;ae(this,"startCode",()=>e.readBytes(this.segCount,n,16));let s=n+this.segCountX2;ae(this,"idDelta",()=>e.readBytes(this.segCount,s,16,!0));let i=s+this.segCountX2;ae(this,"idRangeOffset",()=>e.readBytes(this.segCount,i,16));let a=i+this.segCountX2,u=this.length-(a-this.tableStart);ae(this,"glyphIdArray",()=>e.readBytes(u,a,16)),ae(this,"segments",()=>this.buildSegments(i,a,e))}buildSegments(e,t,r){let o=(n,s)=>{let i=this.startCode[s],a=this.endCode[s],u=this.idDelta[s],l=this.idRangeOffset[s],c=e+2*s,f=[];if(l===0)for(let m=i+u,g=a+u;m<=g;m++)f.push(m);else for(let m=0,g=a-i;m<=g;m++)r.currentPosition=c+l+m*2,f.push(r.uint16);return{startCode:i,endCode:a,idDelta:u,idRangeOffset:l,glyphIDs:f}};return[...new Array(this.segCount)].map(o)}reverse(e){let t=this.segments.find(o=>o.glyphIDs.includes(e));if(!t)return{};let r=t.startCode+t.glyphIDs.indexOf(e);return{code:r,unicode:String.fromCodePoint(r)}}getGlyphId(e){if(e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343||(e&65534)===65534||(e&65535)===65535)return 0;let t=this.segments.find(r=>r.startCode<=e&&e<=r.endCode);return t?t.glyphIDs[e-t.startCode]:0}supports(e){return this.getGlyphId(e)!==0}getSupportedCharCodes(e=!1){return e?this.segments:this.segments.map(t=>({start:t.startCode,end:t.endCode}))}},nS=class extends eo{constructor(e,t,r){super(e,t,r),this.format=6,this.length=e.uint16,this.language=e.uint16,this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.firstCode+this.entryCount-1,ae(this,"glyphIdArray",()=>[...new Array(this.entryCount)].map(n=>e.uint16))}supports(e){if(e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 6. only supports(id) is implemented.")),e<this.firstCode)return{};if(e>this.firstCode+this.entryCount)return{};let t=e-this.firstCode;return{code:t,unicode:String.fromCodePoint(t)}}reverse(e){let t=this.glyphIdArray.indexOf(e);if(t>-1)return this.firstCode+t}getSupportedCharCodes(e=!1){return e?[{firstCode:this.firstCode,lastCode:this.lastCode}]:[{start:this.firstCode,end:this.lastCode}]}},sS=class extends eo{constructor(e,t,r){super(e,t,r),this.format=8,e.uint16,this.length=e.uint32,this.language=e.uint32,this.is32=[...new Array(8192)].map(n=>e.uint8),this.numGroups=e.uint32,ae(this,"groups",()=>[...new Array(this.numGroups)].map(n=>new iS(e)))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 8. only supports(id) is implemented.")),this.groups.findIndex(t=>t.startcharCode<=e&&e<=t.endcharCode)!==-1}reverse(e){return console.warn("reverse not implemented for cmap subtable format 8"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map(t=>({start:t.startcharCode,end:t.endcharCode}))}},iS=class{constructor(e){this.startcharCode=e.uint32,this.endcharCode=e.uint32,this.startGlyphID=e.uint32}},aS=class extends eo{constructor(e,t,r){super(e,t,r),this.format=10,e.uint16,this.length=e.uint32,this.language=e.uint32,this.startCharCode=e.uint32,this.numChars=e.uint32,this.endCharCode=this.startCharCode+this.numChars,ae(this,"glyphs",()=>[...new Array(this.numChars)].map(n=>e.uint16))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 10. only supports(id) is implemented.")),e<this.startCharCode||e>this.startCharCode+this.numChars?!1:e-this.startCharCode}reverse(e){return console.warn("reverse not implemented for cmap subtable format 10"),{}}getSupportedCharCodes(e=!1){return e?[{startCharCode:this.startCharCode,endCharCode:this.endCharCode}]:[{start:this.startCharCode,end:this.endCharCode}]}},lS=class extends eo{constructor(e,t,r){super(e,t,r),this.format=12,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32,ae(this,"groups",()=>[...new Array(this.numGroups)].map(n=>new cS(e)))}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343||(e&65534)===65534||(e&65535)===65535?0:this.groups.findIndex(t=>t.startCharCode<=e&&e<=t.endCharCode)!==-1}reverse(e){for(let t of this.groups){let r=t.startGlyphID;if(r>e)continue;if(r===e)return t.startCharCode;if(r+(t.endCharCode-t.startCharCode)<e)continue;let n=t.startCharCode+(e-r);return{code:n,unicode:String.fromCodePoint(n)}}return{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map(t=>({start:t.startCharCode,end:t.endCharCode}))}},cS=class{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.startGlyphID=e.uint32}},uS=class extends eo{constructor(e,t,r){super(e,t,r),this.format=13,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32;let o=[...new Array(this.numGroups)].map(n=>new fS(e));ae(this,"groups",o)}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),this.groups.findIndex(t=>t.startCharCode<=e&&e<=t.endCharCode)!==-1}reverse(e){return console.warn("reverse not implemented for cmap subtable format 13"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map(t=>({start:t.startCharCode,end:t.endCharCode}))}},fS=class{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.glyphID=e.uint32}},dS=class extends eo{constructor(e,t,r){super(e,t,r),this.subTableStart=e.currentPosition,this.format=14,this.length=e.uint32,this.numVarSelectorRecords=e.uint32,ae(this,"varSelectors",()=>[...new Array(this.numVarSelectorRecords)].map(o=>new pS(e)))}supports(){return console.warn("supports not implemented for cmap subtable format 14"),0}getSupportedCharCodes(){return console.warn("getSupportedCharCodes not implemented for cmap subtable format 14"),[]}reverse(e){return console.warn("reverse not implemented for cmap subtable format 14"),{}}supportsVariation(e){let t=this.varSelector.find(r=>r.varSelector===e);return t||!1}getSupportedVariations(){return this.varSelectors.map(e=>e.varSelector)}},pS=class{constructor(e){this.varSelector=e.uint24,this.defaultUVSOffset=e.Offset32,this.nonDefaultUVSOffset=e.Offset32}};function mS(e,t,r){let o=e.uint16;return o===0?new eS(e,t,r):o===2?new tS(e,t,r):o===4?new oS(e,t,r):o===6?new nS(e,t,r):o===8?new sS(e,t,r):o===10?new aS(e,t,r):o===12?new lS(e,t,r):o===13?new uS(e,t,r):o===14?new dS(e,t,r):{}}var hS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numTables=r.uint16,this.encodingRecords=[...new Array(this.numTables)].map(o=>new gS(r,this.tableStart))}getSubTable(e){return this.encodingRecords[e].table}getSupportedEncodings(){return this.encodingRecords.map(e=>({platformID:e.platformID,encodingId:e.encodingID}))}getSupportedCharCodes(e,t){let r=this.encodingRecords.findIndex(n=>n.platformID===e&&n.encodingID===t);return r===-1?!1:this.getSubTable(r).getSupportedCharCodes()}reverse(e){for(let t=0;t<this.numTables;t++){let r=this.getSubTable(t).reverse(e);if(r)return r}}getGlyphId(e){let t=0;return this.encodingRecords.some((r,o)=>{let n=this.getSubTable(o);return n.getGlyphId?(t=n.getGlyphId(e),t!==0):!1}),t}supports(e){return this.encodingRecords.some((t,r)=>{let o=this.getSubTable(r);return o.supports&&o.supports(e)!==!1})}supportsVariation(e){return this.encodingRecords.some((t,r)=>{let o=this.getSubTable(r);return o.supportsVariation&&o.supportsVariation(e)!==!1})}},gS=class{constructor(e,t){let r=this.platformID=e.uint16,o=this.encodingID=e.uint16,n=this.offset=e.Offset32;ae(this,"table",()=>(e.currentPosition=t+n,mS(e,r,o)))}},yS=Object.freeze({__proto__:null,cmap:hS}),vS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.load({majorVersion:r.uint16,minorVersion:r.uint16,fontRevision:r.fixed,checkSumAdjustment:r.uint32,magicNumber:r.uint32,flags:r.flags(16),unitsPerEm:r.uint16,created:r.longdatetime,modified:r.longdatetime,xMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16,macStyle:r.flags(16),lowestRecPPEM:r.uint16,fontDirectionHint:r.uint16,indexToLocFormat:r.uint16,glyphDataFormat:r.uint16})}},bS=Object.freeze({__proto__:null,head:vS}),wS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.ascender=r.fword,this.descender=r.fword,this.lineGap=r.fword,this.advanceWidthMax=r.ufword,this.minLeftSideBearing=r.fword,this.minRightSideBearing=r.fword,this.xMaxExtent=r.fword,this.caretSlopeRise=r.int16,this.caretSlopeRun=r.int16,this.caretOffset=r.int16,r.int16,r.int16,r.int16,r.int16,this.metricDataFormat=r.int16,this.numberOfHMetrics=r.uint16,r.verifyLength()}},xS=Object.freeze({__proto__:null,hhea:wS}),SS=class extends Pe{constructor(e,t,r){let{p:o}=super(e,t),n=r.hhea.numberOfHMetrics,s=r.maxp.numGlyphs,i=o.currentPosition;if(ae(this,"hMetrics",()=>(o.currentPosition=i,[...new Array(n)].map(a=>new CS(o.uint16,o.int16)))),n<s){let a=i+n*4;ae(this,"leftSideBearings",()=>(o.currentPosition=a,[...new Array(s-n)].map(u=>o.int16)))}}},CS=class{constructor(e,t){this.advanceWidth=e,this.lsb=t}},RS=Object.freeze({__proto__:null,hmtx:SS}),ES=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.legacyFixed,this.numGlyphs=r.uint16,this.version===1&&(this.maxPoints=r.uint16,this.maxContours=r.uint16,this.maxCompositePoints=r.uint16,this.maxCompositeContours=r.uint16,this.maxZones=r.uint16,this.maxTwilightPoints=r.uint16,this.maxStorage=r.uint16,this.maxFunctionDefs=r.uint16,this.maxInstructionDefs=r.uint16,this.maxStackElements=r.uint16,this.maxSizeOfInstructions=r.uint16,this.maxComponentElements=r.uint16,this.maxComponentDepth=r.uint16),r.verifyLength()}},TS=Object.freeze({__proto__:null,maxp:ES}),_S=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.format=r.uint16,this.count=r.uint16,this.stringOffset=r.Offset16,this.nameRecords=[...new Array(this.count)].map(o=>new PS(r,this)),this.format===1&&(this.langTagCount=r.uint16,this.langTagRecords=[...new Array(this.langTagCount)].map(o=>new OS(r.uint16,r.Offset16))),this.stringStart=this.tableStart+this.stringOffset}get(e){let t=this.nameRecords.find(r=>r.nameID===e);if(t)return t.string}},OS=class{constructor(e,t){this.length=e,this.offset=t}},PS=class{constructor(e,t){this.platformID=e.uint16,this.encodingID=e.uint16,this.languageID=e.uint16,this.nameID=e.uint16,this.length=e.uint16,this.offset=e.Offset16,ae(this,"string",()=>(e.currentPosition=t.stringStart+this.offset,kS(e,this)))}};function kS(e,t){let{platformID:r,length:o}=t;if(o===0)return"";if(r===0||r===3){let i=[];for(let a=0,u=o/2;a<u;a++)i[a]=String.fromCharCode(e.uint16);return i.join("")}let n=e.readBytes(o),s=[];return n.forEach(function(i,a){s[a]=String.fromCharCode(i)}),s.join("")}var FS=Object.freeze({__proto__:null,name:_S}),AS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);if(this.version=r.uint16,this.xAvgCharWidth=r.int16,this.usWeightClass=r.uint16,this.usWidthClass=r.uint16,this.fsType=r.uint16,this.ySubscriptXSize=r.int16,this.ySubscriptYSize=r.int16,this.ySubscriptXOffset=r.int16,this.ySubscriptYOffset=r.int16,this.ySuperscriptXSize=r.int16,this.ySuperscriptYSize=r.int16,this.ySuperscriptXOffset=r.int16,this.ySuperscriptYOffset=r.int16,this.yStrikeoutSize=r.int16,this.yStrikeoutPosition=r.int16,this.sFamilyClass=r.int16,this.panose=[...new Array(10)].map(o=>r.uint8),this.ulUnicodeRange1=r.flags(32),this.ulUnicodeRange2=r.flags(32),this.ulUnicodeRange3=r.flags(32),this.ulUnicodeRange4=r.flags(32),this.achVendID=r.tag,this.fsSelection=r.uint16,this.usFirstCharIndex=r.uint16,this.usLastCharIndex=r.uint16,this.sTypoAscender=r.int16,this.sTypoDescender=r.int16,this.sTypoLineGap=r.int16,this.usWinAscent=r.uint16,this.usWinDescent=r.uint16,this.version===0||(this.ulCodePageRange1=r.flags(32),this.ulCodePageRange2=r.flags(32),this.version===1)||(this.sxHeight=r.int16,this.sCapHeight=r.int16,this.usDefaultChar=r.uint16,this.usBreakChar=r.uint16,this.usMaxContext=r.uint16,this.version<=4)||(this.usLowerOpticalPointSize=r.uint16,this.usUpperOpticalPointSize=r.uint16,this.version===5))return r.verifyLength()}},IS=Object.freeze({__proto__:null,OS2:AS}),LS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);if(this.version=r.legacyFixed,this.italicAngle=r.fixed,this.underlinePosition=r.fword,this.underlineThickness=r.fword,this.isFixedPitch=r.uint32,this.minMemType42=r.uint32,this.maxMemType42=r.uint32,this.minMemType1=r.uint32,this.maxMemType1=r.uint32,this.version===1||this.version===3)return r.verifyLength();if(this.numGlyphs=r.uint16,this.version===2){this.glyphNameIndex=[...new Array(this.numGlyphs)].map(o=>r.uint16),this.namesOffset=r.currentPosition,this.glyphNameOffsets=[1];for(let o=0;o<this.numGlyphs;o++){if(this.glyphNameIndex[o]<Yg.length){this.glyphNameOffsets.push(this.glyphNameOffsets[o]);continue}let s=r.int8;r.skip(s),this.glyphNameOffsets.push(this.glyphNameOffsets[o]+s+1)}}this.version===2.5&&(this.offset=[...new Array(this.numGlyphs)].map(o=>r.int8))}getGlyphName(e){if(this.version!==2)return console.warn(`post table version ${this.version} does not support glyph name lookups`),"";let t=this.glyphNameIndex[e];if(t<258)return Yg[t];let r=this.glyphNameOffsets[e],n=this.glyphNameOffsets[e+1]-r-1;return n===0?".notdef.":(this.parser.currentPosition=this.namesOffset+r,this.parser.readBytes(n,this.namesOffset+r,8,!0).map(i=>String.fromCharCode(i)).join(""))}},Yg=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"],NS=Object.freeze({__proto__:null,post:LS}),DS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.horizAxisOffset=r.Offset16,this.vertAxisOffset=r.Offset16,ae(this,"horizAxis",()=>new Uc({offset:e.offset+this.horizAxisOffset},t)),ae(this,"vertAxis",()=>new Uc({offset:e.offset+this.vertAxisOffset},t)),this.majorVersion===1&&this.minorVersion===1&&(this.itemVarStoreOffset=r.Offset32,ae(this,"itemVarStore",()=>new Uc({offset:e.offset+this.itemVarStoreOffset},t)))}},Uc=class extends Pe{constructor(e,t){let{p:r}=super(e,t,"AxisTable");this.baseTagListOffset=r.Offset16,this.baseScriptListOffset=r.Offset16,ae(this,"baseTagList",()=>new MS({offset:e.offset+this.baseTagListOffset},t)),ae(this,"baseScriptList",()=>new VS({offset:e.offset+this.baseScriptListOffset},t))}},MS=class extends Pe{constructor(e,t){let{p:r}=super(e,t,"BaseTagListTable");this.baseTagCount=r.uint16,this.baselineTags=[...new Array(this.baseTagCount)].map(o=>r.tag)}},VS=class extends Pe{constructor(e,t){let{p:r}=super(e,t,"BaseScriptListTable");this.baseScriptCount=r.uint16;let o=r.currentPosition;ae(this,"baseScriptRecords",()=>(r.currentPosition=o,[...new Array(this.baseScriptCount)].map(n=>new BS(this.start,r))))}},BS=class{constructor(e,t){this.baseScriptTag=t.tag,this.baseScriptOffset=t.Offset16,ae(this,"baseScriptTable",()=>(t.currentPosition=e+this.baseScriptOffset,new zS(t)))}},zS=class{constructor(e){this.start=e.currentPosition,this.baseValuesOffset=e.Offset16,this.defaultMinMaxOffset=e.Offset16,this.baseLangSysCount=e.uint16,this.baseLangSysRecords=[...new Array(this.baseLangSysCount)].map(t=>new jS(this.start,e)),ae(this,"baseValues",()=>(e.currentPosition=this.start+this.baseValuesOffset,new HS(e))),ae(this,"defaultMinMax",()=>(e.currentPosition=this.start+this.defaultMinMaxOffset,new ey(e)))}},jS=class{constructor(e,t){this.baseLangSysTag=t.tag,this.minMaxOffset=t.Offset16,ae(this,"minMax",()=>(t.currentPosition=e+this.minMaxOffset,new ey(t)))}},HS=class{constructor(e){this.parser=e,this.start=e.currentPosition,this.defaultBaselineIndex=e.uint16,this.baseCoordCount=e.uint16,this.baseCoords=[...new Array(this.baseCoordCount)].map(t=>e.Offset16)}getTable(e){return this.parser.currentPosition=this.start+this.baseCoords[e],new WS(this.parser)}},ey=class{constructor(e){this.minCoord=e.Offset16,this.maxCoord=e.Offset16,this.featMinMaxCount=e.uint16;let t=e.currentPosition;ae(this,"featMinMaxRecords",()=>(e.currentPosition=t,[...new Array(this.featMinMaxCount)].map(r=>new US(e))))}},US=class{constructor(e){this.featureTableTag=e.tag,this.minCoord=e.Offset16,this.maxCoord=e.Offset16}},WS=class{constructor(e){this.baseCoordFormat=e.uint16,this.coordinate=e.int16,this.baseCoordFormat===2&&(this.referenceGlyph=e.uint16,this.baseCoordPoint=e.uint16),this.baseCoordFormat===3&&(this.deviceTable=e.Offset16)}},GS=Object.freeze({__proto__:null,BASE:DS}),qg=class{constructor(e){this.classFormat=e.uint16,this.classFormat===1&&(this.startGlyphID=e.uint16,this.glyphCount=e.uint16,this.classValueArray=[...new Array(this.glyphCount)].map(t=>e.uint16)),this.classFormat===2&&(this.classRangeCount=e.uint16,this.classRangeRecords=[...new Array(this.classRangeCount)].map(t=>new YS(e)))}},YS=class{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.class=e.uint16}},Rs=class extends ct{constructor(e){super(e),this.coverageFormat=e.uint16,this.coverageFormat===1&&(this.glyphCount=e.uint16,this.glyphArray=[...new Array(this.glyphCount)].map(t=>e.uint16)),this.coverageFormat===2&&(this.rangeCount=e.uint16,this.rangeRecords=[...new Array(this.rangeCount)].map(t=>new qS(e)))}},qS=class{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.startCoverageIndex=e.uint16}},ZS=class{constructor(e,t){this.table=e,this.parser=t,this.start=t.currentPosition,this.format=t.uint16,this.variationRegionListOffset=t.Offset32,this.itemVariationDataCount=t.uint16,this.itemVariationDataOffsets=[...new Array(this.itemVariationDataCount)].map(r=>t.Offset32)}},XS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.glyphClassDefOffset=r.Offset16,ae(this,"glyphClassDefs",()=>{if(this.glyphClassDefOffset!==0)return r.currentPosition=this.tableStart+this.glyphClassDefOffset,new qg(r)}),this.attachListOffset=r.Offset16,ae(this,"attachList",()=>{if(this.attachListOffset!==0)return r.currentPosition=this.tableStart+this.attachListOffset,new KS(r)}),this.ligCaretListOffset=r.Offset16,ae(this,"ligCaretList",()=>{if(this.ligCaretListOffset!==0)return r.currentPosition=this.tableStart+this.ligCaretListOffset,new QS(r)}),this.markAttachClassDefOffset=r.Offset16,ae(this,"markAttachClassDef",()=>{if(this.markAttachClassDefOffset!==0)return r.currentPosition=this.tableStart+this.markAttachClassDefOffset,new qg(r)}),this.minorVersion>=2&&(this.markGlyphSetsDefOffset=r.Offset16,ae(this,"markGlyphSetsDef",()=>{if(this.markGlyphSetsDefOffset!==0)return r.currentPosition=this.tableStart+this.markGlyphSetsDefOffset,new tC(r)})),this.minorVersion===3&&(this.itemVarStoreOffset=r.Offset32,ae(this,"itemVarStore",()=>{if(this.itemVarStoreOffset!==0)return r.currentPosition=this.tableStart+this.itemVarStoreOffset,new ZS(r)}))}},KS=class extends ct{constructor(e){super(e),this.coverageOffset=e.Offset16,this.glyphCount=e.uint16,this.attachPointOffsets=[...new Array(this.glyphCount)].map(t=>e.Offset16)}getPoint(e){return this.parser.currentPosition=this.start+this.attachPointOffsets[e],new JS(this.parser)}},JS=class{constructor(e){this.pointCount=e.uint16,this.pointIndices=[...new Array(this.pointCount)].map(t=>e.uint16)}},QS=class extends ct{constructor(e){super(e),this.coverageOffset=e.Offset16,ae(this,"coverage",()=>(e.currentPosition=this.start+this.coverageOffset,new Rs(e))),this.ligGlyphCount=e.uint16,this.ligGlyphOffsets=[...new Array(this.ligGlyphCount)].map(t=>e.Offset16)}getLigGlyph(e){return this.parser.currentPosition=this.start+this.ligGlyphOffsets[e],new $S(this.parser)}},$S=class extends ct{constructor(e){super(e),this.caretCount=e.uint16,this.caretValueOffsets=[...new Array(this.caretCount)].map(t=>e.Offset16)}getCaretValue(e){return this.parser.currentPosition=this.start+this.caretValueOffsets[e],new eC(this.parser)}},eC=class{constructor(e){this.caretValueFormat=e.uint16,this.caretValueFormat===1&&(this.coordinate=e.int16),this.caretValueFormat===2&&(this.caretValuePointIndex=e.uint16),this.caretValueFormat===3&&(this.coordinate=e.int16,this.deviceOffset=e.Offset16)}},tC=class extends ct{constructor(e){super(e),this.markGlyphSetTableFormat=e.uint16,this.markGlyphSetCount=e.uint16,this.coverageOffsets=[...new Array(this.markGlyphSetCount)].map(t=>e.Offset32)}getMarkGlyphSet(e){return this.parser.currentPosition=this.start+this.coverageOffsets[e],new Rs(this.parser)}},rC=Object.freeze({__proto__:null,GDEF:XS}),Zg=class extends ct{static EMPTY={scriptCount:0,scriptRecords:[]};constructor(e){super(e),this.scriptCount=e.uint16,this.scriptRecords=[...new Array(this.scriptCount)].map(t=>new oC(e))}},oC=class{constructor(e){this.scriptTag=e.tag,this.scriptOffset=e.Offset16}},nC=class extends ct{constructor(e){super(e),this.defaultLangSys=e.Offset16,this.langSysCount=e.uint16,this.langSysRecords=[...new Array(this.langSysCount)].map(t=>new sC(e))}},sC=class{constructor(e){this.langSysTag=e.tag,this.langSysOffset=e.Offset16}},Xg=class{constructor(e){this.lookupOrder=e.Offset16,this.requiredFeatureIndex=e.uint16,this.featureIndexCount=e.uint16,this.featureIndices=[...new Array(this.featureIndexCount)].map(t=>e.uint16)}},Kg=class extends ct{static EMPTY={featureCount:0,featureRecords:[]};constructor(e){super(e),this.featureCount=e.uint16,this.featureRecords=[...new Array(this.featureCount)].map(t=>new iC(e))}},iC=class{constructor(e){this.featureTag=e.tag,this.featureOffset=e.Offset16}},aC=class extends ct{constructor(e){super(e),this.featureParams=e.Offset16,this.lookupIndexCount=e.uint16,this.lookupListIndices=[...new Array(this.lookupIndexCount)].map(t=>e.uint16)}getFeatureParams(){if(this.featureParams>0){let e=this.parser;e.currentPosition=this.start+this.featureParams;let t=this.featureTag;if(t==="size")return new cC(e);if(t.startsWith("cc"))return new lC(e);if(t.startsWith("ss"))return new uC(e)}}},lC=class{constructor(e){this.format=e.uint16,this.featUiLabelNameId=e.uint16,this.featUiTooltipTextNameId=e.uint16,this.sampleTextNameId=e.uint16,this.numNamedParameters=e.uint16,this.firstParamUiLabelNameId=e.uint16,this.charCount=e.uint16,this.character=[...new Array(this.charCount)].map(t=>e.uint24)}},cC=class{constructor(e){this.designSize=e.uint16,this.subfamilyIdentifier=e.uint16,this.subfamilyNameID=e.uint16,this.smallEnd=e.uint16,this.largeEnd=e.uint16}},uC=class{constructor(e){this.version=e.uint16,this.UINameID=e.uint16}};function ty(e){e.parser.currentPosition-=2,delete e.coverageOffset,delete e.getCoverageTable}var Ko=class extends ct{constructor(e){super(e),this.substFormat=e.uint16,this.coverageOffset=e.Offset16}getCoverageTable(){let e=this.parser;return e.currentPosition=this.start+this.coverageOffset,new Rs(e)}},Gc=class{constructor(e){this.glyphSequenceIndex=e.uint16,this.lookupListIndex=e.uint16}},fC=class extends Ko{constructor(e){super(e),this.deltaGlyphID=e.int16}},dC=class extends Ko{constructor(e){super(e),this.sequenceCount=e.uint16,this.sequenceOffsets=[...new Array(this.sequenceCount)].map(t=>e.Offset16)}getSequence(e){let t=this.parser;return t.currentPosition=this.start+this.sequenceOffsets[e],new pC(t)}},pC=class{constructor(e){this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map(t=>e.uint16)}},mC=class extends Ko{constructor(e){super(e),this.alternateSetCount=e.uint16,this.alternateSetOffsets=[...new Array(this.alternateSetCount)].map(t=>e.Offset16)}getAlternateSet(e){let t=this.parser;return t.currentPosition=this.start+this.alternateSetOffsets[e],new hC(t)}},hC=class{constructor(e){this.glyphCount=e.uint16,this.alternateGlyphIDs=[...new Array(this.glyphCount)].map(t=>e.uint16)}},gC=class extends Ko{constructor(e){super(e),this.ligatureSetCount=e.uint16,this.ligatureSetOffsets=[...new Array(this.ligatureSetCount)].map(t=>e.Offset16)}getLigatureSet(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureSetOffsets[e],new yC(t)}},yC=class extends ct{constructor(e){super(e),this.ligatureCount=e.uint16,this.ligatureOffsets=[...new Array(this.ligatureCount)].map(t=>e.Offset16)}getLigature(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureOffsets[e],new vC(t)}},vC=class{constructor(e){this.ligatureGlyph=e.uint16,this.componentCount=e.uint16,this.componentGlyphIDs=[...new Array(this.componentCount-1)].map(t=>e.uint16)}},bC=class extends Ko{constructor(e){super(e),this.substFormat===1&&(this.subRuleSetCount=e.uint16,this.subRuleSetOffsets=[...new Array(this.subRuleSetCount)].map(t=>e.Offset16)),this.substFormat===2&&(this.classDefOffset=e.Offset16,this.subClassSetCount=e.uint16,this.subClassSetOffsets=[...new Array(this.subClassSetCount)].map(t=>e.Offset16)),this.substFormat===3&&(ty(this),this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.coverageOffsets=[...new Array(this.glyphCount)].map(t=>e.Offset16),this.substLookupRecords=[...new Array(this.substitutionCount)].map(t=>new Gc(e)))}getSubRuleSet(e){if(this.substFormat!==1)throw new Error(`lookup type 5.${this.substFormat} has no subrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.subRuleSetOffsets[e],new wC(t)}getSubClassSet(e){if(this.substFormat!==2)throw new Error(`lookup type 5.${this.substFormat} has no subclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.subClassSetOffsets[e],new xC(t)}getCoverageTable(e){if(this.substFormat!==3&&!e)return super.getCoverageTable();if(!e)throw new Error(`lookup type 5.${this.substFormat} requires an coverage table index.`);let t=this.parser;return t.currentPosition=this.start+this.coverageOffsets[e],new Rs(t)}},wC=class extends ct{constructor(e){super(e),this.subRuleCount=e.uint16,this.subRuleOffsets=[...new Array(this.subRuleCount)].map(t=>e.Offset16)}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.subRuleOffsets[e],new ry(t)}},ry=class{constructor(e){this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.inputSequence=[...new Array(this.glyphCount-1)].map(t=>e.uint16),this.substLookupRecords=[...new Array(this.substitutionCount)].map(t=>new Gc(e))}},xC=class extends ct{constructor(e){super(e),this.subClassRuleCount=e.uint16,this.subClassRuleOffsets=[...new Array(this.subClassRuleCount)].map(t=>e.Offset16)}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.subClassRuleOffsets[e],new SC(t)}},SC=class extends ry{constructor(e){super(e)}},CC=class extends Ko{constructor(e){super(e),this.substFormat===1&&(this.chainSubRuleSetCount=e.uint16,this.chainSubRuleSetOffsets=[...new Array(this.chainSubRuleSetCount)].map(t=>e.Offset16)),this.substFormat===2&&(this.backtrackClassDefOffset=e.Offset16,this.inputClassDefOffset=e.Offset16,this.lookaheadClassDefOffset=e.Offset16,this.chainSubClassSetCount=e.uint16,this.chainSubClassSetOffsets=[...new Array(this.chainSubClassSetCount)].map(t=>e.Offset16)),this.substFormat===3&&(ty(this),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map(t=>e.Offset16),this.inputGlyphCount=e.uint16,this.inputCoverageOffsets=[...new Array(this.inputGlyphCount)].map(t=>e.Offset16),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[...new Array(this.lookaheadGlyphCount)].map(t=>e.Offset16),this.seqLookupCount=e.uint16,this.seqLookupRecords=[...new Array(this.substitutionCount)].map(t=>new oy(e)))}getChainSubRuleSet(e){if(this.substFormat!==1)throw new Error(`lookup type 6.${this.substFormat} has no chainsubrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleSetOffsets[e],new RC(t)}getChainSubClassSet(e){if(this.substFormat!==2)throw new Error(`lookup type 6.${this.substFormat} has no chainsubclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubClassSetOffsets[e],new TC(t)}getCoverageFromOffset(e){if(this.substFormat!==3)throw new Error(`lookup type 6.${this.substFormat} does not use contextual coverage offsets.`);let t=this.parser;return t.currentPosition=this.start+e,new Rs(t)}},RC=class extends ct{constructor(e){super(e),this.chainSubRuleCount=e.uint16,this.chainSubRuleOffsets=[...new Array(this.chainSubRuleCount)].map(t=>e.Offset16)}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new EC(t)}},EC=class{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map(t=>e.uint16),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map(t=>e.uint16),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map(t=>e.uint16),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.SubstCount)].map(t=>new Gc(e))}},TC=class extends ct{constructor(e){super(e),this.chainSubClassRuleCount=e.uint16,this.chainSubClassRuleOffsets=[...new Array(this.chainSubClassRuleCount)].map(t=>e.Offset16)}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new _C(t)}},_C=class{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map(t=>e.uint16),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map(t=>e.uint16),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map(t=>e.uint16),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.substitutionCount)].map(t=>new oy(e))}},oy=class extends ct{constructor(e){super(e),this.sequenceIndex=e.uint16,this.lookupListIndex=e.uint16}},OC=class extends ct{constructor(e){super(e),this.substFormat=e.uint16,this.extensionLookupType=e.uint16,this.extensionOffset=e.Offset32}},PC=class extends Ko{constructor(e){super(e),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map(t=>e.Offset16),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[new Array(this.lookaheadGlyphCount)].map(t=>e.Offset16),this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map(t=>e.uint16)}},kC={buildSubtable:function(e,t){let r=new[void 0,fC,dC,mC,gC,bC,CC,OC,PC][e](t);return r.type=e,r}},to=class extends ct{constructor(e){super(e)}},FC=class extends to{constructor(e){super(e),console.log("lookup type 1")}},AC=class extends to{constructor(e){super(e),console.log("lookup type 2")}},IC=class extends to{constructor(e){super(e),console.log("lookup type 3")}},LC=class extends to{constructor(e){super(e),console.log("lookup type 4")}},NC=class extends to{constructor(e){super(e),console.log("lookup type 5")}},DC=class extends to{constructor(e){super(e),console.log("lookup type 6")}},MC=class extends to{constructor(e){super(e),console.log("lookup type 7")}},VC=class extends to{constructor(e){super(e),console.log("lookup type 8")}},BC=class extends to{constructor(e){super(e),console.log("lookup type 9")}},zC={buildSubtable:function(e,t){let r=new[void 0,FC,AC,IC,LC,NC,DC,MC,VC,BC][e](t);return r.type=e,r}},Jg=class extends ct{static EMPTY={lookupCount:0,lookups:[]};constructor(e){super(e),this.lookupCount=e.uint16,this.lookups=[...new Array(this.lookupCount)].map(t=>e.Offset16)}},jC=class extends ct{constructor(e,t){super(e),this.ctType=t,this.lookupType=e.uint16,this.lookupFlag=e.uint16,this.subTableCount=e.uint16,this.subtableOffsets=[...new Array(this.subTableCount)].map(r=>e.Offset16),this.markFilteringSet=e.uint16}get rightToLeft(){return this.lookupFlag&!0}get ignoreBaseGlyphs(){return this.lookupFlag&!0}get ignoreLigatures(){return this.lookupFlag&!0}get ignoreMarks(){return this.lookupFlag&!0}get useMarkFilteringSet(){return this.lookupFlag&!0}get markAttachmentType(){return this.lookupFlag&!0}getSubTable(e){let t=this.ctType==="GSUB"?kC:zC;return this.parser.currentPosition=this.start+this.subtableOffsets[e],t.buildSubtable(this.lookupType,this.parser)}},ny=class extends Pe{constructor(e,t,r){let{p:o,tableStart:n}=super(e,t,r);this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.scriptListOffset=o.Offset16,this.featureListOffset=o.Offset16,this.lookupListOffset=o.Offset16,this.majorVersion===1&&this.minorVersion===1&&(this.featureVariationsOffset=o.Offset32);let s=!(this.scriptListOffset||this.featureListOffset||this.lookupListOffset);ae(this,"scriptList",()=>s?Zg.EMPTY:(o.currentPosition=n+this.scriptListOffset,new Zg(o))),ae(this,"featureList",()=>s?Kg.EMPTY:(o.currentPosition=n+this.featureListOffset,new Kg(o))),ae(this,"lookupList",()=>s?Jg.EMPTY:(o.currentPosition=n+this.lookupListOffset,new Jg(o))),this.featureVariationsOffset&&ae(this,"featureVariations",()=>s?FeatureVariations.EMPTY:(o.currentPosition=n+this.featureVariationsOffset,new FeatureVariations(o)))}getSupportedScripts(){return this.scriptList.scriptRecords.map(e=>e.scriptTag)}getScriptTable(e){let t=this.scriptList.scriptRecords.find(o=>o.scriptTag===e);this.parser.currentPosition=this.scriptList.start+t.scriptOffset;let r=new nC(this.parser);return r.scriptTag=e,r}ensureScriptTable(e){return typeof e=="string"?this.getScriptTable(e):e}getSupportedLangSys(e){e=this.ensureScriptTable(e);let t=e.defaultLangSys!==0,r=e.langSysRecords.map(o=>o.langSysTag);return t&&r.unshift("dflt"),r}getDefaultLangSysTable(e){e=this.ensureScriptTable(e);let t=e.defaultLangSys;if(t!==0){this.parser.currentPosition=e.start+t;let r=new Xg(this.parser);return r.langSysTag="",r.defaultForScript=e.scriptTag,r}}getLangSysTable(e,t="dflt"){if(t==="dflt")return this.getDefaultLangSysTable(e);e=this.ensureScriptTable(e);let r=e.langSysRecords.find(n=>n.langSysTag===t);this.parser.currentPosition=e.start+r.langSysOffset;let o=new Xg(this.parser);return o.langSysTag=t,o}getFeatures(e){return e.featureIndices.map(t=>this.getFeature(t))}getFeature(e){let t;if(parseInt(e)==e?t=this.featureList.featureRecords[e]:t=this.featureList.featureRecords.find(o=>o.featureTag===e),!t)return;this.parser.currentPosition=this.featureList.start+t.featureOffset;let r=new aC(this.parser);return r.featureTag=t.featureTag,r}getLookups(e){return e.lookupListIndices.map(t=>this.getLookup(t))}getLookup(e,t){let r=this.lookupList.lookups[e];return this.parser.currentPosition=this.lookupList.start+r,new jC(this.parser,t)}},HC=class extends ny{constructor(e,t){super(e,t,"GSUB")}getLookup(e){return super.getLookup(e,"GSUB")}},UC=Object.freeze({__proto__:null,GSUB:HC}),WC=class extends ny{constructor(e,t){super(e,t,"GPOS")}getLookup(e){return super.getLookup(e,"GPOS")}},GC=Object.freeze({__proto__:null,GPOS:WC}),YC=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.offsetToSVGDocumentList=r.Offset32,r.currentPosition=this.tableStart+this.offsetToSVGDocumentList,this.documentList=new qC(r)}},qC=class extends ct{constructor(e){super(e),this.numEntries=e.uint16,this.documentRecords=[...new Array(this.numEntries)].map(t=>new ZC(e))}getDocument(e){let t=this.documentRecords[e];if(!t)return"";let r=this.start+t.svgDocOffset;return this.parser.currentPosition=r,this.parser.readBytes(t.svgDocLength)}getDocumentForGlyph(e){let t=this.documentRecords.findIndex(r=>r.startGlyphID<=e&&e<=r.endGlyphID);return t===-1?"":this.getDocument(t)}},ZC=class{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.svgDocOffset=e.Offset32,this.svgDocLength=e.uint32}},XC=Object.freeze({__proto__:null,SVG:YC}),KC=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.axesArrayOffset=r.Offset16,r.uint16,this.axisCount=r.uint16,this.axisSize=r.uint16,this.instanceCount=r.uint16,this.instanceSize=r.uint16;let o=this.tableStart+this.axesArrayOffset;ae(this,"axes",()=>(r.currentPosition=o,[...new Array(this.axisCount)].map(s=>new JC(r))));let n=o+this.axisCount*this.axisSize;ae(this,"instances",()=>{let s=[];for(let i=0;i<this.instanceCount;i++)r.currentPosition=n+i*this.instanceSize,s.push(new QC(r,this.axisCount,this.instanceSize));return s})}getSupportedAxes(){return this.axes.map(e=>e.tag)}getAxis(e){return this.axes.find(t=>t.tag===e)}},JC=class{constructor(e){this.tag=e.tag,this.minValue=e.fixed,this.defaultValue=e.fixed,this.maxValue=e.fixed,this.flags=e.flags(16),this.axisNameID=e.uint16}},QC=class{constructor(e,t,r){let o=e.currentPosition;this.subfamilyNameID=e.uint16,e.uint16,this.coordinates=[...new Array(t)].map(n=>e.fixed),e.currentPosition-o<r&&(this.postScriptNameID=e.uint16)}},$C=Object.freeze({__proto__:null,fvar:KC}),eR=class extends Pe{constructor(e,t){let{p:r}=super(e,t),o=e.length/2;ae(this,"items",()=>[...new Array(o)].map(n=>r.fword))}},tR=Object.freeze({__proto__:null,cvt:eR}),rR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);ae(this,"instructions",()=>[...new Array(e.length)].map(o=>r.uint8))}},oR=Object.freeze({__proto__:null,fpgm:rR}),nR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numRanges=r.uint16,ae(this,"gaspRanges",()=>[...new Array(this.numRanges)].map(n=>new sR(r)))}},sR=class{constructor(e){this.rangeMaxPPEM=e.uint16,this.rangeGaspBehavior=e.uint16}},iR=Object.freeze({__proto__:null,gasp:nR}),aR=class extends Pe{constructor(e,t){super(e,t)}getGlyphData(e,t){return this.parser.currentPosition=this.tableStart+e,this.parser.readBytes(t)}},lR=Object.freeze({__proto__:null,glyf:aR}),cR=class extends Pe{constructor(e,t,r){let{p:o}=super(e,t),n=r.maxp.numGlyphs+1;r.head.indexToLocFormat===0?(this.x2=!0,ae(this,"offsets",()=>[...new Array(n)].map(s=>o.Offset16))):ae(this,"offsets",()=>[...new Array(n)].map(s=>o.Offset32))}getGlyphDataOffsetAndLength(e){let t=this.offsets[e]*this.x2?2:1,r=this.offsets[e+1]*this.x2?2:1;return{offset:t,length:r-t}}},uR=Object.freeze({__proto__:null,loca:cR}),fR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);ae(this,"instructions",()=>[...new Array(e.length)].map(o=>r.uint8))}},dR=Object.freeze({__proto__:null,prep:fR}),pR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);ae(this,"data",()=>r.readBytes())}},mR=Object.freeze({__proto__:null,CFF:pR}),hR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);ae(this,"data",()=>r.readBytes())}},gR=Object.freeze({__proto__:null,CFF2:hR}),yR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.defaultVertOriginY=r.int16,this.numVertOriginYMetrics=r.uint16,ae(this,"vertORiginYMetrics",()=>[...new Array(this.numVertOriginYMetrics)].map(o=>new vR(r)))}},vR=class{constructor(e){this.glyphIndex=e.uint16,this.vertOriginY=e.int16}},bR=Object.freeze({__proto__:null,VORG:yR}),wR=class{constructor(e){this.indexSubTableArrayOffset=e.Offset32,this.indexTablesSize=e.uint32,this.numberofIndexSubTables=e.uint32,this.colorRef=e.uint32,this.hori=new na(e),this.vert=new na(e),this.startGlyphIndex=e.uint16,this.endGlyphIndex=e.uint16,this.ppemX=e.uint8,this.ppemY=e.uint8,this.bitDepth=e.uint8,this.flags=e.int8}},xR=class{constructor(e){this.hori=new na(e),this.vert=new na(e),this.ppemX=e.uint8,this.ppemY=e.uint8,this.substitutePpemX=e.uint8,this.substitutePpemY=e.uint8}},na=class{constructor(e){this.ascender=e.int8,this.descender=e.int8,this.widthMax=e.uint8,this.caretSlopeNumerator=e.int8,this.caretSlopeDenominator=e.int8,this.caretOffset=e.int8,this.minOriginSB=e.int8,this.minAdvanceSB=e.int8,this.maxBeforeBL=e.int8,this.minAfterBL=e.int8,this.pad1=e.int8,this.pad2=e.int8}},sy=class extends Pe{constructor(e,t,r){let{p:o}=super(e,t,r);this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.numSizes=o.uint32,ae(this,"bitMapSizes",()=>[...new Array(this.numSizes)].map(n=>new wR(o)))}},SR=Object.freeze({__proto__:null,EBLC:sy}),iy=class extends Pe{constructor(e,t,r){let{p:o}=super(e,t,r);this.majorVersion=o.uint16,this.minorVersion=o.uint16}},CR=Object.freeze({__proto__:null,EBDT:iy}),RR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.numSizes=r.uint32,ae(this,"bitmapScales",()=>[...new Array(this.numSizes)].map(o=>new xR(r)))}},ER=Object.freeze({__proto__:null,EBSC:RR}),TR=class extends sy{constructor(e,t){super(e,t,"CBLC")}},_R=Object.freeze({__proto__:null,CBLC:TR}),OR=class extends iy{constructor(e,t){super(e,t,"CBDT")}},PR=Object.freeze({__proto__:null,CBDT:OR}),kR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.flags=r.flags(16),this.numStrikes=r.uint32,ae(this,"strikeOffsets",()=>[...new Array(this.numStrikes)].map(o=>r.Offset32))}},FR=Object.freeze({__proto__:null,sbix:kR}),AR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numBaseGlyphRecords=r.uint16,this.baseGlyphRecordsOffset=r.Offset32,this.layerRecordsOffset=r.Offset32,this.numLayerRecords=r.uint16}getBaseGlyphRecord(e){let t=this.tableStart+this.baseGlyphRecordsOffset;this.parser.currentPosition=t;let r=new Wc(this.parser),o=r.gID,n=this.tableStart+this.layerRecordsOffset-6;this.parser.currentPosition=n;let s=new Wc(this.parser),i=s.gID;if(o===e)return r;if(i===e)return s;for(;t!==n;){let a=t+(n-t)/12;this.parser.currentPosition=a;let u=new Wc(this.parser),l=u.gID;if(l===e)return u;l>e?n=a:l<e&&(t=a)}return!1}getLayers(e){let t=this.getBaseGlyphRecord(e);return this.parser.currentPosition=this.tableStart+this.layerRecordsOffset+4*t.firstLayerIndex,[...new Array(t.numLayers)].map(r=>new IR(p))}},Wc=class{constructor(e){this.gID=e.uint16,this.firstLayerIndex=e.uint16,this.numLayers=e.uint16}},IR=class{constructor(e){this.gID=e.uint16,this.paletteIndex=e.uint16}},LR=Object.freeze({__proto__:null,COLR:AR}),NR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numPaletteEntries=r.uint16;let o=this.numPalettes=r.uint16;this.numColorRecords=r.uint16,this.offsetFirstColorRecord=r.Offset32,this.colorRecordIndices=[...new Array(this.numPalettes)].map(n=>r.uint16),ae(this,"colorRecords",()=>(r.currentPosition=this.tableStart+this.offsetFirstColorRecord,[...new Array(this.numColorRecords)].map(n=>new DR(r)))),this.version===1&&(this.offsetPaletteTypeArray=r.Offset32,this.offsetPaletteLabelArray=r.Offset32,this.offsetPaletteEntryLabelArray=r.Offset32,ae(this,"paletteTypeArray",()=>(r.currentPosition=this.tableStart+this.offsetPaletteTypeArray,new MR(r,o))),ae(this,"paletteLabelArray",()=>(r.currentPosition=this.tableStart+this.offsetPaletteLabelArray,new VR(r,o))),ae(this,"paletteEntryLabelArray",()=>(r.currentPosition=this.tableStart+this.offsetPaletteEntryLabelArray,new BR(r,o))))}},DR=class{constructor(e){this.blue=e.uint8,this.green=e.uint8,this.red=e.uint8,this.alpha=e.uint8}},MR=class{constructor(e,t){this.paletteTypes=[...new Array(t)].map(r=>e.uint32)}},VR=class{constructor(e,t){this.paletteLabels=[...new Array(t)].map(r=>e.uint16)}},BR=class{constructor(e,t){this.paletteEntryLabels=[...new Array(t)].map(r=>e.uint16)}},zR=Object.freeze({__proto__:null,CPAL:NR}),jR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint32,this.numSignatures=r.uint16,this.flags=r.uint16,this.signatureRecords=[...new Array(this.numSignatures)].map(o=>new HR(r))}getData(e){let t=this.signatureRecords[e];return this.parser.currentPosition=this.tableStart+t.offset,new UR(this.parser)}},HR=class{constructor(e){this.format=e.uint32,this.length=e.uint32,this.offset=e.Offset32}},UR=class{constructor(e){e.uint16,e.uint16,this.signatureLength=e.uint32,this.signature=e.readBytes(this.signatureLength)}},WR=Object.freeze({__proto__:null,DSIG:jR}),GR=class extends Pe{constructor(e,t,r){let{p:o}=super(e,t),n=r.hmtx.numGlyphs;this.version=o.uint16,this.numRecords=o.int16,this.sizeDeviceRecord=o.int32,this.records=[...new Array(numRecords)].map(s=>new YR(o,n))}},YR=class{constructor(e,t){this.pixelSize=e.uint8,this.maxWidth=e.uint8,this.widths=e.readBytes(t)}},qR=Object.freeze({__proto__:null,hdmx:GR}),ZR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.nTables=r.uint16,ae(this,"tables",()=>{let o=this.tableStart+4,n=[];for(let s=0;s<this.nTables;s++){r.currentPosition=o;let i=new XR(r);n.push(i),o+=i}return n})}},XR=class{constructor(e){this.version=e.uint16,this.length=e.uint16,this.coverage=e.flags(8),this.format=e.uint8,this.format===0&&(this.nPairs=e.uint16,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16,ae(this,"pairs",()=>[...new Array(this.nPairs)].map(t=>new KR(e)))),this.format===2&&console.warn("Kern subtable format 2 is not supported: this parser currently only parses universal table data.")}get horizontal(){return this.coverage[0]}get minimum(){return this.coverage[1]}get crossstream(){return this.coverage[2]}get override(){return this.coverage[3]}},KR=class{constructor(e){this.left=e.uint16,this.right=e.uint16,this.value=e.fword}},JR=Object.freeze({__proto__:null,kern:ZR}),QR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numGlyphs=r.uint16,this.yPels=r.readBytes(this.numGlyphs)}},$R=Object.freeze({__proto__:null,LTSH:QR}),e2=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.mergeClassCount=r.uint16,this.mergeDataOffset=r.Offset16,this.classDefCount=r.uint16,this.offsetToClassDefOffsets=r.Offset16,ae(this,"mergeEntryMatrix",()=>[...new Array(this.mergeClassCount)].map(o=>r.readBytes(this.mergeClassCount))),console.warn("Full MERG parsing is currently not supported."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}},t2=Object.freeze({__proto__:null,MERG:e2}),r2=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint32,this.flags=r.uint32,r.uint32,this.dataMapsCount=r.uint32,this.dataMaps=[...new Array(this.dataMapsCount)].map(o=>new o2(this.tableStart,r))}},o2=class{constructor(e,t){this.tableStart=e,this.parser=t,this.tag=t.tag,this.dataOffset=t.Offset32,this.dataLength=t.uint32}getData(){return this.parser.currentField=this.tableStart+this.dataOffset,this.parser.readBytes(this.dataLength)}},n2=Object.freeze({__proto__:null,meta:r2}),s2=class extends Pe{constructor(e,t){super(e,t),console.warn("This font uses a PCLT table, which is currently not supported by this parser."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}},i2=Object.freeze({__proto__:null,PCLT:s2}),a2=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numRecs=r.uint16,this.numRatios=r.uint16,this.ratRanges=[...new Array(this.numRatios)].map(o=>new l2(r)),this.offsets=[...new Array(this.numRatios)].map(o=>r.Offset16),this.VDMXGroups=[...new Array(this.numRecs)].map(o=>new c2(r))}},l2=class{constructor(e){this.bCharSet=e.uint8,this.xRatio=e.uint8,this.yStartRatio=e.uint8,this.yEndRatio=e.uint8}},c2=class{constructor(e){this.recs=e.uint16,this.startsz=e.uint8,this.endsz=e.uint8,this.records=[...new Array(this.recs)].map(t=>new u2(e))}},u2=class{constructor(e){this.yPelHeight=e.uint16,this.yMax=e.int16,this.yMin=e.int16}},f2=Object.freeze({__proto__:null,VDMX:a2}),d2=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.fixed,this.ascent=this.vertTypoAscender=r.int16,this.descent=this.vertTypoDescender=r.int16,this.lineGap=this.vertTypoLineGap=r.int16,this.advanceHeightMax=r.int16,this.minTopSideBearing=r.int16,this.minBottomSideBearing=r.int16,this.yMaxExtent=r.int16,this.caretSlopeRise=r.int16,this.caretSlopeRun=r.int16,this.caretOffset=r.int16,this.reserved=r.int16,this.reserved=r.int16,this.reserved=r.int16,this.reserved=r.int16,this.metricDataFormat=r.int16,this.numOfLongVerMetrics=r.uint16,r.verifyLength()}},p2=Object.freeze({__proto__:null,vhea:d2}),m2=class extends Pe{constructor(e,t,r){super(e,t);let o=r.vhea.numOfLongVerMetrics,n=r.maxp.numGlyphs,s=p.currentPosition;if(lazy(this,"vMetrics",()=>(p.currentPosition=s,[...new Array(o)].map(i=>new h2(p.uint16,p.int16)))),o<n){let i=s+o*4;lazy(this,"topSideBearings",()=>(p.currentPosition=i,[...new Array(n-o)].map(a=>p.int16)))}}},h2=class{constructor(e,t){this.advanceHeight=e,this.topSideBearing=t}},g2=Object.freeze({__proto__:null,vmtx:m2});var ay=h(ce(),1);var{kebabCase:y2}=Fe(ay.privateApis);function ly(e){let t=e.reduce((r,o)=>(r[o.fontFamily]||(r[o.fontFamily]={name:o.fontFamily,fontFamily:o.fontFamily,slug:y2(o.fontFamily.toLowerCase()),fontFace:[]}),r[o.fontFamily].fontFace.push(o),r),{});return Object.values(t)}var er=h(Y(),1);function v2(){let{installFonts:e}=(0,Es.useContext)(Bt),[t,r]=(0,Es.useState)(!1),[o,n]=(0,Es.useState)(null),s=g=>{a(g)},i=g=>{a(g.target.files)},a=async g=>{if(!g)return;n(null),r(!0);let d=new Set,v=[...g],S=!1,C=v.map(async b=>{if(!await l(b))return S=!0,null;if(d.has(b.name))return null;let k=(((b.name??"").split(".")??[]).pop()??"").toLowerCase();return Bc.includes(k)?(d.add(b.name),b):null}),w=(await Promise.all(C)).filter(b=>b!==null);if(w.length>0)u(w);else{let b=S?(0,Bn.__)("Sorry, you are not allowed to upload this file type."):(0,Bn.__)("No fonts found to install.");n({type:"error",message:b}),r(!1)}},u=async g=>{let d=await Promise.all(g.map(async v=>{let S=await f(v);return await Co(S,S.file,"all"),S}));m(d)};async function l(g){let d=new sa("Uploaded Font");try{let v=await c(g);return await d.fromDataBuffer(v,"font"),!0}catch{return!1}}async function c(g){return new Promise((d,v)=>{let S=new window.FileReader;S.readAsArrayBuffer(g),S.onload=()=>d(S.result),S.onerror=v})}let f=async g=>{let d=await c(g),v=new sa("Uploaded Font");v.fromDataBuffer(d,g.name);let C=(await new Promise(N=>v.onload=N)).detail.font,{name:w}=C.opentype.tables,b=w.get(16)||w.get(1),R=w.get(2).toLowerCase().includes("italic"),k=C.opentype.tables["OS/2"].usWeightClass||"normal",_=!!C.opentype.tables.fvar&&C.opentype.tables.fvar.axes.find(({tag:N})=>N==="wght"),A=_?`${_.minValue} ${_.maxValue}`:null;return{file:g,fontFamily:b,fontStyle:R?"italic":"normal",fontWeight:A||k}},m=async g=>{let d=ly(g);try{await e(d),n({type:"success",message:(0,Bn.__)("Fonts were installed successfully.")})}catch(v){let S=v;n({type:"error",message:S.message,errors:S?.installationErrors})}r(!1)};return(0,er.jsxs)("div",{className:"font-library__tabpanel-layout",children:[(0,er.jsx)(It.DropZone,{onFilesDrop:s}),(0,er.jsxs)(It.__experimentalVStack,{className:"font-library__local-fonts",justify:"start",children:[o&&(0,er.jsxs)(It.Notice,{status:o.type,__unstableHTML:!0,onRemove:()=>n(null),children:[o.message,o.errors&&(0,er.jsx)("ul",{children:o.errors.map((g,d)=>(0,er.jsx)("li",{children:g},d))})]}),t&&(0,er.jsx)(It.FlexItem,{children:(0,er.jsx)("div",{className:"font-library__upload-area",children:(0,er.jsx)(It.ProgressBar,{})})}),!t&&(0,er.jsx)(It.FormFileUpload,{accept:Bc.map(g=>`.${g}`).join(","),multiple:!0,onChange:i,render:({openFileDialog:g})=>(0,er.jsx)(It.Button,{__next40pxDefaultSize:!0,className:"font-library__upload-area",onClick:g,children:(0,Bn.__)("Upload font")})}),(0,er.jsx)(It.__experimentalText,{className:"font-library__upload-area__text",children:(0,Bn.__)("Uploaded fonts appear in your library and can be used in your theme. Supported formats: .ttf, .otf, .woff, and .woff2.")})]})]})}var ia=v2;var uy=h(Y(),1),{Tabs:uV}=Fe(Yc.privateApis),fV={id:"installed-fonts",title:(0,aa._x)("Library","Font library")},dV={id:"upload-fonts",title:(0,aa._x)("Upload","noun")};var fy=h(Ce(),1),qc=h(ce(),1),w2=h(Te(),1);var dy=h(Y(),1);var Zc=h(Y(),1);var py=h(Ce(),1),la=h(ce(),1);var my=h(Y(),1);var Kc=h(Y(),1);var gr=h(Ce(),1),Jc=h(ce(),1),O2=h(Te(),1);var hy=h(Vt(),1);var T2=h(Y(),1),{useSettingsForBlockElement:HV,TypographyPanel:UV}=Fe(hy.privateApis);var _2=h(Y(),1);var Qc=h(Y(),1),QV={text:{description:(0,gr.__)("Manage the fonts used on the site."),title:(0,gr.__)("Text")},link:{description:(0,gr.__)("Manage the fonts and typography used on the links."),title:(0,gr.__)("Links")},heading:{description:(0,gr.__)("Manage the fonts and typography used on headings."),title:(0,gr.__)("Headings")},caption:{description:(0,gr.__)("Manage the fonts and typography used on captions."),title:(0,gr.__)("Captions")},button:{description:(0,gr.__)("Manage the fonts and typography used on buttons."),title:(0,gr.__)("Buttons")}};var A2=h(Ce(),1),I2=h(ce(),1),yy=h(Vt(),1);var zn=h(ce(),1),gy=h(Ce(),1);var F2=h(Te(),1);var P2=h(ce(),1),k2=h(Y(),1);var $c=h(Y(),1);var eu=h(Y(),1),{useSettingsForBlockElement:mB,ColorPanel:hB}=Fe(yy.privateApis);var z2=h(Ce(),1);var D2=h(Bo(),1),tu=h(ce(),1),M2=h(Ce(),1);var ua=h(ce(),1);var ca=h(ce(),1);var vy=h(Y(),1);function by(){let{paletteColors:e}=kn();return e.slice(0,4).map(({slug:t,color:r},o)=>(0,vy.jsx)("div",{style:{flexGrow:1,height:"100%",background:r}},`${t}-${o}`))}var _s=h(Y(),1),L2={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},N2=({label:e,isFocused:t,withHoverView:r})=>(0,_s.jsx)(In,{label:e,isFocused:t,withHoverView:r,children:({key:o})=>(0,_s.jsx)(ca.__unstableMotion.div,{variants:L2,style:{height:"100%",overflow:"hidden"},children:(0,_s.jsx)(ca.__experimentalHStack,{spacing:0,justify:"center",style:{height:"100%",overflow:"hidden"},children:(0,_s.jsx)(by,{})})},o)}),wy=N2;var Jo=h(Y(),1),xy=["color"];function fa({title:e,gap:t=2}){let r=Ni(xy);return r?.length<=1?null:(0,Jo.jsxs)(ua.__experimentalVStack,{spacing:3,children:[e&&(0,Jo.jsx)(lr,{level:3,children:e}),(0,Jo.jsx)(ua.__experimentalGrid,{gap:t,children:r.map((o,n)=>(0,Jo.jsx)(Nn,{variation:o,isPill:!0,properties:xy,showTooltip:!0,children:()=>(0,Jo.jsx)(wy,{})},n))})]})}var Sy=h(Y(),1);var V2=h(Bo(),1),da=h(ce(),1),B2=h(Ce(),1);var Cy=h(Y(),1);var ru=h(Y(),1);var H2=h(Ce(),1),Ey=h(Vt(),1),U2=h(ce(),1);var Ry=h(Vt(),1);var j2=h(Y(),1);var{BackgroundPanel:HB}=Fe(Ry.privateApis);var ou=h(Y(),1),{useHasBackgroundPanel:XB}=Fe(Ey.privateApis);var Qo=h(ce(),1),nu=h(Ce(),1);var Z2=h(Te(),1);var W2=h(ce(),1),G2=h(Ce(),1),Y2=h(Y(),1);var su=h(Y(),1),{Menu:az}=Fe(Qo.privateApis);var bt=h(ce(),1),Os=h(Ce(),1);var pa=h(Te(),1);var iu=h(Y(),1),{Menu:Sz}=Fe(bt.privateApis),Cz=[{label:(0,Os.__)("Rename"),action:"rename"},{label:(0,Os.__)("Delete"),action:"delete"}],Rz=[{label:(0,Os.__)("Reset"),action:"reset"}];var X2=h(Y(),1);var Q2=h(Ce(),1),_y=h(Vt(),1);var Ty=h(Vt(),1),K2=h(Te(),1);var J2=h(Y(),1),{useSettingsForBlockElement:Iz,DimensionsPanel:Lz}=Fe(Ty.privateApis);var au=h(Y(),1),{useHasDimensionsPanel:jz,useSettingsForBlockElement:Hz}=Fe(_y.privateApis);var Iy=h(ce(),1),rE=h(Ce(),1);var eE=h(Ce(),1),tE=h(ce(),1);var Oy=h(ar(),1),Py=h(Jt(),1),ha=h(Te(),1),ky=h(ce(),1),Fy=h(Ce(),1);var ma=h(Y(),1);function $2({gap:e=2}){let{user:t}=(0,ha.useContext)(Ot),r=t?.styles,n=(0,Py.useSelect)(i=>{let a=i(Oy.store).__experimentalGetCurrentThemeGlobalStylesVariations();return Array.isArray(a)?a:void 0},[])?.filter(i=>!vs(i,["color"])&&!vs(i,["typography","spacing"])),s=(0,ha.useMemo)(()=>[...[{title:(0,Fy.__)("Default"),settings:{},styles:{}},...n??[]].map(a=>{let u=a?.styles?.blocks?{...a.styles.blocks}:{};r?.blocks&&Object.keys(r.blocks).forEach(m=>{if(r.blocks?.[m]?.css){let g=u[m]||{},d={css:`${u[m]?.css||""} ${r.blocks?.[m]?.css?.trim()||""}`};u[m]={...g,...d}}});let l=r?.css||a.styles?.css?{css:`${a.styles?.css||""} ${r?.css||""}`}:{},c=Object.keys(u).length>0?{blocks:u}:{},f={...a.styles,...l,...c};return{...a,settings:a.settings??{},styles:f}})],[n,r?.blocks,r?.css]);return!n||n.length<1?null:(0,ma.jsx)(ky.__experimentalGrid,{columns:2,className:"global-styles-ui-style-variations-container",gap:e,children:s.map((i,a)=>(0,ma.jsx)(Nn,{variation:i,children:u=>(0,ma.jsx)(kc,{label:i?.title,withHoverView:!0,isFocused:u,variation:i})},a))})}var lu=$2;var Ay=h(Y(),1);var cu=h(Y(),1);var oE=h(Ce(),1),nE=h(ce(),1),Ly=h(Vt(),1);var uu=h(Y(),1),{AdvancedPanel:ij}=Fe(Ly.privateApis);var Hy=h(Ce(),1),du=h(ce(),1),pu=h(Te(),1);var sE=h(Jt(),1),iE=h(ar(),1),Ny=h(Te(),1);var Vy=h(Ce(),1),ga=h(ce(),1),ya=h(My(),1),aE=h(ar(),1),lE=h(Jt(),1);var By=h(Mc(),1);var zy=h(Y(),1),{Badge:dj}=Fe(ga.privateApis),pj=3600*1e3*24;var fu=h(ce(),1),Ps=h(Ce(),1);var jy=h(Y(),1);var mu=h(Y(),1);var hu=h(Ce(),1),ro=h(ce(),1);var pE=h(Te(),1);var uE=h(ce(),1),fE=h(Ce(),1),dE=h(Y(),1);var gu=h(Y(),1),{Menu:Lj}=Fe(ro.privateApis);var Yy=h(Ce(),1),jr=h(ce(),1);var qy=h(Te(),1);var mE=h(Vt(),1),hE=h(Ce(),1);var gE=h(Y(),1);var yE=h(ce(),1),Uy=h(Ce(),1),vE=h(Y(),1);var ks=h(ce(),1),bE=h(Ce(),1),wE=h(Te(),1),Wy=h(Y(),1);var oo=h(ce(),1),Gy=h(Y(),1);var yu=h(Y(),1),{Menu:Qj}=Fe(jr.privateApis);var bu=h(Y(),1);var wu=h(Y(),1);function jn(e){return function({value:r,baseValue:o,onChange:n,...s}){return(0,wu.jsx)(ys,{value:r,baseValue:o,onChange:n,children:(0,wu.jsx)(e,{...s})})}}var RE=jn(lu);var EE=jn(fa);var TE=jn(Hi);var Hn=h(Y(),1);function xu({value:e,baseValue:t,onChange:r,activeTab:o="installed-fonts"}){let n;switch(o){case"upload-fonts":n=(0,Hn.jsx)(ia,{});break;case"installed-fonts":n=(0,Hn.jsx)(Ji,{});break;default:n=(0,Hn.jsx)($i,{slug:o})}return(0,Hn.jsx)(ys,{value:e,baseValue:t,onChange:r,children:(0,Hn.jsx)(Gi,{children:n})})}var Ky=h(us()),{unlock:Su}=(0,Ky.__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/font-list-route");if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='9553e553cd']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","9553e553cd"),e.appendChild(document.createTextNode('@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:90px;padding:0}.font-library-modal .font-library__subtitle{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.font-library-modal__tab-panel{height:calc(100% - 50px)}.font-library__tabpanel-layout{display:flex;flex-direction:column;height:100%}.font-library__tabpanel-layout>div{flex-grow:1}.font-library__tabpanel-layout .font-library__loading{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;left:0;padding-top:124px;position:absolute;top:0;width:100%}.font-library__footer,.font-library__tabpanel-layout .components-navigator-screen{padding:24px;width:100%}.font-library__footer{background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;flex-grow:0!important;flex-shrink:0;height:90px;position:absolute}.font-library__page-selection{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.font-library__page-selection .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.font-library__search{width:240px}.font-library__fonts-title{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library__fonts-list{list-style:none;margin-bottom:0;margin-top:0;padding:0}.font-library__fonts-list-item{margin-bottom:0}.font-library__font-card{border:1px solid #ddd;box-sizing:border-box;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library__font-card:hover{background-color:#f0f0f0}.font-library__font-card:focus{position:relative}.font-library__font-card .font-library__font-card__name{font-weight:700}.font-library__font-card .font-library__font-card__count{color:#757575}.font-library__font-card .font-library__font-variant_demo-image{display:block;height:24px;width:auto}.font-library__font-card .font-library__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library__font-card .font-library__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:1}.font-library__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library__upload-area{background-color:#f0f0f0}.font-library__local-fonts{margin:24px auto;width:80%}.font-library__local-fonts .font-library__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library__select-all{padding:16px 16px 16px 17px}.font-library__select-all .components-checkbox-control__label{padding-left:16px}.global-styles-ui-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.global-styles-ui-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.global-styles-ui-screen-revisions__revisions-list li{margin-bottom:0}.global-styles-ui-screen-revisions__revision-item{cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;position:relative}.global-styles-ui-screen-revisions__revision-item[role=option]:active,.global-styles-ui-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.global-styles-ui-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item:after,.global-styles-ui-screen-revisions__revision-item:before{content:"\\a";display:block;position:absolute}.global-styles-ui-screen-revisions__revision-item:before{background:#ddd;border:4px solid transparent;border-radius:50%;height:8px;left:17px;top:18px;transform:translate(-50%,-50%);width:8px;z-index:1}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid transparent;outline-offset:-2px}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes>li,.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta{color:#1e1e1e}.global-styles-ui-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;left:16px;top:0;width:0}.global-styles-ui-screen-revisions__revision-item:first-child:after{top:18px}.global-styles-ui-screen-revisions__revision-item:last-child:after{height:18px}.global-styles-ui-screen-revisions__revision-item-wrapper{display:block;padding:12px 12px 4px 40px}.global-styles-ui-screen-revisions__active-badge,.global-styles-ui-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:0 12px 12px 40px}.global-styles-ui-screen-revisions__changes,.global-styles-ui-screen-revisions__meta{color:#757575;font-size:12px}.global-styles-ui-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date{font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.global-styles-ui-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:left;width:100%}.global-styles-ui-screen-revisions__meta img{border-radius:100%;height:16px;margin-right:8px;width:16px}.global-styles-ui-screen-revisions__loading{margin:24px auto!important}.global-styles-ui-screen-revisions__changes{line-height:1.4;list-style:disc;margin-left:12px;text-align:left}.global-styles-ui-screen-revisions__changes li{margin-bottom:4px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination{gap:2px;justify-content:space-between}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total{height:1px;left:-1000px;margin:-1px;overflow:hidden;position:absolute}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled,.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.global-styles-ui-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.global-styles-ui-variations_item{box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{border-radius:2px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{transition:outline .1s linear}}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill{height:32px}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:rgba(0,0,0,.3)}.global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview,.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.global-styles-ui-preview__wrapper{display:block;max-width:100%;width:100%}.global-styles-ui-preview__wrapper.is-hoverable{cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:20px;min-height:100px;overflow:hidden}.global-styles-ui-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-styles-ui-font-size__item-value{color:#757575}.global-styles-ui-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.global-styles-ui-block-types-search{margin-bottom:10px;padding:0 16px}.global-styles-ui-screen-typography__font-variants-count{color:#757575}.global-styles-ui-font-families__manage-fonts{justify-content:center}.global-styles-ui-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.global-styles-ui-header{line-height:1.9!important;margin-bottom:0!important}.global-styles-ui-subtitle{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)!important;margin-bottom:0!important;text-transform:uppercase}.global-styles-ui-section-title{color:#2f2f2f;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.2;margin:0;padding:16px 16px 0}.global-styles-ui-icon-with-current-color{fill:currentColor}.global-styles-ui__color-indicator-wrapper{flex-shrink:0;height:24px}.global-styles-ui__shadows-panel__options-container,.global-styles-ui__typography-panel__options-container{height:24px}.global-styles-ui__block-preview-panel{border:1px solid #ddd;border-radius:2px;overflow:hidden;position:relative;width:100%}.global-styles-ui__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #ddd;border-radius:2px;height:144px;overflow:auto}.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block{background-color:#fff;border:1px solid #ddd;border-radius:2px;height:60px;width:60%}.global-styles-ui__shadow-editor__dropdown-content{width:280px}.global-styles-ui__shadow-editor-panel{margin-bottom:4px}.global-styles-ui__shadow-editor__dropdown{position:relative;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:left;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.global-styles-ui__shadow-editor__remove-button{opacity:0;position:absolute;right:8px;top:8px}.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button{border:none}.global-styles-ui__shadow-editor__dropdown-toggle:hover+.global-styles-ui__shadow-editor__remove-button,.global-styles-ui__shadow-editor__remove-button:focus,.global-styles-ui__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.global-styles-ui__shadow-editor__remove-button{opacity:1}}.global-styles-ui-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel{flex:1 1 auto}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input,.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea{flex:1 1 auto}.global-styles-ui-screen-css-help-link{display:inline-block;margin-top:8px}.global-styles-ui-screen-variations{border-top:1px solid #ddd;margin-top:16px}.global-styles-ui-screen-variations>*{margin:24px 16px}.global-styles-ui-sidebar__navigator-provider{height:100%}.global-styles-ui-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.global-styles-ui-color-palette__tablist-container{border-bottom:1px solid #ddd}.global-styles-ui-color-palette__tablist{margin-bottom:-1px}.global-styles-ui-sidebar__navigator-screen .single-column{grid-column:span 1}.global-styles-ui-screen-root.global-styles-ui-screen-root,.global-styles-ui-screen-style-variations.global-styles-ui-screen-style-variations{background:unset;color:inherit}.global-styles-ui-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile,.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile .global-styles-ui-screen-root__active-style-tile-preview{border-radius:2px}.global-styles-ui-screen-root__active-style-tile-preview{clip-path:border-box}.global-styles-ui-color-palette-panel,.global-styles-ui-gradient-palette-panel{padding:16px}.font-library-page__tablist{border-bottom:1px solid #f0f0f0;padding:0 24px}.font-library-page__tab-panel{flex-grow:1;max-height:calc(100% - 110px);overflow:auto}.font-library-page:has(.font-library__footer) .font-library-page__tab-panel{max-height:calc(100% - 198px)}')),document.head.appendChild(e)}var{Tabs:va}=Su(Jy.privateApis),{useGlobalStyles:_E}=Su(Qy.privateApis);function OE(){let{records:e=[]}=(0,ba.useEntityRecords)("root","fontCollection",{_fields:"slug,name,description"}),[t,r]=(0,ev.useState)("installed-fonts"),{base:o,user:n,setUser:s,isReady:i}=_E(),a=(0,$y.useSelect)(l=>l(ba.store).canUser("create",{kind:"postType",name:"wp_font_family"}),[]);if(!i)return null;let u=[{id:"installed-fonts",title:(0,Un._x)("Library","Font library")}];return a&&(u.push({id:"upload-fonts",title:(0,Un._x)("Upload","noun")}),u.push(...(e||[]).map(({slug:l,name:c})=>({id:l,title:e&&e.length===1&&l==="google-fonts"?(0,Un.__)("Install Fonts"):c})))),React.createElement(oc,{title:(0,Un.__)("Fonts"),className:"font-library-page"},React.createElement(va,{selectedTabId:t,onSelect:l=>r(l)},React.createElement("div",{className:"font-library-page__tablist"},React.createElement(va.TabList,null,u.map(({id:l,title:c})=>React.createElement(va.Tab,{key:l,tabId:l},c)))),u.map(({id:l})=>React.createElement(va.TabPanel,{key:l,tabId:l,focusable:!1,className:"font-library-page__tab-panel"},React.createElement(xu,{value:n,baseValue:o,onChange:s,activeTab:l})))))}function PE(){return React.createElement(OE,null)}var kE=PE;export{kE as stage};
+}`,globalThis.document.head.appendChild(n),n}var lS=[0,1,0,0],cS=[79,84,84,79],uS=[119,79,70,70],fS=[119,79,70,50];function na(e,t){if(e.length===t.length){for(let r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function dS(e){let t=[e.getUint8(0),e.getUint8(1),e.getUint8(2),e.getUint8(3)];if(na(t,lS)||na(t,cS))return"SFNT";if(na(t,uS))return"WOFF";if(na(t,fS))return"WOFF2"}function pS(e){if(!e.ok)throw new Error(`HTTP ${e.status} - ${e.statusText}`);return e}var ia=class extends Gx{constructor(e,t={}){super(),this.name=e,this.options=t,this.metrics=!1}get src(){return this.__src}set src(e){this.__src=e,(async()=>(globalThis.document&&!this.options.skipStyleSheet&&await aS(this.name,e,this.options),this.loadFont(e)))()}async loadFont(e,t){fetch(e).then(r=>pS(r)&&r.arrayBuffer()).then(r=>this.fromDataBuffer(r,t||e)).catch(r=>{let o=new oa("error",r,`Failed to load font at ${t||e}`);this.dispatch(o),this.onerror&&this.onerror(o)})}async fromDataBuffer(e,t){this.fontData=new DataView(e);let r=dS(this.fontData);if(!r)throw new Error(`${t} is either an unsupported font format, or not a font at all.`);await this.parseBasicData(r);let o=new oa("load",{font:this});this.dispatch(o),this.onload&&this.onload(o)}async parseBasicData(e){return sS().then(t=>(e==="SFNT"&&(this.opentype=new Xx(this,this.fontData,t)),e==="WOFF"&&(this.opentype=new Jx(this,this.fontData,t)),e==="WOFF2"&&(this.opentype=new eS(this,this.fontData,t)),this.opentype))}getGlyphId(e){return this.opentype.tables.cmap.getGlyphId(e)}reverse(e){return this.opentype.tables.cmap.reverse(e)}supports(e){return this.getGlyphId(e)!==0}supportsVariation(e){return this.opentype.tables.cmap.supportsVariation(e)!==!1}measureText(e,t=16){if(this.__unloaded)throw new Error("Cannot measure text: font was unloaded. Please reload before calling measureText()");let r=document.createElement("div");r.textContent=e,r.style.fontFamily=this.name,r.style.fontSize=`${t}px`,r.style.color="transparent",r.style.background="transparent",r.style.top="0",r.style.left="0",r.style.position="absolute",document.body.appendChild(r);let o=r.getBoundingClientRect();document.body.removeChild(r);let n=this.opentype.tables["OS/2"];return o.fontSize=t,o.ascender=n.sTypoAscender,o.descender=n.sTypoDescender,o}unload(){if(this.styleElement.parentNode){this.styleElement.parentNode.removeElement(this.styleElement);let e=new oa("unload",{font:this});this.dispatch(e),this.onunload&&this.onunload(e)}this._unloaded=!0}load(){if(this.__unloaded){delete this.__unloaded,document.head.appendChild(this.styleElement);let e=new oa("load",{font:this});this.dispatch(e),this.onload&&this.onload(e)}}};globalThis.Font=ia;var $r=class extends ct{constructor(e,t,r){super(e),this.plaformID=t,this.encodingID=r}},mS=class extends $r{constructor(e,t,r){super(e,t,r),this.format=0,this.length=e.uint16,this.language=e.uint16,this.glyphIdArray=[...new Array(256)].map(o=>e.uint8)}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 0. only supports(id) is implemented.")),0<=e&&e<=255}reverse(e){return console.warn("reverse not implemented for cmap subtable format 0"),{}}getSupportedCharCodes(){return[{start:1,end:256}]}},hS=class extends $r{constructor(e,t,r){super(e,t,r),this.format=2,this.length=e.uint16,this.language=e.uint16,this.subHeaderKeys=[...new Array(256)].map(i=>e.uint16);let o=Math.max(...this.subHeaderKeys),n=e.currentPosition;ae(this,"subHeaders",()=>(e.currentPosition=n,[...new Array(o)].map(i=>new gS(e))));let s=n+o*8;ae(this,"glyphIndexArray",()=>(e.currentPosition=s,[...new Array(o)].map(i=>e.uint16)))}supports(e){e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 2. only supports(id) is implemented."));let t=e&&255,r=e&&65280,o=this.subHeaders[r],n=this.subHeaders[o],s=n.firstCode,i=s+n.entryCount;return s<=t&&t<=i}reverse(e){return console.warn("reverse not implemented for cmap subtable format 2"),{}}getSupportedCharCodes(e=!1){return e?this.subHeaders.map(t=>({firstCode:t.firstCode,lastCode:t.lastCode})):this.subHeaders.map(t=>({start:t.firstCode,end:t.lastCode}))}},gS=class{constructor(e){this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.first+this.entryCount,this.idDelta=e.int16,this.idRangeOffset=e.uint16}},yS=class extends $r{constructor(e,t,r){super(e,t,r),this.format=4,this.length=e.uint16,this.language=e.uint16,this.segCountX2=e.uint16,this.segCount=this.segCountX2/2,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16;let o=e.currentPosition;ae(this,"endCode",()=>e.readBytes(this.segCount,o,16));let n=o+2+this.segCountX2;ae(this,"startCode",()=>e.readBytes(this.segCount,n,16));let s=n+this.segCountX2;ae(this,"idDelta",()=>e.readBytes(this.segCount,s,16,!0));let i=s+this.segCountX2;ae(this,"idRangeOffset",()=>e.readBytes(this.segCount,i,16));let a=i+this.segCountX2,u=this.length-(a-this.tableStart);ae(this,"glyphIdArray",()=>e.readBytes(u,a,16)),ae(this,"segments",()=>this.buildSegments(i,a,e))}buildSegments(e,t,r){let o=(n,s)=>{let i=this.startCode[s],a=this.endCode[s],u=this.idDelta[s],l=this.idRangeOffset[s],c=e+2*s,f=[];if(l===0)for(let m=i+u,g=a+u;m<=g;m++)f.push(m);else for(let m=0,g=a-i;m<=g;m++)r.currentPosition=c+l+m*2,f.push(r.uint16);return{startCode:i,endCode:a,idDelta:u,idRangeOffset:l,glyphIDs:f}};return[...new Array(this.segCount)].map(o)}reverse(e){let t=this.segments.find(o=>o.glyphIDs.includes(e));if(!t)return{};let r=t.startCode+t.glyphIDs.indexOf(e);return{code:r,unicode:String.fromCodePoint(r)}}getGlyphId(e){if(e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343||(e&65534)===65534||(e&65535)===65535)return 0;let t=this.segments.find(r=>r.startCode<=e&&e<=r.endCode);return t?t.glyphIDs[e-t.startCode]:0}supports(e){return this.getGlyphId(e)!==0}getSupportedCharCodes(e=!1){return e?this.segments:this.segments.map(t=>({start:t.startCode,end:t.endCode}))}},vS=class extends $r{constructor(e,t,r){super(e,t,r),this.format=6,this.length=e.uint16,this.language=e.uint16,this.firstCode=e.uint16,this.entryCount=e.uint16,this.lastCode=this.firstCode+this.entryCount-1,ae(this,"glyphIdArray",()=>[...new Array(this.entryCount)].map(n=>e.uint16))}supports(e){if(e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 6. only supports(id) is implemented.")),e<this.firstCode)return{};if(e>this.firstCode+this.entryCount)return{};let t=e-this.firstCode;return{code:t,unicode:String.fromCodePoint(t)}}reverse(e){let t=this.glyphIdArray.indexOf(e);if(t>-1)return this.firstCode+t}getSupportedCharCodes(e=!1){return e?[{firstCode:this.firstCode,lastCode:this.lastCode}]:[{start:this.firstCode,end:this.lastCode}]}},bS=class extends $r{constructor(e,t,r){super(e,t,r),this.format=8,e.uint16,this.length=e.uint32,this.language=e.uint32,this.is32=[...new Array(8192)].map(n=>e.uint8),this.numGroups=e.uint32,ae(this,"groups",()=>[...new Array(this.numGroups)].map(n=>new wS(e)))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 8. only supports(id) is implemented.")),this.groups.findIndex(t=>t.startcharCode<=e&&e<=t.endcharCode)!==-1}reverse(e){return console.warn("reverse not implemented for cmap subtable format 8"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map(t=>({start:t.startcharCode,end:t.endcharCode}))}},wS=class{constructor(e){this.startcharCode=e.uint32,this.endcharCode=e.uint32,this.startGlyphID=e.uint32}},xS=class extends $r{constructor(e,t,r){super(e,t,r),this.format=10,e.uint16,this.length=e.uint32,this.language=e.uint32,this.startCharCode=e.uint32,this.numChars=e.uint32,this.endCharCode=this.startCharCode+this.numChars,ae(this,"glyphs",()=>[...new Array(this.numChars)].map(n=>e.uint16))}supports(e){return e.charCodeAt&&(e=-1,console.warn("supports(character) not implemented for cmap subtable format 10. only supports(id) is implemented.")),e<this.startCharCode||e>this.startCharCode+this.numChars?!1:e-this.startCharCode}reverse(e){return console.warn("reverse not implemented for cmap subtable format 10"),{}}getSupportedCharCodes(e=!1){return e?[{startCharCode:this.startCharCode,endCharCode:this.endCharCode}]:[{start:this.startCharCode,end:this.endCharCode}]}},SS=class extends $r{constructor(e,t,r){super(e,t,r),this.format=12,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32,ae(this,"groups",()=>[...new Array(this.numGroups)].map(n=>new CS(e)))}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),55296<=e&&e<=57343||(e&65534)===65534||(e&65535)===65535?0:this.groups.findIndex(t=>t.startCharCode<=e&&e<=t.endCharCode)!==-1}reverse(e){for(let t of this.groups){let r=t.startGlyphID;if(r>e)continue;if(r===e)return t.startCharCode;if(r+(t.endCharCode-t.startCharCode)<e)continue;let n=t.startCharCode+(e-r);return{code:n,unicode:String.fromCodePoint(n)}}return{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map(t=>({start:t.startCharCode,end:t.endCharCode}))}},CS=class{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.startGlyphID=e.uint32}},RS=class extends $r{constructor(e,t,r){super(e,t,r),this.format=13,e.uint16,this.length=e.uint32,this.language=e.uint32,this.numGroups=e.uint32;let o=[...new Array(this.numGroups)].map(n=>new ES(e));ae(this,"groups",o)}supports(e){return e.charCodeAt&&(e=e.charCodeAt(0)),this.groups.findIndex(t=>t.startCharCode<=e&&e<=t.endCharCode)!==-1}reverse(e){return console.warn("reverse not implemented for cmap subtable format 13"),{}}getSupportedCharCodes(e=!1){return e?this.groups:this.groups.map(t=>({start:t.startCharCode,end:t.endCharCode}))}},ES=class{constructor(e){this.startCharCode=e.uint32,this.endCharCode=e.uint32,this.glyphID=e.uint32}},TS=class extends $r{constructor(e,t,r){super(e,t,r),this.subTableStart=e.currentPosition,this.format=14,this.length=e.uint32,this.numVarSelectorRecords=e.uint32,ae(this,"varSelectors",()=>[...new Array(this.numVarSelectorRecords)].map(o=>new _S(e)))}supports(){return console.warn("supports not implemented for cmap subtable format 14"),0}getSupportedCharCodes(){return console.warn("getSupportedCharCodes not implemented for cmap subtable format 14"),[]}reverse(e){return console.warn("reverse not implemented for cmap subtable format 14"),{}}supportsVariation(e){let t=this.varSelector.find(r=>r.varSelector===e);return t||!1}getSupportedVariations(){return this.varSelectors.map(e=>e.varSelector)}},_S=class{constructor(e){this.varSelector=e.uint24,this.defaultUVSOffset=e.Offset32,this.nonDefaultUVSOffset=e.Offset32}};function PS(e,t,r){let o=e.uint16;return o===0?new mS(e,t,r):o===2?new hS(e,t,r):o===4?new yS(e,t,r):o===6?new vS(e,t,r):o===8?new bS(e,t,r):o===10?new xS(e,t,r):o===12?new SS(e,t,r):o===13?new RS(e,t,r):o===14?new TS(e,t,r):{}}var OS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numTables=r.uint16,this.encodingRecords=[...new Array(this.numTables)].map(o=>new kS(r,this.tableStart))}getSubTable(e){return this.encodingRecords[e].table}getSupportedEncodings(){return this.encodingRecords.map(e=>({platformID:e.platformID,encodingId:e.encodingID}))}getSupportedCharCodes(e,t){let r=this.encodingRecords.findIndex(n=>n.platformID===e&&n.encodingID===t);return r===-1?!1:this.getSubTable(r).getSupportedCharCodes()}reverse(e){for(let t=0;t<this.numTables;t++){let r=this.getSubTable(t).reverse(e);if(r)return r}}getGlyphId(e){let t=0;return this.encodingRecords.some((r,o)=>{let n=this.getSubTable(o);return n.getGlyphId?(t=n.getGlyphId(e),t!==0):!1}),t}supports(e){return this.encodingRecords.some((t,r)=>{let o=this.getSubTable(r);return o.supports&&o.supports(e)!==!1})}supportsVariation(e){return this.encodingRecords.some((t,r)=>{let o=this.getSubTable(r);return o.supportsVariation&&o.supportsVariation(e)!==!1})}},kS=class{constructor(e,t){let r=this.platformID=e.uint16,o=this.encodingID=e.uint16,n=this.offset=e.Offset32;ae(this,"table",()=>(e.currentPosition=t+n,PS(e,r,o)))}},FS=Object.freeze({__proto__:null,cmap:OS}),AS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.load({majorVersion:r.uint16,minorVersion:r.uint16,fontRevision:r.fixed,checkSumAdjustment:r.uint32,magicNumber:r.uint32,flags:r.flags(16),unitsPerEm:r.uint16,created:r.longdatetime,modified:r.longdatetime,xMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16,macStyle:r.flags(16),lowestRecPPEM:r.uint16,fontDirectionHint:r.uint16,indexToLocFormat:r.uint16,glyphDataFormat:r.uint16})}},IS=Object.freeze({__proto__:null,head:AS}),LS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.ascender=r.fword,this.descender=r.fword,this.lineGap=r.fword,this.advanceWidthMax=r.ufword,this.minLeftSideBearing=r.fword,this.minRightSideBearing=r.fword,this.xMaxExtent=r.fword,this.caretSlopeRise=r.int16,this.caretSlopeRun=r.int16,this.caretOffset=r.int16,r.int16,r.int16,r.int16,r.int16,this.metricDataFormat=r.int16,this.numberOfHMetrics=r.uint16,r.verifyLength()}},NS=Object.freeze({__proto__:null,hhea:LS}),DS=class extends Pe{constructor(e,t,r){let{p:o}=super(e,t),n=r.hhea.numberOfHMetrics,s=r.maxp.numGlyphs,i=o.currentPosition;if(ae(this,"hMetrics",()=>(o.currentPosition=i,[...new Array(n)].map(a=>new MS(o.uint16,o.int16)))),n<s){let a=i+n*4;ae(this,"leftSideBearings",()=>(o.currentPosition=a,[...new Array(s-n)].map(u=>o.int16)))}}},MS=class{constructor(e,t){this.advanceWidth=e,this.lsb=t}},VS=Object.freeze({__proto__:null,hmtx:DS}),BS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.legacyFixed,this.numGlyphs=r.uint16,this.version===1&&(this.maxPoints=r.uint16,this.maxContours=r.uint16,this.maxCompositePoints=r.uint16,this.maxCompositeContours=r.uint16,this.maxZones=r.uint16,this.maxTwilightPoints=r.uint16,this.maxStorage=r.uint16,this.maxFunctionDefs=r.uint16,this.maxInstructionDefs=r.uint16,this.maxStackElements=r.uint16,this.maxSizeOfInstructions=r.uint16,this.maxComponentElements=r.uint16,this.maxComponentDepth=r.uint16),r.verifyLength()}},jS=Object.freeze({__proto__:null,maxp:BS}),zS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.format=r.uint16,this.count=r.uint16,this.stringOffset=r.Offset16,this.nameRecords=[...new Array(this.count)].map(o=>new HS(r,this)),this.format===1&&(this.langTagCount=r.uint16,this.langTagRecords=[...new Array(this.langTagCount)].map(o=>new US(r.uint16,r.Offset16))),this.stringStart=this.tableStart+this.stringOffset}get(e){let t=this.nameRecords.find(r=>r.nameID===e);if(t)return t.string}},US=class{constructor(e,t){this.length=e,this.offset=t}},HS=class{constructor(e,t){this.platformID=e.uint16,this.encodingID=e.uint16,this.languageID=e.uint16,this.nameID=e.uint16,this.length=e.uint16,this.offset=e.Offset16,ae(this,"string",()=>(e.currentPosition=t.stringStart+this.offset,WS(e,this)))}};function WS(e,t){let{platformID:r,length:o}=t;if(o===0)return"";if(r===0||r===3){let i=[];for(let a=0,u=o/2;a<u;a++)i[a]=String.fromCharCode(e.uint16);return i.join("")}let n=e.readBytes(o),s=[];return n.forEach(function(i,a){s[a]=String.fromCharCode(i)}),s.join("")}var GS=Object.freeze({__proto__:null,name:zS}),YS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);if(this.version=r.uint16,this.xAvgCharWidth=r.int16,this.usWeightClass=r.uint16,this.usWidthClass=r.uint16,this.fsType=r.uint16,this.ySubscriptXSize=r.int16,this.ySubscriptYSize=r.int16,this.ySubscriptXOffset=r.int16,this.ySubscriptYOffset=r.int16,this.ySuperscriptXSize=r.int16,this.ySuperscriptYSize=r.int16,this.ySuperscriptXOffset=r.int16,this.ySuperscriptYOffset=r.int16,this.yStrikeoutSize=r.int16,this.yStrikeoutPosition=r.int16,this.sFamilyClass=r.int16,this.panose=[...new Array(10)].map(o=>r.uint8),this.ulUnicodeRange1=r.flags(32),this.ulUnicodeRange2=r.flags(32),this.ulUnicodeRange3=r.flags(32),this.ulUnicodeRange4=r.flags(32),this.achVendID=r.tag,this.fsSelection=r.uint16,this.usFirstCharIndex=r.uint16,this.usLastCharIndex=r.uint16,this.sTypoAscender=r.int16,this.sTypoDescender=r.int16,this.sTypoLineGap=r.int16,this.usWinAscent=r.uint16,this.usWinDescent=r.uint16,this.version===0||(this.ulCodePageRange1=r.flags(32),this.ulCodePageRange2=r.flags(32),this.version===1)||(this.sxHeight=r.int16,this.sCapHeight=r.int16,this.usDefaultChar=r.uint16,this.usBreakChar=r.uint16,this.usMaxContext=r.uint16,this.version<=4)||(this.usLowerOpticalPointSize=r.uint16,this.usUpperOpticalPointSize=r.uint16,this.version===5))return r.verifyLength()}},qS=Object.freeze({__proto__:null,OS2:YS}),ZS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);if(this.version=r.legacyFixed,this.italicAngle=r.fixed,this.underlinePosition=r.fword,this.underlineThickness=r.fword,this.isFixedPitch=r.uint32,this.minMemType42=r.uint32,this.maxMemType42=r.uint32,this.minMemType1=r.uint32,this.maxMemType1=r.uint32,this.version===1||this.version===3)return r.verifyLength();if(this.numGlyphs=r.uint16,this.version===2){this.glyphNameIndex=[...new Array(this.numGlyphs)].map(o=>r.uint16),this.namesOffset=r.currentPosition,this.glyphNameOffsets=[1];for(let o=0;o<this.numGlyphs;o++){if(this.glyphNameIndex[o]<ey.length){this.glyphNameOffsets.push(this.glyphNameOffsets[o]);continue}let s=r.int8;r.skip(s),this.glyphNameOffsets.push(this.glyphNameOffsets[o]+s+1)}}this.version===2.5&&(this.offset=[...new Array(this.numGlyphs)].map(o=>r.int8))}getGlyphName(e){if(this.version!==2)return console.warn(`post table version ${this.version} does not support glyph name lookups`),"";let t=this.glyphNameIndex[e];if(t<258)return ey[t];let r=this.glyphNameOffsets[e],n=this.glyphNameOffsets[e+1]-r-1;return n===0?".notdef.":(this.parser.currentPosition=this.namesOffset+r,this.parser.readBytes(n,this.namesOffset+r,8,!0).map(i=>String.fromCharCode(i)).join(""))}},ey=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"],XS=Object.freeze({__proto__:null,post:ZS}),KS=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.horizAxisOffset=r.Offset16,this.vertAxisOffset=r.Offset16,ae(this,"horizAxis",()=>new Yc({offset:e.offset+this.horizAxisOffset},t)),ae(this,"vertAxis",()=>new Yc({offset:e.offset+this.vertAxisOffset},t)),this.majorVersion===1&&this.minorVersion===1&&(this.itemVarStoreOffset=r.Offset32,ae(this,"itemVarStore",()=>new Yc({offset:e.offset+this.itemVarStoreOffset},t)))}},Yc=class extends Pe{constructor(e,t){let{p:r}=super(e,t,"AxisTable");this.baseTagListOffset=r.Offset16,this.baseScriptListOffset=r.Offset16,ae(this,"baseTagList",()=>new JS({offset:e.offset+this.baseTagListOffset},t)),ae(this,"baseScriptList",()=>new QS({offset:e.offset+this.baseScriptListOffset},t))}},JS=class extends Pe{constructor(e,t){let{p:r}=super(e,t,"BaseTagListTable");this.baseTagCount=r.uint16,this.baselineTags=[...new Array(this.baseTagCount)].map(o=>r.tag)}},QS=class extends Pe{constructor(e,t){let{p:r}=super(e,t,"BaseScriptListTable");this.baseScriptCount=r.uint16;let o=r.currentPosition;ae(this,"baseScriptRecords",()=>(r.currentPosition=o,[...new Array(this.baseScriptCount)].map(n=>new $S(this.start,r))))}},$S=class{constructor(e,t){this.baseScriptTag=t.tag,this.baseScriptOffset=t.Offset16,ae(this,"baseScriptTable",()=>(t.currentPosition=e+this.baseScriptOffset,new eC(t)))}},eC=class{constructor(e){this.start=e.currentPosition,this.baseValuesOffset=e.Offset16,this.defaultMinMaxOffset=e.Offset16,this.baseLangSysCount=e.uint16,this.baseLangSysRecords=[...new Array(this.baseLangSysCount)].map(t=>new tC(this.start,e)),ae(this,"baseValues",()=>(e.currentPosition=this.start+this.baseValuesOffset,new rC(e))),ae(this,"defaultMinMax",()=>(e.currentPosition=this.start+this.defaultMinMaxOffset,new ly(e)))}},tC=class{constructor(e,t){this.baseLangSysTag=t.tag,this.minMaxOffset=t.Offset16,ae(this,"minMax",()=>(t.currentPosition=e+this.minMaxOffset,new ly(t)))}},rC=class{constructor(e){this.parser=e,this.start=e.currentPosition,this.defaultBaselineIndex=e.uint16,this.baseCoordCount=e.uint16,this.baseCoords=[...new Array(this.baseCoordCount)].map(t=>e.Offset16)}getTable(e){return this.parser.currentPosition=this.start+this.baseCoords[e],new nC(this.parser)}},ly=class{constructor(e){this.minCoord=e.Offset16,this.maxCoord=e.Offset16,this.featMinMaxCount=e.uint16;let t=e.currentPosition;ae(this,"featMinMaxRecords",()=>(e.currentPosition=t,[...new Array(this.featMinMaxCount)].map(r=>new oC(e))))}},oC=class{constructor(e){this.featureTableTag=e.tag,this.minCoord=e.Offset16,this.maxCoord=e.Offset16}},nC=class{constructor(e){this.baseCoordFormat=e.uint16,this.coordinate=e.int16,this.baseCoordFormat===2&&(this.referenceGlyph=e.uint16,this.baseCoordPoint=e.uint16),this.baseCoordFormat===3&&(this.deviceTable=e.Offset16)}},sC=Object.freeze({__proto__:null,BASE:KS}),ty=class{constructor(e){this.classFormat=e.uint16,this.classFormat===1&&(this.startGlyphID=e.uint16,this.glyphCount=e.uint16,this.classValueArray=[...new Array(this.glyphCount)].map(t=>e.uint16)),this.classFormat===2&&(this.classRangeCount=e.uint16,this.classRangeRecords=[...new Array(this.classRangeCount)].map(t=>new iC(e)))}},iC=class{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.class=e.uint16}},xs=class extends ct{constructor(e){super(e),this.coverageFormat=e.uint16,this.coverageFormat===1&&(this.glyphCount=e.uint16,this.glyphArray=[...new Array(this.glyphCount)].map(t=>e.uint16)),this.coverageFormat===2&&(this.rangeCount=e.uint16,this.rangeRecords=[...new Array(this.rangeCount)].map(t=>new aC(e)))}},aC=class{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.startCoverageIndex=e.uint16}},lC=class{constructor(e,t){this.table=e,this.parser=t,this.start=t.currentPosition,this.format=t.uint16,this.variationRegionListOffset=t.Offset32,this.itemVariationDataCount=t.uint16,this.itemVariationDataOffsets=[...new Array(this.itemVariationDataCount)].map(r=>t.Offset32)}},cC=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.glyphClassDefOffset=r.Offset16,ae(this,"glyphClassDefs",()=>{if(this.glyphClassDefOffset!==0)return r.currentPosition=this.tableStart+this.glyphClassDefOffset,new ty(r)}),this.attachListOffset=r.Offset16,ae(this,"attachList",()=>{if(this.attachListOffset!==0)return r.currentPosition=this.tableStart+this.attachListOffset,new uC(r)}),this.ligCaretListOffset=r.Offset16,ae(this,"ligCaretList",()=>{if(this.ligCaretListOffset!==0)return r.currentPosition=this.tableStart+this.ligCaretListOffset,new dC(r)}),this.markAttachClassDefOffset=r.Offset16,ae(this,"markAttachClassDef",()=>{if(this.markAttachClassDefOffset!==0)return r.currentPosition=this.tableStart+this.markAttachClassDefOffset,new ty(r)}),this.minorVersion>=2&&(this.markGlyphSetsDefOffset=r.Offset16,ae(this,"markGlyphSetsDef",()=>{if(this.markGlyphSetsDefOffset!==0)return r.currentPosition=this.tableStart+this.markGlyphSetsDefOffset,new hC(r)})),this.minorVersion===3&&(this.itemVarStoreOffset=r.Offset32,ae(this,"itemVarStore",()=>{if(this.itemVarStoreOffset!==0)return r.currentPosition=this.tableStart+this.itemVarStoreOffset,new lC(r)}))}},uC=class extends ct{constructor(e){super(e),this.coverageOffset=e.Offset16,this.glyphCount=e.uint16,this.attachPointOffsets=[...new Array(this.glyphCount)].map(t=>e.Offset16)}getPoint(e){return this.parser.currentPosition=this.start+this.attachPointOffsets[e],new fC(this.parser)}},fC=class{constructor(e){this.pointCount=e.uint16,this.pointIndices=[...new Array(this.pointCount)].map(t=>e.uint16)}},dC=class extends ct{constructor(e){super(e),this.coverageOffset=e.Offset16,ae(this,"coverage",()=>(e.currentPosition=this.start+this.coverageOffset,new xs(e))),this.ligGlyphCount=e.uint16,this.ligGlyphOffsets=[...new Array(this.ligGlyphCount)].map(t=>e.Offset16)}getLigGlyph(e){return this.parser.currentPosition=this.start+this.ligGlyphOffsets[e],new pC(this.parser)}},pC=class extends ct{constructor(e){super(e),this.caretCount=e.uint16,this.caretValueOffsets=[...new Array(this.caretCount)].map(t=>e.Offset16)}getCaretValue(e){return this.parser.currentPosition=this.start+this.caretValueOffsets[e],new mC(this.parser)}},mC=class{constructor(e){this.caretValueFormat=e.uint16,this.caretValueFormat===1&&(this.coordinate=e.int16),this.caretValueFormat===2&&(this.caretValuePointIndex=e.uint16),this.caretValueFormat===3&&(this.coordinate=e.int16,this.deviceOffset=e.Offset16)}},hC=class extends ct{constructor(e){super(e),this.markGlyphSetTableFormat=e.uint16,this.markGlyphSetCount=e.uint16,this.coverageOffsets=[...new Array(this.markGlyphSetCount)].map(t=>e.Offset32)}getMarkGlyphSet(e){return this.parser.currentPosition=this.start+this.coverageOffsets[e],new xs(this.parser)}},gC=Object.freeze({__proto__:null,GDEF:cC}),ry=class extends ct{static EMPTY={scriptCount:0,scriptRecords:[]};constructor(e){super(e),this.scriptCount=e.uint16,this.scriptRecords=[...new Array(this.scriptCount)].map(t=>new yC(e))}},yC=class{constructor(e){this.scriptTag=e.tag,this.scriptOffset=e.Offset16}},vC=class extends ct{constructor(e){super(e),this.defaultLangSys=e.Offset16,this.langSysCount=e.uint16,this.langSysRecords=[...new Array(this.langSysCount)].map(t=>new bC(e))}},bC=class{constructor(e){this.langSysTag=e.tag,this.langSysOffset=e.Offset16}},oy=class{constructor(e){this.lookupOrder=e.Offset16,this.requiredFeatureIndex=e.uint16,this.featureIndexCount=e.uint16,this.featureIndices=[...new Array(this.featureIndexCount)].map(t=>e.uint16)}},ny=class extends ct{static EMPTY={featureCount:0,featureRecords:[]};constructor(e){super(e),this.featureCount=e.uint16,this.featureRecords=[...new Array(this.featureCount)].map(t=>new wC(e))}},wC=class{constructor(e){this.featureTag=e.tag,this.featureOffset=e.Offset16}},xC=class extends ct{constructor(e){super(e),this.featureParams=e.Offset16,this.lookupIndexCount=e.uint16,this.lookupListIndices=[...new Array(this.lookupIndexCount)].map(t=>e.uint16)}getFeatureParams(){if(this.featureParams>0){let e=this.parser;e.currentPosition=this.start+this.featureParams;let t=this.featureTag;if(t==="size")return new CC(e);if(t.startsWith("cc"))return new SC(e);if(t.startsWith("ss"))return new RC(e)}}},SC=class{constructor(e){this.format=e.uint16,this.featUiLabelNameId=e.uint16,this.featUiTooltipTextNameId=e.uint16,this.sampleTextNameId=e.uint16,this.numNamedParameters=e.uint16,this.firstParamUiLabelNameId=e.uint16,this.charCount=e.uint16,this.character=[...new Array(this.charCount)].map(t=>e.uint24)}},CC=class{constructor(e){this.designSize=e.uint16,this.subfamilyIdentifier=e.uint16,this.subfamilyNameID=e.uint16,this.smallEnd=e.uint16,this.largeEnd=e.uint16}},RC=class{constructor(e){this.version=e.uint16,this.UINameID=e.uint16}};function cy(e){e.parser.currentPosition-=2,delete e.coverageOffset,delete e.getCoverageTable}var Zo=class extends ct{constructor(e){super(e),this.substFormat=e.uint16,this.coverageOffset=e.Offset16}getCoverageTable(){let e=this.parser;return e.currentPosition=this.start+this.coverageOffset,new xs(e)}},Zc=class{constructor(e){this.glyphSequenceIndex=e.uint16,this.lookupListIndex=e.uint16}},EC=class extends Zo{constructor(e){super(e),this.deltaGlyphID=e.int16}},TC=class extends Zo{constructor(e){super(e),this.sequenceCount=e.uint16,this.sequenceOffsets=[...new Array(this.sequenceCount)].map(t=>e.Offset16)}getSequence(e){let t=this.parser;return t.currentPosition=this.start+this.sequenceOffsets[e],new _C(t)}},_C=class{constructor(e){this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map(t=>e.uint16)}},PC=class extends Zo{constructor(e){super(e),this.alternateSetCount=e.uint16,this.alternateSetOffsets=[...new Array(this.alternateSetCount)].map(t=>e.Offset16)}getAlternateSet(e){let t=this.parser;return t.currentPosition=this.start+this.alternateSetOffsets[e],new OC(t)}},OC=class{constructor(e){this.glyphCount=e.uint16,this.alternateGlyphIDs=[...new Array(this.glyphCount)].map(t=>e.uint16)}},kC=class extends Zo{constructor(e){super(e),this.ligatureSetCount=e.uint16,this.ligatureSetOffsets=[...new Array(this.ligatureSetCount)].map(t=>e.Offset16)}getLigatureSet(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureSetOffsets[e],new FC(t)}},FC=class extends ct{constructor(e){super(e),this.ligatureCount=e.uint16,this.ligatureOffsets=[...new Array(this.ligatureCount)].map(t=>e.Offset16)}getLigature(e){let t=this.parser;return t.currentPosition=this.start+this.ligatureOffsets[e],new AC(t)}},AC=class{constructor(e){this.ligatureGlyph=e.uint16,this.componentCount=e.uint16,this.componentGlyphIDs=[...new Array(this.componentCount-1)].map(t=>e.uint16)}},IC=class extends Zo{constructor(e){super(e),this.substFormat===1&&(this.subRuleSetCount=e.uint16,this.subRuleSetOffsets=[...new Array(this.subRuleSetCount)].map(t=>e.Offset16)),this.substFormat===2&&(this.classDefOffset=e.Offset16,this.subClassSetCount=e.uint16,this.subClassSetOffsets=[...new Array(this.subClassSetCount)].map(t=>e.Offset16)),this.substFormat===3&&(cy(this),this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.coverageOffsets=[...new Array(this.glyphCount)].map(t=>e.Offset16),this.substLookupRecords=[...new Array(this.substitutionCount)].map(t=>new Zc(e)))}getSubRuleSet(e){if(this.substFormat!==1)throw new Error(`lookup type 5.${this.substFormat} has no subrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.subRuleSetOffsets[e],new LC(t)}getSubClassSet(e){if(this.substFormat!==2)throw new Error(`lookup type 5.${this.substFormat} has no subclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.subClassSetOffsets[e],new NC(t)}getCoverageTable(e){if(this.substFormat!==3&&!e)return super.getCoverageTable();if(!e)throw new Error(`lookup type 5.${this.substFormat} requires an coverage table index.`);let t=this.parser;return t.currentPosition=this.start+this.coverageOffsets[e],new xs(t)}},LC=class extends ct{constructor(e){super(e),this.subRuleCount=e.uint16,this.subRuleOffsets=[...new Array(this.subRuleCount)].map(t=>e.Offset16)}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.subRuleOffsets[e],new uy(t)}},uy=class{constructor(e){this.glyphCount=e.uint16,this.substitutionCount=e.uint16,this.inputSequence=[...new Array(this.glyphCount-1)].map(t=>e.uint16),this.substLookupRecords=[...new Array(this.substitutionCount)].map(t=>new Zc(e))}},NC=class extends ct{constructor(e){super(e),this.subClassRuleCount=e.uint16,this.subClassRuleOffsets=[...new Array(this.subClassRuleCount)].map(t=>e.Offset16)}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.subClassRuleOffsets[e],new DC(t)}},DC=class extends uy{constructor(e){super(e)}},MC=class extends Zo{constructor(e){super(e),this.substFormat===1&&(this.chainSubRuleSetCount=e.uint16,this.chainSubRuleSetOffsets=[...new Array(this.chainSubRuleSetCount)].map(t=>e.Offset16)),this.substFormat===2&&(this.backtrackClassDefOffset=e.Offset16,this.inputClassDefOffset=e.Offset16,this.lookaheadClassDefOffset=e.Offset16,this.chainSubClassSetCount=e.uint16,this.chainSubClassSetOffsets=[...new Array(this.chainSubClassSetCount)].map(t=>e.Offset16)),this.substFormat===3&&(cy(this),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map(t=>e.Offset16),this.inputGlyphCount=e.uint16,this.inputCoverageOffsets=[...new Array(this.inputGlyphCount)].map(t=>e.Offset16),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[...new Array(this.lookaheadGlyphCount)].map(t=>e.Offset16),this.seqLookupCount=e.uint16,this.seqLookupRecords=[...new Array(this.substitutionCount)].map(t=>new fy(e)))}getChainSubRuleSet(e){if(this.substFormat!==1)throw new Error(`lookup type 6.${this.substFormat} has no chainsubrule sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleSetOffsets[e],new VC(t)}getChainSubClassSet(e){if(this.substFormat!==2)throw new Error(`lookup type 6.${this.substFormat} has no chainsubclass sets.`);let t=this.parser;return t.currentPosition=this.start+this.chainSubClassSetOffsets[e],new jC(t)}getCoverageFromOffset(e){if(this.substFormat!==3)throw new Error(`lookup type 6.${this.substFormat} does not use contextual coverage offsets.`);let t=this.parser;return t.currentPosition=this.start+e,new xs(t)}},VC=class extends ct{constructor(e){super(e),this.chainSubRuleCount=e.uint16,this.chainSubRuleOffsets=[...new Array(this.chainSubRuleCount)].map(t=>e.Offset16)}getSubRule(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new BC(t)}},BC=class{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map(t=>e.uint16),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map(t=>e.uint16),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map(t=>e.uint16),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.SubstCount)].map(t=>new Zc(e))}},jC=class extends ct{constructor(e){super(e),this.chainSubClassRuleCount=e.uint16,this.chainSubClassRuleOffsets=[...new Array(this.chainSubClassRuleCount)].map(t=>e.Offset16)}getSubClass(e){let t=this.parser;return t.currentPosition=this.start+this.chainSubRuleOffsets[e],new zC(t)}},zC=class{constructor(e){this.backtrackGlyphCount=e.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map(t=>e.uint16),this.inputGlyphCount=e.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map(t=>e.uint16),this.lookaheadGlyphCount=e.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map(t=>e.uint16),this.substitutionCount=e.uint16,this.substLookupRecords=[...new Array(this.substitutionCount)].map(t=>new fy(e))}},fy=class extends ct{constructor(e){super(e),this.sequenceIndex=e.uint16,this.lookupListIndex=e.uint16}},UC=class extends ct{constructor(e){super(e),this.substFormat=e.uint16,this.extensionLookupType=e.uint16,this.extensionOffset=e.Offset32}},HC=class extends Zo{constructor(e){super(e),this.backtrackGlyphCount=e.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map(t=>e.Offset16),this.lookaheadGlyphCount=e.uint16,this.lookaheadCoverageOffsets=[new Array(this.lookaheadGlyphCount)].map(t=>e.Offset16),this.glyphCount=e.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map(t=>e.uint16)}},WC={buildSubtable:function(e,t){let r=new[void 0,EC,TC,PC,kC,IC,MC,UC,HC][e](t);return r.type=e,r}},eo=class extends ct{constructor(e){super(e)}},GC=class extends eo{constructor(e){super(e),console.log("lookup type 1")}},YC=class extends eo{constructor(e){super(e),console.log("lookup type 2")}},qC=class extends eo{constructor(e){super(e),console.log("lookup type 3")}},ZC=class extends eo{constructor(e){super(e),console.log("lookup type 4")}},XC=class extends eo{constructor(e){super(e),console.log("lookup type 5")}},KC=class extends eo{constructor(e){super(e),console.log("lookup type 6")}},JC=class extends eo{constructor(e){super(e),console.log("lookup type 7")}},QC=class extends eo{constructor(e){super(e),console.log("lookup type 8")}},$C=class extends eo{constructor(e){super(e),console.log("lookup type 9")}},eR={buildSubtable:function(e,t){let r=new[void 0,GC,YC,qC,ZC,XC,KC,JC,QC,$C][e](t);return r.type=e,r}},sy=class extends ct{static EMPTY={lookupCount:0,lookups:[]};constructor(e){super(e),this.lookupCount=e.uint16,this.lookups=[...new Array(this.lookupCount)].map(t=>e.Offset16)}},tR=class extends ct{constructor(e,t){super(e),this.ctType=t,this.lookupType=e.uint16,this.lookupFlag=e.uint16,this.subTableCount=e.uint16,this.subtableOffsets=[...new Array(this.subTableCount)].map(r=>e.Offset16),this.markFilteringSet=e.uint16}get rightToLeft(){return this.lookupFlag&!0}get ignoreBaseGlyphs(){return this.lookupFlag&!0}get ignoreLigatures(){return this.lookupFlag&!0}get ignoreMarks(){return this.lookupFlag&!0}get useMarkFilteringSet(){return this.lookupFlag&!0}get markAttachmentType(){return this.lookupFlag&!0}getSubTable(e){let t=this.ctType==="GSUB"?WC:eR;return this.parser.currentPosition=this.start+this.subtableOffsets[e],t.buildSubtable(this.lookupType,this.parser)}},dy=class extends Pe{constructor(e,t,r){let{p:o,tableStart:n}=super(e,t,r);this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.scriptListOffset=o.Offset16,this.featureListOffset=o.Offset16,this.lookupListOffset=o.Offset16,this.majorVersion===1&&this.minorVersion===1&&(this.featureVariationsOffset=o.Offset32);let s=!(this.scriptListOffset||this.featureListOffset||this.lookupListOffset);ae(this,"scriptList",()=>s?ry.EMPTY:(o.currentPosition=n+this.scriptListOffset,new ry(o))),ae(this,"featureList",()=>s?ny.EMPTY:(o.currentPosition=n+this.featureListOffset,new ny(o))),ae(this,"lookupList",()=>s?sy.EMPTY:(o.currentPosition=n+this.lookupListOffset,new sy(o))),this.featureVariationsOffset&&ae(this,"featureVariations",()=>s?FeatureVariations.EMPTY:(o.currentPosition=n+this.featureVariationsOffset,new FeatureVariations(o)))}getSupportedScripts(){return this.scriptList.scriptRecords.map(e=>e.scriptTag)}getScriptTable(e){let t=this.scriptList.scriptRecords.find(o=>o.scriptTag===e);this.parser.currentPosition=this.scriptList.start+t.scriptOffset;let r=new vC(this.parser);return r.scriptTag=e,r}ensureScriptTable(e){return typeof e=="string"?this.getScriptTable(e):e}getSupportedLangSys(e){e=this.ensureScriptTable(e);let t=e.defaultLangSys!==0,r=e.langSysRecords.map(o=>o.langSysTag);return t&&r.unshift("dflt"),r}getDefaultLangSysTable(e){e=this.ensureScriptTable(e);let t=e.defaultLangSys;if(t!==0){this.parser.currentPosition=e.start+t;let r=new oy(this.parser);return r.langSysTag="",r.defaultForScript=e.scriptTag,r}}getLangSysTable(e,t="dflt"){if(t==="dflt")return this.getDefaultLangSysTable(e);e=this.ensureScriptTable(e);let r=e.langSysRecords.find(n=>n.langSysTag===t);this.parser.currentPosition=e.start+r.langSysOffset;let o=new oy(this.parser);return o.langSysTag=t,o}getFeatures(e){return e.featureIndices.map(t=>this.getFeature(t))}getFeature(e){let t;if(parseInt(e)==e?t=this.featureList.featureRecords[e]:t=this.featureList.featureRecords.find(o=>o.featureTag===e),!t)return;this.parser.currentPosition=this.featureList.start+t.featureOffset;let r=new xC(this.parser);return r.featureTag=t.featureTag,r}getLookups(e){return e.lookupListIndices.map(t=>this.getLookup(t))}getLookup(e,t){let r=this.lookupList.lookups[e];return this.parser.currentPosition=this.lookupList.start+r,new tR(this.parser,t)}},rR=class extends dy{constructor(e,t){super(e,t,"GSUB")}getLookup(e){return super.getLookup(e,"GSUB")}},oR=Object.freeze({__proto__:null,GSUB:rR}),nR=class extends dy{constructor(e,t){super(e,t,"GPOS")}getLookup(e){return super.getLookup(e,"GPOS")}},sR=Object.freeze({__proto__:null,GPOS:nR}),iR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.offsetToSVGDocumentList=r.Offset32,r.currentPosition=this.tableStart+this.offsetToSVGDocumentList,this.documentList=new aR(r)}},aR=class extends ct{constructor(e){super(e),this.numEntries=e.uint16,this.documentRecords=[...new Array(this.numEntries)].map(t=>new lR(e))}getDocument(e){let t=this.documentRecords[e];if(!t)return"";let r=this.start+t.svgDocOffset;return this.parser.currentPosition=r,this.parser.readBytes(t.svgDocLength)}getDocumentForGlyph(e){let t=this.documentRecords.findIndex(r=>r.startGlyphID<=e&&e<=r.endGlyphID);return t===-1?"":this.getDocument(t)}},lR=class{constructor(e){this.startGlyphID=e.uint16,this.endGlyphID=e.uint16,this.svgDocOffset=e.Offset32,this.svgDocLength=e.uint32}},cR=Object.freeze({__proto__:null,SVG:iR}),uR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.axesArrayOffset=r.Offset16,r.uint16,this.axisCount=r.uint16,this.axisSize=r.uint16,this.instanceCount=r.uint16,this.instanceSize=r.uint16;let o=this.tableStart+this.axesArrayOffset;ae(this,"axes",()=>(r.currentPosition=o,[...new Array(this.axisCount)].map(s=>new fR(r))));let n=o+this.axisCount*this.axisSize;ae(this,"instances",()=>{let s=[];for(let i=0;i<this.instanceCount;i++)r.currentPosition=n+i*this.instanceSize,s.push(new dR(r,this.axisCount,this.instanceSize));return s})}getSupportedAxes(){return this.axes.map(e=>e.tag)}getAxis(e){return this.axes.find(t=>t.tag===e)}},fR=class{constructor(e){this.tag=e.tag,this.minValue=e.fixed,this.defaultValue=e.fixed,this.maxValue=e.fixed,this.flags=e.flags(16),this.axisNameID=e.uint16}},dR=class{constructor(e,t,r){let o=e.currentPosition;this.subfamilyNameID=e.uint16,e.uint16,this.coordinates=[...new Array(t)].map(n=>e.fixed),e.currentPosition-o<r&&(this.postScriptNameID=e.uint16)}},pR=Object.freeze({__proto__:null,fvar:uR}),mR=class extends Pe{constructor(e,t){let{p:r}=super(e,t),o=e.length/2;ae(this,"items",()=>[...new Array(o)].map(n=>r.fword))}},hR=Object.freeze({__proto__:null,cvt:mR}),gR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);ae(this,"instructions",()=>[...new Array(e.length)].map(o=>r.uint8))}},yR=Object.freeze({__proto__:null,fpgm:gR}),vR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numRanges=r.uint16,ae(this,"gaspRanges",()=>[...new Array(this.numRanges)].map(n=>new bR(r)))}},bR=class{constructor(e){this.rangeMaxPPEM=e.uint16,this.rangeGaspBehavior=e.uint16}},wR=Object.freeze({__proto__:null,gasp:vR}),xR=class extends Pe{constructor(e,t){super(e,t)}getGlyphData(e,t){return this.parser.currentPosition=this.tableStart+e,this.parser.readBytes(t)}},SR=Object.freeze({__proto__:null,glyf:xR}),CR=class extends Pe{constructor(e,t,r){let{p:o}=super(e,t),n=r.maxp.numGlyphs+1;r.head.indexToLocFormat===0?(this.x2=!0,ae(this,"offsets",()=>[...new Array(n)].map(s=>o.Offset16))):ae(this,"offsets",()=>[...new Array(n)].map(s=>o.Offset32))}getGlyphDataOffsetAndLength(e){let t=this.offsets[e]*this.x2?2:1,r=this.offsets[e+1]*this.x2?2:1;return{offset:t,length:r-t}}},RR=Object.freeze({__proto__:null,loca:CR}),ER=class extends Pe{constructor(e,t){let{p:r}=super(e,t);ae(this,"instructions",()=>[...new Array(e.length)].map(o=>r.uint8))}},TR=Object.freeze({__proto__:null,prep:ER}),_R=class extends Pe{constructor(e,t){let{p:r}=super(e,t);ae(this,"data",()=>r.readBytes())}},PR=Object.freeze({__proto__:null,CFF:_R}),OR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);ae(this,"data",()=>r.readBytes())}},kR=Object.freeze({__proto__:null,CFF2:OR}),FR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.defaultVertOriginY=r.int16,this.numVertOriginYMetrics=r.uint16,ae(this,"vertORiginYMetrics",()=>[...new Array(this.numVertOriginYMetrics)].map(o=>new AR(r)))}},AR=class{constructor(e){this.glyphIndex=e.uint16,this.vertOriginY=e.int16}},IR=Object.freeze({__proto__:null,VORG:FR}),LR=class{constructor(e){this.indexSubTableArrayOffset=e.Offset32,this.indexTablesSize=e.uint32,this.numberofIndexSubTables=e.uint32,this.colorRef=e.uint32,this.hori=new sa(e),this.vert=new sa(e),this.startGlyphIndex=e.uint16,this.endGlyphIndex=e.uint16,this.ppemX=e.uint8,this.ppemY=e.uint8,this.bitDepth=e.uint8,this.flags=e.int8}},NR=class{constructor(e){this.hori=new sa(e),this.vert=new sa(e),this.ppemX=e.uint8,this.ppemY=e.uint8,this.substitutePpemX=e.uint8,this.substitutePpemY=e.uint8}},sa=class{constructor(e){this.ascender=e.int8,this.descender=e.int8,this.widthMax=e.uint8,this.caretSlopeNumerator=e.int8,this.caretSlopeDenominator=e.int8,this.caretOffset=e.int8,this.minOriginSB=e.int8,this.minAdvanceSB=e.int8,this.maxBeforeBL=e.int8,this.minAfterBL=e.int8,this.pad1=e.int8,this.pad2=e.int8}},py=class extends Pe{constructor(e,t,r){let{p:o}=super(e,t,r);this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.numSizes=o.uint32,ae(this,"bitMapSizes",()=>[...new Array(this.numSizes)].map(n=>new LR(o)))}},DR=Object.freeze({__proto__:null,EBLC:py}),my=class extends Pe{constructor(e,t,r){let{p:o}=super(e,t,r);this.majorVersion=o.uint16,this.minorVersion=o.uint16}},MR=Object.freeze({__proto__:null,EBDT:my}),VR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.numSizes=r.uint32,ae(this,"bitmapScales",()=>[...new Array(this.numSizes)].map(o=>new NR(r)))}},BR=Object.freeze({__proto__:null,EBSC:VR}),jR=class extends py{constructor(e,t){super(e,t,"CBLC")}},zR=Object.freeze({__proto__:null,CBLC:jR}),UR=class extends my{constructor(e,t){super(e,t,"CBDT")}},HR=Object.freeze({__proto__:null,CBDT:UR}),WR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.flags=r.flags(16),this.numStrikes=r.uint32,ae(this,"strikeOffsets",()=>[...new Array(this.numStrikes)].map(o=>r.Offset32))}},GR=Object.freeze({__proto__:null,sbix:WR}),YR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numBaseGlyphRecords=r.uint16,this.baseGlyphRecordsOffset=r.Offset32,this.layerRecordsOffset=r.Offset32,this.numLayerRecords=r.uint16}getBaseGlyphRecord(e){let t=this.tableStart+this.baseGlyphRecordsOffset;this.parser.currentPosition=t;let r=new qc(this.parser),o=r.gID,n=this.tableStart+this.layerRecordsOffset-6;this.parser.currentPosition=n;let s=new qc(this.parser),i=s.gID;if(o===e)return r;if(i===e)return s;for(;t!==n;){let a=t+(n-t)/12;this.parser.currentPosition=a;let u=new qc(this.parser),l=u.gID;if(l===e)return u;l>e?n=a:l<e&&(t=a)}return!1}getLayers(e){let t=this.getBaseGlyphRecord(e);return this.parser.currentPosition=this.tableStart+this.layerRecordsOffset+4*t.firstLayerIndex,[...new Array(t.numLayers)].map(r=>new qR(p))}},qc=class{constructor(e){this.gID=e.uint16,this.firstLayerIndex=e.uint16,this.numLayers=e.uint16}},qR=class{constructor(e){this.gID=e.uint16,this.paletteIndex=e.uint16}},ZR=Object.freeze({__proto__:null,COLR:YR}),XR=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numPaletteEntries=r.uint16;let o=this.numPalettes=r.uint16;this.numColorRecords=r.uint16,this.offsetFirstColorRecord=r.Offset32,this.colorRecordIndices=[...new Array(this.numPalettes)].map(n=>r.uint16),ae(this,"colorRecords",()=>(r.currentPosition=this.tableStart+this.offsetFirstColorRecord,[...new Array(this.numColorRecords)].map(n=>new KR(r)))),this.version===1&&(this.offsetPaletteTypeArray=r.Offset32,this.offsetPaletteLabelArray=r.Offset32,this.offsetPaletteEntryLabelArray=r.Offset32,ae(this,"paletteTypeArray",()=>(r.currentPosition=this.tableStart+this.offsetPaletteTypeArray,new JR(r,o))),ae(this,"paletteLabelArray",()=>(r.currentPosition=this.tableStart+this.offsetPaletteLabelArray,new QR(r,o))),ae(this,"paletteEntryLabelArray",()=>(r.currentPosition=this.tableStart+this.offsetPaletteEntryLabelArray,new $R(r,o))))}},KR=class{constructor(e){this.blue=e.uint8,this.green=e.uint8,this.red=e.uint8,this.alpha=e.uint8}},JR=class{constructor(e,t){this.paletteTypes=[...new Array(t)].map(r=>e.uint32)}},QR=class{constructor(e,t){this.paletteLabels=[...new Array(t)].map(r=>e.uint16)}},$R=class{constructor(e,t){this.paletteEntryLabels=[...new Array(t)].map(r=>e.uint16)}},eE=Object.freeze({__proto__:null,CPAL:XR}),tE=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint32,this.numSignatures=r.uint16,this.flags=r.uint16,this.signatureRecords=[...new Array(this.numSignatures)].map(o=>new rE(r))}getData(e){let t=this.signatureRecords[e];return this.parser.currentPosition=this.tableStart+t.offset,new oE(this.parser)}},rE=class{constructor(e){this.format=e.uint32,this.length=e.uint32,this.offset=e.Offset32}},oE=class{constructor(e){e.uint16,e.uint16,this.signatureLength=e.uint32,this.signature=e.readBytes(this.signatureLength)}},nE=Object.freeze({__proto__:null,DSIG:tE}),sE=class extends Pe{constructor(e,t,r){let{p:o}=super(e,t),n=r.hmtx.numGlyphs;this.version=o.uint16,this.numRecords=o.int16,this.sizeDeviceRecord=o.int32,this.records=[...new Array(numRecords)].map(s=>new iE(o,n))}},iE=class{constructor(e,t){this.pixelSize=e.uint8,this.maxWidth=e.uint8,this.widths=e.readBytes(t)}},aE=Object.freeze({__proto__:null,hdmx:sE}),lE=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.nTables=r.uint16,ae(this,"tables",()=>{let o=this.tableStart+4,n=[];for(let s=0;s<this.nTables;s++){r.currentPosition=o;let i=new cE(r);n.push(i),o+=i}return n})}},cE=class{constructor(e){this.version=e.uint16,this.length=e.uint16,this.coverage=e.flags(8),this.format=e.uint8,this.format===0&&(this.nPairs=e.uint16,this.searchRange=e.uint16,this.entrySelector=e.uint16,this.rangeShift=e.uint16,ae(this,"pairs",()=>[...new Array(this.nPairs)].map(t=>new uE(e)))),this.format===2&&console.warn("Kern subtable format 2 is not supported: this parser currently only parses universal table data.")}get horizontal(){return this.coverage[0]}get minimum(){return this.coverage[1]}get crossstream(){return this.coverage[2]}get override(){return this.coverage[3]}},uE=class{constructor(e){this.left=e.uint16,this.right=e.uint16,this.value=e.fword}},fE=Object.freeze({__proto__:null,kern:lE}),dE=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numGlyphs=r.uint16,this.yPels=r.readBytes(this.numGlyphs)}},pE=Object.freeze({__proto__:null,LTSH:dE}),mE=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.mergeClassCount=r.uint16,this.mergeDataOffset=r.Offset16,this.classDefCount=r.uint16,this.offsetToClassDefOffsets=r.Offset16,ae(this,"mergeEntryMatrix",()=>[...new Array(this.mergeClassCount)].map(o=>r.readBytes(this.mergeClassCount))),console.warn("Full MERG parsing is currently not supported."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}},hE=Object.freeze({__proto__:null,MERG:mE}),gE=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint32,this.flags=r.uint32,r.uint32,this.dataMapsCount=r.uint32,this.dataMaps=[...new Array(this.dataMapsCount)].map(o=>new yE(this.tableStart,r))}},yE=class{constructor(e,t){this.tableStart=e,this.parser=t,this.tag=t.tag,this.dataOffset=t.Offset32,this.dataLength=t.uint32}getData(){return this.parser.currentField=this.tableStart+this.dataOffset,this.parser.readBytes(this.dataLength)}},vE=Object.freeze({__proto__:null,meta:gE}),bE=class extends Pe{constructor(e,t){super(e,t),console.warn("This font uses a PCLT table, which is currently not supported by this parser."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}},wE=Object.freeze({__proto__:null,PCLT:bE}),xE=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.uint16,this.numRecs=r.uint16,this.numRatios=r.uint16,this.ratRanges=[...new Array(this.numRatios)].map(o=>new SE(r)),this.offsets=[...new Array(this.numRatios)].map(o=>r.Offset16),this.VDMXGroups=[...new Array(this.numRecs)].map(o=>new CE(r))}},SE=class{constructor(e){this.bCharSet=e.uint8,this.xRatio=e.uint8,this.yStartRatio=e.uint8,this.yEndRatio=e.uint8}},CE=class{constructor(e){this.recs=e.uint16,this.startsz=e.uint8,this.endsz=e.uint8,this.records=[...new Array(this.recs)].map(t=>new RE(e))}},RE=class{constructor(e){this.yPelHeight=e.uint16,this.yMax=e.int16,this.yMin=e.int16}},EE=Object.freeze({__proto__:null,VDMX:xE}),TE=class extends Pe{constructor(e,t){let{p:r}=super(e,t);this.version=r.fixed,this.ascent=this.vertTypoAscender=r.int16,this.descent=this.vertTypoDescender=r.int16,this.lineGap=this.vertTypoLineGap=r.int16,this.advanceHeightMax=r.int16,this.minTopSideBearing=r.int16,this.minBottomSideBearing=r.int16,this.yMaxExtent=r.int16,this.caretSlopeRise=r.int16,this.caretSlopeRun=r.int16,this.caretOffset=r.int16,this.reserved=r.int16,this.reserved=r.int16,this.reserved=r.int16,this.reserved=r.int16,this.metricDataFormat=r.int16,this.numOfLongVerMetrics=r.uint16,r.verifyLength()}},_E=Object.freeze({__proto__:null,vhea:TE}),PE=class extends Pe{constructor(e,t,r){super(e,t);let o=r.vhea.numOfLongVerMetrics,n=r.maxp.numGlyphs,s=p.currentPosition;if(lazy(this,"vMetrics",()=>(p.currentPosition=s,[...new Array(o)].map(i=>new OE(p.uint16,p.int16)))),o<n){let i=s+o*4;lazy(this,"topSideBearings",()=>(p.currentPosition=i,[...new Array(n-o)].map(a=>p.int16)))}}},OE=class{constructor(e,t){this.advanceHeight=e,this.topSideBearing=t}},kE=Object.freeze({__proto__:null,vmtx:PE});function hy(e){let t=e.reduce((r,o)=>(r[o.fontFamily]||(r[o.fontFamily]={name:o.fontFamily,fontFamily:o.fontFamily,slug:Hi(o.fontFamily.toLowerCase()),fontFace:[]}),r[o.fontFamily].fontFace.push(o),r),{});return Object.values(t)}var Jt=h(Y(),1);function FE(){let{installFonts:e}=(0,Ss.useContext)(Mt),[t,r]=(0,Ss.useState)(!1),[o,n]=(0,Ss.useState)(null),s=g=>{a(g)},i=g=>{a(g.target.files)},a=async g=>{if(!g)return;n(null),r(!0);let d=new Set,v=[...g],x=!1,C=v.map(async b=>{if(!await l(b))return x=!0,null;if(d.has(b.name))return null;let A=(((b.name??"").split(".")??[]).pop()??"").toLowerCase();return Uc.includes(A)?(d.add(b.name),b):null}),w=(await Promise.all(C)).filter(b=>b!==null);if(w.length>0)u(w);else{let b=x?(0,Dn.__)("Sorry, you are not allowed to upload this file type."):(0,Dn.__)("No fonts found to install.");n({type:"error",message:b}),r(!1)}},u=async g=>{let d=await Promise.all(g.map(async v=>{let x=await f(v);return await xo(x,x.file,"all"),x}));m(d)};async function l(g){let d=new ia("Uploaded Font");try{let v=await c(g);return await d.fromDataBuffer(v,"font"),!0}catch{return!1}}async function c(g){return new Promise((d,v)=>{let x=new window.FileReader;x.readAsArrayBuffer(g),x.onload=()=>d(x.result),x.onerror=v})}let f=async g=>{let d=await c(g),v=new ia("Uploaded Font");v.fromDataBuffer(d,g.name);let C=(await new Promise(N=>v.onload=N)).detail.font,{name:w}=C.opentype.tables,b=w.get(16)||w.get(1),R=w.get(2).toLowerCase().includes("italic"),A=C.opentype.tables["OS/2"].usWeightClass||"normal",_=!!C.opentype.tables.fvar&&C.opentype.tables.fvar.axes.find(({tag:N})=>N==="wght"),P=_?`${_.minValue} ${_.maxValue}`:null;return{file:g,fontFamily:b,fontStyle:R?"italic":"normal",fontWeight:P||A}},m=async g=>{let d=hy(g);try{await e(d),n({type:"success",message:(0,Dn.__)("Fonts were installed successfully.")})}catch(v){let x=v;n({type:"error",message:x.message,errors:x?.installationErrors})}r(!1)};return(0,Jt.jsxs)("div",{className:"font-library__tabpanel-layout",children:[(0,Jt.jsx)(Ft.DropZone,{onFilesDrop:s}),(0,Jt.jsxs)(Ft.__experimentalVStack,{className:"font-library__local-fonts",justify:"start",children:[o&&(0,Jt.jsxs)(Ft.Notice,{status:o.type,__unstableHTML:!0,onRemove:()=>n(null),children:[o.message,o.errors&&(0,Jt.jsx)("ul",{children:o.errors.map((g,d)=>(0,Jt.jsx)("li",{children:g},d))})]}),t&&(0,Jt.jsx)(Ft.FlexItem,{children:(0,Jt.jsx)("div",{className:"font-library__upload-area",children:(0,Jt.jsx)(Ft.ProgressBar,{})})}),!t&&(0,Jt.jsx)(Ft.FormFileUpload,{accept:Uc.map(g=>`.${g}`).join(","),multiple:!0,onChange:i,render:({openFileDialog:g})=>(0,Jt.jsx)(Ft.Button,{__next40pxDefaultSize:!0,className:"font-library__upload-area",onClick:g,children:(0,Dn.__)("Upload font")})}),(0,Jt.jsx)(Ft.__experimentalText,{className:"font-library__upload-area__text",children:(0,Dn.__)("Uploaded fonts appear in your library and can be used in your theme. Supported formats: .ttf, .otf, .woff, and .woff2.")})]})]})}var aa=FE;var yy=h(Y(),1),{Tabs:HV}=Be(Xc.privateApis),WV={id:"installed-fonts",title:(0,la._x)("Library","Font library")},GV={id:"upload-fonts",title:(0,la._x)("Upload","noun")};var vy=h(xe(),1),Kc=h(ce(),1),IE=h(ke(),1);var by=h(Y(),1);var Jc=h(Y(),1);var wy=h(xe(),1),ca=h(ce(),1);var xy=h(Y(),1);var $c=h(Y(),1);var mr=h(xe(),1),eu=h(ce(),1),zE=h(ke(),1);var Sy=h(Dt(),1);var BE=h(Y(),1),{useSettingsForBlockElement:xB,TypographyPanel:SB}=Be(Sy.privateApis);var jE=h(Y(),1);var tu=h(Y(),1),FB={text:{description:(0,mr.__)("Manage the fonts used on the site."),title:(0,mr.__)("Text")},link:{description:(0,mr.__)("Manage the fonts and typography used on the links."),title:(0,mr.__)("Links")},heading:{description:(0,mr.__)("Manage the fonts and typography used on headings."),title:(0,mr.__)("Headings")},caption:{description:(0,mr.__)("Manage the fonts and typography used on captions."),title:(0,mr.__)("Captions")},button:{description:(0,mr.__)("Manage the fonts and typography used on buttons."),title:(0,mr.__)("Buttons")}};var GE=h(xe(),1),YE=h(ce(),1),Ry=h(Dt(),1);var Mn=h(ce(),1),Cy=h(xe(),1);var WE=h(ke(),1);var UE=h(ce(),1),HE=h(Y(),1);var ru=h(Y(),1);var ou=h(Y(),1),{useSettingsForBlockElement:qB,ColorPanel:ZB}=Be(Ry.privateApis);var $E=h(xe(),1);var XE=h(No(),1),nu=h(ce(),1),KE=h(xe(),1);var fa=h(ce(),1);var ua=h(ce(),1);var Ey=h(Y(),1);function Ty(){let{paletteColors:e}=Tn();return e.slice(0,4).map(({slug:t,color:r},o)=>(0,Ey.jsx)("div",{style:{flexGrow:1,height:"100%",background:r}},`${t}-${o}`))}var Rs=h(Y(),1),qE={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},ZE=({label:e,isFocused:t,withHoverView:r})=>(0,Rs.jsx)(On,{label:e,isFocused:t,withHoverView:r,children:({key:o})=>(0,Rs.jsx)(ua.__unstableMotion.div,{variants:qE,style:{height:"100%",overflow:"hidden"},children:(0,Rs.jsx)(ua.__experimentalHStack,{spacing:0,justify:"center",style:{height:"100%",overflow:"hidden"},children:(0,Rs.jsx)(Ty,{})})},o)}),_y=ZE;var Xo=h(Y(),1),Py=["color"];function da({title:e,gap:t=2}){let r=Ni(Py);return r?.length<=1?null:(0,Xo.jsxs)(fa.__experimentalVStack,{spacing:3,children:[e&&(0,Xo.jsx)(ur,{level:3,children:e}),(0,Xo.jsx)(fa.__experimentalGrid,{gap:t,children:r.map((o,n)=>(0,Xo.jsx)(Fn,{variation:o,isPill:!0,properties:Py,showTooltip:!0,children:()=>(0,Xo.jsx)(_y,{})},n))})]})}var Oy=h(Y(),1);var JE=h(No(),1),pa=h(ce(),1),QE=h(xe(),1);var ky=h(Y(),1);var su=h(Y(),1);var t2=h(xe(),1),Ay=h(Dt(),1),r2=h(ce(),1);var Fy=h(Dt(),1);var e2=h(Y(),1);var{BackgroundPanel:xj}=Be(Fy.privateApis);var iu=h(Y(),1),{useHasBackgroundPanel:Pj}=Be(Ay.privateApis);var Ly=h(xe(),1);var Es=h(ce(),1),i2=h(xe(),1);var a2=h(ke(),1);var o2=h(ce(),1),n2=h(xe(),1),s2=h(Y(),1);var Iy=h(Y(),1),{Menu:Dj}=Be(Es.privateApis);var lu=h(Y(),1);var hr=h(ce(),1),My=h(xe(),1);var ma=h(ke(),1);var Ts=h(ce(),1);var Ny=h(Y(),1),{Menu:Kj}=Be(Ts.privateApis);var u2=h(ce(),1),f2=h(xe(),1),d2=h(Y(),1);var cu=h(ce(),1),p2=h(xe(),1),m2=h(ke(),1);var Dy=h(Y(),1);var uu=h(Y(),1);var v2=h(Y(),1);var x2=h(xe(),1),By=h(Dt(),1);var Vy=h(Dt(),1),b2=h(ke(),1);var w2=h(Y(),1),{useSettingsForBlockElement:xz,DimensionsPanel:Sz}=Be(Vy.privateApis);var fu=h(Y(),1),{useHasDimensionsPanel:Oz,useSettingsForBlockElement:kz}=Be(By.privateApis);var Gy=h(ce(),1),E2=h(xe(),1);var C2=h(xe(),1),R2=h(ce(),1);var jy=h(nr(),1),zy=h(Xt(),1),ga=h(ke(),1),Uy=h(ce(),1),Hy=h(xe(),1);var ha=h(Y(),1);function S2({gap:e=2}){let{user:t}=(0,ga.useContext)(Tt),r=t?.styles,n=(0,zy.useSelect)(i=>{let a=i(jy.store).__experimentalGetCurrentThemeGlobalStylesVariations();return Array.isArray(a)?a:void 0},[])?.filter(i=>!hs(i,["color"])&&!hs(i,["typography","spacing"])),s=(0,ga.useMemo)(()=>[...[{title:(0,Hy.__)("Default"),settings:{},styles:{}},...n??[]].map(a=>{let u=a?.styles?.blocks?{...a.styles.blocks}:{};r?.blocks&&Object.keys(r.blocks).forEach(m=>{if(r.blocks?.[m]?.css){let g=u[m]||{},d={css:`${u[m]?.css||""} ${r.blocks?.[m]?.css?.trim()||""}`};u[m]={...g,...d}}});let l=r?.css||a.styles?.css?{css:`${a.styles?.css||""} ${r?.css||""}`}:{},c=Object.keys(u).length>0?{blocks:u}:{},f={...a.styles,...l,...c};return{...a,settings:a.settings??{},styles:f}})],[n,r?.blocks,r?.css]);return!n||n.length<1?null:(0,ha.jsx)(Uy.__experimentalGrid,{columns:2,className:"global-styles-ui-style-variations-container",gap:e,children:s.map((i,a)=>(0,ha.jsx)(Fn,{variation:i,children:u=>(0,ha.jsx)(Ic,{label:i?.title,withHoverView:!0,isFocused:u,variation:i})},a))})}var du=S2;var Wy=h(Y(),1);var pu=h(Y(),1);var T2=h(xe(),1),_2=h(ce(),1),Yy=h(Dt(),1);var mu=h(Y(),1),{AdvancedPanel:Zz}=Be(Yy.privateApis);var ev=h(xe(),1),gu=h(ce(),1),yu=h(ke(),1);var P2=h(Xt(),1),O2=h(nr(),1),qy=h(ke(),1);var Ky=h(xe(),1),ya=h(ce(),1),va=h(Xy(),1),k2=h(nr(),1),F2=h(Xt(),1);var Jy=h(jc(),1);var Qy=h(Y(),1),{Badge:e7}=Be(ya.privateApis),t7=3600*1e3*24;var hu=h(ce(),1),_s=h(xe(),1);var $y=h(Y(),1);var vu=h(Y(),1);var tv=h(xe(),1),rv=h(ce(),1);var ov=h(Y(),1);var sv=h(xe(),1),Ps=h(ce(),1),iv=h(ke(),1);var I2=h(Dt(),1),L2=h(xe(),1);var N2=h(Y(),1);var to=h(ce(),1),nv=h(Y(),1);var bu=h(Y(),1);var xu=h(Y(),1);var Su=h(Y(),1);function Vn(e){return function({value:r,baseValue:o,onChange:n,...s}){return(0,Su.jsx)(ms,{value:r,baseValue:o,onChange:n,children:(0,Su.jsx)(e,{...s})})}}var B2=Vn(du);var j2=Vn(da);var z2=Vn(Ui);var Bn=h(Y(),1);function Cu({value:e,baseValue:t,onChange:r,activeTab:o="installed-fonts"}){let n;switch(o){case"upload-fonts":n=(0,Bn.jsx)(aa,{});break;case"installed-fonts":n=(0,Bn.jsx)(Qi,{});break;default:n=(0,Bn.jsx)(ea,{slug:o})}return(0,Bn.jsx)(ms,{value:e,baseValue:t,onChange:r,children:(0,Bn.jsx)(Yi,{children:n})})}var cv=h(as()),{unlock:Ru}=(0,cv.__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/font-list-route");if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='9553e553cd']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","9553e553cd"),e.appendChild(document.createTextNode('@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:90px;padding:0}.font-library-modal .font-library__subtitle{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.font-library-modal__tab-panel{height:calc(100% - 50px)}.font-library__tabpanel-layout{display:flex;flex-direction:column;height:100%}.font-library__tabpanel-layout>div{flex-grow:1}.font-library__tabpanel-layout .font-library__loading{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;left:0;padding-top:124px;position:absolute;top:0;width:100%}.font-library__footer,.font-library__tabpanel-layout .components-navigator-screen{padding:24px;width:100%}.font-library__footer{background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;flex-grow:0!important;flex-shrink:0;height:90px;position:absolute}.font-library__page-selection{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.font-library__page-selection .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.font-library__search{width:240px}.font-library__fonts-title{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library__fonts-list{list-style:none;margin-bottom:0;margin-top:0;padding:0}.font-library__fonts-list-item{margin-bottom:0}.font-library__font-card{border:1px solid #ddd;box-sizing:border-box;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library__font-card:hover{background-color:#f0f0f0}.font-library__font-card:focus{position:relative}.font-library__font-card .font-library__font-card__name{font-weight:700}.font-library__font-card .font-library__font-card__count{color:#757575}.font-library__font-card .font-library__font-variant_demo-image{display:block;height:24px;width:auto}.font-library__font-card .font-library__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library__font-card .font-library__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:1}.font-library__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library__upload-area{background-color:#f0f0f0}.font-library__local-fonts{margin:24px auto;width:80%}.font-library__local-fonts .font-library__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library__select-all{padding:16px 16px 16px 17px}.font-library__select-all .components-checkbox-control__label{padding-left:16px}.global-styles-ui-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.global-styles-ui-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.global-styles-ui-screen-revisions__revisions-list li{margin-bottom:0}.global-styles-ui-screen-revisions__revision-item{cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;position:relative}.global-styles-ui-screen-revisions__revision-item[role=option]:active,.global-styles-ui-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.global-styles-ui-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item:after,.global-styles-ui-screen-revisions__revision-item:before{content:"\\a";display:block;position:absolute}.global-styles-ui-screen-revisions__revision-item:before{background:#ddd;border:4px solid transparent;border-radius:50%;height:8px;left:17px;top:18px;transform:translate(-50%,-50%);width:8px;z-index:1}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid transparent;outline-offset:-2px}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes>li,.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta{color:#1e1e1e}.global-styles-ui-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;left:16px;top:0;width:0}.global-styles-ui-screen-revisions__revision-item:first-child:after{top:18px}.global-styles-ui-screen-revisions__revision-item:last-child:after{height:18px}.global-styles-ui-screen-revisions__revision-item-wrapper{display:block;padding:12px 12px 4px 40px}.global-styles-ui-screen-revisions__active-badge,.global-styles-ui-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:0 12px 12px 40px}.global-styles-ui-screen-revisions__changes,.global-styles-ui-screen-revisions__meta{color:#757575;font-size:12px}.global-styles-ui-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date{font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.global-styles-ui-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:left;width:100%}.global-styles-ui-screen-revisions__meta img{border-radius:100%;height:16px;margin-right:8px;width:16px}.global-styles-ui-screen-revisions__loading{margin:24px auto!important}.global-styles-ui-screen-revisions__changes{line-height:1.4;list-style:disc;margin-left:12px;text-align:left}.global-styles-ui-screen-revisions__changes li{margin-bottom:4px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination{gap:2px;justify-content:space-between}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total{height:1px;left:-1000px;margin:-1px;overflow:hidden;position:absolute}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled,.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.global-styles-ui-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.global-styles-ui-variations_item{box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{border-radius:2px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{transition:outline .1s linear}}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill{height:32px}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:rgba(0,0,0,.3)}.global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview,.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.global-styles-ui-preview__wrapper{display:block;max-width:100%;width:100%}.global-styles-ui-preview__wrapper.is-hoverable{cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:20px;min-height:100px;overflow:hidden}.global-styles-ui-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-styles-ui-font-size__item-value{color:#757575}.global-styles-ui-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.global-styles-ui-block-types-search{margin-bottom:10px;padding:0 16px}.global-styles-ui-screen-typography__font-variants-count{color:#757575}.global-styles-ui-font-families__manage-fonts{justify-content:center}.global-styles-ui-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.global-styles-ui-header{line-height:1.9!important;margin-bottom:0!important}.global-styles-ui-subtitle{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)!important;margin-bottom:0!important;text-transform:uppercase}.global-styles-ui-section-title{color:#2f2f2f;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.2;margin:0;padding:16px 16px 0}.global-styles-ui-icon-with-current-color{fill:currentColor}.global-styles-ui__color-indicator-wrapper{flex-shrink:0;height:24px}.global-styles-ui__shadows-panel__options-container,.global-styles-ui__typography-panel__options-container{height:24px}.global-styles-ui__block-preview-panel{border:1px solid #ddd;border-radius:2px;overflow:hidden;position:relative;width:100%}.global-styles-ui__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #ddd;border-radius:2px;height:144px;overflow:auto}.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block{background-color:#fff;border:1px solid #ddd;border-radius:2px;height:60px;width:60%}.global-styles-ui__shadow-editor__dropdown-content{width:280px}.global-styles-ui__shadow-editor-panel{margin-bottom:4px}.global-styles-ui__shadow-editor__dropdown{position:relative;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:left;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.global-styles-ui__shadow-editor__remove-button{opacity:0;position:absolute;right:8px;top:8px}.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button{border:none}.global-styles-ui__shadow-editor__dropdown-toggle:hover+.global-styles-ui__shadow-editor__remove-button,.global-styles-ui__shadow-editor__remove-button:focus,.global-styles-ui__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.global-styles-ui__shadow-editor__remove-button{opacity:1}}.global-styles-ui-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel{flex:1 1 auto}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input,.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea{flex:1 1 auto}.global-styles-ui-screen-css-help-link{display:inline-block;margin-top:8px}.global-styles-ui-screen-variations{border-top:1px solid #ddd;margin-top:16px}.global-styles-ui-screen-variations>*{margin:24px 16px}.global-styles-ui-sidebar__navigator-provider{height:100%}.global-styles-ui-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.global-styles-ui-color-palette__tablist-container{border-bottom:1px solid #ddd}.global-styles-ui-color-palette__tablist{margin-bottom:-1px}.global-styles-ui-sidebar__navigator-screen .single-column{grid-column:span 1}.global-styles-ui-screen-root.global-styles-ui-screen-root,.global-styles-ui-screen-style-variations.global-styles-ui-screen-style-variations{background:unset;color:inherit}.global-styles-ui-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile,.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile .global-styles-ui-screen-root__active-style-tile-preview{border-radius:2px}.global-styles-ui-screen-root__active-style-tile-preview{clip-path:border-box}.global-styles-ui-color-palette-panel,.global-styles-ui-gradient-palette-panel{padding:16px}.font-library-page__tablist{border-bottom:1px solid #f0f0f0;padding:0 24px}.font-library-page__tab-panel{flex-grow:1;max-height:calc(100% - 110px);overflow:auto}.font-library-page:has(.font-library__footer) .font-library-page__tab-panel{max-height:calc(100% - 198px)}')),document.head.appendChild(e)}var{Tabs:ba}=Ru(uv.privateApis),{useGlobalStyles:U2}=Ru(fv.privateApis);function H2(){let{records:e=[]}=(0,wa.useEntityRecords)("root","fontCollection",{_fields:"slug,name,description"}),[t,r]=(0,pv.useState)("installed-fonts"),{base:o,user:n,setUser:s,isReady:i}=U2(),a=(0,dv.useSelect)(l=>l(wa.store).canUser("create",{kind:"postType",name:"wp_font_family"}),[]);if(!i)return null;let u=[{id:"installed-fonts",title:(0,jn._x)("Library","Font library")}];return a&&(u.push({id:"upload-fonts",title:(0,jn._x)("Upload","noun")}),u.push(...(e||[]).map(({slug:l,name:c})=>({id:l,title:e&&e.length===1&&l==="google-fonts"?(0,jn.__)("Install Fonts"):c})))),React.createElement(ic,{title:(0,jn.__)("Fonts"),className:"font-library-page"},React.createElement(ba,{selectedTabId:t,onSelect:l=>r(l)},React.createElement("div",{className:"font-library-page__tablist"},React.createElement(ba.TabList,null,u.map(({id:l,title:c})=>React.createElement(ba.Tab,{key:l,tabId:l},c)))),u.map(({id:l})=>React.createElement(ba.TabPanel,{key:l,tabId:l,focusable:!1,className:"font-library-page__tab-panel"},React.createElement(Cu,{value:n,baseValue:o,onChange:s,activeTab:l})))))}function W2(){return React.createElement(H2,null)}var G2=W2;export{G2 as stage};
/*! Bundled license information:
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
diff --git a/wp-includes/css/dist/block-editor/content-rtl.css b/wp-includes/css/dist/block-editor/content-rtl.css
index 7b02888646..d110f40307 100644
--- a/wp-includes/css/dist/block-editor/content-rtl.css
+++ b/wp-includes/css/dist/block-editor/content-rtl.css
@@ -774,14 +774,14 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content {
display: none;
}
-.block-editor-block-list__block .block-list-appender:only-child {
+.block-editor-block-list__block .block-list-appender:first-child {
position: relative;
left: auto;
align-self: center;
list-style: none;
line-height: inherit;
}
-.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content {
+.block-editor-block-list__block .block-list-appender:first-child .block-editor-default-block-appender__content {
display: block;
}
diff --git a/wp-includes/css/dist/block-editor/content-rtl.min.css b/wp-includes/css/dist/block-editor/content-rtl.min.css
index 42afbbbbac..34831716ff 100644
--- a/wp-includes/css/dist/block-editor/content-rtl.min.css
+++ b/wp-includes/css/dist/block-editor/content-rtl.min.css
@@ -1 +1 @@
-:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}:root .block-editor-block-list__layout::selection,:root [data-has-multi-selection=true] .block-editor-block-list__layout::selection,_::-webkit-full-page-media,_:future{background-color:transparent}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::-moz-selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::-moz-selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{background:var(--wp-admin-theme-color);bottom:0;content:"";left:0;opacity:.4;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media not (prefers-reduced-motion){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{outline-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1}.block-editor-block-list__layout .block-editor-block-list__block.is-block-hidden{border:none!important;height:0;margin-bottom:0!important;margin-top:0!important;opacity:0;overflow:hidden;padding:0!important;visibility:hidden}.block-editor-block-list__layout.is-layout-flex:not(.is-vertical)>.is-block-hidden{align-self:stretch;height:auto;margin-left:0!important;margin-right:0!important;white-space:nowrap!important;width:0}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;-moz-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none}.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected{z-index:20}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block:not([data-draggable=true]),.block-editor-block-list__layout .block-editor-block-list__block:not([draggable=true]){cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-draggable=true],.block-editor-block-list__layout .block-editor-block-list__block[draggable=true]{cursor:grab}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block [contenteditable],.block-editor-block-list__layout .block-editor-block-list__block[contenteditable]{cursor:text}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected):after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}@keyframes block-editor-is-editable__animation{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}@keyframes block-editor-is-editable__animation_reduce-motion{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}99%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}.is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:.1s;animation-duration:.8s;animation-fill-mode:backwards;animation-name:block-editor-is-editable__animation;animation-timing-function:ease-out;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}@media (prefers-reduced-motion:reduce){.is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:0s;animation-name:block-editor-is-editable__animation_reduce-motion}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2}@media not (prefers-reduced-motion){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition:opacity .1s linear}}.is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:9}.wp-site-blocks>[data-align=left]{float:right;margin-left:2em}.wp-site-blocks>[data-align=right]{float:left;margin-right:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;direction:ltr;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;width:100%}@media not (prefers-reduced-motion){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition:padding .2s linear}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__zoom-out-separator{background:#ddd;margin-left:-1px;margin-right:-1px}@media not (prefers-reduced-motion){.block-editor-block-list__zoom-out-separator{transition:background-color .3s ease}}.block-editor-block-list__zoom-out-separator{align-items:center;color:#000;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;justify-content:center;overflow:hidden}.is-zoomed-out .block-editor-block-list__zoom-out-separator{font-size:calc(13px/var(--wp-block-editor-iframe-zoom-out-scale))}.block-editor-block-list__zoom-out-separator.is-dragged-over{background:#ccc}.block-editor-block-list__layout.is-root-container.has-global-padding>.block-editor-block-list__zoom-out-separator,.has-global-padding>.block-editor-block-list__zoom-out-separator{margin:0 calc(var(--wp--style--root--padding-left)*-1 - 1px) 0 calc(var(--wp--style--root--padding-right)*-1 - 1px)!important;max-width:none}.is-dragging{cursor:grabbing}.is-preview-mode{pointer-events:none}.is-preview-mode .block-editor-block-list__block{pointer-events:auto}.is-preview-mode .block-editor-block-list__block>:not(.block-editor-block-list__block){pointer-events:none}.is-vertical .block-list-appender{margin-left:auto;margin-right:12px;margin-top:12px;width:24px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay:before{left:0;right:0;width:auto}.block-editor-block-list__layout .is-dragging{opacity:.1}.block-editor-block-list__layout .is-dragging iframe{pointer-events:none}.block-editor-block-list__layout .is-dragging::-moz-selection{background:transparent!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.wp-block img:not([draggable]),.wp-block svg:not([draggable]){pointer-events:none}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.block-editor-block-variation-picker__skip,.block-editor-block-variation-picker__variations,.wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:8px;justify-content:flex-start;list-style:none;margin:0;padding:0;width:100%}.block-editor-block-variation-picker__skip svg,.block-editor-block-variation-picker__variations svg,.wp-block-group-placeholder__variations svg{fill:#949494!important}.block-editor-block-variation-picker__skip .components-button,.block-editor-block-variation-picker__variations .components-button,.wp-block-group-placeholder__variations .components-button{padding:4px}.block-editor-block-variation-picker__skip .components-button:hover,.block-editor-block-variation-picker__variations .components-button:hover,.wp-block-group-placeholder__variations .components-button:hover{background:none!important}.block-editor-block-variation-picker__skip .components-button:hover svg,.block-editor-block-variation-picker__variations .components-button:hover svg,.wp-block-group-placeholder__variations .components-button:hover svg{fill:var(--wp-admin-theme-color)!important}.block-editor-block-variation-picker__skip>li,.block-editor-block-variation-picker__variations>li,.wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;gap:4px;width:auto}.block-editor-button-block-appender{align-items:center;border-color:currentColor;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.is-dark-theme .block-editor-button-block-appender{color:hsla(0,0%,100%,.65)}.block-editor-button-block-appender:hover{color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender),.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender),.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender),.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender){pointer-events:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender):after{border:1px dashed;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter{opacity:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within{opacity:1}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after{border:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter{visibility:visible}.block-editor-block-list__block:not(.is-selected)>.block-editor-block-list__block>.block-list-appender:only-child:has(.block-editor-button-block-appender):after{border:none}.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65)}@media not (prefers-reduced-motion){.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender{transition:background-color .2s ease-in-out}}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{margin-block-end:0;margin-block-start:0;opacity:.62;text-shadow:none}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg{transform:rotate(-45deg)}.block-editor-default-block-appender .block-editor-inserter{left:0;line-height:0;position:absolute;top:0}.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;left:0;list-style:none;padding:0;position:absolute;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon svg,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle.is-pressed svg{transform:rotate(-45deg)}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{box-shadow:none;display:none;flex-direction:row;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;left:auto;line-height:inherit;list-style:none;position:relative}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-iframe__body{position:relative}.block-editor-iframe__html{transform-origin:top center}@media not (prefers-reduced-motion){.block-editor-iframe__html{transition:background-color .4s}}.block-editor-iframe__html.zoom-out-animation{bottom:0;left:0;overflow-y:var(--wp-block-editor-iframe-zoom-out-overflow-behavior,scroll);position:fixed;right:0;top:calc(var(--wp-block-editor-iframe-zoom-out-scroll-top, 0px)*-1)}.block-editor-iframe__html.is-zoomed-out{background-color:var(--wp-editor-canvas-background);margin-bottom:calc(var(--wp-block-editor-iframe-zoom-out-content-height)*(1 - var(--wp-block-editor-iframe-zoom-out-scale, 1))*-1 + var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1)*-1 + -2px);padding-bottom:calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1));padding-top:calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1));scale:var(--wp-block-editor-iframe-zoom-out-scale,1);transform:translateX(calc(((var(--wp-block-editor-iframe-zoom-out-scale-container-width) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))/2/var(--wp-block-editor-iframe-zoom-out-scale, 1))*-1))}.block-editor-iframe__html.is-zoomed-out body{min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - 2*var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1))/var(--wp-block-editor-iframe-zoom-out-scale, 1))}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content){display:flex;flex:1;flex-direction:column;height:100%}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content)>main{flex:1}.block-editor-iframe__html.is-zoomed-out .wp-block[draggable]{cursor:grab}.block-editor-media-placeholder__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:var(--wpds-cursor-control,pointer)}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62;text-shadow:none}.rich-text:focus{outline:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}[data-rich-text-comment],[data-rich-text-format-boundary]{border-radius:2px}[data-rich-text-comment]{background-color:currentColor}[data-rich-text-comment] span{color:currentColor;filter:invert(100%);padding:0 2px}.rich-text [contenteditable=false]::-moz-selection{background-color:transparent}.rich-text [contenteditable=false]::selection{background-color:transparent}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;gap:8px}.components-popover.block-editor-warning__dropdown{z-index:99998}
\ No newline at end of file
+:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}:root .block-editor-block-list__layout::selection,:root [data-has-multi-selection=true] .block-editor-block-list__layout::selection,_::-webkit-full-page-media,_:future{background-color:transparent}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::-moz-selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::-moz-selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{background:var(--wp-admin-theme-color);bottom:0;content:"";left:0;opacity:.4;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media not (prefers-reduced-motion){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{outline-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1}.block-editor-block-list__layout .block-editor-block-list__block.is-block-hidden{border:none!important;height:0;margin-bottom:0!important;margin-top:0!important;opacity:0;overflow:hidden;padding:0!important;visibility:hidden}.block-editor-block-list__layout.is-layout-flex:not(.is-vertical)>.is-block-hidden{align-self:stretch;height:auto;margin-left:0!important;margin-right:0!important;white-space:nowrap!important;width:0}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;-moz-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none}.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected{z-index:20}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block:not([data-draggable=true]),.block-editor-block-list__layout .block-editor-block-list__block:not([draggable=true]){cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-draggable=true],.block-editor-block-list__layout .block-editor-block-list__block[draggable=true]{cursor:grab}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block [contenteditable],.block-editor-block-list__layout .block-editor-block-list__block[contenteditable]{cursor:text}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected):after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}@keyframes block-editor-is-editable__animation{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}@keyframes block-editor-is-editable__animation_reduce-motion{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}99%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}.is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:.1s;animation-duration:.8s;animation-fill-mode:backwards;animation-name:block-editor-is-editable__animation;animation-timing-function:ease-out;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}@media (prefers-reduced-motion:reduce){.is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:0s;animation-name:block-editor-is-editable__animation_reduce-motion}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2}@media not (prefers-reduced-motion){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition:opacity .1s linear}}.is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:9}.wp-site-blocks>[data-align=left]{float:right;margin-left:2em}.wp-site-blocks>[data-align=right]{float:left;margin-right:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;direction:ltr;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;width:100%}@media not (prefers-reduced-motion){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition:padding .2s linear}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__zoom-out-separator{background:#ddd;margin-left:-1px;margin-right:-1px}@media not (prefers-reduced-motion){.block-editor-block-list__zoom-out-separator{transition:background-color .3s ease}}.block-editor-block-list__zoom-out-separator{align-items:center;color:#000;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;justify-content:center;overflow:hidden}.is-zoomed-out .block-editor-block-list__zoom-out-separator{font-size:calc(13px/var(--wp-block-editor-iframe-zoom-out-scale))}.block-editor-block-list__zoom-out-separator.is-dragged-over{background:#ccc}.block-editor-block-list__layout.is-root-container.has-global-padding>.block-editor-block-list__zoom-out-separator,.has-global-padding>.block-editor-block-list__zoom-out-separator{margin:0 calc(var(--wp--style--root--padding-left)*-1 - 1px) 0 calc(var(--wp--style--root--padding-right)*-1 - 1px)!important;max-width:none}.is-dragging{cursor:grabbing}.is-preview-mode{pointer-events:none}.is-preview-mode .block-editor-block-list__block{pointer-events:auto}.is-preview-mode .block-editor-block-list__block>:not(.block-editor-block-list__block){pointer-events:none}.is-vertical .block-list-appender{margin-left:auto;margin-right:12px;margin-top:12px;width:24px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay:before{left:0;right:0;width:auto}.block-editor-block-list__layout .is-dragging{opacity:.1}.block-editor-block-list__layout .is-dragging iframe{pointer-events:none}.block-editor-block-list__layout .is-dragging::-moz-selection{background:transparent!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.wp-block img:not([draggable]),.wp-block svg:not([draggable]){pointer-events:none}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.block-editor-block-variation-picker__skip,.block-editor-block-variation-picker__variations,.wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:8px;justify-content:flex-start;list-style:none;margin:0;padding:0;width:100%}.block-editor-block-variation-picker__skip svg,.block-editor-block-variation-picker__variations svg,.wp-block-group-placeholder__variations svg{fill:#949494!important}.block-editor-block-variation-picker__skip .components-button,.block-editor-block-variation-picker__variations .components-button,.wp-block-group-placeholder__variations .components-button{padding:4px}.block-editor-block-variation-picker__skip .components-button:hover,.block-editor-block-variation-picker__variations .components-button:hover,.wp-block-group-placeholder__variations .components-button:hover{background:none!important}.block-editor-block-variation-picker__skip .components-button:hover svg,.block-editor-block-variation-picker__variations .components-button:hover svg,.wp-block-group-placeholder__variations .components-button:hover svg{fill:var(--wp-admin-theme-color)!important}.block-editor-block-variation-picker__skip>li,.block-editor-block-variation-picker__variations>li,.wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;gap:4px;width:auto}.block-editor-button-block-appender{align-items:center;border-color:currentColor;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.is-dark-theme .block-editor-button-block-appender{color:hsla(0,0%,100%,.65)}.block-editor-button-block-appender:hover{color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender),.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender),.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender),.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender){pointer-events:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender):after{border:1px dashed;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter{opacity:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within{opacity:1}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after{border:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter{visibility:visible}.block-editor-block-list__block:not(.is-selected)>.block-editor-block-list__block>.block-list-appender:only-child:has(.block-editor-button-block-appender):after{border:none}.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65)}@media not (prefers-reduced-motion){.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender{transition:background-color .2s ease-in-out}}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{margin-block-end:0;margin-block-start:0;opacity:.62;text-shadow:none}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg{transform:rotate(-45deg)}.block-editor-default-block-appender .block-editor-inserter{left:0;line-height:0;position:absolute;top:0}.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;left:0;list-style:none;padding:0;position:absolute;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon svg,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle.is-pressed svg{transform:rotate(-45deg)}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{box-shadow:none;display:none;flex-direction:row;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:first-child{align-self:center;left:auto;line-height:inherit;list-style:none;position:relative}.block-editor-block-list__block .block-list-appender:first-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-iframe__body{position:relative}.block-editor-iframe__html{transform-origin:top center}@media not (prefers-reduced-motion){.block-editor-iframe__html{transition:background-color .4s}}.block-editor-iframe__html.zoom-out-animation{bottom:0;left:0;overflow-y:var(--wp-block-editor-iframe-zoom-out-overflow-behavior,scroll);position:fixed;right:0;top:calc(var(--wp-block-editor-iframe-zoom-out-scroll-top, 0px)*-1)}.block-editor-iframe__html.is-zoomed-out{background-color:var(--wp-editor-canvas-background);margin-bottom:calc(var(--wp-block-editor-iframe-zoom-out-content-height)*(1 - var(--wp-block-editor-iframe-zoom-out-scale, 1))*-1 + var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1)*-1 + -2px);padding-bottom:calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1));padding-top:calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1));scale:var(--wp-block-editor-iframe-zoom-out-scale,1);transform:translateX(calc(((var(--wp-block-editor-iframe-zoom-out-scale-container-width) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))/2/var(--wp-block-editor-iframe-zoom-out-scale, 1))*-1))}.block-editor-iframe__html.is-zoomed-out body{min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - 2*var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1))/var(--wp-block-editor-iframe-zoom-out-scale, 1))}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content){display:flex;flex:1;flex-direction:column;height:100%}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content)>main{flex:1}.block-editor-iframe__html.is-zoomed-out .wp-block[draggable]{cursor:grab}.block-editor-media-placeholder__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:var(--wpds-cursor-control,pointer)}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62;text-shadow:none}.rich-text:focus{outline:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}[data-rich-text-comment],[data-rich-text-format-boundary]{border-radius:2px}[data-rich-text-comment]{background-color:currentColor}[data-rich-text-comment] span{color:currentColor;filter:invert(100%);padding:0 2px}.rich-text [contenteditable=false]::-moz-selection{background-color:transparent}.rich-text [contenteditable=false]::selection{background-color:transparent}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;gap:8px}.components-popover.block-editor-warning__dropdown{z-index:99998}
\ No newline at end of file
diff --git a/wp-includes/css/dist/block-editor/content.css b/wp-includes/css/dist/block-editor/content.css
index 84790f7675..a824683ae7 100644
--- a/wp-includes/css/dist/block-editor/content.css
+++ b/wp-includes/css/dist/block-editor/content.css
@@ -775,14 +775,14 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .blo
.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content {
display: none;
}
-.block-editor-block-list__block .block-list-appender:only-child {
+.block-editor-block-list__block .block-list-appender:first-child {
position: relative;
right: auto;
align-self: center;
list-style: none;
line-height: inherit;
}
-.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content {
+.block-editor-block-list__block .block-list-appender:first-child .block-editor-default-block-appender__content {
display: block;
}
diff --git a/wp-includes/css/dist/block-editor/content.min.css b/wp-includes/css/dist/block-editor/content.min.css
index d42c04d642..796f7bd463 100644
--- a/wp-includes/css/dist/block-editor/content.min.css
+++ b/wp-includes/css/dist/block-editor/content.min.css
@@ -1 +1 @@
-:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}:root .block-editor-block-list__layout::selection,:root [data-has-multi-selection=true] .block-editor-block-list__layout::selection,_::-webkit-full-page-media,_:future{background-color:transparent}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::-moz-selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::-moz-selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{background:var(--wp-admin-theme-color);bottom:0;content:"";left:0;opacity:.4;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media not (prefers-reduced-motion){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{outline-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1}.block-editor-block-list__layout .block-editor-block-list__block.is-block-hidden{border:none!important;height:0;margin-bottom:0!important;margin-top:0!important;opacity:0;overflow:hidden;padding:0!important;visibility:hidden}.block-editor-block-list__layout.is-layout-flex:not(.is-vertical)>.is-block-hidden{align-self:stretch;height:auto;margin-left:0!important;margin-right:0!important;white-space:nowrap!important;width:0}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;-moz-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none}.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected{z-index:20}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block:not([data-draggable=true]),.block-editor-block-list__layout .block-editor-block-list__block:not([draggable=true]){cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-draggable=true],.block-editor-block-list__layout .block-editor-block-list__block[draggable=true]{cursor:grab}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block [contenteditable],.block-editor-block-list__layout .block-editor-block-list__block[contenteditable]{cursor:text}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected):after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}@keyframes block-editor-is-editable__animation{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}@keyframes block-editor-is-editable__animation_reduce-motion{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}99%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}.is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:.1s;animation-duration:.8s;animation-fill-mode:backwards;animation-name:block-editor-is-editable__animation;animation-timing-function:ease-out;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}@media (prefers-reduced-motion:reduce){.is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:0s;animation-name:block-editor-is-editable__animation_reduce-motion}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2}@media not (prefers-reduced-motion){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition:opacity .1s linear}}.is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:9}.wp-site-blocks>[data-align=left]{float:left;margin-right:2em}.wp-site-blocks>[data-align=right]{float:right;margin-left:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;direction:ltr;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;width:100%}@media not (prefers-reduced-motion){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition:padding .2s linear}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__zoom-out-separator{background:#ddd;margin-left:-1px;margin-right:-1px}@media not (prefers-reduced-motion){.block-editor-block-list__zoom-out-separator{transition:background-color .3s ease}}.block-editor-block-list__zoom-out-separator{align-items:center;color:#000;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;justify-content:center;overflow:hidden}.is-zoomed-out .block-editor-block-list__zoom-out-separator{font-size:calc(13px/var(--wp-block-editor-iframe-zoom-out-scale))}.block-editor-block-list__zoom-out-separator.is-dragged-over{background:#ccc}.block-editor-block-list__layout.is-root-container.has-global-padding>.block-editor-block-list__zoom-out-separator,.has-global-padding>.block-editor-block-list__zoom-out-separator{margin:0 calc(var(--wp--style--root--padding-right)*-1 - 1px) 0 calc(var(--wp--style--root--padding-left)*-1 - 1px)!important;max-width:none}.is-dragging{cursor:grabbing}.is-preview-mode{pointer-events:none}.is-preview-mode .block-editor-block-list__block{pointer-events:auto}.is-preview-mode .block-editor-block-list__block>:not(.block-editor-block-list__block){pointer-events:none}.is-vertical .block-list-appender{margin-left:12px;margin-right:auto;margin-top:12px;width:24px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay:before{left:0;right:0;width:auto}.block-editor-block-list__layout .is-dragging{opacity:.1}.block-editor-block-list__layout .is-dragging iframe{pointer-events:none}.block-editor-block-list__layout .is-dragging::-moz-selection{background:transparent!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.wp-block img:not([draggable]),.wp-block svg:not([draggable]){pointer-events:none}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.block-editor-block-variation-picker__skip,.block-editor-block-variation-picker__variations,.wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:8px;justify-content:flex-start;list-style:none;margin:0;padding:0;width:100%}.block-editor-block-variation-picker__skip svg,.block-editor-block-variation-picker__variations svg,.wp-block-group-placeholder__variations svg{fill:#949494!important}.block-editor-block-variation-picker__skip .components-button,.block-editor-block-variation-picker__variations .components-button,.wp-block-group-placeholder__variations .components-button{padding:4px}.block-editor-block-variation-picker__skip .components-button:hover,.block-editor-block-variation-picker__variations .components-button:hover,.wp-block-group-placeholder__variations .components-button:hover{background:none!important}.block-editor-block-variation-picker__skip .components-button:hover svg,.block-editor-block-variation-picker__variations .components-button:hover svg,.wp-block-group-placeholder__variations .components-button:hover svg{fill:var(--wp-admin-theme-color)!important}.block-editor-block-variation-picker__skip>li,.block-editor-block-variation-picker__variations>li,.wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;gap:4px;width:auto}.block-editor-button-block-appender{align-items:center;border-color:currentColor;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.is-dark-theme .block-editor-button-block-appender{color:hsla(0,0%,100%,.65)}.block-editor-button-block-appender:hover{color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender),.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender),.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender),.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender){pointer-events:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender):after{border:1px dashed;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter{opacity:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within{opacity:1}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after{border:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter{visibility:visible}.block-editor-block-list__block:not(.is-selected)>.block-editor-block-list__block>.block-list-appender:only-child:has(.block-editor-button-block-appender):after{border:none}.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65)}@media not (prefers-reduced-motion){.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender{transition:background-color .2s ease-in-out}}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{margin-block-end:0;margin-block-start:0;opacity:.62;text-shadow:none}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg{transform:rotate(45deg)}.block-editor-default-block-appender .block-editor-inserter{line-height:0;position:absolute;right:0;top:0}.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;list-style:none;padding:0;position:absolute;right:0;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon svg,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle.is-pressed svg{transform:rotate(45deg)}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{box-shadow:none;display:none;flex-direction:row;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;line-height:inherit;list-style:none;position:relative;right:auto}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-iframe__body{position:relative}.block-editor-iframe__html{transform-origin:top center}@media not (prefers-reduced-motion){.block-editor-iframe__html{transition:background-color .4s}}.block-editor-iframe__html.zoom-out-animation{bottom:0;left:0;overflow-y:var(--wp-block-editor-iframe-zoom-out-overflow-behavior,scroll);position:fixed;right:0;top:calc(var(--wp-block-editor-iframe-zoom-out-scroll-top, 0px)*-1)}.block-editor-iframe__html.is-zoomed-out{background-color:var(--wp-editor-canvas-background);margin-bottom:calc(var(--wp-block-editor-iframe-zoom-out-content-height)*(1 - var(--wp-block-editor-iframe-zoom-out-scale, 1))*-1 + var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1)*-1 + -2px);padding-bottom:calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1));padding-top:calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1));scale:var(--wp-block-editor-iframe-zoom-out-scale,1);transform:translateX(calc((var(--wp-block-editor-iframe-zoom-out-scale-container-width) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))/2/var(--wp-block-editor-iframe-zoom-out-scale, 1)))}.block-editor-iframe__html.is-zoomed-out body{min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - 2*var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1))/var(--wp-block-editor-iframe-zoom-out-scale, 1))}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content){display:flex;flex:1;flex-direction:column;height:100%}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content)>main{flex:1}.block-editor-iframe__html.is-zoomed-out .wp-block[draggable]{cursor:grab}.block-editor-media-placeholder__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:var(--wpds-cursor-control,pointer)}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62;text-shadow:none}.rich-text:focus{outline:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}[data-rich-text-comment],[data-rich-text-format-boundary]{border-radius:2px}[data-rich-text-comment]{background-color:currentColor}[data-rich-text-comment] span{color:currentColor;filter:invert(100%);padding:0 2px}.rich-text [contenteditable=false]::-moz-selection{background-color:transparent}.rich-text [contenteditable=false]::selection{background-color:transparent}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;gap:8px}.components-popover.block-editor-warning__dropdown{z-index:99998}
\ No newline at end of file
+:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}:root .block-editor-block-list__layout::selection,:root [data-has-multi-selection=true] .block-editor-block-list__layout::selection,_::-webkit-full-page-media,_:future{background-color:transparent}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::-moz-selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::-moz-selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{background:var(--wp-admin-theme-color);bottom:0;content:"";left:0;opacity:.4;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media not (prefers-reduced-motion){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{outline-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1}.block-editor-block-list__layout .block-editor-block-list__block.is-block-hidden{border:none!important;height:0;margin-bottom:0!important;margin-top:0!important;opacity:0;overflow:hidden;padding:0!important;visibility:hidden}.block-editor-block-list__layout.is-layout-flex:not(.is-vertical)>.is-block-hidden{align-self:stretch;height:auto;margin-left:0!important;margin-right:0!important;white-space:nowrap!important;width:0}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;-moz-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none}.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected,.block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected{z-index:20}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block:not([data-draggable=true]),.block-editor-block-list__layout .block-editor-block-list__block:not([draggable=true]){cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-draggable=true],.block-editor-block-list__layout .block-editor-block-list__block[draggable=true]{cursor:grab}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block [contenteditable],.block-editor-block-list__layout .block-editor-block-list__block[contenteditable]{cursor:text}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected):after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*1/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered:after,.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}@keyframes block-editor-is-editable__animation{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}@keyframes block-editor-is-editable__animation_reduce-motion{0%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}99%{background-color:rgba(var(--wp-admin-theme-color--rgb),.1)}to{background-color:rgba(var(--wp-admin-theme-color--rgb),0)}}.is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:.1s;animation-duration:.8s;animation-fill-mode:backwards;animation-name:block-editor-is-editable__animation;animation-timing-function:ease-out;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}@media (prefers-reduced-motion:reduce){.is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline:after{animation-delay:0s;animation-name:block-editor-is-editable__animation_reduce-motion}}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2}@media not (prefers-reduced-motion){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition:opacity .1s linear}}.is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:9}.wp-site-blocks>[data-align=left]{float:left;margin-right:2em}.wp-site-blocks>[data-align=right]{float:right;margin-left:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;direction:ltr;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;width:100%}@media not (prefers-reduced-motion){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition:padding .2s linear}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__zoom-out-separator{background:#ddd;margin-left:-1px;margin-right:-1px}@media not (prefers-reduced-motion){.block-editor-block-list__zoom-out-separator{transition:background-color .3s ease}}.block-editor-block-list__zoom-out-separator{align-items:center;color:#000;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;justify-content:center;overflow:hidden}.is-zoomed-out .block-editor-block-list__zoom-out-separator{font-size:calc(13px/var(--wp-block-editor-iframe-zoom-out-scale))}.block-editor-block-list__zoom-out-separator.is-dragged-over{background:#ccc}.block-editor-block-list__layout.is-root-container.has-global-padding>.block-editor-block-list__zoom-out-separator,.has-global-padding>.block-editor-block-list__zoom-out-separator{margin:0 calc(var(--wp--style--root--padding-right)*-1 - 1px) 0 calc(var(--wp--style--root--padding-left)*-1 - 1px)!important;max-width:none}.is-dragging{cursor:grabbing}.is-preview-mode{pointer-events:none}.is-preview-mode .block-editor-block-list__block{pointer-events:auto}.is-preview-mode .block-editor-block-list__block>:not(.block-editor-block-list__block){pointer-events:none}.is-vertical .block-list-appender{margin-left:12px;margin-right:auto;margin-top:12px;width:24px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay:before{left:0;right:0;width:auto}.block-editor-block-list__layout .is-dragging{opacity:.1}.block-editor-block-list__layout .is-dragging iframe{pointer-events:none}.block-editor-block-list__layout .is-dragging::-moz-selection{background:transparent!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.wp-block img:not([draggable]),.wp-block svg:not([draggable]){pointer-events:none}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.block-editor-block-variation-picker__skip,.block-editor-block-variation-picker__variations,.wp-block-group-placeholder__variations{display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:8px;justify-content:flex-start;list-style:none;margin:0;padding:0;width:100%}.block-editor-block-variation-picker__skip svg,.block-editor-block-variation-picker__variations svg,.wp-block-group-placeholder__variations svg{fill:#949494!important}.block-editor-block-variation-picker__skip .components-button,.block-editor-block-variation-picker__variations .components-button,.wp-block-group-placeholder__variations .components-button{padding:4px}.block-editor-block-variation-picker__skip .components-button:hover,.block-editor-block-variation-picker__variations .components-button:hover,.wp-block-group-placeholder__variations .components-button:hover{background:none!important}.block-editor-block-variation-picker__skip .components-button:hover svg,.block-editor-block-variation-picker__variations .components-button:hover svg,.wp-block-group-placeholder__variations .components-button:hover svg{fill:var(--wp-admin-theme-color)!important}.block-editor-block-variation-picker__skip>li,.block-editor-block-variation-picker__variations>li,.wp-block-group-placeholder__variations>li{align-items:center;display:flex;flex-direction:column;gap:4px;width:auto}.block-editor-button-block-appender{align-items:center;border-color:currentColor;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.is-dark-theme .block-editor-button-block-appender{color:hsla(0,0%,100%,.65)}.block-editor-button-block-appender:hover{color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender),.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender),.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender),.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender){pointer-events:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender):after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender):after{border:1px dashed;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter{opacity:0}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender) .block-editor-inserter:focus-within{opacity:1}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over:after{border:none}.block-editor-block-list__block:not(.is-selected)>.is-layout-constrained.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.block-editor-block-list__block:not(.is-selected)>.is-layout-flow.wp-block-group__inner-container>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-inserter{visibility:visible}.block-editor-block-list__block:not(.is-selected)>.block-editor-block-list__block>.block-list-appender:only-child:has(.block-editor-button-block-appender):after{border:none}.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65)}@media not (prefers-reduced-motion){.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender{transition:background-color .2s ease-in-out}}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{margin-block-end:0;margin-block-start:0;opacity:.62;text-shadow:none}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg{transform:rotate(45deg)}.block-editor-default-block-appender .block-editor-inserter{line-height:0;position:absolute;right:0;top:0}.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;list-style:none;padding:0;position:absolute;right:0;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon svg,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle.is-pressed svg{transform:rotate(45deg)}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{box-shadow:none;display:none;flex-direction:row;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:first-child{align-self:center;line-height:inherit;list-style:none;position:relative;right:auto}.block-editor-block-list__block .block-list-appender:first-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-iframe__body{position:relative}.block-editor-iframe__html{transform-origin:top center}@media not (prefers-reduced-motion){.block-editor-iframe__html{transition:background-color .4s}}.block-editor-iframe__html.zoom-out-animation{bottom:0;left:0;overflow-y:var(--wp-block-editor-iframe-zoom-out-overflow-behavior,scroll);position:fixed;right:0;top:calc(var(--wp-block-editor-iframe-zoom-out-scroll-top, 0px)*-1)}.block-editor-iframe__html.is-zoomed-out{background-color:var(--wp-editor-canvas-background);margin-bottom:calc(var(--wp-block-editor-iframe-zoom-out-content-height)*(1 - var(--wp-block-editor-iframe-zoom-out-scale, 1))*-1 + var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1)*-1 + -2px);padding-bottom:calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1));padding-top:calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1));scale:var(--wp-block-editor-iframe-zoom-out-scale,1);transform:translateX(calc((var(--wp-block-editor-iframe-zoom-out-scale-container-width) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw))/2/var(--wp-block-editor-iframe-zoom-out-scale, 1)))}.block-editor-iframe__html.is-zoomed-out body{min-height:calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - 2*var(--wp-block-editor-iframe-zoom-out-frame-size, 0px)/var(--wp-block-editor-iframe-zoom-out-scale, 1))/var(--wp-block-editor-iframe-zoom-out-scale, 1))}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content){display:flex;flex:1;flex-direction:column;height:100%}.block-editor-iframe__html.is-zoomed-out body>.is-root-container:not(.wp-block-post-content)>main{flex:1}.block-editor-iframe__html.is-zoomed-out .wp-block[draggable]{cursor:grab}.block-editor-media-placeholder__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:var(--wpds-cursor-control,pointer)}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62;text-shadow:none}.rich-text:focus{outline:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}[data-rich-text-comment],[data-rich-text-format-boundary]{border-radius:2px}[data-rich-text-comment]{background-color:currentColor}[data-rich-text-comment] span{color:currentColor;filter:invert(100%);padding:0 2px}.rich-text [contenteditable=false]::-moz-selection{background-color:transparent}.rich-text [contenteditable=false]::selection{background-color:transparent}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;gap:8px}.components-popover.block-editor-warning__dropdown{z-index:99998}
\ No newline at end of file
diff --git a/wp-includes/css/dist/block-editor/style-rtl.css b/wp-includes/css/dist/block-editor/style-rtl.css
index 470bbc4650..23ee3a6c33 100644
--- a/wp-includes/css/dist/block-editor/style-rtl.css
+++ b/wp-includes/css/dist/block-editor/style-rtl.css
@@ -1507,10 +1507,6 @@ iframe[name=editor-canvas] {
min-width: 0;
}
-.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings, .block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings > div:not(:first-of-type) {
- display: block;
-}
-
@media screen and (min-width: 782px) {
.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches {
display: grid;
@@ -1520,6 +1516,16 @@ iframe[name=editor-canvas] {
.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control {
margin-bottom: inherit;
}
+.block-editor-panel-color-gradient-settings {
+ /* Increased specificity required to remove the slot wrapper's row gap */
+}
+.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__inner-wrapper {
+ grid-column: 1/-1;
+ row-gap: 0;
+}
+.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__inner-wrapper > * {
+ grid-column: 1/-1;
+}
.block-editor-panel-color-gradient-settings__dropdown-content {
min-height: 160px;
@@ -2468,7 +2474,7 @@ iframe[name=editor-canvas] {
max-height: 32px;
}
.block-editor-link-control__preview .block-editor-link-control__preview-title {
- line-height: 1.1;
+ line-height: var(--wpds-typography-line-height-sm, 20px);
}
.block-editor-link-control__preview .block-editor-link-control__preview-title:focus {
box-shadow: none;
@@ -2990,6 +2996,12 @@ iframe[name=editor-canvas] {
.block-editor-list-view-leaf .block-editor-inserter__toggle:active {
color: #fff;
}
+.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper {
+ width: 100%;
+}
+.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper > * {
+ min-width: 0;
+}
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg {
right: 2px;
position: relative;
@@ -3012,6 +3024,17 @@ iframe[name=editor-canvas] {
position: absolute;
left: 0;
transform: translateY(-50%);
+ box-sizing: border-box;
+ max-width: 100%;
+ padding: 2px 8px;
+ border-radius: 2px;
+ background: #f0f0f0;
+ color: #2f2f2f;
+ font-size: 12px;
+ line-height: 20px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor {
background: rgba(0, 0, 0, 0.3);
@@ -3258,6 +3281,10 @@ iframe[name=editor-canvas] {
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
}
+.block-editor-multi-selection-inspector__card-description {
+ color: #757575;
+}
+
.block-editor-multi-selection-inspector__card .block-editor-block-icon {
margin-right: -2px;
padding: 0 3px;
@@ -3559,6 +3586,11 @@ iframe[name=editor-canvas] {
border-top: 1px solid #1e1e1e;
}
+.block-editor-url-popover__link-container-content {
+ display: flex;
+ align-items: center;
+}
+
.block-editor-url-popover__link-editor,
.block-editor-url-popover__link-viewer {
display: flex;
diff --git a/wp-includes/css/dist/block-editor/style-rtl.min.css b/wp-includes/css/dist/block-editor/style-rtl.min.css
index fc04afaea4..9de3409e56 100644
--- a/wp-includes/css/dist/block-editor/style-rtl.min.css
+++ b/wp-includes/css/dist/block-editor/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-autocompleters__block[aria-selected=true] .block-editor-block-icon{color:inherit!important}.block-editor-global-styles-background-panel__inspector-media-replace-container{position:relative}.block-editor-global-styles-background-panel__inspector-media-replace-container.is-open{background-color:#f0f0f0}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item{border:0;flex-grow:1}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-preview-inner{height:100%}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown .block-editor-global-styles-background-panel__dropdown-toggle{height:40px}.block-editor-global-styles-background-panel__image-tools-panel-item{border:1px solid #ddd;grid-column:1/-1;position:relative}.block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon{display:none}.block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button{color:#1e1e1e;display:block;width:100%}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover{color:var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading{height:100%;padding:10px 0 0;position:absolute;width:100%;z-index:1}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading svg{margin:0}.block-editor-global-styles-background-panel__dropdown-toggle{background:transparent;border:none;cursor:var(--wpds-cursor-control,pointer);height:100%;padding-left:32px;padding-right:12px;width:100%}.block-editor-global-styles-background-panel__reset{left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-editor-global-styles-background-panel__reset{transition:opacity .1s ease-in-out}}.block-editor-global-styles-background-panel__reset.has-local-override-from-global-styles__reset{align-items:center;display:inline-flex;justify-content:center;margin-block:0;margin-inline:0 8px;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.block-editor-global-styles-background-panel__reset.block-editor-global-styles-background-panel__reset{border-radius:2px}.block-editor-global-styles-background-panel__dropdown-toggle:hover+.block-editor-global-styles-background-panel__reset,.block-editor-global-styles-background-panel__reset:focus,.block-editor-global-styles-background-panel__reset:focus-within,.block-editor-global-styles-background-panel__reset:hover{opacity:1}@media (hover:none){.block-editor-global-styles-background-panel__reset{opacity:1}}.block-editor-global-styles-background-panel__inspector-media-replace-title{text-align:start;white-space:normal;word-break:break-all}.block-editor-global-styles-background-panel__inspector-image-indicator{background:#fff linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);background-size:cover;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:20px;outline:1px solid transparent;width:20px}.block-editor-global-styles-background-panel__dropdown-content-wrapper{min-width:260px;overflow-x:hidden}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper{background-color:#f0f0f0;border:1px solid #ddd;border-radius:2px;width:100%}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image{max-height:180px}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker:after{content:none}.modal-open .block-editor-global-styles-background-panel__popover{z-index:159890}.block-editor-global-styles-background-panel__media-replace-popover .components-popover__content{width:226px}.block-editor-global-styles-background-panel__media-replace-popover .components-button{padding:0 8px}.block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right{margin-right:16px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}iframe[name=editor-canvas]{box-sizing:border-box;display:block;height:100%;width:100%}@media not (prefers-reduced-motion){iframe[name=editor-canvas]{transition:all .4s cubic-bezier(.46,.03,.52,.96)}}iframe[name=editor-canvas]{background-color:var(--wp-editor-canvas-background)}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.block-editor-block-inspector .block-editor-html-element-control:where(:not(:last-child)),.block-editor-block-inspector .block-editor-image-size-control:where(:not(:last-child)),.block-editor-block-inspector .components-base-control:where(:not(:last-child)),.block-editor-block-inspector .components-radio-control:where(:not(:last-child)){margin-bottom:16px}.block-editor-block-inspector .block-editor-html-element-control .components-base-control,.block-editor-block-inspector .block-editor-image-size-control .components-base-control,.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control,.block-editor-block-inspector .components-range-control .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector-edit-contents{margin:0 16px 16px}.block-editor-block-inspector-edit-contents .block-editor-block-inspector-edit-contents__button{justify-content:center}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;right:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;position:absolute;will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter{justify-content:center;right:calc(50% - 12px);top:calc(50% - 12px)}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter{left:0;line-height:0;position:absolute;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled{display:none}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon svg,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg{transform:rotate(-45deg)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}@keyframes hide-during-dragging{to{position:fixed;transform:translate(-9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;margin-bottom:8px;margin-top:8px;overflow:visible;pointer-events:all;position:static;width:auto}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-right:56px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-right:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar{overflow:visible}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}@media not (prefers-reduced-motion){.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards}}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{position:absolute;right:-57px}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:before{content:""}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:after{display:none}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{background-color:#fff;border:1px solid #1e1e1e;padding-left:6px;padding-right:6px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{padding-left:12px;padding-right:12px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{margin-right:-1px;position:relative;right:auto}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container,.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:1px solid #1e1e1e}.is-dragging-components-draggable .components-tooltip{display:none}.components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button{pointer-events:all;position:absolute;right:50%;top:50%;transform:translateX(50%) translateY(-50%)}.block-editor-block-tools--is-dragging>.popover-slot{display:none}.block-editor-block-lock-modal{z-index:1000001}.block-editor-block-lock-modal__options{border:0;margin:0;padding:0}.block-editor-block-lock-modal__options legend{margin-bottom:16px;padding:0}.block-editor-block-lock-modal__checklist{list-style:none;margin:0;padding:0}.block-editor-block-lock-modal__options-all{padding:12px 0}.block-editor-block-lock-modal__options-all .components-checkbox-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 32px 12px 0}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{fill:#1e1e1e;flex-shrink:0;margin-left:12px}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding-top:16px}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-right:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-right:1px solid #1e1e1e;margin-left:-6px;margin-right:6px!important}.block-editor-block-allowed-blocks-control:not(:only-child){margin-top:16px}.block-editor-block-allowed-blocks-control__button{justify-content:center;width:100%}.block-editor-block-allowed-blocks-modal{z-index:1000001}.block-editor-block-allowed-blocks-modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:-24px;margin:0 -24px -24px;padding:16px 24px;position:sticky;right:0;z-index:1}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0;white-space:nowrap}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(-1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.block-editor-block-breadcrumb__button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{color:#1e1e1e;padding:16px}.block-editor-block-card.is-parent{padding-bottom:4px}.block-editor-block-card.is-child{padding-top:4px}.block-editor-block-card__parent-select-button{align-items:start;height:auto!important;padding:0;text-align:start}.block-editor-block-card__title{align-items:center;display:flex;flex-wrap:wrap;font-weight:var(--wpds-typography-font-weight-emphasis,600);gap:4px 8px}.block-editor-block-card__title.block-editor-block-card__title{font-size:13px;line-height:1.4;margin:0}.block-editor-block-card__name{padding:3px 0}.block-editor-block-card .block-editor-block-icon,.block-editor-block-card__child-indicator-icon{flex:0 0 24px;height:24px;margin-left:12px;margin-right:0;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 0 0 16px;width:50%}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-left:0;padding-right:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;right:0;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:-moz-max-content;width:max-content}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-left:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-left:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{align-items:center;background-color:transparent;bottom:0;display:flex;justify-content:center;left:0;opacity:0;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{transition:all .1s linear .1s}}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon{background:transparent linear-gradient(45deg,transparent 47.5%,#fff 0,#fff 52.5%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1.5px #fff;display:inline-block;height:20px;padding:0;width:20px}.block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{background-color:#757575;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);opacity:1}.block-editor-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.block-editor-block-manager__category{isolation:isolate;margin:0 0 24px}.block-editor-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.block-editor-block-manager__category-title .components-checkbox-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-manager__checklist{margin-top:0}.block-editor-block-manager__category-title,.block-editor-block-manager__checklist-item{border-bottom:1px solid #ddd}.block-editor-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 16px 8px 0}.components-modal__content .block-editor-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.block-editor-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-left:10px}.block-editor-block-manager__results{border-top:1px solid #ddd}.block-editor-block-manager__disabled-blocks-count+.block-editor-block-manager__results{border-top-width:0}.block-editor-block-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:20px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:3px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:3px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{right:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{left:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button{overflow:hidden}.components-button.block-editor-block-mover-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 12px;text-transform:uppercase}.block-editor-block-patterns-list__list-item{cursor:var(--wpds-cursor-control,pointer);margin-bottom:16px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true]{cursor:grab}.block-editor-block-patterns-list__item{height:100%;outline:0;scroll-margin-bottom:56px;scroll-margin-top:24px}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{flex-grow:1;text-align:right}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:4px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{border-radius:4px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}@media not (prefers-reduced-motion){.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{transition:outline .1s linear}}.block-editor-block-patterns-list__item.is-selected .block-editor-block-preview__container:after{outline-color:#1e1e1e;outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container:after{outline-color:rgba(0,0,0,.3)}.block-editor-block-patterns-list__item[data-focus-visible] .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty){align-items:center;margin-top:8px;padding-bottom:4px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{height:24px;min-width:24px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon{fill:var(--wp-block-synced-color)}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination{border-top:1px solid #2f2f2f;justify-content:center;padding:4px}.show-icon-labels .block-editor-patterns__grid-pagination-button{width:auto}.show-icon-labels .block-editor-patterns__grid-pagination-button span{display:none}.show-icon-labels .block-editor-patterns__grid-pagination-button:before{content:attr(aria-label)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:-moz-max-content;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{margin:0;min-height:auto;overflow:visible;right:0;text-align:initial;top:0;transform-origin:top right;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-quick-navigation__item{font-weight:var(--wpds-typography-font-weight-default,400)}.block-editor-block-rename-modal{z-index:1000001}.block-editor-block-styles__preview-panel{display:none;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles{grid-column:1/-1}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{border-color:#ddd;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ddd;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;-moz-text-align-last:center;text-align-last:center;white-space:normal;word-break:break-all}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover-preview-container{bottom:0;pointer-events:none;position:absolute;right:0;top:-1px;width:100%}.block-editor-block-switcher__popover-preview{overflow:hidden}.block-editor-block-switcher__popover-preview .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:4px;box-shadow:none;outline:none;overflow:auto;width:300px}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview.is-pattern-list-preview{overflow:unset}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:var(--wpds-cursor-control,pointer)}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border-radius:2px;height:100%}@media not (prefers-reduced-motion){.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{transition:all .05s ease-in-out}}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid transparent;position:relative}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:var(--wpds-cursor-control,pointer);font-size:12px;padding:4px;text-align:center}.block-editor-block-switcher__no-transforms{color:#757575;margin:0;padding:6px 8px}.block-editor-block-switcher__binding-indicator{display:block;padding:8px}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{-moz-column-count:3;column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:var(--wpds-cursor-control,pointer)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item{scroll-margin:5px 0}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:var(--wpds-cursor-control,pointer);font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:4px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:stretch;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:64px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:right;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;width:100%}@media not (prefers-reduced-motion){.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{transition:transform .5s,z-index .5s}}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{box-sizing:border-box;padding:0 16px 16px}.block-editor-block-variation-transforms:where(fieldset){border:0;margin:0;min-inline-size:0}.block-editor-block-variation-transforms__button{justify-content:center;width:100%}.components-border-radius-control__header{height:16px;margin-bottom:12px}.components-border-radius-control{border:0;margin:0 0 12px;padding:0}.components-border-radius-control legend{margin-bottom:0}.components-border-radius-control .components-border-radius-control__linked-button{display:flex;justify-content:center}.components-border-radius-control .components-border-radius-control__linked-button svg{margin-left:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{border:0;margin:0;min-width:0;padding:0}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px)}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content{min-height:160px}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-panel-color-gradient-settings__contrast-notice{margin-top:16px}.block-editor-color-gradient-item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0;position:relative}.block-editor-color-gradient-item:nth-child(1 of .block-editor-color-gradient-item){border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px}.block-editor-color-gradient-item:nth-last-child(1 of .block-editor-color-gradient-item){border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-color-gradient-item>div,.block-editor-color-gradient-item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:right}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{max-width:calc(100% - 44px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-tools-panel-color-gradient-settings__dropdown>button.has-contrast-warning .block-editor-panel-color-gradient-settings__color-name{max-width:calc(100% - 72px)}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-panel-color-gradient-settings__reset{left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-editor-panel-color-gradient-settings__reset{transition:opacity .1s ease-in-out}}.block-editor-panel-color-gradient-settings__reset.block-editor-panel-color-gradient-settings__reset{border-radius:2px}.block-editor-panel-color-gradient-settings__dropdown:hover+.block-editor-panel-color-gradient-settings__reset,.block-editor-panel-color-gradient-settings__reset:focus,.block-editor-panel-color-gradient-settings__reset:hover{opacity:1}@media (hover:none){.block-editor-panel-color-gradient-settings__reset{opacity:1}}.block-editor-panel-color-gradient-settings__dropdown.has-contrast-warning+.block-editor-panel-color-gradient-settings__reset{left:28px}.block-editor-panel-color-gradient-settings__contrast-warning{left:0;margin:auto 8px;position:absolute;top:8px}.block-editor-panel-color-gradient-settings__contrast-warning.block-editor-panel-color-gradient-settings__contrast-warning{border-radius:2px}.block-editor-date-format-picker{border:none;margin:0 0 16px;padding:0}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-dimension-control{border:0;margin:0;padding:0}.block-editor-duotone-control__popover.components-popover>.components-popover__content{padding:8px;width:260px}.block-editor-duotone-control__popover.components-popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover.components-popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__unset-indicator{background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-fit-text-size-warning{grid-column:span 2}.components-font-appearance-control [role=option]{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles__toggle-icon{fill:currentColor}.block-editor-global-styles__shadow-popover-container{width:230px}.block-editor-global-styles__shadow__list{display:flex;flex-wrap:wrap;gap:12px;padding-bottom:8px}.block-editor-global-styles__clear-shadow{text-align:left}.block-editor-global-styles-state-control{margin-top:-4px}.block-editor-global-styles-state-control__badges{min-height:24px}.block-editor-global-styles-state-control__badge-tooltip-trigger{display:inline-flex;max-width:100%}.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{border:1px solid #ddd;border-radius:2px;display:block;padding:0;position:relative}.block-editor-global-styles-filters-panel__dropdown-toggle,.block-editor-global-styles__shadow-dropdown-toggle{padding:8px;width:100%}.block-editor-global-styles-filters-panel__dropdown-toggle.is-open,.block-editor-global-styles__shadow-dropdown-toggle.is-open{background-color:#f0f0f0}.block-editor-global-styles__shadow-editor__remove-button{left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-editor-global-styles__shadow-editor__remove-button{transition:opacity .1s ease-in-out}}.block-editor-global-styles__shadow-dropdown:hover .block-editor-global-styles__shadow-editor__remove-button,.block-editor-global-styles__shadow-editor__remove-button:focus,.block-editor-global-styles__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.block-editor-global-styles__shadow-editor__remove-button{opacity:1}}.block-editor-global-styles__shadow-indicator{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;color:#2f2f2f;cursor:var(--wpds-cursor-control,pointer);display:inline-flex;height:26px;padding:0;transform:scale(1);width:26px}@media not (prefers-reduced-motion){.block-editor-global-styles__shadow-indicator{transition:transform .1s ease}}.block-editor-global-styles__shadow-indicator{will-change:transform}.block-editor-global-styles__shadow-indicator:focus{border:2px solid #757575}.block-editor-global-styles__shadow-indicator:hover{transform:scale(1.2)}.block-editor-global-styles__shadow-indicator.unset{background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-global-styles-advanced-panel__custom-css-input{margin-bottom:16px}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-panel-duotone-settings__reset{left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-editor-panel-duotone-settings__reset{transition:opacity .1s ease-in-out}}.block-editor-global-styles-filters-panel__dropdown:hover .block-editor-panel-duotone-settings__reset,.block-editor-panel-duotone-settings__reset:focus,.block-editor-panel-duotone-settings__reset:hover{opacity:1}@media (hover:none){.block-editor-panel-duotone-settings__reset{opacity:1}}.is-inherited-from-global-styles .components-base-control__label,.is-inherited-from-global-styles .components-input-control__label{text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:.2em}.is-inherited-from-global-styles .block-editor-global-styles-background-panel__inspector-media-replace-title,.is-inherited-from-global-styles .block-editor-panel-color-gradient-settings__color-name,.is-inherited-from-global-styles .block-editor-panel-duotone-settings__label{border-bottom:1px dotted}.has-local-override-from-global-styles{position:relative}.global-styles-inheritance-affordance{align-items:center;display:flex;height:16px;inset-block-start:0;inset-inline-end:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}.global-styles-inheritance-affordance--offset-toggle{inset-inline-end:32px}.global-styles-inheritance-affordance .has-local-override-from-global-styles__reset{margin-inline-start:0!important;pointer-events:auto}.has-local-override-from-global-styles__reset{align-items:center;background:transparent!important;border-radius:50%!important;box-shadow:none!important;cursor:var(--wpds-cursor-control,pointer);display:inline-flex!important;height:14px!important;justify-content:center;letter-spacing:normal;margin-inline-start:6px;min-width:14px!important;overflow:hidden;padding:0!important;position:relative;text-transform:none;vertical-align:middle;width:14px!important}.has-local-override-from-global-styles__reset:focus,.has-local-override-from-global-styles__reset:hover{background:transparent!important}.has-local-override-from-global-styles__reset:focus .has-local-override-from-global-styles__dot,.has-local-override-from-global-styles__reset:hover .has-local-override-from-global-styles__dot{display:none}.has-local-override-from-global-styles__reset:focus .has-local-override-from-global-styles__reset-icon,.has-local-override-from-global-styles__reset:hover .has-local-override-from-global-styles__reset-icon{display:block}.has-local-override-from-global-styles__reset:focus-visible{outline:1.5px solid var(--wp-admin-theme-color,#007cba);outline-offset:1px}.has-local-override-from-global-styles__reset.block-editor-panel-color-gradient-settings__reset{justify-content:center;margin-block:0;margin-inline-start:0;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.has-local-override-from-global-styles__reset.block-editor-global-styles__shadow-editor__remove-button,.has-local-override-from-global-styles__reset.block-editor-panel-duotone-settings__reset{inset-inline-end:8px;justify-content:center;margin-block:0;margin-inline-start:0;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.has-local-override-from-global-styles__dot{background-color:var(--wp-admin-theme-color,#007cba);border-radius:50%;display:block;height:8px;width:8px}.has-local-override-from-global-styles__reset-icon{color:var(--wp-admin-theme-color,#007cba);display:none;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer{z-index:30}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .components-popover__content *{pointer-events:none}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer.is-dropping-allowed .block-editor-grid-visualizer__drop-zone{pointer-events:all}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .block-editor-inserter *{pointer-events:auto}.block-editor-grid-visualizer__grid{display:grid;position:absolute}.block-editor-grid-visualizer__cell{display:grid;position:relative}.block-editor-grid-visualizer__cell .block-editor-inserter{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:32}.block-editor-grid-visualizer__cell .block-editor-inserter .block-editor-grid-visualizer__appender{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 20%,transparent);color:inherit;height:100%;opacity:0;overflow:hidden;padding:0!important;width:100%}.block-editor-grid-visualizer__cell.is-highlighted .block-editor-grid-visualizer__drop-zone,.block-editor-grid-visualizer__cell.is-highlighted .block-editor-inserter{background:var(--wp-admin-theme-color)}.block-editor-grid-visualizer__cell .block-editor-grid-visualizer__appender:focus,.block-editor-grid-visualizer__cell:hover .block-editor-grid-visualizer__appender{background-color:color-mix(in srgb,currentColor 20%,transparent);opacity:1}.block-editor-grid-visualizer__drop-zone{background:hsla(0,0%,80%,.1);grid-column:1;grid-row:1;height:100%;min-height:8px;min-width:8px;width:100%}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer{z-index:30}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer .components-popover__content *{pointer-events:none}.block-editor-grid-item-resizer__box{border:1px solid var(--wp-admin-theme-color)}.block-editor-grid-item-resizer__box .components-resizable-box__handle.components-resizable-box__handle.components-resizable-box__handle{pointer-events:all}.block-editor-grid-item-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button{min-width:0!important;padding-left:0;padding-right:0;width:24px}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button svg{min-width:24px}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:before,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-grid-item-mover__move-vertical-button-container{display:flex;position:relative}@media (min-width:600px){.block-editor-grid-item-mover__move-vertical-button-container{flex-direction:column;justify-content:space-around}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button{height:20px!important;min-width:0!important;width:100%}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button:before{height:calc(100% - 4px)}.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-down-button svg,.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-up-button svg{flex-shrink:0;height:20px}.editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container{height:40px;position:relative;top:-4px}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container{position:relative}@media (min-width:600px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#e0e0e0;content:"";height:100%;position:absolute;top:0;width:1px}}@media (min-width:782px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left{padding-left:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left:before{left:0}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right{padding-right:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right:before{right:0}@media (min-width:600px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{background:#e0e0e0;content:"";height:1px;margin-top:-.5px;position:absolute;right:50%;top:50%;transform:translate(50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover-button{white-space:nowrap}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#ddd;height:24px;top:4px}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container:before{background:#ddd;width:calc(100% - 24px)}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-iframe__container{height:100%;width:100%}.block-editor-iframe__scale-container{height:100%}.block-editor-iframe__scale-container.is-zoomed-out{left:0;position:absolute;width:var(--wp-block-editor-iframe-zoom-out-scale-container-width,100vw)}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:transparent;color:#1e1e1e;cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;font-size:13px;justify-content:center;padding:8px;width:100%;word-break:break-word}@media not (prefers-reduced-motion){.components-button.block-editor-block-types-list__item{transition:all .05s ease-in-out}}.components-button.block-editor-block-types-list__item{height:auto;position:relative}.components-button.block-editor-block-types-list__item:disabled,.components-button.block-editor-block-types-list__item[aria-disabled=true]{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-types-list__item-icon{color:#1e1e1e;padding:12px 20px}@media not (prefers-reduced-motion){.block-editor-block-types-list__item-icon{transition:all .05s ease-in-out}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}@media not (prefers-reduced-motion){.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;hyphens:auto;padding:4px 2px 8px}.modal-open .block-editor-inspector-list-view-content-popover{z-index:99999}.block-editor-block-inspector__tabs [role=tablist]{width:100%}.block-editor-inspector-popover-header{margin-bottom:16px}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview{flex-wrap:wrap;gap:4px}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview .components-button.has-icon{padding:4px;width:auto}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview .block-editor-link-control_link-information{margin-left:0;min-width:100%}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__help{color:#757575;font-size:12px;font-style:normal;margin-bottom:0;margin-top:-8px;padding:0 16px}.block-editor-link-control__search-input-container,.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field .components-base-control__label{color:#1e1e1e}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{padding:8px 16px 16px}.block-editor-link-control__search-results-wrapper{position:relative}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";display:block;left:16px;pointer-events:none;position:absolute;right:-1px;z-index:100}.block-editor-link-control__search-results-wrapper:before{bottom:auto;height:8px;top:0}.block-editor-link-control__search-results-wrapper:after{bottom:0;height:16px;top:auto}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:right}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:transparent;color:inherit;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__preview{background:transparent;border:0;padding:16px}.block-editor-link-control__preview .block-editor-link-control__link-information{margin-left:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__preview .block-editor-link-control__link-information .block-editor-link-control__preview-info{color:#757575;font-size:12px;line-height:1.1;word-break:break-all}.block-editor-link-control__preview.is-url-title .block-editor-link-control__preview-title{word-break:break-all}.block-editor-link-control__preview .block-editor-link-control__preview-icon,.block-editor-link-control__preview .block-editor-link-control__preview-image{background-color:#f0f0f0;border-radius:2px;flex-shrink:0;height:32px;position:relative;width:32px}.block-editor-link-control__preview .block-editor-link-control__preview-icon img{width:16px}.block-editor-link-control__preview.is-error .block-editor-link-control__preview-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__preview .block-editor-link-control__preview-title{line-height:1.1}.block-editor-link-control__preview .block-editor-link-control__preview-title:focus{box-shadow:none}.block-editor-link-control__preview .block-editor-link-control__preview-title:focus-visible{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;text-decoration:none}.block-editor-link-control__preview .block-editor-link-control__preview-title mark{background-color:transparent;color:inherit;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-link-control__preview .block-editor-link-control__preview-title span{font-weight:400}.block-editor-link-control__preview .block-editor-link-control__preview-title .components-external-link__icon{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon img,.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon svg{opacity:0}.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon:before{background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s}}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;position:absolute;right:0;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__preview-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__settings{border:0;margin:0;padding:0}.block-editor-link-control__setting{flex:1;margin-bottom:0;padding:8px 24px}.block-editor-link-control__setting .components-base-control:not(.components-input-control) .components-base-control__field{display:flex}.block-editor-link-control__setting .components-base-control__field .components-checkbox-control__label{color:#1e1e1e}.block-editor-link-control__setting input{margin-right:0}.is-preview .block-editor-link-control__setting{padding:20px 0 8px 8px}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-right:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true]{color:#1e1e1e}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{visibility:visible}@media not (prefers-reduced-motion){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition:transform .1s ease}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(-90deg)}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);visibility:visible}@media not (prefers-reduced-motion){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition:transform .1s ease}}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{bottom:auto;left:40px;position:absolute;right:auto;top:calc(50% - 8px)}.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner{left:12px;top:calc(50% + 4px)}.link-preview-button.components-button{border-color:#949494;height:auto;padding:12px;width:100%}.link-preview-button__image-container{flex-shrink:0;height:24px;width:24px}.link-preview-button__image{border-radius:2px;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.link-preview-button__content,.link-preview-button__details{flex:1;min-width:0}.link-preview-button__hint,.link-preview-button__title{display:block;min-width:0;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap;width:100%}.link-preview-button__title{color:#1e1e1e;display:block;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:4px}.link-preview-button__hint{color:#757575;font-size:12px;font-weight:400}.link-preview-button__icon{color:#1e1e1e}.link-preview-button__badges{margin-top:8px}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-tree.is-dragging tbody{pointer-events:none}.block-editor-list-view-leaf{position:relative;transform:translateY(0)}.block-editor-list-view-leaf.is-draggable,.block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents{cursor:grab}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.block-editor-list-view-leaf .block-editor-list-view-block-select-button svg{fill:currentColor}@media (forced-colors:active){.block-editor-list-view-leaf .block-editor-list-view-block-select-button svg{fill:CanvasText}}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-normal{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-normal{transform:translateY(0)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-up{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-up{transform:translateY(-32px)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-down{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-down{transform:translateY(32px)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks{transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transform:translateY(calc(-32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transform:translateY(calc(32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}.block-editor-list-view-leaf.is-dragging{opacity:0;pointer-events:none;right:0;z-index:-9999}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;box-sizing:border-box;color:inherit;display:flex;font-family:inherit;font-size:13px;font-weight:400;height:32px;margin:0;padding:6px 0 6px 4px;position:relative;text-align:right;text-decoration:none;white-space:nowrap;width:100%}@media not (prefers-reduced-motion){.block-editor-list-view-leaf .block-editor-list-view-block-contents{transition:box-shadow .1s linear}}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";left:-29px;pointer-events:none;position:absolute;right:0;top:0;z-index:2}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{left:0}.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));z-index:1}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{opacity:1}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:__wp-base-styles-fade-in .08s linear 0s;animation-fill-mode:forwards}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-left:4px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:28px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg{position:relative;right:2px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{left:0;position:absolute;transform:translateY(-50%)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.3);color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__block-visibility,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky{line-height:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images{display:flex}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image{background-size:cover;border-radius:1px;height:18px;width:18px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px #fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:first-child){margin-right:-6px}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-disabled{opacity:.2}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-disabled{transition:opacity .1s linear}}.block-editor-list-view-leaf.is-disabled:hover{opacity:.2}.block-editor-list-view-leaf.is-disabled .block-editor-list-view__expander{cursor:default}.block-editor-list-view-leaf.is-disabled .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-draggable-chip{opacity:.8}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{cursor:var(--wpds-cursor-control,pointer);height:24px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-right:192px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-right:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-right:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-right:48px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-right:72px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-right:96px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-right:120px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-right:144px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-right:168px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{visibility:visible}@media not (prefers-reduced-motion){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition:transform .2s ease}}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(-90deg)}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);visibility:visible}@media not (prefers-reduced-motion){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition:transform .2s ease}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-drop-indicator--preview{pointer-events:none}.block-editor-list-view-drop-indicator--preview .components-popover__content{overflow:hidden!important}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:4px;height:32px;overflow:hidden}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{background:rgba(var(--wp-admin-theme-color--rgb),.09)}.block-editor-list-view-placeholder{height:32px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;color:#fff;height:24px;margin:8px 24px 0 0;padding:0}.list-view-appender .block-editor-inserter__toggle.has-icon.is-next-40px-default-size{min-width:24px}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description{display:none}.block-editor-media-placeholder__url-input-form{min-width:260px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form{width:300px}}.block-editor-media-placeholder__url-input-form input{direction:ltr}.modal-open .block-editor-media-replace-flow__options{z-index:99999}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-replace-flow__media-upload-menu:not(:empty)+.block-editor-media-flow__url-input{border-top:1px solid #ddd;margin-top:8px;padding-bottom:8px}.block-editor-media-replace-flow__options.is-variant-toolbar .block-editor-media-replace-flow__media-upload-menu:not(:empty)+.block-editor-media-flow__url-input{border-top-color:#1e1e1e}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__preview.is-current{padding:0;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{padding:8px 0 0}.block-editor-multi-selection-inspector__card{padding:16px}.block-editor-multi-selection-inspector__card-title{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-multi-selection-inspector__card .block-editor-block-icon{height:24px;margin-right:-2px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal!important}.preset-input-control__wrapper>*{flex:1}.preset-input-control__wrapper>.preset-input-control__custom-toggle,.preset-input-control__wrapper>.preset-input-control__icon{flex:none}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{border-radius:2px;box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{background:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;font-size:14px;font-weight:var(--wpds-typography-font-weight-emphasis,600);z-index:100000}.block-editor-tabbed-sidebar{background-color:#fff;display:flex;flex-direction:column;flex-grow:1;height:100%;overflow:hidden}.block-editor-tabbed-sidebar__tablist-and-close-button{border-bottom:1px solid #ddd;display:flex;justify-content:space-between;padding-left:8px}.block-editor-tabbed-sidebar__close-button{align-self:center;background:#fff;order:1}.block-editor-tabbed-sidebar__tablist{margin-bottom:-1px}.block-editor-tabbed-sidebar__tabpanel{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto;scrollbar-gutter:auto}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{min-width:300px;width:auto}}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{left:8px;margin:0;position:absolute;top:calc(50% - 8px)}.block-editor-url-input__suggestions{max-height:200px}@media not (prefers-reduced-motion){.block-editor-url-input__suggestions{transition:all .15s ease-in-out}}.block-editor-url-input__suggestions{overflow-y:auto;padding:4px 0;width:302px}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:var(--wpds-cursor-control,pointer);display:block;font-size:13px;height:auto;min-height:36px;text-align:right;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{background:#ddd;content:"";display:block;height:24px;left:-1px;position:absolute;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01)}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-popover__additional-controls{border-top:1px solid #1e1e1e;padding:8px}.block-editor-url-popover__input-container{padding:8px}.block-editor-url-popover__row{align-items:center;display:flex;gap:4px}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1;gap:8px}.block-editor-url-popover__additional-controls .components-button.has-icon{height:auto;padding-left:8px;padding-right:8px;text-align:right}.block-editor-url-popover__additional-controls .components-button.has-icon>svg{margin-left:8px}.block-editor-url-popover__settings-toggle{flex-shrink:0}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__settings{border-top:1px solid #1e1e1e;display:block;padding:16px}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{align-items:center;display:flex;flex-grow:1;flex-shrink:1;margin-left:8px;max-width:350px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-url-popover__expand-on-click{align-items:center;display:flex;min-width:350px;white-space:nowrap}.block-editor-url-popover__expand-on-click .text{flex-grow:1}.block-editor-url-popover__expand-on-click .text p{line-height:16px;margin:0}.block-editor-url-popover__expand-on-click .text p.description{color:#757575;font-size:12px}.background-block-support-panel.background-block-support-panel .background-block-support-panel__inner-wrapper{row-gap:0}.block-editor-content-only-controls__link{border-color:#ccc;width:100%}.block-editor-content-only-controls__link-row{align-items:center}.block-editor-content-only-controls__link-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.block-editor-content-only-controls__media{border-color:#ccc;padding-left:32px;width:100%}.block-editor-content-only-controls__media-replace-flow{display:block}.block-editor-content-only-controls__media-row{align-items:center}.block-editor-content-only-controls__media-placeholder{background:#fff linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:24px;padding:0;width:24px}.block-editor-content-only-controls__media-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.block-editor-content-only-controls__media-thumbnail{align-self:center;border-radius:2px;height:20px;overflow:hidden;width:20px}.block-editor-content-only-controls__media-thumbnail img{height:100%!important;-o-object-fit:cover;object-fit:cover;width:100%!important}.block-editor-content-only-controls{position:relative}.block-editor-content-only-controls__media-reset{border-radius:2px;left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-editor-content-only-controls__media-reset{transition:opacity .1s ease-in-out}}.block-editor-content-only-controls:hover .block-editor-content-only-controls__media-reset,.block-editor-content-only-controls__media-reset:focus,.block-editor-content-only-controls__media-reset:hover{opacity:1}@media (hover:none){.block-editor-content-only-controls__media-reset{opacity:1}}.block-editor-content-only-controls__rich-text{background:#fff;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;color:#1e1e1e;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin:0;padding:6px 8px;width:100%}@media not (prefers-reduced-motion){.block-editor-content-only-controls__rich-text{transition:box-shadow .1s linear}}@media (min-width:600px){.block-editor-content-only-controls__rich-text{font-size:13px;line-height:normal}}.block-editor-content-only-controls__rich-text:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-content-only-controls__rich-text::-moz-placeholder{color:rgba(30,30,30,.62)}.block-editor-content-only-controls__rich-text::placeholder{color:rgba(30,30,30,.62)}.block-editor-content-only-controls__rich-text{border-color:#949494}.block-editor-content-only-controls__rich-text::-moz-placeholder{color:color-mix(in srgb,#1e1e1e,transparent 38%)}.block-editor-content-only-controls__rich-text::placeholder{color:color-mix(in srgb,#1e1e1e,transparent 38%)}.block-editor-content-only-controls__rich-text{min-height:40px;padding:12px}.block-editor-block-fields__container{padding:0 16px 16px}.block-editor-block-fields__container:first-of-type{border-block-start:1px solid #e0e0e0;padding-block-start:8px}.block-editor-block-fields__header{margin-bottom:4px;padding:8px 0}.block-editor-block-fields__header-icon{flex:0 0 24px}.block-editor-block-fields__header-title{flex:1;margin:0!important}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{flex-direction:row}.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__position-control-item{max-inline-size:max(var(--anchor-width) - 2 * var(--wp-ui-popup-padding),223px)}.block-editor-hooks__position-control-item-hint{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-block-start:4px}div.block-editor-bindings__panel{grid-template-columns:repeat(auto-fit,minmax(100%,1fr))}div.block-editor-bindings__panel button:hover .block-editor-bindings__item span{color:inherit}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.elements-block-support-panel.elements-block-support-panel .elements-block-support-panel__inner-wrapper{row-gap:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-constrained .components-base-control{margin-bottom:0}.block-editor-hooks__layout-constrained-helptext{color:#757575;font-size:12px;margin-bottom:0}.layout-block-support-panel .block-editor-hooks__flex-layout-controls{grid-column:1/-1}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__grid-layout-columns-and-rows-controls,.block-editor-hooks__grid-layout-minimum-width-control{border:0;margin:0;padding:0}.block-editor__spacing-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}@media not (prefers-reduced-motion){.block-editor-block-toolbar{transition:border-color .1s linear,box-shadow .1s linear}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;border:0;border-left:1px solid #ddd;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button:before{background:color-mix(in srgb,var(--wp-block-synced-color) 10%,transparent);border-radius:2px}.block-editor-block-toolbar .components-button.block-editor-block-toolbar__block-icon-button[aria-disabled=true],.block-editor-block-toolbar .components-button.block-editor-block-toolbar__block-icon-button[aria-disabled=true]:hover{color:#1e1e1e}.block-editor-block-toolbar.is-connected .block-editor-block-toolbar__block-icon,.block-editor-block-toolbar.is-synced .block-editor-block-toolbar__block-icon{color:var(--wp-block-synced-color)}.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2),.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar,.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar-group,.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-left:none}.block-editor-block-toolbar .components-toolbar-group:empty{display:none}.block-editor-block-contextual-toolbar{background-color:#fff;display:block;flex-shrink:3;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.components-accessible-toolbar{border:none;border-radius:0}.block-editor-block-contextual-toolbar.is-unstyled{box-shadow:0 1px 0 0 rgba(0,0,0,.133)}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{overflow:auto;overflow-y:hidden}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar{height:12px;width:12px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-track{background-color:transparent}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#e0e0e0;border:3px solid transparent;border-radius:8px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover::-webkit-scrollbar-thumb{background-color:#949494}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#e0e0e0 transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover{scrollbar-color:#949494 transparent}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{will-change:transform}@media (hover:none){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#949494 transparent}}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-gutter:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after{display:none}.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector{margin-bottom:-1px;margin-top:-1px;position:relative}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{align-items:center;background-color:#1e1e1e;border-radius:100%;content:"";display:inline-flex;height:2px;position:absolute;top:15px;width:2px}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar__pattern-overrides-popover .components-popover__content{min-width:260px;padding:16px}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-flex}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)){width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)) svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)):after{content:attr(aria-label);font-size:12px}.show-icon-labels .block-editor-block-toolbar .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button{text-wrap:nowrap;border-bottom-left-radius:0;border-top-left-radius:0;padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{position:relative;width:auto}@media (min-width:600px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#e0e0e0;content:"";height:1px;margin-top:-.5px;position:absolute;right:50%;top:50%;transform:translate(50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:1px solid #ddd;margin-left:-6px;margin-right:6px;white-space:nowrap}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-right:6px}.block-editor-block-toolbar-change-design-content-wrapper{padding:12px;width:320px}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list{grid-gap:12px;display:grid;grid-template-columns:1fr 1fr}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{gap:16px;height:100%;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area .block-editor-tabbed-sidebar{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:4px 4px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 4px 4px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tablist{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:var(--wpds-cursor-control,pointer);display:inline-flex;outline:none;padding:0}@media not (prefers-reduced-motion){.block-editor-inserter__toggle.components-button{transition:color .2s ease}}.block-editor-inserter__menu{height:100%;overflow:visible;position:relative}@media (min-width:782px){.block-editor-inserter__menu.show-panel{width:630px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{background-color:#fff;border-bottom:1px solid transparent;padding:16px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.block-editor-inserter__search{transition:border-bottom-color .1s linear}}.block-editor-inserter__search.is-scrolled{border-bottom-color:#e0e0e0}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto;position:relative}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:0 16px;position:relative}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 0 12px;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__no-results,.block-editor-inserter__patterns-loading{padding:32px;text-align:center}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__preview-container__popover{top:16px!important}.block-editor-inserter__preview-container{display:none;max-height:calc(100% - 32px);overflow-y:hidden;padding:16px;width:280px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-inserter__media-list__list-item{height:100%}.block-editor-inserter__preview-container .block-editor-block-card{padding-bottom:4px;padding-left:0;padding-right:0}.block-editor-inserter__insertable-blocks-at-selection{border-bottom:1px solid #e0e0e0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__media-tabs-container{display:flex;flex-direction:column;flex-grow:1;justify-content:space-between;padding:0 16px 16px}.block-editor-inserter__media-tabs-container{padding-top:16px}.block-editor-inserter__category-tablist{margin-bottom:8px}.block-editor-inserter__category-panel{display:flex;flex-direction:column;outline:1px solid transparent;padding:0 16px}@media (min-width:782px){.block-editor-inserter__category-panel{background:#f0f0f0;border-right:1px solid #e0e0e0;border-top:1px solid #e0e0e0;height:calc(100% + 1px);padding:0;position:absolute;right:350px;top:-1px;width:280px}.block-editor-inserter__category-panel .block-editor-block-patterns-list,.block-editor-inserter__category-panel .block-editor-inserter__media-list{padding:0 24px 16px}}.block-editor-inserter__patterns-category-panel-header{padding:8px 0}@media (min-width:782px){.block-editor-inserter__patterns-category-panel-header{padding:8px 24px}}.block-editor-inserter__patterns-category-no-results{margin-top:24px}.block-editor-inserter__patterns-filter-help{border-top:1px solid #ddd;color:#757575;min-width:280px;padding:16px}.block-editor-block-patterns-list,.block-editor-inserter__media-list{flex-grow:1;height:100%;overflow-y:auto}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;border-radius:2px;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:right;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;overflow-x:visible;overflow-y:auto;padding:24px;position:absolute;right:0;top:72px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:right;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-right:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container{width:380px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-gap:32px;display:grid;grid-template-columns:repeat(1,1fr);margin-bottom:16px}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{height:inherit;max-height:800px;min-height:100px}.components-heading.block-editor-inserter__patterns-category-panel-title{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-inserter__media-library-button.components-button,.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-mobile-screen{align-self:stretch;display:flex;flex-direction:column}.block-editor-inserter__media-panel{display:flex;flex:1;flex-direction:column;min-height:0;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{flex:0 1 auto;min-height:100%;padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:24px}@media (min-width:782px){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:0;padding:16px 24px}}.block-editor-inserter__media-panel .block-editor-inserter__no-results{flex-grow:1}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer{flex-shrink:0;padding-bottom:16px;padding-top:16px}@media (min-width:782px){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer{padding-left:24px;padding-right:24px}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-attach.components-button{justify-content:center;padding:16px}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results{display:flex;flex-direction:column;flex-grow:1;min-height:0}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list{animation:inserter-media-panel-pulse 1s ease-in-out infinite;opacity:1}}.block-editor-inserter__media-panel.has-footer .block-editor-inserter__media-list{padding-bottom:0}@keyframes inserter-media-panel-pulse{0%,to{opacity:1}50%{opacity:.5}}.block-editor-inserter__media-panel-detach-modal{z-index:1000001}.block-editor-inserter__media-panel-detach-modal p{margin-top:0}.block-editor-inserter__media-panel-detach-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}.block-editor-inserter__media-list__list-item{cursor:var(--wpds-cursor-control,pointer);margin-bottom:24px;position:relative}.block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list__list-item[draggable=true] .block-editor-inserter__media-list__list-item{cursor:grab}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview>*{outline-color:rgba(0,0,0,.3)}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button,.block-editor-inserter__media-list__list-item:focus-within .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{left:8px;position:absolute;top:8px}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;display:none}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}@media not (prefers-reduced-motion){.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{transition:outline .1s linear}}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input{height:40px}.block-editor-inserter__pattern-panel-placeholder{display:none}.block-editor-inserter__menu.is-zoom-out{display:flex}@media (min-width:782px){.block-editor-inserter__menu.is-zoom-out.show-panel:after{content:"";display:block;height:100%;width:300px}}@media (max-width:959px){.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}}.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}.block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__help-text{display:none;padding:0 24px 16px}@media (min-width:480px){.block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__help-text{display:block}}.spacing-sizes-control{border:0;margin:0;padding:0}.spacing-sizes-control .spacing-sizes-control__label,.spacing-sizes-control .spacing-sizes-control__unit-control{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__preset-range{flex:1;margin-bottom:0}.spacing-sizes-control__header{height:16px;margin-bottom:12px}.spacing-sizes-control__wrapper{align-items:center}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__wrapper .preset-input-control__icon{margin-right:-4px}.block-editor-block-visibility-modal{z-index:1000001}.block-editor-block-visibility-modal__options{border:0;list-style:none;margin:24px 0;padding:0}.block-editor-block-visibility-modal__options-item{align-items:center;display:flex;gap:24px;justify-content:space-between;margin:0 0 16px}.block-editor-block-visibility-modal__options-item:last-child{margin:0}.block-editor-block-visibility-modal__options-item--everywhere{align-items:start;flex-direction:column}.block-editor-block-visibility-modal__options-checkbox--everywhere{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-visibility-modal__options-icon--checked{fill:#ddd}.block-editor-block-visibility-modal__sub-options{padding-inline-start:12px;width:100%}.block-editor-block-visibility-modal__description{color:#757575;font-size:12px}.block-editor-block-visibility-info{align-items:center;display:flex;justify-content:start;margin:0 16px 16px;padding-bottom:4px;padding-top:4px}
\ No newline at end of file
+:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-autocompleters__block[aria-selected=true] .block-editor-block-icon{color:inherit!important}.block-editor-global-styles-background-panel__inspector-media-replace-container{position:relative}.block-editor-global-styles-background-panel__inspector-media-replace-container.is-open{background-color:#f0f0f0}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item{border:0;flex-grow:1}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-preview-inner{height:100%}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown .block-editor-global-styles-background-panel__dropdown-toggle{height:40px}.block-editor-global-styles-background-panel__image-tools-panel-item{border:1px solid #ddd;grid-column:1/-1;position:relative}.block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon{display:none}.block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button{color:#1e1e1e;display:block;width:100%}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover{color:var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading{height:100%;padding:10px 0 0;position:absolute;width:100%;z-index:1}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading svg{margin:0}.block-editor-global-styles-background-panel__dropdown-toggle{background:transparent;border:none;cursor:var(--wpds-cursor-control,pointer);height:100%;padding-left:32px;padding-right:12px;width:100%}.block-editor-global-styles-background-panel__reset{left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-editor-global-styles-background-panel__reset{transition:opacity .1s ease-in-out}}.block-editor-global-styles-background-panel__reset.has-local-override-from-global-styles__reset{align-items:center;display:inline-flex;justify-content:center;margin-block:0;margin-inline:0 8px;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.block-editor-global-styles-background-panel__reset.block-editor-global-styles-background-panel__reset{border-radius:2px}.block-editor-global-styles-background-panel__dropdown-toggle:hover+.block-editor-global-styles-background-panel__reset,.block-editor-global-styles-background-panel__reset:focus,.block-editor-global-styles-background-panel__reset:focus-within,.block-editor-global-styles-background-panel__reset:hover{opacity:1}@media (hover:none){.block-editor-global-styles-background-panel__reset{opacity:1}}.block-editor-global-styles-background-panel__inspector-media-replace-title{text-align:start;white-space:normal;word-break:break-all}.block-editor-global-styles-background-panel__inspector-image-indicator{background:#fff linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);background-size:cover;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:20px;outline:1px solid transparent;width:20px}.block-editor-global-styles-background-panel__dropdown-content-wrapper{min-width:260px;overflow-x:hidden}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper{background-color:#f0f0f0;border:1px solid #ddd;border-radius:2px;width:100%}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image{max-height:180px}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker:after{content:none}.modal-open .block-editor-global-styles-background-panel__popover{z-index:159890}.block-editor-global-styles-background-panel__media-replace-popover .components-popover__content{width:226px}.block-editor-global-styles-background-panel__media-replace-popover .components-button{padding:0 8px}.block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right{margin-right:16px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}iframe[name=editor-canvas]{box-sizing:border-box;display:block;height:100%;width:100%}@media not (prefers-reduced-motion){iframe[name=editor-canvas]{transition:all .4s cubic-bezier(.46,.03,.52,.96)}}iframe[name=editor-canvas]{background-color:var(--wp-editor-canvas-background)}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.block-editor-block-inspector .block-editor-html-element-control:where(:not(:last-child)),.block-editor-block-inspector .block-editor-image-size-control:where(:not(:last-child)),.block-editor-block-inspector .components-base-control:where(:not(:last-child)),.block-editor-block-inspector .components-radio-control:where(:not(:last-child)){margin-bottom:16px}.block-editor-block-inspector .block-editor-html-element-control .components-base-control,.block-editor-block-inspector .block-editor-image-size-control .components-base-control,.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control,.block-editor-block-inspector .components-range-control .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector-edit-contents{margin:0 16px 16px}.block-editor-block-inspector-edit-contents .block-editor-block-inspector-edit-contents__button{justify-content:center}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;right:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;position:absolute;will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter{justify-content:center;right:calc(50% - 12px);top:calc(50% - 12px)}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter{left:0;line-height:0;position:absolute;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled{display:none}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon svg,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg{transform:rotate(-45deg)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}@keyframes hide-during-dragging{to{position:fixed;transform:translate(-9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;margin-bottom:8px;margin-top:8px;overflow:visible;pointer-events:all;position:static;width:auto}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-right:56px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-right:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar{overflow:visible}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}@media not (prefers-reduced-motion){.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards}}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{position:absolute;right:-57px}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:before{content:""}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:after{display:none}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{background-color:#fff;border:1px solid #1e1e1e;padding-left:6px;padding-right:6px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{padding-left:12px;padding-right:12px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{margin-right:-1px;position:relative;right:auto}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container,.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:1px solid #1e1e1e}.is-dragging-components-draggable .components-tooltip{display:none}.components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button{pointer-events:all;position:absolute;right:50%;top:50%;transform:translateX(50%) translateY(-50%)}.block-editor-block-tools--is-dragging>.popover-slot{display:none}.block-editor-block-lock-modal{z-index:1000001}.block-editor-block-lock-modal__options{border:0;margin:0;padding:0}.block-editor-block-lock-modal__options legend{margin-bottom:16px;padding:0}.block-editor-block-lock-modal__checklist{list-style:none;margin:0;padding:0}.block-editor-block-lock-modal__options-all{padding:12px 0}.block-editor-block-lock-modal__options-all .components-checkbox-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 32px 12px 0}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{fill:#1e1e1e;flex-shrink:0;margin-left:12px}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding-top:16px}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-right:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-right:1px solid #1e1e1e;margin-left:-6px;margin-right:6px!important}.block-editor-block-allowed-blocks-control:not(:only-child){margin-top:16px}.block-editor-block-allowed-blocks-control__button{justify-content:center;width:100%}.block-editor-block-allowed-blocks-modal{z-index:1000001}.block-editor-block-allowed-blocks-modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:-24px;margin:0 -24px -24px;padding:16px 24px;position:sticky;right:0;z-index:1}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0;white-space:nowrap}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(-1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.block-editor-block-breadcrumb__button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{color:#1e1e1e;padding:16px}.block-editor-block-card.is-parent{padding-bottom:4px}.block-editor-block-card.is-child{padding-top:4px}.block-editor-block-card__parent-select-button{align-items:start;height:auto!important;padding:0;text-align:start}.block-editor-block-card__title{align-items:center;display:flex;flex-wrap:wrap;font-weight:var(--wpds-typography-font-weight-emphasis,600);gap:4px 8px}.block-editor-block-card__title.block-editor-block-card__title{font-size:13px;line-height:1.4;margin:0}.block-editor-block-card__name{padding:3px 0}.block-editor-block-card .block-editor-block-icon,.block-editor-block-card__child-indicator-icon{flex:0 0 24px;height:24px;margin-left:12px;margin-right:0;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 0 0 16px;width:50%}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-left:0;padding-right:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;right:0;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:-moz-max-content;width:max-content}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-left:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-left:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{align-items:center;background-color:transparent;bottom:0;display:flex;justify-content:center;left:0;opacity:0;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{transition:all .1s linear .1s}}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon{background:transparent linear-gradient(45deg,transparent 47.5%,#fff 0,#fff 52.5%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1.5px #fff;display:inline-block;height:20px;padding:0;width:20px}.block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{background-color:#757575;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);opacity:1}.block-editor-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.block-editor-block-manager__category{isolation:isolate;margin:0 0 24px}.block-editor-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.block-editor-block-manager__category-title .components-checkbox-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-manager__checklist{margin-top:0}.block-editor-block-manager__category-title,.block-editor-block-manager__checklist-item{border-bottom:1px solid #ddd}.block-editor-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 16px 8px 0}.components-modal__content .block-editor-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.block-editor-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-left:10px}.block-editor-block-manager__results{border-top:1px solid #ddd}.block-editor-block-manager__disabled-blocks-count+.block-editor-block-manager__results{border-top-width:0}.block-editor-block-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:20px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:3px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:3px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{right:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{left:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button{overflow:hidden}.components-button.block-editor-block-mover-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 12px;text-transform:uppercase}.block-editor-block-patterns-list__list-item{cursor:var(--wpds-cursor-control,pointer);margin-bottom:16px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true]{cursor:grab}.block-editor-block-patterns-list__item{height:100%;outline:0;scroll-margin-bottom:56px;scroll-margin-top:24px}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{flex-grow:1;text-align:right}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:4px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{border-radius:4px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}@media not (prefers-reduced-motion){.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{transition:outline .1s linear}}.block-editor-block-patterns-list__item.is-selected .block-editor-block-preview__container:after{outline-color:#1e1e1e;outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container:after{outline-color:rgba(0,0,0,.3)}.block-editor-block-patterns-list__item[data-focus-visible] .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty){align-items:center;margin-top:8px;padding-bottom:4px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{height:24px;min-width:24px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon{fill:var(--wp-block-synced-color)}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination{border-top:1px solid #2f2f2f;justify-content:center;padding:4px}.show-icon-labels .block-editor-patterns__grid-pagination-button{width:auto}.show-icon-labels .block-editor-patterns__grid-pagination-button span{display:none}.show-icon-labels .block-editor-patterns__grid-pagination-button:before{content:attr(aria-label)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:-moz-max-content;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{margin:0;min-height:auto;overflow:visible;right:0;text-align:initial;top:0;transform-origin:top right;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-quick-navigation__item{font-weight:var(--wpds-typography-font-weight-default,400)}.block-editor-block-rename-modal{z-index:1000001}.block-editor-block-styles__preview-panel{display:none;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles{grid-column:1/-1}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{border-color:#ddd;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ddd;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;-moz-text-align-last:center;text-align-last:center;white-space:normal;word-break:break-all}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover-preview-container{bottom:0;pointer-events:none;position:absolute;right:0;top:-1px;width:100%}.block-editor-block-switcher__popover-preview{overflow:hidden}.block-editor-block-switcher__popover-preview .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:4px;box-shadow:none;outline:none;overflow:auto;width:300px}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview.is-pattern-list-preview{overflow:unset}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:var(--wpds-cursor-control,pointer)}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border-radius:2px;height:100%}@media not (prefers-reduced-motion){.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{transition:all .05s ease-in-out}}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid transparent;position:relative}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:var(--wpds-cursor-control,pointer);font-size:12px;padding:4px;text-align:center}.block-editor-block-switcher__no-transforms{color:#757575;margin:0;padding:6px 8px}.block-editor-block-switcher__binding-indicator{display:block;padding:8px}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{-moz-column-count:3;column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:var(--wpds-cursor-control,pointer)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item{scroll-margin:5px 0}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:var(--wpds-cursor-control,pointer);font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:4px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:stretch;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:64px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:right;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;width:100%}@media not (prefers-reduced-motion){.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{transition:transform .5s,z-index .5s}}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{box-sizing:border-box;padding:0 16px 16px}.block-editor-block-variation-transforms:where(fieldset){border:0;margin:0;min-inline-size:0}.block-editor-block-variation-transforms__button{justify-content:center;width:100%}.components-border-radius-control__header{height:16px;margin-bottom:12px}.components-border-radius-control{border:0;margin:0 0 12px;padding:0}.components-border-radius-control legend{margin-bottom:0}.components-border-radius-control .components-border-radius-control__linked-button{display:flex;justify-content:center}.components-border-radius-control .components-border-radius-control__linked-button svg{margin-left:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{border:0;margin:0;min-width:0;padding:0}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px)}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__inner-wrapper{grid-column:1/-1;row-gap:0}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__inner-wrapper>*{grid-column:1/-1}.block-editor-panel-color-gradient-settings__dropdown-content{min-height:160px}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-panel-color-gradient-settings__contrast-notice{margin-top:16px}.block-editor-color-gradient-item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0;position:relative}.block-editor-color-gradient-item:nth-child(1 of .block-editor-color-gradient-item){border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px}.block-editor-color-gradient-item:nth-last-child(1 of .block-editor-color-gradient-item){border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-color-gradient-item>div,.block-editor-color-gradient-item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:right}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{max-width:calc(100% - 44px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-tools-panel-color-gradient-settings__dropdown>button.has-contrast-warning .block-editor-panel-color-gradient-settings__color-name{max-width:calc(100% - 72px)}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-panel-color-gradient-settings__reset{left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-editor-panel-color-gradient-settings__reset{transition:opacity .1s ease-in-out}}.block-editor-panel-color-gradient-settings__reset.block-editor-panel-color-gradient-settings__reset{border-radius:2px}.block-editor-panel-color-gradient-settings__dropdown:hover+.block-editor-panel-color-gradient-settings__reset,.block-editor-panel-color-gradient-settings__reset:focus,.block-editor-panel-color-gradient-settings__reset:hover{opacity:1}@media (hover:none){.block-editor-panel-color-gradient-settings__reset{opacity:1}}.block-editor-panel-color-gradient-settings__dropdown.has-contrast-warning+.block-editor-panel-color-gradient-settings__reset{left:28px}.block-editor-panel-color-gradient-settings__contrast-warning{left:0;margin:auto 8px;position:absolute;top:8px}.block-editor-panel-color-gradient-settings__contrast-warning.block-editor-panel-color-gradient-settings__contrast-warning{border-radius:2px}.block-editor-date-format-picker{border:none;margin:0 0 16px;padding:0}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-dimension-control{border:0;margin:0;padding:0}.block-editor-duotone-control__popover.components-popover>.components-popover__content{padding:8px;width:260px}.block-editor-duotone-control__popover.components-popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover.components-popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__unset-indicator{background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-fit-text-size-warning{grid-column:span 2}.components-font-appearance-control [role=option]{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles__toggle-icon{fill:currentColor}.block-editor-global-styles__shadow-popover-container{width:230px}.block-editor-global-styles__shadow__list{display:flex;flex-wrap:wrap;gap:12px;padding-bottom:8px}.block-editor-global-styles__clear-shadow{text-align:left}.block-editor-global-styles-state-control{margin-top:-4px}.block-editor-global-styles-state-control__badges{min-height:24px}.block-editor-global-styles-state-control__badge-tooltip-trigger{display:inline-flex;max-width:100%}.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{border:1px solid #ddd;border-radius:2px;display:block;padding:0;position:relative}.block-editor-global-styles-filters-panel__dropdown-toggle,.block-editor-global-styles__shadow-dropdown-toggle{padding:8px;width:100%}.block-editor-global-styles-filters-panel__dropdown-toggle.is-open,.block-editor-global-styles__shadow-dropdown-toggle.is-open{background-color:#f0f0f0}.block-editor-global-styles__shadow-editor__remove-button{left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-editor-global-styles__shadow-editor__remove-button{transition:opacity .1s ease-in-out}}.block-editor-global-styles__shadow-dropdown:hover .block-editor-global-styles__shadow-editor__remove-button,.block-editor-global-styles__shadow-editor__remove-button:focus,.block-editor-global-styles__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.block-editor-global-styles__shadow-editor__remove-button{opacity:1}}.block-editor-global-styles__shadow-indicator{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;color:#2f2f2f;cursor:var(--wpds-cursor-control,pointer);display:inline-flex;height:26px;padding:0;transform:scale(1);width:26px}@media not (prefers-reduced-motion){.block-editor-global-styles__shadow-indicator{transition:transform .1s ease}}.block-editor-global-styles__shadow-indicator{will-change:transform}.block-editor-global-styles__shadow-indicator:focus{border:2px solid #757575}.block-editor-global-styles__shadow-indicator:hover{transform:scale(1.2)}.block-editor-global-styles__shadow-indicator.unset{background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-global-styles-advanced-panel__custom-css-input{margin-bottom:16px}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-panel-duotone-settings__reset{left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-editor-panel-duotone-settings__reset{transition:opacity .1s ease-in-out}}.block-editor-global-styles-filters-panel__dropdown:hover .block-editor-panel-duotone-settings__reset,.block-editor-panel-duotone-settings__reset:focus,.block-editor-panel-duotone-settings__reset:hover{opacity:1}@media (hover:none){.block-editor-panel-duotone-settings__reset{opacity:1}}.is-inherited-from-global-styles .components-base-control__label,.is-inherited-from-global-styles .components-input-control__label{text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:.2em}.is-inherited-from-global-styles .block-editor-global-styles-background-panel__inspector-media-replace-title,.is-inherited-from-global-styles .block-editor-panel-color-gradient-settings__color-name,.is-inherited-from-global-styles .block-editor-panel-duotone-settings__label{border-bottom:1px dotted}.has-local-override-from-global-styles{position:relative}.global-styles-inheritance-affordance{align-items:center;display:flex;height:16px;inset-block-start:0;inset-inline-end:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}.global-styles-inheritance-affordance--offset-toggle{inset-inline-end:32px}.global-styles-inheritance-affordance .has-local-override-from-global-styles__reset{margin-inline-start:0!important;pointer-events:auto}.has-local-override-from-global-styles__reset{align-items:center;background:transparent!important;border-radius:50%!important;box-shadow:none!important;cursor:var(--wpds-cursor-control,pointer);display:inline-flex!important;height:14px!important;justify-content:center;letter-spacing:normal;margin-inline-start:6px;min-width:14px!important;overflow:hidden;padding:0!important;position:relative;text-transform:none;vertical-align:middle;width:14px!important}.has-local-override-from-global-styles__reset:focus,.has-local-override-from-global-styles__reset:hover{background:transparent!important}.has-local-override-from-global-styles__reset:focus .has-local-override-from-global-styles__dot,.has-local-override-from-global-styles__reset:hover .has-local-override-from-global-styles__dot{display:none}.has-local-override-from-global-styles__reset:focus .has-local-override-from-global-styles__reset-icon,.has-local-override-from-global-styles__reset:hover .has-local-override-from-global-styles__reset-icon{display:block}.has-local-override-from-global-styles__reset:focus-visible{outline:1.5px solid var(--wp-admin-theme-color,#007cba);outline-offset:1px}.has-local-override-from-global-styles__reset.block-editor-panel-color-gradient-settings__reset{justify-content:center;margin-block:0;margin-inline-start:0;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.has-local-override-from-global-styles__reset.block-editor-global-styles__shadow-editor__remove-button,.has-local-override-from-global-styles__reset.block-editor-panel-duotone-settings__reset{inset-inline-end:8px;justify-content:center;margin-block:0;margin-inline-start:0;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.has-local-override-from-global-styles__dot{background-color:var(--wp-admin-theme-color,#007cba);border-radius:50%;display:block;height:8px;width:8px}.has-local-override-from-global-styles__reset-icon{color:var(--wp-admin-theme-color,#007cba);display:none;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer{z-index:30}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .components-popover__content *{pointer-events:none}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer.is-dropping-allowed .block-editor-grid-visualizer__drop-zone{pointer-events:all}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .block-editor-inserter *{pointer-events:auto}.block-editor-grid-visualizer__grid{display:grid;position:absolute}.block-editor-grid-visualizer__cell{display:grid;position:relative}.block-editor-grid-visualizer__cell .block-editor-inserter{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:32}.block-editor-grid-visualizer__cell .block-editor-inserter .block-editor-grid-visualizer__appender{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 20%,transparent);color:inherit;height:100%;opacity:0;overflow:hidden;padding:0!important;width:100%}.block-editor-grid-visualizer__cell.is-highlighted .block-editor-grid-visualizer__drop-zone,.block-editor-grid-visualizer__cell.is-highlighted .block-editor-inserter{background:var(--wp-admin-theme-color)}.block-editor-grid-visualizer__cell .block-editor-grid-visualizer__appender:focus,.block-editor-grid-visualizer__cell:hover .block-editor-grid-visualizer__appender{background-color:color-mix(in srgb,currentColor 20%,transparent);opacity:1}.block-editor-grid-visualizer__drop-zone{background:hsla(0,0%,80%,.1);grid-column:1;grid-row:1;height:100%;min-height:8px;min-width:8px;width:100%}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer{z-index:30}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer .components-popover__content *{pointer-events:none}.block-editor-grid-item-resizer__box{border:1px solid var(--wp-admin-theme-color)}.block-editor-grid-item-resizer__box .components-resizable-box__handle.components-resizable-box__handle.components-resizable-box__handle{pointer-events:all}.block-editor-grid-item-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button{min-width:0!important;padding-left:0;padding-right:0;width:24px}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button svg{min-width:24px}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:before,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-grid-item-mover__move-vertical-button-container{display:flex;position:relative}@media (min-width:600px){.block-editor-grid-item-mover__move-vertical-button-container{flex-direction:column;justify-content:space-around}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button{height:20px!important;min-width:0!important;width:100%}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button:before{height:calc(100% - 4px)}.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-down-button svg,.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-up-button svg{flex-shrink:0;height:20px}.editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container{height:40px;position:relative;top:-4px}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container{position:relative}@media (min-width:600px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#e0e0e0;content:"";height:100%;position:absolute;top:0;width:1px}}@media (min-width:782px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left{padding-left:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left:before{left:0}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right{padding-right:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right:before{right:0}@media (min-width:600px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{background:#e0e0e0;content:"";height:1px;margin-top:-.5px;position:absolute;right:50%;top:50%;transform:translate(50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover-button{white-space:nowrap}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#ddd;height:24px;top:4px}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container:before{background:#ddd;width:calc(100% - 24px)}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-iframe__container{height:100%;width:100%}.block-editor-iframe__scale-container{height:100%}.block-editor-iframe__scale-container.is-zoomed-out{left:0;position:absolute;width:var(--wp-block-editor-iframe-zoom-out-scale-container-width,100vw)}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:transparent;color:#1e1e1e;cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;font-size:13px;justify-content:center;padding:8px;width:100%;word-break:break-word}@media not (prefers-reduced-motion){.components-button.block-editor-block-types-list__item{transition:all .05s ease-in-out}}.components-button.block-editor-block-types-list__item{height:auto;position:relative}.components-button.block-editor-block-types-list__item:disabled,.components-button.block-editor-block-types-list__item[aria-disabled=true]{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-types-list__item-icon{color:#1e1e1e;padding:12px 20px}@media not (prefers-reduced-motion){.block-editor-block-types-list__item-icon{transition:all .05s ease-in-out}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}@media not (prefers-reduced-motion){.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;hyphens:auto;padding:4px 2px 8px}.modal-open .block-editor-inspector-list-view-content-popover{z-index:99999}.block-editor-block-inspector__tabs [role=tablist]{width:100%}.block-editor-inspector-popover-header{margin-bottom:16px}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview{flex-wrap:wrap;gap:4px}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview .components-button.has-icon{padding:4px;width:auto}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview .block-editor-link-control_link-information{margin-left:0;min-width:100%}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__help{color:#757575;font-size:12px;font-style:normal;margin-bottom:0;margin-top:-8px;padding:0 16px}.block-editor-link-control__search-input-container,.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field .components-base-control__label{color:#1e1e1e}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{padding:8px 16px 16px}.block-editor-link-control__search-results-wrapper{position:relative}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";display:block;left:16px;pointer-events:none;position:absolute;right:-1px;z-index:100}.block-editor-link-control__search-results-wrapper:before{bottom:auto;height:8px;top:0}.block-editor-link-control__search-results-wrapper:after{bottom:0;height:16px;top:auto}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:right}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:transparent;color:inherit;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__preview{background:transparent;border:0;padding:16px}.block-editor-link-control__preview .block-editor-link-control__link-information{margin-left:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__preview .block-editor-link-control__link-information .block-editor-link-control__preview-info{color:#757575;font-size:12px;line-height:1.1;word-break:break-all}.block-editor-link-control__preview.is-url-title .block-editor-link-control__preview-title{word-break:break-all}.block-editor-link-control__preview .block-editor-link-control__preview-icon,.block-editor-link-control__preview .block-editor-link-control__preview-image{background-color:#f0f0f0;border-radius:2px;flex-shrink:0;height:32px;position:relative;width:32px}.block-editor-link-control__preview .block-editor-link-control__preview-icon img{width:16px}.block-editor-link-control__preview.is-error .block-editor-link-control__preview-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__preview .block-editor-link-control__preview-title{line-height:var(--wpds-typography-line-height-sm,20px)}.block-editor-link-control__preview .block-editor-link-control__preview-title:focus{box-shadow:none}.block-editor-link-control__preview .block-editor-link-control__preview-title:focus-visible{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;text-decoration:none}.block-editor-link-control__preview .block-editor-link-control__preview-title mark{background-color:transparent;color:inherit;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-link-control__preview .block-editor-link-control__preview-title span{font-weight:400}.block-editor-link-control__preview .block-editor-link-control__preview-title .components-external-link__icon{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon img,.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon svg{opacity:0}.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon:before{background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s}}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;position:absolute;right:0;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__preview-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__settings{border:0;margin:0;padding:0}.block-editor-link-control__setting{flex:1;margin-bottom:0;padding:8px 24px}.block-editor-link-control__setting .components-base-control:not(.components-input-control) .components-base-control__field{display:flex}.block-editor-link-control__setting .components-base-control__field .components-checkbox-control__label{color:#1e1e1e}.block-editor-link-control__setting input{margin-right:0}.is-preview .block-editor-link-control__setting{padding:20px 0 8px 8px}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-right:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true]{color:#1e1e1e}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{visibility:visible}@media not (prefers-reduced-motion){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition:transform .1s ease}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(-90deg)}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);visibility:visible}@media not (prefers-reduced-motion){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition:transform .1s ease}}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{bottom:auto;left:40px;position:absolute;right:auto;top:calc(50% - 8px)}.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner{left:12px;top:calc(50% + 4px)}.link-preview-button.components-button{border-color:#949494;height:auto;padding:12px;width:100%}.link-preview-button__image-container{flex-shrink:0;height:24px;width:24px}.link-preview-button__image{border-radius:2px;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.link-preview-button__content,.link-preview-button__details{flex:1;min-width:0}.link-preview-button__hint,.link-preview-button__title{display:block;min-width:0;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap;width:100%}.link-preview-button__title{color:#1e1e1e;display:block;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:4px}.link-preview-button__hint{color:#757575;font-size:12px;font-weight:400}.link-preview-button__icon{color:#1e1e1e}.link-preview-button__badges{margin-top:8px}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-tree.is-dragging tbody{pointer-events:none}.block-editor-list-view-leaf{position:relative;transform:translateY(0)}.block-editor-list-view-leaf.is-draggable,.block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents{cursor:grab}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.block-editor-list-view-leaf .block-editor-list-view-block-select-button svg{fill:currentColor}@media (forced-colors:active){.block-editor-list-view-leaf .block-editor-list-view-block-select-button svg{fill:CanvasText}}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-normal{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-normal{transform:translateY(0)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-up{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-up{transform:translateY(-32px)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-down{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-down{transform:translateY(32px)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks{transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transform:translateY(calc(-32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transform:translateY(calc(32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}.block-editor-list-view-leaf.is-dragging{opacity:0;pointer-events:none;right:0;z-index:-9999}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;box-sizing:border-box;color:inherit;display:flex;font-family:inherit;font-size:13px;font-weight:400;height:32px;margin:0;padding:6px 0 6px 4px;position:relative;text-align:right;text-decoration:none;white-space:nowrap;width:100%}@media not (prefers-reduced-motion){.block-editor-list-view-leaf .block-editor-list-view-block-contents{transition:box-shadow .1s linear}}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";left:-29px;pointer-events:none;position:absolute;right:0;top:0;z-index:2}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{left:0}.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));z-index:1}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{opacity:1}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:__wp-base-styles-fade-in .08s linear 0s;animation-fill-mode:forwards}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-left:4px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:28px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper{width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper>*{min-width:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg{position:relative;right:2px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{background:#f0f0f0;border-radius:2px;box-sizing:border-box;color:#2f2f2f;font-size:12px;left:0;line-height:20px;max-width:100%;overflow:hidden;padding:2px 8px;position:absolute;text-overflow:ellipsis;transform:translateY(-50%);white-space:nowrap}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.3);color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__block-visibility,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky{line-height:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images{display:flex}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image{background-size:cover;border-radius:1px;height:18px;width:18px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px #fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:first-child){margin-right:-6px}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-disabled{opacity:.2}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-disabled{transition:opacity .1s linear}}.block-editor-list-view-leaf.is-disabled:hover{opacity:.2}.block-editor-list-view-leaf.is-disabled .block-editor-list-view__expander{cursor:default}.block-editor-list-view-leaf.is-disabled .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-draggable-chip{opacity:.8}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{cursor:var(--wpds-cursor-control,pointer);height:24px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-right:192px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-right:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-right:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-right:48px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-right:72px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-right:96px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-right:120px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-right:144px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-right:168px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{visibility:visible}@media not (prefers-reduced-motion){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition:transform .2s ease}}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(-90deg)}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);visibility:visible}@media not (prefers-reduced-motion){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition:transform .2s ease}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-drop-indicator--preview{pointer-events:none}.block-editor-list-view-drop-indicator--preview .components-popover__content{overflow:hidden!important}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:4px;height:32px;overflow:hidden}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{background:rgba(var(--wp-admin-theme-color--rgb),.09)}.block-editor-list-view-placeholder{height:32px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;color:#fff;height:24px;margin:8px 24px 0 0;padding:0}.list-view-appender .block-editor-inserter__toggle.has-icon.is-next-40px-default-size{min-width:24px}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description{display:none}.block-editor-media-placeholder__url-input-form{min-width:260px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form{width:300px}}.block-editor-media-placeholder__url-input-form input{direction:ltr}.modal-open .block-editor-media-replace-flow__options{z-index:99999}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-replace-flow__media-upload-menu:not(:empty)+.block-editor-media-flow__url-input{border-top:1px solid #ddd;margin-top:8px;padding-bottom:8px}.block-editor-media-replace-flow__options.is-variant-toolbar .block-editor-media-replace-flow__media-upload-menu:not(:empty)+.block-editor-media-flow__url-input{border-top-color:#1e1e1e}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__preview.is-current{padding:0;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{padding:8px 0 0}.block-editor-multi-selection-inspector__card{padding:16px}.block-editor-multi-selection-inspector__card-title{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-multi-selection-inspector__card-description{color:#757575}.block-editor-multi-selection-inspector__card .block-editor-block-icon{height:24px;margin-right:-2px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal!important}.preset-input-control__wrapper>*{flex:1}.preset-input-control__wrapper>.preset-input-control__custom-toggle,.preset-input-control__wrapper>.preset-input-control__icon{flex:none}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{border-radius:2px;box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{background:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;font-size:14px;font-weight:var(--wpds-typography-font-weight-emphasis,600);z-index:100000}.block-editor-tabbed-sidebar{background-color:#fff;display:flex;flex-direction:column;flex-grow:1;height:100%;overflow:hidden}.block-editor-tabbed-sidebar__tablist-and-close-button{border-bottom:1px solid #ddd;display:flex;justify-content:space-between;padding-left:8px}.block-editor-tabbed-sidebar__close-button{align-self:center;background:#fff;order:1}.block-editor-tabbed-sidebar__tablist{margin-bottom:-1px}.block-editor-tabbed-sidebar__tabpanel{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto;scrollbar-gutter:auto}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{min-width:300px;width:auto}}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{left:8px;margin:0;position:absolute;top:calc(50% - 8px)}.block-editor-url-input__suggestions{max-height:200px}@media not (prefers-reduced-motion){.block-editor-url-input__suggestions{transition:all .15s ease-in-out}}.block-editor-url-input__suggestions{overflow-y:auto;padding:4px 0;width:302px}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:var(--wpds-cursor-control,pointer);display:block;font-size:13px;height:auto;min-height:36px;text-align:right;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{background:#ddd;content:"";display:block;height:24px;left:-1px;position:absolute;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01)}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-popover__additional-controls{border-top:1px solid #1e1e1e;padding:8px}.block-editor-url-popover__input-container{padding:8px}.block-editor-url-popover__row{align-items:center;display:flex;gap:4px}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1;gap:8px}.block-editor-url-popover__additional-controls .components-button.has-icon{height:auto;padding-left:8px;padding-right:8px;text-align:right}.block-editor-url-popover__additional-controls .components-button.has-icon>svg{margin-left:8px}.block-editor-url-popover__settings-toggle{flex-shrink:0}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__settings{border-top:1px solid #1e1e1e;display:block;padding:16px}.block-editor-url-popover__link-container-content{align-items:center;display:flex}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{align-items:center;display:flex;flex-grow:1;flex-shrink:1;margin-left:8px;max-width:350px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-url-popover__expand-on-click{align-items:center;display:flex;min-width:350px;white-space:nowrap}.block-editor-url-popover__expand-on-click .text{flex-grow:1}.block-editor-url-popover__expand-on-click .text p{line-height:16px;margin:0}.block-editor-url-popover__expand-on-click .text p.description{color:#757575;font-size:12px}.background-block-support-panel.background-block-support-panel .background-block-support-panel__inner-wrapper{row-gap:0}.block-editor-content-only-controls__link{border-color:#ccc;width:100%}.block-editor-content-only-controls__link-row{align-items:center}.block-editor-content-only-controls__link-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.block-editor-content-only-controls__media{border-color:#ccc;padding-left:32px;width:100%}.block-editor-content-only-controls__media-replace-flow{display:block}.block-editor-content-only-controls__media-row{align-items:center}.block-editor-content-only-controls__media-placeholder{background:#fff linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:24px;padding:0;width:24px}.block-editor-content-only-controls__media-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.block-editor-content-only-controls__media-thumbnail{align-self:center;border-radius:2px;height:20px;overflow:hidden;width:20px}.block-editor-content-only-controls__media-thumbnail img{height:100%!important;-o-object-fit:cover;object-fit:cover;width:100%!important}.block-editor-content-only-controls{position:relative}.block-editor-content-only-controls__media-reset{border-radius:2px;left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-editor-content-only-controls__media-reset{transition:opacity .1s ease-in-out}}.block-editor-content-only-controls:hover .block-editor-content-only-controls__media-reset,.block-editor-content-only-controls__media-reset:focus,.block-editor-content-only-controls__media-reset:hover{opacity:1}@media (hover:none){.block-editor-content-only-controls__media-reset{opacity:1}}.block-editor-content-only-controls__rich-text{background:#fff;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;color:#1e1e1e;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin:0;padding:6px 8px;width:100%}@media not (prefers-reduced-motion){.block-editor-content-only-controls__rich-text{transition:box-shadow .1s linear}}@media (min-width:600px){.block-editor-content-only-controls__rich-text{font-size:13px;line-height:normal}}.block-editor-content-only-controls__rich-text:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-content-only-controls__rich-text::-moz-placeholder{color:rgba(30,30,30,.62)}.block-editor-content-only-controls__rich-text::placeholder{color:rgba(30,30,30,.62)}.block-editor-content-only-controls__rich-text{border-color:#949494}.block-editor-content-only-controls__rich-text::-moz-placeholder{color:color-mix(in srgb,#1e1e1e,transparent 38%)}.block-editor-content-only-controls__rich-text::placeholder{color:color-mix(in srgb,#1e1e1e,transparent 38%)}.block-editor-content-only-controls__rich-text{min-height:40px;padding:12px}.block-editor-block-fields__container{padding:0 16px 16px}.block-editor-block-fields__container:first-of-type{border-block-start:1px solid #e0e0e0;padding-block-start:8px}.block-editor-block-fields__header{margin-bottom:4px;padding:8px 0}.block-editor-block-fields__header-icon{flex:0 0 24px}.block-editor-block-fields__header-title{flex:1;margin:0!important}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{flex-direction:row}.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__position-control-item{max-inline-size:max(var(--anchor-width) - 2 * var(--wp-ui-popup-padding),223px)}.block-editor-hooks__position-control-item-hint{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-block-start:4px}div.block-editor-bindings__panel{grid-template-columns:repeat(auto-fit,minmax(100%,1fr))}div.block-editor-bindings__panel button:hover .block-editor-bindings__item span{color:inherit}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.elements-block-support-panel.elements-block-support-panel .elements-block-support-panel__inner-wrapper{row-gap:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-constrained .components-base-control{margin-bottom:0}.block-editor-hooks__layout-constrained-helptext{color:#757575;font-size:12px;margin-bottom:0}.layout-block-support-panel .block-editor-hooks__flex-layout-controls{grid-column:1/-1}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__grid-layout-columns-and-rows-controls,.block-editor-hooks__grid-layout-minimum-width-control{border:0;margin:0;padding:0}.block-editor__spacing-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}@media not (prefers-reduced-motion){.block-editor-block-toolbar{transition:border-color .1s linear,box-shadow .1s linear}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;border:0;border-left:1px solid #ddd;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button:before{background:color-mix(in srgb,var(--wp-block-synced-color) 10%,transparent);border-radius:2px}.block-editor-block-toolbar .components-button.block-editor-block-toolbar__block-icon-button[aria-disabled=true],.block-editor-block-toolbar .components-button.block-editor-block-toolbar__block-icon-button[aria-disabled=true]:hover{color:#1e1e1e}.block-editor-block-toolbar.is-connected .block-editor-block-toolbar__block-icon,.block-editor-block-toolbar.is-synced .block-editor-block-toolbar__block-icon{color:var(--wp-block-synced-color)}.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2),.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar,.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar-group,.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-left:none}.block-editor-block-toolbar .components-toolbar-group:empty{display:none}.block-editor-block-contextual-toolbar{background-color:#fff;display:block;flex-shrink:3;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.components-accessible-toolbar{border:none;border-radius:0}.block-editor-block-contextual-toolbar.is-unstyled{box-shadow:0 1px 0 0 rgba(0,0,0,.133)}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{overflow:auto;overflow-y:hidden}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar{height:12px;width:12px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-track{background-color:transparent}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#e0e0e0;border:3px solid transparent;border-radius:8px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover::-webkit-scrollbar-thumb{background-color:#949494}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#e0e0e0 transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover{scrollbar-color:#949494 transparent}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{will-change:transform}@media (hover:none){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#949494 transparent}}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-gutter:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after{display:none}.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector{margin-bottom:-1px;margin-top:-1px;position:relative}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{align-items:center;background-color:#1e1e1e;border-radius:100%;content:"";display:inline-flex;height:2px;position:absolute;top:15px;width:2px}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar__pattern-overrides-popover .components-popover__content{min-width:260px;padding:16px}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-flex}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)){width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)) svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)):after{content:attr(aria-label);font-size:12px}.show-icon-labels .block-editor-block-toolbar .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button{text-wrap:nowrap;border-bottom-left-radius:0;border-top-left-radius:0;padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{position:relative;width:auto}@media (min-width:600px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#e0e0e0;content:"";height:1px;margin-top:-.5px;position:absolute;right:50%;top:50%;transform:translate(50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:1px solid #ddd;margin-left:-6px;margin-right:6px;white-space:nowrap}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-right:6px}.block-editor-block-toolbar-change-design-content-wrapper{padding:12px;width:320px}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list{grid-gap:12px;display:grid;grid-template-columns:1fr 1fr}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{gap:16px;height:100%;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area .block-editor-tabbed-sidebar{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:4px 4px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 4px 4px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tablist{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:var(--wpds-cursor-control,pointer);display:inline-flex;outline:none;padding:0}@media not (prefers-reduced-motion){.block-editor-inserter__toggle.components-button{transition:color .2s ease}}.block-editor-inserter__menu{height:100%;overflow:visible;position:relative}@media (min-width:782px){.block-editor-inserter__menu.show-panel{width:630px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{background-color:#fff;border-bottom:1px solid transparent;padding:16px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.block-editor-inserter__search{transition:border-bottom-color .1s linear}}.block-editor-inserter__search.is-scrolled{border-bottom-color:#e0e0e0}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto;position:relative}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:0 16px;position:relative}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 0 12px;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__no-results,.block-editor-inserter__patterns-loading{padding:32px;text-align:center}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__preview-container__popover{top:16px!important}.block-editor-inserter__preview-container{display:none;max-height:calc(100% - 32px);overflow-y:hidden;padding:16px;width:280px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-inserter__media-list__list-item{height:100%}.block-editor-inserter__preview-container .block-editor-block-card{padding-bottom:4px;padding-left:0;padding-right:0}.block-editor-inserter__insertable-blocks-at-selection{border-bottom:1px solid #e0e0e0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__media-tabs-container{display:flex;flex-direction:column;flex-grow:1;justify-content:space-between;padding:0 16px 16px}.block-editor-inserter__media-tabs-container{padding-top:16px}.block-editor-inserter__category-tablist{margin-bottom:8px}.block-editor-inserter__category-panel{display:flex;flex-direction:column;outline:1px solid transparent;padding:0 16px}@media (min-width:782px){.block-editor-inserter__category-panel{background:#f0f0f0;border-right:1px solid #e0e0e0;border-top:1px solid #e0e0e0;height:calc(100% + 1px);padding:0;position:absolute;right:350px;top:-1px;width:280px}.block-editor-inserter__category-panel .block-editor-block-patterns-list,.block-editor-inserter__category-panel .block-editor-inserter__media-list{padding:0 24px 16px}}.block-editor-inserter__patterns-category-panel-header{padding:8px 0}@media (min-width:782px){.block-editor-inserter__patterns-category-panel-header{padding:8px 24px}}.block-editor-inserter__patterns-category-no-results{margin-top:24px}.block-editor-inserter__patterns-filter-help{border-top:1px solid #ddd;color:#757575;min-width:280px;padding:16px}.block-editor-block-patterns-list,.block-editor-inserter__media-list{flex-grow:1;height:100%;overflow-y:auto}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;border-radius:2px;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:right;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;overflow-x:visible;overflow-y:auto;padding:24px;position:absolute;right:0;top:72px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:right;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-right:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container{width:380px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-gap:32px;display:grid;grid-template-columns:repeat(1,1fr);margin-bottom:16px}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{height:inherit;max-height:800px;min-height:100px}.components-heading.block-editor-inserter__patterns-category-panel-title{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-inserter__media-library-button.components-button,.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-mobile-screen{align-self:stretch;display:flex;flex-direction:column}.block-editor-inserter__media-panel{display:flex;flex:1;flex-direction:column;min-height:0;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{flex:0 1 auto;min-height:100%;padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:24px}@media (min-width:782px){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:0;padding:16px 24px}}.block-editor-inserter__media-panel .block-editor-inserter__no-results{flex-grow:1}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer{flex-shrink:0;padding-bottom:16px;padding-top:16px}@media (min-width:782px){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer{padding-left:24px;padding-right:24px}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-attach.components-button{justify-content:center;padding:16px}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results{display:flex;flex-direction:column;flex-grow:1;min-height:0}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list{animation:inserter-media-panel-pulse 1s ease-in-out infinite;opacity:1}}.block-editor-inserter__media-panel.has-footer .block-editor-inserter__media-list{padding-bottom:0}@keyframes inserter-media-panel-pulse{0%,to{opacity:1}50%{opacity:.5}}.block-editor-inserter__media-panel-detach-modal{z-index:1000001}.block-editor-inserter__media-panel-detach-modal p{margin-top:0}.block-editor-inserter__media-panel-detach-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}.block-editor-inserter__media-list__list-item{cursor:var(--wpds-cursor-control,pointer);margin-bottom:24px;position:relative}.block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list__list-item[draggable=true] .block-editor-inserter__media-list__list-item{cursor:grab}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview>*{outline-color:rgba(0,0,0,.3)}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button,.block-editor-inserter__media-list__list-item:focus-within .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{left:8px;position:absolute;top:8px}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;display:none}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}@media not (prefers-reduced-motion){.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{transition:outline .1s linear}}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input{height:40px}.block-editor-inserter__pattern-panel-placeholder{display:none}.block-editor-inserter__menu.is-zoom-out{display:flex}@media (min-width:782px){.block-editor-inserter__menu.is-zoom-out.show-panel:after{content:"";display:block;height:100%;width:300px}}@media (max-width:959px){.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}}.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}.block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__help-text{display:none;padding:0 24px 16px}@media (min-width:480px){.block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__help-text{display:block}}.spacing-sizes-control{border:0;margin:0;padding:0}.spacing-sizes-control .spacing-sizes-control__label,.spacing-sizes-control .spacing-sizes-control__unit-control{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__preset-range{flex:1;margin-bottom:0}.spacing-sizes-control__header{height:16px;margin-bottom:12px}.spacing-sizes-control__wrapper{align-items:center}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__wrapper .preset-input-control__icon{margin-right:-4px}.block-editor-block-visibility-modal{z-index:1000001}.block-editor-block-visibility-modal__options{border:0;list-style:none;margin:24px 0;padding:0}.block-editor-block-visibility-modal__options-item{align-items:center;display:flex;gap:24px;justify-content:space-between;margin:0 0 16px}.block-editor-block-visibility-modal__options-item:last-child{margin:0}.block-editor-block-visibility-modal__options-item--everywhere{align-items:start;flex-direction:column}.block-editor-block-visibility-modal__options-checkbox--everywhere{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-visibility-modal__options-icon--checked{fill:#ddd}.block-editor-block-visibility-modal__sub-options{padding-inline-start:12px;width:100%}.block-editor-block-visibility-modal__description{color:#757575;font-size:12px}.block-editor-block-visibility-info{align-items:center;display:flex;justify-content:start;margin:0 16px 16px;padding-bottom:4px;padding-top:4px}
\ No newline at end of file
diff --git a/wp-includes/css/dist/block-editor/style.css b/wp-includes/css/dist/block-editor/style.css
index 32a2de80b0..ca87996281 100644
--- a/wp-includes/css/dist/block-editor/style.css
+++ b/wp-includes/css/dist/block-editor/style.css
@@ -1507,10 +1507,6 @@ iframe[name=editor-canvas] {
min-width: 0;
}
-.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings, .block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings > div:not(:first-of-type) {
- display: block;
-}
-
@media screen and (min-width: 782px) {
.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches {
display: grid;
@@ -1520,6 +1516,16 @@ iframe[name=editor-canvas] {
.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control {
margin-bottom: inherit;
}
+.block-editor-panel-color-gradient-settings {
+ /* Increased specificity required to remove the slot wrapper's row gap */
+}
+.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__inner-wrapper {
+ grid-column: 1/-1;
+ row-gap: 0;
+}
+.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__inner-wrapper > * {
+ grid-column: 1/-1;
+}
.block-editor-panel-color-gradient-settings__dropdown-content {
min-height: 160px;
@@ -2469,7 +2475,7 @@ iframe[name=editor-canvas] {
max-height: 32px;
}
.block-editor-link-control__preview .block-editor-link-control__preview-title {
- line-height: 1.1;
+ line-height: var(--wpds-typography-line-height-sm, 20px);
}
.block-editor-link-control__preview .block-editor-link-control__preview-title:focus {
box-shadow: none;
@@ -2991,6 +2997,12 @@ iframe[name=editor-canvas] {
.block-editor-list-view-leaf .block-editor-inserter__toggle:active {
color: #fff;
}
+.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper {
+ width: 100%;
+}
+.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper > * {
+ min-width: 0;
+}
.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg {
left: 2px;
position: relative;
@@ -3013,6 +3025,17 @@ iframe[name=editor-canvas] {
position: absolute;
right: 0;
transform: translateY(-50%);
+ box-sizing: border-box;
+ max-width: 100%;
+ padding: 2px 8px;
+ border-radius: 2px;
+ background: #f0f0f0;
+ color: #2f2f2f;
+ font-size: 12px;
+ line-height: 20px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor {
background: rgba(0, 0, 0, 0.3);
@@ -3260,6 +3283,10 @@ iframe[name=editor-canvas] {
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
}
+.block-editor-multi-selection-inspector__card-description {
+ color: #757575;
+}
+
.block-editor-multi-selection-inspector__card .block-editor-block-icon {
margin-left: -2px;
padding: 0 3px;
@@ -3561,6 +3588,11 @@ iframe[name=editor-canvas] {
border-top: 1px solid #1e1e1e;
}
+.block-editor-url-popover__link-container-content {
+ display: flex;
+ align-items: center;
+}
+
.block-editor-url-popover__link-editor,
.block-editor-url-popover__link-viewer {
display: flex;
diff --git a/wp-includes/css/dist/block-editor/style.min.css b/wp-includes/css/dist/block-editor/style.min.css
index 42390bee6f..04418bff08 100644
--- a/wp-includes/css/dist/block-editor/style.min.css
+++ b/wp-includes/css/dist/block-editor/style.min.css
@@ -1 +1 @@
-:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-autocompleters__block[aria-selected=true] .block-editor-block-icon{color:inherit!important}.block-editor-global-styles-background-panel__inspector-media-replace-container{position:relative}.block-editor-global-styles-background-panel__inspector-media-replace-container.is-open{background-color:#f0f0f0}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item{border:0;flex-grow:1}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-preview-inner{height:100%}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown .block-editor-global-styles-background-panel__dropdown-toggle{height:40px}.block-editor-global-styles-background-panel__image-tools-panel-item{border:1px solid #ddd;grid-column:1/-1;position:relative}.block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon{display:none}.block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button{color:#1e1e1e;display:block;width:100%}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover{color:var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading{height:100%;padding:10px 0 0;position:absolute;width:100%;z-index:1}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading svg{margin:0}.block-editor-global-styles-background-panel__dropdown-toggle{background:transparent;border:none;cursor:var(--wpds-cursor-control,pointer);height:100%;padding-left:12px;padding-right:32px;width:100%}.block-editor-global-styles-background-panel__reset{margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-editor-global-styles-background-panel__reset{transition:opacity .1s ease-in-out}}.block-editor-global-styles-background-panel__reset.has-local-override-from-global-styles__reset{align-items:center;display:inline-flex;justify-content:center;margin-block:0;margin-inline:0 8px;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.block-editor-global-styles-background-panel__reset.block-editor-global-styles-background-panel__reset{border-radius:2px}.block-editor-global-styles-background-panel__dropdown-toggle:hover+.block-editor-global-styles-background-panel__reset,.block-editor-global-styles-background-panel__reset:focus,.block-editor-global-styles-background-panel__reset:focus-within,.block-editor-global-styles-background-panel__reset:hover{opacity:1}@media (hover:none){.block-editor-global-styles-background-panel__reset{opacity:1}}.block-editor-global-styles-background-panel__inspector-media-replace-title{text-align:start;white-space:normal;word-break:break-all}.block-editor-global-styles-background-panel__inspector-image-indicator{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);background-size:cover;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:20px;outline:1px solid transparent;width:20px}.block-editor-global-styles-background-panel__dropdown-content-wrapper{min-width:260px;overflow-x:hidden}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper{background-color:#f0f0f0;border:1px solid #ddd;border-radius:2px;width:100%}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image{max-height:180px}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker:after{content:none}.modal-open .block-editor-global-styles-background-panel__popover{z-index:159890}.block-editor-global-styles-background-panel__media-replace-popover .components-popover__content{width:226px}.block-editor-global-styles-background-panel__media-replace-popover .components-button{padding:0 8px}.block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right{margin-left:16px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}iframe[name=editor-canvas]{box-sizing:border-box;display:block;height:100%;width:100%}@media not (prefers-reduced-motion){iframe[name=editor-canvas]{transition:all .4s cubic-bezier(.46,.03,.52,.96)}}iframe[name=editor-canvas]{background-color:var(--wp-editor-canvas-background)}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.block-editor-block-inspector .block-editor-html-element-control:where(:not(:last-child)),.block-editor-block-inspector .block-editor-image-size-control:where(:not(:last-child)),.block-editor-block-inspector .components-base-control:where(:not(:last-child)),.block-editor-block-inspector .components-radio-control:where(:not(:last-child)){margin-bottom:16px}.block-editor-block-inspector .block-editor-html-element-control .components-base-control,.block-editor-block-inspector .block-editor-image-size-control .components-base-control,.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control,.block-editor-block-inspector .components-range-control .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector-edit-contents{margin:0 16px 16px}.block-editor-block-inspector-edit-contents .block-editor-block-inspector-edit-contents__button{justify-content:center}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;left:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;position:absolute;will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter{justify-content:center;left:calc(50% - 12px);top:calc(50% - 12px)}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter{line-height:0;position:absolute;right:0;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled{display:none}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon svg,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg{transform:rotate(45deg)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;margin-bottom:8px;margin-top:8px;overflow:visible;pointer-events:all;position:static;width:auto}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:56px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar{overflow:visible}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group{border-right-color:#1e1e1e}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}@media not (prefers-reduced-motion){.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards}}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{left:-57px;position:absolute}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:before{content:""}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:after{display:none}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{background-color:#fff;border:1px solid #1e1e1e;padding-left:6px;padding-right:6px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{padding-left:12px;padding-right:12px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{left:auto;margin-left:-1px;position:relative}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container,.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #1e1e1e}.is-dragging-components-draggable .components-tooltip{display:none}.components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button{left:50%;pointer-events:all;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.block-editor-block-tools--is-dragging>.popover-slot{display:none}.block-editor-block-lock-modal{z-index:1000001}.block-editor-block-lock-modal__options{border:0;margin:0;padding:0}.block-editor-block-lock-modal__options legend{margin-bottom:16px;padding:0}.block-editor-block-lock-modal__checklist{list-style:none;margin:0;padding:0}.block-editor-block-lock-modal__options-all{padding:12px 0}.block-editor-block-lock-modal__options-all .components-checkbox-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 0 12px 32px}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{fill:#1e1e1e;flex-shrink:0;margin-right:12px}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding-top:16px}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-left:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-left:1px solid #1e1e1e;margin-left:6px!important;margin-right:-6px}.block-editor-block-allowed-blocks-control:not(:only-child){margin-top:16px}.block-editor-block-allowed-blocks-control__button{justify-content:center;width:100%}.block-editor-block-allowed-blocks-modal{z-index:1000001}.block-editor-block-allowed-blocks-modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:-24px;left:0;margin:0 -24px -24px;padding:16px 24px;position:sticky;z-index:1}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0;white-space:nowrap}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.block-editor-block-breadcrumb__button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{color:#1e1e1e;padding:16px}.block-editor-block-card.is-parent{padding-bottom:4px}.block-editor-block-card.is-child{padding-top:4px}.block-editor-block-card__parent-select-button{align-items:start;height:auto!important;padding:0;text-align:start}.block-editor-block-card__title{align-items:center;display:flex;flex-wrap:wrap;font-weight:var(--wpds-typography-font-weight-emphasis,600);gap:4px 8px}.block-editor-block-card__title.block-editor-block-card__title{font-size:13px;line-height:1.4;margin:0}.block-editor-block-card__name{padding:3px 0}.block-editor-block-card .block-editor-block-icon,.block-editor-block-card__child-indicator-icon{flex:0 0 24px;height:24px;margin-left:0;margin-right:12px;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 16px 0 0;width:50%}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{left:0;position:absolute;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:-moz-max-content;width:max-content}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-right:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-right:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{align-items:center;background-color:transparent;bottom:0;display:flex;justify-content:center;left:0;opacity:0;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{transition:all .1s linear .1s}}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon{background:transparent linear-gradient(-45deg,transparent 47.5%,#fff 0,#fff 52.5%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1.5px #fff;display:inline-block;height:20px;padding:0;width:20px}.block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{background-color:#757575;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);opacity:1}.block-editor-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.block-editor-block-manager__category{isolation:isolate;margin:0 0 24px}.block-editor-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.block-editor-block-manager__category-title .components-checkbox-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-manager__checklist{margin-top:0}.block-editor-block-manager__category-title,.block-editor-block-manager__checklist-item{border-bottom:1px solid #ddd}.block-editor-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 0 8px 16px}.components-modal__content .block-editor-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.block-editor-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-right:10px}.block-editor-block-manager__results{border-top:1px solid #ddd}.block-editor-block-manager__disabled-blocks-count+.block-editor-block-manager__results{border-top-width:0}.block-editor-block-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:20px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:3px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:3px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{left:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{right:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button{overflow:hidden}.components-button.block-editor-block-mover-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 12px;text-transform:uppercase}.block-editor-block-patterns-list__list-item{cursor:var(--wpds-cursor-control,pointer);margin-bottom:16px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true]{cursor:grab}.block-editor-block-patterns-list__item{height:100%;outline:0;scroll-margin-bottom:56px;scroll-margin-top:24px}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{flex-grow:1;text-align:left}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:4px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{border-radius:4px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}@media not (prefers-reduced-motion){.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{transition:outline .1s linear}}.block-editor-block-patterns-list__item.is-selected .block-editor-block-preview__container:after{outline-color:#1e1e1e;outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container:after{outline-color:rgba(0,0,0,.3)}.block-editor-block-patterns-list__item[data-focus-visible] .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty){align-items:center;margin-top:8px;padding-bottom:4px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{height:24px;min-width:24px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon{fill:var(--wp-block-synced-color)}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination{border-top:1px solid #2f2f2f;justify-content:center;padding:4px}.show-icon-labels .block-editor-patterns__grid-pagination-button{width:auto}.show-icon-labels .block-editor-patterns__grid-pagination-button span{display:none}.show-icon-labels .block-editor-patterns__grid-pagination-button:before{content:attr(aria-label)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:-moz-max-content;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{left:0;margin:0;min-height:auto;overflow:visible;text-align:initial;top:0;transform-origin:top left;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-quick-navigation__item{font-weight:var(--wpds-typography-font-weight-default,400)}.block-editor-block-rename-modal{z-index:1000001}.block-editor-block-styles__preview-panel{display:none;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles{grid-column:1/-1}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{border-color:#ddd;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ddd;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;-moz-text-align-last:center;text-align-last:center;white-space:normal;word-break:break-all}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover-preview-container{bottom:0;left:0;pointer-events:none;position:absolute;top:-1px;width:100%}.block-editor-block-switcher__popover-preview{overflow:hidden}.block-editor-block-switcher__popover-preview .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:4px;box-shadow:none;outline:none;overflow:auto;width:300px}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview.is-pattern-list-preview{overflow:unset}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:var(--wpds-cursor-control,pointer)}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border-radius:2px;height:100%}@media not (prefers-reduced-motion){.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{transition:all .05s ease-in-out}}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid transparent;position:relative}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:var(--wpds-cursor-control,pointer);font-size:12px;padding:4px;text-align:center}.block-editor-block-switcher__no-transforms{color:#757575;margin:0;padding:6px 8px}.block-editor-block-switcher__binding-indicator{display:block;padding:8px}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{-moz-column-count:3;column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:var(--wpds-cursor-control,pointer)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item{scroll-margin:5px 0}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:var(--wpds-cursor-control,pointer);font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:4px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:stretch;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:64px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:left;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;width:100%}@media not (prefers-reduced-motion){.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{transition:transform .5s,z-index .5s}}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{box-sizing:border-box;padding:0 16px 16px}.block-editor-block-variation-transforms:where(fieldset){border:0;margin:0;min-inline-size:0}.block-editor-block-variation-transforms__button{justify-content:center;width:100%}.components-border-radius-control__header{height:16px;margin-bottom:12px}.components-border-radius-control{border:0;margin:0 0 12px;padding:0}.components-border-radius-control legend{margin-bottom:0}.components-border-radius-control .components-border-radius-control__linked-button{display:flex;justify-content:center}.components-border-radius-control .components-border-radius-control__linked-button svg{margin-right:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{border:0;margin:0;min-width:0;padding:0}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px)}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content{min-height:160px}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-panel-color-gradient-settings__contrast-notice{margin-top:16px}.block-editor-color-gradient-item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0;position:relative}.block-editor-color-gradient-item:nth-child(1 of .block-editor-color-gradient-item){border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px}.block-editor-color-gradient-item:nth-last-child(1 of .block-editor-color-gradient-item){border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-color-gradient-item>div,.block-editor-color-gradient-item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:left}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{max-width:calc(100% - 44px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-tools-panel-color-gradient-settings__dropdown>button.has-contrast-warning .block-editor-panel-color-gradient-settings__color-name{max-width:calc(100% - 72px)}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-panel-color-gradient-settings__reset{margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-editor-panel-color-gradient-settings__reset{transition:opacity .1s ease-in-out}}.block-editor-panel-color-gradient-settings__reset.block-editor-panel-color-gradient-settings__reset{border-radius:2px}.block-editor-panel-color-gradient-settings__dropdown:hover+.block-editor-panel-color-gradient-settings__reset,.block-editor-panel-color-gradient-settings__reset:focus,.block-editor-panel-color-gradient-settings__reset:hover{opacity:1}@media (hover:none){.block-editor-panel-color-gradient-settings__reset{opacity:1}}.block-editor-panel-color-gradient-settings__dropdown.has-contrast-warning+.block-editor-panel-color-gradient-settings__reset{right:28px}.block-editor-panel-color-gradient-settings__contrast-warning{margin:auto 8px;position:absolute;right:0;top:8px}.block-editor-panel-color-gradient-settings__contrast-warning.block-editor-panel-color-gradient-settings__contrast-warning{border-radius:2px}.block-editor-date-format-picker{border:none;margin:0 0 16px;padding:0}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-dimension-control{border:0;margin:0;padding:0}.block-editor-duotone-control__popover.components-popover>.components-popover__content{padding:8px;width:260px}.block-editor-duotone-control__popover.components-popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover.components-popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__unset-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-fit-text-size-warning{grid-column:span 2}.components-font-appearance-control [role=option]{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles__toggle-icon{fill:currentColor}.block-editor-global-styles__shadow-popover-container{width:230px}.block-editor-global-styles__shadow__list{display:flex;flex-wrap:wrap;gap:12px;padding-bottom:8px}.block-editor-global-styles__clear-shadow{text-align:right}.block-editor-global-styles-state-control{margin-top:-4px}.block-editor-global-styles-state-control__badges{min-height:24px}.block-editor-global-styles-state-control__badge-tooltip-trigger{display:inline-flex;max-width:100%}.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{border:1px solid #ddd;border-radius:2px;display:block;padding:0;position:relative}.block-editor-global-styles-filters-panel__dropdown-toggle,.block-editor-global-styles__shadow-dropdown-toggle{padding:8px;width:100%}.block-editor-global-styles-filters-panel__dropdown-toggle.is-open,.block-editor-global-styles__shadow-dropdown-toggle.is-open{background-color:#f0f0f0}.block-editor-global-styles__shadow-editor__remove-button{margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-editor-global-styles__shadow-editor__remove-button{transition:opacity .1s ease-in-out}}.block-editor-global-styles__shadow-dropdown:hover .block-editor-global-styles__shadow-editor__remove-button,.block-editor-global-styles__shadow-editor__remove-button:focus,.block-editor-global-styles__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.block-editor-global-styles__shadow-editor__remove-button{opacity:1}}.block-editor-global-styles__shadow-indicator{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;color:#2f2f2f;cursor:var(--wpds-cursor-control,pointer);display:inline-flex;height:26px;padding:0;transform:scale(1);width:26px}@media not (prefers-reduced-motion){.block-editor-global-styles__shadow-indicator{transition:transform .1s ease}}.block-editor-global-styles__shadow-indicator{will-change:transform}.block-editor-global-styles__shadow-indicator:focus{border:2px solid #757575}.block-editor-global-styles__shadow-indicator:hover{transform:scale(1.2)}.block-editor-global-styles__shadow-indicator.unset{background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-global-styles-advanced-panel__custom-css-input{margin-bottom:16px}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-panel-duotone-settings__reset{margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-editor-panel-duotone-settings__reset{transition:opacity .1s ease-in-out}}.block-editor-global-styles-filters-panel__dropdown:hover .block-editor-panel-duotone-settings__reset,.block-editor-panel-duotone-settings__reset:focus,.block-editor-panel-duotone-settings__reset:hover{opacity:1}@media (hover:none){.block-editor-panel-duotone-settings__reset{opacity:1}}.is-inherited-from-global-styles .components-base-control__label,.is-inherited-from-global-styles .components-input-control__label{text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:.2em}.is-inherited-from-global-styles .block-editor-global-styles-background-panel__inspector-media-replace-title,.is-inherited-from-global-styles .block-editor-panel-color-gradient-settings__color-name,.is-inherited-from-global-styles .block-editor-panel-duotone-settings__label{border-bottom:1px dotted}.has-local-override-from-global-styles{position:relative}.global-styles-inheritance-affordance{align-items:center;display:flex;height:16px;inset-block-start:0;inset-inline-end:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}.global-styles-inheritance-affordance--offset-toggle{inset-inline-end:32px}.global-styles-inheritance-affordance .has-local-override-from-global-styles__reset{margin-inline-start:0!important;pointer-events:auto}.has-local-override-from-global-styles__reset{align-items:center;background:transparent!important;border-radius:50%!important;box-shadow:none!important;cursor:var(--wpds-cursor-control,pointer);display:inline-flex!important;height:14px!important;justify-content:center;letter-spacing:normal;margin-inline-start:6px;min-width:14px!important;overflow:hidden;padding:0!important;position:relative;text-transform:none;vertical-align:middle;width:14px!important}.has-local-override-from-global-styles__reset:focus,.has-local-override-from-global-styles__reset:hover{background:transparent!important}.has-local-override-from-global-styles__reset:focus .has-local-override-from-global-styles__dot,.has-local-override-from-global-styles__reset:hover .has-local-override-from-global-styles__dot{display:none}.has-local-override-from-global-styles__reset:focus .has-local-override-from-global-styles__reset-icon,.has-local-override-from-global-styles__reset:hover .has-local-override-from-global-styles__reset-icon{display:block}.has-local-override-from-global-styles__reset:focus-visible{outline:1.5px solid var(--wp-admin-theme-color,#007cba);outline-offset:1px}.has-local-override-from-global-styles__reset.block-editor-panel-color-gradient-settings__reset{justify-content:center;margin-block:0;margin-inline-start:0;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.has-local-override-from-global-styles__reset.block-editor-global-styles__shadow-editor__remove-button,.has-local-override-from-global-styles__reset.block-editor-panel-duotone-settings__reset{inset-inline-end:8px;justify-content:center;margin-block:0;margin-inline-start:0;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.has-local-override-from-global-styles__dot{background-color:var(--wp-admin-theme-color,#007cba);border-radius:50%;display:block;height:8px;width:8px}.has-local-override-from-global-styles__reset-icon{color:var(--wp-admin-theme-color,#007cba);display:none;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer{z-index:30}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .components-popover__content *{pointer-events:none}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer.is-dropping-allowed .block-editor-grid-visualizer__drop-zone{pointer-events:all}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .block-editor-inserter *{pointer-events:auto}.block-editor-grid-visualizer__grid{display:grid;position:absolute}.block-editor-grid-visualizer__cell{display:grid;position:relative}.block-editor-grid-visualizer__cell .block-editor-inserter{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:32}.block-editor-grid-visualizer__cell .block-editor-inserter .block-editor-grid-visualizer__appender{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 20%,transparent);color:inherit;height:100%;opacity:0;overflow:hidden;padding:0!important;width:100%}.block-editor-grid-visualizer__cell.is-highlighted .block-editor-grid-visualizer__drop-zone,.block-editor-grid-visualizer__cell.is-highlighted .block-editor-inserter{background:var(--wp-admin-theme-color)}.block-editor-grid-visualizer__cell .block-editor-grid-visualizer__appender:focus,.block-editor-grid-visualizer__cell:hover .block-editor-grid-visualizer__appender{background-color:color-mix(in srgb,currentColor 20%,transparent);opacity:1}.block-editor-grid-visualizer__drop-zone{background:hsla(0,0%,80%,.1);grid-column:1;grid-row:1;height:100%;min-height:8px;min-width:8px;width:100%}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer{z-index:30}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer .components-popover__content *{pointer-events:none}.block-editor-grid-item-resizer__box{border:1px solid var(--wp-admin-theme-color)}.block-editor-grid-item-resizer__box .components-resizable-box__handle.components-resizable-box__handle.components-resizable-box__handle{pointer-events:all}.block-editor-grid-item-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button{min-width:0!important;padding-left:0;padding-right:0;width:24px}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button svg{min-width:24px}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:before,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-grid-item-mover__move-vertical-button-container{display:flex;position:relative}@media (min-width:600px){.block-editor-grid-item-mover__move-vertical-button-container{flex-direction:column;justify-content:space-around}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button{height:20px!important;min-width:0!important;width:100%}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button:before{height:calc(100% - 4px)}.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-down-button svg,.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-up-button svg{flex-shrink:0;height:20px}.editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container{height:40px;position:relative;top:-4px}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container{position:relative}@media (min-width:600px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#e0e0e0;content:"";height:100%;position:absolute;top:0;width:1px}}@media (min-width:782px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left{padding-right:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left:before{right:0}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right{padding-left:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right:before{left:0}@media (min-width:600px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{background:#e0e0e0;content:"";height:1px;left:50%;margin-top:-.5px;position:absolute;top:50%;transform:translate(-50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover-button{white-space:nowrap}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#ddd;height:24px;top:4px}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container:before{background:#ddd;width:calc(100% - 24px)}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-iframe__container{height:100%;width:100%}.block-editor-iframe__scale-container{height:100%}.block-editor-iframe__scale-container.is-zoomed-out{position:absolute;right:0;width:var(--wp-block-editor-iframe-zoom-out-scale-container-width,100vw)}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:transparent;color:#1e1e1e;cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;font-size:13px;justify-content:center;padding:8px;width:100%;word-break:break-word}@media not (prefers-reduced-motion){.components-button.block-editor-block-types-list__item{transition:all .05s ease-in-out}}.components-button.block-editor-block-types-list__item{height:auto;position:relative}.components-button.block-editor-block-types-list__item:disabled,.components-button.block-editor-block-types-list__item[aria-disabled=true]{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-types-list__item-icon{color:#1e1e1e;padding:12px 20px}@media not (prefers-reduced-motion){.block-editor-block-types-list__item-icon{transition:all .05s ease-in-out}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}@media not (prefers-reduced-motion){.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;hyphens:auto;padding:4px 2px 8px}.modal-open .block-editor-inspector-list-view-content-popover{z-index:99999}.block-editor-block-inspector__tabs [role=tablist]{width:100%}.block-editor-inspector-popover-header{margin-bottom:16px}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview{flex-wrap:wrap;gap:4px}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview .components-button.has-icon{padding:4px;width:auto}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview .block-editor-link-control_link-information{margin-right:0;min-width:100%}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__help{color:#757575;font-size:12px;font-style:normal;margin-bottom:0;margin-top:-8px;padding:0 16px}.block-editor-link-control__search-input-container,.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field .components-base-control__label{color:#1e1e1e}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{padding:8px 16px 16px}.block-editor-link-control__search-results-wrapper{position:relative}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";display:block;left:-1px;pointer-events:none;position:absolute;right:16px;z-index:100}.block-editor-link-control__search-results-wrapper:before{bottom:auto;height:8px;top:0}.block-editor-link-control__search-results-wrapper:after{bottom:0;height:16px;top:auto}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:left}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:transparent;color:inherit;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__preview{background:transparent;border:0;padding:16px}.block-editor-link-control__preview .block-editor-link-control__link-information{margin-right:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__preview .block-editor-link-control__link-information .block-editor-link-control__preview-info{color:#757575;font-size:12px;line-height:1.1;word-break:break-all}.block-editor-link-control__preview.is-url-title .block-editor-link-control__preview-title{word-break:break-all}.block-editor-link-control__preview .block-editor-link-control__preview-icon,.block-editor-link-control__preview .block-editor-link-control__preview-image{background-color:#f0f0f0;border-radius:2px;flex-shrink:0;height:32px;position:relative;width:32px}.block-editor-link-control__preview .block-editor-link-control__preview-icon img{width:16px}.block-editor-link-control__preview.is-error .block-editor-link-control__preview-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__preview .block-editor-link-control__preview-title{line-height:1.1}.block-editor-link-control__preview .block-editor-link-control__preview-title:focus{box-shadow:none}.block-editor-link-control__preview .block-editor-link-control__preview-title:focus-visible{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;text-decoration:none}.block-editor-link-control__preview .block-editor-link-control__preview-title mark{background-color:transparent;color:inherit;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-link-control__preview .block-editor-link-control__preview-title span{font-weight:400}.block-editor-link-control__preview .block-editor-link-control__preview-title .components-external-link__icon{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon img,.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon svg{opacity:0}.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon:before{background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s}}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;left:0;position:absolute;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__preview-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__settings{border:0;margin:0;padding:0}.block-editor-link-control__setting{flex:1;margin-bottom:0;padding:8px 24px}.block-editor-link-control__setting .components-base-control:not(.components-input-control) .components-base-control__field{display:flex}.block-editor-link-control__setting .components-base-control__field .components-checkbox-control__label{color:#1e1e1e}.block-editor-link-control__setting input{margin-left:0}.is-preview .block-editor-link-control__setting{padding:20px 8px 8px 0}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-left:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true]{color:#1e1e1e}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{visibility:visible}@media not (prefers-reduced-motion){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition:transform .1s ease}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(90deg)}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);visibility:visible}@media not (prefers-reduced-motion){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition:transform .1s ease}}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{bottom:auto;left:auto;position:absolute;right:40px;top:calc(50% - 8px)}.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner{right:12px;top:calc(50% + 4px)}.link-preview-button.components-button{border-color:#949494;height:auto;padding:12px;width:100%}.link-preview-button__image-container{flex-shrink:0;height:24px;width:24px}.link-preview-button__image{border-radius:2px;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.link-preview-button__content,.link-preview-button__details{flex:1;min-width:0}.link-preview-button__hint,.link-preview-button__title{display:block;min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.link-preview-button__title{color:#1e1e1e;display:block;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:4px}.link-preview-button__hint{color:#757575;font-size:12px;font-weight:400}.link-preview-button__icon{color:#1e1e1e}.link-preview-button__badges{margin-top:8px}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-tree.is-dragging tbody{pointer-events:none}.block-editor-list-view-leaf{position:relative;transform:translateY(0)}.block-editor-list-view-leaf.is-draggable,.block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents{cursor:grab}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.block-editor-list-view-leaf .block-editor-list-view-block-select-button svg{fill:currentColor}@media (forced-colors:active){.block-editor-list-view-leaf .block-editor-list-view-block-select-button svg{fill:CanvasText}}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-normal{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-normal{transform:translateY(0)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-up{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-up{transform:translateY(-32px)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-down{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-down{transform:translateY(32px)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks{transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transform:translateY(calc(-32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transform:translateY(calc(32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}.block-editor-list-view-leaf.is-dragging{left:0;opacity:0;pointer-events:none;z-index:-9999}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;box-sizing:border-box;color:inherit;display:flex;font-family:inherit;font-size:13px;font-weight:400;height:32px;margin:0;padding:6px 4px 6px 0;position:relative;text-align:left;text-decoration:none;white-space:nowrap;width:100%}@media not (prefers-reduced-motion){.block-editor-list-view-leaf .block-editor-list-view-block-contents{transition:box-shadow .1s linear}}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";left:0;pointer-events:none;position:absolute;right:-29px;top:0;z-index:2}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{right:0}.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));z-index:1}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{opacity:1}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:__wp-base-styles-fade-in .08s linear 0s;animation-fill-mode:forwards}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-right:4px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:28px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg{left:2px;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{position:absolute;right:0;transform:translateY(-50%)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.3);color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__block-visibility,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky{line-height:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images{display:flex}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image{background-size:cover;border-radius:1px;height:18px;width:18px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px #fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:first-child){margin-left:-6px}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-disabled{opacity:.2}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-disabled{transition:opacity .1s linear}}.block-editor-list-view-leaf.is-disabled:hover{opacity:.2}.block-editor-list-view-leaf.is-disabled .block-editor-list-view__expander{cursor:default}.block-editor-list-view-leaf.is-disabled .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-draggable-chip{opacity:.8}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{cursor:var(--wpds-cursor-control,pointer);height:24px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-left:192px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-left:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-left:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-left:48px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-left:72px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-left:96px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-left:120px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-left:144px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-left:168px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{visibility:visible}@media not (prefers-reduced-motion){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition:transform .2s ease}}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(90deg)}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);visibility:visible}@media not (prefers-reduced-motion){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition:transform .2s ease}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-drop-indicator--preview{pointer-events:none}.block-editor-list-view-drop-indicator--preview .components-popover__content{overflow:hidden!important}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:4px;height:32px;overflow:hidden}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{background:rgba(var(--wp-admin-theme-color--rgb),.09)}.block-editor-list-view-placeholder{height:32px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;color:#fff;height:24px;margin:8px 0 0 24px;padding:0}.list-view-appender .block-editor-inserter__toggle.has-icon.is-next-40px-default-size{min-width:24px}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description{display:none}.block-editor-media-placeholder__url-input-form{min-width:260px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form{width:300px}}.block-editor-media-placeholder__url-input-form input{direction:ltr}.modal-open .block-editor-media-replace-flow__options{z-index:99999}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-replace-flow__media-upload-menu:not(:empty)+.block-editor-media-flow__url-input{border-top:1px solid #ddd;margin-top:8px;padding-bottom:8px}.block-editor-media-replace-flow__options.is-variant-toolbar .block-editor-media-replace-flow__media-upload-menu:not(:empty)+.block-editor-media-flow__url-input{border-top-color:#1e1e1e}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__preview.is-current{padding:0;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{padding:8px 0 0}.block-editor-multi-selection-inspector__card{padding:16px}.block-editor-multi-selection-inspector__card-title{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-multi-selection-inspector__card .block-editor-block-icon{height:24px;margin-left:-2px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal!important}.preset-input-control__wrapper>*{flex:1}.preset-input-control__wrapper>.preset-input-control__custom-toggle,.preset-input-control__wrapper>.preset-input-control__icon{flex:none}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{border-radius:2px;box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{background:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;font-size:14px;font-weight:var(--wpds-typography-font-weight-emphasis,600);z-index:100000}.block-editor-tabbed-sidebar{background-color:#fff;display:flex;flex-direction:column;flex-grow:1;height:100%;overflow:hidden}.block-editor-tabbed-sidebar__tablist-and-close-button{border-bottom:1px solid #ddd;display:flex;justify-content:space-between;padding-right:8px}.block-editor-tabbed-sidebar__close-button{align-self:center;background:#fff;order:1}.block-editor-tabbed-sidebar__tablist{margin-bottom:-1px}.block-editor-tabbed-sidebar__tabpanel{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto;scrollbar-gutter:auto}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{min-width:300px;width:auto}}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{margin:0;position:absolute;right:8px;top:calc(50% - 8px)}.block-editor-url-input__suggestions{max-height:200px}@media not (prefers-reduced-motion){.block-editor-url-input__suggestions{transition:all .15s ease-in-out}}.block-editor-url-input__suggestions{overflow-y:auto;padding:4px 0;width:302px}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:var(--wpds-cursor-control,pointer);display:block;font-size:13px;height:auto;min-height:36px;text-align:left;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{background:#ddd;content:"";display:block;height:24px;position:absolute;right:-1px;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01)}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-popover__additional-controls{border-top:1px solid #1e1e1e;padding:8px}.block-editor-url-popover__input-container{padding:8px}.block-editor-url-popover__row{align-items:center;display:flex;gap:4px}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1;gap:8px}.block-editor-url-popover__additional-controls .components-button.has-icon{height:auto;padding-left:8px;padding-right:8px;text-align:left}.block-editor-url-popover__additional-controls .components-button.has-icon>svg{margin-right:8px}.block-editor-url-popover__settings-toggle{flex-shrink:0}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__settings{border-top:1px solid #1e1e1e;display:block;padding:16px}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{align-items:center;display:flex;flex-grow:1;flex-shrink:1;margin-right:8px;max-width:350px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-url-popover__expand-on-click{align-items:center;display:flex;min-width:350px;white-space:nowrap}.block-editor-url-popover__expand-on-click .text{flex-grow:1}.block-editor-url-popover__expand-on-click .text p{line-height:16px;margin:0}.block-editor-url-popover__expand-on-click .text p.description{color:#757575;font-size:12px}.background-block-support-panel.background-block-support-panel .background-block-support-panel__inner-wrapper{row-gap:0}.block-editor-content-only-controls__link{border-color:#ccc;width:100%}.block-editor-content-only-controls__link-row{align-items:center}.block-editor-content-only-controls__link-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.block-editor-content-only-controls__media{border-color:#ccc;padding-right:32px;width:100%}.block-editor-content-only-controls__media-replace-flow{display:block}.block-editor-content-only-controls__media-row{align-items:center}.block-editor-content-only-controls__media-placeholder{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:24px;padding:0;width:24px}.block-editor-content-only-controls__media-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.block-editor-content-only-controls__media-thumbnail{align-self:center;border-radius:2px;height:20px;overflow:hidden;width:20px}.block-editor-content-only-controls__media-thumbnail img{height:100%!important;-o-object-fit:cover;object-fit:cover;width:100%!important}.block-editor-content-only-controls{position:relative}.block-editor-content-only-controls__media-reset{border-radius:2px;margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-editor-content-only-controls__media-reset{transition:opacity .1s ease-in-out}}.block-editor-content-only-controls:hover .block-editor-content-only-controls__media-reset,.block-editor-content-only-controls__media-reset:focus,.block-editor-content-only-controls__media-reset:hover{opacity:1}@media (hover:none){.block-editor-content-only-controls__media-reset{opacity:1}}.block-editor-content-only-controls__rich-text{background:#fff;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;color:#1e1e1e;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin:0;padding:6px 8px;width:100%}@media not (prefers-reduced-motion){.block-editor-content-only-controls__rich-text{transition:box-shadow .1s linear}}@media (min-width:600px){.block-editor-content-only-controls__rich-text{font-size:13px;line-height:normal}}.block-editor-content-only-controls__rich-text:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-content-only-controls__rich-text::-moz-placeholder{color:rgba(30,30,30,.62)}.block-editor-content-only-controls__rich-text::placeholder{color:rgba(30,30,30,.62)}.block-editor-content-only-controls__rich-text{border-color:#949494}.block-editor-content-only-controls__rich-text::-moz-placeholder{color:color-mix(in srgb,#1e1e1e,transparent 38%)}.block-editor-content-only-controls__rich-text::placeholder{color:color-mix(in srgb,#1e1e1e,transparent 38%)}.block-editor-content-only-controls__rich-text{min-height:40px;padding:12px}.block-editor-block-fields__container{padding:0 16px 16px}.block-editor-block-fields__container:first-of-type{border-block-start:1px solid #e0e0e0;padding-block-start:8px}.block-editor-block-fields__header{margin-bottom:4px;padding:8px 0}.block-editor-block-fields__header-icon{flex:0 0 24px}.block-editor-block-fields__header-title{flex:1;margin:0!important}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{flex-direction:row}.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__position-control-item{max-inline-size:max(var(--anchor-width) - 2 * var(--wp-ui-popup-padding),223px)}.block-editor-hooks__position-control-item-hint{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-block-start:4px}div.block-editor-bindings__panel{grid-template-columns:repeat(auto-fit,minmax(100%,1fr))}div.block-editor-bindings__panel button:hover .block-editor-bindings__item span{color:inherit}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.elements-block-support-panel.elements-block-support-panel .elements-block-support-panel__inner-wrapper{row-gap:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-constrained .components-base-control{margin-bottom:0}.block-editor-hooks__layout-constrained-helptext{color:#757575;font-size:12px;margin-bottom:0}.layout-block-support-panel .block-editor-hooks__flex-layout-controls{grid-column:1/-1}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__grid-layout-columns-and-rows-controls,.block-editor-hooks__grid-layout-minimum-width-control{border:0;margin:0;padding:0}.block-editor__spacing-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}@media not (prefers-reduced-motion){.block-editor-block-toolbar{transition:border-color .1s linear,box-shadow .1s linear}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;border:0;border-right:1px solid #ddd;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button:before{background:color-mix(in srgb,var(--wp-block-synced-color) 10%,transparent);border-radius:2px}.block-editor-block-toolbar .components-button.block-editor-block-toolbar__block-icon-button[aria-disabled=true],.block-editor-block-toolbar .components-button.block-editor-block-toolbar__block-icon-button[aria-disabled=true]:hover{color:#1e1e1e}.block-editor-block-toolbar.is-connected .block-editor-block-toolbar__block-icon,.block-editor-block-toolbar.is-synced .block-editor-block-toolbar__block-icon{color:var(--wp-block-synced-color)}.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2),.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar,.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar-group,.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-right:none}.block-editor-block-toolbar .components-toolbar-group:empty{display:none}.block-editor-block-contextual-toolbar{background-color:#fff;display:block;flex-shrink:3;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.components-accessible-toolbar{border:none;border-radius:0}.block-editor-block-contextual-toolbar.is-unstyled{box-shadow:0 1px 0 0 rgba(0,0,0,.133)}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{overflow:auto;overflow-y:hidden}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar{height:12px;width:12px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-track{background-color:transparent}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#e0e0e0;border:3px solid transparent;border-radius:8px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover::-webkit-scrollbar-thumb{background-color:#949494}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#e0e0e0 transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover{scrollbar-color:#949494 transparent}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{will-change:transform}@media (hover:none){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#949494 transparent}}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-gutter:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after{display:none}.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector{margin-bottom:-1px;margin-top:-1px;position:relative}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{align-items:center;background-color:#1e1e1e;border-radius:100%;content:"";display:inline-flex;height:2px;position:absolute;top:15px;width:2px}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar__pattern-overrides-popover .components-popover__content{min-width:260px;padding:16px}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-flex}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)){width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)) svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)):after{content:attr(aria-label);font-size:12px}.show-icon-labels .block-editor-block-toolbar .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button{text-wrap:nowrap;border-bottom-right-radius:0;border-top-right-radius:0;padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{position:relative;width:auto}@media (min-width:600px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#e0e0e0;content:"";height:1px;left:50%;margin-top:-.5px;position:absolute;top:50%;transform:translate(-50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #ddd;margin-left:6px;margin-right:-6px;white-space:nowrap}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-left:6px}.block-editor-block-toolbar-change-design-content-wrapper{padding:12px;width:320px}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list{grid-gap:12px;display:grid;grid-template-columns:1fr 1fr}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{gap:16px;height:100%;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area .block-editor-tabbed-sidebar{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:4px 4px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 4px 4px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tablist{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:var(--wpds-cursor-control,pointer);display:inline-flex;outline:none;padding:0}@media not (prefers-reduced-motion){.block-editor-inserter__toggle.components-button{transition:color .2s ease}}.block-editor-inserter__menu{height:100%;overflow:visible;position:relative}@media (min-width:782px){.block-editor-inserter__menu.show-panel{width:630px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{background-color:#fff;border-bottom:1px solid transparent;padding:16px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.block-editor-inserter__search{transition:border-bottom-color .1s linear}}.block-editor-inserter__search.is-scrolled{border-bottom-color:#e0e0e0}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto;position:relative}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:0 16px;position:relative}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 12px 0 0;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__no-results,.block-editor-inserter__patterns-loading{padding:32px;text-align:center}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container__popover{top:16px!important}.block-editor-inserter__preview-container{display:none;max-height:calc(100% - 32px);overflow-y:hidden;padding:16px;width:280px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-inserter__media-list__list-item{height:100%}.block-editor-inserter__preview-container .block-editor-block-card{padding-bottom:4px;padding-left:0;padding-right:0}.block-editor-inserter__insertable-blocks-at-selection{border-bottom:1px solid #e0e0e0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__media-tabs-container{display:flex;flex-direction:column;flex-grow:1;justify-content:space-between;padding:0 16px 16px}.block-editor-inserter__media-tabs-container{padding-top:16px}.block-editor-inserter__category-tablist{margin-bottom:8px}.block-editor-inserter__category-panel{display:flex;flex-direction:column;outline:1px solid transparent;padding:0 16px}@media (min-width:782px){.block-editor-inserter__category-panel{background:#f0f0f0;border-left:1px solid #e0e0e0;border-top:1px solid #e0e0e0;height:calc(100% + 1px);left:350px;padding:0;position:absolute;top:-1px;width:280px}.block-editor-inserter__category-panel .block-editor-block-patterns-list,.block-editor-inserter__category-panel .block-editor-inserter__media-list{padding:0 24px 16px}}.block-editor-inserter__patterns-category-panel-header{padding:8px 0}@media (min-width:782px){.block-editor-inserter__patterns-category-panel-header{padding:8px 24px}}.block-editor-inserter__patterns-category-no-results{margin-top:24px}.block-editor-inserter__patterns-filter-help{border-top:1px solid #ddd;color:#757575;min-width:280px;padding:16px}.block-editor-block-patterns-list,.block-editor-inserter__media-list{flex-grow:1;height:100%;overflow-y:auto}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;border-radius:2px;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:left;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;left:0;overflow-x:visible;overflow-y:auto;padding:24px;position:absolute;top:72px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:left;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-left:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container{width:380px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-gap:32px;display:grid;grid-template-columns:repeat(1,1fr);margin-bottom:16px}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{height:inherit;max-height:800px;min-height:100px}.components-heading.block-editor-inserter__patterns-category-panel-title{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-inserter__media-library-button.components-button,.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-mobile-screen{align-self:stretch;display:flex;flex-direction:column}.block-editor-inserter__media-panel{display:flex;flex:1;flex-direction:column;min-height:0;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{flex:0 1 auto;min-height:100%;padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:24px}@media (min-width:782px){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:0;padding:16px 24px}}.block-editor-inserter__media-panel .block-editor-inserter__no-results{flex-grow:1}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer{flex-shrink:0;padding-bottom:16px;padding-top:16px}@media (min-width:782px){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer{padding-left:24px;padding-right:24px}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-attach.components-button{justify-content:center;padding:16px}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results{display:flex;flex-direction:column;flex-grow:1;min-height:0}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list{animation:inserter-media-panel-pulse 1s ease-in-out infinite;opacity:1}}.block-editor-inserter__media-panel.has-footer .block-editor-inserter__media-list{padding-bottom:0}@keyframes inserter-media-panel-pulse{0%,to{opacity:1}50%{opacity:.5}}.block-editor-inserter__media-panel-detach-modal{z-index:1000001}.block-editor-inserter__media-panel-detach-modal p{margin-top:0}.block-editor-inserter__media-panel-detach-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}.block-editor-inserter__media-list__list-item{cursor:var(--wpds-cursor-control,pointer);margin-bottom:24px;position:relative}.block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list__list-item[draggable=true] .block-editor-inserter__media-list__list-item{cursor:grab}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview>*{outline-color:rgba(0,0,0,.3)}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button,.block-editor-inserter__media-list__list-item:focus-within .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{position:absolute;right:8px;top:8px}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;display:none}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}@media not (prefers-reduced-motion){.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{transition:outline .1s linear}}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input{height:40px}.block-editor-inserter__pattern-panel-placeholder{display:none}.block-editor-inserter__menu.is-zoom-out{display:flex}@media (min-width:782px){.block-editor-inserter__menu.is-zoom-out.show-panel:after{content:"";display:block;height:100%;width:300px}}@media (max-width:959px){.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}}.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}.block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__help-text{display:none;padding:0 24px 16px}@media (min-width:480px){.block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__help-text{display:block}}.spacing-sizes-control{border:0;margin:0;padding:0}.spacing-sizes-control .spacing-sizes-control__label,.spacing-sizes-control .spacing-sizes-control__unit-control{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__preset-range{flex:1;margin-bottom:0}.spacing-sizes-control__header{height:16px;margin-bottom:12px}.spacing-sizes-control__wrapper{align-items:center}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__wrapper .preset-input-control__icon{margin-left:-4px}.block-editor-block-visibility-modal{z-index:1000001}.block-editor-block-visibility-modal__options{border:0;list-style:none;margin:24px 0;padding:0}.block-editor-block-visibility-modal__options-item{align-items:center;display:flex;gap:24px;justify-content:space-between;margin:0 0 16px}.block-editor-block-visibility-modal__options-item:last-child{margin:0}.block-editor-block-visibility-modal__options-item--everywhere{align-items:start;flex-direction:column}.block-editor-block-visibility-modal__options-checkbox--everywhere{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-visibility-modal__options-icon--checked{fill:#ddd}.block-editor-block-visibility-modal__sub-options{padding-inline-start:12px;width:100%}.block-editor-block-visibility-modal__description{color:#757575;font-size:12px}.block-editor-block-visibility-info{align-items:center;display:flex;justify-content:start;margin:0 16px 16px;padding-bottom:4px;padding-top:4px}
\ No newline at end of file
+:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-autocompleters__block[aria-selected=true] .block-editor-block-icon{color:inherit!important}.block-editor-global-styles-background-panel__inspector-media-replace-container{position:relative}.block-editor-global-styles-background-panel__inspector-media-replace-container.is-open{background-color:#f0f0f0}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item{border:0;flex-grow:1}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-media-replace-container .block-editor-global-styles-background-panel__inspector-preview-inner{height:100%}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown{display:block}.block-editor-global-styles-background-panel__inspector-media-replace-container .components-dropdown .block-editor-global-styles-background-panel__dropdown-toggle{height:40px}.block-editor-global-styles-background-panel__image-tools-panel-item{border:1px solid #ddd;grid-column:1/-1;position:relative}.block-editor-global-styles-background-panel__image-tools-panel-item .components-drop-zone__content-icon{display:none}.block-editor-global-styles-background-panel__image-tools-panel-item .components-dropdown{display:block}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button{color:#1e1e1e;display:block;width:100%}.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover{color:var(--wp-admin-theme-color)}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading{height:100%;padding:10px 0 0;position:absolute;width:100%;z-index:1}.block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading svg{margin:0}.block-editor-global-styles-background-panel__dropdown-toggle{background:transparent;border:none;cursor:var(--wpds-cursor-control,pointer);height:100%;padding-left:12px;padding-right:32px;width:100%}.block-editor-global-styles-background-panel__reset{margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-editor-global-styles-background-panel__reset{transition:opacity .1s ease-in-out}}.block-editor-global-styles-background-panel__reset.has-local-override-from-global-styles__reset{align-items:center;display:inline-flex;justify-content:center;margin-block:0;margin-inline:0 8px;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.block-editor-global-styles-background-panel__reset.block-editor-global-styles-background-panel__reset{border-radius:2px}.block-editor-global-styles-background-panel__dropdown-toggle:hover+.block-editor-global-styles-background-panel__reset,.block-editor-global-styles-background-panel__reset:focus,.block-editor-global-styles-background-panel__reset:focus-within,.block-editor-global-styles-background-panel__reset:hover{opacity:1}@media (hover:none){.block-editor-global-styles-background-panel__reset{opacity:1}}.block-editor-global-styles-background-panel__inspector-media-replace-title{text-align:start;white-space:normal;word-break:break-all}.block-editor-global-styles-background-panel__inspector-image-indicator{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);background-size:cover;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:20px;outline:1px solid transparent;width:20px}.block-editor-global-styles-background-panel__dropdown-content-wrapper{min-width:260px;overflow-x:hidden}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker-wrapper{background-color:#f0f0f0;border:1px solid #ddd;border-radius:2px;width:100%}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker__media--image{max-height:180px}.block-editor-global-styles-background-panel__dropdown-content-wrapper .components-focal-point-picker:after{content:none}.modal-open .block-editor-global-styles-background-panel__popover{z-index:159890}.block-editor-global-styles-background-panel__media-replace-popover .components-popover__content{width:226px}.block-editor-global-styles-background-panel__media-replace-popover .components-button{padding:0 8px}.block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right{margin-left:16px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}iframe[name=editor-canvas]{box-sizing:border-box;display:block;height:100%;width:100%}@media not (prefers-reduced-motion){iframe[name=editor-canvas]{transition:all .4s cubic-bezier(.46,.03,.52,.96)}}iframe[name=editor-canvas]{background-color:var(--wp-editor-canvas-background)}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.block-editor-block-inspector .block-editor-html-element-control:where(:not(:last-child)),.block-editor-block-inspector .block-editor-image-size-control:where(:not(:last-child)),.block-editor-block-inspector .components-base-control:where(:not(:last-child)),.block-editor-block-inspector .components-radio-control:where(:not(:last-child)){margin-bottom:16px}.block-editor-block-inspector .block-editor-html-element-control .components-base-control,.block-editor-block-inspector .block-editor-image-size-control .components-base-control,.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control,.block-editor-block-inspector .components-range-control .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector-edit-contents{margin:0 16px 16px}.block-editor-block-inspector-edit-contents .block-editor-block-inspector-edit-contents__button{justify-content:center}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;left:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;position:absolute;will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter{justify-content:center;left:calc(50% - 12px);top:calc(50% - 12px)}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter{line-height:0;position:absolute;right:0;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled{display:none}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}@media not (prefers-reduced-motion){.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon svg,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg{transform:rotate(45deg)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;margin-bottom:8px;margin-top:8px;overflow:visible;pointer-events:all;position:static;width:auto}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:56px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent{margin-left:0}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar{overflow:visible}.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group{border-right-color:#1e1e1e}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}@media not (prefers-reduced-motion){.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards}}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{left:-57px;position:absolute}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:before{content:""}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:after{display:none}.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{background-color:#fff;border:1px solid #1e1e1e;padding-left:6px;padding-right:6px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__button{padding-left:12px;padding-right:12px}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector{left:auto;margin-left:-1px;position:relative}.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-mover__move-button-container,.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #1e1e1e}.is-dragging-components-draggable .components-tooltip{display:none}.components-popover.block-editor-block-popover__inbetween .block-editor-button-pattern-inserter__button{left:50%;pointer-events:all;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.block-editor-block-tools--is-dragging>.popover-slot{display:none}.block-editor-block-lock-modal{z-index:1000001}.block-editor-block-lock-modal__options{border:0;margin:0;padding:0}.block-editor-block-lock-modal__options legend{margin-bottom:16px;padding:0}.block-editor-block-lock-modal__checklist{list-style:none;margin:0;padding:0}.block-editor-block-lock-modal__options-all{padding:12px 0}.block-editor-block-lock-modal__options-all .components-checkbox-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 0 12px 32px}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{fill:#1e1e1e;flex-shrink:0;margin-right:12px}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding-top:16px}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-left:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-left:1px solid #1e1e1e;margin-left:6px!important;margin-right:-6px}.block-editor-block-allowed-blocks-control:not(:only-child){margin-top:16px}.block-editor-block-allowed-blocks-control__button{justify-content:center;width:100%}.block-editor-block-allowed-blocks-modal{z-index:1000001}.block-editor-block-allowed-blocks-modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:-24px;left:0;margin:0 -24px -24px;padding:16px 24px;position:sticky;z-index:1}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0;white-space:nowrap}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.block-editor-block-breadcrumb__button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{color:#1e1e1e;padding:16px}.block-editor-block-card.is-parent{padding-bottom:4px}.block-editor-block-card.is-child{padding-top:4px}.block-editor-block-card__parent-select-button{align-items:start;height:auto!important;padding:0;text-align:start}.block-editor-block-card__title{align-items:center;display:flex;flex-wrap:wrap;font-weight:var(--wpds-typography-font-weight-emphasis,600);gap:4px 8px}.block-editor-block-card__title.block-editor-block-card__title{font-size:13px;line-height:1.4;margin:0}.block-editor-block-card__name{padding:3px 0}.block-editor-block-card .block-editor-block-icon,.block-editor-block-card__child-indicator-icon{flex:0 0 24px;height:24px;margin-left:0;margin-right:12px;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 16px 0 0;width:50%}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{left:0;position:absolute;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:-moz-max-content;width:max-content}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-right:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-right:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{align-items:center;background-color:transparent;bottom:0;display:flex;justify-content:center;left:0;opacity:0;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{transition:all .1s linear .1s}}.block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled .block-editor-block-draggable-chip__disabled-icon{background:transparent linear-gradient(-45deg,transparent 47.5%,#fff 0,#fff 52.5%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1.5px #fff;display:inline-block;height:20px;padding:0;width:20px}.block-draggable-invalid-drag-token .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled{background-color:#757575;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);opacity:1}.block-editor-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.block-editor-block-manager__category{isolation:isolate;margin:0 0 24px}.block-editor-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.block-editor-block-manager__category-title .components-checkbox-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-manager__checklist{margin-top:0}.block-editor-block-manager__category-title,.block-editor-block-manager__checklist-item{border-bottom:1px solid #ddd}.block-editor-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 0 8px 16px}.components-modal__content .block-editor-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.block-editor-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-right:10px}.block-editor-block-manager__results{border-top:1px solid #ddd}.block-editor-block-manager__disabled-blocks-count+.block-editor-block-manager__results{border-top-width:0}.block-editor-block-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:20px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:3px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:3px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{left:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{right:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button{overflow:hidden}.components-button.block-editor-block-mover-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 12px;text-transform:uppercase}.block-editor-block-patterns-list__list-item{cursor:var(--wpds-cursor-control,pointer);margin-bottom:16px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true]{cursor:grab}.block-editor-block-patterns-list__item{height:100%;outline:0;scroll-margin-bottom:56px;scroll-margin-top:24px}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{flex-grow:1;text-align:left}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:4px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{border-radius:4px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}@media not (prefers-reduced-motion){.block-editor-block-patterns-list__item .block-editor-block-preview__container:after{transition:outline .1s linear}}.block-editor-block-patterns-list__item.is-selected .block-editor-block-preview__container:after{outline-color:#1e1e1e;outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container:after{outline-color:rgba(0,0,0,.3)}.block-editor-block-patterns-list__item[data-focus-visible] .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-details:not(:empty){align-items:center;margin-top:8px;padding-bottom:4px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper{height:24px;min-width:24px}.block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon{fill:var(--wp-block-synced-color)}.block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination{border-top:1px solid #2f2f2f;justify-content:center;padding:4px}.show-icon-labels .block-editor-patterns__grid-pagination-button{width:auto}.show-icon-labels .block-editor-patterns__grid-pagination-button span{display:none}.show-icon-labels .block-editor-patterns__grid-pagination-button:before{content:attr(aria-label)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:-moz-max-content;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{left:0;margin:0;min-height:auto;overflow:visible;text-align:initial;top:0;transform-origin:top left;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-quick-navigation__item{font-weight:var(--wpds-typography-font-weight-default,400)}.block-editor-block-rename-modal{z-index:1000001}.block-editor-block-styles__preview-panel{display:none;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles{grid-column:1/-1}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{border-color:#ddd;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ddd;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;-moz-text-align-last:center;text-align-last:center;white-space:normal;word-break:break-all}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover-preview-container{bottom:0;left:0;pointer-events:none;position:absolute;top:-1px;width:100%}.block-editor-block-switcher__popover-preview{overflow:hidden}.block-editor-block-switcher__popover-preview .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:4px;box-shadow:none;outline:none;overflow:auto;width:300px}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__popover-preview .block-editor-block-switcher__preview.is-pattern-list-preview{overflow:unset}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:var(--wpds-cursor-control,pointer)}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border-radius:2px;height:100%}@media not (prefers-reduced-motion){.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{transition:all .05s ease-in-out}}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid transparent;position:relative}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:var(--wpds-cursor-control,pointer);font-size:12px;padding:4px;text-align:center}.block-editor-block-switcher__no-transforms{color:#757575;margin:0;padding:6px 8px}.block-editor-block-switcher__binding-indicator{display:block;padding:8px}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{-moz-column-count:3;column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:var(--wpds-cursor-control,pointer)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item{scroll-margin:5px 0}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:var(--wpds-cursor-control,pointer);font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:4px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:stretch;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:64px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:left;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;width:100%}@media not (prefers-reduced-motion){.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{transition:transform .5s,z-index .5s}}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{box-sizing:border-box;padding:0 16px 16px}.block-editor-block-variation-transforms:where(fieldset){border:0;margin:0;min-inline-size:0}.block-editor-block-variation-transforms__button{justify-content:center;width:100%}.components-border-radius-control__header{height:16px;margin-bottom:12px}.components-border-radius-control{border:0;margin:0 0 12px;padding:0}.components-border-radius-control legend{margin-bottom:0}.components-border-radius-control .components-border-radius-control__linked-button{display:flex;justify-content:center}.components-border-radius-control .components-border-radius-control__linked-button svg{margin-right:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{border:0;margin:0;min-width:0;padding:0}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px)}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__inner-wrapper{grid-column:1/-1;row-gap:0}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__inner-wrapper>*{grid-column:1/-1}.block-editor-panel-color-gradient-settings__dropdown-content{min-height:160px}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-panel-color-gradient-settings__contrast-notice{margin-top:16px}.block-editor-color-gradient-item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0;position:relative}.block-editor-color-gradient-item:nth-child(1 of .block-editor-color-gradient-item){border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px}.block-editor-color-gradient-item:nth-last-child(1 of .block-editor-color-gradient-item){border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-color-gradient-item>div,.block-editor-color-gradient-item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:left}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{max-width:calc(100% - 44px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-tools-panel-color-gradient-settings__dropdown>button.has-contrast-warning .block-editor-panel-color-gradient-settings__color-name{max-width:calc(100% - 72px)}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-panel-color-gradient-settings__reset{margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-editor-panel-color-gradient-settings__reset{transition:opacity .1s ease-in-out}}.block-editor-panel-color-gradient-settings__reset.block-editor-panel-color-gradient-settings__reset{border-radius:2px}.block-editor-panel-color-gradient-settings__dropdown:hover+.block-editor-panel-color-gradient-settings__reset,.block-editor-panel-color-gradient-settings__reset:focus,.block-editor-panel-color-gradient-settings__reset:hover{opacity:1}@media (hover:none){.block-editor-panel-color-gradient-settings__reset{opacity:1}}.block-editor-panel-color-gradient-settings__dropdown.has-contrast-warning+.block-editor-panel-color-gradient-settings__reset{right:28px}.block-editor-panel-color-gradient-settings__contrast-warning{margin:auto 8px;position:absolute;right:0;top:8px}.block-editor-panel-color-gradient-settings__contrast-warning.block-editor-panel-color-gradient-settings__contrast-warning{border-radius:2px}.block-editor-date-format-picker{border:none;margin:0 0 16px;padding:0}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-dimension-control{border:0;margin:0;padding:0}.block-editor-duotone-control__popover.components-popover>.components-popover__content{padding:8px;width:260px}.block-editor-duotone-control__popover.components-popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover.components-popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__unset-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-fit-text-size-warning{grid-column:span 2}.components-font-appearance-control [role=option]{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles__toggle-icon{fill:currentColor}.block-editor-global-styles__shadow-popover-container{width:230px}.block-editor-global-styles__shadow__list{display:flex;flex-wrap:wrap;gap:12px;padding-bottom:8px}.block-editor-global-styles__clear-shadow{text-align:right}.block-editor-global-styles-state-control{margin-top:-4px}.block-editor-global-styles-state-control__badges{min-height:24px}.block-editor-global-styles-state-control__badge-tooltip-trigger{display:inline-flex;max-width:100%}.block-editor-global-styles-filters-panel__dropdown,.block-editor-global-styles__shadow-dropdown{border:1px solid #ddd;border-radius:2px;display:block;padding:0;position:relative}.block-editor-global-styles-filters-panel__dropdown-toggle,.block-editor-global-styles__shadow-dropdown-toggle{padding:8px;width:100%}.block-editor-global-styles-filters-panel__dropdown-toggle.is-open,.block-editor-global-styles__shadow-dropdown-toggle.is-open{background-color:#f0f0f0}.block-editor-global-styles__shadow-editor__remove-button{margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-editor-global-styles__shadow-editor__remove-button{transition:opacity .1s ease-in-out}}.block-editor-global-styles__shadow-dropdown:hover .block-editor-global-styles__shadow-editor__remove-button,.block-editor-global-styles__shadow-editor__remove-button:focus,.block-editor-global-styles__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.block-editor-global-styles__shadow-editor__remove-button{opacity:1}}.block-editor-global-styles__shadow-indicator{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;color:#2f2f2f;cursor:var(--wpds-cursor-control,pointer);display:inline-flex;height:26px;padding:0;transform:scale(1);width:26px}@media not (prefers-reduced-motion){.block-editor-global-styles__shadow-indicator{transition:transform .1s ease}}.block-editor-global-styles__shadow-indicator{will-change:transform}.block-editor-global-styles__shadow-indicator:focus{border:2px solid #757575}.block-editor-global-styles__shadow-indicator:hover{transform:scale(1.2)}.block-editor-global-styles__shadow-indicator.unset{background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-global-styles-advanced-panel__custom-css-input{margin-bottom:16px}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-panel-duotone-settings__reset{margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-editor-panel-duotone-settings__reset{transition:opacity .1s ease-in-out}}.block-editor-global-styles-filters-panel__dropdown:hover .block-editor-panel-duotone-settings__reset,.block-editor-panel-duotone-settings__reset:focus,.block-editor-panel-duotone-settings__reset:hover{opacity:1}@media (hover:none){.block-editor-panel-duotone-settings__reset{opacity:1}}.is-inherited-from-global-styles .components-base-control__label,.is-inherited-from-global-styles .components-input-control__label{text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:.2em}.is-inherited-from-global-styles .block-editor-global-styles-background-panel__inspector-media-replace-title,.is-inherited-from-global-styles .block-editor-panel-color-gradient-settings__color-name,.is-inherited-from-global-styles .block-editor-panel-duotone-settings__label{border-bottom:1px dotted}.has-local-override-from-global-styles{position:relative}.global-styles-inheritance-affordance{align-items:center;display:flex;height:16px;inset-block-start:0;inset-inline-end:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}.global-styles-inheritance-affordance--offset-toggle{inset-inline-end:32px}.global-styles-inheritance-affordance .has-local-override-from-global-styles__reset{margin-inline-start:0!important;pointer-events:auto}.has-local-override-from-global-styles__reset{align-items:center;background:transparent!important;border-radius:50%!important;box-shadow:none!important;cursor:var(--wpds-cursor-control,pointer);display:inline-flex!important;height:14px!important;justify-content:center;letter-spacing:normal;margin-inline-start:6px;min-width:14px!important;overflow:hidden;padding:0!important;position:relative;text-transform:none;vertical-align:middle;width:14px!important}.has-local-override-from-global-styles__reset:focus,.has-local-override-from-global-styles__reset:hover{background:transparent!important}.has-local-override-from-global-styles__reset:focus .has-local-override-from-global-styles__dot,.has-local-override-from-global-styles__reset:hover .has-local-override-from-global-styles__dot{display:none}.has-local-override-from-global-styles__reset:focus .has-local-override-from-global-styles__reset-icon,.has-local-override-from-global-styles__reset:hover .has-local-override-from-global-styles__reset-icon{display:block}.has-local-override-from-global-styles__reset:focus-visible{outline:1.5px solid var(--wp-admin-theme-color,#007cba);outline-offset:1px}.has-local-override-from-global-styles__reset.block-editor-panel-color-gradient-settings__reset{justify-content:center;margin-block:0;margin-inline-start:0;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.has-local-override-from-global-styles__reset.block-editor-global-styles__shadow-editor__remove-button,.has-local-override-from-global-styles__reset.block-editor-panel-duotone-settings__reset{inset-inline-end:8px;justify-content:center;margin-block:0;margin-inline-start:0;opacity:1;position:absolute;top:50%;transform:translateY(-50%)}.has-local-override-from-global-styles__dot{background-color:var(--wp-admin-theme-color,#007cba);border-radius:50%;display:block;height:8px;width:8px}.has-local-override-from-global-styles__reset-icon{color:var(--wp-admin-theme-color,#007cba);display:none;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer{z-index:30}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .components-popover__content *{pointer-events:none}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer.is-dropping-allowed .block-editor-grid-visualizer__drop-zone{pointer-events:all}.block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .block-editor-inserter *{pointer-events:auto}.block-editor-grid-visualizer__grid{display:grid;position:absolute}.block-editor-grid-visualizer__cell{display:grid;position:relative}.block-editor-grid-visualizer__cell .block-editor-inserter{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:32}.block-editor-grid-visualizer__cell .block-editor-inserter .block-editor-grid-visualizer__appender{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 20%,transparent);color:inherit;height:100%;opacity:0;overflow:hidden;padding:0!important;width:100%}.block-editor-grid-visualizer__cell.is-highlighted .block-editor-grid-visualizer__drop-zone,.block-editor-grid-visualizer__cell.is-highlighted .block-editor-inserter{background:var(--wp-admin-theme-color)}.block-editor-grid-visualizer__cell .block-editor-grid-visualizer__appender:focus,.block-editor-grid-visualizer__cell:hover .block-editor-grid-visualizer__appender{background-color:color-mix(in srgb,currentColor 20%,transparent);opacity:1}.block-editor-grid-visualizer__drop-zone{background:hsla(0,0%,80%,.1);grid-column:1;grid-row:1;height:100%;min-height:8px;min-width:8px;width:100%}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer{z-index:30}.block-editor-grid-item-resizer.block-editor-grid-item-resizer.block-editor-grid-item-resizer .components-popover__content *{pointer-events:none}.block-editor-grid-item-resizer__box{border:1px solid var(--wp-admin-theme-color)}.block-editor-grid-item-resizer__box .components-resizable-box__handle.components-resizable-box__handle.components-resizable-box__handle{pointer-events:all}.block-editor-grid-item-mover__move-button-container{border:none;display:flex;justify-content:center;padding:0}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button{min-width:0!important;padding-left:0;padding-right:0;width:24px}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button svg{min-width:24px}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:before,.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:enabled{box-shadow:none;outline:none}.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus-visible:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-grid-item-mover__move-vertical-button-container{display:flex;position:relative}@media (min-width:600px){.block-editor-grid-item-mover__move-vertical-button-container{flex-direction:column;justify-content:space-around}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button{height:20px!important;min-width:0!important;width:100%}.block-editor-grid-item-mover__move-vertical-button-container>.block-editor-grid-item-mover-button.block-editor-grid-item-mover-button:before{height:calc(100% - 4px)}.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-down-button svg,.block-editor-grid-item-mover__move-vertical-button-container .block-editor-grid-item-mover-button.is-up-button svg{flex-shrink:0;height:20px}.editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container{height:40px;position:relative;top:-4px}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container{position:relative}@media (min-width:600px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#e0e0e0;content:"";height:100%;position:absolute;top:0;width:1px}}@media (min-width:782px){.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left{padding-right:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-left:before{right:0}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right{padding-left:6px}.show-icon-labels .block-editor-grid-item-mover__move-horizontal-button-container.is-right:before{left:0}@media (min-width:600px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{background:#e0e0e0;content:"";height:1px;left:50%;margin-top:-.5px;position:absolute;top:50%;transform:translate(-50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-grid-item-mover__move-vertical-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-grid-item-mover-button{white-space:nowrap}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-horizontal-button-container:before{background:#ddd;height:24px;top:4px}.show-icon-labels .editor-collapsible-block-toolbar .block-editor-grid-item-mover__move-vertical-button-container:before{background:#ddd;width:calc(100% - 24px)}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-iframe__container{height:100%;width:100%}.block-editor-iframe__scale-container{height:100%}.block-editor-iframe__scale-container.is-zoomed-out{position:absolute;right:0;width:var(--wp-block-editor-iframe-zoom-out-scale-container-width,100vw)}.wp-block-image__crop-area{max-width:100%;overflow:hidden;position:relative;width:100%}.wp-block-image__crop-area .reactEasyCrop_Container{pointer-events:auto}.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{border:none;border-radius:0}.wp-block-image__zoom .components-popover__content{min-width:260px;overflow:visible!important}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:transparent;color:#1e1e1e;cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;font-size:13px;justify-content:center;padding:8px;width:100%;word-break:break-word}@media not (prefers-reduced-motion){.components-button.block-editor-block-types-list__item{transition:all .05s ease-in-out}}.components-button.block-editor-block-types-list__item{height:auto;position:relative}.components-button.block-editor-block-types-list__item:disabled,.components-button.block-editor-block-types-list__item[aria-disabled=true]{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled,[aria-disabled=true]):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.block-editor-block-types-list__item-icon{color:#1e1e1e;padding:12px 20px}@media not (prefers-reduced-motion){.block-editor-block-types-list__item-icon{transition:all .05s ease-in-out}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}@media not (prefers-reduced-motion){.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;hyphens:auto;padding:4px 2px 8px}.modal-open .block-editor-inspector-list-view-content-popover{z-index:99999}.block-editor-block-inspector__tabs [role=tablist]{width:100%}.block-editor-inspector-popover-header{margin-bottom:16px}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview{flex-wrap:wrap;gap:4px}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview .components-button.has-icon{padding:4px;width:auto}.show-icon-labels .block-editor-link-control .block-editor-link-control__preview .block-editor-link-control_link-information{margin-right:0;min-width:100%}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__help{color:#757575;font-size:12px;font-style:normal;margin-bottom:0;margin-top:-8px;padding:0 16px}.block-editor-link-control__search-input-container,.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field .components-base-control__label{color:#1e1e1e}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{padding:8px 16px 16px}.block-editor-link-control__search-results-wrapper{position:relative}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";display:block;left:-1px;pointer-events:none;position:absolute;right:16px;z-index:100}.block-editor-link-control__search-results-wrapper:before{bottom:auto;height:8px;top:0}.block-editor-link-control__search-results-wrapper:after{bottom:0;height:16px;top:auto}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:left}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:transparent;color:inherit;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__preview{background:transparent;border:0;padding:16px}.block-editor-link-control__preview .block-editor-link-control__link-information{margin-right:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__preview .block-editor-link-control__link-information .block-editor-link-control__preview-info{color:#757575;font-size:12px;line-height:1.1;word-break:break-all}.block-editor-link-control__preview.is-url-title .block-editor-link-control__preview-title{word-break:break-all}.block-editor-link-control__preview .block-editor-link-control__preview-icon,.block-editor-link-control__preview .block-editor-link-control__preview-image{background-color:#f0f0f0;border-radius:2px;flex-shrink:0;height:32px;position:relative;width:32px}.block-editor-link-control__preview .block-editor-link-control__preview-icon img{width:16px}.block-editor-link-control__preview.is-error .block-editor-link-control__preview-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__preview .block-editor-link-control__preview-title{line-height:var(--wpds-typography-line-height-sm,20px)}.block-editor-link-control__preview .block-editor-link-control__preview-title:focus{box-shadow:none}.block-editor-link-control__preview .block-editor-link-control__preview-title:focus-visible{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;text-decoration:none}.block-editor-link-control__preview .block-editor-link-control__preview-title mark{background-color:transparent;color:inherit;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-link-control__preview .block-editor-link-control__preview-title span{font-weight:400}.block-editor-link-control__preview .block-editor-link-control__preview-title .components-external-link__icon{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon img,.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon svg{opacity:0}.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon:before{background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s}}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;left:0;position:absolute;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__preview-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__settings{border:0;margin:0;padding:0}.block-editor-link-control__setting{flex:1;margin-bottom:0;padding:8px 24px}.block-editor-link-control__setting .components-base-control:not(.components-input-control) .components-base-control__field{display:flex}.block-editor-link-control__setting .components-base-control__field .components-checkbox-control__label{color:#1e1e1e}.block-editor-link-control__setting input{margin-left:0}.is-preview .block-editor-link-control__setting{padding:20px 8px 8px 0}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-left:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true]{color:#1e1e1e}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{visibility:visible}@media not (prefers-reduced-motion){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition:transform .1s ease}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(90deg)}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);visibility:visible}@media not (prefers-reduced-motion){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition:transform .1s ease}}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{bottom:auto;left:auto;position:absolute;right:40px;top:calc(50% - 8px)}.block-editor-link-control .block-editor-link-control__search-input-wrapper.has-actions .components-spinner{right:12px;top:calc(50% + 4px)}.link-preview-button.components-button{border-color:#949494;height:auto;padding:12px;width:100%}.link-preview-button__image-container{flex-shrink:0;height:24px;width:24px}.link-preview-button__image{border-radius:2px;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.link-preview-button__content,.link-preview-button__details{flex:1;min-width:0}.link-preview-button__hint,.link-preview-button__title{display:block;min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.link-preview-button__title{color:#1e1e1e;display:block;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:4px}.link-preview-button__hint{color:#757575;font-size:12px;font-weight:400}.link-preview-button__icon{color:#1e1e1e}.link-preview-button__badges{margin-top:8px}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-tree.is-dragging tbody{pointer-events:none}.block-editor-list-view-leaf{position:relative;transform:translateY(0)}.block-editor-list-view-leaf.is-draggable,.block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents{cursor:grab}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.block-editor-list-view-leaf .block-editor-list-view-block-select-button svg{fill:currentColor}@media (forced-colors:active){.block-editor-list-view-leaf .block-editor-list-view-block-select-button svg{fill:CanvasText}}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-normal{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-normal{transform:translateY(0)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-up{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-up{transform:translateY(-32px)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-displacement-down{transition:transform .2s}}.block-editor-list-view-leaf.is-displacement-down{transform:translateY(32px)}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks{transform:translateY(calc(var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-up{transform:translateY(calc(-32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transition:transform .2s}}.block-editor-list-view-leaf.is-after-dragged-blocks.is-displacement-down{transform:translateY(calc(32px + var(--wp-admin--list-view-dragged-items-height, 32px)*-1))}.block-editor-list-view-leaf.is-dragging{left:0;opacity:0;pointer-events:none;z-index:-9999}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;box-sizing:border-box;color:inherit;display:flex;font-family:inherit;font-size:13px;font-weight:400;height:32px;margin:0;padding:6px 4px 6px 0;position:relative;text-align:left;text-decoration:none;white-space:nowrap;width:100%}@media not (prefers-reduced-motion){.block-editor-list-view-leaf .block-editor-list-view-block-contents{transition:box-shadow .1s linear}}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";left:0;pointer-events:none;position:absolute;right:-29px;top:0;z-index:2}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{right:0}.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));z-index:1}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{opacity:1}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:__wp-base-styles-fade-in .08s linear 0s;animation-fill-mode:forwards}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-right:4px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:28px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper{width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper>*{min-width:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg{left:2px;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{background:#f0f0f0;border-radius:2px;box-sizing:border-box;color:#2f2f2f;font-size:12px;line-height:20px;max-width:100%;overflow:hidden;padding:2px 8px;position:absolute;right:0;text-overflow:ellipsis;transform:translateY(-50%);white-space:nowrap}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.3);color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__block-visibility,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky{line-height:0}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__images{display:flex}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image{background-size:cover;border-radius:1px;height:18px;width:18px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px #fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__image:not(:first-child){margin-left:-6px}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child){box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-disabled{opacity:.2}@media not (prefers-reduced-motion){.block-editor-list-view-leaf.is-disabled{transition:opacity .1s linear}}.block-editor-list-view-leaf.is-disabled:hover{opacity:.2}.block-editor-list-view-leaf.is-disabled .block-editor-list-view__expander{cursor:default}.block-editor-list-view-leaf.is-disabled .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-draggable-chip{opacity:.8}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{cursor:var(--wpds-cursor-control,pointer);height:24px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-left:192px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-left:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-left:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-left:48px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-left:72px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-left:96px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-left:120px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-left:144px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-left:168px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{visibility:visible}@media not (prefers-reduced-motion){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition:transform .2s ease}}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(90deg)}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);visibility:visible}@media not (prefers-reduced-motion){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition:transform .2s ease}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-drop-indicator--preview{pointer-events:none}.block-editor-list-view-drop-indicator--preview .components-popover__content{overflow:hidden!important}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:4px;height:32px;overflow:hidden}.block-editor-list-view-drop-indicator--preview .block-editor-list-view-drop-indicator__line--darker{background:rgba(var(--wp-admin-theme-color--rgb),.09)}.block-editor-list-view-placeholder{height:32px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;color:#fff;height:24px;margin:8px 0 0 24px;padding:0}.list-view-appender .block-editor-inserter__toggle.has-icon.is-next-40px-default-size{min-width:24px}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description{display:none}.block-editor-media-placeholder__url-input-form{min-width:260px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form{width:300px}}.block-editor-media-placeholder__url-input-form input{direction:ltr}.modal-open .block-editor-media-replace-flow__options{z-index:99999}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-replace-flow__media-upload-menu:not(:empty)+.block-editor-media-flow__url-input{border-top:1px solid #ddd;margin-top:8px;padding-bottom:8px}.block-editor-media-replace-flow__options.is-variant-toolbar .block-editor-media-replace-flow__media-upload-menu:not(:empty)+.block-editor-media-flow__url-input{border-top-color:#1e1e1e}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__preview.is-current{padding:0;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{padding:8px 0 0}.block-editor-multi-selection-inspector__card{padding:16px}.block-editor-multi-selection-inspector__card-title{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-multi-selection-inspector__card-description{color:#757575}.block-editor-multi-selection-inspector__card .block-editor-block-icon{height:24px;margin-left:-2px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal!important}.preset-input-control__wrapper>*{flex:1}.preset-input-control__wrapper>.preset-input-control__custom-toggle,.preset-input-control__wrapper>.preset-input-control__icon{flex:none}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{border-radius:2px;box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{background:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;font-size:14px;font-weight:var(--wpds-typography-font-weight-emphasis,600);z-index:100000}.block-editor-tabbed-sidebar{background-color:#fff;display:flex;flex-direction:column;flex-grow:1;height:100%;overflow:hidden}.block-editor-tabbed-sidebar__tablist-and-close-button{border-bottom:1px solid #ddd;display:flex;justify-content:space-between;padding-right:8px}.block-editor-tabbed-sidebar__close-button{align-self:center;background:#fff;order:1}.block-editor-tabbed-sidebar__tablist{margin-bottom:-1px}.block-editor-tabbed-sidebar__tabpanel{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto;scrollbar-gutter:auto}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{min-width:300px;width:auto}}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{margin:0;position:absolute;right:8px;top:calc(50% - 8px)}.block-editor-url-input__suggestions{max-height:200px}@media not (prefers-reduced-motion){.block-editor-url-input__suggestions{transition:all .15s ease-in-out}}.block-editor-url-input__suggestions{overflow-y:auto;padding:4px 0;width:302px}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:var(--wpds-cursor-control,pointer);display:block;font-size:13px;height:auto;min-height:36px;text-align:left;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{background:#ddd;content:"";display:block;height:24px;position:absolute;right:-1px;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01)}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-popover__additional-controls{border-top:1px solid #1e1e1e;padding:8px}.block-editor-url-popover__input-container{padding:8px}.block-editor-url-popover__row{align-items:center;display:flex;gap:4px}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1;gap:8px}.block-editor-url-popover__additional-controls .components-button.has-icon{height:auto;padding-left:8px;padding-right:8px;text-align:left}.block-editor-url-popover__additional-controls .components-button.has-icon>svg{margin-right:8px}.block-editor-url-popover__settings-toggle{flex-shrink:0}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__settings{border-top:1px solid #1e1e1e;display:block;padding:16px}.block-editor-url-popover__link-container-content{align-items:center;display:flex}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{align-items:center;display:flex;flex-grow:1;flex-shrink:1;margin-right:8px;max-width:350px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.block-editor-url-popover__expand-on-click{align-items:center;display:flex;min-width:350px;white-space:nowrap}.block-editor-url-popover__expand-on-click .text{flex-grow:1}.block-editor-url-popover__expand-on-click .text p{line-height:16px;margin:0}.block-editor-url-popover__expand-on-click .text p.description{color:#757575;font-size:12px}.background-block-support-panel.background-block-support-panel .background-block-support-panel__inner-wrapper{row-gap:0}.block-editor-content-only-controls__link{border-color:#ccc;width:100%}.block-editor-content-only-controls__link-row{align-items:center}.block-editor-content-only-controls__link-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.block-editor-content-only-controls__media{border-color:#ccc;padding-right:32px;width:100%}.block-editor-content-only-controls__media-replace-flow{display:block}.block-editor-content-only-controls__media-row{align-items:center}.block-editor-content-only-controls__media-placeholder{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:24px;padding:0;width:24px}.block-editor-content-only-controls__media-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.block-editor-content-only-controls__media-thumbnail{align-self:center;border-radius:2px;height:20px;overflow:hidden;width:20px}.block-editor-content-only-controls__media-thumbnail img{height:100%!important;-o-object-fit:cover;object-fit:cover;width:100%!important}.block-editor-content-only-controls{position:relative}.block-editor-content-only-controls__media-reset{border-radius:2px;margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-editor-content-only-controls__media-reset{transition:opacity .1s ease-in-out}}.block-editor-content-only-controls:hover .block-editor-content-only-controls__media-reset,.block-editor-content-only-controls__media-reset:focus,.block-editor-content-only-controls__media-reset:hover{opacity:1}@media (hover:none){.block-editor-content-only-controls__media-reset{opacity:1}}.block-editor-content-only-controls__rich-text{background:#fff;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;color:#1e1e1e;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin:0;padding:6px 8px;width:100%}@media not (prefers-reduced-motion){.block-editor-content-only-controls__rich-text{transition:box-shadow .1s linear}}@media (min-width:600px){.block-editor-content-only-controls__rich-text{font-size:13px;line-height:normal}}.block-editor-content-only-controls__rich-text:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-content-only-controls__rich-text::-moz-placeholder{color:rgba(30,30,30,.62)}.block-editor-content-only-controls__rich-text::placeholder{color:rgba(30,30,30,.62)}.block-editor-content-only-controls__rich-text{border-color:#949494}.block-editor-content-only-controls__rich-text::-moz-placeholder{color:color-mix(in srgb,#1e1e1e,transparent 38%)}.block-editor-content-only-controls__rich-text::placeholder{color:color-mix(in srgb,#1e1e1e,transparent 38%)}.block-editor-content-only-controls__rich-text{min-height:40px;padding:12px}.block-editor-block-fields__container{padding:0 16px 16px}.block-editor-block-fields__container:first-of-type{border-block-start:1px solid #e0e0e0;padding-block-start:8px}.block-editor-block-fields__header{margin-bottom:4px;padding:8px 0}.block-editor-block-fields__header-icon{flex:0 0 24px}.block-editor-block-fields__header-title{flex:1;margin:0!important}.block-editor-hooks__block-hooks .components-toggle-control .components-h-stack .components-h-stack{flex-direction:row}.block-editor-hooks__block-hooks .block-editor-hooks__block-hooks-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__position-control-item{max-inline-size:max(var(--anchor-width) - 2 * var(--wp-ui-popup-padding),223px)}.block-editor-hooks__position-control-item-hint{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-block-start:4px}div.block-editor-bindings__panel{grid-template-columns:repeat(auto-fit,minmax(100%,1fr))}div.block-editor-bindings__panel button:hover .block-editor-bindings__item span{color:inherit}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.elements-block-support-panel.elements-block-support-panel .elements-block-support-panel__inner-wrapper{row-gap:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-constrained .components-base-control{margin-bottom:0}.block-editor-hooks__layout-constrained-helptext{color:#757575;font-size:12px;margin-bottom:0}.layout-block-support-panel .block-editor-hooks__flex-layout-controls{grid-column:1/-1}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__grid-layout-columns-and-rows-controls,.block-editor-hooks__grid-layout-minimum-width-control{border:0;margin:0;padding:0}.block-editor__spacing-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}@media not (prefers-reduced-motion){.block-editor-block-toolbar{transition:border-color .1s linear,box-shadow .1s linear}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;border:0;border-right:1px solid #ddd;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-connected .block-editor-block-switcher .components-button:before{background:color-mix(in srgb,var(--wp-block-synced-color) 10%,transparent);border-radius:2px}.block-editor-block-toolbar .components-button.block-editor-block-toolbar__block-icon-button[aria-disabled=true],.block-editor-block-toolbar .components-button.block-editor-block-toolbar__block-icon-button[aria-disabled=true]:hover{color:#1e1e1e}.block-editor-block-toolbar.is-connected .block-editor-block-toolbar__block-icon,.block-editor-block-toolbar.is-synced .block-editor-block-toolbar__block-icon{color:var(--wp-block-synced-color)}.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2),.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar,.block-editor-block-toolbar:has(>:last-child:empty)>:nth-last-child(2) .components-toolbar-group,.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-right:none}.block-editor-block-toolbar .components-toolbar-group:empty{display:none}.block-editor-block-contextual-toolbar{background-color:#fff;display:block;flex-shrink:3;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.components-accessible-toolbar{border:none;border-radius:0}.block-editor-block-contextual-toolbar.is-unstyled{box-shadow:0 1px 0 0 rgba(0,0,0,.133)}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{overflow:auto;overflow-y:hidden}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar{height:12px;width:12px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-track{background-color:transparent}.block-editor-block-contextual-toolbar .block-editor-block-toolbar::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#e0e0e0;border:3px solid transparent;border-radius:8px}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus::-webkit-scrollbar-thumb,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover::-webkit-scrollbar-thumb{background-color:#949494}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#e0e0e0 transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:focus-within,.block-editor-block-contextual-toolbar .block-editor-block-toolbar:hover{scrollbar-color:#949494 transparent}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{will-change:transform}@media (hover:none){.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-color:#949494 transparent}}.block-editor-block-contextual-toolbar .block-editor-block-toolbar{scrollbar-gutter:auto}.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar .block-editor-block-toolbar>:last-child:after{display:none}.block-editor-block-contextual-toolbar>.block-editor-block-toolbar{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector{margin-bottom:-1px;margin-top:-1px;position:relative}.block-editor-block-contextual-toolbar .block-editor-block-parent-selector:after{align-items:center;background-color:#1e1e1e;border-radius:100%;content:"";display:inline-flex;height:2px;position:absolute;top:15px;width:2px}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar__pattern-overrides-popover .components-popover__content{min-width:260px;padding:16px}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-flex}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)){width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)) svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:where(:not(.has-text)):after{content:attr(aria-label);font-size:12px}.show-icon-labels .block-editor-block-toolbar .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button{text-wrap:nowrap;border-bottom-right-radius:0;border-top-right-radius:0;padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-parent-selector .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{position:relative;width:auto}@media (min-width:600px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#e0e0e0;content:"";height:1px;left:50%;margin-top:-.5px;position:absolute;top:50%;transform:translate(-50%);width:100%}}@media (min-width:782px){.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container:before{background:#1e1e1e}}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #ddd;margin-left:6px;margin-right:-6px;white-space:nowrap}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-left:6px}.block-editor-block-toolbar-change-design-content-wrapper{padding:12px;width:320px}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list{grid-gap:12px;display:grid;grid-template-columns:1fr 1fr}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{gap:16px;height:100%;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area .block-editor-tabbed-sidebar{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:4px 4px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 4px 4px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tablist{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:var(--wpds-cursor-control,pointer);display:inline-flex;outline:none;padding:0}@media not (prefers-reduced-motion){.block-editor-inserter__toggle.components-button{transition:color .2s ease}}.block-editor-inserter__menu{height:100%;overflow:visible;position:relative}@media (min-width:782px){.block-editor-inserter__menu.show-panel{width:630px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{background-color:#fff;border-bottom:1px solid transparent;padding:16px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.block-editor-inserter__search{transition:border-bottom-color .1s linear}}.block-editor-inserter__search.is-scrolled{border-bottom-color:#e0e0e0}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto;position:relative}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:0 16px;position:relative}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 12px 0 0;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__no-results,.block-editor-inserter__patterns-loading{padding:32px;text-align:center}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container__popover{top:16px!important}.block-editor-inserter__preview-container{display:none;max-height:calc(100% - 32px);overflow-y:hidden;padding:16px;width:280px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-inserter__media-list__list-item{height:100%}.block-editor-inserter__preview-container .block-editor-block-card{padding-bottom:4px;padding-left:0;padding-right:0}.block-editor-inserter__insertable-blocks-at-selection{border-bottom:1px solid #e0e0e0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__media-tabs-container{display:flex;flex-direction:column;flex-grow:1;justify-content:space-between;padding:0 16px 16px}.block-editor-inserter__media-tabs-container{padding-top:16px}.block-editor-inserter__category-tablist{margin-bottom:8px}.block-editor-inserter__category-panel{display:flex;flex-direction:column;outline:1px solid transparent;padding:0 16px}@media (min-width:782px){.block-editor-inserter__category-panel{background:#f0f0f0;border-left:1px solid #e0e0e0;border-top:1px solid #e0e0e0;height:calc(100% + 1px);left:350px;padding:0;position:absolute;top:-1px;width:280px}.block-editor-inserter__category-panel .block-editor-block-patterns-list,.block-editor-inserter__category-panel .block-editor-inserter__media-list{padding:0 24px 16px}}.block-editor-inserter__patterns-category-panel-header{padding:8px 0}@media (min-width:782px){.block-editor-inserter__patterns-category-panel-header{padding:8px 24px}}.block-editor-inserter__patterns-category-no-results{margin-top:24px}.block-editor-inserter__patterns-filter-help{border-top:1px solid #ddd;color:#757575;min-width:280px;padding:16px}.block-editor-block-patterns-list,.block-editor-inserter__media-list{flex-grow:1;height:100%;overflow-y:auto}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;border-radius:2px;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:left;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;left:0;overflow-x:visible;overflow-y:auto;padding:24px;position:absolute;top:72px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:left;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-left:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container{width:380px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-gap:32px;display:grid;grid-template-columns:repeat(1,1fr);margin-bottom:16px}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-inserter__media-list__list-item{height:inherit;max-height:800px;min-height:100px}.components-heading.block-editor-inserter__patterns-category-panel-title{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-inserter__media-library-button.components-button,.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-mobile-screen{align-self:stretch;display:flex;flex-direction:column}.block-editor-inserter__media-panel{display:flex;flex:1;flex-direction:column;min-height:0;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{flex:0 1 auto;min-height:100%;padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:24px}@media (min-width:782px){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search{margin-bottom:0;padding:16px 24px}}.block-editor-inserter__media-panel .block-editor-inserter__no-results{flex-grow:1}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer{flex-shrink:0;padding-bottom:16px;padding-top:16px}@media (min-width:782px){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer{padding-left:24px;padding-right:24px}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-attach.components-button{justify-content:center;padding:16px}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results{display:flex;flex-direction:column;flex-grow:1;min-height:0}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list{animation:inserter-media-panel-pulse 1s ease-in-out infinite;opacity:1}}.block-editor-inserter__media-panel.has-footer .block-editor-inserter__media-list{padding-bottom:0}@keyframes inserter-media-panel-pulse{0%,to{opacity:1}50%{opacity:.5}}.block-editor-inserter__media-panel-detach-modal{z-index:1000001}.block-editor-inserter__media-panel-detach-modal p{margin-top:0}.block-editor-inserter__media-panel-detach-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}.block-editor-inserter__media-list__list-item{cursor:var(--wpds-cursor-control,pointer);margin-bottom:24px;position:relative}.block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list__list-item[draggable=true] .block-editor-inserter__media-list__list-item{cursor:grab}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview>*{outline-color:rgba(0,0,0,.3)}.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button,.block-editor-inserter__media-list__list-item:focus-within .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{position:absolute;right:8px;top:8px}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;display:none}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}.block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}@media not (prefers-reduced-motion){.block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview>*{transition:outline .1s linear}}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.block-editor-patterns__sync-status-filter .components-input-control__container select.components-select-control__input{height:40px}.block-editor-inserter__pattern-panel-placeholder{display:none}.block-editor-inserter__menu.is-zoom-out{display:flex}@media (min-width:782px){.block-editor-inserter__menu.is-zoom-out.show-panel:after{content:"";display:block;height:100%;width:300px}}@media (max-width:959px){.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-block-patterns-explorer .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}}.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-next,.show-icon-labels .block-editor-inserter__category-panel .block-editor-patterns__grid-pagination .block-editor-patterns__grid-pagination-previous{flex-direction:column}.block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__help-text{display:none;padding:0 24px 16px}@media (min-width:480px){.block-editor-tabbed-sidebar__tabpanel .block-editor-inserter__help-text{display:block}}.spacing-sizes-control{border:0;margin:0;padding:0}.spacing-sizes-control .spacing-sizes-control__label,.spacing-sizes-control .spacing-sizes-control__unit-control{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__preset-range{flex:1;margin-bottom:0}.spacing-sizes-control__header{height:16px;margin-bottom:12px}.spacing-sizes-control__wrapper{align-items:center}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__wrapper .preset-input-control__icon{margin-left:-4px}.block-editor-block-visibility-modal{z-index:1000001}.block-editor-block-visibility-modal__options{border:0;list-style:none;margin:24px 0;padding:0}.block-editor-block-visibility-modal__options-item{align-items:center;display:flex;gap:24px;justify-content:space-between;margin:0 0 16px}.block-editor-block-visibility-modal__options-item:last-child{margin:0}.block-editor-block-visibility-modal__options-item--everywhere{align-items:start;flex-direction:column}.block-editor-block-visibility-modal__options-checkbox--everywhere{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.block-editor-block-visibility-modal__options-icon--checked{fill:#ddd}.block-editor-block-visibility-modal__sub-options{padding-inline-start:12px;width:100%}.block-editor-block-visibility-modal__description{color:#757575;font-size:12px}.block-editor-block-visibility-info{align-items:center;display:flex;justify-content:start;margin:0 16px 16px;padding-bottom:4px;padding-top:4px}
\ No newline at end of file
diff --git a/wp-includes/css/dist/block-library/editor-rtl.css b/wp-includes/css/dist/block-library/editor-rtl.css
index 68da53c1e8..b3a688b89d 100644
--- a/wp-includes/css/dist/block-library/editor-rtl.css
+++ b/wp-includes/css/dist/block-library/editor-rtl.css
@@ -1966,18 +1966,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
pointer-events: none;
}
-@media (min-width: 600px) {
- .wp-block-page-list-modal {
- max-width: 480px;
- }
-}
-
-.wp-block-page-list-modal-buttons {
- display: flex;
- justify-content: flex-end;
- gap: 12px;
-}
-
.wp-block-page-list .open-on-click:focus-within > .wp-block-navigation__submenu-container {
visibility: visible;
opacity: 1;
diff --git a/wp-includes/css/dist/block-library/editor-rtl.min.css b/wp-includes/css/dist/block-library/editor-rtl.min.css
index 2e68fabc00..7b43cd3182 100644
--- a/wp-includes/css/dist/block-library/editor-rtl.min.css
+++ b/wp-includes/css/dist/block-library/editor-rtl.min.css
@@ -1 +1 @@
-.block-library-utils__media-control{position:relative}.block-library-utils__media-control .components-drop-zone__content-icon{display:none}.block-library-utils__media-control .block-library-utils__media-control__replace-flow{display:block}.block-library-utils__media-control .block-library-utils__media-control__replace-flow button.components-button{border-color:#ccc;color:#1e1e1e;display:block;height:40px;padding-left:32px;width:100%}.block-library-utils__media-control .block-library-utils__media-control__replace-flow button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-utils__media-control__inspector-media-replace-title{text-align:start;white-space:normal;word-break:break-all}.block-library-utils__media-control__inspector-image-indicator{background:#fff linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);background-size:cover;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:20px;outline:1px solid transparent;width:20px}.block-library-utils__media-control__reset{border-radius:2px;left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-library-utils__media-control__reset{transition:opacity .1s ease-in-out}}.block-library-utils__media-control:hover .block-library-utils__media-control__reset,.block-library-utils__media-control__reset:focus,.block-library-utils__media-control__reset:hover{opacity:1}@media (hover:none){.block-library-utils__media-control__reset{opacity:1}}.wp-block-audio{margin-left:0;margin-right:0;position:relative}.wp-block-audio.is-transient audio{opacity:.3}.wp-block-audio .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 auto}.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{align-items:center;display:inline-flex}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-right:2.5em}.wp-block-categories ul ul{margin-top:6px}[data-align=center] .wp-block-categories{text-align:center}.wp-block-categories__indentation{padding-right:16px}.wp-block-code code{background:none}.wp-block-columns :where(.wp-block){margin-left:0;margin-right:0;max-width:none}html :where(.wp-block-column){margin-bottom:0;margin-top:0}.wp-block-comments__legacy-placeholder,.wp-block-post-comments{box-sizing:border-box}.wp-block-comments__legacy-placeholder .alignleft,.wp-block-post-comments .alignleft{float:right}.wp-block-comments__legacy-placeholder .alignright,.wp-block-post-comments .alignright{float:left}.wp-block-comments__legacy-placeholder .navigation:after,.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-comments__legacy-placeholder .commentlist,.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .commentlist .comment,.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-comments__legacy-placeholder .commentlist .comment p,.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-comments__legacy-placeholder .commentlist .children,.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .comment-author,.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-comments__legacy-placeholder .comment-author .avatar,.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;margin-top:.5em;width:2.5em}.wp-block-comments__legacy-placeholder .comment-author cite,.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-comments__legacy-placeholder .comment-meta,.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-comments__legacy-placeholder .comment-meta b,.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-comments__legacy-placeholder .comment-meta .comment-awaiting-moderation,.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-comments__legacy-placeholder .comment-body .commentmetadata,.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-comments__legacy-placeholder .comment-form-author label,.wp-block-comments__legacy-placeholder .comment-form-comment label,.wp-block-comments__legacy-placeholder .comment-form-email label,.wp-block-comments__legacy-placeholder .comment-form-url label,.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-comments__legacy-placeholder .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent #wp-comment-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-comments__legacy-placeholder .comment-reply-title,.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-comments__legacy-placeholder .comment-reply-title :where(small),.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-comments__legacy-placeholder .reply,.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-comments__legacy-placeholder input:not([type=submit]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-comments__legacy-placeholder input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit],.wp-block-comments__legacy-placeholder input[type=submit]){border:none}.wp-block-comments{box-sizing:border-box}.block-library-comments-toolbar__popover .components-popover__content{min-width:230px}.wp-block-comments__legacy-placeholder *{pointer-events:none}.wp-block-comment-author-avatar__placeholder{stroke:currentColor;stroke-dasharray:3;border:1px dashed;height:100%;width:100%}.wp-block[data-align=center]>.wp-block-comments-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-comments-pagination{max-width:100%}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{font-size:inherit}.wp-block-comments-pagination-numbers a{text-decoration:underline}.wp-block-comments-pagination-numbers .page-numbers{margin-left:2px}.wp-block-comments-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-comments-title.has-background{padding:inherit}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover.is-transient .wp-block-cover__inner-container{z-index:2}.wp-block-cover.is-transient .components-spinner{z-index:3}.wp-block-cover .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:right}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-details summary div{display:inline}.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .wp-block-embed__placeholder-input{flex:1 1 auto}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block[data-align=center]>.wp-block-file{text-align:center}.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-form-input .is-input-hidden{align-items:center;background:repeating-linear-gradient(-45deg,transparent,transparent 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;display:flex;font-size:.85em;justify-content:center;opacity:.3;padding:.5em;position:relative}.wp-block-form-input .is-input-hidden:after{content:attr(data-message)}.wp-block-form-input.is-selected .is-input-hidden{background:none;opacity:1}.wp-block-form-submission-notification>*{background:repeating-linear-gradient(-45deg,transparent,transparent 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;opacity:.25}.wp-block-form-submission-notification.is-selected>*,.wp-block-form-submission-notification:has(.is-selected)>*{background:none;opacity:1}.wp-block-form-submission-notification.is-selected:after,.wp-block-form-submission-notification:has(.is-selected):after{display:none!important}.wp-block-form-submission-notification:after{align-items:center;display:flex;font-size:1.1em;height:100%;justify-content:center;position:absolute;right:0;top:0;width:100%}.wp-block-form-submission-notification.form-notification-type-success:after{content:attr(data-message-success)}.wp-block-form-submission-notification.form-notification-type-error:after{content:attr(data-message-error)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width:960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{display:flex;flex-direction:column;height:100%;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{display:flex;flex-direction:column;flex-grow:1}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}:root :where(figure.wp-block-gallery){display:block}:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{flex:0 0 100%}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{margin:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{display:flex}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{z-index:2}:root :where(figure.wp-block-gallery) .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.gallery-settings-buttons .components-button:first-child{margin-left:8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-gallery__source-settings{display:flex;flex-direction:column;gap:8px;grid-column:1/-1}.wp-block-gallery__source-settings .wp-block-gallery__source-description{color:#757575;font-size:12px;margin:0}.wp-block-gallery__source-settings .components-button{justify-content:center;width:100%}.wp-block-gallery__source-notice{grid-column:1/-1;margin:0}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;content:"";display:flex;flex:1 0 40px;min-height:38px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.block-library-html__edit .block-library-html__preview-overlay{height:100%;position:absolute;right:0;top:0;width:100%}.block-library-html__edit-code{margin:16px}.block-library-html__edit-code .block-library-html__edit-code-button{justify-content:center}@media (min-width:600px){.block-library-html__modal:not(.is-full-screen){height:9999rem}}.block-library-html__modal .components-modal__children-container{height:100%}.block-library-html__modal-content,.block-library-html__modal-tabs{flex:1}.block-library-html__modal-tab{border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;display:flex;flex-direction:column;font-family:Menlo,Consolas,monaco,monospace;height:100%;margin:0;padding:16px}.block-library-html__modal-editor{background:transparent;border:none;box-sizing:border-box;color:inherit;direction:ltr;flex:1;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;overflow-x:auto;padding:0;resize:none;width:100%}.block-library-html__modal-editor:focus{box-shadow:none;outline:none}.block-library-html__preview{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;overflow-y:auto}.block-library-html__preview iframe{height:100%}.wp-block[data-align=center]>.wp-block-icon{display:flex;justify-content:center}.wp-block-icon__inserter-sidebar{padding-bottom:24px}@media (min-width:782px){.wp-block-icon__inserter-sidebar{bottom:0;overflow-x:visible;overflow-y:auto;padding-top:24px;padding-inline:24px;position:absolute;right:0;top:72px;width:280px}.wp-block-icon__inserter-panel{margin-inline-start:280px}}.wp-block-icon__inserter-loading{display:flex;justify-content:center;padding:24px}.wp-block-icon__inserter-grid-icons-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.wp-block-icon__inserter-grid-no-results{display:flex;justify-content:center}.wp-block-icon__inserter-grid-icons-list-item{display:flex;flex-direction:column;height:auto!important}.wp-block-icon__inserter-grid-icons-list-item-icon{padding:12px}.wp-block-icon__inserter-grid-icons-list-item-icon svg{display:block;height:24px;width:24px}.wp-block-icon__inserter-grid-icons-list-item-title{font-size:12px;overflow-wrap:break-word;padding:4px 4px 8px}.wp-block-icon__toolbar-content{width:250px}.wp-block-icon__placeholder{backdrop-filter:blur(100px)}.wp-block-image.wp-block-image .block-editor-media-placeholder.is-small{min-height:60px}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image.is-transient:not(.alignwide):not(.alignfull),.wp-block-image:has(img.is-swapping-media):not(.alignwide):not(.alignfull){width:-moz-fit-content;width:fit-content}.wp-block-image .is-applying img,.wp-block-image img.is-swapping-media,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-image__placeholder{aspect-ratio:4/3}.wp-block-image__placeholder.has-illustration:before{background:#fff;opacity:.8}.wp-block-image__placeholder .components-placeholder__illustration{opacity:.1}.wp-block-image.is-selected .block-editor-media-placeholder{filter:none!important}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right:0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align]:has(>.wp-block-image){position:relative}.wp-block-image__toolbar_content_textarea__container{padding:8px}.wp-block-image__toolbar_content_textarea{width:250px}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}:root :where(.wp-block-latest-posts){padding-right:2.5em}:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){padding-right:0}.wp-block-math__textarea-control textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.wp-block-media-text.is-image-fill .editor-media-container__resizer,.wp-block-media-text.is-image-fill-element .components-placeholder.has-illustration,.wp-block-media-text.is-image-fill-element .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.wp-block-media-text--placeholder-image{min-height:205px}.block-editor-block-list__block[data-type="core/more"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more .rich-text{background:#fff;color:#757575;display:inline-flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:10px 36px;position:relative;text-align:center;text-transform:uppercase;white-space:nowrap}.wp-block-more:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;color:#fff;margin-left:0;margin-right:auto;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:left;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff;height:24px}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:transparent;color:#1e1e1e}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.components-placeholder.wp-block-navigation-placeholder{color:inherit}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview{background:transparent;color:currentColor}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;position:relative;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.wp-block-navigation-placeholder__controls{float:right;width:100%}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-left:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-right:4px;padding:0 0 0 6px}.wp-block-navigation-placeholder__actions__indicator svg{fill:currentColor;margin-left:4px}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-left:0}.wp-block-navigation-placeholder__actions{height:100%}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:159px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{right:36px;top:97px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{right:160px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:145px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{right:0;top:159px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:65px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:113px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;grid-column:span 2;height:64px!important;justify-content:space-between;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;border-color:#e0e0e0}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls__empty-message{margin-right:24px}.editor-sidebar__panel .wp-block-navigation__submenu-header{margin-bottom:0;margin-top:0}.wp-block-navigation__submenu-accessibility-notice{grid-column:span 2}.wp-block-navigation__overlay-selector{position:relative}.wp-block-navigation__overlay-selector-controls{margin-bottom:8px}.wp-block-navigation__overlay-create-button{left:0;position:absolute;top:-4px;z-index:1}.wp-block-navigation__overlay-preview{background:#fff;border:1px solid #ddd;border-radius:2px;max-height:200px;overflow-y:auto}.wp-block-navigation__overlay-preview-empty,.wp-block-navigation__overlay-preview-loading{align-items:center;background:#f0f0f0;display:flex;justify-content:center;min-height:200px}.wp-block-navigation__overlay-preview-empty{color:#757575;font-style:italic;padding:16px;text-align:center}.wp-block-navigation__overlay-preview-placeholder{animation:wp-block-navigation-overlay-preview-pulse 1.5s ease-in-out infinite;background:#f0f0f0;height:200px;width:100%}@keyframes wp-block-navigation-overlay-preview-pulse{0%,to{opacity:1}50%{opacity:.5}}.wp-block-navigation__deleted-overlay-warning{margin-top:12px}.wp-block-navigation__overlay-create-button-prominent{justify-content:center;margin-bottom:8px;width:100%}.wp-block-navigation__overlay-help-text-wrapper{margin-top:8px}.wp-block-navigation .block-list-appender{position:relative}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;overflow:visible!important;visibility:visible!important;width:auto!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px 16px 16px auto}.wp-block-navigation-link__invalid-item{color:#000}.wp-block-navigation-link__placeholder{background-image:none!important;box-shadow:none!important;position:relative;text-decoration:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{-webkit-text-decoration:wavy underline;text-decoration:wavy underline;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;text-underline-offset:.25rem}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{color:#1e1e1e;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em;text-transform:uppercase}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.link-ui-page-creator{max-width:350px;min-width:auto;padding-top:8px;width:90vw}.link-ui-page-creator__inner{padding:16px}.link-ui-page-creator__back{margin-right:8px;text-transform:uppercase}.navigation-link-control__error-text{color:#cc1818}.navigation-link-to__action-button{grid-column:auto}.navigation-link-to__action-button:nth-last-child(1 of .navigation-link-to__action-button):nth-child(odd of .navigation-link-to__action-button){grid-column:1/-1}.navigation-link-to__action-button.navigation-link-to__action-button.navigation-link-to__action-button{justify-content:center}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;position:absolute;right:-1px;top:100%;visibility:visible!important;width:auto!important}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:transparent;content:"";display:block;height:100%;left:100%;position:absolute;width:.5em}}.block-editor-block-list__block[data-type="core/nextpage"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{background:#fff;border-radius:4px;color:#757575;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:24px;padding:6px 8px;position:relative;text-transform:uppercase}.wp-block-nextpage:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width:600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.is-zoomed-out .block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:0}html[dir=rtl] .has-drop-cap:not(:focus):first-letter{float:none;margin-right:.1em}.wp-block-post-author__transform{background:#f0f0f0;border-radius:2px;margin:16px;padding:16px}.wp-block-playlist__waveform-color-controls{display:grid;grid-column:1/-1;row-gap:0}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{font-style:normal;text-transform:none}.wp-block-pullquote__citation{color:inherit}.wp-block-pullquote[style*=line-height] :where(p){line-height:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1 1 auto}.wp-block-rss .wp-block-rss{all:inherit;margin:0;padding:0}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search :where(.wp-block-search__button){align-items:center;border-radius:initial;display:flex;height:auto;justify-content:center;text-align:center}.wp-block-search__inspector-controls .components-base-control{margin-bottom:0}.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.is-transient{position:relative}.wp-block-site-logo.is-transient img{opacity:.3}.wp-block-site-logo.is-transient .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-media-replace-container{position:relative}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title{text-align:start;-moz-text-align-last:center;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:inherit;height:auto;margin:0;opacity:1;padding:.25em}.wp-block-social-link-anchor:hover{transform:none}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:.6666666667em;padding-right:.6666666667em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0}.wp-block-social-link__toolbar_content_text{width:250px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.wp-social-link:hover{transform:none}:root :where(.wp-block-social-links){padding:0}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}.wp-block-social-links .block-list-appender{position:static}.wp-block-social-links .block-list-appender .block-editor-inserter{font-size:inherit}.wp-block-social-links .block-list-appender .block-editor-button-block-appender{font-size:inherit;height:1.5em;padding:0;width:1.5em}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;height:100%;min-height:8px;min-width:8px;position:absolute;width:100%;z-index:1}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container,.wp-block-spacer.is-selected.custom-sizes-disabled{background:rgba(0,0,0,.1)}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,.is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container:not(.is-resizing){height:100%!important;width:100%!important}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{height:100%!important;margin-bottom:0}@media (min-width:600px){.wp-block-tab-list__mover-button{min-width:0!important;width:24px}}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);border-style:double;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr,.wp-block-table table.has-individual-borders>*{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-start;display:flex;flex-direction:column;gap:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-end;flex-direction:row}}.blocks-table__placeholder-input{width:112px}.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{border:none}.wp-block-term-template .term-loading .term-loading-placeholder{background-color:#f0f0f0;border-radius:2px;height:1.5em;margin-bottom:.25em;width:100%}@media not (prefers-reduced-motion){.wp-block-term-template .term-loading .term-loading-placeholder{animation:loadingpulse 1.5s ease-in-out infinite}}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.block-library-video-tracks-editor{z-index:159990}.modal-open .block-library-video-tracks-editor{z-index:99999}.block-library-video-tracks-editor__track-list-track{padding-right:12px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-edit-track-label,.block-library-video-tracks-editor__tracks-informative-message-title{color:#757575;display:block;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:4px;text-transform:uppercase}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__tracks-informative-message{padding:8px}.block-library-video-tracks-editor__tracks-informative-message-description{margin-bottom:0}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.block-editor-block-settings-menu__popover.is-expanded{overflow-y:scroll}.block-editor-block-settings-menu__popover .block-library-query-pattern__selection-content{height:100%}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr}@media (min-width:600px){.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{grid-template-columns:1fr 1fr}}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{grid-gap:12px;min-width:280px}@media (min-width:600px){.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{min-width:480px}}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list__list-item{margin-bottom:0}.wp-block-query>.block-editor-media-placeholder.is-small{min-height:60px}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-query-pagination{max-width:100%}:where(.editor-styles-wrapper) .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-left:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image .block-editor-media-placeholder{backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{min-height:200px}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-right-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{pointer-events:none}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.wp-block-post-featured-image.is-transient{position:relative}.wp-block-post-featured-image.is-transient img{opacity:.3}.wp-block-post-featured-image.is-transient .components-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%}.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form .block-editor-warning *{pointer-events:auto}.wp-element-button{cursor:revert}.wp-element-button[role=textbox]{cursor:text}.block-library-poster-image__container{position:relative}.block-library-poster-image__container:focus .block-library-poster-image__actions,.block-library-poster-image__container:focus-within .block-library-poster-image__actions,.block-library-poster-image__container:hover .block-library-poster-image__actions{opacity:1}.block-library-poster-image__container .block-library-poster-image__actions.block-library-poster-image__actions-select{margin-top:16px;opacity:1}.block-library-poster-image__container .components-drop-zone__content{border-radius:2px}.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.block-library-poster-image__container .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.block-library-poster-image__preview{display:flex;height:auto!important;justify-content:center;min-height:40px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;padding:0;width:100%}.block-library-poster-image__preview .block-library-poster-image__preview-image{aspect-ratio:2/1;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}.block-library-poster-image__actions:not(.block-library-poster-image__actions-select){bottom:0;opacity:0;padding:8px;position:absolute}@media not (prefers-reduced-motion){.block-library-poster-image__actions:not(.block-library-poster-image__actions-select){transition:opacity 50ms ease-out}}.block-library-poster-image__actions:not(.block-library-poster-image__actions-select) .block-library-poster-image__action{backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75)}.block-library-poster-image__actions .block-library-poster-image__action{flex-grow:1;justify-content:center}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:where(.editor-styles-wrapper) .has-regular-font-size{font-size:16px}:where(.editor-styles-wrapper) .has-larger-font-size{font-size:42px}:where(.editor-styles-wrapper) iframe:not([frameborder]){border:0}
\ No newline at end of file
+.block-library-utils__media-control{position:relative}.block-library-utils__media-control .components-drop-zone__content-icon{display:none}.block-library-utils__media-control .block-library-utils__media-control__replace-flow{display:block}.block-library-utils__media-control .block-library-utils__media-control__replace-flow button.components-button{border-color:#ccc;color:#1e1e1e;display:block;height:40px;padding-left:32px;width:100%}.block-library-utils__media-control .block-library-utils__media-control__replace-flow button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-utils__media-control__inspector-media-replace-title{text-align:start;white-space:normal;word-break:break-all}.block-library-utils__media-control__inspector-image-indicator{background:#fff linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);background-size:cover;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:20px;outline:1px solid transparent;width:20px}.block-library-utils__media-control__reset{border-radius:2px;left:0;margin:auto 8px;opacity:0;position:absolute;top:8px}@media not (prefers-reduced-motion){.block-library-utils__media-control__reset{transition:opacity .1s ease-in-out}}.block-library-utils__media-control:hover .block-library-utils__media-control__reset,.block-library-utils__media-control__reset:focus,.block-library-utils__media-control__reset:hover{opacity:1}@media (hover:none){.block-library-utils__media-control__reset{opacity:1}}.wp-block-audio{margin-left:0;margin-right:0;position:relative}.wp-block-audio.is-transient audio{opacity:.3}.wp-block-audio .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 auto}.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{align-items:center;display:inline-flex}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-right:2.5em}.wp-block-categories ul ul{margin-top:6px}[data-align=center] .wp-block-categories{text-align:center}.wp-block-categories__indentation{padding-right:16px}.wp-block-code code{background:none}.wp-block-columns :where(.wp-block){margin-left:0;margin-right:0;max-width:none}html :where(.wp-block-column){margin-bottom:0;margin-top:0}.wp-block-comments__legacy-placeholder,.wp-block-post-comments{box-sizing:border-box}.wp-block-comments__legacy-placeholder .alignleft,.wp-block-post-comments .alignleft{float:right}.wp-block-comments__legacy-placeholder .alignright,.wp-block-post-comments .alignright{float:left}.wp-block-comments__legacy-placeholder .navigation:after,.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-comments__legacy-placeholder .commentlist,.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .commentlist .comment,.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-comments__legacy-placeholder .commentlist .comment p,.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-comments__legacy-placeholder .commentlist .children,.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .comment-author,.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-comments__legacy-placeholder .comment-author .avatar,.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;margin-top:.5em;width:2.5em}.wp-block-comments__legacy-placeholder .comment-author cite,.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-comments__legacy-placeholder .comment-meta,.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-comments__legacy-placeholder .comment-meta b,.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-comments__legacy-placeholder .comment-meta .comment-awaiting-moderation,.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-comments__legacy-placeholder .comment-body .commentmetadata,.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-comments__legacy-placeholder .comment-form-author label,.wp-block-comments__legacy-placeholder .comment-form-comment label,.wp-block-comments__legacy-placeholder .comment-form-email label,.wp-block-comments__legacy-placeholder .comment-form-url label,.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-comments__legacy-placeholder .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent #wp-comment-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-comments__legacy-placeholder .comment-reply-title,.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-comments__legacy-placeholder .comment-reply-title :where(small),.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-comments__legacy-placeholder .reply,.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-comments__legacy-placeholder input:not([type=submit]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-comments__legacy-placeholder input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit],.wp-block-comments__legacy-placeholder input[type=submit]){border:none}.wp-block-comments{box-sizing:border-box}.block-library-comments-toolbar__popover .components-popover__content{min-width:230px}.wp-block-comments__legacy-placeholder *{pointer-events:none}.wp-block-comment-author-avatar__placeholder{stroke:currentColor;stroke-dasharray:3;border:1px dashed;height:100%;width:100%}.wp-block[data-align=center]>.wp-block-comments-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-comments-pagination{max-width:100%}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{font-size:inherit}.wp-block-comments-pagination-numbers a{text-decoration:underline}.wp-block-comments-pagination-numbers .page-numbers{margin-left:2px}.wp-block-comments-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-comments-title.has-background{padding:inherit}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover.is-transient .wp-block-cover__inner-container{z-index:2}.wp-block-cover.is-transient .components-spinner{z-index:3}.wp-block-cover .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:right}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-details summary div{display:inline}.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .wp-block-embed__placeholder-input{flex:1 1 auto}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block[data-align=center]>.wp-block-file{text-align:center}.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-form-input .is-input-hidden{align-items:center;background:repeating-linear-gradient(-45deg,transparent,transparent 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;display:flex;font-size:.85em;justify-content:center;opacity:.3;padding:.5em;position:relative}.wp-block-form-input .is-input-hidden:after{content:attr(data-message)}.wp-block-form-input.is-selected .is-input-hidden{background:none;opacity:1}.wp-block-form-submission-notification>*{background:repeating-linear-gradient(-45deg,transparent,transparent 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;opacity:.25}.wp-block-form-submission-notification.is-selected>*,.wp-block-form-submission-notification:has(.is-selected)>*{background:none;opacity:1}.wp-block-form-submission-notification.is-selected:after,.wp-block-form-submission-notification:has(.is-selected):after{display:none!important}.wp-block-form-submission-notification:after{align-items:center;display:flex;font-size:1.1em;height:100%;justify-content:center;position:absolute;right:0;top:0;width:100%}.wp-block-form-submission-notification.form-notification-type-success:after{content:attr(data-message-success)}.wp-block-form-submission-notification.form-notification-type-error:after{content:attr(data-message-error)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width:960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{display:flex;flex-direction:column;height:100%;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{display:flex;flex-direction:column;flex-grow:1}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}:root :where(figure.wp-block-gallery){display:block}:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{flex:0 0 100%}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{margin:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{display:flex}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{z-index:2}:root :where(figure.wp-block-gallery) .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.gallery-settings-buttons .components-button:first-child{margin-left:8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-gallery__source-settings{display:flex;flex-direction:column;gap:8px;grid-column:1/-1}.wp-block-gallery__source-settings .wp-block-gallery__source-description{color:#757575;font-size:12px;margin:0}.wp-block-gallery__source-settings .components-button{justify-content:center;width:100%}.wp-block-gallery__source-notice{grid-column:1/-1;margin:0}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;content:"";display:flex;flex:1 0 40px;min-height:38px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.block-library-html__edit .block-library-html__preview-overlay{height:100%;position:absolute;right:0;top:0;width:100%}.block-library-html__edit-code{margin:16px}.block-library-html__edit-code .block-library-html__edit-code-button{justify-content:center}@media (min-width:600px){.block-library-html__modal:not(.is-full-screen){height:9999rem}}.block-library-html__modal .components-modal__children-container{height:100%}.block-library-html__modal-content,.block-library-html__modal-tabs{flex:1}.block-library-html__modal-tab{border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;display:flex;flex-direction:column;font-family:Menlo,Consolas,monaco,monospace;height:100%;margin:0;padding:16px}.block-library-html__modal-editor{background:transparent;border:none;box-sizing:border-box;color:inherit;direction:ltr;flex:1;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;overflow-x:auto;padding:0;resize:none;width:100%}.block-library-html__modal-editor:focus{box-shadow:none;outline:none}.block-library-html__preview{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;overflow-y:auto}.block-library-html__preview iframe{height:100%}.wp-block[data-align=center]>.wp-block-icon{display:flex;justify-content:center}.wp-block-icon__inserter-sidebar{padding-bottom:24px}@media (min-width:782px){.wp-block-icon__inserter-sidebar{bottom:0;overflow-x:visible;overflow-y:auto;padding-top:24px;padding-inline:24px;position:absolute;right:0;top:72px;width:280px}.wp-block-icon__inserter-panel{margin-inline-start:280px}}.wp-block-icon__inserter-loading{display:flex;justify-content:center;padding:24px}.wp-block-icon__inserter-grid-icons-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.wp-block-icon__inserter-grid-no-results{display:flex;justify-content:center}.wp-block-icon__inserter-grid-icons-list-item{display:flex;flex-direction:column;height:auto!important}.wp-block-icon__inserter-grid-icons-list-item-icon{padding:12px}.wp-block-icon__inserter-grid-icons-list-item-icon svg{display:block;height:24px;width:24px}.wp-block-icon__inserter-grid-icons-list-item-title{font-size:12px;overflow-wrap:break-word;padding:4px 4px 8px}.wp-block-icon__toolbar-content{width:250px}.wp-block-icon__placeholder{backdrop-filter:blur(100px)}.wp-block-image.wp-block-image .block-editor-media-placeholder.is-small{min-height:60px}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image.is-transient:not(.alignwide):not(.alignfull),.wp-block-image:has(img.is-swapping-media):not(.alignwide):not(.alignfull){width:-moz-fit-content;width:fit-content}.wp-block-image .is-applying img,.wp-block-image img.is-swapping-media,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-image__placeholder{aspect-ratio:4/3}.wp-block-image__placeholder.has-illustration:before{background:#fff;opacity:.8}.wp-block-image__placeholder .components-placeholder__illustration{opacity:.1}.wp-block-image.is-selected .block-editor-media-placeholder{filter:none!important}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right:0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align]:has(>.wp-block-image){position:relative}.wp-block-image__toolbar_content_textarea__container{padding:8px}.wp-block-image__toolbar_content_textarea{width:250px}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}:root :where(.wp-block-latest-posts){padding-right:2.5em}:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){padding-right:0}.wp-block-math__textarea-control textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.wp-block-media-text.is-image-fill .editor-media-container__resizer,.wp-block-media-text.is-image-fill-element .components-placeholder.has-illustration,.wp-block-media-text.is-image-fill-element .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.wp-block-media-text--placeholder-image{min-height:205px}.block-editor-block-list__block[data-type="core/more"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more .rich-text{background:#fff;color:#757575;display:inline-flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:10px 36px;position:relative;text-align:center;text-transform:uppercase;white-space:nowrap}.wp-block-more:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;color:#fff;margin-left:0;margin-right:auto;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:left;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff;height:24px}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:transparent;color:#1e1e1e}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.components-placeholder.wp-block-navigation-placeholder{color:inherit}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview{background:transparent;color:currentColor}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;position:relative;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.wp-block-navigation-placeholder__controls{float:right;width:100%}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-left:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-right:4px;padding:0 0 0 6px}.wp-block-navigation-placeholder__actions__indicator svg{fill:currentColor;margin-left:4px}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-left:0}.wp-block-navigation-placeholder__actions{height:100%}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:159px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{right:36px;top:97px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{right:160px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:145px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{right:0;top:159px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:65px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:113px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;grid-column:span 2;height:64px!important;justify-content:space-between;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;border-color:#e0e0e0}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls__empty-message{margin-right:24px}.editor-sidebar__panel .wp-block-navigation__submenu-header{margin-bottom:0;margin-top:0}.wp-block-navigation__submenu-accessibility-notice{grid-column:span 2}.wp-block-navigation__overlay-selector{position:relative}.wp-block-navigation__overlay-selector-controls{margin-bottom:8px}.wp-block-navigation__overlay-create-button{left:0;position:absolute;top:-4px;z-index:1}.wp-block-navigation__overlay-preview{background:#fff;border:1px solid #ddd;border-radius:2px;max-height:200px;overflow-y:auto}.wp-block-navigation__overlay-preview-empty,.wp-block-navigation__overlay-preview-loading{align-items:center;background:#f0f0f0;display:flex;justify-content:center;min-height:200px}.wp-block-navigation__overlay-preview-empty{color:#757575;font-style:italic;padding:16px;text-align:center}.wp-block-navigation__overlay-preview-placeholder{animation:wp-block-navigation-overlay-preview-pulse 1.5s ease-in-out infinite;background:#f0f0f0;height:200px;width:100%}@keyframes wp-block-navigation-overlay-preview-pulse{0%,to{opacity:1}50%{opacity:.5}}.wp-block-navigation__deleted-overlay-warning{margin-top:12px}.wp-block-navigation__overlay-create-button-prominent{justify-content:center;margin-bottom:8px;width:100%}.wp-block-navigation__overlay-help-text-wrapper{margin-top:8px}.wp-block-navigation .block-list-appender{position:relative}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;overflow:visible!important;visibility:visible!important;width:auto!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px 16px 16px auto}.wp-block-navigation-link__invalid-item{color:#000}.wp-block-navigation-link__placeholder{background-image:none!important;box-shadow:none!important;position:relative;text-decoration:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{-webkit-text-decoration:wavy underline;text-decoration:wavy underline;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;text-underline-offset:.25rem}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{color:#1e1e1e;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em;text-transform:uppercase}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.link-ui-page-creator{max-width:350px;min-width:auto;padding-top:8px;width:90vw}.link-ui-page-creator__inner{padding:16px}.link-ui-page-creator__back{margin-right:8px;text-transform:uppercase}.navigation-link-control__error-text{color:#cc1818}.navigation-link-to__action-button{grid-column:auto}.navigation-link-to__action-button:nth-last-child(1 of .navigation-link-to__action-button):nth-child(odd of .navigation-link-to__action-button){grid-column:1/-1}.navigation-link-to__action-button.navigation-link-to__action-button.navigation-link-to__action-button{justify-content:center}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;position:absolute;right:-1px;top:100%;visibility:visible!important;width:auto!important}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:transparent;content:"";display:block;height:100%;left:100%;position:absolute;width:.5em}}.block-editor-block-list__block[data-type="core/nextpage"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{background:#fff;border-radius:4px;color:#757575;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:24px;padding:6px 8px;position:relative;text-transform:uppercase}.wp-block-nextpage:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.is-zoomed-out .block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:0}html[dir=rtl] .has-drop-cap:not(:focus):first-letter{float:none;margin-right:.1em}.wp-block-post-author__transform{background:#f0f0f0;border-radius:2px;margin:16px;padding:16px}.wp-block-playlist__waveform-color-controls{display:grid;grid-column:1/-1;row-gap:0}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{font-style:normal;text-transform:none}.wp-block-pullquote__citation{color:inherit}.wp-block-pullquote[style*=line-height] :where(p){line-height:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1 1 auto}.wp-block-rss .wp-block-rss{all:inherit;margin:0;padding:0}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search :where(.wp-block-search__button){align-items:center;border-radius:initial;display:flex;height:auto;justify-content:center;text-align:center}.wp-block-search__inspector-controls .components-base-control{margin-bottom:0}.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.is-transient{position:relative}.wp-block-site-logo.is-transient img{opacity:.3}.wp-block-site-logo.is-transient .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-media-replace-container{position:relative}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title{text-align:start;-moz-text-align-last:center;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:inherit;height:auto;margin:0;opacity:1;padding:.25em}.wp-block-social-link-anchor:hover{transform:none}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:.6666666667em;padding-right:.6666666667em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0}.wp-block-social-link__toolbar_content_text{width:250px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.wp-social-link:hover{transform:none}:root :where(.wp-block-social-links){padding:0}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}.wp-block-social-links .block-list-appender{position:static}.wp-block-social-links .block-list-appender .block-editor-inserter{font-size:inherit}.wp-block-social-links .block-list-appender .block-editor-button-block-appender{font-size:inherit;height:1.5em;padding:0;width:1.5em}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;height:100%;min-height:8px;min-width:8px;position:absolute;width:100%;z-index:1}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container,.wp-block-spacer.is-selected.custom-sizes-disabled{background:rgba(0,0,0,.1)}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,.is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container:not(.is-resizing){height:100%!important;width:100%!important}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{height:100%!important;margin-bottom:0}@media (min-width:600px){.wp-block-tab-list__mover-button{min-width:0!important;width:24px}}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);border-style:double;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr,.wp-block-table table.has-individual-borders>*{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-start;display:flex;flex-direction:column;gap:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-end;flex-direction:row}}.blocks-table__placeholder-input{width:112px}.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{border:none}.wp-block-term-template .term-loading .term-loading-placeholder{background-color:#f0f0f0;border-radius:2px;height:1.5em;margin-bottom:.25em;width:100%}@media not (prefers-reduced-motion){.wp-block-term-template .term-loading .term-loading-placeholder{animation:loadingpulse 1.5s ease-in-out infinite}}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.block-library-video-tracks-editor{z-index:159990}.modal-open .block-library-video-tracks-editor{z-index:99999}.block-library-video-tracks-editor__track-list-track{padding-right:12px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-edit-track-label,.block-library-video-tracks-editor__tracks-informative-message-title{color:#757575;display:block;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:4px;text-transform:uppercase}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__tracks-informative-message{padding:8px}.block-library-video-tracks-editor__tracks-informative-message-description{margin-bottom:0}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.block-editor-block-settings-menu__popover.is-expanded{overflow-y:scroll}.block-editor-block-settings-menu__popover .block-library-query-pattern__selection-content{height:100%}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr}@media (min-width:600px){.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{grid-template-columns:1fr 1fr}}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{grid-gap:12px;min-width:280px}@media (min-width:600px){.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{min-width:480px}}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list__list-item{margin-bottom:0}.wp-block-query>.block-editor-media-placeholder.is-small{min-height:60px}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-query-pagination{max-width:100%}:where(.editor-styles-wrapper) .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-left:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image .block-editor-media-placeholder{backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{min-height:200px}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-right-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{pointer-events:none}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.wp-block-post-featured-image.is-transient{position:relative}.wp-block-post-featured-image.is-transient img{opacity:.3}.wp-block-post-featured-image.is-transient .components-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%}.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form .block-editor-warning *{pointer-events:auto}.wp-element-button{cursor:revert}.wp-element-button[role=textbox]{cursor:text}.block-library-poster-image__container{position:relative}.block-library-poster-image__container:focus .block-library-poster-image__actions,.block-library-poster-image__container:focus-within .block-library-poster-image__actions,.block-library-poster-image__container:hover .block-library-poster-image__actions{opacity:1}.block-library-poster-image__container .block-library-poster-image__actions.block-library-poster-image__actions-select{margin-top:16px;opacity:1}.block-library-poster-image__container .components-drop-zone__content{border-radius:2px}.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.block-library-poster-image__container .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.block-library-poster-image__preview{display:flex;height:auto!important;justify-content:center;min-height:40px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;padding:0;width:100%}.block-library-poster-image__preview .block-library-poster-image__preview-image{aspect-ratio:2/1;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}.block-library-poster-image__actions:not(.block-library-poster-image__actions-select){bottom:0;opacity:0;padding:8px;position:absolute}@media not (prefers-reduced-motion){.block-library-poster-image__actions:not(.block-library-poster-image__actions-select){transition:opacity 50ms ease-out}}.block-library-poster-image__actions:not(.block-library-poster-image__actions-select) .block-library-poster-image__action{backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75)}.block-library-poster-image__actions .block-library-poster-image__action{flex-grow:1;justify-content:center}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:where(.editor-styles-wrapper) .has-regular-font-size{font-size:16px}:where(.editor-styles-wrapper) .has-larger-font-size{font-size:42px}:where(.editor-styles-wrapper) iframe:not([frameborder]){border:0}
\ No newline at end of file
diff --git a/wp-includes/css/dist/block-library/editor.css b/wp-includes/css/dist/block-library/editor.css
index 2bd43033d7..58ff168d8a 100644
--- a/wp-includes/css/dist/block-library/editor.css
+++ b/wp-includes/css/dist/block-library/editor.css
@@ -1970,18 +1970,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
pointer-events: none;
}
-@media (min-width: 600px) {
- .wp-block-page-list-modal {
- max-width: 480px;
- }
-}
-
-.wp-block-page-list-modal-buttons {
- display: flex;
- justify-content: flex-end;
- gap: 12px;
-}
-
.wp-block-page-list .open-on-click:focus-within > .wp-block-navigation__submenu-container {
visibility: visible;
opacity: 1;
diff --git a/wp-includes/css/dist/block-library/editor.min.css b/wp-includes/css/dist/block-library/editor.min.css
index 6c3db3ef50..eb9dfbda40 100644
--- a/wp-includes/css/dist/block-library/editor.min.css
+++ b/wp-includes/css/dist/block-library/editor.min.css
@@ -1 +1 @@
-.block-library-utils__media-control{position:relative}.block-library-utils__media-control .components-drop-zone__content-icon{display:none}.block-library-utils__media-control .block-library-utils__media-control__replace-flow{display:block}.block-library-utils__media-control .block-library-utils__media-control__replace-flow button.components-button{border-color:#ccc;color:#1e1e1e;display:block;height:40px;padding-right:32px;width:100%}.block-library-utils__media-control .block-library-utils__media-control__replace-flow button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-utils__media-control__inspector-media-replace-title{text-align:start;white-space:normal;word-break:break-all}.block-library-utils__media-control__inspector-image-indicator{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);background-size:cover;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:20px;outline:1px solid transparent;width:20px}.block-library-utils__media-control__reset{border-radius:2px;margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-library-utils__media-control__reset{transition:opacity .1s ease-in-out}}.block-library-utils__media-control:hover .block-library-utils__media-control__reset,.block-library-utils__media-control__reset:focus,.block-library-utils__media-control__reset:hover{opacity:1}@media (hover:none){.block-library-utils__media-control__reset{opacity:1}}.wp-block-audio{margin-left:0;margin-right:0;position:relative}.wp-block-audio.is-transient audio{opacity:.3}.wp-block-audio .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 auto}.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{align-items:center;display:inline-flex}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-left:2.5em}.wp-block-categories ul ul{margin-top:6px}[data-align=center] .wp-block-categories{text-align:center}.wp-block-categories__indentation{padding-left:16px}.wp-block-code code{background:none}.wp-block-columns :where(.wp-block){margin-left:0;margin-right:0;max-width:none}html :where(.wp-block-column){margin-bottom:0;margin-top:0}.wp-block-comments__legacy-placeholder,.wp-block-post-comments{box-sizing:border-box}.wp-block-comments__legacy-placeholder .alignleft,.wp-block-post-comments .alignleft{float:left}.wp-block-comments__legacy-placeholder .alignright,.wp-block-post-comments .alignright{float:right}.wp-block-comments__legacy-placeholder .navigation:after,.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-comments__legacy-placeholder .commentlist,.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .commentlist .comment,.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-comments__legacy-placeholder .commentlist .comment p,.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-comments__legacy-placeholder .commentlist .children,.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .comment-author,.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-comments__legacy-placeholder .comment-author .avatar,.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;margin-top:.5em;width:2.5em}.wp-block-comments__legacy-placeholder .comment-author cite,.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-comments__legacy-placeholder .comment-meta,.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-comments__legacy-placeholder .comment-meta b,.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-comments__legacy-placeholder .comment-meta .comment-awaiting-moderation,.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-comments__legacy-placeholder .comment-body .commentmetadata,.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-comments__legacy-placeholder .comment-form-author label,.wp-block-comments__legacy-placeholder .comment-form-comment label,.wp-block-comments__legacy-placeholder .comment-form-email label,.wp-block-comments__legacy-placeholder .comment-form-url label,.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-comments__legacy-placeholder .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent #wp-comment-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-comments__legacy-placeholder .comment-reply-title,.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-comments__legacy-placeholder .comment-reply-title :where(small),.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-comments__legacy-placeholder .reply,.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-comments__legacy-placeholder input:not([type=submit]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-comments__legacy-placeholder input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit],.wp-block-comments__legacy-placeholder input[type=submit]){border:none}.wp-block-comments{box-sizing:border-box}.block-library-comments-toolbar__popover .components-popover__content{min-width:230px}.wp-block-comments__legacy-placeholder *{pointer-events:none}.wp-block-comment-author-avatar__placeholder{stroke:currentColor;stroke-dasharray:3;border:1px dashed;height:100%;width:100%}.wp-block[data-align=center]>.wp-block-comments-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-comments-pagination{max-width:100%}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{font-size:inherit}.wp-block-comments-pagination-numbers a{text-decoration:underline}.wp-block-comments-pagination-numbers .page-numbers{margin-right:2px}.wp-block-comments-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-comments-title.has-background{padding:inherit}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover.is-transient .wp-block-cover__inner-container{z-index:2}.wp-block-cover.is-transient .components-spinner{z-index:3}.wp-block-cover .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:left}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-details summary div{display:inline}.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .wp-block-embed__placeholder-input{flex:1 1 auto}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block[data-align=center]>.wp-block-file{text-align:center}.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-form-input .is-input-hidden{align-items:center;background:repeating-linear-gradient(45deg,transparent,transparent 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;display:flex;font-size:.85em;justify-content:center;opacity:.3;padding:.5em;position:relative}.wp-block-form-input .is-input-hidden:after{content:attr(data-message)}.wp-block-form-input.is-selected .is-input-hidden{background:none;opacity:1}.wp-block-form-submission-notification>*{background:repeating-linear-gradient(45deg,transparent,transparent 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;opacity:.25}.wp-block-form-submission-notification.is-selected>*,.wp-block-form-submission-notification:has(.is-selected)>*{background:none;opacity:1}.wp-block-form-submission-notification.is-selected:after,.wp-block-form-submission-notification:has(.is-selected):after{display:none!important}.wp-block-form-submission-notification:after{align-items:center;display:flex;font-size:1.1em;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.wp-block-form-submission-notification.form-notification-type-success:after{content:attr(data-message-success)}.wp-block-form-submission-notification.form-notification-type-error:after{content:attr(data-message-error)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width:960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{display:flex;flex-direction:column;height:100%;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{display:flex;flex-direction:column;flex-grow:1}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}:root :where(figure.wp-block-gallery){display:block}:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{flex:0 0 100%}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{margin:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{display:flex}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{z-index:2}:root :where(figure.wp-block-gallery) .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-gallery__source-settings{display:flex;flex-direction:column;gap:8px;grid-column:1/-1}.wp-block-gallery__source-settings .wp-block-gallery__source-description{color:#757575;font-size:12px;margin:0}.wp-block-gallery__source-settings .components-button{justify-content:center;width:100%}.wp-block-gallery__source-notice{grid-column:1/-1;margin:0}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;content:"";display:flex;flex:1 0 40px;min-height:38px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.block-library-html__edit .block-library-html__preview-overlay{height:100%;left:0;position:absolute;top:0;width:100%}.block-library-html__edit-code{margin:16px}.block-library-html__edit-code .block-library-html__edit-code-button{justify-content:center}@media (min-width:600px){.block-library-html__modal:not(.is-full-screen){height:9999rem}}.block-library-html__modal .components-modal__children-container{height:100%}.block-library-html__modal-content,.block-library-html__modal-tabs{flex:1}.block-library-html__modal-tab{border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;display:flex;flex-direction:column;font-family:Menlo,Consolas,monaco,monospace;height:100%;margin:0;padding:16px}.block-library-html__modal-editor{background:transparent;border:none;box-sizing:border-box;color:inherit;direction:ltr;flex:1;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;overflow-x:auto;padding:0;resize:none;width:100%}.block-library-html__modal-editor:focus{box-shadow:none;outline:none}.block-library-html__preview{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;overflow-y:auto}.block-library-html__preview iframe{height:100%}.wp-block[data-align=center]>.wp-block-icon{display:flex;justify-content:center}.wp-block-icon__inserter-sidebar{padding-bottom:24px}@media (min-width:782px){.wp-block-icon__inserter-sidebar{bottom:0;left:0;overflow-x:visible;overflow-y:auto;padding-top:24px;padding-inline:24px;position:absolute;top:72px;width:280px}.wp-block-icon__inserter-panel{margin-inline-start:280px}}.wp-block-icon__inserter-loading{display:flex;justify-content:center;padding:24px}.wp-block-icon__inserter-grid-icons-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.wp-block-icon__inserter-grid-no-results{display:flex;justify-content:center}.wp-block-icon__inserter-grid-icons-list-item{display:flex;flex-direction:column;height:auto!important}.wp-block-icon__inserter-grid-icons-list-item-icon{padding:12px}.wp-block-icon__inserter-grid-icons-list-item-icon svg{display:block;height:24px;width:24px}.wp-block-icon__inserter-grid-icons-list-item-title{font-size:12px;overflow-wrap:break-word;padding:4px 4px 8px}.wp-block-icon__toolbar-content{width:250px}.wp-block-icon__placeholder{backdrop-filter:blur(100px)}.wp-block-image.wp-block-image .block-editor-media-placeholder.is-small{min-height:60px}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image.is-transient:not(.alignwide):not(.alignfull),.wp-block-image:has(img.is-swapping-media):not(.alignwide):not(.alignfull){width:-moz-fit-content;width:fit-content}.wp-block-image .is-applying img,.wp-block-image img.is-swapping-media,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-image__placeholder{aspect-ratio:4/3}.wp-block-image__placeholder.has-illustration:before{background:#fff;opacity:.8}.wp-block-image__placeholder .components-placeholder__illustration{opacity:.1}.wp-block-image.is-selected .block-editor-media-placeholder{filter:none!important}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right:0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align]:has(>.wp-block-image){position:relative}.wp-block-image__toolbar_content_textarea__container{padding:8px}.wp-block-image__toolbar_content_textarea{width:250px}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}:root :where(.wp-block-latest-posts){padding-left:2.5em}:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){padding-left:0}.wp-block-math__textarea-control textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.wp-block-media-text.is-image-fill .editor-media-container__resizer,.wp-block-media-text.is-image-fill-element .components-placeholder.has-illustration,.wp-block-media-text.is-image-fill-element .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.wp-block-media-text--placeholder-image{min-height:205px}.block-editor-block-list__block[data-type="core/more"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more .rich-text{background:#fff;color:#757575;display:inline-flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:10px 36px;position:relative;text-align:center;text-transform:uppercase;white-space:nowrap}.wp-block-more:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;color:#fff;margin-left:auto;margin-right:0;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff;height:24px}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:transparent;color:#1e1e1e}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.components-placeholder.wp-block-navigation-placeholder{color:inherit}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview{background:transparent;color:currentColor}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;position:relative;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.wp-block-navigation-placeholder__controls{float:left;width:100%}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-right:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-left:4px;padding:0 6px 0 0}.wp-block-navigation-placeholder__actions__indicator svg{fill:currentColor;margin-right:4px}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-right:0}.wp-block-navigation-placeholder__actions{height:100%}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:159px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{left:36px;top:97px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{left:160px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:145px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{left:0;top:159px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:65px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:113px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;grid-column:span 2;height:64px!important;justify-content:space-between;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;border-color:#e0e0e0}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls__empty-message{margin-left:24px}.editor-sidebar__panel .wp-block-navigation__submenu-header{margin-bottom:0;margin-top:0}.wp-block-navigation__submenu-accessibility-notice{grid-column:span 2}.wp-block-navigation__overlay-selector{position:relative}.wp-block-navigation__overlay-selector-controls{margin-bottom:8px}.wp-block-navigation__overlay-create-button{position:absolute;right:0;top:-4px;z-index:1}.wp-block-navigation__overlay-preview{background:#fff;border:1px solid #ddd;border-radius:2px;max-height:200px;overflow-y:auto}.wp-block-navigation__overlay-preview-empty,.wp-block-navigation__overlay-preview-loading{align-items:center;background:#f0f0f0;display:flex;justify-content:center;min-height:200px}.wp-block-navigation__overlay-preview-empty{color:#757575;font-style:italic;padding:16px;text-align:center}.wp-block-navigation__overlay-preview-placeholder{animation:wp-block-navigation-overlay-preview-pulse 1.5s ease-in-out infinite;background:#f0f0f0;height:200px;width:100%}@keyframes wp-block-navigation-overlay-preview-pulse{0%,to{opacity:1}50%{opacity:.5}}.wp-block-navigation__deleted-overlay-warning{margin-top:12px}.wp-block-navigation__overlay-create-button-prominent{justify-content:center;margin-bottom:8px;width:100%}.wp-block-navigation__overlay-help-text-wrapper{margin-top:8px}.wp-block-navigation .block-list-appender{position:relative}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;overflow:visible!important;visibility:visible!important;width:auto!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px auto 16px 16px}.wp-block-navigation-link__invalid-item{color:#000}.wp-block-navigation-link__placeholder{background-image:none!important;box-shadow:none!important;position:relative;text-decoration:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{-webkit-text-decoration:wavy underline;text-decoration:wavy underline;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;text-underline-offset:.25rem}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{color:#1e1e1e;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em;text-transform:uppercase}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.link-ui-page-creator{max-width:350px;min-width:auto;padding-top:8px;width:90vw}.link-ui-page-creator__inner{padding:16px}.link-ui-page-creator__back{margin-left:8px;text-transform:uppercase}.navigation-link-control__error-text{color:#cc1818}.navigation-link-to__action-button{grid-column:auto}.navigation-link-to__action-button:nth-last-child(1 of .navigation-link-to__action-button):nth-child(odd of .navigation-link-to__action-button){grid-column:1/-1}.navigation-link-to__action-button.navigation-link-to__action-button.navigation-link-to__action-button{justify-content:center}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{height:auto!important;left:-1px;min-width:200px!important;opacity:1!important;position:absolute;top:100%;visibility:visible!important;width:auto!important}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:transparent;content:"";display:block;height:100%;position:absolute;right:100%;width:.5em}}.block-editor-block-list__block[data-type="core/nextpage"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{background:#fff;border-radius:4px;color:#757575;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:24px;padding:6px 8px;position:relative;text-transform:uppercase}.wp-block-nextpage:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}@media (min-width:600px){.wp-block-page-list-modal{max-width:480px}}.wp-block-page-list-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.is-zoomed-out .block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:0}html[dir=rtl] .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}.wp-block-post-author__transform{background:#f0f0f0;border-radius:2px;margin:16px;padding:16px}.wp-block-playlist__waveform-color-controls{display:grid;grid-column:1/-1;row-gap:0}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{font-style:normal;text-transform:none}.wp-block-pullquote__citation{color:inherit}.wp-block-pullquote[style*=line-height] :where(p){line-height:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1 1 auto}.wp-block-rss .wp-block-rss{all:inherit;margin:0;padding:0}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search :where(.wp-block-search__button){align-items:center;border-radius:initial;display:flex;height:auto;justify-content:center;text-align:center}.wp-block-search__inspector-controls .components-base-control{margin-bottom:0}.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.is-transient{position:relative}.wp-block-site-logo.is-transient img{opacity:.3}.wp-block-site-logo.is-transient .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-media-replace-container{position:relative}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title{text-align:start;-moz-text-align-last:center;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:inherit;height:auto;margin:0;opacity:1;padding:.25em}.wp-block-social-link-anchor:hover{transform:none}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:.6666666667em;padding-right:.6666666667em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0}.wp-block-social-link__toolbar_content_text{width:250px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-social-link:hover{transform:none}:root :where(.wp-block-social-links){padding:0}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}.wp-block-social-links .block-list-appender{position:static}.wp-block-social-links .block-list-appender .block-editor-inserter{font-size:inherit}.wp-block-social-links .block-list-appender .block-editor-button-block-appender{font-size:inherit;height:1.5em;padding:0;width:1.5em}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;height:100%;min-height:8px;min-width:8px;position:absolute;width:100%;z-index:1}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container,.wp-block-spacer.is-selected.custom-sizes-disabled{background:rgba(0,0,0,.1)}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,.is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container:not(.is-resizing){height:100%!important;width:100%!important}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{height:100%!important;margin-bottom:0}@media (min-width:600px){.wp-block-tab-list__mover-button{min-width:0!important;width:24px}}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);border-style:double;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr,.wp-block-table table.has-individual-borders>*{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-start;display:flex;flex-direction:column;gap:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-end;flex-direction:row}}.blocks-table__placeholder-input{width:112px}.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{border:none}.wp-block-term-template .term-loading .term-loading-placeholder{background-color:#f0f0f0;border-radius:2px;height:1.5em;margin-bottom:.25em;width:100%}@media not (prefers-reduced-motion){.wp-block-term-template .term-loading .term-loading-placeholder{animation:loadingpulse 1.5s ease-in-out infinite}}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.block-library-video-tracks-editor{z-index:159990}.modal-open .block-library-video-tracks-editor{z-index:99999}.block-library-video-tracks-editor__track-list-track{padding-left:12px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-edit-track-label,.block-library-video-tracks-editor__tracks-informative-message-title{color:#757575;display:block;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:4px;text-transform:uppercase}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__tracks-informative-message{padding:8px}.block-library-video-tracks-editor__tracks-informative-message-description{margin-bottom:0}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.block-editor-block-settings-menu__popover.is-expanded{overflow-y:scroll}.block-editor-block-settings-menu__popover .block-library-query-pattern__selection-content{height:100%}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr}@media (min-width:600px){.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{grid-template-columns:1fr 1fr}}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{grid-gap:12px;min-width:280px}@media (min-width:600px){.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{min-width:480px}}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list__list-item{margin-bottom:0}.wp-block-query>.block-editor-media-placeholder.is-small{min-height:60px}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-query-pagination{max-width:100%}:where(.editor-styles-wrapper) .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-right:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image .block-editor-media-placeholder{backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{min-height:200px}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-left-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{pointer-events:none}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.wp-block-post-featured-image.is-transient{position:relative}.wp-block-post-featured-image.is-transient img{opacity:.3}.wp-block-post-featured-image.is-transient .components-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%}.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form .block-editor-warning *{pointer-events:auto}.wp-element-button{cursor:revert}.wp-element-button[role=textbox]{cursor:text}.block-library-poster-image__container{position:relative}.block-library-poster-image__container:focus .block-library-poster-image__actions,.block-library-poster-image__container:focus-within .block-library-poster-image__actions,.block-library-poster-image__container:hover .block-library-poster-image__actions{opacity:1}.block-library-poster-image__container .block-library-poster-image__actions.block-library-poster-image__actions-select{margin-top:16px;opacity:1}.block-library-poster-image__container .components-drop-zone__content{border-radius:2px}.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.block-library-poster-image__container .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.block-library-poster-image__preview{display:flex;height:auto!important;justify-content:center;min-height:40px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;padding:0;width:100%}.block-library-poster-image__preview .block-library-poster-image__preview-image{aspect-ratio:2/1;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}.block-library-poster-image__actions:not(.block-library-poster-image__actions-select){bottom:0;opacity:0;padding:8px;position:absolute}@media not (prefers-reduced-motion){.block-library-poster-image__actions:not(.block-library-poster-image__actions-select){transition:opacity 50ms ease-out}}.block-library-poster-image__actions:not(.block-library-poster-image__actions-select) .block-library-poster-image__action{backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75)}.block-library-poster-image__actions .block-library-poster-image__action{flex-grow:1;justify-content:center}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:where(.editor-styles-wrapper) .has-regular-font-size{font-size:16px}:where(.editor-styles-wrapper) .has-larger-font-size{font-size:42px}:where(.editor-styles-wrapper) iframe:not([frameborder]){border:0}
\ No newline at end of file
+.block-library-utils__media-control{position:relative}.block-library-utils__media-control .components-drop-zone__content-icon{display:none}.block-library-utils__media-control .block-library-utils__media-control__replace-flow{display:block}.block-library-utils__media-control .block-library-utils__media-control__replace-flow button.components-button{border-color:#ccc;color:#1e1e1e;display:block;height:40px;padding-right:32px;width:100%}.block-library-utils__media-control .block-library-utils__media-control__replace-flow button.components-button:hover{color:var(--wp-admin-theme-color)}.block-library-utils__media-control__inspector-media-replace-title{text-align:start;white-space:normal;word-break:break-all}.block-library-utils__media-control__inspector-image-indicator{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);background-size:cover;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:20px;outline:1px solid transparent;width:20px}.block-library-utils__media-control__reset{border-radius:2px;margin:auto 8px;opacity:0;position:absolute;right:0;top:8px}@media not (prefers-reduced-motion){.block-library-utils__media-control__reset{transition:opacity .1s ease-in-out}}.block-library-utils__media-control:hover .block-library-utils__media-control__reset,.block-library-utils__media-control__reset:focus,.block-library-utils__media-control__reset:hover{opacity:1}@media (hover:none){.block-library-utils__media-control__reset{opacity:1}}.wp-block-audio{margin-left:0;margin-right:0;position:relative}.wp-block-audio.is-transient audio{opacity:.3}.wp-block-audio .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-avatar__image img{width:100%}.wp-block-avatar.aligncenter .components-resizable-box__container{margin:0 auto}.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{align-items:center;display:inline-flex}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}.wp-block-categories ul{padding-left:2.5em}.wp-block-categories ul ul{margin-top:6px}[data-align=center] .wp-block-categories{text-align:center}.wp-block-categories__indentation{padding-left:16px}.wp-block-code code{background:none}.wp-block-columns :where(.wp-block){margin-left:0;margin-right:0;max-width:none}html :where(.wp-block-column){margin-bottom:0;margin-top:0}.wp-block-comments__legacy-placeholder,.wp-block-post-comments{box-sizing:border-box}.wp-block-comments__legacy-placeholder .alignleft,.wp-block-post-comments .alignleft{float:left}.wp-block-comments__legacy-placeholder .alignright,.wp-block-post-comments .alignright{float:right}.wp-block-comments__legacy-placeholder .navigation:after,.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-comments__legacy-placeholder .commentlist,.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .commentlist .comment,.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-comments__legacy-placeholder .commentlist .comment p,.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-comments__legacy-placeholder .commentlist .children,.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-comments__legacy-placeholder .comment-author,.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-comments__legacy-placeholder .comment-author .avatar,.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;margin-top:.5em;width:2.5em}.wp-block-comments__legacy-placeholder .comment-author cite,.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-comments__legacy-placeholder .comment-meta,.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-comments__legacy-placeholder .comment-meta b,.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-comments__legacy-placeholder .comment-meta .comment-awaiting-moderation,.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-comments__legacy-placeholder .comment-body .commentmetadata,.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-comments__legacy-placeholder .comment-form-author label,.wp-block-comments__legacy-placeholder .comment-form-comment label,.wp-block-comments__legacy-placeholder .comment-form-email label,.wp-block-comments__legacy-placeholder .comment-form-url label,.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-comments__legacy-placeholder .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder .comment-form textarea,.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-comments__legacy-placeholder .comment-form-cookies-consent #wp-comment-cookies-consent,.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-comments__legacy-placeholder .comment-reply-title,.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-comments__legacy-placeholder .comment-reply-title :where(small),.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-comments__legacy-placeholder .reply,.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-comments__legacy-placeholder input:not([type=submit]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-comments__legacy-placeholder input:not([type=submit]):not([type=checkbox]),.wp-block-comments__legacy-placeholder textarea,.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit],.wp-block-comments__legacy-placeholder input[type=submit]){border:none}.wp-block-comments{box-sizing:border-box}.block-library-comments-toolbar__popover .components-popover__content{min-width:230px}.wp-block-comments__legacy-placeholder *{pointer-events:none}.wp-block-comment-author-avatar__placeholder{stroke:currentColor;stroke-dasharray:3;border:1px dashed;height:100%;width:100%}.wp-block[data-align=center]>.wp-block-comments-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-comments-pagination{max-width:100%}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{font-size:inherit}.wp-block-comments-pagination-numbers a{text-decoration:underline}.wp-block-comments-pagination-numbers .page-numbers{margin-right:2px}.wp-block-comments-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-comments-title.has-background{padding:inherit}.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover.is-transient .wp-block-cover__inner-container{z-index:2}.wp-block-cover.is-transient .components-spinner{z-index:3}.wp-block-cover .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:left}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}.wp-block-details summary div{display:inline}.wp-block-embed{clear:both;margin-left:0;margin-right:0}.wp-block-embed.is-loading{display:flex;justify-content:center}.wp-block-embed .wp-block-embed__placeholder-input{flex:1 1 auto}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-post-content .wp-block-embed__learn-more a{color:var(--wp-admin-theme-color)}.block-library-embed__interactive-overlay{bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.wp-block[data-align=left]>.wp-block-embed,.wp-block[data-align=right]>.wp-block-embed{max-width:360px;width:100%}.wp-block[data-align=left]>.wp-block-embed .wp-block-embed__wrapper,.wp-block[data-align=right]>.wp-block-embed .wp-block-embed__wrapper{min-width:280px}.wp-block[data-align=left]>.wp-block-file,.wp-block[data-align=right]>.wp-block-file{height:auto}.wp-block[data-align=center]>.wp-block-file{text-align:center}.wp-block-file{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:0}.wp-block-file .components-resizable-box__container{margin-bottom:1em}.wp-block-file .wp-block-file__preview{height:100%;margin-bottom:1em;width:100%}.wp-block-file .wp-block-file__preview-overlay{bottom:0;left:0;position:absolute;right:0;top:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file a{min-width:1em}.wp-block-file a:not(.wp-block-file__button){display:inline-block}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-form-input .is-input-hidden{align-items:center;background:repeating-linear-gradient(45deg,transparent,transparent 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;display:flex;font-size:.85em;justify-content:center;opacity:.3;padding:.5em;position:relative}.wp-block-form-input .is-input-hidden:after{content:attr(data-message)}.wp-block-form-input.is-selected .is-input-hidden{background:none;opacity:1}.wp-block-form-submission-notification>*{background:repeating-linear-gradient(45deg,transparent,transparent 5px,currentColor 0,currentColor 6px);border:1px dashed;box-sizing:border-box;opacity:.25}.wp-block-form-submission-notification.is-selected>*,.wp-block-form-submission-notification:has(.is-selected)>*{background:none;opacity:1}.wp-block-form-submission-notification.is-selected:after,.wp-block-form-submission-notification:has(.is-selected):after{display:none!important}.wp-block-form-submission-notification:after{align-items:center;display:flex;font-size:1.1em;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.wp-block-form-submission-notification.form-notification-type-success:after{content:attr(data-message-success)}.wp-block-form-submission-notification.form-notification-type-error:after{content:attr(data-message-error)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{height:50vh!important}@media (min-width:960px){.block-editor-freeform-modal .block-editor-freeform-modal__content:not(.is-full-screen){height:9999rem}.block-editor-freeform-modal .block-editor-freeform-modal__content .components-modal__header+div{height:100%}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-tinymce{height:calc(100% - 52px)}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-container-body{display:flex;flex-direction:column;height:100%;min-width:50vw}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area{display:flex;flex-direction:column;flex-grow:1}.block-editor-freeform-modal .block-editor-freeform-modal__content .mce-edit-area iframe{flex-grow:1;height:10px!important}}.block-editor-freeform-modal__actions{margin-top:16px}:root :where(figure.wp-block-gallery){display:block}:root :where(figure.wp-block-gallery)>.blocks-gallery-caption{flex:0 0 100%}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button{margin-bottom:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder{margin:0}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label{display:flex}:root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption{z-index:2}:root :where(figure.wp-block-gallery) .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.gallery-settings-buttons .components-button:first-child{margin-right:8px}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected:before{bottom:0;box-shadow:0 0 0 1px #fff inset,0 0 0 3px var(--wp-admin-theme-color) inset;content:"";left:0;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .block-editor-media-placeholder{height:100%;margin:0}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.wp-block-gallery ul.blocks-gallery-grid{margin:0;padding:0}@media (min-width:600px){.wp-block-update-gallery-modal{max-width:480px}}.wp-block-update-gallery-modal-buttons{display:flex;gap:12px;justify-content:flex-end}.wp-block-gallery__source-settings{display:flex;flex-direction:column;gap:8px;grid-column:1/-1}.wp-block-gallery__source-settings .wp-block-gallery__source-description{color:#757575;font-size:12px;margin:0}.wp-block-gallery__source-settings .components-button{justify-content:center;width:100%}.wp-block-gallery__source-notice{grid-column:1/-1;margin:0}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-bottom:18px;margin-top:18px}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{gap:inherit}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-default-block-appender__content,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{display:inherit;flex:1;flex-direction:inherit;width:100%}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child:after{border:1px dashed;content:"";display:flex;flex:1 0 40px;min-height:38px;pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child{pointer-events:none}.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-button-block-appender,.wp-block-group.is-layout-flex.block-editor-block-list__block>.block-list-appender:only-child .block-editor-inserter{pointer-events:all}.block-library-html__edit .block-library-html__preview-overlay{height:100%;left:0;position:absolute;top:0;width:100%}.block-library-html__edit-code{margin:16px}.block-library-html__edit-code .block-library-html__edit-code-button{justify-content:center}@media (min-width:600px){.block-library-html__modal:not(.is-full-screen){height:9999rem}}.block-library-html__modal .components-modal__children-container{height:100%}.block-library-html__modal-content,.block-library-html__modal-tabs{flex:1}.block-library-html__modal-tab{border:1px solid #e0e0e0;border-radius:2px;box-sizing:border-box;display:flex;flex-direction:column;font-family:Menlo,Consolas,monaco,monospace;height:100%;margin:0;padding:16px}.block-library-html__modal-editor{background:transparent;border:none;box-sizing:border-box;color:inherit;direction:ltr;flex:1;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;overflow-x:auto;padding:0;resize:none;width:100%}.block-library-html__modal-editor:focus{box-shadow:none;outline:none}.block-library-html__preview{align-items:center;display:flex;flex:1;justify-content:center;min-height:0;overflow-y:auto}.block-library-html__preview iframe{height:100%}.wp-block[data-align=center]>.wp-block-icon{display:flex;justify-content:center}.wp-block-icon__inserter-sidebar{padding-bottom:24px}@media (min-width:782px){.wp-block-icon__inserter-sidebar{bottom:0;left:0;overflow-x:visible;overflow-y:auto;padding-top:24px;padding-inline:24px;position:absolute;top:72px;width:280px}.wp-block-icon__inserter-panel{margin-inline-start:280px}}.wp-block-icon__inserter-loading{display:flex;justify-content:center;padding:24px}.wp-block-icon__inserter-grid-icons-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.wp-block-icon__inserter-grid-no-results{display:flex;justify-content:center}.wp-block-icon__inserter-grid-icons-list-item{display:flex;flex-direction:column;height:auto!important}.wp-block-icon__inserter-grid-icons-list-item-icon{padding:12px}.wp-block-icon__inserter-grid-icons-list-item-icon svg{display:block;height:24px;width:24px}.wp-block-icon__inserter-grid-icons-list-item-title{font-size:12px;overflow-wrap:break-word;padding:4px 4px 8px}.wp-block-icon__toolbar-content{width:250px}.wp-block-icon__placeholder{backdrop-filter:blur(100px)}.wp-block-image.wp-block-image .block-editor-media-placeholder.is-small{min-height:60px}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image.is-transient:not(.alignwide):not(.alignfull),.wp-block-image:has(img.is-swapping-media):not(.alignwide):not(.alignfull){width:-moz-fit-content;width:fit-content}.wp-block-image .is-applying img,.wp-block-image img.is-swapping-media,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-image__placeholder{aspect-ratio:4/3}.wp-block-image__placeholder.has-illustration:before{background:#fff;opacity:.8}.wp-block-image__placeholder .components-placeholder__illustration{opacity:.1}.wp-block-image.is-selected .block-editor-media-placeholder{filter:none!important}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{left:0;margin:-1px 0;position:absolute;right:0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{height:auto;width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{caption-side:bottom;display:table-caption}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align]:has(>.wp-block-image){position:relative}.wp-block-image__toolbar_content_textarea__container{padding:8px}.wp-block-image__toolbar_content_textarea{width:250px}.wp-block-latest-posts>li{overflow:hidden}.wp-block-latest-posts li a>div{display:inline}:root :where(.wp-block-latest-posts){padding-left:2.5em}:root :where(.wp-block-latest-posts.is-grid),:root :where(.wp-block-latest-posts__list){padding-left:0}.wp-block-math__textarea-control textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.wp-block-media-text__media{position:relative}.wp-block-media-text__media.is-transient img{opacity:.3}.wp-block-media-text__media .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-media-text .__resizable_base__{grid-column:1/span 2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,.wp-block-media-text.is-image-fill .editor-media-container__resizer,.wp-block-media-text.is-image-fill-element .components-placeholder.has-illustration,.wp-block-media-text.is-image-fill-element .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.wp-block-media-text--placeholder-image{min-height:205px}.block-editor-block-list__block[data-type="core/more"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-more{display:block;text-align:center;white-space:nowrap}.wp-block-more .rich-text{background:#fff;color:#757575;display:inline-flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:10px 36px;position:relative;text-align:center;text-transform:uppercase;white-space:nowrap}.wp-block-more:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block{margin:revert}.wp-block-navigation-item__label{display:inline}.wp-block-navigation-item,.wp-block-navigation__container{background-color:inherit}.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__submenu-container,.has-child.is-selected>.wp-block-navigation__submenu-container{display:flex;opacity:1;visibility:visible}.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__submenu-container{opacity:1;visibility:visible}.is-editing>.wp-block-navigation__container{display:flex;flex-direction:column;opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender{display:block;position:static;width:100%}.is-editing>.wp-block-navigation__submenu-container>.block-list-appender .block-editor-button-block-appender{background:#1e1e1e;color:#fff;margin-left:auto;margin-right:0;padding:0;width:24px}.wp-block-navigation__submenu-container .block-list-appender{display:none}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{align-items:center;border-radius:4px;display:flex;height:30px;margin:0 auto;padding:3px;position:relative}.block-library-colors-selector .block-library-colors-selector__state-selection{border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);height:22px;line-height:20px;margin-left:auto;margin-right:auto;min-height:22px;min-width:22px;padding:2px;width:22px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender{background-color:#1e1e1e;color:#fff;height:24px}.wp-block-navigation .wp-block+.block-list-appender .block-editor-button-block-appender.block-editor-button-block-appender.block-editor-button-block-appender{padding:0}.wp-block-navigation .wp-block .wp-block .block-editor-button-block-appender{background-color:transparent;color:#1e1e1e}.components-placeholder.wp-block-navigation-placeholder{background:none;box-shadow:none;min-height:0;outline:none;padding:0}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset{font-size:inherit}.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button{margin-bottom:0}.components-placeholder.wp-block-navigation-placeholder{color:inherit}.wp-block-navigation.is-selected .components-placeholder.wp-block-navigation-placeholder{color:#1e1e1e}.wp-block-navigation-placeholder__preview{align-items:center;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;min-width:96px}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview{display:none}.wp-block-navigation-placeholder__preview{background:transparent;color:currentColor}.wp-block-navigation-placeholder__preview:before{border:1px dashed;border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.wp-block-navigation-placeholder__preview>svg{fill:currentColor}.wp-block-navigation.is-vertical .is-medium .components-placeholder__fieldset,.wp-block-navigation.is-vertical .is-small .components-placeholder__fieldset{min-height:90px}.wp-block-navigation.is-vertical .is-large .components-placeholder__fieldset{min-height:132px}.wp-block-navigation-placeholder__controls,.wp-block-navigation-placeholder__preview{align-items:flex-start;flex-direction:row;padding:6px 8px}.wp-block-navigation-placeholder__controls{background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:none;position:relative;z-index:1}.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls{display:flex}.wp-block-navigation-placeholder__controls{float:left;width:100%}.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator,.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator+hr{display:none}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions{align-items:flex-start;flex-direction:column}.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr,.wp-block-navigation.is-vertical .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr{display:none}.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon{height:36px;margin-right:12px}.wp-block-navigation-placeholder__actions__indicator{align-items:center;display:flex;height:36px;justify-content:flex-start;line-height:0;margin-left:4px;padding:0 6px 0 0}.wp-block-navigation-placeholder__actions__indicator svg{fill:currentColor;margin-right:4px}.wp-block-navigation .components-placeholder.is-medium .components-placeholder__fieldset{flex-direction:row!important}.wp-block-navigation-placeholder__actions{align-items:center;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;gap:6px}.wp-block-navigation-placeholder__actions .components-dropdown,.wp-block-navigation-placeholder__actions>.components-button{margin-right:0}.wp-block-navigation-placeholder__actions{height:100%}.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr{background-color:#1e1e1e;border:0;height:100%;margin:auto 0;max-height:16px;min-height:1px;min-width:1px}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close{display:none}}.wp-block-navigation__responsive-container.is-menu-open{position:fixed;top:159px}@media (min-width:782px){.wp-block-navigation__responsive-container.is-menu-open{left:36px;top:97px}}@media (min-width:960px){.wp-block-navigation__responsive-container.is-menu-open{left:160px}}.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:145px}.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{left:0;top:159px}@media (min-width:782px){.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open{top:65px}}.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open{top:113px}body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open{bottom:0;left:0;right:0;top:0}.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close,.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{color:inherit;height:auto;padding:0}.components-heading.wp-block-navigation-off-canvas-editor__title{margin:0}.wp-block-navigation-off-canvas-editor__header{margin-bottom:8px}.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender{margin-top:16px}@keyframes fadein{0%{opacity:0}to{opacity:1}}.wp-block-navigation__loading-indicator-container{padding:8px 12px}.wp-block-navigation .wp-block-navigation__uncontrolled-inner-blocks-loading-indicator{margin-top:0}@keyframes fadeouthalf{0%{opacity:1}to{opacity:.5}}.wp-block-navigation-delete-menu-button{justify-content:center;margin-bottom:16px;width:100%}.components-button.is-link.wp-block-navigation-manage-menus-button{margin-bottom:16px}.wp-block-navigation__overlay-menu-preview{align-items:center;background-color:#f0f0f0;display:flex;grid-column:span 2;height:64px!important;justify-content:space-between;padding:0 24px;width:100%}.wp-block-navigation__overlay-menu-preview.open{background-color:#fff;border-color:#e0e0e0}.wp-block-navigation-placeholder__actions hr+hr,.wp-block-navigation__toolbar-menu-selector.components-toolbar-group:empty{display:none}.wp-block-navigation__navigation-selector{margin-bottom:16px;width:100%}.wp-block-navigation__navigation-selector-button{border:1px solid;justify-content:space-between;width:100%}.wp-block-navigation__navigation-selector-button__icon{flex:0 0 auto}.wp-block-navigation__navigation-selector-button__label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wp-block-navigation__navigation-selector-button--createnew{border:1px solid;margin-bottom:16px;width:100%}.wp-block-navigation__responsive-container-open.components-button{opacity:1}.wp-block-navigation__menu-inspector-controls__empty-message{margin-left:24px}.editor-sidebar__panel .wp-block-navigation__submenu-header{margin-bottom:0;margin-top:0}.wp-block-navigation__submenu-accessibility-notice{grid-column:span 2}.wp-block-navigation__overlay-selector{position:relative}.wp-block-navigation__overlay-selector-controls{margin-bottom:8px}.wp-block-navigation__overlay-create-button{position:absolute;right:0;top:-4px;z-index:1}.wp-block-navigation__overlay-preview{background:#fff;border:1px solid #ddd;border-radius:2px;max-height:200px;overflow-y:auto}.wp-block-navigation__overlay-preview-empty,.wp-block-navigation__overlay-preview-loading{align-items:center;background:#f0f0f0;display:flex;justify-content:center;min-height:200px}.wp-block-navigation__overlay-preview-empty{color:#757575;font-style:italic;padding:16px;text-align:center}.wp-block-navigation__overlay-preview-placeholder{animation:wp-block-navigation-overlay-preview-pulse 1.5s ease-in-out infinite;background:#f0f0f0;height:200px;width:100%}@keyframes wp-block-navigation-overlay-preview-pulse{0%,to{opacity:1}50%{opacity:.5}}.wp-block-navigation__deleted-overlay-warning{margin-top:12px}.wp-block-navigation__overlay-create-button-prominent{justify-content:center;margin-bottom:8px;width:100%}.wp-block-navigation__overlay-help-text-wrapper{margin-top:8px}.wp-block-navigation .block-list-appender{position:relative}.wp-block-navigation .has-child{cursor:pointer}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container{z-index:29}.wp-block-navigation .has-child.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child.is-selected>.wp-block-navigation__submenu-container{height:auto!important;min-width:200px!important;opacity:1!important;overflow:visible!important;visibility:visible!important;width:auto!important}.wp-block-navigation-item .wp-block-navigation-item__content{cursor:text}.wp-block-navigation-item.is-editing,.wp-block-navigation-item.is-selected{min-width:20px}.wp-block-navigation-item .block-list-appender{margin:16px auto 16px 16px}.wp-block-navigation-link__invalid-item{color:#000}.wp-block-navigation-link__placeholder{background-image:none!important;box-shadow:none!important;position:relative;text-decoration:none!important}.wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span{-webkit-text-decoration:wavy underline;text-decoration:wavy underline;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;text-underline-offset:.25rem}.wp-block-navigation-link__placeholder.wp-block-navigation-item__content{cursor:pointer}.link-control-transform{border-top:1px solid #ccc;padding:0 16px 8px}.link-control-transform__subheading{color:#1e1e1e;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em;text-transform:uppercase}.link-control-transform__items{display:flex;justify-content:space-between}.link-control-transform__item{flex-basis:33%;flex-direction:column;gap:8px;height:auto}.link-ui-page-creator{max-width:350px;min-width:auto;padding-top:8px;width:90vw}.link-ui-page-creator__inner{padding:16px}.link-ui-page-creator__back{margin-left:8px;text-transform:uppercase}.navigation-link-control__error-text{color:#cc1818}.navigation-link-to__action-button{grid-column:auto}.navigation-link-to__action-button:nth-last-child(1 of .navigation-link-to__action-button):nth-child(odd of .navigation-link-to__action-button){grid-column:1/-1}.navigation-link-to__action-button.navigation-link-to__action-button.navigation-link-to__action-button{justify-content:center}.wp-block-navigation-submenu{display:block}.wp-block-navigation-submenu .wp-block-navigation__submenu-container{z-index:28}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container{height:auto!important;left:-1px;min-width:200px!important;opacity:1!important;position:absolute;top:100%;visibility:visible!important;width:auto!important}@media (min-width:782px){.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation-submenu.has-child-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before,.wp-block-navigation-submenu.is-selected>.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:transparent;content:"";display:block;height:100%;position:absolute;right:100%;width:.5em}}.block-editor-block-list__block[data-type="core/nextpage"]{margin-bottom:28px;margin-top:28px;max-width:100%;text-align:center}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{background:#fff;border-radius:4px;color:#757575;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:24px;padding:6px 8px;position:relative;text-transform:uppercase}.wp-block-nextpage:before{border-top:3px dashed #ccc;content:"";left:0;position:absolute;right:0;top:50%}.wp-block-navigation.items-justified-space-between .wp-block-page-list,.wp-block-navigation.items-justified-space-between .wp-block-page-list>div{display:contents;flex:1}.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.has-child-selected .wp-block-page-list>div,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list,.wp-block-navigation.items-justified-space-between.is-selected .wp-block-page-list>div{flex:inherit}.wp-block-navigation .wp-block-navigation__submenu-container>.wp-block-page-list{display:block}.wp-block-pages-list__item__link{pointer-events:none}.wp-block-page-list .open-on-click:focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;visibility:visible;width:auto}.wp-block-page-list__loading-indicator-container{padding:8px 12px}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.is-zoomed-out .block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:0}html[dir=rtl] .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}.wp-block-post-author__transform{background:#f0f0f0;border-radius:2px;margin:16px;padding:16px}.wp-block-playlist__waveform-color-controls{display:grid;grid-column:1/-1;row-gap:0}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{font-style:normal;text-transform:none}.wp-block-pullquote__citation{color:inherit}.wp-block-pullquote[style*=line-height] :where(p){line-height:inherit}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form .wp-block-rss__placeholder-input{flex:1 1 auto}.wp-block-rss .wp-block-rss{all:inherit;margin:0;padding:0}.wp-block[data-align=center] .wp-block-search .wp-block-search__inside-wrapper{margin:auto}.wp-block-search :where(.wp-block-search__button){align-items:center;border-radius:initial;display:flex;height:auto;justify-content:center;text-align:center}.wp-block-search__inspector-controls .components-base-control{margin-bottom:0}.block-editor-block-list__block[data-type="core/separator"]{padding-bottom:.1px;padding-top:.1px}.blocks-shortcode__textarea{background:#fff!important;border:1px solid #1e1e1e!important;border-radius:2px!important;box-shadow:none!important;box-sizing:border-box;color:#1e1e1e!important;font-family:Menlo,Consolas,monaco,monospace!important;font-size:16px!important;max-height:250px;padding:12px!important;resize:none}@media (min-width:600px){.blocks-shortcode__textarea{font-size:13px!important}}.blocks-shortcode__textarea:focus{border-color:var(--wp-admin-theme-color)!important;box-shadow:0 0 0 1px var(--wp-admin-theme-color)!important;outline:2px solid transparent!important}.wp-block-site-logo.aligncenter>div,.wp-block[data-align=center]>.wp-block-site-logo{display:table;margin-left:auto;margin-right:auto}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo img{display:block;height:auto;max-width:100%}.wp-block-site-logo.is-transient{position:relative}.wp-block-site-logo.is-transient img{opacity:.3}.wp-block-site-logo.is-transient .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder{height:60px;width:60px}.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container,.wp-block-site-logo.wp-block-site-logo>div{border-radius:inherit}.wp-block-site-logo.wp-block-site-logo .components-placeholder{align-items:center;border-radius:inherit;display:flex;height:100%;justify-content:center;min-height:48px;min-width:48px;padding:0;width:100%}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text,.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button>svg{color:inherit}.block-library-site-logo__inspector-media-replace-container{position:relative}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-media-replace-title{text-align:start;-moz-text-align-last:center;text-align-last:center;white-space:normal;word-break:break-all}.block-library-site-logo__inspector-media-replace-container img{aspect-ratio:1;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);min-width:20px;width:20px}.block-library-site-logo__inspector-media-replace-container .block-library-site-logo__inspector-readonly-logo-preview{display:flex;height:40px;padding:6px 12px}.wp-block-site-tagline__placeholder,.wp-block-site-title__placeholder{border:1px dashed;padding:1em 0}.wp-block-social-links .wp-social-link{line-height:0}.wp-block-social-link-anchor{align-items:center;background:none;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:inherit;height:auto;margin:0;opacity:1;padding:.25em}.wp-block-social-link-anchor:hover{transform:none}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link button){padding-left:.6666666667em;padding-right:.6666666667em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link button){padding:0}.wp-block-social-link__toolbar_content_text{width:250px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.wp-social-link:hover{transform:none}:root :where(.wp-block-social-links){padding:0}.wp-block.wp-block-social-links.aligncenter,.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .components-button:disabled{opacity:1}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}.wp-block-social-links .block-list-appender{position:static}.wp-block-social-links .block-list-appender .block-editor-inserter{font-size:inherit}.wp-block-social-links .block-list-appender .block-editor-button-block-appender{font-size:inherit;height:1.5em;padding:0;width:1.5em}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;height:100%;min-height:8px;min-width:8px;position:absolute;width:100%;z-index:1}.block-library-spacer__resize-container.has-show-handle,.wp-block-spacer.is-hovered .block-library-spacer__resize-container,.wp-block-spacer.is-selected.custom-sizes-disabled{background:rgba(0,0,0,.1)}.is-dark-theme .block-library-spacer__resize-container.has-show-handle,.is-dark-theme .wp-block-spacer.is-hovered .block-library-spacer__resize-container,.is-dark-theme .wp-block-spacer.is-selected.custom-sizes-disabled{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both}.block-library-spacer__resize-container:not(.is-resizing){height:100%!important;width:100%!important}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.block-library-spacer__resize-container.resize-horizontal{height:100%!important;margin-bottom:0}@media (min-width:600px){.wp-block-tab-list__mover-button{min-width:0!important;width:24px}}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:var(--wp-admin-theme-color);border-style:double;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color)}.wp-block-table table.has-individual-borders td,.wp-block-table table.has-individual-borders th,.wp-block-table table.has-individual-borders tr,.wp-block-table table.has-individual-borders>*{border:1px solid}.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-start;display:flex;flex-direction:column;gap:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{align-items:flex-end;flex-direction:row}}.blocks-table__placeholder-input{width:112px}.block-editor-template-part__selection-modal{z-index:1000001}.block-editor-template-part__selection-modal .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:1280px){.block-editor-template-part__selection-modal .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}.block-editor-template-part__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.block-library-template-part__selection-search{background:#fff;padding:16px 0;position:sticky;top:0;z-index:2}.block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted:after,.block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected:after{outline-color:var(--wp-block-synced-color)}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.has-editable-outline:after{border:none}.wp-block-term-template .term-loading .term-loading-placeholder{background-color:#f0f0f0;border-radius:2px;height:1.5em;margin-bottom:.25em;width:100%}@media not (prefers-reduced-motion){.wp-block-term-template .term-loading .term-loading-placeholder{animation:loadingpulse 1.5s ease-in-out infinite}}@keyframes loadingpulse{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}.wp-block[data-align=center]>.wp-block-video{text-align:center}.wp-block-video{position:relative}.wp-block-video.is-transient video{opacity:.3}.wp-block-video .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.block-library-video-tracks-editor{z-index:159990}.modal-open .block-library-video-tracks-editor{z-index:99999}.block-library-video-tracks-editor__track-list-track{padding-left:12px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-edit-track-label,.block-library-video-tracks-editor__tracks-informative-message-title{color:#757575;display:block;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:4px;text-transform:uppercase}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__tracks-informative-message{padding:8px}.block-library-video-tracks-editor__tracks-informative-message-description{margin-bottom:0}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:1280px){.block-library-query-pattern__selection-modal .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}.block-library-query-pattern__selection-modal .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.block-library-query-pattern__selection-modal .block-library-query-pattern__selection-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}@media (min-width:600px){.wp-block-query__enhanced-pagination-modal{max-width:480px}}.block-editor-block-settings-menu__popover.is-expanded{overflow-y:scroll}.block-editor-block-settings-menu__popover .block-library-query-pattern__selection-content{height:100%}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{display:grid;grid-template-columns:1fr}@media (min-width:600px){.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{grid-template-columns:1fr 1fr}}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{grid-gap:12px;min-width:280px}@media (min-width:600px){.block-editor-block-settings-menu__popover .block-editor-block-patterns-list{min-width:480px}}.block-editor-block-settings-menu__popover .block-editor-block-patterns-list__list-item{margin-bottom:0}.wp-block-query>.block-editor-media-placeholder.is-small{min-height:60px}.wp-block[data-align=center]>.wp-block-query-pagination{justify-content:center}:where(.editor-styles-wrapper) .wp-block-query-pagination{max-width:100%}:where(.editor-styles-wrapper) .wp-block-query-pagination.block-editor-block-list__layout{margin:0}.wp-block-query-pagination-numbers a{text-decoration:underline}.wp-block-query-pagination-numbers .page-numbers{margin-right:2px}.wp-block-query-pagination-numbers .page-numbers:last-child{margin-right:0}.wp-block-post-featured-image .block-editor-media-placeholder{backdrop-filter:none;z-index:1}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{align-items:center;display:flex;justify-content:center;padding:0}.wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{display:none}.wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{align-items:center;background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);border-radius:50%;border-style:solid;color:#fff;display:flex;height:48px;justify-content:center;margin:auto;padding:0;position:relative;width:48px}.wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{color:inherit}.wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{min-height:200px}.wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){border-left-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){border-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){border-top-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){border-right-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){border-left-style:solid}.wp-block-post-featured-image[style*=height] .components-placeholder{height:100%;min-height:48px;min-width:48px;width:100%}.wp-block-post-featured-image>a{pointer-events:none}.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.wp-block-post-featured-image.is-transient{position:relative}.wp-block-post-featured-image.is-transient img{opacity:.3}.wp-block-post-featured-image.is-transient .components-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}div[data-type="core/post-featured-image"] img{display:block;height:auto;max-width:100%}.wp-block-post-comments-form *{pointer-events:none}.wp-block-post-comments-form .block-editor-warning *{pointer-events:auto}.wp-element-button{cursor:revert}.wp-element-button[role=textbox]{cursor:text}.block-library-poster-image__container{position:relative}.block-library-poster-image__container:focus .block-library-poster-image__actions,.block-library-poster-image__container:focus-within .block-library-poster-image__actions,.block-library-poster-image__container:hover .block-library-poster-image__actions{opacity:1}.block-library-poster-image__container .block-library-poster-image__actions.block-library-poster-image__actions-select{margin-top:16px;opacity:1}.block-library-poster-image__container .components-drop-zone__content{border-radius:2px}.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}.block-library-poster-image__container .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.block-library-poster-image__container .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.block-library-poster-image__preview{display:flex;height:auto!important;justify-content:center;min-height:40px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;padding:0;width:100%}.block-library-poster-image__preview .block-library-poster-image__preview-image{aspect-ratio:2/1;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}.block-library-poster-image__actions:not(.block-library-poster-image__actions-select){bottom:0;opacity:0;padding:8px;position:absolute}@media not (prefers-reduced-motion){.block-library-poster-image__actions:not(.block-library-poster-image__actions-select){transition:opacity 50ms ease-out}}.block-library-poster-image__actions:not(.block-library-poster-image__actions-select) .block-library-poster-image__action{backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75)}.block-library-poster-image__actions .block-library-poster-image__action{flex-grow:1;justify-content:center}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:where(.editor-styles-wrapper) .has-regular-font-size{font-size:16px}:where(.editor-styles-wrapper) .has-larger-font-size{font-size:42px}:where(.editor-styles-wrapper) iframe:not([frameborder]){border:0}
\ No newline at end of file
diff --git a/wp-includes/css/dist/block-library/style-rtl.css b/wp-includes/css/dist/block-library/style-rtl.css
index 8846239d10..6e13716152 100644
--- a/wp-includes/css/dist/block-library/style-rtl.css
+++ b/wp-includes/css/dist/block-library/style-rtl.css
@@ -3109,6 +3109,17 @@ html.has-modal-open {
text-transform: uppercase;
}
+:where(.wp-block-navigation-overlay-close) {
+ color: inherit;
+ font-family: inherit;
+ font-size: inherit;
+ font-style: inherit;
+ font-weight: inherit;
+ letter-spacing: inherit;
+ line-height: inherit;
+ text-transform: inherit;
+}
+
.wp-block-navigation-overlay-close {
display: inline-flex;
align-items: center;
@@ -3849,6 +3860,7 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
.wp-block-post-author-biography {
box-sizing: border-box;
white-space: pre-wrap;
+ overflow-wrap: break-word;
}
:where(.wp-block-post-comments-form textarea),
diff --git a/wp-includes/css/dist/block-library/style-rtl.min.css b/wp-includes/css/dist/block-library/style-rtl.min.css
index 515c08103a..d6ea47ed5b 100644
--- a/wp-includes/css/dist/block-library/style-rtl.min.css
+++ b/wp-includes/css/dist/block-library/style-rtl.min.css
@@ -1 +1 @@
-@charset "UTF-8";.wp-block-accordion{box-sizing:border-box}.wp-block-accordion-item.is-open>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon{transform:rotate(-45deg)}@media (prefers-reduced-motion:no-preference){.wp-block-accordion-item{transition:grid-template-rows .3s ease-out}.wp-block-accordion-item>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon{transition:transform .2s ease-in-out}}.wp-block-accordion-heading__toggle{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;overflow:hidden;padding:var(--wp--preset--spacing--20,1em) 0;text-align:inherit;text-decoration:inherit;text-transform:inherit;width:100%;word-spacing:inherit}.wp-block-accordion-heading__toggle:not(:focus-visible){outline:none}.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title{text-decoration:underline}.wp-block-accordion-heading__toggle-title{flex:1}.wp-block-accordion-heading__toggle-icon{align-items:center;display:flex;height:1.2em;justify-content:center;width:1.2em}.wp-block-accordion-panel[hidden]{margin-block-start:0}.wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}.wp-block-avatar{line-height:0}.wp-block-avatar,.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}.wp-block-breadcrumbs{box-sizing:border-box}.wp-block-breadcrumbs ol{flex-wrap:wrap;list-style:none}.wp-block-breadcrumbs li,.wp-block-breadcrumbs ol{align-items:center;display:flex;margin:0;padding:0}.wp-block-breadcrumbs li:not(:last-child):after{content:var(--separator,"/")/"";margin:0 .5em;opacity:.7}.wp-block-breadcrumbs span{color:inherit}.wp-block-button__link{align-content:center;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button[class*=wp-block-button__width]{width:calc(var(--wp--block-button--width)*1% - var(--wp--style--block-gap, .5em)*(1 - var(--wp--block-button--width)/100))}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button[class*=wp-block-button__width]{width:calc(var(--wp--block-button--width)*1%)}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){border:2px solid;padding:.667em 1.333em}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){background-color:transparent;background-image:none}.wp-block-buttons{box-sizing:border-box}.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons .wp-block-button__link{width:100%}.wp-block-button.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar td,.wp-block-calendar th{border:1px solid;padding:.25em}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{border-collapse:collapse;width:100%}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}.wp-block-calendar :where(table:not(.has-text-color)){color:#40464d}.wp-block-calendar :where(table:not(.has-text-color)) td,.wp-block-calendar :where(table:not(.has-text-color)) th{border-color:#ddd}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}.wp-block-categories{box-sizing:border-box}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-categories.wp-block-categories-dropdown.aligncenter{text-align:center}.wp-block-categories .wp-block-categories__label:not(.screen-reader-text){display:block;width:100%}.wp-block-code{box-sizing:border-box}.wp-block-code code{direction:ltr;display:block;font-family:inherit;overflow-wrap:break-word;text-align:initial;white-space:break-spaces}.wp-block-columns{box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.wp-block-columns{align-items:normal!important}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-post-comments{box-sizing:border-box}.wp-block-post-comments .alignleft{float:right}.wp-block-post-comments .alignright{float:left}.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;margin-top:.5em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.wp-block-comments{box-sizing:border-box}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{font-size:inherit}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{display:inline-block;margin-left:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{display:inline-block;margin-right:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-comments-pagination.aligncenter{justify-content:center}.wp-block-comment-template{box-sizing:border-box;list-style:none;margin-bottom:0;max-width:100%;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{list-style:none;margin-bottom:0;max-width:100%;padding-right:2rem}.wp-block-comment-template.alignleft{float:right}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:left}.wp-block-comment-date{box-sizing:border-box}.comment-awaiting-moderation{display:block;font-size:.875em;line-height:1.5}.wp-block-comment-author-name,.wp-block-comment-content,.wp-block-comment-edit-link,.wp-block-comment-reply-link{box-sizing:border-box}.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;direction:ltr;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:transparent}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;direction:rtl;position:relative;width:100%}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;-o-object-fit:cover;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background,.wp-block-cover-image .wp-block-cover__embed-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;outline:none;padding:0;pointer-events:none;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper,.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper{bottom:0;height:100%;left:0;margin:0;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,.wp-block-cover .wp-block-cover__embed-background iframe,.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,.wp-block-cover-image .wp-block-cover__embed-background iframe{height:100vh;min-height:100%;min-width:100%;pointer-events:none;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:100vw}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover-image-text,.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-left:0;text-align:left}.wp-block-cover .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000}:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){color:inherit}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__video-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__embed-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__image-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__background,body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__gradient-background,body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)).has-background-dim:not(.has-background-gradient):before{z-index:1}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__inner-container{z-index:1}.has-modal-open body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__inner-container{z-index:auto}.wp-block-details{box-sizing:border-box}.wp-block-details summary{cursor:pointer}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-group.is-layout-flex .wp-block-embed{flex:1 1 0%;min-width:0}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{box-sizing:border-box}.wp-block-file:not(.wp-element-button){font-size:.8em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file *+.wp-block-file__button{margin-right:.75em}:where(.wp-block-file){margin-bottom:1.5em}.wp-block-file__embed{margin-bottom:1em}:where(.wp-block-file__button){border-radius:2em;display:inline-block;padding:.5em 1em}:where(.wp-block-file__button):where(a):active,:where(.wp-block-file__button):where(a):focus,:where(.wp-block-file__button):where(a):hover,:where(.wp-block-file__button):where(a):visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-form-input__label{display:flex;flex-direction:column;gap:.25em;margin-bottom:.5em;width:100%}.wp-block-form-input__label.is-label-inline{align-items:center;flex-direction:row;gap:.5em}.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content{margin-bottom:.5em}.wp-block-form-input__label:has(input[type=checkbox]){flex-direction:row;width:-moz-fit-content;width:fit-content}.wp-block-form-input__label:has(input[type=checkbox]) .wp-block-form-input__label-content{margin:0}.wp-block-form-input__label:has(.wp-block-form-input__label-content+input[type=checkbox]){flex-direction:row-reverse}.wp-block-form-input__label-content{width:-moz-fit-content;width:fit-content}:where(.wp-block-form-input__input){font-size:1em;margin-bottom:.5em;padding:0 .5em}:where(.wp-block-form-input__input)[type=date],:where(.wp-block-form-input__input)[type=datetime-local],:where(.wp-block-form-input__input)[type=datetime],:where(.wp-block-form-input__input)[type=email],:where(.wp-block-form-input__input)[type=month],:where(.wp-block-form-input__input)[type=number],:where(.wp-block-form-input__input)[type=password],:where(.wp-block-form-input__input)[type=search],:where(.wp-block-form-input__input)[type=tel],:where(.wp-block-form-input__input)[type=text],:where(.wp-block-form-input__input)[type=time],:where(.wp-block-form-input__input)[type=url],:where(.wp-block-form-input__input)[type=week]{border-style:solid;border-width:1px;line-height:2;min-height:2em}textarea.wp-block-form-input__input{min-height:10em}.blocks-gallery-grid:not(.has-nested-images),.wp-block-gallery:not(.has-nested-images){display:flex;flex-wrap:wrap;list-style-type:none;margin:0;padding:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item{display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0 0 1em 1em;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure{align-items:flex-end;display:flex;height:100%;justify-content:flex-start;margin:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img{display:block;height:auto;max-width:100%;width:auto}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption{background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);bottom:0;box-sizing:border-box;color:#fff;font-size:.8em;margin:0;max-height:100%;overflow:auto;padding:3em .77em .7em;position:absolute;text-align:center;width:100%;z-index:2}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid:not(.has-nested-images) figcaption,.wp-block-gallery:not(.has-nested-images) figcaption{flex-grow:1}.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img{flex:1;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item{margin-left:0;width:100%}@media (min-width:600px){.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item{margin-left:1em;width:calc(33.33333% - .66667em)}.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item{margin-left:1em;width:calc(25% - .75em)}.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item{margin-left:1em;width:calc(20% - .8em)}.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item{margin-left:1em;width:calc(16.66667% - .83333em)}.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item{margin-left:1em;width:calc(14.28571% - .85714em)}.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item{margin-left:1em;width:calc(12.5% - .875em)}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child{margin-left:0}.blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright,.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright{max-width:420px;width:100%}.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-gallery:not(.is-cropped) .blocks-gallery-item{align-self:flex-start}figure.wp-block-gallery.has-nested-images{align-items:normal}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){margin:0;width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)/2)}.wp-block-gallery.has-nested-images figure.wp-block-image{box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;max-width:100%;position:relative}.wp-block-gallery.has-nested-images figure.wp-block-image>a,.wp-block-gallery.has-nested-images figure.wp-block-image>div{flex-direction:column;flex-grow:1;margin:0}.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{bottom:0;left:0;max-height:100%;position:absolute;right:0}.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{backdrop-filter:blur(3px);content:"";height:100%;-webkit-mask-image:linear-gradient(0deg,#000 20%,transparent);mask-image:linear-gradient(0deg,#000 20%,transparent);max-height:3em;pointer-events:none}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{box-sizing:border-box;color:#fff;font-size:13px;margin:0;overflow:auto;padding:1em;text-align:center;text-shadow:0 0 1.5px #000}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar{height:12px;width:12px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track{background-color:transparent}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb{background-color:hsla(0,0%,100%,.8)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover{scrollbar-color:hsla(0,0%,100%,.8) transparent}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{will-change:transform}@media (hover:none){.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:hsla(0,0%,100%,.8) transparent}}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{background:linear-gradient(0deg,rgba(0,0,0,.4),transparent)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{display:inline}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{color:inherit}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div{flex:1 1 auto}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption{background:none;color:inherit;flex:initial;margin:0;padding:10px 10px 9px;position:relative;text-shadow:none}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border:before,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded:before{content:none}.wp-block-gallery.has-nested-images figcaption{flex-basis:100%;flex-grow:1;text-align:center}.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){margin-bottom:auto;margin-top:0}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){align-self:inherit}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone){display:flex}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{flex:1 0 0%;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}@media (min-width:600px){.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){width:calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - var(--wp--style--unstable-gallery-gap, 16px)*.75)}.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - var(--wp--style--unstable-gallery-gap, 16px)*.8)}.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.66667% - var(--wp--style--unstable-gallery-gap, 16px)*.83333)}.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.28571% - var(--wp--style--unstable-gallery-gap, 16px)*.85714)}.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px)*.875)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)*.5)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:last-child{width:100%}}.wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{max-width:420px;width:100%}.wp-block-gallery.has-nested-images.aligncenter{justify-content:center}.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative}h1:where(.wp-block-heading).has-background,h2:where(.wp-block-heading).has-background,h3:where(.wp-block-heading).has-background,h4:where(.wp-block-heading).has-background,h5:where(.wp-block-heading).has-background,h6:where(.wp-block-heading).has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg}.wp-block-icon{line-height:0}.wp-block-icon.aligncenter{display:flex;justify-content:center}.wp-block-icon svg{fill:currentColor;box-sizing:border-box}.wp-block-icon svg.is-flip-horizontal{transform:scaleX(-1)}.wp-block-icon svg.is-flip-vertical{transform:scaleY(-1)}.wp-block-icon svg.is-flip-horizontal.is-flip-vertical{transform:scaleX(-1) scaleY(-1)}:where(.wp-block-icon) svg{height:100%;width:100%}.wp-block-image>a,.wp-block-image>figure>a{display:inline-block}.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}@media not (prefers-reduced-motion){.wp-block-image img.hide{visibility:hidden}.wp-block-image img.show{animation:show-content-image .4s}}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull>a,.wp-block-image.alignwide>a{width:100%}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-image.is-style-circle-mask img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){border-radius:9999px}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;backdrop-filter:blur(16px) saturate(180%);background-color:rgba(90,90,90,.25);border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;left:16px;opacity:0;padding:0;position:absolute;text-align:center;top:16px;width:20px;z-index:100}@media not (prefers-reduced-motion){.wp-lightbox-container button{transition:opacity .2s ease}}.wp-lightbox-container button:focus-visible{outline:3px auto rgba(90,90,90,.25);outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:rgba(90,90,90,.25);border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;overflow:hidden;position:fixed;right:0;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .wp-lightbox-close-button{align-items:center;cursor:pointer;display:flex;font-family:inherit;gap:8px;justify-content:center;left:calc(env(safe-area-inset-left) + 16px);line-height:1;min-height:40px;min-width:40px;padding:0 4px;position:absolute;top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .wp-lightbox-close-button:focus,.wp-lightbox-overlay .wp-lightbox-close-button:hover,.wp-lightbox-overlay .wp-lightbox-close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .wp-lightbox-close-button:has(.wp-lightbox-close-text:not([hidden])) .wp-lightbox-close-icon svg{height:1em;width:1em}.wp-lightbox-overlay .wp-lightbox-close-icon svg{display:block}.wp-lightbox-overlay .wp-lightbox-navigation-button-next,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{align-items:center;bottom:16px;cursor:pointer;display:flex;font-family:inherit;gap:4px;justify-content:center;line-height:1;min-height:40px;min-width:40px;padding:0 8px;position:absolute;z-index:2000002}.wp-lightbox-overlay .wp-lightbox-navigation-button-next[hidden],.wp-lightbox-overlay .wp-lightbox-navigation-button-prev[hidden]{display:none}@media (min-width:960px){.wp-lightbox-overlay .wp-lightbox-navigation-button-next,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{bottom:50%;transform:translateY(-50%)}}.wp-lightbox-overlay .wp-lightbox-navigation-button-next:focus,.wp-lightbox-overlay .wp-lightbox-navigation-button-next:hover,.wp-lightbox-overlay .wp-lightbox-navigation-button-next:not(:hover):not(:active):not(.has-background),.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:focus,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:hover,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:not(:hover):not(:active):not(.has-background){background:none;border:none;padding:0 8px}.wp-lightbox-overlay .wp-lightbox-navigation-button-next:has(.wp-lightbox-navigation-text:not([hidden])) .wp-lightbox-navigation-icon svg,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:has(.wp-lightbox-navigation-text:not([hidden])) .wp-lightbox-navigation-icon svg{display:block;height:1.5em;width:1.5em}.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{right:calc(env(safe-area-inset-right) + 16px)}.wp-lightbox-overlay .wp-lightbox-navigation-button-next{left:calc(env(safe-area-inset-left) + 16px)}.wp-lightbox-overlay .wp-lightbox-navigation-icon svg{vertical-align:middle}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);overflow:hidden;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);transform-origin:top right;width:var(--wp--lightbox-container-width);z-index:2000001}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:100% 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{visibility:visible}@media not (prefers-reduced-motion){.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes show-content-image{0%{visibility:hidden}99%{visibility:hidden}to{visibility:visible}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}}:where(.wp-block-latest-comments){padding-right:0}ol.wp-block-latest-comments{box-sizing:border-box;margin-right:0}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{list-style:none;min-height:2.25em}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{font-size:inherit}.wp-block-latest-posts{box-sizing:border-box}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both;overflow-wrap:break-word}.wp-block-latest-posts.is-grid:not(.is-layout-grid){display:flex;flex-wrap:wrap}.wp-block-latest-posts.is-grid:not(.is-layout-grid) li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2:not(.is-layout-grid) li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2:not(.is-layout-grid) li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3:not(.is-layout-grid) li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3:not(.is-layout-grid) li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4:not(.is-layout-grid) li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4:not(.is-layout-grid) li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5:not(.is-layout-grid) li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5:not(.is-layout-grid) li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6:not(.is-layout-grid) li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6:not(.is-layout-grid) li:nth-child(6n){margin-left:0}}@media (max-width:600px){.wp-block-latest-posts-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid){grid-template-columns:1fr}}:root :where(.wp-block-latest-posts.is-grid){padding:0}:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){padding-right:0}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt,.wp-block-latest-posts__post-full-content{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}ol,ul{box-sizing:border-box}:root :where(.wp-block-list.has-background){padding:1.25em 2.375em}.wp-block-loginout{box-sizing:border-box}.wp-block-math{overflow-x:auto;overflow-y:hidden}.wp-block-media-text{box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{align-self:start}.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media,.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media{align-self:center}.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{align-self:end}.wp-block-media-text>.wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:rtl;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media a{display:block}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media{height:100%;min-height:250px;position:relative}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media img{height:100%;-o-object-fit:cover;object-fit:cover;position:absolute;width:100%}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}}.wp-block-navigation{position:relative}.wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-navigation .wp-block-navigation-item{align-items:center;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block;z-index:1}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-right:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{stroke:currentColor;display:inline-block;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation{--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}:where(.wp-block-navigation) ul li{padding:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;opacity:0;position:absolute;z-index:2}@media not (prefers-reduced-motion){.wp-block-navigation .has-child .wp-block-navigation__submenu-container{transition:opacity .1s linear}}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{height:0;overflow:hidden;visibility:hidden;width:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1;padding:.5em 1em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:0;margin-right:auto}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{right:-1px;top:100%}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:transparent;content:"";display:block;height:100%;left:100%;position:absolute;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-left:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(90deg)}}@media (hover:hover){.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation .has-child.open-always{align-items:var(--navigation-layout-align,initial);flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);gap:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always,.wp-block-navigation .has-child.open-always .wp-block-navigation-item{justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container,.wp-block-navigation .has-child.open-always.wp-block-navigation-submenu{gap:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always .wp-block-navigation-item,.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container,.wp-block-navigation .has-child.open-always.wp-block-navigation-submenu{padding-bottom:0;padding-top:0}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container{padding-left:var(--wp--style--block-gap,2em);padding-right:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:0}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content,.wp-block-navigation .has-child.open-always>.wp-block-navigation-item__content{flex-grow:0}.wp-block-navigation .has-child.open-always>.wp-block-navigation__submenu-container{background-color:transparent;border:none;color:inherit;flex-basis:100%;height:auto;opacity:1;overflow:visible;position:static;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{right:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:transparent;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-align:right;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-submenu__toggle[aria-expanded=true]+.wp-block-navigation__submenu-icon>svg,.wp-block-navigation-submenu__toggle[aria-expanded=true]>svg{transform:rotate(-180deg)}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:.85em;padding-right:0}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-right:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:0;right:auto}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;right:auto}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid rgba(0,0,0,.15)}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-right:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{background-color:inherit;display:flex;flex-direction:column}@media not (prefers-reduced-motion){.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards}}.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-left),20rem) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem)}.wp-block-navigation__responsive-container.is-menu-open{overflow:auto;z-index:100000}.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content{padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-page-list{background:transparent!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}.wp-block-navigation__responsive-container.disable-default-overlay .wp-block-navigation__overlay-container{display:none;width:100%}.wp-block-navigation__responsive-container.disable-default-overlay .wp-block-navigation__responsive-close{max-width:none}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content>:not(.wp-block-navigation__overlay-container){display:none}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__overlay-container{display:block}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__overlay-container .wp-block-navigation__submenu-container{left:auto;right:0}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{right:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:transparent;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{left:0;position:absolute;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.disable-default-overlay .wp-block-navigation__responsive-container-close{left:clamp(1rem,var(--wp--style--root--padding-left),20rem);top:clamp(1rem,var(--wp--style--root--padding-left),20rem)}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden}.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{outline:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-right:8px;text-transform:uppercase}.wp-block-navigation-overlay-close{align-items:center;background:transparent;border:none;cursor:pointer;display:inline-flex;gap:.5em;justify-content:center;padding:0;text-decoration:none}.wp-block-navigation-overlay-close:focus{outline-offset:2px}.wp-block-navigation-overlay-close svg{fill:currentColor;display:block;flex-shrink:0;height:24px;width:24px}.wp-block-navigation-overlay-close .wp-block-navigation-overlay-close__text{align-items:center;display:inline-flex}.wp-block-navigation .wp-block-page-list{align-items:var(--navigation-layout-align,initial);background-color:inherit;display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.wp-block-page-list{box-sizing:border-box}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em 0 0 .1em;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-right:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}.waveform-player{--wfp-accent:#71717a;--wfp-button-color:hsla(0,0%,100%,.9);--wfp-text-color:#fff;--wfp-text-secondary-color:hsla(0,0%,100%,.6);--wfp-btn-artwork-color:hsla(0,0%,100%,.9);--wfp-btn-artwork-scrim:rgba(0,0,0,.5);color:inherit;font-family:inherit;line-height:var(--waveform-line-height,1.4)}.waveform-player.waveform-theme-light{--wfp-button-color:rgba(0,0,0,.8);--wfp-text-color:#333;--wfp-text-secondary-color:rgba(0,0,0,.6)}.waveform-player *{box-sizing:border-box}.waveform-body{display:flex;flex-direction:column;gap:var(--waveform-body-gap,8px)}.waveform-track{gap:var(--waveform-track-gap,12px);position:relative}.waveform-btn,.waveform-track{align-items:center;display:flex}.waveform-btn{background:transparent;border:2px solid;border-radius:var(--wfp-btn-radius,50%);color:var(--wfp-button-color,inherit);cursor:pointer;flex-shrink:0;height:var(--wfp-btn-size,36px);justify-content:center;min-width:var(--wfp-btn-size,36px);opacity:.9;padding:0;transition:all .2s ease;width:var(--wfp-btn-size,36px)}.waveform-btn:hover:not(:disabled){opacity:1;transform:scale(1.05)}.waveform-btn-minimal{border:none;border-radius:0;height:calc(var(--wfp-btn-size, 36px)*1.1);min-width:calc(var(--wfp-btn-size, 36px)*1.1);opacity:.7;width:calc(var(--wfp-btn-size, 36px)*1.1)}.waveform-btn-minimal:hover:not(:disabled){opacity:1;transform:none}.waveform-btn.waveform-btn-minimal svg{height:calc(var(--wfp-btn-size, 36px)*.94);width:calc(var(--wfp-btn-size, 36px)*.94)}.waveform-btn:disabled{cursor:not-allowed;opacity:.3}.waveform-btn>*{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.waveform-btn svg{fill:currentColor;display:block;height:calc(var(--wfp-btn-size, 36px)*.45);width:calc(var(--wfp-btn-size, 36px)*.45)}.waveform-btn-has-artwork{--wfp-btn-size:64px;--wfp-btn-radius:8px;border:none;color:var(--wfp-btn-artwork-color);overflow:hidden;position:relative}.waveform-btn>.waveform-btn-artwork{display:block;height:100%;inset:0;-o-object-fit:cover;object-fit:cover;pointer-events:none;position:absolute;width:100%;z-index:0}.waveform-btn-has-artwork:after{background:var(--wfp-btn-artwork-scrim);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.waveform-btn-has-artwork>:not(.waveform-btn-artwork){position:relative;z-index:2}.waveform-icon-play svg{margin-right:1px}.waveform-container{cursor:pointer;flex:1;min-height:60px;min-width:0;position:relative;width:100%}.waveform-container:focus-visible{outline:2px solid currentColor}.waveform-container canvas{display:block;height:100%;max-width:100%;position:relative;transition:opacity .3s ease;width:100%;z-index:1}.waveform-info{align-items:center;display:flex;font-size:13px;gap:8px;min-height:20px}.waveform-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}.waveform-title{color:var(--wfp-text-color);font-weight:500}.waveform-artist,.waveform-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.waveform-artist{color:var(--wfp-text-secondary-color);font-size:11px}.waveform-bpm,.waveform-time{color:var(--wfp-text-secondary-color);flex-shrink:0;font-size:11px;white-space:nowrap}.waveform-bpm{align-items:center;display:inline-flex;gap:4px}.waveform-loading{background:rgba(0,0,0,.102)}.waveform-error,.waveform-loading{inset:0;position:absolute;z-index:10}.waveform-error{align-items:center;background:rgba(0,0,0,.2);display:flex;justify-content:center}.waveform-error-text{font-size:12px;opacity:.7;padding:0 20px;text-align:center}.waveform-markers{inset:0;pointer-events:none;position:absolute;z-index:5}.waveform-marker{background:hsla(0,0%,100%,.502);border:none;cursor:pointer;height:100%;padding:0;pointer-events:all;position:absolute;top:0;transition:all .2s;width:2px}.waveform-marker:hover{width:4px;z-index:20}.waveform-marker.active{background:currentColor;width:4px;z-index:10}.waveform-marker-tooltip{background:rgba(0,0,0,.902);border-radius:4px;bottom:calc(100% + 4px);color:#fff;font-size:11px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;right:50%;transform:translate(50%);transition:opacity .2s;white-space:nowrap;z-index:1000}.waveform-marker.show-label .waveform-marker-tooltip,.waveform-marker:hover .waveform-marker-tooltip{opacity:1}.waveform-hover-time{background:rgba(0,0,0,.902);border-radius:4px;bottom:calc(100% + 4px);color:#fff;font-size:11px;font-variant-numeric:tabular-nums;padding:3px 7px;transform:translate(50%);transition:opacity .15s;white-space:nowrap;z-index:1000}.waveform-hover-time,.waveform-seek-handle{opacity:0;pointer-events:none;position:absolute}.waveform-seek-handle{background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.349);height:11px;right:0;top:50%;transform:translate(50%,-50%) scale(0);transition:opacity .12s ease,transform .12s ease;width:11px;z-index:6}.waveform-seek-handle.is-visible{opacity:1;transform:translate(50%,-50%) scale(1)}.waveform-seek-handle.is-active{transform:translate(50%,-50%) scale(1.25)}.waveform-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.waveform-marker:focus-visible{outline:2px solid currentColor;outline-offset:1px;width:4px}.waveform-speed{flex-shrink:0;position:relative}.speed-btn{background:transparent;border:1px solid hsla(0,0%,100%,.2);border-radius:4px;color:inherit;cursor:pointer;font-size:11px;min-width:40px;padding:4px 8px;transition:all .2s}.speed-btn:hover{background:hsla(0,0%,100%,.051);border-color:hsla(0,0%,100%,.302)}.speed-value{font-weight:600}.speed-menu{background:rgba(0,0,0,.949);border:1px solid hsla(0,0%,100%,.2);border-radius:6px;bottom:100%;left:0;margin-bottom:4px;min-width:60px;padding:4px;position:absolute;z-index:100}.speed-option{background:transparent;border:none;border-radius:4px;color:hsla(0,0%,100%,.702);cursor:pointer;display:block;font-size:12px;padding:6px 12px;text-align:right;transition:all .2s;width:100%}.speed-option:hover{background:hsla(0,0%,100%,.102);color:#fff}.speed-option.active{background:hsla(0,0%,100%,.161);color:#fff;font-weight:600}.waveform-player.waveform-focused{border-radius:4px;outline:2px solid var(--wfp-accent);outline-offset:2px}.waveform-player:focus{outline:none}.waveform-player:focus-visible{outline:1px solid var(--wfp-accent);outline-offset:1px}.waveform-layout-preview .waveform-meta{display:none!important}.waveform-layout-preview .waveform-info{justify-content:center}.waveform-layout-preview .waveform-text{align-items:center;flex:0 1 auto;text-align:center}.waveform-player.waveform-focused{outline:none}.waveform-track.waveform-align-top{align-items:flex-start}.waveform-track.waveform-align-top .waveform-btn{margin-top:5px}.waveform-track.waveform-align-center{align-items:center}.waveform-track.waveform-align-bottom{align-items:flex-end}.waveform-track.waveform-align-bottom .waveform-btn{margin-bottom:5px}@media (max-width:480px){.waveform-btn{height:var(--wfp-btn-size,32px);min-width:var(--wfp-btn-size,32px);width:var(--wfp-btn-size,32px)}.waveform-container{min-height:50px}.waveform-info{font-size:12px}.waveform-artist,.waveform-bpm,.waveform-time{font-size:10px}}@media (prefers-reduced-motion:reduce){.waveform-player *,.waveform-player :after,.waveform-player :before{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.wp-block-playlist{box-sizing:border-box}.wp-block-playlist .wp-block-playlist__waveform-player{margin:var(--wp--preset--spacing--20,.625em) 0;position:relative;width:100%}.wp-block-playlist .wp-block-playlist__waveform-player:focus-visible{outline:revert;outline-offset:revert}.wp-block-playlist .waveform-track{gap:0;height:100px}.wp-block-playlist .waveform-btn{background:currentColor;border:none;border-end-start-radius:.125rem;border-radius:0;border-start-start-radius:.125rem;height:100px;margin:0;min-width:100px;width:100px}.wp-block-playlist .waveform-btn:hover:not(:disabled){transform:none}.wp-block-playlist .waveform-btn svg{height:3rem;width:3rem}.wp-block-playlist .waveform-btn .waveform-icon-pause svg{height:2.625rem;width:2.625rem}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn{background-image:var(--wp--playlist--play-button-artwork);background-position:50%;background-size:cover;color:#fff}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn svg path{fill:#fff!important}.wp-block-playlist .waveform-track.waveform-align-bottom .waveform-btn{margin-bottom:0}.wp-block-playlist .waveform-btn:focus-visible,.wp-block-playlist .waveform-container:focus-visible{outline:revert;outline-offset:revert}.wp-block-playlist .waveform-artist{opacity:.7}.wp-block-playlist .waveform-artist,.wp-block-playlist .waveform-info,.wp-block-playlist .waveform-time,.wp-block-playlist .waveform-title{font-size:inherit}.wp-block-playlist .wp-block-playlist__tracklist{list-style:none;margin:0;padding-right:0}.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-artist-is-hidden .wp-block-playlist-track__artist,.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-is-hidden,.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-length-is-hidden .wp-block-playlist-track__length{display:none}.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-show-numbers{counter-reset:playlist-track}.wp-block-playlist-track:has([aria-current=true]){background-color:color-mix(in srgb,currentColor 10%,transparent)}.wp-block-playlist-track:hover{background-color:color-mix(in srgb,currentColor 15%,transparent)}.wp-block-playlist__tracklist-show-numbers .wp-block-playlist-track{counter-increment:playlist-track}.wp-block-playlist-track .wp-block-playlist-track__button{align-items:center;background-color:transparent;border:0;color:inherit;cursor:pointer;display:flex;font-family:inherit;font-size:inherit;outline-offset:2px;padding:var(--wp--preset--spacing--20,.5em);text-align:right;width:100%}.wp-block-playlist__tracklist-show-numbers .wp-block-playlist-track .wp-block-playlist-track__button:before{content:counter(playlist-track);font-size:.85em;margin-left:var(--wp--preset--spacing--20,.5em);opacity:.7;width:2ch}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__image{border:1px solid rgba(0,0,0,.08);box-sizing:border-box;flex:0 0 50px;height:50px;margin-left:var(--wp--preset--spacing--20,.5em);-o-object-fit:cover;object-fit:cover;width:50px}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__content{flex:1 1 0;min-width:0}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__title{display:block}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__artist{display:block;font-size:.85em;margin-top:.125em;opacity:.7}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__length{font-size:.85em;margin-right:auto;opacity:.7}.wp-block-post-author{box-sizing:border-box;display:flex;flex-wrap:wrap}.wp-block-post-author__byline{font-size:.5em;margin-bottom:0;margin-top:0;width:100%}.wp-block-post-author__avatar{margin-left:1em}.wp-block-post-author__bio{font-size:.7em;margin-bottom:.7em}.wp-block-post-author__content{flex-basis:0;flex-grow:1}.wp-block-post-author__name{margin:0}.wp-block-post-author-biography{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-post-comments-form input:not([type=submit])),:where(.wp-block-post-comments-form textarea){border:1px solid #949494;font-family:inherit;font-size:1em}:where(.wp-block-post-comments-form input:where(:not([type=submit]):not([type=checkbox]))),:where(.wp-block-post-comments-form textarea){padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form :where(input[type=submit]){box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-post-comments-count{box-sizing:border-box}.wp-block-post-content{display:flow-root}.wp-block-post-comments-link,.wp-block-post-date{box-sizing:border-box}:where(.wp-block-post-excerpt){box-sizing:border-box;margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-bottom:0;margin-top:0}.wp-block-post-excerpt__more-text{margin-bottom:0;margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__more-link{display:inline-block}.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block;height:100%}.wp-block-post-featured-image :where(img){box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:transparent}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}.wp-block-post-featured-image:where(.alignleft,.alignright){width:100%}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous{display:inline-block;margin-left:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next{display:inline-block;margin-right:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-post-navigation-link.has-text-align-left[style*="writing-mode: vertical-lr"],.wp-block-post-navigation-link.has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-terms{box-sizing:border-box}.wp-block-post-terms .wp-block-post-terms__separator{white-space:pre-wrap}.wp-block-post-time-to-read,.wp-block-post-title{box-sizing:border-box}.wp-block-post-title{word-break:break-word}.wp-block-post-title :where(a){display:inline-block;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-decoration:inherit}.wp-block-post-author-name{box-sizing:border-box}.wp-block-preformatted{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-preformatted.has-background){padding:1.25em 2.375em}.wp-block-pullquote{box-sizing:border-box;margin:0 0 1em;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:right}.wp-block-pullquote.has-text-align-right blockquote{text-align:left}.wp-block-pullquote.has-text-align-center blockquote{text-align:center}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote :where(cite){color:inherit;display:block}.wp-block-post-template{box-sizing:border-box;list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid){grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:left;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:right;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-previous:first-child{margin-inline-end:auto}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow{display:inline-block;margin-left:1ch}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-query-pagination .wp-block-query-pagination-next-arrow{display:inline-block;margin-right:1ch}.wp-block-query-pagination .wp-block-query-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-query-pagination.aligncenter{justify-content:center}.wp-block-query-title,.wp-block-query-total,.wp-block-quote{box-sizing:border-box}.wp-block-quote{overflow-wrap:break-word}.wp-block-quote.is-large:where(:not(.is-style-plain)),.wp-block-quote.is-style-large:where(:not(.is-style-plain)){margin-bottom:1em;padding:0 1em}.wp-block-quote.is-large:where(:not(.is-style-plain)) p,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-large:where(:not(.is-style-plain)) footer,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) footer{font-size:1.125em;text-align:left}.wp-block-quote>cite{display:block}.wp-block-read-more{display:block;width:-moz-fit-content;width:fit-content}.wp-block-read-more:where(:not([style*=text-decoration])){text-decoration:none}.wp-block-read-more:where(:not([style*=text-decoration])):active,.wp-block-read-more:where(:not([style*=text-decoration])):focus{text-decoration:none}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0}ul.wp-block-rss.is-grid li{margin:0 0 1em 1em;width:100%}@media (min-width:600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;font-size:.8125em}.wp-block-rss{box-sizing:border-box;list-style:none;padding:0}.wp-block-search__button{margin-right:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{fill:currentColor;height:1.25em;min-height:24px;min-width:24px;vertical-align:text-bottom;width:1.25em}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button{box-sizing:border-box;display:flex;flex-shrink:0;justify-content:center;margin-right:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){-webkit-appearance:initial;-moz-appearance:initial;appearance:none;border:1px solid #949494;flex-grow:1;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){background-color:#fff;border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:left}.wp-block-separator{border:none;border-top:2px solid}:root :where(.wp-block-separator.is-style-dots){height:auto;line-height:1;text-align:center}:root :where(.wp-block-separator.is-style-dots):before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-separator.is-style-dots{background:none!important;border:none!important}.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}:root :where(.wp-block-site-logo.is-style-rounded){border-radius:9999px}.wp-block-site-tagline,.wp-block-site-title{box-sizing:border-box}.wp-block-site-title :where(a){color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-decoration:inherit}.wp-block-social-links{background:none;box-sizing:border-box;margin-right:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block}@media not (prefers-reduced-motion){.wp-block-social-link{transition:transform .1s ease}}.wp-block-social-link{height:auto}.wp-block-social-link a{align-items:center;display:flex;line-height:0}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{fill:currentColor;color:currentColor}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link{background-color:#f0f0f0;color:#444}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon{background-color:#f90;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance{background-color:#0757fe;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{background-color:#0a7aff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-discord{background-color:#5865f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy{background-color:#f45800;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook{background-color:#0866ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr{background-color:#0461dd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare{background-color:#e65678;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github{background-color:#24292d;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google{background-color:#ea4434;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{background-color:#1d4fc4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram{background-color:#f00075;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup{background-color:#f6405f;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest{background-color:#e60122;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket{background-color:#ef4155;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{background-color:#ff4500;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype{background-color:#0478d7;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat{stroke:#000;background-color:#fefc00;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify{background-color:#1bd760;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{background-color:#2aabee;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr{background-color:#011835;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch{background-color:#6440a4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk{background-color:#4680c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{background-color:#25d366;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp{background-color:#d32422;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube{background-color:red;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{background:none}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{height:1.25em;width:1.25em}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon{color:#f90}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp{color:#1ea0c3}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance{color:#0757fe}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{color:#0a7aff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen{color:#1e1f26}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart{color:#02e49b}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-discord{color:#5865f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble{color:#e94c89}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox{color:#4280ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy{color:#f45800}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook{color:#0866ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr{color:#0461dd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare{color:#e65678}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github{color:#24292d}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads{color:#382110}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google{color:#ea4434}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{color:#1d4fc4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram{color:#f00075}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm{color:#e21b24}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin{color:#0d66c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon{color:#3288d4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup{color:#f6405f}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest{color:#e60122}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket{color:#ef4155}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{color:#ff4500}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype{color:#0478d7}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat{stroke:#000;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud{color:#ff5600}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify{color:#1bd760}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{color:#2aabee}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr{color:#011835}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch{color:#6440a4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter{color:#1da1f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo{color:#1eb7ea}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk{color:#4680c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{color:#25d366}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress{color:#3499cd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{color:#d32422}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}:root :where(.wp-block-social-links .wp-social-link a){padding:.25em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){padding:0}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){padding-left:.6666666667em;padding-right:.6666666667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000}.wp-block-spacer{clear:both}.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud a{display:inline-block;margin-left:5px}.wp-block-tag-cloud span{display:inline-block;margin-right:5px;text-decoration:none}:root :where(.wp-block-tag-cloud.is-style-outline){display:flex;flex-wrap:wrap;gap:1ch}:root :where(.wp-block-tag-cloud.is-style-outline a){border:1px solid;font-size:unset!important;margin-left:0;padding:1ch 2ch;text-decoration:none!important}:where(.wp-block-tab-list button){-moz-appearance:none;appearance:none;-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:block;flex-basis:inherit!important;flex-grow:inherit!important;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:var(--wp--preset--spacing--20,.5em) var(--wp--preset--spacing--30,1em);position:relative;text-align:inherit;text-decoration:none;text-transform:inherit;width:-moz-max-content;width:max-content}:where(.wp-block-tab-list button)[aria-selected=true]:before{border-bottom:2px solid;bottom:0;content:"";pointer-events:none;position:absolute;right:0;width:100%}.wp-block-tab-panel:empty,.wp-block-tab-panel[hidden]{display:none!important}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{background-color:transparent;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table.is-style-stripes{border-bottom:1px solid #f0f0f0}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}:root :where(.wp-block-table-of-contents){box-sizing:border-box}.wp-block-tabs,.wp-block-term-count{box-sizing:border-box}:where(.wp-block-term-description){box-sizing:border-box;margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-term-description p{margin-bottom:0;margin-top:0}.wp-block-term-name{box-sizing:border-box}.wp-block-term-template{box-sizing:border-box;list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.3333333333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}pre.wp-block-verse{box-sizing:border-box;min-width:1em;overflow:auto;white-space:pre-wrap;word-break:break-word}:where(pre.wp-block-verse){font-family:inherit}.wp-block-video{box-sizing:border-box}.wp-block-video video{height:auto;vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{-o-object-fit:cover;object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-bottom:1em;margin-top:.5em}.editor-styles-wrapper,.entry-content{counter-reset:footnotes}a[data-fn].fn{counter-increment:footnotes;display:inline-flex;font-size:smaller;text-decoration:none;text-indent:-9999999px;vertical-align:super}a[data-fn].fn:after{content:"[" counter(footnotes) "]";float:right;text-indent:0}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:root .has-text-align-center{text-align:center}:root .has-text-align-left{text-align:left}:root .has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal!important}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;line-height:normal;padding:15px 23px 14px;right:5px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style^=border-color],[style*=";border-color"],[style*="; border-color"]){border-style:solid}html :where([style^=border-top-color],[style*=";border-top-color"],[style*="; border-top-color"]){border-top-style:solid}html :where([style^=border-right-color],[style*=";border-right-color"],[style*="; border-right-color"]){border-right-style:solid}html :where([style^=border-bottom-color],[style*=";border-bottom-color"],[style*="; border-bottom-color"]){border-bottom-style:solid}html :where([style^=border-left-color],[style*=";border-left-color"],[style*="; border-left-color"]){border-left-style:solid}html :where([style^=border-width],[style*=";border-width"],[style*="; border-width"]){border-style:solid}html :where([style^=border-top-width],[style*=";border-top-width"],[style*="; border-top-width"]){border-top-style:solid}html :where([style^=border-right-width],[style*=";border-right-width"],[style*="; border-right-width"]){border-right-style:solid}html :where([style^=border-bottom-width],[style*=";border-bottom-width"],[style*="; border-bottom-width"]){border-bottom-style:solid}html :where([style^=border-left-width],[style*=";border-left-width"],[style*="; border-left-width"]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
\ No newline at end of file
+@charset "UTF-8";.wp-block-accordion{box-sizing:border-box}.wp-block-accordion-item.is-open>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon{transform:rotate(-45deg)}@media (prefers-reduced-motion:no-preference){.wp-block-accordion-item{transition:grid-template-rows .3s ease-out}.wp-block-accordion-item>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon{transition:transform .2s ease-in-out}}.wp-block-accordion-heading__toggle{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;overflow:hidden;padding:var(--wp--preset--spacing--20,1em) 0;text-align:inherit;text-decoration:inherit;text-transform:inherit;width:100%;word-spacing:inherit}.wp-block-accordion-heading__toggle:not(:focus-visible){outline:none}.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title{text-decoration:underline}.wp-block-accordion-heading__toggle-title{flex:1}.wp-block-accordion-heading__toggle-icon{align-items:center;display:flex;height:1.2em;justify-content:center;width:1.2em}.wp-block-accordion-panel[hidden]{margin-block-start:0}.wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}.wp-block-avatar{line-height:0}.wp-block-avatar,.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}.wp-block-breadcrumbs{box-sizing:border-box}.wp-block-breadcrumbs ol{flex-wrap:wrap;list-style:none}.wp-block-breadcrumbs li,.wp-block-breadcrumbs ol{align-items:center;display:flex;margin:0;padding:0}.wp-block-breadcrumbs li:not(:last-child):after{content:var(--separator,"/")/"";margin:0 .5em;opacity:.7}.wp-block-breadcrumbs span{color:inherit}.wp-block-button__link{align-content:center;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button[class*=wp-block-button__width]{width:calc(var(--wp--block-button--width)*1% - var(--wp--style--block-gap, .5em)*(1 - var(--wp--block-button--width)/100))}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button[class*=wp-block-button__width]{width:calc(var(--wp--block-button--width)*1%)}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){border:2px solid;padding:.667em 1.333em}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){background-color:transparent;background-image:none}.wp-block-buttons{box-sizing:border-box}.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons .wp-block-button__link{width:100%}.wp-block-button.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar td,.wp-block-calendar th{border:1px solid;padding:.25em}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{border-collapse:collapse;width:100%}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}.wp-block-calendar :where(table:not(.has-text-color)){color:#40464d}.wp-block-calendar :where(table:not(.has-text-color)) td,.wp-block-calendar :where(table:not(.has-text-color)) th{border-color:#ddd}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}.wp-block-categories{box-sizing:border-box}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-categories.wp-block-categories-dropdown.aligncenter{text-align:center}.wp-block-categories .wp-block-categories__label:not(.screen-reader-text){display:block;width:100%}.wp-block-code{box-sizing:border-box}.wp-block-code code{direction:ltr;display:block;font-family:inherit;overflow-wrap:break-word;text-align:initial;white-space:break-spaces}.wp-block-columns{box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.wp-block-columns{align-items:normal!important}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-post-comments{box-sizing:border-box}.wp-block-post-comments .alignleft{float:right}.wp-block-post-comments .alignright{float:left}.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-right:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;margin-top:.5em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.wp-block-comments{box-sizing:border-box}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{font-size:inherit}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{display:inline-block;margin-left:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{display:inline-block;margin-right:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-comments-pagination.aligncenter{justify-content:center}.wp-block-comment-template{box-sizing:border-box;list-style:none;margin-bottom:0;max-width:100%;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{list-style:none;margin-bottom:0;max-width:100%;padding-right:2rem}.wp-block-comment-template.alignleft{float:right}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:left}.wp-block-comment-date{box-sizing:border-box}.comment-awaiting-moderation{display:block;font-size:.875em;line-height:1.5}.wp-block-comment-author-name,.wp-block-comment-content,.wp-block-comment-edit-link,.wp-block-comment-reply-link{box-sizing:border-box}.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;direction:ltr;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:transparent}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;direction:rtl;position:relative;width:100%}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;-o-object-fit:cover;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background,.wp-block-cover-image .wp-block-cover__embed-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;outline:none;padding:0;pointer-events:none;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper,.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper{bottom:0;height:100%;left:0;margin:0;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,.wp-block-cover .wp-block-cover__embed-background iframe,.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,.wp-block-cover-image .wp-block-cover__embed-background iframe{height:100vh;min-height:100%;min-width:100%;pointer-events:none;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:100vw}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover-image-text,.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-left:0;text-align:left}.wp-block-cover .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000}:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){color:inherit}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__video-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__embed-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__image-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__background,body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__gradient-background,body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)).has-background-dim:not(.has-background-gradient):before{z-index:1}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__inner-container{z-index:1}.has-modal-open body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__inner-container{z-index:auto}.wp-block-details{box-sizing:border-box}.wp-block-details summary{cursor:pointer}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-group.is-layout-flex .wp-block-embed{flex:1 1 0%;min-width:0}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{box-sizing:border-box}.wp-block-file:not(.wp-element-button){font-size:.8em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file *+.wp-block-file__button{margin-right:.75em}:where(.wp-block-file){margin-bottom:1.5em}.wp-block-file__embed{margin-bottom:1em}:where(.wp-block-file__button){border-radius:2em;display:inline-block;padding:.5em 1em}:where(.wp-block-file__button):where(a):active,:where(.wp-block-file__button):where(a):focus,:where(.wp-block-file__button):where(a):hover,:where(.wp-block-file__button):where(a):visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-form-input__label{display:flex;flex-direction:column;gap:.25em;margin-bottom:.5em;width:100%}.wp-block-form-input__label.is-label-inline{align-items:center;flex-direction:row;gap:.5em}.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content{margin-bottom:.5em}.wp-block-form-input__label:has(input[type=checkbox]){flex-direction:row;width:-moz-fit-content;width:fit-content}.wp-block-form-input__label:has(input[type=checkbox]) .wp-block-form-input__label-content{margin:0}.wp-block-form-input__label:has(.wp-block-form-input__label-content+input[type=checkbox]){flex-direction:row-reverse}.wp-block-form-input__label-content{width:-moz-fit-content;width:fit-content}:where(.wp-block-form-input__input){font-size:1em;margin-bottom:.5em;padding:0 .5em}:where(.wp-block-form-input__input)[type=date],:where(.wp-block-form-input__input)[type=datetime-local],:where(.wp-block-form-input__input)[type=datetime],:where(.wp-block-form-input__input)[type=email],:where(.wp-block-form-input__input)[type=month],:where(.wp-block-form-input__input)[type=number],:where(.wp-block-form-input__input)[type=password],:where(.wp-block-form-input__input)[type=search],:where(.wp-block-form-input__input)[type=tel],:where(.wp-block-form-input__input)[type=text],:where(.wp-block-form-input__input)[type=time],:where(.wp-block-form-input__input)[type=url],:where(.wp-block-form-input__input)[type=week]{border-style:solid;border-width:1px;line-height:2;min-height:2em}textarea.wp-block-form-input__input{min-height:10em}.blocks-gallery-grid:not(.has-nested-images),.wp-block-gallery:not(.has-nested-images){display:flex;flex-wrap:wrap;list-style-type:none;margin:0;padding:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item{display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0 0 1em 1em;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure{align-items:flex-end;display:flex;height:100%;justify-content:flex-start;margin:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img{display:block;height:auto;max-width:100%;width:auto}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption{background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);bottom:0;box-sizing:border-box;color:#fff;font-size:.8em;margin:0;max-height:100%;overflow:auto;padding:3em .77em .7em;position:absolute;text-align:center;width:100%;z-index:2}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid:not(.has-nested-images) figcaption,.wp-block-gallery:not(.has-nested-images) figcaption{flex-grow:1}.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img{flex:1;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item{margin-left:0;width:100%}@media (min-width:600px){.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item{margin-left:1em;width:calc(33.33333% - .66667em)}.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item{margin-left:1em;width:calc(25% - .75em)}.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item{margin-left:1em;width:calc(20% - .8em)}.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item{margin-left:1em;width:calc(16.66667% - .83333em)}.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item{margin-left:1em;width:calc(14.28571% - .85714em)}.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item{margin-left:1em;width:calc(12.5% - .875em)}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child{margin-left:0}.blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright,.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright{max-width:420px;width:100%}.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-gallery:not(.is-cropped) .blocks-gallery-item{align-self:flex-start}figure.wp-block-gallery.has-nested-images{align-items:normal}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){margin:0;width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)/2)}.wp-block-gallery.has-nested-images figure.wp-block-image{box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;max-width:100%;position:relative}.wp-block-gallery.has-nested-images figure.wp-block-image>a,.wp-block-gallery.has-nested-images figure.wp-block-image>div{flex-direction:column;flex-grow:1;margin:0}.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{bottom:0;left:0;max-height:100%;position:absolute;right:0}.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{backdrop-filter:blur(3px);content:"";height:100%;-webkit-mask-image:linear-gradient(0deg,#000 20%,transparent);mask-image:linear-gradient(0deg,#000 20%,transparent);max-height:3em;pointer-events:none}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{box-sizing:border-box;color:#fff;font-size:13px;margin:0;overflow:auto;padding:1em;text-align:center;text-shadow:0 0 1.5px #000}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar{height:12px;width:12px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track{background-color:transparent}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb{background-color:hsla(0,0%,100%,.8)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover{scrollbar-color:hsla(0,0%,100%,.8) transparent}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{will-change:transform}@media (hover:none){.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:hsla(0,0%,100%,.8) transparent}}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{background:linear-gradient(0deg,rgba(0,0,0,.4),transparent)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{display:inline}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{color:inherit}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div{flex:1 1 auto}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption{background:none;color:inherit;flex:initial;margin:0;padding:10px 10px 9px;position:relative;text-shadow:none}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border:before,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded:before{content:none}.wp-block-gallery.has-nested-images figcaption{flex-basis:100%;flex-grow:1;text-align:center}.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){margin-bottom:auto;margin-top:0}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){align-self:inherit}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone){display:flex}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{flex:1 0 0%;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}@media (min-width:600px){.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){width:calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - var(--wp--style--unstable-gallery-gap, 16px)*.75)}.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - var(--wp--style--unstable-gallery-gap, 16px)*.8)}.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.66667% - var(--wp--style--unstable-gallery-gap, 16px)*.83333)}.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.28571% - var(--wp--style--unstable-gallery-gap, 16px)*.85714)}.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px)*.875)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)*.5)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:last-child{width:100%}}.wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{max-width:420px;width:100%}.wp-block-gallery.has-nested-images.aligncenter{justify-content:center}.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative}h1:where(.wp-block-heading).has-background,h2:where(.wp-block-heading).has-background,h3:where(.wp-block-heading).has-background,h4:where(.wp-block-heading).has-background,h5:where(.wp-block-heading).has-background,h6:where(.wp-block-heading).has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg}.wp-block-icon{line-height:0}.wp-block-icon.aligncenter{display:flex;justify-content:center}.wp-block-icon svg{fill:currentColor;box-sizing:border-box}.wp-block-icon svg.is-flip-horizontal{transform:scaleX(-1)}.wp-block-icon svg.is-flip-vertical{transform:scaleY(-1)}.wp-block-icon svg.is-flip-horizontal.is-flip-vertical{transform:scaleX(-1) scaleY(-1)}:where(.wp-block-icon) svg{height:100%;width:100%}.wp-block-image>a,.wp-block-image>figure>a{display:inline-block}.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}@media not (prefers-reduced-motion){.wp-block-image img.hide{visibility:hidden}.wp-block-image img.show{animation:show-content-image .4s}}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull>a,.wp-block-image.alignwide>a{width:100%}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-image.is-style-circle-mask img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){border-radius:9999px}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;backdrop-filter:blur(16px) saturate(180%);background-color:rgba(90,90,90,.25);border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;left:16px;opacity:0;padding:0;position:absolute;text-align:center;top:16px;width:20px;z-index:100}@media not (prefers-reduced-motion){.wp-lightbox-container button{transition:opacity .2s ease}}.wp-lightbox-container button:focus-visible{outline:3px auto rgba(90,90,90,.25);outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:rgba(90,90,90,.25);border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;overflow:hidden;position:fixed;right:0;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .wp-lightbox-close-button{align-items:center;cursor:pointer;display:flex;font-family:inherit;gap:8px;justify-content:center;left:calc(env(safe-area-inset-left) + 16px);line-height:1;min-height:40px;min-width:40px;padding:0 4px;position:absolute;top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .wp-lightbox-close-button:focus,.wp-lightbox-overlay .wp-lightbox-close-button:hover,.wp-lightbox-overlay .wp-lightbox-close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .wp-lightbox-close-button:has(.wp-lightbox-close-text:not([hidden])) .wp-lightbox-close-icon svg{height:1em;width:1em}.wp-lightbox-overlay .wp-lightbox-close-icon svg{display:block}.wp-lightbox-overlay .wp-lightbox-navigation-button-next,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{align-items:center;bottom:16px;cursor:pointer;display:flex;font-family:inherit;gap:4px;justify-content:center;line-height:1;min-height:40px;min-width:40px;padding:0 8px;position:absolute;z-index:2000002}.wp-lightbox-overlay .wp-lightbox-navigation-button-next[hidden],.wp-lightbox-overlay .wp-lightbox-navigation-button-prev[hidden]{display:none}@media (min-width:960px){.wp-lightbox-overlay .wp-lightbox-navigation-button-next,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{bottom:50%;transform:translateY(-50%)}}.wp-lightbox-overlay .wp-lightbox-navigation-button-next:focus,.wp-lightbox-overlay .wp-lightbox-navigation-button-next:hover,.wp-lightbox-overlay .wp-lightbox-navigation-button-next:not(:hover):not(:active):not(.has-background),.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:focus,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:hover,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:not(:hover):not(:active):not(.has-background){background:none;border:none;padding:0 8px}.wp-lightbox-overlay .wp-lightbox-navigation-button-next:has(.wp-lightbox-navigation-text:not([hidden])) .wp-lightbox-navigation-icon svg,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:has(.wp-lightbox-navigation-text:not([hidden])) .wp-lightbox-navigation-icon svg{display:block;height:1.5em;width:1.5em}.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{right:calc(env(safe-area-inset-right) + 16px)}.wp-lightbox-overlay .wp-lightbox-navigation-button-next{left:calc(env(safe-area-inset-left) + 16px)}.wp-lightbox-overlay .wp-lightbox-navigation-icon svg{vertical-align:middle}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);overflow:hidden;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);transform-origin:top right;width:var(--wp--lightbox-container-width);z-index:2000001}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:100% 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{visibility:visible}@media not (prefers-reduced-motion){.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes show-content-image{0%{visibility:hidden}99%{visibility:hidden}to{visibility:visible}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc(((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position))*-1),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}}:where(.wp-block-latest-comments){padding-right:0}ol.wp-block-latest-comments{box-sizing:border-box;margin-right:0}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{list-style:none;min-height:2.25em}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{font-size:inherit}.wp-block-latest-posts{box-sizing:border-box}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both;overflow-wrap:break-word}.wp-block-latest-posts.is-grid:not(.is-layout-grid){display:flex;flex-wrap:wrap}.wp-block-latest-posts.is-grid:not(.is-layout-grid) li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2:not(.is-layout-grid) li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2:not(.is-layout-grid) li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3:not(.is-layout-grid) li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3:not(.is-layout-grid) li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4:not(.is-layout-grid) li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4:not(.is-layout-grid) li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5:not(.is-layout-grid) li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5:not(.is-layout-grid) li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6:not(.is-layout-grid) li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6:not(.is-layout-grid) li:nth-child(6n){margin-left:0}}@media (max-width:600px){.wp-block-latest-posts-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid){grid-template-columns:1fr}}:root :where(.wp-block-latest-posts.is-grid){padding:0}:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){padding-right:0}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt,.wp-block-latest-posts__post-full-content{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}ol,ul{box-sizing:border-box}:root :where(.wp-block-list.has-background){padding:1.25em 2.375em}.wp-block-loginout{box-sizing:border-box}.wp-block-math{overflow-x:auto;overflow-y:hidden}.wp-block-media-text{box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{align-self:start}.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media,.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media{align-self:center}.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{align-self:end}.wp-block-media-text>.wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:rtl;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media a{display:block}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media{height:100%;min-height:250px;position:relative}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media img{height:100%;-o-object-fit:cover;object-fit:cover;position:absolute;width:100%}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}}.wp-block-navigation{position:relative}.wp-block-navigation ul{margin-bottom:0;margin-right:0;margin-top:0;padding-right:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-navigation .wp-block-navigation-item{align-items:center;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block;z-index:1}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-right:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{stroke:currentColor;display:inline-block;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation{--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}:where(.wp-block-navigation) ul li{padding:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;opacity:0;position:absolute;z-index:2}@media not (prefers-reduced-motion){.wp-block-navigation .has-child .wp-block-navigation__submenu-container{transition:opacity .1s linear}}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{height:0;overflow:hidden;visibility:hidden;width:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1;padding:.5em 1em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:0;margin-right:auto}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{right:-1px;top:100%}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:transparent;content:"";display:block;height:100%;left:100%;position:absolute;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-left:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(90deg)}}@media (hover:hover){.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation .has-child.open-always{align-items:var(--navigation-layout-align,initial);flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);gap:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always,.wp-block-navigation .has-child.open-always .wp-block-navigation-item{justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container,.wp-block-navigation .has-child.open-always.wp-block-navigation-submenu{gap:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always .wp-block-navigation-item,.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container,.wp-block-navigation .has-child.open-always.wp-block-navigation-submenu{padding-bottom:0;padding-top:0}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container{padding-left:var(--wp--style--block-gap,2em);padding-right:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:0}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content,.wp-block-navigation .has-child.open-always>.wp-block-navigation-item__content{flex-grow:0}.wp-block-navigation .has-child.open-always>.wp-block-navigation__submenu-container{background-color:transparent;border:none;color:inherit;flex-basis:100%;height:auto;opacity:1;overflow:visible;position:static;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{right:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{right:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:transparent;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-align:right;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-submenu__toggle[aria-expanded=true]+.wp-block-navigation__submenu-icon>svg,.wp-block-navigation-submenu__toggle[aria-expanded=true]>svg{transform:rotate(-180deg)}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:.85em;padding-right:0}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-right:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:0;right:auto}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;right:auto}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid rgba(0,0,0,.15)}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-right:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{background-color:inherit;display:flex;flex-direction:column}@media not (prefers-reduced-motion){.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards}}.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-left),20rem) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem)}.wp-block-navigation__responsive-container.is-menu-open{overflow:auto;z-index:100000}.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content{padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-page-list{background:transparent!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}.wp-block-navigation__responsive-container.disable-default-overlay .wp-block-navigation__overlay-container{display:none;width:100%}.wp-block-navigation__responsive-container.disable-default-overlay .wp-block-navigation__responsive-close{max-width:none}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content>:not(.wp-block-navigation__overlay-container){display:none}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__overlay-container{display:block}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__overlay-container .wp-block-navigation__submenu-container{left:auto;right:0}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{right:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:transparent;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{left:0;position:absolute;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.disable-default-overlay .wp-block-navigation__responsive-container-close{left:clamp(1rem,var(--wp--style--root--padding-left),20rem);top:clamp(1rem,var(--wp--style--root--padding-left),20rem)}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden}.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{outline:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-right:8px;text-transform:uppercase}:where(.wp-block-navigation-overlay-close){color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}.wp-block-navigation-overlay-close{align-items:center;background:transparent;border:none;cursor:pointer;display:inline-flex;gap:.5em;justify-content:center;padding:0;text-decoration:none}.wp-block-navigation-overlay-close:focus{outline-offset:2px}.wp-block-navigation-overlay-close svg{fill:currentColor;display:block;flex-shrink:0;height:24px;width:24px}.wp-block-navigation-overlay-close .wp-block-navigation-overlay-close__text{align-items:center;display:inline-flex}.wp-block-navigation .wp-block-page-list{align-items:var(--navigation-layout-align,initial);background-color:inherit;display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.wp-block-page-list{box-sizing:border-box}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em 0 0 .1em;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-right:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}.waveform-player{--wfp-accent:#71717a;--wfp-button-color:hsla(0,0%,100%,.9);--wfp-text-color:#fff;--wfp-text-secondary-color:hsla(0,0%,100%,.6);--wfp-btn-artwork-color:hsla(0,0%,100%,.9);--wfp-btn-artwork-scrim:rgba(0,0,0,.5);color:inherit;font-family:inherit;line-height:var(--waveform-line-height,1.4)}.waveform-player.waveform-theme-light{--wfp-button-color:rgba(0,0,0,.8);--wfp-text-color:#333;--wfp-text-secondary-color:rgba(0,0,0,.6)}.waveform-player *{box-sizing:border-box}.waveform-body{display:flex;flex-direction:column;gap:var(--waveform-body-gap,8px)}.waveform-track{gap:var(--waveform-track-gap,12px);position:relative}.waveform-btn,.waveform-track{align-items:center;display:flex}.waveform-btn{background:transparent;border:2px solid;border-radius:var(--wfp-btn-radius,50%);color:var(--wfp-button-color,inherit);cursor:pointer;flex-shrink:0;height:var(--wfp-btn-size,36px);justify-content:center;min-width:var(--wfp-btn-size,36px);opacity:.9;padding:0;transition:all .2s ease;width:var(--wfp-btn-size,36px)}.waveform-btn:hover:not(:disabled){opacity:1;transform:scale(1.05)}.waveform-btn-minimal{border:none;border-radius:0;height:calc(var(--wfp-btn-size, 36px)*1.1);min-width:calc(var(--wfp-btn-size, 36px)*1.1);opacity:.7;width:calc(var(--wfp-btn-size, 36px)*1.1)}.waveform-btn-minimal:hover:not(:disabled){opacity:1;transform:none}.waveform-btn.waveform-btn-minimal svg{height:calc(var(--wfp-btn-size, 36px)*.94);width:calc(var(--wfp-btn-size, 36px)*.94)}.waveform-btn:disabled{cursor:not-allowed;opacity:.3}.waveform-btn>*{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.waveform-btn svg{fill:currentColor;display:block;height:calc(var(--wfp-btn-size, 36px)*.45);width:calc(var(--wfp-btn-size, 36px)*.45)}.waveform-btn-has-artwork{--wfp-btn-size:64px;--wfp-btn-radius:8px;border:none;color:var(--wfp-btn-artwork-color);overflow:hidden;position:relative}.waveform-btn>.waveform-btn-artwork{display:block;height:100%;inset:0;-o-object-fit:cover;object-fit:cover;pointer-events:none;position:absolute;width:100%;z-index:0}.waveform-btn-has-artwork:after{background:var(--wfp-btn-artwork-scrim);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.waveform-btn-has-artwork>:not(.waveform-btn-artwork){position:relative;z-index:2}.waveform-icon-play svg{margin-right:1px}.waveform-container{cursor:pointer;flex:1;min-height:60px;min-width:0;position:relative;width:100%}.waveform-container:focus-visible{outline:2px solid currentColor}.waveform-container canvas{display:block;height:100%;max-width:100%;position:relative;transition:opacity .3s ease;width:100%;z-index:1}.waveform-info{align-items:center;display:flex;font-size:13px;gap:8px;min-height:20px}.waveform-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}.waveform-title{color:var(--wfp-text-color);font-weight:500}.waveform-artist,.waveform-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.waveform-artist{color:var(--wfp-text-secondary-color);font-size:11px}.waveform-bpm,.waveform-time{color:var(--wfp-text-secondary-color);flex-shrink:0;font-size:11px;white-space:nowrap}.waveform-bpm{align-items:center;display:inline-flex;gap:4px}.waveform-loading{background:rgba(0,0,0,.102)}.waveform-error,.waveform-loading{inset:0;position:absolute;z-index:10}.waveform-error{align-items:center;background:rgba(0,0,0,.2);display:flex;justify-content:center}.waveform-error-text{font-size:12px;opacity:.7;padding:0 20px;text-align:center}.waveform-markers{inset:0;pointer-events:none;position:absolute;z-index:5}.waveform-marker{background:hsla(0,0%,100%,.502);border:none;cursor:pointer;height:100%;padding:0;pointer-events:all;position:absolute;top:0;transition:all .2s;width:2px}.waveform-marker:hover{width:4px;z-index:20}.waveform-marker.active{background:currentColor;width:4px;z-index:10}.waveform-marker-tooltip{background:rgba(0,0,0,.902);border-radius:4px;bottom:calc(100% + 4px);color:#fff;font-size:11px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;right:50%;transform:translate(50%);transition:opacity .2s;white-space:nowrap;z-index:1000}.waveform-marker.show-label .waveform-marker-tooltip,.waveform-marker:hover .waveform-marker-tooltip{opacity:1}.waveform-hover-time{background:rgba(0,0,0,.902);border-radius:4px;bottom:calc(100% + 4px);color:#fff;font-size:11px;font-variant-numeric:tabular-nums;padding:3px 7px;transform:translate(50%);transition:opacity .15s;white-space:nowrap;z-index:1000}.waveform-hover-time,.waveform-seek-handle{opacity:0;pointer-events:none;position:absolute}.waveform-seek-handle{background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.349);height:11px;right:0;top:50%;transform:translate(50%,-50%) scale(0);transition:opacity .12s ease,transform .12s ease;width:11px;z-index:6}.waveform-seek-handle.is-visible{opacity:1;transform:translate(50%,-50%) scale(1)}.waveform-seek-handle.is-active{transform:translate(50%,-50%) scale(1.25)}.waveform-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.waveform-marker:focus-visible{outline:2px solid currentColor;outline-offset:1px;width:4px}.waveform-speed{flex-shrink:0;position:relative}.speed-btn{background:transparent;border:1px solid hsla(0,0%,100%,.2);border-radius:4px;color:inherit;cursor:pointer;font-size:11px;min-width:40px;padding:4px 8px;transition:all .2s}.speed-btn:hover{background:hsla(0,0%,100%,.051);border-color:hsla(0,0%,100%,.302)}.speed-value{font-weight:600}.speed-menu{background:rgba(0,0,0,.949);border:1px solid hsla(0,0%,100%,.2);border-radius:6px;bottom:100%;left:0;margin-bottom:4px;min-width:60px;padding:4px;position:absolute;z-index:100}.speed-option{background:transparent;border:none;border-radius:4px;color:hsla(0,0%,100%,.702);cursor:pointer;display:block;font-size:12px;padding:6px 12px;text-align:right;transition:all .2s;width:100%}.speed-option:hover{background:hsla(0,0%,100%,.102);color:#fff}.speed-option.active{background:hsla(0,0%,100%,.161);color:#fff;font-weight:600}.waveform-player.waveform-focused{border-radius:4px;outline:2px solid var(--wfp-accent);outline-offset:2px}.waveform-player:focus{outline:none}.waveform-player:focus-visible{outline:1px solid var(--wfp-accent);outline-offset:1px}.waveform-layout-preview .waveform-meta{display:none!important}.waveform-layout-preview .waveform-info{justify-content:center}.waveform-layout-preview .waveform-text{align-items:center;flex:0 1 auto;text-align:center}.waveform-player.waveform-focused{outline:none}.waveform-track.waveform-align-top{align-items:flex-start}.waveform-track.waveform-align-top .waveform-btn{margin-top:5px}.waveform-track.waveform-align-center{align-items:center}.waveform-track.waveform-align-bottom{align-items:flex-end}.waveform-track.waveform-align-bottom .waveform-btn{margin-bottom:5px}@media (max-width:480px){.waveform-btn{height:var(--wfp-btn-size,32px);min-width:var(--wfp-btn-size,32px);width:var(--wfp-btn-size,32px)}.waveform-container{min-height:50px}.waveform-info{font-size:12px}.waveform-artist,.waveform-bpm,.waveform-time{font-size:10px}}@media (prefers-reduced-motion:reduce){.waveform-player *,.waveform-player :after,.waveform-player :before{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.wp-block-playlist{box-sizing:border-box}.wp-block-playlist .wp-block-playlist__waveform-player{margin:var(--wp--preset--spacing--20,.625em) 0;position:relative;width:100%}.wp-block-playlist .wp-block-playlist__waveform-player:focus-visible{outline:revert;outline-offset:revert}.wp-block-playlist .waveform-track{gap:0;height:100px}.wp-block-playlist .waveform-btn{background:currentColor;border:none;border-end-start-radius:.125rem;border-radius:0;border-start-start-radius:.125rem;height:100px;margin:0;min-width:100px;width:100px}.wp-block-playlist .waveform-btn:hover:not(:disabled){transform:none}.wp-block-playlist .waveform-btn svg{height:3rem;width:3rem}.wp-block-playlist .waveform-btn .waveform-icon-pause svg{height:2.625rem;width:2.625rem}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn{background-image:var(--wp--playlist--play-button-artwork);background-position:50%;background-size:cover;color:#fff}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn svg path{fill:#fff!important}.wp-block-playlist .waveform-track.waveform-align-bottom .waveform-btn{margin-bottom:0}.wp-block-playlist .waveform-btn:focus-visible,.wp-block-playlist .waveform-container:focus-visible{outline:revert;outline-offset:revert}.wp-block-playlist .waveform-artist{opacity:.7}.wp-block-playlist .waveform-artist,.wp-block-playlist .waveform-info,.wp-block-playlist .waveform-time,.wp-block-playlist .waveform-title{font-size:inherit}.wp-block-playlist .wp-block-playlist__tracklist{list-style:none;margin:0;padding-right:0}.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-artist-is-hidden .wp-block-playlist-track__artist,.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-is-hidden,.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-length-is-hidden .wp-block-playlist-track__length{display:none}.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-show-numbers{counter-reset:playlist-track}.wp-block-playlist-track:has([aria-current=true]){background-color:color-mix(in srgb,currentColor 10%,transparent)}.wp-block-playlist-track:hover{background-color:color-mix(in srgb,currentColor 15%,transparent)}.wp-block-playlist__tracklist-show-numbers .wp-block-playlist-track{counter-increment:playlist-track}.wp-block-playlist-track .wp-block-playlist-track__button{align-items:center;background-color:transparent;border:0;color:inherit;cursor:pointer;display:flex;font-family:inherit;font-size:inherit;outline-offset:2px;padding:var(--wp--preset--spacing--20,.5em);text-align:right;width:100%}.wp-block-playlist__tracklist-show-numbers .wp-block-playlist-track .wp-block-playlist-track__button:before{content:counter(playlist-track);font-size:.85em;margin-left:var(--wp--preset--spacing--20,.5em);opacity:.7;width:2ch}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__image{border:1px solid rgba(0,0,0,.08);box-sizing:border-box;flex:0 0 50px;height:50px;margin-left:var(--wp--preset--spacing--20,.5em);-o-object-fit:cover;object-fit:cover;width:50px}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__content{flex:1 1 0;min-width:0}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__title{display:block}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__artist{display:block;font-size:.85em;margin-top:.125em;opacity:.7}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__length{font-size:.85em;margin-right:auto;opacity:.7}.wp-block-post-author{box-sizing:border-box;display:flex;flex-wrap:wrap}.wp-block-post-author__byline{font-size:.5em;margin-bottom:0;margin-top:0;width:100%}.wp-block-post-author__avatar{margin-left:1em}.wp-block-post-author__bio{font-size:.7em;margin-bottom:.7em}.wp-block-post-author__content{flex-basis:0;flex-grow:1}.wp-block-post-author__name{margin:0}.wp-block-post-author-biography{box-sizing:border-box;overflow-wrap:break-word;white-space:pre-wrap}:where(.wp-block-post-comments-form input:not([type=submit])),:where(.wp-block-post-comments-form textarea){border:1px solid #949494;font-family:inherit;font-size:1em}:where(.wp-block-post-comments-form input:where(:not([type=submit]):not([type=checkbox]))),:where(.wp-block-post-comments-form textarea){padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form :where(input[type=submit]){box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-right:.5em}.wp-block-post-comments-count{box-sizing:border-box}.wp-block-post-content{display:flow-root}.wp-block-post-comments-link,.wp-block-post-date{box-sizing:border-box}:where(.wp-block-post-excerpt){box-sizing:border-box;margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-bottom:0;margin-top:0}.wp-block-post-excerpt__more-text{margin-bottom:0;margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__more-link{display:inline-block}.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block;height:100%}.wp-block-post-featured-image :where(img){box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:transparent}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}.wp-block-post-featured-image:where(.alignleft,.alignright){width:100%}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous{display:inline-block;margin-left:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next{display:inline-block;margin-right:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-post-navigation-link.has-text-align-left[style*="writing-mode: vertical-lr"],.wp-block-post-navigation-link.has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-terms{box-sizing:border-box}.wp-block-post-terms .wp-block-post-terms__separator{white-space:pre-wrap}.wp-block-post-time-to-read,.wp-block-post-title{box-sizing:border-box}.wp-block-post-title{word-break:break-word}.wp-block-post-title :where(a){display:inline-block;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-decoration:inherit}.wp-block-post-author-name{box-sizing:border-box}.wp-block-preformatted{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-preformatted.has-background){padding:1.25em 2.375em}.wp-block-pullquote{box-sizing:border-box;margin:0 0 1em;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:right}.wp-block-pullquote.has-text-align-right blockquote{text-align:left}.wp-block-pullquote.has-text-align-center blockquote{text-align:center}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote :where(cite){color:inherit;display:block}.wp-block-post-template{box-sizing:border-box;list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid){grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:left;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:right;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-previous:first-child{margin-inline-end:auto}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow{display:inline-block;margin-left:1ch}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-query-pagination .wp-block-query-pagination-next-arrow{display:inline-block;margin-right:1ch}.wp-block-query-pagination .wp-block-query-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(-1)}.wp-block-query-pagination.aligncenter{justify-content:center}.wp-block-query-title,.wp-block-query-total,.wp-block-quote{box-sizing:border-box}.wp-block-quote{overflow-wrap:break-word}.wp-block-quote.is-large:where(:not(.is-style-plain)),.wp-block-quote.is-style-large:where(:not(.is-style-plain)){margin-bottom:1em;padding:0 1em}.wp-block-quote.is-large:where(:not(.is-style-plain)) p,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-large:where(:not(.is-style-plain)) footer,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) footer{font-size:1.125em;text-align:left}.wp-block-quote>cite{display:block}.wp-block-read-more{display:block;width:-moz-fit-content;width:fit-content}.wp-block-read-more:where(:not([style*=text-decoration])){text-decoration:none}.wp-block-read-more:where(:not([style*=text-decoration])):active,.wp-block-read-more:where(:not([style*=text-decoration])):focus{text-decoration:none}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0}ul.wp-block-rss.is-grid li{margin:0 0 1em 1em;width:100%}@media (min-width:600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;font-size:.8125em}.wp-block-rss{box-sizing:border-box;list-style:none;padding:0}.wp-block-search__button{margin-right:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{fill:currentColor;height:1.25em;min-height:24px;min-width:24px;vertical-align:text-bottom;width:1.25em}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button{box-sizing:border-box;display:flex;flex-shrink:0;justify-content:center;margin-right:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){-webkit-appearance:initial;-moz-appearance:initial;appearance:none;border:1px solid #949494;flex-grow:1;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){background-color:#fff;border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:left}.wp-block-separator{border:none;border-top:2px solid}:root :where(.wp-block-separator.is-style-dots){height:auto;line-height:1;text-align:center}:root :where(.wp-block-separator.is-style-dots):before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-separator.is-style-dots{background:none!important;border:none!important}.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}:root :where(.wp-block-site-logo.is-style-rounded){border-radius:9999px}.wp-block-site-tagline,.wp-block-site-title{box-sizing:border-box}.wp-block-site-title :where(a){color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-decoration:inherit}.wp-block-social-links{background:none;box-sizing:border-box;margin-right:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block}@media not (prefers-reduced-motion){.wp-block-social-link{transition:transform .1s ease}}.wp-block-social-link{height:auto}.wp-block-social-link a{align-items:center;display:flex;line-height:0}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{fill:currentColor;color:currentColor}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link{background-color:#f0f0f0;color:#444}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon{background-color:#f90;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance{background-color:#0757fe;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{background-color:#0a7aff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-discord{background-color:#5865f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy{background-color:#f45800;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook{background-color:#0866ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr{background-color:#0461dd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare{background-color:#e65678;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github{background-color:#24292d;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google{background-color:#ea4434;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{background-color:#1d4fc4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram{background-color:#f00075;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup{background-color:#f6405f;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest{background-color:#e60122;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket{background-color:#ef4155;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{background-color:#ff4500;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype{background-color:#0478d7;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat{stroke:#000;background-color:#fefc00;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify{background-color:#1bd760;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{background-color:#2aabee;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr{background-color:#011835;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch{background-color:#6440a4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk{background-color:#4680c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{background-color:#25d366;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp{background-color:#d32422;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube{background-color:red;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{background:none}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{height:1.25em;width:1.25em}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon{color:#f90}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp{color:#1ea0c3}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance{color:#0757fe}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{color:#0a7aff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen{color:#1e1f26}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart{color:#02e49b}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-discord{color:#5865f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble{color:#e94c89}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox{color:#4280ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy{color:#f45800}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook{color:#0866ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr{color:#0461dd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare{color:#e65678}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github{color:#24292d}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads{color:#382110}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google{color:#ea4434}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{color:#1d4fc4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram{color:#f00075}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm{color:#e21b24}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin{color:#0d66c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon{color:#3288d4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup{color:#f6405f}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest{color:#e60122}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket{color:#ef4155}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{color:#ff4500}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype{color:#0478d7}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat{stroke:#000;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud{color:#ff5600}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify{color:#1bd760}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{color:#2aabee}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr{color:#011835}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch{color:#6440a4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter{color:#1da1f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo{color:#1eb7ea}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk{color:#4680c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{color:#25d366}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress{color:#3499cd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{color:#d32422}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}:root :where(.wp-block-social-links .wp-social-link a){padding:.25em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){padding:0}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){padding-left:.6666666667em;padding-right:.6666666667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000}.wp-block-spacer{clear:both}.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud a{display:inline-block;margin-left:5px}.wp-block-tag-cloud span{display:inline-block;margin-right:5px;text-decoration:none}:root :where(.wp-block-tag-cloud.is-style-outline){display:flex;flex-wrap:wrap;gap:1ch}:root :where(.wp-block-tag-cloud.is-style-outline a){border:1px solid;font-size:unset!important;margin-left:0;padding:1ch 2ch;text-decoration:none!important}:where(.wp-block-tab-list button){-moz-appearance:none;appearance:none;-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:block;flex-basis:inherit!important;flex-grow:inherit!important;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:var(--wp--preset--spacing--20,.5em) var(--wp--preset--spacing--30,1em);position:relative;text-align:inherit;text-decoration:none;text-transform:inherit;width:-moz-max-content;width:max-content}:where(.wp-block-tab-list button)[aria-selected=true]:before{border-bottom:2px solid;bottom:0;content:"";pointer-events:none;position:absolute;right:0;width:100%}.wp-block-tab-panel:empty,.wp-block-tab-panel[hidden]{display:none!important}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{background-color:transparent;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table.is-style-stripes{border-bottom:1px solid #f0f0f0}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}:root :where(.wp-block-table-of-contents){box-sizing:border-box}.wp-block-tabs,.wp-block-term-count{box-sizing:border-box}:where(.wp-block-term-description){box-sizing:border-box;margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-term-description p{margin-bottom:0;margin-top:0}.wp-block-term-name{box-sizing:border-box}.wp-block-term-template{box-sizing:border-box;list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.3333333333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}pre.wp-block-verse{box-sizing:border-box;min-width:1em;overflow:auto;white-space:pre-wrap;word-break:break-word}:where(pre.wp-block-verse){font-family:inherit}.wp-block-video{box-sizing:border-box}.wp-block-video video{height:auto;vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{-o-object-fit:cover;object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-bottom:1em;margin-top:.5em}.editor-styles-wrapper,.entry-content{counter-reset:footnotes}a[data-fn].fn{counter-increment:footnotes;display:inline-flex;font-size:smaller;text-decoration:none;text-indent:-9999999px;vertical-align:super}a[data-fn].fn:after{content:"[" counter(footnotes) "]";float:right;text-indent:0}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:root .has-text-align-center{text-align:center}:root .has-text-align-left{text-align:left}:root .has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal!important}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;line-height:normal;padding:15px 23px 14px;right:5px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style^=border-color],[style*=";border-color"],[style*="; border-color"]){border-style:solid}html :where([style^=border-top-color],[style*=";border-top-color"],[style*="; border-top-color"]){border-top-style:solid}html :where([style^=border-right-color],[style*=";border-right-color"],[style*="; border-right-color"]){border-right-style:solid}html :where([style^=border-bottom-color],[style*=";border-bottom-color"],[style*="; border-bottom-color"]){border-bottom-style:solid}html :where([style^=border-left-color],[style*=";border-left-color"],[style*="; border-left-color"]){border-left-style:solid}html :where([style^=border-width],[style*=";border-width"],[style*="; border-width"]){border-style:solid}html :where([style^=border-top-width],[style*=";border-top-width"],[style*="; border-top-width"]){border-top-style:solid}html :where([style^=border-right-width],[style*=";border-right-width"],[style*="; border-right-width"]){border-right-style:solid}html :where([style^=border-bottom-width],[style*=";border-bottom-width"],[style*="; border-bottom-width"]){border-bottom-style:solid}html :where([style^=border-left-width],[style*=";border-left-width"],[style*="; border-left-width"]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
\ No newline at end of file
diff --git a/wp-includes/css/dist/block-library/style.css b/wp-includes/css/dist/block-library/style.css
index e68897d265..ac5ca6063c 100644
--- a/wp-includes/css/dist/block-library/style.css
+++ b/wp-includes/css/dist/block-library/style.css
@@ -3139,6 +3139,17 @@ html.has-modal-open {
text-transform: uppercase;
}
+:where(.wp-block-navigation-overlay-close) {
+ color: inherit;
+ font-family: inherit;
+ font-size: inherit;
+ font-style: inherit;
+ font-weight: inherit;
+ letter-spacing: inherit;
+ line-height: inherit;
+ text-transform: inherit;
+}
+
.wp-block-navigation-overlay-close {
display: inline-flex;
align-items: center;
@@ -3879,6 +3890,7 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
.wp-block-post-author-biography {
box-sizing: border-box;
white-space: pre-wrap;
+ overflow-wrap: break-word;
}
:where(.wp-block-post-comments-form textarea),
diff --git a/wp-includes/css/dist/block-library/style.min.css b/wp-includes/css/dist/block-library/style.min.css
index f18da23923..77ebfbf3ec 100644
--- a/wp-includes/css/dist/block-library/style.min.css
+++ b/wp-includes/css/dist/block-library/style.min.css
@@ -1 +1 @@
-@charset "UTF-8";.wp-block-accordion{box-sizing:border-box}.wp-block-accordion-item.is-open>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon{transform:rotate(45deg)}@media (prefers-reduced-motion:no-preference){.wp-block-accordion-item{transition:grid-template-rows .3s ease-out}.wp-block-accordion-item>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon{transition:transform .2s ease-in-out}}.wp-block-accordion-heading__toggle{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;overflow:hidden;padding:var(--wp--preset--spacing--20,1em) 0;text-align:inherit;text-decoration:inherit;text-transform:inherit;width:100%;word-spacing:inherit}.wp-block-accordion-heading__toggle:not(:focus-visible){outline:none}.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title{text-decoration:underline}.wp-block-accordion-heading__toggle-title{flex:1}.wp-block-accordion-heading__toggle-icon{align-items:center;display:flex;height:1.2em;justify-content:center;width:1.2em}.wp-block-accordion-panel[hidden]{margin-block-start:0}.wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}.wp-block-avatar{line-height:0}.wp-block-avatar,.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}.wp-block-breadcrumbs{box-sizing:border-box}.wp-block-breadcrumbs ol{flex-wrap:wrap;list-style:none}.wp-block-breadcrumbs li,.wp-block-breadcrumbs ol{align-items:center;display:flex;margin:0;padding:0}.wp-block-breadcrumbs li:not(:last-child):after{content:var(--separator,"/")/"";margin:0 .5em;opacity:.7}.wp-block-breadcrumbs span{color:inherit}.wp-block-button__link{align-content:center;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button[class*=wp-block-button__width]{width:calc(var(--wp--block-button--width)*1% - var(--wp--style--block-gap, .5em)*(1 - var(--wp--block-button--width)/100))}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button[class*=wp-block-button__width]{width:calc(var(--wp--block-button--width)*1%)}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){border:2px solid;padding:.667em 1.333em}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){background-color:transparent;background-image:none}.wp-block-buttons{box-sizing:border-box}.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons .wp-block-button__link{width:100%}.wp-block-button.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar td,.wp-block-calendar th{border:1px solid;padding:.25em}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{border-collapse:collapse;width:100%}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}.wp-block-calendar :where(table:not(.has-text-color)){color:#40464d}.wp-block-calendar :where(table:not(.has-text-color)) td,.wp-block-calendar :where(table:not(.has-text-color)) th{border-color:#ddd}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}.wp-block-categories{box-sizing:border-box}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-categories.wp-block-categories-dropdown.aligncenter{text-align:center}.wp-block-categories .wp-block-categories__label:not(.screen-reader-text){display:block;width:100%}.wp-block-code{box-sizing:border-box}.wp-block-code code{direction:ltr;display:block;font-family:inherit;overflow-wrap:break-word;text-align:initial;white-space:break-spaces}.wp-block-columns{box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.wp-block-columns{align-items:normal!important}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-post-comments{box-sizing:border-box}.wp-block-post-comments .alignleft{float:left}.wp-block-post-comments .alignright{float:right}.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;margin-top:.5em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.wp-block-comments{box-sizing:border-box}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{font-size:inherit}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{display:inline-block;margin-right:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{display:inline-block;margin-left:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination.aligncenter{justify-content:center}.wp-block-comment-template{box-sizing:border-box;list-style:none;margin-bottom:0;max-width:100%;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{list-style:none;margin-bottom:0;max-width:100%;padding-left:2rem}.wp-block-comment-template.alignleft{float:left}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:right}.wp-block-comment-date{box-sizing:border-box}.comment-awaiting-moderation{display:block;font-size:.875em;line-height:1.5}.wp-block-comment-author-name,.wp-block-comment-content,.wp-block-comment-edit-link,.wp-block-comment-reply-link{box-sizing:border-box}.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:transparent}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;position:relative;width:100%}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;-o-object-fit:cover;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background,.wp-block-cover-image .wp-block-cover__embed-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;outline:none;padding:0;pointer-events:none;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper,.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper{bottom:0;height:100%;left:0;margin:0;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,.wp-block-cover .wp-block-cover__embed-background iframe,.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,.wp-block-cover-image .wp-block-cover__embed-background iframe{height:100vh;left:50%;min-height:100%;min-width:100%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);width:100vw}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover-image-text,.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-right:0;text-align:right}.wp-block-cover .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000}:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){color:inherit}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__video-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__embed-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__image-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__background,body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__gradient-background,body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)).has-background-dim:not(.has-background-gradient):before{z-index:1}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__inner-container{z-index:1}.has-modal-open body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__inner-container{z-index:auto}.wp-block-details{box-sizing:border-box}.wp-block-details summary{cursor:pointer}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-group.is-layout-flex .wp-block-embed{flex:1 1 0%;min-width:0}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{box-sizing:border-box}.wp-block-file:not(.wp-element-button){font-size:.8em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file *+.wp-block-file__button{margin-left:.75em}:where(.wp-block-file){margin-bottom:1.5em}.wp-block-file__embed{margin-bottom:1em}:where(.wp-block-file__button){border-radius:2em;display:inline-block;padding:.5em 1em}:where(.wp-block-file__button):where(a):active,:where(.wp-block-file__button):where(a):focus,:where(.wp-block-file__button):where(a):hover,:where(.wp-block-file__button):where(a):visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-form-input__label{display:flex;flex-direction:column;gap:.25em;margin-bottom:.5em;width:100%}.wp-block-form-input__label.is-label-inline{align-items:center;flex-direction:row;gap:.5em}.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content{margin-bottom:.5em}.wp-block-form-input__label:has(input[type=checkbox]){flex-direction:row;width:-moz-fit-content;width:fit-content}.wp-block-form-input__label:has(input[type=checkbox]) .wp-block-form-input__label-content{margin:0}.wp-block-form-input__label:has(.wp-block-form-input__label-content+input[type=checkbox]){flex-direction:row-reverse}.wp-block-form-input__label-content{width:-moz-fit-content;width:fit-content}:where(.wp-block-form-input__input){font-size:1em;margin-bottom:.5em;padding:0 .5em}:where(.wp-block-form-input__input)[type=date],:where(.wp-block-form-input__input)[type=datetime-local],:where(.wp-block-form-input__input)[type=datetime],:where(.wp-block-form-input__input)[type=email],:where(.wp-block-form-input__input)[type=month],:where(.wp-block-form-input__input)[type=number],:where(.wp-block-form-input__input)[type=password],:where(.wp-block-form-input__input)[type=search],:where(.wp-block-form-input__input)[type=tel],:where(.wp-block-form-input__input)[type=text],:where(.wp-block-form-input__input)[type=time],:where(.wp-block-form-input__input)[type=url],:where(.wp-block-form-input__input)[type=week]{border-style:solid;border-width:1px;line-height:2;min-height:2em}textarea.wp-block-form-input__input{min-height:10em}.blocks-gallery-grid:not(.has-nested-images),.wp-block-gallery:not(.has-nested-images){display:flex;flex-wrap:wrap;list-style-type:none;margin:0;padding:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item{display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0 1em 1em 0;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure{align-items:flex-end;display:flex;height:100%;justify-content:flex-start;margin:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img{display:block;height:auto;max-width:100%;width:auto}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption{background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);bottom:0;box-sizing:border-box;color:#fff;font-size:.8em;margin:0;max-height:100%;overflow:auto;padding:3em .77em .7em;position:absolute;text-align:center;width:100%;z-index:2}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid:not(.has-nested-images) figcaption,.wp-block-gallery:not(.has-nested-images) figcaption{flex-grow:1}.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img{flex:1;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item{margin-right:0;width:100%}@media (min-width:600px){.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item{margin-right:1em;width:calc(33.33333% - .66667em)}.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item{margin-right:1em;width:calc(25% - .75em)}.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item{margin-right:1em;width:calc(20% - .8em)}.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item{margin-right:1em;width:calc(16.66667% - .83333em)}.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item{margin-right:1em;width:calc(14.28571% - .85714em)}.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item{margin-right:1em;width:calc(12.5% - .875em)}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child{margin-right:0}.blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright,.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright{max-width:420px;width:100%}.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-gallery:not(.is-cropped) .blocks-gallery-item{align-self:flex-start}figure.wp-block-gallery.has-nested-images{align-items:normal}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){margin:0;width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)/2)}.wp-block-gallery.has-nested-images figure.wp-block-image{box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;max-width:100%;position:relative}.wp-block-gallery.has-nested-images figure.wp-block-image>a,.wp-block-gallery.has-nested-images figure.wp-block-image>div{flex-direction:column;flex-grow:1;margin:0}.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{bottom:0;left:0;max-height:100%;position:absolute;right:0}.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{backdrop-filter:blur(3px);content:"";height:100%;-webkit-mask-image:linear-gradient(0deg,#000 20%,transparent);mask-image:linear-gradient(0deg,#000 20%,transparent);max-height:3em;pointer-events:none}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{box-sizing:border-box;color:#fff;font-size:13px;margin:0;overflow:auto;padding:1em;text-align:center;text-shadow:0 0 1.5px #000}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar{height:12px;width:12px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track{background-color:transparent}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb{background-color:hsla(0,0%,100%,.8)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover{scrollbar-color:hsla(0,0%,100%,.8) transparent}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{will-change:transform}@media (hover:none){.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:hsla(0,0%,100%,.8) transparent}}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{background:linear-gradient(0deg,rgba(0,0,0,.4),transparent)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{display:inline}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{color:inherit}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div{flex:1 1 auto}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption{background:none;color:inherit;flex:initial;margin:0;padding:10px 10px 9px;position:relative;text-shadow:none}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border:before,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded:before{content:none}.wp-block-gallery.has-nested-images figcaption{flex-basis:100%;flex-grow:1;text-align:center}.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){margin-bottom:auto;margin-top:0}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){align-self:inherit}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone){display:flex}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{flex:1 0 0%;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}@media (min-width:600px){.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){width:calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - var(--wp--style--unstable-gallery-gap, 16px)*.75)}.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - var(--wp--style--unstable-gallery-gap, 16px)*.8)}.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.66667% - var(--wp--style--unstable-gallery-gap, 16px)*.83333)}.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.28571% - var(--wp--style--unstable-gallery-gap, 16px)*.85714)}.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px)*.875)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)*.5)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:last-child{width:100%}}.wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{max-width:420px;width:100%}.wp-block-gallery.has-nested-images.aligncenter{justify-content:center}.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative}h1:where(.wp-block-heading).has-background,h2:where(.wp-block-heading).has-background,h3:where(.wp-block-heading).has-background,h4:where(.wp-block-heading).has-background,h5:where(.wp-block-heading).has-background,h6:where(.wp-block-heading).has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg}.wp-block-icon{line-height:0}.wp-block-icon.aligncenter{display:flex;justify-content:center}.wp-block-icon svg{fill:currentColor;box-sizing:border-box}.wp-block-icon svg.is-flip-horizontal{transform:scaleX(-1)}.wp-block-icon svg.is-flip-vertical{transform:scaleY(-1)}.wp-block-icon svg.is-flip-horizontal.is-flip-vertical{transform:scaleX(-1) scaleY(-1)}:where(.wp-block-icon) svg{height:100%;width:100%}.wp-block-image>a,.wp-block-image>figure>a{display:inline-block}.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}@media not (prefers-reduced-motion){.wp-block-image img.hide{visibility:hidden}.wp-block-image img.show{animation:show-content-image .4s}}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull>a,.wp-block-image.alignwide>a{width:100%}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-image.is-style-circle-mask img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){border-radius:9999px}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;backdrop-filter:blur(16px) saturate(180%);background-color:rgba(90,90,90,.25);border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;opacity:0;padding:0;position:absolute;right:16px;text-align:center;top:16px;width:20px;z-index:100}@media not (prefers-reduced-motion){.wp-lightbox-container button{transition:opacity .2s ease}}.wp-lightbox-container button:focus-visible{outline:3px auto rgba(90,90,90,.25);outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:rgba(90,90,90,.25);border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;left:0;overflow:hidden;position:fixed;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .wp-lightbox-close-button{align-items:center;cursor:pointer;display:flex;font-family:inherit;gap:8px;justify-content:center;line-height:1;min-height:40px;min-width:40px;padding:0 4px;position:absolute;right:calc(env(safe-area-inset-right) + 16px);top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .wp-lightbox-close-button:focus,.wp-lightbox-overlay .wp-lightbox-close-button:hover,.wp-lightbox-overlay .wp-lightbox-close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .wp-lightbox-close-button:has(.wp-lightbox-close-text:not([hidden])) .wp-lightbox-close-icon svg{height:1em;width:1em}.wp-lightbox-overlay .wp-lightbox-close-icon svg{display:block}.wp-lightbox-overlay .wp-lightbox-navigation-button-next,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{align-items:center;bottom:16px;cursor:pointer;display:flex;font-family:inherit;gap:4px;justify-content:center;line-height:1;min-height:40px;min-width:40px;padding:0 8px;position:absolute;z-index:2000002}.wp-lightbox-overlay .wp-lightbox-navigation-button-next[hidden],.wp-lightbox-overlay .wp-lightbox-navigation-button-prev[hidden]{display:none}@media (min-width:960px){.wp-lightbox-overlay .wp-lightbox-navigation-button-next,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{bottom:50%;transform:translateY(-50%)}}.wp-lightbox-overlay .wp-lightbox-navigation-button-next:focus,.wp-lightbox-overlay .wp-lightbox-navigation-button-next:hover,.wp-lightbox-overlay .wp-lightbox-navigation-button-next:not(:hover):not(:active):not(.has-background),.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:focus,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:hover,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:not(:hover):not(:active):not(.has-background){background:none;border:none;padding:0 8px}.wp-lightbox-overlay .wp-lightbox-navigation-button-next:has(.wp-lightbox-navigation-text:not([hidden])) .wp-lightbox-navigation-icon svg,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:has(.wp-lightbox-navigation-text:not([hidden])) .wp-lightbox-navigation-icon svg{display:block;height:1.5em;width:1.5em}.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{left:calc(env(safe-area-inset-left) + 16px)}.wp-lightbox-overlay .wp-lightbox-navigation-button-next{right:calc(env(safe-area-inset-right) + 16px)}.wp-lightbox-overlay .wp-lightbox-navigation-icon svg{vertical-align:middle}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);left:50%;overflow:hidden;position:absolute;top:50%;transform:translate(-50%,-50%);transform-origin:top left;width:var(--wp--lightbox-container-width);z-index:2000001}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:0 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{visibility:visible}@media not (prefers-reduced-motion){.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes show-content-image{0%{visibility:hidden}99%{visibility:hidden}to{visibility:visible}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(-50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(-50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}}:where(.wp-block-latest-comments){padding-left:0}ol.wp-block-latest-comments{box-sizing:border-box;margin-left:0}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{list-style:none;min-height:2.25em}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{font-size:inherit}.wp-block-latest-posts{box-sizing:border-box}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both;overflow-wrap:break-word}.wp-block-latest-posts.is-grid:not(.is-layout-grid){display:flex;flex-wrap:wrap}.wp-block-latest-posts.is-grid:not(.is-layout-grid) li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2:not(.is-layout-grid) li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2:not(.is-layout-grid) li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3:not(.is-layout-grid) li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3:not(.is-layout-grid) li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4:not(.is-layout-grid) li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4:not(.is-layout-grid) li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5:not(.is-layout-grid) li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5:not(.is-layout-grid) li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6:not(.is-layout-grid) li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6:not(.is-layout-grid) li:nth-child(6n){margin-right:0}}@media (max-width:600px){.wp-block-latest-posts-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid){grid-template-columns:1fr}}:root :where(.wp-block-latest-posts.is-grid){padding:0}:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){padding-left:0}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt,.wp-block-latest-posts__post-full-content{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}ol,ul{box-sizing:border-box}:root :where(.wp-block-list.has-background){padding:1.25em 2.375em}.wp-block-loginout{box-sizing:border-box}.wp-block-math{overflow-x:auto;overflow-y:hidden}.wp-block-media-text{box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{align-self:start}.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media,.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media{align-self:center}.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{align-self:end}.wp-block-media-text>.wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:ltr;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media a{display:block}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media{height:100%;min-height:250px;position:relative}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media img{height:100%;-o-object-fit:cover;object-fit:cover;position:absolute;width:100%}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}}.wp-block-navigation{position:relative}.wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-navigation .wp-block-navigation-item{align-items:center;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block;z-index:1}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-left:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{stroke:currentColor;display:inline-block;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation{--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}:where(.wp-block-navigation) ul li{padding:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;opacity:0;position:absolute;z-index:2}@media not (prefers-reduced-motion){.wp-block-navigation .has-child .wp-block-navigation__submenu-container{transition:opacity .1s linear}}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{height:0;overflow:hidden;visibility:hidden;width:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1;padding:.5em 1em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:auto;margin-right:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{left:-1px;top:100%}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:transparent;content:"";display:block;height:100%;position:absolute;right:100%;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-right:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(-90deg)}}@media (hover:hover){.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation .has-child.open-always{align-items:var(--navigation-layout-align,initial);flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);gap:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always,.wp-block-navigation .has-child.open-always .wp-block-navigation-item{justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container,.wp-block-navigation .has-child.open-always.wp-block-navigation-submenu{gap:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always .wp-block-navigation-item,.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container,.wp-block-navigation .has-child.open-always.wp-block-navigation-submenu{padding-bottom:0;padding-top:0}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container{padding-left:var(--wp--style--block-gap,2em);padding-right:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:0}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content,.wp-block-navigation .has-child.open-always>.wp-block-navigation-item__content{flex-grow:0}.wp-block-navigation .has-child.open-always>.wp-block-navigation__submenu-container{background-color:transparent;border:none;color:inherit;flex-basis:100%;height:auto;opacity:1;overflow:visible;position:static;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{left:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:transparent;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-align:left;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-submenu__toggle[aria-expanded=true]+.wp-block-navigation__submenu-icon>svg,.wp-block-navigation-submenu__toggle[aria-expanded=true]>svg{transform:rotate(180deg)}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:0;padding-right:.85em}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-left:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:auto;right:0}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:auto;right:100%}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid rgba(0,0,0,.15)}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-left:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{background-color:inherit;display:flex;flex-direction:column}@media not (prefers-reduced-motion){.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards}}.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-left),20rem)}.wp-block-navigation__responsive-container.is-menu-open{overflow:auto;z-index:100000}.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content{padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-page-list{background:transparent!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}.wp-block-navigation__responsive-container.disable-default-overlay .wp-block-navigation__overlay-container{display:none;width:100%}.wp-block-navigation__responsive-container.disable-default-overlay .wp-block-navigation__responsive-close{max-width:none}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content>:not(.wp-block-navigation__overlay-container){display:none}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__overlay-container{display:block}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__overlay-container .wp-block-navigation__submenu-container{left:0;right:auto}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:transparent;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{position:absolute;right:0;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.disable-default-overlay .wp-block-navigation__responsive-container-close{right:clamp(1rem,var(--wp--style--root--padding-left),20rem);top:clamp(1rem,var(--wp--style--root--padding-left),20rem)}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden}.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{outline:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-left:8px;text-transform:uppercase}.wp-block-navigation-overlay-close{align-items:center;background:transparent;border:none;cursor:pointer;display:inline-flex;gap:.5em;justify-content:center;padding:0;text-decoration:none}.wp-block-navigation-overlay-close:focus{outline-offset:2px}.wp-block-navigation-overlay-close svg{fill:currentColor;display:block;flex-shrink:0;height:24px;width:24px}.wp-block-navigation-overlay-close .wp-block-navigation-overlay-close__text{align-items:center;display:inline-flex}.wp-block-navigation .wp-block-page-list{align-items:var(--navigation-layout-align,initial);background-color:inherit;display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.wp-block-page-list{box-sizing:border-box}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em .1em 0 0;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}.waveform-player{--wfp-accent:#71717a;--wfp-button-color:hsla(0,0%,100%,.9);--wfp-text-color:#fff;--wfp-text-secondary-color:hsla(0,0%,100%,.6);--wfp-btn-artwork-color:hsla(0,0%,100%,.9);--wfp-btn-artwork-scrim:rgba(0,0,0,.5);color:inherit;font-family:inherit;line-height:var(--waveform-line-height,1.4)}.waveform-player.waveform-theme-light{--wfp-button-color:rgba(0,0,0,.8);--wfp-text-color:#333;--wfp-text-secondary-color:rgba(0,0,0,.6)}.waveform-player *{box-sizing:border-box}.waveform-body{display:flex;flex-direction:column;gap:var(--waveform-body-gap,8px)}.waveform-track{gap:var(--waveform-track-gap,12px);position:relative}.waveform-btn,.waveform-track{align-items:center;display:flex}.waveform-btn{background:transparent;border:2px solid;border-radius:var(--wfp-btn-radius,50%);color:var(--wfp-button-color,inherit);cursor:pointer;flex-shrink:0;height:var(--wfp-btn-size,36px);justify-content:center;min-width:var(--wfp-btn-size,36px);opacity:.9;padding:0;transition:all .2s ease;width:var(--wfp-btn-size,36px)}.waveform-btn:hover:not(:disabled){opacity:1;transform:scale(1.05)}.waveform-btn-minimal{border:none;border-radius:0;height:calc(var(--wfp-btn-size, 36px)*1.1);min-width:calc(var(--wfp-btn-size, 36px)*1.1);opacity:.7;width:calc(var(--wfp-btn-size, 36px)*1.1)}.waveform-btn-minimal:hover:not(:disabled){opacity:1;transform:none}.waveform-btn.waveform-btn-minimal svg{height:calc(var(--wfp-btn-size, 36px)*.94);width:calc(var(--wfp-btn-size, 36px)*.94)}.waveform-btn:disabled{cursor:not-allowed;opacity:.3}.waveform-btn>*{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.waveform-btn svg{fill:currentColor;display:block;height:calc(var(--wfp-btn-size, 36px)*.45);width:calc(var(--wfp-btn-size, 36px)*.45)}.waveform-btn-has-artwork{--wfp-btn-size:64px;--wfp-btn-radius:8px;border:none;color:var(--wfp-btn-artwork-color);overflow:hidden;position:relative}.waveform-btn>.waveform-btn-artwork{display:block;height:100%;inset:0;-o-object-fit:cover;object-fit:cover;pointer-events:none;position:absolute;width:100%;z-index:0}.waveform-btn-has-artwork:after{background:var(--wfp-btn-artwork-scrim);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.waveform-btn-has-artwork>:not(.waveform-btn-artwork){position:relative;z-index:2}.waveform-icon-play svg{margin-left:1px}.waveform-container{cursor:pointer;flex:1;min-height:60px;min-width:0;position:relative;width:100%}.waveform-container:focus-visible{outline:2px solid currentColor}.waveform-container canvas{display:block;height:100%;max-width:100%;position:relative;transition:opacity .3s ease;width:100%;z-index:1}.waveform-info{align-items:center;display:flex;font-size:13px;gap:8px;min-height:20px}.waveform-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}.waveform-title{color:var(--wfp-text-color);font-weight:500}.waveform-artist,.waveform-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.waveform-artist{color:var(--wfp-text-secondary-color);font-size:11px}.waveform-bpm,.waveform-time{color:var(--wfp-text-secondary-color);flex-shrink:0;font-size:11px;white-space:nowrap}.waveform-bpm{align-items:center;display:inline-flex;gap:4px}.waveform-loading{background:rgba(0,0,0,.102)}.waveform-error,.waveform-loading{inset:0;position:absolute;z-index:10}.waveform-error{align-items:center;background:rgba(0,0,0,.2);display:flex;justify-content:center}.waveform-error-text{font-size:12px;opacity:.7;padding:0 20px;text-align:center}.waveform-markers{inset:0;pointer-events:none;position:absolute;z-index:5}.waveform-marker{background:hsla(0,0%,100%,.502);border:none;cursor:pointer;height:100%;padding:0;pointer-events:all;position:absolute;top:0;transition:all .2s;width:2px}.waveform-marker:hover{width:4px;z-index:20}.waveform-marker.active{background:currentColor;width:4px;z-index:10}.waveform-marker-tooltip{background:rgba(0,0,0,.902);border-radius:4px;bottom:calc(100% + 4px);color:#fff;font-size:11px;left:50%;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;transform:translate(-50%);transition:opacity .2s;white-space:nowrap;z-index:1000}.waveform-marker.show-label .waveform-marker-tooltip,.waveform-marker:hover .waveform-marker-tooltip{opacity:1}.waveform-hover-time{background:rgba(0,0,0,.902);border-radius:4px;bottom:calc(100% + 4px);color:#fff;font-size:11px;font-variant-numeric:tabular-nums;padding:3px 7px;transform:translate(-50%);transition:opacity .15s;white-space:nowrap;z-index:1000}.waveform-hover-time,.waveform-seek-handle{opacity:0;pointer-events:none;position:absolute}.waveform-seek-handle{background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.349);height:11px;left:0;top:50%;transform:translate(-50%,-50%) scale(0);transition:opacity .12s ease,transform .12s ease;width:11px;z-index:6}.waveform-seek-handle.is-visible{opacity:1;transform:translate(-50%,-50%) scale(1)}.waveform-seek-handle.is-active{transform:translate(-50%,-50%) scale(1.25)}.waveform-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.waveform-marker:focus-visible{outline:2px solid currentColor;outline-offset:1px;width:4px}.waveform-speed{flex-shrink:0;position:relative}.speed-btn{background:transparent;border:1px solid hsla(0,0%,100%,.2);border-radius:4px;color:inherit;cursor:pointer;font-size:11px;min-width:40px;padding:4px 8px;transition:all .2s}.speed-btn:hover{background:hsla(0,0%,100%,.051);border-color:hsla(0,0%,100%,.302)}.speed-value{font-weight:600}.speed-menu{background:rgba(0,0,0,.949);border:1px solid hsla(0,0%,100%,.2);border-radius:6px;bottom:100%;margin-bottom:4px;min-width:60px;padding:4px;position:absolute;right:0;z-index:100}.speed-option{background:transparent;border:none;border-radius:4px;color:hsla(0,0%,100%,.702);cursor:pointer;display:block;font-size:12px;padding:6px 12px;text-align:left;transition:all .2s;width:100%}.speed-option:hover{background:hsla(0,0%,100%,.102);color:#fff}.speed-option.active{background:hsla(0,0%,100%,.161);color:#fff;font-weight:600}.waveform-player.waveform-focused{border-radius:4px;outline:2px solid var(--wfp-accent);outline-offset:2px}.waveform-player:focus{outline:none}.waveform-player:focus-visible{outline:1px solid var(--wfp-accent);outline-offset:1px}.waveform-layout-preview .waveform-meta{display:none!important}.waveform-layout-preview .waveform-info{justify-content:center}.waveform-layout-preview .waveform-text{align-items:center;flex:0 1 auto;text-align:center}.waveform-player.waveform-focused{outline:none}.waveform-track.waveform-align-top{align-items:flex-start}.waveform-track.waveform-align-top .waveform-btn{margin-top:5px}.waveform-track.waveform-align-center{align-items:center}.waveform-track.waveform-align-bottom{align-items:flex-end}.waveform-track.waveform-align-bottom .waveform-btn{margin-bottom:5px}@media (max-width:480px){.waveform-btn{height:var(--wfp-btn-size,32px);min-width:var(--wfp-btn-size,32px);width:var(--wfp-btn-size,32px)}.waveform-container{min-height:50px}.waveform-info{font-size:12px}.waveform-artist,.waveform-bpm,.waveform-time{font-size:10px}}@media (prefers-reduced-motion:reduce){.waveform-player *,.waveform-player :after,.waveform-player :before{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.wp-block-playlist{box-sizing:border-box}.wp-block-playlist .wp-block-playlist__waveform-player{margin:var(--wp--preset--spacing--20,.625em) 0;position:relative;width:100%}.wp-block-playlist .wp-block-playlist__waveform-player:focus-visible{outline:revert;outline-offset:revert}.wp-block-playlist .waveform-track{gap:0;height:100px}.wp-block-playlist .waveform-btn{background:currentColor;border:none;border-end-start-radius:.125rem;border-radius:0;border-start-start-radius:.125rem;height:100px;margin:0;min-width:100px;width:100px}.wp-block-playlist .waveform-btn:hover:not(:disabled){transform:none}.wp-block-playlist .waveform-btn svg{height:3rem;width:3rem}.wp-block-playlist .waveform-btn .waveform-icon-pause svg{height:2.625rem;width:2.625rem}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn{background-image:var(--wp--playlist--play-button-artwork);background-position:50%;background-size:cover;color:#fff}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn svg path{fill:#fff!important}.wp-block-playlist .waveform-track.waveform-align-bottom .waveform-btn{margin-bottom:0}.wp-block-playlist .waveform-btn:focus-visible,.wp-block-playlist .waveform-container:focus-visible{outline:revert;outline-offset:revert}.wp-block-playlist .waveform-artist{opacity:.7}.wp-block-playlist .waveform-artist,.wp-block-playlist .waveform-info,.wp-block-playlist .waveform-time,.wp-block-playlist .waveform-title{font-size:inherit}.wp-block-playlist .wp-block-playlist__tracklist{list-style:none;margin:0;padding-left:0}.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-artist-is-hidden .wp-block-playlist-track__artist,.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-is-hidden,.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-length-is-hidden .wp-block-playlist-track__length{display:none}.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-show-numbers{counter-reset:playlist-track}.wp-block-playlist-track:has([aria-current=true]){background-color:color-mix(in srgb,currentColor 10%,transparent)}.wp-block-playlist-track:hover{background-color:color-mix(in srgb,currentColor 15%,transparent)}.wp-block-playlist__tracklist-show-numbers .wp-block-playlist-track{counter-increment:playlist-track}.wp-block-playlist-track .wp-block-playlist-track__button{align-items:center;background-color:transparent;border:0;color:inherit;cursor:pointer;display:flex;font-family:inherit;font-size:inherit;outline-offset:2px;padding:var(--wp--preset--spacing--20,.5em);text-align:left;width:100%}.wp-block-playlist__tracklist-show-numbers .wp-block-playlist-track .wp-block-playlist-track__button:before{content:counter(playlist-track);font-size:.85em;margin-right:var(--wp--preset--spacing--20,.5em);opacity:.7;width:2ch}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__image{border:1px solid rgba(0,0,0,.08);box-sizing:border-box;flex:0 0 50px;height:50px;margin-right:var(--wp--preset--spacing--20,.5em);-o-object-fit:cover;object-fit:cover;width:50px}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__content{flex:1 1 0;min-width:0}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__title{display:block}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__artist{display:block;font-size:.85em;margin-top:.125em;opacity:.7}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__length{font-size:.85em;margin-left:auto;opacity:.7}.wp-block-post-author{box-sizing:border-box;display:flex;flex-wrap:wrap}.wp-block-post-author__byline{font-size:.5em;margin-bottom:0;margin-top:0;width:100%}.wp-block-post-author__avatar{margin-right:1em}.wp-block-post-author__bio{font-size:.7em;margin-bottom:.7em}.wp-block-post-author__content{flex-basis:0;flex-grow:1}.wp-block-post-author__name{margin:0}.wp-block-post-author-biography{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-post-comments-form input:not([type=submit])),:where(.wp-block-post-comments-form textarea){border:1px solid #949494;font-family:inherit;font-size:1em}:where(.wp-block-post-comments-form input:where(:not([type=submit]):not([type=checkbox]))),:where(.wp-block-post-comments-form textarea){padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form :where(input[type=submit]){box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-post-comments-count{box-sizing:border-box}.wp-block-post-content{display:flow-root}.wp-block-post-comments-link,.wp-block-post-date{box-sizing:border-box}:where(.wp-block-post-excerpt){box-sizing:border-box;margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-bottom:0;margin-top:0}.wp-block-post-excerpt__more-text{margin-bottom:0;margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__more-link{display:inline-block}.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block;height:100%}.wp-block-post-featured-image :where(img){box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:transparent}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}.wp-block-post-featured-image:where(.alignleft,.alignright){width:100%}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous{display:inline-block;margin-right:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next{display:inline-block;margin-left:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link.has-text-align-left[style*="writing-mode: vertical-lr"],.wp-block-post-navigation-link.has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-terms{box-sizing:border-box}.wp-block-post-terms .wp-block-post-terms__separator{white-space:pre-wrap}.wp-block-post-time-to-read,.wp-block-post-title{box-sizing:border-box}.wp-block-post-title{word-break:break-word}.wp-block-post-title :where(a){display:inline-block;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-decoration:inherit}.wp-block-post-author-name{box-sizing:border-box}.wp-block-preformatted{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-preformatted.has-background){padding:1.25em 2.375em}.wp-block-pullquote{box-sizing:border-box;margin:0 0 1em;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:left}.wp-block-pullquote.has-text-align-right blockquote{text-align:right}.wp-block-pullquote.has-text-align-center blockquote{text-align:center}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote :where(cite){color:inherit;display:block}.wp-block-post-template{box-sizing:border-box;list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid){grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:right;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:left;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-previous:first-child{margin-inline-end:auto}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow{display:inline-block;margin-right:1ch}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination .wp-block-query-pagination-next-arrow{display:inline-block;margin-left:1ch}.wp-block-query-pagination .wp-block-query-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination.aligncenter{justify-content:center}.wp-block-query-title,.wp-block-query-total,.wp-block-quote{box-sizing:border-box}.wp-block-quote{overflow-wrap:break-word}.wp-block-quote.is-large:where(:not(.is-style-plain)),.wp-block-quote.is-style-large:where(:not(.is-style-plain)){margin-bottom:1em;padding:0 1em}.wp-block-quote.is-large:where(:not(.is-style-plain)) p,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-large:where(:not(.is-style-plain)) footer,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) footer{font-size:1.125em;text-align:right}.wp-block-quote>cite{display:block}.wp-block-read-more{display:block;width:-moz-fit-content;width:fit-content}.wp-block-read-more:where(:not([style*=text-decoration])){text-decoration:none}.wp-block-read-more:where(:not([style*=text-decoration])):active,.wp-block-read-more:where(:not([style*=text-decoration])):focus{text-decoration:none}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0}ul.wp-block-rss.is-grid li{margin:0 1em 1em 0;width:100%}@media (min-width:600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;font-size:.8125em}.wp-block-rss{box-sizing:border-box;list-style:none;padding:0}.wp-block-search__button{margin-left:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{fill:currentColor;height:1.25em;min-height:24px;min-width:24px;vertical-align:text-bottom;width:1.25em}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button{box-sizing:border-box;display:flex;flex-shrink:0;justify-content:center;margin-left:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){-webkit-appearance:initial;-moz-appearance:initial;appearance:none;border:1px solid #949494;flex-grow:1;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){background-color:#fff;border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:right}.wp-block-separator{border:none;border-top:2px solid}:root :where(.wp-block-separator.is-style-dots){height:auto;line-height:1;text-align:center}:root :where(.wp-block-separator.is-style-dots):before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-separator.is-style-dots{background:none!important;border:none!important}.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}:root :where(.wp-block-site-logo.is-style-rounded){border-radius:9999px}.wp-block-site-tagline,.wp-block-site-title{box-sizing:border-box}.wp-block-site-title :where(a){color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-decoration:inherit}.wp-block-social-links{background:none;box-sizing:border-box;margin-left:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block}@media not (prefers-reduced-motion){.wp-block-social-link{transition:transform .1s ease}}.wp-block-social-link{height:auto}.wp-block-social-link a{align-items:center;display:flex;line-height:0}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{fill:currentColor;color:currentColor}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link{background-color:#f0f0f0;color:#444}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon{background-color:#f90;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance{background-color:#0757fe;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{background-color:#0a7aff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-discord{background-color:#5865f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy{background-color:#f45800;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook{background-color:#0866ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr{background-color:#0461dd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare{background-color:#e65678;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github{background-color:#24292d;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google{background-color:#ea4434;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{background-color:#1d4fc4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram{background-color:#f00075;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup{background-color:#f6405f;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest{background-color:#e60122;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket{background-color:#ef4155;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{background-color:#ff4500;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype{background-color:#0478d7;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat{stroke:#000;background-color:#fefc00;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify{background-color:#1bd760;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{background-color:#2aabee;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr{background-color:#011835;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch{background-color:#6440a4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk{background-color:#4680c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{background-color:#25d366;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp{background-color:#d32422;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube{background-color:red;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{background:none}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{height:1.25em;width:1.25em}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon{color:#f90}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp{color:#1ea0c3}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance{color:#0757fe}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{color:#0a7aff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen{color:#1e1f26}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart{color:#02e49b}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-discord{color:#5865f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble{color:#e94c89}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox{color:#4280ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy{color:#f45800}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook{color:#0866ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr{color:#0461dd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare{color:#e65678}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github{color:#24292d}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads{color:#382110}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google{color:#ea4434}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{color:#1d4fc4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram{color:#f00075}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm{color:#e21b24}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin{color:#0d66c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon{color:#3288d4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup{color:#f6405f}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest{color:#e60122}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket{color:#ef4155}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{color:#ff4500}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype{color:#0478d7}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat{stroke:#000;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud{color:#ff5600}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify{color:#1bd760}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{color:#2aabee}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr{color:#011835}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch{color:#6440a4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter{color:#1da1f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo{color:#1eb7ea}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk{color:#4680c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{color:#25d366}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress{color:#3499cd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{color:#d32422}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}:root :where(.wp-block-social-links .wp-social-link a){padding:.25em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){padding:0}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){padding-left:.6666666667em;padding-right:.6666666667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000}.wp-block-spacer{clear:both}.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud a{display:inline-block;margin-right:5px}.wp-block-tag-cloud span{display:inline-block;margin-left:5px;text-decoration:none}:root :where(.wp-block-tag-cloud.is-style-outline){display:flex;flex-wrap:wrap;gap:1ch}:root :where(.wp-block-tag-cloud.is-style-outline a){border:1px solid;font-size:unset!important;margin-right:0;padding:1ch 2ch;text-decoration:none!important}:where(.wp-block-tab-list button){-moz-appearance:none;appearance:none;-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:block;flex-basis:inherit!important;flex-grow:inherit!important;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:var(--wp--preset--spacing--20,.5em) var(--wp--preset--spacing--30,1em);position:relative;text-align:inherit;text-decoration:none;text-transform:inherit;width:-moz-max-content;width:max-content}:where(.wp-block-tab-list button)[aria-selected=true]:before{border-bottom:2px solid;bottom:0;content:"";left:0;pointer-events:none;position:absolute;width:100%}.wp-block-tab-panel:empty,.wp-block-tab-panel[hidden]{display:none!important}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{background-color:transparent;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table.is-style-stripes{border-bottom:1px solid #f0f0f0}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}:root :where(.wp-block-table-of-contents){box-sizing:border-box}.wp-block-tabs,.wp-block-term-count{box-sizing:border-box}:where(.wp-block-term-description){box-sizing:border-box;margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-term-description p{margin-bottom:0;margin-top:0}.wp-block-term-name{box-sizing:border-box}.wp-block-term-template{box-sizing:border-box;list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.3333333333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}pre.wp-block-verse{box-sizing:border-box;min-width:1em;overflow:auto;white-space:pre-wrap;word-break:break-word}:where(pre.wp-block-verse){font-family:inherit}.wp-block-video{box-sizing:border-box}.wp-block-video video{height:auto;vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{-o-object-fit:cover;object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-bottom:1em;margin-top:.5em}.editor-styles-wrapper,.entry-content{counter-reset:footnotes}a[data-fn].fn{counter-increment:footnotes;display:inline-flex;font-size:smaller;text-decoration:none;text-indent:-9999999px;vertical-align:super}a[data-fn].fn:after{content:"[" counter(footnotes) "]";float:left;text-indent:0}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:root .has-text-align-center{text-align:center}:root .has-text-align-left{text-align:left}:root .has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal!important}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style^=border-color],[style*=";border-color"],[style*="; border-color"]){border-style:solid}html :where([style^=border-top-color],[style*=";border-top-color"],[style*="; border-top-color"]){border-top-style:solid}html :where([style^=border-right-color],[style*=";border-right-color"],[style*="; border-right-color"]){border-right-style:solid}html :where([style^=border-bottom-color],[style*=";border-bottom-color"],[style*="; border-bottom-color"]){border-bottom-style:solid}html :where([style^=border-left-color],[style*=";border-left-color"],[style*="; border-left-color"]){border-left-style:solid}html :where([style^=border-width],[style*=";border-width"],[style*="; border-width"]){border-style:solid}html :where([style^=border-top-width],[style*=";border-top-width"],[style*="; border-top-width"]){border-top-style:solid}html :where([style^=border-right-width],[style*=";border-right-width"],[style*="; border-right-width"]){border-right-style:solid}html :where([style^=border-bottom-width],[style*=";border-bottom-width"],[style*="; border-bottom-width"]){border-bottom-style:solid}html :where([style^=border-left-width],[style*=";border-left-width"],[style*="; border-left-width"]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
\ No newline at end of file
+@charset "UTF-8";.wp-block-accordion{box-sizing:border-box}.wp-block-accordion-item.is-open>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon{transform:rotate(45deg)}@media (prefers-reduced-motion:no-preference){.wp-block-accordion-item{transition:grid-template-rows .3s ease-out}.wp-block-accordion-item>.wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon{transition:transform .2s ease-in-out}}.wp-block-accordion-heading__toggle{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;overflow:hidden;padding:var(--wp--preset--spacing--20,1em) 0;text-align:inherit;text-decoration:inherit;text-transform:inherit;width:100%;word-spacing:inherit}.wp-block-accordion-heading__toggle:not(:focus-visible){outline:none}.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title{text-decoration:underline}.wp-block-accordion-heading__toggle-title{flex:1}.wp-block-accordion-heading__toggle-icon{align-items:center;display:flex;height:1.2em;justify-content:center;width:1.2em}.wp-block-accordion-panel[hidden]{margin-block-start:0}.wp-block-archives{box-sizing:border-box}.wp-block-archives-dropdown label{display:block}.wp-block-avatar{line-height:0}.wp-block-avatar,.wp-block-avatar img{box-sizing:border-box}.wp-block-avatar.aligncenter{text-align:center}.wp-block-audio{box-sizing:border-box}.wp-block-audio :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-audio audio{min-width:300px;width:100%}.wp-block-breadcrumbs{box-sizing:border-box}.wp-block-breadcrumbs ol{flex-wrap:wrap;list-style:none}.wp-block-breadcrumbs li,.wp-block-breadcrumbs ol{align-items:center;display:flex;margin:0;padding:0}.wp-block-breadcrumbs li:not(:last-child):after{content:var(--separator,"/")/"";margin:0 .5em;opacity:.7}.wp-block-breadcrumbs span{color:inherit}.wp-block-button__link{align-content:center;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button[class*=wp-block-button__width]{width:calc(var(--wp--block-button--width)*1% - var(--wp--style--block-gap, .5em)*(1 - var(--wp--block-button--width)/100))}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button[class*=wp-block-button__width]{width:calc(var(--wp--block-button--width)*1%)}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}:root :where(.wp-block-button .wp-block-button__link.is-style-outline),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link){border:2px solid;padding:.667em 1.333em}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color)){color:currentColor}:root :where(.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background)),:root :where(.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background)){background-color:transparent;background-image:none}.wp-block-buttons{box-sizing:border-box}.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons .wp-block-button__link{width:100%}.wp-block-button.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar td,.wp-block-calendar th{border:1px solid;padding:.25em}.wp-block-calendar th{font-weight:400}.wp-block-calendar caption{background-color:inherit}.wp-block-calendar table{border-collapse:collapse;width:100%}.wp-block-calendar table.has-background th{background-color:inherit}.wp-block-calendar table.has-text-color th{color:inherit}.wp-block-calendar :where(table:not(.has-text-color)){color:#40464d}.wp-block-calendar :where(table:not(.has-text-color)) td,.wp-block-calendar :where(table:not(.has-text-color)) th{border-color:#ddd}:where(.wp-block-calendar table:not(.has-background) th){background:#ddd}.wp-block-categories{box-sizing:border-box}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-categories.wp-block-categories-dropdown.aligncenter{text-align:center}.wp-block-categories .wp-block-categories__label:not(.screen-reader-text){display:block;width:100%}.wp-block-code{box-sizing:border-box}.wp-block-code code{direction:ltr;display:block;font-family:inherit;overflow-wrap:break-word;text-align:initial;white-space:break-spaces}.wp-block-columns{box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.wp-block-columns{align-items:normal!important}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-post-comments{box-sizing:border-box}.wp-block-post-comments .alignleft{float:left}.wp-block-post-comments .alignright{float:right}.wp-block-post-comments .navigation:after{clear:both;content:"";display:table}.wp-block-post-comments .commentlist{clear:both;list-style:none;margin:0;padding:0}.wp-block-post-comments .commentlist .comment{min-height:2.25em;padding-left:3.25em}.wp-block-post-comments .commentlist .comment p{font-size:1em;line-height:1.8;margin:1em 0}.wp-block-post-comments .commentlist .children{list-style:none;margin:0;padding:0}.wp-block-post-comments .comment-author{line-height:1.5}.wp-block-post-comments .comment-author .avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;margin-top:.5em;width:2.5em}.wp-block-post-comments .comment-author cite{font-style:normal}.wp-block-post-comments .comment-meta{font-size:.875em;line-height:1.5}.wp-block-post-comments .comment-meta b{font-weight:400}.wp-block-post-comments .comment-meta .comment-awaiting-moderation{display:block;margin-bottom:1em;margin-top:1em}.wp-block-post-comments .comment-body .commentmetadata{font-size:.875em}.wp-block-post-comments .comment-form-author label,.wp-block-post-comments .comment-form-comment label,.wp-block-post-comments .comment-form-email label,.wp-block-post-comments .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments .comment-reply-title{margin-bottom:0}.wp-block-post-comments .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-post-comments .reply{font-size:.875em;margin-bottom:1.4em}.wp-block-post-comments input:not([type=submit]),.wp-block-post-comments textarea{border:1px solid #949494;font-family:inherit;font-size:1em}.wp-block-post-comments input:not([type=submit]):not([type=checkbox]),.wp-block-post-comments textarea{padding:calc(.667em + 2px)}:where(.wp-block-post-comments input[type=submit]){border:none}.wp-block-comments{box-sizing:border-box}.wp-block-comments-pagination>.wp-block-comments-pagination-next,.wp-block-comments-pagination>.wp-block-comments-pagination-numbers,.wp-block-comments-pagination>.wp-block-comments-pagination-previous{font-size:inherit}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow{display:inline-block;margin-right:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow{display:inline-block;margin-left:1ch}.wp-block-comments-pagination .wp-block-comments-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-comments-pagination.aligncenter{justify-content:center}.wp-block-comment-template{box-sizing:border-box;list-style:none;margin-bottom:0;max-width:100%;padding:0}.wp-block-comment-template li{clear:both}.wp-block-comment-template ol{list-style:none;margin-bottom:0;max-width:100%;padding-left:2rem}.wp-block-comment-template.alignleft{float:left}.wp-block-comment-template.aligncenter{margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.wp-block-comment-template.alignright{float:right}.wp-block-comment-date{box-sizing:border-box}.comment-awaiting-moderation{display:block;font-size:.875em;line-height:1.5}.wp-block-comment-author-name,.wp-block-comment-content,.wp-block-comment-edit-link,.wp-block-comment-reply-link{box-sizing:border-box}.wp-block-cover,.wp-block-cover-image{align-items:center;background-position:50%;box-sizing:border-box;display:flex;justify-content:center;min-height:430px;overflow:hidden;overflow:clip;padding:1em;position:relative}.wp-block-cover .has-background-dim:not([class*=-background-color]),.wp-block-cover-image .has-background-dim:not([class*=-background-color]),.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover .has-background-dim.has-background-gradient,.wp-block-cover-image .has-background-dim.has-background-gradient{background-color:transparent}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{background-color:inherit;content:""}.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before{bottom:0;left:0;opacity:.5;position:absolute;right:0;top:0}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__background,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0{opacity:0}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10{opacity:.1}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20{opacity:.2}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30{opacity:.3}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40{opacity:.4}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50{opacity:.5}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60{opacity:.6}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70{opacity:.7}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80{opacity:.8}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90{opacity:.9}.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:420px;width:100%}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container{color:inherit;position:relative;width:100%}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0}.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover .wp-block-cover__image-background,.wp-block-cover video.wp-block-cover__video-background,.wp-block-cover-image .wp-block-cover__image-background,.wp-block-cover-image video.wp-block-cover__video-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;-o-object-fit:cover;object-fit:cover;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background,.wp-block-cover-image .wp-block-cover__embed-background{border:none;bottom:0;box-shadow:none;height:100%;left:0;margin:0;max-height:none;max-width:none;outline:none;padding:0;pointer-events:none;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper,.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper{bottom:0;height:100%;left:0;margin:0;padding:0;position:absolute;right:0;top:0;width:100%}.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,.wp-block-cover .wp-block-cover__embed-background iframe,.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,.wp-block-cover-image .wp-block-cover__embed-background iframe{height:100vh;left:50%;min-height:100%;min-width:100%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);width:100vw}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:fixed;background-repeat:no-repeat;background-size:cover}@supports (-webkit-touch-callout:inherit){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax,.wp-block-cover__image-background.has-parallax,video.wp-block-cover__video-background.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated,.wp-block-cover__image-background.is-repeated,video.wp-block-cover__video-background.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover-image-text,.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-right:0;text-align:right}.wp-block-cover .wp-block-cover-text,.wp-block-cover-image .wp-block-cover-image-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;margin-bottom:0;max-width:840px;padding:.44em;text-align:center;z-index:1}:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)){color:#fff}:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)){color:#000}:root :where(.wp-block-cover h1:not(.has-text-color)),:root :where(.wp-block-cover h2:not(.has-text-color)),:root :where(.wp-block-cover h3:not(.has-text-color)),:root :where(.wp-block-cover h4:not(.has-text-color)),:root :where(.wp-block-cover h5:not(.has-text-color)),:root :where(.wp-block-cover h6:not(.has-text-color)),:root :where(.wp-block-cover p:not(.has-text-color)){color:inherit}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__video-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__embed-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__image-background{z-index:0}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__background,body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__gradient-background,body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)).has-background-dim:not(.has-background-gradient):before{z-index:1}body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__inner-container{z-index:1}.has-modal-open body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background+.wp-block-cover__inner-container)) .wp-block-cover__inner-container{z-index:auto}.wp-block-details{box-sizing:border-box}.wp-block-details summary{cursor:pointer}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-cover .wp-block-embed{min-height:240px;min-width:320px}.wp-block-group.is-layout-flex .wp-block-embed{flex:1 1 0%;min-width:0}.wp-block-embed{overflow-wrap:break-word}.wp-block-embed :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{box-sizing:border-box}.wp-block-file:not(.wp-element-button){font-size:.8em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file *+.wp-block-file__button{margin-left:.75em}:where(.wp-block-file){margin-bottom:1.5em}.wp-block-file__embed{margin-bottom:1em}:where(.wp-block-file__button){border-radius:2em;display:inline-block;padding:.5em 1em}:where(.wp-block-file__button):where(a):active,:where(.wp-block-file__button):where(a):focus,:where(.wp-block-file__button):where(a):hover,:where(.wp-block-file__button):where(a):visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-form-input__label{display:flex;flex-direction:column;gap:.25em;margin-bottom:.5em;width:100%}.wp-block-form-input__label.is-label-inline{align-items:center;flex-direction:row;gap:.5em}.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content{margin-bottom:.5em}.wp-block-form-input__label:has(input[type=checkbox]){flex-direction:row;width:-moz-fit-content;width:fit-content}.wp-block-form-input__label:has(input[type=checkbox]) .wp-block-form-input__label-content{margin:0}.wp-block-form-input__label:has(.wp-block-form-input__label-content+input[type=checkbox]){flex-direction:row-reverse}.wp-block-form-input__label-content{width:-moz-fit-content;width:fit-content}:where(.wp-block-form-input__input){font-size:1em;margin-bottom:.5em;padding:0 .5em}:where(.wp-block-form-input__input)[type=date],:where(.wp-block-form-input__input)[type=datetime-local],:where(.wp-block-form-input__input)[type=datetime],:where(.wp-block-form-input__input)[type=email],:where(.wp-block-form-input__input)[type=month],:where(.wp-block-form-input__input)[type=number],:where(.wp-block-form-input__input)[type=password],:where(.wp-block-form-input__input)[type=search],:where(.wp-block-form-input__input)[type=tel],:where(.wp-block-form-input__input)[type=text],:where(.wp-block-form-input__input)[type=time],:where(.wp-block-form-input__input)[type=url],:where(.wp-block-form-input__input)[type=week]{border-style:solid;border-width:1px;line-height:2;min-height:2em}textarea.wp-block-form-input__input{min-height:10em}.blocks-gallery-grid:not(.has-nested-images),.wp-block-gallery:not(.has-nested-images){display:flex;flex-wrap:wrap;list-style-type:none;margin:0;padding:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item{display:flex;flex-direction:column;flex-grow:1;justify-content:center;margin:0 1em 1em 0;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure{align-items:flex-end;display:flex;height:100%;justify-content:flex-start;margin:0}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img{display:block;height:auto;max-width:100%;width:auto}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption{background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);bottom:0;box-sizing:border-box;color:#fff;font-size:.8em;margin:0;max-height:100%;overflow:auto;padding:3em .77em .7em;position:absolute;text-align:center;width:100%;z-index:2}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid:not(.has-nested-images) figcaption,.wp-block-gallery:not(.has-nested-images) figcaption{flex-grow:1}.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img{flex:1;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item{margin-right:0;width:100%}@media (min-width:600px){.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item{margin-right:1em;width:calc(33.33333% - .66667em)}.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item{margin-right:1em;width:calc(25% - .75em)}.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item{margin-right:1em;width:calc(20% - .8em)}.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item{margin-right:1em;width:calc(16.66667% - .83333em)}.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item{margin-right:1em;width:calc(14.28571% - .85714em)}.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image,.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item{margin-right:1em;width:calc(12.5% - .875em)}.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child{margin-right:0}.blocks-gallery-grid:not(.has-nested-images).alignleft,.blocks-gallery-grid:not(.has-nested-images).alignright,.wp-block-gallery:not(.has-nested-images).alignleft,.wp-block-gallery:not(.has-nested-images).alignright{max-width:420px;width:100%}.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure,.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-gallery:not(.is-cropped) .blocks-gallery-item{align-self:flex-start}figure.wp-block-gallery.has-nested-images{align-items:normal}.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image){margin:0;width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)/2)}.wp-block-gallery.has-nested-images figure.wp-block-image{box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;max-width:100%;position:relative}.wp-block-gallery.has-nested-images figure.wp-block-image>a,.wp-block-gallery.has-nested-images figure.wp-block-image>div{flex-direction:column;flex-grow:1;margin:0}.wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;height:auto;max-width:100%!important;width:auto}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{bottom:0;left:0;max-height:100%;position:absolute;right:0}.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{backdrop-filter:blur(3px);content:"";height:100%;-webkit-mask-image:linear-gradient(0deg,#000 20%,transparent);mask-image:linear-gradient(0deg,#000 20%,transparent);max-height:3em;pointer-events:none}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{box-sizing:border-box;color:#fff;font-size:13px;margin:0;overflow:auto;padding:1em;text-align:center;text-shadow:0 0 1.5px #000}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar{height:12px;width:12px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track{background-color:transparent}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb{background-color:hsla(0,0%,100%,.8)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within,.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover{scrollbar-color:hsla(0,0%,100%,.8) transparent}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{will-change:transform}@media (hover:none){.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{scrollbar-color:hsla(0,0%,100%,.8) transparent}}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{background:linear-gradient(0deg,rgba(0,0,0,.4),transparent)}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img{display:inline}.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a{color:inherit}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>a,.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border>div,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>a,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded>div{flex:1 1 auto}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption{background:none;color:inherit;flex:initial;margin:0;padding:10px 10px 9px;position:relative;text-shadow:none}.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border:before,.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded:before{content:none}.wp-block-gallery.has-nested-images figcaption{flex-basis:100%;flex-grow:1;text-align:center}.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){margin-bottom:auto;margin-top:0}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){align-self:inherit}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image)>div:not(.components-drop-zone){display:flex}.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img{flex:1 0 0%;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image){width:100%}@media (min-width:600px){.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image){width:calc(33.33333% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){width:calc(25% - var(--wp--style--unstable-gallery-gap, 16px)*.75)}.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image){width:calc(20% - var(--wp--style--unstable-gallery-gap, 16px)*.8)}.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image){width:calc(16.66667% - var(--wp--style--unstable-gallery-gap, 16px)*.83333)}.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image){width:calc(14.28571% - var(--wp--style--unstable-gallery-gap, 16px)*.85714)}.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image){width:calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px)*.875)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image){width:calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px)*.66667)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image){width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)*.5)}.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:last-child{width:100%}}.wp-block-gallery.has-nested-images.alignleft,.wp-block-gallery.has-nested-images.alignright{max-width:420px;width:100%}.wp-block-gallery.has-nested-images.aligncenter{justify-content:center}.wp-block-group{box-sizing:border-box}:where(.wp-block-group.wp-block-group-is-layout-constrained){position:relative}h1:where(.wp-block-heading).has-background,h2:where(.wp-block-heading).has-background,h3:where(.wp-block-heading).has-background,h4:where(.wp-block-heading).has-background,h5:where(.wp-block-heading).has-background,h6:where(.wp-block-heading).has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg}.wp-block-icon{line-height:0}.wp-block-icon.aligncenter{display:flex;justify-content:center}.wp-block-icon svg{fill:currentColor;box-sizing:border-box}.wp-block-icon svg.is-flip-horizontal{transform:scaleX(-1)}.wp-block-icon svg.is-flip-vertical{transform:scaleY(-1)}.wp-block-icon svg.is-flip-horizontal.is-flip-vertical{transform:scaleX(-1) scaleY(-1)}:where(.wp-block-icon) svg{height:100%;width:100%}.wp-block-image>a,.wp-block-image>figure>a{display:inline-block}.wp-block-image img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}@media not (prefers-reduced-motion){.wp-block-image img.hide{visibility:hidden}.wp-block-image img.show{animation:show-content-image .4s}}.wp-block-image[style*=border-radius] img,.wp-block-image[style*=border-radius]>a{border-radius:inherit}.wp-block-image.has-custom-border img{box-sizing:border-box}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull>a,.wp-block-image.alignwide>a{width:100%}.wp-block-image.alignfull img,.wp-block-image.alignwide img{height:auto;width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright,.wp-block-image.aligncenter,.wp-block-image.alignleft,.wp-block-image.alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption,.wp-block-image.aligncenter>figcaption,.wp-block-image.alignleft>figcaption,.wp-block-image.alignright>figcaption{caption-side:bottom;display:table-caption}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image :where(figcaption){margin-bottom:1em;margin-top:.5em}.wp-block-image.is-style-circle-mask img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.wp-block-image.is-style-circle-mask img{border-radius:0;-webkit-mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-image:url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');mask-mode:alpha;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}}:root :where(.wp-block-image.is-style-rounded img,.wp-block-image .is-style-rounded img){border-radius:9999px}.wp-block-image figure{margin:0}.wp-lightbox-container{display:flex;flex-direction:column;position:relative}.wp-lightbox-container img{cursor:zoom-in}.wp-lightbox-container img:hover+button{opacity:1}.wp-lightbox-container button{align-items:center;backdrop-filter:blur(16px) saturate(180%);background-color:rgba(90,90,90,.25);border:none;border-radius:4px;cursor:zoom-in;display:flex;height:20px;justify-content:center;opacity:0;padding:0;position:absolute;right:16px;text-align:center;top:16px;width:20px;z-index:100}@media not (prefers-reduced-motion){.wp-lightbox-container button{transition:opacity .2s ease}}.wp-lightbox-container button:focus-visible{outline:3px auto rgba(90,90,90,.25);outline:3px auto -webkit-focus-ring-color;outline-offset:3px}.wp-lightbox-container button:hover{cursor:pointer;opacity:1}.wp-lightbox-container button:focus{opacity:1}.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){background-color:rgba(90,90,90,.25);border:none}.wp-lightbox-overlay{box-sizing:border-box;cursor:zoom-out;height:100vh;left:0;overflow:hidden;position:fixed;top:0;visibility:hidden;width:100%;z-index:100000}.wp-lightbox-overlay .wp-lightbox-close-button{align-items:center;cursor:pointer;display:flex;font-family:inherit;gap:8px;justify-content:center;line-height:1;min-height:40px;min-width:40px;padding:0 4px;position:absolute;right:calc(env(safe-area-inset-right) + 16px);top:calc(env(safe-area-inset-top) + 16px);z-index:5000000}.wp-lightbox-overlay .wp-lightbox-close-button:focus,.wp-lightbox-overlay .wp-lightbox-close-button:hover,.wp-lightbox-overlay .wp-lightbox-close-button:not(:hover):not(:active):not(.has-background){background:none;border:none}.wp-lightbox-overlay .wp-lightbox-close-button:has(.wp-lightbox-close-text:not([hidden])) .wp-lightbox-close-icon svg{height:1em;width:1em}.wp-lightbox-overlay .wp-lightbox-close-icon svg{display:block}.wp-lightbox-overlay .wp-lightbox-navigation-button-next,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{align-items:center;bottom:16px;cursor:pointer;display:flex;font-family:inherit;gap:4px;justify-content:center;line-height:1;min-height:40px;min-width:40px;padding:0 8px;position:absolute;z-index:2000002}.wp-lightbox-overlay .wp-lightbox-navigation-button-next[hidden],.wp-lightbox-overlay .wp-lightbox-navigation-button-prev[hidden]{display:none}@media (min-width:960px){.wp-lightbox-overlay .wp-lightbox-navigation-button-next,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{bottom:50%;transform:translateY(-50%)}}.wp-lightbox-overlay .wp-lightbox-navigation-button-next:focus,.wp-lightbox-overlay .wp-lightbox-navigation-button-next:hover,.wp-lightbox-overlay .wp-lightbox-navigation-button-next:not(:hover):not(:active):not(.has-background),.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:focus,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:hover,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:not(:hover):not(:active):not(.has-background){background:none;border:none;padding:0 8px}.wp-lightbox-overlay .wp-lightbox-navigation-button-next:has(.wp-lightbox-navigation-text:not([hidden])) .wp-lightbox-navigation-icon svg,.wp-lightbox-overlay .wp-lightbox-navigation-button-prev:has(.wp-lightbox-navigation-text:not([hidden])) .wp-lightbox-navigation-icon svg{display:block;height:1.5em;width:1.5em}.wp-lightbox-overlay .wp-lightbox-navigation-button-prev{left:calc(env(safe-area-inset-left) + 16px)}.wp-lightbox-overlay .wp-lightbox-navigation-button-next{right:calc(env(safe-area-inset-right) + 16px)}.wp-lightbox-overlay .wp-lightbox-navigation-icon svg{vertical-align:middle}.wp-lightbox-overlay .lightbox-image-container{height:var(--wp--lightbox-container-height);left:50%;overflow:hidden;position:absolute;top:50%;transform:translate(-50%,-50%);transform-origin:top left;width:var(--wp--lightbox-container-width);z-index:2000001}.wp-lightbox-overlay .wp-block-image{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin:0;position:relative;transform-origin:0 0;width:100%;z-index:3000000}.wp-lightbox-overlay .wp-block-image img{height:var(--wp--lightbox-image-height);min-height:var(--wp--lightbox-image-height);min-width:var(--wp--lightbox-image-width);width:var(--wp--lightbox-image-width)}.wp-lightbox-overlay .wp-block-image figcaption{display:none}.wp-lightbox-overlay button{background:none;border:none}.wp-lightbox-overlay .scrim{background-color:#fff;height:100%;opacity:.9;position:absolute;width:100%;z-index:2000000}.wp-lightbox-overlay.active{visibility:visible}@media not (prefers-reduced-motion){.wp-lightbox-overlay.active{animation:turn-on-visibility .25s both}.wp-lightbox-overlay.active img{animation:turn-on-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active){animation:turn-off-visibility .35s both}.wp-lightbox-overlay.show-closing-animation:not(.active) img{animation:turn-off-visibility .25s both}.wp-lightbox-overlay.zoom.active{animation:none;opacity:1;visibility:visible}.wp-lightbox-overlay.zoom.active .lightbox-image-container{animation:lightbox-zoom-in .4s}.wp-lightbox-overlay.zoom.active .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.active .scrim{animation:turn-on-visibility .4s forwards}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active){animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container{animation:lightbox-zoom-out .4s}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img{animation:none}.wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim{animation:turn-off-visibility .4s forwards}}@keyframes show-content-image{0%{visibility:hidden}99%{visibility:hidden}to{visibility:visible}}@keyframes turn-on-visibility{0%{opacity:0}to{opacity:1}}@keyframes turn-off-visibility{0%{opacity:1;visibility:visible}99%{opacity:0;visibility:visible}to{opacity:0;visibility:hidden}}@keyframes lightbox-zoom-in{0%{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale))}to{transform:translate(-50%,-50%) scale(1)}}@keyframes lightbox-zoom-out{0%{transform:translate(-50%,-50%) scale(1);visibility:visible}99%{visibility:visible}to{transform:translate(calc((-100vw + var(--wp--lightbox-scrollbar-width))/2 + var(--wp--lightbox-initial-left-position)),calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));visibility:hidden}}:where(.wp-block-latest-comments){padding-left:0}ol.wp-block-latest-comments{box-sizing:border-box;margin-left:0}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment)){line-height:1.1}:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:1.8}.has-dates :where(.wp-block-latest-comments:not([style*=line-height])),.has-excerpts :where(.wp-block-latest-comments:not([style*=line-height])){line-height:1.5}.wp-block-latest-comments__comment{list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{list-style:none;min-height:2.25em}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:3.25em}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-comments[class*=-font-size] a,.wp-block-latest-comments[style*=font-size] a{font-size:inherit}.wp-block-latest-posts{box-sizing:border-box}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both;overflow-wrap:break-word}.wp-block-latest-posts.is-grid:not(.is-layout-grid){display:flex;flex-wrap:wrap}.wp-block-latest-posts.is-grid:not(.is-layout-grid) li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2:not(.is-layout-grid) li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2:not(.is-layout-grid) li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3:not(.is-layout-grid) li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3:not(.is-layout-grid) li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4:not(.is-layout-grid) li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4:not(.is-layout-grid) li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5:not(.is-layout-grid) li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5:not(.is-layout-grid) li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6:not(.is-layout-grid) li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6:not(.is-layout-grid) li:nth-child(6n){margin-right:0}}@media (max-width:600px){.wp-block-latest-posts-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid){grid-template-columns:1fr}}:root :where(.wp-block-latest-posts.is-grid){padding:0}:root :where(.wp-block-latest-posts.wp-block-latest-posts__list){padding-left:0}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;font-size:.8125em}.wp-block-latest-posts__post-excerpt,.wp-block-latest-posts__post-full-content{margin-bottom:1em;margin-top:.5em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;max-width:100%;width:auto}.wp-block-latest-posts__featured-image.alignleft{float:left;margin-right:1em}.wp-block-latest-posts__featured-image.alignright{float:right;margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}ol,ul{box-sizing:border-box}:root :where(.wp-block-list.has-background){padding:1.25em 2.375em}.wp-block-loginout{box-sizing:border-box}.wp-block-math{overflow-x:auto;overflow-y:hidden}.wp-block-media-text{box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:50% 1fr;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media{align-self:start}.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media,.wp-block-media-text>.wp-block-media-text__content,.wp-block-media-text>.wp-block-media-text__media{align-self:center}.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom>.wp-block-media-text__media{align-self:end}.wp-block-media-text>.wp-block-media-text__media{grid-column:1;grid-row:1;margin:0}.wp-block-media-text>.wp-block-media-text__content{direction:ltr;grid-column:2;grid-row:1;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__media{grid-column:2;grid-row:1}.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content{grid-column:1;grid-row:1}.wp-block-media-text__media a{display:block}.wp-block-media-text__media img,.wp-block-media-text__media video{height:auto;max-width:unset;vertical-align:middle;width:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media{background-size:cover;height:100%;min-height:250px}.wp-block-media-text.is-image-fill>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill>.wp-block-media-text__media img{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media{height:100%;min-height:250px;position:relative}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media>a{display:block;height:100%}.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media img{height:100%;-o-object-fit:cover;object-fit:cover;position:absolute;width:100%}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__media{grid-column:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{grid-column:1;grid-row:2}}.wp-block-navigation{position:relative}.wp-block-navigation ul{margin-bottom:0;margin-left:0;margin-top:0;padding-left:0}.wp-block-navigation ul,.wp-block-navigation ul li{list-style:none}.wp-block-navigation .wp-block-navigation-item{align-items:center;display:flex;position:relative}.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty{display:none}.wp-block-navigation .wp-block-navigation-item__content{display:block;z-index:1}.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus{text-decoration:underline}.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active,.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus{text-decoration:line-through}.wp-block-navigation :where(a),.wp-block-navigation :where(a:active),.wp-block-navigation :where(a:focus){text-decoration:none}.wp-block-navigation .wp-block-navigation__submenu-icon{align-self:center;background-color:inherit;border:none;color:currentColor;display:inline-block;font-size:inherit;height:.6em;line-height:0;margin-left:.25em;padding:0;width:.6em}.wp-block-navigation .wp-block-navigation__submenu-icon svg{stroke:currentColor;display:inline-block;height:inherit;margin-top:.075em;width:inherit}.wp-block-navigation{--navigation-layout-justification-setting:flex-start;--navigation-layout-direction:row;--navigation-layout-wrap:wrap;--navigation-layout-justify:flex-start;--navigation-layout-align:center}.wp-block-navigation.is-vertical{--navigation-layout-direction:column;--navigation-layout-justify:initial;--navigation-layout-align:flex-start}.wp-block-navigation.no-wrap{--navigation-layout-wrap:nowrap}.wp-block-navigation.items-justified-center{--navigation-layout-justification-setting:center;--navigation-layout-justify:center}.wp-block-navigation.items-justified-center.is-vertical{--navigation-layout-align:center}.wp-block-navigation.items-justified-right{--navigation-layout-justification-setting:flex-end;--navigation-layout-justify:flex-end}.wp-block-navigation.items-justified-right.is-vertical{--navigation-layout-align:flex-end}.wp-block-navigation.items-justified-space-between{--navigation-layout-justification-setting:space-between;--navigation-layout-justify:space-between}:where(.wp-block-navigation) ul li{padding:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{align-items:normal;background-color:inherit;color:inherit;display:flex;flex-direction:column;opacity:0;position:absolute;z-index:2}@media not (prefers-reduced-motion){.wp-block-navigation .has-child .wp-block-navigation__submenu-container{transition:opacity .1s linear}}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{height:0;overflow:hidden;visibility:hidden;width:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;flex-grow:1;padding:.5em 1em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content .wp-block-navigation__submenu-icon{margin-left:auto;margin-right:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{margin:0}.wp-block-navigation .has-child .wp-block-navigation__submenu-container{left:-1px;top:100%}@media (min-width:782px){.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:-1px}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container:before{background:transparent;content:"";display:block;height:100%;position:absolute;right:100%;width:.5em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon{margin-right:.25em}.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg{transform:rotate(-90deg)}}@media (hover:hover){.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}}.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container{height:auto;min-width:200px;opacity:1;overflow:visible;visibility:visible;width:auto}.wp-block-navigation .has-child.open-always{align-items:var(--navigation-layout-align,initial);flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);gap:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always,.wp-block-navigation .has-child.open-always .wp-block-navigation-item{justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container,.wp-block-navigation .has-child.open-always.wp-block-navigation-submenu{gap:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always .wp-block-navigation-item,.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container,.wp-block-navigation .has-child.open-always.wp-block-navigation-submenu{padding-bottom:0;padding-top:0}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container{padding-left:var(--wp--style--block-gap,2em);padding-right:var(--wp--style--block-gap,2em)}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:0}.wp-block-navigation .has-child.open-always .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content,.wp-block-navigation .has-child.open-always>.wp-block-navigation-item__content{flex-grow:0}.wp-block-navigation .has-child.open-always>.wp-block-navigation__submenu-container{background-color:transparent;border:none;color:inherit;flex-basis:100%;height:auto;opacity:1;overflow:visible;position:static;visibility:visible;width:auto}.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container{left:0;top:100%}@media (min-width:782px){.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:100%;top:0}}.wp-block-navigation-submenu{display:flex;position:relative}.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg{stroke:currentColor}button.wp-block-navigation-item__content{background-color:transparent;border:none;color:currentColor;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-align:left;text-transform:inherit}.wp-block-navigation-submenu__toggle{cursor:pointer}.wp-block-navigation-submenu__toggle[aria-expanded=true]+.wp-block-navigation__submenu-icon>svg,.wp-block-navigation-submenu__toggle[aria-expanded=true]>svg{transform:rotate(180deg)}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle{padding-left:0;padding-right:.85em}.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle+.wp-block-navigation__submenu-icon{margin-left:-.6em;pointer-events:none}.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle){padding:0}.wp-block-navigation .wp-block-page-list,.wp-block-navigation__container,.wp-block-navigation__responsive-close,.wp-block-navigation__responsive-container,.wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-dialog{gap:inherit}:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)){padding:.5em 1em}:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content){padding:.5em 1em}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container{left:auto;right:0}.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:-1px;right:-1px}@media (min-width:782px){.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{left:auto;right:100%}}.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container{background-color:#fff;border:1px solid rgba(0,0,0,.15)}.wp-block-navigation.has-background .wp-block-navigation__submenu-container{background-color:inherit}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container{color:#000}.wp-block-navigation__container{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial);list-style:none;margin:0;padding-left:0}.wp-block-navigation__container .is-responsive{display:none}.wp-block-navigation__container:only-child,.wp-block-page-list:only-child{flex-grow:1}@keyframes overlay-menu__fade-in-animation{0%{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:translateY(0)}}.wp-block-navigation__responsive-container{bottom:0;display:none;left:0;position:fixed;right:0;top:0}.wp-block-navigation__responsive-container :where(.wp-block-navigation-item a){color:inherit}.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-align,initial);display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open){background-color:inherit!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open{background-color:inherit;display:flex;flex-direction:column}@media not (prefers-reduced-motion){.wp-block-navigation__responsive-container.is-menu-open{animation:overlay-menu__fade-in-animation .1s ease-out;animation-fill-mode:forwards}}.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){padding:clamp(1rem,var(--wp--style--root--padding-top),20rem) clamp(1rem,var(--wp--style--root--padding-right),20rem) clamp(1rem,var(--wp--style--root--padding-bottom),20rem) clamp(1rem,var(--wp--style--root--padding-left),20rem)}.wp-block-navigation__responsive-container.is-menu-open{overflow:auto;z-index:100000}.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content{padding-top:calc(2rem + 24px)}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content{align-items:var(--navigation-layout-justification-setting,inherit);display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-page-list{justify-content:flex-start}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon{display:none}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container{border:none;height:auto;min-width:200px;opacity:1;overflow:initial;padding-left:2rem;padding-right:2rem;position:static;visibility:visible;width:auto}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{gap:inherit}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container{padding-top:var(--wp--style--block-gap,2em)}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{padding:0}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .wp-block-page-list{align-items:var(--navigation-layout-justification-setting,initial);display:flex;flex-direction:column}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation-item,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation-item .wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__container,.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-page-list{background:transparent!important;color:inherit!important}.wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:auto;right:auto}.wp-block-navigation__responsive-container.disable-default-overlay .wp-block-navigation__overlay-container{display:none;width:100%}.wp-block-navigation__responsive-container.disable-default-overlay .wp-block-navigation__responsive-close{max-width:none}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content>:not(.wp-block-navigation__overlay-container){display:none}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__overlay-container{display:block}.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__overlay-container .wp-block-navigation__submenu-container{left:0;right:auto}@media (min-width:600px){.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){background-color:inherit;display:block;position:relative;width:100%;z-index:auto}.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close{display:none}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container{left:0}}.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){background-color:#fff}.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){color:#000}.wp-block-navigation__toggle_button_label{font-size:1rem;font-weight:700}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{background:transparent;border:none;color:currentColor;cursor:pointer;margin:0;padding:0;text-transform:inherit;vertical-align:middle}.wp-block-navigation__responsive-container-close svg,.wp-block-navigation__responsive-container-open svg{fill:currentColor;display:block;height:24px;pointer-events:none;width:24px}.wp-block-navigation__responsive-container-open{display:flex}.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open{font-family:inherit;font-size:inherit;font-weight:inherit}@media (min-width:600px){.wp-block-navigation__responsive-container-open:not(.always-shown){display:none}}.wp-block-navigation__responsive-container-close{position:absolute;right:0;top:0;z-index:2}.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close{font-family:inherit;font-size:inherit;font-weight:inherit}.disable-default-overlay .wp-block-navigation__responsive-container-close{right:clamp(1rem,var(--wp--style--root--padding-left),20rem);top:clamp(1rem,var(--wp--style--root--padding-left),20rem)}.wp-block-navigation__responsive-close{width:100%}.has-modal-open .wp-block-navigation__responsive-close{margin-left:auto;margin-right:auto;max-width:var(--wp--style--global--wide-size,100%)}.wp-block-navigation__responsive-close:focus{outline:none}.is-menu-open .wp-block-navigation__responsive-close,.is-menu-open .wp-block-navigation__responsive-container-content,.is-menu-open .wp-block-navigation__responsive-dialog{box-sizing:border-box}.wp-block-navigation__responsive-dialog{position:relative}.has-modal-open .admin-bar .is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-dialog{margin-top:46px}@media (min-width:782px){.has-modal-open .admin-bar .is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-dialog{margin-top:32px}}html.has-modal-open{overflow:hidden}.wp-block-navigation .wp-block-navigation-item__label{overflow-wrap:break-word}.wp-block-navigation .wp-block-navigation-item__description{display:none}.link-ui-tools{outline:1px solid #f0f0f0;padding:8px}.link-ui-block-inserter{padding-top:8px}.link-ui-block-inserter__back{margin-left:8px;text-transform:uppercase}:where(.wp-block-navigation-overlay-close){color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-transform:inherit}.wp-block-navigation-overlay-close{align-items:center;background:transparent;border:none;cursor:pointer;display:inline-flex;gap:.5em;justify-content:center;padding:0;text-decoration:none}.wp-block-navigation-overlay-close:focus{outline-offset:2px}.wp-block-navigation-overlay-close svg{fill:currentColor;display:block;flex-shrink:0;height:24px;width:24px}.wp-block-navigation-overlay-close .wp-block-navigation-overlay-close__text{align-items:center;display:inline-flex}.wp-block-navigation .wp-block-page-list{align-items:var(--navigation-layout-align,initial);background-color:inherit;display:flex;flex-direction:var(--navigation-layout-direction,initial);flex-wrap:var(--navigation-layout-wrap,wrap);justify-content:var(--navigation-layout-justify,initial)}.wp-block-navigation .wp-block-navigation-item{background-color:inherit}.wp-block-page-list{box-sizing:border-box}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em .1em 0 0;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}.waveform-player{--wfp-accent:#71717a;--wfp-button-color:hsla(0,0%,100%,.9);--wfp-text-color:#fff;--wfp-text-secondary-color:hsla(0,0%,100%,.6);--wfp-btn-artwork-color:hsla(0,0%,100%,.9);--wfp-btn-artwork-scrim:rgba(0,0,0,.5);color:inherit;font-family:inherit;line-height:var(--waveform-line-height,1.4)}.waveform-player.waveform-theme-light{--wfp-button-color:rgba(0,0,0,.8);--wfp-text-color:#333;--wfp-text-secondary-color:rgba(0,0,0,.6)}.waveform-player *{box-sizing:border-box}.waveform-body{display:flex;flex-direction:column;gap:var(--waveform-body-gap,8px)}.waveform-track{gap:var(--waveform-track-gap,12px);position:relative}.waveform-btn,.waveform-track{align-items:center;display:flex}.waveform-btn{background:transparent;border:2px solid;border-radius:var(--wfp-btn-radius,50%);color:var(--wfp-button-color,inherit);cursor:pointer;flex-shrink:0;height:var(--wfp-btn-size,36px);justify-content:center;min-width:var(--wfp-btn-size,36px);opacity:.9;padding:0;transition:all .2s ease;width:var(--wfp-btn-size,36px)}.waveform-btn:hover:not(:disabled){opacity:1;transform:scale(1.05)}.waveform-btn-minimal{border:none;border-radius:0;height:calc(var(--wfp-btn-size, 36px)*1.1);min-width:calc(var(--wfp-btn-size, 36px)*1.1);opacity:.7;width:calc(var(--wfp-btn-size, 36px)*1.1)}.waveform-btn-minimal:hover:not(:disabled){opacity:1;transform:none}.waveform-btn.waveform-btn-minimal svg{height:calc(var(--wfp-btn-size, 36px)*.94);width:calc(var(--wfp-btn-size, 36px)*.94)}.waveform-btn:disabled{cursor:not-allowed;opacity:.3}.waveform-btn>*{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.waveform-btn svg{fill:currentColor;display:block;height:calc(var(--wfp-btn-size, 36px)*.45);width:calc(var(--wfp-btn-size, 36px)*.45)}.waveform-btn-has-artwork{--wfp-btn-size:64px;--wfp-btn-radius:8px;border:none;color:var(--wfp-btn-artwork-color);overflow:hidden;position:relative}.waveform-btn>.waveform-btn-artwork{display:block;height:100%;inset:0;-o-object-fit:cover;object-fit:cover;pointer-events:none;position:absolute;width:100%;z-index:0}.waveform-btn-has-artwork:after{background:var(--wfp-btn-artwork-scrim);content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.waveform-btn-has-artwork>:not(.waveform-btn-artwork){position:relative;z-index:2}.waveform-icon-play svg{margin-left:1px}.waveform-container{cursor:pointer;flex:1;min-height:60px;min-width:0;position:relative;width:100%}.waveform-container:focus-visible{outline:2px solid currentColor}.waveform-container canvas{display:block;height:100%;max-width:100%;position:relative;transition:opacity .3s ease;width:100%;z-index:1}.waveform-info{align-items:center;display:flex;font-size:13px;gap:8px;min-height:20px}.waveform-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}.waveform-title{color:var(--wfp-text-color);font-weight:500}.waveform-artist,.waveform-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.waveform-artist{color:var(--wfp-text-secondary-color);font-size:11px}.waveform-bpm,.waveform-time{color:var(--wfp-text-secondary-color);flex-shrink:0;font-size:11px;white-space:nowrap}.waveform-bpm{align-items:center;display:inline-flex;gap:4px}.waveform-loading{background:rgba(0,0,0,.102)}.waveform-error,.waveform-loading{inset:0;position:absolute;z-index:10}.waveform-error{align-items:center;background:rgba(0,0,0,.2);display:flex;justify-content:center}.waveform-error-text{font-size:12px;opacity:.7;padding:0 20px;text-align:center}.waveform-markers{inset:0;pointer-events:none;position:absolute;z-index:5}.waveform-marker{background:hsla(0,0%,100%,.502);border:none;cursor:pointer;height:100%;padding:0;pointer-events:all;position:absolute;top:0;transition:all .2s;width:2px}.waveform-marker:hover{width:4px;z-index:20}.waveform-marker.active{background:currentColor;width:4px;z-index:10}.waveform-marker-tooltip{background:rgba(0,0,0,.902);border-radius:4px;bottom:calc(100% + 4px);color:#fff;font-size:11px;left:50%;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;transform:translate(-50%);transition:opacity .2s;white-space:nowrap;z-index:1000}.waveform-marker.show-label .waveform-marker-tooltip,.waveform-marker:hover .waveform-marker-tooltip{opacity:1}.waveform-hover-time{background:rgba(0,0,0,.902);border-radius:4px;bottom:calc(100% + 4px);color:#fff;font-size:11px;font-variant-numeric:tabular-nums;padding:3px 7px;transform:translate(-50%);transition:opacity .15s;white-space:nowrap;z-index:1000}.waveform-hover-time,.waveform-seek-handle{opacity:0;pointer-events:none;position:absolute}.waveform-seek-handle{background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.349);height:11px;left:0;top:50%;transform:translate(-50%,-50%) scale(0);transition:opacity .12s ease,transform .12s ease;width:11px;z-index:6}.waveform-seek-handle.is-visible{opacity:1;transform:translate(-50%,-50%) scale(1)}.waveform-seek-handle.is-active{transform:translate(-50%,-50%) scale(1.25)}.waveform-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.waveform-marker:focus-visible{outline:2px solid currentColor;outline-offset:1px;width:4px}.waveform-speed{flex-shrink:0;position:relative}.speed-btn{background:transparent;border:1px solid hsla(0,0%,100%,.2);border-radius:4px;color:inherit;cursor:pointer;font-size:11px;min-width:40px;padding:4px 8px;transition:all .2s}.speed-btn:hover{background:hsla(0,0%,100%,.051);border-color:hsla(0,0%,100%,.302)}.speed-value{font-weight:600}.speed-menu{background:rgba(0,0,0,.949);border:1px solid hsla(0,0%,100%,.2);border-radius:6px;bottom:100%;margin-bottom:4px;min-width:60px;padding:4px;position:absolute;right:0;z-index:100}.speed-option{background:transparent;border:none;border-radius:4px;color:hsla(0,0%,100%,.702);cursor:pointer;display:block;font-size:12px;padding:6px 12px;text-align:left;transition:all .2s;width:100%}.speed-option:hover{background:hsla(0,0%,100%,.102);color:#fff}.speed-option.active{background:hsla(0,0%,100%,.161);color:#fff;font-weight:600}.waveform-player.waveform-focused{border-radius:4px;outline:2px solid var(--wfp-accent);outline-offset:2px}.waveform-player:focus{outline:none}.waveform-player:focus-visible{outline:1px solid var(--wfp-accent);outline-offset:1px}.waveform-layout-preview .waveform-meta{display:none!important}.waveform-layout-preview .waveform-info{justify-content:center}.waveform-layout-preview .waveform-text{align-items:center;flex:0 1 auto;text-align:center}.waveform-player.waveform-focused{outline:none}.waveform-track.waveform-align-top{align-items:flex-start}.waveform-track.waveform-align-top .waveform-btn{margin-top:5px}.waveform-track.waveform-align-center{align-items:center}.waveform-track.waveform-align-bottom{align-items:flex-end}.waveform-track.waveform-align-bottom .waveform-btn{margin-bottom:5px}@media (max-width:480px){.waveform-btn{height:var(--wfp-btn-size,32px);min-width:var(--wfp-btn-size,32px);width:var(--wfp-btn-size,32px)}.waveform-container{min-height:50px}.waveform-info{font-size:12px}.waveform-artist,.waveform-bpm,.waveform-time{font-size:10px}}@media (prefers-reduced-motion:reduce){.waveform-player *,.waveform-player :after,.waveform-player :before{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.wp-block-playlist{box-sizing:border-box}.wp-block-playlist .wp-block-playlist__waveform-player{margin:var(--wp--preset--spacing--20,.625em) 0;position:relative;width:100%}.wp-block-playlist .wp-block-playlist__waveform-player:focus-visible{outline:revert;outline-offset:revert}.wp-block-playlist .waveform-track{gap:0;height:100px}.wp-block-playlist .waveform-btn{background:currentColor;border:none;border-end-start-radius:.125rem;border-radius:0;border-start-start-radius:.125rem;height:100px;margin:0;min-width:100px;width:100px}.wp-block-playlist .waveform-btn:hover:not(:disabled){transform:none}.wp-block-playlist .waveform-btn svg{height:3rem;width:3rem}.wp-block-playlist .waveform-btn .waveform-icon-pause svg{height:2.625rem;width:2.625rem}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn{background-image:var(--wp--playlist--play-button-artwork);background-position:50%;background-size:cover;color:#fff}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}.wp-block-playlist .waveform-player.has-play-button-artwork .waveform-btn svg path{fill:#fff!important}.wp-block-playlist .waveform-track.waveform-align-bottom .waveform-btn{margin-bottom:0}.wp-block-playlist .waveform-btn:focus-visible,.wp-block-playlist .waveform-container:focus-visible{outline:revert;outline-offset:revert}.wp-block-playlist .waveform-artist{opacity:.7}.wp-block-playlist .waveform-artist,.wp-block-playlist .waveform-info,.wp-block-playlist .waveform-time,.wp-block-playlist .waveform-title{font-size:inherit}.wp-block-playlist .wp-block-playlist__tracklist{list-style:none;margin:0;padding-left:0}.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-artist-is-hidden .wp-block-playlist-track__artist,.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-is-hidden,.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-length-is-hidden .wp-block-playlist-track__length{display:none}.wp-block-playlist .wp-block-playlist__tracklist.wp-block-playlist__tracklist-show-numbers{counter-reset:playlist-track}.wp-block-playlist-track:has([aria-current=true]){background-color:color-mix(in srgb,currentColor 10%,transparent)}.wp-block-playlist-track:hover{background-color:color-mix(in srgb,currentColor 15%,transparent)}.wp-block-playlist__tracklist-show-numbers .wp-block-playlist-track{counter-increment:playlist-track}.wp-block-playlist-track .wp-block-playlist-track__button{align-items:center;background-color:transparent;border:0;color:inherit;cursor:pointer;display:flex;font-family:inherit;font-size:inherit;outline-offset:2px;padding:var(--wp--preset--spacing--20,.5em);text-align:left;width:100%}.wp-block-playlist__tracklist-show-numbers .wp-block-playlist-track .wp-block-playlist-track__button:before{content:counter(playlist-track);font-size:.85em;margin-right:var(--wp--preset--spacing--20,.5em);opacity:.7;width:2ch}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__image{border:1px solid rgba(0,0,0,.08);box-sizing:border-box;flex:0 0 50px;height:50px;margin-right:var(--wp--preset--spacing--20,.5em);-o-object-fit:cover;object-fit:cover;width:50px}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__content{flex:1 1 0;min-width:0}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__title{display:block}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__artist{display:block;font-size:.85em;margin-top:.125em;opacity:.7}.wp-block-playlist-track .wp-block-playlist-track__button .wp-block-playlist-track__length{font-size:.85em;margin-left:auto;opacity:.7}.wp-block-post-author{box-sizing:border-box;display:flex;flex-wrap:wrap}.wp-block-post-author__byline{font-size:.5em;margin-bottom:0;margin-top:0;width:100%}.wp-block-post-author__avatar{margin-right:1em}.wp-block-post-author__bio{font-size:.7em;margin-bottom:.7em}.wp-block-post-author__content{flex-basis:0;flex-grow:1}.wp-block-post-author__name{margin:0}.wp-block-post-author-biography{box-sizing:border-box;overflow-wrap:break-word;white-space:pre-wrap}:where(.wp-block-post-comments-form input:not([type=submit])),:where(.wp-block-post-comments-form textarea){border:1px solid #949494;font-family:inherit;font-size:1em}:where(.wp-block-post-comments-form input:where(:not([type=submit]):not([type=checkbox]))),:where(.wp-block-post-comments-form textarea){padding:calc(.667em + 2px)}.wp-block-post-comments-form{box-sizing:border-box}.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title){font-weight:inherit}.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title){font-family:inherit}.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title),.wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title){font-size:inherit}.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title){line-height:inherit}.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title){font-style:inherit}.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title){letter-spacing:inherit}.wp-block-post-comments-form :where(input[type=submit]){box-shadow:none;cursor:pointer;display:inline-block;overflow-wrap:break-word;text-align:center}.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]),.wp-block-post-comments-form .comment-form textarea{box-sizing:border-box;display:block;width:100%}.wp-block-post-comments-form .comment-form-author label,.wp-block-post-comments-form .comment-form-email label,.wp-block-post-comments-form .comment-form-url label{display:block;margin-bottom:.25em}.wp-block-post-comments-form .comment-form-cookies-consent{display:flex;gap:.25em}.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent{margin-top:.35em}.wp-block-post-comments-form .comment-reply-title{margin-bottom:0}.wp-block-post-comments-form .comment-reply-title :where(small){font-size:var(--wp--preset--font-size--medium,smaller);margin-left:.5em}.wp-block-post-comments-count{box-sizing:border-box}.wp-block-post-content{display:flow-root}.wp-block-post-comments-link,.wp-block-post-date{box-sizing:border-box}:where(.wp-block-post-excerpt){box-sizing:border-box;margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__excerpt{margin-bottom:0;margin-top:0}.wp-block-post-excerpt__more-text{margin-bottom:0;margin-top:var(--wp--style--block-gap)}.wp-block-post-excerpt__more-link{display:inline-block}.wp-block-post-featured-image{margin-left:0;margin-right:0}.wp-block-post-featured-image a{display:block;height:100%}.wp-block-post-featured-image :where(img){box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom;width:100%}.wp-block-post-featured-image.alignfull img,.wp-block-post-featured-image.alignwide img{width:100%}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim{background-color:#000;inset:0;position:absolute}.wp-block-post-featured-image{position:relative}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-gradient{background-color:transparent}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-0{opacity:0}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-10{opacity:.1}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-20{opacity:.2}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-30{opacity:.3}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-40{opacity:.4}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-50{opacity:.5}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-60{opacity:.6}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-70{opacity:.7}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-80{opacity:.8}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-90{opacity:.9}.wp-block-post-featured-image .wp-block-post-featured-image__overlay.has-background-dim-100{opacity:1}.wp-block-post-featured-image:where(.alignleft,.alignright){width:100%}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous{display:inline-block;margin-right:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next{display:inline-block;margin-left:1ch}.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-post-navigation-link.has-text-align-left[style*="writing-mode: vertical-lr"],.wp-block-post-navigation-link.has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}.wp-block-post-terms{box-sizing:border-box}.wp-block-post-terms .wp-block-post-terms__separator{white-space:pre-wrap}.wp-block-post-time-to-read,.wp-block-post-title{box-sizing:border-box}.wp-block-post-title{word-break:break-word}.wp-block-post-title :where(a){display:inline-block;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-decoration:inherit}.wp-block-post-author-name{box-sizing:border-box}.wp-block-preformatted{box-sizing:border-box;white-space:pre-wrap}:where(.wp-block-preformatted.has-background){padding:1.25em 2.375em}.wp-block-pullquote{box-sizing:border-box;margin:0 0 1em;overflow-wrap:break-word;padding:4em 0;text-align:center}.wp-block-pullquote blockquote,.wp-block-pullquote p{color:inherit}.wp-block-pullquote blockquote{margin:0}.wp-block-pullquote p{margin-top:0}.wp-block-pullquote p:last-child{margin-bottom:0}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:420px}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote.has-text-align-left blockquote{text-align:left}.wp-block-pullquote.has-text-align-right blockquote{text-align:right}.wp-block-pullquote.has-text-align-center blockquote{text-align:center}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-left:auto;margin-right:auto;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:2em;margin-bottom:0;margin-top:0}.wp-block-pullquote.is-style-solid-color blockquote cite{font-style:normal;text-transform:none}.wp-block-pullquote :where(cite){color:inherit;display:block}.wp-block-post-template{box-sizing:border-box;list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-post-template.is-flex-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:1.25em}.wp-block-post-template.is-flex-container>li{margin:0;width:100%}@media (min-width:600px){.wp-block-post-template.is-flex-container.is-flex-container.columns-2>li{width:calc(50% - .625em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-3>li{width:calc(33.33333% - .83333em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li{width:calc(25% - .9375em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-5>li{width:calc(20% - 1em)}.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li{width:calc(16.66667% - 1.04167em)}}@media (max-width:600px){.wp-block-post-template-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid){grid-template-columns:1fr}}.wp-block-post-template-is-layout-constrained>li>.alignright,.wp-block-post-template-is-layout-flow>li>.alignright{float:right;margin-inline-end:0;margin-inline-start:2em}.wp-block-post-template-is-layout-constrained>li>.alignleft,.wp-block-post-template-is-layout-flow>li>.alignleft{float:left;margin-inline-end:2em;margin-inline-start:0}.wp-block-post-template-is-layout-constrained>li>.aligncenter,.wp-block-post-template-is-layout-flow>li>.aligncenter{margin-inline-end:auto;margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-next:last-of-type{margin-inline-start:auto}.wp-block-query-pagination.is-content-justification-space-between>.wp-block-query-pagination-previous:first-child{margin-inline-end:auto}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow{display:inline-block;margin-right:1ch}.wp-block-query-pagination .wp-block-query-pagination-previous-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination .wp-block-query-pagination-next-arrow{display:inline-block;margin-left:1ch}.wp-block-query-pagination .wp-block-query-pagination-next-arrow:not(.is-arrow-chevron){transform:scaleX(1)}.wp-block-query-pagination.aligncenter{justify-content:center}.wp-block-query-title,.wp-block-query-total,.wp-block-quote{box-sizing:border-box}.wp-block-quote{overflow-wrap:break-word}.wp-block-quote.is-large:where(:not(.is-style-plain)),.wp-block-quote.is-style-large:where(:not(.is-style-plain)){margin-bottom:1em;padding:0 1em}.wp-block-quote.is-large:where(:not(.is-style-plain)) p,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-large:where(:not(.is-style-plain)) footer,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) cite,.wp-block-quote.is-style-large:where(:not(.is-style-plain)) footer{font-size:1.125em;text-align:right}.wp-block-quote>cite{display:block}.wp-block-read-more{display:block;width:-moz-fit-content;width:fit-content}.wp-block-read-more:where(:not([style*=text-decoration])){text-decoration:none}.wp-block-read-more:where(:not([style*=text-decoration])):active,.wp-block-read-more:where(:not([style*=text-decoration])):focus{text-decoration:none}ul.wp-block-rss.alignleft{margin-right:2em}ul.wp-block-rss.alignright{margin-left:2em}ul.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0}ul.wp-block-rss.is-grid li{margin:0 1em 1em 0;width:100%}@media (min-width:600px){ul.wp-block-rss.columns-2 li{width:calc(50% - 1em)}ul.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}ul.wp-block-rss.columns-4 li{width:calc(25% - 1em)}ul.wp-block-rss.columns-5 li{width:calc(20% - 1em)}ul.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;font-size:.8125em}.wp-block-rss{box-sizing:border-box;list-style:none;padding:0}.wp-block-search__button{margin-left:10px;word-break:normal}.wp-block-search__button.has-icon{line-height:0}.wp-block-search__button svg{fill:currentColor;height:1.25em;min-height:24px;min-width:24px;vertical-align:text-bottom;width:1.25em}:where(.wp-block-search__button){border:1px solid #ccc;padding:6px 10px}.wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search__label{width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__button{box-sizing:border-box;display:flex;flex-shrink:0;justify-content:center;margin-left:0;max-width:100%}.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{min-width:0!important;transition-property:width}.wp-block-search.wp-block-search__button-only .wp-block-search__input{flex-basis:100%;transition-duration:.3s}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden,.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{overflow:hidden}.wp-block-search.wp-block-search__button-only.wp-block-search__searchfield-hidden .wp-block-search__input{border-left-width:0!important;border-right-width:0!important;flex-basis:0;flex-grow:0;margin:0;min-width:0!important;padding-left:0!important;padding-right:0!important;width:0!important}:where(.wp-block-search__input){-webkit-appearance:initial;-moz-appearance:initial;appearance:none;border:1px solid #949494;flex-grow:1;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin-left:0;margin-right:0;min-width:3rem;padding:8px;text-decoration:unset!important;text-transform:inherit}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper){background-color:#fff;border:1px solid #949494;box-sizing:border-box;padding:4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input{border:none;border-radius:0;padding:0 4px}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) .wp-block-search__input:focus{outline:none}:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) :where(.wp-block-search__button){padding:4px 8px}.wp-block-search.aligncenter .wp-block-search__inside-wrapper{margin:auto}.wp-block[data-align=right] .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper{float:right}.wp-block-separator{border:none;border-top:2px solid}:root :where(.wp-block-separator.is-style-dots){height:auto;line-height:1;text-align:center}:root :where(.wp-block-separator.is-style-dots):before{color:currentColor;content:"···";font-family:serif;font-size:1.5em;letter-spacing:2em;padding-left:2em}.wp-block-separator.is-style-dots{background:none!important;border:none!important}.wp-block-site-logo{box-sizing:border-box;line-height:0}.wp-block-site-logo a{display:inline-block;line-height:0}.wp-block-site-logo.is-default-size img{height:auto;width:120px}.wp-block-site-logo img{height:auto;max-width:100%}.wp-block-site-logo a,.wp-block-site-logo img{border-radius:inherit}.wp-block-site-logo.aligncenter{margin-left:auto;margin-right:auto;text-align:center}:root :where(.wp-block-site-logo.is-style-rounded){border-radius:9999px}.wp-block-site-tagline,.wp-block-site-title{box-sizing:border-box}.wp-block-site-title :where(a){color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;text-decoration:inherit}.wp-block-social-links{background:none;box-sizing:border-box;margin-left:0;padding-left:0;padding-right:0;text-indent:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{border-bottom:0;box-shadow:none;text-decoration:none}.wp-block-social-links .wp-social-link svg{height:1em;width:1em}.wp-block-social-links .wp-social-link span:not(.screen-reader-text){font-size:.65em;margin-left:.5em;margin-right:.5em}.wp-block-social-links.has-small-icon-size{font-size:16px}.wp-block-social-links,.wp-block-social-links.has-normal-icon-size{font-size:24px}.wp-block-social-links.has-large-icon-size{font-size:36px}.wp-block-social-links.has-huge-icon-size{font-size:48px}.wp-block-social-links.aligncenter{display:flex;justify-content:center}.wp-block-social-links.alignright{justify-content:flex-end}.wp-block-social-link{border-radius:9999px;display:block}@media not (prefers-reduced-motion){.wp-block-social-link{transition:transform .1s ease}}.wp-block-social-link{height:auto}.wp-block-social-link a{align-items:center;display:flex;line-height:0}.wp-block-social-link:hover{transform:scale(1.1)}.wp-block-social-links .wp-block-social-link.wp-social-link{display:inline-block;margin:0;padding:0}.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited{fill:currentColor;color:currentColor}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link{background-color:#f0f0f0;color:#444}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-amazon{background-color:#f90;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-behance{background-color:#0757fe;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-bluesky{background-color:#0a7aff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-discord{background-color:#5865f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-etsy{background-color:#f45800;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-facebook{background-color:#0866ff;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-flickr{background-color:#0461dd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-foursquare{background-color:#e65678;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-github{background-color:#24292d;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-google{background-color:#ea4434;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-gravatar{background-color:#1d4fc4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-instagram{background-color:#f00075;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-medium{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-meetup{background-color:#f6405f;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-patreon{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pinterest{background-color:#e60122;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-pocket{background-color:#ef4155;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-reddit{background-color:#ff4500;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-skype{background-color:#0478d7;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-snapchat{stroke:#000;background-color:#fefc00;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-spotify{background-color:#1bd760;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-telegram{background-color:#2aabee;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-threads{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tiktok{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-tumblr{background-color:#011835;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitch{background-color:#6440a4;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-vk{background-color:#4680c2;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-whatsapp{background-color:#25d366;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-x{background-color:#000;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-yelp{background-color:#d32422;color:#fff}:where(.wp-block-social-links:not(.is-style-logos-only)) .wp-social-link-youtube{background-color:red;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link{background:none}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg{height:1.25em;width:1.25em}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-amazon{color:#f90}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bandcamp{color:#1ea0c3}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-behance{color:#0757fe}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-bluesky{color:#0a7aff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-codepen{color:#1e1f26}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-deviantart{color:#02e49b}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-discord{color:#5865f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dribbble{color:#e94c89}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-dropbox{color:#4280ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-etsy{color:#f45800}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-facebook{color:#0866ff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-fivehundredpx{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-flickr{color:#0461dd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-foursquare{color:#e65678}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-github{color:#24292d}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-goodreads{color:#382110}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-google{color:#ea4434}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-gravatar{color:#1d4fc4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-instagram{color:#f00075}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-lastfm{color:#e21b24}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-linkedin{color:#0d66c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-mastodon{color:#3288d4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-medium{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-meetup{color:#f6405f}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-patreon{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pinterest{color:#e60122}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-pocket{color:#ef4155}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-reddit{color:#ff4500}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-skype{color:#0478d7}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-snapchat{stroke:#000;color:#fff}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-soundcloud{color:#ff5600}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-spotify{color:#1bd760}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-telegram{color:#2aabee}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-threads{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tiktok{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-tumblr{color:#011835}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitch{color:#6440a4}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-twitter{color:#1da1f2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vimeo{color:#1eb7ea}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-vk{color:#4680c2}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-whatsapp{color:#25d366}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-wordpress{color:#3499cd}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-x{color:#000}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-yelp{color:#d32422}:where(.wp-block-social-links.is-style-logos-only) .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}:root :where(.wp-block-social-links .wp-social-link a){padding:.25em}:root :where(.wp-block-social-links.is-style-logos-only .wp-social-link a){padding:0}:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a){padding-left:.6666666667em;padding-right:.6666666667em}.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color) .wp-social-link-snapchat .wp-block-social-link-label{color:#000}.wp-block-spacer{clear:both}.wp-block-tag-cloud{box-sizing:border-box}.wp-block-tag-cloud.aligncenter{justify-content:center;text-align:center}.wp-block-tag-cloud a{display:inline-block;margin-right:5px}.wp-block-tag-cloud span{display:inline-block;margin-left:5px;text-decoration:none}:root :where(.wp-block-tag-cloud.is-style-outline){display:flex;flex-wrap:wrap;gap:1ch}:root :where(.wp-block-tag-cloud.is-style-outline a){border:1px solid;font-size:unset!important;margin-right:0;padding:1ch 2ch;text-decoration:none!important}:where(.wp-block-tab-list button){-moz-appearance:none;appearance:none;-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:block;flex-basis:inherit!important;flex-grow:inherit!important;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:var(--wp--preset--spacing--20,.5em) var(--wp--preset--spacing--30,1em);position:relative;text-align:inherit;text-decoration:none;text-transform:inherit;width:-moz-max-content;width:max-content}:where(.wp-block-tab-list button)[aria-selected=true]:before{border-bottom:2px solid;bottom:0;content:"";left:0;pointer-events:none;position:absolute;width:100%}.wp-block-tab-panel:empty,.wp-block-tab-panel[hidden]{display:none!important}.wp-block-table{overflow-x:auto}.wp-block-table table{border-collapse:collapse;width:100%}.wp-block-table thead{border-bottom:3px solid}.wp-block-table tfoot{border-top:3px solid}.wp-block-table td,.wp-block-table th{border:1px solid;padding:.5em}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{background-color:transparent;border-collapse:inherit;border-spacing:0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-table.is-style-stripes{border-bottom:1px solid #f0f0f0}.wp-block-table .has-border-color td,.wp-block-table .has-border-color th,.wp-block-table .has-border-color tr,.wp-block-table .has-border-color>*{border-color:inherit}.wp-block-table table[style*=border-top-color] tr:first-child,.wp-block-table table[style*=border-top-color] tr:first-child td,.wp-block-table table[style*=border-top-color] tr:first-child th,.wp-block-table table[style*=border-top-color]>*,.wp-block-table table[style*=border-top-color]>* td,.wp-block-table table[style*=border-top-color]>* th{border-top-color:inherit}.wp-block-table table[style*=border-top-color] tr:not(:first-child){border-top-color:currentColor}.wp-block-table table[style*=border-right-color] td:last-child,.wp-block-table table[style*=border-right-color] th,.wp-block-table table[style*=border-right-color] tr,.wp-block-table table[style*=border-right-color]>*{border-right-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:last-child,.wp-block-table table[style*=border-bottom-color] tr:last-child td,.wp-block-table table[style*=border-bottom-color] tr:last-child th,.wp-block-table table[style*=border-bottom-color]>*,.wp-block-table table[style*=border-bottom-color]>* td,.wp-block-table table[style*=border-bottom-color]>* th{border-bottom-color:inherit}.wp-block-table table[style*=border-bottom-color] tr:not(:last-child){border-bottom-color:currentColor}.wp-block-table table[style*=border-left-color] td:first-child,.wp-block-table table[style*=border-left-color] th,.wp-block-table table[style*=border-left-color] tr,.wp-block-table table[style*=border-left-color]>*{border-left-color:inherit}.wp-block-table table[style*=border-style] td,.wp-block-table table[style*=border-style] th,.wp-block-table table[style*=border-style] tr,.wp-block-table table[style*=border-style]>*{border-style:inherit}.wp-block-table table[style*=border-width] td,.wp-block-table table[style*=border-width] th,.wp-block-table table[style*=border-width] tr,.wp-block-table table[style*=border-width]>*{border-style:inherit;border-width:inherit}:root :where(.wp-block-table-of-contents){box-sizing:border-box}.wp-block-tabs,.wp-block-term-count{box-sizing:border-box}:where(.wp-block-term-description){box-sizing:border-box;margin-bottom:var(--wp--style--block-gap);margin-top:var(--wp--style--block-gap)}.wp-block-term-description p{margin-bottom:0;margin-top:0}.wp-block-term-name{box-sizing:border-box}.wp-block-term-template{box-sizing:border-box;list-style:none;margin-bottom:0;margin-top:0;max-width:100%;padding:0}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-left:0}.wp-block-text-columns .wp-block-column:last-child{margin-right:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.3333333333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}pre.wp-block-verse{box-sizing:border-box;min-width:1em;overflow:auto;white-space:pre-wrap;word-break:break-word}:where(pre.wp-block-verse){font-family:inherit}.wp-block-video{box-sizing:border-box}.wp-block-video video{height:auto;vertical-align:middle;width:100%}@supports (position:sticky){.wp-block-video [poster]{-o-object-fit:cover;object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video :where(figcaption){margin-bottom:1em;margin-top:.5em}.editor-styles-wrapper,.entry-content{counter-reset:footnotes}a[data-fn].fn{counter-increment:footnotes;display:inline-flex;font-size:smaller;text-decoration:none;text-indent:-9999999px;vertical-align:super}a[data-fn].fn:after{content:"[" counter(footnotes) "]";float:left;text-indent:0}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:root .has-text-align-center{text-align:center}:root .has-text-align-left{text-align:left}:root .has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal!important}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style^=border-color],[style*=";border-color"],[style*="; border-color"]){border-style:solid}html :where([style^=border-top-color],[style*=";border-top-color"],[style*="; border-top-color"]){border-top-style:solid}html :where([style^=border-right-color],[style*=";border-right-color"],[style*="; border-right-color"]){border-right-style:solid}html :where([style^=border-bottom-color],[style*=";border-bottom-color"],[style*="; border-bottom-color"]){border-bottom-style:solid}html :where([style^=border-left-color],[style*=";border-left-color"],[style*="; border-left-color"]){border-left-style:solid}html :where([style^=border-width],[style*=";border-width"],[style*="; border-width"]){border-style:solid}html :where([style^=border-top-width],[style*=";border-top-width"],[style*="; border-top-width"]){border-top-style:solid}html :where([style^=border-right-width],[style*=";border-right-width"],[style*="; border-right-width"]){border-right-style:solid}html :where([style^=border-bottom-width],[style*=";border-bottom-width"],[style*="; border-bottom-width"]){border-bottom-style:solid}html :where([style^=border-left-width],[style*=";border-left-width"],[style*="; border-left-width"]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
\ No newline at end of file
diff --git a/wp-includes/css/dist/components/style-rtl.css b/wp-includes/css/dist/components/style-rtl.css
index 17177e3533..a03c18f851 100644
--- a/wp-includes/css/dist/components/style-rtl.css
+++ b/wp-includes/css/dist/components/style-rtl.css
@@ -264,6 +264,9 @@
.components-button:focus:is(a) {
box-shadow: none;
}
+.components-button:focus {
+ outline: none;
+}
.components-button:focus:not(:active) {
--focus-color: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color);
@@ -543,369 +546,6 @@ p + .components-button.is-tertiary {
background-position: right 200px top 0;
}
}
-/* Root of the component. */
-.components-calendar {
- position: relative; /* Required to position the navigation toolbar. */
- box-sizing: border-box;
- display: inline flow-root;
- color: var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e));
- background-color: var(--wp-components-color-background, var(--wpds-color-background-surface-neutral-strong, #fff));
- font-size: 13px;
- font-weight: var(--wpds-typography-font-weight-default, 400);
- z-index: 0;
-}
-.components-calendar *,
-.components-calendar *::before,
-.components-calendar *::after {
- box-sizing: border-box;
-}
-
-.components-calendar__day {
- padding: 0;
- position: relative;
-}
-.components-calendar__day:has(.components-calendar__day-button:disabled) {
- color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d));
-}
-.components-calendar__day:has(.components-calendar__day-button:hover:not(:disabled)), .components-calendar__day:has(.components-calendar__day-button:focus-visible) {
- color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
-}
-
-.components-calendar__day-button {
- background: none;
- padding: 0;
- margin: 0;
- cursor: var(--wpds-cursor-control, pointer);
- justify-content: center;
- align-items: center;
- display: flex;
- position: relative;
- width: 32px;
- height: 32px;
- border: none;
- border-radius: 2px;
- font: inherit;
- font-variant-numeric: tabular-nums;
- color: inherit;
-}
-.components-calendar__day-button::before {
- content: "";
- position: absolute;
- z-index: -1;
- inset: 0;
- border: none;
- border-radius: 2px;
-}
-.components-calendar__day-button::after {
- content: "";
- position: absolute;
- z-index: 1;
- inset: 0;
- pointer-events: none;
-}
-.components-calendar__day-button:disabled {
- cursor: revert;
-}
-@media (forced-colors: active) {
- .components-calendar__day-button:disabled {
- text-decoration: line-through;
- }
-}
-.components-calendar__day-button:focus-visible {
- outline: var(--wp-admin-border-width-focus) solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
- outline-offset: 1px;
-}
-
-.components-calendar__caption-label {
- z-index: 1;
- position: relative;
- display: inline-flex;
- align-items: center;
- white-space: nowrap;
- border: 0;
- text-transform: capitalize;
-}
-
-.components-calendar__button-next,
-.components-calendar__button-previous {
- border: none;
- border-radius: 2px;
- background: none;
- padding: 0;
- margin: 0;
- cursor: var(--wpds-cursor-control, pointer);
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- position: relative;
- width: 32px;
- height: 32px;
- color: inherit;
-}
-.components-calendar__button-next:disabled, .components-calendar__button-next[aria-disabled=true],
-.components-calendar__button-previous:disabled,
-.components-calendar__button-previous[aria-disabled=true] {
- cursor: revert;
- color: var(--wp-components-color-gray-600, var(--wpds-color-stroke-interactive-neutral, #8d8d8d));
-}
-.components-calendar__button-next:focus-visible,
-.components-calendar__button-previous:focus-visible {
- outline: var(--wp-admin-border-width-focus) solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
-}
-
-.components-calendar__chevron {
- display: inline-block;
- fill: currentColor;
- width: 16px;
- height: 16px;
-}
-
-.components-calendar[dir=rtl] .components-calendar__nav .components-calendar__chevron {
- transform: rotate(-180deg);
- transform-origin: 50%;
-}
-
-.components-calendar__month-caption {
- display: flex;
- justify-content: center;
- align-content: center;
- height: 32px;
- margin-bottom: 12px;
-}
-
-.components-calendar__months {
- position: relative;
- display: flex;
- justify-content: center;
- flex-wrap: wrap;
- gap: 16px;
- max-width: -moz-fit-content;
- max-width: fit-content;
-}
-
-.components-calendar__month-grid {
- border-collapse: separate;
- border-spacing: 0 4px;
-}
-
-.components-calendar__nav {
- position: absolute;
- inset-block-start: 0;
- inset-inline-start: 0;
- inset-inline-end: 0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 32px;
-}
-
-.components-calendar__weekday {
- width: 32px;
- height: 32px;
- padding: 0;
- color: var(--wp-components-color-gray-700, var(--wpds-color-foreground-content-neutral-weak, #707070));
- text-align: center;
- text-transform: uppercase;
-}
-
-/* DAY MODIFIERS */
-.components-calendar__day--today::after {
- content: "";
- position: absolute;
- z-index: 1;
- inset-block-start: 2px;
- inset-inline-end: 2px;
- width: 0;
- height: 0;
- border-radius: 50%;
- border: 2px solid currentColor;
-}
-
-.components-calendar__day--selected:not(.components-calendar__range-middle):has(.components-calendar__day-button,
-.components-calendar__day-button:hover:not(:disabled)) {
- color: var(--wp-components-color-foreground-inverted, var(--wpds-color-background-surface-neutral, #fcfcfc));
-}
-.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button::before {
- background-color: var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e));
- border: 1px solid transparent;
-}
-.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:disabled::before {
- background-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d));
-}
-.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:hover:not(:disabled)::before {
- background-color: var(--wp-components-color-gray-800, var(--wpds-color-foreground-content-neutral, #1e1e1e));
-}
-
-.components-calendar__day--outside {
- color: var(--wp-components-color-gray-600, var(--wpds-color-stroke-interactive-neutral, #8d8d8d));
-}
-
-.components-calendar__day--hidden {
- visibility: hidden;
-}
-
-.components-calendar__range-start:not(.components-calendar__range-end) .components-calendar__day-button, .components-calendar__range-start:not(.components-calendar__range-end) .components-calendar__day-button::before {
- border-start-end-radius: 0;
- border-end-end-radius: 0;
-}
-
-.components-calendar__range-middle .components-calendar__day-button::before {
- background-color: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 4%, transparent);
- border-radius: 0;
- border-width: 1px 0;
- border-color: transparent;
- border-style: solid;
-}
-
-.components-calendar__range-end:not(.components-calendar__range-start) .components-calendar__day-button, .components-calendar__range-end:not(.components-calendar__range-start) .components-calendar__day-button::before {
- border-start-start-radius: 0;
- border-end-start-radius: 0;
-}
-
-/*
- * RANGE PREVIEW (range calendar only)
- *
- * The preview is rendered in the button's ::after pseudo-element, so that it
- * can be rendered over the button's contents.
- * The selection preview is shown with a dashed border. In order to have
- * control over the dash pattern (especially the seams between days), the
- * dashed borders are rendered as SVGs via the url() CSS function.
- * Since SVGs rendered in the url() function don't seem to be able to access
- * CSS variables, we're using the SVGs as masks, and using `background-color`
- * to consume the accent color variable.
- */
-.components-calendar__day--preview svg {
- position: absolute;
- inset: 0;
- pointer-events: none;
- color: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 16%, transparent);
-}
-@media (forced-colors: active) {
- .components-calendar__day--preview svg {
- color: inherit;
- }
-}
-.components-calendar[dir=rtl] .components-calendar__day--preview svg {
- transform: scaleX(-1);
-}
-
-.components-calendar__day--preview.components-calendar__range-middle .components-calendar__day-button::before {
- border: none;
-}
-
-/* ANIMATIONS */
-@keyframes slide-in-left {
- 0% {
- transform: translateX(100%);
- }
- 100% {
- transform: translateX(0);
- }
-}
-@keyframes slide-in-right {
- 0% {
- transform: translateX(-100%);
- }
- 100% {
- transform: translateX(0);
- }
-}
-@keyframes slide-out-left {
- 0% {
- transform: translateX(0);
- }
- 100% {
- transform: translateX(100%);
- }
-}
-@keyframes slide-out-right {
- 0% {
- transform: translateX(0);
- }
- 100% {
- transform: translateX(-100%);
- }
-}
-@keyframes fade-in {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-@keyframes fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.components-calendar__weeks-before-enter,
-.components-calendar__weeks-before-exit,
-.components-calendar__weeks-after-enter,
-.components-calendar__weeks-after-exit,
-.components-calendar__caption-after-enter,
-.components-calendar__caption-after-exit,
-.components-calendar__caption-before-enter,
-.components-calendar__caption-before-exit {
- animation-duration: 0s;
- animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
- animation-fill-mode: forwards;
-}
-@media not (prefers-reduced-motion) {
- .components-calendar__weeks-before-enter,
- .components-calendar__weeks-before-exit,
- .components-calendar__weeks-after-enter,
- .components-calendar__weeks-after-exit,
- .components-calendar__caption-after-enter,
- .components-calendar__caption-after-exit,
- .components-calendar__caption-before-enter,
- .components-calendar__caption-before-exit {
- animation-duration: 0.3s;
- }
-}
-
-.components-calendar__weeks-before-enter,
-.components-calendar[dir=rtl] .components-calendar__weeks-after-enter {
- animation-name: slide-in-left;
-}
-
-.components-calendar__weeks-before-exit,
-.components-calendar[dir=rtl] .components-calendar__weeks-after-exit {
- animation-name: slide-out-left;
-}
-
-.components-calendar__weeks-after-enter,
-.components-calendar[dir=rtl] .components-calendar__weeks-before-enter {
- animation-name: slide-in-right;
-}
-
-.components-calendar__weeks-after-exit,
-.components-calendar[dir=rtl] .components-calendar__weeks-before-exit {
- animation-name: slide-out-right;
-}
-
-.components-calendar__caption-after-enter {
- animation-name: fade-in;
-}
-
-.components-calendar__caption-after-exit {
- animation-name: fade-out;
-}
-
-.components-calendar__caption-before-enter {
- animation-name: fade-in;
-}
-
-.components-calendar__caption-before-exit {
- animation-name: fade-out;
-}
-
.components-checkbox-control {
--checkbox-input-size: 24px;
}
@@ -2270,6 +1910,10 @@ input.components-combobox-control__input[type=text]:focus {
padding-right: 12px;
}
+body.modal-open {
+ overflow: hidden;
+}
+
.components-modal__screen-overlay {
position: fixed;
top: 0;
@@ -3933,7 +3577,7 @@ div.components-toolbar > div + div.has-left-divider::before {
--wp-components-color-accent: #cc1818;
border-color: #cc1818;
}
-.components-validated-control :is(textarea, input[type=text]):invalid[data-validity-visible] {
+.components-validated-control textarea:invalid[data-validity-visible] {
--wp-admin-theme-color: #cc1818;
--wp-components-color-accent: #cc1818;
border-color: #cc1818;
diff --git a/wp-includes/css/dist/components/style-rtl.min.css b/wp-includes/css/dist/components/style-rtl.min.css
index cc462e1f36..3e5e987876 100644
--- a/wp-includes/css/dist/components/style-rtl.min.css
+++ b/wp-includes/css/dist/components/style-rtl.min.css
@@ -1 +1 @@
-@charset "UTF-8";@media not (prefers-reduced-motion){.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}@media not (prefers-reduced-motion){.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}@media not (prefers-reduced-motion){.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:200px;padding:8px}.components-autocomplete__result.components-button{display:flex;font-weight:var(--wpds-typography-font-weight-default,400);height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-badge{box-sizing:border-box}.components-badge *,.components-badge :after,.components-badge :before{box-sizing:inherit}.components-badge{background-color:color-mix(in srgb,#fff 90%,var(--base-color));border-radius:2px;color:color-mix(in srgb,#000 50%,var(--base-color));display:inline-block;line-height:0;max-width:100%;min-height:24px;padding:2px 8px}.components-badge:where(.is-default){background-color:#f0f0f0;color:#2f2f2f}.components-badge.has-icon{padding-inline-start:4px}.components-badge.is-info{--base-color:#3858e9}.components-badge.is-warning{--base-color:#f0b849}.components-badge.is-error{--base-color:#cc1818}.components-badge.is-success{--base-color:#4ab866}.components-badge__flex-wrapper{align-items:center;display:inline-flex;font-size:12px;font-weight:400;gap:2px;line-height:20px;max-width:100%}.components-badge__icon{flex-shrink:0}.components-badge__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.components-button-group{display:inline-block}.components-button-group .components-button{border-color:#1e1e1e;border-radius:0;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button:focus:is(a){box-shadow:none}.components-button:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));cursor:var(--wpds-cursor-control,pointer);display:inline-flex;font-family:inherit;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:36px;margin:0;padding:4px 12px;text-decoration:none}.components-button.is-next-40px-default-size{height:40px}.components-button:hover:not(:disabled,[aria-disabled=true]),.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary,.components-button.is-primary:hover:not(:disabled){color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:hsla(0,0%,100%,.4)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:transparent;color:#949494;transform:none}@media not (prefers-reduced-motion){.components-button.is-secondary{transition:border-color .1s linear}}.components-button.is-secondary{background:transparent;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-secondary:active:not(:disabled){border-color:transparent}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6))}.components-button.is-secondary:focus:not(:active){border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus){border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}.components-button.is-tertiary{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6))}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 8%,transparent)}p+.components-button.is-tertiary{margin-right:-6px}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled,[aria-disabled=true]){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled,[aria-disabled=true]){background:#ccc}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):disabled,.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link)[aria-disabled=true]{color:#949494}.components-button.is-destructive.is-secondary:hover:not(:disabled,[aria-disabled=true]),.components-button.is-destructive.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(204,24,24,.04)}.components-button.is-destructive.is-secondary:active:not(:disabled,[aria-disabled=true]),.components-button.is-destructive.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(204,24,24,.08)}.components-button.is-link{background:none;border:0;border-radius:0;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));font-weight:var(--wpds-typography-font-weight-default,400);margin:0;outline:none;padding:0;text-align:right;text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}@media not (prefers-reduced-motion){.components-button.is-link{transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}}.components-button.is-link{height:auto}.components-button.is-link:focus:not(:active){border-radius:2px;text-decoration:none}.components-button.is-link:disabled,.components-button.is-link[aria-disabled=true]{color:#949494}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-button:disabled,.components-button[aria-disabled=true]{color:#949494;cursor:default}@media not (prefers-reduced-motion){.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite}}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0}.components-button.is-small{font-size:11px;height:var(--wpds-dimension-size-sm,24px);line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:var(--wpds-dimension-size-sm,24px);padding:0}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:content-box;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:12px;padding-right:8px}.components-button.has-icon.has-text.has-icon-right{padding-left:8px;padding-right:12px}.components-button.has-icon:not(.has-text) .dashicon,.components-button.has-icon:not(.has-text) svg{margin-inline:-1px}.components-button.is-pressed,.components-button.is-pressed:hover{color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-button.is-pressed:hover:not(:disabled,[aria-disabled=true]),.components-button.is-pressed:not(:disabled,[aria-disabled=true]){background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-button.is-pressed:disabled,.components-button.is-pressed[aria-disabled=true]{color:#949494}.components-button.is-pressed:disabled:not(.is-primary):not(.is-secondary):not(.is-tertiary),.components-button.is-pressed[aria-disabled=true]:not(.is-primary):not(.is-secondary):not(.is-tertiary){background:#949494;color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-button svg{fill:currentColor;flex-shrink:0;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}@keyframes components-button__busy-animation{0%{background-position:right 200px top 0}}.components-calendar{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-block;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);position:relative;z-index:0}.components-calendar,.components-calendar *,.components-calendar :after,.components-calendar :before{box-sizing:border-box}.components-calendar__day{padding:0;position:relative}.components-calendar__day:has(.components-calendar__day-button:disabled){color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-calendar__day:has(.components-calendar__day-button:focus-visible),.components-calendar__day:has(.components-calendar__day-button:hover:not(:disabled)){color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-calendar__day-button{align-items:center;background:none;border:none;border-radius:2px;color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;font:inherit;font-variant-numeric:tabular-nums;height:32px;justify-content:center;margin:0;padding:0;position:relative;width:32px}.components-calendar__day-button:before{border:none;border-radius:2px;content:"";inset:0;position:absolute;z-index:-1}.components-calendar__day-button:after{content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.components-calendar__day-button:disabled{cursor:revert}@media (forced-colors:active){.components-calendar__day-button:disabled{text-decoration:line-through}}.components-calendar__day-button:focus-visible{outline:var(--wp-admin-border-width-focus) solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-offset:1px}.components-calendar__caption-label{align-items:center;border:0;display:inline-flex;position:relative;text-transform:capitalize;white-space:nowrap;z-index:1}.components-calendar__button-next,.components-calendar__button-previous{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-radius:2px;color:inherit;cursor:var(--wpds-cursor-control,pointer);display:inline-flex;height:32px;justify-content:center;margin:0;padding:0;position:relative;width:32px}.components-calendar__button-next:disabled,.components-calendar__button-next[aria-disabled=true],.components-calendar__button-previous:disabled,.components-calendar__button-previous[aria-disabled=true]{color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));cursor:revert}.components-calendar__button-next:focus-visible,.components-calendar__button-previous:focus-visible{outline:var(--wp-admin-border-width-focus) solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-calendar__chevron{fill:currentColor;display:inline-block;height:16px;width:16px}.components-calendar[dir=rtl] .components-calendar__nav .components-calendar__chevron{transform:rotate(-180deg);transform-origin:50%}.components-calendar__month-caption{align-content:center;display:flex;height:32px;justify-content:center;margin-bottom:12px}.components-calendar__months{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;max-width:-moz-fit-content;max-width:fit-content;position:relative}.components-calendar__month-grid{border-collapse:separate;border-spacing:0 4px}.components-calendar__nav{align-items:center;display:flex;height:32px;inset-block-start:0;inset-inline-end:0;inset-inline-start:0;justify-content:space-between;position:absolute}.components-calendar__weekday{color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));height:32px;padding:0;text-align:center;text-transform:uppercase;width:32px}.components-calendar__day--today:after{border:2px solid;border-radius:50%;content:"";height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0;z-index:1}.components-calendar__day--selected:not(.components-calendar__range-middle):has(.components-calendar__day-button,.components-calendar__day-button:hover:not(:disabled)){color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:before{background-color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border:1px solid transparent}.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:disabled:before{background-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:hover:not(:disabled):before{background-color:var(--wp-components-color-gray-800,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-calendar__day--outside{color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-calendar__day--hidden{visibility:hidden}.components-calendar__range-start:not(.components-calendar__range-end) .components-calendar__day-button,.components-calendar__range-start:not(.components-calendar__range-end) .components-calendar__day-button:before{border-end-end-radius:0;border-start-end-radius:0}.components-calendar__range-middle .components-calendar__day-button:before{background-color:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);border-color:transparent;border-radius:0;border-style:solid;border-width:1px 0}.components-calendar__range-end:not(.components-calendar__range-start) .components-calendar__day-button,.components-calendar__range-end:not(.components-calendar__range-start) .components-calendar__day-button:before{border-end-start-radius:0;border-start-start-radius:0}.components-calendar__day--preview svg{color:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 16%,transparent);inset:0;pointer-events:none;position:absolute}@media (forced-colors:active){.components-calendar__day--preview svg{color:inherit}}.components-calendar[dir=rtl] .components-calendar__day--preview svg{transform:scaleX(-1)}.components-calendar__day--preview.components-calendar__range-middle .components-calendar__day-button:before{border:none}@keyframes slide-in-left{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slide-in-right{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes slide-out-left{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes slide-out-right{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}.components-calendar__caption-after-enter,.components-calendar__caption-after-exit,.components-calendar__caption-before-enter,.components-calendar__caption-before-exit,.components-calendar__weeks-after-enter,.components-calendar__weeks-after-exit,.components-calendar__weeks-before-enter,.components-calendar__weeks-before-exit{animation-duration:0s;animation-fill-mode:forwards;animation-timing-function:cubic-bezier(.4,0,.2,1)}@media not (prefers-reduced-motion){.components-calendar__caption-after-enter,.components-calendar__caption-after-exit,.components-calendar__caption-before-enter,.components-calendar__caption-before-exit,.components-calendar__weeks-after-enter,.components-calendar__weeks-after-exit,.components-calendar__weeks-before-enter,.components-calendar__weeks-before-exit{animation-duration:.3s}}.components-calendar[dir=rtl] .components-calendar__weeks-after-enter,.components-calendar__weeks-before-enter{animation-name:slide-in-left}.components-calendar[dir=rtl] .components-calendar__weeks-after-exit,.components-calendar__weeks-before-exit{animation-name:slide-out-left}.components-calendar[dir=rtl] .components-calendar__weeks-before-enter,.components-calendar__weeks-after-enter{animation-name:slide-in-right}.components-calendar[dir=rtl] .components-calendar__weeks-before-exit,.components-calendar__weeks-after-exit{animation-name:slide-out-right}.components-calendar__caption-after-enter{animation-name:fade-in}.components-calendar__caption-after-exit{animation-name:fade-out}.components-calendar__caption-before-enter{animation-name:fade-in}.components-calendar__caption-before-exit{animation-name:fade-out}.components-checkbox-control{--checkbox-input-size:24px}@media (min-width:600px){.components-checkbox-control{--checkbox-input-size:16px}}.components-checkbox-control{--checkbox-input-margin:8px}.components-checkbox-control__label{line-height:var(--checkbox-input-size)}.components-checkbox-control:not(:has(:disabled)) .components-checkbox-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.components-checkbox-control__input[type=checkbox]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-checkbox-control__input[type=checkbox]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.components-checkbox-control__input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;clear:none;color:#1e1e1e;display:inline-block;height:var(--checkbox-input-size);line-height:0;margin:0 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:top;width:var(--checkbox-input-size)}@media not (prefers-reduced-motion){.components-checkbox-control__input[type=checkbox]{transition:border-color .1s ease-in-out}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:not(:disabled):is(:checked,:indeterminate){background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{aspect-ratio:1;display:inline-block;flex-shrink:0;line-height:1;margin-left:var(--checkbox-input-margin);position:relative;vertical-align:middle;width:var(--checkbox-input-size)}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:var(--checkbox-input-size);fill:#fff;cursor:var(--wpds-cursor-control,pointer);height:var(--checkmark-size);pointer-events:none;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--checkmark-size)}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:calc(var(--checkbox-input-size) + 4px)}}.components-checkbox-control:has(:disabled) svg.components-checkbox-control__checked,.components-checkbox-control:has(:disabled) svg.components-checkbox-control__indeterminate{fill:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-checkbox-control__help{display:inline-block;margin-inline-start:calc(var(--checkbox-input-size) + var(--checkbox-input-margin))}.components-circular-option-picker{display:inline-block;isolation:isolate;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);vertical-align:top;width:28px}@media not (prefers-reduced-motion){.components-circular-option-picker__option-wrapper{transition:transform .1s ease;will-change:transform}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cpath fill='%23555D65' d='M6 8V6H4v2zm2 0V6h2v2zm2 8H8v-2h2zm2 0v-2h2v2zm0 2v-2h-2v2H8v2h2v-2zm2 0v2h-2v-2zm2 0h-2v-2h2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2zm-2-4v-2h2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' d='M18 18v2h-2v-2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2zm0 2v-2H6v2zm2 0v-2h2v2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4zm0 4V2H2v2zm2 0V2h2v2zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2z' clip-rule='evenodd'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{aspect-ratio:1;background:transparent;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;display:inline-block;height:100%!important;vertical-align:top}@media not (prefers-reduced-motion){.components-circular-option-picker__option{transition:box-shadow .1s ease}}.components-circular-option-picker__option{cursor:var(--wpds-cursor-control,pointer)}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{border-radius:50%;pointer-events:none;position:absolute;right:2px;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid transparent;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:calc(100% + 4px);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:calc(100% + 4px)}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:260px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:none;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-combobox-control__suggestions-container{transition:box-shadow .1s linear}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-moz-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container{align-items:flex-start;display:flex;flex-wrap:wrap;padding:0;width:100%}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container .components-spinner{margin:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:4px 4px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer);height:64px;outline:1px solid transparent;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;border-radius:3px 3px 0 0;content:"";inset:1px;position:absolute;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 4px 4px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px!important;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);height:inherit;outline:2px solid transparent;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:1.5px solid transparent}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone .components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone .components-drop-zone__content-inner{opacity:0;transform:scale(.9)}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{opacity:1}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{transition:opacity .2s ease-in-out}}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{opacity:1;transform:scale(1)}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{transition:opacity .1s ease-in-out .1s,transform .1s ease-in-out .1s}}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{fill:currentColor;line-height:0;margin:0 auto 8px;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content .components-popover__content:has(.components-menu-group){padding:0}.components-dropdown__content .components-popover__content:has(.components-menu-group) .components-dropdown-menu__menu>.components-menu-item__button,.components-dropdown__content .components-popover__content:has(.components-menu-group)>.components-menu-item__button{margin:8px;width:auto}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown__content .components-menu-group{padding:8px}.components-dropdown__content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px}.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:32px;padding-left:8px;padding-right:8px;text-align:right}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);color:transparent}.components-duotone-picker__color-indicator>.components-button:hover:not(:disabled):not([aria-disabled=true]),.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-color{margin:2px}.components-external-link{text-decoration:none}.components-external-link,.components-external-link:visited{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.components-external-link:active,.components-external-link:hover{color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.components-external-link:focus{border-radius:0;box-shadow:none}.components-external-link:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-external-link__contents{text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}.components-external-link__icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px)}.components-form-toggle{display:inline-block;height:16px;isolation:isolate;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #949494;border-radius:8px;box-sizing:border-box;content:"";display:inline-block;height:16px;position:relative;vertical-align:top;width:32px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__track{transition:background-color .2s ease,border-color .2s ease}}.components-form-toggle .components-form-toggle__track{overflow:hidden}.components-form-toggle .components-form-toggle__track:after{border-top:16px solid transparent;box-sizing:border-box;content:"";inset:0;position:absolute}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__track:after{transition:opacity .2s ease}}.components-form-toggle .components-form-toggle__track:after{opacity:0}.components-form-toggle .components-form-toggle__thumb{border-radius:50%;box-sizing:border-box;display:block;height:12px;position:absolute;right:2px;top:2px;width:12px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__thumb{transition:transform .2s ease,background-color .2s ease-out}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:6px solid transparent;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01)}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-toggle.is-checked .components-form-toggle__track:after{opacity:1}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-16px)}.components-disabled .components-form-toggle .components-form-toggle__track,.components-form-toggle.is-disabled .components-form-toggle__track{background-color:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}@media (forced-colors:active){.components-disabled .components-form-toggle .components-form-toggle__track,.components-form-toggle.is-disabled .components-form-toggle__track{border-color:GrayText}}.components-disabled .components-form-toggle .components-form-toggle__thumb,.components-form-toggle.is-disabled .components-form-toggle__thumb{background-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));box-shadow:none}@media (forced-colors:active){.components-disabled .components-form-toggle .components-form-toggle__thumb,.components-form-toggle.is-disabled .components-form-toggle__thumb{border-color:GrayText}}.components-disabled .components-form-toggle.is-checked .components-form-toggle__track,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}@media (forced-colors:active){.components-disabled .components-form-toggle.is-checked .components-form-toggle__track,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track{border-color:GrayText}.components-disabled .components-form-toggle.is-checked .components-form-toggle__track:after,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track:after{border-top-color:GrayText}}.components-disabled .components-form-toggle.is-checked .components-form-toggle__thumb,.components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb{background-color:#fff}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle input.components-form-toggle__input[type=checkbox]:not(:disabled,[aria-disabled=true]){cursor:var(--wpds-cursor-control,pointer)}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-form-token-field__input-container{transition:box-shadow .1s linear}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-moz-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container{cursor:text;padding:0;width:100%}.components-form-token-field__input-container.is-disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));cursor:default}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-block;flex:1;font-family:inherit;font-size:16px;line-height:1;margin-right:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token.components-button,.components-form-token-field__token.is-disabled .components-form-token-field__token-text{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-form-token-field__token.is-borderless{padding:0 0 0 24px;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent}.components-form-token-field__token.is-borderless:not(.is-disabled) .components-form-token-field__token-text{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;left:0;position:absolute;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;min-width:unset}@media not (prefers-reduced-motion){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition:all .2s cubic-bezier(.4,1,.4,1)}}.components-form-token-field__token-text{border-radius:0 1px 1px 0;line-height:24px;overflow:hidden;padding:0 8px 0 0;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:1px 0 0 1px;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover:not(:disabled){color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;max-height:128px;min-width:100%;overflow-y:auto}@media not (prefers-reduced-motion){.components-form-token-field__suggestions-list{transition:all .15s ease-in-out}}.components-form-token-field__suggestions-list{box-shadow:inset 0 1px 0 0 #949494;list-style:none;margin:0;padding:0}.components-form-token-field__suggestion{box-sizing:border-box;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:block;font-size:13px;margin:0;min-height:32px;padding:8px 12px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-form-token-field__suggestion[aria-disabled=true]{color:#949494;pointer-events:none}.components-form-token-field__suggestion[aria-disabled=true].is-selected{background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent)}.components-form-token-field__suggestion:not(.is-empty){cursor:var(--wpds-cursor-control,pointer)}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:64px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-64px;min-height:100%}.components-guide .components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide .components-guide__page{min-height:300px}}.components-guide .components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 24px;position:relative;width:100%}.components-guide .components-guide__page-control{margin:0;text-align:center}.components-guide .components-guide__page-control li{display:inline-block;margin:0}.components-guide .components-guide__page-control .components-button{color:#e0e0e0;margin:-6px 0}.components-guide .components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-modal__frame.components-guide{border:none;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{position:absolute}.components-button.components-guide__back-button{right:24px}.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{left:24px}[role=region]{position:relative}[role=region].interface-interface-skeleton__content:focus-visible:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1))}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group:has(>div:empty){display:none}.components-menu-group__label{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{font-weight:var(--wpds-typography-font-weight-default,400);width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-left:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:-2px;margin-right:24px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:8px;margin-right:-2px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-left:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-left:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-left:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:0;margin-right:auto;padding-right:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{height:auto;min-height:40px}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}.components-modal__screen-overlay{background-color:rgba(0,0,0,.35);bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.components-modal__screen-overlay{animation:__wp-base-styles-fade-in var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) 0s;animation-fill-mode:forwards}}@keyframes __wp-base-styles-fade-out{0%{opacity:1}to{opacity:0}}@media not (prefers-reduced-motion){.components-modal__screen-overlay.is-animating-out{animation:__wp-base-styles-fade-out var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) var(--wpds-motion-duration-xs,50ms);animation-fill-mode:forwards}}.components-modal__frame{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}.components-modal__frame{align-self:flex-end;animation-fill-mode:forwards;animation-name:components-modal__appear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1));background:#fff;border-radius:8px 8px 0 0;box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);color:#1e1e1e;display:flex;margin:0;max-height:calc(100% - 40px);overflow:hidden;width:100%}.components-modal__frame h1,.components-modal__frame h2,.components-modal__frame h3{color:#1e1e1e}@media not (prefers-reduced-motion){.components-modal__frame{animation-duration:var(--wpds-motion-duration-md,.2s)}}.components-modal__screen-overlay.is-animating-out .components-modal__frame{animation-name:components-modal__disappear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1))}@media (min-width:600px){.components-modal__frame{align-self:auto;border-radius:8px;margin:auto;max-height:calc(100% - 128px);max-width:calc(100% - 32px);min-width:var(--wpds-dimension-surface-width-sm,320px);width:auto}.components-modal__frame.has-size-large,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-small{width:100%}.components-modal__frame.has-size-small{max-width:var(--wpds-dimension-surface-width-md,400px)}.components-modal__frame.has-size-medium{max-width:var(--wpds-dimension-surface-width-lg,560px)}.components-modal__frame.has-size-large{max-width:var(--wpds-dimension-surface-width-2xl,960px)}}@media (min-width:960px){.components-modal__frame{max-height:70%}}.components-modal__frame.is-full-screen{border-radius:0;height:100%;margin:0;max-height:none;width:100%}.components-modal__frame.is-full-screen :where(.components-modal__content){display:flex;margin-bottom:24px;padding-bottom:0}.components-modal__frame.is-full-screen :where(.components-modal__content)>:last-child{flex:1}@media (min-width:600px){.components-modal__frame.is-full-screen{border-radius:8px;height:calc(100% - 32px);margin:auto;width:calc(100% - 32px)}}@media (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@keyframes components-modal__appear-animation{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@media (min-width:600px){@keyframes components-modal__appear-animation{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.9)}}}.components-modal__header{align-items:center;border-bottom:1px solid transparent;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;padding:24px;position:absolute;right:0;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:20px;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-modal__header h1{line-height:1;margin:0}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:flex-start}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:4px 24px 24px}.components-modal__content.hide-header{margin-top:0;padding-top:24px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:-2px}.components-notice{--wp-components-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-components-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);align-items:start;background-color:var(--wp-components-notice-background-color);border:var(--wpds-border-width-xs,1px) solid var(--wp-components-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wp-components-notice-text-color);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-template-columns:1fr auto;line-height:var(--wpds-typography-line-height-sm,20px);padding:var(--wpds-dimension-padding-md,12px)}.components-notice.is-success{--wp-components-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-components-notice-text-color:var(--wpds-color-foreground-content-success,#002900)}.components-notice.is-warning{--wp-components-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-components-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900)}.components-notice.is-error{--wp-components-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-components-notice-text-color:var(--wpds-color-foreground-content-error,#470000)}.components-notice__content{grid-column:1;grid-row:1;padding-block:calc((var(--wpds-dimension-size-sm, 24px) - 1lh)/2)}.components-notice__actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:1;grid-row:2;margin-top:var(--wpds-dimension-gap-sm,8px)}.components-notice__dismiss{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);grid-column:2;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:transparent;color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-md,12px);max-width:100vw}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;display:flex;flex-shrink:0;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0}@media not (prefers-reduced-motion){.components-panel__body>.components-panel__body-title{transition:background .1s ease-in-out}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:16px 16px 16px 48px;position:relative;text-align:right;width:100%}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button{transition:background .1s ease-in-out}}.components-panel__body-toggle.components-button{height:auto}.components-panel__body-toggle.components-button:focus{border-radius:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-panel__body-toggle.components-button .components-panel__arrow{fill:currentColor;color:#1e1e1e;left:16px;position:absolute;top:50%;transform:translateY(-50%)}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button .components-panel__arrow{transition:color .1s ease-in-out}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-left:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{-webkit-font-smoothing:subpixel-antialiased;align-items:flex-start;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:column;font-size:13px;gap:16px;margin:0;outline:1px solid transparent;padding:24px;position:relative;text-align:right;width:100%}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;letter-spacing:normal;line-height:normal;text-transform:none}.components-placeholder__label{align-items:center;display:flex;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-left:4px}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;justify-content:flex-start;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-placeholder__input[type=url]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]{flex:1 1 auto}.components-placeholder__error{gap:8px;width:100%}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-button,.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*{justify-content:center;width:100%}.components-placeholder.is-small{padding:16px}.components-placeholder.has-illustration{backdrop-filter:blur(100px);backface-visibility:hidden;background-color:transparent;border-radius:0;box-shadow:none;color:inherit;display:flex}.is-dark-theme .components-placeholder.has-illustration{background-color:rgba(0,0,0,.1)}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none}@media not (prefers-reduced-motion){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition:opacity .1s linear}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder.has-illustration{overflow:hidden}.is-selected .components-placeholder.has-illustration{overflow:auto}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{stroke:currentColor;box-sizing:content-box;height:100%;opacity:.25;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:100%}.components-popover{box-sizing:border-box}.components-popover *,.components-popover :after,.components-popover :before{box-sizing:inherit}.components-popover{will-change:transform;z-index:1000000}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:4px;box-shadow:0 0 0 1px #ccc,0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);box-sizing:border-box;width:-moz-min-content;width:min-content}.is-alternate .components-popover__content{border-radius:2px;box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 16px 0 8px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:transparent;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control{border:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0;padding:0}.components-radio-control__group-wrapper.has-help{margin-block-end:12px}.components-radio-control__option{align-items:center;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto minmax(0,max-content)}.components-radio-control__input[type=radio]{border:1px solid #1e1e1e;border-radius:50%;grid-column:1;grid-row:1;height:24px;margin-left:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.components-radio-control__input[type=radio]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-radio-control__input[type=radio]{height:16px;max-width:16px;min-width:16px;width:16px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{height:8px;width:8px}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border:none}.components-radio-control__input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;margin:0;padding:0}.components-radio-control__input[type=radio]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-radio-control__input[type=radio]:checked{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked:before{border-radius:50%;content:""}.components-radio-control__input[type=radio]:disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border:1px solid var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);opacity:1}.components-radio-control__input[type=radio]:disabled:checked:before{border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));opacity:1}.components-radio-control__label{grid-column:2;grid-row:1}.components-radio-control:not(:disabled) .components-radio-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__label{line-height:24px}@media (min-width:600px){.components-radio-control__label{line-height:16px}}.components-radio-control__option-description{grid-column:2;grid-row:2;padding-block-start:4px}.components-radio-control__option-description.components-radio-control__option-description{margin-top:0}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle>div{height:100%;outline:none;position:relative;width:100%;z-index:2}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)),0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);content:"";cursor:inherit;display:block;height:15px;left:calc(50% - 8px);outline:2px solid transparent;position:absolute;top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:9999px;content:"";cursor:inherit;display:block;height:3px;left:calc(50% - 1px);position:absolute;top:calc(50% - 1px);width:3px}@media not (prefers-reduced-motion){.components-resizable-box__side-handle:before{transition:transform .1s ease-in;will-change:transform}}.components-resizable-box__side-handle:before{opacity:0}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;right:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}@media not (prefers-reduced-motion){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{-webkit-tap-highlight-color:rgba(0,0,0,0)!important;outline:0}.components-snackbar{backdrop-filter:blur(16px) saturate(180%);background:rgba(0,0,0,.85);border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);box-sizing:border-box;color:#fff;cursor:var(--wpds-cursor-control,pointer);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:var(--wpds-dimension-surface-width-lg,560px);padding:12px 20px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{padding-right:24px;position:relative}.components-snackbar .components-snackbar__icon{position:absolute;right:-8px;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{cursor:var(--wpds-cursor-control,pointer);margin-right:24px}.components-snackbar__action.components-button,.components-snackbar__action.components-external-link{color:#fff;flex-shrink:0;margin-right:32px}.components-snackbar__action.components-button:focus,.components-snackbar__action.components-external-link:focus{box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:hover,.components-snackbar__action.components-external-link:hover{color:currentColor;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);height:48px!important;margin-right:0;padding:3px var(--wpds-dimension-padding-lg,16px);position:relative}.components-tab-panel__tabs-item:disabled,.components-tab-panel__tabs-item[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);border-radius:0;bottom:0;content:"";height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*0);left:0;pointer-events:none;position:absolute;right:0}@media not (prefers-reduced-motion){.components-tab-panel__tabs-item:after{transition:height .1s linear}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*1);outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:0 0 0 0 transparent;content:"";inset:var(--wpds-dimension-padding-md,12px);pointer-events:none;position:absolute}@media not (prefers-reduced-motion){.components-tab-panel__tabs-item:before{transition:box-shadow .1s linear}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item{border-radius:var(--wpds-border-radius-sm,2px)}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:after{display:none}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item.is-active{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.components-tab-panel__tab-content:focus{box-shadow:none;outline:none}.components-tab-panel__tab-content:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:0}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:6px 8px;width:100%}@media not (prefers-reduced-motion){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:rgba(30,30,30,.62)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border-color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));padding-left:12px;padding-right:12px}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.components-text-control__input[type=email],.components-text-control__input[type=url]{direction:ltr}.components-tip{color:#757575;display:flex}.components-tip svg{fill:#f0b849;align-self:center;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-toggle-control__label{line-height:16px}.components-toggle-control__label:not(.is-disabled){cursor:var(--wpds-cursor-control,pointer)}.components-toggle-control__help{display:inline-block;margin-inline-start:40px}.components-accessible-toolbar{border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-left:none}.components-accessible-toolbar[aria-orientation=vertical],.components-toolbar[aria-orientation=vertical]{align-items:center;display:flex;flex-direction:column}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:8px;padding-right:8px}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);left:8px;line-height:12px;position:absolute}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border-left:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group{line-height:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{justify-content:center;min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:var(--wpds-dimension-size-sm,24px)}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:flex;margin:0}div.components-toolbar>div+div.has-left-divider{margin-right:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:inline-block;height:20px;position:absolute;right:-3px;top:8px;width:1px}.components-tooltip{background:#000;border-radius:var(--wpds-border-radius-md,4px);box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);color:#f0f0f0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4;padding:4px 8px;text-align:center;z-index:1000002}.components-tooltip__shortcut{margin-right:8px}.components-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control :is(textarea,input[type=text]):invalid[data-validity-visible]{--wp-admin-theme-color:#cc1818;--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])){--wp-admin-theme-color:#cc1818}.components-validated-control__wrapper-with-error-delegate{position:relative}.components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]){--wp-components-color-accent:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])){--wp-admin-theme-color:#cc1818;border-color:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable [role=textbox]{--wp-admin-theme-color:#cc1818;border-color:#cc1818}.components-validated-control__error-delegate{height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}.components-validated-control__indicator{align-items:flex-start;animation:components-validated-control__indicator-jump .2s cubic-bezier(.68,-.55,.27,1.55);color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;gap:4px;line-height:16px;margin:8px 0 0}.components-validated-control__indicator.is-invalid{color:#cc1818}.components-validated-control__indicator.is-valid{color:color-mix(in srgb,#000 30%,#4ab866)}.components-validated-control__indicator-icon{flex-shrink:0}.components-validated-control__indicator-spinner{height:12px;margin:2px;width:12px}@keyframes components-validated-control__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+@charset "UTF-8";@media not (prefers-reduced-motion){.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}@media not (prefers-reduced-motion){.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}@media not (prefers-reduced-motion){.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:200px;padding:8px}.components-autocomplete__result.components-button{display:flex;font-weight:var(--wpds-typography-font-weight-default,400);height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-badge{box-sizing:border-box}.components-badge *,.components-badge :after,.components-badge :before{box-sizing:inherit}.components-badge{background-color:color-mix(in srgb,#fff 90%,var(--base-color));border-radius:2px;color:color-mix(in srgb,#000 50%,var(--base-color));display:inline-block;line-height:0;max-width:100%;min-height:24px;padding:2px 8px}.components-badge:where(.is-default){background-color:#f0f0f0;color:#2f2f2f}.components-badge.has-icon{padding-inline-start:4px}.components-badge.is-info{--base-color:#3858e9}.components-badge.is-warning{--base-color:#f0b849}.components-badge.is-error{--base-color:#cc1818}.components-badge.is-success{--base-color:#4ab866}.components-badge__flex-wrapper{align-items:center;display:inline-flex;font-size:12px;font-weight:400;gap:2px;line-height:20px;max-width:100%}.components-badge__icon{flex-shrink:0}.components-badge__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.components-button-group{display:inline-block}.components-button-group .components-button{border-color:#1e1e1e;border-radius:0;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button:focus:is(a){box-shadow:none}.components-button:focus{outline:none}.components-button:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));cursor:var(--wpds-cursor-control,pointer);display:inline-flex;font-family:inherit;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:36px;margin:0;padding:4px 12px;text-decoration:none}.components-button.is-next-40px-default-size{height:40px}.components-button:hover:not(:disabled,[aria-disabled=true]),.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary,.components-button.is-primary:hover:not(:disabled){color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:hsla(0,0%,100%,.4)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:transparent;color:#949494;transform:none}@media not (prefers-reduced-motion){.components-button.is-secondary{transition:border-color .1s linear}}.components-button.is-secondary{background:transparent;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-secondary:active:not(:disabled){border-color:transparent}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6))}.components-button.is-secondary:focus:not(:active){border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus){border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}.components-button.is-tertiary{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6))}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 8%,transparent)}p+.components-button.is-tertiary{margin-right:-6px}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled,[aria-disabled=true]){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled,[aria-disabled=true]){background:#ccc}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):disabled,.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link)[aria-disabled=true]{color:#949494}.components-button.is-destructive.is-secondary:hover:not(:disabled,[aria-disabled=true]),.components-button.is-destructive.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(204,24,24,.04)}.components-button.is-destructive.is-secondary:active:not(:disabled,[aria-disabled=true]),.components-button.is-destructive.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(204,24,24,.08)}.components-button.is-link{background:none;border:0;border-radius:0;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));font-weight:var(--wpds-typography-font-weight-default,400);margin:0;outline:none;padding:0;text-align:right;text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}@media not (prefers-reduced-motion){.components-button.is-link{transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}}.components-button.is-link{height:auto}.components-button.is-link:focus:not(:active){border-radius:2px;text-decoration:none}.components-button.is-link:disabled,.components-button.is-link[aria-disabled=true]{color:#949494}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-button:disabled,.components-button[aria-disabled=true]{color:#949494;cursor:default}@media not (prefers-reduced-motion){.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite}}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0}.components-button.is-small{font-size:11px;height:var(--wpds-dimension-size-sm,24px);line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:var(--wpds-dimension-size-sm,24px);padding:0}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:content-box;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:12px;padding-right:8px}.components-button.has-icon.has-text.has-icon-right{padding-left:8px;padding-right:12px}.components-button.has-icon:not(.has-text) .dashicon,.components-button.has-icon:not(.has-text) svg{margin-inline:-1px}.components-button.is-pressed,.components-button.is-pressed:hover{color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-button.is-pressed:hover:not(:disabled,[aria-disabled=true]),.components-button.is-pressed:not(:disabled,[aria-disabled=true]){background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-button.is-pressed:disabled,.components-button.is-pressed[aria-disabled=true]{color:#949494}.components-button.is-pressed:disabled:not(.is-primary):not(.is-secondary):not(.is-tertiary),.components-button.is-pressed[aria-disabled=true]:not(.is-primary):not(.is-secondary):not(.is-tertiary){background:#949494;color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-button svg{fill:currentColor;flex-shrink:0;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}@keyframes components-button__busy-animation{0%{background-position:right 200px top 0}}.components-checkbox-control{--checkbox-input-size:24px}@media (min-width:600px){.components-checkbox-control{--checkbox-input-size:16px}}.components-checkbox-control{--checkbox-input-margin:8px}.components-checkbox-control__label{line-height:var(--checkbox-input-size)}.components-checkbox-control:not(:has(:disabled)) .components-checkbox-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.components-checkbox-control__input[type=checkbox]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-checkbox-control__input[type=checkbox]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.components-checkbox-control__input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;clear:none;color:#1e1e1e;display:inline-block;height:var(--checkbox-input-size);line-height:0;margin:0 0 0 4px;outline:0;padding:0!important;text-align:center;vertical-align:top;width:var(--checkbox-input-size)}@media not (prefers-reduced-motion){.components-checkbox-control__input[type=checkbox]{transition:border-color .1s ease-in-out}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:not(:disabled):is(:checked,:indeterminate){background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{aspect-ratio:1;display:inline-block;flex-shrink:0;line-height:1;margin-left:var(--checkbox-input-margin);position:relative;vertical-align:middle;width:var(--checkbox-input-size)}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:var(--checkbox-input-size);fill:#fff;cursor:var(--wpds-cursor-control,pointer);height:var(--checkmark-size);pointer-events:none;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--checkmark-size)}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:calc(var(--checkbox-input-size) + 4px)}}.components-checkbox-control:has(:disabled) svg.components-checkbox-control__checked,.components-checkbox-control:has(:disabled) svg.components-checkbox-control__indeterminate{fill:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-checkbox-control__help{display:inline-block;margin-inline-start:calc(var(--checkbox-input-size) + var(--checkbox-input-margin))}.components-circular-option-picker{display:inline-block;isolation:isolate;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);vertical-align:top;width:28px}@media not (prefers-reduced-motion){.components-circular-option-picker__option-wrapper{transition:transform .1s ease;will-change:transform}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cpath fill='%23555D65' d='M6 8V6H4v2zm2 0V6h2v2zm2 8H8v-2h2zm2 0v-2h2v2zm0 2v-2h-2v2H8v2h2v-2zm2 0v2h-2v-2zm2 0h-2v-2h2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2zm-2-4v-2h2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' d='M18 18v2h-2v-2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2zm0 2v-2H6v2zm2 0v-2h2v2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4zm0 4V2H2v2zm2 0V2h2v2zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2z' clip-rule='evenodd'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{aspect-ratio:1;background:transparent;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;display:inline-block;height:100%!important;vertical-align:top}@media not (prefers-reduced-motion){.components-circular-option-picker__option{transition:box-shadow .1s ease}}.components-circular-option-picker__option{cursor:var(--wpds-cursor-control,pointer)}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{border-radius:50%;pointer-events:none;position:absolute;right:2px;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid transparent;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:calc(100% + 4px);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:calc(100% + 4px)}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:260px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:none;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-combobox-control__suggestions-container{transition:box-shadow .1s linear}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-moz-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container{align-items:flex-start;display:flex;flex-wrap:wrap;padding:0;width:100%}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container .components-spinner{margin:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:4px 4px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer);height:64px;outline:1px solid transparent;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;border-radius:3px 3px 0 0;content:"";inset:1px;position:absolute;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 4px 4px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px!important;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);height:inherit;outline:2px solid transparent;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:1.5px solid transparent}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone .components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone .components-drop-zone__content-inner{opacity:0;transform:scale(.9)}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{opacity:1}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{transition:opacity .2s ease-in-out}}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{opacity:1;transform:scale(1)}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{transition:opacity .1s ease-in-out .1s,transform .1s ease-in-out .1s}}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{fill:currentColor;line-height:0;margin:0 auto 8px;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content .components-popover__content:has(.components-menu-group){padding:0}.components-dropdown__content .components-popover__content:has(.components-menu-group) .components-dropdown-menu__menu>.components-menu-item__button,.components-dropdown__content .components-popover__content:has(.components-menu-group)>.components-menu-item__button{margin:8px;width:auto}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown__content .components-menu-group{padding:8px}.components-dropdown__content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px}.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:32px;padding-left:8px;padding-right:8px;text-align:right}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);color:transparent}.components-duotone-picker__color-indicator>.components-button:hover:not(:disabled):not([aria-disabled=true]),.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-color{margin:2px}.components-external-link{text-decoration:none}.components-external-link,.components-external-link:visited{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.components-external-link:active,.components-external-link:hover{color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.components-external-link:focus{border-radius:0;box-shadow:none}.components-external-link:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-external-link__contents{text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}.components-external-link__icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px)}.components-form-toggle{display:inline-block;height:16px;isolation:isolate;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #949494;border-radius:8px;box-sizing:border-box;content:"";display:inline-block;height:16px;position:relative;vertical-align:top;width:32px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__track{transition:background-color .2s ease,border-color .2s ease}}.components-form-toggle .components-form-toggle__track{overflow:hidden}.components-form-toggle .components-form-toggle__track:after{border-top:16px solid transparent;box-sizing:border-box;content:"";inset:0;position:absolute}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__track:after{transition:opacity .2s ease}}.components-form-toggle .components-form-toggle__track:after{opacity:0}.components-form-toggle .components-form-toggle__thumb{border-radius:50%;box-sizing:border-box;display:block;height:12px;position:absolute;right:2px;top:2px;width:12px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__thumb{transition:transform .2s ease,background-color .2s ease-out}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:6px solid transparent;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01)}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-toggle.is-checked .components-form-toggle__track:after{opacity:1}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-16px)}.components-disabled .components-form-toggle .components-form-toggle__track,.components-form-toggle.is-disabled .components-form-toggle__track{background-color:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}@media (forced-colors:active){.components-disabled .components-form-toggle .components-form-toggle__track,.components-form-toggle.is-disabled .components-form-toggle__track{border-color:GrayText}}.components-disabled .components-form-toggle .components-form-toggle__thumb,.components-form-toggle.is-disabled .components-form-toggle__thumb{background-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));box-shadow:none}@media (forced-colors:active){.components-disabled .components-form-toggle .components-form-toggle__thumb,.components-form-toggle.is-disabled .components-form-toggle__thumb{border-color:GrayText}}.components-disabled .components-form-toggle.is-checked .components-form-toggle__track,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}@media (forced-colors:active){.components-disabled .components-form-toggle.is-checked .components-form-toggle__track,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track{border-color:GrayText}.components-disabled .components-form-toggle.is-checked .components-form-toggle__track:after,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track:after{border-top-color:GrayText}}.components-disabled .components-form-toggle.is-checked .components-form-toggle__thumb,.components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb{background-color:#fff}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle input.components-form-toggle__input[type=checkbox]:not(:disabled,[aria-disabled=true]){cursor:var(--wpds-cursor-control,pointer)}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-form-token-field__input-container{transition:box-shadow .1s linear}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-moz-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container{cursor:text;padding:0;width:100%}.components-form-token-field__input-container.is-disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));cursor:default}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-block;flex:1;font-family:inherit;font-size:16px;line-height:1;margin-right:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token.components-button,.components-form-token-field__token.is-disabled .components-form-token-field__token-text{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-form-token-field__token.is-borderless{padding:0 0 0 24px;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent}.components-form-token-field__token.is-borderless:not(.is-disabled) .components-form-token-field__token-text{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;left:0;position:absolute;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;min-width:unset}@media not (prefers-reduced-motion){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition:all .2s cubic-bezier(.4,1,.4,1)}}.components-form-token-field__token-text{border-radius:0 1px 1px 0;line-height:24px;overflow:hidden;padding:0 8px 0 0;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:1px 0 0 1px;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover:not(:disabled){color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;max-height:128px;min-width:100%;overflow-y:auto}@media not (prefers-reduced-motion){.components-form-token-field__suggestions-list{transition:all .15s ease-in-out}}.components-form-token-field__suggestions-list{box-shadow:inset 0 1px 0 0 #949494;list-style:none;margin:0;padding:0}.components-form-token-field__suggestion{box-sizing:border-box;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:block;font-size:13px;margin:0;min-height:32px;padding:8px 12px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-form-token-field__suggestion[aria-disabled=true]{color:#949494;pointer-events:none}.components-form-token-field__suggestion[aria-disabled=true].is-selected{background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent)}.components-form-token-field__suggestion:not(.is-empty){cursor:var(--wpds-cursor-control,pointer)}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:64px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-64px;min-height:100%}.components-guide .components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide .components-guide__page{min-height:300px}}.components-guide .components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 24px;position:relative;width:100%}.components-guide .components-guide__page-control{margin:0;text-align:center}.components-guide .components-guide__page-control li{display:inline-block;margin:0}.components-guide .components-guide__page-control .components-button{color:#e0e0e0;margin:-6px 0}.components-guide .components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-modal__frame.components-guide{border:none;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{position:absolute}.components-button.components-guide__back-button{right:24px}.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{left:24px}[role=region]{position:relative}[role=region].interface-interface-skeleton__content:focus-visible:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1))}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group:has(>div:empty){display:none}.components-menu-group__label{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{font-weight:var(--wpds-typography-font-weight-default,400);width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-left:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:-2px;margin-right:24px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:8px;margin-right:-2px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-left:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-left:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-left:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:0;margin-right:auto;padding-right:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{height:auto;min-height:40px}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}body.modal-open{overflow:hidden}.components-modal__screen-overlay{background-color:rgba(0,0,0,.35);bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.components-modal__screen-overlay{animation:__wp-base-styles-fade-in var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) 0s;animation-fill-mode:forwards}}@keyframes __wp-base-styles-fade-out{0%{opacity:1}to{opacity:0}}@media not (prefers-reduced-motion){.components-modal__screen-overlay.is-animating-out{animation:__wp-base-styles-fade-out var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) var(--wpds-motion-duration-xs,50ms);animation-fill-mode:forwards}}.components-modal__frame{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}.components-modal__frame{align-self:flex-end;animation-fill-mode:forwards;animation-name:components-modal__appear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1));background:#fff;border-radius:8px 8px 0 0;box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);color:#1e1e1e;display:flex;margin:0;max-height:calc(100% - 40px);overflow:hidden;width:100%}.components-modal__frame h1,.components-modal__frame h2,.components-modal__frame h3{color:#1e1e1e}@media not (prefers-reduced-motion){.components-modal__frame{animation-duration:var(--wpds-motion-duration-md,.2s)}}.components-modal__screen-overlay.is-animating-out .components-modal__frame{animation-name:components-modal__disappear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1))}@media (min-width:600px){.components-modal__frame{align-self:auto;border-radius:8px;margin:auto;max-height:calc(100% - 128px);max-width:calc(100% - 32px);min-width:var(--wpds-dimension-surface-width-sm,320px);width:auto}.components-modal__frame.has-size-large,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-small{width:100%}.components-modal__frame.has-size-small{max-width:var(--wpds-dimension-surface-width-md,400px)}.components-modal__frame.has-size-medium{max-width:var(--wpds-dimension-surface-width-lg,560px)}.components-modal__frame.has-size-large{max-width:var(--wpds-dimension-surface-width-2xl,960px)}}@media (min-width:960px){.components-modal__frame{max-height:70%}}.components-modal__frame.is-full-screen{border-radius:0;height:100%;margin:0;max-height:none;width:100%}.components-modal__frame.is-full-screen :where(.components-modal__content){display:flex;margin-bottom:24px;padding-bottom:0}.components-modal__frame.is-full-screen :where(.components-modal__content)>:last-child{flex:1}@media (min-width:600px){.components-modal__frame.is-full-screen{border-radius:8px;height:calc(100% - 32px);margin:auto;width:calc(100% - 32px)}}@media (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@keyframes components-modal__appear-animation{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@media (min-width:600px){@keyframes components-modal__appear-animation{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.9)}}}.components-modal__header{align-items:center;border-bottom:1px solid transparent;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;padding:24px;position:absolute;right:0;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:20px;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-modal__header h1{line-height:1;margin:0}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:flex-start}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:4px 24px 24px}.components-modal__content.hide-header{margin-top:0;padding-top:24px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:-2px}.components-notice{--wp-components-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-components-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);align-items:start;background-color:var(--wp-components-notice-background-color);border:var(--wpds-border-width-xs,1px) solid var(--wp-components-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wp-components-notice-text-color);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-template-columns:1fr auto;line-height:var(--wpds-typography-line-height-sm,20px);padding:var(--wpds-dimension-padding-md,12px)}.components-notice.is-success{--wp-components-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-components-notice-text-color:var(--wpds-color-foreground-content-success,#002900)}.components-notice.is-warning{--wp-components-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-components-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900)}.components-notice.is-error{--wp-components-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-components-notice-text-color:var(--wpds-color-foreground-content-error,#470000)}.components-notice__content{grid-column:1;grid-row:1;padding-block:calc((var(--wpds-dimension-size-sm, 24px) - 1lh)/2)}.components-notice__actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:1;grid-row:2;margin-top:var(--wpds-dimension-gap-sm,8px)}.components-notice__dismiss{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);grid-column:2;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:transparent;color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-md,12px);max-width:100vw}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;display:flex;flex-shrink:0;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0}@media not (prefers-reduced-motion){.components-panel__body>.components-panel__body-title{transition:background .1s ease-in-out}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:16px 16px 16px 48px;position:relative;text-align:right;width:100%}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button{transition:background .1s ease-in-out}}.components-panel__body-toggle.components-button{height:auto}.components-panel__body-toggle.components-button:focus{border-radius:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-panel__body-toggle.components-button .components-panel__arrow{fill:currentColor;color:#1e1e1e;left:16px;position:absolute;top:50%;transform:translateY(-50%)}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button .components-panel__arrow{transition:color .1s ease-in-out}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-left:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{-webkit-font-smoothing:subpixel-antialiased;align-items:flex-start;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:column;font-size:13px;gap:16px;margin:0;outline:1px solid transparent;padding:24px;position:relative;text-align:right;width:100%}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;letter-spacing:normal;line-height:normal;text-transform:none}.components-placeholder__label{align-items:center;display:flex;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-left:4px}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;justify-content:flex-start;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-placeholder__input[type=url]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]{flex:1 1 auto}.components-placeholder__error{gap:8px;width:100%}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-button,.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*{justify-content:center;width:100%}.components-placeholder.is-small{padding:16px}.components-placeholder.has-illustration{backdrop-filter:blur(100px);backface-visibility:hidden;background-color:transparent;border-radius:0;box-shadow:none;color:inherit;display:flex}.is-dark-theme .components-placeholder.has-illustration{background-color:rgba(0,0,0,.1)}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none}@media not (prefers-reduced-motion){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition:opacity .1s linear}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder.has-illustration{overflow:hidden}.is-selected .components-placeholder.has-illustration{overflow:auto}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{stroke:currentColor;box-sizing:content-box;height:100%;opacity:.25;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:100%}.components-popover{box-sizing:border-box}.components-popover *,.components-popover :after,.components-popover :before{box-sizing:inherit}.components-popover{will-change:transform;z-index:1000000}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:4px;box-shadow:0 0 0 1px #ccc,0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);box-sizing:border-box;width:-moz-min-content;width:min-content}.is-alternate .components-popover__content{border-radius:2px;box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 16px 0 8px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:transparent;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control{border:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0;padding:0}.components-radio-control__group-wrapper.has-help{margin-block-end:12px}.components-radio-control__option{align-items:center;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto minmax(0,max-content)}.components-radio-control__input[type=radio]{border:1px solid #1e1e1e;border-radius:50%;grid-column:1;grid-row:1;height:24px;margin-left:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.components-radio-control__input[type=radio]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-radio-control__input[type=radio]{height:16px;max-width:16px;min-width:16px;width:16px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{height:8px;width:8px}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border:none}.components-radio-control__input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;margin:0;padding:0}.components-radio-control__input[type=radio]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-radio-control__input[type=radio]:checked{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked:before{border-radius:50%;content:""}.components-radio-control__input[type=radio]:disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border:1px solid var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);opacity:1}.components-radio-control__input[type=radio]:disabled:checked:before{border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));opacity:1}.components-radio-control__label{grid-column:2;grid-row:1}.components-radio-control:not(:disabled) .components-radio-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__label{line-height:24px}@media (min-width:600px){.components-radio-control__label{line-height:16px}}.components-radio-control__option-description{grid-column:2;grid-row:2;padding-block-start:4px}.components-radio-control__option-description.components-radio-control__option-description{margin-top:0}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle>div{height:100%;outline:none;position:relative;width:100%;z-index:2}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)),0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);content:"";cursor:inherit;display:block;height:15px;left:calc(50% - 8px);outline:2px solid transparent;position:absolute;top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:9999px;content:"";cursor:inherit;display:block;height:3px;left:calc(50% - 1px);position:absolute;top:calc(50% - 1px);width:3px}@media not (prefers-reduced-motion){.components-resizable-box__side-handle:before{transition:transform .1s ease-in;will-change:transform}}.components-resizable-box__side-handle:before{opacity:0}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;right:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}@media not (prefers-reduced-motion){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{-webkit-tap-highlight-color:rgba(0,0,0,0)!important;outline:0}.components-snackbar{backdrop-filter:blur(16px) saturate(180%);background:rgba(0,0,0,.85);border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);box-sizing:border-box;color:#fff;cursor:var(--wpds-cursor-control,pointer);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:var(--wpds-dimension-surface-width-lg,560px);padding:12px 20px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{padding-right:24px;position:relative}.components-snackbar .components-snackbar__icon{position:absolute;right:-8px;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{cursor:var(--wpds-cursor-control,pointer);margin-right:24px}.components-snackbar__action.components-button,.components-snackbar__action.components-external-link{color:#fff;flex-shrink:0;margin-right:32px}.components-snackbar__action.components-button:focus,.components-snackbar__action.components-external-link:focus{box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:hover,.components-snackbar__action.components-external-link:hover{color:currentColor;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);height:48px!important;margin-right:0;padding:3px var(--wpds-dimension-padding-lg,16px);position:relative}.components-tab-panel__tabs-item:disabled,.components-tab-panel__tabs-item[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);border-radius:0;bottom:0;content:"";height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*0);left:0;pointer-events:none;position:absolute;right:0}@media not (prefers-reduced-motion){.components-tab-panel__tabs-item:after{transition:height .1s linear}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*1);outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:0 0 0 0 transparent;content:"";inset:var(--wpds-dimension-padding-md,12px);pointer-events:none;position:absolute}@media not (prefers-reduced-motion){.components-tab-panel__tabs-item:before{transition:box-shadow .1s linear}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item{border-radius:var(--wpds-border-radius-sm,2px)}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:after{display:none}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item.is-active{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.components-tab-panel__tab-content:focus{box-shadow:none;outline:none}.components-tab-panel__tab-content:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:0}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:6px 8px;width:100%}@media not (prefers-reduced-motion){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:rgba(30,30,30,.62)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border-color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));padding-left:12px;padding-right:12px}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.components-text-control__input[type=email],.components-text-control__input[type=url]{direction:ltr}.components-tip{color:#757575;display:flex}.components-tip svg{fill:#f0b849;align-self:center;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-toggle-control__label{line-height:16px}.components-toggle-control__label:not(.is-disabled){cursor:var(--wpds-cursor-control,pointer)}.components-toggle-control__help{display:inline-block;margin-inline-start:40px}.components-accessible-toolbar{border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-left:none}.components-accessible-toolbar[aria-orientation=vertical],.components-toolbar[aria-orientation=vertical]{align-items:center;display:flex;flex-direction:column}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:8px;padding-right:8px}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);left:8px;line-height:12px;position:absolute}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border-left:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group{line-height:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{justify-content:center;min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:var(--wpds-dimension-size-sm,24px)}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:flex;margin:0}div.components-toolbar>div+div.has-left-divider{margin-right:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:inline-block;height:20px;position:absolute;right:-3px;top:8px;width:1px}.components-tooltip{background:#000;border-radius:var(--wpds-border-radius-md,4px);box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);color:#f0f0f0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4;padding:4px 8px;text-align:center;z-index:1000002}.components-tooltip__shortcut{margin-right:8px}.components-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control textarea:invalid[data-validity-visible]{--wp-admin-theme-color:#cc1818;--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])){--wp-admin-theme-color:#cc1818}.components-validated-control__wrapper-with-error-delegate{position:relative}.components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]){--wp-components-color-accent:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])){--wp-admin-theme-color:#cc1818;border-color:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable [role=textbox]{--wp-admin-theme-color:#cc1818;border-color:#cc1818}.components-validated-control__error-delegate{height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}.components-validated-control__indicator{align-items:flex-start;animation:components-validated-control__indicator-jump .2s cubic-bezier(.68,-.55,.27,1.55);color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;gap:4px;line-height:16px;margin:8px 0 0}.components-validated-control__indicator.is-invalid{color:#cc1818}.components-validated-control__indicator.is-valid{color:color-mix(in srgb,#000 30%,#4ab866)}.components-validated-control__indicator-icon{flex-shrink:0}.components-validated-control__indicator-spinner{height:12px;margin:2px;width:12px}@keyframes components-validated-control__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
diff --git a/wp-includes/css/dist/components/style.css b/wp-includes/css/dist/components/style.css
index 4a9b097683..87a99a3d2e 100644
--- a/wp-includes/css/dist/components/style.css
+++ b/wp-includes/css/dist/components/style.css
@@ -264,6 +264,9 @@
.components-button:focus:is(a) {
box-shadow: none;
}
+.components-button:focus {
+ outline: none;
+}
.components-button:focus:not(:active) {
--focus-color: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color);
@@ -543,369 +546,6 @@ p + .components-button.is-tertiary {
background-position: 200px 0;
}
}
-/* Root of the component. */
-.components-calendar {
- position: relative; /* Required to position the navigation toolbar. */
- box-sizing: border-box;
- display: inline flow-root;
- color: var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e));
- background-color: var(--wp-components-color-background, var(--wpds-color-background-surface-neutral-strong, #fff));
- font-size: 13px;
- font-weight: var(--wpds-typography-font-weight-default, 400);
- z-index: 0;
-}
-.components-calendar *,
-.components-calendar *::before,
-.components-calendar *::after {
- box-sizing: border-box;
-}
-
-.components-calendar__day {
- padding: 0;
- position: relative;
-}
-.components-calendar__day:has(.components-calendar__day-button:disabled) {
- color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d));
-}
-.components-calendar__day:has(.components-calendar__day-button:hover:not(:disabled)), .components-calendar__day:has(.components-calendar__day-button:focus-visible) {
- color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
-}
-
-.components-calendar__day-button {
- background: none;
- padding: 0;
- margin: 0;
- cursor: var(--wpds-cursor-control, pointer);
- justify-content: center;
- align-items: center;
- display: flex;
- position: relative;
- width: 32px;
- height: 32px;
- border: none;
- border-radius: 2px;
- font: inherit;
- font-variant-numeric: tabular-nums;
- color: inherit;
-}
-.components-calendar__day-button::before {
- content: "";
- position: absolute;
- z-index: -1;
- inset: 0;
- border: none;
- border-radius: 2px;
-}
-.components-calendar__day-button::after {
- content: "";
- position: absolute;
- z-index: 1;
- inset: 0;
- pointer-events: none;
-}
-.components-calendar__day-button:disabled {
- cursor: revert;
-}
-@media (forced-colors: active) {
- .components-calendar__day-button:disabled {
- text-decoration: line-through;
- }
-}
-.components-calendar__day-button:focus-visible {
- outline: var(--wp-admin-border-width-focus) solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
- outline-offset: 1px;
-}
-
-.components-calendar__caption-label {
- z-index: 1;
- position: relative;
- display: inline-flex;
- align-items: center;
- white-space: nowrap;
- border: 0;
- text-transform: capitalize;
-}
-
-.components-calendar__button-next,
-.components-calendar__button-previous {
- border: none;
- border-radius: 2px;
- background: none;
- padding: 0;
- margin: 0;
- cursor: var(--wpds-cursor-control, pointer);
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- position: relative;
- width: 32px;
- height: 32px;
- color: inherit;
-}
-.components-calendar__button-next:disabled, .components-calendar__button-next[aria-disabled=true],
-.components-calendar__button-previous:disabled,
-.components-calendar__button-previous[aria-disabled=true] {
- cursor: revert;
- color: var(--wp-components-color-gray-600, var(--wpds-color-stroke-interactive-neutral, #8d8d8d));
-}
-.components-calendar__button-next:focus-visible,
-.components-calendar__button-previous:focus-visible {
- outline: var(--wp-admin-border-width-focus) solid var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
-}
-
-.components-calendar__chevron {
- display: inline-block;
- fill: currentColor;
- width: 16px;
- height: 16px;
-}
-
-.components-calendar[dir=rtl] .components-calendar__nav .components-calendar__chevron {
- transform: rotate(180deg);
- transform-origin: 50%;
-}
-
-.components-calendar__month-caption {
- display: flex;
- justify-content: center;
- align-content: center;
- height: 32px;
- margin-bottom: 12px;
-}
-
-.components-calendar__months {
- position: relative;
- display: flex;
- justify-content: center;
- flex-wrap: wrap;
- gap: 16px;
- max-width: -moz-fit-content;
- max-width: fit-content;
-}
-
-.components-calendar__month-grid {
- border-collapse: separate;
- border-spacing: 0 4px;
-}
-
-.components-calendar__nav {
- position: absolute;
- inset-block-start: 0;
- inset-inline-start: 0;
- inset-inline-end: 0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 32px;
-}
-
-.components-calendar__weekday {
- width: 32px;
- height: 32px;
- padding: 0;
- color: var(--wp-components-color-gray-700, var(--wpds-color-foreground-content-neutral-weak, #707070));
- text-align: center;
- text-transform: uppercase;
-}
-
-/* DAY MODIFIERS */
-.components-calendar__day--today::after {
- content: "";
- position: absolute;
- z-index: 1;
- inset-block-start: 2px;
- inset-inline-end: 2px;
- width: 0;
- height: 0;
- border-radius: 50%;
- border: 2px solid currentColor;
-}
-
-.components-calendar__day--selected:not(.components-calendar__range-middle):has(.components-calendar__day-button,
-.components-calendar__day-button:hover:not(:disabled)) {
- color: var(--wp-components-color-foreground-inverted, var(--wpds-color-background-surface-neutral, #fcfcfc));
-}
-.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button::before {
- background-color: var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e));
- border: 1px solid transparent;
-}
-.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:disabled::before {
- background-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d));
-}
-.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:hover:not(:disabled)::before {
- background-color: var(--wp-components-color-gray-800, var(--wpds-color-foreground-content-neutral, #1e1e1e));
-}
-
-.components-calendar__day--outside {
- color: var(--wp-components-color-gray-600, var(--wpds-color-stroke-interactive-neutral, #8d8d8d));
-}
-
-.components-calendar__day--hidden {
- visibility: hidden;
-}
-
-.components-calendar__range-start:not(.components-calendar__range-end) .components-calendar__day-button, .components-calendar__range-start:not(.components-calendar__range-end) .components-calendar__day-button::before {
- border-start-end-radius: 0;
- border-end-end-radius: 0;
-}
-
-.components-calendar__range-middle .components-calendar__day-button::before {
- background-color: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 4%, transparent);
- border-radius: 0;
- border-width: 1px 0;
- border-color: transparent;
- border-style: solid;
-}
-
-.components-calendar__range-end:not(.components-calendar__range-start) .components-calendar__day-button, .components-calendar__range-end:not(.components-calendar__range-start) .components-calendar__day-button::before {
- border-start-start-radius: 0;
- border-end-start-radius: 0;
-}
-
-/*
- * RANGE PREVIEW (range calendar only)
- *
- * The preview is rendered in the button's ::after pseudo-element, so that it
- * can be rendered over the button's contents.
- * The selection preview is shown with a dashed border. In order to have
- * control over the dash pattern (especially the seams between days), the
- * dashed borders are rendered as SVGs via the url() CSS function.
- * Since SVGs rendered in the url() function don't seem to be able to access
- * CSS variables, we're using the SVGs as masks, and using `background-color`
- * to consume the accent color variable.
- */
-.components-calendar__day--preview svg {
- position: absolute;
- inset: 0;
- pointer-events: none;
- color: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 16%, transparent);
-}
-@media (forced-colors: active) {
- .components-calendar__day--preview svg {
- color: inherit;
- }
-}
-.components-calendar[dir=rtl] .components-calendar__day--preview svg {
- transform: scaleX(-1);
-}
-
-.components-calendar__day--preview.components-calendar__range-middle .components-calendar__day-button::before {
- border: none;
-}
-
-/* ANIMATIONS */
-@keyframes slide-in-left {
- 0% {
- transform: translateX(-100%);
- }
- 100% {
- transform: translateX(0);
- }
-}
-@keyframes slide-in-right {
- 0% {
- transform: translateX(100%);
- }
- 100% {
- transform: translateX(0);
- }
-}
-@keyframes slide-out-left {
- 0% {
- transform: translateX(0);
- }
- 100% {
- transform: translateX(-100%);
- }
-}
-@keyframes slide-out-right {
- 0% {
- transform: translateX(0);
- }
- 100% {
- transform: translateX(100%);
- }
-}
-@keyframes fade-in {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-@keyframes fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
-}
-.components-calendar__weeks-before-enter,
-.components-calendar__weeks-before-exit,
-.components-calendar__weeks-after-enter,
-.components-calendar__weeks-after-exit,
-.components-calendar__caption-after-enter,
-.components-calendar__caption-after-exit,
-.components-calendar__caption-before-enter,
-.components-calendar__caption-before-exit {
- animation-duration: 0s;
- animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
- animation-fill-mode: forwards;
-}
-@media not (prefers-reduced-motion) {
- .components-calendar__weeks-before-enter,
- .components-calendar__weeks-before-exit,
- .components-calendar__weeks-after-enter,
- .components-calendar__weeks-after-exit,
- .components-calendar__caption-after-enter,
- .components-calendar__caption-after-exit,
- .components-calendar__caption-before-enter,
- .components-calendar__caption-before-exit {
- animation-duration: 0.3s;
- }
-}
-
-.components-calendar__weeks-before-enter,
-.components-calendar[dir=rtl] .components-calendar__weeks-after-enter {
- animation-name: slide-in-left;
-}
-
-.components-calendar__weeks-before-exit,
-.components-calendar[dir=rtl] .components-calendar__weeks-after-exit {
- animation-name: slide-out-left;
-}
-
-.components-calendar__weeks-after-enter,
-.components-calendar[dir=rtl] .components-calendar__weeks-before-enter {
- animation-name: slide-in-right;
-}
-
-.components-calendar__weeks-after-exit,
-.components-calendar[dir=rtl] .components-calendar__weeks-before-exit {
- animation-name: slide-out-right;
-}
-
-.components-calendar__caption-after-enter {
- animation-name: fade-in;
-}
-
-.components-calendar__caption-after-exit {
- animation-name: fade-out;
-}
-
-.components-calendar__caption-before-enter {
- animation-name: fade-in;
-}
-
-.components-calendar__caption-before-exit {
- animation-name: fade-out;
-}
-
.components-checkbox-control {
--checkbox-input-size: 24px;
}
@@ -2275,6 +1915,10 @@ input.components-combobox-control__input[type=text]:focus {
padding-left: 12px;
}
+body.modal-open {
+ overflow: hidden;
+}
+
.components-modal__screen-overlay {
position: fixed;
top: 0;
@@ -3946,7 +3590,7 @@ div.components-toolbar > div + div.has-left-divider::before {
--wp-components-color-accent: #cc1818;
border-color: #cc1818;
}
-.components-validated-control :is(textarea, input[type=text]):invalid[data-validity-visible] {
+.components-validated-control textarea:invalid[data-validity-visible] {
--wp-admin-theme-color: #cc1818;
--wp-components-color-accent: #cc1818;
border-color: #cc1818;
diff --git a/wp-includes/css/dist/components/style.min.css b/wp-includes/css/dist/components/style.min.css
index 50e31e3c7d..7222d6c324 100644
--- a/wp-includes/css/dist/components/style.min.css
+++ b/wp-includes/css/dist/components/style.min.css
@@ -1 +1 @@
-@charset "UTF-8";@media not (prefers-reduced-motion){.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}@media not (prefers-reduced-motion){.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}@media not (prefers-reduced-motion){.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:200px;padding:8px}.components-autocomplete__result.components-button{display:flex;font-weight:var(--wpds-typography-font-weight-default,400);height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-badge{box-sizing:border-box}.components-badge *,.components-badge :after,.components-badge :before{box-sizing:inherit}.components-badge{background-color:color-mix(in srgb,#fff 90%,var(--base-color));border-radius:2px;color:color-mix(in srgb,#000 50%,var(--base-color));display:inline-block;line-height:0;max-width:100%;min-height:24px;padding:2px 8px}.components-badge:where(.is-default){background-color:#f0f0f0;color:#2f2f2f}.components-badge.has-icon{padding-inline-start:4px}.components-badge.is-info{--base-color:#3858e9}.components-badge.is-warning{--base-color:#f0b849}.components-badge.is-error{--base-color:#cc1818}.components-badge.is-success{--base-color:#4ab866}.components-badge__flex-wrapper{align-items:center;display:inline-flex;font-size:12px;font-weight:400;gap:2px;line-height:20px;max-width:100%}.components-badge__icon{flex-shrink:0}.components-badge__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.components-button-group{display:inline-block}.components-button-group .components-button{border-color:#1e1e1e;border-radius:0;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button:focus:is(a){box-shadow:none}.components-button:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));cursor:var(--wpds-cursor-control,pointer);display:inline-flex;font-family:inherit;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:36px;margin:0;padding:4px 12px;text-decoration:none}.components-button.is-next-40px-default-size{height:40px}.components-button:hover:not(:disabled,[aria-disabled=true]),.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary,.components-button.is-primary:hover:not(:disabled){color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:hsla(0,0%,100%,.4)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:transparent;color:#949494;transform:none}@media not (prefers-reduced-motion){.components-button.is-secondary{transition:border-color .1s linear}}.components-button.is-secondary{background:transparent;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-secondary:active:not(:disabled){border-color:transparent}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6))}.components-button.is-secondary:focus:not(:active){border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus){border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}.components-button.is-tertiary{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6))}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 8%,transparent)}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled,[aria-disabled=true]){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled,[aria-disabled=true]){background:#ccc}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):disabled,.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link)[aria-disabled=true]{color:#949494}.components-button.is-destructive.is-secondary:hover:not(:disabled,[aria-disabled=true]),.components-button.is-destructive.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(204,24,24,.04)}.components-button.is-destructive.is-secondary:active:not(:disabled,[aria-disabled=true]),.components-button.is-destructive.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(204,24,24,.08)}.components-button.is-link{background:none;border:0;border-radius:0;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));font-weight:var(--wpds-typography-font-weight-default,400);margin:0;outline:none;padding:0;text-align:left;text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}@media not (prefers-reduced-motion){.components-button.is-link{transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}}.components-button.is-link{height:auto}.components-button.is-link:focus:not(:active){border-radius:2px;text-decoration:none}.components-button.is-link:disabled,.components-button.is-link[aria-disabled=true]{color:#949494}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-button:disabled,.components-button[aria-disabled=true]{color:#949494;cursor:default}@media not (prefers-reduced-motion){.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite}}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0}.components-button.is-small{font-size:11px;height:var(--wpds-dimension-size-sm,24px);line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:var(--wpds-dimension-size-sm,24px);padding:0}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:content-box;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:8px;padding-right:12px}.components-button.has-icon.has-text.has-icon-right{padding-left:12px;padding-right:8px}.components-button.has-icon:not(.has-text) .dashicon,.components-button.has-icon:not(.has-text) svg{margin-inline:-1px}.components-button.is-pressed,.components-button.is-pressed:hover{color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-button.is-pressed:hover:not(:disabled,[aria-disabled=true]),.components-button.is-pressed:not(:disabled,[aria-disabled=true]){background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-button.is-pressed:disabled,.components-button.is-pressed[aria-disabled=true]{color:#949494}.components-button.is-pressed:disabled:not(.is-primary):not(.is-secondary):not(.is-tertiary),.components-button.is-pressed[aria-disabled=true]:not(.is-primary):not(.is-secondary):not(.is-tertiary){background:#949494;color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-button svg{fill:currentColor;flex-shrink:0;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-calendar{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-block;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);position:relative;z-index:0}.components-calendar,.components-calendar *,.components-calendar :after,.components-calendar :before{box-sizing:border-box}.components-calendar__day{padding:0;position:relative}.components-calendar__day:has(.components-calendar__day-button:disabled){color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-calendar__day:has(.components-calendar__day-button:focus-visible),.components-calendar__day:has(.components-calendar__day-button:hover:not(:disabled)){color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-calendar__day-button{align-items:center;background:none;border:none;border-radius:2px;color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;font:inherit;font-variant-numeric:tabular-nums;height:32px;justify-content:center;margin:0;padding:0;position:relative;width:32px}.components-calendar__day-button:before{border:none;border-radius:2px;content:"";inset:0;position:absolute;z-index:-1}.components-calendar__day-button:after{content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.components-calendar__day-button:disabled{cursor:revert}@media (forced-colors:active){.components-calendar__day-button:disabled{text-decoration:line-through}}.components-calendar__day-button:focus-visible{outline:var(--wp-admin-border-width-focus) solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-offset:1px}.components-calendar__caption-label{align-items:center;border:0;display:inline-flex;position:relative;text-transform:capitalize;white-space:nowrap;z-index:1}.components-calendar__button-next,.components-calendar__button-previous{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-radius:2px;color:inherit;cursor:var(--wpds-cursor-control,pointer);display:inline-flex;height:32px;justify-content:center;margin:0;padding:0;position:relative;width:32px}.components-calendar__button-next:disabled,.components-calendar__button-next[aria-disabled=true],.components-calendar__button-previous:disabled,.components-calendar__button-previous[aria-disabled=true]{color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));cursor:revert}.components-calendar__button-next:focus-visible,.components-calendar__button-previous:focus-visible{outline:var(--wp-admin-border-width-focus) solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-calendar__chevron{fill:currentColor;display:inline-block;height:16px;width:16px}.components-calendar[dir=rtl] .components-calendar__nav .components-calendar__chevron{transform:rotate(180deg);transform-origin:50%}.components-calendar__month-caption{align-content:center;display:flex;height:32px;justify-content:center;margin-bottom:12px}.components-calendar__months{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;max-width:-moz-fit-content;max-width:fit-content;position:relative}.components-calendar__month-grid{border-collapse:separate;border-spacing:0 4px}.components-calendar__nav{align-items:center;display:flex;height:32px;inset-block-start:0;inset-inline-end:0;inset-inline-start:0;justify-content:space-between;position:absolute}.components-calendar__weekday{color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));height:32px;padding:0;text-align:center;text-transform:uppercase;width:32px}.components-calendar__day--today:after{border:2px solid;border-radius:50%;content:"";height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0;z-index:1}.components-calendar__day--selected:not(.components-calendar__range-middle):has(.components-calendar__day-button,.components-calendar__day-button:hover:not(:disabled)){color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:before{background-color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border:1px solid transparent}.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:disabled:before{background-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-calendar__day--selected:not(.components-calendar__range-middle) .components-calendar__day-button:hover:not(:disabled):before{background-color:var(--wp-components-color-gray-800,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-calendar__day--outside{color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-calendar__day--hidden{visibility:hidden}.components-calendar__range-start:not(.components-calendar__range-end) .components-calendar__day-button,.components-calendar__range-start:not(.components-calendar__range-end) .components-calendar__day-button:before{border-end-end-radius:0;border-start-end-radius:0}.components-calendar__range-middle .components-calendar__day-button:before{background-color:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);border-color:transparent;border-radius:0;border-style:solid;border-width:1px 0}.components-calendar__range-end:not(.components-calendar__range-start) .components-calendar__day-button,.components-calendar__range-end:not(.components-calendar__range-start) .components-calendar__day-button:before{border-end-start-radius:0;border-start-start-radius:0}.components-calendar__day--preview svg{color:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 16%,transparent);inset:0;pointer-events:none;position:absolute}@media (forced-colors:active){.components-calendar__day--preview svg{color:inherit}}.components-calendar[dir=rtl] .components-calendar__day--preview svg{transform:scaleX(-1)}.components-calendar__day--preview.components-calendar__range-middle .components-calendar__day-button:before{border:none}@keyframes slide-in-left{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes slide-in-right{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slide-out-left{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes slide-out-right{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}.components-calendar__caption-after-enter,.components-calendar__caption-after-exit,.components-calendar__caption-before-enter,.components-calendar__caption-before-exit,.components-calendar__weeks-after-enter,.components-calendar__weeks-after-exit,.components-calendar__weeks-before-enter,.components-calendar__weeks-before-exit{animation-duration:0s;animation-fill-mode:forwards;animation-timing-function:cubic-bezier(.4,0,.2,1)}@media not (prefers-reduced-motion){.components-calendar__caption-after-enter,.components-calendar__caption-after-exit,.components-calendar__caption-before-enter,.components-calendar__caption-before-exit,.components-calendar__weeks-after-enter,.components-calendar__weeks-after-exit,.components-calendar__weeks-before-enter,.components-calendar__weeks-before-exit{animation-duration:.3s}}.components-calendar[dir=rtl] .components-calendar__weeks-after-enter,.components-calendar__weeks-before-enter{animation-name:slide-in-left}.components-calendar[dir=rtl] .components-calendar__weeks-after-exit,.components-calendar__weeks-before-exit{animation-name:slide-out-left}.components-calendar[dir=rtl] .components-calendar__weeks-before-enter,.components-calendar__weeks-after-enter{animation-name:slide-in-right}.components-calendar[dir=rtl] .components-calendar__weeks-before-exit,.components-calendar__weeks-after-exit{animation-name:slide-out-right}.components-calendar__caption-after-enter{animation-name:fade-in}.components-calendar__caption-after-exit{animation-name:fade-out}.components-calendar__caption-before-enter{animation-name:fade-in}.components-calendar__caption-before-exit{animation-name:fade-out}.components-checkbox-control{--checkbox-input-size:24px}@media (min-width:600px){.components-checkbox-control{--checkbox-input-size:16px}}.components-checkbox-control{--checkbox-input-margin:8px}.components-checkbox-control__label{line-height:var(--checkbox-input-size)}.components-checkbox-control:not(:has(:disabled)) .components-checkbox-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.components-checkbox-control__input[type=checkbox]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-checkbox-control__input[type=checkbox]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.components-checkbox-control__input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;clear:none;color:#1e1e1e;display:inline-block;height:var(--checkbox-input-size);line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:var(--checkbox-input-size)}@media not (prefers-reduced-motion){.components-checkbox-control__input[type=checkbox]{transition:border-color .1s ease-in-out}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:not(:disabled):is(:checked,:indeterminate){background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{aspect-ratio:1;display:inline-block;flex-shrink:0;line-height:1;margin-right:var(--checkbox-input-margin);position:relative;vertical-align:middle;width:var(--checkbox-input-size)}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:var(--checkbox-input-size);fill:#fff;cursor:var(--wpds-cursor-control,pointer);height:var(--checkmark-size);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--checkmark-size)}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:calc(var(--checkbox-input-size) + 4px)}}.components-checkbox-control:has(:disabled) svg.components-checkbox-control__checked,.components-checkbox-control:has(:disabled) svg.components-checkbox-control__indeterminate{fill:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-checkbox-control__help{display:inline-block;margin-inline-start:calc(var(--checkbox-input-size) + var(--checkbox-input-margin))}.components-circular-option-picker{display:inline-block;isolation:isolate;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);vertical-align:top;width:28px}@media not (prefers-reduced-motion){.components-circular-option-picker__option-wrapper{transition:transform .1s ease;will-change:transform}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cpath fill='%23555D65' d='M6 8V6H4v2zm2 0V6h2v2zm2 8H8v-2h2zm2 0v-2h2v2zm0 2v-2h-2v2H8v2h2v-2zm2 0v2h-2v-2zm2 0h-2v-2h2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2zm-2-4v-2h2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' d='M18 18v2h-2v-2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2zm0 2v-2H6v2zm2 0v-2h2v2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4zm0 4V2H2v2zm2 0V2h2v2zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2z' clip-rule='evenodd'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{aspect-ratio:1;background:transparent;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;display:inline-block;height:100%!important;vertical-align:top}@media not (prefers-reduced-motion){.components-circular-option-picker__option{transition:box-shadow .1s ease}}.components-circular-option-picker__option{cursor:var(--wpds-cursor-control,pointer)}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{border-radius:50%;left:2px;pointer-events:none;position:absolute;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid transparent;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:calc(100% + 4px);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 4px)}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:260px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:none;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-combobox-control__suggestions-container{transition:box-shadow .1s linear}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-moz-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container{align-items:flex-start;display:flex;flex-wrap:wrap;padding:0;width:100%}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container .components-spinner{margin:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:4px 4px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer);height:64px;outline:1px solid transparent;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;border-radius:3px 3px 0 0;content:"";inset:1px;position:absolute;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 4px 4px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px!important;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);height:inherit;outline:2px solid transparent;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:1.5px solid transparent}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone .components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone .components-drop-zone__content-inner{opacity:0;transform:scale(.9)}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{opacity:1}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{transition:opacity .2s ease-in-out}}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{opacity:1;transform:scale(1)}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{transition:opacity .1s ease-in-out .1s,transform .1s ease-in-out .1s}}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{fill:currentColor;line-height:0;margin:0 auto 8px;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content .components-popover__content:has(.components-menu-group){padding:0}.components-dropdown__content .components-popover__content:has(.components-menu-group) .components-dropdown-menu__menu>.components-menu-item__button,.components-dropdown__content .components-popover__content:has(.components-menu-group)>.components-menu-item__button{margin:8px;width:auto}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown__content .components-menu-group{padding:8px}.components-dropdown__content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px}.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:32px;padding-left:8px;padding-right:8px;text-align:left}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);color:transparent}.components-duotone-picker__color-indicator>.components-button:hover:not(:disabled):not([aria-disabled=true]),.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-color{margin:2px}.components-external-link{text-decoration:none}.components-external-link,.components-external-link:visited{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.components-external-link:active,.components-external-link:hover{color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.components-external-link:focus{border-radius:0;box-shadow:none}.components-external-link:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-external-link__contents{text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}.components-external-link__icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px)}.components-form-toggle{display:inline-block;height:16px;isolation:isolate;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #949494;border-radius:8px;box-sizing:border-box;content:"";display:inline-block;height:16px;position:relative;vertical-align:top;width:32px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__track{transition:background-color .2s ease,border-color .2s ease}}.components-form-toggle .components-form-toggle__track{overflow:hidden}.components-form-toggle .components-form-toggle__track:after{border-top:16px solid transparent;box-sizing:border-box;content:"";inset:0;position:absolute}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__track:after{transition:opacity .2s ease}}.components-form-toggle .components-form-toggle__track:after{opacity:0}.components-form-toggle .components-form-toggle__thumb{border-radius:50%;box-sizing:border-box;display:block;height:12px;left:2px;position:absolute;top:2px;width:12px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__thumb{transition:transform .2s ease,background-color .2s ease-out}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:6px solid transparent;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01)}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-toggle.is-checked .components-form-toggle__track:after{opacity:1}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(16px)}.components-disabled .components-form-toggle .components-form-toggle__track,.components-form-toggle.is-disabled .components-form-toggle__track{background-color:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}@media (forced-colors:active){.components-disabled .components-form-toggle .components-form-toggle__track,.components-form-toggle.is-disabled .components-form-toggle__track{border-color:GrayText}}.components-disabled .components-form-toggle .components-form-toggle__thumb,.components-form-toggle.is-disabled .components-form-toggle__thumb{background-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));box-shadow:none}@media (forced-colors:active){.components-disabled .components-form-toggle .components-form-toggle__thumb,.components-form-toggle.is-disabled .components-form-toggle__thumb{border-color:GrayText}}.components-disabled .components-form-toggle.is-checked .components-form-toggle__track,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}@media (forced-colors:active){.components-disabled .components-form-toggle.is-checked .components-form-toggle__track,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track{border-color:GrayText}.components-disabled .components-form-toggle.is-checked .components-form-toggle__track:after,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track:after{border-top-color:GrayText}}.components-disabled .components-form-toggle.is-checked .components-form-toggle__thumb,.components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb{background-color:#fff}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle input.components-form-toggle__input[type=checkbox]:not(:disabled,[aria-disabled=true]){cursor:var(--wpds-cursor-control,pointer)}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-form-token-field__input-container{transition:box-shadow .1s linear}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-moz-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container{cursor:text;padding:0;width:100%}.components-form-token-field__input-container.is-disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));cursor:default}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-block;flex:1;font-family:inherit;font-size:16px;line-height:1;margin-left:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token.components-button,.components-form-token-field__token.is-disabled .components-form-token-field__token-text{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-form-token-field__token.is-borderless{padding:0 24px 0 0;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent}.components-form-token-field__token.is-borderless:not(.is-disabled) .components-form-token-field__token-text{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;right:0;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;min-width:unset}@media not (prefers-reduced-motion){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition:all .2s cubic-bezier(.4,1,.4,1)}}.components-form-token-field__token-text{border-radius:1px 0 0 1px;line-height:24px;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:0 1px 1px 0;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover:not(:disabled){color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;max-height:128px;min-width:100%;overflow-y:auto}@media not (prefers-reduced-motion){.components-form-token-field__suggestions-list{transition:all .15s ease-in-out}}.components-form-token-field__suggestions-list{box-shadow:inset 0 1px 0 0 #949494;list-style:none;margin:0;padding:0}.components-form-token-field__suggestion{box-sizing:border-box;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:block;font-size:13px;margin:0;min-height:32px;padding:8px 12px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-form-token-field__suggestion[aria-disabled=true]{color:#949494;pointer-events:none}.components-form-token-field__suggestion[aria-disabled=true].is-selected{background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent)}.components-form-token-field__suggestion:not(.is-empty){cursor:var(--wpds-cursor-control,pointer)}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:64px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-64px;min-height:100%}.components-guide .components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide .components-guide__page{min-height:300px}}.components-guide .components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 24px;position:relative;width:100%}.components-guide .components-guide__page-control{margin:0;text-align:center}.components-guide .components-guide__page-control li{display:inline-block;margin:0}.components-guide .components-guide__page-control .components-button{color:#e0e0e0;margin:-6px 0}.components-guide .components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-modal__frame.components-guide{border:none;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{position:absolute}.components-button.components-guide__back-button{left:24px}.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{right:24px}[role=region]{position:relative}[role=region].interface-interface-skeleton__content:focus-visible:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1))}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group:has(>div:empty){display:none}.components-menu-group__label{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{font-weight:var(--wpds-typography-font-weight-default,400);width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-right:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:24px;margin-right:-2px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-right:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:auto;margin-right:0;padding-left:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{height:auto;min-height:40px}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}.components-modal__screen-overlay{background-color:rgba(0,0,0,.35);bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.components-modal__screen-overlay{animation:__wp-base-styles-fade-in var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) 0s;animation-fill-mode:forwards}}@keyframes __wp-base-styles-fade-out{0%{opacity:1}to{opacity:0}}@media not (prefers-reduced-motion){.components-modal__screen-overlay.is-animating-out{animation:__wp-base-styles-fade-out var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) var(--wpds-motion-duration-xs,50ms);animation-fill-mode:forwards}}.components-modal__frame{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}.components-modal__frame{align-self:flex-end;animation-fill-mode:forwards;animation-name:components-modal__appear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1));background:#fff;border-radius:8px 8px 0 0;box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);color:#1e1e1e;display:flex;margin:0;max-height:calc(100% - 40px);overflow:hidden;width:100%}.components-modal__frame h1,.components-modal__frame h2,.components-modal__frame h3{color:#1e1e1e}@media not (prefers-reduced-motion){.components-modal__frame{animation-duration:var(--wpds-motion-duration-md,.2s)}}.components-modal__screen-overlay.is-animating-out .components-modal__frame{animation-name:components-modal__disappear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1))}@media (min-width:600px){.components-modal__frame{align-self:auto;border-radius:8px;margin:auto;max-height:calc(100% - 128px);max-width:calc(100% - 32px);min-width:var(--wpds-dimension-surface-width-sm,320px);width:auto}.components-modal__frame.has-size-large,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-small{width:100%}.components-modal__frame.has-size-small{max-width:var(--wpds-dimension-surface-width-md,400px)}.components-modal__frame.has-size-medium{max-width:var(--wpds-dimension-surface-width-lg,560px)}.components-modal__frame.has-size-large{max-width:var(--wpds-dimension-surface-width-2xl,960px)}}@media (min-width:960px){.components-modal__frame{max-height:70%}}.components-modal__frame.is-full-screen{border-radius:0;height:100%;margin:0;max-height:none;width:100%}.components-modal__frame.is-full-screen :where(.components-modal__content){display:flex;margin-bottom:24px;padding-bottom:0}.components-modal__frame.is-full-screen :where(.components-modal__content)>:last-child{flex:1}@media (min-width:600px){.components-modal__frame.is-full-screen{border-radius:8px;height:calc(100% - 32px);margin:auto;width:calc(100% - 32px)}}@media (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@keyframes components-modal__appear-animation{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@media (min-width:600px){@keyframes components-modal__appear-animation{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.9)}}}.components-modal__header{align-items:center;border-bottom:1px solid transparent;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;left:0;padding:24px;position:absolute;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:20px;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-modal__header h1{line-height:1;margin:0}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:flex-start}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:4px 24px 24px}.components-modal__content.hide-header{margin-top:0;padding-top:24px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:-2px}.components-notice{--wp-components-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-components-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);align-items:start;background-color:var(--wp-components-notice-background-color);border:var(--wpds-border-width-xs,1px) solid var(--wp-components-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wp-components-notice-text-color);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-template-columns:1fr auto;line-height:var(--wpds-typography-line-height-sm,20px);padding:var(--wpds-dimension-padding-md,12px)}.components-notice.is-success{--wp-components-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-components-notice-text-color:var(--wpds-color-foreground-content-success,#002900)}.components-notice.is-warning{--wp-components-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-components-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900)}.components-notice.is-error{--wp-components-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-components-notice-text-color:var(--wpds-color-foreground-content-error,#470000)}.components-notice__content{grid-column:1;grid-row:1;padding-block:calc((var(--wpds-dimension-size-sm, 24px) - 1lh)/2)}.components-notice__actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:1;grid-row:2;margin-top:var(--wpds-dimension-gap-sm,8px)}.components-notice__dismiss{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);grid-column:2;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:transparent;color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-md,12px);max-width:100vw}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;display:flex;flex-shrink:0;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0}@media not (prefers-reduced-motion){.components-panel__body>.components-panel__body-title{transition:background .1s ease-in-out}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:16px 48px 16px 16px;position:relative;text-align:left;width:100%}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button{transition:background .1s ease-in-out}}.components-panel__body-toggle.components-button{height:auto}.components-panel__body-toggle.components-button:focus{border-radius:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-panel__body-toggle.components-button .components-panel__arrow{fill:currentColor;color:#1e1e1e;position:absolute;right:16px;top:50%;transform:translateY(-50%)}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button .components-panel__arrow{transition:color .1s ease-in-out}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-right:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{-webkit-font-smoothing:subpixel-antialiased;align-items:flex-start;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:column;font-size:13px;gap:16px;margin:0;outline:1px solid transparent;padding:24px;position:relative;text-align:left;width:100%}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;letter-spacing:normal;line-height:normal;text-transform:none}.components-placeholder__label{align-items:center;display:flex;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:4px}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;justify-content:flex-start;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-placeholder__input[type=url]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]{flex:1 1 auto}.components-placeholder__error{gap:8px;width:100%}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-button,.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*{justify-content:center;width:100%}.components-placeholder.is-small{padding:16px}.components-placeholder.has-illustration{backdrop-filter:blur(100px);backface-visibility:hidden;background-color:transparent;border-radius:0;box-shadow:none;color:inherit;display:flex}.is-dark-theme .components-placeholder.has-illustration{background-color:rgba(0,0,0,.1)}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none}@media not (prefers-reduced-motion){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition:opacity .1s linear}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder.has-illustration{overflow:hidden}.is-selected .components-placeholder.has-illustration{overflow:auto}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{stroke:currentColor;box-sizing:content-box;height:100%;left:50%;opacity:.25;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.components-popover{box-sizing:border-box}.components-popover *,.components-popover :after,.components-popover :before{box-sizing:inherit}.components-popover{will-change:transform;z-index:1000000}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:4px;box-shadow:0 0 0 1px #ccc,0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);box-sizing:border-box;width:-moz-min-content;width:min-content}.is-alternate .components-popover__content{border-radius:2px;box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:transparent;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control{border:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0;padding:0}.components-radio-control__group-wrapper.has-help{margin-block-end:12px}.components-radio-control__option{align-items:center;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto minmax(0,max-content)}.components-radio-control__input[type=radio]{border:1px solid #1e1e1e;border-radius:50%;grid-column:1;grid-row:1;height:24px;margin-right:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.components-radio-control__input[type=radio]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-radio-control__input[type=radio]{height:16px;max-width:16px;min-width:16px;width:16px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{height:8px;width:8px}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border:none}.components-radio-control__input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;margin:0;padding:0}.components-radio-control__input[type=radio]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-radio-control__input[type=radio]:checked{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked:before{border-radius:50%;content:""}.components-radio-control__input[type=radio]:disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border:1px solid var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);opacity:1}.components-radio-control__input[type=radio]:disabled:checked:before{border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));opacity:1}.components-radio-control__label{grid-column:2;grid-row:1}.components-radio-control:not(:disabled) .components-radio-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__label{line-height:24px}@media (min-width:600px){.components-radio-control__label{line-height:16px}}.components-radio-control__option-description{grid-column:2;grid-row:2;padding-block-start:4px}.components-radio-control__option-description.components-radio-control__option-description{margin-top:0}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle>div{height:100%;outline:none;position:relative;width:100%;z-index:2}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)),0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);content:"";cursor:inherit;display:block;height:15px;outline:2px solid transparent;position:absolute;right:calc(50% - 8px);top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:9999px;content:"";cursor:inherit;display:block;height:3px;position:absolute;right:calc(50% - 1px);top:calc(50% - 1px);width:3px}@media not (prefers-reduced-motion){.components-resizable-box__side-handle:before{transition:transform .1s ease-in;will-change:transform}}.components-resizable-box__side-handle:before{opacity:0}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;left:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}@media not (prefers-reduced-motion){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{-webkit-tap-highlight-color:rgba(0,0,0,0)!important;outline:0}.components-snackbar{backdrop-filter:blur(16px) saturate(180%);background:rgba(0,0,0,.85);border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);box-sizing:border-box;color:#fff;cursor:var(--wpds-cursor-control,pointer);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:var(--wpds-dimension-surface-width-lg,560px);padding:12px 20px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{padding-left:24px;position:relative}.components-snackbar .components-snackbar__icon{left:-8px;position:absolute;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{cursor:var(--wpds-cursor-control,pointer);margin-left:24px}.components-snackbar__action.components-button,.components-snackbar__action.components-external-link{color:#fff;flex-shrink:0;margin-left:32px}.components-snackbar__action.components-button:focus,.components-snackbar__action.components-external-link:focus{box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:hover,.components-snackbar__action.components-external-link:hover{color:currentColor;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);height:48px!important;margin-left:0;padding:3px var(--wpds-dimension-padding-lg,16px);position:relative}.components-tab-panel__tabs-item:disabled,.components-tab-panel__tabs-item[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);border-radius:0;bottom:0;content:"";height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*0);left:0;pointer-events:none;position:absolute;right:0}@media not (prefers-reduced-motion){.components-tab-panel__tabs-item:after{transition:height .1s linear}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*1);outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:0 0 0 0 transparent;content:"";inset:var(--wpds-dimension-padding-md,12px);pointer-events:none;position:absolute}@media not (prefers-reduced-motion){.components-tab-panel__tabs-item:before{transition:box-shadow .1s linear}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item{border-radius:var(--wpds-border-radius-sm,2px)}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:after{display:none}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item.is-active{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.components-tab-panel__tab-content:focus{box-shadow:none;outline:none}.components-tab-panel__tab-content:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:0}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:6px 8px;width:100%}@media not (prefers-reduced-motion){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:rgba(30,30,30,.62)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border-color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));padding-left:12px;padding-right:12px}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.components-text-control__input[type=email],.components-text-control__input[type=url]{direction:ltr}.components-tip{color:#757575;display:flex}.components-tip svg{fill:#f0b849;align-self:center;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control__label{line-height:16px}.components-toggle-control__label:not(.is-disabled){cursor:var(--wpds-cursor-control,pointer)}.components-toggle-control__help{display:inline-block;margin-inline-start:40px}.components-accessible-toolbar{border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-right:none}.components-accessible-toolbar[aria-orientation=vertical],.components-toolbar[aria-orientation=vertical]{align-items:center;display:flex;flex-direction:column}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:8px;padding-right:8px}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:12px;position:absolute;right:8px}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border-right:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group{line-height:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{justify-content:center;min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:var(--wpds-dimension-size-sm,24px)}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:flex;margin:0}div.components-toolbar>div+div.has-left-divider{margin-left:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:inline-block;height:20px;left:-3px;position:absolute;top:8px;width:1px}.components-tooltip{background:#000;border-radius:var(--wpds-border-radius-md,4px);box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);color:#f0f0f0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4;padding:4px 8px;text-align:center;z-index:1000002}.components-tooltip__shortcut{margin-left:8px}.components-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control :is(textarea,input[type=text]):invalid[data-validity-visible]{--wp-admin-theme-color:#cc1818;--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])){--wp-admin-theme-color:#cc1818}.components-validated-control__wrapper-with-error-delegate{position:relative}.components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]){--wp-components-color-accent:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])){--wp-admin-theme-color:#cc1818;border-color:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable [role=textbox]{--wp-admin-theme-color:#cc1818;border-color:#cc1818}.components-validated-control__error-delegate{height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}.components-validated-control__indicator{align-items:flex-start;animation:components-validated-control__indicator-jump .2s cubic-bezier(.68,-.55,.27,1.55);color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;gap:4px;line-height:16px;margin:8px 0 0}.components-validated-control__indicator.is-invalid{color:#cc1818}.components-validated-control__indicator.is-valid{color:color-mix(in srgb,#000 30%,#4ab866)}.components-validated-control__indicator-icon{flex-shrink:0}.components-validated-control__indicator-spinner{height:12px;margin:2px;width:12px}@keyframes components-validated-control__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+@charset "UTF-8";@media not (prefers-reduced-motion){.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}@media not (prefers-reduced-motion){.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}@media not (prefers-reduced-motion){.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:200px;padding:8px}.components-autocomplete__result.components-button{display:flex;font-weight:var(--wpds-typography-font-weight-default,400);height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-badge{box-sizing:border-box}.components-badge *,.components-badge :after,.components-badge :before{box-sizing:inherit}.components-badge{background-color:color-mix(in srgb,#fff 90%,var(--base-color));border-radius:2px;color:color-mix(in srgb,#000 50%,var(--base-color));display:inline-block;line-height:0;max-width:100%;min-height:24px;padding:2px 8px}.components-badge:where(.is-default){background-color:#f0f0f0;color:#2f2f2f}.components-badge.has-icon{padding-inline-start:4px}.components-badge.is-info{--base-color:#3858e9}.components-badge.is-warning{--base-color:#f0b849}.components-badge.is-error{--base-color:#cc1818}.components-badge.is-success{--base-color:#4ab866}.components-badge__flex-wrapper{align-items:center;display:inline-flex;font-size:12px;font-weight:400;gap:2px;line-height:20px;max-width:100%}.components-badge__icon{flex-shrink:0}.components-badge__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.components-button-group{display:inline-block}.components-button-group .components-button{border-color:#1e1e1e;border-radius:0;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button:focus:is(a){box-shadow:none}.components-button:focus{outline:none}.components-button:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));cursor:var(--wpds-cursor-control,pointer);display:inline-flex;font-family:inherit;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:36px;margin:0;padding:4px 12px;text-decoration:none}.components-button.is-next-40px-default-size{height:40px}.components-button:hover:not(:disabled,[aria-disabled=true]),.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary,.components-button.is-primary:hover:not(:disabled){color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:hsla(0,0%,100%,.4)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:transparent;color:#949494;transform:none}@media not (prefers-reduced-motion){.components-button.is-secondary{transition:border-color .1s linear}}.components-button.is-secondary{background:transparent;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-secondary:active:not(:disabled){border-color:transparent}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6))}.components-button.is-secondary:focus:not(:active){border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus){border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}.components-button.is-tertiary{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6))}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 8%,transparent)}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled,[aria-disabled=true]){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled,[aria-disabled=true]){background:#ccc}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):disabled,.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link)[aria-disabled=true]{color:#949494}.components-button.is-destructive.is-secondary:hover:not(:disabled,[aria-disabled=true]),.components-button.is-destructive.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(204,24,24,.04)}.components-button.is-destructive.is-secondary:active:not(:disabled,[aria-disabled=true]),.components-button.is-destructive.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(204,24,24,.08)}.components-button.is-link{background:none;border:0;border-radius:0;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));font-weight:var(--wpds-typography-font-weight-default,400);margin:0;outline:none;padding:0;text-align:left;text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}@media not (prefers-reduced-motion){.components-button.is-link{transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}}.components-button.is-link{height:auto}.components-button.is-link:focus:not(:active){border-radius:2px;text-decoration:none}.components-button.is-link:disabled,.components-button.is-link[aria-disabled=true]{color:#949494}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-button:disabled,.components-button[aria-disabled=true]{color:#949494;cursor:default}@media not (prefers-reduced-motion){.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite}}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0}.components-button.is-small{font-size:11px;height:var(--wpds-dimension-size-sm,24px);line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:var(--wpds-dimension-size-sm,24px);padding:0}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:content-box;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:8px;padding-right:12px}.components-button.has-icon.has-text.has-icon-right{padding-left:12px;padding-right:8px}.components-button.has-icon:not(.has-text) .dashicon,.components-button.has-icon:not(.has-text) svg{margin-inline:-1px}.components-button.is-pressed,.components-button.is-pressed:hover{color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-button.is-pressed:hover:not(:disabled,[aria-disabled=true]),.components-button.is-pressed:not(:disabled,[aria-disabled=true]){background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-button.is-pressed:disabled,.components-button.is-pressed[aria-disabled=true]{color:#949494}.components-button.is-pressed:disabled:not(.is-primary):not(.is-secondary):not(.is-tertiary),.components-button.is-pressed[aria-disabled=true]:not(.is-primary):not(.is-secondary):not(.is-tertiary){background:#949494;color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-button svg{fill:currentColor;flex-shrink:0;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control{--checkbox-input-size:24px}@media (min-width:600px){.components-checkbox-control{--checkbox-input-size:16px}}.components-checkbox-control{--checkbox-input-margin:8px}.components-checkbox-control__label{line-height:var(--checkbox-input-size)}.components-checkbox-control:not(:has(:disabled)) .components-checkbox-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.components-checkbox-control__input[type=checkbox]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-checkbox-control__input[type=checkbox]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.components-checkbox-control__input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;clear:none;color:#1e1e1e;display:inline-block;height:var(--checkbox-input-size);line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;text-align:center;vertical-align:top;width:var(--checkbox-input-size)}@media not (prefers-reduced-motion){.components-checkbox-control__input[type=checkbox]{transition:border-color .1s ease-in-out}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:not(:disabled):is(:checked,:indeterminate){background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{aspect-ratio:1;display:inline-block;flex-shrink:0;line-height:1;margin-right:var(--checkbox-input-margin);position:relative;vertical-align:middle;width:var(--checkbox-input-size)}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:var(--checkbox-input-size);fill:#fff;cursor:var(--wpds-cursor-control,pointer);height:var(--checkmark-size);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--checkmark-size)}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{--checkmark-size:calc(var(--checkbox-input-size) + 4px)}}.components-checkbox-control:has(:disabled) svg.components-checkbox-control__checked,.components-checkbox-control:has(:disabled) svg.components-checkbox-control__indeterminate{fill:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-checkbox-control__help{display:inline-block;margin-inline-start:calc(var(--checkbox-input-size) + var(--checkbox-input-margin))}.components-circular-option-picker{display:inline-block;isolation:isolate;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);vertical-align:top;width:28px}@media not (prefers-reduced-motion){.components-circular-option-picker__option-wrapper{transition:transform .1s ease;will-change:transform}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cpath fill='%23555D65' d='M6 8V6H4v2zm2 0V6h2v2zm2 8H8v-2h2zm2 0v-2h2v2zm0 2v-2h-2v2H8v2h2v-2zm2 0v2h-2v-2zm2 0h-2v-2h2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2zm-2-4v-2h2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' d='M18 18v2h-2v-2z'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2zm0 2v-2H6v2zm2 0v-2h2v2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555D65' fill-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4zm0 4V2H2v2zm2 0V2h2v2zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2z' clip-rule='evenodd'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{aspect-ratio:1;background:transparent;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;display:inline-block;height:100%!important;vertical-align:top}@media not (prefers-reduced-motion){.components-circular-option-picker__option{transition:box-shadow .1s ease}}.components-circular-option-picker__option{cursor:var(--wpds-cursor-control,pointer)}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{border-radius:50%;left:2px;pointer-events:none;position:absolute;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid transparent;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:calc(100% + 4px);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 4px)}.components-circular-option-picker__option.components-button:focus{background-color:transparent;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:260px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:none;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-combobox-control__suggestions-container{transition:box-shadow .1s linear}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-moz-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container{align-items:flex-start;display:flex;flex-wrap:wrap;padding:0;width:100%}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container .components-spinner{margin:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:4px 4px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer);height:64px;outline:1px solid transparent;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;border-radius:3px 3px 0 0;content:"";inset:1px;position:absolute;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 4px 4px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px!important;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);height:inherit;outline:2px solid transparent;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:1.5px solid transparent}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone .components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone .components-drop-zone__content-inner{opacity:0;transform:scale(.9)}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{opacity:1}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{transition:opacity .2s ease-in-out}}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{opacity:1;transform:scale(1)}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{transition:opacity .1s ease-in-out .1s,transform .1s ease-in-out .1s}}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{fill:currentColor;line-height:0;margin:0 auto 8px;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content .components-popover__content:has(.components-menu-group){padding:0}.components-dropdown__content .components-popover__content:has(.components-menu-group) .components-dropdown-menu__menu>.components-menu-item__button,.components-dropdown__content .components-popover__content:has(.components-menu-group)>.components-menu-item__button{margin:8px;width:auto}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown__content .components-menu-group{padding:8px}.components-dropdown__content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px}.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:32px;padding-left:8px;padding-right:8px;text-align:left}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);color:transparent}.components-duotone-picker__color-indicator>.components-button:hover:not(:disabled):not([aria-disabled=true]),.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-color{margin:2px}.components-external-link{text-decoration:none}.components-external-link,.components-external-link:visited{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.components-external-link:active,.components-external-link:hover{color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.components-external-link:focus{border-radius:0;box-shadow:none}.components-external-link:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-external-link__contents{text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}.components-external-link__icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px)}.components-form-toggle{display:inline-block;height:16px;isolation:isolate;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #949494;border-radius:8px;box-sizing:border-box;content:"";display:inline-block;height:16px;position:relative;vertical-align:top;width:32px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__track{transition:background-color .2s ease,border-color .2s ease}}.components-form-toggle .components-form-toggle__track{overflow:hidden}.components-form-toggle .components-form-toggle__track:after{border-top:16px solid transparent;box-sizing:border-box;content:"";inset:0;position:absolute}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__track:after{transition:opacity .2s ease}}.components-form-toggle .components-form-toggle__track:after{opacity:0}.components-form-toggle .components-form-toggle__thumb{border-radius:50%;box-sizing:border-box;display:block;height:12px;left:2px;position:absolute;top:2px;width:12px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__thumb{transition:transform .2s ease,background-color .2s ease-out}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:6px solid transparent;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01)}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-toggle.is-checked .components-form-toggle__track:after{opacity:1}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(16px)}.components-disabled .components-form-toggle .components-form-toggle__track,.components-form-toggle.is-disabled .components-form-toggle__track{background-color:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}@media (forced-colors:active){.components-disabled .components-form-toggle .components-form-toggle__track,.components-form-toggle.is-disabled .components-form-toggle__track{border-color:GrayText}}.components-disabled .components-form-toggle .components-form-toggle__thumb,.components-form-toggle.is-disabled .components-form-toggle__thumb{background-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));box-shadow:none}@media (forced-colors:active){.components-disabled .components-form-toggle .components-form-toggle__thumb,.components-form-toggle.is-disabled .components-form-toggle__thumb{border-color:GrayText}}.components-disabled .components-form-toggle.is-checked .components-form-toggle__track,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}@media (forced-colors:active){.components-disabled .components-form-toggle.is-checked .components-form-toggle__track,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track{border-color:GrayText}.components-disabled .components-form-toggle.is-checked .components-form-toggle__track:after,.components-form-toggle.is-disabled.is-checked .components-form-toggle__track:after{border-top-color:GrayText}}.components-disabled .components-form-toggle.is-checked .components-form-toggle__thumb,.components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb{background-color:#fff}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle input.components-form-toggle__input[type=checkbox]:not(:disabled,[aria-disabled=true]){cursor:var(--wpds-cursor-control,pointer)}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-form-token-field__input-container{transition:box-shadow .1s linear}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-moz-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container{cursor:text;padding:0;width:100%}.components-form-token-field__input-container.is-disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));cursor:default}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-block;flex:1;font-family:inherit;font-size:16px;line-height:1;margin-left:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token.components-button,.components-form-token-field__token.is-disabled .components-form-token-field__token-text{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-form-token-field__token.is-borderless{padding:0 24px 0 0;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent}.components-form-token-field__token.is-borderless:not(.is-disabled) .components-form-token-field__token-text{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;right:0;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;min-width:unset}@media not (prefers-reduced-motion){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition:all .2s cubic-bezier(.4,1,.4,1)}}.components-form-token-field__token-text{border-radius:1px 0 0 1px;line-height:24px;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:0 1px 1px 0;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover:not(:disabled){color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;max-height:128px;min-width:100%;overflow-y:auto}@media not (prefers-reduced-motion){.components-form-token-field__suggestions-list{transition:all .15s ease-in-out}}.components-form-token-field__suggestions-list{box-shadow:inset 0 1px 0 0 #949494;list-style:none;margin:0;padding:0}.components-form-token-field__suggestion{box-sizing:border-box;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:block;font-size:13px;margin:0;min-height:32px;padding:8px 12px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-form-token-field__suggestion[aria-disabled=true]{color:#949494;pointer-events:none}.components-form-token-field__suggestion[aria-disabled=true].is-selected{background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent)}.components-form-token-field__suggestion:not(.is-empty){cursor:var(--wpds-cursor-control,pointer)}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:64px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-64px;min-height:100%}.components-guide .components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide .components-guide__page{min-height:300px}}.components-guide .components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 24px;position:relative;width:100%}.components-guide .components-guide__page-control{margin:0;text-align:center}.components-guide .components-guide__page-control li{display:inline-block;margin:0}.components-guide .components-guide__page-control .components-button{color:#e0e0e0;margin:-6px 0}.components-guide .components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-modal__frame.components-guide{border:none;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{position:absolute}.components-button.components-guide__back-button{left:24px}.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{right:24px}[role=region]{position:relative}[role=region].interface-interface-skeleton__content:focus-visible:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1))}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group:has(>div:empty){display:none}.components-menu-group__label{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{font-weight:var(--wpds-typography-font-weight-default,400);width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-right:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:24px;margin-right:-2px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-right:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:auto;margin-right:0;padding-left:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{height:auto;min-height:40px}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}body.modal-open{overflow:hidden}.components-modal__screen-overlay{background-color:rgba(0,0,0,.35);bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.components-modal__screen-overlay{animation:__wp-base-styles-fade-in var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) 0s;animation-fill-mode:forwards}}@keyframes __wp-base-styles-fade-out{0%{opacity:1}to{opacity:0}}@media not (prefers-reduced-motion){.components-modal__screen-overlay.is-animating-out{animation:__wp-base-styles-fade-out var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) var(--wpds-motion-duration-xs,50ms);animation-fill-mode:forwards}}.components-modal__frame{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}.components-modal__frame{align-self:flex-end;animation-fill-mode:forwards;animation-name:components-modal__appear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1));background:#fff;border-radius:8px 8px 0 0;box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);color:#1e1e1e;display:flex;margin:0;max-height:calc(100% - 40px);overflow:hidden;width:100%}.components-modal__frame h1,.components-modal__frame h2,.components-modal__frame h3{color:#1e1e1e}@media not (prefers-reduced-motion){.components-modal__frame{animation-duration:var(--wpds-motion-duration-md,.2s)}}.components-modal__screen-overlay.is-animating-out .components-modal__frame{animation-name:components-modal__disappear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1))}@media (min-width:600px){.components-modal__frame{align-self:auto;border-radius:8px;margin:auto;max-height:calc(100% - 128px);max-width:calc(100% - 32px);min-width:var(--wpds-dimension-surface-width-sm,320px);width:auto}.components-modal__frame.has-size-large,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-small{width:100%}.components-modal__frame.has-size-small{max-width:var(--wpds-dimension-surface-width-md,400px)}.components-modal__frame.has-size-medium{max-width:var(--wpds-dimension-surface-width-lg,560px)}.components-modal__frame.has-size-large{max-width:var(--wpds-dimension-surface-width-2xl,960px)}}@media (min-width:960px){.components-modal__frame{max-height:70%}}.components-modal__frame.is-full-screen{border-radius:0;height:100%;margin:0;max-height:none;width:100%}.components-modal__frame.is-full-screen :where(.components-modal__content){display:flex;margin-bottom:24px;padding-bottom:0}.components-modal__frame.is-full-screen :where(.components-modal__content)>:last-child{flex:1}@media (min-width:600px){.components-modal__frame.is-full-screen{border-radius:8px;height:calc(100% - 32px);margin:auto;width:calc(100% - 32px)}}@media (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@keyframes components-modal__appear-animation{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@media (min-width:600px){@keyframes components-modal__appear-animation{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.9)}}}.components-modal__header{align-items:center;border-bottom:1px solid transparent;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;left:0;padding:24px;position:absolute;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:20px;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-modal__header h1{line-height:1;margin:0}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:flex-start}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:4px 24px 24px}.components-modal__content.hide-header{margin-top:0;padding-top:24px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:-2px}.components-notice{--wp-components-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-components-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);align-items:start;background-color:var(--wp-components-notice-background-color);border:var(--wpds-border-width-xs,1px) solid var(--wp-components-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wp-components-notice-text-color);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-template-columns:1fr auto;line-height:var(--wpds-typography-line-height-sm,20px);padding:var(--wpds-dimension-padding-md,12px)}.components-notice.is-success{--wp-components-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-components-notice-text-color:var(--wpds-color-foreground-content-success,#002900)}.components-notice.is-warning{--wp-components-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-components-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900)}.components-notice.is-error{--wp-components-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-components-notice-text-color:var(--wpds-color-foreground-content-error,#470000)}.components-notice__content{grid-column:1;grid-row:1;padding-block:calc((var(--wpds-dimension-size-sm, 24px) - 1lh)/2)}.components-notice__actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:1;grid-row:2;margin-top:var(--wpds-dimension-gap-sm,8px)}.components-notice__dismiss{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);grid-column:2;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:transparent;color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-md,12px);max-width:100vw}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;display:flex;flex-shrink:0;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0}@media not (prefers-reduced-motion){.components-panel__body>.components-panel__body-title{transition:background .1s ease-in-out}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:16px 48px 16px 16px;position:relative;text-align:left;width:100%}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button{transition:background .1s ease-in-out}}.components-panel__body-toggle.components-button{height:auto}.components-panel__body-toggle.components-button:focus{border-radius:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-panel__body-toggle.components-button .components-panel__arrow{fill:currentColor;color:#1e1e1e;position:absolute;right:16px;top:50%;transform:translateY(-50%)}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button .components-panel__arrow{transition:color .1s ease-in-out}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-right:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{-webkit-font-smoothing:subpixel-antialiased;align-items:flex-start;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:column;font-size:13px;gap:16px;margin:0;outline:1px solid transparent;padding:24px;position:relative;text-align:left;width:100%}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;letter-spacing:normal;line-height:normal;text-transform:none}.components-placeholder__label{align-items:center;display:flex;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:4px}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;justify-content:flex-start;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.components-placeholder__input[type=url]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]{flex:1 1 auto}.components-placeholder__error{gap:8px;width:100%}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-button,.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*{justify-content:center;width:100%}.components-placeholder.is-small{padding:16px}.components-placeholder.has-illustration{backdrop-filter:blur(100px);backface-visibility:hidden;background-color:transparent;border-radius:0;box-shadow:none;color:inherit;display:flex}.is-dark-theme .components-placeholder.has-illustration{background-color:rgba(0,0,0,.1)}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none}@media not (prefers-reduced-motion){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition:opacity .1s linear}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder.has-illustration{overflow:hidden}.is-selected .components-placeholder.has-illustration{overflow:auto}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{stroke:currentColor;box-sizing:content-box;height:100%;left:50%;opacity:.25;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.components-popover{box-sizing:border-box}.components-popover *,.components-popover :after,.components-popover :before{box-sizing:inherit}.components-popover{will-change:transform;z-index:1000000}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:4px;box-shadow:0 0 0 1px #ccc,0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);box-sizing:border-box;width:-moz-min-content;width:min-content}.is-alternate .components-popover__content{border-radius:2px;box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:transparent;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control{border:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0;padding:0}.components-radio-control__group-wrapper.has-help{margin-block-end:12px}.components-radio-control__option{align-items:center;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto minmax(0,max-content)}.components-radio-control__input[type=radio]{border:1px solid #1e1e1e;border-radius:50%;grid-column:1;grid-row:1;height:24px;margin-right:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.components-radio-control__input[type=radio]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-radio-control__input[type=radio]{height:16px;max-width:16px;min-width:16px;width:16px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{height:8px;width:8px}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border:none}.components-radio-control__input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;margin:0;padding:0}.components-radio-control__input[type=radio]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-radio-control__input[type=radio]:checked{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-radio-control__input[type=radio]:checked:before{border-radius:50%;content:""}.components-radio-control__input[type=radio]:disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));border:1px solid var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);opacity:1}.components-radio-control__input[type=radio]:disabled:checked:before{border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));opacity:1}.components-radio-control__label{grid-column:2;grid-row:1}.components-radio-control:not(:disabled) .components-radio-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__label{line-height:24px}@media (min-width:600px){.components-radio-control__label{line-height:16px}}.components-radio-control__option-description{grid-column:2;grid-row:2;padding-block-start:4px}.components-radio-control__option-description.components-radio-control__option-description{margin-top:0}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle>div{height:100%;outline:none;position:relative;width:100%;z-index:2}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)),0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);content:"";cursor:inherit;display:block;height:15px;outline:2px solid transparent;position:absolute;right:calc(50% - 8px);top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:9999px;content:"";cursor:inherit;display:block;height:3px;position:absolute;right:calc(50% - 1px);top:calc(50% - 1px);width:3px}@media not (prefers-reduced-motion){.components-resizable-box__side-handle:before{transition:transform .1s ease-in;will-change:transform}}.components-resizable-box__side-handle:before{opacity:0}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;left:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}@media not (prefers-reduced-motion){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{-webkit-tap-highlight-color:rgba(0,0,0,0)!important;outline:0}.components-snackbar{backdrop-filter:blur(16px) saturate(180%);background:rgba(0,0,0,.85);border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);box-sizing:border-box;color:#fff;cursor:var(--wpds-cursor-control,pointer);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:var(--wpds-dimension-surface-width-lg,560px);padding:12px 20px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{padding-left:24px;position:relative}.components-snackbar .components-snackbar__icon{left:-8px;position:absolute;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{cursor:var(--wpds-cursor-control,pointer);margin-left:24px}.components-snackbar__action.components-button,.components-snackbar__action.components-external-link{color:#fff;flex-shrink:0;margin-left:32px}.components-snackbar__action.components-button:focus,.components-snackbar__action.components-external-link:focus{box-shadow:none;outline:1px dotted #fff}.components-snackbar__action.components-button:hover,.components-snackbar__action.components-external-link:hover{color:currentColor;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);height:48px!important;margin-left:0;padding:3px var(--wpds-dimension-padding-lg,16px);position:relative}.components-tab-panel__tabs-item:disabled,.components-tab-panel__tabs-item[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);border-radius:0;bottom:0;content:"";height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*0);left:0;pointer-events:none;position:absolute;right:0}@media not (prefers-reduced-motion){.components-tab-panel__tabs-item:after{transition:height .1s linear}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*1);outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:0 0 0 0 transparent;content:"";inset:var(--wpds-dimension-padding-md,12px);pointer-events:none;position:absolute}@media not (prefers-reduced-motion){.components-tab-panel__tabs-item:before{transition:box-shadow .1s linear}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item{border-radius:var(--wpds-border-radius-sm,2px)}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:after{display:none}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item.is-active{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.components-tab-panel__tab-content:focus{box-shadow:none;outline:none}.components-tab-panel__tab-content:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:0}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:6px 8px;width:100%}@media not (prefers-reduced-motion){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition:box-shadow .1s linear}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:rgba(30,30,30,.62)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border-color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d));padding-left:12px;padding-right:12px}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.components-text-control__input[type=email],.components-text-control__input[type=url]{direction:ltr}.components-tip{color:#757575;display:flex}.components-tip svg{fill:#f0b849;align-self:center;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control__label{line-height:16px}.components-toggle-control__label:not(.is-disabled){cursor:var(--wpds-cursor-control,pointer)}.components-toggle-control__help{display:inline-block;margin-inline-start:40px}.components-accessible-toolbar{border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-right:none}.components-accessible-toolbar[aria-orientation=vertical],.components-toolbar[aria-orientation=vertical]{align-items:center;display:flex;flex-direction:column}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:8px;padding-right:8px}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:12px;position:absolute;right:8px}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border-right:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group{line-height:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{justify-content:center;min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:var(--wpds-dimension-size-sm,24px)}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:flex;margin:0}div.components-toolbar>div+div.has-left-divider{margin-left:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:inline-block;height:20px;left:-3px;position:absolute;top:8px;width:1px}.components-tooltip{background:#000;border-radius:var(--wpds-border-radius-md,4px);box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);color:#f0f0f0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4;padding:4px 8px;text-align:center;z-index:1000002}.components-tooltip__shortcut{margin-left:8px}.components-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control textarea:invalid[data-validity-visible]{--wp-admin-theme-color:#cc1818;--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])){--wp-admin-theme-color:#cc1818}.components-validated-control__wrapper-with-error-delegate{position:relative}.components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]){--wp-components-color-accent:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])){--wp-admin-theme-color:#cc1818;border-color:#cc1818}.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable [role=textbox]{--wp-admin-theme-color:#cc1818;border-color:#cc1818}.components-validated-control__error-delegate{height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}.components-validated-control__indicator{align-items:flex-start;animation:components-validated-control__indicator-jump .2s cubic-bezier(.68,-.55,.27,1.55);color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;gap:4px;line-height:16px;margin:8px 0 0}.components-validated-control__indicator.is-invalid{color:#cc1818}.components-validated-control__indicator.is-valid{color:color-mix(in srgb,#000 30%,#4ab866)}.components-validated-control__indicator-icon{flex-shrink:0}.components-validated-control__indicator-spinner{height:12px;margin:2px;width:12px}@keyframes components-validated-control__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
diff --git a/wp-includes/css/dist/edit-post/style-rtl.css b/wp-includes/css/dist/edit-post/style-rtl.css
index e487863642..1d9d47a9ad 100644
--- a/wp-includes/css/dist/edit-post/style-rtl.css
+++ b/wp-includes/css/dist/edit-post/style-rtl.css
@@ -218,7 +218,7 @@
.edit-post-layout__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
right: 0;
left: 0;
padding-inline: 16px;
diff --git a/wp-includes/css/dist/edit-post/style-rtl.min.css b/wp-includes/css/dist/edit-post/style-rtl.min.css
index ffb4b2e6a9..2f0c14d9e1 100644
--- a/wp-includes/css/dist/edit-post/style-rtl.min.css
+++ b/wp-includes/css/dist/edit-post/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.edit-post-meta-boxes-main{background-color:#fff;display:flex;filter:drop-shadow(0 -1px rgba(0,0,0,.133));flex-direction:column;outline:1px solid transparent;overflow:hidden}.edit-post-meta-boxes-main__presenter{box-shadow:0 1px #ddd;display:flex;flex-shrink:0;height:32px;justify-content:center;outline:1px solid transparent;position:relative;z-index:1}@media (pointer:coarse){.edit-post-meta-boxes-main__presenter{height:36px}}.edit-post-meta-boxes-main__presenter>button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;outline:none;padding:0;touch-action:none}.edit-post-meta-boxes-main__presenter>button[aria-expanded]{align-items:center;cursor:var(--wpds-cursor-control,pointer);display:flex;justify-content:space-between;padding-inline:24px 12px;width:100%}.edit-post-meta-boxes-main__presenter>button[aria-expanded]:is(:hover,:focus-visible){color:var(--wp-admin-theme-color)}.edit-post-meta-boxes-main__presenter>button[aria-expanded]:focus-visible:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.edit-post-meta-boxes-main__presenter>button[aria-expanded]>svg{fill:currentColor}.edit-post-meta-boxes-main__presenter>button[role=separator]{cursor:row-resize;height:inherit;position:absolute;width:64px}.edit-post-meta-boxes-main__presenter>button[role=separator]:before{background-color:#ddd;border-radius:2px;content:"";height:4px;inset-block:calc(50% - 2px) auto;outline:2px solid transparent;outline-offset:-2px;position:absolute;transform:translateX(50%);width:inherit}@media not (prefers-reduced-motion){.edit-post-meta-boxes-main__presenter>button[role=separator]:before{transition:width .3s ease-out}}.edit-post-meta-boxes-main__presenter>button[role=separator]:is(:hover,:focus):before{background-color:var(--wp-admin-theme-color);width:80px}.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner{overflow:auto}.edit-post-meta-boxes-main__liner{isolation:isolate}.is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner{display:unset}.edit-post-layout__metaboxes{clear:both}.has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor{flex-basis:0%;flex-shrink:1;isolation:isolate;overflow:hidden}.edit-post-layout__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-post-layout__snackbar .components-snackbar{margin-inline:auto}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #e0e0e0}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:#1e1e1e;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner{left:20px;position:absolute;top:10px;z-index:2}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 24px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 24px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-post-welcome-guide .components-button:hover svg,.edit-template-welcome-guide .components-button svg,.edit-template-welcome-guide .components-button:hover svg{fill:#fff}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-right:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}@media (min-width:782px){body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free){--wp-admin--admin-bar--height:0px}body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) #wpadminbar{display:none}}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.edit-post-visual-editor{box-sizing:border-box}.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - var(--wp-admin--admin-bar--height, 0px))}}.block-editor__container img{height:auto;max-width:100%}
\ No newline at end of file
+:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.edit-post-meta-boxes-main{background-color:#fff;display:flex;filter:drop-shadow(0 -1px rgba(0,0,0,.133));flex-direction:column;outline:1px solid transparent;overflow:hidden}.edit-post-meta-boxes-main__presenter{box-shadow:0 1px #ddd;display:flex;flex-shrink:0;height:32px;justify-content:center;outline:1px solid transparent;position:relative;z-index:1}@media (pointer:coarse){.edit-post-meta-boxes-main__presenter{height:36px}}.edit-post-meta-boxes-main__presenter>button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;outline:none;padding:0;touch-action:none}.edit-post-meta-boxes-main__presenter>button[aria-expanded]{align-items:center;cursor:var(--wpds-cursor-control,pointer);display:flex;justify-content:space-between;padding-inline:24px 12px;width:100%}.edit-post-meta-boxes-main__presenter>button[aria-expanded]:is(:hover,:focus-visible){color:var(--wp-admin-theme-color)}.edit-post-meta-boxes-main__presenter>button[aria-expanded]:focus-visible:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.edit-post-meta-boxes-main__presenter>button[aria-expanded]>svg{fill:currentColor}.edit-post-meta-boxes-main__presenter>button[role=separator]{cursor:row-resize;height:inherit;position:absolute;width:64px}.edit-post-meta-boxes-main__presenter>button[role=separator]:before{background-color:#ddd;border-radius:2px;content:"";height:4px;inset-block:calc(50% - 2px) auto;outline:2px solid transparent;outline-offset:-2px;position:absolute;transform:translateX(50%);width:inherit}@media not (prefers-reduced-motion){.edit-post-meta-boxes-main__presenter>button[role=separator]:before{transition:width .3s ease-out}}.edit-post-meta-boxes-main__presenter>button[role=separator]:is(:hover,:focus):before{background-color:var(--wp-admin-theme-color);width:80px}.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner{overflow:auto}.edit-post-meta-boxes-main__liner{isolation:isolate}.is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner{display:unset}.edit-post-layout__metaboxes{clear:both}.has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor{flex-basis:0%;flex-shrink:1;isolation:isolate;overflow:hidden}.edit-post-layout__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-post-layout__snackbar .components-snackbar{margin-inline:auto}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #e0e0e0}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:#1e1e1e;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner{left:20px;position:absolute;top:10px;z-index:2}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 24px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 24px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-post-welcome-guide .components-button:hover svg,.edit-template-welcome-guide .components-button svg,.edit-template-welcome-guide .components-button:hover svg{fill:#fff}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-right:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}@media (min-width:782px){body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free){--wp-admin--admin-bar--height:0px}body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) #wpadminbar{display:none}}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.edit-post-visual-editor{box-sizing:border-box}.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - var(--wp-admin--admin-bar--height, 0px))}}.block-editor__container img{height:auto;max-width:100%}
\ No newline at end of file
diff --git a/wp-includes/css/dist/edit-post/style.css b/wp-includes/css/dist/edit-post/style.css
index 2cb9b19ee1..9fafc4c1e2 100644
--- a/wp-includes/css/dist/edit-post/style.css
+++ b/wp-includes/css/dist/edit-post/style.css
@@ -218,7 +218,7 @@
.edit-post-layout__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
left: 0;
right: 0;
padding-inline: 16px;
diff --git a/wp-includes/css/dist/edit-post/style.min.css b/wp-includes/css/dist/edit-post/style.min.css
index 7abeaac521..da96480f90 100644
--- a/wp-includes/css/dist/edit-post/style.min.css
+++ b/wp-includes/css/dist/edit-post/style.min.css
@@ -1 +1 @@
-:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.edit-post-meta-boxes-main{background-color:#fff;display:flex;filter:drop-shadow(0 -1px rgba(0,0,0,.133));flex-direction:column;outline:1px solid transparent;overflow:hidden}.edit-post-meta-boxes-main__presenter{box-shadow:0 1px #ddd;display:flex;flex-shrink:0;height:32px;justify-content:center;outline:1px solid transparent;position:relative;z-index:1}@media (pointer:coarse){.edit-post-meta-boxes-main__presenter{height:36px}}.edit-post-meta-boxes-main__presenter>button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;outline:none;padding:0;touch-action:none}.edit-post-meta-boxes-main__presenter>button[aria-expanded]{align-items:center;cursor:var(--wpds-cursor-control,pointer);display:flex;justify-content:space-between;padding-inline:24px 12px;width:100%}.edit-post-meta-boxes-main__presenter>button[aria-expanded]:is(:hover,:focus-visible){color:var(--wp-admin-theme-color)}.edit-post-meta-boxes-main__presenter>button[aria-expanded]:focus-visible:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.edit-post-meta-boxes-main__presenter>button[aria-expanded]>svg{fill:currentColor}.edit-post-meta-boxes-main__presenter>button[role=separator]{cursor:row-resize;height:inherit;position:absolute;width:64px}.edit-post-meta-boxes-main__presenter>button[role=separator]:before{background-color:#ddd;border-radius:2px;content:"";height:4px;inset-block:calc(50% - 2px) auto;outline:2px solid transparent;outline-offset:-2px;position:absolute;transform:translateX(-50%);width:inherit}@media not (prefers-reduced-motion){.edit-post-meta-boxes-main__presenter>button[role=separator]:before{transition:width .3s ease-out}}.edit-post-meta-boxes-main__presenter>button[role=separator]:is(:hover,:focus):before{background-color:var(--wp-admin-theme-color);width:80px}.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner{overflow:auto}.edit-post-meta-boxes-main__liner{isolation:isolate}.is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner{display:unset}.edit-post-layout__metaboxes{clear:both}.has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor{flex-basis:0%;flex-shrink:1;isolation:isolate;overflow:hidden}.edit-post-layout__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-post-layout__snackbar .components-snackbar{margin-inline:auto}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #e0e0e0}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:#1e1e1e;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner{position:absolute;right:20px;top:10px;z-index:2}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 24px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 24px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-post-welcome-guide .components-button:hover svg,.edit-template-welcome-guide .components-button svg,.edit-template-welcome-guide .components-button:hover svg{fill:#fff}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-left:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}@media (min-width:782px){body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free){--wp-admin--admin-bar--height:0px}body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) #wpadminbar{display:none}}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.edit-post-visual-editor{box-sizing:border-box}.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - var(--wp-admin--admin-bar--height, 0px))}}.block-editor__container img{height:auto;max-width:100%}
\ No newline at end of file
+:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.edit-post-meta-boxes-main{background-color:#fff;display:flex;filter:drop-shadow(0 -1px rgba(0,0,0,.133));flex-direction:column;outline:1px solid transparent;overflow:hidden}.edit-post-meta-boxes-main__presenter{box-shadow:0 1px #ddd;display:flex;flex-shrink:0;height:32px;justify-content:center;outline:1px solid transparent;position:relative;z-index:1}@media (pointer:coarse){.edit-post-meta-boxes-main__presenter{height:36px}}.edit-post-meta-boxes-main__presenter>button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;outline:none;padding:0;touch-action:none}.edit-post-meta-boxes-main__presenter>button[aria-expanded]{align-items:center;cursor:var(--wpds-cursor-control,pointer);display:flex;justify-content:space-between;padding-inline:24px 12px;width:100%}.edit-post-meta-boxes-main__presenter>button[aria-expanded]:is(:hover,:focus-visible){color:var(--wp-admin-theme-color)}.edit-post-meta-boxes-main__presenter>button[aria-expanded]:focus-visible:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.edit-post-meta-boxes-main__presenter>button[aria-expanded]>svg{fill:currentColor}.edit-post-meta-boxes-main__presenter>button[role=separator]{cursor:row-resize;height:inherit;position:absolute;width:64px}.edit-post-meta-boxes-main__presenter>button[role=separator]:before{background-color:#ddd;border-radius:2px;content:"";height:4px;inset-block:calc(50% - 2px) auto;outline:2px solid transparent;outline-offset:-2px;position:absolute;transform:translateX(-50%);width:inherit}@media not (prefers-reduced-motion){.edit-post-meta-boxes-main__presenter>button[role=separator]:before{transition:width .3s ease-out}}.edit-post-meta-boxes-main__presenter>button[role=separator]:is(:hover,:focus):before{background-color:var(--wp-admin-theme-color);width:80px}.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner{overflow:auto}.edit-post-meta-boxes-main__liner{isolation:isolate}.is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner{display:unset}.edit-post-layout__metaboxes{clear:both}.has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor{flex-basis:0%;flex-shrink:1;isolation:isolate;overflow:hidden}.edit-post-layout__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-post-layout__snackbar .components-snackbar{margin-inline:auto}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #e0e0e0}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:#1e1e1e;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner{position:absolute;right:20px;top:10px;z-index:2}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 24px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 24px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-post-welcome-guide .components-button:hover svg,.edit-template-welcome-guide .components-button svg,.edit-template-welcome-guide .components-button:hover svg{fill:#fff}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-left:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}@media (min-width:782px){body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free){--wp-admin--admin-bar--height:0px}body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) #wpadminbar{display:none}}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.edit-post-visual-editor{box-sizing:border-box}.edit-post-visual-editor *,.edit-post-visual-editor :after,.edit-post-visual-editor :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - var(--wp-admin--admin-bar--height, 0px))}}.block-editor__container img{height:auto;max-width:100%}
\ No newline at end of file
diff --git a/wp-includes/css/dist/edit-site/style-rtl.css b/wp-includes/css/dist/edit-site/style-rtl.css
index 1057cb23ae..61cd9c3edf 100644
--- a/wp-includes/css/dist/edit-site/style-rtl.css
+++ b/wp-includes/css/dist/edit-site/style-rtl.css
@@ -1257,7 +1257,7 @@
.dataviews-view-grid .dataviews-view-grid__media,
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media {
width: 100%;
- aspect-ratio: 1/1;
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
border-radius: var(--wpds-border-radius-md, 4px);
overflow: hidden;
@@ -2004,6 +2004,17 @@ div.dataviews-view-list {
border-radius: var(--wpds-border-radius-md, 4px);
}
+.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media {
+ height: var(--wpds-dimension-size-md, 32px);
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
+ min-width: 0;
+}
+
+.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img {
+ width: 100%;
+ height: 100%;
+}
+
.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
min-width: 15ch;
@@ -2657,11 +2668,6 @@ div.dataviews-view-list {
align-self: flex-end;
}
-.dataviews-controls__richtext [data-rich-text-placeholder]::after {
- content: attr(data-rich-text-placeholder);
- color: color-mix(in srgb, currentColor, transparent 38%);
-}
-
.dataviews-controls__datetime {
border: none;
padding: 0;
@@ -2694,6 +2700,51 @@ div.dataviews-view-list {
background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
}
+.dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
+ --wp-components-color-accent: #cc1818;
+ border-color: #cc1818;
+}
+
+.dataviews-validated-control__indicator {
+ display: flex;
+ align-items: flex-start;
+ gap: 4px;
+ margin: 8px 0 0;
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
+ font-size: 12px;
+ line-height: 16px;
+ color: #757575;
+ animation: dataviews-validated-control__indicator-jump 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
+}
+
+.dataviews-validated-control__indicator.is-invalid {
+ color: #cc1818;
+}
+
+.dataviews-validated-control__indicator.is-valid {
+ color: color-mix(in srgb, #000 30%, #4ab866);
+}
+
+.dataviews-validated-control__indicator-icon {
+ flex-shrink: 0;
+}
+
+.dataviews-validated-control__indicator-spinner {
+ margin: 2px;
+ width: 12px;
+ height: 12px;
+}
+
+@keyframes dataviews-validated-control__indicator-jump {
+ 0% {
+ transform: translateY(-4px);
+ opacity: 0;
+ }
+ 100% {
+ transform: translateY(0);
+ opacity: 1;
+ }
+}
.dataforms-layouts-panel__field-trigger {
position: relative;
color: inherit;
@@ -4559,6 +4610,7 @@ button.font-library__upload-area {
.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully) {
background: rgba(var(--wp-block-synced-color--rgb), 0.04);
color: var(--wp-block-synced-color);
+ border-color: currentColor;
}
.dataviews-action-modal__duplicate-pattern [role=dialog] > [role=document] {
@@ -4899,7 +4951,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
.edit-site-layout__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
right: 0;
left: 0;
padding-inline: 16px;
@@ -5045,12 +5097,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
border: none;
min-height: 40px;
}
-.edit-site-sidebar-navigation-item.components-item:hover, .edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current=true] {
+.edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current=true], .edit-site-sidebar-navigation-item.components-item.edit-site-sidebar-navigation-item.components-item:hover {
color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
}
-.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator {
- fill: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
-}
.edit-site-sidebar-navigation-item.components-item[aria-current=true] {
background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed);
color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
@@ -5060,9 +5109,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
--wp-components-color-accent: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
transform: translateZ(0);
}
-.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator {
- fill: var(--wpds-color-foreground-interactive-neutral-weak, #707070);
-}
.edit-site-sidebar-navigation-item.components-item.with-suffix {
padding-left: 16px;
}
diff --git a/wp-includes/css/dist/edit-site/style-rtl.min.css b/wp-includes/css/dist/edit-site/style-rtl.min.css
index 12992d3509..2c63729566 100644
--- a/wp-includes/css/dist/edit-site/style-rtl.min.css
+++ b/wp-includes/css/dist/edit-site/style-rtl.min.css
@@ -1 +1 @@
-.dataviews-picker-wrapper,.dataviews-wrapper{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;flex-grow:1;font-size:var(--wpds-typography-font-size-md,13px);height:100%;line-height:var(--wpds-typography-line-height-sm,20px);min-height:0;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{background-color:inherit;box-sizing:border-box;flex-shrink:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews__search{flex-grow:1}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-no-results.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-no-results.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@keyframes dataviews-pulse{0%,to{opacity:1}50%{opacity:.5}}.dataviews-loading-more{text-align:center}.dataviews-loading-more[aria-hidden=true]{visibility:hidden}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}}.dataviews-title-field{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-emphasis,600);text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field a{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer)}.dataviews-title-field--clickable:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews__view-actions--infinite-scroll{background-color:#fff;position:sticky;top:0;z-index:2}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:var(--wpds-dimension-padding-sm,8px) 0 0}.dataviews-bulk-actions-footer__item-count{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-bulk-actions-footer__container{margin-left:auto;min-height:var(--wpds-dimension-size-md,32px)}.dataviews-layout__container{background-color:inherit;display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.dataviews-filters__summary-popover .components-popover__content{border-radius:var(--wpds-border-radius-md,4px);max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px);position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:var(--wpds-color-background-interactive-brand-weak,transparent);border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:transparent;border:0;border-radius:var(--wpds-border-radius-md,4px);cursor:var(--wpds-cursor-control,pointer);display:flex;height:var(--wpds-dimension-size-sm,24px);justify-content:center;left:var(--wpds-dimension-padding-xs,4px);padding:0;position:absolute;top:50%;transform:translateY(-50%);width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);max-height:184px;overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__search-widget-listbox{overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:var(--wpds-border-radius-sm,2px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:default;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);gap:var(--wpds-dimension-gap-md,12px);line-height:20px;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px)}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-sm,12px);line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-left:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);border:4px solid var(--wpds-color-foreground-interactive-brand-strong,#fff);border-radius:50%;box-sizing:inherit;content:"";height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex-shrink:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px -5px 0 0}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-interactive-neutral-weak,transparent);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);height:var(--checkmark-size);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:var(--wpds-dimension-padding-sm,8px);position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:var(--wpds-dimension-size-md,32px);margin-left:0;margin-right:0;padding:0 var(--wpds-dimension-size-md,32px) 0 var(--wpds-dimension-padding-sm,8px);width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:var(--wpds-typography-font-size-md,13px)}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:var(--wpds-color-background-surface-neutral-strong,#fff);box-shadow:inset 0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:var(--wpds-dimension-gap-md,12px);justify-content:center;position:absolute;top:0;width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);font-size:11px;height:var(--wpds-dimension-size-2xs,16px);left:0;line-height:var(--wpds-typography-line-height-xs,16px);min-width:var(--wpds-dimension-size-2xs,16px);outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-background-surface-neutral-strong,#fff);padding:0 var(--wpds-dimension-padding-xs,4px);position:absolute;text-align:center;top:0;transform:translate(-50%,-50%)}.dataviews-search{flex-basis:210px}.dataviews-filters__user-input-widget{padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-right:var(--wpds-dimension-padding-sm,8px)}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-footer{background-color:inherit;border-top:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;flex-shrink:0;padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px);position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:1}.dataviews-footer .is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-footer .is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@container (max-width: 560px){.dataviews-footer__content{flex-direction:column!important}.dataviews-footer__content .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer__content .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer__content .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.dataviews-action-modal{z-index:1000001}.dataviews-item-actions .components-button:not(.dataviews-all-actions-button){padding:0 var(--wpds-dimension-padding-xs,4px)}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:var(--wpds-typography-line-height-md,24px)}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-view-config__sort-controls>*{flex:1}.dataviews-view-config__label{text-wrap:nowrap}.dataviews-view-config__toggle-wrapper{display:inline-flex;position:relative}.dataviews-view-config__modified-indicator{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:50%;height:var(--wpds-dimension-gap-xs,4px);left:var(--wpds-dimension-gap-xs,4px);pointer-events:none;position:absolute;top:var(--wpds-dimension-gap-xs,4px);width:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:var(--wpds-dimension-gap-xl,24px);grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid-items.has-compact-density{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid-items.has-comfortable-density{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid{container-type:inline-size;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xl,24px);margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid{transition:padding .1s ease-out}}.dataviews-view-grid.has-compact-density,.dataviews-view-grid.has-compact-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid.has-comfortable-density,.dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid .dataviews-view-grid__row{display:grid;gap:var(--wpds-dimension-gap-xl,24px)}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell{border-radius:var(--wpds-border-radius-md,4px);position:relative}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";height:100%;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__card,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-grid .dataviews-view-grid__media,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media.dataviews-view-grid__media--placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media.dataviews-view-grid__media--placeholder{aspect-ratio:3/1}.dataviews-view-grid .dataviews-view-grid__media img,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder{background:var(--wpds-color-background-surface-neutral,#fcfcfc);border-radius:var(--wpds-border-radius-md,4px);box-shadow:none;display:block;height:100%;width:100%}.dataviews-view-grid .dataviews-view-grid__fields,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:0;position:absolute;right:var(--wpds-dimension-padding-sm,8px);top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-grid__card .dataviews-view-grid__media-actions{left:var(--wpds-dimension-padding-xs,4px);opacity:0;position:absolute;top:var(--wpds-dimension-padding-xs,4px);z-index:1}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:var(--wpds-color-background-surface-neutral-strong,#fff)}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:var(--wpds-dimension-padding-xs,4px)}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-grid__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);container-type:inline-size;font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:var(--wpds-dimension-gap-xs,4px);white-space:nowrap;width:-moz-max-content;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:var(--wpds-color-background-interactive-brand-weak,transparent);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-view-list .dataviews-view-list__item{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:var(--wpds-cursor-control,pointer);inset:0;padding:0;position:absolute;scroll-margin:var(--wpds-dimension-gap-sm,8px) 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;height:48px;overflow:hidden;position:relative;width:48px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:48px;min-width:0}.dataviews-view-list .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.dataviews-view-list .dataviews-view-list__fields{display:flex;flex-wrap:wrap;font-size:12px;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper{height:var(--wpds-dimension-size-md,32px);width:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__field-wrapper{min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-sm,8px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xl,32px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper{height:64px;width:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper{min-height:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-lg,16px);row-gap:var(--wpds-dimension-gap-sm,8px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-list.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-list__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-lg,16px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table{background-color:inherit;border-collapse:collapse;border-color:inherit;color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;text-align:right}.dataviews-view-table td,.dataviews-view-table th{padding:var(--wpds-dimension-padding-md,12px)}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:left}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));left:0;position:sticky}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{background-color:inherit;border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0)}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}@media (hover:none){.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}.dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff))}.dataviews-view-table.has-bulk-actions tr.is-selected .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table thead{background-color:inherit;inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead.dataviews-view-table__thead--stuck:after{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:inherit;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding-bottom:var(--wpds-dimension-padding-sm,8px);padding-top:var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button){padding-left:var(--wpds-dimension-padding-xs,4px);padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button{gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child{padding-right:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child{padding-left:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:var(--wpds-dimension-size-md,32px);white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{font-variant-numeric:tabular-nums;justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:0}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:last-child){padding-left:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px)}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-md,12px)}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;max-width:60px;min-height:var(--wpds-dimension-size-md,32px);min-width:var(--wpds-dimension-size-md,32px);overflow:hidden;position:relative}.dataviews-column-primary__media img{height:var(--wpds-dimension-size-md,32px);-o-object-fit:cover;object-fit:cover;width:var(--wpds-dimension-size-md,32px)}.dataviews-column-primary__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand){width:1%}.dataviews-view-table.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-table.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);min-height:0;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{position:absolute;right:var(--wpds-dimension-padding-sm,8px);top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-grid-group__header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 48px}.dataviews-view-picker-table{background-color:inherit}.dataviews-view-picker-table .dataviews-view-table__checkbox-column{width:48px}.dataviews-view-picker-table tbody:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-table tbody:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input{opacity:1;pointer-events:none}.dataviews-view-picker-table .dataviews-view-table__row{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-table .dataviews-view-table__row.is-hovered,.dataviews-view-picker-table .dataviews-view-table__row.is-selected,.dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-activity{margin:0 0 auto;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-activity .dataviews-view-activity__group-header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0}.dataviews-view-activity .dataviews-view-activity__item-actions{min-width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item-content{flex-grow:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible{border-radius:var(--wpds-border-radius-sm,2px);outline:var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wp-admin-border-width-focus)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions{display:flex;flex:0 0 auto;width:-moz-max-content;width:max-content}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions .components-button{position:relative;z-index:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty{display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field:has(.dataviews-view-activity__item-field-value:empty){display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field-value{align-items:center;display:flex}.dataviews-view-activity .dataviews-view-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-activity .dataviews-view-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item:first-child .dataviews-view-activity__item-type:before{visibility:hidden}.dataviews-view-activity .dataviews-view-activity__group:last-of-type>.dataviews-view-activity__item:last-of-type .dataviews-view-activity__item-type:after,.dataviews-view-activity>.dataviews-view-activity__item:last-child .dataviews-view-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-activity .dataviews-view-activity__item-type-icon{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);flex-shrink:0;overflow:hidden}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item-type-icon img,.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:""}.dataviews-view-activity.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-activity.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-activity+.dataviews-pagination{justify-content:space-between}.dataviews-view-picker-activity{flex-grow:1;margin:0;padding:0}.dataviews-view-picker-activity:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-activity:focus-visible .dataviews-view-picker-activity__item[data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item{border-radius:var(--wpds-border-radius-sm,2px);cursor:var(--wpds-cursor-control,pointer);padding-inline:var(--wpds-dimension-padding-2xl,24px);transition:background-color .1s ease}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected,.dataviews-view-picker-activity .dataviews-view-picker-activity__item:hover{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected{outline:3px solid transparent;outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content{flex-grow:1}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field:has(.dataviews-view-picker-activity__item-field-value:empty){display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field-value{align-items:center;display:flex}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item:first-child .dataviews-view-picker-activity__item-type:before{visibility:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity-group:last-of-type>.dataviews-view-picker-activity__item:last-of-type .dataviews-view-picker-activity__item-type:after,.dataviews-view-picker-activity>.dataviews-view-picker-activity__item:last-child .dataviews-view-picker-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-picker-activity .dataviews-view-picker-activity-group__header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0;padding-inline-start:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon{background-color:transparent;flex-shrink:0;overflow:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon img,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:var(--wpds-dimension-size-md,32px)}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-controls__richtext [data-rich-text-placeholder]:after{color:color-mix(in srgb,currentColor,transparent 38%);content:attr(data-rich-text-placeholder)}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-range-inputs>*{min-width:0}.dataviews-controls__color-picker-dropdown{display:flex}.dataviews-controls__date-preset{border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-controls__date-preset:active{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}.dataforms-layouts-panel__field-trigger{align-items:flex-start;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;isolation:isolate;min-height:var(--wpds-dimension-size-sm,24px);position:relative;width:100%}.dataforms-layouts-panel__field-trigger--label-side{flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px)}.dataforms-layouts-panel__field-trigger--label-top{display:grid;grid-template-columns:1fr auto}.dataforms-layouts-panel__field-trigger--label-none{align-items:center}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon{opacity:1}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger.is-disabled{cursor:default}.dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400)}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon{fill:currentColor;opacity:1}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible,.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger-icon{border-radius:var(--wpds-border-radius-xs,1px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));flex:0 0 auto;opacity:0;padding:0}.dataforms-layouts-panel__field-trigger-icon:focus-visible{opacity:1;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-dropdown-anchor,.dataforms-layouts-panel__field-dropdown-anchor .components-dropdown{width:100%}.dataforms-layouts-panel__field-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);width:38%}.dataforms-layouts-panel__field-label .components-base-control__label{display:inline;line-height:inherit;margin-bottom:0}.dataforms-layouts-panel__field-label-error-content,.dataforms-layouts-panel__field-label.has-error{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}.dataforms-layouts-panel__field-label-error-content{align-items:center;cursor:help;display:inline-flex;flex-direction:row;gap:var(--wpds-dimension-gap-xs,4px);position:relative;z-index:1}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-md,24px);margin-inline:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1);min-height:var(--wpds-dimension-size-sm,24px);min-width:0;overflow:clip;padding-inline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));word-break:break-word}.dataforms-layouts-panel__field-control>*{min-width:0}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-label{width:100%}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-control{grid-column:1/-1}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-trigger-icon{grid-column:2;grid-row:1}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:var(--wpds-dimension-padding-lg,16px)}.dataforms-layouts-panel__dropdown-header{margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-panel__modal-footer{margin-top:var(--wpds-dimension-gap-lg,16px)}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-panel__summary-button:empty{min-width:160px}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:var(--wpds-dimension-size-md,32px);width:100%}.dataforms-layouts-regular__field .components-base-control__label,.dataforms-layouts-regular__field .components-form-token-field__label,.dataforms-layouts-regular__field .components-input-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-md,32px);width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-label .components-base-control__label{margin-bottom:0}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:var(--wpds-dimension-size-md,32px)}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-header-content{min-height:24px}.dataforms-layouts-card__field-header-content-description{display:contents}.dataforms-layouts-card__field-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-md,13px);margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-card__field-summary{align-items:center;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-details__summary-content{display:inline-flex;min-height:var(--wpds-dimension-size-sm,24px)}.dataforms-layouts-details__content{padding-top:var(--wpds-dimension-padding-md,12px)}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{grid-gap:4px 8px;align-items:center;color:#1e1e1e;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:var(--wpds-cursor-control,pointer)}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid transparent}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{text-wrap:pretty;color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}fieldset.fields__media-edit{border:0;margin:0;padding:0;width:100%}fieldset.fields__media-edit .components-base-control__label{color:#1e1e1e}fieldset.fields__media-edit .fields__media-edit-description{font-size:12px;line-height:1.5}fieldset.fields__media-edit{container-type:inline-size}fieldset.fields__media-edit .fields__media-edit-compact-group{border:1px dashed #949494;border-radius:4px;overflow:hidden}fieldset.fields__media-edit .fields__media-edit-compact-group.is-single{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button{border:0;border-radius:0}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-compact:not(:last-child){border-bottom:1px solid #f0f0f0}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-compact{min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-compact:focus-within .fields__media-edit-compact-movers,fieldset.fields__media-edit .fields__media-edit-compact:hover .fields__media-edit-compact-movers{opacity:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers{background:#fff;border-radius:2px;left:8px;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-picker-button{align-items:center;border:1px dashed #949494;border-radius:2px;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;min-height:40px;min-width:0;padding:4px 8px;position:relative}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment){border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment):hover{background-color:color-mix(in srgb,var(--wp-admin-theme-color,#3858e9) 4%,transparent);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}fieldset.fields__media-edit .fields__media-edit-picker-button:hover{color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}fieldset.fields__media-edit .fields__media-edit-picker-button[aria-disabled=true]{cursor:default;opacity:.6}fieldset.fields__media-edit .fields__media-edit-picker-button .fields__media-edit-picker-button-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-filename,fieldset.fields__media-edit .fields__media-edit-placeholder{flex:1;min-width:0;width:100%}fieldset.fields__media-edit .fields__media-edit-placeholder{text-align:center}fieldset.fields__media-edit .fields__media-edit-thumbnail{aspect-ratio:1/1;border-radius:2px;flex-shrink:0;width:24px}fieldset.fields__media-edit .fields__media-edit-expanded{display:grid;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);border-radius:2px;display:flex;justify-content:center;overflow:hidden;padding:4px;position:relative;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview .fields__media-edit-expanded-preview-stack{height:100%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-actions{background:#fff;border-radius:2px;left:4px;position:absolute;top:4px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item{border-radius:4px;min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:focus-within .fields__media-edit-expanded-overlay,fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:hover .fields__media-edit-expanded-overlay{opacity:1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:not(.has-preview-image) .fields__media-edit-expanded-preview-stack{padding:8px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-thumbnail{height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-filename{flex:none;text-align:center}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button-spinner svg{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded.is-single{grid-template-columns:1fr}fieldset.fields__media-edit .fields__media-edit-expanded.is-single .fields__media-edit-expanded-preview{aspect-ratio:2/1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button{border-radius:4px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media-edit-picker-button{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}@container (max-width: 500px){fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-picker-button{padding:0}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-placeholder{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);display:flex;justify-content:center}.fields-controls__author-avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:right;overflow:hidden;width:24px}.fields-controls__author-avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.fields-controls__author-avatar img{transition:opacity .1s linear}}.fields-controls__author-avatar.is-loaded img{opacity:1}.fields-controls__author-icon{display:flex;flex-shrink:0;height:24px;width:24px}.fields-controls__author-icon svg{fill:currentColor;margin-right:-4px}.fields-controls__author-name{overflow:hidden;text-overflow:ellipsis}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-right:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.fields-controls__featured-image-image,.fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.fields-controls__parent,.fields-controls__password{border:0;margin:0;padding:0}.fields-controls__status-icon{height:24px;width:24px}.fields-controls__status-icon svg{fill:currentColor;margin-right:-4px}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:90px;padding:0}.font-library-modal .font-library__subtitle{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.font-library-modal__tab-panel{height:calc(100% - 50px)}.font-library__tabpanel-layout{display:flex;flex-direction:column;height:100%}.font-library__tabpanel-layout>div{flex-grow:1}.font-library__tabpanel-layout .font-library__loading{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;padding-top:124px;position:absolute;right:0;top:0;width:100%}.font-library__footer,.font-library__tabpanel-layout .components-navigator-screen{padding:24px;width:100%}.font-library__footer{background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;flex-grow:0!important;flex-shrink:0;height:90px;position:absolute}.font-library__page-selection{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.font-library__page-selection .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.font-library__search{width:240px}.font-library__fonts-title{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library__fonts-list{list-style:none;margin-bottom:0;margin-top:0;padding:0}.font-library__fonts-list-item{margin-bottom:0}.font-library__font-card{border:1px solid #ddd;box-sizing:border-box;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library__font-card:hover{background-color:#f0f0f0}.font-library__font-card:focus{position:relative}.font-library__font-card .font-library__font-card__name{font-weight:700}.font-library__font-card .font-library__font-card__count{color:#757575}.font-library__font-card .font-library__font-variant_demo-image{display:block;height:24px;width:auto}.font-library__font-card .font-library__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library__font-card .font-library__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:1}.font-library__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library__upload-area{background-color:#f0f0f0}.font-library__local-fonts{margin:24px auto;width:80%}.font-library__local-fonts .font-library__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library__select-all{padding:16px 17px 16px 16px}.font-library__select-all .components-checkbox-control__label{padding-right:16px}.global-styles-ui-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.global-styles-ui-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.global-styles-ui-screen-revisions__revisions-list li{margin-bottom:0}.global-styles-ui-screen-revisions__revision-item{cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;position:relative}.global-styles-ui-screen-revisions__revision-item[role=option]:active,.global-styles-ui-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.global-styles-ui-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item:after,.global-styles-ui-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.global-styles-ui-screen-revisions__revision-item:before{background:#ddd;border:4px solid transparent;border-radius:50%;height:8px;right:17px;top:18px;transform:translate(50%,-50%);width:8px;z-index:1}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid transparent;outline-offset:-2px}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes>li,.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta{color:#1e1e1e}.global-styles-ui-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;right:16px;top:0;width:0}.global-styles-ui-screen-revisions__revision-item:first-child:after{top:18px}.global-styles-ui-screen-revisions__revision-item:last-child:after{height:18px}.global-styles-ui-screen-revisions__revision-item-wrapper{display:block;padding:12px 40px 4px 12px}.global-styles-ui-screen-revisions__active-badge,.global-styles-ui-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:0 40px 12px 12px}.global-styles-ui-screen-revisions__changes,.global-styles-ui-screen-revisions__meta{color:#757575;font-size:12px}.global-styles-ui-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date{font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.global-styles-ui-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:right;width:100%}.global-styles-ui-screen-revisions__meta img{border-radius:100%;height:16px;margin-left:8px;width:16px}.global-styles-ui-screen-revisions__loading{margin:24px auto!important}.global-styles-ui-screen-revisions__changes{line-height:1.4;list-style:disc;margin-right:12px;text-align:right}.global-styles-ui-screen-revisions__changes li{margin-bottom:4px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination{gap:2px;justify-content:space-between}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total{height:1px;margin:-1px;overflow:hidden;position:absolute;right:-1000px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled,.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.global-styles-ui-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.global-styles-ui-variations_item{box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{border-radius:2px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{transition:outline .1s linear}}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill{height:32px}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:rgba(0,0,0,.3)}.global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview,.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.global-styles-ui-preview__wrapper{display:block;max-width:100%;width:100%}.global-styles-ui-preview__wrapper.is-hoverable{cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:20px;min-height:100px;overflow:hidden}.global-styles-ui-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-styles-ui-font-size__item-value{color:#757575}.global-styles-ui-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.global-styles-ui-block-types-search{margin-bottom:10px;padding:0 16px}.global-styles-ui-screen-typography__font-variants-count{color:#757575}.global-styles-ui-font-families__manage-fonts{justify-content:center}.global-styles-ui-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.global-styles-ui-header{line-height:1.9!important;margin-bottom:0!important}.global-styles-ui-subtitle{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)!important;margin-bottom:0!important;text-transform:uppercase}.global-styles-ui-section-title{color:#2f2f2f;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.2;margin:0;padding:16px 16px 0}.global-styles-ui-icon-with-current-color{fill:currentColor}.global-styles-ui__color-indicator-wrapper{flex-shrink:0;height:24px}.global-styles-ui__shadows-panel__options-container,.global-styles-ui__typography-panel__options-container{height:24px}.global-styles-ui__block-preview-panel{border:1px solid #ddd;border-radius:2px;overflow:hidden;position:relative;width:100%}.global-styles-ui__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #ddd;border-radius:2px;height:144px;overflow:auto}.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block{background-color:#fff;border:1px solid #ddd;border-radius:2px;height:60px;width:60%}.global-styles-ui__shadow-editor__dropdown-content{width:280px}.global-styles-ui__shadow-editor-panel{margin-bottom:4px}.global-styles-ui__shadow-editor__dropdown{position:relative;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:right;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.global-styles-ui__shadow-editor__remove-button{left:8px;opacity:0;position:absolute;top:8px}.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button{border:none}.global-styles-ui__shadow-editor__dropdown-toggle:hover+.global-styles-ui__shadow-editor__remove-button,.global-styles-ui__shadow-editor__remove-button:focus,.global-styles-ui__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.global-styles-ui__shadow-editor__remove-button{opacity:1}}.global-styles-ui-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel{flex:1 1 auto}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input,.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea{flex:1 1 auto}.global-styles-ui-screen-css-help-link{display:inline-block;margin-top:8px}.global-styles-ui-screen-variations{border-top:1px solid #ddd;margin-top:16px}.global-styles-ui-screen-variations>*{margin:24px 16px}.global-styles-ui-sidebar__navigator-provider{height:100%}.global-styles-ui-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.global-styles-ui-color-palette__tablist-container{border-bottom:1px solid #ddd}.global-styles-ui-color-palette__tablist{margin-bottom:-1px}.global-styles-ui-sidebar__navigator-screen .single-column{grid-column:span 1}.global-styles-ui-screen-root.global-styles-ui-screen-root,.global-styles-ui-screen-style-variations.global-styles-ui-screen-style-variations{background:unset;color:inherit}.global-styles-ui-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile,.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile .global-styles-ui-screen-root__active-style-tile-preview{border-radius:2px}.global-styles-ui-screen-root__active-style-tile-preview{clip-path:border-box}.global-styles-ui-color-palette-panel,.global-styles-ui-gradient-palette-panel{padding:16px}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:right;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}@media (min-width:960px){.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column:1/-1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-canvas-loader{--wp-components-color-foreground:var(--color);align-items:center;display:flex;height:100%;justify-content:center;opacity:0;position:absolute;right:0;top:0;width:100%}@media not (prefers-reduced-motion){.edit-site-canvas-loader{animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards}}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-patterns__delete-modal{width:400px}.page-patterns-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center}.dataviews-view-grid .page-patterns-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-patterns-preview-field{text-wrap:balance;text-wrap:pretty;flex-grow:0;width:96px}.edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;flex-shrink:0;min-height:40px;padding:16px 48px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.edit-site-patterns__section-header{transition:padding .1s ease-out}}.edit-site-patterns__section-header .edit-site-patterns__title{min-height:40px}.edit-site-patterns__section-header .edit-site-patterns__title .components-heading{flex-basis:0;flex-grow:1;white-space:nowrap}.edit-site-patterns__section-header .edit-site-patterns__sub-title{margin-bottom:8px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully){background:rgba(var(--wp-block-synced-color--rgb),.04);color:var(--wp-block-synced-color)}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}@container (max-width: 430px){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{padding-left:24px;padding-right:24px}}.show-icon-labels .edit-site-patterns__button.has-icon{padding:0 var(--wpds-dimension-padding-xs,4px);width:auto}.show-icon-labels .edit-site-patterns__button.has-icon svg{display:none}.show-icon-labels .edit-site-patterns__button.has-icon:after{content:attr(aria-label);font-size:var(--wpds-typography-font-size-sm,12px)}.page-templates-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.dataviews-view-list .page-templates-preview-field .block-editor-block-preview__container{height:120px}.dataviews-view-grid .page-templates-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-templates-preview-field{text-wrap:balance;text-wrap:pretty;max-height:160px;position:relative;width:120px}.edit-site-list__rename-modal{z-index:1000001}.edit-site-editor__editor-interface{opacity:1}@media not (prefers-reduced-motion){.edit-site-editor__editor-interface{transition:opacity .1s ease-out}}.edit-site-editor__editor-interface.is-loading{opacity:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-welcome-guide .components-button:hover svg{fill:#fff}.edit-site-layout{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4)}.edit-site-layout__content{display:flex;flex-grow:1;height:100%;min-height:0}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:calc(100vh - var(--wp-admin--admin-bar--height, 0px));position:fixed!important;right:0;top:var(--wp-admin--admin-bar--height,0)}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%;min-height:0}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__mobile-content{display:flex;flex-direction:column;flex-grow:1}.edit-site-sidebar__screen-wrapper:has(.edit-site-layout__mobile-content){background:var(--wpds-color-background-surface-neutral,#fcfcfc)}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:var(--wpds-border-radius-xl,12px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02)}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout__actions{background:var(--wpds-color-background-surface-neutral-strong,#fff);bottom:auto;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:var(--wp-admin--admin-bar--height,0)}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.edit-site-layout__area{box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:var(--wpds-border-radius-xl,12px);margin:16px 0 16px 16px}}.edit-site-layout__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-site-layout__snackbar .components-snackbar{margin-inline:auto}.edit-site-save-hub{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true],.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-basis:0;flex-grow:1;min-height:0;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:transparent}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 transparent}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 transparent}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-sidebar-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);flex-shrink:0}.edit-site-sidebar-button:focus:not(:focus-visible){outline:none}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover:not(:disabled,[aria-disabled=true]),.edit-site-sidebar-button:not(:disabled,[aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.edit-site-sidebar-navigation-item.components-item{border:none;color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);min-height:40px;padding:8px 16px 8px 6px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current=true]{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-item.components-item[aria-current=true]{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e);font-weight:var(--wpds-typography-font-weight-emphasis,600)}.edit-site-sidebar-navigation-item.components-item:focus-visible{--wp-components-color-accent:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));transform:translateZ(0)}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-left:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 0 8px 8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-text{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__title-icon{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);margin-bottom:8px;padding-bottom:8px;padding-top:32px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word}.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title,.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title .edit-site-sidebar-navigation-screen__title{line-height:32px}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{max-width:292px}}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item .global-styles-ui-variations_item-preview{outline-color:hsla(0,0%,100%,.05)}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:hsla(0,0%,100%,.15)}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview{outline-color:#fff}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);bottom:0;gap:0;margin:16px 0 0;padding:8px 16px;position:sticky}.edit-site-sidebar-navigation-screen__footer .edit-site-sidebar-navigation-screen-details-footer{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:var(--wpds-color-background-interactive-neutral-weak,#0000)}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:var(--wpds-color-background-interactive-neutral-weak,#0000)!important;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.sidebar-navigation__more-menu .components-button,.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px;margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.edit-site-sidebar-navigation-screen-patterns__divider{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);margin:16px 0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-left:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current]{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand-strong,#fff)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle:hover{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff)}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-sidebar-dataviews,.edit-site-sidebar-navigation-screen-main,.edit-site-sidebar-navigation-screen-templates-browse{margin-left:-16px;margin-right:-16px}.edit-site-site-hub{align-items:center;display:flex;height:64px;padding-right:16px}.edit-site-site-hub__back-button:active:not(:disabled,[aria-disabled=true]),.edit-site-site-hub__back-button:hover:not(:disabled,[aria-disabled=true]){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.dataviews-action-modal__quick-edit{align-items:stretch;justify-content:flex-end}.dataviews-action-modal__quick-edit .components-modal__frame{animation-name:none;border-radius:8px;height:calc(100% - 32px);margin:16px 0 16px 16px;max-height:calc(100% - 32px);max-width:400px;position:relative}@media (prefers-reduced-motion:no-preference){.dataviews-action-modal__quick-edit .components-modal__frame{animation-duration:.2s;animation-name:quick-edit-slide-in-right;animation-timing-function:ease-out}}.dataviews-action-modal__quick-edit.is-animating-out .components-modal__frame{animation-name:none}@media (prefers-reduced-motion:no-preference){.dataviews-action-modal__quick-edit.is-animating-out .components-modal__frame{animation-duration:.2s;animation-name:quick-edit-slide-out-right;animation-timing-function:ease-out}}.dataviews-action-modal__quick-edit .components-modal__content{display:flex;flex-direction:column;overflow:hidden;padding:0}.dataviews-action-modal__quick-edit .components-modal__content>*{display:flex;flex:1;flex-direction:column;min-height:0}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-header{padding:24px 24px 0}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-content{flex:1;min-height:0;overflow-y:auto;padding-top:16px}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-content .dataforms-layouts__wrapper{flex:1;padding:0 24px 4px}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-footer{bottom:0;flex-shrink:0;padding:16px 24px 24px;position:sticky}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-footer .components-button{flex:1;justify-content:center}@keyframes quick-edit-slide-in-right{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes quick-edit-slide-out-right{0%{transform:translateX(0)}to{transform:translateX(-100%)}}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid transparent}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.edit-site-styles .global-styles-ui-screen-root{box-shadow:none}.edit-site-styles .global-styles-ui-screen-root>div>hr{display:none}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .components-tools-panel{border-top:none}.edit-site-styles .global-styles-ui-sidebar__navigator-provider{overflow-y:auto;padding-left:0;padding-right:0}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen{outline:none;padding:12px}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen .global-styles-ui-color-palette__tablist-container{margin-inline:-12px;padding-inline:12px;width:calc(100% + 24px)}.edit-site-styles .edit-site-sidebar-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon{padding:0 var(--wpds-dimension-padding-xs,4px);width:auto}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:var(--wpds-typography-font-size-sm,12px)}::view-transition-image-pair(root){isolation:auto}::view-transition-new(root),::view-transition-old(root){animation:none;display:block;mix-blend-mode:normal}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4)}@media (min-width:782px){body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free){--wp-admin--admin-bar--height:0px}body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free) #wpadminbar{display:none}}.edit-site{box-sizing:border-box}.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh;padding-top:var(--wp-admin--admin-bar--height,0)}@media (min-width:600px){.edit-site{bottom:0;height:calc(100vh - var(--wp-admin--admin-bar--height, 0px));left:0;padding-top:0;position:fixed;right:0;top:var(--wp-admin--admin-bar--height,0)}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}
\ No newline at end of file
+.dataviews-picker-wrapper,.dataviews-wrapper{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;flex-grow:1;font-size:var(--wpds-typography-font-size-md,13px);height:100%;line-height:var(--wpds-typography-line-height-sm,20px);min-height:0;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{background-color:inherit;box-sizing:border-box;flex-shrink:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews__search{flex-grow:1}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-no-results.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-no-results.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@keyframes dataviews-pulse{0%,to{opacity:1}50%{opacity:.5}}.dataviews-loading-more{text-align:center}.dataviews-loading-more[aria-hidden=true]{visibility:hidden}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}}.dataviews-title-field{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-emphasis,600);text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field a{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer)}.dataviews-title-field--clickable:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews__view-actions--infinite-scroll{background-color:#fff;position:sticky;top:0;z-index:2}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:var(--wpds-dimension-padding-sm,8px) 0 0}.dataviews-bulk-actions-footer__item-count{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-bulk-actions-footer__container{margin-left:auto;min-height:var(--wpds-dimension-size-md,32px)}.dataviews-layout__container{background-color:inherit;display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.dataviews-filters__summary-popover .components-popover__content{border-radius:var(--wpds-border-radius-md,4px);max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px);position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:var(--wpds-color-background-interactive-brand-weak,transparent);border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:transparent;border:0;border-radius:var(--wpds-border-radius-md,4px);cursor:var(--wpds-cursor-control,pointer);display:flex;height:var(--wpds-dimension-size-sm,24px);justify-content:center;left:var(--wpds-dimension-padding-xs,4px);padding:0;position:absolute;top:50%;transform:translateY(-50%);width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);max-height:184px;overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__search-widget-listbox{overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:var(--wpds-border-radius-sm,2px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:default;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);gap:var(--wpds-dimension-gap-md,12px);line-height:20px;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px)}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-sm,12px);line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-left:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);border:4px solid var(--wpds-color-foreground-interactive-brand-strong,#fff);border-radius:50%;box-sizing:inherit;content:"";height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex-shrink:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px -5px 0 0}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-interactive-neutral-weak,transparent);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);height:var(--checkmark-size);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:var(--wpds-dimension-padding-sm,8px);position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:var(--wpds-dimension-size-md,32px);margin-left:0;margin-right:0;padding:0 var(--wpds-dimension-size-md,32px) 0 var(--wpds-dimension-padding-sm,8px);width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:var(--wpds-typography-font-size-md,13px)}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:var(--wpds-color-background-surface-neutral-strong,#fff);box-shadow:inset 0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:var(--wpds-dimension-gap-md,12px);justify-content:center;position:absolute;top:0;width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);font-size:11px;height:var(--wpds-dimension-size-2xs,16px);left:0;line-height:var(--wpds-typography-line-height-xs,16px);min-width:var(--wpds-dimension-size-2xs,16px);outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-background-surface-neutral-strong,#fff);padding:0 var(--wpds-dimension-padding-xs,4px);position:absolute;text-align:center;top:0;transform:translate(-50%,-50%)}.dataviews-search{flex-basis:210px}.dataviews-filters__user-input-widget{padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-right:var(--wpds-dimension-padding-sm,8px)}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-footer{background-color:inherit;border-top:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;flex-shrink:0;padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px);position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:1}.dataviews-footer .is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-footer .is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@container (max-width: 560px){.dataviews-footer__content{flex-direction:column!important}.dataviews-footer__content .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer__content .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer__content .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.dataviews-action-modal{z-index:1000001}.dataviews-item-actions .components-button:not(.dataviews-all-actions-button){padding:0 var(--wpds-dimension-padding-xs,4px)}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:var(--wpds-typography-line-height-md,24px)}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-view-config__sort-controls>*{flex:1}.dataviews-view-config__label{text-wrap:nowrap}.dataviews-view-config__toggle-wrapper{display:inline-flex;position:relative}.dataviews-view-config__modified-indicator{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:50%;height:var(--wpds-dimension-gap-xs,4px);left:var(--wpds-dimension-gap-xs,4px);pointer-events:none;position:absolute;top:var(--wpds-dimension-gap-xs,4px);width:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:var(--wpds-dimension-gap-xl,24px);grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid-items.has-compact-density{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid-items.has-comfortable-density{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid{container-type:inline-size;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xl,24px);margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid{transition:padding .1s ease-out}}.dataviews-view-grid.has-compact-density,.dataviews-view-grid.has-compact-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid.has-comfortable-density,.dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid .dataviews-view-grid__row{display:grid;gap:var(--wpds-dimension-gap-xl,24px)}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell{border-radius:var(--wpds-border-radius-md,4px);position:relative}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";height:100%;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__card,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-grid .dataviews-view-grid__media,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media{aspect-ratio:var(--wp-dataviews-media-aspect-ratio,1/1);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media.dataviews-view-grid__media--placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media.dataviews-view-grid__media--placeholder{aspect-ratio:3/1}.dataviews-view-grid .dataviews-view-grid__media img,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder{background:var(--wpds-color-background-surface-neutral,#fcfcfc);border-radius:var(--wpds-border-radius-md,4px);box-shadow:none;display:block;height:100%;width:100%}.dataviews-view-grid .dataviews-view-grid__fields,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:0;position:absolute;right:var(--wpds-dimension-padding-sm,8px);top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-grid__card .dataviews-view-grid__media-actions{left:var(--wpds-dimension-padding-xs,4px);opacity:0;position:absolute;top:var(--wpds-dimension-padding-xs,4px);z-index:1}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:var(--wpds-color-background-surface-neutral-strong,#fff)}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:var(--wpds-dimension-padding-xs,4px)}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-grid__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);container-type:inline-size;font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:var(--wpds-dimension-gap-xs,4px);white-space:nowrap;width:-moz-max-content;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:var(--wpds-color-background-interactive-brand-weak,transparent);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-view-list .dataviews-view-list__item{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:var(--wpds-cursor-control,pointer);inset:0;padding:0;position:absolute;scroll-margin:var(--wpds-dimension-gap-sm,8px) 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;height:48px;overflow:hidden;position:relative;width:48px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:48px;min-width:0}.dataviews-view-list .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.dataviews-view-list .dataviews-view-list__fields{display:flex;flex-wrap:wrap;font-size:12px;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper{height:var(--wpds-dimension-size-md,32px);width:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__field-wrapper{min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-sm,8px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xl,32px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper{height:64px;width:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper{min-height:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-lg,16px);row-gap:var(--wpds-dimension-gap-sm,8px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-list.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-list__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-lg,16px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table{background-color:inherit;border-collapse:collapse;border-color:inherit;color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;text-align:right}.dataviews-view-table td,.dataviews-view-table th{padding:var(--wpds-dimension-padding-md,12px)}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:left}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));left:0;position:sticky}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{background-color:inherit;border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0)}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}@media (hover:none){.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}.dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff))}.dataviews-view-table.has-bulk-actions tr.is-selected .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table thead{background-color:inherit;inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead.dataviews-view-table__thead--stuck:after{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:inherit;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding-bottom:var(--wpds-dimension-padding-sm,8px);padding-top:var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button){padding-left:var(--wpds-dimension-padding-xs,4px);padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button{gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child{padding-right:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child{padding-left:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:var(--wpds-dimension-size-md,32px);white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{font-variant-numeric:tabular-nums;justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:0}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:last-child){padding-left:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px)}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-md,12px)}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;max-width:60px;min-height:var(--wpds-dimension-size-md,32px);min-width:var(--wpds-dimension-size-md,32px);overflow:hidden;position:relative}.dataviews-column-primary__media img{height:var(--wpds-dimension-size-md,32px);-o-object-fit:cover;object-fit:cover;width:var(--wpds-dimension-size-md,32px)}.dataviews-column-primary__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media{aspect-ratio:var(--wp-dataviews-media-aspect-ratio,1/1);height:var(--wpds-dimension-size-md,32px);min-width:0}.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img{height:100%;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand){width:1%}.dataviews-view-table.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-table.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);min-height:0;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{position:absolute;right:var(--wpds-dimension-padding-sm,8px);top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-grid-group__header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 48px}.dataviews-view-picker-table{background-color:inherit}.dataviews-view-picker-table .dataviews-view-table__checkbox-column{width:48px}.dataviews-view-picker-table tbody:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-table tbody:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input{opacity:1;pointer-events:none}.dataviews-view-picker-table .dataviews-view-table__row{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-table .dataviews-view-table__row.is-hovered,.dataviews-view-picker-table .dataviews-view-table__row.is-selected,.dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-activity{margin:0 0 auto;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-activity .dataviews-view-activity__group-header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0}.dataviews-view-activity .dataviews-view-activity__item-actions{min-width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item-content{flex-grow:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible{border-radius:var(--wpds-border-radius-sm,2px);outline:var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wp-admin-border-width-focus)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions{display:flex;flex:0 0 auto;width:-moz-max-content;width:max-content}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions .components-button{position:relative;z-index:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty{display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field:has(.dataviews-view-activity__item-field-value:empty){display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field-value{align-items:center;display:flex}.dataviews-view-activity .dataviews-view-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-activity .dataviews-view-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item:first-child .dataviews-view-activity__item-type:before{visibility:hidden}.dataviews-view-activity .dataviews-view-activity__group:last-of-type>.dataviews-view-activity__item:last-of-type .dataviews-view-activity__item-type:after,.dataviews-view-activity>.dataviews-view-activity__item:last-child .dataviews-view-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-activity .dataviews-view-activity__item-type-icon{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);flex-shrink:0;overflow:hidden}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item-type-icon img,.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:""}.dataviews-view-activity.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-activity.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-activity+.dataviews-pagination{justify-content:space-between}.dataviews-view-picker-activity{flex-grow:1;margin:0;padding:0}.dataviews-view-picker-activity:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-activity:focus-visible .dataviews-view-picker-activity__item[data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item{border-radius:var(--wpds-border-radius-sm,2px);cursor:var(--wpds-cursor-control,pointer);padding-inline:var(--wpds-dimension-padding-2xl,24px);transition:background-color .1s ease}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected,.dataviews-view-picker-activity .dataviews-view-picker-activity__item:hover{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected{outline:3px solid transparent;outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content{flex-grow:1}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field:has(.dataviews-view-picker-activity__item-field-value:empty){display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field-value{align-items:center;display:flex}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item:first-child .dataviews-view-picker-activity__item-type:before{visibility:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity-group:last-of-type>.dataviews-view-picker-activity__item:last-of-type .dataviews-view-picker-activity__item-type:after,.dataviews-view-picker-activity>.dataviews-view-picker-activity__item:last-child .dataviews-view-picker-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-picker-activity .dataviews-view-picker-activity-group__header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0;padding-inline-start:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon{background-color:transparent;flex-shrink:0;overflow:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon img,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:var(--wpds-dimension-size-md,32px)}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-range-inputs>*{min-width:0}.dataviews-controls__color-picker-dropdown{display:flex}.dataviews-controls__date-preset{border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-controls__date-preset:active{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}.dataviews-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.dataviews-validated-control__indicator{align-items:flex-start;animation:dataviews-validated-control__indicator-jump .2s cubic-bezier(.68,-.55,.27,1.55);color:#757575;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;gap:4px;line-height:16px;margin:8px 0 0}.dataviews-validated-control__indicator.is-invalid{color:#cc1818}.dataviews-validated-control__indicator.is-valid{color:color-mix(in srgb,#000 30%,#4ab866)}.dataviews-validated-control__indicator-icon{flex-shrink:0}.dataviews-validated-control__indicator-spinner{height:12px;margin:2px;width:12px}@keyframes dataviews-validated-control__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.dataforms-layouts-panel__field-trigger{align-items:flex-start;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;isolation:isolate;min-height:var(--wpds-dimension-size-sm,24px);position:relative;width:100%}.dataforms-layouts-panel__field-trigger--label-side{flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px)}.dataforms-layouts-panel__field-trigger--label-top{display:grid;grid-template-columns:1fr auto}.dataforms-layouts-panel__field-trigger--label-none{align-items:center}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon{opacity:1}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger.is-disabled{cursor:default}.dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400)}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon{fill:currentColor;opacity:1}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible,.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger-icon{border-radius:var(--wpds-border-radius-xs,1px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));flex:0 0 auto;opacity:0;padding:0}.dataforms-layouts-panel__field-trigger-icon:focus-visible{opacity:1;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-dropdown-anchor,.dataforms-layouts-panel__field-dropdown-anchor .components-dropdown{width:100%}.dataforms-layouts-panel__field-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);width:38%}.dataforms-layouts-panel__field-label .components-base-control__label{display:inline;line-height:inherit;margin-bottom:0}.dataforms-layouts-panel__field-label-error-content,.dataforms-layouts-panel__field-label.has-error{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}.dataforms-layouts-panel__field-label-error-content{align-items:center;cursor:help;display:inline-flex;flex-direction:row;gap:var(--wpds-dimension-gap-xs,4px);position:relative;z-index:1}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-md,24px);margin-inline:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1);min-height:var(--wpds-dimension-size-sm,24px);min-width:0;overflow:clip;padding-inline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));word-break:break-word}.dataforms-layouts-panel__field-control>*{min-width:0}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-label{width:100%}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-control{grid-column:1/-1}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-trigger-icon{grid-column:2;grid-row:1}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:var(--wpds-dimension-padding-lg,16px)}.dataforms-layouts-panel__dropdown-header{margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-panel__modal-footer{margin-top:var(--wpds-dimension-gap-lg,16px)}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-panel__summary-button:empty{min-width:160px}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:var(--wpds-dimension-size-md,32px);width:100%}.dataforms-layouts-regular__field .components-base-control__label,.dataforms-layouts-regular__field .components-form-token-field__label,.dataforms-layouts-regular__field .components-input-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-md,32px);width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-label .components-base-control__label{margin-bottom:0}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:var(--wpds-dimension-size-md,32px)}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-header-content{min-height:24px}.dataforms-layouts-card__field-header-content-description{display:contents}.dataforms-layouts-card__field-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-md,13px);margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-card__field-summary{align-items:center;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-details__summary-content{display:inline-flex;min-height:var(--wpds-dimension-size-sm,24px)}.dataforms-layouts-details__content{padding-top:var(--wpds-dimension-padding-md,12px)}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{grid-gap:4px 8px;align-items:center;color:#1e1e1e;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:var(--wpds-cursor-control,pointer)}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid transparent}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{text-wrap:pretty;color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}fieldset.fields__media-edit{border:0;margin:0;padding:0;width:100%}fieldset.fields__media-edit .components-base-control__label{color:#1e1e1e}fieldset.fields__media-edit .fields__media-edit-description{font-size:12px;line-height:1.5}fieldset.fields__media-edit{container-type:inline-size}fieldset.fields__media-edit .fields__media-edit-compact-group{border:1px dashed #949494;border-radius:4px;overflow:hidden}fieldset.fields__media-edit .fields__media-edit-compact-group.is-single{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button{border:0;border-radius:0}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-compact:not(:last-child){border-bottom:1px solid #f0f0f0}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-compact{min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-compact:focus-within .fields__media-edit-compact-movers,fieldset.fields__media-edit .fields__media-edit-compact:hover .fields__media-edit-compact-movers{opacity:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers{background:#fff;border-radius:2px;left:8px;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-picker-button{align-items:center;border:1px dashed #949494;border-radius:2px;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;min-height:40px;min-width:0;padding:4px 8px;position:relative}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment){border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment):hover{background-color:color-mix(in srgb,var(--wp-admin-theme-color,#3858e9) 4%,transparent);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}fieldset.fields__media-edit .fields__media-edit-picker-button:hover{color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}fieldset.fields__media-edit .fields__media-edit-picker-button[aria-disabled=true]{cursor:default;opacity:.6}fieldset.fields__media-edit .fields__media-edit-picker-button .fields__media-edit-picker-button-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-filename,fieldset.fields__media-edit .fields__media-edit-placeholder{flex:1;min-width:0;width:100%}fieldset.fields__media-edit .fields__media-edit-placeholder{text-align:center}fieldset.fields__media-edit .fields__media-edit-thumbnail{aspect-ratio:1/1;border-radius:2px;flex-shrink:0;width:24px}fieldset.fields__media-edit .fields__media-edit-expanded{display:grid;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);border-radius:2px;display:flex;justify-content:center;overflow:hidden;padding:4px;position:relative;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview .fields__media-edit-expanded-preview-stack{height:100%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-actions{background:#fff;border-radius:2px;left:4px;position:absolute;top:4px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item{border-radius:4px;min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:focus-within .fields__media-edit-expanded-overlay,fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:hover .fields__media-edit-expanded-overlay{opacity:1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:not(.has-preview-image) .fields__media-edit-expanded-preview-stack{padding:8px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-thumbnail{height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-filename{flex:none;text-align:center}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button-spinner svg{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded.is-single{grid-template-columns:1fr}fieldset.fields__media-edit .fields__media-edit-expanded.is-single .fields__media-edit-expanded-preview{aspect-ratio:2/1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button{border-radius:4px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media-edit-picker-button{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}@container (max-width: 500px){fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-picker-button{padding:0}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-placeholder{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);display:flex;justify-content:center}.fields-controls__author-avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:right;overflow:hidden;width:24px}.fields-controls__author-avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.fields-controls__author-avatar img{transition:opacity .1s linear}}.fields-controls__author-avatar.is-loaded img{opacity:1}.fields-controls__author-icon{display:flex;flex-shrink:0;height:24px;width:24px}.fields-controls__author-icon svg{fill:currentColor;margin-right:-4px}.fields-controls__author-name{overflow:hidden;text-overflow:ellipsis}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-right:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.fields-controls__featured-image-image,.fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.fields-controls__parent,.fields-controls__password{border:0;margin:0;padding:0}.fields-controls__status-icon{height:24px;width:24px}.fields-controls__status-icon svg{fill:currentColor;margin-right:-4px}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:90px;padding:0}.font-library-modal .font-library__subtitle{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.font-library-modal__tab-panel{height:calc(100% - 50px)}.font-library__tabpanel-layout{display:flex;flex-direction:column;height:100%}.font-library__tabpanel-layout>div{flex-grow:1}.font-library__tabpanel-layout .font-library__loading{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;padding-top:124px;position:absolute;right:0;top:0;width:100%}.font-library__footer,.font-library__tabpanel-layout .components-navigator-screen{padding:24px;width:100%}.font-library__footer{background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;flex-grow:0!important;flex-shrink:0;height:90px;position:absolute}.font-library__page-selection{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.font-library__page-selection .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.font-library__search{width:240px}.font-library__fonts-title{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library__fonts-list{list-style:none;margin-bottom:0;margin-top:0;padding:0}.font-library__fonts-list-item{margin-bottom:0}.font-library__font-card{border:1px solid #ddd;box-sizing:border-box;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library__font-card:hover{background-color:#f0f0f0}.font-library__font-card:focus{position:relative}.font-library__font-card .font-library__font-card__name{font-weight:700}.font-library__font-card .font-library__font-card__count{color:#757575}.font-library__font-card .font-library__font-variant_demo-image{display:block;height:24px;width:auto}.font-library__font-card .font-library__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library__font-card .font-library__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:1}.font-library__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library__upload-area{background-color:#f0f0f0}.font-library__local-fonts{margin:24px auto;width:80%}.font-library__local-fonts .font-library__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library__select-all{padding:16px 17px 16px 16px}.font-library__select-all .components-checkbox-control__label{padding-right:16px}.global-styles-ui-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.global-styles-ui-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.global-styles-ui-screen-revisions__revisions-list li{margin-bottom:0}.global-styles-ui-screen-revisions__revision-item{cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;position:relative}.global-styles-ui-screen-revisions__revision-item[role=option]:active,.global-styles-ui-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.global-styles-ui-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item:after,.global-styles-ui-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.global-styles-ui-screen-revisions__revision-item:before{background:#ddd;border:4px solid transparent;border-radius:50%;height:8px;right:17px;top:18px;transform:translate(50%,-50%);width:8px;z-index:1}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid transparent;outline-offset:-2px}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes>li,.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta{color:#1e1e1e}.global-styles-ui-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;right:16px;top:0;width:0}.global-styles-ui-screen-revisions__revision-item:first-child:after{top:18px}.global-styles-ui-screen-revisions__revision-item:last-child:after{height:18px}.global-styles-ui-screen-revisions__revision-item-wrapper{display:block;padding:12px 40px 4px 12px}.global-styles-ui-screen-revisions__active-badge,.global-styles-ui-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:0 40px 12px 12px}.global-styles-ui-screen-revisions__changes,.global-styles-ui-screen-revisions__meta{color:#757575;font-size:12px}.global-styles-ui-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date{font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.global-styles-ui-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:right;width:100%}.global-styles-ui-screen-revisions__meta img{border-radius:100%;height:16px;margin-left:8px;width:16px}.global-styles-ui-screen-revisions__loading{margin:24px auto!important}.global-styles-ui-screen-revisions__changes{line-height:1.4;list-style:disc;margin-right:12px;text-align:right}.global-styles-ui-screen-revisions__changes li{margin-bottom:4px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination{gap:2px;justify-content:space-between}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total{height:1px;margin:-1px;overflow:hidden;position:absolute;right:-1000px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled,.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.global-styles-ui-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.global-styles-ui-variations_item{box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{border-radius:2px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{transition:outline .1s linear}}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill{height:32px}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:rgba(0,0,0,.3)}.global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview,.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.global-styles-ui-preview__wrapper{display:block;max-width:100%;width:100%}.global-styles-ui-preview__wrapper.is-hoverable{cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:20px;min-height:100px;overflow:hidden}.global-styles-ui-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-styles-ui-font-size__item-value{color:#757575}.global-styles-ui-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.global-styles-ui-block-types-search{margin-bottom:10px;padding:0 16px}.global-styles-ui-screen-typography__font-variants-count{color:#757575}.global-styles-ui-font-families__manage-fonts{justify-content:center}.global-styles-ui-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.global-styles-ui-header{line-height:1.9!important;margin-bottom:0!important}.global-styles-ui-subtitle{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)!important;margin-bottom:0!important;text-transform:uppercase}.global-styles-ui-section-title{color:#2f2f2f;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.2;margin:0;padding:16px 16px 0}.global-styles-ui-icon-with-current-color{fill:currentColor}.global-styles-ui__color-indicator-wrapper{flex-shrink:0;height:24px}.global-styles-ui__shadows-panel__options-container,.global-styles-ui__typography-panel__options-container{height:24px}.global-styles-ui__block-preview-panel{border:1px solid #ddd;border-radius:2px;overflow:hidden;position:relative;width:100%}.global-styles-ui__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #ddd;border-radius:2px;height:144px;overflow:auto}.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block{background-color:#fff;border:1px solid #ddd;border-radius:2px;height:60px;width:60%}.global-styles-ui__shadow-editor__dropdown-content{width:280px}.global-styles-ui__shadow-editor-panel{margin-bottom:4px}.global-styles-ui__shadow-editor__dropdown{position:relative;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:right;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.global-styles-ui__shadow-editor__remove-button{left:8px;opacity:0;position:absolute;top:8px}.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button{border:none}.global-styles-ui__shadow-editor__dropdown-toggle:hover+.global-styles-ui__shadow-editor__remove-button,.global-styles-ui__shadow-editor__remove-button:focus,.global-styles-ui__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.global-styles-ui__shadow-editor__remove-button{opacity:1}}.global-styles-ui-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel{flex:1 1 auto}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input,.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea{flex:1 1 auto}.global-styles-ui-screen-css-help-link{display:inline-block;margin-top:8px}.global-styles-ui-screen-variations{border-top:1px solid #ddd;margin-top:16px}.global-styles-ui-screen-variations>*{margin:24px 16px}.global-styles-ui-sidebar__navigator-provider{height:100%}.global-styles-ui-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.global-styles-ui-color-palette__tablist-container{border-bottom:1px solid #ddd}.global-styles-ui-color-palette__tablist{margin-bottom:-1px}.global-styles-ui-sidebar__navigator-screen .single-column{grid-column:span 1}.global-styles-ui-screen-root.global-styles-ui-screen-root,.global-styles-ui-screen-style-variations.global-styles-ui-screen-style-variations{background:unset;color:inherit}.global-styles-ui-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile,.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile .global-styles-ui-screen-root__active-style-tile-preview{border-radius:2px}.global-styles-ui-screen-root__active-style-tile-preview{clip-path:border-box}.global-styles-ui-color-palette-panel,.global-styles-ui-gradient-palette-panel{padding:16px}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:right;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}@media (min-width:960px){.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column:1/-1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-canvas-loader{--wp-components-color-foreground:var(--color);align-items:center;display:flex;height:100%;justify-content:center;opacity:0;position:absolute;right:0;top:0;width:100%}@media not (prefers-reduced-motion){.edit-site-canvas-loader{animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards}}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-patterns__delete-modal{width:400px}.page-patterns-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center}.dataviews-view-grid .page-patterns-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-patterns-preview-field{text-wrap:balance;text-wrap:pretty;flex-grow:0;width:96px}.edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;flex-shrink:0;min-height:40px;padding:16px 48px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.edit-site-patterns__section-header{transition:padding .1s ease-out}}.edit-site-patterns__section-header .edit-site-patterns__title{min-height:40px}.edit-site-patterns__section-header .edit-site-patterns__title .components-heading{flex-basis:0;flex-grow:1;white-space:nowrap}.edit-site-patterns__section-header .edit-site-patterns__sub-title{margin-bottom:8px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully){background:rgba(var(--wp-block-synced-color--rgb),.04);border-color:currentColor;color:var(--wp-block-synced-color)}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;max-height:96px;min-width:auto;position:absolute;right:-1px;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}@container (max-width: 430px){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{padding-left:24px;padding-right:24px}}.show-icon-labels .edit-site-patterns__button.has-icon{padding:0 var(--wpds-dimension-padding-xs,4px);width:auto}.show-icon-labels .edit-site-patterns__button.has-icon svg{display:none}.show-icon-labels .edit-site-patterns__button.has-icon:after{content:attr(aria-label);font-size:var(--wpds-typography-font-size-sm,12px)}.page-templates-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.dataviews-view-list .page-templates-preview-field .block-editor-block-preview__container{height:120px}.dataviews-view-grid .page-templates-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-templates-preview-field{text-wrap:balance;text-wrap:pretty;max-height:160px;position:relative;width:120px}.edit-site-list__rename-modal{z-index:1000001}.edit-site-editor__editor-interface{opacity:1}@media not (prefers-reduced-motion){.edit-site-editor__editor-interface{transition:opacity .1s ease-out}}.edit-site-editor__editor-interface.is-loading{opacity:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-welcome-guide .components-button:hover svg{fill:#fff}.edit-site-layout{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4)}.edit-site-layout__content{display:flex;flex-grow:1;height:100%;min-height:0}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:calc(100vh - var(--wp-admin--admin-bar--height, 0px));position:fixed!important;right:0;top:var(--wp-admin--admin-bar--height,0)}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%;min-height:0}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__mobile-content{display:flex;flex-direction:column;flex-grow:1}.edit-site-sidebar__screen-wrapper:has(.edit-site-layout__mobile-content){background:var(--wpds-color-background-surface-neutral,#fcfcfc)}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:var(--wpds-border-radius-xl,12px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02)}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout__actions{background:var(--wpds-color-background-surface-neutral-strong,#fff);bottom:auto;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:var(--wp-admin--admin-bar--height,0)}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.edit-site-layout__area{box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:var(--wpds-border-radius-xl,12px);margin:16px 0 16px 16px}}.edit-site-layout__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-site-layout__snackbar .components-snackbar{margin-inline:auto}.edit-site-save-hub{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true],.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-basis:0;flex-grow:1;min-height:0;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:transparent}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 transparent}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 transparent}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-sidebar-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);flex-shrink:0}.edit-site-sidebar-button:focus:not(:focus-visible){outline:none}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover:not(:disabled,[aria-disabled=true]),.edit-site-sidebar-button:not(:disabled,[aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.edit-site-sidebar-navigation-item.components-item{border:none;color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);min-height:40px;padding:8px 16px 8px 6px}.edit-site-sidebar-navigation-item.components-item.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item[aria-current=true]{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-item.components-item[aria-current=true]{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);font-weight:var(--wpds-typography-font-weight-emphasis,600)}.edit-site-sidebar-navigation-item.components-item:focus-visible{--wp-components-color-accent:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));transform:translateZ(0)}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-left:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 0 8px 8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-text{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__title-icon{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);margin-bottom:8px;padding-bottom:8px;padding-top:32px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word}.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title,.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title .edit-site-sidebar-navigation-screen__title{line-height:32px}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{max-width:292px}}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item .global-styles-ui-variations_item-preview{outline-color:hsla(0,0%,100%,.05)}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:hsla(0,0%,100%,.15)}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview{outline-color:#fff}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);bottom:0;gap:0;margin:16px 0 0;padding:8px 16px;position:sticky}.edit-site-sidebar-navigation-screen__footer .edit-site-sidebar-navigation-screen-details-footer{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:var(--wpds-color-background-interactive-neutral-weak,#0000)}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:var(--wpds-color-background-interactive-neutral-weak,#0000)!important;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.sidebar-navigation__more-menu .components-button,.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px;margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.edit-site-sidebar-navigation-screen-patterns__divider{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);margin:16px 0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-left:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current]{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand-strong,#fff)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle:hover{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff)}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-sidebar-dataviews,.edit-site-sidebar-navigation-screen-main,.edit-site-sidebar-navigation-screen-templates-browse{margin-left:-16px;margin-right:-16px}.edit-site-site-hub{align-items:center;display:flex;height:64px;padding-right:16px}.edit-site-site-hub__back-button:active:not(:disabled,[aria-disabled=true]),.edit-site-site-hub__back-button:hover:not(:disabled,[aria-disabled=true]){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.dataviews-action-modal__quick-edit{align-items:stretch;justify-content:flex-end}.dataviews-action-modal__quick-edit .components-modal__frame{animation-name:none;border-radius:8px;height:calc(100% - 32px);margin:16px 0 16px 16px;max-height:calc(100% - 32px);max-width:400px;position:relative}@media (prefers-reduced-motion:no-preference){.dataviews-action-modal__quick-edit .components-modal__frame{animation-duration:.2s;animation-name:quick-edit-slide-in-right;animation-timing-function:ease-out}}.dataviews-action-modal__quick-edit.is-animating-out .components-modal__frame{animation-name:none}@media (prefers-reduced-motion:no-preference){.dataviews-action-modal__quick-edit.is-animating-out .components-modal__frame{animation-duration:.2s;animation-name:quick-edit-slide-out-right;animation-timing-function:ease-out}}.dataviews-action-modal__quick-edit .components-modal__content{display:flex;flex-direction:column;overflow:hidden;padding:0}.dataviews-action-modal__quick-edit .components-modal__content>*{display:flex;flex:1;flex-direction:column;min-height:0}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-header{padding:24px 24px 0}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-content{flex:1;min-height:0;overflow-y:auto;padding-top:16px}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-content .dataforms-layouts__wrapper{flex:1;padding:0 24px 4px}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-footer{bottom:0;flex-shrink:0;padding:16px 24px 24px;position:sticky}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-footer .components-button{flex:1;justify-content:center}@keyframes quick-edit-slide-in-right{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes quick-edit-slide-out-right{0%{transform:translateX(0)}to{transform:translateX(-100%)}}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid transparent}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.edit-site-styles .global-styles-ui-screen-root{box-shadow:none}.edit-site-styles .global-styles-ui-screen-root>div>hr{display:none}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .components-tools-panel{border-top:none}.edit-site-styles .global-styles-ui-sidebar__navigator-provider{overflow-y:auto;padding-left:0;padding-right:0}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen{outline:none;padding:12px}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen .global-styles-ui-color-palette__tablist-container{margin-inline:-12px;padding-inline:12px;width:calc(100% + 24px)}.edit-site-styles .edit-site-sidebar-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon{padding:0 var(--wpds-dimension-padding-xs,4px);width:auto}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:var(--wpds-typography-font-size-sm,12px)}::view-transition-image-pair(root){isolation:auto}::view-transition-new(root),::view-transition-old(root){animation:none;display:block;mix-blend-mode:normal}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4)}@media (min-width:782px){body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free){--wp-admin--admin-bar--height:0px}body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free) #wpadminbar{display:none}}.edit-site{box-sizing:border-box}.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh;padding-top:var(--wp-admin--admin-bar--height,0)}@media (min-width:600px){.edit-site{bottom:0;height:calc(100vh - var(--wp-admin--admin-bar--height, 0px));left:0;padding-top:0;position:fixed;right:0;top:var(--wp-admin--admin-bar--height,0)}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}
\ No newline at end of file
diff --git a/wp-includes/css/dist/edit-site/style.css b/wp-includes/css/dist/edit-site/style.css
index ebbf8a6c9f..7c0b8729f0 100644
--- a/wp-includes/css/dist/edit-site/style.css
+++ b/wp-includes/css/dist/edit-site/style.css
@@ -1257,7 +1257,7 @@
.dataviews-view-grid .dataviews-view-grid__media,
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media {
width: 100%;
- aspect-ratio: 1/1;
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
border-radius: var(--wpds-border-radius-md, 4px);
overflow: hidden;
@@ -2004,6 +2004,17 @@ div.dataviews-view-list {
border-radius: var(--wpds-border-radius-md, 4px);
}
+.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media {
+ height: var(--wpds-dimension-size-md, 32px);
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
+ min-width: 0;
+}
+
+.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img {
+ width: 100%;
+ height: 100%;
+}
+
.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
min-width: 15ch;
@@ -2657,11 +2668,6 @@ div.dataviews-view-list {
align-self: flex-end;
}
-.dataviews-controls__richtext [data-rich-text-placeholder]::after {
- content: attr(data-rich-text-placeholder);
- color: color-mix(in srgb, currentColor, transparent 38%);
-}
-
.dataviews-controls__datetime {
border: none;
padding: 0;
@@ -2694,6 +2700,51 @@ div.dataviews-view-list {
background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
}
+.dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
+ --wp-components-color-accent: #cc1818;
+ border-color: #cc1818;
+}
+
+.dataviews-validated-control__indicator {
+ display: flex;
+ align-items: flex-start;
+ gap: 4px;
+ margin: 8px 0 0;
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
+ font-size: 12px;
+ line-height: 16px;
+ color: #757575;
+ animation: dataviews-validated-control__indicator-jump 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
+}
+
+.dataviews-validated-control__indicator.is-invalid {
+ color: #cc1818;
+}
+
+.dataviews-validated-control__indicator.is-valid {
+ color: color-mix(in srgb, #000 30%, #4ab866);
+}
+
+.dataviews-validated-control__indicator-icon {
+ flex-shrink: 0;
+}
+
+.dataviews-validated-control__indicator-spinner {
+ margin: 2px;
+ width: 12px;
+ height: 12px;
+}
+
+@keyframes dataviews-validated-control__indicator-jump {
+ 0% {
+ transform: translateY(-4px);
+ opacity: 0;
+ }
+ 100% {
+ transform: translateY(0);
+ opacity: 1;
+ }
+}
.dataforms-layouts-panel__field-trigger {
position: relative;
color: inherit;
@@ -4561,6 +4612,7 @@ button.font-library__upload-area {
.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully) {
background: rgba(var(--wp-block-synced-color--rgb), 0.04);
color: var(--wp-block-synced-color);
+ border-color: currentColor;
}
.dataviews-action-modal__duplicate-pattern [role=dialog] > [role=document] {
@@ -4901,7 +4953,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
.edit-site-layout__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
left: 0;
right: 0;
padding-inline: 16px;
@@ -5047,12 +5099,9 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
border: none;
min-height: 40px;
}
-.edit-site-sidebar-navigation-item.components-item:hover, .edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current=true] {
+.edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current=true], .edit-site-sidebar-navigation-item.components-item.edit-site-sidebar-navigation-item.components-item:hover {
color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
}
-.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator {
- fill: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
-}
.edit-site-sidebar-navigation-item.components-item[aria-current=true] {
background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed);
color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e);
@@ -5062,9 +5111,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
--wp-components-color-accent: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
transform: translateZ(0);
}
-.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator {
- fill: var(--wpds-color-foreground-interactive-neutral-weak, #707070);
-}
.edit-site-sidebar-navigation-item.components-item.with-suffix {
padding-right: 16px;
}
diff --git a/wp-includes/css/dist/edit-site/style.min.css b/wp-includes/css/dist/edit-site/style.min.css
index f22004cba2..eb3d33131b 100644
--- a/wp-includes/css/dist/edit-site/style.min.css
+++ b/wp-includes/css/dist/edit-site/style.min.css
@@ -1 +1 @@
-.dataviews-picker-wrapper,.dataviews-wrapper{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;flex-grow:1;font-size:var(--wpds-typography-font-size-md,13px);height:100%;line-height:var(--wpds-typography-line-height-sm,20px);min-height:0;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{background-color:inherit;box-sizing:border-box;flex-shrink:0;left:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews__search{flex-grow:1}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-no-results.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-no-results.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@keyframes dataviews-pulse{0%,to{opacity:1}50%{opacity:.5}}.dataviews-loading-more{text-align:center}.dataviews-loading-more[aria-hidden=true]{visibility:hidden}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}}.dataviews-title-field{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-emphasis,600);text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field a{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer)}.dataviews-title-field--clickable:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews__view-actions--infinite-scroll{background-color:#fff;position:sticky;top:0;z-index:2}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:var(--wpds-dimension-padding-sm,8px) 0 0}.dataviews-bulk-actions-footer__item-count{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-bulk-actions-footer__container{margin-right:auto;min-height:var(--wpds-dimension-size-md,32px)}.dataviews-layout__container{background-color:inherit;display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.dataviews-filters__summary-popover .components-popover__content{border-radius:var(--wpds-border-radius-md,4px);max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px);position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:var(--wpds-color-background-interactive-brand-weak,transparent);border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:transparent;border:0;border-radius:var(--wpds-border-radius-md,4px);cursor:var(--wpds-cursor-control,pointer);display:flex;height:var(--wpds-dimension-size-sm,24px);justify-content:center;padding:0;position:absolute;right:var(--wpds-dimension-padding-xs,4px);top:50%;transform:translateY(-50%);width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);max-height:184px;overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__search-widget-listbox{overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:var(--wpds-border-radius-sm,2px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:default;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);gap:var(--wpds-dimension-gap-md,12px);line-height:20px;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px)}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-sm,12px);line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-right:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);border:4px solid var(--wpds-color-foreground-interactive-brand-strong,#fff);border-radius:50%;box-sizing:inherit;content:"";height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex-shrink:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-interactive-neutral-weak,transparent);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);height:var(--checkmark-size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:var(--wpds-dimension-padding-sm,8px);position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:var(--wpds-dimension-size-md,32px);margin-left:0;margin-right:0;padding:0 var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-size-md,32px);width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:var(--wpds-typography-font-size-md,13px)}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:var(--wpds-color-background-surface-neutral-strong,#fff);box-shadow:inset 0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:var(--wpds-dimension-gap-md,12px);justify-content:center;position:absolute;top:0;width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);font-size:11px;height:var(--wpds-dimension-size-2xs,16px);line-height:var(--wpds-typography-line-height-xs,16px);min-width:var(--wpds-dimension-size-2xs,16px);outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-background-surface-neutral-strong,#fff);padding:0 var(--wpds-dimension-padding-xs,4px);position:absolute;right:0;text-align:center;top:0;transform:translate(50%,-50%)}.dataviews-search{flex-basis:210px}.dataviews-filters__user-input-widget{padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-left:var(--wpds-dimension-padding-sm,8px)}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-footer{background-color:inherit;border-top:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;flex-shrink:0;left:0;padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px);position:sticky}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:1}.dataviews-footer .is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-footer .is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@container (max-width: 560px){.dataviews-footer__content{flex-direction:column!important}.dataviews-footer__content .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer__content .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer__content .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.dataviews-action-modal{z-index:1000001}.dataviews-item-actions .components-button:not(.dataviews-all-actions-button){padding:0 var(--wpds-dimension-padding-xs,4px)}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:var(--wpds-typography-line-height-md,24px)}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-view-config__sort-controls>*{flex:1}.dataviews-view-config__label{text-wrap:nowrap}.dataviews-view-config__toggle-wrapper{display:inline-flex;position:relative}.dataviews-view-config__modified-indicator{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:50%;height:var(--wpds-dimension-gap-xs,4px);pointer-events:none;position:absolute;right:var(--wpds-dimension-gap-xs,4px);top:var(--wpds-dimension-gap-xs,4px);width:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:var(--wpds-dimension-gap-xl,24px);grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid-items.has-compact-density{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid-items.has-comfortable-density{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid{container-type:inline-size;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xl,24px);margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid{transition:padding .1s ease-out}}.dataviews-view-grid.has-compact-density,.dataviews-view-grid.has-compact-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid.has-comfortable-density,.dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid .dataviews-view-grid__row{display:grid;gap:var(--wpds-dimension-gap-xl,24px)}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell{border-radius:var(--wpds-border-radius-md,4px);position:relative}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";height:100%;left:0;outline:2px solid transparent;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__card,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-grid .dataviews-view-grid__media,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media.dataviews-view-grid__media--placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media.dataviews-view-grid__media--placeholder{aspect-ratio:3/1}.dataviews-view-grid .dataviews-view-grid__media img,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder{background:var(--wpds-color-background-surface-neutral,#fcfcfc);border-radius:var(--wpds-border-radius-md,4px);box-shadow:none;display:block;height:100%;width:100%}.dataviews-view-grid .dataviews-view-grid__fields,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{left:var(--wpds-dimension-padding-sm,8px);opacity:0;position:absolute;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:0;position:absolute;right:var(--wpds-dimension-padding-xs,4px);top:var(--wpds-dimension-padding-xs,4px);z-index:1}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:var(--wpds-color-background-surface-neutral-strong,#fff)}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:var(--wpds-dimension-padding-xs,4px)}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-grid__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);container-type:inline-size;font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:var(--wpds-dimension-gap-xs,4px);white-space:nowrap;width:-moz-max-content;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:var(--wpds-color-background-interactive-brand-weak,transparent);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-view-list .dataviews-view-list__item{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:var(--wpds-cursor-control,pointer);inset:0;padding:0;position:absolute;scroll-margin:var(--wpds-dimension-gap-sm,8px) 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;height:48px;overflow:hidden;position:relative;width:48px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:48px;min-width:0}.dataviews-view-list .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.dataviews-view-list .dataviews-view-list__fields{display:flex;flex-wrap:wrap;font-size:12px;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper{height:var(--wpds-dimension-size-md,32px);width:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__field-wrapper{min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-sm,8px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xl,32px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper{height:64px;width:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper{min-height:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-lg,16px);row-gap:var(--wpds-dimension-gap-sm,8px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-list.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-list__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-lg,16px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table{background-color:inherit;border-collapse:collapse;border-color:inherit;color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;text-align:left}.dataviews-view-table td,.dataviews-view-table th{padding:var(--wpds-dimension-padding-md,12px)}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:right}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));position:sticky;right:0}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{background-color:inherit;border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0)}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}@media (hover:none){.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}.dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff))}.dataviews-view-table.has-bulk-actions tr.is-selected .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table thead{background-color:inherit;inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead.dataviews-view-table__thead--stuck:after{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:inherit;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding-bottom:var(--wpds-dimension-padding-sm,8px);padding-top:var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button){padding-left:var(--wpds-dimension-padding-xs,4px);padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button{gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child{padding-left:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child{padding-right:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:var(--wpds-dimension-size-md,32px);white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{font-variant-numeric:tabular-nums;justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-left:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:0}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:last-child){padding-right:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px)}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-md,12px)}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;max-width:60px;min-height:var(--wpds-dimension-size-md,32px);min-width:var(--wpds-dimension-size-md,32px);overflow:hidden;position:relative}.dataviews-column-primary__media img{height:var(--wpds-dimension-size-md,32px);-o-object-fit:cover;object-fit:cover;width:var(--wpds-dimension-size-md,32px)}.dataviews-column-primary__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand){width:1%}.dataviews-view-table.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-table.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);min-height:0;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{left:var(--wpds-dimension-padding-sm,8px);position:absolute;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-grid-group__header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 48px}.dataviews-view-picker-table{background-color:inherit}.dataviews-view-picker-table .dataviews-view-table__checkbox-column{width:48px}.dataviews-view-picker-table tbody:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-table tbody:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input{opacity:1;pointer-events:none}.dataviews-view-picker-table .dataviews-view-table__row{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-table .dataviews-view-table__row.is-hovered,.dataviews-view-picker-table .dataviews-view-table__row.is-selected,.dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-activity{margin:0 0 auto;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-activity .dataviews-view-activity__group-header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0}.dataviews-view-activity .dataviews-view-activity__item-actions{min-width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item-content{flex-grow:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible{border-radius:var(--wpds-border-radius-sm,2px);outline:var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wp-admin-border-width-focus)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions{display:flex;flex:0 0 auto;width:-moz-max-content;width:max-content}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions .components-button{position:relative;z-index:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty{display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field:has(.dataviews-view-activity__item-field-value:empty){display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field-value{align-items:center;display:flex}.dataviews-view-activity .dataviews-view-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-activity .dataviews-view-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item:first-child .dataviews-view-activity__item-type:before{visibility:hidden}.dataviews-view-activity .dataviews-view-activity__group:last-of-type>.dataviews-view-activity__item:last-of-type .dataviews-view-activity__item-type:after,.dataviews-view-activity>.dataviews-view-activity__item:last-child .dataviews-view-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-activity .dataviews-view-activity__item-type-icon{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);flex-shrink:0;overflow:hidden}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item-type-icon img,.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:""}.dataviews-view-activity.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-activity.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-activity+.dataviews-pagination{justify-content:space-between}.dataviews-view-picker-activity{flex-grow:1;margin:0;padding:0}.dataviews-view-picker-activity:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-activity:focus-visible .dataviews-view-picker-activity__item[data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item{border-radius:var(--wpds-border-radius-sm,2px);cursor:var(--wpds-cursor-control,pointer);padding-inline:var(--wpds-dimension-padding-2xl,24px);transition:background-color .1s ease}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected,.dataviews-view-picker-activity .dataviews-view-picker-activity__item:hover{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected{outline:3px solid transparent;outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content{flex-grow:1}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field:has(.dataviews-view-picker-activity__item-field-value:empty){display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field-value{align-items:center;display:flex}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item:first-child .dataviews-view-picker-activity__item-type:before{visibility:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity-group:last-of-type>.dataviews-view-picker-activity__item:last-of-type .dataviews-view-picker-activity__item-type:after,.dataviews-view-picker-activity>.dataviews-view-picker-activity__item:last-child .dataviews-view-picker-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-picker-activity .dataviews-view-picker-activity-group__header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0;padding-inline-start:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon{background-color:transparent;flex-shrink:0;overflow:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon img,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:var(--wpds-dimension-size-md,32px)}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-controls__richtext [data-rich-text-placeholder]:after{color:color-mix(in srgb,currentColor,transparent 38%);content:attr(data-rich-text-placeholder)}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-range-inputs>*{min-width:0}.dataviews-controls__color-picker-dropdown{display:flex}.dataviews-controls__date-preset{border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-controls__date-preset:active{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}.dataforms-layouts-panel__field-trigger{align-items:flex-start;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;isolation:isolate;min-height:var(--wpds-dimension-size-sm,24px);position:relative;width:100%}.dataforms-layouts-panel__field-trigger--label-side{flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px)}.dataforms-layouts-panel__field-trigger--label-top{display:grid;grid-template-columns:1fr auto}.dataforms-layouts-panel__field-trigger--label-none{align-items:center}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon{opacity:1}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger.is-disabled{cursor:default}.dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400)}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon{fill:currentColor;opacity:1}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible,.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger-icon{border-radius:var(--wpds-border-radius-xs,1px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));flex:0 0 auto;opacity:0;padding:0}.dataforms-layouts-panel__field-trigger-icon:focus-visible{opacity:1;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-dropdown-anchor,.dataforms-layouts-panel__field-dropdown-anchor .components-dropdown{width:100%}.dataforms-layouts-panel__field-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);width:38%}.dataforms-layouts-panel__field-label .components-base-control__label{display:inline;line-height:inherit;margin-bottom:0}.dataforms-layouts-panel__field-label-error-content,.dataforms-layouts-panel__field-label.has-error{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}.dataforms-layouts-panel__field-label-error-content{align-items:center;cursor:help;display:inline-flex;flex-direction:row;gap:var(--wpds-dimension-gap-xs,4px);position:relative;z-index:1}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-md,24px);margin-inline:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1);min-height:var(--wpds-dimension-size-sm,24px);min-width:0;overflow:clip;padding-inline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));word-break:break-word}.dataforms-layouts-panel__field-control>*{min-width:0}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-label{width:100%}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-control{grid-column:1/-1}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-trigger-icon{grid-column:2;grid-row:1}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:var(--wpds-dimension-padding-lg,16px)}.dataforms-layouts-panel__dropdown-header{margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-panel__modal-footer{margin-top:var(--wpds-dimension-gap-lg,16px)}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-panel__summary-button:empty{min-width:160px}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:var(--wpds-dimension-size-md,32px);width:100%}.dataforms-layouts-regular__field .components-base-control__label,.dataforms-layouts-regular__field .components-form-token-field__label,.dataforms-layouts-regular__field .components-input-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-md,32px);width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-label .components-base-control__label{margin-bottom:0}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:var(--wpds-dimension-size-md,32px)}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-header-content{min-height:24px}.dataforms-layouts-card__field-header-content-description{display:contents}.dataforms-layouts-card__field-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-md,13px);margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-card__field-summary{align-items:center;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-details__summary-content{display:inline-flex;min-height:var(--wpds-dimension-size-sm,24px)}.dataforms-layouts-details__content{padding-top:var(--wpds-dimension-padding-md,12px)}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{grid-gap:4px 8px;align-items:center;color:#1e1e1e;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:var(--wpds-cursor-control,pointer)}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid transparent}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{text-wrap:pretty;color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}fieldset.fields__media-edit{border:0;margin:0;padding:0;width:100%}fieldset.fields__media-edit .components-base-control__label{color:#1e1e1e}fieldset.fields__media-edit .fields__media-edit-description{font-size:12px;line-height:1.5}fieldset.fields__media-edit{container-type:inline-size}fieldset.fields__media-edit .fields__media-edit-compact-group{border:1px dashed #949494;border-radius:4px;overflow:hidden}fieldset.fields__media-edit .fields__media-edit-compact-group.is-single{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button{border:0;border-radius:0}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-compact:not(:last-child){border-bottom:1px solid #f0f0f0}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-compact{min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-compact:focus-within .fields__media-edit-compact-movers,fieldset.fields__media-edit .fields__media-edit-compact:hover .fields__media-edit-compact-movers{opacity:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers{background:#fff;border-radius:2px;opacity:0;pointer-events:none;position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-picker-button{align-items:center;border:1px dashed #949494;border-radius:2px;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;min-height:40px;min-width:0;padding:4px 8px;position:relative}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment){border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment):hover{background-color:color-mix(in srgb,var(--wp-admin-theme-color,#3858e9) 4%,transparent);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}fieldset.fields__media-edit .fields__media-edit-picker-button:hover{color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}fieldset.fields__media-edit .fields__media-edit-picker-button[aria-disabled=true]{cursor:default;opacity:.6}fieldset.fields__media-edit .fields__media-edit-picker-button .fields__media-edit-picker-button-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-filename,fieldset.fields__media-edit .fields__media-edit-placeholder{flex:1;min-width:0;width:100%}fieldset.fields__media-edit .fields__media-edit-placeholder{text-align:center}fieldset.fields__media-edit .fields__media-edit-thumbnail{aspect-ratio:1/1;border-radius:2px;flex-shrink:0;width:24px}fieldset.fields__media-edit .fields__media-edit-expanded{display:grid;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);border-radius:2px;display:flex;justify-content:center;overflow:hidden;padding:4px;position:relative;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview .fields__media-edit-expanded-preview-stack{height:100%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-actions{background:#fff;border-radius:2px;position:absolute;right:4px;top:4px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item{border-radius:4px;min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:focus-within .fields__media-edit-expanded-overlay,fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:hover .fields__media-edit-expanded-overlay{opacity:1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:not(.has-preview-image) .fields__media-edit-expanded-preview-stack{padding:8px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-thumbnail{height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-filename{flex:none;text-align:center}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button-spinner svg{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded.is-single{grid-template-columns:1fr}fieldset.fields__media-edit .fields__media-edit-expanded.is-single .fields__media-edit-expanded-preview{aspect-ratio:2/1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button{border-radius:4px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media-edit-picker-button{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}@container (max-width: 500px){fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-picker-button{padding:0}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-placeholder{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);display:flex;justify-content:center}.fields-controls__author-avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:left;overflow:hidden;width:24px}.fields-controls__author-avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.fields-controls__author-avatar img{transition:opacity .1s linear}}.fields-controls__author-avatar.is-loaded img{opacity:1}.fields-controls__author-icon{display:flex;flex-shrink:0;height:24px;width:24px}.fields-controls__author-icon svg{fill:currentColor;margin-left:-4px}.fields-controls__author-name{overflow:hidden;text-overflow:ellipsis}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-left:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.fields-controls__featured-image-image,.fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.fields-controls__parent,.fields-controls__password{border:0;margin:0;padding:0}.fields-controls__status-icon{height:24px;width:24px}.fields-controls__status-icon svg{fill:currentColor;margin-left:-4px}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:90px;padding:0}.font-library-modal .font-library__subtitle{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.font-library-modal__tab-panel{height:calc(100% - 50px)}.font-library__tabpanel-layout{display:flex;flex-direction:column;height:100%}.font-library__tabpanel-layout>div{flex-grow:1}.font-library__tabpanel-layout .font-library__loading{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;left:0;padding-top:124px;position:absolute;top:0;width:100%}.font-library__footer,.font-library__tabpanel-layout .components-navigator-screen{padding:24px;width:100%}.font-library__footer{background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;flex-grow:0!important;flex-shrink:0;height:90px;position:absolute}.font-library__page-selection{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.font-library__page-selection .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.font-library__search{width:240px}.font-library__fonts-title{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library__fonts-list{list-style:none;margin-bottom:0;margin-top:0;padding:0}.font-library__fonts-list-item{margin-bottom:0}.font-library__font-card{border:1px solid #ddd;box-sizing:border-box;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library__font-card:hover{background-color:#f0f0f0}.font-library__font-card:focus{position:relative}.font-library__font-card .font-library__font-card__name{font-weight:700}.font-library__font-card .font-library__font-card__count{color:#757575}.font-library__font-card .font-library__font-variant_demo-image{display:block;height:24px;width:auto}.font-library__font-card .font-library__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library__font-card .font-library__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:1}.font-library__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library__upload-area{background-color:#f0f0f0}.font-library__local-fonts{margin:24px auto;width:80%}.font-library__local-fonts .font-library__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library__select-all{padding:16px 16px 16px 17px}.font-library__select-all .components-checkbox-control__label{padding-left:16px}.global-styles-ui-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.global-styles-ui-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.global-styles-ui-screen-revisions__revisions-list li{margin-bottom:0}.global-styles-ui-screen-revisions__revision-item{cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;position:relative}.global-styles-ui-screen-revisions__revision-item[role=option]:active,.global-styles-ui-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.global-styles-ui-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item:after,.global-styles-ui-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.global-styles-ui-screen-revisions__revision-item:before{background:#ddd;border:4px solid transparent;border-radius:50%;height:8px;left:17px;top:18px;transform:translate(-50%,-50%);width:8px;z-index:1}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid transparent;outline-offset:-2px}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes>li,.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta{color:#1e1e1e}.global-styles-ui-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;left:16px;top:0;width:0}.global-styles-ui-screen-revisions__revision-item:first-child:after{top:18px}.global-styles-ui-screen-revisions__revision-item:last-child:after{height:18px}.global-styles-ui-screen-revisions__revision-item-wrapper{display:block;padding:12px 12px 4px 40px}.global-styles-ui-screen-revisions__active-badge,.global-styles-ui-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:0 12px 12px 40px}.global-styles-ui-screen-revisions__changes,.global-styles-ui-screen-revisions__meta{color:#757575;font-size:12px}.global-styles-ui-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date{font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.global-styles-ui-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:left;width:100%}.global-styles-ui-screen-revisions__meta img{border-radius:100%;height:16px;margin-right:8px;width:16px}.global-styles-ui-screen-revisions__loading{margin:24px auto!important}.global-styles-ui-screen-revisions__changes{line-height:1.4;list-style:disc;margin-left:12px;text-align:left}.global-styles-ui-screen-revisions__changes li{margin-bottom:4px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination{gap:2px;justify-content:space-between}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total{height:1px;left:-1000px;margin:-1px;overflow:hidden;position:absolute}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled,.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.global-styles-ui-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.global-styles-ui-variations_item{box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{border-radius:2px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{transition:outline .1s linear}}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill{height:32px}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:rgba(0,0,0,.3)}.global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview,.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.global-styles-ui-preview__wrapper{display:block;max-width:100%;width:100%}.global-styles-ui-preview__wrapper.is-hoverable{cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:20px;min-height:100px;overflow:hidden}.global-styles-ui-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-styles-ui-font-size__item-value{color:#757575}.global-styles-ui-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.global-styles-ui-block-types-search{margin-bottom:10px;padding:0 16px}.global-styles-ui-screen-typography__font-variants-count{color:#757575}.global-styles-ui-font-families__manage-fonts{justify-content:center}.global-styles-ui-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.global-styles-ui-header{line-height:1.9!important;margin-bottom:0!important}.global-styles-ui-subtitle{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)!important;margin-bottom:0!important;text-transform:uppercase}.global-styles-ui-section-title{color:#2f2f2f;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.2;margin:0;padding:16px 16px 0}.global-styles-ui-icon-with-current-color{fill:currentColor}.global-styles-ui__color-indicator-wrapper{flex-shrink:0;height:24px}.global-styles-ui__shadows-panel__options-container,.global-styles-ui__typography-panel__options-container{height:24px}.global-styles-ui__block-preview-panel{border:1px solid #ddd;border-radius:2px;overflow:hidden;position:relative;width:100%}.global-styles-ui__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #ddd;border-radius:2px;height:144px;overflow:auto}.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block{background-color:#fff;border:1px solid #ddd;border-radius:2px;height:60px;width:60%}.global-styles-ui__shadow-editor__dropdown-content{width:280px}.global-styles-ui__shadow-editor-panel{margin-bottom:4px}.global-styles-ui__shadow-editor__dropdown{position:relative;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:left;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.global-styles-ui__shadow-editor__remove-button{opacity:0;position:absolute;right:8px;top:8px}.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button{border:none}.global-styles-ui__shadow-editor__dropdown-toggle:hover+.global-styles-ui__shadow-editor__remove-button,.global-styles-ui__shadow-editor__remove-button:focus,.global-styles-ui__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.global-styles-ui__shadow-editor__remove-button{opacity:1}}.global-styles-ui-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel{flex:1 1 auto}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input,.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea{flex:1 1 auto}.global-styles-ui-screen-css-help-link{display:inline-block;margin-top:8px}.global-styles-ui-screen-variations{border-top:1px solid #ddd;margin-top:16px}.global-styles-ui-screen-variations>*{margin:24px 16px}.global-styles-ui-sidebar__navigator-provider{height:100%}.global-styles-ui-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.global-styles-ui-color-palette__tablist-container{border-bottom:1px solid #ddd}.global-styles-ui-color-palette__tablist{margin-bottom:-1px}.global-styles-ui-sidebar__navigator-screen .single-column{grid-column:span 1}.global-styles-ui-screen-root.global-styles-ui-screen-root,.global-styles-ui-screen-style-variations.global-styles-ui-screen-style-variations{background:unset;color:inherit}.global-styles-ui-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile,.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile .global-styles-ui-screen-root__active-style-tile-preview{border-radius:2px}.global-styles-ui-screen-root__active-style-tile-preview{clip-path:border-box}.global-styles-ui-color-palette-panel,.global-styles-ui-gradient-palette-panel{padding:16px}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:left;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}@media (min-width:960px){.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column:1/-1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-canvas-loader{--wp-components-color-foreground:var(--color);align-items:center;display:flex;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;width:100%}@media not (prefers-reduced-motion){.edit-site-canvas-loader{animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards}}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-patterns__delete-modal{width:400px}.page-patterns-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center}.dataviews-view-grid .page-patterns-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-patterns-preview-field{text-wrap:balance;text-wrap:pretty;flex-grow:0;width:96px}.edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;flex-shrink:0;min-height:40px;padding:16px 48px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.edit-site-patterns__section-header{transition:padding .1s ease-out}}.edit-site-patterns__section-header .edit-site-patterns__title{min-height:40px}.edit-site-patterns__section-header .edit-site-patterns__title .components-heading{flex-basis:0;flex-grow:1;white-space:nowrap}.edit-site-patterns__section-header .edit-site-patterns__sub-title{margin-bottom:8px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully){background:rgba(var(--wp-block-synced-color--rgb),.04);color:var(--wp-block-synced-color)}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}@container (max-width: 430px){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{padding-left:24px;padding-right:24px}}.show-icon-labels .edit-site-patterns__button.has-icon{padding:0 var(--wpds-dimension-padding-xs,4px);width:auto}.show-icon-labels .edit-site-patterns__button.has-icon svg{display:none}.show-icon-labels .edit-site-patterns__button.has-icon:after{content:attr(aria-label);font-size:var(--wpds-typography-font-size-sm,12px)}.page-templates-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.dataviews-view-list .page-templates-preview-field .block-editor-block-preview__container{height:120px}.dataviews-view-grid .page-templates-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-templates-preview-field{text-wrap:balance;text-wrap:pretty;max-height:160px;position:relative;width:120px}.edit-site-list__rename-modal{z-index:1000001}.edit-site-editor__editor-interface{opacity:1}@media not (prefers-reduced-motion){.edit-site-editor__editor-interface{transition:opacity .1s ease-out}}.edit-site-editor__editor-interface.is-loading{opacity:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-welcome-guide .components-button:hover svg{fill:#fff}.edit-site-layout{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4)}.edit-site-layout__content{display:flex;flex-grow:1;height:100%;min-height:0}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:calc(100vh - var(--wp-admin--admin-bar--height, 0px));left:0;position:fixed!important;top:var(--wp-admin--admin-bar--height,0)}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%;min-height:0}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__mobile-content{display:flex;flex-direction:column;flex-grow:1}.edit-site-sidebar__screen-wrapper:has(.edit-site-layout__mobile-content){background:var(--wpds-color-background-surface-neutral,#fcfcfc)}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:var(--wpds-border-radius-xl,12px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02)}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout__actions{background:var(--wpds-color-background-surface-neutral-strong,#fff);bottom:auto;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:var(--wp-admin--admin-bar--height,0)}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.edit-site-layout__area{box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:var(--wpds-border-radius-xl,12px);margin:16px 16px 16px 0}}.edit-site-layout__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-site-layout__snackbar .components-snackbar{margin-inline:auto}.edit-site-save-hub{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true],.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-basis:0;flex-grow:1;min-height:0;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:transparent}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 transparent}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 transparent}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-sidebar-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);flex-shrink:0}.edit-site-sidebar-button:focus:not(:focus-visible){outline:none}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover:not(:disabled,[aria-disabled=true]),.edit-site-sidebar-button:not(:disabled,[aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.edit-site-sidebar-navigation-item.components-item{border:none;color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);min-height:40px;padding:8px 6px 8px 16px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current=true]{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current=true] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-item.components-item[aria-current=true]{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e);font-weight:var(--wpds-typography-font-weight-emphasis,600)}.edit-site-sidebar-navigation-item.components-item:focus-visible{--wp-components-color-accent:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));transform:translateZ(0)}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-right:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 8px 8px 0}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-text{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__title-icon{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);margin-bottom:8px;padding-bottom:8px;padding-top:32px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word}.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title,.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title .edit-site-sidebar-navigation-screen__title{line-height:32px}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{max-width:292px}}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item .global-styles-ui-variations_item-preview{outline-color:hsla(0,0%,100%,.05)}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:hsla(0,0%,100%,.15)}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview{outline-color:#fff}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);bottom:0;gap:0;margin:16px 0 0;padding:8px 16px;position:sticky}.edit-site-sidebar-navigation-screen__footer .edit-site-sidebar-navigation-screen-details-footer{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:var(--wpds-color-background-interactive-neutral-weak,#0000)}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:var(--wpds-color-background-interactive-neutral-weak,#0000)!important;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.sidebar-navigation__more-menu .components-button,.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px;margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.edit-site-sidebar-navigation-screen-patterns__divider{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);margin:16px 0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-right:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current]{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand-strong,#fff)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle:hover{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff)}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-sidebar-dataviews,.edit-site-sidebar-navigation-screen-main,.edit-site-sidebar-navigation-screen-templates-browse{margin-left:-16px;margin-right:-16px}.edit-site-site-hub{align-items:center;display:flex;height:64px;padding-left:16px}.edit-site-site-hub__back-button:active:not(:disabled,[aria-disabled=true]),.edit-site-site-hub__back-button:hover:not(:disabled,[aria-disabled=true]){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.dataviews-action-modal__quick-edit{align-items:stretch;justify-content:flex-end}.dataviews-action-modal__quick-edit .components-modal__frame{animation-name:none;border-radius:8px;height:calc(100% - 32px);margin:16px 16px 16px 0;max-height:calc(100% - 32px);max-width:400px;position:relative}@media (prefers-reduced-motion:no-preference){.dataviews-action-modal__quick-edit .components-modal__frame{animation-duration:.2s;animation-name:quick-edit-slide-in-right;animation-timing-function:ease-out}}.dataviews-action-modal__quick-edit.is-animating-out .components-modal__frame{animation-name:none}@media (prefers-reduced-motion:no-preference){.dataviews-action-modal__quick-edit.is-animating-out .components-modal__frame{animation-duration:.2s;animation-name:quick-edit-slide-out-right;animation-timing-function:ease-out}}.dataviews-action-modal__quick-edit .components-modal__content{display:flex;flex-direction:column;overflow:hidden;padding:0}.dataviews-action-modal__quick-edit .components-modal__content>*{display:flex;flex:1;flex-direction:column;min-height:0}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-header{padding:24px 24px 0}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-content{flex:1;min-height:0;overflow-y:auto;padding-top:16px}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-content .dataforms-layouts__wrapper{flex:1;padding:0 24px 4px}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-footer{bottom:0;flex-shrink:0;padding:16px 24px 24px;position:sticky}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-footer .components-button{flex:1;justify-content:center}@keyframes quick-edit-slide-in-right{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes quick-edit-slide-out-right{0%{transform:translateX(0)}to{transform:translateX(100%)}}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid transparent}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.edit-site-styles .global-styles-ui-screen-root{box-shadow:none}.edit-site-styles .global-styles-ui-screen-root>div>hr{display:none}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .components-tools-panel{border-top:none}.edit-site-styles .global-styles-ui-sidebar__navigator-provider{overflow-y:auto;padding-left:0;padding-right:0}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen{outline:none;padding:12px}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen .global-styles-ui-color-palette__tablist-container{margin-inline:-12px;padding-inline:12px;width:calc(100% + 24px)}.edit-site-styles .edit-site-sidebar-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon{padding:0 var(--wpds-dimension-padding-xs,4px);width:auto}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:var(--wpds-typography-font-size-sm,12px)}::view-transition-image-pair(root){isolation:auto}::view-transition-new(root),::view-transition-old(root){animation:none;display:block;mix-blend-mode:normal}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4)}@media (min-width:782px){body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free){--wp-admin--admin-bar--height:0px}body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free) #wpadminbar{display:none}}.edit-site{box-sizing:border-box}.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh;padding-top:var(--wp-admin--admin-bar--height,0)}@media (min-width:600px){.edit-site{bottom:0;height:calc(100vh - var(--wp-admin--admin-bar--height, 0px));left:0;padding-top:0;position:fixed;right:0;top:var(--wp-admin--admin-bar--height,0)}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}
\ No newline at end of file
+.dataviews-picker-wrapper,.dataviews-wrapper{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;flex-grow:1;font-size:var(--wpds-typography-font-size-md,13px);height:100%;line-height:var(--wpds-typography-line-height-sm,20px);min-height:0;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{background-color:inherit;box-sizing:border-box;flex-shrink:0;left:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews__search{flex-grow:1}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-no-results.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-no-results.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@keyframes dataviews-pulse{0%,to{opacity:1}50%{opacity:.5}}.dataviews-loading-more{text-align:center}.dataviews-loading-more[aria-hidden=true]{visibility:hidden}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}}.dataviews-title-field{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-emphasis,600);text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field a{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer)}.dataviews-title-field--clickable:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews__view-actions--infinite-scroll{background-color:#fff;position:sticky;top:0;z-index:2}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:var(--wpds-dimension-padding-sm,8px) 0 0}.dataviews-bulk-actions-footer__item-count{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-bulk-actions-footer__container{margin-right:auto;min-height:var(--wpds-dimension-size-md,32px)}.dataviews-layout__container{background-color:inherit;display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.dataviews-filters__summary-popover .components-popover__content{border-radius:var(--wpds-border-radius-md,4px);max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px);position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:var(--wpds-color-background-interactive-brand-weak,transparent);border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:transparent;border:0;border-radius:var(--wpds-border-radius-md,4px);cursor:var(--wpds-cursor-control,pointer);display:flex;height:var(--wpds-dimension-size-sm,24px);justify-content:center;padding:0;position:absolute;right:var(--wpds-dimension-padding-xs,4px);top:50%;transform:translateY(-50%);width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);max-height:184px;overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__search-widget-listbox{overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:var(--wpds-border-radius-sm,2px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:default;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);gap:var(--wpds-dimension-gap-md,12px);line-height:20px;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px)}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-sm,12px);line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-right:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);border:4px solid var(--wpds-color-foreground-interactive-brand-strong,#fff);border-radius:50%;box-sizing:inherit;content:"";height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex-shrink:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-interactive-neutral-weak,transparent);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);height:var(--checkmark-size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:var(--wpds-dimension-padding-sm,8px);position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:var(--wpds-dimension-size-md,32px);margin-left:0;margin-right:0;padding:0 var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-size-md,32px);width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:var(--wpds-typography-font-size-md,13px)}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:var(--wpds-color-background-surface-neutral-strong,#fff);box-shadow:inset 0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:var(--wpds-dimension-gap-md,12px);justify-content:center;position:absolute;top:0;width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);font-size:11px;height:var(--wpds-dimension-size-2xs,16px);line-height:var(--wpds-typography-line-height-xs,16px);min-width:var(--wpds-dimension-size-2xs,16px);outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-background-surface-neutral-strong,#fff);padding:0 var(--wpds-dimension-padding-xs,4px);position:absolute;right:0;text-align:center;top:0;transform:translate(50%,-50%)}.dataviews-search{flex-basis:210px}.dataviews-filters__user-input-widget{padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-left:var(--wpds-dimension-padding-sm,8px)}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-footer{background-color:inherit;border-top:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;flex-shrink:0;left:0;padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px);position:sticky}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:1}.dataviews-footer .is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-footer .is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@container (max-width: 560px){.dataviews-footer__content{flex-direction:column!important}.dataviews-footer__content .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer__content .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer__content .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.dataviews-action-modal{z-index:1000001}.dataviews-item-actions .components-button:not(.dataviews-all-actions-button){padding:0 var(--wpds-dimension-padding-xs,4px)}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:var(--wpds-typography-line-height-md,24px)}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-view-config__sort-controls>*{flex:1}.dataviews-view-config__label{text-wrap:nowrap}.dataviews-view-config__toggle-wrapper{display:inline-flex;position:relative}.dataviews-view-config__modified-indicator{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:50%;height:var(--wpds-dimension-gap-xs,4px);pointer-events:none;position:absolute;right:var(--wpds-dimension-gap-xs,4px);top:var(--wpds-dimension-gap-xs,4px);width:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:var(--wpds-dimension-gap-xl,24px);grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid-items.has-compact-density{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid-items.has-comfortable-density{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid{container-type:inline-size;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xl,24px);margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid{transition:padding .1s ease-out}}.dataviews-view-grid.has-compact-density,.dataviews-view-grid.has-compact-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid.has-comfortable-density,.dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid .dataviews-view-grid__row{display:grid;gap:var(--wpds-dimension-gap-xl,24px)}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell{border-radius:var(--wpds-border-radius-md,4px);position:relative}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";height:100%;left:0;outline:2px solid transparent;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__card,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-grid .dataviews-view-grid__media,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media{aspect-ratio:var(--wp-dataviews-media-aspect-ratio,1/1);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media.dataviews-view-grid__media--placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media.dataviews-view-grid__media--placeholder{aspect-ratio:3/1}.dataviews-view-grid .dataviews-view-grid__media img,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder{background:var(--wpds-color-background-surface-neutral,#fcfcfc);border-radius:var(--wpds-border-radius-md,4px);box-shadow:none;display:block;height:100%;width:100%}.dataviews-view-grid .dataviews-view-grid__fields,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{left:var(--wpds-dimension-padding-sm,8px);opacity:0;position:absolute;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:0;position:absolute;right:var(--wpds-dimension-padding-xs,4px);top:var(--wpds-dimension-padding-xs,4px);z-index:1}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:var(--wpds-color-background-surface-neutral-strong,#fff)}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:var(--wpds-dimension-padding-xs,4px)}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-grid__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);container-type:inline-size;font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:var(--wpds-dimension-gap-xs,4px);white-space:nowrap;width:-moz-max-content;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:var(--wpds-color-background-interactive-brand-weak,transparent);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-view-list .dataviews-view-list__item{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:var(--wpds-cursor-control,pointer);inset:0;padding:0;position:absolute;scroll-margin:var(--wpds-dimension-gap-sm,8px) 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;height:48px;overflow:hidden;position:relative;width:48px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:48px;min-width:0}.dataviews-view-list .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.dataviews-view-list .dataviews-view-list__fields{display:flex;flex-wrap:wrap;font-size:12px;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper{height:var(--wpds-dimension-size-md,32px);width:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__field-wrapper{min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-sm,8px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xl,32px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper{height:64px;width:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper{min-height:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-lg,16px);row-gap:var(--wpds-dimension-gap-sm,8px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-list.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-list__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-lg,16px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table{background-color:inherit;border-collapse:collapse;border-color:inherit;color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;text-align:left}.dataviews-view-table td,.dataviews-view-table th{padding:var(--wpds-dimension-padding-md,12px)}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:right}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));position:sticky;right:0}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{background-color:inherit;border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0)}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}@media (hover:none){.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}.dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff))}.dataviews-view-table.has-bulk-actions tr.is-selected .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table thead{background-color:inherit;inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead.dataviews-view-table__thead--stuck:after{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:inherit;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding-bottom:var(--wpds-dimension-padding-sm,8px);padding-top:var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button){padding-left:var(--wpds-dimension-padding-xs,4px);padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button{gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child{padding-left:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child{padding-right:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:var(--wpds-dimension-size-md,32px);white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{font-variant-numeric:tabular-nums;justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-left:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:0}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:last-child){padding-right:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px)}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-md,12px)}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;max-width:60px;min-height:var(--wpds-dimension-size-md,32px);min-width:var(--wpds-dimension-size-md,32px);overflow:hidden;position:relative}.dataviews-column-primary__media img{height:var(--wpds-dimension-size-md,32px);-o-object-fit:cover;object-fit:cover;width:var(--wpds-dimension-size-md,32px)}.dataviews-column-primary__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media{aspect-ratio:var(--wp-dataviews-media-aspect-ratio,1/1);height:var(--wpds-dimension-size-md,32px);min-width:0}.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img{height:100%;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand){width:1%}.dataviews-view-table.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-table.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);min-height:0;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{left:var(--wpds-dimension-padding-sm,8px);position:absolute;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-grid-group__header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 48px}.dataviews-view-picker-table{background-color:inherit}.dataviews-view-picker-table .dataviews-view-table__checkbox-column{width:48px}.dataviews-view-picker-table tbody:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-table tbody:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input{opacity:1;pointer-events:none}.dataviews-view-picker-table .dataviews-view-table__row{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-table .dataviews-view-table__row.is-hovered,.dataviews-view-picker-table .dataviews-view-table__row.is-selected,.dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-activity{margin:0 0 auto;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-activity .dataviews-view-activity__group-header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0}.dataviews-view-activity .dataviews-view-activity__item-actions{min-width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item-content{flex-grow:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible{border-radius:var(--wpds-border-radius-sm,2px);outline:var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wp-admin-border-width-focus)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions{display:flex;flex:0 0 auto;width:-moz-max-content;width:max-content}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions .components-button{position:relative;z-index:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty{display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field:has(.dataviews-view-activity__item-field-value:empty){display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field-value{align-items:center;display:flex}.dataviews-view-activity .dataviews-view-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-activity .dataviews-view-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item:first-child .dataviews-view-activity__item-type:before{visibility:hidden}.dataviews-view-activity .dataviews-view-activity__group:last-of-type>.dataviews-view-activity__item:last-of-type .dataviews-view-activity__item-type:after,.dataviews-view-activity>.dataviews-view-activity__item:last-child .dataviews-view-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-activity .dataviews-view-activity__item-type-icon{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);flex-shrink:0;overflow:hidden}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item-type-icon img,.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:""}.dataviews-view-activity.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-activity.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-activity+.dataviews-pagination{justify-content:space-between}.dataviews-view-picker-activity{flex-grow:1;margin:0;padding:0}.dataviews-view-picker-activity:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-activity:focus-visible .dataviews-view-picker-activity__item[data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item{border-radius:var(--wpds-border-radius-sm,2px);cursor:var(--wpds-cursor-control,pointer);padding-inline:var(--wpds-dimension-padding-2xl,24px);transition:background-color .1s ease}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected,.dataviews-view-picker-activity .dataviews-view-picker-activity__item:hover{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected{outline:3px solid transparent;outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content{flex-grow:1}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field:has(.dataviews-view-picker-activity__item-field-value:empty){display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field-value{align-items:center;display:flex}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item:first-child .dataviews-view-picker-activity__item-type:before{visibility:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity-group:last-of-type>.dataviews-view-picker-activity__item:last-of-type .dataviews-view-picker-activity__item-type:after,.dataviews-view-picker-activity>.dataviews-view-picker-activity__item:last-child .dataviews-view-picker-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-picker-activity .dataviews-view-picker-activity-group__header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0;padding-inline-start:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon{background-color:transparent;flex-shrink:0;overflow:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon img,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:var(--wpds-dimension-size-md,32px)}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-range-inputs>*{min-width:0}.dataviews-controls__color-picker-dropdown{display:flex}.dataviews-controls__date-preset{border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-controls__date-preset:active{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}.dataviews-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.dataviews-validated-control__indicator{align-items:flex-start;animation:dataviews-validated-control__indicator-jump .2s cubic-bezier(.68,-.55,.27,1.55);color:#757575;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;gap:4px;line-height:16px;margin:8px 0 0}.dataviews-validated-control__indicator.is-invalid{color:#cc1818}.dataviews-validated-control__indicator.is-valid{color:color-mix(in srgb,#000 30%,#4ab866)}.dataviews-validated-control__indicator-icon{flex-shrink:0}.dataviews-validated-control__indicator-spinner{height:12px;margin:2px;width:12px}@keyframes dataviews-validated-control__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.dataforms-layouts-panel__field-trigger{align-items:flex-start;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;isolation:isolate;min-height:var(--wpds-dimension-size-sm,24px);position:relative;width:100%}.dataforms-layouts-panel__field-trigger--label-side{flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px)}.dataforms-layouts-panel__field-trigger--label-top{display:grid;grid-template-columns:1fr auto}.dataforms-layouts-panel__field-trigger--label-none{align-items:center}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon{opacity:1}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger.is-disabled{cursor:default}.dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400)}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon{fill:currentColor;opacity:1}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible,.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger-icon{border-radius:var(--wpds-border-radius-xs,1px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));flex:0 0 auto;opacity:0;padding:0}.dataforms-layouts-panel__field-trigger-icon:focus-visible{opacity:1;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-dropdown-anchor,.dataforms-layouts-panel__field-dropdown-anchor .components-dropdown{width:100%}.dataforms-layouts-panel__field-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);width:38%}.dataforms-layouts-panel__field-label .components-base-control__label{display:inline;line-height:inherit;margin-bottom:0}.dataforms-layouts-panel__field-label-error-content,.dataforms-layouts-panel__field-label.has-error{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}.dataforms-layouts-panel__field-label-error-content{align-items:center;cursor:help;display:inline-flex;flex-direction:row;gap:var(--wpds-dimension-gap-xs,4px);position:relative;z-index:1}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-md,24px);margin-inline:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1);min-height:var(--wpds-dimension-size-sm,24px);min-width:0;overflow:clip;padding-inline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));word-break:break-word}.dataforms-layouts-panel__field-control>*{min-width:0}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-label{width:100%}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-control{grid-column:1/-1}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-trigger-icon{grid-column:2;grid-row:1}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:var(--wpds-dimension-padding-lg,16px)}.dataforms-layouts-panel__dropdown-header{margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-panel__modal-footer{margin-top:var(--wpds-dimension-gap-lg,16px)}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-panel__summary-button:empty{min-width:160px}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:var(--wpds-dimension-size-md,32px);width:100%}.dataforms-layouts-regular__field .components-base-control__label,.dataforms-layouts-regular__field .components-form-token-field__label,.dataforms-layouts-regular__field .components-input-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-md,32px);width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-label .components-base-control__label{margin-bottom:0}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:var(--wpds-dimension-size-md,32px)}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-header-content{min-height:24px}.dataforms-layouts-card__field-header-content-description{display:contents}.dataforms-layouts-card__field-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-md,13px);margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-card__field-summary{align-items:center;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-details__summary-content{display:inline-flex;min-height:var(--wpds-dimension-size-sm,24px)}.dataforms-layouts-details__content{padding-top:var(--wpds-dimension-padding-md,12px)}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{grid-gap:4px 8px;align-items:center;color:#1e1e1e;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:var(--wpds-cursor-control,pointer)}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid transparent}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{text-wrap:pretty;color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}fieldset.fields__media-edit{border:0;margin:0;padding:0;width:100%}fieldset.fields__media-edit .components-base-control__label{color:#1e1e1e}fieldset.fields__media-edit .fields__media-edit-description{font-size:12px;line-height:1.5}fieldset.fields__media-edit{container-type:inline-size}fieldset.fields__media-edit .fields__media-edit-compact-group{border:1px dashed #949494;border-radius:4px;overflow:hidden}fieldset.fields__media-edit .fields__media-edit-compact-group.is-single{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button{border:0;border-radius:0}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-compact:not(:last-child){border-bottom:1px solid #f0f0f0}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-compact{min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-compact:focus-within .fields__media-edit-compact-movers,fieldset.fields__media-edit .fields__media-edit-compact:hover .fields__media-edit-compact-movers{opacity:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers{background:#fff;border-radius:2px;opacity:0;pointer-events:none;position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-picker-button{align-items:center;border:1px dashed #949494;border-radius:2px;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;min-height:40px;min-width:0;padding:4px 8px;position:relative}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment){border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment):hover{background-color:color-mix(in srgb,var(--wp-admin-theme-color,#3858e9) 4%,transparent);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}fieldset.fields__media-edit .fields__media-edit-picker-button:hover{color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}fieldset.fields__media-edit .fields__media-edit-picker-button[aria-disabled=true]{cursor:default;opacity:.6}fieldset.fields__media-edit .fields__media-edit-picker-button .fields__media-edit-picker-button-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-filename,fieldset.fields__media-edit .fields__media-edit-placeholder{flex:1;min-width:0;width:100%}fieldset.fields__media-edit .fields__media-edit-placeholder{text-align:center}fieldset.fields__media-edit .fields__media-edit-thumbnail{aspect-ratio:1/1;border-radius:2px;flex-shrink:0;width:24px}fieldset.fields__media-edit .fields__media-edit-expanded{display:grid;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);border-radius:2px;display:flex;justify-content:center;overflow:hidden;padding:4px;position:relative;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview .fields__media-edit-expanded-preview-stack{height:100%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-actions{background:#fff;border-radius:2px;position:absolute;right:4px;top:4px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item{border-radius:4px;min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:focus-within .fields__media-edit-expanded-overlay,fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:hover .fields__media-edit-expanded-overlay{opacity:1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:not(.has-preview-image) .fields__media-edit-expanded-preview-stack{padding:8px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-thumbnail{height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-filename{flex:none;text-align:center}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button-spinner svg{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded.is-single{grid-template-columns:1fr}fieldset.fields__media-edit .fields__media-edit-expanded.is-single .fields__media-edit-expanded-preview{aspect-ratio:2/1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button{border-radius:4px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media-edit-picker-button{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}@container (max-width: 500px){fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-picker-button{padding:0}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-placeholder{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);display:flex;justify-content:center}.fields-controls__author-avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:left;overflow:hidden;width:24px}.fields-controls__author-avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.fields-controls__author-avatar img{transition:opacity .1s linear}}.fields-controls__author-avatar.is-loaded img{opacity:1}.fields-controls__author-icon{display:flex;flex-shrink:0;height:24px;width:24px}.fields-controls__author-icon svg{fill:currentColor;margin-left:-4px}.fields-controls__author-name{overflow:hidden;text-overflow:ellipsis}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-left:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.fields-controls__featured-image-image,.fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.fields-controls__parent,.fields-controls__password{border:0;margin:0;padding:0}.fields-controls__status-icon{height:24px;width:24px}.fields-controls__status-icon svg{fill:currentColor;margin-left:-4px}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:90px;padding:0}.font-library-modal .font-library__subtitle{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.font-library-modal__tab-panel{height:calc(100% - 50px)}.font-library__tabpanel-layout{display:flex;flex-direction:column;height:100%}.font-library__tabpanel-layout>div{flex-grow:1}.font-library__tabpanel-layout .font-library__loading{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;left:0;padding-top:124px;position:absolute;top:0;width:100%}.font-library__footer,.font-library__tabpanel-layout .components-navigator-screen{padding:24px;width:100%}.font-library__footer{background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;flex-grow:0!important;flex-shrink:0;height:90px;position:absolute}.font-library__page-selection{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.font-library__page-selection .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.font-library__search{width:240px}.font-library__fonts-title{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library__fonts-list{list-style:none;margin-bottom:0;margin-top:0;padding:0}.font-library__fonts-list-item{margin-bottom:0}.font-library__font-card{border:1px solid #ddd;box-sizing:border-box;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library__font-card:hover{background-color:#f0f0f0}.font-library__font-card:focus{position:relative}.font-library__font-card .font-library__font-card__name{font-weight:700}.font-library__font-card .font-library__font-card__count{color:#757575}.font-library__font-card .font-library__font-variant_demo-image{display:block;height:24px;width:auto}.font-library__font-card .font-library__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library__font-card .font-library__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:1}.font-library__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library__upload-area{background-color:#f0f0f0}.font-library__local-fonts{margin:24px auto;width:80%}.font-library__local-fonts .font-library__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library__select-all{padding:16px 16px 16px 17px}.font-library__select-all .components-checkbox-control__label{padding-left:16px}.global-styles-ui-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.global-styles-ui-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.global-styles-ui-screen-revisions__revisions-list li{margin-bottom:0}.global-styles-ui-screen-revisions__revision-item{cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;position:relative}.global-styles-ui-screen-revisions__revision-item[role=option]:active,.global-styles-ui-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.global-styles-ui-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item:after,.global-styles-ui-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.global-styles-ui-screen-revisions__revision-item:before{background:#ddd;border:4px solid transparent;border-radius:50%;height:8px;left:17px;top:18px;transform:translate(-50%,-50%);width:8px;z-index:1}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid transparent;outline-offset:-2px}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes>li,.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta{color:#1e1e1e}.global-styles-ui-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;left:16px;top:0;width:0}.global-styles-ui-screen-revisions__revision-item:first-child:after{top:18px}.global-styles-ui-screen-revisions__revision-item:last-child:after{height:18px}.global-styles-ui-screen-revisions__revision-item-wrapper{display:block;padding:12px 12px 4px 40px}.global-styles-ui-screen-revisions__active-badge,.global-styles-ui-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:0 12px 12px 40px}.global-styles-ui-screen-revisions__changes,.global-styles-ui-screen-revisions__meta{color:#757575;font-size:12px}.global-styles-ui-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date{font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.global-styles-ui-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:left;width:100%}.global-styles-ui-screen-revisions__meta img{border-radius:100%;height:16px;margin-right:8px;width:16px}.global-styles-ui-screen-revisions__loading{margin:24px auto!important}.global-styles-ui-screen-revisions__changes{line-height:1.4;list-style:disc;margin-left:12px;text-align:left}.global-styles-ui-screen-revisions__changes li{margin-bottom:4px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination{gap:2px;justify-content:space-between}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total{height:1px;left:-1000px;margin:-1px;overflow:hidden;position:absolute}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled,.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.global-styles-ui-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.global-styles-ui-variations_item{box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{border-radius:2px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{transition:outline .1s linear}}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill{height:32px}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:rgba(0,0,0,.3)}.global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview,.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.global-styles-ui-preview__wrapper{display:block;max-width:100%;width:100%}.global-styles-ui-preview__wrapper.is-hoverable{cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:20px;min-height:100px;overflow:hidden}.global-styles-ui-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-styles-ui-font-size__item-value{color:#757575}.global-styles-ui-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.global-styles-ui-block-types-search{margin-bottom:10px;padding:0 16px}.global-styles-ui-screen-typography__font-variants-count{color:#757575}.global-styles-ui-font-families__manage-fonts{justify-content:center}.global-styles-ui-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.global-styles-ui-header{line-height:1.9!important;margin-bottom:0!important}.global-styles-ui-subtitle{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)!important;margin-bottom:0!important;text-transform:uppercase}.global-styles-ui-section-title{color:#2f2f2f;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.2;margin:0;padding:16px 16px 0}.global-styles-ui-icon-with-current-color{fill:currentColor}.global-styles-ui__color-indicator-wrapper{flex-shrink:0;height:24px}.global-styles-ui__shadows-panel__options-container,.global-styles-ui__typography-panel__options-container{height:24px}.global-styles-ui__block-preview-panel{border:1px solid #ddd;border-radius:2px;overflow:hidden;position:relative;width:100%}.global-styles-ui__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #ddd;border-radius:2px;height:144px;overflow:auto}.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block{background-color:#fff;border:1px solid #ddd;border-radius:2px;height:60px;width:60%}.global-styles-ui__shadow-editor__dropdown-content{width:280px}.global-styles-ui__shadow-editor-panel{margin-bottom:4px}.global-styles-ui__shadow-editor__dropdown{position:relative;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:left;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.global-styles-ui__shadow-editor__remove-button{opacity:0;position:absolute;right:8px;top:8px}.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button{border:none}.global-styles-ui__shadow-editor__dropdown-toggle:hover+.global-styles-ui__shadow-editor__remove-button,.global-styles-ui__shadow-editor__remove-button:focus,.global-styles-ui__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.global-styles-ui__shadow-editor__remove-button{opacity:1}}.global-styles-ui-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel{flex:1 1 auto}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input,.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea{flex:1 1 auto}.global-styles-ui-screen-css-help-link{display:inline-block;margin-top:8px}.global-styles-ui-screen-variations{border-top:1px solid #ddd;margin-top:16px}.global-styles-ui-screen-variations>*{margin:24px 16px}.global-styles-ui-sidebar__navigator-provider{height:100%}.global-styles-ui-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.global-styles-ui-color-palette__tablist-container{border-bottom:1px solid #ddd}.global-styles-ui-color-palette__tablist{margin-bottom:-1px}.global-styles-ui-sidebar__navigator-screen .single-column{grid-column:span 1}.global-styles-ui-screen-root.global-styles-ui-screen-root,.global-styles-ui-screen-style-variations.global-styles-ui-screen-style-variations{background:unset;color:inherit}.global-styles-ui-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile,.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile .global-styles-ui-screen-root__active-style-tile-preview{border-radius:2px}.global-styles-ui-screen-root__active-style-tile-preview{clip-path:border-box}.global-styles-ui-color-palette-panel,.global-styles-ui-gradient-palette-panel{padding:16px}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{max-height:224px;overflow-y:auto}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:left;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}@media (min-width:960px){.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column:1/-1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-canvas-loader{--wp-components-color-foreground:var(--color);align-items:center;display:flex;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;width:100%}@media not (prefers-reduced-motion){.edit-site-canvas-loader{animation:edit-site-canvas-loader__fade-in-animation .5s ease .2s;animation-fill-mode:forwards}}@keyframes edit-site-canvas-loader__fade-in-animation{0%{opacity:0}to{opacity:1}}.edit-site-patterns__delete-modal{width:400px}.page-patterns-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center}.dataviews-view-grid .page-patterns-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-patterns-preview-field{text-wrap:balance;text-wrap:pretty;flex-grow:0;width:96px}.edit-site-patterns__pattern-icon{fill:var(--wp-block-synced-color);flex-shrink:0}.edit-site-patterns__section-header{border-bottom:1px solid #f0f0f0;flex-shrink:0;min-height:40px;padding:16px 48px;position:sticky;top:0;z-index:2}@media not (prefers-reduced-motion){.edit-site-patterns__section-header{transition:padding .1s ease-out}}.edit-site-patterns__section-header .edit-site-patterns__title{min-height:40px}.edit-site-patterns__section-header .edit-site-patterns__title .components-heading{flex-basis:0;flex-grow:1;white-space:nowrap}.edit-site-patterns__section-header .edit-site-patterns__sub-title{margin-bottom:8px}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.fields-field__pattern-sync-status-fully){background:rgba(var(--wp-block-synced-color--rgb),.04);border-color:currentColor;color:var(--wp-block-synced-color)}.dataviews-action-modal__duplicate-pattern [role=dialog]>[role=document]{width:350px}.dataviews-action-modal__duplicate-pattern .patterns-menu-items__convert-modal-categories{position:relative}.dataviews-action-modal__duplicate-pattern .components-form-token-field__suggestions-list:not(:empty){background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wp-admin-theme-color);border-bottom-left-radius:2px;border-bottom-right-radius:2px;box-shadow:0 0 .5px .5px var(--wp-admin-theme-color);box-sizing:border-box;left:-1px;max-height:96px;min-width:auto;position:absolute;width:calc(100% + 2px);z-index:1}@media (min-width:600px){.dataviews-action-modal__duplicate-template-part .components-modal__frame{max-width:500px}}@container (max-width: 430px){.edit-site-page-patterns-dataviews .edit-site-patterns__section-header{padding-left:24px;padding-right:24px}}.show-icon-labels .edit-site-patterns__button.has-icon{padding:0 var(--wpds-dimension-padding-xs,4px);width:auto}.show-icon-labels .edit-site-patterns__button.has-icon svg{display:none}.show-icon-labels .edit-site-patterns__button.has-icon:after{content:attr(aria-label);font-size:var(--wpds-typography-font-size-sm,12px)}.page-templates-preview-field{align-items:center;border-radius:4px;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.dataviews-view-list .page-templates-preview-field .block-editor-block-preview__container{height:120px}.dataviews-view-grid .page-templates-preview-field .block-editor-block-preview__container{height:100%}.dataviews-view-table .page-templates-preview-field{text-wrap:balance;text-wrap:pretty;max-height:160px;position:relative;width:120px}.edit-site-list__rename-modal{z-index:1000001}.edit-site-editor__editor-interface{opacity:1}@media not (prefers-reduced-motion){.edit-site-editor__editor-interface{transition:opacity .1s ease-out}}.edit-site-editor__editor-interface.is-loading{opacity:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-welcome-guide .components-button:hover svg{fill:#fff}.edit-site-layout{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;height:100%}.edit-site-layout,.edit-site-layout:not(.is-full-canvas) .editor-visual-editor{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4)}.edit-site-layout__content{display:flex;flex-grow:1;height:100%;min-height:0}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:300px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:calc(100vh - var(--wp-admin--admin-bar--height, 0px));left:0;position:fixed!important;top:var(--wp-admin--admin-bar--height,0)}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%;min-height:0}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__mobile{display:flex;flex-direction:column;position:relative;width:100%;z-index:2}.edit-site-layout__mobile .edit-site-sidebar__screen-wrapper{padding:0}.edit-site-layout__mobile .edit-site-sidebar-navigation-screen__main{padding:0 12px}.edit-site-layout__mobile-content{display:flex;flex-direction:column;flex-grow:1}.edit-site-sidebar__screen-wrapper:has(.edit-site-layout__mobile-content){background:var(--wpds-color-background-surface-neutral,#fcfcfc)}.edit-site-layout__canvas-container{flex-grow:1;overflow:visible;position:relative;z-index:2}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas .edit-site-resizable-frame__inner{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}@media (min-width:782px){.edit-site-layout__canvas{bottom:16px;top:16px;width:calc(100% - 16px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);overflow:hidden}}@media (min-width:782px) and (not (prefers-reduced-motion)){.edit-site-layout__canvas .edit-site-resizable-frame__inner-content{transition:border-radius,box-shadow .4s}}@media (min-width:782px){.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas .edit-site-resizable-frame__inner-content{border-radius:var(--wpds-border-radius-xl,12px)}.edit-site-layout__canvas .edit-site-resizable-frame__inner-content:hover{box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02)}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout__canvas .interface-interface-skeleton,.edit-site-layout__mobile .interface-interface-skeleton,.edit-site-template-pages-preview .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-template-pages-preview{height:100%}html.canvas-mode-edit-transition::view-transition-group(toggle){animation-delay:255ms}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-new(*),::view-transition-old(*){animation:none!important}}.edit-site-layout__actions{background:var(--wpds-color-background-surface-neutral-strong,#fff);bottom:auto;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:var(--wp-admin--admin-bar--height,0)}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.edit-site-layout__area{box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);flex-grow:1;margin:0;overflow:hidden}@media (min-width:782px){.edit-site-layout__area{border-radius:var(--wpds-border-radius-xl,12px);margin:16px 16px 16px 0}}.edit-site-layout__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-site-layout__snackbar .components-snackbar{margin-inline:auto}.edit-site-save-hub{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);flex-shrink:0;margin:0;padding:16px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true],.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}.edit-site-save-hub__button:not(.is-primary).is-busy,.edit-site-save-hub__button:not(.is-primary).is-busy[aria-disabled=true]:hover{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{contain:content;flex-basis:0;flex-grow:1;min-height:0;overflow-x:hidden;overflow-y:auto}@keyframes local--slide-from-right{0%{opacity:0;transform:translateX(50px)}to{opacity:1;transform:none}}@keyframes local--slide-from-left{0%{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:none}}.edit-site-sidebar__screen-wrapper{overflow-x:auto}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-track{background-color:transparent}.edit-site-sidebar__screen-wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__screen-wrapper:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__screen-wrapper:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__screen-wrapper{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.edit-site-sidebar__screen-wrapper:focus,.edit-site-sidebar__screen-wrapper:focus-within,.edit-site-sidebar__screen-wrapper:hover{scrollbar-color:#757575 transparent}.edit-site-sidebar__screen-wrapper{will-change:transform}@media (hover:none){.edit-site-sidebar__screen-wrapper{scrollbar-color:#757575 transparent}}.edit-site-sidebar__screen-wrapper{animation-duration:.14s;animation-timing-function:ease-in-out;display:flex;flex-direction:column;height:100%;max-height:100%;padding:0 12px;scrollbar-gutter:stable;will-change:transform,opacity}@media (prefers-reduced-motion:reduce){.edit-site-sidebar__screen-wrapper{animation-duration:0s}}.edit-site-sidebar__screen-wrapper.slide-from-left{animation-name:local--slide-from-left}.edit-site-sidebar__screen-wrapper.slide-from-right{animation-name:local--slide-from-right}.edit-site-sidebar-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);flex-shrink:0}.edit-site-sidebar-button:focus:not(:focus-visible){outline:none}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover:not(:disabled,[aria-disabled=true]),.edit-site-sidebar-button:not(:disabled,[aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.edit-site-sidebar-navigation-item.components-item{border:none;color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);min-height:40px;padding:8px 6px 8px 16px}.edit-site-sidebar-navigation-item.components-item.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item[aria-current=true]{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-item.components-item[aria-current=true]{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);font-weight:var(--wpds-typography-font-weight-emphasis,600)}.edit-site-sidebar-navigation-item.components-item:focus-visible{--wp-components-color-accent:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));transform:translateZ(0)}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-right:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px 8px 8px 0}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-text{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__title-icon{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);margin-bottom:8px;padding-bottom:8px;padding-top:32px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow-wrap:break-word}.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title,.edit-site-sidebar-navigation-screen__title.edit-site-sidebar-navigation-screen__title .edit-site-sidebar-navigation-screen__title{line-height:32px}.edit-site-sidebar-navigation-screen__actions{display:flex;flex-shrink:0}@media (min-width:782px){.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container{max-width:292px}}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item .global-styles-ui-variations_item-preview{outline-color:hsla(0,0%,100%,.05)}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:hsla(0,0%,100%,.15)}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview{outline-color:#fff}.edit-site-sidebar-navigation-screen__content .global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__footer{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);bottom:0;gap:0;margin:16px 0 0;padding:8px 16px;position:sticky}.edit-site-sidebar-navigation-screen__footer .edit-site-sidebar-navigation-screen-details-footer{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:var(--wpds-color-background-interactive-neutral-weak,#0000)}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:var(--wpds-color-background-interactive-neutral-weak,#0000)!important;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-screen-details-footer div.edit-site-sidebar-navigation-item.components-item[aria-current]{background:none}.sidebar-navigation__more-menu .components-button,.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px;margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.edit-site-sidebar-navigation-screen-patterns__divider{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);margin:16px 0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-right:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block-select-button[aria-current]{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu:hover{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand-strong,#fff)}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-inserter__toggle:hover{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff)}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-sidebar-dataviews,.edit-site-sidebar-navigation-screen-main,.edit-site-sidebar-navigation-screen-templates-browse{margin-left:-16px;margin-right:-16px}.edit-site-site-hub{align-items:center;display:flex;height:64px;padding-left:16px}.edit-site-site-hub__back-button:active:not(:disabled,[aria-disabled=true]),.edit-site-site-hub__back-button:hover:not(:disabled,[aria-disabled=true]){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.dataviews-action-modal__quick-edit{align-items:stretch;justify-content:flex-end}.dataviews-action-modal__quick-edit .components-modal__frame{animation-name:none;border-radius:8px;height:calc(100% - 32px);margin:16px 16px 16px 0;max-height:calc(100% - 32px);max-width:400px;position:relative}@media (prefers-reduced-motion:no-preference){.dataviews-action-modal__quick-edit .components-modal__frame{animation-duration:.2s;animation-name:quick-edit-slide-in-right;animation-timing-function:ease-out}}.dataviews-action-modal__quick-edit.is-animating-out .components-modal__frame{animation-name:none}@media (prefers-reduced-motion:no-preference){.dataviews-action-modal__quick-edit.is-animating-out .components-modal__frame{animation-duration:.2s;animation-name:quick-edit-slide-out-right;animation-timing-function:ease-out}}.dataviews-action-modal__quick-edit .components-modal__content{display:flex;flex-direction:column;overflow:hidden;padding:0}.dataviews-action-modal__quick-edit .components-modal__content>*{display:flex;flex:1;flex-direction:column;min-height:0}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-header{padding:24px 24px 0}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-content{flex:1;min-height:0;overflow-y:auto;padding-top:16px}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-content .dataforms-layouts__wrapper{flex:1;padding:0 24px 4px}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-footer{bottom:0;flex-shrink:0;padding:16px 24px 24px;position:sticky}.dataviews-action-modal__quick-edit .dataviews-action-modal__quick-edit-footer .components-button{flex:1;justify-content:center}@keyframes quick-edit-slide-in-right{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes quick-edit-slide-out-right{0%{transform:translateX(0)}to{transform:translateX(100%)}}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid transparent}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.edit-site-styles .global-styles-ui-screen-root{box-shadow:none}.edit-site-styles .global-styles-ui-screen-root>div>hr{display:none}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .components-tools-panel{border-top:none}.edit-site-styles .global-styles-ui-sidebar__navigator-provider{overflow-y:auto;padding-left:0;padding-right:0}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen{outline:none;padding:12px}.edit-site-styles .global-styles-ui-sidebar__navigator-provider .global-styles-ui-sidebar__navigator-screen .global-styles-ui-color-palette__tablist-container{margin-inline:-12px;padding-inline:12px;width:calc(100% + 24px)}.edit-site-styles .edit-site-sidebar-button{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon{padding:0 var(--wpds-dimension-padding-xs,4px);width:auto}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-styles__header-actions .components-button.has-icon:after{content:attr(aria-label);font-size:var(--wpds-typography-font-size-sm,12px)}::view-transition-image-pair(root){isolation:auto}::view-transition-new(root),::view-transition-old(root){animation:none;display:block;mix-blend-mode:normal}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:var(--wpds-color-background-surface-neutral-weak,#f4f4f4)}@media (min-width:782px){body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free){--wp-admin--admin-bar--height:0px}body.js.site-editor-php:has(.editor-editor-interface.is-distraction-free) #wpadminbar{display:none}}.edit-site{box-sizing:border-box}.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh;padding-top:var(--wp-admin--admin-bar--height,0)}@media (min-width:600px){.edit-site{bottom:0;height:calc(100vh - var(--wp-admin--admin-bar--height, 0px));left:0;padding-top:0;position:fixed;right:0;top:var(--wp-admin--admin-bar--height,0)}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}
\ No newline at end of file
diff --git a/wp-includes/css/dist/edit-widgets/style-rtl.css b/wp-includes/css/dist/edit-widgets/style-rtl.css
index 5a437fa372..0259f006a0 100644
--- a/wp-includes/css/dist/edit-widgets/style-rtl.css
+++ b/wp-includes/css/dist/edit-widgets/style-rtl.css
@@ -222,6 +222,7 @@
color: #1e1e1e;
height: 100%;
overflow: auto;
+ width: 100vw;
}
@media (min-width: 782px) {
@@ -384,7 +385,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
@media (min-width: 782px) {
.has-footer .interface-interface-skeleton__body {
- padding-bottom: 25px;
+ padding-bottom: calc(var(--wpds-dimension-size-md, 32px) + 1px);
}
}
.interface-interface-skeleton__content {
@@ -473,7 +474,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
z-index: 30;
display: flex;
background: #fff;
- height: 24px;
+ height: var(--wpds-dimension-size-md, 32px);
align-items: center;
font-size: 13px;
padding: 0 18px;
@@ -699,10 +700,11 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
background: #1e1e1e;
}
-.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:disabled),
-.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:disabled) {
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
- outline: 1px solid transparent;
+.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:active),
+.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:active) {
+ --focus-color: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
+ outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color);
+ outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
}
.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon::before,
.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon::before {
@@ -792,7 +794,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
.edit-widgets-notices__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
right: 0;
left: 0;
padding-inline: 16px;
diff --git a/wp-includes/css/dist/edit-widgets/style-rtl.min.css b/wp-includes/css/dist/edit-widgets/style-rtl.min.css
index 0f956df473..2fd64ea1ae 100644
--- a/wp-includes/css/dist/edit-widgets/style-rtl.min.css
+++ b/wp-includes/css/dist/edit-widgets/style-rtl.min.css
@@ -1 +1 @@
-:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.interface-complementary-area-header{background:#fff;gap:4px;padding-left:8px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0 0 0 auto}.interface-complementary-area{background:#fff;color:#1e1e1e;height:100%;overflow:auto}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}.interface-complementary-area p:not(.components-base-control__help,.components-form-token-field__help){margin-top:0}.interface-complementary-area h2{font-size:13px}.interface-complementary-area h2,.interface-complementary-area h3{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:var(--wp-admin--admin-bar--height,0)}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;position:absolute;right:0;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;left:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:-1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid transparent;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:var(--wp-admin--admin-bar--height,0)}}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.interface-pinned-items{gap:8px}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);margin:64px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:64px;justify-content:space-between;overflow:auto}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header .selected-block-tools-wrapper{align-items:center;display:flex;height:64px;overflow:hidden}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:17px}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group{border-left:none}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;flex-shrink:2;height:64px;justify-content:center;overflow:hidden;padding-left:8px;padding-right:16px}.edit-widgets-header__title{font-size:20px;margin:0 0 0 20px;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;padding-left:4px}@media (min-width:600px){.edit-widgets-header__actions{padding-left:8px}}.edit-widgets-header__actions{gap:8px}.edit-widgets-header-toolbar{gap:8px;margin-left:8px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:32px;min-width:32px;padding:4px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:disabled),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}@media not (prefers-reduced-motion){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 1rem 0 0;text-align:left}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.components-panel__header.edit-widgets-sidebar__panel-tabs{padding-right:0}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-left:16px}.edit-widgets-notices__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-widgets-notices__snackbar .components-snackbar{margin-inline:auto}.edit-widgets-notices .components-notice-list,.edit-widgets-notices.notices-inline-notices-wrapper{gap:0}.edit-widgets-notices .components-notice{border-inline-width:0;border-top-width:0}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}.edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close{display:none}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}.components-popover.more-menu-dropdown__content{z-index:99998}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-welcome-guide .components-button:hover svg{fill:#fff}.edit-widgets-block-editor{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:8px;padding-right:16px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.js .widgets-php .notice{display:none!important}
\ No newline at end of file
+:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.interface-complementary-area-header{background:#fff;gap:4px;padding-left:8px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0 0 0 auto}.interface-complementary-area{background:#fff;color:#1e1e1e;height:100%;overflow:auto;width:100vw}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}.interface-complementary-area p:not(.components-base-control__help,.components-form-token-field__help){margin-top:0}.interface-complementary-area h2{font-size:13px}.interface-complementary-area h2,.interface-complementary-area h3{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:var(--wp-admin--admin-bar--height,0)}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:calc(var(--wpds-dimension-size-md, 32px) + 1px)}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;position:absolute;right:0;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;left:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:-1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid transparent;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:var(--wpds-dimension-size-md,32px);padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:var(--wp-admin--admin-bar--height,0)}}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.interface-pinned-items{gap:8px}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);margin:64px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:64px;justify-content:space-between;overflow:auto}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header .selected-block-tools-wrapper{align-items:center;display:flex;height:64px;overflow:hidden}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:17px}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group{border-left:none}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;flex-shrink:2;height:64px;justify-content:center;overflow:hidden;padding-left:8px;padding-right:16px}.edit-widgets-header__title{font-size:20px;margin:0 0 0 20px;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;padding-left:4px}@media (min-width:600px){.edit-widgets-header__actions{padding-left:8px}}.edit-widgets-header__actions{gap:8px}.edit-widgets-header-toolbar{gap:8px;margin-left:8px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:32px;min-width:32px;padding:4px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:active),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}@media not (prefers-reduced-motion){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 1rem 0 0;text-align:left}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.components-panel__header.edit-widgets-sidebar__panel-tabs{padding-right:0}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-left:16px}.edit-widgets-notices__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-widgets-notices__snackbar .components-snackbar{margin-inline:auto}.edit-widgets-notices .components-notice-list,.edit-widgets-notices.notices-inline-notices-wrapper{gap:0}.edit-widgets-notices .components-notice{border-inline-width:0;border-top-width:0}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}.edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close{display:none}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}.components-popover.more-menu-dropdown__content{z-index:99998}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-welcome-guide .components-button:hover svg{fill:#fff}.edit-widgets-block-editor{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:8px;padding-right:16px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.js .widgets-php .notice{display:none!important}
\ No newline at end of file
diff --git a/wp-includes/css/dist/edit-widgets/style.css b/wp-includes/css/dist/edit-widgets/style.css
index 0b74692aaf..4e58b83125 100644
--- a/wp-includes/css/dist/edit-widgets/style.css
+++ b/wp-includes/css/dist/edit-widgets/style.css
@@ -222,6 +222,7 @@
color: #1e1e1e;
height: 100%;
overflow: auto;
+ width: 100vw;
}
@media (min-width: 782px) {
@@ -384,7 +385,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
@media (min-width: 782px) {
.has-footer .interface-interface-skeleton__body {
- padding-bottom: 25px;
+ padding-bottom: calc(var(--wpds-dimension-size-md, 32px) + 1px);
}
}
.interface-interface-skeleton__content {
@@ -473,7 +474,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
z-index: 30;
display: flex;
background: #fff;
- height: 24px;
+ height: var(--wpds-dimension-size-md, 32px);
align-items: center;
font-size: 13px;
padding: 0 18px;
@@ -699,10 +700,11 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
background: #1e1e1e;
}
-.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:disabled),
-.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:disabled) {
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
- outline: 1px solid transparent;
+.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:active),
+.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:active) {
+ --focus-color: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
+ outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color);
+ outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
}
.edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon::before,
.edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon::before {
@@ -792,7 +794,7 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
.edit-widgets-notices__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
left: 0;
right: 0;
padding-inline: 16px;
diff --git a/wp-includes/css/dist/edit-widgets/style.min.css b/wp-includes/css/dist/edit-widgets/style.min.css
index 006831a00c..32fcc23211 100644
--- a/wp-includes/css/dist/edit-widgets/style.min.css
+++ b/wp-includes/css/dist/edit-widgets/style.min.css
@@ -1 +1 @@
-:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.interface-complementary-area-header{background:#fff;gap:4px;padding-right:8px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0 auto 0 0}.interface-complementary-area{background:#fff;color:#1e1e1e;height:100%;overflow:auto}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}.interface-complementary-area p:not(.components-base-control__help,.components-form-token-field__help){margin-top:0}.interface-complementary-area h2{font-size:13px}.interface-complementary-area h2,.interface-complementary-area h3{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:var(--wp-admin--admin-bar--height,0)}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:-1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;right:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid transparent;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:var(--wp-admin--admin-bar--height,0)}}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.interface-pinned-items{gap:8px}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);margin:64px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:64px;justify-content:space-between;overflow:auto}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header .selected-block-tools-wrapper{align-items:center;display:flex;height:64px;overflow:hidden}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:17px}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group{border-right:none}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;flex-shrink:2;height:64px;justify-content:center;overflow:hidden;padding-left:16px;padding-right:8px}.edit-widgets-header__title{font-size:20px;margin:0 20px 0 0;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;padding-right:4px}@media (min-width:600px){.edit-widgets-header__actions{padding-right:8px}}.edit-widgets-header__actions{gap:8px}.edit-widgets-header-toolbar{gap:8px;margin-right:8px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:32px;min-width:32px;padding:4px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:disabled),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}@media not (prefers-reduced-motion){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 0 1rem;text-align:right}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.components-panel__header.edit-widgets-sidebar__panel-tabs{padding-left:0}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-right:16px}.edit-widgets-notices__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-widgets-notices__snackbar .components-snackbar{margin-inline:auto}.edit-widgets-notices .components-notice-list,.edit-widgets-notices.notices-inline-notices-wrapper{gap:0}.edit-widgets-notices .components-notice{border-inline-width:0;border-top-width:0}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}.edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close{display:none}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}.components-popover.more-menu-dropdown__content{z-index:99998}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-welcome-guide .components-button:hover svg{fill:#fff}.edit-widgets-block-editor{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:16px;padding-right:8px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.js .widgets-php .notice{display:none!important}
\ No newline at end of file
+:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.interface-complementary-area-header{background:#fff;gap:4px;padding-right:8px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0 auto 0 0}.interface-complementary-area{background:#fff;color:#1e1e1e;height:100%;overflow:auto;width:100vw}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}.interface-complementary-area p:not(.components-base-control__help,.components-form-token-field__help){margin-top:0}.interface-complementary-area h2{font-size:13px}.interface-complementary-area h2,.interface-complementary-area h3{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:var(--wp-admin--admin-bar--height,0)}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:calc(var(--wpds-dimension-size-md, 32px) + 1px)}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:-1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;right:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid transparent;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:var(--wpds-dimension-size-md,32px);padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:var(--wp-admin--admin-bar--height,0)}}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.interface-pinned-items{gap:8px}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);margin:64px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:64px;justify-content:space-between;overflow:auto}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header .selected-block-tools-wrapper{align-items:center;display:flex;height:64px;overflow:hidden}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-contextual-toolbar{border-bottom:0;height:100%}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar{height:100%;padding-top:17px}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group{border-right:none}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar:after{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.edit-widgets-header .selected-block-tools-wrapper .components-toolbar .components-toolbar-group.components-toolbar-group:after,.edit-widgets-header .selected-block-tools-wrapper .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.edit-widgets-header .selected-block-tools-wrapper .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{position:relative;top:-10px}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;flex-shrink:2;height:64px;justify-content:center;overflow:hidden;padding-left:16px;padding-right:8px}.edit-widgets-header__title{font-size:20px;margin:0 20px 0 0;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;padding-right:4px}@media (min-width:600px){.edit-widgets-header__actions{padding-right:8px}}.edit-widgets-header__actions{gap:8px}.edit-widgets-header-toolbar{gap:8px;margin-right:8px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:32px;min-width:32px;padding:4px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:active),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}@media not (prefers-reduced-motion){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 0 1rem;text-align:right}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.components-panel__header.edit-widgets-sidebar__panel-tabs{padding-left:0}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-right:16px}.edit-widgets-notices__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.edit-widgets-notices__snackbar .components-snackbar{margin-inline:auto}.edit-widgets-notices .components-notice-list,.edit-widgets-notices.notices-inline-notices-wrapper{gap:0}.edit-widgets-notices .components-notice{border-inline-width:0;border-top-width:0}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}.edit-widgets-layout__inserter-panel-content .block-editor-inserter__tablist-and-close{display:none}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}.components-popover.more-menu-dropdown__content{z-index:99998}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-welcome-guide .components-button:hover svg{fill:#fff}.edit-widgets-block-editor{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:16px;padding-right:8px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.js .widgets-php .notice{display:none!important}
\ No newline at end of file
diff --git a/wp-includes/css/dist/editor/style-rtl.css b/wp-includes/css/dist/editor/style-rtl.css
index 5c488d158c..a3b364576e 100644
--- a/wp-includes/css/dist/editor/style-rtl.css
+++ b/wp-includes/css/dist/editor/style-rtl.css
@@ -223,6 +223,7 @@
color: #1e1e1e;
height: 100%;
overflow: auto;
+ width: 100vw;
}
@media (min-width: 782px) {
@@ -385,7 +386,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
@media (min-width: 782px) {
.has-footer .interface-interface-skeleton__body {
- padding-bottom: 25px;
+ padding-bottom: calc(var(--wpds-dimension-size-md, 32px) + 1px);
}
}
.interface-interface-skeleton__content {
@@ -474,7 +475,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
z-index: 30;
display: flex;
background: #fff;
- height: 24px;
+ height: var(--wpds-dimension-size-md, 32px);
align-items: center;
font-size: 13px;
padding: 0 18px;
@@ -2473,7 +2474,7 @@ button.font-library__upload-area {
.dataviews-view-grid .dataviews-view-grid__media,
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media {
width: 100%;
- aspect-ratio: 1/1;
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
border-radius: var(--wpds-border-radius-md, 4px);
overflow: hidden;
@@ -3220,6 +3221,17 @@ div.dataviews-view-list {
border-radius: var(--wpds-border-radius-md, 4px);
}
+.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media {
+ height: var(--wpds-dimension-size-md, 32px);
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
+ min-width: 0;
+}
+
+.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img {
+ width: 100%;
+ height: 100%;
+}
+
.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
min-width: 15ch;
@@ -3873,11 +3885,6 @@ div.dataviews-view-list {
align-self: flex-end;
}
-.dataviews-controls__richtext [data-rich-text-placeholder]::after {
- content: attr(data-rich-text-placeholder);
- color: color-mix(in srgb, currentColor, transparent 38%);
-}
-
.dataviews-controls__datetime {
border: none;
padding: 0;
@@ -3910,6 +3917,51 @@ div.dataviews-view-list {
background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
}
+.dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
+ --wp-components-color-accent: #cc1818;
+ border-color: #cc1818;
+}
+
+.dataviews-validated-control__indicator {
+ display: flex;
+ align-items: flex-start;
+ gap: 4px;
+ margin: 8px 0 0;
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
+ font-size: 12px;
+ line-height: 16px;
+ color: #757575;
+ animation: dataviews-validated-control__indicator-jump 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
+}
+
+.dataviews-validated-control__indicator.is-invalid {
+ color: #cc1818;
+}
+
+.dataviews-validated-control__indicator.is-valid {
+ color: color-mix(in srgb, #000 30%, #4ab866);
+}
+
+.dataviews-validated-control__indicator-icon {
+ flex-shrink: 0;
+}
+
+.dataviews-validated-control__indicator-spinner {
+ margin: 2px;
+ width: 12px;
+ height: 12px;
+}
+
+@keyframes dataviews-validated-control__indicator-jump {
+ 0% {
+ transform: translateY(-4px);
+ opacity: 0;
+ }
+ 100% {
+ transform: translateY(0);
+ opacity: 1;
+ }
+}
.dataforms-layouts-panel__field-trigger {
position: relative;
color: inherit;
@@ -5315,7 +5367,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
}
.media-editor__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
right: 0;
left: 0;
padding-inline: 16px;
@@ -5397,7 +5449,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
.media-editor-modal__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
right: 0;
left: 0;
padding-inline: 16px;
@@ -5815,6 +5867,9 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
color: var(--wpds-color-foreground-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 52%, black));
}
+.editor-collab-sidebar-panel__note-content {
+ overflow-wrap: break-word;
+}
.editor-collab-sidebar-panel__note-content p:last-child {
margin-bottom: 0;
}
@@ -5873,7 +5928,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
max-height: 418px;
overflow-y: auto;
white-space: pre-wrap;
- word-wrap: break-word;
+ overflow-wrap: break-word;
}
.editor-collab-sidebar-panel__note-form [role=textbox] code {
font-family: Menlo, Consolas, monaco, monospace;
@@ -5955,7 +6010,6 @@ mark.wp-note {
background: var(--wpds-color-background-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 9%, white));
color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9));
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
- white-space: nowrap;
}
@media (forced-colors: active) {
.wp-note-mention {
@@ -5967,6 +6021,11 @@ mark.wp-note {
border-radius: 50%;
}
+.editor-rich-text-control [data-rich-text-placeholder]::after {
+ content: attr(data-rich-text-placeholder);
+ color: color-mix(in srgb, currentColor, transparent 38%);
+}
+
.editor-avatar {
position: relative;
display: inline-flex;
@@ -6596,10 +6655,11 @@ mark.wp-note {
.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon.is-pressed {
background: #1e1e1e;
}
-.editor-document-tools .editor-document-tools__left > .components-button.has-icon:focus:not(:disabled),
-.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon:focus:not(:disabled) {
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
- outline: 1px solid transparent;
+.editor-document-tools .editor-document-tools__left > .components-button.has-icon:focus:not(:active),
+.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon:focus:not(:active) {
+ --focus-color: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
+ outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color);
+ outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
}
.editor-document-tools .editor-document-tools__left > .components-button.has-icon::before,
.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon::before {
@@ -7734,6 +7794,103 @@ mark.wp-note {
min-width: 0;
}
+.editor-revisions-code-diff {
+ height: 100%;
+ overflow: auto;
+ background: #fff;
+ color: #1e1e1e;
+}
+.editor-revisions-code-diff:focus-visible {
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ outline: none;
+}
+
+.editor-revisions-code-diff__table {
+ width: 100%;
+ min-width: -moz-max-content;
+ min-width: max-content;
+ border: 0;
+ border-collapse: separate;
+ border-spacing: 0;
+ font-family: Menlo, Consolas, monaco, monospace;
+ font-size: 15px;
+ line-height: 1.6;
+}
+
+.editor-revisions-code-diff__line.is-added {
+ background: rgba(0, 163, 42, 0.12);
+}
+.editor-revisions-code-diff__line.is-added > .editor-revisions-code-diff__line-number,
+.editor-revisions-code-diff__line.is-added > .editor-revisions-code-diff__marker {
+ background: color-mix(in srgb, #00a32a 12%, #fff);
+}
+.editor-revisions-code-diff__line.is-removed {
+ background: rgba(214, 54, 56, 0.12);
+}
+.editor-revisions-code-diff__line.is-removed > .editor-revisions-code-diff__line-number,
+.editor-revisions-code-diff__line.is-removed > .editor-revisions-code-diff__marker {
+ background: color-mix(in srgb, #d63638 12%, #fff);
+}
+
+.editor-revisions-code-diff__line-number,
+.editor-revisions-code-diff__marker {
+ position: sticky;
+ z-index: 1;
+ box-sizing: border-box;
+ padding: 0 8px;
+ background: #fff;
+ color: #757575;
+ text-align: left;
+ white-space: nowrap;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
+}
+
+.editor-revisions-code-diff__line-number {
+ right: 0;
+ width: 6ch;
+ min-width: 6ch;
+ max-width: 6ch;
+ border-left: 1px solid #e0e0e0;
+ background: #f0f0f0;
+}
+.editor-revisions-code-diff__line-number.is-previous + .editor-revisions-code-diff__line-number.is-current {
+ right: 6ch;
+}
+
+.editor-revisions-code-diff__marker {
+ right: 12ch;
+ width: 3ch;
+ min-width: 3ch;
+ max-width: 3ch;
+ border-left: 1px solid #e0e0e0;
+ padding: 0;
+ font-weight: 600;
+ text-align: center;
+}
+
+.editor-revisions-code-diff__code {
+ width: 100%;
+ padding: 0 8px 0 16px;
+ direction: ltr;
+ unicode-bidi: isolate;
+ white-space: pre;
+}
+.editor-revisions-code-diff__code code {
+ margin: 0;
+ padding: 0;
+ background: none;
+ color: inherit;
+ font: inherit;
+}
+
+.editor-revisions-code-diff__empty {
+ margin: 0;
+ padding: 24px;
+ color: #757575;
+}
+
.revision-diff-markers {
position: relative;
flex-shrink: 0;
@@ -8150,7 +8307,7 @@ textarea.editor-post-text-editor::placeholder {
@media (prefers-reduced-motion: no-preference) {
.editor-resizable-editor:not(.is-resizing) {
- transition: width 0.2s ease-out, height 0.2s ease-out;
+ transition: width 0.2s ease-out;
}
}
@@ -8200,6 +8357,20 @@ textarea.editor-post-text-editor::placeholder {
background-color: var(--wp-admin-theme-color);
}
+.editor-save-error-details {
+ display: inline;
+}
+
+.editor-save-error-details summary {
+ display: inline;
+ cursor: var(--wpds-cursor-control, pointer);
+ margin-right: 0.35em;
+}
+
+.editor-save-error-details__message {
+ white-space: break-spaces;
+}
+
.editor-layout__toggle-publish-panel,
.editor-layout__toggle-sidebar-panel,
.editor-layout__toggle-entities-saved-states-panel {
diff --git a/wp-includes/css/dist/editor/style-rtl.min.css b/wp-includes/css/dist/editor/style-rtl.min.css
index 46807f6245..62100bf2a0 100644
--- a/wp-includes/css/dist/editor/style-rtl.min.css
+++ b/wp-includes/css/dist/editor/style-rtl.min.css
@@ -1 +1 @@
-@charset "UTF-8";.interface-complementary-area-header{background:#fff;gap:4px;padding-left:8px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0 0 0 auto}.interface-complementary-area{background:#fff;color:#1e1e1e;height:100%;overflow:auto}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}.interface-complementary-area p:not(.components-base-control__help,.components-form-token-field__help){margin-top:0}.interface-complementary-area h2{font-size:13px}.interface-complementary-area h2,.interface-complementary-area h3{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:var(--wp-admin--admin-bar--height,0)}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;position:absolute;right:0;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;left:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:-1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid transparent;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:var(--wp-admin--admin-bar--height,0)}}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.interface-pinned-items{gap:8px}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:90px;padding:0}.font-library-modal .font-library__subtitle{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.font-library-modal__tab-panel{height:calc(100% - 50px)}.font-library__tabpanel-layout{display:flex;flex-direction:column;height:100%}.font-library__tabpanel-layout>div{flex-grow:1}.font-library__tabpanel-layout .font-library__loading{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;padding-top:124px;position:absolute;right:0;top:0;width:100%}.font-library__footer,.font-library__tabpanel-layout .components-navigator-screen{padding:24px;width:100%}.font-library__footer{background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;flex-grow:0!important;flex-shrink:0;height:90px;position:absolute}.font-library__page-selection{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.font-library__page-selection .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.font-library__search{width:240px}.font-library__fonts-title{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library__fonts-list{list-style:none;margin-bottom:0;margin-top:0;padding:0}.font-library__fonts-list-item{margin-bottom:0}.font-library__font-card{border:1px solid #ddd;box-sizing:border-box;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library__font-card:hover{background-color:#f0f0f0}.font-library__font-card:focus{position:relative}.font-library__font-card .font-library__font-card__name{font-weight:700}.font-library__font-card .font-library__font-card__count{color:#757575}.font-library__font-card .font-library__font-variant_demo-image{display:block;height:24px;width:auto}.font-library__font-card .font-library__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library__font-card .font-library__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:1}.font-library__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library__upload-area{background-color:#f0f0f0}.font-library__local-fonts{margin:24px auto;width:80%}.font-library__local-fonts .font-library__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library__select-all{padding:16px 17px 16px 16px}.font-library__select-all .components-checkbox-control__label{padding-right:16px}.global-styles-ui-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.global-styles-ui-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.global-styles-ui-screen-revisions__revisions-list li{margin-bottom:0}.global-styles-ui-screen-revisions__revision-item{cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;position:relative}.global-styles-ui-screen-revisions__revision-item[role=option]:active,.global-styles-ui-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.global-styles-ui-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item:after,.global-styles-ui-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.global-styles-ui-screen-revisions__revision-item:before{background:#ddd;border:4px solid transparent;border-radius:50%;height:8px;right:17px;top:18px;transform:translate(50%,-50%);width:8px;z-index:1}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid transparent;outline-offset:-2px}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes>li,.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta{color:#1e1e1e}.global-styles-ui-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;right:16px;top:0;width:0}.global-styles-ui-screen-revisions__revision-item:first-child:after{top:18px}.global-styles-ui-screen-revisions__revision-item:last-child:after{height:18px}.global-styles-ui-screen-revisions__revision-item-wrapper{display:block;padding:12px 40px 4px 12px}.global-styles-ui-screen-revisions__active-badge,.global-styles-ui-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:0 40px 12px 12px}.global-styles-ui-screen-revisions__changes,.global-styles-ui-screen-revisions__meta{color:#757575;font-size:12px}.global-styles-ui-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date{font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.global-styles-ui-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:right;width:100%}.global-styles-ui-screen-revisions__meta img{border-radius:100%;height:16px;margin-left:8px;width:16px}.global-styles-ui-screen-revisions__loading{margin:24px auto!important}.global-styles-ui-screen-revisions__changes{line-height:1.4;list-style:disc;margin-right:12px;text-align:right}.global-styles-ui-screen-revisions__changes li{margin-bottom:4px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination{gap:2px;justify-content:space-between}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total{height:1px;margin:-1px;overflow:hidden;position:absolute;right:-1000px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled,.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.global-styles-ui-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.global-styles-ui-variations_item{box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{border-radius:2px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{transition:outline .1s linear}}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill{height:32px}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:rgba(0,0,0,.3)}.global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview,.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.global-styles-ui-preview__wrapper{display:block;max-width:100%;width:100%}.global-styles-ui-preview__wrapper.is-hoverable{cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:20px;min-height:100px;overflow:hidden}.global-styles-ui-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-styles-ui-font-size__item-value{color:#757575}.global-styles-ui-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.global-styles-ui-block-types-search{margin-bottom:10px;padding:0 16px}.global-styles-ui-screen-typography__font-variants-count{color:#757575}.global-styles-ui-font-families__manage-fonts{justify-content:center}.global-styles-ui-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.global-styles-ui-header{line-height:1.9!important;margin-bottom:0!important}.global-styles-ui-subtitle{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)!important;margin-bottom:0!important;text-transform:uppercase}.global-styles-ui-section-title{color:#2f2f2f;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.2;margin:0;padding:16px 16px 0}.global-styles-ui-icon-with-current-color{fill:currentColor}.global-styles-ui__color-indicator-wrapper{flex-shrink:0;height:24px}.global-styles-ui__shadows-panel__options-container,.global-styles-ui__typography-panel__options-container{height:24px}.global-styles-ui__block-preview-panel{border:1px solid #ddd;border-radius:2px;overflow:hidden;position:relative;width:100%}.global-styles-ui__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #ddd;border-radius:2px;height:144px;overflow:auto}.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block{background-color:#fff;border:1px solid #ddd;border-radius:2px;height:60px;width:60%}.global-styles-ui__shadow-editor__dropdown-content{width:280px}.global-styles-ui__shadow-editor-panel{margin-bottom:4px}.global-styles-ui__shadow-editor__dropdown{position:relative;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:right;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.global-styles-ui__shadow-editor__remove-button{left:8px;opacity:0;position:absolute;top:8px}.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button{border:none}.global-styles-ui__shadow-editor__dropdown-toggle:hover+.global-styles-ui__shadow-editor__remove-button,.global-styles-ui__shadow-editor__remove-button:focus,.global-styles-ui__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.global-styles-ui__shadow-editor__remove-button{opacity:1}}.global-styles-ui-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel{flex:1 1 auto}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input,.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea{flex:1 1 auto}.global-styles-ui-screen-css-help-link{display:inline-block;margin-top:8px}.global-styles-ui-screen-variations{border-top:1px solid #ddd;margin-top:16px}.global-styles-ui-screen-variations>*{margin:24px 16px}.global-styles-ui-sidebar__navigator-provider{height:100%}.global-styles-ui-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.global-styles-ui-color-palette__tablist-container{border-bottom:1px solid #ddd}.global-styles-ui-color-palette__tablist{margin-bottom:-1px}.global-styles-ui-sidebar__navigator-screen .single-column{grid-column:span 1}.global-styles-ui-screen-root.global-styles-ui-screen-root,.global-styles-ui-screen-style-variations.global-styles-ui-screen-style-variations{background:unset;color:inherit}.global-styles-ui-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile,.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile .global-styles-ui-screen-root__active-style-tile-preview{border-radius:2px}.global-styles-ui-screen-root__active-style-tile-preview{clip-path:border-box}.dataviews-picker-wrapper,.dataviews-wrapper{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;flex-grow:1;font-size:var(--wpds-typography-font-size-md,13px);height:100%;line-height:var(--wpds-typography-line-height-sm,20px);min-height:0;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{background-color:inherit;box-sizing:border-box;flex-shrink:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews__search{flex-grow:1}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-no-results.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-no-results.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@keyframes dataviews-pulse{0%,to{opacity:1}50%{opacity:.5}}.dataviews-loading-more{text-align:center}.dataviews-loading-more[aria-hidden=true]{visibility:hidden}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}}.dataviews-title-field{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-emphasis,600);text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field a{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer)}.dataviews-title-field--clickable:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews__view-actions--infinite-scroll{background-color:#fff;position:sticky;top:0;z-index:2}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:var(--wpds-dimension-padding-sm,8px) 0 0}.dataviews-bulk-actions-footer__item-count{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-bulk-actions-footer__container{margin-left:auto;min-height:var(--wpds-dimension-size-md,32px)}.dataviews-layout__container{background-color:inherit;display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.dataviews-filters__summary-popover .components-popover__content{border-radius:var(--wpds-border-radius-md,4px);max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px);position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:var(--wpds-color-background-interactive-brand-weak,transparent);border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:transparent;border:0;border-radius:var(--wpds-border-radius-md,4px);cursor:var(--wpds-cursor-control,pointer);display:flex;height:var(--wpds-dimension-size-sm,24px);justify-content:center;left:var(--wpds-dimension-padding-xs,4px);padding:0;position:absolute;top:50%;transform:translateY(-50%);width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);max-height:184px;overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__search-widget-listbox{overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:var(--wpds-border-radius-sm,2px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:default;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);gap:var(--wpds-dimension-gap-md,12px);line-height:20px;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px)}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-sm,12px);line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-left:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);border:4px solid var(--wpds-color-foreground-interactive-brand-strong,#fff);border-radius:50%;box-sizing:inherit;content:"";height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex-shrink:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px -5px 0 0}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-interactive-neutral-weak,transparent);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);height:var(--checkmark-size);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:var(--wpds-dimension-padding-sm,8px);position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:var(--wpds-dimension-size-md,32px);margin-left:0;margin-right:0;padding:0 var(--wpds-dimension-size-md,32px) 0 var(--wpds-dimension-padding-sm,8px);width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:var(--wpds-typography-font-size-md,13px)}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:var(--wpds-color-background-surface-neutral-strong,#fff);box-shadow:inset 0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:var(--wpds-dimension-gap-md,12px);justify-content:center;position:absolute;top:0;width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);font-size:11px;height:var(--wpds-dimension-size-2xs,16px);left:0;line-height:var(--wpds-typography-line-height-xs,16px);min-width:var(--wpds-dimension-size-2xs,16px);outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-background-surface-neutral-strong,#fff);padding:0 var(--wpds-dimension-padding-xs,4px);position:absolute;text-align:center;top:0;transform:translate(-50%,-50%)}.dataviews-search{flex-basis:210px}.dataviews-filters__user-input-widget{padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-right:var(--wpds-dimension-padding-sm,8px)}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-footer{background-color:inherit;border-top:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;flex-shrink:0;padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px);position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:1}.dataviews-footer .is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-footer .is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@container (max-width: 560px){.dataviews-footer__content{flex-direction:column!important}.dataviews-footer__content .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer__content .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer__content .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.dataviews-action-modal{z-index:1000001}.dataviews-item-actions .components-button:not(.dataviews-all-actions-button){padding:0 var(--wpds-dimension-padding-xs,4px)}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:var(--wpds-typography-line-height-md,24px)}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-view-config__sort-controls>*{flex:1}.dataviews-view-config__label{text-wrap:nowrap}.dataviews-view-config__toggle-wrapper{display:inline-flex;position:relative}.dataviews-view-config__modified-indicator{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:50%;height:var(--wpds-dimension-gap-xs,4px);left:var(--wpds-dimension-gap-xs,4px);pointer-events:none;position:absolute;top:var(--wpds-dimension-gap-xs,4px);width:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:var(--wpds-dimension-gap-xl,24px);grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid-items.has-compact-density{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid-items.has-comfortable-density{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid{container-type:inline-size;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xl,24px);margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid{transition:padding .1s ease-out}}.dataviews-view-grid.has-compact-density,.dataviews-view-grid.has-compact-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid.has-comfortable-density,.dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid .dataviews-view-grid__row{display:grid;gap:var(--wpds-dimension-gap-xl,24px)}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell{border-radius:var(--wpds-border-radius-md,4px);position:relative}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";height:100%;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__card,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-grid .dataviews-view-grid__media,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media.dataviews-view-grid__media--placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media.dataviews-view-grid__media--placeholder{aspect-ratio:3/1}.dataviews-view-grid .dataviews-view-grid__media img,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder{background:var(--wpds-color-background-surface-neutral,#fcfcfc);border-radius:var(--wpds-border-radius-md,4px);box-shadow:none;display:block;height:100%;width:100%}.dataviews-view-grid .dataviews-view-grid__fields,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:0;position:absolute;right:var(--wpds-dimension-padding-sm,8px);top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-grid__card .dataviews-view-grid__media-actions{left:var(--wpds-dimension-padding-xs,4px);opacity:0;position:absolute;top:var(--wpds-dimension-padding-xs,4px);z-index:1}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:var(--wpds-color-background-surface-neutral-strong,#fff)}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:var(--wpds-dimension-padding-xs,4px)}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-grid__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);container-type:inline-size;font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:var(--wpds-dimension-gap-xs,4px);white-space:nowrap;width:-moz-max-content;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:var(--wpds-color-background-interactive-brand-weak,transparent);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-view-list .dataviews-view-list__item{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:var(--wpds-cursor-control,pointer);inset:0;padding:0;position:absolute;scroll-margin:var(--wpds-dimension-gap-sm,8px) 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;height:48px;overflow:hidden;position:relative;width:48px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:48px;min-width:0}.dataviews-view-list .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.dataviews-view-list .dataviews-view-list__fields{display:flex;flex-wrap:wrap;font-size:12px;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper{height:var(--wpds-dimension-size-md,32px);width:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__field-wrapper{min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-sm,8px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xl,32px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper{height:64px;width:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper{min-height:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-lg,16px);row-gap:var(--wpds-dimension-gap-sm,8px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-list.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-list__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-lg,16px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table{background-color:inherit;border-collapse:collapse;border-color:inherit;color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;text-align:right}.dataviews-view-table td,.dataviews-view-table th{padding:var(--wpds-dimension-padding-md,12px)}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:left}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));left:0;position:sticky}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{background-color:inherit;border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0)}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}@media (hover:none){.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}.dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff))}.dataviews-view-table.has-bulk-actions tr.is-selected .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table thead{background-color:inherit;inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead.dataviews-view-table__thead--stuck:after{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:inherit;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding-bottom:var(--wpds-dimension-padding-sm,8px);padding-top:var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button){padding-left:var(--wpds-dimension-padding-xs,4px);padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button{gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child{padding-right:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child{padding-left:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:var(--wpds-dimension-size-md,32px);white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{font-variant-numeric:tabular-nums;justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:0}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:last-child){padding-left:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px)}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-md,12px)}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;max-width:60px;min-height:var(--wpds-dimension-size-md,32px);min-width:var(--wpds-dimension-size-md,32px);overflow:hidden;position:relative}.dataviews-column-primary__media img{height:var(--wpds-dimension-size-md,32px);-o-object-fit:cover;object-fit:cover;width:var(--wpds-dimension-size-md,32px)}.dataviews-column-primary__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand){width:1%}.dataviews-view-table.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-table.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);min-height:0;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{position:absolute;right:var(--wpds-dimension-padding-sm,8px);top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-grid-group__header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 48px}.dataviews-view-picker-table{background-color:inherit}.dataviews-view-picker-table .dataviews-view-table__checkbox-column{width:48px}.dataviews-view-picker-table tbody:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-table tbody:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input{opacity:1;pointer-events:none}.dataviews-view-picker-table .dataviews-view-table__row{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-table .dataviews-view-table__row.is-hovered,.dataviews-view-picker-table .dataviews-view-table__row.is-selected,.dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-activity{margin:0 0 auto;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-activity .dataviews-view-activity__group-header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0}.dataviews-view-activity .dataviews-view-activity__item-actions{min-width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item-content{flex-grow:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible{border-radius:var(--wpds-border-radius-sm,2px);outline:var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wp-admin-border-width-focus)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions{display:flex;flex:0 0 auto;width:-moz-max-content;width:max-content}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions .components-button{position:relative;z-index:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty{display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field:has(.dataviews-view-activity__item-field-value:empty){display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field-value{align-items:center;display:flex}.dataviews-view-activity .dataviews-view-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-activity .dataviews-view-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item:first-child .dataviews-view-activity__item-type:before{visibility:hidden}.dataviews-view-activity .dataviews-view-activity__group:last-of-type>.dataviews-view-activity__item:last-of-type .dataviews-view-activity__item-type:after,.dataviews-view-activity>.dataviews-view-activity__item:last-child .dataviews-view-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-activity .dataviews-view-activity__item-type-icon{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);flex-shrink:0;overflow:hidden}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item-type-icon img,.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:""}.dataviews-view-activity.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-activity.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-activity+.dataviews-pagination{justify-content:space-between}.dataviews-view-picker-activity{flex-grow:1;margin:0;padding:0}.dataviews-view-picker-activity:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-activity:focus-visible .dataviews-view-picker-activity__item[data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item{border-radius:var(--wpds-border-radius-sm,2px);cursor:var(--wpds-cursor-control,pointer);padding-inline:var(--wpds-dimension-padding-2xl,24px);transition:background-color .1s ease}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected,.dataviews-view-picker-activity .dataviews-view-picker-activity__item:hover{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected{outline:3px solid transparent;outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content{flex-grow:1}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field:has(.dataviews-view-picker-activity__item-field-value:empty){display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field-value{align-items:center;display:flex}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item:first-child .dataviews-view-picker-activity__item-type:before{visibility:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity-group:last-of-type>.dataviews-view-picker-activity__item:last-of-type .dataviews-view-picker-activity__item-type:after,.dataviews-view-picker-activity>.dataviews-view-picker-activity__item:last-child .dataviews-view-picker-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-picker-activity .dataviews-view-picker-activity-group__header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0;padding-inline-start:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon{background-color:transparent;flex-shrink:0;overflow:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon img,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:var(--wpds-dimension-size-md,32px)}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-controls__richtext [data-rich-text-placeholder]:after{color:color-mix(in srgb,currentColor,transparent 38%);content:attr(data-rich-text-placeholder)}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-range-inputs>*{min-width:0}.dataviews-controls__color-picker-dropdown{display:flex}.dataviews-controls__date-preset{border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-controls__date-preset:active{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}.dataforms-layouts-panel__field-trigger{align-items:flex-start;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;isolation:isolate;min-height:var(--wpds-dimension-size-sm,24px);position:relative;width:100%}.dataforms-layouts-panel__field-trigger--label-side{flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px)}.dataforms-layouts-panel__field-trigger--label-top{display:grid;grid-template-columns:1fr auto}.dataforms-layouts-panel__field-trigger--label-none{align-items:center}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon{opacity:1}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger.is-disabled{cursor:default}.dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400)}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon{fill:currentColor;opacity:1}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible,.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger-icon{border-radius:var(--wpds-border-radius-xs,1px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));flex:0 0 auto;opacity:0;padding:0}.dataforms-layouts-panel__field-trigger-icon:focus-visible{opacity:1;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-dropdown-anchor,.dataforms-layouts-panel__field-dropdown-anchor .components-dropdown{width:100%}.dataforms-layouts-panel__field-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);width:38%}.dataforms-layouts-panel__field-label .components-base-control__label{display:inline;line-height:inherit;margin-bottom:0}.dataforms-layouts-panel__field-label-error-content,.dataforms-layouts-panel__field-label.has-error{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}.dataforms-layouts-panel__field-label-error-content{align-items:center;cursor:help;display:inline-flex;flex-direction:row;gap:var(--wpds-dimension-gap-xs,4px);position:relative;z-index:1}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-md,24px);margin-inline:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1);min-height:var(--wpds-dimension-size-sm,24px);min-width:0;overflow:clip;padding-inline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));word-break:break-word}.dataforms-layouts-panel__field-control>*{min-width:0}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-label{width:100%}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-control{grid-column:1/-1}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-trigger-icon{grid-column:2;grid-row:1}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:var(--wpds-dimension-padding-lg,16px)}.dataforms-layouts-panel__dropdown-header{margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-panel__modal-footer{margin-top:var(--wpds-dimension-gap-lg,16px)}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-panel__summary-button:empty{min-width:160px}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:var(--wpds-dimension-size-md,32px);width:100%}.dataforms-layouts-regular__field .components-base-control__label,.dataforms-layouts-regular__field .components-form-token-field__label,.dataforms-layouts-regular__field .components-input-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-md,32px);width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-label .components-base-control__label{margin-bottom:0}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:var(--wpds-dimension-size-md,32px)}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-header-content{min-height:24px}.dataforms-layouts-card__field-header-content-description{display:contents}.dataforms-layouts-card__field-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-md,13px);margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-card__field-summary{align-items:center;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-details__summary-content{display:inline-flex;min-height:var(--wpds-dimension-size-sm,24px)}.dataforms-layouts-details__content{padding-top:var(--wpds-dimension-padding-md,12px)}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{grid-gap:4px 8px;align-items:center;color:#1e1e1e;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:var(--wpds-cursor-control,pointer)}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid transparent}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{text-wrap:pretty;color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}fieldset.fields__media-edit{border:0;margin:0;padding:0;width:100%}fieldset.fields__media-edit .components-base-control__label{color:#1e1e1e}fieldset.fields__media-edit .fields__media-edit-description{font-size:12px;line-height:1.5}fieldset.fields__media-edit{container-type:inline-size}fieldset.fields__media-edit .fields__media-edit-compact-group{border:1px dashed #949494;border-radius:4px;overflow:hidden}fieldset.fields__media-edit .fields__media-edit-compact-group.is-single{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button{border:0;border-radius:0}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-compact:not(:last-child){border-bottom:1px solid #f0f0f0}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-compact{min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-compact:focus-within .fields__media-edit-compact-movers,fieldset.fields__media-edit .fields__media-edit-compact:hover .fields__media-edit-compact-movers{opacity:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers{background:#fff;border-radius:2px;left:8px;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-picker-button{align-items:center;border:1px dashed #949494;border-radius:2px;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;min-height:40px;min-width:0;padding:4px 8px;position:relative}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment){border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment):hover{background-color:color-mix(in srgb,var(--wp-admin-theme-color,#3858e9) 4%,transparent);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}fieldset.fields__media-edit .fields__media-edit-picker-button:hover{color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}fieldset.fields__media-edit .fields__media-edit-picker-button[aria-disabled=true]{cursor:default;opacity:.6}fieldset.fields__media-edit .fields__media-edit-picker-button .fields__media-edit-picker-button-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-filename,fieldset.fields__media-edit .fields__media-edit-placeholder{flex:1;min-width:0;width:100%}fieldset.fields__media-edit .fields__media-edit-placeholder{text-align:center}fieldset.fields__media-edit .fields__media-edit-thumbnail{aspect-ratio:1/1;border-radius:2px;flex-shrink:0;width:24px}fieldset.fields__media-edit .fields__media-edit-expanded{display:grid;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);border-radius:2px;display:flex;justify-content:center;overflow:hidden;padding:4px;position:relative;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview .fields__media-edit-expanded-preview-stack{height:100%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-actions{background:#fff;border-radius:2px;left:4px;position:absolute;top:4px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item{border-radius:4px;min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:focus-within .fields__media-edit-expanded-overlay,fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:hover .fields__media-edit-expanded-overlay{opacity:1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:not(.has-preview-image) .fields__media-edit-expanded-preview-stack{padding:8px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-thumbnail{height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-filename{flex:none;text-align:center}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button-spinner svg{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded.is-single{grid-template-columns:1fr}fieldset.fields__media-edit .fields__media-edit-expanded.is-single .fields__media-edit-expanded-preview{aspect-ratio:2/1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button{border-radius:4px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media-edit-picker-button{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}@container (max-width: 500px){fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-picker-button{padding:0}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-placeholder{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);display:flex;justify-content:center}.fields-controls__author-avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:right;overflow:hidden;width:24px}.fields-controls__author-avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.fields-controls__author-avatar img{transition:opacity .1s linear}}.fields-controls__author-avatar.is-loaded img{opacity:1}.fields-controls__author-icon{display:flex;flex-shrink:0;height:24px;width:24px}.fields-controls__author-icon svg{fill:currentColor;margin-right:-4px}.fields-controls__author-name{overflow:hidden;text-overflow:ellipsis}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-right:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.fields-controls__featured-image-image,.fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.fields-controls__parent,.fields-controls__password{border:0;margin:0;padding:0}.fields-controls__status-icon{height:24px;width:24px}.fields-controls__status-icon svg{fill:currentColor;margin-right:-4px}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}.media-editor-preview{align-items:center;box-sizing:border-box;display:flex;justify-content:center;min-height:100%;padding:32px;position:relative}.media-editor-preview__spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.media-editor-preview--loading{height:100%;width:100%}.media-editor-preview--image img{height:auto;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;opacity:0;width:auto}@media not (prefers-reduced-motion){.media-editor-preview--image img.loaded{animation:__wp-base-styles-fade-in .08s linear 0s;animation-fill-mode:forwards}}.media-editor-preview--video video{height:auto;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;width:auto}.media-editor-preview--audio audio{max-width:100%}.media-editor-preview--file{text-align:center}.media-editor-preview__file-info{background:#f0f0f0;border-radius:2px;padding:24px}.media-editor-preview__file-name{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:8px}.media-editor-preview__mime-type{color:#757575;font-size:.9em;margin-bottom:16px}.media-editor-preview__download-link{display:inline-block;margin-top:8px}.media-editor-preview--empty,.media-editor-preview--error{color:#757575;text-align:center}.media-editor-preview__url{color:#949494;font-size:.9em;margin-top:8px;word-break:break-all}.wp-media-editor-image-editor{cursor:grab;height:100%;overflow:hidden;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.wp-media-editor-image-editor__canvas{inset:24px;min-height:100px;min-width:100px;position:absolute}.wp-media-editor-image-editor__canvas:focus{outline:none}.wp-media-editor-image-editor__stage{inset:0;position:absolute}.wp-media-editor-image-editor--dragging{cursor:grabbing}.wp-media-editor-image-editor__image{position:absolute;right:0;top:0;transform-origin:center center;will-change:transform}.wp-media-editor-image-editor__stencil{pointer-events:none;position:absolute}.wp-media-editor-image-editor__dimming{box-shadow:0 0 0 9999px hsla(0,0%,88%,.6);pointer-events:none;position:absolute;transition:box-shadow .15s ease}.wp-media-editor-image-editor--dragging .wp-media-editor-image-editor__dimming{box-shadow:0 0 0 9999px hsla(0,0%,88%,.4)}.wp-media-editor-image-editor__grid{overflow:hidden;pointer-events:none;position:absolute;transition:opacity .15s ease}.wp-media-editor-image-editor__canvas--grid-interactive .wp-media-editor-image-editor__grid{opacity:0;transition-delay:.1s}.wp-media-editor-image-editor__canvas--show-grid .wp-media-editor-image-editor__grid{opacity:1;transition-delay:0s}.wp-media-editor-image-editor__canvas--settling .wp-media-editor-image-editor__grid{opacity:0;transition:none}.wp-media-editor-image-editor__grid-line{background:hsla(0,0%,100%,.4);position:absolute}.wp-media-editor-image-editor__grid-line--horizontal{height:1px;right:0;width:100%}.wp-media-editor-image-editor__grid-line--vertical{height:100%;top:0;width:1px}.wp-media-editor-image-editor__dimensions-tooltip{background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.08);color:#1e1e1e;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.4;padding:2px 6px;pointer-events:none;position:absolute;white-space:nowrap;z-index:2}.wp-media-editor-image-editor__stencil-rect{border:1px solid #1e1e1e;box-sizing:border-box;pointer-events:none;position:absolute;transition:border-color .15s ease,box-shadow .15s ease}.wp-media-editor-image-editor__canvas--focus-visible:focus .wp-media-editor-image-editor__stencil-rect{border-color:var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba));box-shadow:0 0 0 1px var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba))}.wp-media-editor-image-editor__handle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:1px solid var(--wp-admin-theme-color,#007cba);border-radius:50%;box-sizing:border-box;cursor:default;font:inherit;height:12px;margin:0;padding:0;pointer-events:auto;position:absolute;transition:background-color .15s ease,box-shadow .15s ease;width:12px}.wp-media-editor-image-editor__handle:focus{outline:none}.wp-media-editor-image-editor__canvas--focus-visible .wp-media-editor-image-editor__handle:focus{background:var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba));border-color:transparent;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba))}.wp-media-editor-image-editor__handle:before{content:"";height:44px;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:44px}.wp-media-editor-image-editor__handle--n{cursor:ns-resize;margin-right:-6px;right:50%;top:-6px}.wp-media-editor-image-editor__handle--s{bottom:-6px;cursor:ns-resize;margin-right:-6px;right:50%}.wp-media-editor-image-editor__handle--e{cursor:ew-resize;left:-6px;margin-top:-6px;top:50%}.wp-media-editor-image-editor__handle--w{cursor:ew-resize;margin-top:-6px;right:-6px;top:50%}.wp-media-editor-image-editor__handle--nw{cursor:nesw-resize;right:-6px;top:-6px}.wp-media-editor-image-editor__handle--ne{cursor:nwse-resize;left:-6px;top:-6px}.wp-media-editor-image-editor__handle--sw{bottom:-6px;cursor:nwse-resize;right:-6px}.wp-media-editor-image-editor__handle--se{bottom:-6px;cursor:nesw-resize;left:-6px}.media-editor{display:flex;flex:1;flex-direction:column;height:100%;min-height:0}.media-editor .media-editor__loading{align-items:center;display:flex;height:100%;justify-content:center}.media-editor .interface-interface-skeleton{bottom:auto;flex:1;flex-direction:column;height:100%;left:auto;max-height:none;position:relative;right:auto;top:auto}.media-editor-modal .media-editor .interface-interface-skeleton.interface-interface-skeleton{top:auto}.media-editor .interface-interface-skeleton__editor{flex:1;min-width:0}.media-editor .media-editor__content{border-radius:8px;display:flex;flex:1;flex-direction:column;margin:0 24px;min-height:0;overflow:hidden}.media-editor .media-editor__canvas-toolbar{background:#e0e0e0;display:flex;flex-shrink:0;justify-content:center;padding:8px 16px}.media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation{flex:0 1 360px;min-width:0}.media-editor .media-editor__canvas-area{align-items:center;background:#e0e0e0;display:flex;flex:1;justify-content:center;min-height:0;overflow:auto}.media-editor .media-editor__canvas-area .media-editor-preview{height:100%}.media-editor .media-editor__canvas-area img,.media-editor .media-editor__canvas-area video{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.media-editor .media-editor__sidebar{box-sizing:border-box}.media-editor .media-editor__sidebar *,.media-editor .media-editor__sidebar :after,.media-editor .media-editor__sidebar :before{box-sizing:inherit}@media (min-width:600px){.media-editor .media-editor__sidebar{padding-right:1px}}.media-editor .media-editor__sidebar-panel{padding-bottom:24px}.media-editor .interface-interface-skeleton__sidebar{border-top:0;box-shadow:none;outline:1px solid transparent}.media-editor .media-editor__panel{padding:16px}@media (min-width:600px){.media-editor .media-editor__panel{padding:24px 0 0 24px}}.media-editor .components-panel__header.media-editor__sidebar-header{margin-left:0;padding-left:8px;padding-right:0}@media (min-width:600px){.media-editor .components-panel__header.media-editor__sidebar-header{margin-left:24px}}.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon{padding:0}@media (min-width:600px){.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon{display:flex}}@media (min-width:600px) and (max-width:781px){.media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill){position:relative!important}.media-editor .interface-complementary-area,.media-editor .interface-complementary-area__fill{width:280px!important}}@media (max-width:599px){.media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill){width:100%}.media-editor .interface-complementary-area,.media-editor .interface-complementary-area__fill{width:100%!important}}.media-editor__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-editor__snackbar .components-snackbar{margin-inline:auto}.media-editor-form .dataforms-layouts-panel__field-control{text-wrap:pretty}.media-editor-modal.components-modal__frame .components-modal__content{display:flex;flex-direction:column;margin-bottom:0;min-height:0;padding:0}.media-editor-modal.components-modal__frame .components-modal__children-container{display:flex;flex:1;flex-direction:column;min-height:0}.media-editor-modal.components-modal__frame .media-editor-modal__footer{background:#fff;display:flex;flex-shrink:0;gap:16px;padding:16px 32px 24px;z-index:1000001}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide{align-items:center;flex-direction:row}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor__footer-actions{margin-right:auto}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow{flex-direction:column}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow>.media-editor-image-controls{align-self:center}.media-editor-modal__footer-row{align-items:center;display:flex;flex-wrap:wrap;gap:16px}.media-editor-modal__footer-row .media-editor-image-controls,.media-editor-modal__footer-row .media-editor__footer-actions{margin-right:auto}.media-editor__history-actions .components-button.has-icon:not([aria-disabled=true]){color:var(--wp-admin-theme-color)}.media-editor-modal,.media-editor-modal__snackbar{display:flex;flex-direction:column}.media-editor-modal__snackbar{bottom:24px;box-sizing:border-box;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-editor-modal__snackbar .components-snackbar{margin-inline:auto}.media-editor-modal__snackbar{z-index:1000001}.media-editor-canvas{height:100%;position:relative;width:100%}.media-editor-canvas__cropper{height:100%;opacity:0;pointer-events:none;width:100%}.media-editor-canvas__cropper.is-loaded{opacity:1;pointer-events:auto}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.media-editor-canvas__cropper.is-loaded{animation:__wp-base-styles-fade-in .2s linear 0s;animation-fill-mode:forwards}}.media-editor-canvas__spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.media-editor-canvas__error{align-items:center;color:#757575;display:flex;height:100%;justify-content:center;text-align:center;width:100%}.media-editor-image-controls{align-items:center;display:flex;flex-wrap:nowrap;gap:8px}.media-editor-image-controls.is-stacked{align-items:flex-start;flex-direction:column;gap:24px}.media-editor-image-controls__transforms{display:flex;gap:48px}.media-editor-image-controls__group{display:flex;flex-direction:column;gap:4px}.media-editor-image-controls__label{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;text-transform:uppercase}.media-editor-image-controls__buttons{display:flex;gap:8px;padding-inline:2px 0}.media-editor-keyboard-shortcuts-modal{min-width:280px}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__note{color:#757575;font-size:13px;margin:0 0 16px}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-list{list-style:none;margin:0;padding:0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut:last-child{border-bottom:1px solid #ddd}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-description{flex:1;margin:0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-term{background:none;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 1rem 0 0;padding:0;text-align:left}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.rotation-ruler{box-sizing:border-box;color:#1e1e1e;container-type:inline-size;cursor:ew-resize;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:32px;min-width:180px;padding:0 8px;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rotation-ruler[data-disabled]{cursor:default;opacity:.5;pointer-events:none}.rotation-ruler:has(.rotation-ruler__input:focus-visible){border-radius:4px;outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:2px}.rotation-ruler__input{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.rotation-ruler__pointer{background:var(--wp-admin-theme-color,#3858e9);border-radius:1px;bottom:0;height:18px;pointer-events:none;position:absolute;right:50%;transform:translateX(50%);width:2px}.rotation-ruler__strip{inset:0;mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent);overflow:hidden;position:absolute}.rotation-ruler__ticks{display:block;left:50%;overflow:visible;position:absolute;top:0}.rotation-ruler__tick{stroke:currentColor;stroke-width:1}.rotation-ruler__tick--minor{opacity:.35}.rotation-ruler__tick--mid{opacity:.6}.rotation-ruler__tick--major{opacity:1}.rotation-ruler__label{fill:currentColor;font-size:10px;font-weight:400;opacity:.45}.rotation-ruler__active-label{color:#1e1e1e;font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:14px;line-height:14px;pointer-events:none;position:absolute;right:50%;top:0;transform:translateX(50%)}.rotation-ruler__active-label:before{background:linear-gradient(270deg,transparent 0,#e0e0e0 12px,#e0e0e0 calc(100% - 12px),transparent);content:"";height:100%;position:absolute;right:50%;top:0;transform:translateX(50%);width:60px}.rotation-ruler__active-label-number{display:inline-block;position:relative}.rotation-ruler__active-label-sign{left:100%;position:absolute;top:0}.rotation-ruler__active-label-unit{position:absolute;right:100%;top:0}@container (max-width: 220px){.rotation-ruler__tick--minor{opacity:0}}@media (prefers-reduced-motion:reduce){.rotation-ruler__ticks{transition:none}}.editor-autocompleters__link{gap:8px;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"\f110";font:normal 20px/1 dashicons;margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-left:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{flex-grow:0;flex-shrink:0;margin-right:8px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:not(.is-primary) .editor-autocompleters__user-slug{color:#757575}.interface-interface-skeleton__sidebar:has(.editor-collab-sidebar){box-shadow:none}.interface-interface-skeleton__sidebar:has(.editor-collab-sidebar) .interface-complementary-area-header{display:none}.editor-collab-sidebar{height:100%;overflow:hidden}.editor-collab-sidebar-panel{height:100%;overflow:hidden;padding:16px 16px 24px;position:relative}.editor-collab-sidebar-panel__add-note,.editor-collab-sidebar-panel__thread{background-color:#f0f0f0;border:1px solid #ddd;border-radius:8px;overflow:hidden;padding:16px;position:relative;width:auto}.editor-collab-sidebar-panel__add-note.is-selected,.editor-collab-sidebar-panel__thread.is-selected{background-color:#fff;box-shadow:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);z-index:1}.editor-collab-sidebar-panel__add-note:focus,.editor-collab-sidebar-panel__thread:focus{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1)}.editor-collab-sidebar-panel__add-note.is-floating,.editor-collab-sidebar-panel__thread.is-floating{left:16px;margin-top:16px;max-height:calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 128px);overflow-y:auto;position:absolute;right:16px;transform:translateY(var(--canvas-scroll,0));will-change:transform}.editor-collab-sidebar-panel__user-name{text-transform:capitalize}.editor-collab-sidebar-panel__user-name,.editor-collab-sidebar-panel__user-time{color:#757575;font-size:12px;font-weight:400;line-height:16px;text-align:right}.editor-collab-sidebar-panel__show-more-button{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));cursor:var(--wpds-cursor-control,pointer);width:-moz-fit-content;width:fit-content}.editor-collab-sidebar-panel__show-more-button:active,.editor-collab-sidebar-panel__show-more-button:focus,.editor-collab-sidebar-panel__show-more-button:hover{color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.editor-collab-sidebar-panel__note-content p:last-child{margin-bottom:0}.editor-collab-sidebar-panel__note-content.is-collapsed{-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.editor-collab-sidebar-panel__user-avatar{background:#fff;border-radius:50%;border-style:solid;border-width:var(--wp-admin-border-width-focus);flex-shrink:0;padding:var(--wp-admin-border-width-focus)}.editor-collab-sidebar-panel__note-actions{margin-right:auto}.editor-collab-sidebar-panel__note-actions button.has-icon:not(.has-text){flex-shrink:0;height:24px;min-width:24px;padding:0;width:24px}.editor-collab-sidebar-panel__more-reply-separator:after,.editor-collab-sidebar-panel__more-reply-separator:before,.editor-collab-sidebar-panel__status-separator:after,.editor-collab-sidebar-panel__status-separator:before{background-color:#ddd;content:"";flex:1;height:1px}.editor-collab-sidebar-panel__deleted-block-notice,.editor-collab-sidebar-panel__more-reply-button{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-collab-sidebar-panel__deleted-block-notice{color:#757575}.editor-collab-sidebar-panel__resolution-text{font-style:italic}.editor-collab-sidebar-panel__note-form [role=textbox]{word-wrap:break-word;line-height:20px;max-height:418px;overflow-y:auto;white-space:pre-wrap}.editor-collab-sidebar-panel__note-form [role=textbox] code{background:#f0f0f0;border-radius:2px;font-family:Menlo,Consolas,monaco,monospace;font-size:.9em;padding:0 2px}.editor-collab-sidebar-panel__note-form [role=textbox] a{color:var(--wp-admin-theme-color);text-decoration:underline}.editor-collab-sidebar-panel__skip-to-block,.editor-collab-sidebar-panel__skip-to-note{background:#fff!important;clip-path:inset(50%);left:-9999px;overflow:hidden;position:absolute;top:-9999px;z-index:-1}.editor-collab-sidebar-panel__skip-to-block:focus,.editor-collab-sidebar-panel__skip-to-note:focus{clip-path:none;left:8px;overflow:visible;z-index:1}.editor-collab-sidebar-panel__skip-to-note:focus{top:8px}.editor-collab-sidebar-panel__skip-to-block:focus{bottom:8px;top:auto}.editor-note-indicator__avatar{background:#fff;border-radius:50%;border-style:solid;border-width:var(--wp-admin-border-width-focus);box-sizing:border-box;margin-right:-12px;padding:var(--wp-admin-border-width-focus);width:24px}.editor-note-indicator__avatar:first-child{margin-right:0}.editor-note-indicator__overflow{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.show-icon-labels .editor-note-indicator{width:auto}.show-icon-labels .editor-note-indicator div{display:none}.show-icon-labels .editor-note-indicator:after{content:attr(aria-label);font-size:12px}mark.wp-note{border-radius:1px;transition:background-color .1s ease-in-out}.wp-note-mention{background:var(--wpds-color-background-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 9%,#fff));border-radius:var(--wpds-border-radius-sm,2px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));display:inline;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:0 var(--wpds-dimension-padding-xs,4px);white-space:nowrap}@media (forced-colors:active){.wp-note-mention{border:1px solid}}.editor-collab-sidebar-panel__mention-suggestion .editor-autocompleters__user-avatar{border-radius:50%}.editor-avatar{align-items:center;box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);display:inline-flex}.editor-avatar,.editor-avatar__image{border-radius:9999px;flex-shrink:0;position:relative}.editor-avatar__image{background-color:var(--wp-admin-theme-color,#3858e9);border:0;box-sizing:border-box;color:#fff;font-size:0;height:32px;overflow:hidden;overflow:clip;width:32px}.is-small>.editor-avatar__image{height:24px;width:24px}.has-avatar-border-color>.editor-avatar__image{background-clip:padding-box;border:var(--wp-admin-border-width-focus) solid var(--editor-avatar-outline-color)}.has-avatar-border-color>.editor-avatar__image:after{border-radius:inherit;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,2px) #fff;content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.editor-avatar__img{border-radius:inherit;height:100%;inset:0;-o-object-fit:cover;object-fit:cover;opacity:0;position:absolute;width:100%}.has-src>.editor-avatar__image>.editor-avatar__img{opacity:1}.editor-avatar:not(.has-src)>.editor-avatar__image{align-items:center;background-clip:border-box;border:0;display:flex;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);justify-content:center}.editor-avatar:not(.has-src)>.editor-avatar__image:after{content:none}.editor-avatar:not(.has-src).has-avatar-border-color>.editor-avatar__image{background-color:var(--editor-avatar-outline-color)}.editor-avatar__name{color:var(--editor-avatar-name-color,#fff);font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;min-width:0;opacity:0;overflow:hidden;padding-bottom:2px;transition:opacity .15s cubic-bezier(.15,0,.15,1);white-space:nowrap}.editor-avatar.is-badge{background-color:var(--wp-admin-theme-color,#3858e9);-moz-column-gap:0;column-gap:0;display:inline-grid;grid-template-columns:min-content 0fr;padding-inline-end:0;transition:grid-template-columns .3s cubic-bezier(.15,0,.15,1),column-gap .3s cubic-bezier(.15,0,.15,1),padding-inline-end .3s cubic-bezier(.15,0,.15,1);transition:grid-template-columns .3s cubic-bezier(.15,0,.15,1),column-gap .3s cubic-bezier(.15,0,.15,1),padding-inline-end .3s cubic-bezier(.15,0,.15,1),-moz-column-gap .3s cubic-bezier(.15,0,.15,1)}.editor-avatar.is-badge:hover{-moz-column-gap:4px;column-gap:4px;grid-template-columns:min-content 1fr;padding-inline-end:8px;transition-timing-function:cubic-bezier(.85,0,.85,1)}.editor-avatar.is-badge:hover .editor-avatar__name{opacity:1;transition-timing-function:cubic-bezier(.85,0,.85,1)}.editor-avatar.is-badge.has-avatar-border-color{background-color:var(--editor-avatar-outline-color)}.editor-avatar.is-dimmed>.editor-avatar__image{background-color:#757575;opacity:.5}.editor-avatar.is-dimmed.has-avatar-border-color>.editor-avatar__image{border-color:#757575}.editor-avatar.is-dimmed .editor-avatar__img{filter:grayscale(1)}.editor-avatar__status-indicator{fill:#1e1e1e;align-items:center;color:#1e1e1e;display:flex;height:32px;justify-content:center;position:absolute;right:0;top:0;width:32px;z-index:1}.is-small>.editor-avatar__status-indicator{height:24px;width:24px}.editor-avatar__status-indicator svg{height:75%;width:75%}@media (prefers-reduced-motion:reduce){.editor-avatar.is-badge,.editor-avatar__name{transition:none}}.editor-avatar-group{align-items:center;display:flex}.editor-avatar-group>.editor-avatar+.editor-avatar{margin-inline-start:-8px}.editor-avatar-group>.editor-avatar{position:relative}.editor-avatar-group>.editor-avatar:first-child{z-index:10}.editor-avatar-group>.editor-avatar:nth-child(2){z-index:9}.editor-avatar-group>.editor-avatar:nth-child(3){z-index:8}.editor-avatar-group>.editor-avatar:nth-child(4){z-index:7}.editor-avatar-group>.editor-avatar:nth-child(5){z-index:6}.editor-avatar-group>.editor-avatar:nth-child(6){z-index:5}.editor-avatar-group>.editor-avatar:nth-child(7){z-index:4}.editor-avatar-group>.editor-avatar:nth-child(8){z-index:3}.editor-avatar-group>.editor-avatar:nth-child(9){z-index:2}.editor-avatar-group>.editor-avatar:nth-child(10){z-index:1}.editor-avatar-group__overflow{color:#1e1e1e;font-size:12px;line-height:20px;margin-inline-end:4px;margin-inline-start:4px;white-space:nowrap}.editor-collaborators-presence__list.components-popover .components-popover__content{background:#fff;border:1px solid #ddd;border-radius:8px;border-width:1px 1px 0 0;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-content{min-width:280px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header{align-items:center;display:flex;justify-content:space-between;padding:8px 16px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title{display:flex;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);gap:4px;line-height:20px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title span{color:#757575}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-action{padding:0}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-action button{color:#1e1e1e;height:32px;padding:0;width:32px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-items{display:flex;flex-direction:column;padding-bottom:16px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item{all:unset;align-items:center;box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;padding:12px 16px;transition:background-color .2s ease;width:100%}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:hover:not(:disabled){background-color:rgba(var(--wp-admin-theme-color--rgb),.04)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:active:not(:disabled){background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:focus-visible{outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:-2px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:disabled{cursor:default}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-info{display:flex;flex:1;flex-direction:column;min-width:0}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-name{color:#1e1e1e;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-collaborators-presence{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;flex-shrink:0;height:32px}.editor-collaborators-presence:hover{background-color:#e0e0e0}.editor-collaborators-presence:has(.is-pressed){background-color:#e0e0e0}.editor-header__center .editor-collaborators-presence{margin-left:8px}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button{align-items:center;background:transparent;border-radius:4px;box-sizing:border-box;color:#2f2f2f;cursor:var(--wpds-cursor-control,pointer);display:flex;height:100%;padding:4px;position:relative}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed,.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed:hover,.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:hover{background:transparent;color:#2f2f2f}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:focus:not(:active){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,2px) var(--wp-admin-theme-color,#007cba);outline:none}.editor-collapsible-block-toolbar{align-items:center;display:flex;height:64px;overflow:hidden}.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{background:transparent;border-bottom:0;height:100%}.editor-collapsible-block-toolbar .block-editor-block-toolbar{height:100%;padding-top:17px}.editor-collapsible-block-toolbar .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.editor-collapsible-block-toolbar:after{background-color:#ddd;content:"";height:24px;margin-left:7px;width:1px}.editor-collapsible-block-toolbar .components-toolbar,.editor-collapsible-block-toolbar .components-toolbar-group{border-left:none;position:relative}.editor-collapsible-block-toolbar .components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar:after{background-color:#ddd;content:"";height:24px;left:-1px;position:absolute;top:4px;width:1px}.editor-collapsible-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.editor-collapsible-block-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{height:40px;position:relative;top:-4px}}.editor-collapsible-block-toolbar.is-collapsed{display:none}.editor-block-visibility__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:32px 0 0 0 #fff,-32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-5px;z-index:1}.editor-block-visibility__disabled-blocks-count~.block-editor-block-manager__content .block-editor-block-manager__category-title{top:31px}.editor-block-visibility__disabled-blocks-count .is-link{margin-right:12px}.editor-blog-title-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-document-bar{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;height:32px;justify-content:space-between;min-width:0;width:min(100%,450px)}.editor-document-bar:hover{background-color:#e0e0e0}.editor-document-bar .components-button{border-radius:4px}@media not (prefers-reduced-motion){.editor-document-bar .components-button{transition:background-color .1s ease-out}}.editor-document-bar .components-button:hover{background:#e0e0e0}@media screen and (min-width:782px) and (max-width:960px){.editor-document-bar.has-back-button .editor-document-bar__post-type-label{display:none}}.editor-document-bar__command{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.editor-document-bar__title{color:#1e1e1e;margin:0 auto;max-width:70%;overflow:hidden}.editor-document-bar__title h1{align-items:center;display:flex;font-weight:400;justify-content:center;overflow:hidden;white-space:nowrap}.editor-document-bar__post-title{color:currentColor;flex:1;overflow:hidden;text-overflow:ellipsis}.editor-document-bar__post-type-label{color:#2f2f2f;flex:0;padding-right:4px}@media screen and (max-width:600px){.editor-document-bar__post-type-label{display:none}}.editor-document-bar__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;position:absolute;z-index:1}.editor-document-bar__back.components-button.has-icon.has-text:hover{background-color:transparent;color:#1e1e1e}.editor-document-bar__icon-layout.editor-document-bar__icon-layout{display:none;margin-right:12px;pointer-events:none;position:absolute}.editor-document-bar__icon-layout.editor-document-bar__icon-layout svg{fill:#949494}@media (min-width:600px){.editor-document-bar__icon-layout.editor-document-bar__icon-layout{display:flex}}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:var(--wpds-cursor-control,pointer);display:flex;margin:0 -1px 0 0;padding:2px 1px 2px 5px;text-align:right}.document-outline__button:disabled,.document-outline__button[aria-disabled=true]{color:#757575;cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-left:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-document-outline.has-no-headings>svg{margin-top:28px}.editor-document-outline.has-no-headings>p{padding-left:32px;padding-right:32px}.editor-document-outline.has-no-headings{color:#757575;text-align:center}.editor-document-tools{align-items:center;display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:none}@media (min-width:782px){.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:inline-flex}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle{display:inline-flex}@media not (prefers-reduced-motion){.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.editor-document-tools .block-editor-list-view{display:none}@media (min-width:600px){.editor-document-tools .block-editor-list-view{display:flex}}.editor-document-tools .editor-document-tools__left>.components-button.has-icon,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon{height:32px;min-width:32px;padding:4px}.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:focus:not(:disabled),.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:before,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:before{display:none}.editor-document-tools__left{align-items:center;display:inline-flex;gap:8px}.editor-document-tools__left:not(:last-child){margin-inline-end:8px}.show-icon-labels .editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{padding:0 8px;width:auto}.show-icon-labels .editor-document-tools__left>*+*{margin-right:8px}.editor-editor-interface .entities-saved-states__panel-header{height:65px}.editor-editor-interface .interface-interface-skeleton__content{isolation:isolate}.editor-notices .components-notice-list,.editor-notices.notices-inline-notices-wrapper{gap:0}.editor-notices .components-notice{border-inline-width:0;border-top-width:0}.editor-visual-editor{flex:1 0 auto}.editor-notices__dismissible,.editor-notices__pinned{left:0;position:relative;right:0;top:0}.editor-error-boundary{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin:64px auto auto;max-width:780px;padding:1em}.editor-global-styles-header__description{padding:0 16px}.editor-global-styles-header{margin-bottom:0!important}.editor-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.editor-global-styles-sidebar__panel{flex:1}.editor-global-styles-sidebar .editor-global-styles-sidebar__header-title{margin:0}.editor-global-styles-sidebar .editor-global-styles-sidebar__header-actions{flex:1}.editor-global-styles-sidebar .block-editor-panel-color-gradient-settings{border:0}.editor-global-styles-sidebar .single-column{grid-column:span 1}.editor-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.editor-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.editor-global-styles-sidebar__blocks-group-help{padding:0 16px}.global-styles-ui-color-palette-panel,.global-styles-ui-gradient-palette-panel{padding:16px}.editor-global-styles-sidebar hr{margin:0}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon{width:auto}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.editor-welcome-guide{width:312px}.editor-welcome-guide.guide-styles .editor-welcome-guide__image{background:#00a0d2}.editor-welcome-guide__image{margin:0 0 16px}.editor-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.editor-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.editor-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.editor-welcome-guide__text img{vertical-align:bottom}.editor-welcome-guide .components-button:hover svg{fill:#fff}.editor-header{box-sizing:border-box}.editor-header *,.editor-header :after,.editor-header :before{box-sizing:inherit}.editor-header{background:#fff;display:grid;grid-auto-flow:row;grid-template:auto/32px minmax(0,max-content) minmax(min-content,1fr) 64px;height:64px}.editor-header:has(>.editor-header__center){grid-template:auto/32px min-content 1fr min-content 64px}@media (min-width:782px){.editor-header:has(>.editor-header__center){grid-template:auto/32px minmax(min-content,2fr) 2.5fr minmax(min-content,2fr) 64px}}@media (min-width:480px){.editor-header{gap:16px}}.editor-header{align-items:center;justify-content:space-between;max-width:100vw}@media (min-width:280px){.editor-header{flex-wrap:nowrap}}.editor-header__back-button{padding-right:8px}.editor-header__toolbar{grid-column:1/3}.editor-header__toolbar>:first-child{margin-inline:16px 0}.editor-header__back-button+.editor-header__toolbar{grid-column:2/3}@media (min-width:480px){.editor-header__back-button+.editor-header__toolbar>:first-child{margin-inline:0}}.editor-header__toolbar{align-items:center;clip-path:inset(-2px);display:flex;min-width:0}@media (min-width:480px){.editor-header__toolbar{clip-path:none}}.editor-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.editor-header__toolbar .table-of-contents{display:block}}.editor-header__toolbar .editor-collapsible-block-toolbar,.editor-header__toolbar .editor-collapsible-block-toolbar.is-collapsed~.editor-collapsible-block-toolbar__toggle{margin-inline:8px 0}.editor-header__center{align-items:center;display:flex;grid-column:3/4;justify-content:center;min-width:0}@media (max-width:479px){.editor-header__center>:first-child{margin-inline-start:8px}.editor-header__center>:last-child{margin-inline-end:8px}}.editor-header__settings{grid-column:3/-1}.editor-header:has(>.editor-header__center) .editor-header__settings{grid-column:4/-1}.editor-header__settings{align-items:center;display:inline-flex;flex-wrap:nowrap;justify-self:end;padding-left:4px}@media (min-width:600px){.editor-header__settings{padding-left:8px}}.editor-header__settings{gap:8px}.show-icon-labels .editor-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.show-icon-labels .editor-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.show-icon-labels .editor-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label);white-space:nowrap}.show-icon-labels .editor-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.show-icon-labels .editor-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.show-icon-labels .editor-header .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg{display:block}.show-icon-labels .editor-header .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after{content:none}.show-icon-labels .editor-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.show-icon-labels .editor-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .editor-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover{border-right:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover:before{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.show-icon-labels .editor-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{background:#ddd;right:calc(50% + 1px);width:calc(100% - 24px)}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 8px 6px 6px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}@media (min-width:480px){.editor-header__post-preview-button{display:none}}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.editor-editor-interface.is-distraction-free .editor-header{background-color:#fff;width:100%}@media (min-width:782px){.editor-editor-interface.is-distraction-free .editor-header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);position:absolute}}.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{visibility:hidden}.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-zoom-out-toggle,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{display:none}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.components-popover.more-menu-dropdown__content{z-index:99998}.editor-inserter-sidebar{box-sizing:border-box}.editor-inserter-sidebar *,.editor-inserter-sidebar :after,.editor-inserter-sidebar :before{box-sizing:inherit}.editor-inserter-sidebar{display:flex;flex-direction:column;height:100%}.editor-inserter-sidebar__content{height:100%}.editor-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.editor-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.editor-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.editor-keyboard-shortcut-help-modal__shortcut:empty{display:none}.editor-keyboard-shortcut-help-modal__shortcut-term{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 1rem 0 0;text-align:left}.editor-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.editor-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.editor-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.editor-list-view-sidebar{height:100%}@media (min-width:782px){.editor-list-view-sidebar{width:350px}}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{height:100%}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-track,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.editor-list-view-sidebar__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.editor-list-view-sidebar__list-view-container>.document-outline:focus,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within,.editor-list-view-sidebar__list-view-container>.document-outline:hover,.editor-list-view-sidebar__list-view-panel-content:focus,.editor-list-view-sidebar__list-view-panel-content:focus-within,.editor-list-view-sidebar__list-view-panel-content:hover{scrollbar-color:#949494 transparent}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{will-change:transform}@media (hover:none){.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:#949494 transparent}}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{overflow:auto;scrollbar-gutter:auto}.editor-list-view-sidebar__list-view-panel-content{padding:4px}.editor-list-view-sidebar__list-view-container{display:flex;flex-direction:column;height:100%}.editor-list-view-sidebar__list-view-container>.document-outline{padding:16px}.editor-list-view-sidebar__tab-panel{height:100%}.editor-list-view-sidebar__outline{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.editor-list-view-sidebar__outline>div>span:first-child{display:inline-block;width:90px}.editor-list-view-sidebar__outline>div>span{color:#757575;font-size:12px;line-height:1.4}.editor-post-order__panel,.editor-post-parent__panel{padding-top:8px}.editor-post-order__panel .editor-post-panel__row-control>div,.editor-post-parent__panel .editor-post-panel__row-control>div{width:100%}.editor-post-order__panel-dialog .editor-post-order,.editor-post-order__panel-dialog .editor-post-parent,.editor-post-parent__panel-dialog .editor-post-order,.editor-post-parent__panel-dialog .editor-post-parent{margin:8px}.editor-post-order__panel-dialog .components-popover__content,.editor-post-parent__panel-dialog .components-popover__content{min-width:320px}.editor-post-author__panel{padding-top:8px}.editor-post-author__panel .editor-post-panel__row-control>div{width:100%}.editor-post-author__panel-dialog .editor-post-author{margin:8px;min-width:248px}.editor-action-modal{z-index:1000001}.editor-post-card-panel__content{flex-grow:1}.editor-post-card-panel__title{width:100%}.editor-post-card-panel__title.editor-post-card-panel__title{align-items:center;-moz-column-gap:8px;column-gap:8px;display:flex;flex-wrap:wrap;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;margin:0;row-gap:4px;word-break:break-word}.editor-post-card-panel__icon{flex:0 0 24px;height:24px;width:24px}.editor-post-card-panel__header{display:flex;justify-content:space-between}.editor-post-card-panel.has-description .editor-post-card-panel__header{margin-bottom:8px}.editor-post-card-panel .editor-post-card-panel__title-name{padding:2px 0}.editor-post-card-panel .editor-post-card-panel__description,.editor-post-content-information{color:#757575}.editor-post-content-information .components-text{color:inherit}.editor-post-discussion__panel-dialog .editor-post-discussion{margin:8px;min-width:248px}.editor-post-discussion__panel-toggle .components-text{color:inherit}.editor-post-discussion__panel-dialog .components-popover__content{min-width:320px}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-excerpt__dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-featured-image{padding:0}.editor-post-featured-image .hidden{display:none}.editor-post-featured-image .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image),.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image),.editor-post-featured-image__container:hover .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image){opacity:1}.editor-post-featured-image__container .editor-post-featured-image__actions.editor-post-featured-image__actions-missing-image{margin-top:16px;opacity:1}.editor-post-featured-image__container .components-drop-zone__content{border-radius:2px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{border-color:#ccc;display:flex;justify-content:center;min-height:40px;outline-offset:-1px;overflow:hidden;padding:0;width:100%}.editor-post-featured-image__preview{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px;height:auto!important;outline:1px solid rgba(0,0,0,.1)}.editor-post-featured-image__preview .editor-post-featured-image__preview-image{aspect-ratio:2/1;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image){bottom:0;opacity:0;padding:8px;position:absolute}@media not (prefers-reduced-motion){.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image){transition:opacity 50ms ease-out}}.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image) .editor-post-featured-image__action{backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75)}.editor-post-featured-image__actions .editor-post-featured-image__action{flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-format__dialog .editor-post-format__dialog-content{margin:8px;min-width:248px}.editor-post-last-edited-panel{color:#757575}.editor-post-last-edited-panel .components-text{color:inherit}.editor-post-last-revision__title{font-weight:var(--wpds-typography-font-weight-emphasis,600);width:100%}.editor-post-last-revision__title.components-button.has-icon{height:100%;justify-content:space-between}.editor-post-last-revision__title.components-button.has-icon:active,.editor-post-last-revision__title.components-button.has-icon:hover{background:#f0f0f0}.editor-post-last-revision__title.components-button.has-icon:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-panel__body.is-opened.editor-post-last-revision__panel{height:48px;padding:0}.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button{padding:16px}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:50%;margin-top:16px;min-width:auto!important}.editor-post-panel__row{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.editor-post-panel__row-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;padding:6px 0;width:38%;word-break:break-word}.editor-post-panel__row-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.editor-post-panel__row-control .components-button{text-wrap:balance;text-wrap:pretty;font-weight:var(--wpds-typography-font-weight-default,400);height:auto;max-width:100%;min-height:32px;text-align:right;white-space:normal}.editor-post-panel__row-control .components-dropdown{max-width:100%}.editor-post-panel__section{padding:16px}.editor-post-publish-panel__content{min-height:calc(100% - 148px)}.editor-post-publish-panel__content>.components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:65px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-right:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;flex-shrink:0;height:36px;margin-left:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px;word-break:break-word}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{justify-content:center;padding-right:4px}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{align-items:center;display:inline-flex}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{font-weight:400;padding-right:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.editor-post-publish-panel__prepublish .components-panel__body-title .components-button{text-wrap:balance;text-wrap:pretty;align-items:flex-start}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none;word-break:break-word}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;gap:16px}.post-publish-panel__postpublish-buttons .components-button,.post-publish-panel__postpublish-buttons .components-button.has-icon{flex:1;justify-content:center;min-width:unset}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#f0f0f0;border-color:#ccc;height:36px;overflow:hidden;padding:12px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-right:16px}.post-publish-panel__postpublish-header{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-publish-panel{box-sizing:border-box}.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}.editor-post-publish-panel{background:#fff;bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.editor-post-publish-panel{border-right:1px solid #ddd;right:auto;top:32px;width:281px;z-index:99998}}@media (min-width:782px) and (not (prefers-reduced-motion)){.editor-post-publish-panel{animation:editor-post-publish-panel__slide-in-animation .1s forwards;transform:translateX(-100%)}}@media (min-width:782px){body.is-fullscreen-mode .editor-post-publish-panel{top:var(--wp-admin--admin-bar--height,0)}[role=region]:focus .editor-post-publish-panel{transform:translateX(0)}}@keyframes editor-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.editor-revisions-header__slider{width:100%}.editor-revisions-header__slider .components-range-control__tooltip{white-space:nowrap}.editor-revisions-header__no-revisions{color:#757575;font-size:13px}.editor-revisions-canvas__loading{align-items:center;display:flex;height:100%;justify-content:center}.editor-revisions-canvas__content{display:flex;height:100%}.editor-revisions-canvas__content .editor-visual-editor{flex:1;min-width:0}.revision-diff-markers{background:rgba(0,0,0,.05);flex-shrink:0;position:relative;width:max(16px,1rem)}.revision-diff-markers .revision-diff-marker{border:none;cursor:var(--wpds-cursor-control,pointer);min-height:4px;padding:0;position:absolute;transition:opacity .1s ease;width:100%}.revision-diff-markers .revision-diff-marker.is-added{background:#008a20}.revision-diff-markers .revision-diff-marker.is-removed{background:repeating-linear-gradient(-45deg,#d63638,#d63638 6px,rgba(214,54,56,.45) 0,rgba(214,54,56,.45) 8px)}.revision-diff-markers .revision-diff-marker.is-modified{background:repeating-linear-gradient(45deg,#9a7000,#9a7000 6px,rgba(154,112,0,.45) 0,rgba(154,112,0,.45) 8px)}.revision-diff-markers .revision-diff-marker:hover{opacity:.7}.revision-diff-markers .revision-diff-marker:focus{outline:2px solid #1e1e1e;outline-offset:-2px}.interface-complementary-area:has(.editor-post-revisions-timeline){display:flex;flex-direction:column;overflow:hidden}.interface-complementary-area:has(.editor-post-revisions-timeline) .editor-sidebar__panel-tabs{flex-shrink:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline){display:flex;flex:1;flex-direction:column;min-height:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline) [role=tabpanel]:has(.editor-post-revisions-timeline){display:flex;flex:1;flex-direction:column;min-height:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline) .editor-revision-meta-diff__content{max-height:80px;overflow-y:auto}.editor-sidebar__panel:has(.editor-post-revisions-timeline) .editor-post-revisions-timeline{flex:1;min-height:0}.editor-revision-fields-diff__value{word-break:break-word}.editor-revision-fields-diff__added{background-color:color-mix(in srgb,currentColor 5%,#00a32a 15%);text-decoration:none}.editor-revision-fields-diff__removed{color:#d63638;text-decoration:line-through}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:transparent;color:#757575}.editor-post-saved-state svg{fill:currentColor;display:inline-block;flex:0 0 auto;margin-left:8px}@media (min-width:600px){.editor-post-saved-state{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-left:0}}.editor-post-save-draft.has-text.has-icon svg{margin-left:0}.editor-post-schedule__panel-dropdown{width:100%}.editor-post-schedule__dialog .components-popover__content{min-width:320px;padding:16px}.editor-post-status{max-width:100%}.editor-post-status.is-read-only{padding:6px 12px}.editor-post-status .editor-post-status__toggle.editor-post-status__toggle{padding-bottom:4px;padding-top:4px}.editor-change-status__password-fieldset,.editor-change-status__publish-date-wrapper{border-top:1px solid #e0e0e0;padding-top:16px}.editor-change-status__content .components-popover__content{min-width:320px;padding:16px}.editor-change-status__content .editor-change-status__password-legend{margin-bottom:8px;padding:0}.editor-change-status__content p.components-base-control__help:has(.components-checkbox-control__help){margin-top:4px}.editor-post-sticky__checkbox-control{border-top:1px solid #e0e0e0;padding-top:16px}.editor-post-sync-status__value{padding:6px 12px 6px 0}.editor-post-taxonomies__hierarchical-terms-list{margin-right:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-right:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-right:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-left:8px}.editor-sync-connection-error-modal{z-index:1000001}.editor-sync-connection-error-modal p{margin:0}.editor-sync-connection-error-modal__retry-countdown{color:#757575}.editor-post-template__swap-template-modal{z-index:1000001}.editor-post-template__swap-template-modal .editor-post-template__swap-template-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}.editor-post-template__create-template-modal{z-index:1000001}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px;padding-top:2px}@media (min-width:782px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.editor-post-template__dropdown .components-popover__content{min-width:240px}.editor-post-template__dropdown .components-button.is-pressed,.editor-post-template__dropdown .components-button.is-pressed:hover{background:inherit;color:inherit}.editor-post-template__classic-theme-dropdown{padding:8px}.editor-template-actions-panel__preview .block-editor-block-preview__container{aspect-ratio:4/3;border-radius:4px;display:flex;overflow:hidden}.editor-template-actions-panel__preview .block-editor-block-preview__container:after{border-radius:4px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}@media not (prefers-reduced-motion){.editor-template-actions-panel__preview .block-editor-block-preview__container:after{transition:outline .1s linear}}.editor-template-actions-panel__preview[role=button]{cursor:var(--wpds-cursor-control,pointer)}.editor-template-actions-panel__preview[role=button]:hover .block-editor-block-preview__container:after{outline-color:rgba(0,0,0,.3)}.editor-template-actions-panel__preview[role=button]:focus-visible .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.editor-template-actions-panel__action{flex:1;justify-content:center}textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;margin:0;min-height:200px;overflow:hidden;resize:none;width:100%}@media not (prefers-reduced-motion){textarea.editor-post-text-editor{transition:border .1s ease-out,box-shadow .1s linear}}textarea.editor-post-text-editor{padding:16px}@media (min-width:600px){textarea.editor-post-text-editor{padding:24px}}textarea.editor-post-text-editor{font-size:16px!important}@media (min-width:600px){textarea.editor-post-text-editor{font-size:15px!important}}textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62)}textarea.editor-post-text-editor::placeholder{color:rgba(30,30,30,.62)}.editor-post-title.is-raw-text{margin-bottom:24px;margin-top:2px;max-width:none}.editor-post-url__panel-dropdown{width:100%}.editor-post-url__panel-dialog .editor-post-url{margin:8px;min-width:248px}.editor-post-url__front-page-link,.editor-post-url__link{direction:ltr;word-break:break-word}.editor-post-url__front-page-link{border-radius:2px;color:var(--wp-admin-theme-color);padding:6px 12px}.editor-post-url__front-page-link:hover{background:color-mix(in srgb,var(--wp-admin-theme-color) 4%,transparent);color:var(--wp-admin-theme-color-darker-20,#183ad6)}.editor-post-url__front-page-link:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);outline:3px solid transparent}.editor-post-url__link-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-post-url__input input.components-input-control__input{padding-inline-start:0!important}.editor-post-parent__panel-toggle,.editor-post-url__panel-toggle{word-break:break-word}.editor-post-url__intro{margin:0}.editor-post-url__permalink{margin-bottom:0;margin-top:8px}.editor-post-url__permalink-visual-label{display:block}.editor-posts-per-page-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.editor-preview-dropdown .editor-preview-dropdown__toggle.has-icon.has-text{padding-left:4px;padding-right:6px}.editor-preview-dropdown.is-responsive-editing .editor-preview-dropdown__toggle{color:var(--wp-block-synced-color)}@media (prefers-reduced-motion:no-preference){.editor-resizable-editor:not(.is-resizing){transition:width .2s ease-out,height .2s ease-out}}.editor-resizable-editor.is-resizable{margin:0 auto;overflow:visible}.editor-resizable-editor__resize-handle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:9999px;bottom:0;cursor:ew-resize;height:100px;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.editor-resizable-editor__resize-handle:after{background-color:hsla(0,0%,46%,.4);border-radius:9999px;bottom:16px;content:"";left:0;position:absolute;right:4px;top:16px;width:4px}.editor-resizable-editor__resize-handle.is-left{right:-18px}.editor-resizable-editor__resize-handle.is-right{left:-18px}.editor-resizable-editor__resize-handle:active,.editor-resizable-editor__resize-handle:focus,.editor-resizable-editor__resize-handle:hover{opacity:1}.editor-resizable-editor__resize-handle:active:after,.editor-resizable-editor__resize-handle:focus:after,.editor-resizable-editor__resize-handle:hover:after{background-color:var(--wp-admin-theme-color)}.editor-layout__toggle-entities-saved-states-panel,.editor-layout__toggle-publish-panel,.editor-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:0;padding:24px;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{bottom:0;top:auto}.editor-start-page-options__modal .editor-start-page-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:72px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.editor-start-page-options__modal .block-editor-block-patterns-list{padding-bottom:72px}.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:782px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column;margin-bottom:24px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}.editor-start-template-options__modal .editor-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.editor-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:782px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.components-panel__header.editor-sidebar__panel-tabs{padding-left:8px;padding-right:0}.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{padding:0}@media (min-width:782px){.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{display:flex}}.editor-post-summary .components-v-stack:empty{display:none}.editor-sidebar{box-sizing:border-box}.editor-sidebar *,.editor-sidebar :after,.editor-sidebar :before{box-sizing:inherit}.editor-sidebar__revisions-block-message{color:#757575;font-size:13px;padding:16px}.fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.editor-site-discussion-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-style-book{height:100%}.editor-style-book.is-button{border-radius:8px}.editor-style-book__iframe{display:block;height:100%;width:100%}.editor-style-book__iframe.is-button{border-radius:8px}.editor-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.editor-style-book__tabs{display:flex;flex-direction:column;height:100%}.editor-style-book__tablist-container{background:#fff;display:flex;flex:none;padding-left:56px;width:100%}.editor-style-book__tabpanel{flex:1 0 auto;overflow:auto}.editor-styles-canvas{background-color:var(--wp-editor-canvas-background);height:100%;padding:24px}.editor-styles-canvas iframe{display:block;height:100%;width:100%}.editor-styles-canvas__section{background:#fff;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.editor-styles-canvas__section{transition:all .3s}}.editor-styles-canvas__close-button{background:#fff;left:8px;position:absolute;top:8px;z-index:2}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-left:8px}.table-of-contents__count:nth-child(4n){padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:20px}.editor-text-editor{box-sizing:border-box}.editor-text-editor *,.editor-text-editor :after,.editor-text-editor :before{box-sizing:inherit}.editor-text-editor{background-color:#fff;flex-grow:1;isolation:isolate;position:relative;width:100%}.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){border:1px solid #949494;border-radius:0;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){padding:24px}}.editor-text-editor .editor-post-title.is-raw-text textarea:focus,.editor-text-editor .editor-post-title:not(.is-raw-text):focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.editor-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.editor-text-editor__body{padding:0 24px 24px}}.editor-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.editor-text-editor__toolbar{padding:12px}}@media (min-width:960px){.editor-text-editor__toolbar{padding:12px 24px}}.editor-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:40px;margin:0 0 0 auto}.editor-upload-progress-snackbar__check,.editor-upload-progress-snackbar__spinner{align-items:center;display:inline-flex;height:24px;justify-content:center;width:24px}.editor-upload-progress-snackbar__spinner .components-spinner{margin:0}.editor-upload-progress-snackbar__check svg{fill:currentColor;height:24px;width:24px}.editor-visual-editor{background-color:var(--wp-editor-canvas-background);display:flex;max-height:100%;position:relative}.editor-visual-editor iframe[name=editor-canvas]{background-color:transparent}.editor-visual-editor{align-items:center}@media (prefers-reduced-motion:no-preference){.editor-visual-editor{transition:padding .2s ease-out}}.editor-visual-editor.has-vertical-padding{padding-bottom:24px;padding-top:24px}.editor-visual-editor.has-horizontal-padding{padding-left:24px;padding-right:24px}.editor-visual-editor{overflow:hidden}.editor-visual-editor .components-button{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.editor-visual-editor .components-button.has-icon,.editor-visual-editor .components-button.is-tertiary{padding:6px}.editor-fields-content-preview{border-radius:4px;display:flex;flex-direction:column;height:100%}.dataviews-view-table .editor-fields-content-preview{flex-grow:0;width:96px}.editor-fields-content-preview .block-editor-block-preview__container,.editor-fields-content-preview .editor-fields-content-preview__empty{margin-bottom:auto;margin-top:auto}.editor-fields-content-preview__empty{text-align:center}.editor-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}.editor-push-changes-to-global-styles-modal p{margin-top:0}.editor-push-changes-to-global-styles-modal .dataviews-layout__container{overflow-x:hidden}@media (max-width:600px){.editor-push-changes-to-global-styles-modal .dataviews-layout__container{overflow-x:auto}}.editor-push-changes-to-global-styles-modal .components-modal__content{padding-bottom:0}.editor-push-changes-to-global-styles-modal .dataviews-footer{padding-bottom:24px}.editor-push-changes-to-global-styles-modal__value{color:#1e1e1e;overflow-wrap:anywhere}
\ No newline at end of file
+@charset "UTF-8";.interface-complementary-area-header{background:#fff;gap:4px;padding-left:8px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0 0 0 auto}.interface-complementary-area{background:#fff;color:#1e1e1e;height:100%;overflow:auto;width:100vw}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}.interface-complementary-area p:not(.components-base-control__help,.components-form-token-field__help){margin-top:0}.interface-complementary-area h2{font-size:13px}.interface-complementary-area h2,.interface-complementary-area h3{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:var(--wp-admin--admin-bar--height,0)}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:calc(var(--wpds-dimension-size-md, 32px) + 1px)}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;position:absolute;right:0;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;left:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:-1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid transparent;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:var(--wpds-dimension-size-md,32px);padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:var(--wp-admin--admin-bar--height,0)}}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.interface-pinned-items{gap:8px}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:90px;padding:0}.font-library-modal .font-library__subtitle{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.font-library-modal__tab-panel{height:calc(100% - 50px)}.font-library__tabpanel-layout{display:flex;flex-direction:column;height:100%}.font-library__tabpanel-layout>div{flex-grow:1}.font-library__tabpanel-layout .font-library__loading{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;padding-top:124px;position:absolute;right:0;top:0;width:100%}.font-library__footer,.font-library__tabpanel-layout .components-navigator-screen{padding:24px;width:100%}.font-library__footer{background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;flex-grow:0!important;flex-shrink:0;height:90px;position:absolute}.font-library__page-selection{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.font-library__page-selection .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.font-library__search{width:240px}.font-library__fonts-title{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library__fonts-list{list-style:none;margin-bottom:0;margin-top:0;padding:0}.font-library__fonts-list-item{margin-bottom:0}.font-library__font-card{border:1px solid #ddd;box-sizing:border-box;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library__font-card:hover{background-color:#f0f0f0}.font-library__font-card:focus{position:relative}.font-library__font-card .font-library__font-card__name{font-weight:700}.font-library__font-card .font-library__font-card__count{color:#757575}.font-library__font-card .font-library__font-variant_demo-image{display:block;height:24px;width:auto}.font-library__font-card .font-library__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library__font-card .font-library__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:1}.font-library__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library__upload-area{background-color:#f0f0f0}.font-library__local-fonts{margin:24px auto;width:80%}.font-library__local-fonts .font-library__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library__select-all{padding:16px 17px 16px 16px}.font-library__select-all .components-checkbox-control__label{padding-right:16px}.global-styles-ui-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.global-styles-ui-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.global-styles-ui-screen-revisions__revisions-list li{margin-bottom:0}.global-styles-ui-screen-revisions__revision-item{cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;position:relative}.global-styles-ui-screen-revisions__revision-item[role=option]:active,.global-styles-ui-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.global-styles-ui-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item:after,.global-styles-ui-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.global-styles-ui-screen-revisions__revision-item:before{background:#ddd;border:4px solid transparent;border-radius:50%;height:8px;right:17px;top:18px;transform:translate(50%,-50%);width:8px;z-index:1}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid transparent;outline-offset:-2px}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes>li,.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta{color:#1e1e1e}.global-styles-ui-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;right:16px;top:0;width:0}.global-styles-ui-screen-revisions__revision-item:first-child:after{top:18px}.global-styles-ui-screen-revisions__revision-item:last-child:after{height:18px}.global-styles-ui-screen-revisions__revision-item-wrapper{display:block;padding:12px 40px 4px 12px}.global-styles-ui-screen-revisions__active-badge,.global-styles-ui-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:0 40px 12px 12px}.global-styles-ui-screen-revisions__changes,.global-styles-ui-screen-revisions__meta{color:#757575;font-size:12px}.global-styles-ui-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date{font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.global-styles-ui-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:right;width:100%}.global-styles-ui-screen-revisions__meta img{border-radius:100%;height:16px;margin-left:8px;width:16px}.global-styles-ui-screen-revisions__loading{margin:24px auto!important}.global-styles-ui-screen-revisions__changes{line-height:1.4;list-style:disc;margin-right:12px;text-align:right}.global-styles-ui-screen-revisions__changes li{margin-bottom:4px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination{gap:2px;justify-content:space-between}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total{height:1px;margin:-1px;overflow:hidden;position:absolute;right:-1000px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled,.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.global-styles-ui-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.global-styles-ui-variations_item{box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{border-radius:2px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{transition:outline .1s linear}}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill{height:32px}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:rgba(0,0,0,.3)}.global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview,.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.global-styles-ui-preview__wrapper{display:block;max-width:100%;width:100%}.global-styles-ui-preview__wrapper.is-hoverable{cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:20px;min-height:100px;overflow:hidden}.global-styles-ui-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-styles-ui-font-size__item-value{color:#757575}.global-styles-ui-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.global-styles-ui-block-types-search{margin-bottom:10px;padding:0 16px}.global-styles-ui-screen-typography__font-variants-count{color:#757575}.global-styles-ui-font-families__manage-fonts{justify-content:center}.global-styles-ui-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.global-styles-ui-header{line-height:1.9!important;margin-bottom:0!important}.global-styles-ui-subtitle{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)!important;margin-bottom:0!important;text-transform:uppercase}.global-styles-ui-section-title{color:#2f2f2f;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.2;margin:0;padding:16px 16px 0}.global-styles-ui-icon-with-current-color{fill:currentColor}.global-styles-ui__color-indicator-wrapper{flex-shrink:0;height:24px}.global-styles-ui__shadows-panel__options-container,.global-styles-ui__typography-panel__options-container{height:24px}.global-styles-ui__block-preview-panel{border:1px solid #ddd;border-radius:2px;overflow:hidden;position:relative;width:100%}.global-styles-ui__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #ddd;border-radius:2px;height:144px;overflow:auto}.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block{background-color:#fff;border:1px solid #ddd;border-radius:2px;height:60px;width:60%}.global-styles-ui__shadow-editor__dropdown-content{width:280px}.global-styles-ui__shadow-editor-panel{margin-bottom:4px}.global-styles-ui__shadow-editor__dropdown{position:relative;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:right;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.global-styles-ui__shadow-editor__remove-button{left:8px;opacity:0;position:absolute;top:8px}.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button{border:none}.global-styles-ui__shadow-editor__dropdown-toggle:hover+.global-styles-ui__shadow-editor__remove-button,.global-styles-ui__shadow-editor__remove-button:focus,.global-styles-ui__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.global-styles-ui__shadow-editor__remove-button{opacity:1}}.global-styles-ui-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel{flex:1 1 auto}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input,.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea{flex:1 1 auto}.global-styles-ui-screen-css-help-link{display:inline-block;margin-top:8px}.global-styles-ui-screen-variations{border-top:1px solid #ddd;margin-top:16px}.global-styles-ui-screen-variations>*{margin:24px 16px}.global-styles-ui-sidebar__navigator-provider{height:100%}.global-styles-ui-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.global-styles-ui-color-palette__tablist-container{border-bottom:1px solid #ddd}.global-styles-ui-color-palette__tablist{margin-bottom:-1px}.global-styles-ui-sidebar__navigator-screen .single-column{grid-column:span 1}.global-styles-ui-screen-root.global-styles-ui-screen-root,.global-styles-ui-screen-style-variations.global-styles-ui-screen-style-variations{background:unset;color:inherit}.global-styles-ui-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile,.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile .global-styles-ui-screen-root__active-style-tile-preview{border-radius:2px}.global-styles-ui-screen-root__active-style-tile-preview{clip-path:border-box}.dataviews-picker-wrapper,.dataviews-wrapper{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;flex-grow:1;font-size:var(--wpds-typography-font-size-md,13px);height:100%;line-height:var(--wpds-typography-line-height-sm,20px);min-height:0;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{background-color:inherit;box-sizing:border-box;flex-shrink:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews__search{flex-grow:1}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-no-results.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-no-results.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@keyframes dataviews-pulse{0%,to{opacity:1}50%{opacity:.5}}.dataviews-loading-more{text-align:center}.dataviews-loading-more[aria-hidden=true]{visibility:hidden}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}}.dataviews-title-field{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-emphasis,600);text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field a{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer)}.dataviews-title-field--clickable:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews__view-actions--infinite-scroll{background-color:#fff;position:sticky;top:0;z-index:2}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:var(--wpds-dimension-padding-sm,8px) 0 0}.dataviews-bulk-actions-footer__item-count{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-bulk-actions-footer__container{margin-left:auto;min-height:var(--wpds-dimension-size-md,32px)}.dataviews-layout__container{background-color:inherit;display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.dataviews-filters__summary-popover .components-popover__content{border-radius:var(--wpds-border-radius-md,4px);max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px);position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:var(--wpds-color-background-interactive-brand-weak,transparent);border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:transparent;border:0;border-radius:var(--wpds-border-radius-md,4px);cursor:var(--wpds-cursor-control,pointer);display:flex;height:var(--wpds-dimension-size-sm,24px);justify-content:center;left:var(--wpds-dimension-padding-xs,4px);padding:0;position:absolute;top:50%;transform:translateY(-50%);width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);max-height:184px;overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__search-widget-listbox{overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:var(--wpds-border-radius-sm,2px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:default;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);gap:var(--wpds-dimension-gap-md,12px);line-height:20px;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px)}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-sm,12px);line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-left:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);border:4px solid var(--wpds-color-foreground-interactive-brand-strong,#fff);border-radius:50%;box-sizing:inherit;content:"";height:12px;margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex-shrink:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px -5px 0 0}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-interactive-neutral-weak,transparent);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);height:var(--checkmark-size);position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:var(--wpds-dimension-padding-sm,8px);position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:var(--wpds-dimension-size-md,32px);margin-left:0;margin-right:0;padding:0 var(--wpds-dimension-size-md,32px) 0 var(--wpds-dimension-padding-sm,8px);width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:var(--wpds-typography-font-size-md,13px)}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:var(--wpds-color-background-surface-neutral-strong,#fff);box-shadow:inset 0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:var(--wpds-dimension-gap-md,12px);justify-content:center;position:absolute;top:0;width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);font-size:11px;height:var(--wpds-dimension-size-2xs,16px);left:0;line-height:var(--wpds-typography-line-height-xs,16px);min-width:var(--wpds-dimension-size-2xs,16px);outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-background-surface-neutral-strong,#fff);padding:0 var(--wpds-dimension-padding-xs,4px);position:absolute;text-align:center;top:0;transform:translate(-50%,-50%)}.dataviews-search{flex-basis:210px}.dataviews-filters__user-input-widget{padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-right:var(--wpds-dimension-padding-sm,8px)}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-footer{background-color:inherit;border-top:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;flex-shrink:0;padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px);position:sticky;right:0}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:1}.dataviews-footer .is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-footer .is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@container (max-width: 560px){.dataviews-footer__content{flex-direction:column!important}.dataviews-footer__content .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer__content .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer__content .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.dataviews-action-modal{z-index:1000001}.dataviews-item-actions .components-button:not(.dataviews-all-actions-button){padding:0 var(--wpds-dimension-padding-xs,4px)}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:var(--wpds-typography-line-height-md,24px)}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-view-config__sort-controls>*{flex:1}.dataviews-view-config__label{text-wrap:nowrap}.dataviews-view-config__toggle-wrapper{display:inline-flex;position:relative}.dataviews-view-config__modified-indicator{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:50%;height:var(--wpds-dimension-gap-xs,4px);left:var(--wpds-dimension-gap-xs,4px);pointer-events:none;position:absolute;top:var(--wpds-dimension-gap-xs,4px);width:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:var(--wpds-dimension-gap-xl,24px);grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid-items.has-compact-density{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid-items.has-comfortable-density{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid{container-type:inline-size;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xl,24px);margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid{transition:padding .1s ease-out}}.dataviews-view-grid.has-compact-density,.dataviews-view-grid.has-compact-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid.has-comfortable-density,.dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid .dataviews-view-grid__row{display:grid;gap:var(--wpds-dimension-gap-xl,24px)}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell{border-radius:var(--wpds-border-radius-md,4px);position:relative}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";height:100%;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__card,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-grid .dataviews-view-grid__media,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media{aspect-ratio:var(--wp-dataviews-media-aspect-ratio,1/1);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media.dataviews-view-grid__media--placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media.dataviews-view-grid__media--placeholder{aspect-ratio:3/1}.dataviews-view-grid .dataviews-view-grid__media img,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder{background:var(--wpds-color-background-surface-neutral,#fcfcfc);border-radius:var(--wpds-border-radius-md,4px);box-shadow:none;display:block;height:100%;width:100%}.dataviews-view-grid .dataviews-view-grid__fields,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:0;position:absolute;right:var(--wpds-dimension-padding-sm,8px);top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-grid__card .dataviews-view-grid__media-actions{left:var(--wpds-dimension-padding-xs,4px);opacity:0;position:absolute;top:var(--wpds-dimension-padding-xs,4px);z-index:1}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:var(--wpds-color-background-surface-neutral-strong,#fff)}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:var(--wpds-dimension-padding-xs,4px)}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-grid__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);container-type:inline-size;font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:var(--wpds-dimension-gap-xs,4px);white-space:nowrap;width:-moz-max-content;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:var(--wpds-color-background-interactive-brand-weak,transparent);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-view-list .dataviews-view-list__item{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:var(--wpds-cursor-control,pointer);inset:0;padding:0;position:absolute;scroll-margin:var(--wpds-dimension-gap-sm,8px) 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;height:48px;overflow:hidden;position:relative;width:48px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:48px;min-width:0}.dataviews-view-list .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.dataviews-view-list .dataviews-view-list__fields{display:flex;flex-wrap:wrap;font-size:12px;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper{height:var(--wpds-dimension-size-md,32px);width:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__field-wrapper{min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-sm,8px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xl,32px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper{height:64px;width:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper{min-height:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-lg,16px);row-gap:var(--wpds-dimension-gap-sm,8px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-list.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-list__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-lg,16px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table{background-color:inherit;border-collapse:collapse;border-color:inherit;color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;text-align:right}.dataviews-view-table td,.dataviews-view-table th{padding:var(--wpds-dimension-padding-md,12px)}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:left}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));left:0;position:sticky}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{background-color:inherit;border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0)}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-right:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-left:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}@media (hover:none){.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}.dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff))}.dataviews-view-table.has-bulk-actions tr.is-selected .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table thead{background-color:inherit;inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead.dataviews-view-table__thead--stuck:after{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:inherit;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding-bottom:var(--wpds-dimension-padding-sm,8px);padding-top:var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button){padding-left:var(--wpds-dimension-padding-xs,4px);padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button{gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child{padding-right:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child{padding-left:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:var(--wpds-dimension-size-md,32px);white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{font-variant-numeric:tabular-nums;justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-right:0}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:last-child){padding-left:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px)}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-md,12px)}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-left:0}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;max-width:60px;min-height:var(--wpds-dimension-size-md,32px);min-width:var(--wpds-dimension-size-md,32px);overflow:hidden;position:relative}.dataviews-column-primary__media img{height:var(--wpds-dimension-size-md,32px);-o-object-fit:cover;object-fit:cover;width:var(--wpds-dimension-size-md,32px)}.dataviews-column-primary__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;position:absolute;right:0;top:0;width:100%}.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media{aspect-ratio:var(--wp-dataviews-media-aspect-ratio,1/1);height:var(--wpds-dimension-size-md,32px);min-width:0}.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img{height:100%;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand){width:1%}.dataviews-view-table.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-table.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);min-height:0;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{position:absolute;right:var(--wpds-dimension-padding-sm,8px);top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-grid-group__header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 48px}.dataviews-view-picker-table{background-color:inherit}.dataviews-view-picker-table .dataviews-view-table__checkbox-column{width:48px}.dataviews-view-picker-table tbody:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-table tbody:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input{opacity:1;pointer-events:none}.dataviews-view-picker-table .dataviews-view-table__row{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-table .dataviews-view-table__row.is-hovered,.dataviews-view-picker-table .dataviews-view-table__row.is-selected,.dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-activity{margin:0 0 auto;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-activity .dataviews-view-activity__group-header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0}.dataviews-view-activity .dataviews-view-activity__item-actions{min-width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item-content{flex-grow:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible{border-radius:var(--wpds-border-radius-sm,2px);outline:var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wp-admin-border-width-focus)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions{display:flex;flex:0 0 auto;width:-moz-max-content;width:max-content}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions .components-button{position:relative;z-index:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty{display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field:has(.dataviews-view-activity__item-field-value:empty){display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field-value{align-items:center;display:flex}.dataviews-view-activity .dataviews-view-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-activity .dataviews-view-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item:first-child .dataviews-view-activity__item-type:before{visibility:hidden}.dataviews-view-activity .dataviews-view-activity__group:last-of-type>.dataviews-view-activity__item:last-of-type .dataviews-view-activity__item-type:after,.dataviews-view-activity>.dataviews-view-activity__item:last-child .dataviews-view-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-activity .dataviews-view-activity__item-type-icon{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);flex-shrink:0;overflow:hidden}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item-type-icon img,.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:""}.dataviews-view-activity.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-activity.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-activity+.dataviews-pagination{justify-content:space-between}.dataviews-view-picker-activity{flex-grow:1;margin:0;padding:0}.dataviews-view-picker-activity:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-activity:focus-visible .dataviews-view-picker-activity__item[data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item{border-radius:var(--wpds-border-radius-sm,2px);cursor:var(--wpds-cursor-control,pointer);padding-inline:var(--wpds-dimension-padding-2xl,24px);transition:background-color .1s ease}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected,.dataviews-view-picker-activity .dataviews-view-picker-activity__item:hover{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected{outline:3px solid transparent;outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content{flex-grow:1}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field:has(.dataviews-view-picker-activity__item-field-value:empty){display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field-value{align-items:center;display:flex}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item:first-child .dataviews-view-picker-activity__item-type:before{visibility:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity-group:last-of-type>.dataviews-view-picker-activity__item:last-of-type .dataviews-view-picker-activity__item-type:after,.dataviews-view-picker-activity>.dataviews-view-picker-activity__item:last-child .dataviews-view-picker-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-picker-activity .dataviews-view-picker-activity-group__header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0;padding-inline-start:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon{background-color:transparent;flex-shrink:0;overflow:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon img,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:var(--wpds-dimension-size-md,32px)}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-range-inputs>*{min-width:0}.dataviews-controls__color-picker-dropdown{display:flex}.dataviews-controls__date-preset{border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-controls__date-preset:active{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}.dataviews-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.dataviews-validated-control__indicator{align-items:flex-start;animation:dataviews-validated-control__indicator-jump .2s cubic-bezier(.68,-.55,.27,1.55);color:#757575;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;gap:4px;line-height:16px;margin:8px 0 0}.dataviews-validated-control__indicator.is-invalid{color:#cc1818}.dataviews-validated-control__indicator.is-valid{color:color-mix(in srgb,#000 30%,#4ab866)}.dataviews-validated-control__indicator-icon{flex-shrink:0}.dataviews-validated-control__indicator-spinner{height:12px;margin:2px;width:12px}@keyframes dataviews-validated-control__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.dataforms-layouts-panel__field-trigger{align-items:flex-start;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;isolation:isolate;min-height:var(--wpds-dimension-size-sm,24px);position:relative;width:100%}.dataforms-layouts-panel__field-trigger--label-side{flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px)}.dataforms-layouts-panel__field-trigger--label-top{display:grid;grid-template-columns:1fr auto}.dataforms-layouts-panel__field-trigger--label-none{align-items:center}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon{opacity:1}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger.is-disabled{cursor:default}.dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400)}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon{fill:currentColor;opacity:1}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible,.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger-icon{border-radius:var(--wpds-border-radius-xs,1px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));flex:0 0 auto;opacity:0;padding:0}.dataforms-layouts-panel__field-trigger-icon:focus-visible{opacity:1;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-dropdown-anchor,.dataforms-layouts-panel__field-dropdown-anchor .components-dropdown{width:100%}.dataforms-layouts-panel__field-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);width:38%}.dataforms-layouts-panel__field-label .components-base-control__label{display:inline;line-height:inherit;margin-bottom:0}.dataforms-layouts-panel__field-label-error-content,.dataforms-layouts-panel__field-label.has-error{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}.dataforms-layouts-panel__field-label-error-content{align-items:center;cursor:help;display:inline-flex;flex-direction:row;gap:var(--wpds-dimension-gap-xs,4px);position:relative;z-index:1}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-md,24px);margin-inline:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1);min-height:var(--wpds-dimension-size-sm,24px);min-width:0;overflow:clip;padding-inline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));word-break:break-word}.dataforms-layouts-panel__field-control>*{min-width:0}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-label{width:100%}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-control{grid-column:1/-1}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-trigger-icon{grid-column:2;grid-row:1}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:var(--wpds-dimension-padding-lg,16px)}.dataforms-layouts-panel__dropdown-header{margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-panel__modal-footer{margin-top:var(--wpds-dimension-gap-lg,16px)}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-panel__summary-button:empty{min-width:160px}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:var(--wpds-dimension-size-md,32px);width:100%}.dataforms-layouts-regular__field .components-base-control__label,.dataforms-layouts-regular__field .components-form-token-field__label,.dataforms-layouts-regular__field .components-input-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-md,32px);width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-label .components-base-control__label{margin-bottom:0}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:var(--wpds-dimension-size-md,32px)}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-header-content{min-height:24px}.dataforms-layouts-card__field-header-content-description{display:contents}.dataforms-layouts-card__field-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-md,13px);margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-card__field-summary{align-items:center;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-details__summary-content{display:inline-flex;min-height:var(--wpds-dimension-size-sm,24px)}.dataforms-layouts-details__content{padding-top:var(--wpds-dimension-padding-md,12px)}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{grid-gap:4px 8px;align-items:center;color:#1e1e1e;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:var(--wpds-cursor-control,pointer)}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid transparent}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{text-wrap:pretty;color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}fieldset.fields__media-edit{border:0;margin:0;padding:0;width:100%}fieldset.fields__media-edit .components-base-control__label{color:#1e1e1e}fieldset.fields__media-edit .fields__media-edit-description{font-size:12px;line-height:1.5}fieldset.fields__media-edit{container-type:inline-size}fieldset.fields__media-edit .fields__media-edit-compact-group{border:1px dashed #949494;border-radius:4px;overflow:hidden}fieldset.fields__media-edit .fields__media-edit-compact-group.is-single{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button{border:0;border-radius:0}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-compact:not(:last-child){border-bottom:1px solid #f0f0f0}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-compact{min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-compact:focus-within .fields__media-edit-compact-movers,fieldset.fields__media-edit .fields__media-edit-compact:hover .fields__media-edit-compact-movers{opacity:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers{background:#fff;border-radius:2px;left:8px;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-picker-button{align-items:center;border:1px dashed #949494;border-radius:2px;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;min-height:40px;min-width:0;padding:4px 8px;position:relative}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment){border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment):hover{background-color:color-mix(in srgb,var(--wp-admin-theme-color,#3858e9) 4%,transparent);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}fieldset.fields__media-edit .fields__media-edit-picker-button:hover{color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}fieldset.fields__media-edit .fields__media-edit-picker-button[aria-disabled=true]{cursor:default;opacity:.6}fieldset.fields__media-edit .fields__media-edit-picker-button .fields__media-edit-picker-button-spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-filename,fieldset.fields__media-edit .fields__media-edit-placeholder{flex:1;min-width:0;width:100%}fieldset.fields__media-edit .fields__media-edit-placeholder{text-align:center}fieldset.fields__media-edit .fields__media-edit-thumbnail{aspect-ratio:1/1;border-radius:2px;flex-shrink:0;width:24px}fieldset.fields__media-edit .fields__media-edit-expanded{display:grid;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);border-radius:2px;display:flex;justify-content:center;overflow:hidden;padding:4px;position:relative;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview .fields__media-edit-expanded-preview-stack{height:100%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-actions{background:#fff;border-radius:2px;left:4px;position:absolute;top:4px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item{border-radius:4px;min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:focus-within .fields__media-edit-expanded-overlay,fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:hover .fields__media-edit-expanded-overlay{opacity:1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:not(.has-preview-image) .fields__media-edit-expanded-preview-stack{padding:8px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-thumbnail{height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-filename{flex:none;text-align:center}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button-spinner svg{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded.is-single{grid-template-columns:1fr}fieldset.fields__media-edit .fields__media-edit-expanded.is-single .fields__media-edit-expanded-preview{aspect-ratio:2/1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button{border-radius:4px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media-edit-picker-button{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}@container (max-width: 500px){fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-picker-button{padding:0}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-placeholder{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);display:flex;justify-content:center}.fields-controls__author-avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:right;overflow:hidden;width:24px}.fields-controls__author-avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.fields-controls__author-avatar img{transition:opacity .1s linear}}.fields-controls__author-avatar.is-loaded img{opacity:1}.fields-controls__author-icon{display:flex;flex-shrink:0;height:24px;width:24px}.fields-controls__author-icon svg{fill:currentColor;margin-right:-4px}.fields-controls__author-name{overflow:hidden;text-overflow:ellipsis}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-right:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.fields-controls__featured-image-image,.fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.fields-controls__parent,.fields-controls__password{border:0;margin:0;padding:0}.fields-controls__status-icon{height:24px;width:24px}.fields-controls__status-icon svg{fill:currentColor;margin-right:-4px}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}.media-editor-preview{align-items:center;box-sizing:border-box;display:flex;justify-content:center;min-height:100%;padding:32px;position:relative}.media-editor-preview__spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.media-editor-preview--loading{height:100%;width:100%}.media-editor-preview--image img{height:auto;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;opacity:0;width:auto}@media not (prefers-reduced-motion){.media-editor-preview--image img.loaded{animation:__wp-base-styles-fade-in .08s linear 0s;animation-fill-mode:forwards}}.media-editor-preview--video video{height:auto;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;width:auto}.media-editor-preview--audio audio{max-width:100%}.media-editor-preview--file{text-align:center}.media-editor-preview__file-info{background:#f0f0f0;border-radius:2px;padding:24px}.media-editor-preview__file-name{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:8px}.media-editor-preview__mime-type{color:#757575;font-size:.9em;margin-bottom:16px}.media-editor-preview__download-link{display:inline-block;margin-top:8px}.media-editor-preview--empty,.media-editor-preview--error{color:#757575;text-align:center}.media-editor-preview__url{color:#949494;font-size:.9em;margin-top:8px;word-break:break-all}.wp-media-editor-image-editor{cursor:grab;height:100%;overflow:hidden;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.wp-media-editor-image-editor__canvas{inset:24px;min-height:100px;min-width:100px;position:absolute}.wp-media-editor-image-editor__canvas:focus{outline:none}.wp-media-editor-image-editor__stage{inset:0;position:absolute}.wp-media-editor-image-editor--dragging{cursor:grabbing}.wp-media-editor-image-editor__image{position:absolute;right:0;top:0;transform-origin:center center;will-change:transform}.wp-media-editor-image-editor__stencil{pointer-events:none;position:absolute}.wp-media-editor-image-editor__dimming{box-shadow:0 0 0 9999px hsla(0,0%,88%,.6);pointer-events:none;position:absolute;transition:box-shadow .15s ease}.wp-media-editor-image-editor--dragging .wp-media-editor-image-editor__dimming{box-shadow:0 0 0 9999px hsla(0,0%,88%,.4)}.wp-media-editor-image-editor__grid{overflow:hidden;pointer-events:none;position:absolute;transition:opacity .15s ease}.wp-media-editor-image-editor__canvas--grid-interactive .wp-media-editor-image-editor__grid{opacity:0;transition-delay:.1s}.wp-media-editor-image-editor__canvas--show-grid .wp-media-editor-image-editor__grid{opacity:1;transition-delay:0s}.wp-media-editor-image-editor__canvas--settling .wp-media-editor-image-editor__grid{opacity:0;transition:none}.wp-media-editor-image-editor__grid-line{background:hsla(0,0%,100%,.4);position:absolute}.wp-media-editor-image-editor__grid-line--horizontal{height:1px;right:0;width:100%}.wp-media-editor-image-editor__grid-line--vertical{height:100%;top:0;width:1px}.wp-media-editor-image-editor__dimensions-tooltip{background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.08);color:#1e1e1e;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.4;padding:2px 6px;pointer-events:none;position:absolute;white-space:nowrap;z-index:2}.wp-media-editor-image-editor__stencil-rect{border:1px solid #1e1e1e;box-sizing:border-box;pointer-events:none;position:absolute;transition:border-color .15s ease,box-shadow .15s ease}.wp-media-editor-image-editor__canvas--focus-visible:focus .wp-media-editor-image-editor__stencil-rect{border-color:var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba));box-shadow:0 0 0 1px var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba))}.wp-media-editor-image-editor__handle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:1px solid var(--wp-admin-theme-color,#007cba);border-radius:50%;box-sizing:border-box;cursor:default;font:inherit;height:12px;margin:0;padding:0;pointer-events:auto;position:absolute;transition:background-color .15s ease,box-shadow .15s ease;width:12px}.wp-media-editor-image-editor__handle:focus{outline:none}.wp-media-editor-image-editor__canvas--focus-visible .wp-media-editor-image-editor__handle:focus{background:var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba));border-color:transparent;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba))}.wp-media-editor-image-editor__handle:before{content:"";height:44px;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:44px}.wp-media-editor-image-editor__handle--n{cursor:ns-resize;margin-right:-6px;right:50%;top:-6px}.wp-media-editor-image-editor__handle--s{bottom:-6px;cursor:ns-resize;margin-right:-6px;right:50%}.wp-media-editor-image-editor__handle--e{cursor:ew-resize;left:-6px;margin-top:-6px;top:50%}.wp-media-editor-image-editor__handle--w{cursor:ew-resize;margin-top:-6px;right:-6px;top:50%}.wp-media-editor-image-editor__handle--nw{cursor:nesw-resize;right:-6px;top:-6px}.wp-media-editor-image-editor__handle--ne{cursor:nwse-resize;left:-6px;top:-6px}.wp-media-editor-image-editor__handle--sw{bottom:-6px;cursor:nwse-resize;right:-6px}.wp-media-editor-image-editor__handle--se{bottom:-6px;cursor:nesw-resize;left:-6px}.media-editor{display:flex;flex:1;flex-direction:column;height:100%;min-height:0}.media-editor .media-editor__loading{align-items:center;display:flex;height:100%;justify-content:center}.media-editor .interface-interface-skeleton{bottom:auto;flex:1;flex-direction:column;height:100%;left:auto;max-height:none;position:relative;right:auto;top:auto}.media-editor-modal .media-editor .interface-interface-skeleton.interface-interface-skeleton{top:auto}.media-editor .interface-interface-skeleton__editor{flex:1;min-width:0}.media-editor .media-editor__content{border-radius:8px;display:flex;flex:1;flex-direction:column;margin:0 24px;min-height:0;overflow:hidden}.media-editor .media-editor__canvas-toolbar{background:#e0e0e0;display:flex;flex-shrink:0;justify-content:center;padding:8px 16px}.media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation{flex:0 1 360px;min-width:0}.media-editor .media-editor__canvas-area{align-items:center;background:#e0e0e0;display:flex;flex:1;justify-content:center;min-height:0;overflow:auto}.media-editor .media-editor__canvas-area .media-editor-preview{height:100%}.media-editor .media-editor__canvas-area img,.media-editor .media-editor__canvas-area video{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.media-editor .media-editor__sidebar{box-sizing:border-box}.media-editor .media-editor__sidebar *,.media-editor .media-editor__sidebar :after,.media-editor .media-editor__sidebar :before{box-sizing:inherit}@media (min-width:600px){.media-editor .media-editor__sidebar{padding-right:1px}}.media-editor .media-editor__sidebar-panel{padding-bottom:24px}.media-editor .interface-interface-skeleton__sidebar{border-top:0;box-shadow:none;outline:1px solid transparent}.media-editor .media-editor__panel{padding:16px}@media (min-width:600px){.media-editor .media-editor__panel{padding:24px 0 0 24px}}.media-editor .components-panel__header.media-editor__sidebar-header{margin-left:0;padding-left:8px;padding-right:0}@media (min-width:600px){.media-editor .components-panel__header.media-editor__sidebar-header{margin-left:24px}}.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon{padding:0}@media (min-width:600px){.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon{display:flex}}@media (min-width:600px) and (max-width:781px){.media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill){position:relative!important}.media-editor .interface-complementary-area,.media-editor .interface-complementary-area__fill{width:280px!important}}@media (max-width:599px){.media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill){width:100%}.media-editor .interface-complementary-area,.media-editor .interface-complementary-area__fill{width:100%!important}}.media-editor__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-editor__snackbar .components-snackbar{margin-inline:auto}.media-editor-form .dataforms-layouts-panel__field-control{text-wrap:pretty}.media-editor-modal.components-modal__frame .components-modal__content{display:flex;flex-direction:column;margin-bottom:0;min-height:0;padding:0}.media-editor-modal.components-modal__frame .components-modal__children-container{display:flex;flex:1;flex-direction:column;min-height:0}.media-editor-modal.components-modal__frame .media-editor-modal__footer{background:#fff;display:flex;flex-shrink:0;gap:16px;padding:16px 32px 24px;z-index:1000001}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide{align-items:center;flex-direction:row}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor__footer-actions{margin-right:auto}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow{flex-direction:column}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow>.media-editor-image-controls{align-self:center}.media-editor-modal__footer-row{align-items:center;display:flex;flex-wrap:wrap;gap:16px}.media-editor-modal__footer-row .media-editor-image-controls,.media-editor-modal__footer-row .media-editor__footer-actions{margin-right:auto}.media-editor__history-actions .components-button.has-icon:not([aria-disabled=true]){color:var(--wp-admin-theme-color)}.media-editor-modal,.media-editor-modal__snackbar{display:flex;flex-direction:column}.media-editor-modal__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-editor-modal__snackbar .components-snackbar{margin-inline:auto}.media-editor-modal__snackbar{z-index:1000001}.media-editor-canvas{height:100%;position:relative;width:100%}.media-editor-canvas__cropper{height:100%;opacity:0;pointer-events:none;width:100%}.media-editor-canvas__cropper.is-loaded{opacity:1;pointer-events:auto}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.media-editor-canvas__cropper.is-loaded{animation:__wp-base-styles-fade-in .2s linear 0s;animation-fill-mode:forwards}}.media-editor-canvas__spinner{position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.media-editor-canvas__error{align-items:center;color:#757575;display:flex;height:100%;justify-content:center;text-align:center;width:100%}.media-editor-image-controls{align-items:center;display:flex;flex-wrap:nowrap;gap:8px}.media-editor-image-controls.is-stacked{align-items:flex-start;flex-direction:column;gap:24px}.media-editor-image-controls__transforms{display:flex;gap:48px}.media-editor-image-controls__group{display:flex;flex-direction:column;gap:4px}.media-editor-image-controls__label{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;text-transform:uppercase}.media-editor-image-controls__buttons{display:flex;gap:8px;padding-inline:2px 0}.media-editor-keyboard-shortcuts-modal{min-width:280px}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__note{color:#757575;font-size:13px;margin:0 0 16px}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-list{list-style:none;margin:0;padding:0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut:last-child{border-bottom:1px solid #ddd}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-description{flex:1;margin:0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-term{background:none;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 1rem 0 0;padding:0;text-align:left}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.rotation-ruler{box-sizing:border-box;color:#1e1e1e;container-type:inline-size;cursor:ew-resize;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:32px;min-width:180px;padding:0 8px;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rotation-ruler[data-disabled]{cursor:default;opacity:.5;pointer-events:none}.rotation-ruler:has(.rotation-ruler__input:focus-visible){border-radius:4px;outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:2px}.rotation-ruler__input{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.rotation-ruler__pointer{background:var(--wp-admin-theme-color,#3858e9);border-radius:1px;bottom:0;height:18px;pointer-events:none;position:absolute;right:50%;transform:translateX(50%);width:2px}.rotation-ruler__strip{inset:0;mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent);overflow:hidden;position:absolute}.rotation-ruler__ticks{display:block;left:50%;overflow:visible;position:absolute;top:0}.rotation-ruler__tick{stroke:currentColor;stroke-width:1}.rotation-ruler__tick--minor{opacity:.35}.rotation-ruler__tick--mid{opacity:.6}.rotation-ruler__tick--major{opacity:1}.rotation-ruler__label{fill:currentColor;font-size:10px;font-weight:400;opacity:.45}.rotation-ruler__active-label{color:#1e1e1e;font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:14px;line-height:14px;pointer-events:none;position:absolute;right:50%;top:0;transform:translateX(50%)}.rotation-ruler__active-label:before{background:linear-gradient(270deg,transparent 0,#e0e0e0 12px,#e0e0e0 calc(100% - 12px),transparent);content:"";height:100%;position:absolute;right:50%;top:0;transform:translateX(50%);width:60px}.rotation-ruler__active-label-number{display:inline-block;position:relative}.rotation-ruler__active-label-sign{left:100%;position:absolute;top:0}.rotation-ruler__active-label-unit{position:absolute;right:100%;top:0}@container (max-width: 220px){.rotation-ruler__tick--minor{opacity:0}}@media (prefers-reduced-motion:reduce){.rotation-ruler__ticks{transition:none}}.editor-autocompleters__link{gap:8px;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"\f110";font:normal 20px/1 dashicons;margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-left:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{flex-grow:0;flex-shrink:0;margin-right:8px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:not(.is-primary) .editor-autocompleters__user-slug{color:#757575}.interface-interface-skeleton__sidebar:has(.editor-collab-sidebar){box-shadow:none}.interface-interface-skeleton__sidebar:has(.editor-collab-sidebar) .interface-complementary-area-header{display:none}.editor-collab-sidebar{height:100%;overflow:hidden}.editor-collab-sidebar-panel{height:100%;overflow:hidden;padding:16px 16px 24px;position:relative}.editor-collab-sidebar-panel__add-note,.editor-collab-sidebar-panel__thread{background-color:#f0f0f0;border:1px solid #ddd;border-radius:8px;overflow:hidden;padding:16px;position:relative;width:auto}.editor-collab-sidebar-panel__add-note.is-selected,.editor-collab-sidebar-panel__thread.is-selected{background-color:#fff;box-shadow:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);z-index:1}.editor-collab-sidebar-panel__add-note:focus,.editor-collab-sidebar-panel__thread:focus{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1)}.editor-collab-sidebar-panel__add-note.is-floating,.editor-collab-sidebar-panel__thread.is-floating{left:16px;margin-top:16px;max-height:calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 128px);overflow-y:auto;position:absolute;right:16px;transform:translateY(var(--canvas-scroll,0));will-change:transform}.editor-collab-sidebar-panel__user-name{text-transform:capitalize}.editor-collab-sidebar-panel__user-name,.editor-collab-sidebar-panel__user-time{color:#757575;font-size:12px;font-weight:400;line-height:16px;text-align:right}.editor-collab-sidebar-panel__show-more-button{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));cursor:var(--wpds-cursor-control,pointer);width:-moz-fit-content;width:fit-content}.editor-collab-sidebar-panel__show-more-button:active,.editor-collab-sidebar-panel__show-more-button:focus,.editor-collab-sidebar-panel__show-more-button:hover{color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.editor-collab-sidebar-panel__note-content{overflow-wrap:break-word}.editor-collab-sidebar-panel__note-content p:last-child{margin-bottom:0}.editor-collab-sidebar-panel__note-content.is-collapsed{-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.editor-collab-sidebar-panel__user-avatar{background:#fff;border-radius:50%;border-style:solid;border-width:var(--wp-admin-border-width-focus);flex-shrink:0;padding:var(--wp-admin-border-width-focus)}.editor-collab-sidebar-panel__note-actions{margin-right:auto}.editor-collab-sidebar-panel__note-actions button.has-icon:not(.has-text){flex-shrink:0;height:24px;min-width:24px;padding:0;width:24px}.editor-collab-sidebar-panel__more-reply-separator:after,.editor-collab-sidebar-panel__more-reply-separator:before,.editor-collab-sidebar-panel__status-separator:after,.editor-collab-sidebar-panel__status-separator:before{background-color:#ddd;content:"";flex:1;height:1px}.editor-collab-sidebar-panel__deleted-block-notice,.editor-collab-sidebar-panel__more-reply-button{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-collab-sidebar-panel__deleted-block-notice{color:#757575}.editor-collab-sidebar-panel__resolution-text{font-style:italic}.editor-collab-sidebar-panel__note-form [role=textbox]{line-height:20px;max-height:418px;overflow-wrap:break-word;overflow-y:auto;white-space:pre-wrap}.editor-collab-sidebar-panel__note-form [role=textbox] code{background:#f0f0f0;border-radius:2px;font-family:Menlo,Consolas,monaco,monospace;font-size:.9em;padding:0 2px}.editor-collab-sidebar-panel__note-form [role=textbox] a{color:var(--wp-admin-theme-color);text-decoration:underline}.editor-collab-sidebar-panel__skip-to-block,.editor-collab-sidebar-panel__skip-to-note{background:#fff!important;clip-path:inset(50%);left:-9999px;overflow:hidden;position:absolute;top:-9999px;z-index:-1}.editor-collab-sidebar-panel__skip-to-block:focus,.editor-collab-sidebar-panel__skip-to-note:focus{clip-path:none;left:8px;overflow:visible;z-index:1}.editor-collab-sidebar-panel__skip-to-note:focus{top:8px}.editor-collab-sidebar-panel__skip-to-block:focus{bottom:8px;top:auto}.editor-note-indicator__avatar{background:#fff;border-radius:50%;border-style:solid;border-width:var(--wp-admin-border-width-focus);box-sizing:border-box;margin-right:-12px;padding:var(--wp-admin-border-width-focus);width:24px}.editor-note-indicator__avatar:first-child{margin-right:0}.editor-note-indicator__overflow{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.show-icon-labels .editor-note-indicator{width:auto}.show-icon-labels .editor-note-indicator div{display:none}.show-icon-labels .editor-note-indicator:after{content:attr(aria-label);font-size:12px}mark.wp-note{border-radius:1px;transition:background-color .1s ease-in-out}.wp-note-mention{background:var(--wpds-color-background-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 9%,#fff));border-radius:var(--wpds-border-radius-sm,2px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));display:inline;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:0 var(--wpds-dimension-padding-xs,4px)}@media (forced-colors:active){.wp-note-mention{border:1px solid}}.editor-collab-sidebar-panel__mention-suggestion .editor-autocompleters__user-avatar{border-radius:50%}.editor-rich-text-control [data-rich-text-placeholder]:after{color:color-mix(in srgb,currentColor,transparent 38%);content:attr(data-rich-text-placeholder)}.editor-avatar{align-items:center;box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);display:inline-flex}.editor-avatar,.editor-avatar__image{border-radius:9999px;flex-shrink:0;position:relative}.editor-avatar__image{background-color:var(--wp-admin-theme-color,#3858e9);border:0;box-sizing:border-box;color:#fff;font-size:0;height:32px;overflow:hidden;overflow:clip;width:32px}.is-small>.editor-avatar__image{height:24px;width:24px}.has-avatar-border-color>.editor-avatar__image{background-clip:padding-box;border:var(--wp-admin-border-width-focus) solid var(--editor-avatar-outline-color)}.has-avatar-border-color>.editor-avatar__image:after{border-radius:inherit;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,2px) #fff;content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.editor-avatar__img{border-radius:inherit;height:100%;inset:0;-o-object-fit:cover;object-fit:cover;opacity:0;position:absolute;width:100%}.has-src>.editor-avatar__image>.editor-avatar__img{opacity:1}.editor-avatar:not(.has-src)>.editor-avatar__image{align-items:center;background-clip:border-box;border:0;display:flex;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);justify-content:center}.editor-avatar:not(.has-src)>.editor-avatar__image:after{content:none}.editor-avatar:not(.has-src).has-avatar-border-color>.editor-avatar__image{background-color:var(--editor-avatar-outline-color)}.editor-avatar__name{color:var(--editor-avatar-name-color,#fff);font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;min-width:0;opacity:0;overflow:hidden;padding-bottom:2px;transition:opacity .15s cubic-bezier(.15,0,.15,1);white-space:nowrap}.editor-avatar.is-badge{background-color:var(--wp-admin-theme-color,#3858e9);-moz-column-gap:0;column-gap:0;display:inline-grid;grid-template-columns:min-content 0fr;padding-inline-end:0;transition:grid-template-columns .3s cubic-bezier(.15,0,.15,1),column-gap .3s cubic-bezier(.15,0,.15,1),padding-inline-end .3s cubic-bezier(.15,0,.15,1);transition:grid-template-columns .3s cubic-bezier(.15,0,.15,1),column-gap .3s cubic-bezier(.15,0,.15,1),padding-inline-end .3s cubic-bezier(.15,0,.15,1),-moz-column-gap .3s cubic-bezier(.15,0,.15,1)}.editor-avatar.is-badge:hover{-moz-column-gap:4px;column-gap:4px;grid-template-columns:min-content 1fr;padding-inline-end:8px;transition-timing-function:cubic-bezier(.85,0,.85,1)}.editor-avatar.is-badge:hover .editor-avatar__name{opacity:1;transition-timing-function:cubic-bezier(.85,0,.85,1)}.editor-avatar.is-badge.has-avatar-border-color{background-color:var(--editor-avatar-outline-color)}.editor-avatar.is-dimmed>.editor-avatar__image{background-color:#757575;opacity:.5}.editor-avatar.is-dimmed.has-avatar-border-color>.editor-avatar__image{border-color:#757575}.editor-avatar.is-dimmed .editor-avatar__img{filter:grayscale(1)}.editor-avatar__status-indicator{fill:#1e1e1e;align-items:center;color:#1e1e1e;display:flex;height:32px;justify-content:center;position:absolute;right:0;top:0;width:32px;z-index:1}.is-small>.editor-avatar__status-indicator{height:24px;width:24px}.editor-avatar__status-indicator svg{height:75%;width:75%}@media (prefers-reduced-motion:reduce){.editor-avatar.is-badge,.editor-avatar__name{transition:none}}.editor-avatar-group{align-items:center;display:flex}.editor-avatar-group>.editor-avatar+.editor-avatar{margin-inline-start:-8px}.editor-avatar-group>.editor-avatar{position:relative}.editor-avatar-group>.editor-avatar:first-child{z-index:10}.editor-avatar-group>.editor-avatar:nth-child(2){z-index:9}.editor-avatar-group>.editor-avatar:nth-child(3){z-index:8}.editor-avatar-group>.editor-avatar:nth-child(4){z-index:7}.editor-avatar-group>.editor-avatar:nth-child(5){z-index:6}.editor-avatar-group>.editor-avatar:nth-child(6){z-index:5}.editor-avatar-group>.editor-avatar:nth-child(7){z-index:4}.editor-avatar-group>.editor-avatar:nth-child(8){z-index:3}.editor-avatar-group>.editor-avatar:nth-child(9){z-index:2}.editor-avatar-group>.editor-avatar:nth-child(10){z-index:1}.editor-avatar-group__overflow{color:#1e1e1e;font-size:12px;line-height:20px;margin-inline-end:4px;margin-inline-start:4px;white-space:nowrap}.editor-collaborators-presence__list.components-popover .components-popover__content{background:#fff;border:1px solid #ddd;border-radius:8px;border-width:1px 1px 0 0;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-content{min-width:280px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header{align-items:center;display:flex;justify-content:space-between;padding:8px 16px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title{display:flex;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);gap:4px;line-height:20px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title span{color:#757575}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-action{padding:0}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-action button{color:#1e1e1e;height:32px;padding:0;width:32px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-items{display:flex;flex-direction:column;padding-bottom:16px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item{all:unset;align-items:center;box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;padding:12px 16px;transition:background-color .2s ease;width:100%}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:hover:not(:disabled){background-color:rgba(var(--wp-admin-theme-color--rgb),.04)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:active:not(:disabled){background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:focus-visible{outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:-2px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:disabled{cursor:default}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-info{display:flex;flex:1;flex-direction:column;min-width:0}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-name{color:#1e1e1e;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-collaborators-presence{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;flex-shrink:0;height:32px}.editor-collaborators-presence:hover{background-color:#e0e0e0}.editor-collaborators-presence:has(.is-pressed){background-color:#e0e0e0}.editor-header__center .editor-collaborators-presence{margin-left:8px}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button{align-items:center;background:transparent;border-radius:4px;box-sizing:border-box;color:#2f2f2f;cursor:var(--wpds-cursor-control,pointer);display:flex;height:100%;padding:4px;position:relative}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed,.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed:hover,.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:hover{background:transparent;color:#2f2f2f}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:focus:not(:active){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,2px) var(--wp-admin-theme-color,#007cba);outline:none}.editor-collapsible-block-toolbar{align-items:center;display:flex;height:64px;overflow:hidden}.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{background:transparent;border-bottom:0;height:100%}.editor-collapsible-block-toolbar .block-editor-block-toolbar{height:100%;padding-top:17px}.editor-collapsible-block-toolbar .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.editor-collapsible-block-toolbar:after{background-color:#ddd;content:"";height:24px;margin-left:7px;width:1px}.editor-collapsible-block-toolbar .components-toolbar,.editor-collapsible-block-toolbar .components-toolbar-group{border-left:none;position:relative}.editor-collapsible-block-toolbar .components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar:after{background-color:#ddd;content:"";height:24px;left:-1px;position:absolute;top:4px;width:1px}.editor-collapsible-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.editor-collapsible-block-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{height:40px;position:relative;top:-4px}}.editor-collapsible-block-toolbar.is-collapsed{display:none}.editor-block-visibility__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:32px 0 0 0 #fff,-32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-5px;z-index:1}.editor-block-visibility__disabled-blocks-count~.block-editor-block-manager__content .block-editor-block-manager__category-title{top:31px}.editor-block-visibility__disabled-blocks-count .is-link{margin-right:12px}.editor-blog-title-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-document-bar{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;height:32px;justify-content:space-between;min-width:0;width:min(100%,450px)}.editor-document-bar:hover{background-color:#e0e0e0}.editor-document-bar .components-button{border-radius:4px}@media not (prefers-reduced-motion){.editor-document-bar .components-button{transition:background-color .1s ease-out}}.editor-document-bar .components-button:hover{background:#e0e0e0}@media screen and (min-width:782px) and (max-width:960px){.editor-document-bar.has-back-button .editor-document-bar__post-type-label{display:none}}.editor-document-bar__command{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.editor-document-bar__title{color:#1e1e1e;margin:0 auto;max-width:70%;overflow:hidden}.editor-document-bar__title h1{align-items:center;display:flex;font-weight:400;justify-content:center;overflow:hidden;white-space:nowrap}.editor-document-bar__post-title{color:currentColor;flex:1;overflow:hidden;text-overflow:ellipsis}.editor-document-bar__post-type-label{color:#2f2f2f;flex:0;padding-right:4px}@media screen and (max-width:600px){.editor-document-bar__post-type-label{display:none}}.editor-document-bar__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;position:absolute;z-index:1}.editor-document-bar__back.components-button.has-icon.has-text:hover{background-color:transparent;color:#1e1e1e}.editor-document-bar__icon-layout.editor-document-bar__icon-layout{display:none;margin-right:12px;pointer-events:none;position:absolute}.editor-document-bar__icon-layout.editor-document-bar__icon-layout svg{fill:#949494}@media (min-width:600px){.editor-document-bar__icon-layout.editor-document-bar__icon-layout{display:flex}}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:var(--wpds-cursor-control,pointer);display:flex;margin:0 -1px 0 0;padding:2px 1px 2px 5px;text-align:right}.document-outline__button:disabled,.document-outline__button[aria-disabled=true]{color:#757575;cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-left:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-document-outline.has-no-headings>svg{margin-top:28px}.editor-document-outline.has-no-headings>p{padding-left:32px;padding-right:32px}.editor-document-outline.has-no-headings{color:#757575;text-align:center}.editor-document-tools{align-items:center;display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:none}@media (min-width:782px){.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:inline-flex}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle{display:inline-flex}@media not (prefers-reduced-motion){.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.editor-document-tools .block-editor-list-view{display:none}@media (min-width:600px){.editor-document-tools .block-editor-list-view{display:flex}}.editor-document-tools .editor-document-tools__left>.components-button.has-icon,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon{height:32px;min-width:32px;padding:4px}.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:focus:not(:active),.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:before,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:before{display:none}.editor-document-tools__left{align-items:center;display:inline-flex;gap:8px}.editor-document-tools__left:not(:last-child){margin-inline-end:8px}.show-icon-labels .editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{padding:0 8px;width:auto}.show-icon-labels .editor-document-tools__left>*+*{margin-right:8px}.editor-editor-interface .entities-saved-states__panel-header{height:65px}.editor-editor-interface .interface-interface-skeleton__content{isolation:isolate}.editor-notices .components-notice-list,.editor-notices.notices-inline-notices-wrapper{gap:0}.editor-notices .components-notice{border-inline-width:0;border-top-width:0}.editor-visual-editor{flex:1 0 auto}.editor-notices__dismissible,.editor-notices__pinned{left:0;position:relative;right:0;top:0}.editor-error-boundary{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin:64px auto auto;max-width:780px;padding:1em}.editor-global-styles-header__description{padding:0 16px}.editor-global-styles-header{margin-bottom:0!important}.editor-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.editor-global-styles-sidebar__panel{flex:1}.editor-global-styles-sidebar .editor-global-styles-sidebar__header-title{margin:0}.editor-global-styles-sidebar .editor-global-styles-sidebar__header-actions{flex:1}.editor-global-styles-sidebar .block-editor-panel-color-gradient-settings{border:0}.editor-global-styles-sidebar .single-column{grid-column:span 1}.editor-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.editor-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.editor-global-styles-sidebar__blocks-group-help{padding:0 16px}.global-styles-ui-color-palette-panel,.global-styles-ui-gradient-palette-panel{padding:16px}.editor-global-styles-sidebar hr{margin:0}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon{width:auto}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.editor-welcome-guide{width:312px}.editor-welcome-guide.guide-styles .editor-welcome-guide__image{background:#00a0d2}.editor-welcome-guide__image{margin:0 0 16px}.editor-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.editor-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.editor-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.editor-welcome-guide__text img{vertical-align:bottom}.editor-welcome-guide .components-button:hover svg{fill:#fff}.editor-header{box-sizing:border-box}.editor-header *,.editor-header :after,.editor-header :before{box-sizing:inherit}.editor-header{background:#fff;display:grid;grid-auto-flow:row;grid-template:auto/32px minmax(0,max-content) minmax(min-content,1fr) 64px;height:64px}.editor-header:has(>.editor-header__center){grid-template:auto/32px min-content 1fr min-content 64px}@media (min-width:782px){.editor-header:has(>.editor-header__center){grid-template:auto/32px minmax(min-content,2fr) 2.5fr minmax(min-content,2fr) 64px}}@media (min-width:480px){.editor-header{gap:16px}}.editor-header{align-items:center;justify-content:space-between;max-width:100vw}@media (min-width:280px){.editor-header{flex-wrap:nowrap}}.editor-header__back-button{padding-right:8px}.editor-header__toolbar{grid-column:1/3}.editor-header__toolbar>:first-child{margin-inline:16px 0}.editor-header__back-button+.editor-header__toolbar{grid-column:2/3}@media (min-width:480px){.editor-header__back-button+.editor-header__toolbar>:first-child{margin-inline:0}}.editor-header__toolbar{align-items:center;clip-path:inset(-2px);display:flex;min-width:0}@media (min-width:480px){.editor-header__toolbar{clip-path:none}}.editor-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.editor-header__toolbar .table-of-contents{display:block}}.editor-header__toolbar .editor-collapsible-block-toolbar,.editor-header__toolbar .editor-collapsible-block-toolbar.is-collapsed~.editor-collapsible-block-toolbar__toggle{margin-inline:8px 0}.editor-header__center{align-items:center;display:flex;grid-column:3/4;justify-content:center;min-width:0}@media (max-width:479px){.editor-header__center>:first-child{margin-inline-start:8px}.editor-header__center>:last-child{margin-inline-end:8px}}.editor-header__settings{grid-column:3/-1}.editor-header:has(>.editor-header__center) .editor-header__settings{grid-column:4/-1}.editor-header__settings{align-items:center;display:inline-flex;flex-wrap:nowrap;justify-self:end;padding-left:4px}@media (min-width:600px){.editor-header__settings{padding-left:8px}}.editor-header__settings{gap:8px}.show-icon-labels .editor-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.show-icon-labels .editor-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.show-icon-labels .editor-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label);white-space:nowrap}.show-icon-labels .editor-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.show-icon-labels .editor-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.show-icon-labels .editor-header .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg{display:block}.show-icon-labels .editor-header .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after{content:none}.show-icon-labels .editor-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.show-icon-labels .editor-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .editor-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover{border-right:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover:before{background-color:#ddd;content:"";height:24px;margin-right:8px;margin-top:4px;width:1px}.show-icon-labels .editor-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{background:#ddd;right:calc(50% + 1px);width:calc(100% - 24px)}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 8px 6px 6px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}@media (min-width:480px){.editor-header__post-preview-button{display:none}}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.editor-editor-interface.is-distraction-free .editor-header{background-color:#fff;width:100%}@media (min-width:782px){.editor-editor-interface.is-distraction-free .editor-header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);position:absolute}}.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{visibility:hidden}.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-zoom-out-toggle,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{display:none}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.components-popover.more-menu-dropdown__content{z-index:99998}.editor-inserter-sidebar{box-sizing:border-box}.editor-inserter-sidebar *,.editor-inserter-sidebar :after,.editor-inserter-sidebar :before{box-sizing:inherit}.editor-inserter-sidebar{display:flex;flex-direction:column;height:100%}.editor-inserter-sidebar__content{height:100%}.editor-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.editor-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.editor-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.editor-keyboard-shortcut-help-modal__shortcut:empty{display:none}.editor-keyboard-shortcut-help-modal__shortcut-term{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 1rem 0 0;text-align:left}.editor-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.editor-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.editor-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.editor-list-view-sidebar{height:100%}@media (min-width:782px){.editor-list-view-sidebar{width:350px}}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{height:100%}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-track,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.editor-list-view-sidebar__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.editor-list-view-sidebar__list-view-container>.document-outline:focus,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within,.editor-list-view-sidebar__list-view-container>.document-outline:hover,.editor-list-view-sidebar__list-view-panel-content:focus,.editor-list-view-sidebar__list-view-panel-content:focus-within,.editor-list-view-sidebar__list-view-panel-content:hover{scrollbar-color:#949494 transparent}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{will-change:transform}@media (hover:none){.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:#949494 transparent}}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{overflow:auto;scrollbar-gutter:auto}.editor-list-view-sidebar__list-view-panel-content{padding:4px}.editor-list-view-sidebar__list-view-container{display:flex;flex-direction:column;height:100%}.editor-list-view-sidebar__list-view-container>.document-outline{padding:16px}.editor-list-view-sidebar__tab-panel{height:100%}.editor-list-view-sidebar__outline{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.editor-list-view-sidebar__outline>div>span:first-child{display:inline-block;width:90px}.editor-list-view-sidebar__outline>div>span{color:#757575;font-size:12px;line-height:1.4}.editor-post-order__panel,.editor-post-parent__panel{padding-top:8px}.editor-post-order__panel .editor-post-panel__row-control>div,.editor-post-parent__panel .editor-post-panel__row-control>div{width:100%}.editor-post-order__panel-dialog .editor-post-order,.editor-post-order__panel-dialog .editor-post-parent,.editor-post-parent__panel-dialog .editor-post-order,.editor-post-parent__panel-dialog .editor-post-parent{margin:8px}.editor-post-order__panel-dialog .components-popover__content,.editor-post-parent__panel-dialog .components-popover__content{min-width:320px}.editor-post-author__panel{padding-top:8px}.editor-post-author__panel .editor-post-panel__row-control>div{width:100%}.editor-post-author__panel-dialog .editor-post-author{margin:8px;min-width:248px}.editor-action-modal{z-index:1000001}.editor-post-card-panel__content{flex-grow:1}.editor-post-card-panel__title{width:100%}.editor-post-card-panel__title.editor-post-card-panel__title{align-items:center;-moz-column-gap:8px;column-gap:8px;display:flex;flex-wrap:wrap;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;margin:0;row-gap:4px;word-break:break-word}.editor-post-card-panel__icon{flex:0 0 24px;height:24px;width:24px}.editor-post-card-panel__header{display:flex;justify-content:space-between}.editor-post-card-panel.has-description .editor-post-card-panel__header{margin-bottom:8px}.editor-post-card-panel .editor-post-card-panel__title-name{padding:2px 0}.editor-post-card-panel .editor-post-card-panel__description,.editor-post-content-information{color:#757575}.editor-post-content-information .components-text{color:inherit}.editor-post-discussion__panel-dialog .editor-post-discussion{margin:8px;min-width:248px}.editor-post-discussion__panel-toggle .components-text{color:inherit}.editor-post-discussion__panel-dialog .components-popover__content{min-width:320px}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-excerpt__dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-featured-image{padding:0}.editor-post-featured-image .hidden{display:none}.editor-post-featured-image .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image),.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image),.editor-post-featured-image__container:hover .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image){opacity:1}.editor-post-featured-image__container .editor-post-featured-image__actions.editor-post-featured-image__actions-missing-image{margin-top:16px;opacity:1}.editor-post-featured-image__container .components-drop-zone__content{border-radius:2px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{border-color:#ccc;display:flex;justify-content:center;min-height:40px;outline-offset:-1px;overflow:hidden;padding:0;width:100%}.editor-post-featured-image__preview{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px;height:auto!important;outline:1px solid rgba(0,0,0,.1)}.editor-post-featured-image__preview .editor-post-featured-image__preview-image{aspect-ratio:2/1;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image){bottom:0;opacity:0;padding:8px;position:absolute}@media not (prefers-reduced-motion){.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image){transition:opacity 50ms ease-out}}.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image) .editor-post-featured-image__action{backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75)}.editor-post-featured-image__actions .editor-post-featured-image__action{flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-format__dialog .editor-post-format__dialog-content{margin:8px;min-width:248px}.editor-post-last-edited-panel{color:#757575}.editor-post-last-edited-panel .components-text{color:inherit}.editor-post-last-revision__title{font-weight:var(--wpds-typography-font-weight-emphasis,600);width:100%}.editor-post-last-revision__title.components-button.has-icon{height:100%;justify-content:space-between}.editor-post-last-revision__title.components-button.has-icon:active,.editor-post-last-revision__title.components-button.has-icon:hover{background:#f0f0f0}.editor-post-last-revision__title.components-button.has-icon:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-panel__body.is-opened.editor-post-last-revision__panel{height:48px;padding:0}.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button{padding:16px}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:50%;margin-top:16px;min-width:auto!important}.editor-post-panel__row{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.editor-post-panel__row-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;padding:6px 0;width:38%;word-break:break-word}.editor-post-panel__row-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.editor-post-panel__row-control .components-button{text-wrap:balance;text-wrap:pretty;font-weight:var(--wpds-typography-font-weight-default,400);height:auto;max-width:100%;min-height:32px;text-align:right;white-space:normal}.editor-post-panel__row-control .components-dropdown{max-width:100%}.editor-post-panel__section{padding:16px}.editor-post-publish-panel__content{min-height:calc(100% - 148px)}.editor-post-publish-panel__content>.components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:65px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-right:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;flex-shrink:0;height:36px;margin-left:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px;word-break:break-word}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{justify-content:center;padding-right:4px}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{align-items:center;display:inline-flex}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{font-weight:400;padding-right:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.editor-post-publish-panel__prepublish .components-panel__body-title .components-button{text-wrap:balance;text-wrap:pretty;align-items:flex-start}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none;word-break:break-word}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;gap:16px}.post-publish-panel__postpublish-buttons .components-button,.post-publish-panel__postpublish-buttons .components-button.has-icon{flex:1;justify-content:center;min-width:unset}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#f0f0f0;border-color:#ccc;height:36px;overflow:hidden;padding:12px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-right:16px}.post-publish-panel__postpublish-header{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-publish-panel{box-sizing:border-box}.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}.editor-post-publish-panel{background:#fff;bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.editor-post-publish-panel{border-right:1px solid #ddd;right:auto;top:32px;width:281px;z-index:99998}}@media (min-width:782px) and (not (prefers-reduced-motion)){.editor-post-publish-panel{animation:editor-post-publish-panel__slide-in-animation .1s forwards;transform:translateX(-100%)}}@media (min-width:782px){body.is-fullscreen-mode .editor-post-publish-panel{top:var(--wp-admin--admin-bar--height,0)}[role=region]:focus .editor-post-publish-panel{transform:translateX(0)}}@keyframes editor-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.editor-revisions-header__slider{width:100%}.editor-revisions-header__slider .components-range-control__tooltip{white-space:nowrap}.editor-revisions-header__no-revisions{color:#757575;font-size:13px}.editor-revisions-canvas__loading{align-items:center;display:flex;height:100%;justify-content:center}.editor-revisions-canvas__content{display:flex;height:100%}.editor-revisions-canvas__content .editor-visual-editor{flex:1;min-width:0}.editor-revisions-code-diff{background:#fff;color:#1e1e1e;height:100%;overflow:auto}.editor-revisions-code-diff:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.editor-revisions-code-diff__table{border:0;border-collapse:separate;border-spacing:0;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.6;min-width:-moz-max-content;min-width:max-content;width:100%}.editor-revisions-code-diff__line.is-added{background:rgba(0,163,42,.12)}.editor-revisions-code-diff__line.is-added>.editor-revisions-code-diff__line-number,.editor-revisions-code-diff__line.is-added>.editor-revisions-code-diff__marker{background:color-mix(in srgb,#00a32a 12%,#fff)}.editor-revisions-code-diff__line.is-removed{background:rgba(214,54,56,.12)}.editor-revisions-code-diff__line.is-removed>.editor-revisions-code-diff__line-number,.editor-revisions-code-diff__line.is-removed>.editor-revisions-code-diff__marker{background:color-mix(in srgb,#d63638 12%,#fff)}.editor-revisions-code-diff__line-number,.editor-revisions-code-diff__marker{background:#fff;box-sizing:border-box;color:#757575;padding:0 8px;position:sticky;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;z-index:1}.editor-revisions-code-diff__line-number{background:#f0f0f0;border-left:1px solid #e0e0e0;max-width:6ch;min-width:6ch;right:0;width:6ch}.editor-revisions-code-diff__line-number.is-previous+.editor-revisions-code-diff__line-number.is-current{right:6ch}.editor-revisions-code-diff__marker{border-left:1px solid #e0e0e0;font-weight:600;max-width:3ch;min-width:3ch;padding:0;right:12ch;text-align:center;width:3ch}.editor-revisions-code-diff__code{direction:ltr;padding:0 8px 0 16px;unicode-bidi:isolate;white-space:pre;width:100%}.editor-revisions-code-diff__code code{background:none;color:inherit;font:inherit;margin:0;padding:0}.editor-revisions-code-diff__empty{color:#757575;margin:0;padding:24px}.revision-diff-markers{background:rgba(0,0,0,.05);flex-shrink:0;position:relative;width:max(16px,1rem)}.revision-diff-markers .revision-diff-marker{border:none;cursor:var(--wpds-cursor-control,pointer);min-height:4px;padding:0;position:absolute;transition:opacity .1s ease;width:100%}.revision-diff-markers .revision-diff-marker.is-added{background:#008a20}.revision-diff-markers .revision-diff-marker.is-removed{background:repeating-linear-gradient(-45deg,#d63638,#d63638 6px,rgba(214,54,56,.45) 0,rgba(214,54,56,.45) 8px)}.revision-diff-markers .revision-diff-marker.is-modified{background:repeating-linear-gradient(45deg,#9a7000,#9a7000 6px,rgba(154,112,0,.45) 0,rgba(154,112,0,.45) 8px)}.revision-diff-markers .revision-diff-marker:hover{opacity:.7}.revision-diff-markers .revision-diff-marker:focus{outline:2px solid #1e1e1e;outline-offset:-2px}.interface-complementary-area:has(.editor-post-revisions-timeline){display:flex;flex-direction:column;overflow:hidden}.interface-complementary-area:has(.editor-post-revisions-timeline) .editor-sidebar__panel-tabs{flex-shrink:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline){display:flex;flex:1;flex-direction:column;min-height:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline) [role=tabpanel]:has(.editor-post-revisions-timeline){display:flex;flex:1;flex-direction:column;min-height:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline) .editor-revision-meta-diff__content{max-height:80px;overflow-y:auto}.editor-sidebar__panel:has(.editor-post-revisions-timeline) .editor-post-revisions-timeline{flex:1;min-height:0}.editor-revision-fields-diff__value{word-break:break-word}.editor-revision-fields-diff__added{background-color:color-mix(in srgb,currentColor 5%,#00a32a 15%);text-decoration:none}.editor-revision-fields-diff__removed{color:#d63638;text-decoration:line-through}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:transparent;color:#757575}.editor-post-saved-state svg{fill:currentColor;display:inline-block;flex:0 0 auto;margin-left:8px}@media (min-width:600px){.editor-post-saved-state{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-left:0}}.editor-post-save-draft.has-text.has-icon svg{margin-left:0}.editor-post-schedule__panel-dropdown{width:100%}.editor-post-schedule__dialog .components-popover__content{min-width:320px;padding:16px}.editor-post-status{max-width:100%}.editor-post-status.is-read-only{padding:6px 12px}.editor-post-status .editor-post-status__toggle.editor-post-status__toggle{padding-bottom:4px;padding-top:4px}.editor-change-status__password-fieldset,.editor-change-status__publish-date-wrapper{border-top:1px solid #e0e0e0;padding-top:16px}.editor-change-status__content .components-popover__content{min-width:320px;padding:16px}.editor-change-status__content .editor-change-status__password-legend{margin-bottom:8px;padding:0}.editor-change-status__content p.components-base-control__help:has(.components-checkbox-control__help){margin-top:4px}.editor-post-sticky__checkbox-control{border-top:1px solid #e0e0e0;padding-top:16px}.editor-post-sync-status__value{padding:6px 12px 6px 0}.editor-post-taxonomies__hierarchical-terms-list{margin-right:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-right:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-right:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-left:8px}.editor-sync-connection-error-modal{z-index:1000001}.editor-sync-connection-error-modal p{margin:0}.editor-sync-connection-error-modal__retry-countdown{color:#757575}.editor-post-template__swap-template-modal{z-index:1000001}.editor-post-template__swap-template-modal .editor-post-template__swap-template-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}.editor-post-template__create-template-modal{z-index:1000001}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px;padding-top:2px}@media (min-width:782px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.editor-post-template__dropdown .components-popover__content{min-width:240px}.editor-post-template__dropdown .components-button.is-pressed,.editor-post-template__dropdown .components-button.is-pressed:hover{background:inherit;color:inherit}.editor-post-template__classic-theme-dropdown{padding:8px}.editor-template-actions-panel__preview .block-editor-block-preview__container{aspect-ratio:4/3;border-radius:4px;display:flex;overflow:hidden}.editor-template-actions-panel__preview .block-editor-block-preview__container:after{border-radius:4px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}@media not (prefers-reduced-motion){.editor-template-actions-panel__preview .block-editor-block-preview__container:after{transition:outline .1s linear}}.editor-template-actions-panel__preview[role=button]{cursor:var(--wpds-cursor-control,pointer)}.editor-template-actions-panel__preview[role=button]:hover .block-editor-block-preview__container:after{outline-color:rgba(0,0,0,.3)}.editor-template-actions-panel__preview[role=button]:focus-visible .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.editor-template-actions-panel__action{flex:1;justify-content:center}textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;margin:0;min-height:200px;overflow:hidden;resize:none;width:100%}@media not (prefers-reduced-motion){textarea.editor-post-text-editor{transition:border .1s ease-out,box-shadow .1s linear}}textarea.editor-post-text-editor{padding:16px}@media (min-width:600px){textarea.editor-post-text-editor{padding:24px}}textarea.editor-post-text-editor{font-size:16px!important}@media (min-width:600px){textarea.editor-post-text-editor{font-size:15px!important}}textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62)}textarea.editor-post-text-editor::placeholder{color:rgba(30,30,30,.62)}.editor-post-title.is-raw-text{margin-bottom:24px;margin-top:2px;max-width:none}.editor-post-url__panel-dropdown{width:100%}.editor-post-url__panel-dialog .editor-post-url{margin:8px;min-width:248px}.editor-post-url__front-page-link,.editor-post-url__link{direction:ltr;word-break:break-word}.editor-post-url__front-page-link{border-radius:2px;color:var(--wp-admin-theme-color);padding:6px 12px}.editor-post-url__front-page-link:hover{background:color-mix(in srgb,var(--wp-admin-theme-color) 4%,transparent);color:var(--wp-admin-theme-color-darker-20,#183ad6)}.editor-post-url__front-page-link:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);outline:3px solid transparent}.editor-post-url__link-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-post-url__input input.components-input-control__input{padding-inline-start:0!important}.editor-post-parent__panel-toggle,.editor-post-url__panel-toggle{word-break:break-word}.editor-post-url__intro{margin:0}.editor-post-url__permalink{margin-bottom:0;margin-top:8px}.editor-post-url__permalink-visual-label{display:block}.editor-posts-per-page-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.editor-preview-dropdown .editor-preview-dropdown__toggle.has-icon.has-text{padding-left:4px;padding-right:6px}.editor-preview-dropdown.is-responsive-editing .editor-preview-dropdown__toggle{color:var(--wp-block-synced-color)}@media (prefers-reduced-motion:no-preference){.editor-resizable-editor:not(.is-resizing){transition:width .2s ease-out}}.editor-resizable-editor.is-resizable{margin:0 auto;overflow:visible}.editor-resizable-editor__resize-handle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:9999px;bottom:0;cursor:ew-resize;height:100px;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.editor-resizable-editor__resize-handle:after{background-color:hsla(0,0%,46%,.4);border-radius:9999px;bottom:16px;content:"";left:0;position:absolute;right:4px;top:16px;width:4px}.editor-resizable-editor__resize-handle.is-left{right:-18px}.editor-resizable-editor__resize-handle.is-right{left:-18px}.editor-resizable-editor__resize-handle:active,.editor-resizable-editor__resize-handle:focus,.editor-resizable-editor__resize-handle:hover{opacity:1}.editor-resizable-editor__resize-handle:active:after,.editor-resizable-editor__resize-handle:focus:after,.editor-resizable-editor__resize-handle:hover:after{background-color:var(--wp-admin-theme-color)}.editor-save-error-details{display:inline}.editor-save-error-details summary{cursor:var(--wpds-cursor-control,pointer);display:inline;margin-right:.35em}.editor-save-error-details__message{white-space:break-spaces}.editor-layout__toggle-entities-saved-states-panel,.editor-layout__toggle-publish-panel,.editor-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:0;padding:24px;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{bottom:0;top:auto}.editor-start-page-options__modal .editor-start-page-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:72px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.editor-start-page-options__modal .block-editor-block-patterns-list{padding-bottom:72px}.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:782px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column;margin-bottom:24px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}.editor-start-template-options__modal .editor-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.editor-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:782px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.components-panel__header.editor-sidebar__panel-tabs{padding-left:8px;padding-right:0}.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{padding:0}@media (min-width:782px){.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{display:flex}}.editor-post-summary .components-v-stack:empty{display:none}.editor-sidebar{box-sizing:border-box}.editor-sidebar *,.editor-sidebar :after,.editor-sidebar :before{box-sizing:inherit}.editor-sidebar__revisions-block-message{color:#757575;font-size:13px;padding:16px}.fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.editor-site-discussion-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-style-book{height:100%}.editor-style-book.is-button{border-radius:8px}.editor-style-book__iframe{display:block;height:100%;width:100%}.editor-style-book__iframe.is-button{border-radius:8px}.editor-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.editor-style-book__tabs{display:flex;flex-direction:column;height:100%}.editor-style-book__tablist-container{background:#fff;display:flex;flex:none;padding-left:56px;width:100%}.editor-style-book__tabpanel{flex:1 0 auto;overflow:auto}.editor-styles-canvas{background-color:var(--wp-editor-canvas-background);height:100%;padding:24px}.editor-styles-canvas iframe{display:block;height:100%;width:100%}.editor-styles-canvas__section{background:#fff;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.editor-styles-canvas__section{transition:all .3s}}.editor-styles-canvas__close-button{background:#fff;left:8px;position:absolute;top:8px;z-index:2}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-left:8px}.table-of-contents__count:nth-child(4n){padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:20px}.editor-text-editor{box-sizing:border-box}.editor-text-editor *,.editor-text-editor :after,.editor-text-editor :before{box-sizing:inherit}.editor-text-editor{background-color:#fff;flex-grow:1;isolation:isolate;position:relative;width:100%}.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){border:1px solid #949494;border-radius:0;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){padding:24px}}.editor-text-editor .editor-post-title.is-raw-text textarea:focus,.editor-text-editor .editor-post-title:not(.is-raw-text):focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.editor-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.editor-text-editor__body{padding:0 24px 24px}}.editor-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.editor-text-editor__toolbar{padding:12px}}@media (min-width:960px){.editor-text-editor__toolbar{padding:12px 24px}}.editor-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:40px;margin:0 0 0 auto}.editor-upload-progress-snackbar__check,.editor-upload-progress-snackbar__spinner{align-items:center;display:inline-flex;height:24px;justify-content:center;width:24px}.editor-upload-progress-snackbar__spinner .components-spinner{margin:0}.editor-upload-progress-snackbar__check svg{fill:currentColor;height:24px;width:24px}.editor-visual-editor{background-color:var(--wp-editor-canvas-background);display:flex;max-height:100%;position:relative}.editor-visual-editor iframe[name=editor-canvas]{background-color:transparent}.editor-visual-editor{align-items:center}@media (prefers-reduced-motion:no-preference){.editor-visual-editor{transition:padding .2s ease-out}}.editor-visual-editor.has-vertical-padding{padding-bottom:24px;padding-top:24px}.editor-visual-editor.has-horizontal-padding{padding-left:24px;padding-right:24px}.editor-visual-editor{overflow:hidden}.editor-visual-editor .components-button{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.editor-visual-editor .components-button.has-icon,.editor-visual-editor .components-button.is-tertiary{padding:6px}.editor-fields-content-preview{border-radius:4px;display:flex;flex-direction:column;height:100%}.dataviews-view-table .editor-fields-content-preview{flex-grow:0;width:96px}.editor-fields-content-preview .block-editor-block-preview__container,.editor-fields-content-preview .editor-fields-content-preview__empty{margin-bottom:auto;margin-top:auto}.editor-fields-content-preview__empty{text-align:center}.editor-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}.editor-push-changes-to-global-styles-modal p{margin-top:0}.editor-push-changes-to-global-styles-modal .dataviews-layout__container{overflow-x:hidden}@media (max-width:600px){.editor-push-changes-to-global-styles-modal .dataviews-layout__container{overflow-x:auto}}.editor-push-changes-to-global-styles-modal .components-modal__content{padding-bottom:0}.editor-push-changes-to-global-styles-modal .dataviews-footer{padding-bottom:24px}.editor-push-changes-to-global-styles-modal__value{color:#1e1e1e;overflow-wrap:anywhere}
\ No newline at end of file
diff --git a/wp-includes/css/dist/editor/style.css b/wp-includes/css/dist/editor/style.css
index 23a8f96b7f..bc03a1ff47 100644
--- a/wp-includes/css/dist/editor/style.css
+++ b/wp-includes/css/dist/editor/style.css
@@ -223,6 +223,7 @@
color: #1e1e1e;
height: 100%;
overflow: auto;
+ width: 100vw;
}
@media (min-width: 782px) {
@@ -385,7 +386,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
@media (min-width: 782px) {
.has-footer .interface-interface-skeleton__body {
- padding-bottom: 25px;
+ padding-bottom: calc(var(--wpds-dimension-size-md, 32px) + 1px);
}
}
.interface-interface-skeleton__content {
@@ -474,7 +475,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
z-index: 30;
display: flex;
background: #fff;
- height: 24px;
+ height: var(--wpds-dimension-size-md, 32px);
align-items: center;
font-size: 13px;
padding: 0 18px;
@@ -2475,7 +2476,7 @@ button.font-library__upload-area {
.dataviews-view-grid .dataviews-view-grid__media,
.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media {
width: 100%;
- aspect-ratio: 1/1;
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
background-color: var(--wpds-color-background-surface-neutral-strong, #fff);
border-radius: var(--wpds-border-radius-md, 4px);
overflow: hidden;
@@ -3222,6 +3223,17 @@ div.dataviews-view-list {
border-radius: var(--wpds-border-radius-md, 4px);
}
+.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media {
+ height: var(--wpds-dimension-size-md, 32px);
+ aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1);
+ min-width: 0;
+}
+
+.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img {
+ width: 100%;
+ height: 100%;
+}
+
.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),
.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) {
min-width: 15ch;
@@ -3875,11 +3887,6 @@ div.dataviews-view-list {
align-self: flex-end;
}
-.dataviews-controls__richtext [data-rich-text-placeholder]::after {
- content: attr(data-rich-text-placeholder);
- color: color-mix(in srgb, currentColor, transparent 38%);
-}
-
.dataviews-controls__datetime {
border: none;
padding: 0;
@@ -3912,6 +3919,51 @@ div.dataviews-view-list {
background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e);
}
+.dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop {
+ --wp-components-color-accent: #cc1818;
+ border-color: #cc1818;
+}
+
+.dataviews-validated-control__indicator {
+ display: flex;
+ align-items: flex-start;
+ gap: 4px;
+ margin: 8px 0 0;
+ font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
+ font-size: 12px;
+ line-height: 16px;
+ color: #757575;
+ animation: dataviews-validated-control__indicator-jump 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
+}
+
+.dataviews-validated-control__indicator.is-invalid {
+ color: #cc1818;
+}
+
+.dataviews-validated-control__indicator.is-valid {
+ color: color-mix(in srgb, #000 30%, #4ab866);
+}
+
+.dataviews-validated-control__indicator-icon {
+ flex-shrink: 0;
+}
+
+.dataviews-validated-control__indicator-spinner {
+ margin: 2px;
+ width: 12px;
+ height: 12px;
+}
+
+@keyframes dataviews-validated-control__indicator-jump {
+ 0% {
+ transform: translateY(-4px);
+ opacity: 0;
+ }
+ 100% {
+ transform: translateY(0);
+ opacity: 1;
+ }
+}
.dataforms-layouts-panel__field-trigger {
position: relative;
color: inherit;
@@ -5317,7 +5369,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
}
.media-editor__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
left: 0;
right: 0;
padding-inline: 16px;
@@ -5399,7 +5451,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
.media-editor-modal__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
left: 0;
right: 0;
padding-inline: 16px;
@@ -5818,6 +5870,9 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
color: var(--wpds-color-foreground-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 52%, black));
}
+.editor-collab-sidebar-panel__note-content {
+ overflow-wrap: break-word;
+}
.editor-collab-sidebar-panel__note-content p:last-child {
margin-bottom: 0;
}
@@ -5876,7 +5931,7 @@ fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields_
max-height: 418px;
overflow-y: auto;
white-space: pre-wrap;
- word-wrap: break-word;
+ overflow-wrap: break-word;
}
.editor-collab-sidebar-panel__note-form [role=textbox] code {
font-family: Menlo, Consolas, monaco, monospace;
@@ -5958,7 +6013,6 @@ mark.wp-note {
background: var(--wpds-color-background-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 9%, white));
color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9));
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
- white-space: nowrap;
}
@media (forced-colors: active) {
.wp-note-mention {
@@ -5970,6 +6024,11 @@ mark.wp-note {
border-radius: 50%;
}
+.editor-rich-text-control [data-rich-text-placeholder]::after {
+ content: attr(data-rich-text-placeholder);
+ color: color-mix(in srgb, currentColor, transparent 38%);
+}
+
.editor-avatar {
position: relative;
display: inline-flex;
@@ -6599,10 +6658,11 @@ mark.wp-note {
.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon.is-pressed {
background: #1e1e1e;
}
-.editor-document-tools .editor-document-tools__left > .components-button.has-icon:focus:not(:disabled),
-.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon:focus:not(:disabled) {
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
- outline: 1px solid transparent;
+.editor-document-tools .editor-document-tools__left > .components-button.has-icon:focus:not(:active),
+.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon:focus:not(:active) {
+ --focus-color: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
+ outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color);
+ outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
}
.editor-document-tools .editor-document-tools__left > .components-button.has-icon::before,
.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon::before {
@@ -7739,6 +7799,104 @@ mark.wp-note {
min-width: 0;
}
+.editor-revisions-code-diff {
+ height: 100%;
+ overflow: auto;
+ background: #fff;
+ color: #1e1e1e;
+}
+.editor-revisions-code-diff:focus-visible {
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
+ outline: none;
+}
+
+.editor-revisions-code-diff__table {
+ width: 100%;
+ min-width: -moz-max-content;
+ min-width: max-content;
+ border: 0;
+ border-collapse: separate;
+ border-spacing: 0;
+ font-family: Menlo, Consolas, monaco, monospace;
+ font-size: 15px;
+ line-height: 1.6;
+}
+
+.editor-revisions-code-diff__line.is-added {
+ background: rgba(0, 163, 42, 0.12);
+}
+.editor-revisions-code-diff__line.is-added > .editor-revisions-code-diff__line-number,
+.editor-revisions-code-diff__line.is-added > .editor-revisions-code-diff__marker {
+ background: color-mix(in srgb, #00a32a 12%, #fff);
+}
+.editor-revisions-code-diff__line.is-removed {
+ background: rgba(214, 54, 56, 0.12);
+}
+.editor-revisions-code-diff__line.is-removed > .editor-revisions-code-diff__line-number,
+.editor-revisions-code-diff__line.is-removed > .editor-revisions-code-diff__marker {
+ background: color-mix(in srgb, #d63638 12%, #fff);
+}
+
+.editor-revisions-code-diff__line-number,
+.editor-revisions-code-diff__marker {
+ position: sticky;
+ z-index: 1;
+ box-sizing: border-box;
+ padding: 0 8px;
+ background: #fff;
+ color: #757575;
+ text-align: right;
+ white-space: nowrap;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
+}
+
+.editor-revisions-code-diff__line-number {
+ left: 0;
+ width: 6ch;
+ min-width: 6ch;
+ max-width: 6ch;
+ border-right: 1px solid #e0e0e0;
+ background: #f0f0f0;
+}
+.editor-revisions-code-diff__line-number.is-previous + .editor-revisions-code-diff__line-number.is-current {
+ left: 6ch;
+}
+
+.editor-revisions-code-diff__marker {
+ left: 12ch;
+ width: 3ch;
+ min-width: 3ch;
+ max-width: 3ch;
+ border-right: 1px solid #e0e0e0;
+ padding: 0;
+ font-weight: 600;
+ text-align: center;
+}
+
+.editor-revisions-code-diff__code {
+ width: 100%;
+ padding: 0 16px 0 8px;
+ /*rtl:ignore*/
+ direction: ltr;
+ unicode-bidi: isolate;
+ white-space: pre;
+}
+.editor-revisions-code-diff__code code {
+ margin: 0;
+ padding: 0;
+ background: none;
+ color: inherit;
+ font: inherit;
+}
+
+.editor-revisions-code-diff__empty {
+ margin: 0;
+ padding: 24px;
+ color: #757575;
+}
+
.revision-diff-markers {
position: relative;
flex-shrink: 0;
@@ -8159,7 +8317,7 @@ textarea.editor-post-text-editor::placeholder {
@media (prefers-reduced-motion: no-preference) {
.editor-resizable-editor:not(.is-resizing) {
- transition: width 0.2s ease-out, height 0.2s ease-out;
+ transition: width 0.2s ease-out;
}
}
@@ -8209,6 +8367,20 @@ textarea.editor-post-text-editor::placeholder {
background-color: var(--wp-admin-theme-color);
}
+.editor-save-error-details {
+ display: inline;
+}
+
+.editor-save-error-details summary {
+ display: inline;
+ cursor: var(--wpds-cursor-control, pointer);
+ margin-left: 0.35em;
+}
+
+.editor-save-error-details__message {
+ white-space: break-spaces;
+}
+
.editor-layout__toggle-publish-panel,
.editor-layout__toggle-sidebar-panel,
.editor-layout__toggle-entities-saved-states-panel {
diff --git a/wp-includes/css/dist/editor/style.min.css b/wp-includes/css/dist/editor/style.min.css
index a5fa084e8d..f3ce5b1103 100644
--- a/wp-includes/css/dist/editor/style.min.css
+++ b/wp-includes/css/dist/editor/style.min.css
@@ -1 +1 @@
-@charset "UTF-8";.interface-complementary-area-header{background:#fff;gap:4px;padding-right:8px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0 auto 0 0}.interface-complementary-area{background:#fff;color:#1e1e1e;height:100%;overflow:auto}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}.interface-complementary-area p:not(.components-base-control__help,.components-form-token-field__help){margin-top:0}.interface-complementary-area h2{font-size:13px}.interface-complementary-area h2,.interface-complementary-area h3{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:var(--wp-admin--admin-bar--height,0)}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:-1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;right:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid transparent;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:var(--wp-admin--admin-bar--height,0)}}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.interface-pinned-items{gap:8px}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:90px;padding:0}.font-library-modal .font-library__subtitle{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.font-library-modal__tab-panel{height:calc(100% - 50px)}.font-library__tabpanel-layout{display:flex;flex-direction:column;height:100%}.font-library__tabpanel-layout>div{flex-grow:1}.font-library__tabpanel-layout .font-library__loading{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;left:0;padding-top:124px;position:absolute;top:0;width:100%}.font-library__footer,.font-library__tabpanel-layout .components-navigator-screen{padding:24px;width:100%}.font-library__footer{background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;flex-grow:0!important;flex-shrink:0;height:90px;position:absolute}.font-library__page-selection{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.font-library__page-selection .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.font-library__search{width:240px}.font-library__fonts-title{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library__fonts-list{list-style:none;margin-bottom:0;margin-top:0;padding:0}.font-library__fonts-list-item{margin-bottom:0}.font-library__font-card{border:1px solid #ddd;box-sizing:border-box;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library__font-card:hover{background-color:#f0f0f0}.font-library__font-card:focus{position:relative}.font-library__font-card .font-library__font-card__name{font-weight:700}.font-library__font-card .font-library__font-card__count{color:#757575}.font-library__font-card .font-library__font-variant_demo-image{display:block;height:24px;width:auto}.font-library__font-card .font-library__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library__font-card .font-library__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:1}.font-library__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library__upload-area{background-color:#f0f0f0}.font-library__local-fonts{margin:24px auto;width:80%}.font-library__local-fonts .font-library__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library__select-all{padding:16px 16px 16px 17px}.font-library__select-all .components-checkbox-control__label{padding-left:16px}.global-styles-ui-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.global-styles-ui-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.global-styles-ui-screen-revisions__revisions-list li{margin-bottom:0}.global-styles-ui-screen-revisions__revision-item{cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;position:relative}.global-styles-ui-screen-revisions__revision-item[role=option]:active,.global-styles-ui-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.global-styles-ui-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item:after,.global-styles-ui-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.global-styles-ui-screen-revisions__revision-item:before{background:#ddd;border:4px solid transparent;border-radius:50%;height:8px;left:17px;top:18px;transform:translate(-50%,-50%);width:8px;z-index:1}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid transparent;outline-offset:-2px}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes>li,.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta{color:#1e1e1e}.global-styles-ui-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;left:16px;top:0;width:0}.global-styles-ui-screen-revisions__revision-item:first-child:after{top:18px}.global-styles-ui-screen-revisions__revision-item:last-child:after{height:18px}.global-styles-ui-screen-revisions__revision-item-wrapper{display:block;padding:12px 12px 4px 40px}.global-styles-ui-screen-revisions__active-badge,.global-styles-ui-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:0 12px 12px 40px}.global-styles-ui-screen-revisions__changes,.global-styles-ui-screen-revisions__meta{color:#757575;font-size:12px}.global-styles-ui-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date{font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.global-styles-ui-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:left;width:100%}.global-styles-ui-screen-revisions__meta img{border-radius:100%;height:16px;margin-right:8px;width:16px}.global-styles-ui-screen-revisions__loading{margin:24px auto!important}.global-styles-ui-screen-revisions__changes{line-height:1.4;list-style:disc;margin-left:12px;text-align:left}.global-styles-ui-screen-revisions__changes li{margin-bottom:4px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination{gap:2px;justify-content:space-between}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total{height:1px;left:-1000px;margin:-1px;overflow:hidden;position:absolute}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled,.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.global-styles-ui-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.global-styles-ui-variations_item{box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{border-radius:2px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{transition:outline .1s linear}}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill{height:32px}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:rgba(0,0,0,.3)}.global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview,.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.global-styles-ui-preview__wrapper{display:block;max-width:100%;width:100%}.global-styles-ui-preview__wrapper.is-hoverable{cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:20px;min-height:100px;overflow:hidden}.global-styles-ui-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-styles-ui-font-size__item-value{color:#757575}.global-styles-ui-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.global-styles-ui-block-types-search{margin-bottom:10px;padding:0 16px}.global-styles-ui-screen-typography__font-variants-count{color:#757575}.global-styles-ui-font-families__manage-fonts{justify-content:center}.global-styles-ui-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.global-styles-ui-header{line-height:1.9!important;margin-bottom:0!important}.global-styles-ui-subtitle{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)!important;margin-bottom:0!important;text-transform:uppercase}.global-styles-ui-section-title{color:#2f2f2f;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.2;margin:0;padding:16px 16px 0}.global-styles-ui-icon-with-current-color{fill:currentColor}.global-styles-ui__color-indicator-wrapper{flex-shrink:0;height:24px}.global-styles-ui__shadows-panel__options-container,.global-styles-ui__typography-panel__options-container{height:24px}.global-styles-ui__block-preview-panel{border:1px solid #ddd;border-radius:2px;overflow:hidden;position:relative;width:100%}.global-styles-ui__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #ddd;border-radius:2px;height:144px;overflow:auto}.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block{background-color:#fff;border:1px solid #ddd;border-radius:2px;height:60px;width:60%}.global-styles-ui__shadow-editor__dropdown-content{width:280px}.global-styles-ui__shadow-editor-panel{margin-bottom:4px}.global-styles-ui__shadow-editor__dropdown{position:relative;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:left;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.global-styles-ui__shadow-editor__remove-button{opacity:0;position:absolute;right:8px;top:8px}.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button{border:none}.global-styles-ui__shadow-editor__dropdown-toggle:hover+.global-styles-ui__shadow-editor__remove-button,.global-styles-ui__shadow-editor__remove-button:focus,.global-styles-ui__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.global-styles-ui__shadow-editor__remove-button{opacity:1}}.global-styles-ui-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel{flex:1 1 auto}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input,.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea{flex:1 1 auto}.global-styles-ui-screen-css-help-link{display:inline-block;margin-top:8px}.global-styles-ui-screen-variations{border-top:1px solid #ddd;margin-top:16px}.global-styles-ui-screen-variations>*{margin:24px 16px}.global-styles-ui-sidebar__navigator-provider{height:100%}.global-styles-ui-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.global-styles-ui-color-palette__tablist-container{border-bottom:1px solid #ddd}.global-styles-ui-color-palette__tablist{margin-bottom:-1px}.global-styles-ui-sidebar__navigator-screen .single-column{grid-column:span 1}.global-styles-ui-screen-root.global-styles-ui-screen-root,.global-styles-ui-screen-style-variations.global-styles-ui-screen-style-variations{background:unset;color:inherit}.global-styles-ui-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile,.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile .global-styles-ui-screen-root__active-style-tile-preview{border-radius:2px}.global-styles-ui-screen-root__active-style-tile-preview{clip-path:border-box}.dataviews-picker-wrapper,.dataviews-wrapper{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;flex-grow:1;font-size:var(--wpds-typography-font-size-md,13px);height:100%;line-height:var(--wpds-typography-line-height-sm,20px);min-height:0;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{background-color:inherit;box-sizing:border-box;flex-shrink:0;left:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews__search{flex-grow:1}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-no-results.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-no-results.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@keyframes dataviews-pulse{0%,to{opacity:1}50%{opacity:.5}}.dataviews-loading-more{text-align:center}.dataviews-loading-more[aria-hidden=true]{visibility:hidden}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}}.dataviews-title-field{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-emphasis,600);text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field a{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer)}.dataviews-title-field--clickable:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews__view-actions--infinite-scroll{background-color:#fff;position:sticky;top:0;z-index:2}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:var(--wpds-dimension-padding-sm,8px) 0 0}.dataviews-bulk-actions-footer__item-count{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-bulk-actions-footer__container{margin-right:auto;min-height:var(--wpds-dimension-size-md,32px)}.dataviews-layout__container{background-color:inherit;display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.dataviews-filters__summary-popover .components-popover__content{border-radius:var(--wpds-border-radius-md,4px);max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px);position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:var(--wpds-color-background-interactive-brand-weak,transparent);border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:transparent;border:0;border-radius:var(--wpds-border-radius-md,4px);cursor:var(--wpds-cursor-control,pointer);display:flex;height:var(--wpds-dimension-size-sm,24px);justify-content:center;padding:0;position:absolute;right:var(--wpds-dimension-padding-xs,4px);top:50%;transform:translateY(-50%);width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);max-height:184px;overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__search-widget-listbox{overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:var(--wpds-border-radius-sm,2px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:default;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);gap:var(--wpds-dimension-gap-md,12px);line-height:20px;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px)}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-sm,12px);line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-right:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);border:4px solid var(--wpds-color-foreground-interactive-brand-strong,#fff);border-radius:50%;box-sizing:inherit;content:"";height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex-shrink:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-interactive-neutral-weak,transparent);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);height:var(--checkmark-size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:var(--wpds-dimension-padding-sm,8px);position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:var(--wpds-dimension-size-md,32px);margin-left:0;margin-right:0;padding:0 var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-size-md,32px);width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:var(--wpds-typography-font-size-md,13px)}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:var(--wpds-color-background-surface-neutral-strong,#fff);box-shadow:inset 0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:var(--wpds-dimension-gap-md,12px);justify-content:center;position:absolute;top:0;width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);font-size:11px;height:var(--wpds-dimension-size-2xs,16px);line-height:var(--wpds-typography-line-height-xs,16px);min-width:var(--wpds-dimension-size-2xs,16px);outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-background-surface-neutral-strong,#fff);padding:0 var(--wpds-dimension-padding-xs,4px);position:absolute;right:0;text-align:center;top:0;transform:translate(50%,-50%)}.dataviews-search{flex-basis:210px}.dataviews-filters__user-input-widget{padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-left:var(--wpds-dimension-padding-sm,8px)}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-footer{background-color:inherit;border-top:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;flex-shrink:0;left:0;padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px);position:sticky}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:1}.dataviews-footer .is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-footer .is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@container (max-width: 560px){.dataviews-footer__content{flex-direction:column!important}.dataviews-footer__content .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer__content .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer__content .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.dataviews-action-modal{z-index:1000001}.dataviews-item-actions .components-button:not(.dataviews-all-actions-button){padding:0 var(--wpds-dimension-padding-xs,4px)}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:var(--wpds-typography-line-height-md,24px)}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-view-config__sort-controls>*{flex:1}.dataviews-view-config__label{text-wrap:nowrap}.dataviews-view-config__toggle-wrapper{display:inline-flex;position:relative}.dataviews-view-config__modified-indicator{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:50%;height:var(--wpds-dimension-gap-xs,4px);pointer-events:none;position:absolute;right:var(--wpds-dimension-gap-xs,4px);top:var(--wpds-dimension-gap-xs,4px);width:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:var(--wpds-dimension-gap-xl,24px);grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid-items.has-compact-density{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid-items.has-comfortable-density{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid{container-type:inline-size;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xl,24px);margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid{transition:padding .1s ease-out}}.dataviews-view-grid.has-compact-density,.dataviews-view-grid.has-compact-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid.has-comfortable-density,.dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid .dataviews-view-grid__row{display:grid;gap:var(--wpds-dimension-gap-xl,24px)}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell{border-radius:var(--wpds-border-radius-md,4px);position:relative}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";height:100%;left:0;outline:2px solid transparent;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__card,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-grid .dataviews-view-grid__media,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media.dataviews-view-grid__media--placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media.dataviews-view-grid__media--placeholder{aspect-ratio:3/1}.dataviews-view-grid .dataviews-view-grid__media img,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder{background:var(--wpds-color-background-surface-neutral,#fcfcfc);border-radius:var(--wpds-border-radius-md,4px);box-shadow:none;display:block;height:100%;width:100%}.dataviews-view-grid .dataviews-view-grid__fields,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{left:var(--wpds-dimension-padding-sm,8px);opacity:0;position:absolute;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:0;position:absolute;right:var(--wpds-dimension-padding-xs,4px);top:var(--wpds-dimension-padding-xs,4px);z-index:1}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:var(--wpds-color-background-surface-neutral-strong,#fff)}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:var(--wpds-dimension-padding-xs,4px)}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-grid__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);container-type:inline-size;font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:var(--wpds-dimension-gap-xs,4px);white-space:nowrap;width:-moz-max-content;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:var(--wpds-color-background-interactive-brand-weak,transparent);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-view-list .dataviews-view-list__item{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:var(--wpds-cursor-control,pointer);inset:0;padding:0;position:absolute;scroll-margin:var(--wpds-dimension-gap-sm,8px) 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;height:48px;overflow:hidden;position:relative;width:48px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:48px;min-width:0}.dataviews-view-list .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.dataviews-view-list .dataviews-view-list__fields{display:flex;flex-wrap:wrap;font-size:12px;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper{height:var(--wpds-dimension-size-md,32px);width:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__field-wrapper{min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-sm,8px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xl,32px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper{height:64px;width:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper{min-height:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-lg,16px);row-gap:var(--wpds-dimension-gap-sm,8px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-list.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-list__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-lg,16px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table{background-color:inherit;border-collapse:collapse;border-color:inherit;color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;text-align:left}.dataviews-view-table td,.dataviews-view-table th{padding:var(--wpds-dimension-padding-md,12px)}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:right}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));position:sticky;right:0}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{background-color:inherit;border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0)}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}@media (hover:none){.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}.dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff))}.dataviews-view-table.has-bulk-actions tr.is-selected .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table thead{background-color:inherit;inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead.dataviews-view-table__thead--stuck:after{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:inherit;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding-bottom:var(--wpds-dimension-padding-sm,8px);padding-top:var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button){padding-left:var(--wpds-dimension-padding-xs,4px);padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button{gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child{padding-left:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child{padding-right:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:var(--wpds-dimension-size-md,32px);white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{font-variant-numeric:tabular-nums;justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-left:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:0}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:last-child){padding-right:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px)}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-md,12px)}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;max-width:60px;min-height:var(--wpds-dimension-size-md,32px);min-width:var(--wpds-dimension-size-md,32px);overflow:hidden;position:relative}.dataviews-column-primary__media img{height:var(--wpds-dimension-size-md,32px);-o-object-fit:cover;object-fit:cover;width:var(--wpds-dimension-size-md,32px)}.dataviews-column-primary__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand){width:1%}.dataviews-view-table.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-table.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);min-height:0;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{left:var(--wpds-dimension-padding-sm,8px);position:absolute;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-grid-group__header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 48px}.dataviews-view-picker-table{background-color:inherit}.dataviews-view-picker-table .dataviews-view-table__checkbox-column{width:48px}.dataviews-view-picker-table tbody:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-table tbody:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input{opacity:1;pointer-events:none}.dataviews-view-picker-table .dataviews-view-table__row{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-table .dataviews-view-table__row.is-hovered,.dataviews-view-picker-table .dataviews-view-table__row.is-selected,.dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-activity{margin:0 0 auto;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-activity .dataviews-view-activity__group-header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0}.dataviews-view-activity .dataviews-view-activity__item-actions{min-width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item-content{flex-grow:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible{border-radius:var(--wpds-border-radius-sm,2px);outline:var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wp-admin-border-width-focus)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions{display:flex;flex:0 0 auto;width:-moz-max-content;width:max-content}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions .components-button{position:relative;z-index:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty{display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field:has(.dataviews-view-activity__item-field-value:empty){display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field-value{align-items:center;display:flex}.dataviews-view-activity .dataviews-view-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-activity .dataviews-view-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item:first-child .dataviews-view-activity__item-type:before{visibility:hidden}.dataviews-view-activity .dataviews-view-activity__group:last-of-type>.dataviews-view-activity__item:last-of-type .dataviews-view-activity__item-type:after,.dataviews-view-activity>.dataviews-view-activity__item:last-child .dataviews-view-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-activity .dataviews-view-activity__item-type-icon{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);flex-shrink:0;overflow:hidden}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item-type-icon img,.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:""}.dataviews-view-activity.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-activity.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-activity+.dataviews-pagination{justify-content:space-between}.dataviews-view-picker-activity{flex-grow:1;margin:0;padding:0}.dataviews-view-picker-activity:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-activity:focus-visible .dataviews-view-picker-activity__item[data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item{border-radius:var(--wpds-border-radius-sm,2px);cursor:var(--wpds-cursor-control,pointer);padding-inline:var(--wpds-dimension-padding-2xl,24px);transition:background-color .1s ease}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected,.dataviews-view-picker-activity .dataviews-view-picker-activity__item:hover{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected{outline:3px solid transparent;outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content{flex-grow:1}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field:has(.dataviews-view-picker-activity__item-field-value:empty){display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field-value{align-items:center;display:flex}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item:first-child .dataviews-view-picker-activity__item-type:before{visibility:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity-group:last-of-type>.dataviews-view-picker-activity__item:last-of-type .dataviews-view-picker-activity__item-type:after,.dataviews-view-picker-activity>.dataviews-view-picker-activity__item:last-child .dataviews-view-picker-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-picker-activity .dataviews-view-picker-activity-group__header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0;padding-inline-start:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon{background-color:transparent;flex-shrink:0;overflow:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon img,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:var(--wpds-dimension-size-md,32px)}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-controls__richtext [data-rich-text-placeholder]:after{color:color-mix(in srgb,currentColor,transparent 38%);content:attr(data-rich-text-placeholder)}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-range-inputs>*{min-width:0}.dataviews-controls__color-picker-dropdown{display:flex}.dataviews-controls__date-preset{border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-controls__date-preset:active{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}.dataforms-layouts-panel__field-trigger{align-items:flex-start;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;isolation:isolate;min-height:var(--wpds-dimension-size-sm,24px);position:relative;width:100%}.dataforms-layouts-panel__field-trigger--label-side{flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px)}.dataforms-layouts-panel__field-trigger--label-top{display:grid;grid-template-columns:1fr auto}.dataforms-layouts-panel__field-trigger--label-none{align-items:center}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon{opacity:1}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger.is-disabled{cursor:default}.dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400)}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon{fill:currentColor;opacity:1}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible,.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger-icon{border-radius:var(--wpds-border-radius-xs,1px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));flex:0 0 auto;opacity:0;padding:0}.dataforms-layouts-panel__field-trigger-icon:focus-visible{opacity:1;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-dropdown-anchor,.dataforms-layouts-panel__field-dropdown-anchor .components-dropdown{width:100%}.dataforms-layouts-panel__field-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);width:38%}.dataforms-layouts-panel__field-label .components-base-control__label{display:inline;line-height:inherit;margin-bottom:0}.dataforms-layouts-panel__field-label-error-content,.dataforms-layouts-panel__field-label.has-error{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}.dataforms-layouts-panel__field-label-error-content{align-items:center;cursor:help;display:inline-flex;flex-direction:row;gap:var(--wpds-dimension-gap-xs,4px);position:relative;z-index:1}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-md,24px);margin-inline:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1);min-height:var(--wpds-dimension-size-sm,24px);min-width:0;overflow:clip;padding-inline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));word-break:break-word}.dataforms-layouts-panel__field-control>*{min-width:0}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-label{width:100%}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-control{grid-column:1/-1}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-trigger-icon{grid-column:2;grid-row:1}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:var(--wpds-dimension-padding-lg,16px)}.dataforms-layouts-panel__dropdown-header{margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-panel__modal-footer{margin-top:var(--wpds-dimension-gap-lg,16px)}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-panel__summary-button:empty{min-width:160px}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:var(--wpds-dimension-size-md,32px);width:100%}.dataforms-layouts-regular__field .components-base-control__label,.dataforms-layouts-regular__field .components-form-token-field__label,.dataforms-layouts-regular__field .components-input-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-md,32px);width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-label .components-base-control__label{margin-bottom:0}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:var(--wpds-dimension-size-md,32px)}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-header-content{min-height:24px}.dataforms-layouts-card__field-header-content-description{display:contents}.dataforms-layouts-card__field-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-md,13px);margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-card__field-summary{align-items:center;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-details__summary-content{display:inline-flex;min-height:var(--wpds-dimension-size-sm,24px)}.dataforms-layouts-details__content{padding-top:var(--wpds-dimension-padding-md,12px)}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{grid-gap:4px 8px;align-items:center;color:#1e1e1e;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:var(--wpds-cursor-control,pointer)}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid transparent}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{text-wrap:pretty;color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}fieldset.fields__media-edit{border:0;margin:0;padding:0;width:100%}fieldset.fields__media-edit .components-base-control__label{color:#1e1e1e}fieldset.fields__media-edit .fields__media-edit-description{font-size:12px;line-height:1.5}fieldset.fields__media-edit{container-type:inline-size}fieldset.fields__media-edit .fields__media-edit-compact-group{border:1px dashed #949494;border-radius:4px;overflow:hidden}fieldset.fields__media-edit .fields__media-edit-compact-group.is-single{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button{border:0;border-radius:0}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-compact:not(:last-child){border-bottom:1px solid #f0f0f0}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-compact{min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-compact:focus-within .fields__media-edit-compact-movers,fieldset.fields__media-edit .fields__media-edit-compact:hover .fields__media-edit-compact-movers{opacity:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers{background:#fff;border-radius:2px;opacity:0;pointer-events:none;position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-picker-button{align-items:center;border:1px dashed #949494;border-radius:2px;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;min-height:40px;min-width:0;padding:4px 8px;position:relative}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment){border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment):hover{background-color:color-mix(in srgb,var(--wp-admin-theme-color,#3858e9) 4%,transparent);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}fieldset.fields__media-edit .fields__media-edit-picker-button:hover{color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}fieldset.fields__media-edit .fields__media-edit-picker-button[aria-disabled=true]{cursor:default;opacity:.6}fieldset.fields__media-edit .fields__media-edit-picker-button .fields__media-edit-picker-button-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-filename,fieldset.fields__media-edit .fields__media-edit-placeholder{flex:1;min-width:0;width:100%}fieldset.fields__media-edit .fields__media-edit-placeholder{text-align:center}fieldset.fields__media-edit .fields__media-edit-thumbnail{aspect-ratio:1/1;border-radius:2px;flex-shrink:0;width:24px}fieldset.fields__media-edit .fields__media-edit-expanded{display:grid;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);border-radius:2px;display:flex;justify-content:center;overflow:hidden;padding:4px;position:relative;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview .fields__media-edit-expanded-preview-stack{height:100%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-actions{background:#fff;border-radius:2px;position:absolute;right:4px;top:4px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item{border-radius:4px;min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:focus-within .fields__media-edit-expanded-overlay,fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:hover .fields__media-edit-expanded-overlay{opacity:1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:not(.has-preview-image) .fields__media-edit-expanded-preview-stack{padding:8px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-thumbnail{height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-filename{flex:none;text-align:center}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button-spinner svg{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded.is-single{grid-template-columns:1fr}fieldset.fields__media-edit .fields__media-edit-expanded.is-single .fields__media-edit-expanded-preview{aspect-ratio:2/1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button{border-radius:4px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media-edit-picker-button{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}@container (max-width: 500px){fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-picker-button{padding:0}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-placeholder{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);display:flex;justify-content:center}.fields-controls__author-avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:left;overflow:hidden;width:24px}.fields-controls__author-avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.fields-controls__author-avatar img{transition:opacity .1s linear}}.fields-controls__author-avatar.is-loaded img{opacity:1}.fields-controls__author-icon{display:flex;flex-shrink:0;height:24px;width:24px}.fields-controls__author-icon svg{fill:currentColor;margin-left:-4px}.fields-controls__author-name{overflow:hidden;text-overflow:ellipsis}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-left:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.fields-controls__featured-image-image,.fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.fields-controls__parent,.fields-controls__password{border:0;margin:0;padding:0}.fields-controls__status-icon{height:24px;width:24px}.fields-controls__status-icon svg{fill:currentColor;margin-left:-4px}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}.media-editor-preview{align-items:center;box-sizing:border-box;display:flex;justify-content:center;min-height:100%;padding:32px;position:relative}.media-editor-preview__spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.media-editor-preview--loading{height:100%;width:100%}.media-editor-preview--image img{height:auto;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;opacity:0;width:auto}@media not (prefers-reduced-motion){.media-editor-preview--image img.loaded{animation:__wp-base-styles-fade-in .08s linear 0s;animation-fill-mode:forwards}}.media-editor-preview--video video{height:auto;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;width:auto}.media-editor-preview--audio audio{max-width:100%}.media-editor-preview--file{text-align:center}.media-editor-preview__file-info{background:#f0f0f0;border-radius:2px;padding:24px}.media-editor-preview__file-name{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:8px}.media-editor-preview__mime-type{color:#757575;font-size:.9em;margin-bottom:16px}.media-editor-preview__download-link{display:inline-block;margin-top:8px}.media-editor-preview--empty,.media-editor-preview--error{color:#757575;text-align:center}.media-editor-preview__url{color:#949494;font-size:.9em;margin-top:8px;word-break:break-all}.wp-media-editor-image-editor{cursor:grab;height:100%;overflow:hidden;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.wp-media-editor-image-editor__canvas{inset:24px;min-height:100px;min-width:100px;position:absolute}.wp-media-editor-image-editor__canvas:focus{outline:none}.wp-media-editor-image-editor__stage{inset:0;position:absolute}.wp-media-editor-image-editor--dragging{cursor:grabbing}.wp-media-editor-image-editor__image{left:0;position:absolute;top:0;transform-origin:center center;will-change:transform}.wp-media-editor-image-editor__stencil{pointer-events:none;position:absolute}.wp-media-editor-image-editor__dimming{box-shadow:0 0 0 9999px hsla(0,0%,88%,.6);pointer-events:none;position:absolute;transition:box-shadow .15s ease}.wp-media-editor-image-editor--dragging .wp-media-editor-image-editor__dimming{box-shadow:0 0 0 9999px hsla(0,0%,88%,.4)}.wp-media-editor-image-editor__grid{overflow:hidden;pointer-events:none;position:absolute;transition:opacity .15s ease}.wp-media-editor-image-editor__canvas--grid-interactive .wp-media-editor-image-editor__grid{opacity:0;transition-delay:.1s}.wp-media-editor-image-editor__canvas--show-grid .wp-media-editor-image-editor__grid{opacity:1;transition-delay:0s}.wp-media-editor-image-editor__canvas--settling .wp-media-editor-image-editor__grid{opacity:0;transition:none}.wp-media-editor-image-editor__grid-line{background:hsla(0,0%,100%,.4);position:absolute}.wp-media-editor-image-editor__grid-line--horizontal{height:1px;left:0;width:100%}.wp-media-editor-image-editor__grid-line--vertical{height:100%;top:0;width:1px}.wp-media-editor-image-editor__dimensions-tooltip{background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.08);color:#1e1e1e;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.4;padding:2px 6px;pointer-events:none;position:absolute;white-space:nowrap;z-index:2}.wp-media-editor-image-editor__stencil-rect{border:1px solid #1e1e1e;box-sizing:border-box;pointer-events:none;position:absolute;transition:border-color .15s ease,box-shadow .15s ease}.wp-media-editor-image-editor__canvas--focus-visible:focus .wp-media-editor-image-editor__stencil-rect{border-color:var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba));box-shadow:0 0 0 1px var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba))}.wp-media-editor-image-editor__handle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:1px solid var(--wp-admin-theme-color,#007cba);border-radius:50%;box-sizing:border-box;cursor:default;font:inherit;height:12px;margin:0;padding:0;pointer-events:auto;position:absolute;transition:background-color .15s ease,box-shadow .15s ease;width:12px}.wp-media-editor-image-editor__handle:focus{outline:none}.wp-media-editor-image-editor__canvas--focus-visible .wp-media-editor-image-editor__handle:focus{background:var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba));border-color:transparent;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba))}.wp-media-editor-image-editor__handle:before{content:"";height:44px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:44px}.wp-media-editor-image-editor__handle--n{cursor:ns-resize;left:50%;margin-left:-6px;top:-6px}.wp-media-editor-image-editor__handle--s{bottom:-6px;cursor:ns-resize;left:50%;margin-left:-6px}.wp-media-editor-image-editor__handle--e{cursor:ew-resize;margin-top:-6px;right:-6px;top:50%}.wp-media-editor-image-editor__handle--w{cursor:ew-resize;left:-6px;margin-top:-6px;top:50%}.wp-media-editor-image-editor__handle--nw{cursor:nwse-resize;left:-6px;top:-6px}.wp-media-editor-image-editor__handle--ne{cursor:nesw-resize;right:-6px;top:-6px}.wp-media-editor-image-editor__handle--sw{bottom:-6px;cursor:nesw-resize;left:-6px}.wp-media-editor-image-editor__handle--se{bottom:-6px;cursor:nwse-resize;right:-6px}.media-editor{display:flex;flex:1;flex-direction:column;height:100%;min-height:0}.media-editor .media-editor__loading{align-items:center;display:flex;height:100%;justify-content:center}.media-editor .interface-interface-skeleton{bottom:auto;flex:1;flex-direction:column;height:100%;left:auto;max-height:none;position:relative;right:auto;top:auto}.media-editor-modal .media-editor .interface-interface-skeleton.interface-interface-skeleton{top:auto}.media-editor .interface-interface-skeleton__editor{flex:1;min-width:0}.media-editor .media-editor__content{border-radius:8px;display:flex;flex:1;flex-direction:column;margin:0 24px;min-height:0;overflow:hidden}.media-editor .media-editor__canvas-toolbar{background:#e0e0e0;display:flex;flex-shrink:0;justify-content:center;padding:8px 16px}.media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation{flex:0 1 360px;min-width:0}.media-editor .media-editor__canvas-area{align-items:center;background:#e0e0e0;display:flex;flex:1;justify-content:center;min-height:0;overflow:auto}.media-editor .media-editor__canvas-area .media-editor-preview{height:100%}.media-editor .media-editor__canvas-area img,.media-editor .media-editor__canvas-area video{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.media-editor .media-editor__sidebar{box-sizing:border-box}.media-editor .media-editor__sidebar *,.media-editor .media-editor__sidebar :after,.media-editor .media-editor__sidebar :before{box-sizing:inherit}@media (min-width:600px){.media-editor .media-editor__sidebar{padding-left:1px}}.media-editor .media-editor__sidebar-panel{padding-bottom:24px}.media-editor .interface-interface-skeleton__sidebar{border-top:0;box-shadow:none;outline:1px solid transparent}.media-editor .media-editor__panel{padding:16px}@media (min-width:600px){.media-editor .media-editor__panel{padding:24px 24px 0 0}}.media-editor .components-panel__header.media-editor__sidebar-header{margin-right:0;padding-left:0;padding-right:8px}@media (min-width:600px){.media-editor .components-panel__header.media-editor__sidebar-header{margin-right:24px}}.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon{padding:0}@media (min-width:600px){.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon{display:flex}}@media (min-width:600px) and (max-width:781px){.media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill){position:relative!important}.media-editor .interface-complementary-area,.media-editor .interface-complementary-area__fill{width:280px!important}}@media (max-width:599px){.media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill){width:100%}.media-editor .interface-complementary-area,.media-editor .interface-complementary-area__fill{width:100%!important}}.media-editor__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-editor__snackbar .components-snackbar{margin-inline:auto}.media-editor-form .dataforms-layouts-panel__field-control{text-wrap:pretty}.media-editor-modal.components-modal__frame .components-modal__content{display:flex;flex-direction:column;margin-bottom:0;min-height:0;padding:0}.media-editor-modal.components-modal__frame .components-modal__children-container{display:flex;flex:1;flex-direction:column;min-height:0}.media-editor-modal.components-modal__frame .media-editor-modal__footer{background:#fff;display:flex;flex-shrink:0;gap:16px;padding:16px 32px 24px;z-index:1000001}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide{align-items:center;flex-direction:row}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor__footer-actions{margin-left:auto}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow{flex-direction:column}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow>.media-editor-image-controls{align-self:center}.media-editor-modal__footer-row{align-items:center;display:flex;flex-wrap:wrap;gap:16px}.media-editor-modal__footer-row .media-editor-image-controls,.media-editor-modal__footer-row .media-editor__footer-actions{margin-left:auto}.media-editor__history-actions .components-button.has-icon:not([aria-disabled=true]){color:var(--wp-admin-theme-color)}.media-editor-modal,.media-editor-modal__snackbar{display:flex;flex-direction:column}.media-editor-modal__snackbar{bottom:24px;box-sizing:border-box;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-editor-modal__snackbar .components-snackbar{margin-inline:auto}.media-editor-modal__snackbar{z-index:1000001}.media-editor-canvas{height:100%;position:relative;width:100%}.media-editor-canvas__cropper{height:100%;opacity:0;pointer-events:none;width:100%}.media-editor-canvas__cropper.is-loaded{opacity:1;pointer-events:auto}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.media-editor-canvas__cropper.is-loaded{animation:__wp-base-styles-fade-in .2s linear 0s;animation-fill-mode:forwards}}.media-editor-canvas__spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.media-editor-canvas__error{align-items:center;color:#757575;display:flex;height:100%;justify-content:center;text-align:center;width:100%}.media-editor-image-controls{align-items:center;display:flex;flex-wrap:nowrap;gap:8px}.media-editor-image-controls.is-stacked{align-items:flex-start;flex-direction:column;gap:24px}.media-editor-image-controls__transforms{display:flex;gap:48px}.media-editor-image-controls__group{display:flex;flex-direction:column;gap:4px}.media-editor-image-controls__label{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;text-transform:uppercase}.media-editor-image-controls__buttons{display:flex;gap:8px;padding-inline:2px 0}.media-editor-keyboard-shortcuts-modal{min-width:280px}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__note{color:#757575;font-size:13px;margin:0 0 16px}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-list{list-style:none;margin:0;padding:0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut:last-child{border-bottom:1px solid #ddd}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-description{flex:1;margin:0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-term{background:none;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 0 1rem;padding:0;text-align:right}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.rotation-ruler{box-sizing:border-box;color:#1e1e1e;container-type:inline-size;cursor:ew-resize;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:32px;min-width:180px;padding:0 8px;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rotation-ruler[data-disabled]{cursor:default;opacity:.5;pointer-events:none}.rotation-ruler:has(.rotation-ruler__input:focus-visible){border-radius:4px;outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:2px}.rotation-ruler__input{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.rotation-ruler__pointer{background:var(--wp-admin-theme-color,#3858e9);border-radius:1px;bottom:0;height:18px;left:50%;pointer-events:none;position:absolute;transform:translateX(-50%);width:2px}.rotation-ruler__strip{inset:0;mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent);overflow:hidden;position:absolute}.rotation-ruler__ticks{display:block;left:50%;overflow:visible;position:absolute;top:0}.rotation-ruler__tick{stroke:currentColor;stroke-width:1}.rotation-ruler__tick--minor{opacity:.35}.rotation-ruler__tick--mid{opacity:.6}.rotation-ruler__tick--major{opacity:1}.rotation-ruler__label{fill:currentColor;font-size:10px;font-weight:400;opacity:.45}.rotation-ruler__active-label{color:#1e1e1e;font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:14px;left:50%;line-height:14px;pointer-events:none;position:absolute;top:0;transform:translateX(-50%)}.rotation-ruler__active-label:before{background:linear-gradient(90deg,transparent 0,#e0e0e0 12px,#e0e0e0 calc(100% - 12px),transparent);content:"";height:100%;left:50%;position:absolute;top:0;transform:translateX(-50%);width:60px}.rotation-ruler__active-label-number{display:inline-block;position:relative}.rotation-ruler__active-label-sign{position:absolute;right:100%;top:0}.rotation-ruler__active-label-unit{left:100%;position:absolute;top:0}@container (max-width: 220px){.rotation-ruler__tick--minor{opacity:0}}@media (prefers-reduced-motion:reduce){.rotation-ruler__ticks{transition:none}}.editor-autocompleters__link{gap:8px;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"\f110";font:normal 20px/1 dashicons;margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-right:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{flex-grow:0;flex-shrink:0;margin-left:8px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:not(.is-primary) .editor-autocompleters__user-slug{color:#757575}.interface-interface-skeleton__sidebar:has(.editor-collab-sidebar){box-shadow:none}.interface-interface-skeleton__sidebar:has(.editor-collab-sidebar) .interface-complementary-area-header{display:none}.editor-collab-sidebar{height:100%;overflow:hidden}.editor-collab-sidebar-panel{height:100%;overflow:hidden;padding:16px 16px 24px;position:relative}.editor-collab-sidebar-panel__add-note,.editor-collab-sidebar-panel__thread{background-color:#f0f0f0;border:1px solid #ddd;border-radius:8px;overflow:hidden;padding:16px;position:relative;width:auto}.editor-collab-sidebar-panel__add-note.is-selected,.editor-collab-sidebar-panel__thread.is-selected{background-color:#fff;box-shadow:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);z-index:1}.editor-collab-sidebar-panel__add-note:focus,.editor-collab-sidebar-panel__thread:focus{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1)}.editor-collab-sidebar-panel__add-note.is-floating,.editor-collab-sidebar-panel__thread.is-floating{left:16px;margin-top:16px;max-height:calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 128px);overflow-y:auto;position:absolute;right:16px;transform:translateY(var(--canvas-scroll,0));will-change:transform}.editor-collab-sidebar-panel__user-name{text-transform:capitalize}.editor-collab-sidebar-panel__user-name,.editor-collab-sidebar-panel__user-time{color:#757575;font-size:12px;font-weight:400;line-height:16px;text-align:left}.editor-collab-sidebar-panel__show-more-button{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));cursor:var(--wpds-cursor-control,pointer);width:-moz-fit-content;width:fit-content}.editor-collab-sidebar-panel__show-more-button:active,.editor-collab-sidebar-panel__show-more-button:focus,.editor-collab-sidebar-panel__show-more-button:hover{color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.editor-collab-sidebar-panel__note-content p:last-child{margin-bottom:0}.editor-collab-sidebar-panel__note-content.is-collapsed{-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.editor-collab-sidebar-panel__user-avatar{background:#fff;border-radius:50%;border-style:solid;border-width:var(--wp-admin-border-width-focus);flex-shrink:0;padding:var(--wp-admin-border-width-focus)}.editor-collab-sidebar-panel__note-actions{margin-left:auto}.editor-collab-sidebar-panel__note-actions button.has-icon:not(.has-text){flex-shrink:0;height:24px;min-width:24px;padding:0;width:24px}.editor-collab-sidebar-panel__more-reply-separator:after,.editor-collab-sidebar-panel__more-reply-separator:before,.editor-collab-sidebar-panel__status-separator:after,.editor-collab-sidebar-panel__status-separator:before{background-color:#ddd;content:"";flex:1;height:1px}.editor-collab-sidebar-panel__deleted-block-notice,.editor-collab-sidebar-panel__more-reply-button{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-collab-sidebar-panel__deleted-block-notice{color:#757575}.editor-collab-sidebar-panel__resolution-text{font-style:italic}.editor-collab-sidebar-panel__note-form [role=textbox]{word-wrap:break-word;line-height:20px;max-height:418px;overflow-y:auto;white-space:pre-wrap}.editor-collab-sidebar-panel__note-form [role=textbox] code{background:#f0f0f0;border-radius:2px;font-family:Menlo,Consolas,monaco,monospace;font-size:.9em;padding:0 2px}.editor-collab-sidebar-panel__note-form [role=textbox] a{color:var(--wp-admin-theme-color);text-decoration:underline}.editor-collab-sidebar-panel__skip-to-block,.editor-collab-sidebar-panel__skip-to-note{background:#fff!important;clip-path:inset(50%);overflow:hidden;position:absolute;right:-9999px;top:-9999px;z-index:-1}.editor-collab-sidebar-panel__skip-to-block:focus,.editor-collab-sidebar-panel__skip-to-note:focus{clip-path:none;overflow:visible;right:8px;z-index:1}.editor-collab-sidebar-panel__skip-to-note:focus{top:8px}.editor-collab-sidebar-panel__skip-to-block:focus{bottom:8px;top:auto}.editor-note-indicator__avatar{background:#fff;border-radius:50%;border-style:solid;border-width:var(--wp-admin-border-width-focus);box-sizing:border-box;margin-left:-12px;padding:var(--wp-admin-border-width-focus);width:24px}.editor-note-indicator__avatar:first-child{margin-left:0}.editor-note-indicator__overflow{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.show-icon-labels .editor-note-indicator{width:auto}.show-icon-labels .editor-note-indicator div{display:none}.show-icon-labels .editor-note-indicator:after{content:attr(aria-label);font-size:12px}mark.wp-note{border-radius:1px;transition:background-color .1s ease-in-out}.wp-note-mention{background:var(--wpds-color-background-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 9%,#fff));border-radius:var(--wpds-border-radius-sm,2px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));display:inline;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:0 var(--wpds-dimension-padding-xs,4px);white-space:nowrap}@media (forced-colors:active){.wp-note-mention{border:1px solid}}.editor-collab-sidebar-panel__mention-suggestion .editor-autocompleters__user-avatar{border-radius:50%}.editor-avatar{align-items:center;box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);display:inline-flex}.editor-avatar,.editor-avatar__image{border-radius:9999px;flex-shrink:0;position:relative}.editor-avatar__image{background-color:var(--wp-admin-theme-color,#3858e9);border:0;box-sizing:border-box;color:#fff;font-size:0;height:32px;overflow:hidden;overflow:clip;width:32px}.is-small>.editor-avatar__image{height:24px;width:24px}.has-avatar-border-color>.editor-avatar__image{background-clip:padding-box;border:var(--wp-admin-border-width-focus) solid var(--editor-avatar-outline-color)}.has-avatar-border-color>.editor-avatar__image:after{border-radius:inherit;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,2px) #fff;content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.editor-avatar__img{border-radius:inherit;height:100%;inset:0;-o-object-fit:cover;object-fit:cover;opacity:0;position:absolute;width:100%}.has-src>.editor-avatar__image>.editor-avatar__img{opacity:1}.editor-avatar:not(.has-src)>.editor-avatar__image{align-items:center;background-clip:border-box;border:0;display:flex;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);justify-content:center}.editor-avatar:not(.has-src)>.editor-avatar__image:after{content:none}.editor-avatar:not(.has-src).has-avatar-border-color>.editor-avatar__image{background-color:var(--editor-avatar-outline-color)}.editor-avatar__name{color:var(--editor-avatar-name-color,#fff);font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;min-width:0;opacity:0;overflow:hidden;padding-bottom:2px;transition:opacity .15s cubic-bezier(.15,0,.15,1);white-space:nowrap}.editor-avatar.is-badge{background-color:var(--wp-admin-theme-color,#3858e9);-moz-column-gap:0;column-gap:0;display:inline-grid;grid-template-columns:min-content 0fr;padding-inline-end:0;transition:grid-template-columns .3s cubic-bezier(.15,0,.15,1),column-gap .3s cubic-bezier(.15,0,.15,1),padding-inline-end .3s cubic-bezier(.15,0,.15,1);transition:grid-template-columns .3s cubic-bezier(.15,0,.15,1),column-gap .3s cubic-bezier(.15,0,.15,1),padding-inline-end .3s cubic-bezier(.15,0,.15,1),-moz-column-gap .3s cubic-bezier(.15,0,.15,1)}.editor-avatar.is-badge:hover{-moz-column-gap:4px;column-gap:4px;grid-template-columns:min-content 1fr;padding-inline-end:8px;transition-timing-function:cubic-bezier(.85,0,.85,1)}.editor-avatar.is-badge:hover .editor-avatar__name{opacity:1;transition-timing-function:cubic-bezier(.85,0,.85,1)}.editor-avatar.is-badge.has-avatar-border-color{background-color:var(--editor-avatar-outline-color)}.editor-avatar.is-dimmed>.editor-avatar__image{background-color:#757575;opacity:.5}.editor-avatar.is-dimmed.has-avatar-border-color>.editor-avatar__image{border-color:#757575}.editor-avatar.is-dimmed .editor-avatar__img{filter:grayscale(1)}.editor-avatar__status-indicator{fill:#1e1e1e;align-items:center;color:#1e1e1e;display:flex;height:32px;justify-content:center;left:0;position:absolute;top:0;width:32px;z-index:1}.is-small>.editor-avatar__status-indicator{height:24px;width:24px}.editor-avatar__status-indicator svg{height:75%;width:75%}@media (prefers-reduced-motion:reduce){.editor-avatar.is-badge,.editor-avatar__name{transition:none}}.editor-avatar-group{align-items:center;display:flex}.editor-avatar-group>.editor-avatar+.editor-avatar{margin-inline-start:-8px}.editor-avatar-group>.editor-avatar{position:relative}.editor-avatar-group>.editor-avatar:first-child{z-index:10}.editor-avatar-group>.editor-avatar:nth-child(2){z-index:9}.editor-avatar-group>.editor-avatar:nth-child(3){z-index:8}.editor-avatar-group>.editor-avatar:nth-child(4){z-index:7}.editor-avatar-group>.editor-avatar:nth-child(5){z-index:6}.editor-avatar-group>.editor-avatar:nth-child(6){z-index:5}.editor-avatar-group>.editor-avatar:nth-child(7){z-index:4}.editor-avatar-group>.editor-avatar:nth-child(8){z-index:3}.editor-avatar-group>.editor-avatar:nth-child(9){z-index:2}.editor-avatar-group>.editor-avatar:nth-child(10){z-index:1}.editor-avatar-group__overflow{color:#1e1e1e;font-size:12px;line-height:20px;margin-inline-end:4px;margin-inline-start:4px;white-space:nowrap}.editor-collaborators-presence__list.components-popover .components-popover__content{background:#fff;border:1px solid #ddd;border-radius:8px;border-width:1px 0 0 1px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-content{min-width:280px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header{align-items:center;display:flex;justify-content:space-between;padding:8px 16px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title{display:flex;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);gap:4px;line-height:20px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title span{color:#757575}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-action{padding:0}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-action button{color:#1e1e1e;height:32px;padding:0;width:32px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-items{display:flex;flex-direction:column;padding-bottom:16px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item{all:unset;align-items:center;box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;padding:12px 16px;transition:background-color .2s ease;width:100%}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:hover:not(:disabled){background-color:rgba(var(--wp-admin-theme-color--rgb),.04)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:active:not(:disabled){background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:focus-visible{outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:-2px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:disabled{cursor:default}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-info{display:flex;flex:1;flex-direction:column;min-width:0}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-name{color:#1e1e1e;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-collaborators-presence{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;flex-shrink:0;height:32px}.editor-collaborators-presence:hover{background-color:#e0e0e0}.editor-collaborators-presence:has(.is-pressed){background-color:#e0e0e0}.editor-header__center .editor-collaborators-presence{margin-right:8px}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button{align-items:center;background:transparent;border-radius:4px;box-sizing:border-box;color:#2f2f2f;cursor:var(--wpds-cursor-control,pointer);display:flex;height:100%;padding:4px;position:relative}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed,.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed:hover,.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:hover{background:transparent;color:#2f2f2f}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:focus:not(:active){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,2px) var(--wp-admin-theme-color,#007cba);outline:none}.editor-collapsible-block-toolbar{align-items:center;display:flex;height:64px;overflow:hidden}.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{background:transparent;border-bottom:0;height:100%}.editor-collapsible-block-toolbar .block-editor-block-toolbar{height:100%;padding-top:17px}.editor-collapsible-block-toolbar .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.editor-collapsible-block-toolbar:after{background-color:#ddd;content:"";height:24px;margin-right:7px;width:1px}.editor-collapsible-block-toolbar .components-toolbar,.editor-collapsible-block-toolbar .components-toolbar-group{border-right:none;position:relative}.editor-collapsible-block-toolbar .components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar:after{background-color:#ddd;content:"";height:24px;position:absolute;right:-1px;top:4px;width:1px}.editor-collapsible-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.editor-collapsible-block-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{height:40px;position:relative;top:-4px}}.editor-collapsible-block-toolbar.is-collapsed{display:none}.editor-block-visibility__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:-32px 0 0 0 #fff,32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-5px;z-index:1}.editor-block-visibility__disabled-blocks-count~.block-editor-block-manager__content .block-editor-block-manager__category-title{top:31px}.editor-block-visibility__disabled-blocks-count .is-link{margin-left:12px}.editor-blog-title-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-document-bar{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;height:32px;justify-content:space-between;min-width:0;width:min(100%,450px)}.editor-document-bar:hover{background-color:#e0e0e0}.editor-document-bar .components-button{border-radius:4px}@media not (prefers-reduced-motion){.editor-document-bar .components-button{transition:background-color .1s ease-out}}.editor-document-bar .components-button:hover{background:#e0e0e0}@media screen and (min-width:782px) and (max-width:960px){.editor-document-bar.has-back-button .editor-document-bar__post-type-label{display:none}}.editor-document-bar__command{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.editor-document-bar__title{color:#1e1e1e;margin:0 auto;max-width:70%;overflow:hidden}.editor-document-bar__title h1{align-items:center;display:flex;font-weight:400;justify-content:center;overflow:hidden;white-space:nowrap}.editor-document-bar__post-title{color:currentColor;flex:1;overflow:hidden;text-overflow:ellipsis}.editor-document-bar__post-type-label{color:#2f2f2f;flex:0;padding-left:4px}@media screen and (max-width:600px){.editor-document-bar__post-type-label{display:none}}.editor-document-bar__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;position:absolute;z-index:1}.editor-document-bar__back.components-button.has-icon.has-text:hover{background-color:transparent;color:#1e1e1e}.editor-document-bar__icon-layout.editor-document-bar__icon-layout{display:none;margin-left:12px;pointer-events:none;position:absolute}.editor-document-bar__icon-layout.editor-document-bar__icon-layout svg{fill:#949494}@media (min-width:600px){.editor-document-bar__icon-layout.editor-document-bar__icon-layout{display:flex}}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:var(--wpds-cursor-control,pointer);display:flex;margin:0 0 0 -1px;padding:2px 5px 2px 1px;text-align:left}.document-outline__button:disabled,.document-outline__button[aria-disabled=true]{color:#757575;cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-right:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-document-outline.has-no-headings>svg{margin-top:28px}.editor-document-outline.has-no-headings>p{padding-left:32px;padding-right:32px}.editor-document-outline.has-no-headings{color:#757575;text-align:center}.editor-document-tools{align-items:center;display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:none}@media (min-width:782px){.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:inline-flex}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle{display:inline-flex}@media not (prefers-reduced-motion){.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.editor-document-tools .block-editor-list-view{display:none}@media (min-width:600px){.editor-document-tools .block-editor-list-view{display:flex}}.editor-document-tools .editor-document-tools__left>.components-button.has-icon,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon{height:32px;min-width:32px;padding:4px}.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:focus:not(:disabled),.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:before,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:before{display:none}.editor-document-tools__left{align-items:center;display:inline-flex;gap:8px}.editor-document-tools__left:not(:last-child){margin-inline-end:8px}.show-icon-labels .editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{padding:0 8px;width:auto}.show-icon-labels .editor-document-tools__left>*+*{margin-left:8px}.editor-editor-interface .entities-saved-states__panel-header{height:65px}.editor-editor-interface .interface-interface-skeleton__content{isolation:isolate}.editor-notices .components-notice-list,.editor-notices.notices-inline-notices-wrapper{gap:0}.editor-notices .components-notice{border-inline-width:0;border-top-width:0}.editor-visual-editor{flex:1 0 auto}.editor-notices__dismissible,.editor-notices__pinned{left:0;position:relative;right:0;top:0}.editor-error-boundary{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin:64px auto auto;max-width:780px;padding:1em}.editor-global-styles-header__description{padding:0 16px}.editor-global-styles-header{margin-bottom:0!important}.editor-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.editor-global-styles-sidebar__panel{flex:1}.editor-global-styles-sidebar .editor-global-styles-sidebar__header-title{margin:0}.editor-global-styles-sidebar .editor-global-styles-sidebar__header-actions{flex:1}.editor-global-styles-sidebar .block-editor-panel-color-gradient-settings{border:0}.editor-global-styles-sidebar .single-column{grid-column:span 1}.editor-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.editor-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.editor-global-styles-sidebar__blocks-group-help{padding:0 16px}.global-styles-ui-color-palette-panel,.global-styles-ui-gradient-palette-panel{padding:16px}.editor-global-styles-sidebar hr{margin:0}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon{width:auto}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.editor-welcome-guide{width:312px}.editor-welcome-guide.guide-styles .editor-welcome-guide__image{background:#00a0d2}.editor-welcome-guide__image{margin:0 0 16px}.editor-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.editor-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.editor-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.editor-welcome-guide__text img{vertical-align:bottom}.editor-welcome-guide .components-button:hover svg{fill:#fff}.editor-header{box-sizing:border-box}.editor-header *,.editor-header :after,.editor-header :before{box-sizing:inherit}.editor-header{background:#fff;display:grid;grid-auto-flow:row;grid-template:auto/32px minmax(0,max-content) minmax(min-content,1fr) 64px;height:64px}.editor-header:has(>.editor-header__center){grid-template:auto/32px min-content 1fr min-content 64px}@media (min-width:782px){.editor-header:has(>.editor-header__center){grid-template:auto/32px minmax(min-content,2fr) 2.5fr minmax(min-content,2fr) 64px}}@media (min-width:480px){.editor-header{gap:16px}}.editor-header{align-items:center;justify-content:space-between;max-width:100vw}@media (min-width:280px){.editor-header{flex-wrap:nowrap}}.editor-header__back-button{padding-left:8px}.editor-header__toolbar{grid-column:1/3}.editor-header__toolbar>:first-child{margin-inline:16px 0}.editor-header__back-button+.editor-header__toolbar{grid-column:2/3}@media (min-width:480px){.editor-header__back-button+.editor-header__toolbar>:first-child{margin-inline:0}}.editor-header__toolbar{align-items:center;clip-path:inset(-2px);display:flex;min-width:0}@media (min-width:480px){.editor-header__toolbar{clip-path:none}}.editor-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.editor-header__toolbar .table-of-contents{display:block}}.editor-header__toolbar .editor-collapsible-block-toolbar,.editor-header__toolbar .editor-collapsible-block-toolbar.is-collapsed~.editor-collapsible-block-toolbar__toggle{margin-inline:8px 0}.editor-header__center{align-items:center;display:flex;grid-column:3/4;justify-content:center;min-width:0}@media (max-width:479px){.editor-header__center>:first-child{margin-inline-start:8px}.editor-header__center>:last-child{margin-inline-end:8px}}.editor-header__settings{grid-column:3/-1}.editor-header:has(>.editor-header__center) .editor-header__settings{grid-column:4/-1}.editor-header__settings{align-items:center;display:inline-flex;flex-wrap:nowrap;justify-self:end;padding-right:4px}@media (min-width:600px){.editor-header__settings{padding-right:8px}}.editor-header__settings{gap:8px}.show-icon-labels .editor-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.show-icon-labels .editor-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.show-icon-labels .editor-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label);white-space:nowrap}.show-icon-labels .editor-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.show-icon-labels .editor-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.show-icon-labels .editor-header .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg{display:block}.show-icon-labels .editor-header .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after{content:none}.show-icon-labels .editor-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.show-icon-labels .editor-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .editor-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover{border-left:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover:before{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.show-icon-labels .editor-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{background:#ddd;left:calc(50% + 1px);width:calc(100% - 24px)}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 6px 6px 8px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}@media (min-width:480px){.editor-header__post-preview-button{display:none}}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.editor-editor-interface.is-distraction-free .editor-header{background-color:#fff;width:100%}@media (min-width:782px){.editor-editor-interface.is-distraction-free .editor-header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);position:absolute}}.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{visibility:hidden}.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-zoom-out-toggle,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{display:none}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.components-popover.more-menu-dropdown__content{z-index:99998}.editor-inserter-sidebar{box-sizing:border-box}.editor-inserter-sidebar *,.editor-inserter-sidebar :after,.editor-inserter-sidebar :before{box-sizing:inherit}.editor-inserter-sidebar{display:flex;flex-direction:column;height:100%}.editor-inserter-sidebar__content{height:100%}.editor-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.editor-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.editor-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.editor-keyboard-shortcut-help-modal__shortcut:empty{display:none}.editor-keyboard-shortcut-help-modal__shortcut-term{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 0 1rem;text-align:right}.editor-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.editor-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.editor-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.editor-list-view-sidebar{height:100%}@media (min-width:782px){.editor-list-view-sidebar{width:350px}}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{height:100%}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-track,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.editor-list-view-sidebar__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.editor-list-view-sidebar__list-view-container>.document-outline:focus,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within,.editor-list-view-sidebar__list-view-container>.document-outline:hover,.editor-list-view-sidebar__list-view-panel-content:focus,.editor-list-view-sidebar__list-view-panel-content:focus-within,.editor-list-view-sidebar__list-view-panel-content:hover{scrollbar-color:#949494 transparent}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{will-change:transform}@media (hover:none){.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:#949494 transparent}}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{overflow:auto;scrollbar-gutter:auto}.editor-list-view-sidebar__list-view-panel-content{padding:4px}.editor-list-view-sidebar__list-view-container{display:flex;flex-direction:column;height:100%}.editor-list-view-sidebar__list-view-container>.document-outline{padding:16px}.editor-list-view-sidebar__tab-panel{height:100%}.editor-list-view-sidebar__outline{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.editor-list-view-sidebar__outline>div>span:first-child{display:inline-block;width:90px}.editor-list-view-sidebar__outline>div>span{color:#757575;font-size:12px;line-height:1.4}.editor-post-order__panel,.editor-post-parent__panel{padding-top:8px}.editor-post-order__panel .editor-post-panel__row-control>div,.editor-post-parent__panel .editor-post-panel__row-control>div{width:100%}.editor-post-order__panel-dialog .editor-post-order,.editor-post-order__panel-dialog .editor-post-parent,.editor-post-parent__panel-dialog .editor-post-order,.editor-post-parent__panel-dialog .editor-post-parent{margin:8px}.editor-post-order__panel-dialog .components-popover__content,.editor-post-parent__panel-dialog .components-popover__content{min-width:320px}.editor-post-author__panel{padding-top:8px}.editor-post-author__panel .editor-post-panel__row-control>div{width:100%}.editor-post-author__panel-dialog .editor-post-author{margin:8px;min-width:248px}.editor-action-modal{z-index:1000001}.editor-post-card-panel__content{flex-grow:1}.editor-post-card-panel__title{width:100%}.editor-post-card-panel__title.editor-post-card-panel__title{align-items:center;-moz-column-gap:8px;column-gap:8px;display:flex;flex-wrap:wrap;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;margin:0;row-gap:4px;word-break:break-word}.editor-post-card-panel__icon{flex:0 0 24px;height:24px;width:24px}.editor-post-card-panel__header{display:flex;justify-content:space-between}.editor-post-card-panel.has-description .editor-post-card-panel__header{margin-bottom:8px}.editor-post-card-panel .editor-post-card-panel__title-name{padding:2px 0}.editor-post-card-panel .editor-post-card-panel__description,.editor-post-content-information{color:#757575}.editor-post-content-information .components-text{color:inherit}.editor-post-discussion__panel-dialog .editor-post-discussion{margin:8px;min-width:248px}.editor-post-discussion__panel-toggle .components-text{color:inherit}.editor-post-discussion__panel-dialog .components-popover__content{min-width:320px}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-excerpt__dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-featured-image{padding:0}.editor-post-featured-image .hidden{display:none}.editor-post-featured-image .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image),.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image),.editor-post-featured-image__container:hover .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image){opacity:1}.editor-post-featured-image__container .editor-post-featured-image__actions.editor-post-featured-image__actions-missing-image{margin-top:16px;opacity:1}.editor-post-featured-image__container .components-drop-zone__content{border-radius:2px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{border-color:#ccc;display:flex;justify-content:center;min-height:40px;outline-offset:-1px;overflow:hidden;padding:0;width:100%}.editor-post-featured-image__preview{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px;height:auto!important;outline:1px solid rgba(0,0,0,.1)}.editor-post-featured-image__preview .editor-post-featured-image__preview-image{aspect-ratio:2/1;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image){bottom:0;opacity:0;padding:8px;position:absolute}@media not (prefers-reduced-motion){.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image){transition:opacity 50ms ease-out}}.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image) .editor-post-featured-image__action{backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75)}.editor-post-featured-image__actions .editor-post-featured-image__action{flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-format__dialog .editor-post-format__dialog-content{margin:8px;min-width:248px}.editor-post-last-edited-panel{color:#757575}.editor-post-last-edited-panel .components-text{color:inherit}.editor-post-last-revision__title{font-weight:var(--wpds-typography-font-weight-emphasis,600);width:100%}.editor-post-last-revision__title.components-button.has-icon{height:100%;justify-content:space-between}.editor-post-last-revision__title.components-button.has-icon:active,.editor-post-last-revision__title.components-button.has-icon:hover{background:#f0f0f0}.editor-post-last-revision__title.components-button.has-icon:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-panel__body.is-opened.editor-post-last-revision__panel{height:48px;padding:0}.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button{padding:16px}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:50%;margin-top:16px;min-width:auto!important}.editor-post-panel__row{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.editor-post-panel__row-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;padding:6px 0;width:38%;word-break:break-word}.editor-post-panel__row-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.editor-post-panel__row-control .components-button{text-wrap:balance;text-wrap:pretty;font-weight:var(--wpds-typography-font-weight-default,400);height:auto;max-width:100%;min-height:32px;text-align:left;white-space:normal}.editor-post-panel__row-control .components-dropdown{max-width:100%}.editor-post-panel__section{padding:16px}.editor-post-publish-panel__content{min-height:calc(100% - 148px)}.editor-post-publish-panel__content>.components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:65px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;flex-shrink:0;height:36px;margin-right:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px;word-break:break-word}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{justify-content:center;padding-left:4px}.editor-post-publish-panel__header-cancel-button{padding-right:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{align-items:center;display:inline-flex}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.editor-post-publish-panel__prepublish .components-panel__body-title .components-button{text-wrap:balance;text-wrap:pretty;align-items:flex-start}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none;word-break:break-word}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;gap:16px}.post-publish-panel__postpublish-buttons .components-button,.post-publish-panel__postpublish-buttons .components-button.has-icon{flex:1;justify-content:center;min-width:unset}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#f0f0f0;border-color:#ccc;height:36px;overflow:hidden;padding:12px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-left:16px}.post-publish-panel__postpublish-header{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-publish-panel{box-sizing:border-box}.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}.editor-post-publish-panel{background:#fff;bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.editor-post-publish-panel{border-left:1px solid #ddd;left:auto;top:32px;width:281px;z-index:99998}}@media (min-width:782px) and (not (prefers-reduced-motion)){.editor-post-publish-panel{animation:editor-post-publish-panel__slide-in-animation .1s forwards;transform:translateX(100%)}}@media (min-width:782px){body.is-fullscreen-mode .editor-post-publish-panel{top:var(--wp-admin--admin-bar--height,0)}[role=region]:focus .editor-post-publish-panel{transform:translateX(0)}}@keyframes editor-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.editor-revisions-header__slider{width:100%}.editor-revisions-header__slider .components-range-control__tooltip{white-space:nowrap}.editor-revisions-header__no-revisions{color:#757575;font-size:13px}.editor-revisions-canvas__loading{align-items:center;display:flex;height:100%;justify-content:center}.editor-revisions-canvas__content{display:flex;height:100%}.editor-revisions-canvas__content .editor-visual-editor{flex:1;min-width:0}.revision-diff-markers{background:rgba(0,0,0,.05);flex-shrink:0;position:relative;width:max(16px,1rem)}.revision-diff-markers .revision-diff-marker{border:none;cursor:var(--wpds-cursor-control,pointer);min-height:4px;padding:0;position:absolute;transition:opacity .1s ease;width:100%}.revision-diff-markers .revision-diff-marker.is-added{background:#008a20}.revision-diff-markers .revision-diff-marker.is-removed{background:repeating-linear-gradient(45deg,#d63638,#d63638 6px,rgba(214,54,56,.45) 0,rgba(214,54,56,.45) 8px)}.revision-diff-markers .revision-diff-marker.is-modified{background:repeating-linear-gradient(-45deg,#9a7000,#9a7000 6px,rgba(154,112,0,.45) 0,rgba(154,112,0,.45) 8px)}.revision-diff-markers .revision-diff-marker:hover{opacity:.7}.revision-diff-markers .revision-diff-marker:focus{outline:2px solid #1e1e1e;outline-offset:-2px}.interface-complementary-area:has(.editor-post-revisions-timeline){display:flex;flex-direction:column;overflow:hidden}.interface-complementary-area:has(.editor-post-revisions-timeline) .editor-sidebar__panel-tabs{flex-shrink:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline){display:flex;flex:1;flex-direction:column;min-height:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline) [role=tabpanel]:has(.editor-post-revisions-timeline){display:flex;flex:1;flex-direction:column;min-height:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline) .editor-revision-meta-diff__content{max-height:80px;overflow-y:auto}.editor-sidebar__panel:has(.editor-post-revisions-timeline) .editor-post-revisions-timeline{flex:1;min-height:0}.editor-revision-fields-diff__value{word-break:break-word}.editor-revision-fields-diff__added{background-color:color-mix(in srgb,currentColor 5%,#00a32a 15%);text-decoration:none}.editor-revision-fields-diff__removed{color:#d63638;text-decoration:line-through}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:transparent;color:#757575}.editor-post-saved-state svg{fill:currentColor;display:inline-block;flex:0 0 auto;margin-right:8px}@media (min-width:600px){.editor-post-saved-state{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-right:0}}.editor-post-save-draft.has-text.has-icon svg{margin-right:0}.editor-post-schedule__panel-dropdown{width:100%}.editor-post-schedule__dialog .components-popover__content{min-width:320px;padding:16px}.editor-post-status{max-width:100%}.editor-post-status.is-read-only{padding:6px 12px}.editor-post-status .editor-post-status__toggle.editor-post-status__toggle{padding-bottom:4px;padding-top:4px}.editor-change-status__password-fieldset,.editor-change-status__publish-date-wrapper{border-top:1px solid #e0e0e0;padding-top:16px}.editor-change-status__content .components-popover__content{min-width:320px;padding:16px}.editor-change-status__content .editor-change-status__password-legend{margin-bottom:8px;padding:0}.editor-change-status__content p.components-base-control__help:has(.components-checkbox-control__help){margin-top:4px}.editor-post-sticky__checkbox-control{border-top:1px solid #e0e0e0;padding-top:16px}.editor-post-sync-status__value{padding:6px 0 6px 12px}.editor-post-taxonomies__hierarchical-terms-list{margin-left:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-left:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-left:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-right:8px}.editor-sync-connection-error-modal{z-index:1000001}.editor-sync-connection-error-modal p{margin:0}.editor-sync-connection-error-modal__retry-countdown{color:#757575}.editor-post-template__swap-template-modal{z-index:1000001}.editor-post-template__swap-template-modal .editor-post-template__swap-template-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}.editor-post-template__create-template-modal{z-index:1000001}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px;padding-top:2px}@media (min-width:782px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.editor-post-template__dropdown .components-popover__content{min-width:240px}.editor-post-template__dropdown .components-button.is-pressed,.editor-post-template__dropdown .components-button.is-pressed:hover{background:inherit;color:inherit}.editor-post-template__classic-theme-dropdown{padding:8px}.editor-template-actions-panel__preview .block-editor-block-preview__container{aspect-ratio:4/3;border-radius:4px;display:flex;overflow:hidden}.editor-template-actions-panel__preview .block-editor-block-preview__container:after{border-radius:4px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}@media not (prefers-reduced-motion){.editor-template-actions-panel__preview .block-editor-block-preview__container:after{transition:outline .1s linear}}.editor-template-actions-panel__preview[role=button]{cursor:var(--wpds-cursor-control,pointer)}.editor-template-actions-panel__preview[role=button]:hover .block-editor-block-preview__container:after{outline-color:rgba(0,0,0,.3)}.editor-template-actions-panel__preview[role=button]:focus-visible .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.editor-template-actions-panel__action{flex:1;justify-content:center}textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;margin:0;min-height:200px;overflow:hidden;resize:none;width:100%}@media not (prefers-reduced-motion){textarea.editor-post-text-editor{transition:border .1s ease-out,box-shadow .1s linear}}textarea.editor-post-text-editor{padding:16px}@media (min-width:600px){textarea.editor-post-text-editor{padding:24px}}textarea.editor-post-text-editor{font-size:16px!important}@media (min-width:600px){textarea.editor-post-text-editor{font-size:15px!important}}textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62)}textarea.editor-post-text-editor::placeholder{color:rgba(30,30,30,.62)}.editor-post-title.is-raw-text{margin-bottom:24px;margin-top:2px;max-width:none}.editor-post-url__panel-dropdown{width:100%}.editor-post-url__panel-dialog .editor-post-url{margin:8px;min-width:248px}.editor-post-url__front-page-link,.editor-post-url__link{direction:ltr;word-break:break-word}.editor-post-url__front-page-link{border-radius:2px;color:var(--wp-admin-theme-color);padding:6px 12px}.editor-post-url__front-page-link:hover{background:color-mix(in srgb,var(--wp-admin-theme-color) 4%,transparent);color:var(--wp-admin-theme-color-darker-20,#183ad6)}.editor-post-url__front-page-link:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);outline:3px solid transparent}.editor-post-url__link-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-post-url__input input.components-input-control__input{padding-inline-start:0!important}.editor-post-parent__panel-toggle,.editor-post-url__panel-toggle{word-break:break-word}.editor-post-url__intro{margin:0}.editor-post-url__permalink{margin-bottom:0;margin-top:8px}.editor-post-url__permalink-visual-label{display:block}.editor-posts-per-page-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.editor-preview-dropdown .editor-preview-dropdown__toggle.has-icon.has-text{padding-left:6px;padding-right:4px}.editor-preview-dropdown.is-responsive-editing .editor-preview-dropdown__toggle{color:var(--wp-block-synced-color)}@media (prefers-reduced-motion:no-preference){.editor-resizable-editor:not(.is-resizing){transition:width .2s ease-out,height .2s ease-out}}.editor-resizable-editor.is-resizable{margin:0 auto;overflow:visible}.editor-resizable-editor__resize-handle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:9999px;bottom:0;cursor:ew-resize;height:100px;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.editor-resizable-editor__resize-handle:after{background-color:hsla(0,0%,46%,.4);border-radius:9999px;bottom:16px;content:"";left:4px;position:absolute;right:0;top:16px;width:4px}.editor-resizable-editor__resize-handle.is-left{left:-18px}.editor-resizable-editor__resize-handle.is-right{right:-18px}.editor-resizable-editor__resize-handle:active,.editor-resizable-editor__resize-handle:focus,.editor-resizable-editor__resize-handle:hover{opacity:1}.editor-resizable-editor__resize-handle:active:after,.editor-resizable-editor__resize-handle:focus:after,.editor-resizable-editor__resize-handle:hover:after{background-color:var(--wp-admin-theme-color)}.editor-layout__toggle-entities-saved-states-panel,.editor-layout__toggle-publish-panel,.editor-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:auto;padding:24px;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{bottom:0;top:auto}.editor-start-page-options__modal .editor-start-page-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:72px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.editor-start-page-options__modal .block-editor-block-patterns-list{padding-bottom:72px}.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:782px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column;margin-bottom:24px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}.editor-start-template-options__modal .editor-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.editor-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:782px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.components-panel__header.editor-sidebar__panel-tabs{padding-left:0;padding-right:8px}.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{padding:0}@media (min-width:782px){.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{display:flex}}.editor-post-summary .components-v-stack:empty{display:none}.editor-sidebar{box-sizing:border-box}.editor-sidebar *,.editor-sidebar :after,.editor-sidebar :before{box-sizing:inherit}.editor-sidebar__revisions-block-message{color:#757575;font-size:13px;padding:16px}.fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.editor-site-discussion-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-style-book{height:100%}.editor-style-book.is-button{border-radius:8px}.editor-style-book__iframe{display:block;height:100%;width:100%}.editor-style-book__iframe.is-button{border-radius:8px}.editor-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.editor-style-book__tabs{display:flex;flex-direction:column;height:100%}.editor-style-book__tablist-container{background:#fff;display:flex;flex:none;padding-right:56px;width:100%}.editor-style-book__tabpanel{flex:1 0 auto;overflow:auto}.editor-styles-canvas{background-color:var(--wp-editor-canvas-background);height:100%;padding:24px}.editor-styles-canvas iframe{display:block;height:100%;width:100%}.editor-styles-canvas__section{background:#fff;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.editor-styles-canvas__section{transition:all .3s}}.editor-styles-canvas__close-button{background:#fff;position:absolute;right:8px;top:8px;z-index:2}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-right:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:20px}.editor-text-editor{box-sizing:border-box}.editor-text-editor *,.editor-text-editor :after,.editor-text-editor :before{box-sizing:inherit}.editor-text-editor{background-color:#fff;flex-grow:1;isolation:isolate;position:relative;width:100%}.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){border:1px solid #949494;border-radius:0;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){padding:24px}}.editor-text-editor .editor-post-title.is-raw-text textarea:focus,.editor-text-editor .editor-post-title:not(.is-raw-text):focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.editor-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.editor-text-editor__body{padding:0 24px 24px}}.editor-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.editor-text-editor__toolbar{padding:12px}}@media (min-width:960px){.editor-text-editor__toolbar{padding:12px 24px}}.editor-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:40px;margin:0 auto 0 0}.editor-upload-progress-snackbar__check,.editor-upload-progress-snackbar__spinner{align-items:center;display:inline-flex;height:24px;justify-content:center;width:24px}.editor-upload-progress-snackbar__spinner .components-spinner{margin:0}.editor-upload-progress-snackbar__check svg{fill:currentColor;height:24px;width:24px}.editor-visual-editor{background-color:var(--wp-editor-canvas-background);display:flex;max-height:100%;position:relative}.editor-visual-editor iframe[name=editor-canvas]{background-color:transparent}.editor-visual-editor{align-items:center}@media (prefers-reduced-motion:no-preference){.editor-visual-editor{transition:padding .2s ease-out}}.editor-visual-editor.has-vertical-padding{padding-bottom:24px;padding-top:24px}.editor-visual-editor.has-horizontal-padding{padding-left:24px;padding-right:24px}.editor-visual-editor{overflow:hidden}.editor-visual-editor .components-button{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.editor-visual-editor .components-button.has-icon,.editor-visual-editor .components-button.is-tertiary{padding:6px}.editor-fields-content-preview{border-radius:4px;display:flex;flex-direction:column;height:100%}.dataviews-view-table .editor-fields-content-preview{flex-grow:0;width:96px}.editor-fields-content-preview .block-editor-block-preview__container,.editor-fields-content-preview .editor-fields-content-preview__empty{margin-bottom:auto;margin-top:auto}.editor-fields-content-preview__empty{text-align:center}.editor-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}.editor-push-changes-to-global-styles-modal p{margin-top:0}.editor-push-changes-to-global-styles-modal .dataviews-layout__container{overflow-x:hidden}@media (max-width:600px){.editor-push-changes-to-global-styles-modal .dataviews-layout__container{overflow-x:auto}}.editor-push-changes-to-global-styles-modal .components-modal__content{padding-bottom:0}.editor-push-changes-to-global-styles-modal .dataviews-footer{padding-bottom:24px}.editor-push-changes-to-global-styles-modal__value{color:#1e1e1e;overflow-wrap:anywhere}
\ No newline at end of file
+@charset "UTF-8";.interface-complementary-area-header{background:#fff;gap:4px;padding-right:8px}.interface-complementary-area-header .interface-complementary-area-header__title{margin:0 auto 0 0}.interface-complementary-area{background:#fff;color:#1e1e1e;height:100%;overflow:auto;width:100vw}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.editor-sidebar__panel-tabs{top:0}.interface-complementary-area p:not(.components-base-control__help,.components-form-token-field__help){margin-top:0}.interface-complementary-area h2{font-size:13px}.interface-complementary-area h2,.interface-complementary-area h3{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:1.5em}.interface-complementary-area h3{font-size:11px;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}.interface-complementary-area__fill{height:100%}@media (min-width:782px){body.js.is-fullscreen-mode #adminmenumain{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container:not(:has(.is-zoom-out)){position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:var(--wp-admin--admin-bar--height,0)}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none;position:relative}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:calc(var(--wpds-dimension-size-md, 32px) + 1px)}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;top:0;width:auto;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important}}.interface-interface-skeleton__sidebar{border-top:1px solid #e0e0e0;overflow:hidden}@media (min-width:782px){.interface-interface-skeleton__sidebar{box-shadow:-1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__secondary-sidebar{border-top:1px solid #e0e0e0;right:0}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar{box-shadow:1px 0 0 0 rgba(0,0,0,.133);outline:1px solid transparent}}.interface-interface-skeleton__header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);color:#1e1e1e;flex-shrink:0;height:auto;outline:1px solid transparent;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:var(--wpds-dimension-size-md,32px);padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:var(--wp-admin--admin-bar--height,0)}}.interface-pinned-items{display:flex}.interface-pinned-items .components-button{display:none;margin:0}.interface-pinned-items .components-button[aria-controls="edit-post:block"],.interface-pinned-items .components-button[aria-controls="edit-post:document"],.interface-pinned-items .components-button[aria-controls="edit-site:block-inspector"],.interface-pinned-items .components-button[aria-controls="edit-site:template"]{display:flex}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-pinned-items .components-button{display:flex}}.interface-pinned-items{gap:8px}@media (min-width:782px){.font-library-modal.font-library-modal{width:65vw}}.font-library-modal .components-modal__header{border-bottom:none}.font-library-modal .components-modal__content{margin-bottom:90px;padding:0}.font-library-modal .font-library__subtitle{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.font-library-modal__tab-panel{height:calc(100% - 50px)}.font-library__tabpanel-layout{display:flex;flex-direction:column;height:100%}.font-library__tabpanel-layout>div{flex-grow:1}.font-library__tabpanel-layout .font-library__loading{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;left:0;padding-top:124px;position:absolute;top:0;width:100%}.font-library__footer,.font-library__tabpanel-layout .components-navigator-screen{padding:24px;width:100%}.font-library__footer{background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;flex-grow:0!important;flex-shrink:0;height:90px;position:absolute}.font-library__page-selection{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.font-library__page-selection .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.font-library__search{width:240px}.font-library__fonts-title{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:0;margin-top:0;text-transform:uppercase}.font-library__fonts-list{list-style:none;margin-bottom:0;margin-top:0;padding:0}.font-library__fonts-list-item{margin-bottom:0}.font-library__font-card{border:1px solid #ddd;box-sizing:border-box;height:auto!important;margin-top:-1px;padding:16px;width:100%}.font-library__font-card:hover{background-color:#f0f0f0}.font-library__font-card:focus{position:relative}.font-library__font-card .font-library__font-card__name{font-weight:700}.font-library__font-card .font-library__font-card__count{color:#757575}.font-library__font-card .font-library__font-variant_demo-image{display:block;height:24px;width:auto}.font-library__font-card .font-library__font-variant_demo-text{flex-shrink:0;white-space:nowrap}@media not (prefers-reduced-motion){.font-library__font-card .font-library__font-variant_demo-text{transition:opacity .3s ease-in-out}}.font-library-modal__tablist-container{background:#fff;border-bottom:1px solid #ddd;position:sticky;top:0;z-index:1}.font-library__upload-area{align-items:center;display:flex;height:256px!important;justify-content:center;width:100%}button.font-library__upload-area{background-color:#f0f0f0}.font-library__local-fonts{margin:24px auto;width:80%}.font-library__local-fonts .font-library__upload-area__text{color:#757575}.font-library__google-fonts-confirm{align-items:center;display:flex;justify-content:center;margin-top:64px}.font-library__google-fonts-confirm p{line-height:1.4}.font-library__google-fonts-confirm h2{font-size:1.2rem;font-weight:400}.font-library__google-fonts-confirm .components-card{padding:16px;width:400px}.font-library__google-fonts-confirm .components-button{justify-content:center;width:100%}.font-library__select-all{padding:16px 16px 16px 17px}.font-library__select-all .components-checkbox-control__label{padding-left:16px}.global-styles-ui-pagination .components-button.is-tertiary{height:32px;justify-content:center;width:32px}.global-styles-ui-screen-revisions__revisions-list{flex-grow:1;list-style:none;margin:0 16px 16px}.global-styles-ui-screen-revisions__revisions-list li{margin-bottom:0}.global-styles-ui-screen-revisions__revision-item{cursor:var(--wpds-cursor-control,pointer);display:flex;flex-direction:column;position:relative}.global-styles-ui-screen-revisions__revision-item[role=option]:active,.global-styles-ui-screen-revisions__revision-item[role=option]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.global-styles-ui-screen-revisions__revision-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item:after,.global-styles-ui-screen-revisions__revision-item:before{content:"\a";display:block;position:absolute}.global-styles-ui-screen-revisions__revision-item:before{background:#ddd;border:4px solid transparent;border-radius:50%;height:8px;left:17px;top:18px;transform:translate(-50%,-50%);width:8px;z-index:1}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:2px;color:var(--wp-admin-theme-color);outline:3px solid transparent;outline-offset:-2px}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date{color:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true]:before{background:var(--wp-admin-theme-color)}.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes>li,.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta{color:#1e1e1e}.global-styles-ui-screen-revisions__revision-item:after{border:.5px solid #ddd;height:100%;left:16px;top:0;width:0}.global-styles-ui-screen-revisions__revision-item:first-child:after{top:18px}.global-styles-ui-screen-revisions__revision-item:last-child:after{height:18px}.global-styles-ui-screen-revisions__revision-item-wrapper{display:block;padding:12px 12px 4px 40px}.global-styles-ui-screen-revisions__active-badge,.global-styles-ui-screen-revisions__apply-button.is-primary{align-self:flex-start;margin:0 12px 12px 40px}.global-styles-ui-screen-revisions__changes,.global-styles-ui-screen-revisions__meta{color:#757575;font-size:12px}.global-styles-ui-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date{font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}.global-styles-ui-screen-revisions__meta{align-items:flex-start;display:flex;justify-content:start;margin-bottom:4px;text-align:left;width:100%}.global-styles-ui-screen-revisions__meta img{border-radius:100%;height:16px;margin-right:8px;width:16px}.global-styles-ui-screen-revisions__loading{margin:24px auto!important}.global-styles-ui-screen-revisions__changes{line-height:1.4;list-style:disc;margin-left:12px;text-align:left}.global-styles-ui-screen-revisions__changes li{margin-bottom:4px}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination{gap:2px;justify-content:space-between}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total{height:1px;left:-1000px;margin:-1px;overflow:hidden;position:absolute}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text{font-size:12px;will-change:opacity}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary{color:#1e1e1e}.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled,.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true]{color:#949494}.global-styles-ui-screen-revisions__footer{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;height:56px;min-width:100%;padding:12px;position:sticky;z-index:1}.global-styles-ui-variations_item{box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{border-radius:2px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px;overflow:hidden;position:relative}@media not (prefers-reduced-motion){.global-styles-ui-variations_item .global-styles-ui-variations_item-preview{transition:outline .1s linear}}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill{height:32px}.global-styles-ui-variations_item .global-styles-ui-variations_item-preview.is-pill .block-editor-iframe__scale-container{overflow:hidden}.global-styles-ui-variations_item:not(.is-active):hover .global-styles-ui-variations_item-preview{outline-color:rgba(0,0,0,.3)}.global-styles-ui-variations_item.is-active .global-styles-ui-variations_item-preview,.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:#1e1e1e;outline-offset:1px;outline-width:var(--wp-admin-border-width-focus)}.global-styles-ui-variations_item:focus-visible .global-styles-ui-variations_item-preview{outline-color:var(--wp-admin-theme-color)}.global-styles-ui-preview__wrapper{display:block;max-width:100%;width:100%}.global-styles-ui-preview__wrapper.is-hoverable{cursor:var(--wpds-cursor-control,pointer)}.global-styles-ui-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:20px;min-height:100px;overflow:hidden}.global-styles-ui-font-size__item{line-break:anywhere;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-styles-ui-font-size__item-value{color:#757575}.global-styles-ui-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.global-styles-ui-block-types-search{margin-bottom:10px;padding:0 16px}.global-styles-ui-screen-typography__font-variants-count{color:#757575}.global-styles-ui-font-families__manage-fonts{justify-content:center}.global-styles-ui-screen .color-block-support-panel{border-top:none;padding-left:0;padding-right:0;padding-top:0;row-gap:12px}.global-styles-ui-header{line-height:1.9!important;margin-bottom:0!important}.global-styles-ui-subtitle{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)!important;margin-bottom:0!important;text-transform:uppercase}.global-styles-ui-section-title{color:#2f2f2f;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.2;margin:0;padding:16px 16px 0}.global-styles-ui-icon-with-current-color{fill:currentColor}.global-styles-ui__color-indicator-wrapper{flex-shrink:0;height:24px}.global-styles-ui__shadows-panel__options-container,.global-styles-ui__typography-panel__options-container{height:24px}.global-styles-ui__block-preview-panel{border:1px solid #ddd;border-radius:2px;overflow:hidden;position:relative;width:100%}.global-styles-ui__shadow-preview-panel{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,8px 8px;background-size:16px 16px;border:1px solid #ddd;border-radius:2px;height:144px;overflow:auto}.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block{background-color:#fff;border:1px solid #ddd;border-radius:2px;height:60px;width:60%}.global-styles-ui__shadow-editor__dropdown-content{width:280px}.global-styles-ui__shadow-editor-panel{margin-bottom:4px}.global-styles-ui__shadow-editor__dropdown{position:relative;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle{border-radius:inherit;height:auto;padding-bottom:8px;padding-top:8px;text-align:left;width:100%}.global-styles-ui__shadow-editor__dropdown-toggle.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.global-styles-ui__shadow-editor__remove-button{opacity:0;position:absolute;right:8px;top:8px}.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button{border:none}.global-styles-ui__shadow-editor__dropdown-toggle:hover+.global-styles-ui__shadow-editor__remove-button,.global-styles-ui__shadow-editor__remove-button:focus,.global-styles-ui__shadow-editor__remove-button:hover{opacity:1}@media (hover:none){.global-styles-ui__shadow-editor__remove-button{opacity:1}}.global-styles-ui-screen-css{display:flex;flex:1 1 auto;flex-direction:column;margin:16px}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel{flex:1 1 auto}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input,.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea{flex:1 1 auto}.global-styles-ui-screen-css-help-link{display:inline-block;margin-top:8px}.global-styles-ui-screen-variations{border-top:1px solid #ddd;margin-top:16px}.global-styles-ui-screen-variations>*{margin:24px 16px}.global-styles-ui-sidebar__navigator-provider{height:100%}.global-styles-ui-sidebar__navigator-screen{display:flex;flex-direction:column;height:100%}.global-styles-ui-color-palette__tablist-container{border-bottom:1px solid #ddd}.global-styles-ui-color-palette__tablist{margin-bottom:-1px}.global-styles-ui-sidebar__navigator-screen .single-column{grid-column:span 1}.global-styles-ui-screen-root.global-styles-ui-screen-root,.global-styles-ui-screen-style-variations.global-styles-ui-screen-style-variations{background:unset;color:inherit}.global-styles-ui-sidebar__panel .block-editor-block-icon svg{fill:currentColor}.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile,.global-styles-ui-screen-root__active-style-tile.global-styles-ui-screen-root__active-style-tile .global-styles-ui-screen-root__active-style-tile-preview{border-radius:2px}.global-styles-ui-screen-root__active-style-tile-preview{clip-path:border-box}.dataviews-picker-wrapper,.dataviews-wrapper{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));box-sizing:border-box;container:dataviews-wrapper/inline-size;display:flex;flex-direction:column;flex-grow:1;font-size:var(--wpds-typography-font-size-md,13px);height:100%;line-height:var(--wpds-typography-line-height-sm,20px);min-height:0;scroll-padding-bottom:64px}.dataviews-filters__container,.dataviews__view-actions{background-color:inherit;box-sizing:border-box;flex-shrink:0;left:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky}@media not (prefers-reduced-motion){.dataviews-filters__container,.dataviews__view-actions{transition:padding .1s ease-out}}.dataviews__search{flex-grow:1}.dataviews-loading,.dataviews-no-results{align-items:center;display:flex;flex-grow:1;justify-content:center;padding:0 var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-loading,.dataviews-no-results{transition:padding .1s ease-out}}.dataviews-no-results.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-no-results.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@keyframes dataviews-pulse{0%,to{opacity:1}50%{opacity:.5}}.dataviews-loading-more{text-align:center}.dataviews-loading-more[aria-hidden=true]{visibility:hidden}@container (max-width: 430px){.dataviews-filters__container,.dataviews__view-actions{padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}}.dataviews-title-field{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-emphasis,600);text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field a{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.dataviews-title-field a:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews-title-field button.components-button.is-link{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);display:block;font-weight:inherit;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;width:100%}.dataviews-title-field button.components-button.is-link:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer)}.dataviews-title-field--clickable:hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-title-field--clickable:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color--rgb)}.dataviews__view-actions--infinite-scroll{background-color:#fff;position:sticky;top:0;z-index:2}.components-card__body:has(>.dataviews-picker-wrapper),.components-card__body:has(>.dataviews-wrapper){overflow:hidden;padding:var(--wpds-dimension-padding-sm,8px) 0 0}.dataviews-bulk-actions-footer__item-count{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-bulk-actions-footer__container{margin-right:auto;min-height:var(--wpds-dimension-size-md,32px)}.dataviews-layout__container{background-color:inherit;display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.dataviews-filters__button{position:relative}.dataviews-filters__container{padding-top:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true],.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:hover{opacity:0}.dataviews-filters__reset-button.dataviews-filters__reset-button[aria-disabled=true]:focus{opacity:1}.dataviews-filters__summary-popover{font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.dataviews-filters__summary-popover .components-popover__content{border-radius:var(--wpds-border-radius-md,4px);max-width:250px;min-width:230px;width:100%}.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content{padding:0}.dataviews-filters__summary-operators-container{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-listbox),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__search-widget-no-elements),.dataviews-filters__summary-operators-container:has(+.dataviews-filters__user-input-widget){border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-filters__summary-operators-container:empty{display:none}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);flex-shrink:0;max-width:calc(100% - 55px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select{overflow:hidden;white-space:nowrap;width:100%}.dataviews-filters__summary-chip-container{position:relative;white-space:pre-wrap}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip{align-items:center;border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px);position:relative}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable{cursor:default}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset{padding-inline-end:calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values{background:var(--wpds-color-background-interactive-brand-weak,transparent);border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values.is-not-clickable),.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true]{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove{align-items:center;background:transparent;border:0;border-radius:var(--wpds-border-radius-md,4px);cursor:var(--wpds-cursor-control,pointer);display:flex;height:var(--wpds-dimension-size-sm,24px);justify-content:center;padding:0;position:absolute;right:var(--wpds-dimension-padding-xs,4px);top:50%;transform:translateY(-50%);width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg{fill:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover{background:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg,.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg{fill:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover{background:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible{box-shadow:0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:none}.dataviews-filters__search-widget-filter-combobox-list{border-top:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);max-height:184px;overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value]{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.dataviews-filters__search-widget-listbox{overflow:auto;padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-filters__search-widget-listitem{align-items:center;border-radius:var(--wpds-border-radius-sm,2px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:default;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);gap:var(--wpds-dimension-gap-md,12px);line-height:20px;min-height:var(--wpds-dimension-size-md,32px);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-md,12px)}.dataviews-filters__search-widget-listitem:last-child{margin-block-end:0}.dataviews-filters__search-widget-listitem:focus,.dataviews-filters__search-widget-listitem:hover,.dataviews-filters__search-widget-listitem[data-active-item]{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));border-color:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000))}.dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description,.dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-sm,12px);line-height:16px;overflow:hidden;text-overflow:ellipsis}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{border:1px solid #1e1e1e;border-radius:50%;height:24px;margin-right:12px;max-width:24px;min-width:24px;position:relative;transition:none;width:24px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{height:16px;max-width:16px;min-width:16px;width:16px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked{background:var(--wp-admin-theme-color);border:none}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection{margin:0;padding:0}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{background-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);border:4px solid var(--wpds-color-foreground-interactive-brand-strong,#fff);border-radius:50%;box-sizing:inherit;content:"";height:12px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:12px}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected:before{height:8px;width:8px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:24px;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex-shrink:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:12px;padding:6px 8px;transition:none}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked:before,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f460";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]:before{float:none;font-size:21px}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled,.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]{background:#f0f0f0;border-color:#ddd;cursor:default;opacity:1}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{background:var(--wpds-color-background-interactive-neutral-weak,transparent);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);height:var(--checkbox-size);margin:0;padding:0;position:relative;width:var(--checkbox-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{--checkbox-size:16px}}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection{transition:border-color .1s ease-in-out}}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:var(--checkbox-size);fill:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);height:var(--checkmark-size);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--checkmark-size)}@media (min-width:600px){.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg{--checkmark-size:calc(var(--checkbox-size) + 4px)}}.dataviews-filters__search-widget-filter-combobox__wrapper{padding:var(--wpds-dimension-padding-sm,8px);position:relative}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:normal;padding:6px 8px}@media not (prefers-reduced-motion){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{transition:box-shadow .1s linear}}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:13px;line-height:normal}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:rgba(30,30,30,.62)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{display:block;font-size:16px;height:var(--wpds-dimension-size-md,32px);margin-left:0;margin-right:0;padding:0 var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-size-md,32px);width:100%}@media (min-width:600px){.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input{font-size:var(--wpds-typography-font-size-md,13px)}}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus{background:var(--wpds-color-background-surface-neutral-strong,#fff);box-shadow:inset 0 0 0 var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-moz-placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button,.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration{-webkit-appearance:none}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon{align-items:center;bottom:0;display:flex;inset-inline-start:var(--wpds-dimension-gap-md,12px);justify-content:center;position:absolute;top:0;width:var(--wpds-dimension-size-sm,24px)}.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr){transform:scaleX(-1)}.dataviews-filters__container-visibility-toggle{flex-shrink:0;position:relative}.dataviews-filters-toggle__count{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);font-size:11px;height:var(--wpds-dimension-size-2xs,16px);line-height:var(--wpds-typography-line-height-xs,16px);min-width:var(--wpds-dimension-size-2xs,16px);outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-background-surface-neutral-strong,#fff);padding:0 var(--wpds-dimension-padding-xs,4px);position:absolute;right:0;text-align:center;top:0;transform:translate(50%,-50%)}.dataviews-search{flex-basis:210px}.dataviews-filters__user-input-widget{padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-filters__user-input-widget .components-input-control__prefix{padding-left:var(--wpds-dimension-padding-sm,8px)}.dataviews-filters__search-widget-no-elements{align-items:center;display:flex;justify-content:center;padding:var(--wpds-dimension-padding-lg,16px)}.dataviews-footer{background-color:inherit;border-top:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;flex-shrink:0;left:0;padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px);position:sticky}@media not (prefers-reduced-motion){.dataviews-footer{transition:padding .1s ease-out}}.dataviews-footer{z-index:1}.dataviews-footer .is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-footer .is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}@container (max-width: 560px){.dataviews-footer__content{flex-direction:column!important}.dataviews-footer__content .dataviews-bulk-actions-footer__container{width:100%}.dataviews-footer__content .dataviews-bulk-actions-footer__item-count{flex-grow:1}.dataviews-footer__content .dataviews-pagination{justify-content:space-between;width:100%}}.dataviews-pagination__page-select{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);text-transform:uppercase}@media (min-width:600px){.dataviews-pagination__page-select .components-select-control__input{font-size:11px!important;font-weight:var(--wpds-typography-font-weight-emphasis,600)}}.dataviews-action-modal{z-index:1000001}.dataviews-item-actions .components-button:not(.dataviews-all-actions-button){padding:0 var(--wpds-dimension-padding-xs,4px)}.dataviews-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-selection-checkbox{--checkbox-input-size:16px}}.dataviews-selection-checkbox{flex-shrink:0;line-height:0}.dataviews-selection-checkbox .components-checkbox-control__input-container{margin:0}.dataviews-view-config{container-type:inline-size;font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px);width:320px}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper{height:100%;overflow-y:scroll}.dataviews-config__popover.is-expanded .dataviews-config__popover-content-wrapper .dataviews-view-config{width:auto}.dataviews-view-config__sort-direction .components-toggle-group-control-option-base{text-transform:uppercase}.dataviews-settings-section__title.dataviews-settings-section__title{font-size:15px;line-height:var(--wpds-typography-line-height-md,24px)}.dataviews-settings-section__sidebar{grid-column:span 4}.dataviews-settings-section__content,.dataviews-settings-section__content>*{grid-column:span 8}.dataviews-settings-section__content .is-divided-in-two{display:contents}.dataviews-settings-section__content .is-divided-in-two>*{grid-column:span 4}.dataviews-settings-section:has(.dataviews-settings-section__content:empty){display:none}@container (max-width: 500px){.dataviews-settings-section.dataviews-settings-section{grid-template-columns:repeat(2,1fr)}.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__content,.dataviews-settings-section.dataviews-settings-section .dataviews-settings-section__sidebar{grid-column:span 2}}.dataviews-view-config__sort-controls>*{flex:1}.dataviews-view-config__label{text-wrap:nowrap}.dataviews-view-config__toggle-wrapper{display:inline-flex;position:relative}.dataviews-view-config__modified-indicator{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-radius:50%;height:var(--wpds-dimension-gap-xs,4px);pointer-events:none;position:absolute;right:var(--wpds-dimension-gap-xs,4px);top:var(--wpds-dimension-gap-xs,4px);width:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-grid-items{container-type:inline-size;display:grid;gap:var(--wpds-dimension-gap-xl,24px);grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-template-rows:max-content;margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid-items{transition:padding .1s ease-out}}.dataviews-view-grid-items.has-compact-density{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid-items.has-comfortable-density{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid{container-type:inline-size;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xl,24px);margin-bottom:auto;padding:0 var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}@media not (prefers-reduced-motion){.dataviews-view-grid{transition:padding .1s ease-out}}.dataviews-view-grid.has-compact-density,.dataviews-view-grid.has-compact-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-grid.has-comfortable-density,.dataviews-view-grid.has-comfortable-density .dataviews-view-grid__row{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-grid .dataviews-view-grid__row{display:grid;gap:var(--wpds-dimension-gap-xl,24px)}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell{border-radius:var(--wpds-border-radius-md,4px);position:relative}.dataviews-view-grid .dataviews-view-grid__row .dataviews-view-grid__row__gridcell[data-focus-visible]:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";height:100%;left:0;outline:2px solid transparent;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__card,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-actions,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-grid .dataviews-view-grid__media,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media{aspect-ratio:var(--wp-dataviews-media-aspect-ratio,1/1);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);overflow:hidden;position:relative;width:100%}.dataviews-view-grid .dataviews-view-grid__media.dataviews-view-grid__media--placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media.dataviews-view-grid__media--placeholder{aspect-ratio:3/1}.dataviews-view-grid .dataviews-view-grid__media img,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-grid .dataviews-view-grid__media:after,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-grid .dataviews-view-grid__media .dataviews-view-grid__media-placeholder,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__media .dataviews-view-grid__media-placeholder{background:var(--wpds-color-background-surface-neutral,#fcfcfc);border-radius:var(--wpds-border-radius-md,4px);box-shadow:none;display:block;height:100%;width:100%}.dataviews-view-grid .dataviews-view-grid__fields,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-grid .dataviews-view-grid__fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value,.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field:not(:has(.dataviews-view-grid__field-value:not(:empty))){display:none}.dataviews-view-grid .dataviews-view-grid__badge-fields:not(:empty),.dataviews-view-grid-infinite-scroll .dataviews-view-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-grid-infinite-scroll.is-refreshing,.dataviews-view-grid.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-grid__field-value:empty,.dataviews-view-grid__field:empty{display:none}.dataviews-view-grid__card .dataviews-selection-checkbox{left:var(--wpds-dimension-padding-sm,8px);opacity:0;position:absolute;top:-9999em;z-index:1}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-selection-checkbox{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-grid__card:hover .dataviews-selection-checkbox{opacity:1;top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:0;position:absolute;right:var(--wpds-dimension-padding-xs,4px);top:var(--wpds-dimension-padding-xs,4px);z-index:1}.dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button{background-color:var(--wpds-color-background-surface-neutral-strong,#fff)}@media not (prefers-reduced-motion){.dataviews-view-grid__card .dataviews-view-grid__media-actions{transition:opacity .1s linear}}@media (hover:none){.dataviews-view-grid__card .dataviews-view-grid__media-actions{opacity:1;top:var(--wpds-dimension-padding-xs,4px)}}.dataviews-view-grid__card .dataviews-view-grid__media-actions:has(.dataviews-all-actions-button[aria-expanded=true]),.dataviews-view-grid__card:focus-within .dataviews-view-grid__media-actions,.dataviews-view-grid__card:hover .dataviews-view-grid__media-actions{opacity:1}.dataviews-view-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-grid__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);container-type:inline-size;font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}div.dataviews-view-list{list-style-type:none}.dataviews-view-list{margin:0 0 auto}.dataviews-view-list div[role=article],.dataviews-view-list div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);margin:0}.dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper{box-sizing:border-box;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:relative}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions{display:flex;flex:0 0 auto;gap:var(--wpds-dimension-gap-xs,4px);white-space:nowrap;width:-moz-max-content;width:max-content}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions .components-button,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions .components-button{position:relative;z-index:1}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>div,.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>div{height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex:0;overflow:hidden;width:0}.dataviews-view-list div[role=article]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row]:where(.is-selected,.is-hovered,:focus-within) .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}@media (hover:none){.dataviews-view-list div[role=article] .dataviews-view-list__item-actions>:not(:last-child),.dataviews-view-list div[role=row] .dataviews-view-list__item-actions>:not(:last-child){flex-basis:min-content;overflow:unset;width:auto}}.dataviews-view-list div[role=article].is-selected.is-selected,.dataviews-view-list div[role=article].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=article].is-selected.is-selected+div[role=row],.dataviews-view-list div[role=row].is-selected.is-selected,.dataviews-view-list div[role=row].is-selected.is-selected+div[role=article],.dataviews-view-list div[role=row].is-selected.is-selected+div[role=row]{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered,.dataviews-view-list div[role=article]:not(.is-selected):focus-within,.dataviews-view-list div[role=article]:not(.is-selected):hover,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered,.dataviews-view-list div[role=row]:not(.is-selected):focus-within,.dataviews-view-list div[role=row]:not(.is-selected):hover{background-color:var(--wpds-color-background-interactive-brand-weak,transparent);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=article]:not(.is-selected):hover .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):focus-within .dataviews-view-list__field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field,.dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field,.dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.dataviews-view-list .dataviews-view-list__item{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:var(--wpds-cursor-control,pointer);inset:0;padding:0;position:absolute;scroll-margin:var(--wpds-dimension-gap-sm,8px) 0;z-index:1}.dataviews-view-list .dataviews-view-list__item:focus-visible{outline:none}.dataviews-view-list .dataviews-view-list__item:focus-visible:before{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));content:"";inset:var(--wp-admin-border-width-focus);outline:2px solid transparent;position:absolute}.dataviews-view-list .dataviews-view-list__title-field{flex:1;line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden}.dataviews-view-list .dataviews-view-list__title-field:has(a,button){z-index:1}.dataviews-view-list .dataviews-view-list__media-wrapper{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;height:48px;overflow:hidden;position:relative;width:48px}.dataviews-view-list .dataviews-view-list__media-wrapper img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-list .dataviews-view-list__media-wrapper:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-list .dataviews-view-list__field-wrapper{flex-grow:1;min-height:48px;min-width:0}.dataviews-view-list .dataviews-view-list__field{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}.dataviews-view-list .dataviews-view-list__fields{display:flex;flex-wrap:wrap;font-size:12px;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list .dataviews-view-list__fields:empty{display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field:has(.dataviews-view-list__field-value:empty){display:none}.dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value{align-items:center;display:flex;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-list+.dataviews-pagination{justify-content:space-between}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper{height:var(--wpds-dimension-size-md,32px);width:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__field-wrapper{min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-sm,8px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-xs,16px);min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper{padding:var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field{line-height:var(--wpds-typography-line-height-xl,32px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper{height:64px;width:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper{min-height:64px}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields{gap:var(--wpds-dimension-gap-lg,16px);row-gap:var(--wpds-dimension-gap-sm,8px)}.dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value{line-height:var(--wpds-typography-line-height-md,24px);min-height:var(--wpds-dimension-size-md,32px)}.dataviews-view-list.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-list.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-list__group-header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-lg,16px) 0;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table{background-color:inherit;border-collapse:collapse;border-color:inherit;color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin-bottom:auto;position:relative;text-indent:0;width:100%}.dataviews-view-table th{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;text-align:left}.dataviews-view-table td,.dataviews-view-table th{padding:var(--wpds-dimension-padding-md,12px)}.dataviews-view-table td.dataviews-view-table__actions-column,.dataviews-view-table th.dataviews-view-table__actions-column{text-align:right}.dataviews-view-table td.dataviews-view-table__actions-column--sticky,.dataviews-view-table th.dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));position:sticky;right:0}.dataviews-view-table td.dataviews-view-table__actions-column--stuck:after,.dataviews-view-table th.dataviews-view-table__actions-column--stuck:after{background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:1px}.dataviews-view-table td.dataviews-view-table__checkbox-column,.dataviews-view-table th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table td.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper,.dataviews-view-table th.dataviews-view-table__checkbox-column .dataviews-view-table__cell-content-wrapper{max-width:auto;min-width:auto}.dataviews-view-table tr{background-color:inherit;border-top:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0)}.dataviews-view-table tr td:first-child,.dataviews-view-table tr th:first-child{padding-left:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr td:last-child,.dataviews-view-table tr th:last-child{padding-right:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table tr:last-child{border-bottom:0}.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:0}@media (hover:none){.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}}.dataviews-view-table tr.is-selected{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-table tr.is-selected,.dataviews-view-table tr.is-selected+tr{border-top:1px solid var(--wpds-color-stroke-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 40%,#fff))}.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button),.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button){opacity:1}.dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wp-dataviews-color-background,var(--wpds-color-background-surface-neutral-strong,#fff))}.dataviews-view-table.has-bulk-actions tr.is-selected .dataviews-view-table__actions-column--sticky,.dataviews-view-table.has-bulk-actions tr.is-selected:hover .dataviews-view-table__actions-column--sticky{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-table thead{background-color:inherit;inset-block-start:0;position:sticky;z-index:1}.dataviews-view-table thead.dataviews-view-table__thead--stuck:after{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}.dataviews-view-table thead tr{border:0}.dataviews-view-table thead th{background-color:inherit;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding-bottom:var(--wpds-dimension-padding-sm,8px);padding-top:var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table thead th:has(.dataviews-view-table-header-button){padding-left:var(--wpds-dimension-padding-xs,4px);padding-right:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button) .dataviews-view-table-header-button{gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):first-child{padding-left:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table thead th:has(.dataviews-view-table-header-button):last-child{padding-right:var(--wpds-dimension-padding-lg,16px)}.dataviews-view-table tbody td{vertical-align:top}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper{align-items:center;display:flex;min-height:var(--wpds-dimension-size-md,32px);white-space:nowrap}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end{font-variant-numeric:tabular-nums;justify-content:flex-end}.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center{justify-content:center}.dataviews-view-table tbody .components-v-stack>.dataviews-view-table__cell-content-wrapper:not(:first-child){min-height:0}.dataviews-view-table .dataviews-view-table-header-button{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);text-transform:uppercase}.dataviews-view-table .dataviews-view-table-header-button:not(:hover){color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.dataviews-view-table .dataviews-view-table-header-button span{speak:none}.dataviews-view-table .dataviews-view-table-header-button span:empty{display:none}.dataviews-view-table .dataviews-view-table-header{padding-left:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-table .dataviews-view-table__actions-column{white-space:nowrap;width:auto}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:first-child){padding-left:0}.dataviews-view-table.has-compact-density thead th:has(.dataviews-view-table-header-button):not(:last-child){padding-right:0}.dataviews-view-table.has-compact-density td,.dataviews-view-table.has-compact-density th{padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px)}.dataviews-view-table.has-comfortable-density td,.dataviews-view-table.has-comfortable-density th{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-md,12px)}.dataviews-view-table.has-comfortable-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-comfortable-density th.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density td.dataviews-view-table__checkbox-column,.dataviews-view-table.has-compact-density th.dataviews-view-table__checkbox-column{padding-right:0}.dataviews-view-table-selection-checkbox{--checkbox-input-size:24px}@media (min-width:600px){.dataviews-view-table-selection-checkbox{--checkbox-input-size:16px}}.dataviews-column-primary__media{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);flex-shrink:0;max-width:60px;min-height:var(--wpds-dimension-size-md,32px);min-width:var(--wpds-dimension-size-md,32px);overflow:hidden;position:relative}.dataviews-column-primary__media img{height:var(--wpds-dimension-size-md,32px);-o-object-fit:cover;object-fit:cover;width:var(--wpds-dimension-size-md,32px)}.dataviews-column-primary__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;position:absolute;top:0;width:100%}.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media{aspect-ratio:var(--wp-dataviews-media-aspect-ratio,1/1);height:var(--wpds-dimension-size-md,32px);min-width:0}.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img{height:100%;width:100%}.dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media),.dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media){max-width:80ch;min-width:15ch}.dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:var(--wpds-dimension-padding-md,12px) var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand){width:1%}.dataviews-view-table.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-table.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-picker-grid.has-compact-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-lg,16px)}.dataviews-view-picker-grid.has-comfortable-density .dataviews-view-grid-items{gap:var(--wpds-dimension-gap-2xl,32px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card{height:100%;isolation:isolate;justify-content:flex-start;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-actions{padding:var(--wpds-dimension-padding-sm,8px) 0 var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field{align-content:center;min-height:var(--wpds-dimension-size-sm,24px);overflow:hidden;text-align:start}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field--clickable{width:-moz-fit-content;width:fit-content}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media:after{box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9)),inset 0 0 0 var(--wpds-border-width-sm,2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus:after{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-grid:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-grid .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)!important}.dataviews-view-picker-grid .dataviews-selection-checkbox input{pointer-events:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__media{aspect-ratio:1/1;background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);min-height:0;position:relative;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__media:after{border-radius:var(--wpds-border-radius-md,4px);box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) rgba(0,0,0,.1);content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields{font-size:12px;line-height:16px;position:relative}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields:not(:empty){padding:0 0 var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty){line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);padding-top:calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px))/2)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field{align-items:center;min-height:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name{color:var(--wpds-color-foreground-content-neutral-weak,#707070);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:35%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:65%}.dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field:not(:has(.dataviews-view-picker-grid__field-value:not(:empty))){display:none}.dataviews-view-picker-grid .dataviews-view-picker-grid__badge-fields:not(:empty){padding-bottom:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-grid__field-value:empty,.dataviews-view-picker-grid__field:empty{display:none}.dataviews-view-picker-grid__card .dataviews-selection-checkbox{left:var(--wpds-dimension-padding-sm,8px);position:absolute;top:-9999em;z-index:1}@media (hover:none){.dataviews-view-picker-grid__card .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}}.dataviews-view-picker-grid__card.is-selected .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:focus-within .dataviews-selection-checkbox,.dataviews-view-picker-grid__card:hover .dataviews-selection-checkbox{top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-grid__media--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-grid-group__header{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0 48px}.dataviews-view-picker-table{background-color:inherit}.dataviews-view-picker-table .dataviews-view-table__checkbox-column{width:48px}.dataviews-view-picker-table tbody:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-table tbody:focus-visible [data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input{opacity:1;pointer-events:none}.dataviews-view-picker-table .dataviews-view-table__row{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-picker-table .dataviews-view-table__row.is-hovered,.dataviews-view-picker-table .dataviews-view-table__row.is-selected,.dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-activity{margin:0 0 auto;padding:0 var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-activity .dataviews-view-activity__group-header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0}.dataviews-view-activity .dataviews-view-activity__item-actions{min-width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item-content{flex-grow:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields,.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable{cursor:var(--wpds-cursor-control,pointer)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible{border-radius:var(--wpds-border-radius-sm,2px);outline:var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wp-admin-border-width-focus)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions{display:flex;flex:0 0 auto;width:-moz-max-content;width:max-content}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__primary-actions .components-button{position:relative;z-index:1}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields:empty{display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field:has(.dataviews-view-activity__item-field-value:empty){display:none}.dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields .dataviews-view-activity__item-field-value{align-items:center;display:flex}.dataviews-view-activity .dataviews-view-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-activity .dataviews-view-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-activity .dataviews-view-activity__item:first-child .dataviews-view-activity__item-type:before{visibility:hidden}.dataviews-view-activity .dataviews-view-activity__group:last-of-type>.dataviews-view-activity__item:last-of-type .dataviews-view-activity__item-type:after,.dataviews-view-activity>.dataviews-view-activity__item:last-child .dataviews-view-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-activity .dataviews-view-activity__item-type-icon{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);flex-shrink:0;overflow:hidden}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet,.dataviews-view-activity .dataviews-view-activity__item-type-icon img,.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-activity .dataviews-view-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-activity .dataviews-view-activity__item-type-icon .dataviews-view-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:""}.dataviews-view-activity.is-refreshing{opacity:.5;pointer-events:none}@media not (prefers-reduced-motion){.dataviews-view-activity.is-refreshing{animation:dataviews-pulse 1s ease-in-out infinite;opacity:1}}.dataviews-view-activity+.dataviews-pagination{justify-content:space-between}.dataviews-view-picker-activity{flex-grow:1;margin:0;padding:0}.dataviews-view-picker-activity:focus-visible[aria-activedescendant]{outline:none}.dataviews-view-picker-activity:focus-visible .dataviews-view-picker-activity__item[data-active-item=true]{outline:2px solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item{border-radius:var(--wpds-border-radius-sm,2px);cursor:var(--wpds-cursor-control,pointer);padding-inline:var(--wpds-dimension-padding-2xl,24px);transition:background-color .1s ease}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected,.dataviews-view-picker-activity .dataviews-view-picker-activity__item:hover{background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff))}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected{outline:3px solid transparent;outline-offset:-2px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-3xs, 12px) - 1px);width:calc(var(--wpds-dimension-size-3xs, 12px) - 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-sm,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-3xs,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-sm, 24px) + 1px);width:calc(var(--wpds-dimension-size-sm, 24px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-md,12px) 0;padding-top:var(--wpds-dimension-padding-sm,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type{width:var(--wpds-dimension-size-md,32px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type:before{height:var(--wpds-dimension-size-4xs,8px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type-icon{height:calc(var(--wpds-dimension-size-md, 32px) + 1px);width:calc(var(--wpds-dimension-size-md, 32px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-content{margin:var(--wpds-dimension-gap-sm,8px) 0 var(--wpds-dimension-gap-lg,16px);padding-top:var(--wpds-dimension-padding-md,12px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-bullet{height:calc(var(--wpds-dimension-size-4xs, 8px) + 1px);position:relative;top:50%;transform:translateY(-50%);width:calc(var(--wpds-dimension-size-4xs, 8px) + 1px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content{flex-grow:1}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{min-height:var(--wpds-dimension-size-2xs,16px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title{align-items:center;display:flex;flex:1;overflow:hidden;position:relative}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);row-gap:var(--wpds-dimension-gap-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields:empty{display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field:has(.dataviews-view-picker-activity__item-field-value:empty){display:none}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field-value{align-items:center;display:flex}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type{align-self:stretch;flex-shrink:0}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:after{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:1 1 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);content:"";flex:0 0 auto;margin:0 auto;width:1px}.dataviews-view-picker-activity .dataviews-view-picker-activity__item:first-child .dataviews-view-picker-activity__item-type:before{visibility:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity-group:last-of-type>.dataviews-view-picker-activity__item:last-of-type .dataviews-view-picker-activity__item-type:after,.dataviews-view-picker-activity>.dataviews-view-picker-activity__item:last-child .dataviews-view-picker-activity__item-type:after{background:linear-gradient(to bottom,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 0,color-mix(in srgb,var(--wpds-color-stroke-surface-neutral,#dbdbdb) 20%,transparent) 60%,transparent 100%)}.dataviews-view-picker-activity .dataviews-view-picker-activity-group__header{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:var(--wpds-typography-font-size-lg,15px);font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 var(--wpds-dimension-gap-sm,8px) 0;padding:0;padding-inline-start:var(--wpds-dimension-padding-2xl,24px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon{background-color:transparent;flex-shrink:0;overflow:hidden}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon img,.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{border-radius:50%;box-shadow:inset 0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:border-box;display:block;height:100%;margin:0 auto;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg{padding:var(--wpds-dimension-padding-xs,4px)}.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-picker-footer__bulk-selection{align-self:flex-start;height:var(--wpds-dimension-size-md,32px)}.dataviews-picker-footer__actions{align-self:flex-end}.dataviews-controls__datetime{border:none;padding:0}.dataviews-controls__relative-date-number,.dataviews-controls__relative-date-unit{flex:1 1 50%}.dataviews-controls__date input[type=date]::-webkit-calendar-picker-indicator,.dataviews-controls__date input[type=date]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.dataviews-controls__date-range-inputs>*{min-width:0}.dataviews-controls__color-picker-dropdown{display:flex}.dataviews-controls__date-preset{border:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.dataviews-controls__date-preset:active{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}.dataviews-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop{--wp-components-color-accent:#cc1818;border-color:#cc1818}.dataviews-validated-control__indicator{align-items:flex-start;animation:dataviews-validated-control__indicator-jump .2s cubic-bezier(.68,-.55,.27,1.55);color:#757575;display:flex;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;gap:4px;line-height:16px;margin:8px 0 0}.dataviews-validated-control__indicator.is-invalid{color:#cc1818}.dataviews-validated-control__indicator.is-valid{color:color-mix(in srgb,#000 30%,#4ab866)}.dataviews-validated-control__indicator-icon{flex-shrink:0}.dataviews-validated-control__indicator-spinner{height:12px;margin:2px;width:12px}@keyframes dataviews-validated-control__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.dataforms-layouts-panel__field-trigger{align-items:flex-start;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;isolation:isolate;min-height:var(--wpds-dimension-size-sm,24px);position:relative;width:100%}.dataforms-layouts-panel__field-trigger--label-side{flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px)}.dataforms-layouts-panel__field-trigger--label-top{display:grid;grid-template-columns:1fr auto}.dataforms-layouts-panel__field-trigger--label-none{align-items:center}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon{opacity:1}.dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger.is-disabled{cursor:default}.dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400)}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon{fill:currentColor;opacity:1}.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible,.dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover{fill:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-trigger-icon{border-radius:var(--wpds-border-radius-xs,1px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));flex:0 0 auto;opacity:0;padding:0}.dataforms-layouts-panel__field-trigger-icon:focus-visible{opacity:1;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}.dataforms-layouts-panel__field-dropdown-anchor,.dataforms-layouts-panel__field-dropdown-anchor .components-dropdown{width:100%}.dataforms-layouts-panel__field-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-sm,24px);width:38%}.dataforms-layouts-panel__field-label .components-base-control__label{display:inline;line-height:inherit;margin-bottom:0}.dataforms-layouts-panel__field-label-error-content,.dataforms-layouts-panel__field-label.has-error{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}.dataforms-layouts-panel__field-label-error-content{align-items:center;cursor:help;display:inline-flex;flex-direction:row;gap:var(--wpds-dimension-gap-xs,4px);position:relative;z-index:1}.dataforms-layouts-panel__field-control{align-items:center;display:flex;flex-grow:1;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-md,24px);margin-inline:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1);min-height:var(--wpds-dimension-size-sm,24px);min-width:0;overflow:clip;padding-inline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));word-break:break-word}.dataforms-layouts-panel__field-control>*{min-width:0}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-label{width:100%}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-control{grid-column:1/-1}.dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-trigger-icon{grid-column:2;grid-row:1}.dataforms-layouts-panel__field-dropdown .components-popover__content{min-width:320px;padding:var(--wpds-dimension-padding-lg,16px)}.dataforms-layouts-panel__dropdown-header{margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-panel__modal-footer{margin-top:var(--wpds-dimension-gap-lg,16px)}.components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown{z-index:159990}.dataforms-layouts-panel__summary-button:empty{min-width:160px}.dataforms-layouts-regular__field{align-items:flex-start!important;justify-content:flex-start!important;min-height:var(--wpds-dimension-size-md,32px);width:100%}.dataforms-layouts-regular__field .components-base-control__label,.dataforms-layouts-regular__field .components-form-token-field__label,.dataforms-layouts-regular__field .components-input-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}.dataforms-layouts-regular__field-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wpds-dimension-size-md,32px);width:38%}.dataforms-layouts-regular__field-label--label-position-side{align-self:center}.dataforms-layouts-regular__field-label .components-base-control__label{margin-bottom:0}.dataforms-layouts-regular__field-control{align-items:center;display:flex;flex-grow:1;min-height:var(--wpds-dimension-size-md,32px)}.dataforms-layouts-card__field{width:100%}.dataforms-layouts-card__field-header-content{min-height:24px}.dataforms-layouts-card__field-header-content-description{display:contents}.dataforms-layouts-card__field-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:block;font-size:var(--wpds-typography-font-size-md,13px);margin-bottom:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-card__field-summary{align-items:center;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-lg,16px)}.dataforms-layouts-details__summary-content{display:inline-flex;min-height:var(--wpds-dimension-size-sm,24px)}.dataforms-layouts-details__content{padding-top:var(--wpds-dimension-padding-md,12px)}.dataforms-layouts-row__field-control{width:100%}.dataforms-layouts__wrapper{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:20px}:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.fields-create-template-part-modal{z-index:1000001}.fields-create-template-part-modal__area-fieldset{border:0;margin:0;padding:0}.fields-create-template-part-modal__area-radio-group{border:1px solid #949494;border-radius:2px}.fields-create-template-part-modal__area-radio-wrapper{grid-gap:4px 8px;align-items:center;color:#1e1e1e;display:grid;grid-template-columns:min-content 1fr min-content;padding:12px;position:relative}.fields-create-template-part-modal__area-radio-wrapper+.fields-create-template-part-modal__area-radio-wrapper{border-top:1px solid #949494}.fields-create-template-part-modal__area-radio-wrapper input[type=radio]{opacity:0;position:absolute}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:checked){z-index:1}.fields-create-template-part-modal__area-radio-wrapper:has(input[type=radio]:not(:checked)):hover{color:var(--wp-admin-theme-color)}.fields-create-template-part-modal__area-radio-wrapper>:not(.fields-create-template-part-modal__area-radio-label){pointer-events:none}.fields-create-template-part-modal__area-radio-label:before{content:"";inset:0;position:absolute}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-label:before{cursor:var(--wpds-cursor-control,pointer)}input[type=radio]:focus-visible~.fields-create-template-part-modal__area-radio-label:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:4px solid transparent}.fields-create-template-part-modal__area-radio-checkmark,.fields-create-template-part-modal__area-radio-icon{fill:currentColor}input[type=radio]:not(:checked)~.fields-create-template-part-modal__area-radio-checkmark{opacity:0}.fields-create-template-part-modal__area-radio-description{text-wrap:pretty;color:#757575;font-size:12px;grid-column:2/3;line-height:normal;margin:0}input[type=radio]:not(:checked):hover~.fields-create-template-part-modal__area-radio-description{color:inherit}fieldset.fields__media-edit{border:0;margin:0;padding:0;width:100%}fieldset.fields__media-edit .components-base-control__label{color:#1e1e1e}fieldset.fields__media-edit .fields__media-edit-description{font-size:12px;line-height:1.5}fieldset.fields__media-edit{container-type:inline-size}fieldset.fields__media-edit .fields__media-edit-compact-group{border:1px dashed #949494;border-radius:4px;overflow:hidden}fieldset.fields__media-edit .fields__media-edit-compact-group.is-single{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button{border:0;border-radius:0}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-picker-button:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-compact-group .fields__media-edit-compact:not(:last-child){border-bottom:1px solid #f0f0f0}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-compact .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-compact{min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-compact:focus-within .fields__media-edit-compact-movers,fieldset.fields__media-edit .fields__media-edit-compact:hover .fields__media-edit-compact-movers{opacity:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers{background:#fff;border-radius:2px;opacity:0;pointer-events:none;position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-compact .fields__media-edit-compact-movers *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-picker-button:has(.fields__media-edit-placeholder):not(.fields__media-edit-expanded *) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-picker-button{align-items:center;border:1px dashed #949494;border-radius:2px;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;min-height:40px;min-width:0;padding:4px 8px;position:relative}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment){border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:not(.has-attachment):hover{background-color:color-mix(in srgb,var(--wp-admin-theme-color,#3858e9) 4%,transparent);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}fieldset.fields__media-edit .fields__media-edit-picker-button:hover{color:var(--wp-admin-theme-color)}fieldset.fields__media-edit .fields__media-edit-picker-button:focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}fieldset.fields__media-edit .fields__media-edit-picker-button[aria-disabled=true]{cursor:default;opacity:.6}fieldset.fields__media-edit .fields__media-edit-picker-button .fields__media-edit-picker-button-spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}fieldset.fields__media-edit .fields__media-edit-filename,fieldset.fields__media-edit .fields__media-edit-placeholder{flex:1;min-width:0;width:100%}fieldset.fields__media-edit .fields__media-edit-placeholder{text-align:center}fieldset.fields__media-edit .fields__media-edit-thumbnail{aspect-ratio:1/1;border-radius:2px;flex-shrink:0;width:24px}fieldset.fields__media-edit .fields__media-edit-expanded{display:grid;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);border-radius:2px;display:flex;justify-content:center;overflow:hidden;padding:4px;position:relative;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-preview .fields__media-edit-expanded-preview-stack{height:100%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-overlay *{pointer-events:auto}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-actions{background:#fff;border-radius:2px;position:absolute;right:4px;top:4px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item{border-radius:4px;min-width:0;position:relative}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:focus-within .fields__media-edit-expanded-overlay,fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:hover .fields__media-edit-expanded-overlay{opacity:1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-expanded-item:not(.has-preview-image) .fields__media-edit-expanded-preview-stack{padding:8px}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-thumbnail{height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-filename{flex:none;text-align:center}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button-spinner svg{margin:0}fieldset.fields__media-edit .fields__media-edit-expanded.is-single{grid-template-columns:1fr}fieldset.fields__media-edit .fields__media-edit-expanded.is-single .fields__media-edit-expanded-preview{aspect-ratio:2/1}fieldset.fields__media-edit .fields__media-edit-expanded .fields__media-edit-picker-button{border-radius:4px}fieldset.fields__media-edit .fields__media-edit-expanded.is-empty .fields__media-edit-picker-button{border-radius:2px}fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}@container (max-width: 500px){fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty){grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-picker-button{padding:0}fieldset.fields__media-edit .fields__media-edit-expanded:not(.is-empty) .fields__media-edit-placeholder{align-items:center;aspect-ratio:var(--fields-media-edit-expanded-multiple-aspect-ratio,3/2);display:flex;justify-content:center}.fields-controls__author-avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:left;overflow:hidden;width:24px}.fields-controls__author-avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:0;width:16px}@media not (prefers-reduced-motion){.fields-controls__author-avatar img{transition:opacity .1s linear}}.fields-controls__author-avatar.is-loaded img{opacity:1}.fields-controls__author-icon{display:flex;flex-shrink:0;height:24px;width:24px}.fields-controls__author-icon svg{fill:currentColor;margin-left:-4px}.fields-controls__author-name{overflow:hidden;text-overflow:ellipsis}.fields-controls__slug{border:0;margin:0;padding:0}.fields-controls__slug .fields-controls__slug-external-icon{margin-left:5ch}.fields-controls__slug .fields-controls__slug-input input.components-input-control__input{padding-inline-start:0!important}.fields-controls__slug .fields-controls__slug-help-link{word-break:break-word}.fields-controls__slug .fields-controls__slug-help{display:flex;flex-direction:column}.fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.fields-controls__featured-image-image,.fields-controls__featured-image-placeholder{border-radius:4px;display:block;height:100%;width:100%}.fields-controls__featured-image-placeholder{background:#f0f0f0;box-shadow:none}.fields-controls__parent,.fields-controls__password{border:0;margin:0;padding:0}.fields-controls__status-icon{height:24px;width:24px}.fields-controls__status-icon svg{fill:currentColor;margin-left:-4px}.fields-field__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.fields-field__pattern-title span:first-child{flex:1}.media-editor-preview{align-items:center;box-sizing:border-box;display:flex;justify-content:center;min-height:100%;padding:32px;position:relative}.media-editor-preview__spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.media-editor-preview--loading{height:100%;width:100%}.media-editor-preview--image img{height:auto;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;opacity:0;width:auto}@media not (prefers-reduced-motion){.media-editor-preview--image img.loaded{animation:__wp-base-styles-fade-in .08s linear 0s;animation-fill-mode:forwards}}.media-editor-preview--video video{height:auto;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;width:auto}.media-editor-preview--audio audio{max-width:100%}.media-editor-preview--file{text-align:center}.media-editor-preview__file-info{background:#f0f0f0;border-radius:2px;padding:24px}.media-editor-preview__file-name{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:8px}.media-editor-preview__mime-type{color:#757575;font-size:.9em;margin-bottom:16px}.media-editor-preview__download-link{display:inline-block;margin-top:8px}.media-editor-preview--empty,.media-editor-preview--error{color:#757575;text-align:center}.media-editor-preview__url{color:#949494;font-size:.9em;margin-top:8px;word-break:break-all}.wp-media-editor-image-editor{cursor:grab;height:100%;overflow:hidden;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.wp-media-editor-image-editor__canvas{inset:24px;min-height:100px;min-width:100px;position:absolute}.wp-media-editor-image-editor__canvas:focus{outline:none}.wp-media-editor-image-editor__stage{inset:0;position:absolute}.wp-media-editor-image-editor--dragging{cursor:grabbing}.wp-media-editor-image-editor__image{left:0;position:absolute;top:0;transform-origin:center center;will-change:transform}.wp-media-editor-image-editor__stencil{pointer-events:none;position:absolute}.wp-media-editor-image-editor__dimming{box-shadow:0 0 0 9999px hsla(0,0%,88%,.6);pointer-events:none;position:absolute;transition:box-shadow .15s ease}.wp-media-editor-image-editor--dragging .wp-media-editor-image-editor__dimming{box-shadow:0 0 0 9999px hsla(0,0%,88%,.4)}.wp-media-editor-image-editor__grid{overflow:hidden;pointer-events:none;position:absolute;transition:opacity .15s ease}.wp-media-editor-image-editor__canvas--grid-interactive .wp-media-editor-image-editor__grid{opacity:0;transition-delay:.1s}.wp-media-editor-image-editor__canvas--show-grid .wp-media-editor-image-editor__grid{opacity:1;transition-delay:0s}.wp-media-editor-image-editor__canvas--settling .wp-media-editor-image-editor__grid{opacity:0;transition:none}.wp-media-editor-image-editor__grid-line{background:hsla(0,0%,100%,.4);position:absolute}.wp-media-editor-image-editor__grid-line--horizontal{height:1px;left:0;width:100%}.wp-media-editor-image-editor__grid-line--vertical{height:100%;top:0;width:1px}.wp-media-editor-image-editor__dimensions-tooltip{background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.08);color:#1e1e1e;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.4;padding:2px 6px;pointer-events:none;position:absolute;white-space:nowrap;z-index:2}.wp-media-editor-image-editor__stencil-rect{border:1px solid #1e1e1e;box-sizing:border-box;pointer-events:none;position:absolute;transition:border-color .15s ease,box-shadow .15s ease}.wp-media-editor-image-editor__canvas--focus-visible:focus .wp-media-editor-image-editor__stencil-rect{border-color:var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba));box-shadow:0 0 0 1px var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba))}.wp-media-editor-image-editor__handle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:1px solid var(--wp-admin-theme-color,#007cba);border-radius:50%;box-sizing:border-box;cursor:default;font:inherit;height:12px;margin:0;padding:0;pointer-events:auto;position:absolute;transition:background-color .15s ease,box-shadow .15s ease;width:12px}.wp-media-editor-image-editor__handle:focus{outline:none}.wp-media-editor-image-editor__canvas--focus-visible .wp-media-editor-image-editor__handle:focus{background:var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba));border-color:transparent;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-image-editor-focus-color,var(--wp-admin-theme-color,#007cba))}.wp-media-editor-image-editor__handle:before{content:"";height:44px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:44px}.wp-media-editor-image-editor__handle--n{cursor:ns-resize;left:50%;margin-left:-6px;top:-6px}.wp-media-editor-image-editor__handle--s{bottom:-6px;cursor:ns-resize;left:50%;margin-left:-6px}.wp-media-editor-image-editor__handle--e{cursor:ew-resize;margin-top:-6px;right:-6px;top:50%}.wp-media-editor-image-editor__handle--w{cursor:ew-resize;left:-6px;margin-top:-6px;top:50%}.wp-media-editor-image-editor__handle--nw{cursor:nwse-resize;left:-6px;top:-6px}.wp-media-editor-image-editor__handle--ne{cursor:nesw-resize;right:-6px;top:-6px}.wp-media-editor-image-editor__handle--sw{bottom:-6px;cursor:nesw-resize;left:-6px}.wp-media-editor-image-editor__handle--se{bottom:-6px;cursor:nwse-resize;right:-6px}.media-editor{display:flex;flex:1;flex-direction:column;height:100%;min-height:0}.media-editor .media-editor__loading{align-items:center;display:flex;height:100%;justify-content:center}.media-editor .interface-interface-skeleton{bottom:auto;flex:1;flex-direction:column;height:100%;left:auto;max-height:none;position:relative;right:auto;top:auto}.media-editor-modal .media-editor .interface-interface-skeleton.interface-interface-skeleton{top:auto}.media-editor .interface-interface-skeleton__editor{flex:1;min-width:0}.media-editor .media-editor__content{border-radius:8px;display:flex;flex:1;flex-direction:column;margin:0 24px;min-height:0;overflow:hidden}.media-editor .media-editor__canvas-toolbar{background:#e0e0e0;display:flex;flex-shrink:0;justify-content:center;padding:8px 16px}.media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation{flex:0 1 360px;min-width:0}.media-editor .media-editor__canvas-area{align-items:center;background:#e0e0e0;display:flex;flex:1;justify-content:center;min-height:0;overflow:auto}.media-editor .media-editor__canvas-area .media-editor-preview{height:100%}.media-editor .media-editor__canvas-area img,.media-editor .media-editor__canvas-area video{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.media-editor .media-editor__sidebar{box-sizing:border-box}.media-editor .media-editor__sidebar *,.media-editor .media-editor__sidebar :after,.media-editor .media-editor__sidebar :before{box-sizing:inherit}@media (min-width:600px){.media-editor .media-editor__sidebar{padding-left:1px}}.media-editor .media-editor__sidebar-panel{padding-bottom:24px}.media-editor .interface-interface-skeleton__sidebar{border-top:0;box-shadow:none;outline:1px solid transparent}.media-editor .media-editor__panel{padding:16px}@media (min-width:600px){.media-editor .media-editor__panel{padding:24px 24px 0 0}}.media-editor .components-panel__header.media-editor__sidebar-header{margin-right:0;padding-left:0;padding-right:8px}@media (min-width:600px){.media-editor .components-panel__header.media-editor__sidebar-header{margin-right:24px}}.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon{padding:0}@media (min-width:600px){.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon{display:flex}}@media (min-width:600px) and (max-width:781px){.media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill){position:relative!important}.media-editor .interface-complementary-area,.media-editor .interface-complementary-area__fill{width:280px!important}}@media (max-width:599px){.media-editor .interface-interface-skeleton__sidebar:has(.interface-complementary-area__fill){width:100%}.media-editor .interface-complementary-area,.media-editor .interface-complementary-area__fill{width:100%!important}}.media-editor__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-editor__snackbar .components-snackbar{margin-inline:auto}.media-editor-form .dataforms-layouts-panel__field-control{text-wrap:pretty}.media-editor-modal.components-modal__frame .components-modal__content{display:flex;flex-direction:column;margin-bottom:0;min-height:0;padding:0}.media-editor-modal.components-modal__frame .components-modal__children-container{display:flex;flex:1;flex-direction:column;min-height:0}.media-editor-modal.components-modal__frame .media-editor-modal__footer{background:#fff;display:flex;flex-shrink:0;gap:16px;padding:16px 32px 24px;z-index:1000001}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide{align-items:center;flex-direction:row}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor__footer-actions{margin-left:auto}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow{flex-direction:column}.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow>.media-editor-image-controls{align-self:center}.media-editor-modal__footer-row{align-items:center;display:flex;flex-wrap:wrap;gap:16px}.media-editor-modal__footer-row .media-editor-image-controls,.media-editor-modal__footer-row .media-editor__footer-actions{margin-left:auto}.media-editor__history-actions .components-button.has-icon:not([aria-disabled=true]){color:var(--wp-admin-theme-color)}.media-editor-modal,.media-editor-modal__snackbar{display:flex;flex-direction:column}.media-editor-modal__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-editor-modal__snackbar .components-snackbar{margin-inline:auto}.media-editor-modal__snackbar{z-index:1000001}.media-editor-canvas{height:100%;position:relative;width:100%}.media-editor-canvas__cropper{height:100%;opacity:0;pointer-events:none;width:100%}.media-editor-canvas__cropper.is-loaded{opacity:1;pointer-events:auto}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.media-editor-canvas__cropper.is-loaded{animation:__wp-base-styles-fade-in .2s linear 0s;animation-fill-mode:forwards}}.media-editor-canvas__spinner{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.media-editor-canvas__error{align-items:center;color:#757575;display:flex;height:100%;justify-content:center;text-align:center;width:100%}.media-editor-image-controls{align-items:center;display:flex;flex-wrap:nowrap;gap:8px}.media-editor-image-controls.is-stacked{align-items:flex-start;flex-direction:column;gap:24px}.media-editor-image-controls__transforms{display:flex;gap:48px}.media-editor-image-controls__group{display:flex;flex-direction:column;gap:4px}.media-editor-image-controls__label{font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;text-transform:uppercase}.media-editor-image-controls__buttons{display:flex;gap:8px;padding-inline:2px 0}.media-editor-keyboard-shortcuts-modal{min-width:280px}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__note{color:#757575;font-size:13px;margin:0 0 16px}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-list{list-style:none;margin:0;padding:0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut:last-child{border-bottom:1px solid #ddd}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-description{flex:1;margin:0}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-term{background:none;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 0 1rem;padding:0;text-align:right}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.rotation-ruler{box-sizing:border-box;color:#1e1e1e;container-type:inline-size;cursor:ew-resize;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:32px;min-width:180px;padding:0 8px;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rotation-ruler[data-disabled]{cursor:default;opacity:.5;pointer-events:none}.rotation-ruler:has(.rotation-ruler__input:focus-visible){border-radius:4px;outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:2px}.rotation-ruler__input{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.rotation-ruler__pointer{background:var(--wp-admin-theme-color,#3858e9);border-radius:1px;bottom:0;height:18px;left:50%;pointer-events:none;position:absolute;transform:translateX(-50%);width:2px}.rotation-ruler__strip{inset:0;mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 8px),transparent);overflow:hidden;position:absolute}.rotation-ruler__ticks{display:block;left:50%;overflow:visible;position:absolute;top:0}.rotation-ruler__tick{stroke:currentColor;stroke-width:1}.rotation-ruler__tick--minor{opacity:.35}.rotation-ruler__tick--mid{opacity:.6}.rotation-ruler__tick--major{opacity:1}.rotation-ruler__label{fill:currentColor;font-size:10px;font-weight:400;opacity:.45}.rotation-ruler__active-label{color:#1e1e1e;font-size:12px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:14px;left:50%;line-height:14px;pointer-events:none;position:absolute;top:0;transform:translateX(-50%)}.rotation-ruler__active-label:before{background:linear-gradient(90deg,transparent 0,#e0e0e0 12px,#e0e0e0 calc(100% - 12px),transparent);content:"";height:100%;left:50%;position:absolute;top:0;transform:translateX(-50%);width:60px}.rotation-ruler__active-label-number{display:inline-block;position:relative}.rotation-ruler__active-label-sign{position:absolute;right:100%;top:0}.rotation-ruler__active-label-unit{left:100%;position:absolute;top:0}@container (max-width: 220px){.rotation-ruler__tick--minor{opacity:0}}@media (prefers-reduced-motion:reduce){.rotation-ruler__ticks{transition:none}}.editor-autocompleters__link{gap:8px;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"\f110";font:normal 20px/1 dashicons;margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-right:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{flex-grow:0;flex-shrink:0;margin-left:8px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:not(.is-primary) .editor-autocompleters__user-slug{color:#757575}.interface-interface-skeleton__sidebar:has(.editor-collab-sidebar){box-shadow:none}.interface-interface-skeleton__sidebar:has(.editor-collab-sidebar) .interface-complementary-area-header{display:none}.editor-collab-sidebar{height:100%;overflow:hidden}.editor-collab-sidebar-panel{height:100%;overflow:hidden;padding:16px 16px 24px;position:relative}.editor-collab-sidebar-panel__add-note,.editor-collab-sidebar-panel__thread{background-color:#f0f0f0;border:1px solid #ddd;border-radius:8px;overflow:hidden;padding:16px;position:relative;width:auto}.editor-collab-sidebar-panel__add-note.is-selected,.editor-collab-sidebar-panel__thread.is-selected{background-color:#fff;box-shadow:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);z-index:1}.editor-collab-sidebar-panel__add-note:focus,.editor-collab-sidebar-panel__thread:focus{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1)}.editor-collab-sidebar-panel__add-note.is-floating,.editor-collab-sidebar-panel__thread.is-floating{left:16px;margin-top:16px;max-height:calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 128px);overflow-y:auto;position:absolute;right:16px;transform:translateY(var(--canvas-scroll,0));will-change:transform}.editor-collab-sidebar-panel__user-name{text-transform:capitalize}.editor-collab-sidebar-panel__user-name,.editor-collab-sidebar-panel__user-time{color:#757575;font-size:12px;font-weight:400;line-height:16px;text-align:left}.editor-collab-sidebar-panel__show-more-button{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));cursor:var(--wpds-cursor-control,pointer);width:-moz-fit-content;width:fit-content}.editor-collab-sidebar-panel__show-more-button:active,.editor-collab-sidebar-panel__show-more-button:focus,.editor-collab-sidebar-panel__show-more-button:hover{color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.editor-collab-sidebar-panel__note-content{overflow-wrap:break-word}.editor-collab-sidebar-panel__note-content p:last-child{margin-bottom:0}.editor-collab-sidebar-panel__note-content.is-collapsed{-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.editor-collab-sidebar-panel__user-avatar{background:#fff;border-radius:50%;border-style:solid;border-width:var(--wp-admin-border-width-focus);flex-shrink:0;padding:var(--wp-admin-border-width-focus)}.editor-collab-sidebar-panel__note-actions{margin-left:auto}.editor-collab-sidebar-panel__note-actions button.has-icon:not(.has-text){flex-shrink:0;height:24px;min-width:24px;padding:0;width:24px}.editor-collab-sidebar-panel__more-reply-separator:after,.editor-collab-sidebar-panel__more-reply-separator:before,.editor-collab-sidebar-panel__status-separator:after,.editor-collab-sidebar-panel__status-separator:before{background-color:#ddd;content:"";flex:1;height:1px}.editor-collab-sidebar-panel__deleted-block-notice,.editor-collab-sidebar-panel__more-reply-button{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-collab-sidebar-panel__deleted-block-notice{color:#757575}.editor-collab-sidebar-panel__resolution-text{font-style:italic}.editor-collab-sidebar-panel__note-form [role=textbox]{line-height:20px;max-height:418px;overflow-wrap:break-word;overflow-y:auto;white-space:pre-wrap}.editor-collab-sidebar-panel__note-form [role=textbox] code{background:#f0f0f0;border-radius:2px;font-family:Menlo,Consolas,monaco,monospace;font-size:.9em;padding:0 2px}.editor-collab-sidebar-panel__note-form [role=textbox] a{color:var(--wp-admin-theme-color);text-decoration:underline}.editor-collab-sidebar-panel__skip-to-block,.editor-collab-sidebar-panel__skip-to-note{background:#fff!important;clip-path:inset(50%);overflow:hidden;position:absolute;right:-9999px;top:-9999px;z-index:-1}.editor-collab-sidebar-panel__skip-to-block:focus,.editor-collab-sidebar-panel__skip-to-note:focus{clip-path:none;overflow:visible;right:8px;z-index:1}.editor-collab-sidebar-panel__skip-to-note:focus{top:8px}.editor-collab-sidebar-panel__skip-to-block:focus{bottom:8px;top:auto}.editor-note-indicator__avatar{background:#fff;border-radius:50%;border-style:solid;border-width:var(--wp-admin-border-width-focus);box-sizing:border-box;margin-left:-12px;padding:var(--wp-admin-border-width-focus);width:24px}.editor-note-indicator__avatar:first-child{margin-left:0}.editor-note-indicator__overflow{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.show-icon-labels .editor-note-indicator{width:auto}.show-icon-labels .editor-note-indicator div{display:none}.show-icon-labels .editor-note-indicator:after{content:attr(aria-label);font-size:12px}mark.wp-note{border-radius:1px;transition:background-color .1s ease-in-out}.wp-note-mention{background:var(--wpds-color-background-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 9%,#fff));border-radius:var(--wpds-border-radius-sm,2px);color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));display:inline;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:0 var(--wpds-dimension-padding-xs,4px)}@media (forced-colors:active){.wp-note-mention{border:1px solid}}.editor-collab-sidebar-panel__mention-suggestion .editor-autocompleters__user-avatar{border-radius:50%}.editor-rich-text-control [data-rich-text-placeholder]:after{color:color-mix(in srgb,currentColor,transparent 38%);content:attr(data-rich-text-placeholder)}.editor-avatar{align-items:center;box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);display:inline-flex}.editor-avatar,.editor-avatar__image{border-radius:9999px;flex-shrink:0;position:relative}.editor-avatar__image{background-color:var(--wp-admin-theme-color,#3858e9);border:0;box-sizing:border-box;color:#fff;font-size:0;height:32px;overflow:hidden;overflow:clip;width:32px}.is-small>.editor-avatar__image{height:24px;width:24px}.has-avatar-border-color>.editor-avatar__image{background-clip:padding-box;border:var(--wp-admin-border-width-focus) solid var(--editor-avatar-outline-color)}.has-avatar-border-color>.editor-avatar__image:after{border-radius:inherit;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,2px) #fff;content:"";inset:0;pointer-events:none;position:absolute;z-index:1}.editor-avatar__img{border-radius:inherit;height:100%;inset:0;-o-object-fit:cover;object-fit:cover;opacity:0;position:absolute;width:100%}.has-src>.editor-avatar__image>.editor-avatar__img{opacity:1}.editor-avatar:not(.has-src)>.editor-avatar__image{align-items:center;background-clip:border-box;border:0;display:flex;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);justify-content:center}.editor-avatar:not(.has-src)>.editor-avatar__image:after{content:none}.editor-avatar:not(.has-src).has-avatar-border-color>.editor-avatar__image{background-color:var(--editor-avatar-outline-color)}.editor-avatar__name{color:var(--editor-avatar-name-color,#fff);font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;min-width:0;opacity:0;overflow:hidden;padding-bottom:2px;transition:opacity .15s cubic-bezier(.15,0,.15,1);white-space:nowrap}.editor-avatar.is-badge{background-color:var(--wp-admin-theme-color,#3858e9);-moz-column-gap:0;column-gap:0;display:inline-grid;grid-template-columns:min-content 0fr;padding-inline-end:0;transition:grid-template-columns .3s cubic-bezier(.15,0,.15,1),column-gap .3s cubic-bezier(.15,0,.15,1),padding-inline-end .3s cubic-bezier(.15,0,.15,1);transition:grid-template-columns .3s cubic-bezier(.15,0,.15,1),column-gap .3s cubic-bezier(.15,0,.15,1),padding-inline-end .3s cubic-bezier(.15,0,.15,1),-moz-column-gap .3s cubic-bezier(.15,0,.15,1)}.editor-avatar.is-badge:hover{-moz-column-gap:4px;column-gap:4px;grid-template-columns:min-content 1fr;padding-inline-end:8px;transition-timing-function:cubic-bezier(.85,0,.85,1)}.editor-avatar.is-badge:hover .editor-avatar__name{opacity:1;transition-timing-function:cubic-bezier(.85,0,.85,1)}.editor-avatar.is-badge.has-avatar-border-color{background-color:var(--editor-avatar-outline-color)}.editor-avatar.is-dimmed>.editor-avatar__image{background-color:#757575;opacity:.5}.editor-avatar.is-dimmed.has-avatar-border-color>.editor-avatar__image{border-color:#757575}.editor-avatar.is-dimmed .editor-avatar__img{filter:grayscale(1)}.editor-avatar__status-indicator{fill:#1e1e1e;align-items:center;color:#1e1e1e;display:flex;height:32px;justify-content:center;left:0;position:absolute;top:0;width:32px;z-index:1}.is-small>.editor-avatar__status-indicator{height:24px;width:24px}.editor-avatar__status-indicator svg{height:75%;width:75%}@media (prefers-reduced-motion:reduce){.editor-avatar.is-badge,.editor-avatar__name{transition:none}}.editor-avatar-group{align-items:center;display:flex}.editor-avatar-group>.editor-avatar+.editor-avatar{margin-inline-start:-8px}.editor-avatar-group>.editor-avatar{position:relative}.editor-avatar-group>.editor-avatar:first-child{z-index:10}.editor-avatar-group>.editor-avatar:nth-child(2){z-index:9}.editor-avatar-group>.editor-avatar:nth-child(3){z-index:8}.editor-avatar-group>.editor-avatar:nth-child(4){z-index:7}.editor-avatar-group>.editor-avatar:nth-child(5){z-index:6}.editor-avatar-group>.editor-avatar:nth-child(6){z-index:5}.editor-avatar-group>.editor-avatar:nth-child(7){z-index:4}.editor-avatar-group>.editor-avatar:nth-child(8){z-index:3}.editor-avatar-group>.editor-avatar:nth-child(9){z-index:2}.editor-avatar-group>.editor-avatar:nth-child(10){z-index:1}.editor-avatar-group__overflow{color:#1e1e1e;font-size:12px;line-height:20px;margin-inline-end:4px;margin-inline-start:4px;white-space:nowrap}.editor-collaborators-presence__list.components-popover .components-popover__content{background:#fff;border:1px solid #ddd;border-radius:8px;border-width:1px 0 0 1px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-content{min-width:280px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header{align-items:center;display:flex;justify-content:space-between;padding:8px 16px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title{display:flex;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);gap:4px;line-height:20px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title span{color:#757575}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-action{padding:0}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-action button{color:#1e1e1e;height:32px;padding:0;width:32px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-items{display:flex;flex-direction:column;padding-bottom:16px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item{all:unset;align-items:center;box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer);display:flex;gap:8px;padding:12px 16px;transition:background-color .2s ease;width:100%}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:hover:not(:disabled){background-color:rgba(var(--wp-admin-theme-color--rgb),.04)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:active:not(:disabled){background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:focus-visible{outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:-2px}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item:disabled{cursor:default}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-info{display:flex;flex:1;flex-direction:column;min-width:0}.editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-name{color:#1e1e1e;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-collaborators-presence{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;flex-shrink:0;height:32px}.editor-collaborators-presence:hover{background-color:#e0e0e0}.editor-collaborators-presence:has(.is-pressed){background-color:#e0e0e0}.editor-header__center .editor-collaborators-presence{margin-right:8px}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button{align-items:center;background:transparent;border-radius:4px;box-sizing:border-box;color:#2f2f2f;cursor:var(--wpds-cursor-control,pointer);display:flex;height:100%;padding:4px;position:relative}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed,.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed:hover,.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:hover{background:transparent;color:#2f2f2f}.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:focus:not(:active){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,2px) var(--wp-admin-theme-color,#007cba);outline:none}.editor-collapsible-block-toolbar{align-items:center;display:flex;height:64px;overflow:hidden}.editor-collapsible-block-toolbar .block-editor-block-contextual-toolbar{background:transparent;border-bottom:0;height:100%}.editor-collapsible-block-toolbar .block-editor-block-toolbar{height:100%;padding-top:17px}.editor-collapsible-block-toolbar .block-editor-block-toolbar .components-button:not(.block-editor-block-mover-button){height:32px}.editor-collapsible-block-toolbar:after{background-color:#ddd;content:"";height:24px;margin-right:7px;width:1px}.editor-collapsible-block-toolbar .components-toolbar,.editor-collapsible-block-toolbar .components-toolbar-group{border-right:none;position:relative}.editor-collapsible-block-toolbar .components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar:after{background-color:#ddd;content:"";height:24px;position:absolute;right:-1px;top:4px;width:1px}.editor-collapsible-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.editor-collapsible-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after{display:none}.editor-collapsible-block-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button{height:32px;overflow:visible}@media (min-width:600px){.editor-collapsible-block-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{height:40px;position:relative;top:-4px}}.editor-collapsible-block-toolbar.is-collapsed{display:none}.editor-block-visibility__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:-32px 0 0 0 #fff,32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-5px;z-index:1}.editor-block-visibility__disabled-blocks-count~.block-editor-block-manager__content .block-editor-block-manager__category-title{top:31px}.editor-block-visibility__disabled-blocks-count .is-link{margin-left:12px}.editor-blog-title-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-document-bar{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;height:32px;justify-content:space-between;min-width:0;width:min(100%,450px)}.editor-document-bar:hover{background-color:#e0e0e0}.editor-document-bar .components-button{border-radius:4px}@media not (prefers-reduced-motion){.editor-document-bar .components-button{transition:background-color .1s ease-out}}.editor-document-bar .components-button:hover{background:#e0e0e0}@media screen and (min-width:782px) and (max-width:960px){.editor-document-bar.has-back-button .editor-document-bar__post-type-label{display:none}}.editor-document-bar__command{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.editor-document-bar__title{color:#1e1e1e;margin:0 auto;max-width:70%;overflow:hidden}.editor-document-bar__title h1{align-items:center;display:flex;font-weight:400;justify-content:center;overflow:hidden;white-space:nowrap}.editor-document-bar__post-title{color:currentColor;flex:1;overflow:hidden;text-overflow:ellipsis}.editor-document-bar__post-type-label{color:#2f2f2f;flex:0;padding-left:4px}@media screen and (max-width:600px){.editor-document-bar__post-type-label{display:none}}.editor-document-bar__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;position:absolute;z-index:1}.editor-document-bar__back.components-button.has-icon.has-text:hover{background-color:transparent;color:#1e1e1e}.editor-document-bar__icon-layout.editor-document-bar__icon-layout{display:none;margin-left:12px;pointer-events:none;position:absolute}.editor-document-bar__icon-layout.editor-document-bar__icon-layout svg{fill:#949494}@media (min-width:600px){.editor-document-bar__icon-layout.editor-document-bar__icon-layout{display:flex}}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:var(--wpds-cursor-control,pointer);display:flex;margin:0 0 0 -1px;padding:2px 5px 2px 1px;text-align:left}.document-outline__button:disabled,.document-outline__button[aria-disabled=true]{color:#757575;cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-right:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.editor-document-outline.has-no-headings>svg{margin-top:28px}.editor-document-outline.has-no-headings>p{padding-left:32px;padding-right:32px}.editor-document-outline.has-no-headings{color:#757575;text-align:center}.editor-document-tools{align-items:center;display:inline-flex}.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:none}@media (min-width:782px){.editor-document-tools .editor-document-tools__left>.editor-history__redo,.editor-document-tools .editor-document-tools__left>.editor-history__undo{display:inline-flex}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle{display:inline-flex}@media not (prefers-reduced-motion){.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}}.editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.editor-document-tools .block-editor-list-view{display:none}@media (min-width:600px){.editor-document-tools .block-editor-list-view{display:flex}}.editor-document-tools .editor-document-tools__left>.components-button.has-icon,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon{height:32px;min-width:32px;padding:4px}.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:focus:not(:active),.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.editor-document-tools .editor-document-tools__left>.components-button.has-icon:before,.editor-document-tools .editor-document-tools__left>.components-dropdown>.components-button.has-icon:before{display:none}.editor-document-tools__left{align-items:center;display:inline-flex;gap:8px}.editor-document-tools__left:not(:last-child){margin-inline-end:8px}.show-icon-labels .editor-document-tools .editor-document-tools__left>.editor-document-tools__inserter-toggle.has-icon{padding:0 8px;width:auto}.show-icon-labels .editor-document-tools__left>*+*{margin-left:8px}.editor-editor-interface .entities-saved-states__panel-header{height:65px}.editor-editor-interface .interface-interface-skeleton__content{isolation:isolate}.editor-notices .components-notice-list,.editor-notices.notices-inline-notices-wrapper{gap:0}.editor-notices .components-notice{border-inline-width:0;border-top-width:0}.editor-visual-editor{flex:1 0 auto}.editor-notices__dismissible,.editor-notices__pinned{left:0;position:relative;right:0;top:0}.editor-error-boundary{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin:64px auto auto;max-width:780px;padding:1em}.editor-global-styles-header__description{padding:0 16px}.editor-global-styles-header{margin-bottom:0!important}.editor-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.editor-global-styles-sidebar__panel{flex:1}.editor-global-styles-sidebar .editor-global-styles-sidebar__header-title{margin:0}.editor-global-styles-sidebar .editor-global-styles-sidebar__header-actions{flex:1}.editor-global-styles-sidebar .block-editor-panel-color-gradient-settings{border:0}.editor-global-styles-sidebar .single-column{grid-column:span 1}.editor-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.editor-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.editor-global-styles-sidebar__blocks-group-help{padding:0 16px}.global-styles-ui-color-palette-panel,.global-styles-ui-gradient-palette-panel{padding:16px}.editor-global-styles-sidebar hr{margin:0}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon{width:auto}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .editor-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.editor-welcome-guide{width:312px}.editor-welcome-guide.guide-styles .editor-welcome-guide__image{background:#00a0d2}.editor-welcome-guide__image{margin:0 0 16px}.editor-welcome-guide__image>img{display:block;max-width:100%;-o-object-fit:cover;object-fit:cover}.editor-welcome-guide__heading{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.editor-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.editor-welcome-guide__text img{vertical-align:bottom}.editor-welcome-guide .components-button:hover svg{fill:#fff}.editor-header{box-sizing:border-box}.editor-header *,.editor-header :after,.editor-header :before{box-sizing:inherit}.editor-header{background:#fff;display:grid;grid-auto-flow:row;grid-template:auto/32px minmax(0,max-content) minmax(min-content,1fr) 64px;height:64px}.editor-header:has(>.editor-header__center){grid-template:auto/32px min-content 1fr min-content 64px}@media (min-width:782px){.editor-header:has(>.editor-header__center){grid-template:auto/32px minmax(min-content,2fr) 2.5fr minmax(min-content,2fr) 64px}}@media (min-width:480px){.editor-header{gap:16px}}.editor-header{align-items:center;justify-content:space-between;max-width:100vw}@media (min-width:280px){.editor-header{flex-wrap:nowrap}}.editor-header__back-button{padding-left:8px}.editor-header__toolbar{grid-column:1/3}.editor-header__toolbar>:first-child{margin-inline:16px 0}.editor-header__back-button+.editor-header__toolbar{grid-column:2/3}@media (min-width:480px){.editor-header__back-button+.editor-header__toolbar>:first-child{margin-inline:0}}.editor-header__toolbar{align-items:center;clip-path:inset(-2px);display:flex;min-width:0}@media (min-width:480px){.editor-header__toolbar{clip-path:none}}.editor-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.editor-header__toolbar .table-of-contents{display:block}}.editor-header__toolbar .editor-collapsible-block-toolbar,.editor-header__toolbar .editor-collapsible-block-toolbar.is-collapsed~.editor-collapsible-block-toolbar__toggle{margin-inline:8px 0}.editor-header__center{align-items:center;display:flex;grid-column:3/4;justify-content:center;min-width:0}@media (max-width:479px){.editor-header__center>:first-child{margin-inline-start:8px}.editor-header__center>:last-child{margin-inline-end:8px}}.editor-header__settings{grid-column:3/-1}.editor-header:has(>.editor-header__center) .editor-header__settings{grid-column:4/-1}.editor-header__settings{align-items:center;display:inline-flex;flex-wrap:nowrap;justify-self:end;padding-right:4px}@media (min-width:600px){.editor-header__settings{padding-right:8px}}.editor-header__settings{gap:8px}.show-icon-labels .editor-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.show-icon-labels .editor-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.show-icon-labels .editor-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label);white-space:nowrap}.show-icon-labels .editor-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.show-icon-labels .editor-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.show-icon-labels .editor-header .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg{display:block}.show-icon-labels .editor-header .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after{content:none}.show-icon-labels .editor-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.show-icon-labels .editor-header .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels .editor-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .editor-document-tools__inserter-toggle.editor-document-tools__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.show-icon-labels .editor-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .editor-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover{border-left:none}.show-icon-labels .editor-header__toolbar .block-editor-block-mover:before{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:4px;width:1px}.show-icon-labels .editor-header__toolbar .block-editor-block-mover .block-editor-block-mover__move-button-container:before{background:#ddd;left:calc(50% + 1px);width:calc(100% - 24px)}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 6px 6px 8px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}@media (min-width:480px){.editor-header__post-preview-button{display:none}}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.editor-editor-interface.is-distraction-free .editor-header{background-color:#fff;width:100%}@media (min-width:782px){.editor-editor-interface.is-distraction-free .editor-header{box-shadow:0 1px 0 0 rgba(0,0,0,.133);position:absolute}}.editor-editor-interface.is-distraction-free .editor-header>.edit-post-header__settings>.edit-post-header__post-preview-button{visibility:hidden}.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-preview-dropdown,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.editor-zoom-out-toggle,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__settings>.interface-pinned-items,.editor-editor-interface.is-distraction-free .editor-header>.editor-header__toolbar .editor-document-tools__document-overview-toggle{display:none}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.components-popover.more-menu-dropdown__content{z-index:99998}.editor-inserter-sidebar{box-sizing:border-box}.editor-inserter-sidebar *,.editor-inserter-sidebar :after,.editor-inserter-sidebar :before{box-sizing:inherit}.editor-inserter-sidebar{display:flex;flex-direction:column;height:100%}.editor-inserter-sidebar__content{height:100%}.editor-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.editor-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.editor-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.editor-keyboard-shortcut-help-modal__shortcut:empty{display:none}.editor-keyboard-shortcut-help-modal__shortcut-term{font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 0 1rem;text-align:right}.editor-keyboard-shortcut-help-modal__shortcut-description{flex:1;margin:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.editor-keyboard-shortcut-help-modal__shortcut-key-combination+.editor-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.editor-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.editor-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.editor-list-view-sidebar{height:100%}@media (min-width:782px){.editor-list-view-sidebar{width:350px}}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{height:100%}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-track,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.editor-list-view-sidebar__list-view-container>.document-outline::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.editor-list-view-sidebar__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:focus::-webkit-scrollbar-thumb,.editor-list-view-sidebar__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-width:thin}.editor-list-view-sidebar__list-view-container>.document-outline:focus,.editor-list-view-sidebar__list-view-container>.document-outline:focus-within,.editor-list-view-sidebar__list-view-container>.document-outline:hover,.editor-list-view-sidebar__list-view-panel-content:focus,.editor-list-view-sidebar__list-view-panel-content:focus-within,.editor-list-view-sidebar__list-view-panel-content:hover{scrollbar-color:#949494 transparent}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{will-change:transform}@media (hover:none){.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{scrollbar-color:#949494 transparent}}.editor-list-view-sidebar__list-view-container>.document-outline,.editor-list-view-sidebar__list-view-panel-content{overflow:auto;scrollbar-gutter:auto}.editor-list-view-sidebar__list-view-panel-content{padding:4px}.editor-list-view-sidebar__list-view-container{display:flex;flex-direction:column;height:100%}.editor-list-view-sidebar__list-view-container>.document-outline{padding:16px}.editor-list-view-sidebar__tab-panel{height:100%}.editor-list-view-sidebar__outline{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.editor-list-view-sidebar__outline>div>span:first-child{display:inline-block;width:90px}.editor-list-view-sidebar__outline>div>span{color:#757575;font-size:12px;line-height:1.4}.editor-post-order__panel,.editor-post-parent__panel{padding-top:8px}.editor-post-order__panel .editor-post-panel__row-control>div,.editor-post-parent__panel .editor-post-panel__row-control>div{width:100%}.editor-post-order__panel-dialog .editor-post-order,.editor-post-order__panel-dialog .editor-post-parent,.editor-post-parent__panel-dialog .editor-post-order,.editor-post-parent__panel-dialog .editor-post-parent{margin:8px}.editor-post-order__panel-dialog .components-popover__content,.editor-post-parent__panel-dialog .components-popover__content{min-width:320px}.editor-post-author__panel{padding-top:8px}.editor-post-author__panel .editor-post-panel__row-control>div{width:100%}.editor-post-author__panel-dialog .editor-post-author{margin:8px;min-width:248px}.editor-action-modal{z-index:1000001}.editor-post-card-panel__content{flex-grow:1}.editor-post-card-panel__title{width:100%}.editor-post-card-panel__title.editor-post-card-panel__title{align-items:center;-moz-column-gap:8px;column-gap:8px;display:flex;flex-wrap:wrap;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:20px;margin:0;row-gap:4px;word-break:break-word}.editor-post-card-panel__icon{flex:0 0 24px;height:24px;width:24px}.editor-post-card-panel__header{display:flex;justify-content:space-between}.editor-post-card-panel.has-description .editor-post-card-panel__header{margin-bottom:8px}.editor-post-card-panel .editor-post-card-panel__title-name{padding:2px 0}.editor-post-card-panel .editor-post-card-panel__description,.editor-post-content-information{color:#757575}.editor-post-content-information .components-text{color:inherit}.editor-post-discussion__panel-dialog .editor-post-discussion{margin:8px;min-width:248px}.editor-post-discussion__panel-toggle .components-text{color:inherit}.editor-post-discussion__panel-dialog .components-popover__content{min-width:320px}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-excerpt__dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-featured-image{padding:0}.editor-post-featured-image .hidden{display:none}.editor-post-featured-image .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image),.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image),.editor-post-featured-image__container:hover .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-is-requesting-image){opacity:1}.editor-post-featured-image__container .editor-post-featured-image__actions.editor-post-featured-image__actions-missing-image{margin-top:16px;opacity:1}.editor-post-featured-image__container .components-drop-zone__content{border-radius:2px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner{align-items:center;display:flex;gap:8px}.editor-post-featured-image__container:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner .components-drop-zone__content-icon{margin:0}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{border-color:#ccc;display:flex;justify-content:center;min-height:40px;outline-offset:-1px;overflow:hidden;padding:0;width:100%}.editor-post-featured-image__preview{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px;height:auto!important;outline:1px solid rgba(0,0,0,.1)}.editor-post-featured-image__preview .editor-post-featured-image__preview-image{aspect-ratio:2/1;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;width:100%}.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image){bottom:0;opacity:0;padding:8px;position:absolute}@media not (prefers-reduced-motion){.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image){transition:opacity 50ms ease-out}}.editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image) .editor-post-featured-image__action{backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75)}.editor-post-featured-image__actions .editor-post-featured-image__action{flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-format__dialog .editor-post-format__dialog-content{margin:8px;min-width:248px}.editor-post-last-edited-panel{color:#757575}.editor-post-last-edited-panel .components-text{color:inherit}.editor-post-last-revision__title{font-weight:var(--wpds-typography-font-weight-emphasis,600);width:100%}.editor-post-last-revision__title.components-button.has-icon{height:100%;justify-content:space-between}.editor-post-last-revision__title.components-button.has-icon:active,.editor-post-last-revision__title.components-button.has-icon:hover{background:#f0f0f0}.editor-post-last-revision__title.components-button.has-icon:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-panel__body.is-opened.editor-post-last-revision__panel{height:48px;padding:0}.components-panel__body.is-opened.editor-post-last-revision__panel .editor-post-last-revision__title.components-button.components-button{padding:16px}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:50%;margin-top:16px;min-width:auto!important}.editor-post-panel__row{align-items:flex-start!important;justify-content:flex-start!important;min-height:32px;width:100%}.editor-post-panel__row-label{align-items:center;display:flex;flex-shrink:0;hyphens:auto;line-height:20px;min-height:32px;padding:6px 0;width:38%;word-break:break-word}.editor-post-panel__row-control{align-items:center;display:flex;flex-grow:1;min-height:32px}.editor-post-panel__row-control .components-button{text-wrap:balance;text-wrap:pretty;font-weight:var(--wpds-typography-font-weight-default,400);height:auto;max-width:100%;min-height:32px;text-align:left;white-space:normal}.editor-post-panel__row-control .components-dropdown{max-width:100%}.editor-post-panel__section{padding:16px}.editor-post-publish-panel__content{min-height:calc(100% - 148px)}.editor-post-publish-panel__content>.components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:65px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;flex-shrink:0;height:36px;margin-right:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px;word-break:break-word}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{justify-content:center;padding-left:4px}.editor-post-publish-panel__header-cancel-button{padding-right:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{align-items:center;display:inline-flex}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.editor-post-publish-panel__prepublish .components-panel__body-title .components-button{text-wrap:balance;text-wrap:pretty;align-items:flex-start}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none;word-break:break-word}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;gap:16px}.post-publish-panel__postpublish-buttons .components-button,.post-publish-panel__postpublish-buttons .components-button.has-icon{flex:1;justify-content:center;min-width:unset}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#f0f0f0;border-color:#ccc;height:36px;overflow:hidden;padding:12px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-left:16px}.post-publish-panel__postpublish-header{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-publish-panel{box-sizing:border-box}.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}.editor-post-publish-panel{background:#fff;bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.editor-post-publish-panel{border-left:1px solid #ddd;left:auto;top:32px;width:281px;z-index:99998}}@media (min-width:782px) and (not (prefers-reduced-motion)){.editor-post-publish-panel{animation:editor-post-publish-panel__slide-in-animation .1s forwards;transform:translateX(100%)}}@media (min-width:782px){body.is-fullscreen-mode .editor-post-publish-panel{top:var(--wp-admin--admin-bar--height,0)}[role=region]:focus .editor-post-publish-panel{transform:translateX(0)}}@keyframes editor-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.editor-revisions-header__slider{width:100%}.editor-revisions-header__slider .components-range-control__tooltip{white-space:nowrap}.editor-revisions-header__no-revisions{color:#757575;font-size:13px}.editor-revisions-canvas__loading{align-items:center;display:flex;height:100%;justify-content:center}.editor-revisions-canvas__content{display:flex;height:100%}.editor-revisions-canvas__content .editor-visual-editor{flex:1;min-width:0}.editor-revisions-code-diff{background:#fff;color:#1e1e1e;height:100%;overflow:auto}.editor-revisions-code-diff:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:none}.editor-revisions-code-diff__table{border:0;border-collapse:separate;border-spacing:0;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.6;min-width:-moz-max-content;min-width:max-content;width:100%}.editor-revisions-code-diff__line.is-added{background:rgba(0,163,42,.12)}.editor-revisions-code-diff__line.is-added>.editor-revisions-code-diff__line-number,.editor-revisions-code-diff__line.is-added>.editor-revisions-code-diff__marker{background:color-mix(in srgb,#00a32a 12%,#fff)}.editor-revisions-code-diff__line.is-removed{background:rgba(214,54,56,.12)}.editor-revisions-code-diff__line.is-removed>.editor-revisions-code-diff__line-number,.editor-revisions-code-diff__line.is-removed>.editor-revisions-code-diff__marker{background:color-mix(in srgb,#d63638 12%,#fff)}.editor-revisions-code-diff__line-number,.editor-revisions-code-diff__marker{background:#fff;box-sizing:border-box;color:#757575;padding:0 8px;position:sticky;text-align:right;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;z-index:1}.editor-revisions-code-diff__line-number{background:#f0f0f0;border-right:1px solid #e0e0e0;left:0;max-width:6ch;min-width:6ch;width:6ch}.editor-revisions-code-diff__line-number.is-previous+.editor-revisions-code-diff__line-number.is-current{left:6ch}.editor-revisions-code-diff__marker{border-right:1px solid #e0e0e0;font-weight:600;left:12ch;max-width:3ch;min-width:3ch;padding:0;text-align:center;width:3ch}.editor-revisions-code-diff__code{direction:ltr;padding:0 16px 0 8px;unicode-bidi:isolate;white-space:pre;width:100%}.editor-revisions-code-diff__code code{background:none;color:inherit;font:inherit;margin:0;padding:0}.editor-revisions-code-diff__empty{color:#757575;margin:0;padding:24px}.revision-diff-markers{background:rgba(0,0,0,.05);flex-shrink:0;position:relative;width:max(16px,1rem)}.revision-diff-markers .revision-diff-marker{border:none;cursor:var(--wpds-cursor-control,pointer);min-height:4px;padding:0;position:absolute;transition:opacity .1s ease;width:100%}.revision-diff-markers .revision-diff-marker.is-added{background:#008a20}.revision-diff-markers .revision-diff-marker.is-removed{background:repeating-linear-gradient(45deg,#d63638,#d63638 6px,rgba(214,54,56,.45) 0,rgba(214,54,56,.45) 8px)}.revision-diff-markers .revision-diff-marker.is-modified{background:repeating-linear-gradient(-45deg,#9a7000,#9a7000 6px,rgba(154,112,0,.45) 0,rgba(154,112,0,.45) 8px)}.revision-diff-markers .revision-diff-marker:hover{opacity:.7}.revision-diff-markers .revision-diff-marker:focus{outline:2px solid #1e1e1e;outline-offset:-2px}.interface-complementary-area:has(.editor-post-revisions-timeline){display:flex;flex-direction:column;overflow:hidden}.interface-complementary-area:has(.editor-post-revisions-timeline) .editor-sidebar__panel-tabs{flex-shrink:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline){display:flex;flex:1;flex-direction:column;min-height:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline) [role=tabpanel]:has(.editor-post-revisions-timeline){display:flex;flex:1;flex-direction:column;min-height:0}.editor-sidebar__panel:has(.editor-post-revisions-timeline) .editor-revision-meta-diff__content{max-height:80px;overflow-y:auto}.editor-sidebar__panel:has(.editor-post-revisions-timeline) .editor-post-revisions-timeline{flex:1;min-height:0}.editor-revision-fields-diff__value{word-break:break-word}.editor-revision-fields-diff__added{background-color:color-mix(in srgb,currentColor 5%,#00a32a 15%);text-decoration:none}.editor-revision-fields-diff__removed{color:#d63638;text-decoration:line-through}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:transparent;color:#757575}.editor-post-saved-state svg{fill:currentColor;display:inline-block;flex:0 0 auto;margin-right:8px}@media (min-width:600px){.editor-post-saved-state{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-right:0}}.editor-post-save-draft.has-text.has-icon svg{margin-right:0}.editor-post-schedule__panel-dropdown{width:100%}.editor-post-schedule__dialog .components-popover__content{min-width:320px;padding:16px}.editor-post-status{max-width:100%}.editor-post-status.is-read-only{padding:6px 12px}.editor-post-status .editor-post-status__toggle.editor-post-status__toggle{padding-bottom:4px;padding-top:4px}.editor-change-status__password-fieldset,.editor-change-status__publish-date-wrapper{border-top:1px solid #e0e0e0;padding-top:16px}.editor-change-status__content .components-popover__content{min-width:320px;padding:16px}.editor-change-status__content .editor-change-status__password-legend{margin-bottom:8px;padding:0}.editor-change-status__content p.components-base-control__help:has(.components-checkbox-control__help){margin-top:4px}.editor-post-sticky__checkbox-control{border-top:1px solid #e0e0e0;padding-top:16px}.editor-post-sync-status__value{padding:6px 0 6px 12px}.editor-post-taxonomies__hierarchical-terms-list{margin-left:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-left:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-left:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-right:8px}.editor-sync-connection-error-modal{z-index:1000001}.editor-sync-connection-error-modal p{margin:0}.editor-sync-connection-error-modal__retry-countdown{color:#757575}.editor-post-template__swap-template-modal{z-index:1000001}.editor-post-template__swap-template-modal .editor-post-template__swap-template-search{background:#fff;margin-bottom:-4px;padding:16px 0;position:sticky;top:0;transform:translateY(-4px);z-index:2}.editor-post-template__create-template-modal{z-index:1000001}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px;padding-top:2px}@media (min-width:782px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-post-template__swap-template-modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.editor-post-template__dropdown .components-popover__content{min-width:240px}.editor-post-template__dropdown .components-button.is-pressed,.editor-post-template__dropdown .components-button.is-pressed:hover{background:inherit;color:inherit}.editor-post-template__classic-theme-dropdown{padding:8px}.editor-template-actions-panel__preview .block-editor-block-preview__container{aspect-ratio:4/3;border-radius:4px;display:flex;overflow:hidden}.editor-template-actions-panel__preview .block-editor-block-preview__container:after{border-radius:4px;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}@media not (prefers-reduced-motion){.editor-template-actions-panel__preview .block-editor-block-preview__container:after{transition:outline .1s linear}}.editor-template-actions-panel__preview[role=button]{cursor:var(--wpds-cursor-control,pointer)}.editor-template-actions-panel__preview[role=button]:hover .block-editor-block-preview__container:after{outline-color:rgba(0,0,0,.3)}.editor-template-actions-panel__preview[role=button]:focus-visible .block-editor-block-preview__container:after{outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-1);outline-width:var(--wp-admin-border-width-focus)}.editor-template-actions-panel__action{flex:1;justify-content:center}textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;line-height:2.4;margin:0;min-height:200px;overflow:hidden;resize:none;width:100%}@media not (prefers-reduced-motion){textarea.editor-post-text-editor{transition:border .1s ease-out,box-shadow .1s linear}}textarea.editor-post-text-editor{padding:16px}@media (min-width:600px){textarea.editor-post-text-editor{padding:24px}}textarea.editor-post-text-editor{font-size:16px!important}@media (min-width:600px){textarea.editor-post-text-editor{font-size:15px!important}}textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62)}textarea.editor-post-text-editor::placeholder{color:rgba(30,30,30,.62)}.editor-post-title.is-raw-text{margin-bottom:24px;margin-top:2px;max-width:none}.editor-post-url__panel-dropdown{width:100%}.editor-post-url__panel-dialog .editor-post-url{margin:8px;min-width:248px}.editor-post-url__front-page-link,.editor-post-url__link{direction:ltr;word-break:break-word}.editor-post-url__front-page-link{border-radius:2px;color:var(--wp-admin-theme-color);padding:6px 12px}.editor-post-url__front-page-link:hover{background:color-mix(in srgb,var(--wp-admin-theme-color) 4%,transparent);color:var(--wp-admin-theme-color-darker-20,#183ad6)}.editor-post-url__front-page-link:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);outline:3px solid transparent}.editor-post-url__link-slug{font-weight:var(--wpds-typography-font-weight-emphasis,600)}.editor-post-url__input input.components-input-control__input{padding-inline-start:0!important}.editor-post-parent__panel-toggle,.editor-post-url__panel-toggle{word-break:break-word}.editor-post-url__intro{margin:0}.editor-post-url__permalink{margin-bottom:0;margin-top:8px}.editor-post-url__permalink-visual-label{display:block}.editor-posts-per-page-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.editor-preview-dropdown .editor-preview-dropdown__toggle.has-icon.has-text{padding-left:6px;padding-right:4px}.editor-preview-dropdown.is-responsive-editing .editor-preview-dropdown__toggle{color:var(--wp-block-synced-color)}@media (prefers-reduced-motion:no-preference){.editor-resizable-editor:not(.is-resizing){transition:width .2s ease-out}}.editor-resizable-editor.is-resizable{margin:0 auto;overflow:visible}.editor-resizable-editor__resize-handle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:9999px;bottom:0;cursor:ew-resize;height:100px;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.editor-resizable-editor__resize-handle:after{background-color:hsla(0,0%,46%,.4);border-radius:9999px;bottom:16px;content:"";left:4px;position:absolute;right:0;top:16px;width:4px}.editor-resizable-editor__resize-handle.is-left{left:-18px}.editor-resizable-editor__resize-handle.is-right{right:-18px}.editor-resizable-editor__resize-handle:active,.editor-resizable-editor__resize-handle:focus,.editor-resizable-editor__resize-handle:hover{opacity:1}.editor-resizable-editor__resize-handle:active:after,.editor-resizable-editor__resize-handle:focus:after,.editor-resizable-editor__resize-handle:hover:after{background-color:var(--wp-admin-theme-color)}.editor-save-error-details{display:inline}.editor-save-error-details summary{cursor:var(--wpds-cursor-control,pointer);display:inline;margin-left:.35em}.editor-save-error-details__message{white-space:break-spaces}.editor-layout__toggle-entities-saved-states-panel,.editor-layout__toggle-publish-panel,.editor-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:auto;padding:24px;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .editor-layout__toggle-publish-panel{bottom:0;top:auto}.editor-start-page-options__modal .editor-start-page-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:72px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.editor-start-page-options__modal .block-editor-block-patterns-list{padding-bottom:72px}.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:782px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-start-page-options__modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column;margin-bottom:24px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}.editor-start-template-options__modal .editor-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.editor-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:2;column-count:2;-moz-column-gap:24px;column-gap:24px}@media (min-width:782px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:3;column-count:3}}@media (min-width:1280px){.editor-start-template-options__modal-content .block-editor-block-patterns-list{-moz-column-count:4;column-count:4}}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{-moz-column-break-inside:avoid;break-inside:avoid-column}.editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.components-panel__header.editor-sidebar__panel-tabs{padding-left:0;padding-right:8px}.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{padding:0}@media (min-width:782px){.components-panel__header.editor-sidebar__panel-tabs .components-button.has-icon{display:flex}}.editor-post-summary .components-v-stack:empty{display:none}.editor-sidebar{box-sizing:border-box}.editor-sidebar *,.editor-sidebar :after,.editor-sidebar :before{box-sizing:inherit}.editor-sidebar__revisions-block-message{color:#757575;font-size:13px;padding:16px}.fields-controls__password{border-top:1px solid #e0e0e0;padding-top:16px}.editor-site-discussion-dropdown__content .components-popover__content{min-width:320px;padding:16px}.editor-style-book{height:100%}.editor-style-book.is-button{border-radius:8px}.editor-style-book__iframe{display:block;height:100%;width:100%}.editor-style-book__iframe.is-button{border-radius:8px}.editor-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.editor-style-book__tabs{display:flex;flex-direction:column;height:100%}.editor-style-book__tablist-container{background:#fff;display:flex;flex:none;padding-right:56px;width:100%}.editor-style-book__tabpanel{flex:1 0 auto;overflow:auto}.editor-styles-canvas{background-color:var(--wp-editor-canvas-background);height:100%;padding:24px}.editor-styles-canvas iframe{display:block;height:100%;width:100%}.editor-styles-canvas__section{background:#fff;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}@media not (prefers-reduced-motion){.editor-styles-canvas__section{transition:all .3s}}.editor-styles-canvas__close-button{background:#fff;position:absolute;right:8px;top:8px;z-index:2}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-right:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-top:20px}.editor-text-editor{box-sizing:border-box}.editor-text-editor *,.editor-text-editor :after,.editor-text-editor :before{box-sizing:inherit}.editor-text-editor{background-color:#fff;flex-grow:1;isolation:isolate;position:relative;width:100%}.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){border:1px solid #949494;border-radius:0;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.editor-text-editor .editor-post-title.is-raw-text textarea,.editor-text-editor .editor-post-title:not(.is-raw-text){padding:24px}}.editor-text-editor .editor-post-title.is-raw-text textarea:focus,.editor-text-editor .editor-post-title:not(.is-raw-text):focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.editor-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.editor-text-editor__body{padding:0 24px 24px}}.editor-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.editor-text-editor__toolbar{padding:12px}}@media (min-width:960px){.editor-text-editor__toolbar{padding:12px 24px}}.editor-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:40px;margin:0 auto 0 0}.editor-upload-progress-snackbar__check,.editor-upload-progress-snackbar__spinner{align-items:center;display:inline-flex;height:24px;justify-content:center;width:24px}.editor-upload-progress-snackbar__spinner .components-spinner{margin:0}.editor-upload-progress-snackbar__check svg{fill:currentColor;height:24px;width:24px}.editor-visual-editor{background-color:var(--wp-editor-canvas-background);display:flex;max-height:100%;position:relative}.editor-visual-editor iframe[name=editor-canvas]{background-color:transparent}.editor-visual-editor{align-items:center}@media (prefers-reduced-motion:no-preference){.editor-visual-editor{transition:padding .2s ease-out}}.editor-visual-editor.has-vertical-padding{padding-bottom:24px;padding-top:24px}.editor-visual-editor.has-horizontal-padding{padding-left:24px;padding-right:24px}.editor-visual-editor{overflow:hidden}.editor-visual-editor .components-button{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.editor-visual-editor .components-button.has-icon,.editor-visual-editor .components-button.is-tertiary{padding:6px}.editor-fields-content-preview{border-radius:4px;display:flex;flex-direction:column;height:100%}.dataviews-view-table .editor-fields-content-preview{flex-grow:0;width:96px}.editor-fields-content-preview .block-editor-block-preview__container,.editor-fields-content-preview .editor-fields-content-preview__empty{margin-bottom:auto;margin-top:auto}.editor-fields-content-preview__empty{text-align:center}.editor-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}.editor-push-changes-to-global-styles-modal p{margin-top:0}.editor-push-changes-to-global-styles-modal .dataviews-layout__container{overflow-x:hidden}@media (max-width:600px){.editor-push-changes-to-global-styles-modal .dataviews-layout__container{overflow-x:auto}}.editor-push-changes-to-global-styles-modal .components-modal__content{padding-bottom:0}.editor-push-changes-to-global-styles-modal .dataviews-footer{padding-bottom:24px}.editor-push-changes-to-global-styles-modal__value{color:#1e1e1e;overflow-wrap:anywhere}
\ No newline at end of file
diff --git a/wp-includes/css/dist/format-library/style-rtl.css b/wp-includes/css/dist/format-library/style-rtl.css
index 6935c8fa1e..fc8bd2ed79 100644
--- a/wp-includes/css/dist/format-library/style-rtl.css
+++ b/wp-includes/css/dist/format-library/style-rtl.css
@@ -51,25 +51,6 @@
padding: 16px;
}
-.block-editor-format-toolbar__link-container-content {
- display: flex;
- align-items: center;
-}
-
-.block-editor-format-toolbar__link-container-value {
- margin: 7px;
- flex-grow: 1;
- flex-shrink: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- min-width: 150px;
- max-width: 500px;
-}
-.block-editor-format-toolbar__link-container-value.has-invalid-link {
- color: #cc1818;
-}
-
.format-library__inline-color-popover [role=tabpanel] {
padding: 16px;
width: 260px;
diff --git a/wp-includes/css/dist/format-library/style-rtl.min.css b/wp-includes/css/dist/format-library/style-rtl.min.css
index 46b49114aa..007bb11074 100644
--- a/wp-includes/css/dist/format-library/style-rtl.min.css
+++ b/wp-includes/css/dist/format-library/style-rtl.min.css
@@ -1 +1 @@
-.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-content{padding:16px;width:260px}.block-editor-format-toolbar__link-container-content{align-items:center;display:flex}.block-editor-format-toolbar__link-container-value{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px;width:260px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto}.block-editor-format-toolbar__math-input input{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}
\ No newline at end of file
+.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-content,.format-library__inline-color-popover [role=tabpanel]{padding:16px;width:260px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto}.block-editor-format-toolbar__math-input input{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}
\ No newline at end of file
diff --git a/wp-includes/css/dist/format-library/style.css b/wp-includes/css/dist/format-library/style.css
index 46dc143f0f..abfb728d60 100644
--- a/wp-includes/css/dist/format-library/style.css
+++ b/wp-includes/css/dist/format-library/style.css
@@ -51,25 +51,6 @@
padding: 16px;
}
-.block-editor-format-toolbar__link-container-content {
- display: flex;
- align-items: center;
-}
-
-.block-editor-format-toolbar__link-container-value {
- margin: 7px;
- flex-grow: 1;
- flex-shrink: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- min-width: 150px;
- max-width: 500px;
-}
-.block-editor-format-toolbar__link-container-value.has-invalid-link {
- color: #cc1818;
-}
-
.format-library__inline-color-popover [role=tabpanel] {
padding: 16px;
width: 260px;
diff --git a/wp-includes/css/dist/format-library/style.min.css b/wp-includes/css/dist/format-library/style.min.css
index 46b49114aa..007bb11074 100644
--- a/wp-includes/css/dist/format-library/style.min.css
+++ b/wp-includes/css/dist/format-library/style.min.css
@@ -1 +1 @@
-.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-content{padding:16px;width:260px}.block-editor-format-toolbar__link-container-content{align-items:center;display:flex}.block-editor-format-toolbar__link-container-value{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-format-toolbar__link-container-value.has-invalid-link{color:#cc1818}.format-library__inline-color-popover [role=tabpanel]{padding:16px;width:260px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto}.block-editor-format-toolbar__math-input input{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}
\ No newline at end of file
+.block-editor-format-toolbar__image-popover{z-index:159990}.block-editor-format-toolbar__image-popover .block-editor-format-toolbar__image-container-content,.format-library__inline-color-popover [role=tabpanel]{padding:16px;width:260px}.block-editor-format-toolbar__language-popover .components-popover__content{padding:1rem;width:auto}.block-editor-format-toolbar__math-input input{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}
\ No newline at end of file
diff --git a/wp-includes/css/dist/media-utils/style-rtl.css b/wp-includes/css/dist/media-utils/style-rtl.css
index 1622102c42..d9f445b89f 100644
--- a/wp-includes/css/dist/media-utils/style-rtl.css
+++ b/wp-includes/css/dist/media-utils/style-rtl.css
@@ -1,6 +1,3 @@
-/**
- * Typography
- */
/**
* SCSS Variables.
*
@@ -46,6 +43,22 @@
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
+.components-popover__content:has(.dataviews-media-field__attached-to) {
+ margin-bottom: 96px;
+}
+
+.components-popover__content:has(.dataviews-media-field__attached-to):has(.components-form-token-field__suggestions-list) {
+ margin-bottom: 0;
+}
+
+.components-popover__content:has(.dataviews-media-field__attached-to) .components-form-token-field__suggestions-list {
+ height: 96px;
+ max-height: none;
+}
+
+/**
+ * Typography
+ */
/**
* Breakpoints & Media Queries
*/
@@ -353,7 +366,7 @@
.media-upload-modal__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
right: 0;
left: 0;
padding-inline: 16px;
diff --git a/wp-includes/css/dist/media-utils/style-rtl.min.css b/wp-includes/css/dist/media-utils/style-rtl.min.css
index 1ba4f38492..f3d61cc3a1 100644
--- a/wp-includes/css/dist/media-utils/style-rtl.min.css
+++ b/wp-includes/css/dist/media-utils/style-rtl.min.css
@@ -1 +1 @@
-.media-author-field__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:right;overflow:hidden;width:24px}.media-author-field__avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:1;width:16px}@media not (prefers-reduced-motion){.media-author-field__avatar.is-loaded img,.media-author-field__avatar.is-loading img{transition:opacity .1s linear}}.media-author-field__avatar.is-loading img{opacity:0}.media-author-field__avatar.is-loaded img{opacity:1}.media-author-field__icon{display:flex;flex-shrink:0;height:24px;width:24px}.media-author-field__icon svg{fill:currentColor;margin-right:-4px}.media-author-field__name{overflow:hidden;text-overflow:ellipsis}.dataviews-view-grid .dataviews-media-field__filename,.dataviews-view-list .dataviews-media-field__filename,.dataviews-view-table .dataviews-media-field__filename{display:inline-block;max-inline-size:15ch;overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.dataviews-media-field__media-thumbnail{align-items:center;display:flex;height:100%;position:relative}@media not (prefers-reduced-motion){.dataviews-media-field__media-thumbnail.is-loaded img,.dataviews-media-field__media-thumbnail.is-loading img{transition:opacity .1s linear}}.dataviews-media-field__media-thumbnail.is-loading img{opacity:0}.dataviews-media-field__media-thumbnail.is-loaded img{opacity:1}.dataviews-media-field__media-thumbnail--image{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-media-field__media-thumbnail__stack{box-sizing:border-box;color:#757575;height:100%;width:100%}.dataviews-media-field__media-thumbnail--icon{fill:currentColor;color:#757575}.dataviews-media-field__media-thumbnail__filename{box-sizing:border-box;container-type:inline-size;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:16px;padding:0 16px;text-align:center;width:100%}.dataviews-media-field__media-thumbnail__filename__truncate{margin-top:4px}@container (max-width: 90px){.dataviews-media-field__media-thumbnail__filename__truncate{display:none!important}}.media-upload-modal .components-modal__header{padding-bottom:8px}.media-upload-modal .components-modal__frame.is-full-screen .components-modal__content{margin-bottom:0}.media-upload-modal .components-modal__content{padding:0}.media-upload-modal .dataviews-picker-wrapper>.dataviews__view-actions{padding-top:8px}.media-upload-modal .media-upload-modal__footer{background-color:inherit;bottom:0;position:sticky;z-index:2}.media-upload-modal .media-upload-modal__footer.is-uploading .dataviews-picker-footer__bulk-selection{visibility:hidden}.media-upload-modal .media-upload-modal__footer .dataviews-footer{position:static;z-index:auto}.media-upload-modal .media-upload-modal__upload-status{align-items:center;background-color:var(--wp-dataviews-color-background,#fff);bottom:1px;display:flex;gap:8px;position:absolute;right:24px;top:1px;z-index:1}.media-upload-modal .media-upload-modal__upload-status .components-spinner{height:16px;margin:0;width:16px}.media-upload-modal__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-upload-modal__snackbar .components-snackbar{margin-inline:auto}.media-upload-modal__snackbar{z-index:200000}.media-upload-modal__snackbar>div{transform:none!important;transform-origin:100%!important}.media-upload-modal__upload-status__popover .components-popover__content{width:320px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header{align-items:center;display:flex;justify-content:space-between;padding:12px 16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header h3{font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__list{list-style:none;margin:0;max-height:200px;overflow-y:auto;padding:0 0 4px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item{align-items:flex-start;display:flex;gap:8px;justify-content:space-between;margin-bottom:0;padding:8px 16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item .components-spinner{flex-shrink:0;height:16px;margin:0;width:16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__filename{flex:1;font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
+.components-popover__content:has(.dataviews-media-field__attached-to){margin-bottom:96px}.components-popover__content:has(.dataviews-media-field__attached-to):has(.components-form-token-field__suggestions-list){margin-bottom:0}.components-popover__content:has(.dataviews-media-field__attached-to) .components-form-token-field__suggestions-list{height:96px;max-height:none}.media-author-field__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:right;overflow:hidden;width:24px}.media-author-field__avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:1;width:16px}@media not (prefers-reduced-motion){.media-author-field__avatar.is-loaded img,.media-author-field__avatar.is-loading img{transition:opacity .1s linear}}.media-author-field__avatar.is-loading img{opacity:0}.media-author-field__avatar.is-loaded img{opacity:1}.media-author-field__icon{display:flex;flex-shrink:0;height:24px;width:24px}.media-author-field__icon svg{fill:currentColor;margin-right:-4px}.media-author-field__name{overflow:hidden;text-overflow:ellipsis}.dataviews-view-grid .dataviews-media-field__filename,.dataviews-view-list .dataviews-media-field__filename,.dataviews-view-table .dataviews-media-field__filename{display:inline-block;max-inline-size:15ch;overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.dataviews-media-field__media-thumbnail{align-items:center;display:flex;height:100%;position:relative}@media not (prefers-reduced-motion){.dataviews-media-field__media-thumbnail.is-loaded img,.dataviews-media-field__media-thumbnail.is-loading img{transition:opacity .1s linear}}.dataviews-media-field__media-thumbnail.is-loading img{opacity:0}.dataviews-media-field__media-thumbnail.is-loaded img{opacity:1}.dataviews-media-field__media-thumbnail--image{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-media-field__media-thumbnail__stack{box-sizing:border-box;color:#757575;height:100%;width:100%}.dataviews-media-field__media-thumbnail--icon{fill:currentColor;color:#757575}.dataviews-media-field__media-thumbnail__filename{box-sizing:border-box;container-type:inline-size;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:16px;padding:0 16px;text-align:center;width:100%}.dataviews-media-field__media-thumbnail__filename__truncate{margin-top:4px}@container (max-width: 90px){.dataviews-media-field__media-thumbnail__filename__truncate{display:none!important}}.media-upload-modal .components-modal__header{padding-bottom:8px}.media-upload-modal .components-modal__frame.is-full-screen .components-modal__content{margin-bottom:0}.media-upload-modal .components-modal__content{padding:0}.media-upload-modal .dataviews-picker-wrapper>.dataviews__view-actions{padding-top:8px}.media-upload-modal .media-upload-modal__footer{background-color:inherit;bottom:0;position:sticky;z-index:2}.media-upload-modal .media-upload-modal__footer.is-uploading .dataviews-picker-footer__bulk-selection{visibility:hidden}.media-upload-modal .media-upload-modal__footer .dataviews-footer{position:static;z-index:auto}.media-upload-modal .media-upload-modal__upload-status{align-items:center;background-color:var(--wp-dataviews-color-background,#fff);bottom:1px;display:flex;gap:8px;position:absolute;right:24px;top:1px;z-index:1}.media-upload-modal .media-upload-modal__upload-status .components-spinner{height:16px;margin:0;width:16px}.media-upload-modal__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-upload-modal__snackbar .components-snackbar{margin-inline:auto}.media-upload-modal__snackbar{z-index:200000}.media-upload-modal__snackbar>div{transform:none!important;transform-origin:100%!important}.media-upload-modal__upload-status__popover .components-popover__content{width:320px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header{align-items:center;display:flex;justify-content:space-between;padding:12px 16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header h3{font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__list{list-style:none;margin:0;max-height:200px;overflow-y:auto;padding:0 0 4px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item{align-items:flex-start;display:flex;gap:8px;justify-content:space-between;margin-bottom:0;padding:8px 16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item .components-spinner{flex-shrink:0;height:16px;margin:0;width:16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__filename{flex:1;font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
diff --git a/wp-includes/css/dist/media-utils/style.css b/wp-includes/css/dist/media-utils/style.css
index 85a2be00d0..aea6357203 100644
--- a/wp-includes/css/dist/media-utils/style.css
+++ b/wp-includes/css/dist/media-utils/style.css
@@ -1,6 +1,3 @@
-/**
- * Typography
- */
/**
* SCSS Variables.
*
@@ -46,6 +43,22 @@
* React Native specific.
* These variables do not appear to be used anywhere else.
*/
+.components-popover__content:has(.dataviews-media-field__attached-to) {
+ margin-bottom: 96px;
+}
+
+.components-popover__content:has(.dataviews-media-field__attached-to):has(.components-form-token-field__suggestions-list) {
+ margin-bottom: 0;
+}
+
+.components-popover__content:has(.dataviews-media-field__attached-to) .components-form-token-field__suggestions-list {
+ height: 96px;
+ max-height: none;
+}
+
+/**
+ * Typography
+ */
/**
* Breakpoints & Media Queries
*/
@@ -353,7 +366,7 @@
.media-upload-modal__snackbar {
position: fixed;
- bottom: 24px;
+ bottom: var(--wpds-dimension-size-md, 32px);
left: 0;
right: 0;
padding-inline: 16px;
diff --git a/wp-includes/css/dist/media-utils/style.min.css b/wp-includes/css/dist/media-utils/style.min.css
index 0414b7db38..d6db4700ac 100644
--- a/wp-includes/css/dist/media-utils/style.min.css
+++ b/wp-includes/css/dist/media-utils/style.min.css
@@ -1 +1 @@
-.media-author-field__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:left;overflow:hidden;width:24px}.media-author-field__avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:1;width:16px}@media not (prefers-reduced-motion){.media-author-field__avatar.is-loaded img,.media-author-field__avatar.is-loading img{transition:opacity .1s linear}}.media-author-field__avatar.is-loading img{opacity:0}.media-author-field__avatar.is-loaded img{opacity:1}.media-author-field__icon{display:flex;flex-shrink:0;height:24px;width:24px}.media-author-field__icon svg{fill:currentColor;margin-left:-4px}.media-author-field__name{overflow:hidden;text-overflow:ellipsis}.dataviews-view-grid .dataviews-media-field__filename,.dataviews-view-list .dataviews-media-field__filename,.dataviews-view-table .dataviews-media-field__filename{display:inline-block;max-inline-size:15ch;overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.dataviews-media-field__media-thumbnail{align-items:center;display:flex;height:100%;position:relative}@media not (prefers-reduced-motion){.dataviews-media-field__media-thumbnail.is-loaded img,.dataviews-media-field__media-thumbnail.is-loading img{transition:opacity .1s linear}}.dataviews-media-field__media-thumbnail.is-loading img{opacity:0}.dataviews-media-field__media-thumbnail.is-loaded img{opacity:1}.dataviews-media-field__media-thumbnail--image{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-media-field__media-thumbnail__stack{box-sizing:border-box;color:#757575;height:100%;width:100%}.dataviews-media-field__media-thumbnail--icon{fill:currentColor;color:#757575}.dataviews-media-field__media-thumbnail__filename{box-sizing:border-box;container-type:inline-size;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:16px;padding:0 16px;text-align:center;width:100%}.dataviews-media-field__media-thumbnail__filename__truncate{margin-top:4px}@container (max-width: 90px){.dataviews-media-field__media-thumbnail__filename__truncate{display:none!important}}.media-upload-modal .components-modal__header{padding-bottom:8px}.media-upload-modal .components-modal__frame.is-full-screen .components-modal__content{margin-bottom:0}.media-upload-modal .components-modal__content{padding:0}.media-upload-modal .dataviews-picker-wrapper>.dataviews__view-actions{padding-top:8px}.media-upload-modal .media-upload-modal__footer{background-color:inherit;bottom:0;position:sticky;z-index:2}.media-upload-modal .media-upload-modal__footer.is-uploading .dataviews-picker-footer__bulk-selection{visibility:hidden}.media-upload-modal .media-upload-modal__footer .dataviews-footer{position:static;z-index:auto}.media-upload-modal .media-upload-modal__upload-status{align-items:center;background-color:var(--wp-dataviews-color-background,#fff);bottom:1px;display:flex;gap:8px;left:24px;position:absolute;top:1px;z-index:1}.media-upload-modal .media-upload-modal__upload-status .components-spinner{height:16px;margin:0;width:16px}.media-upload-modal__snackbar{bottom:24px;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-upload-modal__snackbar .components-snackbar{margin-inline:auto}.media-upload-modal__snackbar{z-index:200000}.media-upload-modal__snackbar>div{transform:none!important;transform-origin:0!important}.media-upload-modal__upload-status__popover .components-popover__content{width:320px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header{align-items:center;display:flex;justify-content:space-between;padding:12px 16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header h3{font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__list{list-style:none;margin:0;max-height:200px;overflow-y:auto;padding:0 0 4px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item{align-items:flex-start;display:flex;gap:8px;justify-content:space-between;margin-bottom:0;padding:8px 16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item .components-spinner{flex-shrink:0;height:16px;margin:0;width:16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__filename{flex:1;font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
+.components-popover__content:has(.dataviews-media-field__attached-to){margin-bottom:96px}.components-popover__content:has(.dataviews-media-field__attached-to):has(.components-form-token-field__suggestions-list){margin-bottom:0}.components-popover__content:has(.dataviews-media-field__attached-to) .components-form-token-field__suggestions-list{height:96px;max-height:none}.media-author-field__avatar{align-items:center;display:flex;flex-shrink:0;height:24px;justify-content:left;overflow:hidden;width:24px}.media-author-field__avatar img{border-radius:100%;height:16px;-o-object-fit:cover;object-fit:cover;opacity:1;width:16px}@media not (prefers-reduced-motion){.media-author-field__avatar.is-loaded img,.media-author-field__avatar.is-loading img{transition:opacity .1s linear}}.media-author-field__avatar.is-loading img{opacity:0}.media-author-field__avatar.is-loaded img{opacity:1}.media-author-field__icon{display:flex;flex-shrink:0;height:24px;width:24px}.media-author-field__icon svg{fill:currentColor;margin-left:-4px}.media-author-field__name{overflow:hidden;text-overflow:ellipsis}.dataviews-view-grid .dataviews-media-field__filename,.dataviews-view-list .dataviews-media-field__filename,.dataviews-view-table .dataviews-media-field__filename{display:inline-block;max-inline-size:15ch;overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.dataviews-media-field__media-thumbnail{align-items:center;display:flex;height:100%;position:relative}@media not (prefers-reduced-motion){.dataviews-media-field__media-thumbnail.is-loaded img,.dataviews-media-field__media-thumbnail.is-loading img{transition:opacity .1s linear}}.dataviews-media-field__media-thumbnail.is-loading img{opacity:0}.dataviews-media-field__media-thumbnail.is-loaded img{opacity:1}.dataviews-media-field__media-thumbnail--image{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.dataviews-media-field__media-thumbnail__stack{box-sizing:border-box;color:#757575;height:100%;width:100%}.dataviews-media-field__media-thumbnail--icon{fill:currentColor;color:#757575}.dataviews-media-field__media-thumbnail__filename{box-sizing:border-box;container-type:inline-size;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;font-weight:var(--wpds-typography-font-weight-default,400);line-height:16px;padding:0 16px;text-align:center;width:100%}.dataviews-media-field__media-thumbnail__filename__truncate{margin-top:4px}@container (max-width: 90px){.dataviews-media-field__media-thumbnail__filename__truncate{display:none!important}}.media-upload-modal .components-modal__header{padding-bottom:8px}.media-upload-modal .components-modal__frame.is-full-screen .components-modal__content{margin-bottom:0}.media-upload-modal .components-modal__content{padding:0}.media-upload-modal .dataviews-picker-wrapper>.dataviews__view-actions{padding-top:8px}.media-upload-modal .media-upload-modal__footer{background-color:inherit;bottom:0;position:sticky;z-index:2}.media-upload-modal .media-upload-modal__footer.is-uploading .dataviews-picker-footer__bulk-selection{visibility:hidden}.media-upload-modal .media-upload-modal__footer .dataviews-footer{position:static;z-index:auto}.media-upload-modal .media-upload-modal__upload-status{align-items:center;background-color:var(--wp-dataviews-color-background,#fff);bottom:1px;display:flex;gap:8px;left:24px;position:absolute;top:1px;z-index:1}.media-upload-modal .media-upload-modal__upload-status .components-spinner{height:16px;margin:0;width:16px}.media-upload-modal__snackbar{bottom:var(--wpds-dimension-size-md,32px);box-sizing:border-box;display:flex;flex-direction:column;left:0;padding-inline:16px;pointer-events:none;position:fixed;right:0}.media-upload-modal__snackbar .components-snackbar{margin-inline:auto}.media-upload-modal__snackbar{z-index:200000}.media-upload-modal__snackbar>div{transform:none!important;transform-origin:0!important}.media-upload-modal__upload-status__popover .components-popover__content{width:320px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header{align-items:center;display:flex;justify-content:space-between;padding:12px 16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__header h3{font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__list{list-style:none;margin:0;max-height:200px;overflow-y:auto;padding:0 0 4px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item{align-items:flex-start;display:flex;gap:8px;justify-content:space-between;margin-bottom:0;padding:8px 16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__item .components-spinner{flex-shrink:0;height:16px;margin:0;width:16px}.media-upload-modal__upload-status__popover .media-upload-modal__upload-status__filename{flex:1;font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
diff --git a/wp-includes/js/dist/a11y.js b/wp-includes/js/dist/a11y.js
index 6241e831a1..04cccfe6dd 100644
--- a/wp-includes/js/dist/a11y.js
+++ b/wp-includes/js/dist/a11y.js
@@ -1,3 +1,4 @@
+(function() {
"use strict";
var wp;
(wp ||= {}).a11y = (() => {
@@ -154,3 +155,5 @@ var wp;
(0, import_dom_ready.default)(setup);
return __toCommonJS(index_exports);
})();
+(window.wp ||= {}).a11y = wp.a11y;
+})();
diff --git a/wp-includes/js/dist/a11y.min.js b/wp-includes/js/dist/a11y.min.js
index 8c3d641b8e..e8a8e599c1 100644
--- a/wp-includes/js/dist/a11y.min.js
+++ b/wp-includes/js/dist/a11y.min.js
@@ -1,2 +1,5 @@
/*! This file is auto-generated */
+(function() {
"use strict";var wp;(wp||={}).a11y=(()=>{var v=Object.create;var r=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),B=(t,e)=>{for(var o in e)r(t,o,{get:e[o],enumerable:!0})},p=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of E(e))!I.call(t,n)&&n!==o&&r(t,n,{get:()=>e[n],enumerable:!(i=A(e,n))||i.enumerable});return t};var s=(t,e,o)=>(o=t!=null?v(C(t)):{},p(e||!t||!t.__esModule?r(o,"default",{value:t,enumerable:!0}):o,t)),T=t=>p(r({},"__esModule",{value:!0}),t);var c=d((P,l)=>{l.exports=window.wp.domReady});var u=d((_,m)=>{m.exports=window.wp.i18n});var N={};B(N,{setup:()=>g,speak:()=>k});var w=s(c(),1);function a(t="polite"){let e=document.createElement("div");e.id=`a11y-speak-${t}`,e.className="a11y-speak-region",e.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;word-break:normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");let{body:o}=document;return o&&o.appendChild(e),e}var f=s(u(),1);function x(){let t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=(0,f.__)("Notifications"),t.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;word-break:normal !important;"),t.setAttribute("hidden","");let{body:e}=document;return e&&e.appendChild(t),t}function y(){let t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text");for(let o=0;o<t.length;o++)t[o].textContent="";e&&e.setAttribute("hidden","hidden")}var h="";function b(t){return t=t.replace(/<[^<>]+>/g," "),h===t&&(t+="\xA0"),h=t,t}function k(t,e){y(),t=b(t);let o=document.getElementById("a11y-speak-intro-text"),i=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");i&&e==="assertive"?i.textContent=t:n&&(n.textContent=t),o&&o.removeAttribute("hidden")}function g(){let t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");t===null&&x(),e===null&&a("assertive"),o===null&&a("polite")}(0,w.default)(g);return T(N);})();
+(window.wp ||= {}).a11y = wp.a11y;
+})();
diff --git a/wp-includes/js/dist/annotations.js b/wp-includes/js/dist/annotations.js
index 01f0374bfe..9187f562fa 100644
--- a/wp-includes/js/dist/annotations.js
+++ b/wp-includes/js/dist/annotations.js
@@ -1,3 +1,4 @@
+(function() {
"use strict";
var wp;
(wp ||= {}).annotations = (() => {
@@ -468,3 +469,5 @@ var wp;
);
return __toCommonJS(index_exports);
})();
+(window.wp ||= {}).annotations = wp.annotations;
+})();
diff --git a/wp-includes/js/dist/annotations.min.js b/wp-includes/js/dist/annotations.min.js
index f719f8f4af..a87795bfc5 100644
--- a/wp-includes/js/dist/annotations.min.js
+++ b/wp-includes/js/dist/annotations.min.js
@@ -1,2 +1,5 @@
/*! This file is auto-generated */
+(function() {
"use strict";var wp;(wp||={}).annotations=(()=>{var W=Object.create;var d=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var $=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty;var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_=(e,t)=>{for(var r in t)d(e,r,{get:t[r],enumerable:!0})},b=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Y(t))!q.call(e,o)&&o!==r&&d(e,o,{get:()=>t[o],enumerable:!(n=X(t,o))||n.enumerable});return e};var l=(e,t,r)=>(r=e!=null?W($(e)):{},b(t||!e||!e.__esModule?d(r,"default",{value:e,enumerable:!0}):r,e)),z=e=>b(d({},"__esModule",{value:!0}),e);var g=f((_e,U)=>{U.exports=window.wp.richText});var C=f((ge,S)=>{S.exports=window.wp.i18n});var D=f((Oe,B)=>{B.exports=window.wp.hooks});var c=f((Re,G)=>{G.exports=window.wp.data});var xe={};_(xe,{store:()=>p});var k=l(g(),1);var M=l(C(),1),N=l(g(),1);var s="core/annotations";var v="core/annotation",T="annotation-text-";function J(e,t=[]){return t.forEach(r=>{let{start:n,end:o}=r;if(typeof n!="number"||typeof o!="number")return;n>e.text.length&&(n=e.text.length),o>e.text.length&&(o=e.text.length);let i=T+r.source,u=T+r.id;e=(0,N.applyFormat)(e,{type:v,attributes:{className:i,id:u}},n,o)}),e}function K(e){let t={};return e.forEach((r,n)=>{r=r||[],r=r.filter(o=>o.type===v),r.forEach(o=>{let{id:i}=o.attributes;i=i.replace(T,""),t.hasOwnProperty(i)||(t[i]={start:n}),t[i].end=n+1})}),t}function Q(e,t,{removeAnnotation:r,updateAnnotationRange:n}){e.forEach(o=>{let i=t[o.id];if(!i){r(o.id);return}let{start:u,end:m}=o;typeof u=="number"&&typeof m=="number"&&(u!==i.start||m!==(i.end??i.start))&&n(o.id,i.start,i.end??i.start)})}var P={name:v,title:(0,M.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},interactive:!1,object:!1,edit:()=>null,__experimentalGetPropsForEditableTreePreparation:(e,{richTextIdentifier:t,blockClientId:r})=>({annotations:e(s).__experimentalGetAnnotationsForRichText(r,t)}),__experimentalCreatePrepareEditableTree:({annotations:e})=>(t,r)=>{if(e.length===0)return t;let n={formats:t,text:r,replacements:[],start:0,end:0};return n=J(n,e),n.formats},__experimentalGetPropsForEditableTreeChangeHandler:e=>({removeAnnotation:e(s).__experimentalRemoveAnnotation,updateAnnotationRange:e(s).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:e=>t=>{let r=K(t),{removeAnnotation:n,updateAnnotationRange:o,annotations:i}=e;Q(i,r,{removeAnnotation:n,updateAnnotationRange:o})}};var{name:Z,...ee}=P;(0,k.registerFormatType)(Z,ee);var L=l(D(),1),H=l(c(),1);var x=l(c(),1);function V(e,t){let r=e.filter(t);return e.length===r.length?e:r}var E=(e,t)=>Object.entries(e).reduce((r,[n,o])=>o===void 0?r:{...r,[n]:t(o)},{});function te(e){return!!(e.range&&typeof e.range.start=="number"&&typeof e.range.end=="number"&&e.range.start<=e.range.end)}function re(e={},t){switch(t.type){case"ANNOTATION_ADD":let r=t.blockClientId,n={id:t.id,blockClientId:r,richTextIdentifier:t.richTextIdentifier,source:t.source,selector:t.selector,range:t.range};if(n.selector==="range"&&!te(n))return e;let o=e?.[r]??[];return{...e,[r]:[...o,n]};case"ANNOTATION_REMOVE":return E(e,i=>V(i,u=>u.id!==t.annotationId));case"ANNOTATION_UPDATE_RANGE":return E(e,i=>{let u=!1,m=i.map(A=>A.id===t.annotationId?(u=!0,{...A,range:{start:t.start,end:t.end}}):A);return u?m:i});case"ANNOTATION_REMOVE_SOURCE":return E(e,i=>V(i,u=>u.source!==t.source))}return e}var F=re;var h={};_(h,{__experimentalGetAllAnnotationsForBlock:()=>oe,__experimentalGetAnnotations:()=>ae,__experimentalGetAnnotationsForBlock:()=>ne,__experimentalGetAnnotationsForRichText:()=>ie});var O=l(c(),1),R=[],ne=(0,O.createSelector)((e,t)=>(e?.[t]??[]).filter(r=>r.selector==="block"),(e,t)=>[e?.[t]??R]);function oe(e,t){return e?.[t]??R}var ie=(0,O.createSelector)((e,t,r)=>(e?.[t]??[]).filter(n=>n.selector==="range"&&r===n.richTextIdentifier).map(n=>{let{range:o,...i}=n;return{...o,...i}}),(e,t)=>[e?.[t]??R]);function ae(e){return Object.values(e).filter(t=>!!t).flat()}var I={};_(I,{__experimentalAddAnnotation:()=>pe,__experimentalRemoveAnnotation:()=>me,__experimentalRemoveAnnotationsBySource:()=>fe,__experimentalUpdateAnnotationRange:()=>de});var a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function j(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}var ue=new Uint8Array(16);function y(){return crypto.getRandomValues(ue)}function le(e,t,r){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():se(e,t,r)}function se(e,t,r){e=e||{};let n=e.random??e.rng?.()??y();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let o=0;o<16;++o)t[r+o]=n[o];return t}return j(n)}var w=le;function pe({blockClientId:e,richTextIdentifier:t=null,range:r=null,selector:n="range",source:o="default",id:i=w()}){let u={type:"ANNOTATION_ADD",id:i,blockClientId:e,richTextIdentifier:t,source:o,selector:n};return n==="range"&&r!==null&&(u.range=r),u}function me(e){return{type:"ANNOTATION_REMOVE",annotationId:e}}function de(e,t,r){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:e,start:t,end:r}}function fe(e){return{type:"ANNOTATION_REMOVE_SOURCE",source:e}}var p=(0,x.createReduxStore)(s,{reducer:F,selectors:h,actions:I});(0,x.register)(p);var ce=e=>(0,H.withSelect)((t,r)=>{let{clientId:n,className:o}=r;return{className:t(p).__experimentalGetAnnotationsForBlock(n).map(u=>"is-annotated-by-"+u.source).concat(o||"").filter(Boolean).join(" ")}})(e);(0,L.addFilter)("editor.BlockListBlock","core/annotations",ce);return z(xe);})();
+(window.wp ||= {}).annotations = wp.annotations;
+})();
diff --git a/wp-includes/js/dist/api-fetch.js b/wp-includes/js/dist/api-fetch.js
index 6e4907ee5b..5e753fc79f 100644
--- a/wp-includes/js/dist/api-fetch.js
+++ b/wp-includes/js/dist/api-fetch.js
@@ -1,3 +1,4 @@
+(function() {
"use strict";
var wp;
(wp ||= {}).apiFetch = (() => {
@@ -589,3 +590,5 @@ var wp;
return __toCommonJS(index_exports);
})();
if (typeof wp.apiFetch === 'object' && wp.apiFetch.default) { wp.apiFetch = wp.apiFetch.default; }
+(window.wp ||= {}).apiFetch = wp.apiFetch;
+})();
diff --git a/wp-includes/js/dist/api-fetch.min.js b/wp-includes/js/dist/api-fetch.min.js
index 2b4387e2a6..a58d0c627c 100644
--- a/wp-includes/js/dist/api-fetch.min.js
+++ b/wp-includes/js/dist/api-fetch.min.js
@@ -1,3 +1,6 @@
/*! This file is auto-generated */
+(function() {
"use strict";var wp;(wp||={}).apiFetch=(()=>{var re=Object.create;var g=Object.defineProperty;var ae=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames;var de=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var O=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ie=(e,r)=>{for(var a in r)g(e,a,{get:r[a],enumerable:!0})},S=(e,r,a,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of te(r))!ne.call(e,n)&&n!==a&&g(e,n,{get:()=>r[n],enumerable:!(t=ae(r,n))||t.enumerable});return e};var p=(e,r,a)=>(a=e!=null?re(de(e)):{},S(r||!e||!e.__esModule?g(a,"default",{value:e,enumerable:!0}):a,e)),le=e=>S(g({},"__esModule",{value:!0}),e);var y=O((Ne,j)=>{j.exports=window.wp.i18n});var k=O((Se,I)=>{I.exports=window.wp.privateApis});var v=O((Fe,G)=>{G.exports=window.wp.url});var Ue={};ie(Ue,{default:()=>T});var L=p(y(),1);var C=p(k(),1),{lock:H,unlock:je}=(0,C.__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/api-fetch");function oe(e){let r=(a,t)=>{let{headers:n={}}=a;for(let d in n)if(d.toLowerCase()==="x-wp-nonce"&&n[d]===r.nonce)return t(a);return t({...a,headers:{...n,"X-WP-Nonce":r.nonce}})};return r.nonce=e,r}var Q=oe;var se=(e,r)=>{let a=e.path,t,n;return typeof e.namespace=="string"&&typeof e.endpoint=="string"&&(t=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),n?a=t+"/"+n:a=t),delete e.namespace,delete e.endpoint,r({...e,path:a})},E=se;var ce=e=>(r,a)=>E(r,t=>{let n=t.url,d=t.path,l;return typeof d=="string"&&(l=e,e.indexOf("?")!==-1&&(d=d.replace("?","&")),d=d.replace(/^\//,""),typeof l=="string"&&l.indexOf("?")!==-1&&(d=d.replace("?","&")),n=l+d),a({...t,url:n})}),F=ce;var m=p(v(),1),x=Symbol("preloadingEnableMultiUse"),R=Symbol("preloadingClear");function ue(e){let{OPTIONS:r={},...a}=Object.fromEntries(Object.entries(e).map(([i,s])=>[(0,m.normalizePath)(i),s])),t=new Set(Object.keys(a)),n=new Set(Object.keys(r)),d=!1,l=(i,s)=>{let{parse:c=!0}=i,_=i.path;if(!_&&i.url){let{rest_route:h,...ee}=(0,m.getQueryArgs)(i.url);typeof h=="string"&&(_=(0,m.addQueryArgs)(h,ee))}if(typeof _!="string")return s(i);let N=i.method||"GET",f=(0,m.normalizePath)(_);if(N==="GET"&&a[f]){let h=a[f];return d||delete a[f],t.delete(f),z(h,!!c)}else if(N==="OPTIONS"&&r[f]){let h=r[f];return d||delete r[f],n.delete(f),z(h,!!c)}return s(i)};return l[x]=()=>{d=!0},l[R]=()=>{let i=[...Array.from(t,s=>`GET ${s}`),...Array.from(n,s=>`OPTIONS ${s}`)];i.length?console.warn("[api-fetch][preload] Some preloads were never consumed:",i):console.log("[api-fetch][preload] All preloads consumed."),t.clear(),n.clear();for(let s of Object.keys(a))delete a[s];for(let s of Object.keys(r))delete r[s]},l}function z(e,r){if(r)return Promise.resolve(e.body);try{return Promise.resolve(new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}catch{return Object.entries(e.headers).forEach(([a,t])=>{a.toLowerCase()==="link"&&(e.headers[a]=t.replace(/<([^>]+)>/,(n,d)=>`<${encodeURI(d)}>`))}),Promise.resolve(r?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}}var $=ue;var b=p(v(),1);var fe=({path:e,url:r,...a},t)=>({...a,url:r&&(0,b.addQueryArgs)(r,t),path:e&&(0,b.addQueryArgs)(e,t)}),D=e=>e.json?e.json():Promise.reject(e),pe=e=>{if(!e)return{};let r=e.match(/<([^>]+)>; rel="next"/);return r?{next:r[1]}:{}},J=e=>{let{next:r}=pe(e.headers.get("link"));return r},me=e=>{let r=!!e.path&&e.path.indexOf("per_page=-1")!==-1,a=!!e.url&&e.url.indexOf("per_page=-1")!==-1;return r||a},he=async(e,r)=>{if(e.parse===!1||!me(e))return r(e);let a=await T({...fe(e,{per_page:100}),parse:!1}),t=await D(a);if(!Array.isArray(t))return t;let n=J(a);if(!n)return t;let d=[].concat(t);for(;n;){let l=await T({...e,path:void 0,url:n,parse:!1}),i=await D(l);d=d.concat(i),n=J(l)}return d},U=he;var we=new Set(["PATCH","PUT","DELETE"]),ve="GET",_e=(e,r)=>{let{method:a=ve}=e;return we.has(a.toUpperCase())&&(e={...e,headers:{"Content-Type":"application/json",...e.headers,"X-HTTP-Method-Override":a},method:"POST"}),r(e)},q=_e;var w=p(v(),1),ge=(e,r)=>(typeof e.url=="string"&&!(0,w.hasQueryArg)(e.url,"_locale")&&(e.url=(0,w.addQueryArgs)(e.url,{_locale:"user"})),typeof e.path=="string"&&!(0,w.hasQueryArg)(e.path,"_locale")&&(e.path=(0,w.addQueryArgs)(e.path,{_locale:"user"})),r(e)),B=ge;var X=p(y(),1);var V=p(y(),1);async function K(e){try{return await e.json()}catch{throw{code:"invalid_json",message:(0,V.__)("The response is not a valid JSON response.")}}}async function A(e,r=!0){return r?e.status===204?null:await K(e):e}async function M(e,r=!0){throw r?await K(e):e}function ye(e){let r=!!e.method&&e.method==="POST";return(!!e.path&&e.path.indexOf("/wp/v2/media")!==-1||!!e.url&&e.url.indexOf("/wp/v2/media")!==-1)&&r}var Ee=(e,r)=>{if(!ye(e))return r(e);let a=0,t=5,n=d=>(a++,r({path:`/wp/v2/media/${d}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>a<t?n(d):(r({path:`/wp/v2/media/${d}?force=true`,method:"DELETE"}),Promise.reject())));return r({...e,parse:!1}).catch(d=>{if(!(d instanceof globalThis.Response))return Promise.reject(d);let l=d.headers.get("x-wp-upload-attachment-id");return d.status>=500&&d.status<600&&l?n(l).catch(()=>e.parse!==!1?Promise.reject({code:"post_process",message:(0,X.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(d)):M(d,e.parse)}).then(d=>A(d,e.parse))},W=Ee;var u=p(v(),1),Te=e=>(r,a)=>{if(typeof r.url=="string"){let t=(0,u.getQueryArg)(r.url,"wp_theme_preview");t===void 0?r.url=(0,u.addQueryArgs)(r.url,{wp_theme_preview:e}):t===""&&(r.url=(0,u.removeQueryArgs)(r.url,"wp_theme_preview"))}if(typeof r.path=="string"){let t=(0,u.getQueryArg)(r.path,"wp_theme_preview");t===void 0?r.path=(0,u.addQueryArgs)(r.path,{wp_theme_preview:e}):t===""&&(r.path=(0,u.removeQueryArgs)(r.path,"wp_theme_preview"))}return a(r)},Y=Te;var Ae={Accept:"application/json, */*;q=0.1"},Me={credentials:"include"},P=[B,E,q,U];function Pe(e){P.unshift(e)}function Oe(){for(let e of P)e[x]?.()}function xe(){for(let e of P)e[R]?.()}var Re=e=>{let{url:r,path:a,data:t,parse:n=!0,...d}=e,{body:l,headers:i}=e;return i={...Ae,...i},t&&(l=JSON.stringify(t),i["Content-Type"]="application/json"),globalThis.fetch(r||a||window.location.href,{...Me,...d,body:l,headers:i}).then(c=>c.ok?A(c,n):M(c,n),c=>{throw c&&c.name==="AbortError"?c:globalThis.navigator.onLine?{code:"fetch_error",message:(0,L.__)("Could not get a valid response from the server.")}:{code:"offline_error",message:(0,L.__)("Unable to connect. Please check your Internet connection.")}})},Z=Re;function be(e){Z=e}var o=e=>P.reduceRight((a,t)=>n=>t(n,a),Z)(e).catch(a=>a.code!=="rest_cookie_invalid_nonce"?Promise.reject(a):globalThis.fetch(o.nonceEndpoint).then(t=>t.ok?t.text():Promise.reject(a)).then(t=>(o.nonceMiddleware.nonce=t,o(e))));o.use=Pe;o.setFetchHandler=be;o.privateApis={};H(o.privateApis,{enablePreloadMultiUse:Oe,clearPreloadedData:xe});o.createNonceMiddleware=Q;o.createPreloadingMiddleware=$;o.createRootURLMiddleware=F;o.fetchAllMiddleware=U;o.mediaUploadMiddleware=W;o.createThemePreviewMiddleware=Y;var T=o;return le(Ue);})();
if (typeof wp.apiFetch === 'object' && wp.apiFetch.default) { wp.apiFetch = wp.apiFetch.default; }
+(window.wp ||= {}).apiFetch = wp.apiFetch;
+})();
diff --git a/wp-includes/js/dist/autop.js b/wp-includes/js/dist/autop.js
index b808457243..70596ac223 100644
--- a/wp-includes/js/dist/autop.js
+++ b/wp-includes/js/dist/autop.js
@@ -1,3 +1,4 @@
+(function() {
"use strict";
var wp;
(wp ||= {}).autop = (() => {
@@ -280,3 +281,5 @@ var wp;
}
return __toCommonJS(index_exports);
})();
+(window.wp ||= {}).autop = wp.autop;
+})();
diff --git a/wp-includes/js/dist/autop.min.js b/wp-includes/js/dist/autop.min.js
index 10e6ca5a03..624e7a37f2 100644
--- a/wp-includes/js/dist/autop.min.js
+++ b/wp-includes/js/dist/autop.min.js
@@ -1,4 +1,5 @@
/*! This file is auto-generated */
+(function() {
"use strict";var wp;(wp||={}).autop=(()=>{var l=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var $=(e,n)=>{for(var r in n)l(e,r,{get:n[r],enumerable:!0})},w=(e,n,r,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of u(n))!b.call(e,i)&&i!==r&&l(e,i,{get:()=>n[i],enumerable:!(c=f(n,i))||c.enumerable});return e};var v=e=>w(l({},"__esModule",{value:!0}),e);var S={};$(S,{autop:()=>R,removep:()=>j});var k=(()=>{let c="(<("+("(?=!--|!\\[CDATA\\[)((?=!-)"+"!(?:-(?!->)[^\\-]*)*(?:-->)?"+"|"+"!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?"+")")+"|[^>]*>?))";return new RegExp(c)})();function O(e){let n=[],r=e,c;for(;c=r.match(k);){let i=c.index;n.push(r.slice(0,i)),n.push(c[0]),r=r.slice(i+c[0].length)}return r.length&&n.push(r),n}function E(e,n){let r=O(e),c=!1,i=Object.keys(n);for(let s=1;s<r.length;s+=2)for(let a=0;a<i.length;a++){let p=i[a];if(r[s].indexOf(p)!==-1){r[s]=r[s].replace(new RegExp(p,"g"),n[p]),c=!0;break}}return c&&(e=r.join("")),e}function R(e,n=!0){let r=[];if(e.trim()==="")return"";if(e=e+`
`,e.indexOf("<pre")!==-1){let s=e.split("</pre>"),a=s.pop();e="";for(let p=0;p<s.length;p++){let o=s[p],g=o.indexOf("<pre");if(g===-1){e+=o;continue}let d="<pre wp-pre-tag-"+p+"></pre>";r.push([d,o.substr(g)+"</pre>"]),e+=o.substr(0,g)+d}e+=a}e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,`
@@ -45,3 +46,5 @@ $1`),e=e.replace(new RegExp("(</"+c+">)","g"),`$1
`),e=e.replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,`
$1`),e=e.replace(/^\s+/,""),e=e.replace(/[\s\u00a0]+$/,""),s&&(e=e.replace(/<wp-line-break>/g,`
`)),a&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),i.length&&(e=e.replace(/<wp-preserve>/g,()=>i.shift())),e):""}return v(S);})();
+(window.wp ||= {}).autop = wp.autop;
+})();
diff --git a/wp-includes/js/dist/base-styles.js b/wp-includes/js/dist/base-styles.js
index e9a4bac926..094dae4708 100644
--- a/wp-includes/js/dist/base-styles.js
+++ b/wp-includes/js/dist/base-styles.js
@@ -1,3 +1,6 @@
+(function() {
var wp;
(wp ||= {}).baseStyles = (() => {
})();
+(window.wp ||= {}).baseStyles = wp.baseStyles;
+})();
diff --git a/wp-includes/js/dist/base-styles.min.js b/wp-includes/js/dist/base-styles.min.js
index 99c5b0b161..f49c0ef042 100644
--- a/wp-includes/js/dist/base-styles.min.js
+++ b/wp-includes/js/dist/base-styles.min.js
@@ -1,2 +1,5 @@
/*! This file is auto-generated */
+(function() {
var wp;(wp||={}).baseStyles=(()=>{})();
+(window.wp ||= {}).baseStyles = wp.baseStyles;
+})();
diff --git a/wp-includes/js/dist/blob.js b/wp-includes/js/dist/blob.js
index 77487adf25..00840e7a5a 100644
--- a/wp-includes/js/dist/blob.js
+++ b/wp-includes/js/dist/blob.js
@@ -1,3 +1,4 @@
+(function() {
"use strict";
var wp;
(wp ||= {}).blob = (() => {
@@ -70,3 +71,5 @@ var wp;
}
return __toCommonJS(index_exports);
})();
+(window.wp ||= {}).blob = wp.blob;
+})();
diff --git a/wp-includes/js/dist/blob.min.js b/wp-includes/js/dist/blob.min.js
index e1bf7fc487..8e07471d72 100644
--- a/wp-includes/js/dist/blob.min.js
+++ b/wp-includes/js/dist/blob.min.js
@@ -1,2 +1,5 @@
/*! This file is auto-generated */
+(function() {
"use strict";var wp;(wp||={}).blob=(()=>{var i=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var w=Object.prototype.hasOwnProperty;var L=(e,n)=>{for(var t in n)i(e,t,{get:n[t],enumerable:!0})},R=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of u(n))!w.call(e,o)&&o!==t&&i(e,o,{get:()=>n[o],enumerable:!(r=b(n,o))||r.enumerable});return e};var U=e=>R(i({},"__esModule",{value:!0}),e);var p={};L(p,{createBlobURL:()=>a,downloadBlob:()=>B,getBlobByURL:()=>l,getBlobTypeByURL:()=>f,isBlobURL:()=>y,revokeBlobURL:()=>s});var d={};function a(e){let n=window.URL.createObjectURL(e);return d[n]=e,n}function l(e){return d[e]}function f(e){return l(e)?.type.split("/")[0]}function s(e){d[e]&&window.URL.revokeObjectURL(e),delete d[e]}function y(e){return!e||!e.indexOf?!1:e.indexOf("blob:")===0}function B(e,n,t=""){if(!e||!n)return;let r=new window.Blob([n],{type:t}),o=window.URL.createObjectURL(r),c=document.createElement("a");c.href=o,c.download=e,c.style.display="none",document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(o)}return U(p);})();
+(window.wp ||= {}).blob = wp.blob;
+})();
diff --git a/wp-includes/js/dist/block-directory.js b/wp-includes/js/dist/block-directory.js
index d96b2ad816..4ec62b6fdc 100644
--- a/wp-includes/js/dist/block-directory.js
+++ b/wp-includes/js/dist/block-directory.js
@@ -1,3 +1,4 @@
+(function() {
var wp;
(wp ||= {}).blockDirectory = (() => {
var __create = Object.create;
@@ -166,7 +167,7 @@ var wp;
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
}
function useSyncExternalStore$2(subscribe, getSnapshot) {
- didWarnOld18Alpha || void 0 === React47.startTransition || (didWarnOld18Alpha = true, console.error(
+ didWarnOld18Alpha || void 0 === React48.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 = getSnapshot();
@@ -214,8 +215,8 @@ var wp;
return getSnapshot();
}
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
- var React47 = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is, useState13 = React47.useState, useEffect13 = React47.useEffect, useLayoutEffect3 = React47.useLayoutEffect, useDebugValue2 = React47.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 !== React47.useSyncExternalStore ? React47.useSyncExternalStore : shim;
+ var React48 = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is, useState13 = React48.useState, useEffect13 = React48.useEffect, useLayoutEffect3 = React48.useLayoutEffect, useDebugValue2 = React48.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 !== React48.useSyncExternalStore ? React48.useSyncExternalStore : shim;
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
})();
}
@@ -242,14 +243,14 @@ var wp;
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
}
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
- var React47 = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore2 = shim.useSyncExternalStore, useRef19 = React47.useRef, useEffect13 = React47.useEffect, useMemo15 = React47.useMemo, useDebugValue2 = React47.useDebugValue;
+ var React48 = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore2 = shim.useSyncExternalStore, useRef19 = React48.useRef, useEffect13 = React48.useEffect, useMemo16 = React48.useMemo, useDebugValue2 = React48.useDebugValue;
exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
var instRef = useRef19(null);
if (null === instRef.current) {
var inst = { hasValue: false, value: null };
instRef.current = inst;
} else inst = instRef.current;
- instRef = useMemo15(
+ instRef = useMemo16(
function() {
function memoizedSelector(nextSnapshot) {
if (!hasMemo) {
@@ -902,14 +903,14 @@ var wp;
var import_element20 = __toESM(require_element(), 1);
// packages/block-directory/build-module/components/downloadable-blocks-panel/index.mjs
- var import_i18n8 = __toESM(require_i18n(), 1);
+ var import_i18n9 = __toESM(require_i18n(), 1);
var import_components4 = __toESM(require_components(), 1);
var import_core_data = __toESM(require_core_data(), 1);
var import_data8 = __toESM(require_data(), 1);
var import_blocks5 = __toESM(require_blocks(), 1);
// packages/block-directory/build-module/components/downloadable-blocks-list/index.mjs
- var import_i18n5 = __toESM(require_i18n(), 1);
+ var import_i18n6 = __toESM(require_i18n(), 1);
var import_components2 = __toESM(require_components(), 1);
var import_blocks4 = __toESM(require_blocks(), 1);
var import_data7 = __toESM(require_data(), 1);
@@ -931,7 +932,7 @@ var wp;
var clsx_default = clsx;
// packages/block-directory/build-module/components/downloadable-block-list-item/index.mjs
- var import_i18n4 = __toESM(require_i18n(), 1);
+ var import_i18n5 = __toESM(require_i18n(), 1);
var import_components = __toESM(require_components(), 1);
var import_element18 = __toESM(require_element(), 1);
var import_html_entities = __toESM(require_html_entities(), 1);
@@ -1892,7 +1893,7 @@ var wp;
function getNearestOverflowAncestor(node) {
const parentNode = getParentNode(node);
if (isLastTraversableNode(parentNode)) {
- return node.ownerDocument ? node.ownerDocument.body : node.body;
+ return (node.ownerDocument || node).body;
}
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
return parentNode;
@@ -2639,12 +2640,12 @@ var wp;
return oppositeSideMap[side] + placement.slice(side.length);
}
function expandPaddingObject(padding) {
+ var _padding$top, _padding$right, _padding$bottom, _padding$left;
return {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0,
- ...padding
+ top: (_padding$top = padding.top) != null ? _padding$top : 0,
+ right: (_padding$right = padding.right) != null ? _padding$right : 0,
+ bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
+ left: (_padding$left = padding.left) != null ? _padding$left : 0
};
}
function getPaddingObject(padding) {
@@ -3451,8 +3452,8 @@ var wp;
const isScrollableY = lastTraversableNode || scrollRe.test(style.overflowY);
const canScrollX = isScrollableX && target.clientWidth > 0 && target.scrollWidth > target.clientWidth;
const canScrollY = isScrollableY && target.clientHeight > 0 && target.scrollHeight > target.clientHeight;
- const isRTL2 = style.direction === "rtl";
- const pressedVerticalScrollbar = canScrollY && (isRTL2 ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);
+ const isRTL3 = style.direction === "rtl";
+ const pressedVerticalScrollbar = canScrollY && (isRTL3 ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);
const pressedHorizontalScrollbar = canScrollX && event.offsetY > target.clientHeight;
if (pressedVerticalScrollbar || pressedHorizontalScrollbar) {
return;
@@ -3689,13 +3690,9 @@ var wp;
y: reference.y
};
}
- switch (getAlignment(placement)) {
- case "start":
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
- break;
- case "end":
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
- break;
+ const alignment = getAlignment(placement);
+ if (alignment) {
+ coords[alignmentAxis] += commonAlign * (alignment === "end" ? 1 : -1) * (rtl && isVertical ? -1 : 1);
}
return coords;
}
@@ -3735,10 +3732,7 @@ var wp;
height: rects.floating.height
} : rects.reference;
const offsetParent = await (platform3.getOffsetParent == null ? void 0 : platform3.getOffsetParent(elements.floating));
- const offsetScale = await (platform3.isElement == null ? void 0 : platform3.isElement(offsetParent)) ? await (platform3.getScale == null ? void 0 : platform3.getScale(offsetParent)) || {
- x: 1,
- y: 1
- } : {
+ const offsetScale = await (platform3.isElement == null ? void 0 : platform3.isElement(offsetParent)) && await (platform3.getScale == null ? void 0 : platform3.getScale(offsetParent)) || {
x: 1,
y: 1
};
@@ -4117,23 +4111,16 @@ var wp;
y
};
const overflow = await platform3.detectOverflow(state, detectOverflowOptions);
- const crossAxis = getSideAxis(getSide(placement));
+ const crossAxis = getSideAxis(placement);
const mainAxis = getOppositeAxis(crossAxis);
let mainAxisCoord = coords[mainAxis];
let crossAxisCoord = coords[crossAxis];
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === "y" ? "top" : "left"], coord, coord - overflow[axis === "y" ? "bottom" : "right"]);
if (checkMainAxis) {
- const minSide = mainAxis === "y" ? "top" : "left";
- const maxSide = mainAxis === "y" ? "bottom" : "right";
- const min2 = mainAxisCoord + overflow[minSide];
- const max2 = mainAxisCoord - overflow[maxSide];
- mainAxisCoord = clamp(min2, mainAxisCoord, max2);
+ mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
}
if (checkCrossAxis) {
- const minSide = crossAxis === "y" ? "top" : "left";
- const maxSide = crossAxis === "y" ? "bottom" : "right";
- const min2 = crossAxisCoord + overflow[minSide];
- const max2 = crossAxisCoord - overflow[maxSide];
- crossAxisCoord = clamp(min2, crossAxisCoord, max2);
+ crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
}
const limitedCoords = limiter.fn({
...state,
@@ -4161,6 +4148,7 @@ var wp;
return {
options,
fn(state) {
+ var _rawOffset$mainAxis, _rawOffset$crossAxis;
const {
x,
y,
@@ -4186,9 +4174,8 @@ var wp;
mainAxis: rawOffset,
crossAxis: 0
} : {
- mainAxis: 0,
- crossAxis: 0,
- ...rawOffset
+ mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
+ crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
};
if (checkMainAxis) {
const len = mainAxis === "y" ? "height" : "width";
@@ -4227,7 +4214,6 @@ var wp;
name: "size",
options,
async fn(state) {
- var _state$middlewareData, _state$middlewareData2;
const {
placement,
rects,
@@ -4260,24 +4246,21 @@ var wp;
const maximumClippingWidth = width - overflow.left - overflow.right;
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
- const noShift = !state.middlewareData.shift;
+ const shiftData = state.middlewareData.shift;
+ const noShift = !shiftData;
let availableHeight = overflowAvailableHeight;
let availableWidth = overflowAvailableWidth;
- if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
+ if (shiftData != null && shiftData.enabled.x) {
availableWidth = maximumClippingWidth;
}
- if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
+ if (shiftData != null && shiftData.enabled.y) {
availableHeight = maximumClippingHeight;
}
if (noShift && !alignment) {
- const xMin = max(overflow.left, 0);
- const xMax = max(overflow.right, 0);
- const yMin = max(overflow.top, 0);
- const yMax = max(overflow.bottom, 0);
if (isYAxis) {
- availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
+ availableWidth = width - 2 * max(overflow.left, overflow.right);
} else {
- availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
+ availableHeight = height - 2 * max(overflow.top, overflow.bottom);
}
}
await apply({
@@ -4359,10 +4342,7 @@ var wp;
if (isFixed === void 0) {
isFixed = false;
}
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
- return false;
- }
- return isFixed;
+ return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
}
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
if (includeScale === void 0) {
@@ -4388,12 +4368,12 @@ var wp;
let y = (clientRect.top + visualOffsets.y) / scale.y;
let width = clientRect.width / scale.x;
let height = clientRect.height / scale.y;
- if (domElement) {
+ if (domElement && offsetParent) {
const win = getWindow(domElement);
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
+ const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
let currentWin = win;
let currentIFrame = getFrameElement(currentWin);
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
+ while (currentIFrame && offsetWin !== currentWin) {
const iframeScale = getScale(currentIFrame);
const iframeRect = currentIFrame.getBoundingClientRect();
const css = getComputedStyle2(currentIFrame);
@@ -4452,7 +4432,7 @@ var wp;
let scale = createCoords(1);
const offsets = createCoords(0);
const isOffsetParentAnElement = isHTMLElement(offsetParent);
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (isOffsetParentAnElement || !isFixed) {
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
scroll = getNodeScroll(offsetParent);
}
@@ -4472,15 +4452,14 @@ var wp;
};
}
function getClientRects(element) {
- return Array.from(element.getClientRects());
+ return element.getClientRects ? Array.from(element.getClientRects()) : [];
}
- function getDocumentRect(element) {
- const html = getDocumentElement(element);
- const scroll = getNodeScroll(element);
- const body = element.ownerDocument.body;
+ function getDocumentRect(html) {
+ const scroll = getNodeScroll(html);
+ const body = html.ownerDocument.body;
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
+ let x = -scroll.scrollLeft + getWindowScrollBarX(html);
const y = -scroll.scrollTop;
if (getComputedStyle2(body).direction === "rtl") {
x += max(html.clientWidth, body.clientWidth) - width;
@@ -4493,7 +4472,11 @@ var wp;
};
}
var SCROLLBAR_MAX = 25;
- function getViewportRect(element, strategy) {
+ function getViewportRect(element, strategy, rootBoundary) {
+ if (rootBoundary === void 0) {
+ rootBoundary = "viewport";
+ }
+ const isLayoutViewport = rootBoundary === "layoutViewport";
const win = getWindow(element);
const html = getDocumentElement(element);
const visualViewport = win.visualViewport;
@@ -4502,12 +4485,19 @@ var wp;
let x = 0;
let y = 0;
if (visualViewport) {
- width = visualViewport.width;
- height = visualViewport.height;
- const visualViewportBased = isWebKit();
- if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
- x = visualViewport.offsetLeft;
- y = visualViewport.offsetTop;
+ const layoutRelativeClientCoords = !isWebKit() || strategy === "fixed";
+ if (isLayoutViewport) {
+ if (!layoutRelativeClientCoords) {
+ x = -visualViewport.offsetLeft;
+ y = -visualViewport.offsetTop;
+ }
+ } else {
+ width = visualViewport.width;
+ height = visualViewport.height;
+ if (layoutRelativeClientCoords) {
+ x = visualViewport.offsetLeft;
+ y = visualViewport.offsetTop;
+ }
}
}
const windowScrollbarX = getWindowScrollBarX(html);
@@ -4516,12 +4506,11 @@ var wp;
const body = doc.body;
const bodyStyles = getComputedStyle(body);
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
- const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
- if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
- width -= clippingStableScrollbarWidth;
+ const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
+ const gutter = getComputedStyle(html).scrollbarGutter === "stable both-edges" ? reservedWidth / 2 : reservedWidth;
+ if (gutter <= SCROLLBAR_MAX) {
+ width -= gutter;
}
- } else if (windowScrollbarX <= SCROLLBAR_MAX) {
- width += windowScrollbarX;
}
return {
width,
@@ -4534,7 +4523,7 @@ var wp;
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
const top = clientRect.top + element.clientTop;
const left = clientRect.left + element.clientLeft;
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
+ const scale = getScale(element);
const width = element.clientWidth * scale.x;
const height = element.clientHeight * scale.y;
const x = left * scale.x;
@@ -4548,8 +4537,8 @@ var wp;
}
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
let rect;
- if (clippingAncestor === "viewport") {
- rect = getViewportRect(element, strategy);
+ if (clippingAncestor === "viewport" || clippingAncestor === "layoutViewport") {
+ rect = getViewportRect(element, strategy, clippingAncestor);
} else if (clippingAncestor === "document") {
rect = getDocumentRect(getDocumentElement(element));
} else if (isElement(clippingAncestor)) {
@@ -4565,33 +4554,24 @@ var wp;
}
return rectToClientRect(rect);
}
- function hasFixedPositionAncestor(element, stopNode) {
- const parentNode = getParentNode(element);
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
- return false;
- }
- return getComputedStyle2(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
- }
function getClippingElementAncestors(element, cache) {
const cachedResult = cache.get(element);
if (cachedResult) {
return cachedResult;
}
let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
- let currentContainingBlockComputedStyle = null;
+ let lastKeptComputedStyle = null;
const elementIsFixed = getComputedStyle2(element).position === "fixed";
let currentNode = elementIsFixed ? getParentNode(element) : element;
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
const computedStyle = getComputedStyle2(currentNode);
const currentNodeIsContaining = isContainingBlock(currentNode);
- if (!currentNodeIsContaining && computedStyle.position === "fixed") {
- currentContainingBlockComputedStyle = null;
- }
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
+ const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? "fixed" : "";
+ const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === "fixed" || lastPosition === "absolute" && computedStyle.position === "static");
if (shouldDropCurrentNode) {
result = result.filter((ancestor) => ancestor !== currentNode);
} else {
- currentContainingBlockComputedStyle = computedStyle;
+ lastKeptComputedStyle = computedStyle;
}
currentNode = getParentNode(currentNode);
}
@@ -4646,10 +4626,7 @@ var wp;
scrollTop: 0
};
const offsets = createCoords(0);
- function setLeftRTLScrollbarOffset() {
- offsets.x = getWindowScrollBarX(documentElement);
- }
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (isOffsetParentAnElement || !isFixed) {
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
scroll = getNodeScroll(offsetParent);
}
@@ -4657,12 +4634,10 @@ var wp;
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
offsets.x = offsetRect.x + offsetParent.clientLeft;
offsets.y = offsetRect.y + offsetParent.clientTop;
- } else if (documentElement) {
- setLeftRTLScrollbarOffset();
}
}
- if (isFixed && !isOffsetParentAnElement && documentElement) {
- setLeftRTLScrollbarOffset();
+ if (!isOffsetParentAnElement && documentElement) {
+ offsets.x = getWindowScrollBarX(documentElement);
}
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
@@ -4746,7 +4721,7 @@ var wp;
function rectsAreEqual(a, b) {
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
}
- function observeMove(element, onMove) {
+ function observeMove(element, onMove, ancestorResize) {
let io = null;
let timeoutId;
const root = getDocumentElement(element);
@@ -4789,6 +4764,9 @@ var wp;
let isFirstUpdate = true;
function handleObserve(entries) {
const ratio = entries[0].intersectionRatio;
+ if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
+ return refresh();
+ }
if (ratio !== threshold) {
if (!isFirstUpdate) {
return refresh();
@@ -4801,9 +4779,6 @@ var wp;
refresh(false, ratio);
}
}
- if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
- refresh();
- }
isFirstUpdate = false;
}
try {
@@ -4817,8 +4792,14 @@ var wp;
}
io.observe(element);
}
+ const win = getWindow(element);
+ const handleResize = () => refresh(ancestorResize);
+ win.addEventListener("resize", handleResize);
refresh(true);
- return cleanup;
+ return () => {
+ win.removeEventListener("resize", handleResize);
+ cleanup();
+ };
}
function autoUpdate(reference, floating, update2, options) {
if (options === void 0) {
@@ -4834,12 +4815,10 @@ var wp;
const referenceEl = unwrapElement(reference);
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
ancestors.forEach((ancestor) => {
- ancestorScroll && ancestor.addEventListener("scroll", update2, {
- passive: true
- });
+ ancestorScroll && ancestor.addEventListener("scroll", update2);
ancestorResize && ancestor.addEventListener("resize", update2);
});
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2) : null;
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2, ancestorResize) : null;
let reobserveFrame = -1;
let resizeObserver = null;
if (elementResize) {
@@ -4898,11 +4877,9 @@ var wp;
var limitShift2 = limitShift;
var computePosition2 = (reference, floating, options) => {
const cache = /* @__PURE__ */ new Map();
- const mergedOptions = {
- platform: platform2,
- ...options
- };
+ const mergedOptions = options != null ? options : {};
const platformWithCache = {
+ ...platform2,
...mergedOptions.platform,
_c: cache
};
@@ -7833,7 +7810,7 @@ var wp;
}
// node_modules/@base-ui/react/utils/usePopupViewport.mjs
- var React32 = __toESM(require_react(), 1);
+ var React33 = __toESM(require_react(), 1);
var ReactDOM6 = __toESM(require_react_dom(), 1);
// node_modules/@base-ui/utils/usePreviousValue.mjs
@@ -8004,8 +7981,25 @@ var wp;
positionerElement.style.setProperty("--positioner-height", height);
}
- // node_modules/@base-ui/react/utils/usePopupViewport.mjs
+ // node_modules/@base-ui/react/direction-provider/DirectionProvider.mjs
+ var React32 = __toESM(require_react(), 1);
var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
+ var DirectionProvider = function DirectionProvider2(props) {
+ const {
+ direction = "ltr"
+ } = props;
+ const contextValue = React32.useMemo(() => ({
+ direction
+ }), [direction]);
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DirectionContext.Provider, {
+ value: contextValue,
+ children: props.children
+ });
+ };
+ if (true) DirectionProvider.displayName = "DirectionProvider";
+
+ // node_modules/@base-ui/react/utils/usePopupViewport.mjs
+ var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
function usePopupViewport(parameters) {
const {
store: store2,
@@ -8023,15 +8017,15 @@ var wp;
const positionerElement = store2.useState("positionerElement");
const previousActiveTrigger = usePreviousValue(open ? activeTrigger : null);
const currentContentKey = usePopupContentKey(activeTriggerId, payload);
- const capturedNodeRef = React32.useRef(null);
- const [previousContentNode, setPreviousContentNode] = React32.useState(null);
- const [newTriggerOffset, setNewTriggerOffset] = React32.useState(null);
- const currentContainerRef = React32.useRef(null);
- const previousContainerRef = React32.useRef(null);
+ const capturedNodeRef = React33.useRef(null);
+ const [previousContentNode, setPreviousContentNode] = React33.useState(null);
+ const [newTriggerOffset, setNewTriggerOffset] = React33.useState(null);
+ const currentContainerRef = React33.useRef(null);
+ const previousContainerRef = React33.useRef(null);
const onAnimationsFinished = useAnimationsFinished(currentContainerRef, true, false);
const cleanupFrame = useAnimationFrame();
- const [previousContentDimensions, setPreviousContentDimensions] = React32.useState(null);
- const [showStartingStyleAttribute, setShowStartingStyleAttribute] = React32.useState(false);
+ const [previousContentDimensions, setPreviousContentDimensions] = React33.useState(null);
+ const [showStartingStyleAttribute, setShowStartingStyleAttribute] = React33.useState(false);
useIsoLayoutEffect(() => {
store2.set("hasViewport", true);
return () => {
@@ -8051,7 +8045,7 @@ var wp;
setPreviousContentDimensions(previousDimensions);
}
});
- const lastHandledTriggerRef = React32.useRef(null);
+ const lastHandledTriggerRef = React33.useRef(null);
useIsoLayoutEffect(() => {
if (!open || !mounted) {
lastHandledTriggerRef.current = null;
@@ -8090,14 +8084,14 @@ var wp;
const isTransitioning = previousContentNode != null;
let childrenToRender;
if (!isTransitioning) {
- childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
+ childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
"data-current": true,
ref: currentContainerRef,
children
}, currentContentKey);
} else {
- childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(React32.Fragment, {
- children: [/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
+ childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(React33.Fragment, {
+ children: [/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
"data-previous": true,
inert: inertValue(true),
ref: previousContainerRef,
@@ -8109,7 +8103,7 @@ var wp;
position: "absolute"
},
"data-ending-style": showStartingStyleAttribute ? void 0 : ""
- }, "previous"), /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
+ }, "previous"), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
"data-current": true,
ref: currentContainerRef,
"data-starting-style": showStartingStyleAttribute ? "" : void 0,
@@ -8175,10 +8169,10 @@ var wp;
};
}
function usePopupContentKey(activeTriggerId, payload) {
- const [contentKey, setContentKey] = React32.useState(0);
- const previousActiveTriggerIdRef = React32.useRef(activeTriggerId);
- const previousPayloadRef = React32.useRef(payload);
- const pendingPayloadUpdateRef = React32.useRef(false);
+ const [contentKey, setContentKey] = React33.useState(0);
+ const previousActiveTriggerIdRef = React33.useRef(activeTriggerId);
+ const previousPayloadRef = React33.useRef(payload);
+ const pendingPayloadUpdateRef = React33.useRef(false);
useIsoLayoutEffect(() => {
const previousActiveTriggerId = previousActiveTriggerIdRef.current;
const previousPayload = previousPayloadRef.current;
@@ -8198,10 +8192,10 @@ var wp;
}
// node_modules/@base-ui/react/utils/FloatingPortalLite.mjs
- var React33 = __toESM(require_react(), 1);
+ var React34 = __toESM(require_react(), 1);
var ReactDOM7 = __toESM(require_react_dom(), 1);
- var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
- var FloatingPortalLite = /* @__PURE__ */ React33.forwardRef(function FloatingPortalLite2(componentProps, forwardedRef) {
+ var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
+ var FloatingPortalLite = /* @__PURE__ */ React34.forwardRef(function FloatingPortalLite2(componentProps, forwardedRef) {
const {
children,
container,
@@ -8222,7 +8216,7 @@ var wp;
if (!portalSubtree && !portalNode) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(React33.Fragment, {
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(React34.Fragment, {
children: [portalSubtree, portalNode && /* @__PURE__ */ ReactDOM7.createPortal(children, portalNode)]
});
});
@@ -8244,14 +8238,14 @@ var wp;
});
// node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs
- var React36 = __toESM(require_react(), 1);
+ var React37 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/root/TooltipRootContext.mjs
- var React34 = __toESM(require_react(), 1);
- var TooltipRootContext = /* @__PURE__ */ React34.createContext(void 0);
+ var React35 = __toESM(require_react(), 1);
+ var TooltipRootContext = /* @__PURE__ */ React35.createContext(void 0);
if (true) TooltipRootContext.displayName = "TooltipRootContext";
function useTooltipRootContext(optional) {
- const context = React34.useContext(TooltipRootContext);
+ const context = React35.useContext(TooltipRootContext);
if (context === void 0 && !optional) {
throw new Error(true ? "Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>." : formatErrorMessage_default(72));
}
@@ -8259,7 +8253,7 @@ var wp;
}
// node_modules/@base-ui/react/tooltip/store/TooltipStore.mjs
- var React35 = __toESM(require_react(), 1);
+ var React36 = __toESM(require_react(), 1);
var selectors2 = {
...popupStoreSelectors,
disabled: createSelector2((state) => state.disabled),
@@ -8281,7 +8275,7 @@ var wp;
};
state.floatingRootContext = createPopupFloatingRootContext(triggerElements, floatingId, nested);
super(state, {
- popupRef: /* @__PURE__ */ React35.createRef(),
+ popupRef: /* @__PURE__ */ React36.createRef(),
onOpenChange: void 0,
onOpenChangeComplete: void 0,
triggerElements
@@ -8319,7 +8313,7 @@ var wp;
}
// node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs
- var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
var TooltipRoot = fastComponent(function TooltipRoot2(props) {
const {
disabled: disabled2 = false,
@@ -8366,7 +8360,7 @@ var wp;
const isInstantPhase = store2.useState("isInstantPhase");
const instantType = store2.useState("instantType");
const lastOpenChangeReason = store2.useState("lastOpenChangeReason");
- const previousInstantTypeRef = React36.useRef(null);
+ const previousInstantTypeRef = React37.useRef(null);
useIsoLayoutEffect(() => {
if (openState && disabled2) {
store2.setOpen(false, createChangeEventDetails(reason_parts_exports.disabled));
@@ -8390,17 +8384,17 @@ var wp;
}
}
}, [store2, activeTriggerId, open]);
- const handleImperativeClose = React36.useCallback(() => {
+ const handleImperativeClose = React37.useCallback(() => {
store2.setOpen(false, createChangeEventDetails(reason_parts_exports.imperativeAction));
}, [store2]);
- React36.useImperativeHandle(actionsRef, () => ({
+ React37.useImperativeHandle(actionsRef, () => ({
unmount: forceUnmount,
close: handleImperativeClose
}), [forceUnmount, handleImperativeClose]);
const shouldRenderInteractions = open || mounted || !disabled2 && trackCursorAxis !== "none";
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(TooltipRootContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(TooltipRootContext.Provider, {
value: store2,
- children: [shouldRenderInteractions && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TooltipInteractions, {
+ children: [shouldRenderInteractions && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipInteractions, {
store: store2,
disabled: disabled2,
trackCursorAxis
@@ -8424,9 +8418,9 @@ var wp;
enabled: !disabled2 && trackCursorAxis !== "none",
axis: trackCursorAxis === "none" ? void 0 : trackCursorAxis
});
- const activeTriggerProps = React36.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);
- const inactiveTriggerProps = React36.useMemo(() => mergeProps(clientPoint.trigger, dismiss.trigger), [clientPoint.trigger, dismiss.trigger]);
- const popupProps = React36.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, clientPoint.floating, dismiss.floating), [clientPoint.floating, dismiss.floating]);
+ const activeTriggerProps = React37.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);
+ const inactiveTriggerProps = React37.useMemo(() => mergeProps(clientPoint.trigger, dismiss.trigger), [clientPoint.trigger, dismiss.trigger]);
+ const popupProps = React37.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, clientPoint.floating, dismiss.floating), [clientPoint.floating, dismiss.floating]);
usePopupInteractionProps(store2, {
activeTriggerProps,
inactiveTriggerProps,
@@ -8436,14 +8430,14 @@ var wp;
}
// node_modules/@base-ui/react/tooltip/trigger/TooltipTrigger.mjs
- var React38 = __toESM(require_react(), 1);
+ var React39 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/provider/TooltipProviderContext.mjs
- var React37 = __toESM(require_react(), 1);
- var TooltipProviderContext = /* @__PURE__ */ React37.createContext(void 0);
+ var React38 = __toESM(require_react(), 1);
+ var TooltipProviderContext = /* @__PURE__ */ React38.createContext(void 0);
if (true) TooltipProviderContext.displayName = "TooltipProviderContext";
function useTooltipProviderContext() {
- return React37.useContext(TooltipProviderContext);
+ return React38.useContext(TooltipProviderContext);
}
// node_modules/@base-ui/react/tooltip/trigger/TooltipTriggerDataAttributes.mjs
@@ -8513,7 +8507,7 @@ var wp;
const isTriggerActive = store2.useState("isTriggerActive", thisTriggerId);
const isOpenedByThisTrigger = store2.useState("isOpenedByTrigger", thisTriggerId);
const floatingRootContext = store2.useState("floatingRootContext");
- const triggerElementRef = React38.useRef(null);
+ const triggerElementRef = React39.useRef(null);
const delayWithDefault = delay ?? OPEN_DELAY;
const closeDelayWithDefault = closeDelay ?? 0;
const {
@@ -8539,9 +8533,9 @@ var wp;
const disabledRef = useValueAsRef(disabled2);
const trackCursorAxis = store2.useState("trackCursorAxis");
const disableHoverablePopup = store2.useState("disableHoverablePopup");
- const isNestedTriggerHoveredRef = React38.useRef(false);
+ const isNestedTriggerHoveredRef = React39.useRef(false);
const nestedTriggerOpenTimeout = useTimeout();
- const pointerTypeRef = React38.useRef(void 0);
+ const pointerTypeRef = React39.useRef(void 0);
function getOpenDelay() {
const providerDelay = providerContext?.delay;
const groupOpenValue = typeof delayRef.current === "object" ? delayRef.current.open : void 0;
@@ -8674,14 +8668,14 @@ var wp;
if (true) TooltipTrigger.displayName = "TooltipTrigger";
// node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
- var React40 = __toESM(require_react(), 1);
+ var React41 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/portal/TooltipPortalContext.mjs
- var React39 = __toESM(require_react(), 1);
- var TooltipPortalContext = /* @__PURE__ */ React39.createContext(void 0);
+ var React40 = __toESM(require_react(), 1);
+ var TooltipPortalContext = /* @__PURE__ */ React40.createContext(void 0);
if (true) TooltipPortalContext.displayName = "TooltipPortalContext";
function useTooltipPortalContext() {
- const value = React39.useContext(TooltipPortalContext);
+ const value = React40.useContext(TooltipPortalContext);
if (value === void 0) {
throw new Error(true ? "Base UI: <Tooltip.Portal> is missing." : formatErrorMessage_default(70));
}
@@ -8689,8 +8683,8 @@ var wp;
}
// node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
- var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
- var TooltipPortal = /* @__PURE__ */ React40.forwardRef(function TooltipPortal2(props, forwardedRef) {
+ var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
+ var TooltipPortal = /* @__PURE__ */ React41.forwardRef(function TooltipPortal2(props, forwardedRef) {
const {
keepMounted = false,
...portalProps
@@ -8701,9 +8695,9 @@ var wp;
if (!shouldRender) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipPortalContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TooltipPortalContext.Provider, {
value: keepMounted,
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FloatingPortalLite, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(FloatingPortalLite, {
ref: forwardedRef,
...portalProps
})
@@ -8712,14 +8706,14 @@ var wp;
if (true) TooltipPortal.displayName = "TooltipPortal";
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
- var React42 = __toESM(require_react(), 1);
+ var React43 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositionerContext.mjs
- var React41 = __toESM(require_react(), 1);
- var TooltipPositionerContext = /* @__PURE__ */ React41.createContext(void 0);
+ var React42 = __toESM(require_react(), 1);
+ var TooltipPositionerContext = /* @__PURE__ */ React42.createContext(void 0);
if (true) TooltipPositionerContext.displayName = "TooltipPositionerContext";
function useTooltipPositionerContext() {
- const context = React41.useContext(TooltipPositionerContext);
+ const context = React42.useContext(TooltipPositionerContext);
if (context === void 0) {
throw new Error(true ? "Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>." : formatErrorMessage_default(71));
}
@@ -8727,8 +8721,8 @@ var wp;
}
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
- var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
- var TooltipPositioner = /* @__PURE__ */ React42.forwardRef(function TooltipPositioner2(componentProps, forwardedRef) {
+ var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
+ var TooltipPositioner = /* @__PURE__ */ React43.forwardRef(function TooltipPositioner2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8775,7 +8769,7 @@ var wp;
collisionAvoidance,
adaptiveOrigin: hasViewport ? adaptiveOrigin : void 0
});
- const state = React42.useMemo(() => ({
+ const state = React43.useMemo(() => ({
open,
side: positioning.side,
align: positioning.align,
@@ -8790,7 +8784,7 @@ var wp;
hidden: !mounted,
inert: !open || trackCursorAxis === "both" || disableHoverablePopup
});
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TooltipPositionerContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TooltipPositionerContext.Provider, {
value: positioning,
children: element
});
@@ -8798,12 +8792,12 @@ var wp;
if (true) TooltipPositioner.displayName = "TooltipPositioner";
// node_modules/@base-ui/react/tooltip/popup/TooltipPopup.mjs
- var React43 = __toESM(require_react(), 1);
+ var React44 = __toESM(require_react(), 1);
var stateAttributesMapping = {
...popupStateMapping,
...transitionStatusMapping
};
- var TooltipPopup = /* @__PURE__ */ React43.forwardRef(function TooltipPopup2(componentProps, forwardedRef) {
+ var TooltipPopup = /* @__PURE__ */ React44.forwardRef(function TooltipPopup2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8854,8 +8848,8 @@ var wp;
if (true) TooltipPopup.displayName = "TooltipPopup";
// node_modules/@base-ui/react/tooltip/arrow/TooltipArrow.mjs
- var React44 = __toESM(require_react(), 1);
- var TooltipArrow = /* @__PURE__ */ React44.forwardRef(function TooltipArrow2(componentProps, forwardedRef) {
+ var React45 = __toESM(require_react(), 1);
+ var TooltipArrow = /* @__PURE__ */ React45.forwardRef(function TooltipArrow2(componentProps, forwardedRef) {
const {
render,
className,
@@ -8893,25 +8887,25 @@ var wp;
if (true) TooltipArrow.displayName = "TooltipArrow";
// node_modules/@base-ui/react/tooltip/provider/TooltipProvider.mjs
- var React45 = __toESM(require_react(), 1);
- var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
+ var React46 = __toESM(require_react(), 1);
+ var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
var TooltipProvider = function TooltipProvider2(props) {
const {
delay,
closeDelay,
timeout = 400
} = props;
- const contextValue = React45.useMemo(() => ({
+ const contextValue = React46.useMemo(() => ({
delay,
closeDelay
}), [delay, closeDelay]);
- const delayValue = React45.useMemo(() => ({
+ const delayValue = React46.useMemo(() => ({
open: delay,
close: closeDelay
}), [delay, closeDelay]);
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TooltipProviderContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TooltipProviderContext.Provider, {
value: contextValue,
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FloatingDelayGroup, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(FloatingDelayGroup, {
delay: delayValue,
timeoutMs: timeout,
children: props.children
@@ -8921,7 +8915,7 @@ var wp;
if (true) TooltipProvider.displayName = "TooltipProvider";
// node_modules/@base-ui/react/tooltip/viewport/TooltipViewport.mjs
- var React46 = __toESM(require_react(), 1);
+ var React47 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/viewport/TooltipViewportCssVars.mjs
var TooltipViewportCssVars = /* @__PURE__ */ (function(TooltipViewportCssVars2) {
@@ -8936,7 +8930,7 @@ var wp;
"data-activation-direction": value
} : null
};
- var TooltipViewport = /* @__PURE__ */ React46.forwardRef(function TooltipViewport2(componentProps, forwardedRef) {
+ var TooltipViewport = /* @__PURE__ */ React47.forwardRef(function TooltipViewport2(componentProps, forwardedRef) {
const {
render,
className,
@@ -9033,18 +9027,18 @@ var wp;
// packages/icons/build-module/library/star-empty.mjs
var import_primitives = __toESM(require_primitives(), 1);
- var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
- var star_empty_default = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z" }) });
+ var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
+ var star_empty_default = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z" }) });
// packages/icons/build-module/library/star-filled.mjs
var import_primitives2 = __toESM(require_primitives(), 1);
- var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
- var star_filled_default = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives2.Path, { d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z" }) });
+ var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
+ var star_filled_default = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives2.Path, { d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z" }) });
// packages/icons/build-module/library/star-half.mjs
var import_primitives3 = __toESM(require_primitives(), 1);
- var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
- var star_half_default = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives3.Path, { d: "M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z" }) });
+ var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
+ var star_half_default = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_primitives3.Path, { d: "M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z" }) });
// packages/ui/build-module/utils/render-slot-with-children.mjs
var import_element12 = __toESM(require_element(), 1);
@@ -9237,10 +9231,10 @@ var wp;
}
// packages/ui/build-module/tooltip/portal.mjs
- var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
var Portal = (0, import_element13.forwardRef)(
function TooltipPortal3({ container, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
index_parts_exports.Portal,
{
container: container ?? getWpCompatOverlaySlot(),
@@ -9253,7 +9247,7 @@ var wp;
// packages/ui/build-module/tooltip/positioner.mjs
var import_element14 = __toESM(require_element(), 1);
- var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE2 = "data-wp-hash";
function getRuntime2() {
const globalScope = globalThis;
@@ -9344,7 +9338,7 @@ var wp;
var style_default = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
var Positioner = (0, import_element14.forwardRef)(
function TooltipPositioner3({ align = "center", className, side = "top", sideOffset = 4, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
index_parts_exports.Positioner,
{
ref,
@@ -9363,7 +9357,7 @@ var wp;
);
// packages/ui/build-module/tooltip/popup.mjs
- var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE3 = "data-wp-hash";
function getRuntime3() {
const globalScope = globalThis;
@@ -9450,7 +9444,7 @@ var wp;
var style_default2 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
var POPUP_COLOR = { background: "#1e1e1e" };
var Popup = (0, import_element15.forwardRef)(function TooltipPopup3({ portal, positioner, children, className, ...props }, ref) {
- const popupContent = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ThemeProvider, { color: POPUP_COLOR, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
+ const popupContent = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ThemeProvider, { color: POPUP_COLOR, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
index_parts_exports.Popup,
{
ref,
@@ -9461,31 +9455,38 @@ var wp;
) });
const positionedPopup = renderSlotWithChildren(
positioner,
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Positioner, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Positioner, {}),
popupContent
);
- return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Portal, {}), positionedPopup);
+ return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Portal, {}), positionedPopup);
});
// packages/ui/build-module/tooltip/trigger.mjs
var import_element16 = __toESM(require_element(), 1);
- var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
var Trigger = (0, import_element16.forwardRef)(
function TooltipTrigger3(props, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(index_parts_exports.Trigger, { ref, ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(index_parts_exports.Trigger, { ref, ...props });
}
);
+ // packages/ui/build-module/utils/direction-provider.mjs
+ var import_i18n2 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
+ function DirectionProvider3({ children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DirectionProvider, { direction: (0, import_i18n2.isRTL)() ? "rtl" : "ltr", children });
+ }
+
// packages/ui/build-module/tooltip/root.mjs
- var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
function Root(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(index_parts_exports.Root, { ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DirectionProvider3, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(index_parts_exports.Root, { ...props }) });
}
// packages/ui/build-module/tooltip/provider.mjs
- var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
function Provider({ ...props }) {
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(index_parts_exports.Provider, { ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(index_parts_exports.Provider, { ...props });
}
// packages/ui/build-module/visually-hidden/visually-hidden.mjs
@@ -9593,23 +9594,23 @@ var wp;
);
// packages/block-directory/build-module/components/block-ratings/stars.mjs
- var import_i18n2 = __toESM(require_i18n(), 1);
- var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
+ var import_i18n3 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
function Stars({ rating }) {
const stars = Math.round(rating / 0.5) * 0.5;
const fullStarCount = Math.floor(rating);
const halfStarCount = Math.ceil(rating - fullStarCount);
const emptyStarCount = 5 - (fullStarCount + halfStarCount);
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
"span",
{
- "aria-label": (0, import_i18n2.sprintf)(
+ "aria-label": (0, import_i18n3.sprintf)(
/* translators: %s: number of stars. */
- (0, import_i18n2.__)("%s out of 5 stars"),
+ (0, import_i18n3.__)("%s out of 5 stars"),
stars
),
children: [
- Array.from({ length: fullStarCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
+ Array.from({ length: fullStarCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
icon_default,
{
className: "block-directory-block-ratings__star-full",
@@ -9618,7 +9619,7 @@ var wp;
},
`full_stars_${i}`
)),
- Array.from({ length: halfStarCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
+ Array.from({ length: halfStarCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
icon_default,
{
className: "block-directory-block-ratings__star-half-full",
@@ -9627,7 +9628,7 @@ var wp;
},
`half_stars_${i}`
)),
- Array.from({ length: emptyStarCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
+ Array.from({ length: emptyStarCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
icon_default,
{
className: "block-directory-block-ratings__star-empty",
@@ -9643,23 +9644,23 @@ var wp;
var stars_default = Stars;
// packages/block-directory/build-module/components/block-ratings/index.mjs
- var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
- var BlockRatings = ({ rating }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "block-directory-block-ratings", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(stars_default, { rating }) });
+ var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
+ var BlockRatings = ({ rating }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "block-directory-block-ratings", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(stars_default, { rating }) });
var block_ratings_default = BlockRatings;
// packages/block-directory/build-module/components/downloadable-block-icon/index.mjs
var import_block_editor2 = __toESM(require_block_editor(), 1);
- var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
function DownloadableBlockIcon({ icon }) {
const className = "block-directory-downloadable-block-icon";
- return icon.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/) !== null ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("img", { className, src: icon, alt: "" }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_block_editor2.BlockIcon, { className, icon, showColors: true });
+ return icon.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/) !== null ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("img", { className, src: icon, alt: "" }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_block_editor2.BlockIcon, { className, icon, showColors: true });
}
var downloadable_block_icon_default = DownloadableBlockIcon;
// packages/block-directory/build-module/components/downloadable-block-notice/index.mjs
- var import_i18n3 = __toESM(require_i18n(), 1);
+ var import_i18n4 = __toESM(require_i18n(), 1);
var import_data5 = __toESM(require_data(), 1);
- var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
var DownloadableBlockNotice = ({ block }) => {
const errorNotice = (0, import_data5.useSelect)(
(select) => select(store).getErrorNoticeForBlock(block.id),
@@ -9668,32 +9669,48 @@ var wp;
if (!errorNotice) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "block-directory-downloadable-block-notice", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "block-directory-downloadable-block-notice__content", children: [
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "block-directory-downloadable-block-notice", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "block-directory-downloadable-block-notice__content", children: [
errorNotice.message,
- errorNotice.isFatal ? " " + (0, import_i18n3.__)("Try reloading the page.") : null
+ errorNotice.isFatal ? " " + (0, import_i18n4.__)("Try reloading the page.") : null
] }) });
};
var downloadable_block_notice_default = DownloadableBlockNotice;
// packages/block-directory/build-module/components/downloadable-block-list-item/index.mjs
- var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
function getDownloadableBlockLabel({ title, rating, ratingCount }, { hasNotice, isInstalled, isInstalling: isInstalling2 }) {
const stars = Math.round(rating / 0.5) * 0.5;
if (!isInstalled && hasNotice) {
- return (0, import_i18n4.sprintf)("Retry installing %s.", (0, import_html_entities.decodeEntities)(title));
+ return (0, import_i18n5.sprintf)(
+ /* translators: %s: block title */
+ (0, import_i18n5.__)("Retry installing %s."),
+ (0, import_html_entities.decodeEntities)(title)
+ );
}
if (isInstalled) {
- return (0, import_i18n4.sprintf)("Add %s.", (0, import_html_entities.decodeEntities)(title));
+ return (0, import_i18n5.sprintf)(
+ /* translators: %s: block title */
+ (0, import_i18n5.__)("Add %s."),
+ (0, import_html_entities.decodeEntities)(title)
+ );
}
if (isInstalling2) {
- return (0, import_i18n4.sprintf)("Installing %s.", (0, import_html_entities.decodeEntities)(title));
+ return (0, import_i18n5.sprintf)(
+ /* translators: %s: block title */
+ (0, import_i18n5.__)("Installing %s."),
+ (0, import_html_entities.decodeEntities)(title)
+ );
}
if (ratingCount < 1) {
- return (0, import_i18n4.sprintf)("Install %s.", (0, import_html_entities.decodeEntities)(title));
+ return (0, import_i18n5.sprintf)(
+ /* translators: %s: block title */
+ (0, import_i18n5.__)("Install %s."),
+ (0, import_html_entities.decodeEntities)(title)
+ );
}
- return (0, import_i18n4.sprintf)(
+ return (0, import_i18n5.sprintf)(
/* translators: 1: block title, 2: average rating, 3: total ratings count. */
- (0, import_i18n4._n)(
+ (0, import_i18n5._n)(
"Install %1$s. %2$s stars with %3$s review.",
"Install %1$s. %2$s stars with %3$s reviews.",
ratingCount
@@ -9721,20 +9738,20 @@ var wp;
);
let statusText = "";
if (isInstalled) {
- statusText = (0, import_i18n4.__)("Installed!");
+ statusText = (0, import_i18n5.__)("Installed!");
} else if (isInstalling2) {
- statusText = (0, import_i18n4.__)("Installing\u2026");
+ statusText = (0, import_i18n5.__)("Installing\u2026");
}
const itemLabel = getDownloadableBlockLabel(item, {
hasNotice,
isInstalled,
isInstalling: isInstalling2
});
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(tooltip_exports.Root, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(tooltip_exports.Root, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
tooltip_exports.Trigger,
{
- render: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
+ render: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
import_components.Composite.Item,
{
className: clsx_default(
@@ -9751,31 +9768,31 @@ var wp;
type: "button",
role: "option",
children: [
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "block-directory-downloadable-block-list-item__icon", children: [
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "block-directory-downloadable-block-list-item__icon", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
downloadable_block_icon_default,
{
icon,
title
}
),
- isInstalling2 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "block-directory-downloadable-block-list-item__spinner", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_components.Spinner, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(block_ratings_default, { rating })
+ isInstalling2 ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "block-directory-downloadable-block-list-item__spinner", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_components.Spinner, {}) }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(block_ratings_default, { rating })
] }),
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "block-directory-downloadable-block-list-item__details", children: [
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "block-directory-downloadable-block-list-item__title", children: (0, import_element18.createInterpolateElement)(
- (0, import_i18n4.sprintf)(
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "block-directory-downloadable-block-list-item__details", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "block-directory-downloadable-block-list-item__title", children: (0, import_element18.createInterpolateElement)(
+ (0, import_i18n5.sprintf)(
/* translators: 1: block title. 2: author name. */
- (0, import_i18n4.__)("%1$s <span>by %2$s</span>"),
+ (0, import_i18n5.__)("%1$s <span>by %2$s</span>"),
(0, import_html_entities.decodeEntities)(title),
author
),
{
- span: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "block-directory-downloadable-block-list-item__author" })
+ span: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "block-directory-downloadable-block-list-item__author" })
}
) }),
- hasNotice ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(downloadable_block_notice_default, { block: item }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "block-directory-downloadable-block-list-item__desc", children: !!statusText ? statusText : (0, import_html_entities.decodeEntities)(description) }),
- isInstallable && !(isInstalled || isInstalling2) && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(VisuallyHidden, { children: (0, import_i18n4.__)("Install block") })
+ hasNotice ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(downloadable_block_notice_default, { block: item }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "block-directory-downloadable-block-list-item__desc", children: !!statusText ? statusText : (0, import_html_entities.decodeEntities)(description) }),
+ isInstallable && !(isInstalled || isInstalling2) && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(VisuallyHidden, { children: (0, import_i18n5.__)("Install block") })
] })
] })
]
@@ -9783,13 +9800,13 @@ var wp;
)
}
),
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(tooltip_exports.Popup, { children: itemLabel })
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(tooltip_exports.Popup, { children: itemLabel })
] });
}
var downloadable_block_list_item_default = DownloadableBlockListItem;
// packages/block-directory/build-module/components/downloadable-blocks-list/index.mjs
- var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
var noop4 = () => {
};
function DownloadableBlocksList({ items, onHover = noop4, onSelect }) {
@@ -9797,14 +9814,14 @@ var wp;
if (!items.length) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
import_components2.Composite,
{
role: "listbox",
className: "block-directory-downloadable-blocks-list",
- "aria-label": (0, import_i18n5.__)("Blocks available for install"),
+ "aria-label": (0, import_i18n6.__)("Blocks available for install"),
children: items.map((item) => {
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
downloadable_block_list_item_default,
{
onClick: () => {
@@ -9831,10 +9848,10 @@ var wp;
var downloadable_blocks_list_default = DownloadableBlocksList;
// packages/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.mjs
- var import_i18n6 = __toESM(require_i18n(), 1);
+ var import_i18n7 = __toESM(require_i18n(), 1);
var import_element19 = __toESM(require_element(), 1);
var import_a11y = __toESM(require_a11y(), 1);
- var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
function DownloadableBlocksInserterPanel({
children,
downloadableItems,
@@ -9843,9 +9860,9 @@ var wp;
const count = downloadableItems.length;
(0, import_element19.useEffect)(() => {
(0, import_a11y.speak)(
- (0, import_i18n6.sprintf)(
+ (0, import_i18n7.sprintf)(
/* translators: %d: number of available blocks. */
- (0, import_i18n6._n)(
+ (0, import_i18n7._n)(
"%d additional block is available to install.",
"%d additional blocks are available to install.",
count
@@ -9854,13 +9871,13 @@ var wp;
)
);
}, [count]);
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
- !hasLocalBlocks && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "block-directory-downloadable-blocks-panel__no-local", children: (0, import_i18n6.__)("No results available from your installed blocks.") }),
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "block-editor-inserter__quick-inserter-separator" }),
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "block-directory-downloadable-blocks-panel", children: [
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "block-directory-downloadable-blocks-panel__header", children: [
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("h2", { className: "block-directory-downloadable-blocks-panel__title", children: (0, import_i18n6.__)("Available to install") }),
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "block-directory-downloadable-blocks-panel__description", children: (0, import_i18n6.__)(
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
+ !hasLocalBlocks && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "block-directory-downloadable-blocks-panel__no-local", children: (0, import_i18n7.__)("No results available from your installed blocks.") }),
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "block-editor-inserter__quick-inserter-separator" }),
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "block-directory-downloadable-blocks-panel", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "block-directory-downloadable-blocks-panel__header", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("h2", { className: "block-directory-downloadable-blocks-panel__title", children: (0, import_i18n7.__)("Available to install") }),
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "block-directory-downloadable-blocks-panel__description", children: (0, import_i18n7.__)(
"Select a block to install and add it to your post."
) })
] }),
@@ -9871,17 +9888,17 @@ var wp;
var inserter_panel_default = DownloadableBlocksInserterPanel;
// packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.mjs
- var import_i18n7 = __toESM(require_i18n(), 1);
+ var import_i18n8 = __toESM(require_i18n(), 1);
var import_components3 = __toESM(require_components(), 1);
- var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
function DownloadableBlocksNoResults() {
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "block-editor-inserter__no-results", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { children: (0, import_i18n7.__)("No results found.") }) }),
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "block-editor-inserter__tips", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_components3.Tip, { children: [
- (0, import_i18n7.__)("Interested in creating your own block?"),
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("br", {}),
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_components3.ExternalLink, { href: "https://developer.wordpress.org/block-editor/", children: [
- (0, import_i18n7.__)("Get started here"),
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "block-editor-inserter__no-results", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { children: (0, import_i18n8.__)("No results found.") }) }),
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "block-editor-inserter__tips", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_components3.Tip, { children: [
+ (0, import_i18n8.__)("Interested in creating your own block?"),
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("br", {}),
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_components3.ExternalLink, { href: "https://developer.wordpress.org/block-editor/", children: [
+ (0, import_i18n8.__)("Get started here"),
"."
] })
] }) })
@@ -9890,7 +9907,7 @@ var wp;
var no_results_default = DownloadableBlocksNoResults;
// packages/block-directory/build-module/components/downloadable-blocks-panel/index.mjs
- var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
var EMPTY_ARRAY3 = [];
var useDownloadableBlocks = (filterValue) => (0, import_data8.useSelect)(
(select) => {
@@ -9940,31 +9957,31 @@ var wp;
}) {
const { hasPermission, downloadableBlocks: downloadableBlocks2, isLoading } = useDownloadableBlocks(filterValue);
if (hasPermission === void 0 || isLoading || isTyping) {
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
- hasPermission && !hasLocalBlocks && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "block-directory-downloadable-blocks-panel__no-local", children: (0, import_i18n8.__)(
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
+ hasPermission && !hasLocalBlocks && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "block-directory-downloadable-blocks-panel__no-local", children: (0, import_i18n9.__)(
"No results available from your installed blocks."
) }),
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "block-editor-inserter__quick-inserter-separator" })
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "block-editor-inserter__quick-inserter-separator" })
] }),
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "block-directory-downloadable-blocks-panel has-blocks-loading", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_components4.Spinner, {}) })
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "block-directory-downloadable-blocks-panel has-blocks-loading", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components4.Spinner, {}) })
] });
}
if (false === hasPermission) {
if (!hasLocalBlocks) {
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(no_results_default, {});
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(no_results_default, {});
}
return null;
}
if (downloadableBlocks2.length === 0) {
- return hasLocalBlocks ? null : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(no_results_default, {});
+ return hasLocalBlocks ? null : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(no_results_default, {});
}
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
inserter_panel_default,
{
downloadableItems: downloadableBlocks2,
hasLocalBlocks,
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
downloadable_blocks_list_default,
{
items: downloadableBlocks2,
@@ -9977,18 +9994,18 @@ var wp;
}
// packages/block-directory/build-module/plugins/inserter-menu-downloadable-blocks-panel/index.mjs
- var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
function InserterMenuDownloadableBlocksPanel() {
const [debouncedFilterValue, setFilterValue] = (0, import_element20.useState)("");
const debouncedSetFilterValue = (0, import_compose.debounce)(setFilterValue, 400);
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_block_editor3.__unstableInserterMenuExtension, { children: ({ onSelect, onHover, filterValue, hasItems }) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_block_editor3.__unstableInserterMenuExtension, { children: ({ onSelect, onHover, filterValue, hasItems }) => {
if (debouncedFilterValue !== filterValue) {
debouncedSetFilterValue(filterValue);
}
if (!debouncedFilterValue) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
DownloadableBlocksPanel,
{
onSelect,
@@ -10003,24 +10020,24 @@ var wp;
var inserter_menu_downloadable_blocks_panel_default = InserterMenuDownloadableBlocksPanel;
// packages/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/index.mjs
- var import_i18n10 = __toESM(require_i18n(), 1);
+ var import_i18n11 = __toESM(require_i18n(), 1);
var import_data9 = __toESM(require_data(), 1);
var import_editor2 = __toESM(require_editor(), 1);
// packages/block-directory/build-module/components/compact-list/index.mjs
- var import_i18n9 = __toESM(require_i18n(), 1);
- var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
+ var import_i18n10 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime32 = __toESM(require_jsx_runtime(), 1);
function CompactList({ items }) {
if (!items.length) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("ul", { className: "block-directory-compact-list", children: items.map(({ icon, id, title, author }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("li", { className: "block-directory-compact-list__item", children: [
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(downloadable_block_icon_default, { icon, title }),
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "block-directory-compact-list__item-details", children: [
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "block-directory-compact-list__item-title", children: title }),
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "block-directory-compact-list__item-author", children: (0, import_i18n9.sprintf)(
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("ul", { className: "block-directory-compact-list", children: items.map(({ icon, id, title, author }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("li", { className: "block-directory-compact-list__item", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(downloadable_block_icon_default, { icon, title }),
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "block-directory-compact-list__item-details", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "block-directory-compact-list__item-title", children: title }),
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "block-directory-compact-list__item-author", children: (0, import_i18n10.sprintf)(
/* translators: %s: Name of the block author. */
- (0, import_i18n9.__)("By %s"),
+ (0, import_i18n10.__)("By %s"),
author
) })
] })
@@ -10028,7 +10045,7 @@ var wp;
}
// packages/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/index.mjs
- var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1);
function InstalledBlocksPrePublishPanel() {
const newBlockTypes = (0, import_data9.useSelect)(
(select) => select(store).getNewBlockTypes(),
@@ -10037,12 +10054,12 @@ var wp;
if (!newBlockTypes.length) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
import_editor2.PluginPrePublishPanel,
{
- title: (0, import_i18n10.sprintf)(
+ title: (0, import_i18n11.sprintf)(
// translators: %d: number of blocks (number).
- (0, import_i18n10._n)(
+ (0, import_i18n11._n)(
"Added: %d block",
"Added: %d blocks",
newBlockTypes.length
@@ -10051,19 +10068,19 @@ var wp;
),
initialOpen: true,
children: [
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "installed-blocks-pre-publish-panel__copy", children: (0, import_i18n10._n)(
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "installed-blocks-pre-publish-panel__copy", children: (0, import_i18n11._n)(
"The following block has been added to your site.",
"The following blocks have been added to your site.",
newBlockTypes.length
) }),
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CompactList, { items: newBlockTypes })
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CompactList, { items: newBlockTypes })
]
}
);
}
// packages/block-directory/build-module/plugins/get-install-missing/index.mjs
- var import_i18n12 = __toESM(require_i18n(), 1);
+ var import_i18n13 = __toESM(require_i18n(), 1);
var import_components6 = __toESM(require_components(), 1);
var import_blocks7 = __toESM(require_blocks(), 1);
var import_element21 = __toESM(require_element(), 1);
@@ -10072,12 +10089,12 @@ var wp;
var import_block_editor5 = __toESM(require_block_editor(), 1);
// packages/block-directory/build-module/plugins/get-install-missing/install-button.mjs
- var import_i18n11 = __toESM(require_i18n(), 1);
+ var import_i18n12 = __toESM(require_i18n(), 1);
var import_components5 = __toESM(require_components(), 1);
var import_blocks6 = __toESM(require_blocks(), 1);
var import_data10 = __toESM(require_data(), 1);
var import_block_editor4 = __toESM(require_block_editor(), 1);
- var import_jsx_runtime32 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime34 = __toESM(require_jsx_runtime(), 1);
function InstallButton({ attributes, block, clientId }) {
const isInstallingBlock = (0, import_data10.useSelect)(
(select) => select(store).isInstalling(block.id),
@@ -10085,7 +10102,7 @@ var wp;
);
const { installBlockType: installBlockType2 } = (0, import_data10.useDispatch)(store);
const { replaceBlock } = (0, import_data10.useDispatch)(import_block_editor4.store);
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
import_components5.Button,
{
__next40pxDefaultSize: true,
@@ -10111,9 +10128,9 @@ var wp;
disabled: isInstallingBlock,
isBusy: isInstallingBlock,
variant: "primary",
- children: (0, import_i18n11.sprintf)(
+ children: (0, import_i18n12.sprintf)(
/* translators: %s: block name */
- (0, import_i18n11.__)("Install %s"),
+ (0, import_i18n12.__)("Install %s"),
block.title
)
}
@@ -10121,7 +10138,7 @@ var wp;
}
// packages/block-directory/build-module/plugins/get-install-missing/index.mjs
- var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime35 = __toESM(require_jsx_runtime(), 1);
var getInstallMissing = (OriginalComponent) => (props) => {
const { originalName } = props.attributes;
const { block, hasPermission } = (0, import_data11.useSelect)(
@@ -10141,9 +10158,9 @@ var wp;
[originalName]
);
if (!hasPermission || !block) {
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(OriginalComponent, { ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(OriginalComponent, { ...props });
}
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ModifiedWarning, { ...props, originalBlock: block });
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ModifiedWarning, { ...props, originalBlock: block });
};
var ModifiedWarning = ({ originalBlock, ...props }) => {
const { originalName, originalUndelimitedContent, clientId } = props.attributes;
@@ -10165,15 +10182,15 @@ var wp;
},
[clientId]
);
- let messageHTML = (0, import_i18n12.sprintf)(
+ let messageHTML = (0, import_i18n13.sprintf)(
/* translators: %s: block name */
- (0, import_i18n12.__)(
+ (0, import_i18n13.__)(
"Your site doesn\u2019t include support for the %s block. You can try installing the block or remove it entirely."
),
originalBlock.title || originalName
);
const actions = [
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
InstallButton,
{
block: originalBlock,
@@ -10184,44 +10201,44 @@ var wp;
)
];
if (hasContent && hasHTMLBlock) {
- messageHTML = (0, import_i18n12.sprintf)(
+ messageHTML = (0, import_i18n13.sprintf)(
/* translators: %s: block name */
- (0, import_i18n12.__)(
+ (0, import_i18n13.__)(
"Your site doesn\u2019t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."
),
originalBlock.title || originalName
);
actions.push(
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
import_components6.Button,
{
__next40pxDefaultSize: true,
onClick: convertToHTML,
variant: "tertiary",
- children: (0, import_i18n12.__)("Keep as HTML")
+ children: (0, import_i18n13.__)("Keep as HTML")
},
"convert"
)
);
}
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...(0, import_block_editor5.useBlockProps)(), children: [
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_block_editor5.Warning, { actions, children: messageHTML }),
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_element21.RawHTML, { children: originalUndelimitedContent })
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { ...(0, import_block_editor5.useBlockProps)(), children: [
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_block_editor5.Warning, { actions, children: messageHTML }),
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_element21.RawHTML, { children: originalUndelimitedContent })
] });
};
var get_install_missing_default = getInstallMissing;
// packages/block-directory/build-module/plugins/index.mjs
- var import_jsx_runtime34 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime36 = __toESM(require_jsx_runtime(), 1);
(0, import_plugins.registerPlugin)("block-directory", {
// The icon is explicitly set to undefined to prevent PluginPrePublishPanel
// from rendering the fallback icon pluginIcon.
icon: void 0,
render() {
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AutoBlockUninstaller, {}),
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(inserter_menu_downloadable_blocks_panel_default, {}),
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(InstalledBlocksPrePublishPanel, {})
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(AutoBlockUninstaller, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(inserter_menu_downloadable_blocks_panel_default, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(InstalledBlocksPrePublishPanel, {})
] });
}
});
@@ -10262,3 +10279,5 @@ use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.developme
* LICENSE file in the root directory of this source tree.
*)
*/
+(window.wp ||= {}).blockDirectory = wp.blockDirectory;
+})();
diff --git a/wp-includes/js/dist/block-directory.min.js b/wp-includes/js/dist/block-directory.min.js
index 9858e3fac6..610b16a8d9 100644
--- a/wp-includes/js/dist/block-directory.min.js
+++ b/wp-includes/js/dist/block-directory.min.js
@@ -1,5 +1,6 @@
/*! This file is auto-generated */
-var wp;(wp||={}).blockDirectory=(()=>{var Af=Object.create;var br=Object.defineProperty;var Nf=Object.getOwnPropertyDescriptor;var Df=Object.getOwnPropertyNames;var Mf=Object.getPrototypeOf,Lf=Object.prototype.hasOwnProperty;var se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ke=(e,t)=>{for(var o in t)br(e,o,{get:t[o],enumerable:!0})},gi=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Df(t))!Lf.call(e,n)&&n!==o&&br(e,n,{get:()=>t[n],enumerable:!(r=Nf(t,n))||r.enumerable});return e};var g=(e,t,o)=>(o=e!=null?Af(Mf(e)):{},gi(t||!e||!e.__esModule?br(o,"default",{value:e,enumerable:!0}):o,e)),Bf=e=>gi(br({},"__esModule",{value:!0}),e);var yi=se((Bg,hi)=>{hi.exports=window.wp.plugins});var bi=se((Fg,xi)=>{xi.exports=window.wp.hooks});var kt=se((jg,wi)=>{wi.exports=window.wp.blocks});var Ge=se((Vg,vi)=>{vi.exports=window.wp.data});var Ue=se((Hg,Ri)=>{Ri.exports=window.wp.element});var In=se((Ug,Ei)=>{Ei.exports=window.wp.editor});var lo=se(($g,Ci)=>{Ci.exports=window.wp.blockEditor});var We=se((Yg,Pi)=>{Pi.exports=window.wp.i18n});var wr=se((zg,Oi)=>{Oi.exports=window.wp.apiFetch});var ki=se((qg,_i)=>{_i.exports=window.wp.notices});var Ai=se((Kg,Ii)=>{Ii.exports=window.wp.url});var qi=se((hh,zi)=>{zi.exports=window.wp.compose});var qt=se((yh,Ki)=>{Ki.exports=window.wp.components});var Fn=se((xh,Gi)=>{Gi.exports=window.wp.coreData});var Zi=se((wh,Ji)=>{Ji.exports=window.wp.htmlEntities});var V=se((vh,Qi)=>{Qi.exports=window.React});var X=se((Oh,ra)=>{ra.exports=window.ReactJSXRuntime});var Dt=se((Ey,Pa)=>{Pa.exports=window.ReactDOM});var Ll=se(Ml=>{"use strict";var To=V();function lm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cm=typeof Object.is=="function"?Object.is:lm,um=To.useState,fm=To.useEffect,dm=To.useLayoutEffect,pm=To.useDebugValue;function mm(e,t){var o=t(),r=um({inst:{value:o,getSnapshot:t}}),n=r[0].inst,s=r[1];return dm(function(){n.value=o,n.getSnapshot=t,vs(n)&&s({inst:n})},[e,o,t]),fm(function(){return vs(n)&&s({inst:n}),e(function(){vs(n)&&s({inst:n})})},[e]),pm(o),o}function vs(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!cm(e,o)}catch{return!0}}function gm(e,t){return t()}var hm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?gm:mm;Ml.useSyncExternalStore=To.useSyncExternalStore!==void 0?To.useSyncExternalStore:hm});var Rs=se((fb,Bl)=>{"use strict";Bl.exports=Ll()});var jl=se(Fl=>{"use strict";var zr=V(),ym=Rs();function xm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bm=typeof Object.is=="function"?Object.is:xm,wm=ym.useSyncExternalStore,vm=zr.useRef,Rm=zr.useEffect,Em=zr.useMemo,Tm=zr.useDebugValue;Fl.useSyncExternalStoreWithSelector=function(e,t,o,r,n){var s=vm(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=Em(function(){function u(m){if(!c){if(c=!0,l=m,m=r(m),n!==void 0&&i.hasValue){var d=i.value;if(n(d,m))return f=d}return f=m}if(d=f,bm(l,m))return d;var h=r(m);return n!==void 0&&n(d,h)?(l=m,d):(l=m,f=h)}var c=!1,l,f,p=o===void 0?null:o;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,o,r,n]);var a=wm(e,s[0],s[1]);return Rm(function(){i.hasValue=!0,i.value=a},[a]),Tm(a),a}});var Hl=se((pb,Vl)=>{"use strict";Vl.exports=jl()});var ru=se((vT,ou)=>{ou.exports=window.wp.a11y});var dn=se((RT,nu)=>{nu.exports=window.wp.primitives});var au=se((MT,iu)=>{iu.exports=window.wp.theme});var cu=se((LT,lu)=>{lu.exports=window.wp.privateApis});var Mg={};Ke(Mg,{store:()=>me});var Tf=g(yi(),1),Sf=g(bi(),1);var Ui=g(kt(),1),Uo=g(Ge(),1),Wi=g(Ue(),1),$i=g(In(),1);var Tr=g(Ge(),1);var Ti=g(Ge(),1),Ff=(e={},t)=>{switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},jf=(e={installedBlockTypes:[],isInstalling:{}},t)=>{switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:[...e.installedBlockTypes,t.item]};case"REMOVE_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:e.installedBlockTypes.filter(o=>o.name!==t.item.name)};case"SET_INSTALLING_BLOCK":return{...e,isInstalling:{...e.isInstalling,[t.blockId]:t.isInstalling}}}return e},Vf=(e={},t)=>{switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":let{[t.blockId]:o,...r}=e;return r}return e},Si=(0,Ti.combineReducers)({downloadableBlocks:Ff,blockManagement:jf,errorNotices:Vf});var An={};Ke(An,{getDownloadableBlocks:()=>Uf,getErrorNoticeForBlock:()=>qf,getErrorNotices:()=>zf,getInstalledBlockTypes:()=>Ho,getNewBlockTypes:()=>Wf,getUnusedBlockTypes:()=>$f,isInstalling:()=>Yf,isRequestingDownloadableBlocks:()=>Hf});var co=g(Ge(),1),jo=g(lo(),1),Vo=[];function Hf(e,t){return e.downloadableBlocks[t]?.isRequesting??!1}function Uf(e,t){return e.downloadableBlocks[t]?.results??Vo}function Ho(e){return e.blockManagement.installedBlockTypes}var Wf=(0,co.createRegistrySelector)(e=>(0,co.createSelector)(t=>{let o=Ho(t);if(!o.length)return Vo;let{getBlockName:r,getClientIdsWithDescendants:n}=e(jo.store),s=o.map(u=>u.name),i=n().flatMap(u=>{let c=r(u);return s.includes(c)?c:[]}),a=o.filter(u=>i.includes(u.name));return a.length>0?a:Vo},t=>[Ho(t),e(jo.store).getClientIdsWithDescendants()])),$f=(0,co.createRegistrySelector)(e=>(0,co.createSelector)(t=>{let o=Ho(t);if(!o.length)return Vo;let{getBlockName:r,getClientIdsWithDescendants:n}=e(jo.store),s=o.map(u=>u.name),i=n().flatMap(u=>{let c=r(u);return s.includes(c)?c:[]}),a=o.filter(u=>!i.includes(u.name));return a.length>0?a:Vo},t=>[Ho(t),e(jo.store).getClientIdsWithDescendants()]));function Yf(e,t){return e.blockManagement.isInstalling[t]||!1}function zf(e){return e.errorNotices}function qf(e,t){return e.errorNotices[t]}var Mn={};Ke(Mn,{addInstalledBlockType:()=>Jf,clearErrorNotice:()=>td,fetchDownloadableBlocks:()=>Dn,installBlockType:()=>Gf,receiveDownloadableBlocks:()=>Er,removeInstalledBlockType:()=>Zf,setErrorNotice:()=>ed,setIsInstalling:()=>Qf,uninstallBlockType:()=>Xf});var Rr=g(kt(),1),wt=g(We(),1),uo=g(wr(),1),vr=g(ki(),1),Mi=g(Ai(),1);var Ni=g(wr(),1),Kf=e=>new Promise((t,o)=>{let r=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach(n=>{e[n]&&(r[n]=e[n])}),e.innerHTML&&r.appendChild(document.createTextNode(e.innerHTML)),r.onload=()=>t(!0),r.onerror=()=>o(new Error("Error loading asset.")),document.body.appendChild(r),(r.nodeName.toLowerCase()==="link"||r.nodeName.toLowerCase()==="script"&&!r.src)&&t()});async function Di(){let t=await(await(0,Ni.default)({url:document.location.href,parse:!1})).text(),o=new window.DOMParser().parseFromString(t,"text/html"),r=Array.from(o.querySelectorAll('link[rel="stylesheet"],script')).filter(n=>n.id&&!document.getElementById(n.id));for(let n of r)await Kf(n)}function Nn(e){if(!e)return!1;let t=e.links["wp:plugin"]||e.links.self;return t&&t.length?t[0].href:!1}function Dn(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function Er(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}var Gf=e=>async({registry:t,dispatch:o})=>{let{id:r,name:n}=e,s=!1;o.clearErrorNotice(r);try{o.setIsInstalling(r,!0);let i=Nn(e),a={};i?await(0,uo.default)({method:"PUT",url:i,data:{status:"active"}}):a=(await(0,uo.default)({method:"POST",path:"wp/v2/plugins",data:{slug:r,status:"active"}}))._links,o.addInstalledBlockType({...e,links:{...e.links,...a}});let u=["api_version","title","category","parent","ancestor","icon","description","keywords","attributes","provides_context","uses_context","selectors","supports","styles","example","variations","allowed_blocks","block_hooks"];if(await(0,uo.default)({path:(0,Mi.addQueryArgs)(`/wp/v2/block-types/${n}`,{_fields:u})}).catch(()=>{}).then(l=>{l&&(0,Rr.unstable__bootstrapServerSideBlockDefinitions)({[n]:Object.fromEntries(Object.entries(l).filter(([f])=>u.includes(f)))})}),await Di(),!t.select(Rr.store).getBlockTypes().some(l=>l.name===n))throw new Error((0,wt.__)("Error registering block. Try reloading the page."));t.dispatch(vr.store).createInfoNotice((0,wt.sprintf)((0,wt.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),s=!0}catch(i){let a=i.message||(0,wt.__)("An error occurred."),u=i instanceof Error,c={folder_exists:(0,wt.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:(0,wt.__)("Error installing block. You can reload the page and try again.")};c[i.code]&&(u=!0,a=c[i.code]),o.setErrorNotice(r,a,u),t.dispatch(vr.store).createErrorNotice(a,{speak:!0,isDismissible:!0})}return o.setIsInstalling(r,!1),s},Xf=e=>async({registry:t,dispatch:o})=>{try{let r=Nn(e);await(0,uo.default)({method:"PUT",url:r,data:{status:"inactive"}}),await(0,uo.default)({method:"DELETE",url:r}),o.removeInstalledBlockType(e)}catch(r){t.dispatch(vr.store).createErrorNotice(r.message||(0,wt.__)("An error occurred."))}};function Jf(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function Zf(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function Qf(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function ed(e,t,o=!1){return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:o}}function td(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var Bn={};Ke(Bn,{getDownloadableBlocks:()=>sd});var fo=function(){return fo=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},fo.apply(this,arguments)};function Li(e){return e.toLowerCase()}var od=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],rd=/[^A-Z0-9]+/gi;function Fi(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,r=o===void 0?od:o,n=t.stripRegexp,s=n===void 0?rd:n,i=t.transform,a=i===void 0?Li:i,u=t.delimiter,c=u===void 0?" ":u,l=Bi(Bi(e,r,"$1\0$2"),s,"\0"),f=0,p=l.length;l.charAt(f)==="\0";)f++;for(;l.charAt(p-1)==="\0";)p--;return l.slice(f,p).split("\0").map(a).join(c)}function Bi(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(r,n){return r.replace(n,o)},e)}function Ln(e,t){var o=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&o>="0"&&o<="9"?"_"+o+r:""+o.toUpperCase()+r}function ji(e,t){return t===void 0&&(t={}),Fi(e,fo({delimiter:"",transform:Ln},t))}function nd(e,t){return t===0?e.toLowerCase():Ln(e,t)}function Vi(e,t){return t===void 0&&(t={}),ji(e,fo({transform:nd},t))}var Hi=g(wr(),1);var sd=e=>async({dispatch:t})=>{if(e)try{t(Dn(e));let r=(await(0,Hi.default)({path:`wp/v2/block-directory/search?term=${e}`})).map(n=>Object.fromEntries(Object.entries(n).map(([s,i])=>[Vi(s),i])));t(Er(r,e))}catch{t(Er([],e))}};var id="core/block-directory",ad={reducer:Si,selectors:An,actions:Mn,resolvers:Bn},me=(0,Tr.createReduxStore)(id,ad);(0,Tr.register)(me);function Yi(){let{uninstallBlockType:e}=(0,Uo.useDispatch)(me),t=(0,Uo.useSelect)(r=>{let{isAutosavingPost:n,isSavingPost:s}=r($i.store);return s()&&!n()},[]),o=(0,Uo.useSelect)(r=>r(me).getUnusedBlockTypes(),[]);return(0,Wi.useEffect)(()=>{t&&o.length&&o.forEach(r=>{e(r),(0,Ui.unregisterBlockType)(r.name)})},[t]),null}var af=g(lo(),1),lf=g(qi(),1),cf=g(Ue(),1);var ef=g(We(),1),tf=g(qt(),1),of=g(Fn(),1),rf=g(Ge(),1),nf=g(kt(),1);var Yu=g(We(),1),zu=g(qt(),1),qu=g(kt(),1),Ku=g(Ge(),1);function Xi(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Xi(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function ld(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Xi(e))&&(r&&(r+=" "),r+=t);return r}var po=ld;var Ve=g(We(),1),Rn=g(qt(),1),Hu=g(Ue(),1),Ht=g(Zi(),1),Uu=g(kt(),1),Wu=g(Ge(),1);var cd=g(V(),1),Wo={...cd};var ta=g(V(),1),ea={};function ve(e,t){let o=ta.useRef(ea);return o.current===ea&&(o.current=e(t)),o}var jn=Wo.useInsertionEffect,ud=jn&&jn!==Wo.useLayoutEffect?jn:e=>e();function W(e){let t=ve(fd).current;return t.next=e,ud(t.effect),t.trampoline}function fd(){let e={next:void 0,callback:dd,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function dd(){}var oa=g(V(),1),pd=()=>{},F=typeof document<"u"?oa.useLayoutEffect:pd;var Sr=g(V(),1),md=Sr.createContext(void 0);function mo(){return Sr.useContext(md)?.direction??"ltr"}function gd(e,t){return function(r,...n){let s=new URL(e);return s.searchParams.set("code",r.toString()),n.forEach(i=>s.searchParams.append("args[]",i)),`${t} error #${r}; visit ${s} for the full message.`}}var hd=gd("https://base-ui.com/production-error","Base UI"),Ne=hd;var Kt=g(V(),1);function Vn(e,t,o,r){let n=ve(sa).current;return yd(n,e,t,o,r)&&ia(n,[e,t,o,r]),n.callback}function na(e){let t=ve(sa).current;return xd(t,e)&&ia(t,e),t.callback}function sa(){return{callback:null,cleanup:null,refs:[]}}function yd(e,t,o,r,n){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==r||e.refs[3]!==n}function xd(e,t){return e.refs.length!==t.length||e.refs.some((o,r)=>o!==t[r])}function ia(e,t){if(e.refs=t,t.every(o=>o==null)){e.callback=null;return}e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),o!=null){let r=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let s=t[n];if(s!=null)switch(typeof s){case"function":{let i=s(o);typeof i=="function"&&(r[n]=i);break}case"object":{s.current=o;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let s=t[n];if(s!=null)switch(typeof s){case"function":{let i=r[n];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}default:}}}}}}var la=g(V(),1);var aa=g(V(),1),bd=parseInt(aa.version,10);function go(e){return bd>=e}function Hn(e){if(!la.isValidElement(e))return null;let t=e,o=t.props;return(go(19)?o?.ref:t.ref)??null}function $o(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function It(){}var Bh=Object.freeze([]),fe=Object.freeze({});function ca(e,t){let o={};for(let r in e){let n=e[r];if(t?.hasOwnProperty(r)){let s=t[r](n);s!=null&&Object.assign(o,s);continue}n===!0?o[`data-${r.toLowerCase()}`]="":n&&(o[`data-${r.toLowerCase()}`]=n.toString())}return o}function ua(e,t){return typeof e=="function"?e(t):e}function fa(e,t){return typeof e=="function"?e(t):e}var Un={};function vt(e,t,o,r,n){if(!o&&!r&&!n&&!e)return Cr(t);let s=Cr(e);return t&&(s=Yo(s,t)),o&&(s=Yo(s,o)),r&&(s=Yo(s,r)),n&&(s=Yo(s,n)),s}function da(e){if(e.length===0)return Un;if(e.length===1)return Cr(e[0]);let t=Cr(e[0]);for(let o=1;o<e.length;o+=1)t=Yo(t,e[o]);return t}function Cr(e){return Wn(e)?{...ma(e,Un)}:wd(e)}function Yo(e,t){return Wn(t)?ma(t,e):vd(e,t)}function wd(e){let t={...e};for(let o in t){let r=t[o];pa(o,r)&&(t[o]=ga(r))}return t}function vd(e,t){if(!t)return e;for(let o in t){let r=t[o];switch(o){case"style":{e[o]=$o(e.style,r);break}case"className":{e[o]=$n(e.className,r);break}default:pa(o,r)?e[o]=Rd(e[o],r):e[o]=r}}return e}function pa(e,t){let o=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2);return o===111&&r===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function Wn(e){return typeof e=="function"}function ma(e,t){return Wn(e)?e(t):e??Un}function Rd(e,t){return t?e?(...o)=>{let r=o[0];if(ya(r)){let s=r;ha(s);let i=t(...o);return s.baseUIHandlerPrevented||e?.(...o),i}let n=t(...o);return e?.(...o),n}:ga(t):e}function ga(e){return e&&((...t)=>{let o=t[0];return ya(o)&&ha(o),e(...t)})}function ha(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function $n(e,t){return t?e?t+" "+e:t:e}function ya(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var Yn=g(V(),1);function De(e,t,o={}){let r=t.render,n=Ed(t,o);if(o.enabled===!1)return null;let s=o.state??fe;return Cd(e,r,n,s)}function Ed(e,t={}){let{className:o,style:r,render:n}=e,{state:s=fe,ref:i,props:a,stateAttributesMapping:u,enabled:c=!0}=t,l=c?ua(o,s):void 0,f=c?fa(r,s):void 0,p=c?ca(s,u):fe,m=c&&a?Td(a):void 0,d=c?$o(p,m)??{}:fe;return typeof document<"u"&&(c?Array.isArray(i)?d.ref=na([d.ref,Hn(n),...i]):d.ref=Vn(d.ref,Hn(n),i):Vn(null,null)),c?(l!==void 0&&(d.className=$n(d.className,l)),f!==void 0&&(d.style=$o(d.style,f)),d):fe}function Td(e){return Array.isArray(e)?da(e):vt(void 0,e)}var Sd=Symbol.for("react.lazy");function Cd(e,t,o,r){if(t){if(typeof t=="function")return t(o,r);let n=vt(o,t.props);n.ref=o.ref;let s=t;return s?.$$typeof===Sd&&(s=Kt.Children.toArray(t)[0]),Kt.cloneElement(s,n)}if(e&&typeof e=="string")return Pd(e,o);throw new Error(Ne(8))}function Pd(e,t){return e==="button"?(0,Yn.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,Yn.createElement)("img",{alt:"",...t,key:t.key}):Kt.createElement(e,t)}var Pr=g(V(),1);var xa=0;function Od(e,t="mui"){let[o,r]=Pr.useState(e),n=e||o;return Pr.useEffect(()=>{o==null&&(xa+=1,r(`${t}-${xa}`))},[o,t]),n}var ba=Wo.useId;function At(e,t){if(ba!==void 0){let o=ba();return e??(t?`${t}-${o}`:o)}return Od(e,t)}function wa(e){return At(e,"base-ui")}var $={};Ke($,{cancelOpen:()=>op,chipRemovePress:()=>Fd,clearPress:()=>Bd,closePress:()=>Md,closeWatcher:()=>Gd,decrementPress:()=>Hd,disabled:()=>np,drag:()=>Qd,escapeKey:()=>Kd,focusOut:()=>qd,imperativeAction:()=>ap,incrementPress:()=>Vd,initial:()=>ip,inputBlur:()=>$d,inputChange:()=>Ud,inputClear:()=>Wd,inputPaste:()=>Yd,inputPress:()=>zd,itemPress:()=>Dd,keyboard:()=>Jd,linkPress:()=>Ld,listNavigation:()=>Xd,missing:()=>sp,none:()=>_d,outsidePress:()=>Nd,pointer:()=>Zd,scrub:()=>tp,siblingOpen:()=>rp,swipe:()=>lp,trackPress:()=>jd,triggerFocus:()=>Ad,triggerHover:()=>Id,triggerPress:()=>kd,wheel:()=>ep,windowResize:()=>cp});var _d="none",kd="trigger-press",Id="trigger-hover",Ad="trigger-focus",Nd="outside-press",Dd="item-press",Md="close-press",Ld="link-press",Bd="clear-press",Fd="chip-remove-press",jd="track-press",Vd="increment-press",Hd="decrement-press",Ud="input-change",Wd="input-clear",$d="input-blur",Yd="input-paste",zd="input-press",qd="focus-out",Kd="escape-key",Gd="close-watcher",Xd="list-navigation",Jd="keyboard",Zd="pointer",Qd="drag",ep="wheel",tp="scrub",op="cancel-open",rp="sibling-open",np="disabled",sp="missing",ip="initial",ap="imperative-action",lp="swipe",cp="window-resize";function J(e,t,o,r){let n=!1,s=!1,i=r??fe;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){s=!0},get isCanceled(){return n},get isPropagationAllowed(){return s},trigger:o,...i}}var qn=g(V(),1);var va=g(V(),1),up=[];function ho(e){va.useEffect(e,up)}var Or=null,uy=globalThis.requestAnimationFrame,zn=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let o=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let n=0;n<o.length;n+=1)o[n]?.(t)};request(t){let o=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(t){let o=t-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}},_r=new zn,dt=class e{static create(){return new e}static request(t){return _r.request(t)}static cancel(t){return _r.cancel(t)}currentId=Or;request(t){this.cancel(),this.currentId=_r.request(()=>{this.currentId=Or,t()})}cancel=()=>{this.currentId!==Or&&(_r.cancel(this.currentId),this.currentId=Or)};disposeEffect=()=>this.cancel};function yo(){let e=ve(dt.create).current;return ho(e.disposeEffect),e}function Ra(e,t=!1,o=!1){let[r,n]=qn.useState(e&&t?"idle":void 0),[s,i]=qn.useState(e);return e&&!s&&(i(!0),n("starting")),!e&&s&&r!=="ending"&&!o&&n("ending"),!e&&!s&&r==="ending"&&n(void 0),F(()=>{if(!e&&s&&r!=="ending"&&o){let a=dt.request(()=>{n("ending")});return()=>{dt.cancel(a)}}},[e,s,r,o]),F(()=>{if(!e||t)return;let a=dt.request(()=>{n(void 0)});return()=>{dt.cancel(a)}},[t,e]),F(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&n("starting");let a=dt.request(()=>{n("idle")});return()=>{dt.cancel(a)}},[t,e,s,r]),{mounted:s,setMounted:i,transitionStatus:r}}var Gt=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),fp={[Gt.startingStyle]:""},dp={[Gt.endingStyle]:""},Ea={transitionStatus(e){return e==="starting"?fp:e==="ending"?dp:null}};function kr(){return typeof window<"u"}function Jt(e){return Ir(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tt(e){var t;return(t=(Ir(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ir(e){return kr()?e instanceof Node||e instanceof le(e).Node:!1}function H(e){return kr()?e instanceof Element||e instanceof le(e).Element:!1}function xe(e){return kr()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function xo(e){return!kr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}function bo(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=Te(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function Ta(e){return/^(table|td|th)$/.test(Jt(e))}function zo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var pp=/transform|translate|scale|rotate|perspective|filter/,mp=/paint|layout|strict|content/,Xt=e=>!!e&&e!=="none",Kn;function Ar(e){let t=H(e)?Te(e):e;return Xt(t.transform)||Xt(t.translate)||Xt(t.scale)||Xt(t.rotate)||Xt(t.perspective)||!Nr()&&(Xt(t.backdropFilter)||Xt(t.filter))||pp.test(t.willChange||"")||mp.test(t.contain||"")}function Sa(e){let t=et(e);for(;xe(t)&&!ot(t);){if(Ar(t))return t;if(zo(t))return null;t=et(t)}return null}function Nr(){return Kn==null&&(Kn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kn}function ot(e){return/^(html|body|#document)$/.test(Jt(e))}function Te(e){return le(e).getComputedStyle(e)}function qo(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if(Jt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||xo(e)&&e.host||tt(e);return xo(t)?t.host:t}function Ca(e){let t=et(e);return ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&bo(t)?t:Ca(t)}function Nt(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Ca(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),i=le(n);if(s){let a=Dr(i);return t.concat(i,i.visualViewport||[],bo(n)?n:[],a&&o?Nt(a):[])}else return t.concat(n,Nt(n,[],o))}function Dr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e,t,o,r){return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o,r)}}function Me(e){let t=ve(gp,e).current;return t.next=e,F(t.effect),t}function gp(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function be(e){return e?.ownerDocument||document}var ka=g(V(),1);var _a=g(Dt(),1);function Oa(e){return e==null?e:"current"in e?e.current:e}function wo(e,t=!1,o=!0){let r=yo();return W((n,s=null)=>{r.cancel();let i=Oa(e);if(i==null)return;let a=i,u=()=>{_a.flushSync(n)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function c(){Promise.all(a.getAnimations().map(l=>l.finished)).then(()=>{s?.aborted||u()}).catch(()=>{if(o){s?.aborted||u();return}let l=a.getAnimations();!s?.aborted&&l.length>0&&l.some(f=>f.pending||f.playState!=="finished")&&c()})}if(t){let l=Gt.startingStyle;if(!a.hasAttribute(l)){r.request(c);return}let f=new MutationObserver(()=>{a.hasAttribute(l)||(f.disconnect(),c())});f.observe(a,{attributes:!0,attributeFilter:[l]}),s?.addEventListener("abort",()=>f.disconnect(),{once:!0});return}r.request(c)})}function Mr(e){let{enabled:t=!0,open:o,ref:r,onComplete:n}=e,s=W(n),i=wo(r,o,!1);ka.useEffect(()=>{if(!t)return;let a=new AbortController;return i(s,a.signal),()=>{a.abort()}},[t,o,s,i])}var Ia=g(V(),1);function Aa(e){let t=Ia.useRef(!0);t.current&&(t.current=!1,e())}var Rt={};Ke(Rt,{engine:()=>Qn,env:()=>ts,os:()=>Jn,screenReader:()=>es});var Jn={};Ke(Jn,{android:()=>Ma,apple:()=>Xn,ios:()=>Gn,linux:()=>wp,mac:()=>La,windows:()=>bp});function hp(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:yp,platform:xp,maxTouchPoints:Na}=hp(),Zt=yp.toLowerCase(),Qt=xp.toLowerCase();var Gn=/^i(os$|p)/.test(Qt)||Qt==="macintel"&&Na>1,Da="android",Ma=Qt===Da||Zt.includes(Da),La=!Gn&&Qt.startsWith("mac"),bp=Qt.startsWith("win"),wp=!Ma&&/^(linux|chrome os)/.test(Qt),Xn=La||Gn;var Qn={};Ke(Qn,{blink:()=>Rp,gecko:()=>vp,webkit:()=>Zn});var Zn=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),vp=!Zn&&Zt.includes("firefox"),Rp=!Zn&&Zt.includes("chrom");var es={};Ke(es,{voiceOver:()=>Ep});var Ep=Xn;var ts={};Ke(ts,{jsdom:()=>Tp});var Tp=/jsdom|happydom/.test(Zt);var Ko=0,$e=class e{static create(){return new e}currentId=Ko;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ko,o()},t)}isStarted(){return this.currentId!==Ko}clear=()=>{this.currentId!==Ko&&(clearTimeout(this.currentId),this.currentId=Ko)};disposeEffect=()=>this.clear};function rt(){let e=ve($e.create).current;return ho(e.disposeEffect),e}var Se=g(V(),1);function Ba(e){return"nativeEvent"in e}function Et(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function Fa(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var os="data-base-ui-focusable";var rs="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Lr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function te(e,t){if(!e||!t)return!1;let o=t.getRootNode?.();if(e.contains(t))return!0;if(o&&xo(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function ke(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Mt(e,t){if(!H(e))return!1;let o=e;if(t.hasElement(o))return!o.hasAttribute("data-trigger-disabled");for(let[,r]of t.entries())if(te(r,o))return!r.hasAttribute("data-trigger-disabled");return!1}function Br(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let o=e;return o.target!=null&&t.contains(o.target)}function ja(e){return e.matches("html,body")}function Va(e){return xe(e)&&e.matches(rs)}function ns(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${rs}`)!=null}function Ha(e){if(!e||Rt.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Sp(e,t){return t!=null&&!Et(t)?0:typeof e=="function"?e():e}function Tt(e,t,o){let r=Sp(e,o);return typeof r=="number"?r:r?.[t]}function ss(e){return typeof e=="function"?e():e}function Fr(e,t){return t||e==="click"||e==="mousedown"}function Ua(e){return e?.includes("mouse")&&e!=="mousedown"}var Wa=g(X(),1),$a=Se.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new $e,currentIdRef:{current:null},currentContextRef:{current:null}});function Cp(e,t){e.current=t.current}function is(e){let{children:t,delay:o,timeoutMs:r=0}=e,n=Se.useRef(o),s=Se.useRef(o),i=Se.useRef(null),a=Se.useRef(null),u=rt();return F(()=>{if(s.current=o,!i.current){n.current=o;return}n.current={open:Tt(n.current,"open"),close:Tt(o,"close")}},[o,i,n,s]),(0,Wa.jsx)($a.Provider,{value:Se.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:s,currentIdRef:i,timeoutMs:r,currentContextRef:a,timeout:u}),[r,u]),children:t})}function as(e,t={open:!1}){let{open:o}=t,r="rootStore"in e?e.rootStore:e,n=r.useState("floatingId"),s=Se.useContext($a),{currentIdRef:i,delayRef:a,timeoutMs:u,initialDelayRef:c,currentContextRef:l,hasProvider:f,timeout:p}=s,[m,d]=Se.useState(!1),h=Se.useRef(o),x=Se.useRef(!1);return F(()=>{h.current=o},[o]),F(()=>()=>{x.current=!0},[]),F(()=>{function b(){x.current||d(!1),l.current?.setIsInstantPhase(!1),i.current=null,l.current=null,a.current=c.current,p.clear()}if(i.current&&!o&&i.current===n){if(d(!1),u){let y=n;return p.start(u,()=>{r.select("open")||i.current&&i.current!==y||b()}),()=>{(h.current||i.current!==y)&&p.clear()}}b()}},[o,n,i,a,u,c,l,p,r]),F(()=>{if(!o)return;let b=l.current,y=i.current;p.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:d},i.current=n,a.current={open:0,close:Tt(c.current,"close")},y!==null&&y!==n?(d(!0),b?.setIsInstantPhase(!0),b?.onOpenChange(!1,J($.none))):(d(!1),b?.setIsInstantPhase(!1))},[o,n,r,i,a,c,l,p]),F(()=>()=>{if(i.current===n){if(l.current=null,!h.current)return;i.current=null,Cp(a,c),p.clear()}},[l,i,a,n,c,p]),Se.useMemo(()=>({hasProvider:f,delayRef:a,isInstantPhase:m}),[f,a,m])}function nt(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}var qa=["top","right","bottom","left"];var Lt=Math.min,Ie=Math.max,Bt=Math.round,Xo=Math.floor,st=e=>({x:e,y:e}),Pp={left:"right",right:"left",bottom:"top",top:"bottom"};function Jo(e,t,o){return Ie(e,Lt(t,o))}function it(e,t){return typeof e=="function"?e(t):e}function Re(e){return e.split("-")[0]}function at(e){return e.split("-")[1]}function Vr(e){return e==="x"?"y":"x"}function Zo(e){return e==="y"?"height":"width"}function Le(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Qo(e){return Vr(Le(e))}function Ka(e,t,o){o===void 0&&(o=!1);let r=at(e),n=Qo(e),s=Zo(n),i=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Go(i)),[i,Go(i)]}function Ga(e){let t=Go(e);return[jr(e),t,jr(t)]}function jr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Ya=["left","right"],za=["right","left"],Op=["top","bottom"],_p=["bottom","top"];function kp(e,t,o){switch(e){case"top":case"bottom":return o?t?za:Ya:t?Ya:za;case"left":case"right":return t?Op:_p;default:return[]}}function Xa(e,t,o,r){let n=at(e),s=kp(Re(e),o==="start",r);return n&&(s=s.map(i=>i+"-"+n),t&&(s=s.concat(s.map(jr)))),s}function Go(e){let t=Re(e);return Pp[t]+e.slice(t.length)}function Ip(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hr(e){return typeof e!="number"?Ip(e):{top:e,right:e,bottom:e,left:e}}function eo(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function St(e,t,o=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!o||n.context?.open?[n]:[],...St(e,n.id,o)])}function vo(e){return`data-base-ui-${e}`}var Ye=g(V(),1),Qa=g(Dt(),1);var Ja={style:{transition:"none"}};var Ap="data-base-ui-swipe-ignore",Np="data-swipe-ignore",fx=`[${Ap}]`,dx=`[${Np}]`;var Za={fallbackAxisSide:"end"};var el=g(X(),1),Dp=Ye.createContext(null),Mp=()=>Ye.useContext(Dp),Lp=vo("portal");function ls(e={}){let{ref:t,container:o,componentProps:r=fe,elementProps:n}=e,s=At(),a=Mp()?.portalNode,[u,c]=Ye.useState(null),[l,f]=Ye.useState(null),p=W(x=>{x!==null&&f(x)}),m=Ye.useRef(null);F(()=>{if(o===null){m.current&&(m.current=null,f(null),c(null));return}if(s==null)return;let x=(o&&(Ir(o)?o:o.current))??a??document.body;if(x==null){m.current&&(m.current=null,f(null),c(null));return}m.current!==x&&(m.current=x,f(null),c(x))},[o,a,s]);let d=De("div",r,{ref:[t,p],props:[{id:s,[Lp]:""},n]});return{portalNode:l,portalSubtree:u&&d?Qa.createPortal(d,u):null}}var to=g(V(),1);function tl(){let e=new Map;return{emit(t,o){e.get(t)?.forEach(r=>r(o))},on(t,o){e.has(t)||e.set(t,new Set),e.get(t).add(o)},off(t,o){e.get(t)?.delete(o)}}}var Bp=g(X(),1),Fp=to.createContext(null),jp=to.createContext(null),Ro=()=>to.useContext(Fp)?.id||null,Ft=e=>{let t=to.useContext(jp);return e??t};var Be=g(V(),1);function Vp(e,t){let o=null,r=null,n=!1;return{contextElement:e||void 0,getBoundingClientRect(){let s=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",u=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",c=s.width,l=s.height,f=s.x,p=s.y;return o==null&&t.x&&i&&(o=s.x-t.x),r==null&&t.y&&a&&(r=s.y-t.y),f-=o||0,p-=r||0,c=0,l=0,!n||u?(c=t.axis==="y"?s.width:0,l=t.axis==="x"?s.height:0,f=i&&t.x!=null?t.x:f,p=a&&t.y!=null?t.y:p):n&&!u&&(l=t.axis==="x"?s.height:l,c=t.axis==="y"?s.width:c),n=!0,{width:c,height:l,x:f,y:p,top:p,right:f+c,bottom:p+l,left:f}}}}function ol(e){return e!=null&&e.clientX!=null}function cs(e,t={}){let{enabled:o=!0,axis:r="both"}=t,n="rootStore"in e?e.rootStore:e,s=n.useState("open"),i=n.useState("floatingElement"),a=n.useState("domReferenceElement"),u=n.context.dataRef,c=Be.useRef(!1),l=Be.useRef(null),[f,p]=Be.useState(),[m,d]=Be.useState([]),h=W(w=>{n.set("positionReference",w)}),x=W((w,T,E)=>{c.current||u.current.openEvent&&!ol(u.current.openEvent)||n.set("positionReference",Vp(E??a,{x:w,y:T,axis:r,dataRef:u,pointerType:f}))}),b=W(w=>{s?l.current||(x(w.clientX,w.clientY,w.currentTarget),d([])):x(w.clientX,w.clientY,w.currentTarget)}),y=Et(f)?i:s;Be.useEffect(()=>{if(!o){h(a);return}if(!y)return;function w(){l.current?.(),l.current=null}let T=le(i);function E(C){let P=ke(C);te(i,P)?w():x(C.clientX,C.clientY)}return!u.current.openEvent||ol(u.current.openEvent)?l.current=ee(T,"mousemove",E):h(a),w},[y,o,i,u,a,n,x,h,m]),Be.useEffect(()=>()=>{n.set("positionReference",null)},[n]),Be.useEffect(()=>{o&&!i&&(c.current=!1)},[o,i]),Be.useEffect(()=>{!o&&s&&(c.current=!0)},[o,s]);let v=Be.useMemo(()=>{function w(T){p(T.pointerType)}return{onPointerDown:w,onPointerEnter:w,onMouseMove:b,onMouseEnter:b}},[b]);return Be.useMemo(()=>o?{reference:v,trigger:v}:{},[o,v])}var Fe=g(V(),1);function Hp(){return!1}function Up(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function us(e,t={}){let{enabled:o=!0,escapeKey:r=!0,outsidePress:n=!0,outsidePressEvent:s="sloppy",referencePress:i=Hp,bubbles:a,externalTree:u}=t,c="rootStore"in e?e.rootStore:e,l=c.useState("open"),f=c.useState("floatingElement"),{dataRef:p}=c.context,m=Ft(u),d=W(typeof n=="function"?n:()=>!1),h=typeof n=="function"?d:n,x=h!==!1,b=W(()=>s),{escapeKey:y,outsidePress:v}=Up(a),w=Fe.useRef(!1),T=Fe.useRef(!1),E=Fe.useRef(!1),C=Fe.useRef(!1),P=Fe.useRef(""),O=Fe.useRef(null),I=rt(),Y=rt(),A=W(()=>{Y.clear(),p.current.insideReactTree=!1}),N=W(U=>{let Q=p.current.floatingContext?.nodeId;return(m?St(m.nodesRef.current,Q):[]).some(ne=>ne.context?.open&&!ne.context.dataRef.current[U])}),L=W(U=>Br(U,c.select("floatingElement"))||Br(U,c.select("domReferenceElement"))),R=W(U=>{i()&&c.setOpen(!1,J($.triggerPress,U.nativeEvent))}),k=W(U=>{if(!l||!o||!r||U.key!=="Escape"||C.current||!y&&N("__escapeKeyBubbles"))return;let Q=Ba(U)?U.nativeEvent:U,Z=J($.escapeKey,Q);c.setOpen(!1,Z),Z.isCanceled||U.preventDefault(),!y&&!Z.isPropagationAllowed&&U.stopPropagation()}),B=W(()=>{p.current.insideReactTree=!0,Y.start(0,A)}),S=W(U=>{if(!l||!o||U.button!==0)return;let Q=ke(U.nativeEvent);te(c.select("floatingElement"),Q)&&(w.current||(w.current=!0,T.current=!1))}),_=W(U=>{!l||!o||(U.defaultPrevented||U.nativeEvent.defaultPrevented)&&w.current&&(T.current=!0)});Fe.useEffect(()=>{if(!l||!o)return;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=v;let U=new $e,Q=new $e;function Z(){U.clear(),C.current=!0}function ne(){U.start(Rt.engine.webkit?5:0,()=>{C.current=!1})}function z(){E.current=!0,Q.start(0,()=>{E.current=!1})}function ie(){w.current=!1,T.current=!1}function ae(){let M=P.current,j=M==="pen"||!M?"mouse":M,pe=b(),Ee=typeof pe=="function"?pe():pe;return typeof Ee=="string"?Ee:Ee[j]}function de(M){let j=ae();return j==="intentional"&&M.type!=="click"||j==="sloppy"&&M.type==="click"}function Oe(M){let j=p.current.floatingContext?.nodeId,pe=m&&St(m.nodesRef.current,j).some(Ee=>Br(M,Ee.context?.elements.floating));return L(M)||pe}function we(M){if(de(M)){M.type!=="click"&&!L(M)&&(Q.clear(),E.current=!1),A();return}if(p.current.insideReactTree){A();return}let j=ke(M),pe=`[${vo("inert")}]`,Ee=H(j)?j.getRootNode():null,Pt=Array.from((xo(Ee)?Ee:be(c.select("floatingElement"))).querySelectorAll(pe)),Bo=c.context.triggerElements;if(j&&(Bo.hasElement(j)||Bo.hasMatchingElement(He=>te(He,j))))return;let xt=H(j)?j:null;for(;xt&&!ot(xt);){let He=et(xt);if(ot(He)||!H(He))break;xt=He}if(!(Pt.length&&H(j)&&!ja(j)&&!te(j,c.select("floatingElement"))&&Pt.every(He=>!te(xt,He)))){if(xe(j)&&!("touches"in M)){let He=ot(j),Ot=Te(j),_t=/auto|scroll/,pr=He||_t.test(Ot.overflowX),mr=He||_t.test(Ot.overflowY),gr=pr&&j.clientWidth>0&&j.scrollWidth>j.clientWidth,hr=mr&&j.clientHeight>0&&j.scrollHeight>j.clientHeight,yr=Ot.direction==="rtl",oe=hr&&(yr?M.offsetX<=j.offsetWidth-j.clientWidth:M.offsetX>j.clientWidth),_e=gr&&M.offsetY>j.clientHeight;if(oe||_e)return}if(!Oe(M)){if(ae()==="intentional"&&E.current){Q.clear(),E.current=!1;return}typeof h=="function"&&!h(M)||N("__outsidePressBubbles")||(c.setOpen(!1,J($.outsidePress,M)),A())}}}function K(M){ae()!=="sloppy"||M.pointerType==="touch"||!c.select("open")||!o||L(M)||we(M)}function ce(M){if(ae()!=="sloppy"||!c.select("open")||!o||L(M))return;let j=M.touches[0];j&&(O.current={startTime:Date.now(),startX:j.clientX,startY:j.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},I.start(1e3,()=>{O.current&&(O.current.dismissOnTouchEnd=!1,O.current.dismissOnMouseDown=!1)}))}function ue(M,j){let pe=ke(M);if(!pe)return;let Ee=ee(pe,M.type,()=>{j(M),Ee()})}function Yt(M){P.current="touch",ue(M,ce)}function Je(M){I.clear(),M.type==="pointerdown"&&(P.current=M.pointerType),!(M.type==="mousedown"&&O.current&&!O.current.dismissOnMouseDown)&&ue(M,j=>{j.type==="pointerdown"?K(j):we(j)})}function yt(M){if(!w.current)return;let j=T.current;if(ie(),ae()==="intentional"){if(M.type==="pointercancel"){j&&z();return}if(!Oe(M)){if(j){z();return}typeof h=="function"&&!h(M)||(Q.clear(),E.current=!0,A())}}}function Ze(M){if(ae()!=="sloppy"||!O.current||L(M))return;let j=M.touches[0];if(!j)return;let pe=Math.abs(j.clientX-O.current.startX),Ee=Math.abs(j.clientY-O.current.startY),Pt=Math.sqrt(pe*pe+Ee*Ee);Pt>5&&(O.current.dismissOnTouchEnd=!0),Pt>10&&(we(M),I.clear(),O.current=null)}function ut(M){ue(M,Ze)}function fr(M){ae()!=="sloppy"||!O.current||L(M)||(O.current.dismissOnTouchEnd&&we(M),I.clear(),O.current=null)}function dr(M){ue(M,fr)}let ye=be(f),io=nt(r&&nt(ee(ye,"keydown",k),ee(ye,"compositionstart",Z),ee(ye,"compositionend",ne)),x&&nt(ee(ye,"click",Je,!0),ee(ye,"pointerdown",Je,!0),ee(ye,"pointerup",yt,!0),ee(ye,"pointercancel",yt,!0),ee(ye,"mousedown",Je,!0),ee(ye,"mouseup",yt,!0),ee(ye,"touchstart",Yt,!0),ee(ye,"touchmove",ut,!0),ee(ye,"touchend",dr,!0)));return()=>{io(),U.clear(),Q.clear(),ie(),E.current=!1}},[p,f,r,x,h,l,o,y,v,k,A,b,N,L,m,c,I]),Fe.useEffect(A,[h,A]);let D=Fe.useMemo(()=>({onKeyDown:k,onPointerDown:R,onClick:R}),[k,R]),G=Fe.useMemo(()=>({onKeyDown:k,onPointerDown:_,onMouseDown:_,onClickCapture:B,onMouseDownCapture(U){B(),S(U)},onPointerDownCapture(U){B(),S(U)},onMouseUpCapture:B,onTouchEndCapture:B,onTouchMoveCapture:B}),[k,B,S,_]);return Fe.useMemo(()=>o?{reference:D,floating:G,trigger:D}:{},[o,D,G])}var Ce=g(V(),1);function rl(e,t,o){let{reference:r,floating:n}=e,s=Le(t),i=Qo(t),a=Zo(i),u=Re(t),c=s==="y",l=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,m;switch(u){case"top":m={x:l,y:r.y-n.height};break;case"bottom":m={x:l,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-n.width,y:f};break;default:m={x:r.x,y:r.y}}switch(at(t)){case"start":m[i]-=p*(o&&c?-1:1);break;case"end":m[i]+=p*(o&&c?-1:1);break}return m}async function il(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=it(t,e),d=Hr(m),x=a[p?f==="floating"?"reference":"floating":f],b=eo(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(x)))==null||o?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:u})),y=f==="floating"?{x:r,y:n,width:i.floating.width,height:i.floating.height}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},T=eo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:u}):y);return{top:(b.top-T.top+d.top)/w.y,bottom:(T.bottom-b.bottom+d.bottom)/w.y,left:(b.left-T.left+d.left)/w.x,right:(T.right-b.right+d.right)/w.x}}var Wp=50,al=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:il},u=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:l,y:f}=rl(c,r,u),p=r,m=0,d={};for(let h=0;h<s.length;h++){let x=s[h];if(!x)continue;let{name:b,fn:y}=x,{x:v,y:w,data:T,reset:E}=await y({x:l,y:f,initialPlacement:r,placement:p,strategy:n,middlewareData:d,rects:c,platform:a,elements:{reference:e,floating:t}});l=v??l,f=w??f,d[b]={...d[b],...T},E&&m<Wp&&(m++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(c=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):E.rects),{x:l,y:f}=rl(c,p,u)),h=-1)}return{x:l,y:f,placement:p,strategy:n,middlewareData:d}};var ll=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:h=!0,...x}=it(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};let b=Re(n),y=Le(a),v=Re(a)===a,w=await(u.isRTL==null?void 0:u.isRTL(c.floating)),T=p||(v||!h?[Go(a)]:Ga(a)),E=d!=="none";!p&&E&&T.push(...Xa(a,h,d,w));let C=[a,...T],P=await u.detectOverflow(t,x),O=[],I=((r=s.flip)==null?void 0:r.overflows)||[];if(l&&O.push(P[b]),f){let L=Ka(n,i,w);O.push(P[L[0]],P[L[1]])}if(I=[...I,{placement:n,overflows:O}],!O.every(L=>L<=0)){var Y,A;let L=(((Y=s.flip)==null?void 0:Y.index)||0)+1,R=C[L];if(R&&(!(f==="alignment"?y!==Le(R):!1)||I.every(S=>Le(S.placement)===y?S.overflows[0]>0:!0)))return{data:{index:L,overflows:I},reset:{placement:R}};let k=(A=I.filter(B=>B.overflows[0]<=0).sort((B,S)=>B.overflows[1]-S.overflows[1])[0])==null?void 0:A.placement;if(!k)switch(m){case"bestFit":{var N;let B=(N=I.filter(S=>{if(E){let _=Le(S.placement);return _===y||_==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(_=>_>0).reduce((_,D)=>_+D,0)]).sort((S,_)=>S[1]-_[1])[0])==null?void 0:N[0];B&&(k=B);break}case"initialPlacement":k=a;break}if(n!==k)return{reset:{placement:k}}}return{}}}};function nl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sl(e){return qa.some(t=>e[t]>=0)}var cl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o,platform:r}=t,{strategy:n="referenceHidden",...s}=it(e,t);switch(n){case"referenceHidden":{let i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=nl(i,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:sl(a)}}}case"escaped":{let i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=nl(i,o.floating);return{data:{escapedOffsets:a,escaped:sl(a)}}}default:return{}}}}};var ul=new Set(["left","top"]);async function $p(e,t){let{placement:o,platform:r,elements:n}=e,s=await(r.isRTL==null?void 0:r.isRTL(n.floating)),i=Re(o),a=at(o),u=Le(o)==="y",c=ul.has(i)?-1:1,l=s&&u?-1:1,f=it(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof d=="number"&&(m=a==="end"?d*-1:d),u?{x:m*l,y:p*c}:{x:p*c,y:m*l}}var fl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:s,placement:i,middlewareData:a}=t,u=await $p(t,e);return i===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:s+u.y,data:{...u,placement:i}}}}},dl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...c}=it(e,t),l={x:o,y:r},f=await s.detectOverflow(t,c),p=Le(Re(n)),m=Vr(p),d=l[m],h=l[p];if(i){let b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",v=d+f[b],w=d-f[y];d=Jo(v,d,w)}if(a){let b=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=h+f[b],w=h-f[y];h=Jo(v,h,w)}let x=u.fn({...t,[m]:d,[p]:h});return{...x,data:{x:x.x-o,y:x.y-r,enabled:{[m]:i,[p]:a}}}}}},pl=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:r,placement:n,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=it(e,t),l={x:o,y:r},f=Le(n),p=Vr(f),m=l[p],d=l[f],h=it(a,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){let v=p==="y"?"height":"width",w=s.reference[p]-s.floating[v]+x.mainAxis,T=s.reference[p]+s.reference[v]-x.mainAxis;m<w?m=w:m>T&&(m=T)}if(c){var b,y;let v=p==="y"?"width":"height",w=ul.has(Re(n)),T=s.reference[f]-s.floating[v]+(w&&((b=i.offset)==null?void 0:b[f])||0)+(w?0:x.crossAxis),E=s.reference[f]+s.reference[v]+(w?0:((y=i.offset)==null?void 0:y[f])||0)-(w?x.crossAxis:0);d<T?d=T:d>E&&(d=E)}return{[p]:m,[f]:d}}}},ml=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,r;let{placement:n,rects:s,platform:i,elements:a}=t,{apply:u=()=>{},...c}=it(e,t),l=await i.detectOverflow(t,c),f=Re(n),p=at(n),m=Le(n)==="y",{width:d,height:h}=s.floating,x,b;f==="top"||f==="bottom"?(x=f,b=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,x=p==="end"?"top":"bottom");let y=h-l.top-l.bottom,v=d-l.left-l.right,w=Lt(h-l[x],y),T=Lt(d-l[b],v),E=!t.middlewareData.shift,C=w,P=T;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(P=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=y),E&&!p){let I=Ie(l.left,0),Y=Ie(l.right,0),A=Ie(l.top,0),N=Ie(l.bottom,0);m?P=d-2*(I!==0||Y!==0?I+Y:Ie(l.left,l.right)):C=h-2*(A!==0||N!==0?A+N:Ie(l.top,l.bottom))}await u({...t,availableWidth:P,availableHeight:C});let O=await i.getDimensions(a.floating);return d!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}};function xl(e){let t=Te(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=xe(e),s=n?e.offsetWidth:o,i=n?e.offsetHeight:r,a=Bt(o)!==s||Bt(r)!==i;return a&&(o=s,r=i),{width:o,height:r,$:a}}function ds(e){return H(e)?e:e.contextElement}function Eo(e){let t=ds(e);if(!xe(t))return st(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:s}=xl(t),i=(s?Bt(o.width):o.width)/r,a=(s?Bt(o.height):o.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}var Yp=st(0);function bl(e){let t=le(e);return!Nr()||!t.visualViewport?Yp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zp(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==le(e)?!1:t}function oo(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),s=ds(e),i=st(1);t&&(r?H(r)&&(i=Eo(r)):i=Eo(e));let a=zp(s,o,r)?bl(s):st(0),u=(n.left+a.x)/i.x,c=(n.top+a.y)/i.y,l=n.width/i.x,f=n.height/i.y;if(s){let p=le(s),m=r&&H(r)?le(r):r,d=p,h=Dr(d);for(;h&&r&&m!==d;){let x=Eo(h),b=h.getBoundingClientRect(),y=Te(h),v=b.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,w=b.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;u*=x.x,c*=x.y,l*=x.x,f*=x.y,u+=v,c+=w,d=le(h),h=Dr(d)}}return eo({width:l,height:f,x:u,y:c})}function Ur(e,t){let o=qo(e).scrollLeft;return t?t.left+o:oo(tt(e)).left+o}function wl(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-Ur(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function qp(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,s=n==="fixed",i=tt(r),a=t?zo(t.floating):!1;if(r===i||a&&s)return o;let u={scrollLeft:0,scrollTop:0},c=st(1),l=st(0),f=xe(r);if((f||!f&&!s)&&((Jt(r)!=="body"||bo(i))&&(u=qo(r)),f)){let m=oo(r);c=Eo(r),l.x=m.x+r.clientLeft,l.y=m.y+r.clientTop}let p=i&&!f&&!s?wl(i,u):st(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-u.scrollLeft*c.x+l.x+p.x,y:o.y*c.y-u.scrollTop*c.y+l.y+p.y}}function Kp(e){return Array.from(e.getClientRects())}function Gp(e){let t=tt(e),o=qo(e),r=e.ownerDocument.body,n=Ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-o.scrollLeft+Ur(e),a=-o.scrollTop;return Te(r).direction==="rtl"&&(i+=Ie(t.clientWidth,r.clientWidth)-n),{width:n,height:s,x:i,y:a}}var gl=25;function Xp(e,t){let o=le(e),r=tt(e),n=o.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,u=0;if(n){s=n.width,i=n.height;let l=Nr();(!l||l&&t==="fixed")&&(a=n.offsetLeft,u=n.offsetTop)}let c=Ur(r);if(c<=0){let l=r.ownerDocument,f=l.body,p=getComputedStyle(f),m=l.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,d=Math.abs(r.clientWidth-f.clientWidth-m);d<=gl&&(s-=d)}else c<=gl&&(s+=c);return{width:s,height:i,x:a,y:u}}function Jp(e,t){let o=oo(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,s=xe(e)?Eo(e):st(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=n*s.x,c=r*s.y;return{width:i,height:a,x:u,y:c}}function hl(e,t,o){let r;if(t==="viewport")r=Xp(e,o);else if(t==="document")r=Gp(tt(e));else if(H(t))r=Jp(t,o);else{let n=bl(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eo(r)}function vl(e,t){let o=et(e);return o===t||!H(o)||ot(o)?!1:Te(o).position==="fixed"||vl(o,t)}function Zp(e,t){let o=t.get(e);if(o)return o;let r=Nt(e,[],!1).filter(a=>H(a)&&Jt(a)!=="body"),n=null,s=Te(e).position==="fixed",i=s?et(e):e;for(;H(i)&&!ot(i);){let a=Te(i),u=Ar(i);!u&&a.position==="fixed"&&(n=null),(s?!u&&!n:!u&&a.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||bo(i)&&!u&&vl(e,i))?r=r.filter(l=>l!==i):n=a,i=et(i)}return t.set(e,r),r}function Qp(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,i=[...o==="clippingAncestors"?zo(t)?[]:Zp(t,this._c):[].concat(o),r],a=hl(t,i[0],n),u=a.top,c=a.right,l=a.bottom,f=a.left;for(let p=1;p<i.length;p++){let m=hl(t,i[p],n);u=Ie(m.top,u),c=Lt(m.right,c),l=Lt(m.bottom,l),f=Ie(m.left,f)}return{width:c-f,height:l-u,x:f,y:u}}function em(e){let{width:t,height:o}=xl(e);return{width:t,height:o}}function tm(e,t,o){let r=xe(t),n=tt(t),s=o==="fixed",i=oo(e,!0,s,t),a={scrollLeft:0,scrollTop:0},u=st(0);function c(){u.x=Ur(n)}if(r||!r&&!s)if((Jt(t)!=="body"||bo(n))&&(a=qo(t)),r){let m=oo(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else n&&c();s&&!r&&n&&c();let l=n&&!r&&!s?wl(n,a):st(0),f=i.left+a.scrollLeft-u.x-l.x,p=i.top+a.scrollTop-u.y-l.y;return{x:f,y:p,width:i.width,height:i.height}}function fs(e){return Te(e).position==="static"}function yl(e,t){if(!xe(e)||Te(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return tt(e)===o&&(o=o.ownerDocument.body),o}function Rl(e,t){let o=le(e);if(zo(e))return o;if(!xe(e)){let n=et(e);for(;n&&!ot(n);){if(H(n)&&!fs(n))return n;n=et(n)}return o}let r=yl(e,t);for(;r&&Ta(r)&&fs(r);)r=yl(r,t);return r&&ot(r)&&fs(r)&&!Ar(r)?o:r||Sa(e)||o}var om=async function(e){let t=this.getOffsetParent||Rl,o=this.getDimensions,r=await o(e.floating);return{reference:tm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rm(e){return Te(e).direction==="rtl"}var ps={convertOffsetParentRelativeRectToViewportRelativeRect:qp,getDocumentElement:tt,getClippingRect:Qp,getOffsetParent:Rl,getElementRects:om,getClientRects:Kp,getDimensions:em,getScale:Eo,isElement:H,isRTL:rm};function El(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nm(e,t){let o=null,r,n=tt(e);function s(){var a;clearTimeout(r),(a=o)==null||a.disconnect(),o=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();let c=e.getBoundingClientRect(),{left:l,top:f,width:p,height:m}=c;if(a||t(),!p||!m)return;let d=Xo(f),h=Xo(n.clientWidth-(l+p)),x=Xo(n.clientHeight-(f+m)),b=Xo(l),v={rootMargin:-d+"px "+-h+"px "+-x+"px "+-b+"px",threshold:Ie(0,Lt(1,u))||1},w=!0;function T(E){let C=E[0].intersectionRatio;if(C!==u){if(!w)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!El(c,e.getBoundingClientRect())&&i(),w=!1}try{o=new IntersectionObserver(T,{...v,root:n.ownerDocument})}catch{o=new IntersectionObserver(T,v)}o.observe(e)}return i(!0),s}function er(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=ds(e),l=n||s?[...c?Nt(c):[],...t?Nt(t):[]]:[];l.forEach(b=>{n&&b.addEventListener("scroll",o,{passive:!0}),s&&b.addEventListener("resize",o)});let f=c&&a?nm(c,o):null,p=-1,m=null;i&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),o()}),c&&!u&&m.observe(c),t&&m.observe(t));let d,h=u?oo(e):null;u&&x();function x(){let b=oo(e);h&&!El(h,b)&&o(),h=b,d=requestAnimationFrame(x)}return o(),()=>{var b;l.forEach(y=>{n&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),f?.(),(b=m)==null||b.disconnect(),m=null,u&&cancelAnimationFrame(d)}}var Tl=fl;var Sl=dl,Cl=ll,Pl=ml,Ol=cl;var _l=pl,Wr=(e,t,o)=>{let r=new Map,n={platform:ps,...o},s={...n.platform,_c:r};return al(e,t,{...n,platform:s})};var ge=g(V(),1),Il=g(V(),1),Al=g(Dt(),1),im=typeof document<"u",am=function(){},$r=im?Il.useLayoutEffect:am;function Yr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(!Yr(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=o;r--!==0;){let s=n[r];if(!(s==="_owner"&&e.$$typeof)&&!Yr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Nl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kl(e,t){let o=Nl(e);return Math.round(t*o)/o}function ms(e){let t=ge.useRef(e);return $r(()=>{t.current=e}),t}function Dl(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[l,f]=ge.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ge.useState(r);Yr(p,r)||m(r);let[d,h]=ge.useState(null),[x,b]=ge.useState(null),y=ge.useCallback(S=>{S!==E.current&&(E.current=S,h(S))},[]),v=ge.useCallback(S=>{S!==C.current&&(C.current=S,b(S))},[]),w=s||d,T=i||x,E=ge.useRef(null),C=ge.useRef(null),P=ge.useRef(l),O=u!=null,I=ms(u),Y=ms(n),A=ms(c),N=ge.useCallback(()=>{if(!E.current||!C.current)return;let S={placement:t,strategy:o,middleware:p};Y.current&&(S.platform=Y.current),Wr(E.current,C.current,S).then(_=>{let D={..._,isPositioned:A.current!==!1};L.current&&!Yr(P.current,D)&&(P.current=D,Al.flushSync(()=>{f(D)}))})},[p,t,o,Y,A]);$r(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(S=>({...S,isPositioned:!1})))},[c]);let L=ge.useRef(!1);$r(()=>(L.current=!0,()=>{L.current=!1}),[]),$r(()=>{if(w&&(E.current=w),T&&(C.current=T),w&&T){if(I.current)return I.current(w,T,N);N()}},[w,T,N,I,O]);let R=ge.useMemo(()=>({reference:E,floating:C,setReference:y,setFloating:v}),[y,v]),k=ge.useMemo(()=>({reference:w,floating:T}),[w,T]),B=ge.useMemo(()=>{let S={position:o,left:0,top:0};if(!k.floating)return S;let _=kl(k.floating,l.x),D=kl(k.floating,l.y);return a?{...S,transform:"translate("+_+"px, "+D+"px)",...Nl(k.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:_,top:D}},[o,a,k.floating,l.x,l.y]);return ge.useMemo(()=>({...l,update:N,refs:R,elements:k,floatingStyles:B}),[l,N,R,k,B])}var gs=(e,t)=>{let o=Tl(e);return{name:o.name,fn:o.fn,options:[e,t]}},hs=(e,t)=>{let o=Sl(e);return{name:o.name,fn:o.fn,options:[e,t]}},ys=(e,t)=>({fn:_l(e).fn,options:[e,t]}),xs=(e,t)=>{let o=Cl(e);return{name:o.name,fn:o.fn,options:[e,t]}},bs=(e,t)=>{let o=Pl(e);return{name:o.name,fn:o.fn,options:[e,t]}};var ws=(e,t)=>{let o=Ol(e);return{name:o.name,fn:o.fn,options:[e,t]}};var Co=g(V(),1),Xl=g(Dt(),1);var Kl=g(V(),1);var q=(e,t,o,r,n,s,...i)=>{if(i.length>0)throw new Error(Ne(1));let a;if(e&&t&&o&&r&&n&&s)a=(u,c,l,f)=>{let p=e(u,c,l,f),m=t(u,c,l,f),d=o(u,c,l,f),h=r(u,c,l,f),x=n(u,c,l,f);return s(p,m,d,h,x,c,l,f)};else if(e&&t&&o&&r&&n)a=(u,c,l,f)=>{let p=e(u,c,l,f),m=t(u,c,l,f),d=o(u,c,l,f),h=r(u,c,l,f);return n(p,m,d,h,c,l,f)};else if(e&&t&&o&&r)a=(u,c,l,f)=>{let p=e(u,c,l,f),m=t(u,c,l,f),d=o(u,c,l,f);return r(p,m,d,c,l,f)};else if(e&&t&&o)a=(u,c,l,f)=>{let p=e(u,c,l,f),m=t(u,c,l,f);return o(p,m,c,l,f)};else if(e&&t)a=(u,c,l,f)=>{let p=e(u,c,l,f);return t(p,c,l,f)};else if(e)a=e;else throw new Error("Missing arguments");return a};var zl=g(V(),1),Cs=g(Rs(),1),ql=g(Hl(),1);var Ul=g(V(),1);var Es=[],Ts;function Wl(){return Ts}function $l(e){Es.push(e)}function Ss(e){let t=(o,r)=>{let n=ve(Sm).current,s;try{Ts=n;for(let i of Es)i.before(n);s=e(o,r);for(let i of Es)i.after(n);n.didInitialize=!0}finally{Ts=void 0}return s};return t.displayName=e.displayName||e.name,t}function Yl(e){return Ul.forwardRef(Ss(e))}function Sm(){return{didInitialize:!1}}var Cm=go(19),Pm=Cm?_m:km;function qr(e,t,o,r,n){return Pm(e,t,o,r,n)}function Om(e,t,o,r,n){let s=zl.useCallback(()=>t(e.getSnapshot(),o,r,n),[e,t,o,r,n]);return(0,Cs.useSyncExternalStore)(e.subscribe,s,s)}$l({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let o=0;o<e.syncHooks.length;o+=1){let r=e.syncHooks[o],n=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,n)||(t=!0,r.value=n)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let o=new Set;for(let n of e.syncHooks)o.add(n.store);let r=[];for(let n of o)r.push(n.subscribe(t));return()=>{for(let n of r)n()}}),(0,Cs.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function _m(e,t,o,r,n){let s=Wl();if(!s)return Om(e,t,o,r,n);let i=s.syncIndex;s.syncIndex+=1;let a;return s.didInitialize?(a=s.syncHooks[i],(a.store!==e||a.selector!==t||!Object.is(a.a1,o)||!Object.is(a.a2,r)||!Object.is(a.a3,n))&&(a.store!==e&&(s.didChangeStore=!0),a.store=e,a.selector=t,a.a1=o,a.a2=r,a.a3=n,a.value=t(e.getSnapshot(),o,r,n))):(a={store:e,selector:t,a1:o,a2:r,a3:n,value:t(e.getSnapshot(),o,r,n)},s.syncHooks.push(a)),a.value}function km(e,t,o,r,n){return(0,ql.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,o,r,n))}var Kr=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let o=this.updateTick;for(let r of this.listeners){if(o!==this.updateTick)return;r(t)}}update(t){for(let o in t)if(!Object.is(this.state[o],t[o])){this.setState({...this.state,...t});return}}set(t,o){Object.is(this.state[t],o)||this.setState({...this.state,[t]:o})}notifyAll(){let t={...this.state};this.setState(t)}use(t,o,r,n){return qr(this,t,o,r,n)}};var ro=g(V(),1);var So=class extends Kr{constructor(t,o={},r){super(t),this.context=o,this.selectors=r}useSyncedValue(t,o){ro.useDebugValue(t);let r=this;F(()=>{r.state[t]!==o&&r.set(t,o)},[r,t,o])}useSyncedValueWithCleanup(t,o){let r=this;F(()=>(r.state[t]!==o&&r.set(t,o),()=>{r.set(t,void 0)}),[r,t,o])}useSyncedValues(t){let o=this,r=Object.values(t);F(()=>{o.update(t)},[o,...r])}useControlledProp(t,o){ro.useDebugValue(t);let r=this,n=o!==void 0;F(()=>{n&&!Object.is(r.state[t],o)&&r.setState({...r.state,[t]:o})},[r,t,o,n])}select(t,o,r,n){let s=this.selectors[t];return s(this.state,o,r,n)}useState(t,o,r,n){return ro.useDebugValue(t),qr(this,this.selectors[t],o,r,n)}useContextCallback(t,o){ro.useDebugValue(t);let r=W(o??It);this.context[t]=r}useStateSetter(t){let o=ro.useRef(void 0);return o.current===void 0&&(o.current=r=>{this.set(t,r)}),o.current}observe(t,o){let r;typeof t=="function"?r=t:r=this.selectors[t];let n=r(this.state);return o(n,n,this),this.subscribe(s=>{let i=r(s);if(!Object.is(n,i)){let a=n;n=i,o(i,a,this)}})}};var Im={open:q(e=>e.open),transitionStatus:q(e=>e.transitionStatus),domReferenceElement:q(e=>e.domReferenceElement),referenceElement:q(e=>e.positionReference??e.referenceElement),floatingElement:q(e=>e.floatingElement),floatingId:q(e=>e.floatingId)},pt=class extends So{constructor(t){let{syncOnly:o,nested:r,onOpenChange:n,triggerElements:s,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:tl(),nested:r,triggerElements:s},Im),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&Fa(o))&&(this.context.dataRef.current.openEvent=t?o:void 0)};dispatchOpenChange=(t,o)=>{this.syncOpenEvent(t,o.event);let r={open:t,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",r)};setOpen=(t,o)=>{if(this.syncOnly){this.context.onOpenChange?.(t,o);return}this.dispatchOpenChange(t,o),this.context.onOpenChange?.(t,o)}};function Gl(e){let{popupStore:t,treatPopupAsFloatingElement:o=!1,floatingRootContext:r,floatingId:n,nested:s,onOpenChange:i}=e,a=t.useState("open"),u=t.useState("activeTriggerElement"),c=t.useState(o?"popupElement":"positionerElement"),l=t.context.triggerElements,f=i,p=Kl.useRef(null);r===void 0&&p.current===null&&(p.current=new pt({open:a,transitionStatus:void 0,referenceElement:u,floatingElement:c,triggerElements:l,onOpenChange:f,floatingId:n,syncOnly:!0,nested:s}));let m=r??p.current;return t.useSyncedValue("floatingId",n),F(()=>{let d={open:a,floatingId:n,referenceElement:u,floatingElement:c};H(u)&&(d.domReferenceElement=u),m.state.positionReference===m.state.referenceElement&&(d.positionReference=u),m.update(d)},[a,n,u,c,m]),m.context.onOpenChange=f,m.context.nested=s,m}var Jl={tabIndex:-1,[os]:""};function Zl(e,t,o=!1){let r=At(),n=Ro()!=null,s=Co.useRef(null);e===void 0&&s.current===null&&(s.current=t(r,n));let i=e??s.current;return Gl({popupStore:i,treatPopupAsFloatingElement:o,floatingRootContext:i.state.floatingRootContext,floatingId:r,nested:n,onOpenChange:i.setOpen}),{store:i,internalStore:s.current}}function Am(e,t){let o=Co.useRef(null),r=Co.useRef(null);return Co.useCallback(n=>{if(e===void 0)return;let s=!1;if(o.current!==null){let i=o.current,a=r.current,u=t.context.triggerElements.getById(i);a&&u===a&&(t.context.triggerElements.delete(i),s=!0),o.current=null,r.current=null}if(n!==null&&(o.current=e,r.current=n,t.context.triggerElements.add(e,n),s=!0),s){let i=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==i&&t.set("triggerCount",i)}},[t,e])}function Nm(e,t,o,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let n=o?.id??null;(n||t)&&(e.activeTriggerId=n,e.activeTriggerElement=o??null)}function Dm(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Ql(e,t,o,r={}){let n=o.reason,s=n===$.triggerHover,i=t&&n===$.triggerFocus,a=!t&&(n===$.triggerPress||n===$.escapeKey),u=Dm(o);if(e.context.onOpenChange?.(t,o),o.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,o);let c=()=>{let l={...r.extraState,open:t};i?l.instantType="focus":a?l.instantType="dismiss":s&&(l.instantType=void 0),Nm(l,t,o.trigger,u()),e.update(l)};s?Xl.flushSync(c):c()}function ec(e,t,o,r){Aa(()=>{t===void 0&&e.state.open===!1&&o&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function tc(e,t,o,r){let n=o.useState("isMountedByTrigger",e),s=Am(e,o),i=W(a=>{if(s(a),!a)return;let u=o.select("open"),c=o.select("activeTriggerId");if(c===e){o.update({activeTriggerElement:a,...u?r:null});return}c==null&&u&&o.update({activeTriggerId:e,activeTriggerElement:a,...r})});return F(()=>{n&&o.update({activeTriggerElement:t.current,...r})},[n,o,t,...Object.values(r)]),{registerTrigger:i,isMountedByThisTrigger:n}}function oc(e,t={}){let{closeOnActiveTriggerUnmount:o=!1}=t,r=e.useState("open"),n=e.useState("triggerCount");F(()=>{if(!r){e.state.triggerCount!==0&&e.set("triggerCount",0);return}let s=e.context.triggerElements.size,i={};e.state.triggerCount!==s&&(i.triggerCount=s);let a=e.select("activeTriggerId"),u=null;if(a){let c=e.context.triggerElements.getById(a);c?c!==e.state.activeTriggerElement&&(i.activeTriggerElement=c):u=a}if(!u&&!a&&s===1){let c=e.context.triggerElements.entries().next();if(!c.done){let[l,f]=c.value;i.activeTriggerId=l,i.activeTriggerElement=f}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),u&&o&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===u&&!e.context.triggerElements.getById(u)){let c=J($.none);e.setOpen(!1,c),c.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,n,o])}function rc(e,t,o){let{mounted:r,setMounted:n,transitionStatus:s}=Ra(e),i=t.useState("preventUnmountingOnClose"),a=e?!1:i;t.useSyncedValues({mounted:r,transitionStatus:s,preventUnmountingOnClose:a});let u=W(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)});return Mr({enabled:r&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:s}}function nc(e,t){e.useSyncedValues(t),F(()=>()=>{e.update({activeTriggerProps:fe,inactiveTriggerProps:fe,popupProps:fe})},[e])}var jt=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,o){let r=this.idMap.get(t);r!==o&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(o),this.idMap.set(t,o))}delete(t){let o=this.idMap.get(t);o&&(this.elementsSet.delete(o),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(let o of this.elementsSet)if(t(o))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function sc(){return new pt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new jt,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function ac(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:sc(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:fe,inactiveTriggerProps:fe,popupProps:fe}}function lc(e,t,o=!1){return new pt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:o,onOpenChange:void 0})}var tr=q(e=>e.triggerIdProp??e.activeTriggerId),Ps=q(e=>e.openProp??e.open),ic=q(e=>(e.popupElement?.id??e.floatingId)||void 0);function cc(e,t){return t!==void 0&&Ps(e)&&tr(e)===t}function Mm(e,t){return cc(e,t)?!0:t!==void 0&&Ps(e)&&tr(e)==null&&e.triggerCount===1}var uc={open:Ps,mounted:q(e=>e.mounted),transitionStatus:q(e=>e.transitionStatus),floatingRootContext:q(e=>e.floatingRootContext),triggerCount:q(e=>e.triggerCount),preventUnmountingOnClose:q(e=>e.preventUnmountingOnClose),payload:q(e=>e.payload),activeTriggerId:tr,activeTriggerElement:q(e=>e.mounted?e.activeTriggerElement:null),popupId:ic,isTriggerActive:q((e,t)=>t!==void 0&&tr(e)===t),isOpenedByTrigger:q((e,t)=>cc(e,t)),isMountedByTrigger:q((e,t)=>t!==void 0&&tr(e)===t&&e.mounted),triggerProps:q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:q((e,t)=>Mm(e,t)?ic(e):void 0),popupProps:q(e=>e.popupProps),popupElement:q(e=>e.popupElement),positionerElement:q(e=>e.positionerElement)};function fc(e){let{open:t=!1,onOpenChange:o,elements:r={}}=e,n=At(),s=Ro()!=null,i=ve(()=>new pt({open:t,transitionStatus:void 0,onOpenChange:o,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new jt,floatingId:n,syncOnly:!1,nested:s})).current;return F(()=>{let a={open:t,floatingId:n};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=H(r.reference)?r.reference:null),r.floating!==void 0&&(a.floatingElement=r.floating),i.update(a)},[t,n,r.reference,r.floating,i]),i.context.onOpenChange=o,i.context.nested=s,i}function Os(e={}){let{nodeId:t,externalTree:o}=e,r=fc(e),n=e.rootContext||r,s=n.useState("referenceElement"),i=n.useState("floatingElement"),a=n.useState("domReferenceElement"),u=n.useState("open"),c=n.useState("floatingId"),[l,f]=Ce.useState(null),[p,m]=Ce.useState(void 0),[d,h]=Ce.useState(void 0),x=Ce.useRef(null),b=Ft(o),y=Ce.useMemo(()=>({reference:s,floating:i,domReference:a}),[s,i,a]),v=Dl({...e,elements:{...y,...l&&{reference:l}}}),w=H(p)?p:null,T=d===void 0?n.state.floatingElement:d;n.useSyncedValue("referenceElement",p??null),n.useSyncedValue("domReferenceElement",p===void 0?a:w),n.useSyncedValue("floatingElement",T);let E=Ce.useCallback(A=>{let N=H(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;f(N),v.refs.setReference(N)},[v.refs]),C=Ce.useCallback(A=>{(H(A)||A===null)&&(x.current=A,m(A)),(H(v.refs.reference.current)||v.refs.reference.current===null||A!==null&&!H(A))&&v.refs.setReference(A)},[v.refs,m]),P=Ce.useCallback(A=>{h(A),v.refs.setFloating(A)},[v.refs]),O=Ce.useMemo(()=>({...v.refs,setReference:C,setFloating:P,setPositionReference:E,domReference:x}),[v.refs,C,P,E]),I=Ce.useMemo(()=>({...v.elements,domReference:a}),[v.elements,a]),Y=Ce.useMemo(()=>({...v,dataRef:n.context.dataRef,open:u,onOpenChange:n.setOpen,events:n.context.events,floatingId:c,refs:O,elements:I,nodeId:t,rootStore:n}),[v,O,I,t,n,u,c]);return F(()=>{a&&(x.current=a)},[a]),F(()=>{n.context.dataRef.current.floatingContext=Y;let A=b?.nodesRef.current.find(N=>N.id===t);A&&(A.context=Y)}),Ce.useMemo(()=>({...v,context:Y,refs:O,elements:I,rootStore:n}),[v,O,I,Y,n])}var mt=g(V(),1);var _s=Rt.os.mac&&Rt.engine.webkit;function ks(e,t={}){let{enabled:o=!0,delay:r}=t,n="rootStore"in e?e.rootStore:e,{events:s,dataRef:i}=n.context,a=mt.useRef(!1),u=mt.useRef(null),c=mt.useRef(!0),l=rt();mt.useEffect(()=>{let p=n.select("domReferenceElement");if(!o)return;let m=le(p);function d(){let b=n.select("domReferenceElement");!n.select("open")&&xe(b)&&b===Lr(be(b))&&(a.current=!0)}function h(){c.current=!0}function x(){c.current=!1}return nt(ee(m,"blur",d),_s&&ee(m,"keydown",h,!0),_s&&ee(m,"pointerdown",x,!0))},[n,o]),mt.useEffect(()=>{if(!o)return;function p(m){if(m.reason===$.triggerPress||m.reason===$.escapeKey){let d=n.select("domReferenceElement");H(d)&&(u.current=d,a.current=!0)}}return s.on("openchange",p),()=>{s.off("openchange",p)}},[s,o,n]);let f=mt.useMemo(()=>{function p(){a.current=!1,u.current=null}return{onMouseLeave(){p()},onFocus(m){let d=m.currentTarget;if(a.current){if(u.current===d)return;p()}let h=ke(m.nativeEvent);if(H(h)){if(_s&&!m.relatedTarget){if(!c.current&&!Va(h))return}else if(!Ha(h))return}let x=Mt(m.relatedTarget,n.context.triggerElements),{nativeEvent:b,currentTarget:y}=m,v=typeof r=="function"?r():r;if(n.select("open")&&x||v===0||v===void 0){n.setOpen(!0,J($.triggerFocus,b,y));return}l.start(v,()=>{a.current||n.setOpen(!0,J($.triggerFocus,b,y))})},onBlur(m){p();let d=m.relatedTarget,h=m.nativeEvent,x=H(d)&&d.hasAttribute(vo("focus-guard"))&&d.getAttribute("data-type")==="outside";l.start(0,()=>{let b=n.select("domReferenceElement"),y=Lr(be(b));!d&&y===b||te(i.current.floatingContext?.refs.floating.current,y)||te(b,y)||x||Mt(d??y,n.context.triggerElements)||n.setOpen(!1,J($.triggerFocus,h))})}}},[i,r,n,l]);return mt.useMemo(()=>o?{reference:f,trigger:f}:{},[o,f])}var As=g(V(),1);var Is=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new $e,this.restTimeout=new $e,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Gr=new WeakMap;function Po(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Gr.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Gr.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Xr(e,t){let{scopeElement:o,referenceElement:r,floatingElement:n}=t,s=Gr.get(o);s&&s!==e&&Po(s),Po(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=n,Gr.set(o,e),o.style.pointerEvents="none",r.style.pointerEvents="auto",n.style.pointerEvents="auto"}function Oo(e){let t=e.context.dataRef.current,o=ve(()=>t.hoverInteractionState??Is.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=o),ho(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Ns(e,t={}){let{enabled:o=!0,closeDelay:r=0,nodeId:n}=t,s="rootStore"in e?e.rootStore:e,i=s.useState("open"),a=s.useState("floatingElement"),u=s.useState("domReferenceElement"),{dataRef:c}=s.context,l=Ft(),f=Ro(),p=Oo(s),m=rt(),d=W(()=>Fr(c.current.openEvent?.type,p.interactedInside)),h=W(()=>Ua(c.current.openEvent?.type)),x=W(()=>{Po(p)});F(()=>{i||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,x())},[i,p,x]),As.useEffect(()=>x,[x]),F(()=>{if(o&&i&&p.handleCloseOptions?.blockPointerEvents&&h()&&H(u)&&a){let b=u,y=a,v=be(a),w=l?.nodesRef.current.find(P=>P.id===f)?.context?.elements.floating;w&&(w.style.pointerEvents="");let T=p.pointerEventsScopeElement!==y?p.pointerEventsScopeElement:null,E=w!==y?w:null,C=p.handleCloseOptions?.getScope?.()??T??E??b.closest("[data-rootownerid]")??v.body;return Xr(p,{scopeElement:C,referenceElement:b,floatingElement:y}),()=>{x()}}},[o,i,u,a,p,h,l,f,x]),As.useEffect(()=>{if(!o)return;function b(){return!!(l&&f&&St(l.nodesRef.current,f).length>0)}function y(P){let O=Tt(r,"close",p.pointerType),I=()=>{s.setOpen(!1,J($.triggerHover,P)),l?.events.emit("floating.closed",P)};O?p.openChangeTimeout.start(O,I):(p.openChangeTimeout.clear(),I())}function v(P){let O=ke(P);if(!ns(O)){p.interactedInside=!1;return}p.interactedInside=O?.closest("[aria-haspopup]")!=null}function w(){p.openChangeTimeout.clear(),m.clear(),l?.events.off("floating.closed",E),x()}function T(P){if(b()&&l){l.events.on("floating.closed",E);return}if(Mt(P.relatedTarget,s.context.triggerElements))return;let O=c.current.floatingContext?.nodeId??n,I=P.relatedTarget;if(!(l&&O&&H(I)&&St(l.nodesRef.current,O,!1).some(A=>te(A.context?.elements.floating,I)))){if(p.handler){p.handler(P);return}x(),h()&&!d()&&y(P)}}function E(P){!l||!f||b()||m.start(0,()=>{l.events.off("floating.closed",E),s.setOpen(!1,J($.triggerHover,P)),l.events.emit("floating.closed",P)})}let C=a;return nt(C&&ee(C,"mouseenter",w),C&&ee(C,"mouseleave",T),C&&ee(C,"pointerdown",v,!0),()=>{l?.events.off("floating.closed",E)})},[o,a,s,c,r,n,h,d,x,p,l,f,m])}var Vt=g(V(),1),dc=g(Dt(),1);var Lm={current:null};function Ds(e,t={}){let{enabled:o=!0,delay:r=0,handleClose:n=null,mouseOnly:s=!1,restMs:i=0,move:a=!0,triggerElementRef:u=Lm,externalTree:c,isActiveTrigger:l=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m}=t,d="rootStore"in e?e.rootStore:e,{dataRef:h,events:x}=d.context,b=Ft(c),y=Oo(d),v=Vt.useRef(!1),w=Me(n),T=Me(r),E=Me(i),C=Me(o),P=Me(m),O=Me(p),I=W(()=>Fr(h.current.openEvent?.type,y.interactedInside)),Y=W(()=>P.current?.()!==!1),A=W((R,k,B)=>{let S=d.context.triggerElements;if(S.hasElement(k))return!R||!te(R,k);if(!H(B))return!1;let _=B;return S.hasMatchingElement(D=>te(D,_))&&(!R||!te(R,_))}),N=W(()=>{if(!y.handler)return;be(d.select("domReferenceElement")).removeEventListener("mousemove",y.handler),y.handler=void 0}),L=W(()=>{Po(y)});return l&&(y.handleCloseOptions=w.current?.__options),Vt.useEffect(()=>N,[N]),Vt.useEffect(()=>{if(!o)return;function R(k){k.open?v.current=!1:(v.current=k.reason===$.triggerHover,N(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return x.on("openchange",R),()=>{x.off("openchange",R)}},[o,x,y,N]),Vt.useEffect(()=>{if(!o)return;function R(_,D=!0){let G=Tt(T.current,"close",y.pointerType);G?y.openChangeTimeout.start(G,()=>{d.setOpen(!1,J($.triggerHover,_)),b?.events.emit("floating.closed",_)}):D&&(y.openChangeTimeout.clear(),d.setOpen(!1,J($.triggerHover,_)),b?.events.emit("floating.closed",_))}let k=u.current??(l?d.select("domReferenceElement"):null);if(!H(k))return;function B(_){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,s&&!Et(y.pointerType))return;let D=ss(E.current),G=Tt(T.current,"open",y.pointerType),U=ke(_),Q=_.currentTarget??null,Z=d.select("domReferenceElement"),ne=Q;if(H(U)&&!d.context.triggerElements.hasElement(U)){for(let ue of d.context.triggerElements.elements())if(te(ue,U)){ne=ue;break}}H(Q)&&H(Z)&&!d.context.triggerElements.hasElement(Q)&&te(Q,Z)&&(ne=Z);let z=ne==null?!1:A(Z,ne,U),ie=d.select("open"),ae=O.current?.()??d.select("transitionStatus")==="ending",de=!ie&&ae&&v.current,Oe=!z&&H(ne)&&H(Z)&&te(Z,ne)&&de,we=D>0&&!G,K=z&&(ie||de)||Oe,ce=!ie||z;if(K){Y()&&d.setOpen(!0,J($.triggerHover,_,ne));return}we||(G?y.openChangeTimeout.start(G,()=>{ce&&Y()&&d.setOpen(!0,J($.triggerHover,_,ne))}):ce&&Y()&&d.setOpen(!0,J($.triggerHover,_,ne)))}function S(_){if(I()){L();return}N();let D=d.select("domReferenceElement"),G=be(D);y.restTimeout.clear(),y.restTimeoutPending=!1;let U=h.current.floatingContext??f?.();if(Mt(_.relatedTarget,d.context.triggerElements))return;if(w.current&&U){d.select("open")||y.openChangeTimeout.clear();let Z=u.current;y.handler=w.current({...U,tree:b,x:_.clientX,y:_.clientY,onClose(){L(),N(),C.current&&!I()&&Z===d.select("domReferenceElement")&&R(_,!0)}}),G.addEventListener("mousemove",y.handler),y.handler(_);return}(y.pointerType!=="touch"||!te(d.select("floatingElement"),_.relatedTarget))&&R(_)}return a?nt(ee(k,"mousemove",B,{once:!0}),ee(k,"mouseenter",B),ee(k,"mouseleave",S)):nt(ee(k,"mouseenter",B),ee(k,"mouseleave",S))},[N,L,h,T,d,o,w,y,l,A,I,s,a,E,u,b,C,f,O,Y]),Vt.useMemo(()=>{if(!o)return;function R(k){y.pointerType=k.pointerType}return{onPointerDown:R,onPointerEnter:R,onMouseMove(k){let{nativeEvent:B}=k,S=k.currentTarget,_=d.select("domReferenceElement"),D=d.select("open"),G=A(_,S,k.target);if(s&&!Et(y.pointerType))return;if(D&&G&&y.handleCloseOptions?.blockPointerEvents){let Z=d.select("floatingElement");if(Z){let ne=y.handleCloseOptions?.getScope?.()??S.ownerDocument.body;Xr(y,{scopeElement:ne,referenceElement:S,floatingElement:Z})}}let U=ss(E.current);if(D&&!G||U===0||!G&&y.restTimeoutPending&&k.movementX**2+k.movementY**2<2)return;y.restTimeout.clear();function Q(){if(y.restTimeoutPending=!1,I())return;let Z=d.select("open");!y.blockMouseMove&&(!Z||G)&&Y()&&d.setOpen(!0,J($.triggerHover,B,S))}y.pointerType==="touch"?dc.flushSync(()=>{Q()}):G&&D?Q():(y.restTimeoutPending=!0,y.restTimeout.start(U,Q))}}},[o,y,I,A,s,d,E,Y])}var pc=.1,Bm=pc*pc,re=.5;function Jr(e,t,o,r,n,s){return r>=t!=s>=t&&e<=(n-o)*(t-r)/(s-r)+o}function Zr(e,t,o,r,n,s,i,a,u,c){let l=!1;return Jr(e,t,o,r,n,s)&&(l=!l),Jr(e,t,n,s,i,a)&&(l=!l),Jr(e,t,i,a,u,c)&&(l=!l),Jr(e,t,u,c,o,r)&&(l=!l),l}function Fm(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function Qr(e,t,o,r,n,s){let i=Math.min(o,n),a=Math.max(o,n),u=Math.min(r,s),c=Math.max(r,s);return e>=i&&e<=a&&t>=u&&t<=c}function Ms(e={}){let{blockPointerEvents:t=!1}=e,o=new $e,r=({x:n,y:s,placement:i,elements:a,onClose:u,nodeId:c,tree:l})=>{let f=i?.split("-")[0],p=!1,m=null,d=null,h=typeof performance<"u"?performance.now():0;function x(y,v){let w=performance.now(),T=w-h;if(m===null||d===null||T===0)return m=y,d=v,h=w,!1;let E=y-m,C=v-d,P=E*E+C*C,O=T*T*Bm;return m=y,d=v,h=w,P<O}function b(){o.clear(),u()}return function(v){o.clear();let w=a.domReference,T=a.floating;if(!w||!T||f==null||n==null||s==null)return;let{clientX:E,clientY:C}=v,P=ke(v),O=v.type==="mouseleave",I=te(T,P),Y=te(w,P);if(I&&(p=!0,!O))return;if(Y&&(p=!1,!O)){p=!0;return}if(O&&H(v.relatedTarget)&&te(T,v.relatedTarget))return;function A(){return!!(l&&St(l.nodesRef.current,c).length>0)}function N(){A()||b()}if(A())return;let L=w.getBoundingClientRect(),R=T.getBoundingClientRect(),k=n>R.right-R.width/2,B=s>R.bottom-R.height/2,S=R.width>L.width,_=R.height>L.height,D=(S?L:R).left,G=(S?L:R).right,U=(_?L:R).top,Q=(_?L:R).bottom;if(f==="top"&&s>=L.bottom-1||f==="bottom"&&s<=L.top+1||f==="left"&&n>=L.right-1||f==="right"&&n<=L.left+1){N();return}let Z=!1;switch(f){case"top":Z=Qr(E,C,D,L.top+1,G,R.bottom-1);break;case"bottom":Z=Qr(E,C,D,R.top+1,G,L.bottom-1);break;case"left":Z=Qr(E,C,R.right-1,Q,L.left+1,U);break;case"right":Z=Qr(E,C,L.right-1,Q,R.left+1,U);break;default:}if(Z)return;if(p&&!Fm(E,C,L)){N();return}if(!O&&x(E,C)){N();return}let ne=!1;switch(f){case"top":{let z=S?re/2:re*4,ie=S||k?n+z:n-z,ae=S?n-z:k?n+z:n-z,de=s+re+1,Oe=k||S?R.bottom-re:R.top,we=k?S?R.bottom-re:R.top:R.bottom-re;ne=Zr(E,C,ie,de,ae,de,R.left,Oe,R.right,we);break}case"bottom":{let z=S?re/2:re*4,ie=S||k?n+z:n-z,ae=S?n-z:k?n+z:n-z,de=s-re,Oe=k||S?R.top+re:R.bottom,we=k?S?R.top+re:R.bottom:R.top+re;ne=Zr(E,C,ie,de,ae,de,R.left,Oe,R.right,we);break}case"left":{let z=_?re/2:re*4,ie=_||B?s+z:s-z,ae=_?s-z:B?s+z:s-z,de=n+re+1,Oe=B||_?R.right-re:R.left,we=B?_?R.right-re:R.left:R.right-re;ne=Zr(E,C,Oe,R.top,we,R.bottom,de,ie,de,ae);break}case"right":{let z=_?re/2:re*4,ie=_||B?s+z:s-z,ae=_?s-z:B?s+z:s-z,de=n-re,Oe=B||_?R.left+re:R.right,we=B?_?R.left+re:R.right:R.left+re;ne=Zr(E,C,de,ie,de,ae,Oe,R.top,we,R.bottom);break}default:}ne?p||o.start(40,N):N()}};return r.__options={...e,blockPointerEvents:t},r}var Ls=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Gt.startingStyle]="startingStyle",e[e.endingStyle=Gt.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),or=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),jm={[or.popupOpen]:""},_v={[or.popupOpen]:"",[or.pressed]:""},Vm={[Ls.open]:""},Hm={[Ls.closed]:""},Um={[Ls.anchorHidden]:""},mc={open(e){return e?jm:null}};var _o={open(e){return e?Vm:Hm},anchorHidden(e){return e?Um:null}};function gc(e){return go(19)?e:e?"true":void 0}var ze=g(V(),1);var Wm=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:c,padding:l=0,offsetParent:f="real"}=it(e,t)||{};if(c==null)return{};let p=Hr(l),m={x:o,y:r},d=Qo(n),h=Zo(d),x=await i.getDimensions(c),b=d==="y",y=b?"top":"left",v=b?"bottom":"right",w=b?"clientHeight":"clientWidth",T=s.reference[h]+s.reference[d]-m[d]-s.floating[h],E=m[d]-s.reference[d],C=f==="real"?await i.getOffsetParent?.(c):a.floating,P=a.floating[w]||s.floating[h];(!P||!await i.isElement?.(C))&&(P=a.floating[w]||s.floating[h]);let O=T/2-E/2,I=P/2-x[h]/2-1,Y=Math.min(p[y],I),A=Math.min(p[v],I),N=Y,L=P-x[h]-A,R=P/2-x[h]/2+O,k=Jo(N,R,L),B=!u.arrow&&at(n)!=null&&R!==k&&s.reference[h]/2-(R<N?Y:A)-x[h]/2<0,S=B?R<N?R-N:R-L:0;return{[d]:m[d]+S,data:{[d]:k,centerOffset:R-k-S,...B&&{alignmentOffset:S}},reset:B}}}),hc=(e,t)=>({...Wm(e),options:[e,t]});var $m=ws().fn,yc={name:"hide",async fn(e){let{width:t,height:o,x:r,y:n}=e.rects.reference,s=t===0&&o===0&&r===0&&n===0;return{data:{referenceHidden:(await $m(e)).data?.referenceHidden||s}}}};var rr={sideX:"left",sideY:"top"},xc={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:r},elements:{floating:n},platform:s,strategy:i,placement:a}=e,u=le(n),c=u.getComputedStyle(n);if(!(c.transitionDuration!=="0s"&&c.transitionDuration!==""))return{x:t,y:o,data:rr};let f=await s.getOffsetParent?.(n),p={width:0,height:0};if(i==="fixed"&&u?.visualViewport)p={width:u.visualViewport.width,height:u.visualViewport.height};else if(f===u){let y=be(n);p={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await s.isElement?.(f)&&(p=await s.getDimensions(f));let m=Re(a),d=t,h=o;m==="left"&&(d=p.width-(t+r.width)),m==="top"&&(h=p.height-(o+r.height));let x=m==="left"?"right":rr.sideX,b=m==="top"?"bottom":rr.sideY;return{x:d,y:h,data:{sideX:x,sideY:b}}}};function vc(e,t,o){let r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?o?"inline-start":"inline-end":"right",bottom:"bottom",left:r?o?"inline-end":"inline-start":"left"}[t]}function bc(e,t,o){let{rects:r,placement:n}=e;return{side:vc(t,Re(n),o),align:at(n)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Rc(e){let{anchor:t,positionMethod:o="absolute",side:r="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,collisionBoundary:a,collisionPadding:u=5,sticky:c=!1,arrowPadding:l=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:d,mounted:h,collisionAvoidance:x,shiftCrossAxis:b=!1,nodeId:y,adaptiveOrigin:v,lazyFlip:w=!1,externalTree:T}=e,[E,C]=ze.useState(null);!h&&E!==null&&C(null);let P=x.side||"flip",O=x.align||"flip",I=x.fallbackAxisSide||"end",Y=typeof t=="function"?t:void 0,A=W(Y),N=Y?A:t,L=Me(t),R=Me(h),B=mo()==="rtl",S=E||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":B?"left":"right","inline-start":B?"right":"left"}[r],_=s==="center"?S:`${S}-${s}`,D=u,G=1,U=r==="bottom"?G:0,Q=r==="top"?G:0,Z=r==="right"?G:0,ne=r==="left"?G:0;typeof D=="number"?D={top:D+U,right:D+ne,bottom:D+Q,left:D+Z}:D&&(D={top:(D.top||0)+U,right:(D.right||0)+ne,bottom:(D.bottom||0)+Q,left:(D.left||0)+Z});let z={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:D},ie=ze.useRef(null),ae=Me(n),de=Me(i),Oe=typeof n!="function"?n:0,we=typeof i!="function"?i:0,K=[];p&&K.push(p),K.push(gs(oe=>{let _e=bc(oe,r,B),ft=typeof ae.current=="function"?ae.current(_e):ae.current,qe=typeof de.current=="function"?de.current(_e):de.current;return{mainAxis:ft,crossAxis:qe,alignmentAxis:qe}},[Oe,we,B,r]));let ce=O==="none"&&P!=="shift",ue=!ce&&(c||b||P==="shift"),Yt=P==="none"?null:xs({...z,padding:{top:D.top+G,right:D.right+G,bottom:D.bottom+G,left:D.left+G},mainAxis:!b&&P==="flip",crossAxis:O==="flip"?"alignment":!1,fallbackAxisSideDirection:I}),Je=ce?null:hs(oe=>{let _e=be(oe.elements.floating).documentElement;return{...z,rootBoundary:b?{x:0,y:0,width:_e.clientWidth,height:_e.clientHeight}:void 0,mainAxis:O!=="none",crossAxis:ue,limiter:c||b?void 0:ys(ft=>{if(!ie.current)return{};let{width:qe,height:bt}=ie.current.getBoundingClientRect(),Qe=Le(Re(ft.placement)),zt=Qe==="y"?qe:bt,ao=Qe==="y"?D.left+D.right:D.top+D.bottom;return{offset:zt/2+ao/2}})}},[z,c,b,D,O]);P==="shift"||O==="shift"||s==="center"?K.push(Je,Yt):K.push(Yt,Je),K.push(bs({...z,apply({elements:{floating:oe},availableWidth:_e,availableHeight:ft,rects:qe}){if(!R.current)return;let bt=oe.style;bt.setProperty("--available-width",`${_e}px`),bt.setProperty("--available-height",`${ft}px`);let Qe=le(oe).devicePixelRatio||1,{x:zt,y:ao,width:xr,height:Pn}=qe.reference,On=(Math.round((zt+xr)*Qe)-Math.round(zt*Qe))/Qe,_n=(Math.round((ao+Pn)*Qe)-Math.round(ao*Qe))/Qe;bt.setProperty("--anchor-width",`${On}px`),bt.setProperty("--anchor-height",`${_n}px`)}}),hc(oe=>({element:ie.current||be(oe.elements.floating).createElement("div"),padding:l,offsetParent:"floating"}),[l]),{name:"transformOrigin",fn(oe){let{elements:_e,middlewareData:ft,placement:qe,rects:bt,y:Qe}=oe,zt=Re(qe),ao=Le(zt),xr=ie.current,Pn=ft.arrow?.x||0,On=ft.arrow?.y||0,_n=xr?.clientWidth||0,Cf=xr?.clientHeight||0,kn=Pn+_n/2,mi=On+Cf/2,Pf=Math.abs(ft.shift?.y||0),Of=bt.reference.height/2,Fo=typeof n=="function"?n(bc(oe,r,B)):n,_f=Pf>Fo,kf={top:`${kn}px calc(100% + ${Fo}px)`,bottom:`${kn}px ${-Fo}px`,left:`calc(100% + ${Fo}px) ${mi}px`,right:`${-Fo}px ${mi}px`}[zt],If=`${kn}px ${bt.reference.y+Of-Qe}px`;return _e.floating.style.setProperty("--transform-origin",ue&&ao==="y"&&_f?If:kf),{}}},yc,v),F(()=>{!h&&d&&d.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,d]);let yt=ze.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:Ze,elements:ut,x:fr,y:dr,middlewareData:ye,update:io,placement:M,context:j,isPositioned:pe,floatingStyles:Ee}=Os({rootContext:d,open:m?h:void 0,placement:_,middleware:K,strategy:o,whileElementsMounted:m?void 0:(...oe)=>er(...oe,yt),nodeId:y,externalTree:T}),{sideX:Pt,sideY:Bo}=ye.adaptiveOrigin||rr,xt=pe?o:"fixed",He=ze.useMemo(()=>{let oe=v?{position:xt,[Pt]:fr,[Bo]:dr}:{position:xt,...Ee};return pe||(oe.opacity=0),oe},[v,xt,Pt,fr,Bo,dr,Ee,pe]),Ot=ze.useRef(null);F(()=>{if(!h)return;let oe=L.current,_e=typeof oe=="function"?oe():oe,qe=(wc(_e)?_e.current:_e)||null||null;qe!==Ot.current&&(Ze.setPositionReference(qe),Ot.current=qe)},[h,Ze,N,L]),ze.useEffect(()=>{if(!h)return;let oe=L.current;typeof oe!="function"&&wc(oe)&&oe.current!==Ot.current&&(Ze.setPositionReference(oe.current),Ot.current=oe.current)},[h,Ze,N,L]),ze.useEffect(()=>{if(m&&h&&ut.reference&&ut.floating)return er(ut.reference,ut.floating,io,yt)},[m,h,ut,io,yt]);let _t=Re(M),pr=vc(r,_t,B),mr=at(M)||"center",gr=!!ye.hide?.referenceHidden;F(()=>{w&&h&&pe&&C(_t)},[w,h,pe,_t]);let hr=ze.useMemo(()=>({position:"absolute",top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),yr=ye.arrow?.centerOffset!==0;return ze.useMemo(()=>({positionerStyles:He,arrowStyles:hr,arrowRef:ie,arrowUncentered:yr,side:pr,align:mr,physicalSide:_t,anchorHidden:gr,refs:Ze,context:j,isPositioned:pe,update:io}),[He,hr,ie,yr,pr,mr,_t,gr,Ze,j,pe,io])}function wc(e){return e!=null&&"current"in e}function en(e){return e==="starting"?Ja:fe}function Ec(e,t,{styles:o,transitionStatus:r,props:n,refs:s,hidden:i,inert:a=!1}){let u={...o};return a&&(u.pointerEvents="none"),De("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:i,style:u},en(r),n],stateAttributesMapping:_o})}var Pe=g(V(),1),_c=g(Dt(),1);var Tc=g(V(),1);function Sc(e){let[t,o]=Tc.useState({current:e,previous:null});return e!==t.current&&o({current:e,previous:t.current}),t.previous}var ko=g(V(),1);function Bs(e){let t=Te(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=xe(e),s=n?e.offsetWidth:o,i=n?e.offsetHeight:r;return(Bt(o)!==s||Bt(r)!==i)&&(o=s,r=i),{width:o,height:r}}function Pc(e){let{popupElement:t,positionerElement:o,content:r,mounted:n,onMeasureLayout:s,onMeasureLayoutComplete:i,side:a,direction:u}=e,c=wo(t,!0,!1),l=yo(),f=ko.useRef(null),p=ko.useRef(!0),m=ko.useRef(It),d=W(s),h=W(i),x=ko.useMemo(()=>{let b=a==="top",y=a==="left";return u==="rtl"?(b=b||a==="inline-end",y=y||a==="inline-end"):(b=b||a==="inline-start",y=y||a==="inline-start"),b?{position:"absolute",[a==="top"?"bottom":"top"]:"0",[y?"right":"left"]:"0"}:fe},[a,u]);F(()=>{if(!n){m.current=It,p.current=!0,f.current=null;return}if(!t||!o)return;m.current=Cc(t,x),Fs(t,"auto");let b=on(t,"position","static"),y=on(t,"transform","none"),v=on(t,"scale","1"),w=Cc(o,{"--available-width":"max-content","--available-height":"max-content"});function T(){b(),y(),w()}function E(){T(),v()}if(d?.(),p.current||f.current===null){tn(o,"max-content");let I=Bs(t);return f.current=I,tn(o,I),E(),h?.(null,I),p.current=!1,()=>{m.current(),m.current=It}}tn(o,"max-content");let C=f.current,P=Bs(t);f.current=P,Fs(t,C),E(),h?.(C,P),tn(o,P);let O=new AbortController;return l.request(()=>{Fs(t,P),c(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},O.signal)}),()=>{O.abort(),l.cancel(),m.current(),m.current=It}},[r,t,o,c,l,n,d,h,x])}function on(e,t,o){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,r)}}function Cc(e,t){let o=[];for(let[r,n]of Object.entries(t))o.push(on(e,r,n));return o.length?()=>{o.forEach(r=>r())}:It}function Fs(e,t){let o=t==="auto"?"auto":`${t.width}px`,r=t==="auto"?"auto":`${t.height}px`;e.style.setProperty("--popup-width",o),e.style.setProperty("--popup-height",r)}function tn(e,t){let o=t==="max-content"?"max-content":`${t.width}px`,r=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",o),e.style.setProperty("--positioner-height",r)}var Io=g(X(),1);function kc(e){let{store:t,side:o,cssVars:r,children:n}=e,s=mo(),i=t.useState("activeTriggerElement"),a=t.useState("activeTriggerId"),u=t.useState("open"),c=t.useState("payload"),l=t.useState("mounted"),f=t.useState("popupElement"),p=t.useState("positionerElement"),m=Sc(u?i:null),d=qm(a,c),h=Pe.useRef(null),[x,b]=Pe.useState(null),[y,v]=Pe.useState(null),w=Pe.useRef(null),T=Pe.useRef(null),E=wo(w,!0,!1),C=yo(),[P,O]=Pe.useState(null),[I,Y]=Pe.useState(!1);F(()=>(t.set("hasViewport",!0),()=>{t.set("hasViewport",!1)}),[t]);let A=W(()=>{w.current?.style.setProperty("animation","none"),w.current?.style.setProperty("transition","none"),T.current?.style.setProperty("display","none")}),N=W(S=>{w.current?.style.removeProperty("animation"),w.current?.style.removeProperty("transition"),T.current?.style.removeProperty("display"),S&&O(S)}),L=Pe.useRef(null);F(()=>{(!u||!l)&&(L.current=null)},[u,l]),F(()=>{if(i&&m&&i!==m&&L.current!==i&&h.current){b(h.current),Y(!0);let S=zm(m,i);v(S),C.request(()=>{_c.flushSync(()=>{Y(!1)}),E(()=>{b(null),O(null),h.current=null})}),L.current=i}},[i,m,x,E,C]),F(()=>{let S=w.current;if(!S)return;let _=be(S).createElement("div");for(let D of Array.from(S.childNodes))_.appendChild(D.cloneNode(!0));h.current=_});let R=x!=null,k;R?k=(0,Io.jsxs)(Pe.Fragment,{children:[(0,Io.jsx)("div",{"data-previous":!0,inert:gc(!0),ref:T,style:{...P?{[r.popupWidth]:`${P.width}px`,[r.popupHeight]:`${P.height}px`}:null,position:"absolute"},"data-ending-style":I?void 0:""},"previous"),(0,Io.jsx)("div",{"data-current":!0,ref:w,"data-starting-style":I?"":void 0,children:n},d)]}):k=(0,Io.jsx)("div",{"data-current":!0,ref:w,children:n},d),F(()=>{let S=T.current;!S||!x||S.replaceChildren(...Array.from(x.childNodes))},[x]),Pc({popupElement:f,positionerElement:p,mounted:l,content:c,onMeasureLayout:A,onMeasureLayoutComplete:N,side:o,direction:s});let B={activationDirection:Ym(y),transitioning:R};return{children:k,state:B}}function Ym(e){if(e)return`${Oc(e.horizontal,5,"right","left")} ${Oc(e.vertical,5,"down","up")}`}function Oc(e,t,o,r){return e>t?o:e<-t?r:""}function zm(e,t){let o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n={x:o.left+o.width/2,y:o.top+o.height/2},s={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:s.x-n.x,vertical:s.y-n.y}}function qm(e,t){let[o,r]=Pe.useState(0),n=Pe.useRef(e),s=Pe.useRef(t),i=Pe.useRef(!1);return F(()=>{let a=n.current,u=s.current,c=e!==a,l=t!==u;c?(r(f=>f+1),i.current=!l):i.current&&l&&(r(f=>f+1),i.current=!1),n.current=e,s.current=t},[e,t]),`${e??"current"}-${o}`}var rn=g(V(),1),Ic=g(Dt(),1);var Ac=g(X(),1),Nc=rn.forwardRef(function(t,o){let{children:r,container:n,className:s,render:i,style:a,...u}=t,{portalNode:c,portalSubtree:l}=ls({container:n,ref:o,componentProps:t,elementProps:u});return!l&&!c?null:(0,Ac.jsxs)(rn.Fragment,{children:[l,c&&Ic.createPortal(r,c)]})});var je={};Ke(je,{Arrow:()=>Gc,Handle:()=>nr,Popup:()=>qc,Portal:()=>Wc,Positioner:()=>Yc,Provider:()=>Xc,Root:()=>Mc,Trigger:()=>Vc,Viewport:()=>Qc,createHandle:()=>eu});var gt=g(V(),1);var nn=g(V(),1),js=nn.createContext(void 0);function Xe(e){let t=nn.useContext(js);if(t===void 0&&!e)throw new Error(Ne(72));return t}var Dc=g(V(),1);var Km={...uc,disabled:q(e=>e.disabled),instantType:q(e=>e.instantType),isInstantPhase:q(e=>e.isInstantPhase),trackCursorAxis:q(e=>e.trackCursorAxis),disableHoverablePopup:q(e=>e.disableHoverablePopup),lastOpenChangeReason:q(e=>e.openChangeReason),closeOnClick:q(e=>e.closeOnClick),closeDelay:q(e=>e.closeDelay),hasViewport:q(e=>e.hasViewport)},Ao=class e extends So{constructor(t,o,r=!1){let n=new jt,s={...Gm(),...t};s.floatingRootContext=lc(n,o,r),super(s,{popupRef:Dc.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},Km)}setOpen=(t,o)=>{Ql(this,t,o,{extraState:{openChangeReason:o.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,J($.triggerPress,t))}static useStore(t,o){return Zl(t,(n,s)=>new e(o,n,s)).store}};function Gm(){return{...ac(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var sn=g(X(),1),Mc=Ss(function(t){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:s=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:u,onOpenChangeComplete:c,handle:l,triggerId:f,defaultTriggerId:p=null,children:m}=t,d=Ao.useStore(l?.store,{open:r,openProp:n,activeTriggerId:p,triggerIdProp:f});ec(d,n,r,p),d.useControlledProp("openProp",n),d.useControlledProp("triggerIdProp",f),d.useContextCallback("onOpenChange",u),d.useContextCallback("onOpenChangeComplete",c);let h=d.useState("open"),x=!o&&h,b=d.useState("activeTriggerId"),y=d.useState("mounted"),v=d.useState("payload");d.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s}),d.useSyncedValue("disabled",o),oc(d,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:w,transitionStatus:T}=rc(x,d),E=d.useState("isInstantPhase"),C=d.useState("instantType"),P=d.useState("lastOpenChangeReason"),O=gt.useRef(null);F(()=>{h&&o&&d.setOpen(!1,J($.disabled))},[h,o,d]),F(()=>{T==="ending"&&P===$.none||T!=="ending"&&E?(C!=="delay"&&(O.current=C),d.set("instantType","delay")):O.current!==null&&(d.set("instantType",O.current),O.current=null)},[T,E,P,C,d]),F(()=>{x&&b==null&&d.set("payload",void 0)},[d,b,x]);let I=gt.useCallback(()=>{d.setOpen(!1,J($.imperativeAction))},[d]);gt.useImperativeHandle(a,()=>({unmount:w,close:I}),[w,I]);let Y=x||y||!o&&i!=="none";return(0,sn.jsxs)(js.Provider,{value:d,children:[Y&&(0,sn.jsx)(Xm,{store:d,disabled:o,trackCursorAxis:i}),typeof m=="function"?m({payload:v}):m]})});function Xm({store:e,disabled:t,trackCursorAxis:o}){let r=e.useState("floatingRootContext"),n=us(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=cs(r,{enabled:!t&&o!=="none",axis:o==="none"?void 0:o}),i=gt.useMemo(()=>vt(s.reference,n.reference),[s.reference,n.reference]),a=gt.useMemo(()=>vt(s.trigger,n.trigger),[s.trigger,n.trigger]),u=gt.useMemo(()=>vt(Jl,s.floating,n.floating),[s.floating,n.floating]);return nc(e,{activeTriggerProps:i,inactiveTriggerProps:a,popupProps:u}),null}var ln=g(V(),1);var an=g(V(),1),Vs=an.createContext(void 0);function Lc(){return an.useContext(Vs)}var Bc=(function(e){return e[e.popupOpen=or.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});var jc="data-base-ui-tooltip-trigger";function Fc(e){if("composedPath"in e){let o=e.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(H(n))return n}}let t=e.target;return H(t)?t:null}function Jm(e){let t=e;for(;t;){if(t.hasAttribute(jc))return t;let o=t.parentElement;if(o){t=o;continue}let r=t.getRootNode();t="host"in r&&H(r.host)?r.host:null}return null}var Vc=Yl(function(t,o){let{render:r,className:n,style:s,handle:i,payload:a,disabled:u,delay:c,closeOnClick:l=!0,closeDelay:f,id:p,...m}=t,d=Xe(!0),h=i?.store??d;if(!h)throw new Error(Ne(82));let x=wa(p),b=h.useState("isTriggerActive",x),y=h.useState("isOpenedByTrigger",x),v=h.useState("floatingRootContext"),w=ln.useRef(null),T=c??600,E=f??0,{registerTrigger:C,isMountedByThisTrigger:P}=tc(x,w,h,{payload:a,closeOnClick:l,closeDelay:E}),O=Lc(),{delayRef:I,isInstantPhase:Y,hasProvider:A}=as(v,{open:y}),N=Oo(v);h.useSyncedValue("isInstantPhase",Y);let L=h.useState("disabled"),R=u??L,k=Me(R),B=h.useState("trackCursorAxis"),S=h.useState("disableHoverablePopup"),_=ln.useRef(!1),D=rt(),G=ln.useRef(void 0);function U(){let K=O?.delay,ce=typeof I.current=="object"?I.current.open:void 0,ue=T;return A&&(ce!==0?ue=c??K??T:ue=0),ue}function Q(K){let ce=w.current;if(!ce||!K)return!1;let ue=Jm(K);return ue!==null&&ue!==ce&&te(ce,ue)}function Z(K){let ce=Q(K);return _.current=ce,ce&&(N.openChangeTimeout.clear(),N.restTimeout.clear(),N.restTimeoutPending=!1,D.clear()),ce}let ne=Ds(v,{enabled:!R,mouseOnly:!0,move:!1,handleClose:!S&&B!=="both"?Ms():null,restMs:U,delay(){let K=typeof I.current=="object"?I.current.close:void 0,ce=E;return f==null&&A&&(ce=K),{close:ce}},triggerElementRef:w,isActiveTrigger:b,isClosing:()=>h.select("transitionStatus")==="ending",shouldOpen(){return!_.current}}),z=ks(v,{enabled:!R}).reference,ie=K=>{let ce=_.current,ue=Fc(K),Yt=Z(ue),Je=w.current,yt=Je&&ue&&te(Je,ue);if(Yt&&h.select("open")&&h.select("lastOpenChangeReason")===$.triggerHover){h.setOpen(!1,J($.triggerHover,K));return}if(ce&&!Yt&&yt&&!k.current&&!h.select("open")&&Je&&Et(G.current)){let Ze=()=>{!_.current&&!k.current&&!h.select("open")&&h.setOpen(!0,J($.triggerHover,K,Je))},ut=U();ut===0?(D.clear(),Ze()):D.start(ut,Ze)}},ae=h.useState("triggerProps",P);return De("button",t,{state:{open:y},ref:[o,C,w],props:[ne,z,P||B!=="none"?ae:void 0,{onMouseOver(K){ie(K.nativeEvent)},onFocus(K){Q(Fc(K.nativeEvent))&&K.preventBaseUIHandler()},onMouseLeave(){_.current=!1,D.clear(),G.current=void 0},onPointerEnter(K){G.current=K.pointerType},onPointerDown(K){G.current=K.pointerType,h.set("closeOnClick",l),l&&!h.select("open")&&h.cancelPendingOpen(K.nativeEvent)},onClick(K){l&&!h.select("open")&&h.cancelPendingOpen(K.nativeEvent)},id:x,[Bc.triggerDisabled]:R?"":void 0,[jc]:R?void 0:""},m],stateAttributesMapping:mc})});var Uc=g(V(),1);var cn=g(V(),1),Hs=cn.createContext(void 0);function Hc(){let e=cn.useContext(Hs);if(e===void 0)throw new Error(Ne(70));return e}var Us=g(X(),1),Wc=Uc.forwardRef(function(t,o){let{keepMounted:r=!1,...n}=t;return Xe().useState("mounted")||r?(0,Us.jsx)(Hs.Provider,{value:r,children:(0,Us.jsx)(Nc,{ref:o,...n})}):null});var fn=g(V(),1);var un=g(V(),1),Ws=un.createContext(void 0);function No(){let e=un.useContext(Ws);if(e===void 0)throw new Error(Ne(71));return e}var $c=g(X(),1),Yc=fn.forwardRef(function(t,o){let{render:r,className:n,anchor:s,positionMethod:i="absolute",side:a="top",align:u="center",sideOffset:c=0,alignOffset:l=0,collisionBoundary:f="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:d=!1,disableAnchorTracking:h=!1,collisionAvoidance:x=Za,style:b,...y}=t,v=Xe(),w=Hc(),T=v.useState("open"),E=v.useState("mounted"),C=v.useState("trackCursorAxis"),P=v.useState("disableHoverablePopup"),O=v.useState("floatingRootContext"),I=v.useState("instantType"),Y=v.useState("transitionStatus"),A=v.useState("hasViewport"),N=Rc({anchor:s,positionMethod:i,floatingRootContext:O,mounted:E,side:a,sideOffset:c,align:u,alignOffset:l,collisionBoundary:f,collisionPadding:p,sticky:d,arrowPadding:m,disableAnchorTracking:h,keepMounted:w,collisionAvoidance:x,adaptiveOrigin:A?xc:void 0}),L=fn.useMemo(()=>({open:T,side:N.side,align:N.align,anchorHidden:N.anchorHidden,instant:C!=="none"?"tracking-cursor":I}),[T,N.side,N.align,N.anchorHidden,C,I]),R=Ec(t,L,{styles:N.positionerStyles,transitionStatus:Y,props:y,refs:[o,v.useStateSetter("positionerElement")],hidden:!E,inert:!T||C==="both"||P});return(0,$c.jsx)(Ws.Provider,{value:N,children:R})});var zc=g(V(),1);var Zm={..._o,...Ea},qc=zc.forwardRef(function(t,o){let{render:r,className:n,style:s,...i}=t,a=Xe(),{side:u,align:c}=No(),l=a.useState("open"),f=a.useState("instantType"),p=a.useState("transitionStatus"),m=a.useState("popupProps"),d=a.useState("floatingRootContext"),h=a.useState("disabled"),x=a.useState("closeDelay");Mr({open:l,ref:a.context.popupRef,onComplete(){l&&a.context.onOpenChangeComplete?.(!0)}}),Ns(d,{enabled:!h,closeDelay:x});let b=a.useStateSetter("popupElement");return De("div",t,{state:{open:l,side:u,align:c,instant:f,transitionStatus:p},ref:[o,a.context.popupRef,b],props:[m,en(p),i],stateAttributesMapping:Zm})});var Kc=g(V(),1);var Gc=Kc.forwardRef(function(t,o){let{render:r,className:n,style:s,...i}=t,a=Xe(),{arrowRef:u,side:c,align:l,arrowUncentered:f,arrowStyles:p}=No(),m=a.useState("open"),d=a.useState("instantType");return De("div",t,{state:{open:m,side:c,align:l,uncentered:f,instant:d},ref:[o,u],props:[{style:p,"aria-hidden":!0},i],stateAttributesMapping:_o})});var $s=g(V(),1);var Ys=g(X(),1),Xc=function(t){let{delay:o,closeDelay:r,timeout:n=400}=t,s=$s.useMemo(()=>({delay:o,closeDelay:r}),[o,r]),i=$s.useMemo(()=>({open:o,close:r}),[o,r]);return(0,Ys.jsx)(Vs.Provider,{value:s,children:(0,Ys.jsx)(is,{delay:i,timeoutMs:n,children:t.children})})};var Zc=g(V(),1);var Jc=(function(e){return e.popupWidth="--popup-width",e.popupHeight="--popup-height",e})({});var Qm={activationDirection:e=>e?{"data-activation-direction":e}:null},Qc=Zc.forwardRef(function(t,o){let{render:r,className:n,style:s,children:i,...a}=t,u=Xe(),c=No(),l=u.useState("instantType"),{children:f,state:p}=kc({store:u,side:c.side,cssVars:Jc,children:i}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:l};return De("div",t,{state:m,ref:o,props:[a,{children:f}],stateAttributesMapping:Qm})});var nr=class{constructor(){this.store=new Ao}open(t){let o=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!o)throw new Error(Ne(81,t));this.store.setOpen(!0,J($.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,J($.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function eu(){return new nr}function tu(e){return De(e.defaultTagName??"div",e,e)}var pn=g(Ue(),1),sr=(0,pn.forwardRef)(({icon:e,size:t=24,...o},r)=>(0,pn.cloneElement)(e,{width:t,height:t,...o,ref:r}));var mn=g(dn(),1),zs=g(X(),1),qs=(0,zs.jsx)(mn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zs.jsx)(mn.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z"})});var gn=g(dn(),1),Ks=g(X(),1),Gs=(0,Ks.jsx)(gn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Ks.jsx)(gn.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})});var hn=g(dn(),1),Xs=g(X(),1),Js=(0,Xs.jsx)(hn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xs.jsx)(hn.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})});var su=g(Ue(),1);function Zs(e,t,o){return(0,su.cloneElement)(e??t,{children:o})}var eg=g(au(),1);var uu=g(cu(),1),{lock:BT,unlock:fu}=(0,uu.__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/ui");function tg(){let e=eg;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return fu(e.privateApis).ThemeProvider}var du=tg();var Do={};Ke(Do,{Popup:()=>Su,Portal:()=>yn,Positioner:()=>xn,Provider:()=>Au,Root:()=>ku,Trigger:()=>Ou});var Eu=g(Ue(),1);var yu=g(Ue(),1);var ei="data-wp-hash";function ti(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&rg(document)),e.__wpStyleRuntime}function og(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ei}]`))if(o.getAttribute(ei)===t)return!0;return!1}function mu(e,t,o){if(!e.head)return;let r=ti(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(og(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(ei,t),s.appendChild(e.createTextNode(o)),e.head.appendChild(s),n.add(t)}function rg(e){let t=ti();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)mu(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function ng(e,t){let o=ti();o.styles.set(e,t);for(let r of o.documents.keys())mu(r,e,t)}typeof process>"u",ng("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var pu={slot:"_11fc52b637ff8a7e__slot"},gu="data-wp-compat-overlay-slot";function sg(){return typeof document>"u"?null:document}function ig(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var ht=null;function Qs(e){return e.setAttribute("aria-hidden","false"),e}function ag(e){let t=e.createElement("div");return t.setAttribute(gu,""),pu.slot&&t.classList.add(pu.slot),e.body.appendChild(t),t}function hu(){if(typeof window>"u"||!ig()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=sg();if(!e||!e.body)return;if(ht&&ht.ownerDocument===e&&ht.isConnected)return Qs(ht);let t=e.querySelector(`[${gu}]`);return t instanceof HTMLDivElement?(ht=Qs(t),ht):(ht?.isConnected&&ht.remove(),ht=Qs(ag(e)),ht)}var xu=g(X(),1),yn=(0,yu.forwardRef)(function({container:t,...o},r){return(0,xu.jsx)(je.Portal,{container:t??hu(),...o,ref:r})});var bu=g(Ue(),1),Ru=g(X(),1),oi="data-wp-hash";function ri(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&cg(document)),e.__wpStyleRuntime}function lg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${oi}]`))if(o.getAttribute(oi)===t)return!0;return!1}function wu(e,t,o){if(!e.head)return;let r=ri(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(lg(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(oi,t),s.appendChild(e.createTextNode(o)),e.head.appendChild(s),n.add(t)}function cg(e){let t=ri();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)wu(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function vu(e,t){let o=ri();o.styles.set(e,t);for(let r of o.documents.keys())wu(r,e,t)}typeof process>"u",vu("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var ug={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",vu("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var fg={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},xn=(0,bu.forwardRef)(function({align:t="center",className:o,side:r="top",sideOffset:n=4,...s},i){return(0,Ru.jsx)(je.Positioner,{ref:i,align:t,side:r,sideOffset:n,...s,className:po(ug["box-sizing"],fg.positioner,o)})});var ir=g(X(),1),ni="data-wp-hash";function si(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&pg(document)),e.__wpStyleRuntime}function dg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ni}]`))if(o.getAttribute(ni)===t)return!0;return!1}function Tu(e,t,o){if(!e.head)return;let r=si(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(dg(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(ni,t),s.appendChild(e.createTextNode(o)),e.head.appendChild(s),n.add(t)}function pg(e){let t=si();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Tu(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function mg(e,t){let o=si();o.styles.set(e,t);for(let r of o.documents.keys())Tu(r,e,t)}typeof process>"u",mg("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var gg={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},hg={background:"#1e1e1e"},Su=(0,Eu.forwardRef)(function({portal:t,positioner:o,children:r,className:n,...s},i){let a=(0,ir.jsx)(du,{color:hg,children:(0,ir.jsx)(je.Popup,{ref:i,className:po(gg.popup,n),...s,children:r})}),u=Zs(o,(0,ir.jsx)(xn,{}),a);return Zs(t,(0,ir.jsx)(yn,{}),u)});var Cu=g(Ue(),1),Pu=g(X(),1),Ou=(0,Cu.forwardRef)(function(t,o){return(0,Pu.jsx)(je.Trigger,{ref:o,...t})});var _u=g(X(),1);function ku(e){return(0,_u.jsx)(je.Root,{...e})}var Iu=g(X(),1);function Au({...e}){return(0,Iu.jsx)(je.Provider,{...e})}var Nu=g(Ue(),1),ii="data-wp-hash";function ai(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&xg(document)),e.__wpStyleRuntime}function yg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ii}]`))if(o.getAttribute(ii)===t)return!0;return!1}function Du(e,t,o){if(!e.head)return;let r=ai(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(yg(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(ii,t),s.appendChild(e.createTextNode(o)),e.head.appendChild(s),n.add(t)}function xg(e){let t=ai();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Du(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function bg(e,t){let o=ai();o.styles.set(e,t);for(let r of o.documents.keys())Du(r,e,t)}typeof process>"u",bg("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var wg={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},li=(0,Nu.forwardRef)(function({render:t,...o},r){return tu({render:t,ref:r,props:vt({className:wg["visually-hidden"]},o,{"data-visually-hidden":""})})});var bn=g(We(),1);var Mo=g(X(),1);function vg({rating:e}){let t=Math.round(e/.5)*.5,o=Math.floor(e),r=Math.ceil(e-o),n=5-(o+r);return(0,Mo.jsxs)("span",{"aria-label":(0,bn.sprintf)((0,bn.__)("%s out of 5 stars"),t),children:[Array.from({length:o}).map((s,i)=>(0,Mo.jsx)(sr,{className:"block-directory-block-ratings__star-full",icon:Gs,size:16},`full_stars_${i}`)),Array.from({length:r}).map((s,i)=>(0,Mo.jsx)(sr,{className:"block-directory-block-ratings__star-half-full",icon:Js,size:16},`half_stars_${i}`)),Array.from({length:n}).map((s,i)=>(0,Mo.jsx)(sr,{className:"block-directory-block-ratings__star-empty",icon:qs,size:16},`empty_stars_${i}`))]})}var Mu=vg;var ci=g(X(),1),Rg=({rating:e})=>(0,ci.jsx)("span",{className:"block-directory-block-ratings",children:(0,ci.jsx)(Mu,{rating:e})}),Lu=Rg;var Bu=g(lo(),1),ui=g(X(),1);function Eg({icon:e}){let t="block-directory-downloadable-block-icon";return e.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)!==null?(0,ui.jsx)("img",{className:t,src:e,alt:""}):(0,ui.jsx)(Bu.BlockIcon,{className:t,icon:e,showColors:!0})}var wn=Eg;var Fu=g(We(),1),ju=g(Ge(),1);var vn=g(X(),1),Tg=({block:e})=>{let t=(0,ju.useSelect)(o=>o(me).getErrorNoticeForBlock(e.id),[e]);return t?(0,vn.jsx)("div",{className:"block-directory-downloadable-block-notice",children:(0,vn.jsxs)("div",{className:"block-directory-downloadable-block-notice__content",children:[t.message,t.isFatal?" "+(0,Fu.__)("Try reloading the page."):null]})}):null},Vu=Tg;var he=g(X(),1);function Sg({title:e,rating:t,ratingCount:o},{hasNotice:r,isInstalled:n,isInstalling:s}){let i=Math.round(t/.5)*.5;return!n&&r?(0,Ve.sprintf)("Retry installing %s.",(0,Ht.decodeEntities)(e)):n?(0,Ve.sprintf)("Add %s.",(0,Ht.decodeEntities)(e)):s?(0,Ve.sprintf)("Installing %s.",(0,Ht.decodeEntities)(e)):o<1?(0,Ve.sprintf)("Install %s.",(0,Ht.decodeEntities)(e)):(0,Ve.sprintf)((0,Ve._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",o),(0,Ht.decodeEntities)(e),i,o)}function Cg({item:e,onClick:t}){let{author:o,description:r,icon:n,rating:s,title:i}=e,a=!!(0,Uu.getBlockType)(e.name),{hasNotice:u,isInstalling:c,isInstallable:l}=(0,Wu.useSelect)(m=>{let{getErrorNoticeForBlock:d,isInstalling:h}=m(me),x=d(e.id),b=x&&x.isFatal;return{hasNotice:!!x,isInstalling:h(e.id),isInstallable:!b}},[e]),f="";a?f=(0,Ve.__)("Installed!"):c&&(f=(0,Ve.__)("Installing\u2026"));let p=Sg(e,{hasNotice:u,isInstalled:a,isInstalling:c});return(0,he.jsxs)(Do.Root,{children:[(0,he.jsx)(Do.Trigger,{render:(0,he.jsxs)(Rn.Composite.Item,{className:po("block-directory-downloadable-block-list-item",c&&"is-installing"),accessibleWhenDisabled:!0,disabled:c||!l,onClick:m=>{m.preventDefault(),t()},"aria-label":p,type:"button",role:"option",children:[(0,he.jsxs)("div",{className:"block-directory-downloadable-block-list-item__icon",children:[(0,he.jsx)(wn,{icon:n,title:i}),c?(0,he.jsx)("span",{className:"block-directory-downloadable-block-list-item__spinner",children:(0,he.jsx)(Rn.Spinner,{})}):(0,he.jsx)(Lu,{rating:s})]}),(0,he.jsxs)("span",{className:"block-directory-downloadable-block-list-item__details",children:[(0,he.jsx)("span",{className:"block-directory-downloadable-block-list-item__title",children:(0,Hu.createInterpolateElement)((0,Ve.sprintf)((0,Ve.__)("%1$s <span>by %2$s</span>"),(0,Ht.decodeEntities)(i),o),{span:(0,he.jsx)("span",{className:"block-directory-downloadable-block-list-item__author"})})}),u?(0,he.jsx)(Vu,{block:e}):(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("span",{className:"block-directory-downloadable-block-list-item__desc",children:f||(0,Ht.decodeEntities)(r)}),l&&!(a||c)&&(0,he.jsx)(li,{children:(0,Ve.__)("Install block")})]})]})]})}),(0,he.jsx)(Do.Popup,{children:p})]})}var $u=Cg;var fi=g(X(),1),Pg=()=>{};function Og({items:e,onHover:t=Pg,onSelect:o}){let{installBlockType:r}=(0,Ku.useDispatch)(me);return e.length?(0,fi.jsx)(zu.Composite,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":(0,Yu.__)("Blocks available for install"),children:e.map(n=>(0,fi.jsx)($u,{onClick:()=>{(0,qu.getBlockType)(n.name)?o(n):r(n).then(s=>{s&&o(n)}),t(null)},onHover:t,item:n},n.id))}):null}var Gu=Og;var Ut=g(We(),1),Xu=g(Ue(),1),Ju=g(ru(),1),lt=g(X(),1);function _g({children:e,downloadableItems:t,hasLocalBlocks:o}){let r=t.length;return(0,Xu.useEffect)(()=>{(0,Ju.speak)((0,Ut.sprintf)((0,Ut._n)("%d additional block is available to install.","%d additional blocks are available to install.",r),r))},[r]),(0,lt.jsxs)(lt.Fragment,{children:[!o&&(0,lt.jsx)("p",{className:"block-directory-downloadable-blocks-panel__no-local",children:(0,Ut.__)("No results available from your installed blocks.")}),(0,lt.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),(0,lt.jsxs)("div",{className:"block-directory-downloadable-blocks-panel",children:[(0,lt.jsxs)("div",{className:"block-directory-downloadable-blocks-panel__header",children:[(0,lt.jsx)("h2",{className:"block-directory-downloadable-blocks-panel__title",children:(0,Ut.__)("Available to install")}),(0,lt.jsx)("p",{className:"block-directory-downloadable-blocks-panel__description",children:(0,Ut.__)("Select a block to install and add it to your post.")})]}),e]})]})}var Zu=_g;var En=g(We(),1),Tn=g(qt(),1),ct=g(X(),1);function kg(){return(0,ct.jsxs)(ct.Fragment,{children:[(0,ct.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,ct.jsx)("p",{children:(0,En.__)("No results found.")})}),(0,ct.jsx)("div",{className:"block-editor-inserter__tips",children:(0,ct.jsxs)(Tn.Tip,{children:[(0,En.__)("Interested in creating your own block?"),(0,ct.jsx)("br",{}),(0,ct.jsxs)(Tn.ExternalLink,{href:"https://developer.wordpress.org/block-editor/",children:[(0,En.__)("Get started here"),"."]})]})})]})}var di=kg;var Ae=g(X(),1),Qu=[],Ig=e=>(0,rf.useSelect)(t=>{let{getDownloadableBlocks:o,isRequestingDownloadableBlocks:r,getInstalledBlockTypes:n}=t(me),s=t(of.store).canUser("read","block-directory/search"),i=Qu;if(s){i=o(e);let a=n(),u=i.filter(({name:c})=>{let l=a.some(p=>p.name===c),f=(0,nf.getBlockType)(c);return l||!f});u.length!==i.length&&(i=u),i.length===0&&(i=Qu)}return{hasPermission:s,downloadableBlocks:i,isLoading:r(e)}},[e]);function sf({onSelect:e,onHover:t,hasLocalBlocks:o,isTyping:r,filterValue:n}){let{hasPermission:s,downloadableBlocks:i,isLoading:a}=Ig(n);return s===void 0||a||r?(0,Ae.jsxs)(Ae.Fragment,{children:[s&&!o&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("p",{className:"block-directory-downloadable-blocks-panel__no-local",children:(0,ef.__)("No results available from your installed blocks.")}),(0,Ae.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"})]}),(0,Ae.jsx)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading",children:(0,Ae.jsx)(tf.Spinner,{})})]}):s===!1?o?null:(0,Ae.jsx)(di,{}):i.length===0?o?null:(0,Ae.jsx)(di,{}):(0,Ae.jsx)(Zu,{downloadableItems:i,hasLocalBlocks:o,children:(0,Ae.jsx)(Gu,{items:i,onSelect:e,onHover:t})})}var pi=g(X(),1);function Ag(){let[e,t]=(0,cf.useState)(""),o=(0,lf.debounce)(t,400);return(0,pi.jsx)(af.__unstableInserterMenuExtension,{children:({onSelect:r,onHover:n,filterValue:s,hasItems:i})=>(e!==s&&o(s),e?(0,pi.jsx)(sf,{onSelect:r,onHover:n,filterValue:e,hasLocalBlocks:i,isTyping:s!==e}):null)})}var uf=Ag;var ar=g(We(),1),df=g(Ge(),1),pf=g(In(),1);var Sn=g(We(),1);var Wt=g(X(),1);function ff({items:e}){return e.length?(0,Wt.jsx)("ul",{className:"block-directory-compact-list",children:e.map(({icon:t,id:o,title:r,author:n})=>(0,Wt.jsxs)("li",{className:"block-directory-compact-list__item",children:[(0,Wt.jsx)(wn,{icon:t,title:r}),(0,Wt.jsxs)("div",{className:"block-directory-compact-list__item-details",children:[(0,Wt.jsx)("div",{className:"block-directory-compact-list__item-title",children:r}),(0,Wt.jsx)("div",{className:"block-directory-compact-list__item-author",children:(0,Sn.sprintf)((0,Sn.__)("By %s"),n)})]})]},o))}):null}var lr=g(X(),1);function mf(){let e=(0,df.useSelect)(t=>t(me).getNewBlockTypes(),[]);return e.length?(0,lr.jsxs)(pf.PluginPrePublishPanel,{title:(0,ar.sprintf)((0,ar._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0,children:[(0,lr.jsx)("p",{className:"installed-blocks-pre-publish-panel__copy",children:(0,ar._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)}),(0,lr.jsx)(ff,{items:e})]}):null}var no=g(We(),1),bf=g(qt(),1),wf=g(kt(),1),vf=g(Ue(),1),ur=g(Ge(),1),Rf=g(Fn(),1),so=g(lo(),1);var Cn=g(We(),1),gf=g(qt(),1),Lo=g(kt(),1),cr=g(Ge(),1),hf=g(lo(),1);var yf=g(X(),1);function xf({attributes:e,block:t,clientId:o}){let r=(0,cr.useSelect)(i=>i(me).isInstalling(t.id),[t.id]),{installBlockType:n}=(0,cr.useDispatch)(me),{replaceBlock:s}=(0,cr.useDispatch)(hf.store);return(0,yf.jsx)(gf.Button,{__next40pxDefaultSize:!0,onClick:()=>n(t).then(i=>{if(i){let a=(0,Lo.getBlockType)(t.name),[u]=(0,Lo.parse)(e.originalContent);u&&a&&s(o,(0,Lo.createBlock)(a.name,u.attributes,u.innerBlocks))}}),accessibleWhenDisabled:!0,disabled:r,isBusy:r,variant:"primary",children:(0,Cn.sprintf)((0,Cn.__)("Install %s"),t.title)})}var Ct=g(X(),1),Ng=e=>t=>{let{originalName:o}=t.attributes,{block:r,hasPermission:n}=(0,ur.useSelect)(s=>{let{getDownloadableBlocks:i}=s(me),a=i("block:"+o).filter(({name:u})=>o===u);return{hasPermission:s(Rf.store).canUser("read","block-directory/search"),block:a.length&&a[0]}},[o]);return!n||!r?(0,Ct.jsx)(e,{...t}):(0,Ct.jsx)(Dg,{...t,originalBlock:r})},Dg=({originalBlock:e,...t})=>{let{originalName:o,originalUndelimitedContent:r,clientId:n}=t.attributes,{replaceBlock:s}=(0,ur.useDispatch)(so.store),i=()=>{s(t.clientId,(0,wf.createBlock)("core/html",{},[],[r]))},a=!!r,u=(0,ur.useSelect)(f=>{let{canInsertBlockType:p,getBlockRootClientId:m}=f(so.store);return p("core/html",m(n))},[n]),c=(0,no.sprintf)((0,no.__)("Your site doesn\u2019t include support for the %s block. You can try installing the block or remove it entirely."),e.title||o),l=[(0,Ct.jsx)(xf,{block:e,attributes:t.attributes,clientId:t.clientId},"install")];return a&&u&&(c=(0,no.sprintf)((0,no.__)("Your site doesn\u2019t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),e.title||o),l.push((0,Ct.jsx)(bf.Button,{__next40pxDefaultSize:!0,onClick:i,variant:"tertiary",children:(0,no.__)("Keep as HTML")},"convert"))),(0,Ct.jsxs)("div",{...(0,so.useBlockProps)(),children:[(0,Ct.jsx)(so.Warning,{actions:l,children:c}),(0,Ct.jsx)(vf.RawHTML,{children:r})]})},Ef=Ng;var $t=g(X(),1);(0,Tf.registerPlugin)("block-directory",{icon:void 0,render(){return(0,$t.jsxs)($t.Fragment,{children:[(0,$t.jsx)(Yi,{}),(0,$t.jsx)(uf,{}),(0,$t.jsx)(mf,{})]})}});(0,Sf.addFilter)("blocks.registerBlockType","block-directory/fallback",(e,t)=>(t!=="core/missing"||(e.edit=Ef(e.edit)),e));return Bf(Mg);})();
+(function() {
+var wp;(wp||={}).blockDirectory=(()=>{var Bf=Object.create;var xr=Object.defineProperty;var Ff=Object.getOwnPropertyDescriptor;var jf=Object.getOwnPropertyNames;var Vf=Object.getPrototypeOf,Hf=Object.prototype.hasOwnProperty;var se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qe=(e,t)=>{for(var o in t)xr(e,o,{get:t[o],enumerable:!0})},xi=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of jf(t))!Hf.call(e,n)&&n!==o&&xr(e,n,{get:()=>t[n],enumerable:!(r=Ff(t,n))||r.enumerable});return e};var g=(e,t,o)=>(o=e!=null?Bf(Vf(e)):{},xi(t||!e||!e.__esModule?xr(o,"default",{value:e,enumerable:!0}):o,e)),Uf=e=>xi(xr({},"__esModule",{value:!0}),e);var vi=se((Ug,bi)=>{bi.exports=window.wp.plugins});var Ri=se((Wg,wi)=>{wi.exports=window.wp.hooks});var kt=se(($g,Ei)=>{Ei.exports=window.wp.blocks});var Ke=se((Yg,Ti)=>{Ti.exports=window.wp.data});var Ue=se((zg,Si)=>{Si.exports=window.wp.element});var An=se((qg,Ci)=>{Ci.exports=window.wp.editor});var lo=se((Gg,_i)=>{_i.exports=window.wp.blockEditor});var Ne=se((Xg,ki)=>{ki.exports=window.wp.i18n});var br=se((Jg,Ii)=>{Ii.exports=window.wp.apiFetch});var Ni=se((Zg,Ai)=>{Ai.exports=window.wp.notices});var Mi=se((Qg,Di)=>{Di.exports=window.wp.url});var Xi=se((wh,Gi)=>{Gi.exports=window.wp.compose});var qt=se((Rh,Ji)=>{Ji.exports=window.wp.components});var jn=se((Eh,Zi)=>{Zi.exports=window.wp.coreData});var ta=se((Sh,ea)=>{ea.exports=window.wp.htmlEntities});var F=se((Ch,oa)=>{oa.exports=window.React});var q=se((Nh,ia)=>{ia.exports=window.ReactJSXRuntime});var Dt=se((Oy,ka)=>{ka.exports=window.ReactDOM});var Bl=se(Ll=>{"use strict";var Eo=F();function pm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mm=typeof Object.is=="function"?Object.is:pm,gm=Eo.useState,hm=Eo.useEffect,ym=Eo.useLayoutEffect,xm=Eo.useDebugValue;function bm(e,t){var o=t(),r=gm({inst:{value:o,getSnapshot:t}}),n=r[0].inst,s=r[1];return ym(function(){n.value=o,n.getSnapshot=t,Es(n)&&s({inst:n})},[e,o,t]),hm(function(){return Es(n)&&s({inst:n}),e(function(){Es(n)&&s({inst:n})})},[e]),xm(o),o}function Es(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!mm(e,o)}catch{return!0}}function vm(e,t){return t()}var wm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vm:bm;Ll.useSyncExternalStore=Eo.useSyncExternalStore!==void 0?Eo.useSyncExternalStore:wm});var Ts=se((hb,Fl)=>{"use strict";Fl.exports=Bl()});var Vl=se(jl=>{"use strict";var zr=F(),Rm=Ts();function Em(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tm=typeof Object.is=="function"?Object.is:Em,Sm=Rm.useSyncExternalStore,Cm=zr.useRef,Pm=zr.useEffect,Om=zr.useMemo,_m=zr.useDebugValue;jl.useSyncExternalStoreWithSelector=function(e,t,o,r,n){var s=Cm(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=Om(function(){function c(m){if(!l){if(l=!0,u=m,m=r(m),n!==void 0&&i.hasValue){var f=i.value;if(n(f,m))return d=f}return d=m}if(f=d,Tm(u,m))return f;var h=r(m);return n!==void 0&&n(f,h)?(u=m,f):(u=m,d=h)}var l=!1,u,d,p=o===void 0?null:o;return[function(){return c(t())},p===null?void 0:function(){return c(p())}]},[t,o,r,n]);var a=Sm(e,s[0],s[1]);return Pm(function(){i.hasValue=!0,i.value=a},[a]),_m(a),a}});var Ul=se((xb,Hl)=>{"use strict";Hl.exports=Vl()});var iu=se((OT,su)=>{su.exports=window.wp.a11y});var pn=se((_T,au)=>{au.exports=window.wp.primitives});var uu=se((UT,cu)=>{cu.exports=window.wp.theme});var du=se((WT,fu)=>{fu.exports=window.wp.privateApis});var Vg={};qe(Vg,{store:()=>me});var _f=g(vi(),1),kf=g(Ri(),1);var Yi=g(kt(),1),Ho=g(Ke(),1),zi=g(Ue(),1),qi=g(An(),1);var Er=g(Ke(),1);var Pi=g(Ke(),1),Wf=(e={},t)=>{switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},$f=(e={installedBlockTypes:[],isInstalling:{}},t)=>{switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:[...e.installedBlockTypes,t.item]};case"REMOVE_INSTALLED_BLOCK_TYPE":return{...e,installedBlockTypes:e.installedBlockTypes.filter(o=>o.name!==t.item.name)};case"SET_INSTALLING_BLOCK":return{...e,isInstalling:{...e.isInstalling,[t.blockId]:t.isInstalling}}}return e},Yf=(e={},t)=>{switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":let{[t.blockId]:o,...r}=e;return r}return e},Oi=(0,Pi.combineReducers)({downloadableBlocks:Wf,blockManagement:$f,errorNotices:Yf});var Nn={};qe(Nn,{getDownloadableBlocks:()=>qf,getErrorNoticeForBlock:()=>Zf,getErrorNotices:()=>Jf,getInstalledBlockTypes:()=>Vo,getNewBlockTypes:()=>Kf,getUnusedBlockTypes:()=>Gf,isInstalling:()=>Xf,isRequestingDownloadableBlocks:()=>zf});var co=g(Ke(),1),Fo=g(lo(),1),jo=[];function zf(e,t){return e.downloadableBlocks[t]?.isRequesting??!1}function qf(e,t){return e.downloadableBlocks[t]?.results??jo}function Vo(e){return e.blockManagement.installedBlockTypes}var Kf=(0,co.createRegistrySelector)(e=>(0,co.createSelector)(t=>{let o=Vo(t);if(!o.length)return jo;let{getBlockName:r,getClientIdsWithDescendants:n}=e(Fo.store),s=o.map(c=>c.name),i=n().flatMap(c=>{let l=r(c);return s.includes(l)?l:[]}),a=o.filter(c=>i.includes(c.name));return a.length>0?a:jo},t=>[Vo(t),e(Fo.store).getClientIdsWithDescendants()])),Gf=(0,co.createRegistrySelector)(e=>(0,co.createSelector)(t=>{let o=Vo(t);if(!o.length)return jo;let{getBlockName:r,getClientIdsWithDescendants:n}=e(Fo.store),s=o.map(c=>c.name),i=n().flatMap(c=>{let l=r(c);return s.includes(l)?l:[]}),a=o.filter(c=>!i.includes(c.name));return a.length>0?a:jo},t=>[Vo(t),e(Fo.store).getClientIdsWithDescendants()]));function Xf(e,t){return e.blockManagement.isInstalling[t]||!1}function Jf(e){return e.errorNotices}function Zf(e,t){return e.errorNotices[t]}var Ln={};qe(Ln,{addInstalledBlockType:()=>od,clearErrorNotice:()=>id,fetchDownloadableBlocks:()=>Mn,installBlockType:()=>ed,receiveDownloadableBlocks:()=>Rr,removeInstalledBlockType:()=>rd,setErrorNotice:()=>sd,setIsInstalling:()=>nd,uninstallBlockType:()=>td});var wr=g(kt(),1),vt=g(Ne(),1),uo=g(br(),1),vr=g(Ni(),1),Fi=g(Mi(),1);var Li=g(br(),1),Qf=e=>new Promise((t,o)=>{let r=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach(n=>{e[n]&&(r[n]=e[n])}),e.innerHTML&&r.appendChild(document.createTextNode(e.innerHTML)),r.onload=()=>t(!0),r.onerror=()=>o(new Error("Error loading asset.")),document.body.appendChild(r),(r.nodeName.toLowerCase()==="link"||r.nodeName.toLowerCase()==="script"&&!r.src)&&t()});async function Bi(){let t=await(await(0,Li.default)({url:document.location.href,parse:!1})).text(),o=new window.DOMParser().parseFromString(t,"text/html"),r=Array.from(o.querySelectorAll('link[rel="stylesheet"],script')).filter(n=>n.id&&!document.getElementById(n.id));for(let n of r)await Qf(n)}function Dn(e){if(!e)return!1;let t=e.links["wp:plugin"]||e.links.self;return t&&t.length?t[0].href:!1}function Mn(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function Rr(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}var ed=e=>async({registry:t,dispatch:o})=>{let{id:r,name:n}=e,s=!1;o.clearErrorNotice(r);try{o.setIsInstalling(r,!0);let i=Dn(e),a={};i?await(0,uo.default)({method:"PUT",url:i,data:{status:"active"}}):a=(await(0,uo.default)({method:"POST",path:"wp/v2/plugins",data:{slug:r,status:"active"}}))._links,o.addInstalledBlockType({...e,links:{...e.links,...a}});let c=["api_version","title","category","parent","ancestor","icon","description","keywords","attributes","provides_context","uses_context","selectors","supports","styles","example","variations","allowed_blocks","block_hooks"];if(await(0,uo.default)({path:(0,Fi.addQueryArgs)(`/wp/v2/block-types/${n}`,{_fields:c})}).catch(()=>{}).then(u=>{u&&(0,wr.unstable__bootstrapServerSideBlockDefinitions)({[n]:Object.fromEntries(Object.entries(u).filter(([d])=>c.includes(d)))})}),await Bi(),!t.select(wr.store).getBlockTypes().some(u=>u.name===n))throw new Error((0,vt.__)("Error registering block. Try reloading the page."));t.dispatch(vr.store).createInfoNotice((0,vt.sprintf)((0,vt.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),s=!0}catch(i){let a=i.message||(0,vt.__)("An error occurred."),c=i instanceof Error,l={folder_exists:(0,vt.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:(0,vt.__)("Error installing block. You can reload the page and try again.")};l[i.code]&&(c=!0,a=l[i.code]),o.setErrorNotice(r,a,c),t.dispatch(vr.store).createErrorNotice(a,{speak:!0,isDismissible:!0})}return o.setIsInstalling(r,!1),s},td=e=>async({registry:t,dispatch:o})=>{try{let r=Dn(e);await(0,uo.default)({method:"PUT",url:r,data:{status:"inactive"}}),await(0,uo.default)({method:"DELETE",url:r}),o.removeInstalledBlockType(e)}catch(r){t.dispatch(vr.store).createErrorNotice(r.message||(0,vt.__)("An error occurred."))}};function od(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function rd(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function nd(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function sd(e,t,o=!1){return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:o}}function id(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var Fn={};qe(Fn,{getDownloadableBlocks:()=>ud});var fo=function(){return fo=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},fo.apply(this,arguments)};function ji(e){return e.toLowerCase()}var ad=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],ld=/[^A-Z0-9]+/gi;function Hi(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,r=o===void 0?ad:o,n=t.stripRegexp,s=n===void 0?ld:n,i=t.transform,a=i===void 0?ji:i,c=t.delimiter,l=c===void 0?" ":c,u=Vi(Vi(e,r,"$1\0$2"),s,"\0"),d=0,p=u.length;u.charAt(d)==="\0";)d++;for(;u.charAt(p-1)==="\0";)p--;return u.slice(d,p).split("\0").map(a).join(l)}function Vi(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(r,n){return r.replace(n,o)},e)}function Bn(e,t){var o=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&o>="0"&&o<="9"?"_"+o+r:""+o.toUpperCase()+r}function Ui(e,t){return t===void 0&&(t={}),Hi(e,fo({delimiter:"",transform:Bn},t))}function cd(e,t){return t===0?e.toLowerCase():Bn(e,t)}function Wi(e,t){return t===void 0&&(t={}),Ui(e,fo({transform:cd},t))}var $i=g(br(),1);var ud=e=>async({dispatch:t})=>{if(e)try{t(Mn(e));let r=(await(0,$i.default)({path:`wp/v2/block-directory/search?term=${e}`})).map(n=>Object.fromEntries(Object.entries(n).map(([s,i])=>[Wi(s),i])));t(Rr(r,e))}catch{t(Rr([],e))}};var fd="core/block-directory",dd={reducer:Oi,selectors:Nn,actions:Ln,resolvers:Fn},me=(0,Er.createReduxStore)(fd,dd);(0,Er.register)(me);function Ki(){let{uninstallBlockType:e}=(0,Ho.useDispatch)(me),t=(0,Ho.useSelect)(r=>{let{isAutosavingPost:n,isSavingPost:s}=r(qi.store);return s()&&!n()},[]),o=(0,Ho.useSelect)(r=>r(me).getUnusedBlockTypes(),[]);return(0,zi.useEffect)(()=>{t&&o.length&&o.forEach(r=>{e(r),(0,Yi.unregisterBlockType)(r.name)})},[t]),null}var df=g(lo(),1),pf=g(Xi(),1),mf=g(Ue(),1);var sf=g(Ne(),1),af=g(qt(),1),lf=g(jn(),1),cf=g(Ke(),1),uf=g(kt(),1);var Xu=g(Ne(),1),Ju=g(qt(),1),Zu=g(kt(),1),Qu=g(Ke(),1);function Qi(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Qi(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function pd(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Qi(e))&&(r&&(r+=" "),r+=t);return r}var po=pd;var be=g(Ne(),1),En=g(qt(),1),zu=g(Ue(),1),Ht=g(ta(),1),qu=g(kt(),1),Ku=g(Ke(),1);var md=g(F(),1),Uo={...md};var na=g(F(),1),ra={};function we(e,t){let o=na.useRef(ra);return o.current===ra&&(o.current=e(t)),o}var Vn=Uo.useInsertionEffect,gd=Vn&&Vn!==Uo.useLayoutEffect?Vn:e=>e();function W(e){let t=we(hd).current;return t.next=e,gd(t.effect),t.trampoline}function hd(){let e={next:void 0,callback:yd,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function yd(){}var sa=g(F(),1),xd=()=>{},j=typeof document<"u"?sa.useLayoutEffect:xd;var Tr=g(F(),1),Hn=Tr.createContext(void 0);function mo(){return Tr.useContext(Hn)?.direction??"ltr"}function bd(e,t){return function(r,...n){let s=new URL(e);return s.searchParams.set("code",r.toString()),n.forEach(i=>s.searchParams.append("args[]",i)),`${t} error #${r}; visit ${s} for the full message.`}}var vd=bd("https://base-ui.com/production-error","Base UI"),De=vd;var Kt=g(F(),1);function Un(e,t,o,r){let n=we(la).current;return wd(n,e,t,o,r)&&ca(n,[e,t,o,r]),n.callback}function aa(e){let t=we(la).current;return Rd(t,e)&&ca(t,e),t.callback}function la(){return{callback:null,cleanup:null,refs:[]}}function wd(e,t,o,r,n){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==r||e.refs[3]!==n}function Rd(e,t){return e.refs.length!==t.length||e.refs.some((o,r)=>o!==t[r])}function ca(e,t){if(e.refs=t,t.every(o=>o==null)){e.callback=null;return}e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),o!=null){let r=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){let s=t[n];if(s!=null)switch(typeof s){case"function":{let i=s(o);typeof i=="function"&&(r[n]=i);break}case"object":{s.current=o;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let s=t[n];if(s!=null)switch(typeof s){case"function":{let i=r[n];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}default:}}}}}}var fa=g(F(),1);var ua=g(F(),1),Ed=parseInt(ua.version,10);function go(e){return Ed>=e}function Wn(e){if(!fa.isValidElement(e))return null;let t=e,o=t.props;return(go(19)?o?.ref:t.ref)??null}function Wo(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function It(){}var Uh=Object.freeze([]),fe=Object.freeze({});function da(e,t){let o={};for(let r in e){let n=e[r];if(t?.hasOwnProperty(r)){let s=t[r](n);s!=null&&Object.assign(o,s);continue}n===!0?o[`data-${r.toLowerCase()}`]="":n&&(o[`data-${r.toLowerCase()}`]=n.toString())}return o}function pa(e,t){return typeof e=="function"?e(t):e}function ma(e,t){return typeof e=="function"?e(t):e}var $n={};function wt(e,t,o,r,n){if(!o&&!r&&!n&&!e)return Sr(t);let s=Sr(e);return t&&(s=$o(s,t)),o&&(s=$o(s,o)),r&&(s=$o(s,r)),n&&(s=$o(s,n)),s}function ga(e){if(e.length===0)return $n;if(e.length===1)return Sr(e[0]);let t=Sr(e[0]);for(let o=1;o<e.length;o+=1)t=$o(t,e[o]);return t}function Sr(e){return Yn(e)?{...ya(e,$n)}:Td(e)}function $o(e,t){return Yn(t)?ya(t,e):Sd(e,t)}function Td(e){let t={...e};for(let o in t){let r=t[o];ha(o,r)&&(t[o]=xa(r))}return t}function Sd(e,t){if(!t)return e;for(let o in t){let r=t[o];switch(o){case"style":{e[o]=Wo(e.style,r);break}case"className":{e[o]=zn(e.className,r);break}default:ha(o,r)?e[o]=Cd(e[o],r):e[o]=r}}return e}function ha(e,t){let o=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2);return o===111&&r===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function Yn(e){return typeof e=="function"}function ya(e,t){return Yn(e)?e(t):e??$n}function Cd(e,t){return t?e?(...o)=>{let r=o[0];if(va(r)){let s=r;ba(s);let i=t(...o);return s.baseUIHandlerPrevented||e?.(...o),i}let n=t(...o);return e?.(...o),n}:xa(t):e}function xa(e){return e&&((...t)=>{let o=t[0];return va(o)&&ba(o),e(...t)})}function ba(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function zn(e,t){return t?e?t+" "+e:t:e}function va(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var qn=g(F(),1);function Me(e,t,o={}){let r=t.render,n=Pd(t,o);if(o.enabled===!1)return null;let s=o.state??fe;return kd(e,r,n,s)}function Pd(e,t={}){let{className:o,style:r,render:n}=e,{state:s=fe,ref:i,props:a,stateAttributesMapping:c,enabled:l=!0}=t,u=l?pa(o,s):void 0,d=l?ma(r,s):void 0,p=l?da(s,c):fe,m=l&&a?Od(a):void 0,f=l?Wo(p,m)??{}:fe;return typeof document<"u"&&(l?Array.isArray(i)?f.ref=aa([f.ref,Wn(n),...i]):f.ref=Un(f.ref,Wn(n),i):Un(null,null)),l?(u!==void 0&&(f.className=zn(f.className,u)),d!==void 0&&(f.style=Wo(f.style,d)),f):fe}function Od(e){return Array.isArray(e)?ga(e):wt(void 0,e)}var _d=Symbol.for("react.lazy");function kd(e,t,o,r){if(t){if(typeof t=="function")return t(o,r);let n=wt(o,t.props);n.ref=o.ref;let s=t;return s?.$$typeof===_d&&(s=Kt.Children.toArray(t)[0]),Kt.cloneElement(s,n)}if(e&&typeof e=="string")return Id(e,o);throw new Error(De(8))}function Id(e,t){return e==="button"?(0,qn.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,qn.createElement)("img",{alt:"",...t,key:t.key}):Kt.createElement(e,t)}var Cr=g(F(),1);var wa=0;function Ad(e,t="mui"){let[o,r]=Cr.useState(e),n=e||o;return Cr.useEffect(()=>{o==null&&(wa+=1,r(`${t}-${wa}`))},[o,t]),n}var Ra=Uo.useId;function At(e,t){if(Ra!==void 0){let o=Ra();return e??(t?`${t}-${o}`:o)}return Ad(e,t)}function Ea(e){return At(e,"base-ui")}var $={};qe($,{cancelOpen:()=>ip,chipRemovePress:()=>Ud,clearPress:()=>Hd,closePress:()=>jd,closeWatcher:()=>Qd,decrementPress:()=>Yd,disabled:()=>lp,drag:()=>rp,escapeKey:()=>Zd,focusOut:()=>Jd,imperativeAction:()=>fp,incrementPress:()=>$d,initial:()=>up,inputBlur:()=>Kd,inputChange:()=>zd,inputClear:()=>qd,inputPaste:()=>Gd,inputPress:()=>Xd,itemPress:()=>Fd,keyboard:()=>tp,linkPress:()=>Vd,listNavigation:()=>ep,missing:()=>cp,none:()=>Nd,outsidePress:()=>Bd,pointer:()=>op,scrub:()=>sp,siblingOpen:()=>ap,swipe:()=>dp,trackPress:()=>Wd,triggerFocus:()=>Ld,triggerHover:()=>Md,triggerPress:()=>Dd,wheel:()=>np,windowResize:()=>pp});var Nd="none",Dd="trigger-press",Md="trigger-hover",Ld="trigger-focus",Bd="outside-press",Fd="item-press",jd="close-press",Vd="link-press",Hd="clear-press",Ud="chip-remove-press",Wd="track-press",$d="increment-press",Yd="decrement-press",zd="input-change",qd="input-clear",Kd="input-blur",Gd="input-paste",Xd="input-press",Jd="focus-out",Zd="escape-key",Qd="close-watcher",ep="list-navigation",tp="keyboard",op="pointer",rp="drag",np="wheel",sp="scrub",ip="cancel-open",ap="sibling-open",lp="disabled",cp="missing",up="initial",fp="imperative-action",dp="swipe",pp="window-resize";function J(e,t,o,r){let n=!1,s=!1,i=r??fe;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){s=!0},get isCanceled(){return n},get isPropagationAllowed(){return s},trigger:o,...i}}var Gn=g(F(),1);var Ta=g(F(),1),mp=[];function ho(e){Ta.useEffect(e,mp)}var Pr=null,gy=globalThis.requestAnimationFrame,Kn=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let o=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let n=0;n<o.length;n+=1)o[n]?.(t)};request(t){let o=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(t){let o=t-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}},Or=new Kn,lt=class e{static create(){return new e}static request(t){return Or.request(t)}static cancel(t){return Or.cancel(t)}currentId=Pr;request(t){this.cancel(),this.currentId=Or.request(()=>{this.currentId=Pr,t()})}cancel=()=>{this.currentId!==Pr&&(Or.cancel(this.currentId),this.currentId=Pr)};disposeEffect=()=>this.cancel};function yo(){let e=we(lt.create).current;return ho(e.disposeEffect),e}function Sa(e,t=!1,o=!1){let[r,n]=Gn.useState(e&&t?"idle":void 0),[s,i]=Gn.useState(e);return e&&!s&&(i(!0),n("starting")),!e&&s&&r!=="ending"&&!o&&n("ending"),!e&&!s&&r==="ending"&&n(void 0),j(()=>{if(!e&&s&&r!=="ending"&&o){let a=lt.request(()=>{n("ending")});return()=>{lt.cancel(a)}}},[e,s,r,o]),j(()=>{if(!e||t)return;let a=lt.request(()=>{n(void 0)});return()=>{lt.cancel(a)}},[t,e]),j(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&n("starting");let a=lt.request(()=>{n("idle")});return()=>{lt.cancel(a)}},[t,e,s,r]),{mounted:s,setMounted:i,transitionStatus:r}}var Gt=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),gp={[Gt.startingStyle]:""},hp={[Gt.endingStyle]:""},Ca={transitionStatus(e){return e==="starting"?gp:e==="ending"?hp:null}};function _r(){return typeof window<"u"}function Jt(e){return kr(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(kr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kr(e){return _r()?e instanceof Node||e instanceof ie(e).Node:!1}function H(e){return _r()?e instanceof Element||e instanceof ie(e).Element:!1}function Re(e){return _r()?e instanceof HTMLElement||e instanceof ie(e).HTMLElement:!1}function xo(e){return!_r()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}function Yo(e){let{overflow:t,overflowX:o,overflowY:r,display:n}=ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&n!=="inline"&&n!=="contents"}function Pa(e){return/^(table|td|th)$/.test(Jt(e))}function zo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var yp=/transform|translate|scale|rotate|perspective|filter/,xp=/paint|layout|strict|content/,Xt=e=>!!e&&e!=="none",Xn;function Ir(e){let t=H(e)?ke(e):e;return Xt(t.transform)||Xt(t.translate)||Xt(t.scale)||Xt(t.rotate)||Xt(t.perspective)||!Ar()&&(Xt(t.backdropFilter)||Xt(t.filter))||yp.test(t.willChange||"")||xp.test(t.contain||"")}function Oa(e){let t=ct(e);for(;Re(t)&&!ft(t);){if(Ir(t))return t;if(zo(t))return null;t=ct(t)}return null}function Ar(){return Xn==null&&(Xn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xn}function ft(e){return/^(html|body|#document)$/.test(Jt(e))}function ke(e){return ie(e).getComputedStyle(e)}function qo(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ct(e){if(Jt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||xo(e)&&e.host||ut(e);return xo(t)?t.host:t}function _a(e){let t=ct(e);return ft(t)?(e.ownerDocument||e).body:Re(t)&&Yo(t)?t:_a(t)}function Nt(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=_a(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),i=ie(n);if(s){let a=Nr(i);return t.concat(i,i.visualViewport||[],Yo(n)?n:[],a&&o?Nt(a):[])}else return t.concat(n,Nt(n,[],o))}function Nr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e,t,o,r){return e.addEventListener(t,o,r),()=>{e.removeEventListener(t,o,r)}}function Le(e){let t=we(bp,e).current;return t.next=e,j(t.effect),t}function bp(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function xe(e){return e?.ownerDocument||document}var Na=g(F(),1);var Aa=g(Dt(),1);function Ia(e){return e==null?e:"current"in e?e.current:e}function bo(e,t=!1,o=!0){let r=yo();return W((n,s=null)=>{r.cancel();let i=Ia(e);if(i==null)return;let a=i,c=()=>{Aa.flushSync(n)};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function l(){Promise.all(a.getAnimations().map(u=>u.finished)).then(()=>{s?.aborted||c()}).catch(()=>{if(o){s?.aborted||c();return}let u=a.getAnimations();!s?.aborted&&u.length>0&&u.some(d=>d.pending||d.playState!=="finished")&&l()})}if(t){let u=Gt.startingStyle;if(!a.hasAttribute(u)){r.request(l);return}let d=new MutationObserver(()=>{a.hasAttribute(u)||(d.disconnect(),l())});d.observe(a,{attributes:!0,attributeFilter:[u]}),s?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}r.request(l)})}function Dr(e){let{enabled:t=!0,open:o,ref:r,onComplete:n}=e,s=W(n),i=bo(r,o,!1);Na.useEffect(()=>{if(!t)return;let a=new AbortController;return i(s,a.signal),()=>{a.abort()}},[t,o,s,i])}var Da=g(F(),1);function Ma(e){let t=Da.useRef(!0);t.current&&(t.current=!1,e())}var Rt={};qe(Rt,{engine:()=>ts,env:()=>rs,os:()=>Qn,screenReader:()=>os});var Qn={};qe(Qn,{android:()=>Fa,apple:()=>Zn,ios:()=>Jn,linux:()=>Tp,mac:()=>ja,windows:()=>Ep});function vp(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:wp,platform:Rp,maxTouchPoints:La}=vp(),Zt=wp.toLowerCase(),Qt=Rp.toLowerCase();var Jn=/^i(os$|p)/.test(Qt)||Qt==="macintel"&&La>1,Ba="android",Fa=Qt===Ba||Zt.includes(Ba),ja=!Jn&&Qt.startsWith("mac"),Ep=Qt.startsWith("win"),Tp=!Fa&&/^(linux|chrome os)/.test(Qt),Zn=ja||Jn;var ts={};qe(ts,{blink:()=>Cp,gecko:()=>Sp,webkit:()=>es});var es=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),Sp=!es&&Zt.includes("firefox"),Cp=!es&&Zt.includes("chrom");var os={};qe(os,{voiceOver:()=>Pp});var Pp=Zn;var rs={};qe(rs,{jsdom:()=>Op});var Op=/jsdom|happydom/.test(Zt);var Ko=0,We=class e{static create(){return new e}currentId=Ko;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ko,o()},t)}isStarted(){return this.currentId!==Ko}clear=()=>{this.currentId!==Ko&&(clearTimeout(this.currentId),this.currentId=Ko)};disposeEffect=()=>this.clear};function Qe(){let e=we(We.create).current;return ho(e.disposeEffect),e}var Te=g(F(),1);function Va(e){return"nativeEvent"in e}function Et(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function Ha(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var ns="data-base-ui-focusable";var ss="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Mr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function te(e,t){if(!e||!t)return!1;let o=t.getRootNode?.();if(e.contains(t))return!0;if(o&&xo(o)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ie(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Mt(e,t){if(!H(e))return!1;let o=e;if(t.hasElement(o))return!o.hasAttribute("data-trigger-disabled");for(let[,r]of t.entries())if(te(r,o))return!r.hasAttribute("data-trigger-disabled");return!1}function Lr(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let o=e;return o.target!=null&&t.contains(o.target)}function Ua(e){return e.matches("html,body")}function Wa(e){return Re(e)&&e.matches(ss)}function is(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ss}`)!=null}function $a(e){if(!e||Rt.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function _p(e,t){return t!=null&&!Et(t)?0:typeof e=="function"?e():e}function Tt(e,t,o){let r=_p(e,o);return typeof r=="number"?r:r?.[t]}function as(e){return typeof e=="function"?e():e}function Br(e,t){return t||e==="click"||e==="mousedown"}function Ya(e){return e?.includes("mouse")&&e!=="mousedown"}var za=g(q(),1),qa=Te.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new We,currentIdRef:{current:null},currentContextRef:{current:null}});function kp(e,t){e.current=t.current}function ls(e){let{children:t,delay:o,timeoutMs:r=0}=e,n=Te.useRef(o),s=Te.useRef(o),i=Te.useRef(null),a=Te.useRef(null),c=Qe();return j(()=>{if(s.current=o,!i.current){n.current=o;return}n.current={open:Tt(n.current,"open"),close:Tt(o,"close")}},[o,i,n,s]),(0,za.jsx)(qa.Provider,{value:Te.useMemo(()=>({hasProvider:!0,delayRef:n,initialDelayRef:s,currentIdRef:i,timeoutMs:r,currentContextRef:a,timeout:c}),[r,c]),children:t})}function cs(e,t={open:!1}){let{open:o}=t,r="rootStore"in e?e.rootStore:e,n=r.useState("floatingId"),s=Te.useContext(qa),{currentIdRef:i,delayRef:a,timeoutMs:c,initialDelayRef:l,currentContextRef:u,hasProvider:d,timeout:p}=s,[m,f]=Te.useState(!1),h=Te.useRef(o),x=Te.useRef(!1);return j(()=>{h.current=o},[o]),j(()=>()=>{x.current=!0},[]),j(()=>{function b(){x.current||f(!1),u.current?.setIsInstantPhase(!1),i.current=null,u.current=null,a.current=l.current,p.clear()}if(i.current&&!o&&i.current===n){if(f(!1),c){let y=n;return p.start(c,()=>{r.select("open")||i.current&&i.current!==y||b()}),()=>{(h.current||i.current!==y)&&p.clear()}}b()}},[o,n,i,a,c,l,u,p,r]),j(()=>{if(!o)return;let b=u.current,y=i.current;p.clear(),u.current={onOpenChange:r.setOpen,setIsInstantPhase:f},i.current=n,a.current={open:0,close:Tt(l.current,"close")},y!==null&&y!==n?(f(!0),b?.setIsInstantPhase(!0),b?.onOpenChange(!1,J($.none))):(f(!1),b?.setIsInstantPhase(!1))},[o,n,r,i,a,l,u,p]),j(()=>()=>{if(i.current===n){if(u.current=null,!h.current)return;i.current=null,kp(a,l),p.clear()}},[u,i,a,n,l,p]),Te.useMemo(()=>({hasProvider:d,delayRef:a,isInstantPhase:m}),[d,a,m])}function et(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}var Xa=["top","right","bottom","left"];var Lt=Math.min,tt=Math.max,Bt=Math.round,Xo=Math.floor,dt=e=>({x:e,y:e}),Ip={left:"right",right:"left",bottom:"top",top:"bottom"};function jr(e,t,o){return tt(e,Lt(t,o))}function ot(e,t){return typeof e=="function"?e(t):e}function Se(e){return e.split("-")[0]}function rt(e){return e.split("-")[1]}function Vr(e){return e==="x"?"y":"x"}function Jo(e){return e==="y"?"height":"width"}function Be(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Zo(e){return Vr(Be(e))}function Ja(e,t,o){o===void 0&&(o=!1);let r=rt(e),n=Zo(e),s=Jo(n),i=n==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Go(i)),[i,Go(i)]}function Za(e){let t=Go(e);return[Fr(e),t,Fr(t)]}function Fr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Ka=["left","right"],Ga=["right","left"],Ap=["top","bottom"],Np=["bottom","top"];function Dp(e,t,o){switch(e){case"top":case"bottom":return o?t?Ga:Ka:t?Ka:Ga;case"left":case"right":return t?Ap:Np;default:return[]}}function Qa(e,t,o,r){let n=rt(e),s=Dp(Se(e),o==="start",r);return n&&(s=s.map(i=>i+"-"+n),t&&(s=s.concat(s.map(Fr)))),s}function Go(e){let t=Se(e);return Ip[t]+e.slice(t.length)}function Mp(e){var t,o,r,n;return{top:(t=e.top)!=null?t:0,right:(o=e.right)!=null?o:0,bottom:(r=e.bottom)!=null?r:0,left:(n=e.left)!=null?n:0}}function Hr(e){return typeof e!="number"?Mp(e):{top:e,right:e,bottom:e,left:e}}function eo(e){let{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function St(e,t,o=!0){return e.filter(n=>n.parentId===t).flatMap(n=>[...!o||n.context?.open?[n]:[],...St(e,n.id,o)])}function vo(e){return`data-base-ui-${e}`}var $e=g(F(),1),ol=g(Dt(),1);var el={style:{transition:"none"}};var Lp="data-base-ui-swipe-ignore",Bp="data-swipe-ignore",hx=`[${Lp}]`,yx=`[${Bp}]`;var tl={fallbackAxisSide:"end"};var rl=g(q(),1),Fp=$e.createContext(null),jp=()=>$e.useContext(Fp),Vp=vo("portal");function us(e={}){let{ref:t,container:o,componentProps:r=fe,elementProps:n}=e,s=At(),a=jp()?.portalNode,[c,l]=$e.useState(null),[u,d]=$e.useState(null),p=W(x=>{x!==null&&d(x)}),m=$e.useRef(null);j(()=>{if(o===null){m.current&&(m.current=null,d(null),l(null));return}if(s==null)return;let x=(o&&(kr(o)?o:o.current))??a??document.body;if(x==null){m.current&&(m.current=null,d(null),l(null));return}m.current!==x&&(m.current=x,d(null),l(x))},[o,a,s]);let f=Me("div",r,{ref:[t,p],props:[{id:s,[Vp]:""},n]});return{portalNode:u,portalSubtree:c&&f?ol.createPortal(f,c):null}}var to=g(F(),1);function nl(){let e=new Map;return{emit(t,o){e.get(t)?.forEach(r=>r(o))},on(t,o){e.has(t)||e.set(t,new Set),e.get(t).add(o)},off(t,o){e.get(t)?.delete(o)}}}var Hp=g(q(),1),Up=to.createContext(null),Wp=to.createContext(null),wo=()=>to.useContext(Up)?.id||null,Ft=e=>{let t=to.useContext(Wp);return e??t};var Fe=g(F(),1);function $p(e,t){let o=null,r=null,n=!1;return{contextElement:e||void 0,getBoundingClientRect(){let s=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",c=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",l=s.width,u=s.height,d=s.x,p=s.y;return o==null&&t.x&&i&&(o=s.x-t.x),r==null&&t.y&&a&&(r=s.y-t.y),d-=o||0,p-=r||0,l=0,u=0,!n||c?(l=t.axis==="y"?s.width:0,u=t.axis==="x"?s.height:0,d=i&&t.x!=null?t.x:d,p=a&&t.y!=null?t.y:p):n&&!c&&(u=t.axis==="x"?s.height:u,l=t.axis==="y"?s.width:l),n=!0,{width:l,height:u,x:d,y:p,top:p,right:d+l,bottom:p+u,left:d}}}}function sl(e){return e!=null&&e.clientX!=null}function fs(e,t={}){let{enabled:o=!0,axis:r="both"}=t,n="rootStore"in e?e.rootStore:e,s=n.useState("open"),i=n.useState("floatingElement"),a=n.useState("domReferenceElement"),c=n.context.dataRef,l=Fe.useRef(!1),u=Fe.useRef(null),[d,p]=Fe.useState(),[m,f]=Fe.useState([]),h=W(v=>{n.set("positionReference",v)}),x=W((v,S,R)=>{l.current||c.current.openEvent&&!sl(c.current.openEvent)||n.set("positionReference",$p(R??a,{x:v,y:S,axis:r,dataRef:c,pointerType:d}))}),b=W(v=>{s?u.current||(x(v.clientX,v.clientY,v.currentTarget),f([])):x(v.clientX,v.clientY,v.currentTarget)}),y=Et(d)?i:s;Fe.useEffect(()=>{if(!o){h(a);return}if(!y)return;function v(){u.current?.(),u.current=null}let S=ie(i);function R(T){let C=Ie(T);te(i,C)?v():x(T.clientX,T.clientY)}return!c.current.openEvent||sl(c.current.openEvent)?u.current=ee(S,"mousemove",R):h(a),v},[y,o,i,c,a,n,x,h,m]),Fe.useEffect(()=>()=>{n.set("positionReference",null)},[n]),Fe.useEffect(()=>{o&&!i&&(l.current=!1)},[o,i]),Fe.useEffect(()=>{!o&&s&&(l.current=!0)},[o,s]);let w=Fe.useMemo(()=>{function v(S){p(S.pointerType)}return{onPointerDown:v,onPointerEnter:v,onMouseMove:b,onMouseEnter:b}},[b]);return Fe.useMemo(()=>o?{reference:w,trigger:w}:{},[o,w])}var je=g(F(),1);function Yp(){return!1}function zp(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function ds(e,t={}){let{enabled:o=!0,escapeKey:r=!0,outsidePress:n=!0,outsidePressEvent:s="sloppy",referencePress:i=Yp,bubbles:a,externalTree:c}=t,l="rootStore"in e?e.rootStore:e,u=l.useState("open"),d=l.useState("floatingElement"),{dataRef:p}=l.context,m=Ft(c),f=W(typeof n=="function"?n:()=>!1),h=typeof n=="function"?f:n,x=h!==!1,b=W(()=>s),{escapeKey:y,outsidePress:w}=zp(a),v=je.useRef(!1),S=je.useRef(!1),R=je.useRef(!1),T=je.useRef(!1),C=je.useRef(""),O=je.useRef(null),k=Qe(),z=Qe(),D=W(()=>{z.clear(),p.current.insideReactTree=!1}),L=W(U=>{let Q=p.current.floatingContext?.nodeId;return(m?St(m.nodesRef.current,Q):[]).some(ne=>ne.context?.open&&!ne.context.dataRef.current[U])}),M=W(U=>Lr(U,l.select("floatingElement"))||Lr(U,l.select("domReferenceElement"))),E=W(U=>{i()&&l.setOpen(!1,J($.triggerPress,U.nativeEvent))}),I=W(U=>{if(!u||!o||!r||U.key!=="Escape"||T.current||!y&&L("__escapeKeyBubbles"))return;let Q=Va(U)?U.nativeEvent:U,Z=J($.escapeKey,Q);l.setOpen(!1,Z),Z.isCanceled||U.preventDefault(),!y&&!Z.isPropagationAllowed&&U.stopPropagation()}),B=W(()=>{p.current.insideReactTree=!0,z.start(0,D)}),P=W(U=>{if(!u||!o||U.button!==0)return;let Q=Ie(U.nativeEvent);te(l.select("floatingElement"),Q)&&(v.current||(v.current=!0,S.current=!1))}),_=W(U=>{!u||!o||(U.defaultPrevented||U.nativeEvent.defaultPrevented)&&v.current&&(S.current=!0)});je.useEffect(()=>{if(!u||!o)return;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=w;let U=new We,Q=new We;function Z(){U.clear(),T.current=!0}function ne(){U.start(Rt.engine.webkit?5:0,()=>{T.current=!1})}function Y(){R.current=!0,Q.start(0,()=>{R.current=!1})}function ae(){v.current=!1,S.current=!1}function le(){let N=C.current,V=N==="pen"||!N?"mouse":N,pe=b(),Ee=typeof pe=="function"?pe():pe;return typeof Ee=="string"?Ee:Ee[V]}function de(N){let V=le();return V==="intentional"&&N.type!=="click"||V==="sloppy"&&N.type==="click"}function Oe(N){let V=p.current.floatingContext?.nodeId,pe=m&&St(m.nodesRef.current,V).some(Ee=>Lr(N,Ee.context?.elements.floating));return M(N)||pe}function ve(N){if(de(N)){N.type!=="click"&&!M(N)&&(Q.clear(),R.current=!1),D();return}if(p.current.insideReactTree){D();return}let V=Ie(N),pe=`[${vo("inert")}]`,Ee=H(V)?V.getRootNode():null,Pt=Array.from((xo(Ee)?Ee:xe(l.select("floatingElement"))).querySelectorAll(pe)),Lo=l.context.triggerElements;if(V&&(Lo.hasElement(V)||Lo.hasMatchingElement(He=>te(He,V))))return;let xt=H(V)?V:null;for(;xt&&!ft(xt);){let He=ct(xt);if(ft(He)||!H(He))break;xt=He}if(!(Pt.length&&H(V)&&!Ua(V)&&!te(V,l.select("floatingElement"))&&Pt.every(He=>!te(xt,He)))){if(Re(V)&&!("touches"in N)){let He=ft(V),Ot=ke(V),_t=/auto|scroll/,dr=He||_t.test(Ot.overflowX),pr=He||_t.test(Ot.overflowY),mr=dr&&V.clientWidth>0&&V.scrollWidth>V.clientWidth,gr=pr&&V.clientHeight>0&&V.scrollHeight>V.clientHeight,hr=Ot.direction==="rtl",oe=gr&&(hr?N.offsetX<=V.offsetWidth-V.clientWidth:N.offsetX>V.clientWidth),_e=mr&&N.offsetY>V.clientHeight;if(oe||_e)return}if(!Oe(N)){if(le()==="intentional"&&R.current){Q.clear(),R.current=!1;return}typeof h=="function"&&!h(N)||L("__outsidePressBubbles")||(l.setOpen(!1,J($.outsidePress,N)),D())}}}function G(N){le()!=="sloppy"||N.pointerType==="touch"||!l.select("open")||!o||M(N)||ve(N)}function ce(N){if(le()!=="sloppy"||!l.select("open")||!o||M(N))return;let V=N.touches[0];V&&(O.current={startTime:Date.now(),startX:V.clientX,startY:V.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},k.start(1e3,()=>{O.current&&(O.current.dismissOnTouchEnd=!1,O.current.dismissOnMouseDown=!1)}))}function ue(N,V){let pe=Ie(N);if(!pe)return;let Ee=ee(pe,N.type,()=>{V(N),Ee()})}function Yt(N){C.current="touch",ue(N,ce)}function Xe(N){k.clear(),N.type==="pointerdown"&&(C.current=N.pointerType),!(N.type==="mousedown"&&O.current&&!O.current.dismissOnMouseDown)&&ue(N,V=>{V.type==="pointerdown"?G(V):ve(V)})}function yt(N){if(!v.current)return;let V=S.current;if(ae(),le()==="intentional"){if(N.type==="pointercancel"){V&&Y();return}if(!Oe(N)){if(V){Y();return}typeof h=="function"&&!h(N)||(Q.clear(),R.current=!0,D())}}}function Je(N){if(le()!=="sloppy"||!O.current||M(N))return;let V=N.touches[0];if(!V)return;let pe=Math.abs(V.clientX-O.current.startX),Ee=Math.abs(V.clientY-O.current.startY),Pt=Math.sqrt(pe*pe+Ee*Ee);Pt>5&&(O.current.dismissOnTouchEnd=!0),Pt>10&&(ve(N),k.clear(),O.current=null)}function it(N){ue(N,Je)}function ur(N){le()!=="sloppy"||!O.current||M(N)||(O.current.dismissOnTouchEnd&&ve(N),k.clear(),O.current=null)}function fr(N){ue(N,ur)}let ye=xe(d),io=et(r&&et(ee(ye,"keydown",I),ee(ye,"compositionstart",Z),ee(ye,"compositionend",ne)),x&&et(ee(ye,"click",Xe,!0),ee(ye,"pointerdown",Xe,!0),ee(ye,"pointerup",yt,!0),ee(ye,"pointercancel",yt,!0),ee(ye,"mousedown",Xe,!0),ee(ye,"mouseup",yt,!0),ee(ye,"touchstart",Yt,!0),ee(ye,"touchmove",it,!0),ee(ye,"touchend",fr,!0)));return()=>{io(),U.clear(),Q.clear(),ae(),R.current=!1}},[p,d,r,x,h,u,o,y,w,I,D,b,L,M,m,l,k]),je.useEffect(D,[h,D]);let A=je.useMemo(()=>({onKeyDown:I,onPointerDown:E,onClick:E}),[I,E]),X=je.useMemo(()=>({onKeyDown:I,onPointerDown:_,onMouseDown:_,onClickCapture:B,onMouseDownCapture(U){B(),P(U)},onPointerDownCapture(U){B(),P(U)},onMouseUpCapture:B,onTouchEndCapture:B,onTouchMoveCapture:B}),[I,B,P,_]);return je.useMemo(()=>o?{reference:A,floating:X,trigger:A}:{},[o,A,X])}var Ce=g(F(),1);function il(e,t,o){let{reference:r,floating:n}=e,s=Be(t),i=Zo(t),a=Jo(i),c=Se(t),l=s==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,m;switch(c){case"top":m={x:u,y:r.y-n.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-n.width,y:d};break;default:m={x:r.x,y:r.y}}let f=rt(t);return f&&(m[i]+=p*(f==="end"?1:-1)*(o&&l?-1:1)),m}async function cl(e,t){var o;t===void 0&&(t={});let{x:r,y:n,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=ot(t,e),f=Hr(m),x=a[p?d==="floating"?"reference":"floating":d],b=eo(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(x)))==null||o?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),y=d==="floating"?{x:r,y:n,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),v=await(s.isElement==null?void 0:s.isElement(w))&&await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1},S=eo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:c}):y);return{top:(b.top-S.top+f.top)/v.y,bottom:(S.bottom-b.bottom+f.bottom)/v.y,left:(b.left-S.left+f.left)/v.x,right:(S.right-b.right+f.right)/v.x}}var qp=50,ul=async(e,t,o)=>{let{placement:r="bottom",strategy:n="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:cl},c=await(i.isRTL==null?void 0:i.isRTL(t)),l=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=il(l,r,c),p=r,m=0,f={};for(let h=0;h<s.length;h++){let x=s[h];if(!x)continue;let{name:b,fn:y}=x,{x:w,y:v,data:S,reset:R}=await y({x:u,y:d,initialPlacement:r,placement:p,strategy:n,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});u=w??u,d=v??d,f[b]={...f[b],...S},R&&m<qp&&(m++,typeof R=="object"&&(R.placement&&(p=R.placement),R.rects&&(l=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):R.rects),{x:u,y:d}=il(l,p,c)),h=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:f}};var fl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,r;let{placement:n,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...x}=ot(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};let b=Se(n),y=Be(a),w=Se(a)===a,v=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=p||(w||!h?[Go(a)]:Za(a)),R=f!=="none";!p&&R&&S.push(...Qa(a,h,f,v));let T=[a,...S],C=await c.detectOverflow(t,x),O=[],k=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&O.push(C[b]),d){let M=Ja(n,i,v);O.push(C[M[0]],C[M[1]])}if(k=[...k,{placement:n,overflows:O}],!O.every(M=>M<=0)){var z,D;let M=(((z=s.flip)==null?void 0:z.index)||0)+1,E=T[M];if(E&&(!(d==="alignment"?y!==Be(E):!1)||k.every(P=>Be(P.placement)===y?P.overflows[0]>0:!0)))return{data:{index:M,overflows:k},reset:{placement:E}};let I=(D=k.filter(B=>B.overflows[0]<=0).sort((B,P)=>B.overflows[1]-P.overflows[1])[0])==null?void 0:D.placement;if(!I)switch(m){case"bestFit":{var L;let B=(L=k.filter(P=>{if(R){let _=Be(P.placement);return _===y||_==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(_=>_>0).reduce((_,A)=>_+A,0)]).sort((P,_)=>P[1]-_[1])[0])==null?void 0:L[0];B&&(I=B);break}case"initialPlacement":I=a;break}if(n!==I)return{reset:{placement:I}}}return{}}}};function al(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ll(e){return Xa.some(t=>e[t]>=0)}var dl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:o,platform:r}=t,{strategy:n="referenceHidden",...s}=ot(e,t);switch(n){case"referenceHidden":{let i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=al(i,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ll(a)}}}case"escaped":{let i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=al(i,o.floating);return{data:{escapedOffsets:a,escaped:ll(a)}}}default:return{}}}}};var pl=new Set(["left","top"]);async function Kp(e,t){let{placement:o,platform:r,elements:n}=e,s=await(r.isRTL==null?void 0:r.isRTL(n.floating)),i=Se(o),a=rt(o),c=Be(o)==="y",l=pl.has(i)?-1:1,u=s&&c?-1:1,d=ot(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),c?{x:m*u,y:p*l}:{x:p*l,y:m*u}}var ml=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,r;let{x:n,y:s,placement:i,middlewareData:a}=t,c=await Kp(t,e);return i===((o=a.offset)==null?void 0:o.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:n+c.x,y:s+c.y,data:{...c,placement:i}}}}},gl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:n,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:y=>{let{x:w,y:v}=y;return{x:w,y:v}}},...l}=ot(e,t),u={x:o,y:r},d=await s.detectOverflow(t,l),p=Be(n),m=Vr(p),f=u[m],h=u[p],x=(y,w)=>jr(w+d[y==="y"?"top":"left"],w,w-d[y==="y"?"bottom":"right"]);i&&(f=x(m,f)),a&&(h=x(p,h));let b=c.fn({...t,[m]:f,[p]:h});return{...b,data:{x:b.x-o,y:b.y-r,enabled:{[m]:i,[p]:a}}}}}},hl=function(e){return e===void 0&&(e={}),{options:e,fn(t){var o,r;let{x:n,y:s,placement:i,rects:a,middlewareData:c}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=ot(e,t),p={x:n,y:s},m=Be(i),f=Vr(m),h=p[f],x=p[m],b=ot(l,t),y=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(o=b.mainAxis)!=null?o:0,crossAxis:(r=b.crossAxis)!=null?r:0};if(u){let S=f==="y"?"height":"width",R=a.reference[f]-a.floating[S]+y.mainAxis,T=a.reference[f]+a.reference[S]-y.mainAxis;h<R?h=R:h>T&&(h=T)}if(d){var w,v;let S=f==="y"?"width":"height",R=pl.has(Se(i)),T=a.reference[m]-a.floating[S]+(R&&((w=c.offset)==null?void 0:w[m])||0)+(R?0:y.crossAxis),C=a.reference[m]+a.reference[S]+(R?0:((v=c.offset)==null?void 0:v[m])||0)-(R?y.crossAxis:0);x<T?x=T:x>C&&(x=C)}return{[f]:h,[m]:x}}}},yl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:o,rects:r,platform:n,elements:s}=t,{apply:i=()=>{},...a}=ot(e,t),c=await n.detectOverflow(t,a),l=Se(o),u=rt(o),d=Be(o)==="y",{width:p,height:m}=r.floating,f,h;l==="top"||l==="bottom"?(f=l,h=u===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(h=l,f=u==="end"?"top":"bottom");let x=m-c.top-c.bottom,b=p-c.left-c.right,y=Lt(m-c[f],x),w=Lt(p-c[h],b),v=t.middlewareData.shift,S=!v,R=y,T=w;v!=null&&v.enabled.x&&(T=b),v!=null&&v.enabled.y&&(R=x),S&&!u&&(d?T=p-2*tt(c.left,c.right):R=m-2*tt(c.top,c.bottom)),await i({...t,availableWidth:T,availableHeight:R});let C=await n.getDimensions(s.floating);return p!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}};function vl(e){let t=ke(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Re(e),s=n?e.offsetWidth:o,i=n?e.offsetHeight:r,a=Bt(o)!==s||Bt(r)!==i;return a&&(o=s,r=i),{width:o,height:r,$:a}}function ms(e){return H(e)?e:e.contextElement}function Ro(e){let t=ms(e);if(!Re(t))return dt(1);let o=t.getBoundingClientRect(),{width:r,height:n,$:s}=vl(t),i=(s?Bt(o.width):o.width)/r,a=(s?Bt(o.height):o.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}var Gp=dt(0);function wl(e){let t=ie(e);return!Ar()||!t.visualViewport?Gp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xp(e,t,o){return t===void 0&&(t=!1),!!o&&t&&o===ie(e)}function oo(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),s=ms(e),i=dt(1);t&&(r?H(r)&&(i=Ro(r)):i=Ro(e));let a=Xp(s,o,r)?wl(s):dt(0),c=(n.left+a.x)/i.x,l=(n.top+a.y)/i.y,u=n.width/i.x,d=n.height/i.y;if(s&&r){let p=ie(s),m=H(r)?ie(r):r,f=p,h=Nr(f);for(;h&&m!==f;){let x=Ro(h),b=h.getBoundingClientRect(),y=ke(h),w=b.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,v=b.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,l*=x.y,u*=x.x,d*=x.y,c+=w,l+=v,f=ie(h),h=Nr(f)}}return eo({width:u,height:d,x:c,y:l})}function Ur(e,t){let o=qo(e).scrollLeft;return t?t.left+o:oo(ut(e)).left+o}function Rl(e,t){let o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-Ur(e,o),n=o.top+t.scrollTop;return{x:r,y:n}}function Jp(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e,s=n==="fixed",i=ut(r),a=t?zo(t.floating):!1;if(r===i||a&&s)return o;let c={scrollLeft:0,scrollTop:0},l=dt(1),u=dt(0),d=Re(r);if((d||!s)&&((Jt(r)!=="body"||Yo(i))&&(c=qo(r)),d)){let m=oo(r);l=Ro(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}let p=i&&!d&&!s?Rl(i,c):dt(0);return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-c.scrollLeft*l.x+u.x+p.x,y:o.y*l.y-c.scrollTop*l.y+u.y+p.y}}function Zp(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Qp(e){let t=qo(e),o=e.ownerDocument.body,r=tt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=tt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+Ur(e),i=-t.scrollTop;return ke(o).direction==="rtl"&&(s+=tt(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:i}}var em=25;function tm(e,t,o){o===void 0&&(o="viewport");let r=o==="layoutViewport",n=ie(e),s=ut(e),i=n.visualViewport,a=s.clientWidth,c=s.clientHeight,l=0,u=0;if(i){let p=!Ar()||t==="fixed";r?p||(l=-i.offsetLeft,u=-i.offsetTop):(a=i.width,c=i.height,p&&(l=i.offsetLeft,u=i.offsetTop))}if(Ur(s)<=0){let p=s.ownerDocument,m=p.body,f=getComputedStyle(m),h=p.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,x=Math.abs(s.clientWidth-m.clientWidth-h),b=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;b<=em&&(a-=b)}return{width:a,height:c,x:l,y:u}}function om(e,t){let o=oo(e,!0,t==="fixed"),r=o.top+e.clientTop,n=o.left+e.clientLeft,s=Ro(e),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=n*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function xl(e,t,o){let r;if(t==="viewport"||t==="layoutViewport")r=tm(e,o,t);else if(t==="document")r=Qp(ut(e));else if(H(t))r=om(t,o);else{let n=wl(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eo(r)}function rm(e,t){let o=t.get(e);if(o)return o;let r=Nt(e,[],!1).filter(a=>H(a)&&Jt(a)!=="body"),n=null,s=ke(e).position==="fixed",i=s?ct(e):e;for(;H(i)&&!ft(i);){let a=ke(i),c=Ir(i),l=n?n.position:s?"fixed":"";!c&&(l==="fixed"||l==="absolute"&&a.position==="static")?r=r.filter(d=>d!==i):n=a,i=ct(i)}return t.set(e,r),r}function nm(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e,i=[...o==="clippingAncestors"?zo(t)?[]:rm(t,this._c):[].concat(o),r],a=xl(t,i[0],n),c=a.top,l=a.right,u=a.bottom,d=a.left;for(let p=1;p<i.length;p++){let m=xl(t,i[p],n);c=tt(m.top,c),l=Lt(m.right,l),u=Lt(m.bottom,u),d=tt(m.left,d)}return{width:l-d,height:u-c,x:d,y:c}}function sm(e){let{width:t,height:o}=vl(e);return{width:t,height:o}}function im(e,t,o){let r=Re(t),n=ut(t),s=o==="fixed",i=oo(e,!0,s,t),a={scrollLeft:0,scrollTop:0},c=dt(0);if((r||!s)&&((Jt(t)!=="body"||Yo(n))&&(a=qo(t)),r)){let p=oo(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}!r&&n&&(c.x=Ur(n));let l=n&&!r&&!s?Rl(n,a):dt(0),u=i.left+a.scrollLeft-c.x-l.x,d=i.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:i.width,height:i.height}}function ps(e){return ke(e).position==="static"}function bl(e,t){if(!Re(e)||ke(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return ut(e)===o&&(o=o.ownerDocument.body),o}function El(e,t){let o=ie(e);if(zo(e))return o;if(!Re(e)){let n=ct(e);for(;n&&!ft(n);){if(H(n)&&!ps(n))return n;n=ct(n)}return o}let r=bl(e,t);for(;r&&Pa(r)&&ps(r);)r=bl(r,t);return r&&ft(r)&&ps(r)&&!Ir(r)?o:r||Oa(e)||o}var am=async function(e){let t=this.getOffsetParent||El,o=this.getDimensions,r=await o(e.floating);return{reference:im(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lm(e){return ke(e).direction==="rtl"}var gs={convertOffsetParentRelativeRectToViewportRelativeRect:Jp,getDocumentElement:ut,getClippingRect:nm,getOffsetParent:El,getElementRects:am,getClientRects:Zp,getDimensions:sm,getScale:Ro,isElement:H,isRTL:lm};function Tl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cm(e,t,o){let r=null,n,s=ut(e);function i(){var u;clearTimeout(n),(u=r)==null||u.disconnect(),r=null}function a(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();let p=e.getBoundingClientRect(),{left:m,top:f,width:h,height:x}=p;if(u||t(),!h||!x)return;let b=Xo(f),y=Xo(s.clientWidth-(m+h)),w=Xo(s.clientHeight-(f+x)),v=Xo(m),R={rootMargin:-b+"px "+-y+"px "+-w+"px "+-v+"px",threshold:tt(0,Lt(1,d))||1},T=!0;function C(O){let k=O[0].intersectionRatio;if(!Tl(p,e.getBoundingClientRect()))return a();if(k!==d){if(!T)return a();k?a(!1,k):n=setTimeout(()=>{a(!1,1e-7)},1e3)}T=!1}try{r=new IntersectionObserver(C,{...R,root:s.ownerDocument})}catch{r=new IntersectionObserver(C,R)}r.observe(e)}let c=ie(e),l=()=>a(o);return c.addEventListener("resize",l),a(!0),()=>{c.removeEventListener("resize",l),i()}}function Qo(e,t,o,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=ms(e),u=n||s?[...l?Nt(l):[],...t?Nt(t):[]]:[];u.forEach(b=>{n&&b.addEventListener("scroll",o),s&&b.addEventListener("resize",o)});let d=l&&a?cm(l,o,s):null,p=-1,m=null;i&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),o()}),l&&!c&&m.observe(l),t&&m.observe(t));let f,h=c?oo(e):null;c&&x();function x(){let b=oo(e);h&&!Tl(h,b)&&o(),h=b,f=requestAnimationFrame(x)}return o(),()=>{var b;u.forEach(y=>{n&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),d?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(f)}}var Sl=ml;var Cl=gl,Pl=fl,Ol=yl,_l=dl;var kl=hl,Wr=(e,t,o)=>{let r=new Map,n=o??{},s={...gs,...n.platform,_c:r};return ul(e,t,{...n,platform:s})};var ge=g(F(),1),Al=g(F(),1),Nl=g(Dt(),1),fm=typeof document<"u",dm=function(){},$r=fm?Al.useLayoutEffect:dm;function Yr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(!Yr(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=o;r--!==0;){let s=n[r];if(!(s==="_owner"&&e.$$typeof)&&!Yr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Dl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Il(e,t){let o=Dl(e);return Math.round(t*o)/o}function hs(e){let t=ge.useRef(e);return $r(()=>{t.current=e}),t}function Ml(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:r=[],platform:n,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=ge.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ge.useState(r);Yr(p,r)||m(r);let[f,h]=ge.useState(null),[x,b]=ge.useState(null),y=ge.useCallback(P=>{P!==R.current&&(R.current=P,h(P))},[]),w=ge.useCallback(P=>{P!==T.current&&(T.current=P,b(P))},[]),v=s||f,S=i||x,R=ge.useRef(null),T=ge.useRef(null),C=ge.useRef(u),O=c!=null,k=hs(c),z=hs(n),D=hs(l),L=ge.useCallback(()=>{if(!R.current||!T.current)return;let P={placement:t,strategy:o,middleware:p};z.current&&(P.platform=z.current),Wr(R.current,T.current,P).then(_=>{let A={..._,isPositioned:D.current!==!1};M.current&&!Yr(C.current,A)&&(C.current=A,Nl.flushSync(()=>{d(A)}))})},[p,t,o,z,D]);$r(()=>{l===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[l]);let M=ge.useRef(!1);$r(()=>(M.current=!0,()=>{M.current=!1}),[]),$r(()=>{if(v&&(R.current=v),S&&(T.current=S),v&&S){if(k.current)return k.current(v,S,L);L()}},[v,S,L,k,O]);let E=ge.useMemo(()=>({reference:R,floating:T,setReference:y,setFloating:w}),[y,w]),I=ge.useMemo(()=>({reference:v,floating:S}),[v,S]),B=ge.useMemo(()=>{let P={position:o,left:0,top:0};if(!I.floating)return P;let _=Il(I.floating,u.x),A=Il(I.floating,u.y);return a?{...P,transform:"translate("+_+"px, "+A+"px)",...Dl(I.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:_,top:A}},[o,a,I.floating,u.x,u.y]);return ge.useMemo(()=>({...u,update:L,refs:E,elements:I,floatingStyles:B}),[u,L,E,I,B])}var ys=(e,t)=>{let o=Sl(e);return{name:o.name,fn:o.fn,options:[e,t]}},xs=(e,t)=>{let o=Cl(e);return{name:o.name,fn:o.fn,options:[e,t]}},bs=(e,t)=>({fn:kl(e).fn,options:[e,t]}),vs=(e,t)=>{let o=Pl(e);return{name:o.name,fn:o.fn,options:[e,t]}},ws=(e,t)=>{let o=Ol(e);return{name:o.name,fn:o.fn,options:[e,t]}};var Rs=(e,t)=>{let o=_l(e);return{name:o.name,fn:o.fn,options:[e,t]}};var So=g(F(),1),Jl=g(Dt(),1);var Gl=g(F(),1);var K=(e,t,o,r,n,s,...i)=>{if(i.length>0)throw new Error(De(1));let a;if(e&&t&&o&&r&&n&&s)a=(c,l,u,d)=>{let p=e(c,l,u,d),m=t(c,l,u,d),f=o(c,l,u,d),h=r(c,l,u,d),x=n(c,l,u,d);return s(p,m,f,h,x,l,u,d)};else if(e&&t&&o&&r&&n)a=(c,l,u,d)=>{let p=e(c,l,u,d),m=t(c,l,u,d),f=o(c,l,u,d),h=r(c,l,u,d);return n(p,m,f,h,l,u,d)};else if(e&&t&&o&&r)a=(c,l,u,d)=>{let p=e(c,l,u,d),m=t(c,l,u,d),f=o(c,l,u,d);return r(p,m,f,l,u,d)};else if(e&&t&&o)a=(c,l,u,d)=>{let p=e(c,l,u,d),m=t(c,l,u,d);return o(p,m,l,u,d)};else if(e&&t)a=(c,l,u,d)=>{let p=e(c,l,u,d);return t(p,l,u,d)};else if(e)a=e;else throw new Error("Missing arguments");return a};var ql=g(F(),1),Os=g(Ts(),1),Kl=g(Ul(),1);var Wl=g(F(),1);var Ss=[],Cs;function $l(){return Cs}function Yl(e){Ss.push(e)}function Ps(e){let t=(o,r)=>{let n=we(km).current,s;try{Cs=n;for(let i of Ss)i.before(n);s=e(o,r);for(let i of Ss)i.after(n);n.didInitialize=!0}finally{Cs=void 0}return s};return t.displayName=e.displayName||e.name,t}function zl(e){return Wl.forwardRef(Ps(e))}function km(){return{didInitialize:!1}}var Im=go(19),Am=Im?Dm:Mm;function qr(e,t,o,r,n){return Am(e,t,o,r,n)}function Nm(e,t,o,r,n){let s=ql.useCallback(()=>t(e.getSnapshot(),o,r,n),[e,t,o,r,n]);return(0,Os.useSyncExternalStore)(e.subscribe,s,s)}Yl({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let o=0;o<e.syncHooks.length;o+=1){let r=e.syncHooks[o],n=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,n)||(t=!0,r.value=n)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let o=new Set;for(let n of e.syncHooks)o.add(n.store);let r=[];for(let n of o)r.push(n.subscribe(t));return()=>{for(let n of r)n()}}),(0,Os.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Dm(e,t,o,r,n){let s=$l();if(!s)return Nm(e,t,o,r,n);let i=s.syncIndex;s.syncIndex+=1;let a;return s.didInitialize?(a=s.syncHooks[i],(a.store!==e||a.selector!==t||!Object.is(a.a1,o)||!Object.is(a.a2,r)||!Object.is(a.a3,n))&&(a.store!==e&&(s.didChangeStore=!0),a.store=e,a.selector=t,a.a1=o,a.a2=r,a.a3=n,a.value=t(e.getSnapshot(),o,r,n))):(a={store:e,selector:t,a1:o,a2:r,a3:n,value:t(e.getSnapshot(),o,r,n)},s.syncHooks.push(a)),a.value}function Mm(e,t,o,r,n){return(0,Kl.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,o,r,n))}var Kr=class{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let o=this.updateTick;for(let r of this.listeners){if(o!==this.updateTick)return;r(t)}}update(t){for(let o in t)if(!Object.is(this.state[o],t[o])){this.setState({...this.state,...t});return}}set(t,o){Object.is(this.state[t],o)||this.setState({...this.state,[t]:o})}notifyAll(){let t={...this.state};this.setState(t)}use(t,o,r,n){return qr(this,t,o,r,n)}};var ro=g(F(),1);var To=class extends Kr{constructor(t,o={},r){super(t),this.context=o,this.selectors=r}useSyncedValue(t,o){ro.useDebugValue(t);let r=this;j(()=>{r.state[t]!==o&&r.set(t,o)},[r,t,o])}useSyncedValueWithCleanup(t,o){let r=this;j(()=>(r.state[t]!==o&&r.set(t,o),()=>{r.set(t,void 0)}),[r,t,o])}useSyncedValues(t){let o=this,r=Object.values(t);j(()=>{o.update(t)},[o,...r])}useControlledProp(t,o){ro.useDebugValue(t);let r=this,n=o!==void 0;j(()=>{n&&!Object.is(r.state[t],o)&&r.setState({...r.state,[t]:o})},[r,t,o,n])}select(t,o,r,n){let s=this.selectors[t];return s(this.state,o,r,n)}useState(t,o,r,n){return ro.useDebugValue(t),qr(this,this.selectors[t],o,r,n)}useContextCallback(t,o){ro.useDebugValue(t);let r=W(o??It);this.context[t]=r}useStateSetter(t){let o=ro.useRef(void 0);return o.current===void 0&&(o.current=r=>{this.set(t,r)}),o.current}observe(t,o){let r;typeof t=="function"?r=t:r=this.selectors[t];let n=r(this.state);return o(n,n,this),this.subscribe(s=>{let i=r(s);if(!Object.is(n,i)){let a=n;n=i,o(i,a,this)}})}};var Lm={open:K(e=>e.open),transitionStatus:K(e=>e.transitionStatus),domReferenceElement:K(e=>e.domReferenceElement),referenceElement:K(e=>e.positionReference??e.referenceElement),floatingElement:K(e=>e.floatingElement),floatingId:K(e=>e.floatingId)},pt=class extends To{constructor(t){let{syncOnly:o,nested:r,onOpenChange:n,triggerElements:s,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:nl(),nested:r,triggerElements:s},Lm),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&Ha(o))&&(this.context.dataRef.current.openEvent=t?o:void 0)};dispatchOpenChange=(t,o)=>{this.syncOpenEvent(t,o.event);let r={open:t,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",r)};setOpen=(t,o)=>{if(this.syncOnly){this.context.onOpenChange?.(t,o);return}this.dispatchOpenChange(t,o),this.context.onOpenChange?.(t,o)}};function Xl(e){let{popupStore:t,treatPopupAsFloatingElement:o=!1,floatingRootContext:r,floatingId:n,nested:s,onOpenChange:i}=e,a=t.useState("open"),c=t.useState("activeTriggerElement"),l=t.useState(o?"popupElement":"positionerElement"),u=t.context.triggerElements,d=i,p=Gl.useRef(null);r===void 0&&p.current===null&&(p.current=new pt({open:a,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:n,syncOnly:!0,nested:s}));let m=r??p.current;return t.useSyncedValue("floatingId",n),j(()=>{let f={open:a,floatingId:n,referenceElement:c,floatingElement:l};H(c)&&(f.domReferenceElement=c),m.state.positionReference===m.state.referenceElement&&(f.positionReference=c),m.update(f)},[a,n,c,l,m]),m.context.onOpenChange=d,m.context.nested=s,m}var Zl={tabIndex:-1,[ns]:""};function Ql(e,t,o=!1){let r=At(),n=wo()!=null,s=So.useRef(null);e===void 0&&s.current===null&&(s.current=t(r,n));let i=e??s.current;return Xl({popupStore:i,treatPopupAsFloatingElement:o,floatingRootContext:i.state.floatingRootContext,floatingId:r,nested:n,onOpenChange:i.setOpen}),{store:i,internalStore:s.current}}function Bm(e,t){let o=So.useRef(null),r=So.useRef(null);return So.useCallback(n=>{if(e===void 0)return;let s=!1;if(o.current!==null){let i=o.current,a=r.current,c=t.context.triggerElements.getById(i);a&&c===a&&(t.context.triggerElements.delete(i),s=!0),o.current=null,r.current=null}if(n!==null&&(o.current=e,r.current=n,t.context.triggerElements.add(e,n),s=!0),s){let i=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==i&&t.set("triggerCount",i)}},[t,e])}function Fm(e,t,o,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let n=o?.id??null;(n||t)&&(e.activeTriggerId=n,e.activeTriggerElement=o??null)}function jm(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function ec(e,t,o,r={}){let n=o.reason,s=n===$.triggerHover,i=t&&n===$.triggerFocus,a=!t&&(n===$.triggerPress||n===$.escapeKey),c=jm(o);if(e.context.onOpenChange?.(t,o),o.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,o);let l=()=>{let u={...r.extraState,open:t};i?u.instantType="focus":a?u.instantType="dismiss":s&&(u.instantType=void 0),Fm(u,t,o.trigger,c()),e.update(u)};s?Jl.flushSync(l):l()}function tc(e,t,o,r){Ma(()=>{t===void 0&&e.state.open===!1&&o&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function oc(e,t,o,r){let n=o.useState("isMountedByTrigger",e),s=Bm(e,o),i=W(a=>{if(s(a),!a)return;let c=o.select("open"),l=o.select("activeTriggerId");if(l===e){o.update({activeTriggerElement:a,...c?r:null});return}l==null&&c&&o.update({activeTriggerId:e,activeTriggerElement:a,...r})});return j(()=>{n&&o.update({activeTriggerElement:t.current,...r})},[n,o,t,...Object.values(r)]),{registerTrigger:i,isMountedByThisTrigger:n}}function rc(e,t={}){let{closeOnActiveTriggerUnmount:o=!1}=t,r=e.useState("open"),n=e.useState("triggerCount");j(()=>{if(!r){e.state.triggerCount!==0&&e.set("triggerCount",0);return}let s=e.context.triggerElements.size,i={};e.state.triggerCount!==s&&(i.triggerCount=s);let a=e.select("activeTriggerId"),c=null;if(a){let l=e.context.triggerElements.getById(a);l?l!==e.state.activeTriggerElement&&(i.activeTriggerElement=l):c=a}if(!c&&!a&&s===1){let l=e.context.triggerElements.entries().next();if(!l.done){let[u,d]=l.value;i.activeTriggerId=u,i.activeTriggerElement=d}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),c&&o&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===c&&!e.context.triggerElements.getById(c)){let l=J($.none);e.setOpen(!1,l),l.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,n,o])}function nc(e,t,o){let{mounted:r,setMounted:n,transitionStatus:s}=Sa(e),i=t.useState("preventUnmountingOnClose"),a=e?!1:i;t.useSyncedValues({mounted:r,transitionStatus:s,preventUnmountingOnClose:a});let c=W(()=>{n(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)});return Dr({enabled:r&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:s}}function sc(e,t){e.useSyncedValues(t),j(()=>()=>{e.update({activeTriggerProps:fe,inactiveTriggerProps:fe,popupProps:fe})},[e])}var jt=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,o){let r=this.idMap.get(t);r!==o&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(o),this.idMap.set(t,o))}delete(t){let o=this.idMap.get(t);o&&(this.elementsSet.delete(o),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(let o of this.elementsSet)if(t(o))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function ic(){return new pt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new jt,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function lc(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:ic(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:fe,inactiveTriggerProps:fe,popupProps:fe}}function cc(e,t,o=!1){return new pt({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:o,onOpenChange:void 0})}var er=K(e=>e.triggerIdProp??e.activeTriggerId),_s=K(e=>e.openProp??e.open),ac=K(e=>(e.popupElement?.id??e.floatingId)||void 0);function uc(e,t){return t!==void 0&&_s(e)&&er(e)===t}function Vm(e,t){return uc(e,t)?!0:t!==void 0&&_s(e)&&er(e)==null&&e.triggerCount===1}var fc={open:_s,mounted:K(e=>e.mounted),transitionStatus:K(e=>e.transitionStatus),floatingRootContext:K(e=>e.floatingRootContext),triggerCount:K(e=>e.triggerCount),preventUnmountingOnClose:K(e=>e.preventUnmountingOnClose),payload:K(e=>e.payload),activeTriggerId:er,activeTriggerElement:K(e=>e.mounted?e.activeTriggerElement:null),popupId:ac,isTriggerActive:K((e,t)=>t!==void 0&&er(e)===t),isOpenedByTrigger:K((e,t)=>uc(e,t)),isMountedByTrigger:K((e,t)=>t!==void 0&&er(e)===t&&e.mounted),triggerProps:K((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:K((e,t)=>Vm(e,t)?ac(e):void 0),popupProps:K(e=>e.popupProps),popupElement:K(e=>e.popupElement),positionerElement:K(e=>e.positionerElement)};function dc(e){let{open:t=!1,onOpenChange:o,elements:r={}}=e,n=At(),s=wo()!=null,i=we(()=>new pt({open:t,transitionStatus:void 0,onOpenChange:o,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new jt,floatingId:n,syncOnly:!1,nested:s})).current;return j(()=>{let a={open:t,floatingId:n};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=H(r.reference)?r.reference:null),r.floating!==void 0&&(a.floatingElement=r.floating),i.update(a)},[t,n,r.reference,r.floating,i]),i.context.onOpenChange=o,i.context.nested=s,i}function ks(e={}){let{nodeId:t,externalTree:o}=e,r=dc(e),n=e.rootContext||r,s=n.useState("referenceElement"),i=n.useState("floatingElement"),a=n.useState("domReferenceElement"),c=n.useState("open"),l=n.useState("floatingId"),[u,d]=Ce.useState(null),[p,m]=Ce.useState(void 0),[f,h]=Ce.useState(void 0),x=Ce.useRef(null),b=Ft(o),y=Ce.useMemo(()=>({reference:s,floating:i,domReference:a}),[s,i,a]),w=Ml({...e,elements:{...y,...u&&{reference:u}}}),v=H(p)?p:null,S=f===void 0?n.state.floatingElement:f;n.useSyncedValue("referenceElement",p??null),n.useSyncedValue("domReferenceElement",p===void 0?a:v),n.useSyncedValue("floatingElement",S);let R=Ce.useCallback(D=>{let L=H(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),getClientRects:()=>D.getClientRects(),contextElement:D}:D;d(L),w.refs.setReference(L)},[w.refs]),T=Ce.useCallback(D=>{(H(D)||D===null)&&(x.current=D,m(D)),(H(w.refs.reference.current)||w.refs.reference.current===null||D!==null&&!H(D))&&w.refs.setReference(D)},[w.refs,m]),C=Ce.useCallback(D=>{h(D),w.refs.setFloating(D)},[w.refs]),O=Ce.useMemo(()=>({...w.refs,setReference:T,setFloating:C,setPositionReference:R,domReference:x}),[w.refs,T,C,R]),k=Ce.useMemo(()=>({...w.elements,domReference:a}),[w.elements,a]),z=Ce.useMemo(()=>({...w,dataRef:n.context.dataRef,open:c,onOpenChange:n.setOpen,events:n.context.events,floatingId:l,refs:O,elements:k,nodeId:t,rootStore:n}),[w,O,k,t,n,c,l]);return j(()=>{a&&(x.current=a)},[a]),j(()=>{n.context.dataRef.current.floatingContext=z;let D=b?.nodesRef.current.find(L=>L.id===t);D&&(D.context=z)}),Ce.useMemo(()=>({...w,context:z,refs:O,elements:k,rootStore:n}),[w,O,k,z,n])}var mt=g(F(),1);var Is=Rt.os.mac&&Rt.engine.webkit;function As(e,t={}){let{enabled:o=!0,delay:r}=t,n="rootStore"in e?e.rootStore:e,{events:s,dataRef:i}=n.context,a=mt.useRef(!1),c=mt.useRef(null),l=mt.useRef(!0),u=Qe();mt.useEffect(()=>{let p=n.select("domReferenceElement");if(!o)return;let m=ie(p);function f(){let b=n.select("domReferenceElement");!n.select("open")&&Re(b)&&b===Mr(xe(b))&&(a.current=!0)}function h(){l.current=!0}function x(){l.current=!1}return et(ee(m,"blur",f),Is&&ee(m,"keydown",h,!0),Is&&ee(m,"pointerdown",x,!0))},[n,o]),mt.useEffect(()=>{if(!o)return;function p(m){if(m.reason===$.triggerPress||m.reason===$.escapeKey){let f=n.select("domReferenceElement");H(f)&&(c.current=f,a.current=!0)}}return s.on("openchange",p),()=>{s.off("openchange",p)}},[s,o,n]);let d=mt.useMemo(()=>{function p(){a.current=!1,c.current=null}return{onMouseLeave(){p()},onFocus(m){let f=m.currentTarget;if(a.current){if(c.current===f)return;p()}let h=Ie(m.nativeEvent);if(H(h)){if(Is&&!m.relatedTarget){if(!l.current&&!Wa(h))return}else if(!$a(h))return}let x=Mt(m.relatedTarget,n.context.triggerElements),{nativeEvent:b,currentTarget:y}=m,w=typeof r=="function"?r():r;if(n.select("open")&&x||w===0||w===void 0){n.setOpen(!0,J($.triggerFocus,b,y));return}u.start(w,()=>{a.current||n.setOpen(!0,J($.triggerFocus,b,y))})},onBlur(m){p();let f=m.relatedTarget,h=m.nativeEvent,x=H(f)&&f.hasAttribute(vo("focus-guard"))&&f.getAttribute("data-type")==="outside";u.start(0,()=>{let b=n.select("domReferenceElement"),y=Mr(xe(b));!f&&y===b||te(i.current.floatingContext?.refs.floating.current,y)||te(b,y)||x||Mt(f??y,n.context.triggerElements)||n.setOpen(!1,J($.triggerFocus,h))})}}},[i,r,n,u]);return mt.useMemo(()=>o?{reference:d,trigger:d}:{},[o,d])}var Ds=g(F(),1);var Ns=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new We,this.restTimeout=new We,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Gr=new WeakMap;function Co(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Gr.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Gr.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Xr(e,t){let{scopeElement:o,referenceElement:r,floatingElement:n}=t,s=Gr.get(o);s&&s!==e&&Co(s),Co(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=n,Gr.set(o,e),o.style.pointerEvents="none",r.style.pointerEvents="auto",n.style.pointerEvents="auto"}function Po(e){let t=e.context.dataRef.current,o=we(()=>t.hoverInteractionState??Ns.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=o),ho(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Ms(e,t={}){let{enabled:o=!0,closeDelay:r=0,nodeId:n}=t,s="rootStore"in e?e.rootStore:e,i=s.useState("open"),a=s.useState("floatingElement"),c=s.useState("domReferenceElement"),{dataRef:l}=s.context,u=Ft(),d=wo(),p=Po(s),m=Qe(),f=W(()=>Br(l.current.openEvent?.type,p.interactedInside)),h=W(()=>Ya(l.current.openEvent?.type)),x=W(()=>{Co(p)});j(()=>{i||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,x())},[i,p,x]),Ds.useEffect(()=>x,[x]),j(()=>{if(o&&i&&p.handleCloseOptions?.blockPointerEvents&&h()&&H(c)&&a){let b=c,y=a,w=xe(a),v=u?.nodesRef.current.find(C=>C.id===d)?.context?.elements.floating;v&&(v.style.pointerEvents="");let S=p.pointerEventsScopeElement!==y?p.pointerEventsScopeElement:null,R=v!==y?v:null,T=p.handleCloseOptions?.getScope?.()??S??R??b.closest("[data-rootownerid]")??w.body;return Xr(p,{scopeElement:T,referenceElement:b,floatingElement:y}),()=>{x()}}},[o,i,c,a,p,h,u,d,x]),Ds.useEffect(()=>{if(!o)return;function b(){return!!(u&&d&&St(u.nodesRef.current,d).length>0)}function y(C){let O=Tt(r,"close",p.pointerType),k=()=>{s.setOpen(!1,J($.triggerHover,C)),u?.events.emit("floating.closed",C)};O?p.openChangeTimeout.start(O,k):(p.openChangeTimeout.clear(),k())}function w(C){let O=Ie(C);if(!is(O)){p.interactedInside=!1;return}p.interactedInside=O?.closest("[aria-haspopup]")!=null}function v(){p.openChangeTimeout.clear(),m.clear(),u?.events.off("floating.closed",R),x()}function S(C){if(b()&&u){u.events.on("floating.closed",R);return}if(Mt(C.relatedTarget,s.context.triggerElements))return;let O=l.current.floatingContext?.nodeId??n,k=C.relatedTarget;if(!(u&&O&&H(k)&&St(u.nodesRef.current,O,!1).some(D=>te(D.context?.elements.floating,k)))){if(p.handler){p.handler(C);return}x(),h()&&!f()&&y(C)}}function R(C){!u||!d||b()||m.start(0,()=>{u.events.off("floating.closed",R),s.setOpen(!1,J($.triggerHover,C)),u.events.emit("floating.closed",C)})}let T=a;return et(T&&ee(T,"mouseenter",v),T&&ee(T,"mouseleave",S),T&&ee(T,"pointerdown",w,!0),()=>{u?.events.off("floating.closed",R)})},[o,a,s,l,r,n,h,f,x,p,u,d,m])}var Vt=g(F(),1),pc=g(Dt(),1);var Hm={current:null};function Ls(e,t={}){let{enabled:o=!0,delay:r=0,handleClose:n=null,mouseOnly:s=!1,restMs:i=0,move:a=!0,triggerElementRef:c=Hm,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:p,shouldOpen:m}=t,f="rootStore"in e?e.rootStore:e,{dataRef:h,events:x}=f.context,b=Ft(l),y=Po(f),w=Vt.useRef(!1),v=Le(n),S=Le(r),R=Le(i),T=Le(o),C=Le(m),O=Le(p),k=W(()=>Br(h.current.openEvent?.type,y.interactedInside)),z=W(()=>C.current?.()!==!1),D=W((E,I,B)=>{let P=f.context.triggerElements;if(P.hasElement(I))return!E||!te(E,I);if(!H(B))return!1;let _=B;return P.hasMatchingElement(A=>te(A,_))&&(!E||!te(E,_))}),L=W(()=>{if(!y.handler)return;xe(f.select("domReferenceElement")).removeEventListener("mousemove",y.handler),y.handler=void 0}),M=W(()=>{Co(y)});return u&&(y.handleCloseOptions=v.current?.__options),Vt.useEffect(()=>L,[L]),Vt.useEffect(()=>{if(!o)return;function E(I){I.open?w.current=!1:(w.current=I.reason===$.triggerHover,L(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return x.on("openchange",E),()=>{x.off("openchange",E)}},[o,x,y,L]),Vt.useEffect(()=>{if(!o)return;function E(_,A=!0){let X=Tt(S.current,"close",y.pointerType);X?y.openChangeTimeout.start(X,()=>{f.setOpen(!1,J($.triggerHover,_)),b?.events.emit("floating.closed",_)}):A&&(y.openChangeTimeout.clear(),f.setOpen(!1,J($.triggerHover,_)),b?.events.emit("floating.closed",_))}let I=c.current??(u?f.select("domReferenceElement"):null);if(!H(I))return;function B(_){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,s&&!Et(y.pointerType))return;let A=as(R.current),X=Tt(S.current,"open",y.pointerType),U=Ie(_),Q=_.currentTarget??null,Z=f.select("domReferenceElement"),ne=Q;if(H(U)&&!f.context.triggerElements.hasElement(U)){for(let ue of f.context.triggerElements.elements())if(te(ue,U)){ne=ue;break}}H(Q)&&H(Z)&&!f.context.triggerElements.hasElement(Q)&&te(Q,Z)&&(ne=Z);let Y=ne==null?!1:D(Z,ne,U),ae=f.select("open"),le=O.current?.()??f.select("transitionStatus")==="ending",de=!ae&&le&&w.current,Oe=!Y&&H(ne)&&H(Z)&&te(Z,ne)&&de,ve=A>0&&!X,G=Y&&(ae||de)||Oe,ce=!ae||Y;if(G){z()&&f.setOpen(!0,J($.triggerHover,_,ne));return}ve||(X?y.openChangeTimeout.start(X,()=>{ce&&z()&&f.setOpen(!0,J($.triggerHover,_,ne))}):ce&&z()&&f.setOpen(!0,J($.triggerHover,_,ne)))}function P(_){if(k()){M();return}L();let A=f.select("domReferenceElement"),X=xe(A);y.restTimeout.clear(),y.restTimeoutPending=!1;let U=h.current.floatingContext??d?.();if(Mt(_.relatedTarget,f.context.triggerElements))return;if(v.current&&U){f.select("open")||y.openChangeTimeout.clear();let Z=c.current;y.handler=v.current({...U,tree:b,x:_.clientX,y:_.clientY,onClose(){M(),L(),T.current&&!k()&&Z===f.select("domReferenceElement")&&E(_,!0)}}),X.addEventListener("mousemove",y.handler),y.handler(_);return}(y.pointerType!=="touch"||!te(f.select("floatingElement"),_.relatedTarget))&&E(_)}return a?et(ee(I,"mousemove",B,{once:!0}),ee(I,"mouseenter",B),ee(I,"mouseleave",P)):et(ee(I,"mouseenter",B),ee(I,"mouseleave",P))},[L,M,h,S,f,o,v,y,u,D,k,s,a,R,c,b,T,d,O,z]),Vt.useMemo(()=>{if(!o)return;function E(I){y.pointerType=I.pointerType}return{onPointerDown:E,onPointerEnter:E,onMouseMove(I){let{nativeEvent:B}=I,P=I.currentTarget,_=f.select("domReferenceElement"),A=f.select("open"),X=D(_,P,I.target);if(s&&!Et(y.pointerType))return;if(A&&X&&y.handleCloseOptions?.blockPointerEvents){let Z=f.select("floatingElement");if(Z){let ne=y.handleCloseOptions?.getScope?.()??P.ownerDocument.body;Xr(y,{scopeElement:ne,referenceElement:P,floatingElement:Z})}}let U=as(R.current);if(A&&!X||U===0||!X&&y.restTimeoutPending&&I.movementX**2+I.movementY**2<2)return;y.restTimeout.clear();function Q(){if(y.restTimeoutPending=!1,k())return;let Z=f.select("open");!y.blockMouseMove&&(!Z||X)&&z()&&f.setOpen(!0,J($.triggerHover,B,P))}y.pointerType==="touch"?pc.flushSync(()=>{Q()}):X&&A?Q():(y.restTimeoutPending=!0,y.restTimeout.start(U,Q))}}},[o,y,k,D,s,f,R,z])}var mc=.1,Um=mc*mc,re=.5;function Jr(e,t,o,r,n,s){return r>=t!=s>=t&&e<=(n-o)*(t-r)/(s-r)+o}function Zr(e,t,o,r,n,s,i,a,c,l){let u=!1;return Jr(e,t,o,r,n,s)&&(u=!u),Jr(e,t,n,s,i,a)&&(u=!u),Jr(e,t,i,a,c,l)&&(u=!u),Jr(e,t,c,l,o,r)&&(u=!u),u}function Wm(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function Qr(e,t,o,r,n,s){let i=Math.min(o,n),a=Math.max(o,n),c=Math.min(r,s),l=Math.max(r,s);return e>=i&&e<=a&&t>=c&&t<=l}function Bs(e={}){let{blockPointerEvents:t=!1}=e,o=new We,r=({x:n,y:s,placement:i,elements:a,onClose:c,nodeId:l,tree:u})=>{let d=i?.split("-")[0],p=!1,m=null,f=null,h=typeof performance<"u"?performance.now():0;function x(y,w){let v=performance.now(),S=v-h;if(m===null||f===null||S===0)return m=y,f=w,h=v,!1;let R=y-m,T=w-f,C=R*R+T*T,O=S*S*Um;return m=y,f=w,h=v,C<O}function b(){o.clear(),c()}return function(w){o.clear();let v=a.domReference,S=a.floating;if(!v||!S||d==null||n==null||s==null)return;let{clientX:R,clientY:T}=w,C=Ie(w),O=w.type==="mouseleave",k=te(S,C),z=te(v,C);if(k&&(p=!0,!O))return;if(z&&(p=!1,!O)){p=!0;return}if(O&&H(w.relatedTarget)&&te(S,w.relatedTarget))return;function D(){return!!(u&&St(u.nodesRef.current,l).length>0)}function L(){D()||b()}if(D())return;let M=v.getBoundingClientRect(),E=S.getBoundingClientRect(),I=n>E.right-E.width/2,B=s>E.bottom-E.height/2,P=E.width>M.width,_=E.height>M.height,A=(P?M:E).left,X=(P?M:E).right,U=(_?M:E).top,Q=(_?M:E).bottom;if(d==="top"&&s>=M.bottom-1||d==="bottom"&&s<=M.top+1||d==="left"&&n>=M.right-1||d==="right"&&n<=M.left+1){L();return}let Z=!1;switch(d){case"top":Z=Qr(R,T,A,M.top+1,X,E.bottom-1);break;case"bottom":Z=Qr(R,T,A,E.top+1,X,M.bottom-1);break;case"left":Z=Qr(R,T,E.right-1,Q,M.left+1,U);break;case"right":Z=Qr(R,T,M.right-1,Q,E.left+1,U);break;default:}if(Z)return;if(p&&!Wm(R,T,M)){L();return}if(!O&&x(R,T)){L();return}let ne=!1;switch(d){case"top":{let Y=P?re/2:re*4,ae=P||I?n+Y:n-Y,le=P?n-Y:I?n+Y:n-Y,de=s+re+1,Oe=I||P?E.bottom-re:E.top,ve=I?P?E.bottom-re:E.top:E.bottom-re;ne=Zr(R,T,ae,de,le,de,E.left,Oe,E.right,ve);break}case"bottom":{let Y=P?re/2:re*4,ae=P||I?n+Y:n-Y,le=P?n-Y:I?n+Y:n-Y,de=s-re,Oe=I||P?E.top+re:E.bottom,ve=I?P?E.top+re:E.bottom:E.top+re;ne=Zr(R,T,ae,de,le,de,E.left,Oe,E.right,ve);break}case"left":{let Y=_?re/2:re*4,ae=_||B?s+Y:s-Y,le=_?s-Y:B?s+Y:s-Y,de=n+re+1,Oe=B||_?E.right-re:E.left,ve=B?_?E.right-re:E.left:E.right-re;ne=Zr(R,T,Oe,E.top,ve,E.bottom,de,ae,de,le);break}case"right":{let Y=_?re/2:re*4,ae=_||B?s+Y:s-Y,le=_?s-Y:B?s+Y:s-Y,de=n-re,Oe=B||_?E.left+re:E.right,ve=B?_?E.left+re:E.right:E.left+re;ne=Zr(R,T,de,ae,de,le,Oe,E.top,ve,E.bottom);break}default:}ne?p||o.start(40,L):L()}};return r.__options={...e,blockPointerEvents:t},r}var Fs=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Gt.startingStyle]="startingStyle",e[e.endingStyle=Gt.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),tr=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({}),$m={[tr.popupOpen]:""},Dw={[tr.popupOpen]:"",[tr.pressed]:""},Ym={[Fs.open]:""},zm={[Fs.closed]:""},qm={[Fs.anchorHidden]:""},gc={open(e){return e?$m:null}};var Oo={open(e){return e?Ym:zm},anchorHidden(e){return e?qm:null}};function hc(e){return go(19)?e:e?"true":void 0}var Ye=g(F(),1);var Km=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:r,placement:n,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d="real"}=ot(e,t)||{};if(l==null)return{};let p=Hr(u),m={x:o,y:r},f=Zo(n),h=Jo(f),x=await i.getDimensions(l),b=f==="y",y=b?"top":"left",w=b?"bottom":"right",v=b?"clientHeight":"clientWidth",S=s.reference[h]+s.reference[f]-m[f]-s.floating[h],R=m[f]-s.reference[f],T=d==="real"?await i.getOffsetParent?.(l):a.floating,C=a.floating[v]||s.floating[h];(!C||!await i.isElement?.(T))&&(C=a.floating[v]||s.floating[h]);let O=S/2-R/2,k=C/2-x[h]/2-1,z=Math.min(p[y],k),D=Math.min(p[w],k),L=z,M=C-x[h]-D,E=C/2-x[h]/2+O,I=jr(L,E,M),B=!c.arrow&&rt(n)!=null&&E!==I&&s.reference[h]/2-(E<L?z:D)-x[h]/2<0,P=B?E<L?E-L:E-M:0;return{[f]:m[f]+P,data:{[f]:I,centerOffset:E-I-P,...B&&{alignmentOffset:P}},reset:B}}}),yc=(e,t)=>({...Km(e),options:[e,t]});var Gm=Rs().fn,xc={name:"hide",async fn(e){let{width:t,height:o,x:r,y:n}=e.rects.reference,s=t===0&&o===0&&r===0&&n===0;return{data:{referenceHidden:(await Gm(e)).data?.referenceHidden||s}}}};var or={sideX:"left",sideY:"top"},bc={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:r},elements:{floating:n},platform:s,strategy:i,placement:a}=e,c=ie(n),l=c.getComputedStyle(n);if(!(l.transitionDuration!=="0s"&&l.transitionDuration!==""))return{x:t,y:o,data:or};let d=await s.getOffsetParent?.(n),p={width:0,height:0};if(i==="fixed"&&c?.visualViewport)p={width:c.visualViewport.width,height:c.visualViewport.height};else if(d===c){let y=xe(n);p={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await s.isElement?.(d)&&(p=await s.getDimensions(d));let m=Se(a),f=t,h=o;m==="left"&&(f=p.width-(t+r.width)),m==="top"&&(h=p.height-(o+r.height));let x=m==="left"?"right":or.sideX,b=m==="top"?"bottom":or.sideY;return{x:f,y:h,data:{sideX:x,sideY:b}}}};function Rc(e,t,o){let r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?o?"inline-start":"inline-end":"right",bottom:"bottom",left:r?o?"inline-end":"inline-start":"left"}[t]}function vc(e,t,o){let{rects:r,placement:n}=e;return{side:Rc(t,Se(n),o),align:rt(n)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Ec(e){let{anchor:t,positionMethod:o="absolute",side:r="bottom",sideOffset:n=0,align:s="center",alignOffset:i=0,collisionBoundary:a,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:p,keepMounted:m=!1,floatingRootContext:f,mounted:h,collisionAvoidance:x,shiftCrossAxis:b=!1,nodeId:y,adaptiveOrigin:w,lazyFlip:v=!1,externalTree:S}=e,[R,T]=Ye.useState(null);!h&&R!==null&&T(null);let C=x.side||"flip",O=x.align||"flip",k=x.fallbackAxisSide||"end",z=typeof t=="function"?t:void 0,D=W(z),L=z?D:t,M=Le(t),E=Le(h),B=mo()==="rtl",P=R||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":B?"left":"right","inline-start":B?"right":"left"}[r],_=s==="center"?P:`${P}-${s}`,A=c,X=1,U=r==="bottom"?X:0,Q=r==="top"?X:0,Z=r==="right"?X:0,ne=r==="left"?X:0;typeof A=="number"?A={top:A+U,right:A+ne,bottom:A+Q,left:A+Z}:A&&(A={top:(A.top||0)+U,right:(A.right||0)+ne,bottom:(A.bottom||0)+Q,left:(A.left||0)+Z});let Y={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:A},ae=Ye.useRef(null),le=Le(n),de=Le(i),Oe=typeof n!="function"?n:0,ve=typeof i!="function"?i:0,G=[];p&&G.push(p),G.push(ys(oe=>{let _e=vc(oe,r,B),at=typeof le.current=="function"?le.current(_e):le.current,ze=typeof de.current=="function"?de.current(_e):de.current;return{mainAxis:at,crossAxis:ze,alignmentAxis:ze}},[Oe,ve,B,r]));let ce=O==="none"&&C!=="shift",ue=!ce&&(l||b||C==="shift"),Yt=C==="none"?null:vs({...Y,padding:{top:A.top+X,right:A.right+X,bottom:A.bottom+X,left:A.left+X},mainAxis:!b&&C==="flip",crossAxis:O==="flip"?"alignment":!1,fallbackAxisSideDirection:k}),Xe=ce?null:xs(oe=>{let _e=xe(oe.elements.floating).documentElement;return{...Y,rootBoundary:b?{x:0,y:0,width:_e.clientWidth,height:_e.clientHeight}:void 0,mainAxis:O!=="none",crossAxis:ue,limiter:l||b?void 0:bs(at=>{if(!ae.current)return{};let{width:ze,height:bt}=ae.current.getBoundingClientRect(),Ze=Be(Se(at.placement)),zt=Ze==="y"?ze:bt,ao=Ze==="y"?A.left+A.right:A.top+A.bottom;return{offset:zt/2+ao/2}})}},[Y,l,b,A,O]);C==="shift"||O==="shift"||s==="center"?G.push(Xe,Yt):G.push(Yt,Xe),G.push(ws({...Y,apply({elements:{floating:oe},availableWidth:_e,availableHeight:at,rects:ze}){if(!E.current)return;let bt=oe.style;bt.setProperty("--available-width",`${_e}px`),bt.setProperty("--available-height",`${at}px`);let Ze=ie(oe).devicePixelRatio||1,{x:zt,y:ao,width:yr,height:On}=ze.reference,_n=(Math.round((zt+yr)*Ze)-Math.round(zt*Ze))/Ze,kn=(Math.round((ao+On)*Ze)-Math.round(ao*Ze))/Ze;bt.setProperty("--anchor-width",`${_n}px`),bt.setProperty("--anchor-height",`${kn}px`)}}),yc(oe=>({element:ae.current||xe(oe.elements.floating).createElement("div"),padding:u,offsetParent:"floating"}),[u]),{name:"transformOrigin",fn(oe){let{elements:_e,middlewareData:at,placement:ze,rects:bt,y:Ze}=oe,zt=Se(ze),ao=Be(zt),yr=ae.current,On=at.arrow?.x||0,_n=at.arrow?.y||0,kn=yr?.clientWidth||0,If=yr?.clientHeight||0,In=On+kn/2,yi=_n+If/2,Af=Math.abs(at.shift?.y||0),Nf=bt.reference.height/2,Bo=typeof n=="function"?n(vc(oe,r,B)):n,Df=Af>Bo,Mf={top:`${In}px calc(100% + ${Bo}px)`,bottom:`${In}px ${-Bo}px`,left:`calc(100% + ${Bo}px) ${yi}px`,right:`${-Bo}px ${yi}px`}[zt],Lf=`${In}px ${bt.reference.y+Nf-Ze}px`;return _e.floating.style.setProperty("--transform-origin",ue&&ao==="y"&&Df?Lf:Mf),{}}},xc,w),j(()=>{!h&&f&&f.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,f]);let yt=Ye.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<"u",layoutShift:!d&&typeof IntersectionObserver<"u"}),[d]),{refs:Je,elements:it,x:ur,y:fr,middlewareData:ye,update:io,placement:N,context:V,isPositioned:pe,floatingStyles:Ee}=ks({rootContext:f,open:m?h:void 0,placement:_,middleware:G,strategy:o,whileElementsMounted:m?void 0:(...oe)=>Qo(...oe,yt),nodeId:y,externalTree:S}),{sideX:Pt,sideY:Lo}=ye.adaptiveOrigin||or,xt=pe?o:"fixed",He=Ye.useMemo(()=>{let oe=w?{position:xt,[Pt]:ur,[Lo]:fr}:{position:xt,...Ee};return pe||(oe.opacity=0),oe},[w,xt,Pt,ur,Lo,fr,Ee,pe]),Ot=Ye.useRef(null);j(()=>{if(!h)return;let oe=M.current,_e=typeof oe=="function"?oe():oe,ze=(wc(_e)?_e.current:_e)||null||null;ze!==Ot.current&&(Je.setPositionReference(ze),Ot.current=ze)},[h,Je,L,M]),Ye.useEffect(()=>{if(!h)return;let oe=M.current;typeof oe!="function"&&wc(oe)&&oe.current!==Ot.current&&(Je.setPositionReference(oe.current),Ot.current=oe.current)},[h,Je,L,M]),Ye.useEffect(()=>{if(m&&h&&it.reference&&it.floating)return Qo(it.reference,it.floating,io,yt)},[m,h,it,io,yt]);let _t=Se(N),dr=Rc(r,_t,B),pr=rt(N)||"center",mr=!!ye.hide?.referenceHidden;j(()=>{v&&h&&pe&&T(_t)},[v,h,pe,_t]);let gr=Ye.useMemo(()=>({position:"absolute",top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),hr=ye.arrow?.centerOffset!==0;return Ye.useMemo(()=>({positionerStyles:He,arrowStyles:gr,arrowRef:ae,arrowUncentered:hr,side:dr,align:pr,physicalSide:_t,anchorHidden:mr,refs:Je,context:V,isPositioned:pe,update:io}),[He,gr,ae,hr,dr,pr,_t,mr,Je,V,pe,io])}function wc(e){return e!=null&&"current"in e}function en(e){return e==="starting"?el:fe}function Tc(e,t,{styles:o,transitionStatus:r,props:n,refs:s,hidden:i,inert:a=!1}){let c={...o};return a&&(c.pointerEvents="none"),Me("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:i,style:c},en(r),n],stateAttributesMapping:Oo})}var Pe=g(F(),1),Ac=g(Dt(),1);var Sc=g(F(),1);function Cc(e){let[t,o]=Sc.useState({current:e,previous:null});return e!==t.current&&o({current:e,previous:t.current}),t.previous}var _o=g(F(),1);function js(e){let t=ke(e),o=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Re(e),s=n?e.offsetWidth:o,i=n?e.offsetHeight:r;return(Bt(o)!==s||Bt(r)!==i)&&(o=s,r=i),{width:o,height:r}}function Oc(e){let{popupElement:t,positionerElement:o,content:r,mounted:n,onMeasureLayout:s,onMeasureLayoutComplete:i,side:a,direction:c}=e,l=bo(t,!0,!1),u=yo(),d=_o.useRef(null),p=_o.useRef(!0),m=_o.useRef(It),f=W(s),h=W(i),x=_o.useMemo(()=>{let b=a==="top",y=a==="left";return c==="rtl"?(b=b||a==="inline-end",y=y||a==="inline-end"):(b=b||a==="inline-start",y=y||a==="inline-start"),b?{position:"absolute",[a==="top"?"bottom":"top"]:"0",[y?"right":"left"]:"0"}:fe},[a,c]);j(()=>{if(!n){m.current=It,p.current=!0,d.current=null;return}if(!t||!o)return;m.current=Pc(t,x),Vs(t,"auto");let b=on(t,"position","static"),y=on(t,"transform","none"),w=on(t,"scale","1"),v=Pc(o,{"--available-width":"max-content","--available-height":"max-content"});function S(){b(),y(),v()}function R(){S(),w()}if(f?.(),p.current||d.current===null){tn(o,"max-content");let k=js(t);return d.current=k,tn(o,k),R(),h?.(null,k),p.current=!1,()=>{m.current(),m.current=It}}tn(o,"max-content");let T=d.current,C=js(t);d.current=C,Vs(t,T),R(),h?.(T,C),tn(o,C);let O=new AbortController;return u.request(()=>{Vs(t,C),l(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},O.signal)}),()=>{O.abort(),u.cancel(),m.current(),m.current=It}},[r,t,o,l,u,n,f,h,x])}function on(e,t,o){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,r)}}function Pc(e,t){let o=[];for(let[r,n]of Object.entries(t))o.push(on(e,r,n));return o.length?()=>{o.forEach(r=>r())}:It}function Vs(e,t){let o=t==="auto"?"auto":`${t.width}px`,r=t==="auto"?"auto":`${t.height}px`;e.style.setProperty("--popup-width",o),e.style.setProperty("--popup-height",r)}function tn(e,t){let o=t==="max-content"?"max-content":`${t.width}px`,r=t==="max-content"?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",o),e.style.setProperty("--positioner-height",r)}var _c=g(F(),1);var kc=g(q(),1),rn=function(t){let{direction:o="ltr"}=t,r=_c.useMemo(()=>({direction:o}),[o]);return(0,kc.jsx)(Hn.Provider,{value:r,children:t.children})};var ko=g(q(),1);function Nc(e){let{store:t,side:o,cssVars:r,children:n}=e,s=mo(),i=t.useState("activeTriggerElement"),a=t.useState("activeTriggerId"),c=t.useState("open"),l=t.useState("payload"),u=t.useState("mounted"),d=t.useState("popupElement"),p=t.useState("positionerElement"),m=Cc(c?i:null),f=Zm(a,l),h=Pe.useRef(null),[x,b]=Pe.useState(null),[y,w]=Pe.useState(null),v=Pe.useRef(null),S=Pe.useRef(null),R=bo(v,!0,!1),T=yo(),[C,O]=Pe.useState(null),[k,z]=Pe.useState(!1);j(()=>(t.set("hasViewport",!0),()=>{t.set("hasViewport",!1)}),[t]);let D=W(()=>{v.current?.style.setProperty("animation","none"),v.current?.style.setProperty("transition","none"),S.current?.style.setProperty("display","none")}),L=W(P=>{v.current?.style.removeProperty("animation"),v.current?.style.removeProperty("transition"),S.current?.style.removeProperty("display"),P&&O(P)}),M=Pe.useRef(null);j(()=>{(!c||!u)&&(M.current=null)},[c,u]),j(()=>{if(i&&m&&i!==m&&M.current!==i&&h.current){b(h.current),z(!0);let P=Jm(m,i);w(P),T.request(()=>{Ac.flushSync(()=>{z(!1)}),R(()=>{b(null),O(null),h.current=null})}),M.current=i}},[i,m,x,R,T]),j(()=>{let P=v.current;if(!P)return;let _=xe(P).createElement("div");for(let A of Array.from(P.childNodes))_.appendChild(A.cloneNode(!0));h.current=_});let E=x!=null,I;E?I=(0,ko.jsxs)(Pe.Fragment,{children:[(0,ko.jsx)("div",{"data-previous":!0,inert:hc(!0),ref:S,style:{...C?{[r.popupWidth]:`${C.width}px`,[r.popupHeight]:`${C.height}px`}:null,position:"absolute"},"data-ending-style":k?void 0:""},"previous"),(0,ko.jsx)("div",{"data-current":!0,ref:v,"data-starting-style":k?"":void 0,children:n},f)]}):I=(0,ko.jsx)("div",{"data-current":!0,ref:v,children:n},f),j(()=>{let P=S.current;!P||!x||P.replaceChildren(...Array.from(x.childNodes))},[x]),Oc({popupElement:d,positionerElement:p,mounted:u,content:l,onMeasureLayout:D,onMeasureLayoutComplete:L,side:o,direction:s});let B={activationDirection:Xm(y),transitioning:E};return{children:I,state:B}}function Xm(e){if(e)return`${Ic(e.horizontal,5,"right","left")} ${Ic(e.vertical,5,"down","up")}`}function Ic(e,t,o,r){return e>t?o:e<-t?r:""}function Jm(e,t){let o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n={x:o.left+o.width/2,y:o.top+o.height/2},s={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:s.x-n.x,vertical:s.y-n.y}}function Zm(e,t){let[o,r]=Pe.useState(0),n=Pe.useRef(e),s=Pe.useRef(t),i=Pe.useRef(!1);return j(()=>{let a=n.current,c=s.current,l=e!==a,u=t!==c;l?(r(d=>d+1),i.current=!u):i.current&&u&&(r(d=>d+1),i.current=!1),n.current=e,s.current=t},[e,t]),`${e??"current"}-${o}`}var nn=g(F(),1),Dc=g(Dt(),1);var Mc=g(q(),1),Lc=nn.forwardRef(function(t,o){let{children:r,container:n,className:s,render:i,style:a,...c}=t,{portalNode:l,portalSubtree:u}=us({container:n,ref:o,componentProps:t,elementProps:c});return!u&&!l?null:(0,Mc.jsxs)(nn.Fragment,{children:[u,l&&Dc.createPortal(r,l)]})});var Ve={};qe(Ve,{Arrow:()=>Zc,Handle:()=>rr,Popup:()=>Xc,Portal:()=>zc,Positioner:()=>Kc,Provider:()=>Qc,Root:()=>Fc,Trigger:()=>Wc,Viewport:()=>ou,createHandle:()=>ru});var gt=g(F(),1);var sn=g(F(),1),Hs=sn.createContext(void 0);function Ge(e){let t=sn.useContext(Hs);if(t===void 0&&!e)throw new Error(De(72));return t}var Bc=g(F(),1);var Qm={...fc,disabled:K(e=>e.disabled),instantType:K(e=>e.instantType),isInstantPhase:K(e=>e.isInstantPhase),trackCursorAxis:K(e=>e.trackCursorAxis),disableHoverablePopup:K(e=>e.disableHoverablePopup),lastOpenChangeReason:K(e=>e.openChangeReason),closeOnClick:K(e=>e.closeOnClick),closeDelay:K(e=>e.closeDelay),hasViewport:K(e=>e.hasViewport)},Io=class e extends To{constructor(t,o,r=!1){let n=new jt,s={...eg(),...t};s.floatingRootContext=cc(n,o,r),super(s,{popupRef:Bc.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},Qm)}setOpen=(t,o)=>{ec(this,t,o,{extraState:{openChangeReason:o.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,J($.triggerPress,t))}static useStore(t,o){return Ql(t,(n,s)=>new e(o,n,s)).store}};function eg(){return{...lc(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var an=g(q(),1),Fc=Ps(function(t){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:s=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:c,onOpenChangeComplete:l,handle:u,triggerId:d,defaultTriggerId:p=null,children:m}=t,f=Io.useStore(u?.store,{open:r,openProp:n,activeTriggerId:p,triggerIdProp:d});tc(f,n,r,p),f.useControlledProp("openProp",n),f.useControlledProp("triggerIdProp",d),f.useContextCallback("onOpenChange",c),f.useContextCallback("onOpenChangeComplete",l);let h=f.useState("open"),x=!o&&h,b=f.useState("activeTriggerId"),y=f.useState("mounted"),w=f.useState("payload");f.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s}),f.useSyncedValue("disabled",o),rc(f,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:v,transitionStatus:S}=nc(x,f),R=f.useState("isInstantPhase"),T=f.useState("instantType"),C=f.useState("lastOpenChangeReason"),O=gt.useRef(null);j(()=>{h&&o&&f.setOpen(!1,J($.disabled))},[h,o,f]),j(()=>{S==="ending"&&C===$.none||S!=="ending"&&R?(T!=="delay"&&(O.current=T),f.set("instantType","delay")):O.current!==null&&(f.set("instantType",O.current),O.current=null)},[S,R,C,T,f]),j(()=>{x&&b==null&&f.set("payload",void 0)},[f,b,x]);let k=gt.useCallback(()=>{f.setOpen(!1,J($.imperativeAction))},[f]);gt.useImperativeHandle(a,()=>({unmount:v,close:k}),[v,k]);let z=x||y||!o&&i!=="none";return(0,an.jsxs)(Hs.Provider,{value:f,children:[z&&(0,an.jsx)(tg,{store:f,disabled:o,trackCursorAxis:i}),typeof m=="function"?m({payload:w}):m]})});function tg({store:e,disabled:t,trackCursorAxis:o}){let r=e.useState("floatingRootContext"),n=ds(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=fs(r,{enabled:!t&&o!=="none",axis:o==="none"?void 0:o}),i=gt.useMemo(()=>wt(s.reference,n.reference),[s.reference,n.reference]),a=gt.useMemo(()=>wt(s.trigger,n.trigger),[s.trigger,n.trigger]),c=gt.useMemo(()=>wt(Zl,s.floating,n.floating),[s.floating,n.floating]);return sc(e,{activeTriggerProps:i,inactiveTriggerProps:a,popupProps:c}),null}var cn=g(F(),1);var ln=g(F(),1),Us=ln.createContext(void 0);function jc(){return ln.useContext(Us)}var Vc=(function(e){return e[e.popupOpen=tr.popupOpen]="popupOpen",e.triggerDisabled="data-trigger-disabled",e})({});var Uc="data-base-ui-tooltip-trigger";function Hc(e){if("composedPath"in e){let o=e.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(H(n))return n}}let t=e.target;return H(t)?t:null}function og(e){let t=e;for(;t;){if(t.hasAttribute(Uc))return t;let o=t.parentElement;if(o){t=o;continue}let r=t.getRootNode();t="host"in r&&H(r.host)?r.host:null}return null}var Wc=zl(function(t,o){let{render:r,className:n,style:s,handle:i,payload:a,disabled:c,delay:l,closeOnClick:u=!0,closeDelay:d,id:p,...m}=t,f=Ge(!0),h=i?.store??f;if(!h)throw new Error(De(82));let x=Ea(p),b=h.useState("isTriggerActive",x),y=h.useState("isOpenedByTrigger",x),w=h.useState("floatingRootContext"),v=cn.useRef(null),S=l??600,R=d??0,{registerTrigger:T,isMountedByThisTrigger:C}=oc(x,v,h,{payload:a,closeOnClick:u,closeDelay:R}),O=jc(),{delayRef:k,isInstantPhase:z,hasProvider:D}=cs(w,{open:y}),L=Po(w);h.useSyncedValue("isInstantPhase",z);let M=h.useState("disabled"),E=c??M,I=Le(E),B=h.useState("trackCursorAxis"),P=h.useState("disableHoverablePopup"),_=cn.useRef(!1),A=Qe(),X=cn.useRef(void 0);function U(){let G=O?.delay,ce=typeof k.current=="object"?k.current.open:void 0,ue=S;return D&&(ce!==0?ue=l??G??S:ue=0),ue}function Q(G){let ce=v.current;if(!ce||!G)return!1;let ue=og(G);return ue!==null&&ue!==ce&&te(ce,ue)}function Z(G){let ce=Q(G);return _.current=ce,ce&&(L.openChangeTimeout.clear(),L.restTimeout.clear(),L.restTimeoutPending=!1,A.clear()),ce}let ne=Ls(w,{enabled:!E,mouseOnly:!0,move:!1,handleClose:!P&&B!=="both"?Bs():null,restMs:U,delay(){let G=typeof k.current=="object"?k.current.close:void 0,ce=R;return d==null&&D&&(ce=G),{close:ce}},triggerElementRef:v,isActiveTrigger:b,isClosing:()=>h.select("transitionStatus")==="ending",shouldOpen(){return!_.current}}),Y=As(w,{enabled:!E}).reference,ae=G=>{let ce=_.current,ue=Hc(G),Yt=Z(ue),Xe=v.current,yt=Xe&&ue&&te(Xe,ue);if(Yt&&h.select("open")&&h.select("lastOpenChangeReason")===$.triggerHover){h.setOpen(!1,J($.triggerHover,G));return}if(ce&&!Yt&&yt&&!I.current&&!h.select("open")&&Xe&&Et(X.current)){let Je=()=>{!_.current&&!I.current&&!h.select("open")&&h.setOpen(!0,J($.triggerHover,G,Xe))},it=U();it===0?(A.clear(),Je()):A.start(it,Je)}},le=h.useState("triggerProps",C);return Me("button",t,{state:{open:y},ref:[o,T,v],props:[ne,Y,C||B!=="none"?le:void 0,{onMouseOver(G){ae(G.nativeEvent)},onFocus(G){Q(Hc(G.nativeEvent))&&G.preventBaseUIHandler()},onMouseLeave(){_.current=!1,A.clear(),X.current=void 0},onPointerEnter(G){X.current=G.pointerType},onPointerDown(G){X.current=G.pointerType,h.set("closeOnClick",u),u&&!h.select("open")&&h.cancelPendingOpen(G.nativeEvent)},onClick(G){u&&!h.select("open")&&h.cancelPendingOpen(G.nativeEvent)},id:x,[Vc.triggerDisabled]:E?"":void 0,[Uc]:E?void 0:""},m],stateAttributesMapping:gc})});var Yc=g(F(),1);var un=g(F(),1),Ws=un.createContext(void 0);function $c(){let e=un.useContext(Ws);if(e===void 0)throw new Error(De(70));return e}var $s=g(q(),1),zc=Yc.forwardRef(function(t,o){let{keepMounted:r=!1,...n}=t;return Ge().useState("mounted")||r?(0,$s.jsx)(Ws.Provider,{value:r,children:(0,$s.jsx)(Lc,{ref:o,...n})}):null});var dn=g(F(),1);var fn=g(F(),1),Ys=fn.createContext(void 0);function Ao(){let e=fn.useContext(Ys);if(e===void 0)throw new Error(De(71));return e}var qc=g(q(),1),Kc=dn.forwardRef(function(t,o){let{render:r,className:n,anchor:s,positionMethod:i="absolute",side:a="top",align:c="center",sideOffset:l=0,alignOffset:u=0,collisionBoundary:d="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:f=!1,disableAnchorTracking:h=!1,collisionAvoidance:x=tl,style:b,...y}=t,w=Ge(),v=$c(),S=w.useState("open"),R=w.useState("mounted"),T=w.useState("trackCursorAxis"),C=w.useState("disableHoverablePopup"),O=w.useState("floatingRootContext"),k=w.useState("instantType"),z=w.useState("transitionStatus"),D=w.useState("hasViewport"),L=Ec({anchor:s,positionMethod:i,floatingRootContext:O,mounted:R,side:a,sideOffset:l,align:c,alignOffset:u,collisionBoundary:d,collisionPadding:p,sticky:f,arrowPadding:m,disableAnchorTracking:h,keepMounted:v,collisionAvoidance:x,adaptiveOrigin:D?bc:void 0}),M=dn.useMemo(()=>({open:S,side:L.side,align:L.align,anchorHidden:L.anchorHidden,instant:T!=="none"?"tracking-cursor":k}),[S,L.side,L.align,L.anchorHidden,T,k]),E=Tc(t,M,{styles:L.positionerStyles,transitionStatus:z,props:y,refs:[o,w.useStateSetter("positionerElement")],hidden:!R,inert:!S||T==="both"||C});return(0,qc.jsx)(Ys.Provider,{value:L,children:E})});var Gc=g(F(),1);var rg={...Oo,...Ca},Xc=Gc.forwardRef(function(t,o){let{render:r,className:n,style:s,...i}=t,a=Ge(),{side:c,align:l}=Ao(),u=a.useState("open"),d=a.useState("instantType"),p=a.useState("transitionStatus"),m=a.useState("popupProps"),f=a.useState("floatingRootContext"),h=a.useState("disabled"),x=a.useState("closeDelay");Dr({open:u,ref:a.context.popupRef,onComplete(){u&&a.context.onOpenChangeComplete?.(!0)}}),Ms(f,{enabled:!h,closeDelay:x});let b=a.useStateSetter("popupElement");return Me("div",t,{state:{open:u,side:c,align:l,instant:d,transitionStatus:p},ref:[o,a.context.popupRef,b],props:[m,en(p),i],stateAttributesMapping:rg})});var Jc=g(F(),1);var Zc=Jc.forwardRef(function(t,o){let{render:r,className:n,style:s,...i}=t,a=Ge(),{arrowRef:c,side:l,align:u,arrowUncentered:d,arrowStyles:p}=Ao(),m=a.useState("open"),f=a.useState("instantType");return Me("div",t,{state:{open:m,side:l,align:u,uncentered:d,instant:f},ref:[o,c],props:[{style:p,"aria-hidden":!0},i],stateAttributesMapping:Oo})});var zs=g(F(),1);var qs=g(q(),1),Qc=function(t){let{delay:o,closeDelay:r,timeout:n=400}=t,s=zs.useMemo(()=>({delay:o,closeDelay:r}),[o,r]),i=zs.useMemo(()=>({open:o,close:r}),[o,r]);return(0,qs.jsx)(Us.Provider,{value:s,children:(0,qs.jsx)(ls,{delay:i,timeoutMs:n,children:t.children})})};var tu=g(F(),1);var eu=(function(e){return e.popupWidth="--popup-width",e.popupHeight="--popup-height",e})({});var ng={activationDirection:e=>e?{"data-activation-direction":e}:null},ou=tu.forwardRef(function(t,o){let{render:r,className:n,style:s,children:i,...a}=t,c=Ge(),l=Ao(),u=c.useState("instantType"),{children:d,state:p}=Nc({store:c,side:l.side,cssVars:eu,children:i}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:u};return Me("div",t,{state:m,ref:o,props:[a,{children:d}],stateAttributesMapping:ng})});var rr=class{constructor(){this.store=new Io}open(t){let o=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!o)throw new Error(De(81,t));this.store.setOpen(!0,J($.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,J($.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function ru(){return new rr}function nu(e){return Me(e.defaultTagName??"div",e,e)}var mn=g(Ue(),1),nr=(0,mn.forwardRef)(({icon:e,size:t=24,...o},r)=>(0,mn.cloneElement)(e,{width:t,height:t,...o,ref:r}));var gn=g(pn(),1),Ks=g(q(),1),Gs=(0,Ks.jsx)(gn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Ks.jsx)(gn.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z"})});var hn=g(pn(),1),Xs=g(q(),1),Js=(0,Xs.jsx)(hn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Xs.jsx)(hn.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"})});var yn=g(pn(),1),Zs=g(q(),1),Qs=(0,Zs.jsx)(yn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Zs.jsx)(yn.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})});var lu=g(Ue(),1);function ei(e,t,o){return(0,lu.cloneElement)(e??t,{children:o})}var sg=g(uu(),1);var pu=g(du(),1),{lock:$T,unlock:mu}=(0,pu.__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/ui");function ig(){let e=sg;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return mu(e.privateApis).ThemeProvider}var gu=ig();var No={};qe(No,{Popup:()=>Ou,Portal:()=>xn,Positioner:()=>bn,Provider:()=>Bu,Root:()=>Mu,Trigger:()=>Iu});var Cu=g(Ue(),1);var vu=g(Ue(),1);var oi="data-wp-hash";function ri(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&lg(document)),e.__wpStyleRuntime}function ag(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${oi}]`))if(o.getAttribute(oi)===t)return!0;return!1}function yu(e,t,o){if(!e.head)return;let r=ri(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(ag(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(oi,t),s.appendChild(e.createTextNode(o)),e.head.appendChild(s),n.add(t)}function lg(e){let t=ri();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)yu(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function cg(e,t){let o=ri();o.styles.set(e,t);for(let r of o.documents.keys())yu(r,e,t)}typeof process>"u",cg("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var hu={slot:"_11fc52b637ff8a7e__slot"},xu="data-wp-compat-overlay-slot";function ug(){return typeof document>"u"?null:document}function fg(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var ht=null;function ti(e){return e.setAttribute("aria-hidden","false"),e}function dg(e){let t=e.createElement("div");return t.setAttribute(xu,""),hu.slot&&t.classList.add(hu.slot),e.body.appendChild(t),t}function bu(){if(typeof window>"u"||!fg()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=ug();if(!e||!e.body)return;if(ht&&ht.ownerDocument===e&&ht.isConnected)return ti(ht);let t=e.querySelector(`[${xu}]`);return t instanceof HTMLDivElement?(ht=ti(t),ht):(ht?.isConnected&&ht.remove(),ht=ti(dg(e)),ht)}var wu=g(q(),1),xn=(0,vu.forwardRef)(function({container:t,...o},r){return(0,wu.jsx)(Ve.Portal,{container:t??bu(),...o,ref:r})});var Ru=g(Ue(),1),Su=g(q(),1),ni="data-wp-hash";function si(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&mg(document)),e.__wpStyleRuntime}function pg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ni}]`))if(o.getAttribute(ni)===t)return!0;return!1}function Eu(e,t,o){if(!e.head)return;let r=si(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(pg(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(ni,t),s.appendChild(e.createTextNode(o)),e.head.appendChild(s),n.add(t)}function mg(e){let t=si();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Eu(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Tu(e,t){let o=si();o.styles.set(e,t);for(let r of o.documents.keys())Eu(r,e,t)}typeof process>"u",Tu("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var gg={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Tu("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var hg={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},bn=(0,Ru.forwardRef)(function({align:t="center",className:o,side:r="top",sideOffset:n=4,...s},i){return(0,Su.jsx)(Ve.Positioner,{ref:i,align:t,side:r,sideOffset:n,...s,className:po(gg["box-sizing"],hg.positioner,o)})});var sr=g(q(),1),ii="data-wp-hash";function ai(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&xg(document)),e.__wpStyleRuntime}function yg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ii}]`))if(o.getAttribute(ii)===t)return!0;return!1}function Pu(e,t,o){if(!e.head)return;let r=ai(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(yg(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(ii,t),s.appendChild(e.createTextNode(o)),e.head.appendChild(s),n.add(t)}function xg(e){let t=ai();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)Pu(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function bg(e,t){let o=ai();o.styles.set(e,t);for(let r of o.documents.keys())Pu(r,e,t)}typeof process>"u",bg("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var vg={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},wg={background:"#1e1e1e"},Ou=(0,Cu.forwardRef)(function({portal:t,positioner:o,children:r,className:n,...s},i){let a=(0,sr.jsx)(gu,{color:wg,children:(0,sr.jsx)(Ve.Popup,{ref:i,className:po(vg.popup,n),...s,children:r})}),c=ei(o,(0,sr.jsx)(bn,{}),a);return ei(t,(0,sr.jsx)(xn,{}),c)});var _u=g(Ue(),1),ku=g(q(),1),Iu=(0,_u.forwardRef)(function(t,o){return(0,ku.jsx)(Ve.Trigger,{ref:o,...t})});var Au=g(Ne(),1),Nu=g(q(),1);function Du({children:e}){return(0,Nu.jsx)(rn,{direction:(0,Au.isRTL)()?"rtl":"ltr",children:e})}var li=g(q(),1);function Mu(e){return(0,li.jsx)(Du,{children:(0,li.jsx)(Ve.Root,{...e})})}var Lu=g(q(),1);function Bu({...e}){return(0,Lu.jsx)(Ve.Provider,{...e})}var Fu=g(Ue(),1),ci="data-wp-hash";function ui(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Eg(document)),e.__wpStyleRuntime}function Rg(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[${ci}]`))if(o.getAttribute(ci)===t)return!0;return!1}function ju(e,t,o){if(!e.head)return;let r=ui(),n=r.injectedStyles.get(e);if(n||(n=new Set,r.injectedStyles.set(e,n)),n.has(t))return;if(Rg(e,t)){n.add(t);return}let s=e.createElement("style");s.setAttribute(ci,t),s.appendChild(e.createTextNode(o)),e.head.appendChild(s),n.add(t)}function Eg(e){let t=ui();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,r]of t.styles)ju(e,o,r);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Tg(e,t){let o=ui();o.styles.set(e,t);for(let r of o.documents.keys())ju(r,e,t)}typeof process>"u",Tg("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var Sg={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},fi=(0,Fu.forwardRef)(function({render:t,...o},r){return nu({render:t,ref:r,props:wt({className:Sg["visually-hidden"]},o,{"data-visually-hidden":""})})});var vn=g(Ne(),1);var Do=g(q(),1);function Cg({rating:e}){let t=Math.round(e/.5)*.5,o=Math.floor(e),r=Math.ceil(e-o),n=5-(o+r);return(0,Do.jsxs)("span",{"aria-label":(0,vn.sprintf)((0,vn.__)("%s out of 5 stars"),t),children:[Array.from({length:o}).map((s,i)=>(0,Do.jsx)(nr,{className:"block-directory-block-ratings__star-full",icon:Js,size:16},`full_stars_${i}`)),Array.from({length:r}).map((s,i)=>(0,Do.jsx)(nr,{className:"block-directory-block-ratings__star-half-full",icon:Qs,size:16},`half_stars_${i}`)),Array.from({length:n}).map((s,i)=>(0,Do.jsx)(nr,{className:"block-directory-block-ratings__star-empty",icon:Gs,size:16},`empty_stars_${i}`))]})}var Vu=Cg;var di=g(q(),1),Pg=({rating:e})=>(0,di.jsx)("span",{className:"block-directory-block-ratings",children:(0,di.jsx)(Vu,{rating:e})}),Hu=Pg;var Uu=g(lo(),1),pi=g(q(),1);function Og({icon:e}){let t="block-directory-downloadable-block-icon";return e.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)!==null?(0,pi.jsx)("img",{className:t,src:e,alt:""}):(0,pi.jsx)(Uu.BlockIcon,{className:t,icon:e,showColors:!0})}var wn=Og;var Wu=g(Ne(),1),$u=g(Ke(),1);var Rn=g(q(),1),_g=({block:e})=>{let t=(0,$u.useSelect)(o=>o(me).getErrorNoticeForBlock(e.id),[e]);return t?(0,Rn.jsx)("div",{className:"block-directory-downloadable-block-notice",children:(0,Rn.jsxs)("div",{className:"block-directory-downloadable-block-notice__content",children:[t.message,t.isFatal?" "+(0,Wu.__)("Try reloading the page."):null]})}):null},Yu=_g;var he=g(q(),1);function kg({title:e,rating:t,ratingCount:o},{hasNotice:r,isInstalled:n,isInstalling:s}){let i=Math.round(t/.5)*.5;return!n&&r?(0,be.sprintf)((0,be.__)("Retry installing %s."),(0,Ht.decodeEntities)(e)):n?(0,be.sprintf)((0,be.__)("Add %s."),(0,Ht.decodeEntities)(e)):s?(0,be.sprintf)((0,be.__)("Installing %s."),(0,Ht.decodeEntities)(e)):o<1?(0,be.sprintf)((0,be.__)("Install %s."),(0,Ht.decodeEntities)(e)):(0,be.sprintf)((0,be._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",o),(0,Ht.decodeEntities)(e),i,o)}function Ig({item:e,onClick:t}){let{author:o,description:r,icon:n,rating:s,title:i}=e,a=!!(0,qu.getBlockType)(e.name),{hasNotice:c,isInstalling:l,isInstallable:u}=(0,Ku.useSelect)(m=>{let{getErrorNoticeForBlock:f,isInstalling:h}=m(me),x=f(e.id),b=x&&x.isFatal;return{hasNotice:!!x,isInstalling:h(e.id),isInstallable:!b}},[e]),d="";a?d=(0,be.__)("Installed!"):l&&(d=(0,be.__)("Installing\u2026"));let p=kg(e,{hasNotice:c,isInstalled:a,isInstalling:l});return(0,he.jsxs)(No.Root,{children:[(0,he.jsx)(No.Trigger,{render:(0,he.jsxs)(En.Composite.Item,{className:po("block-directory-downloadable-block-list-item",l&&"is-installing"),accessibleWhenDisabled:!0,disabled:l||!u,onClick:m=>{m.preventDefault(),t()},"aria-label":p,type:"button",role:"option",children:[(0,he.jsxs)("div",{className:"block-directory-downloadable-block-list-item__icon",children:[(0,he.jsx)(wn,{icon:n,title:i}),l?(0,he.jsx)("span",{className:"block-directory-downloadable-block-list-item__spinner",children:(0,he.jsx)(En.Spinner,{})}):(0,he.jsx)(Hu,{rating:s})]}),(0,he.jsxs)("span",{className:"block-directory-downloadable-block-list-item__details",children:[(0,he.jsx)("span",{className:"block-directory-downloadable-block-list-item__title",children:(0,zu.createInterpolateElement)((0,be.sprintf)((0,be.__)("%1$s <span>by %2$s</span>"),(0,Ht.decodeEntities)(i),o),{span:(0,he.jsx)("span",{className:"block-directory-downloadable-block-list-item__author"})})}),c?(0,he.jsx)(Yu,{block:e}):(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("span",{className:"block-directory-downloadable-block-list-item__desc",children:d||(0,Ht.decodeEntities)(r)}),u&&!(a||l)&&(0,he.jsx)(fi,{children:(0,be.__)("Install block")})]})]})]})}),(0,he.jsx)(No.Popup,{children:p})]})}var Gu=Ig;var mi=g(q(),1),Ag=()=>{};function Ng({items:e,onHover:t=Ag,onSelect:o}){let{installBlockType:r}=(0,Qu.useDispatch)(me);return e.length?(0,mi.jsx)(Ju.Composite,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":(0,Xu.__)("Blocks available for install"),children:e.map(n=>(0,mi.jsx)(Gu,{onClick:()=>{(0,Zu.getBlockType)(n.name)?o(n):r(n).then(s=>{s&&o(n)}),t(null)},onHover:t,item:n},n.id))}):null}var ef=Ng;var Ut=g(Ne(),1),tf=g(Ue(),1),of=g(iu(),1),nt=g(q(),1);function Dg({children:e,downloadableItems:t,hasLocalBlocks:o}){let r=t.length;return(0,tf.useEffect)(()=>{(0,of.speak)((0,Ut.sprintf)((0,Ut._n)("%d additional block is available to install.","%d additional blocks are available to install.",r),r))},[r]),(0,nt.jsxs)(nt.Fragment,{children:[!o&&(0,nt.jsx)("p",{className:"block-directory-downloadable-blocks-panel__no-local",children:(0,Ut.__)("No results available from your installed blocks.")}),(0,nt.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"}),(0,nt.jsxs)("div",{className:"block-directory-downloadable-blocks-panel",children:[(0,nt.jsxs)("div",{className:"block-directory-downloadable-blocks-panel__header",children:[(0,nt.jsx)("h2",{className:"block-directory-downloadable-blocks-panel__title",children:(0,Ut.__)("Available to install")}),(0,nt.jsx)("p",{className:"block-directory-downloadable-blocks-panel__description",children:(0,Ut.__)("Select a block to install and add it to your post.")})]}),e]})]})}var rf=Dg;var Tn=g(Ne(),1),Sn=g(qt(),1),st=g(q(),1);function Mg(){return(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,st.jsx)("p",{children:(0,Tn.__)("No results found.")})}),(0,st.jsx)("div",{className:"block-editor-inserter__tips",children:(0,st.jsxs)(Sn.Tip,{children:[(0,Tn.__)("Interested in creating your own block?"),(0,st.jsx)("br",{}),(0,st.jsxs)(Sn.ExternalLink,{href:"https://developer.wordpress.org/block-editor/",children:[(0,Tn.__)("Get started here"),"."]})]})})]})}var gi=Mg;var Ae=g(q(),1),nf=[],Lg=e=>(0,cf.useSelect)(t=>{let{getDownloadableBlocks:o,isRequestingDownloadableBlocks:r,getInstalledBlockTypes:n}=t(me),s=t(lf.store).canUser("read","block-directory/search"),i=nf;if(s){i=o(e);let a=n(),c=i.filter(({name:l})=>{let u=a.some(p=>p.name===l),d=(0,uf.getBlockType)(l);return u||!d});c.length!==i.length&&(i=c),i.length===0&&(i=nf)}return{hasPermission:s,downloadableBlocks:i,isLoading:r(e)}},[e]);function ff({onSelect:e,onHover:t,hasLocalBlocks:o,isTyping:r,filterValue:n}){let{hasPermission:s,downloadableBlocks:i,isLoading:a}=Lg(n);return s===void 0||a||r?(0,Ae.jsxs)(Ae.Fragment,{children:[s&&!o&&(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("p",{className:"block-directory-downloadable-blocks-panel__no-local",children:(0,sf.__)("No results available from your installed blocks.")}),(0,Ae.jsx)("div",{className:"block-editor-inserter__quick-inserter-separator"})]}),(0,Ae.jsx)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading",children:(0,Ae.jsx)(af.Spinner,{})})]}):s===!1?o?null:(0,Ae.jsx)(gi,{}):i.length===0?o?null:(0,Ae.jsx)(gi,{}):(0,Ae.jsx)(rf,{downloadableItems:i,hasLocalBlocks:o,children:(0,Ae.jsx)(ef,{items:i,onSelect:e,onHover:t})})}var hi=g(q(),1);function Bg(){let[e,t]=(0,mf.useState)(""),o=(0,pf.debounce)(t,400);return(0,hi.jsx)(df.__unstableInserterMenuExtension,{children:({onSelect:r,onHover:n,filterValue:s,hasItems:i})=>(e!==s&&o(s),e?(0,hi.jsx)(ff,{onSelect:r,onHover:n,filterValue:e,hasLocalBlocks:i,isTyping:s!==e}):null)})}var gf=Bg;var ir=g(Ne(),1),yf=g(Ke(),1),xf=g(An(),1);var Cn=g(Ne(),1);var Wt=g(q(),1);function hf({items:e}){return e.length?(0,Wt.jsx)("ul",{className:"block-directory-compact-list",children:e.map(({icon:t,id:o,title:r,author:n})=>(0,Wt.jsxs)("li",{className:"block-directory-compact-list__item",children:[(0,Wt.jsx)(wn,{icon:t,title:r}),(0,Wt.jsxs)("div",{className:"block-directory-compact-list__item-details",children:[(0,Wt.jsx)("div",{className:"block-directory-compact-list__item-title",children:r}),(0,Wt.jsx)("div",{className:"block-directory-compact-list__item-author",children:(0,Cn.sprintf)((0,Cn.__)("By %s"),n)})]})]},o))}):null}var ar=g(q(),1);function bf(){let e=(0,yf.useSelect)(t=>t(me).getNewBlockTypes(),[]);return e.length?(0,ar.jsxs)(xf.PluginPrePublishPanel,{title:(0,ir.sprintf)((0,ir._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0,children:[(0,ar.jsx)("p",{className:"installed-blocks-pre-publish-panel__copy",children:(0,ir._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)}),(0,ar.jsx)(hf,{items:e})]}):null}var no=g(Ne(),1),Tf=g(qt(),1),Sf=g(kt(),1),Cf=g(Ue(),1),cr=g(Ke(),1),Pf=g(jn(),1),so=g(lo(),1);var Pn=g(Ne(),1),vf=g(qt(),1),Mo=g(kt(),1),lr=g(Ke(),1),wf=g(lo(),1);var Rf=g(q(),1);function Ef({attributes:e,block:t,clientId:o}){let r=(0,lr.useSelect)(i=>i(me).isInstalling(t.id),[t.id]),{installBlockType:n}=(0,lr.useDispatch)(me),{replaceBlock:s}=(0,lr.useDispatch)(wf.store);return(0,Rf.jsx)(vf.Button,{__next40pxDefaultSize:!0,onClick:()=>n(t).then(i=>{if(i){let a=(0,Mo.getBlockType)(t.name),[c]=(0,Mo.parse)(e.originalContent);c&&a&&s(o,(0,Mo.createBlock)(a.name,c.attributes,c.innerBlocks))}}),accessibleWhenDisabled:!0,disabled:r,isBusy:r,variant:"primary",children:(0,Pn.sprintf)((0,Pn.__)("Install %s"),t.title)})}var Ct=g(q(),1),Fg=e=>t=>{let{originalName:o}=t.attributes,{block:r,hasPermission:n}=(0,cr.useSelect)(s=>{let{getDownloadableBlocks:i}=s(me),a=i("block:"+o).filter(({name:c})=>o===c);return{hasPermission:s(Pf.store).canUser("read","block-directory/search"),block:a.length&&a[0]}},[o]);return!n||!r?(0,Ct.jsx)(e,{...t}):(0,Ct.jsx)(jg,{...t,originalBlock:r})},jg=({originalBlock:e,...t})=>{let{originalName:o,originalUndelimitedContent:r,clientId:n}=t.attributes,{replaceBlock:s}=(0,cr.useDispatch)(so.store),i=()=>{s(t.clientId,(0,Sf.createBlock)("core/html",{},[],[r]))},a=!!r,c=(0,cr.useSelect)(d=>{let{canInsertBlockType:p,getBlockRootClientId:m}=d(so.store);return p("core/html",m(n))},[n]),l=(0,no.sprintf)((0,no.__)("Your site doesn\u2019t include support for the %s block. You can try installing the block or remove it entirely."),e.title||o),u=[(0,Ct.jsx)(Ef,{block:e,attributes:t.attributes,clientId:t.clientId},"install")];return a&&c&&(l=(0,no.sprintf)((0,no.__)("Your site doesn\u2019t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),e.title||o),u.push((0,Ct.jsx)(Tf.Button,{__next40pxDefaultSize:!0,onClick:i,variant:"tertiary",children:(0,no.__)("Keep as HTML")},"convert"))),(0,Ct.jsxs)("div",{...(0,so.useBlockProps)(),children:[(0,Ct.jsx)(so.Warning,{actions:u,children:l}),(0,Ct.jsx)(Cf.RawHTML,{children:r})]})},Of=Fg;var $t=g(q(),1);(0,_f.registerPlugin)("block-directory",{icon:void 0,render(){return(0,$t.jsxs)($t.Fragment,{children:[(0,$t.jsx)(Ki,{}),(0,$t.jsx)(gf,{}),(0,$t.jsx)(bf,{})]})}});(0,kf.addFilter)("blocks.registerBlockType","block-directory/fallback",(e,t)=>(t!=="core/missing"||(e.edit=Of(e.edit)),e));return Uf(Vg);})();
/*! Bundled license information:
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
@@ -24,3 +25,5 @@ use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.productio
* LICENSE file in the root directory of this source tree.
*)
*/
+(window.wp ||= {}).blockDirectory = wp.blockDirectory;
+})();
diff --git a/wp-includes/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js
index 52fb2b6905..e6b1d13ab0 100644
--- a/wp-includes/js/dist/block-editor.js
+++ b/wp-includes/js/dist/block-editor.js
@@ -1,3 +1,4 @@
+(function() {
"use strict";
var wp;
(wp ||= {}).blockEditor = (() => {
@@ -67,20 +68,6 @@ var wp;
}
});
- // package-external:@wordpress/components
- var require_components = __commonJS({
- "package-external:@wordpress/components"(exports, module) {
- module.exports = window.wp.components;
- }
- });
-
- // 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/deprecated
var require_deprecated = __commonJS({
"package-external:@wordpress/deprecated"(exports, module) {
@@ -88,6 +75,13 @@ var wp;
}
});
+ // package-external:@wordpress/components
+ var require_components = __commonJS({
+ "package-external:@wordpress/components"(exports, module) {
+ module.exports = window.wp.components;
+ }
+ });
+
// vendor-external:react/jsx-runtime
var require_jsx_runtime = __commonJS({
"vendor-external:react/jsx-runtime"(exports, module) {
@@ -102,6 +96,13 @@ var wp;
}
});
+ // 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/i18n
var require_i18n = __commonJS({
"package-external:@wordpress/i18n"(exports, module) {
@@ -889,7 +890,7 @@ var wp;
var ContextProvider = REACT_PROVIDER_TYPE;
var Element2 = REACT_ELEMENT_TYPE;
var ForwardRef = REACT_FORWARD_REF_TYPE;
- var Fragment101 = REACT_FRAGMENT_TYPE;
+ var Fragment102 = REACT_FRAGMENT_TYPE;
var Lazy = REACT_LAZY_TYPE2;
var Memo = REACT_MEMO_TYPE;
var Portal3 = REACT_PORTAL_TYPE;
@@ -948,7 +949,7 @@ var wp;
exports.ContextProvider = ContextProvider;
exports.Element = Element2;
exports.ForwardRef = ForwardRef;
- exports.Fragment = Fragment101;
+ exports.Fragment = Fragment102;
exports.Lazy = Lazy;
exports.Memo = Memo;
exports.Portal = Portal3;
@@ -1923,10 +1924,10 @@ var wp;
};
return function(d2, b2) {
extendStatics2(d2, b2);
- function __233() {
+ function __237() {
this.constructor = d2;
}
- d2.prototype = b2 === null ? Object.create(b2) : (__233.prototype = b2.prototype, new __233());
+ d2.prototype = b2 === null ? Object.create(b2) : (__237.prototype = b2.prototype, new __237());
};
})();
var __assign2 = exports && exports.__assign || Object.assign || function(t3) {
@@ -1948,7 +1949,7 @@ var wp;
return t3;
};
exports.__esModule = true;
- var React118 = require_react();
+ var React146 = require_react();
var PropTypes = require_prop_types();
var autosize = require_autosize();
var _getLineHeight = require_line_height();
@@ -2010,7 +2011,7 @@ var wp;
var _this = this;
var _a = this, _b = _a.props, onResize = _b.onResize, maxRows = _b.maxRows, onChange = _b.onChange, style = _b.style, innerRef = _b.innerRef, children = _b.children, props = __rest(_b, ["onResize", "maxRows", "onChange", "style", "innerRef", "children"]), lineHeight = _a.state.lineHeight;
var maxHeight = maxRows && lineHeight ? lineHeight * maxRows : null;
- return React118.createElement("textarea", __assign2({}, props, { onChange: this.onChange, style: maxHeight ? __assign2({}, style, { maxHeight }) : style, ref: function(element) {
+ return React146.createElement("textarea", __assign2({}, props, { onChange: this.onChange, style: maxHeight ? __assign2({}, style, { maxHeight }) : style, ref: function(element) {
_this.textarea = element;
if (typeof _this.props.innerRef === "function") {
_this.props.innerRef(element);
@@ -2034,10 +2035,10 @@ var wp;
async: PropTypes.bool
};
return TextareaAutosizeClass2;
- })(React118.Component)
+ })(React146.Component)
);
- exports.TextareaAutosize = React118.forwardRef(function(props, ref) {
- return React118.createElement(TextareaAutosizeClass, __assign2({}, props, { innerRef: ref }));
+ exports.TextareaAutosize = React146.forwardRef(function(props, ref) {
+ return React146.createElement(TextareaAutosizeClass, __assign2({}, props, { innerRef: ref }));
});
}
});
@@ -2088,7 +2089,7 @@ var wp;
return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
}
function useSyncExternalStore$2(subscribe, getSnapshot) {
- didWarnOld18Alpha || void 0 === React118.startTransition || (didWarnOld18Alpha = true, console.error(
+ didWarnOld18Alpha || void 0 === React146.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 = getSnapshot();
@@ -2098,11 +2099,11 @@ var wp;
"The result of getSnapshot should be cached to avoid an infinite loop"
), didWarnUncachedGetSnapshot = true);
}
- cachedValue = useState123({
+ cachedValue = useState128({
inst: { value, getSnapshot }
});
var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
- useLayoutEffect18(
+ useLayoutEffect19(
function() {
inst.value = value;
inst.getSnapshot = getSnapshot;
@@ -2110,7 +2111,7 @@ var wp;
},
[subscribe, value, getSnapshot]
);
- useEffect95(
+ useEffect97(
function() {
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
return subscribe(function() {
@@ -2136,8 +2137,8 @@ var wp;
return getSnapshot();
}
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
- var React118 = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is2, useState123 = React118.useState, useEffect95 = React118.useEffect, useLayoutEffect18 = React118.useLayoutEffect, useDebugValue2 = React118.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 !== React118.useSyncExternalStore ? React118.useSyncExternalStore : shim;
+ var React146 = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is2, useState128 = React146.useState, useEffect97 = React146.useEffect, useLayoutEffect19 = React146.useLayoutEffect, useDebugValue2 = React146.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 !== React146.useSyncExternalStore ? React146.useSyncExternalStore : shim;
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
})();
}
@@ -2164,14 +2165,14 @@ var wp;
return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
}
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
- var React118 = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is2, useSyncExternalStore2 = shim.useSyncExternalStore, useRef110 = React118.useRef, useEffect95 = React118.useEffect, useMemo155 = React118.useMemo, useDebugValue2 = React118.useDebugValue;
+ var React146 = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is2, useSyncExternalStore2 = shim.useSyncExternalStore, useRef113 = React146.useRef, useEffect97 = React146.useEffect, useMemo160 = React146.useMemo, useDebugValue2 = React146.useDebugValue;
exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector3, isEqual2) {
- var instRef = useRef110(null);
+ var instRef = useRef113(null);
if (null === instRef.current) {
var inst = { hasValue: false, value: null };
instRef.current = inst;
} else inst = instRef.current;
- instRef = useMemo155(
+ instRef = useMemo160(
function() {
function memoizedSelector(nextSnapshot) {
if (!hasMemo) {
@@ -2207,7 +2208,7 @@ var wp;
[getSnapshot, getServerSnapshot, selector3, isEqual2]
);
var value = useSyncExternalStore2(subscribe, instRef[0], instRef[1]);
- useEffect95(
+ useEffect97(
function() {
inst.hasValue = true;
inst.value = value;
@@ -3136,8 +3137,8 @@ var wp;
var Node2 = require_node();
var { isClean, my } = require_symbols();
var AtRule;
- var parse4;
- var Root8;
+ var parse5;
+ var Root9;
var Rule;
function cleanSource(nodes) {
return nodes.map((i2) => {
@@ -3288,7 +3289,7 @@ var wp;
}
normalize(nodes, sample) {
if (typeof nodes === "string") {
- nodes = cleanSource(parse4(nodes).nodes);
+ nodes = cleanSource(parse5(nodes).nodes);
} else if (typeof nodes === "undefined") {
nodes = [];
} else if (Array.isArray(nodes)) {
@@ -3477,7 +3478,7 @@ var wp;
}
};
Container.registerParse = (dependant) => {
- parse4 = dependant;
+ parse5 = dependant;
};
Container.registerRule = (dependant) => {
Rule = dependant;
@@ -3486,7 +3487,7 @@ var wp;
AtRule = dependant;
};
Container.registerRoot = (dependant) => {
- Root8 = dependant;
+ Root9 = dependant;
};
module.exports = Container;
Container.default = Container;
@@ -3500,7 +3501,7 @@ var wp;
} else if (node.type === "comment") {
Object.setPrototypeOf(node, Comment.prototype);
} else if (node.type === "root") {
- Object.setPrototypeOf(node, Root8.prototype);
+ Object.setPrototypeOf(node, Root9.prototype);
}
node[my] = true;
if (node.nodes) {
@@ -3868,27 +3869,27 @@ var wp;
fromOffset(offset4) {
let lineToIndex = getLineToIndex(this);
let lastLine = lineToIndex[lineToIndex.length - 1];
- let min2 = 0;
+ let min3 = 0;
if (offset4 >= lastLine) {
- min2 = lineToIndex.length - 1;
+ min3 = lineToIndex.length - 1;
} else {
- let max2 = lineToIndex.length - 2;
+ let max3 = lineToIndex.length - 2;
let mid;
- while (min2 < max2) {
- mid = min2 + (max2 - min2 >> 1);
+ while (min3 < max3) {
+ mid = min3 + (max3 - min3 >> 1);
if (offset4 < lineToIndex[mid]) {
- max2 = mid - 1;
+ max3 = mid - 1;
} else if (offset4 >= lineToIndex[mid + 1]) {
- min2 = mid + 1;
+ min3 = mid + 1;
} else {
- min2 = mid;
+ min3 = mid;
break;
}
}
}
return {
- col: offset4 - lineToIndex[min2] + 1,
- line: min2 + 1
+ col: offset4 - lineToIndex[min3] + 1,
+ line: min3 + 1
};
}
mapResolve(file) {
@@ -4317,7 +4318,7 @@ var wp;
var Container = require_container();
var LazyResult;
var Processor2;
- var Root8 = class extends Container {
+ var Root9 = class extends Container {
constructor(defaults2) {
super(defaults2);
this.type = "root";
@@ -4352,15 +4353,15 @@ var wp;
return lazy.stringify();
}
};
- Root8.registerLazyResult = (dependant) => {
+ Root9.registerLazyResult = (dependant) => {
LazyResult = dependant;
};
- Root8.registerProcessor = (dependant) => {
+ Root9.registerProcessor = (dependant) => {
Processor2 = dependant;
};
- module.exports = Root8;
- Root8.default = Root8;
- Container.registerRoot(Root8);
+ module.exports = Root9;
+ Root9.default = Root9;
+ Container.registerRoot(Root9);
}
});
@@ -4673,7 +4674,7 @@ var wp;
var AtRule = require_at_rule();
var Comment = require_comment();
var Declaration = require_declaration();
- var Root8 = require_root();
+ var Root9 = require_root();
var Rule = require_rule();
var tokenizer = require_tokenize();
var SAFE_COMMENT_NEIGHBOR = {
@@ -4692,10 +4693,10 @@ var wp;
for (let i2 = from; i2 < to2; i2++) result += tokens[i2][1];
return result;
}
- var Parser = class {
+ var Parser2 = class {
constructor(input) {
this.input = input;
- this.root = new Root8();
+ this.root = new Root9();
this.current = this.root;
this.spaces = "";
this.semicolon = false;
@@ -5202,7 +5203,7 @@ var wp;
);
}
};
- module.exports = Parser;
+ module.exports = Parser2;
}
});
@@ -5212,10 +5213,10 @@ var wp;
"use strict";
var Container = require_container();
var Input = require_input();
- var Parser = require_parser();
- function parse4(css, opts) {
+ var Parser2 = require_parser();
+ function parse5(css, opts) {
let input = new Input(css, opts);
- let parser = new Parser(input);
+ let parser = new Parser2(input);
try {
parser.parse();
} catch (e2) {
@@ -5234,9 +5235,9 @@ var wp;
}
return parser.root;
}
- module.exports = parse4;
- parse4.default = parse4;
- Container.registerParse(parse4);
+ module.exports = parse5;
+ parse5.default = parse5;
+ Container.registerParse(parse5);
}
});
@@ -5337,9 +5338,9 @@ var wp;
var Container = require_container();
var Document = require_document();
var MapGenerator = require_map_generator();
- var parse4 = require_parse();
+ var parse5 = require_parse();
var Result = require_result();
- var Root8 = require_root();
+ var Root9 = require_root();
var stringify2 = require_stringify();
var { isClean, my } = require_symbols();
var warnOnce = require_warn_once();
@@ -5465,7 +5466,7 @@ var wp;
opts.map.prev = css.map;
}
} else {
- let parser = parse4;
+ let parser = parse5;
if (opts.syntax) parser = opts.syntax.parse;
if (opts.parser) parser = opts.parser;
if (parser.parse) parser = parser.parse;
@@ -5808,7 +5809,7 @@ var wp;
};
module.exports = LazyResult;
LazyResult.default = LazyResult;
- Root8.registerLazyResult(LazyResult);
+ Root9.registerLazyResult(LazyResult);
Document.registerLazyResult(LazyResult);
}
});
@@ -5818,7 +5819,7 @@ var wp;
"node_modules/postcss/lib/no-work-result.js"(exports, module) {
"use strict";
var MapGenerator = require_map_generator();
- var parse4 = require_parse();
+ var parse5 = require_parse();
var Result = require_result();
var stringify2 = require_stringify();
var warnOnce = require_warn_once();
@@ -5846,7 +5847,7 @@ var wp;
return this._root;
}
let root;
- let parser = parse4;
+ let parser = parse5;
try {
root = parser(this._css, this._opts);
} catch (error2) {
@@ -5935,7 +5936,7 @@ var wp;
var Document = require_document();
var LazyResult = require_lazy_result();
var NoWorkResult = require_no_work_result();
- var Root8 = require_root();
+ var Root9 = require_root();
var Processor2 = class {
constructor(plugins = []) {
this.version = "8.5.16";
@@ -5981,7 +5982,7 @@ var wp;
};
module.exports = Processor2;
Processor2.default = Processor2;
- Root8.registerProcessor(Processor2);
+ Root9.registerProcessor(Processor2);
Document.registerProcessor(Processor2);
}
});
@@ -6071,14 +6072,14 @@ var wp;
var next, quote, prev, token, escape, escapePos, whitespacePos, parenthesesOpenPos;
var pos = 0;
var code = value.charCodeAt(pos);
- var max2 = value.length;
+ var max3 = value.length;
var stack = [{ nodes: tokens }];
var balanced = 0;
var parent;
var name = "";
var before = "";
var after = "";
- while (pos < max2) {
+ while (pos < max3) {
if (code <= 32) {
next = pos;
do {
@@ -6268,7 +6269,7 @@ var wp;
}
next += 1;
code = value.charCodeAt(next);
- } while (next < max2 && !(code <= 32 || code === singleQuote || code === doubleQuote || code === comma || code === colon || code === slash || code === openParentheses || code === star && parent && parent.type === "function" && parent.value === "calc" || code === slash && parent.type === "function" && parent.value === "calc" || code === closeParentheses && balanced));
+ } while (next < max3 && !(code <= 32 || code === singleQuote || code === doubleQuote || code === comma || code === colon || code === slash || code === openParentheses || code === star && parent && parent.type === "function" && parent.value === "calc" || code === slash && parent.type === "function" && parent.value === "calc" || code === closeParentheses && balanced));
token = value.slice(pos, next);
if (openParentheses === code) {
name = token;
@@ -6303,8 +6304,8 @@ var wp;
var require_walk = __commonJS({
"node_modules/postcss-value-parser/lib/walk.js"(exports, module) {
module.exports = function walk(nodes, cb, bubble) {
- var i2, max2, node, result;
- for (i2 = 0, max2 = nodes.length; i2 < max2; i2 += 1) {
+ var i2, max3, node, result;
+ for (i2 = 0, max3 = nodes.length; i2 < max3; i2 += 1) {
node = nodes[i2];
if (!bubble) {
result = cb(node, i2, nodes);
@@ -6453,12 +6454,12 @@ var wp;
// node_modules/postcss-value-parser/lib/index.js
var require_lib2 = __commonJS({
"node_modules/postcss-value-parser/lib/index.js"(exports, module) {
- var parse4 = require_parse2();
+ var parse5 = require_parse2();
var walk = require_walk();
var stringify2 = require_stringify2();
function ValueParser(value) {
if (this instanceof ValueParser) {
- this.nodes = parse4(value);
+ this.nodes = parse5(value);
return this;
}
return new ValueParser(value);
@@ -7051,7 +7052,7 @@ var wp;
getSpacingPresetCssVar: () => getSpacingPresetCssVar2,
getTypographyClassesAndStyles: () => getTypographyClassesAndStyles,
isValueSpacingPreset: () => isValueSpacingPreset,
- privateApis: () => privateApis14,
+ privateApis: () => privateApis10,
store: () => store,
storeConfig: () => storeConfig,
transformStyles: () => transform_styles_default,
@@ -7089,10 +7090,10 @@ var wp;
var clsx_default = clsx;
// packages/block-editor/build-module/hooks/utils.mjs
- var import_blocks104 = __toESM(require_blocks(), 1);
- var import_element278 = __toESM(require_element(), 1);
- var import_data181 = __toESM(require_data(), 1);
- var import_compose98 = __toESM(require_compose(), 1);
+ var import_blocks108 = __toESM(require_blocks(), 1);
+ var import_element285 = __toESM(require_element(), 1);
+ var import_data183 = __toESM(require_data(), 1);
+ var import_compose99 = __toESM(require_compose(), 1);
var import_hooks18 = __toESM(require_hooks(), 1);
// packages/block-editor/build-module/components/block-edit/context.mjs
@@ -7330,19 +7331,101 @@ var wp;
};
}
- // packages/block-editor/build-module/components/colors/utils.mjs
- var import_components = __toESM(require_components(), 1);
+ // node_modules/tslib/tslib.es6.mjs
+ var extendStatics = function(d2, b2) {
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
+ d3.__proto__ = b3;
+ } || function(d3, b3) {
+ for (var p2 in b3) if (Object.prototype.hasOwnProperty.call(b3, p2)) d3[p2] = b3[p2];
+ };
+ return extendStatics(d2, b2);
+ };
+ function __extends(d2, b2) {
+ if (typeof b2 !== "function" && b2 !== null)
+ throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
+ extendStatics(d2, b2);
+ function __237() {
+ this.constructor = d2;
+ }
+ d2.prototype = b2 === null ? Object.create(b2) : (__237.prototype = b2.prototype, new __237());
+ }
+ var __assign = function() {
+ __assign = Object.assign || function __assign2(t3) {
+ for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
+ s2 = arguments[i2];
+ for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2)) t3[p2] = s2[p2];
+ }
+ return t3;
+ };
+ return __assign.apply(this, arguments);
+ };
- // packages/block-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/block-editor"
- );
+ // node_modules/lower-case/dist.es2015/index.js
+ function lowerCase(str) {
+ return str.toLowerCase();
+ }
+
+ // node_modules/no-case/dist.es2015/index.js
+ var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
+ var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
+ function noCase(input, options) {
+ if (options === void 0) {
+ options = {};
+ }
+ var _a = options.splitRegexp, splitRegexp2 = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp2 = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
+ var result = replace(replace(input, splitRegexp2, "$1\0$2"), stripRegexp2, "\0");
+ var start2 = 0;
+ var end = result.length;
+ while (result.charAt(start2) === "\0")
+ start2++;
+ while (result.charAt(end - 1) === "\0")
+ end--;
+ return result.slice(start2, end).split("\0").map(transform).join(delimiter);
+ }
+ function replace(input, re2, value) {
+ if (re2 instanceof RegExp)
+ return input.replace(re2, value);
+ return re2.reduce(function(input2, re3) {
+ return input2.replace(re3, value);
+ }, input);
+ }
+
+ // node_modules/dot-case/dist.es2015/index.js
+ function dotCase(input, options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return noCase(input, __assign({ delimiter: "." }, options));
+ }
+
+ // node_modules/param-case/dist.es2015/index.js
+ function paramCase(input, options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return dotCase(input, __assign({ delimiter: "-" }, options));
+ }
+
+ // packages/kebab-case/build-module/index.mjs
+ function kebabCase(str) {
+ let input = str?.toString?.() ?? "";
+ input = input.replace(/['\u2019]/, "");
+ return paramCase(input, {
+ splitRegexp: [
+ /(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,
+ // fooBar => foo-bar, 3Bar => 3-bar
+ /(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,
+ // 3bar => 3-bar
+ /([A-Za-z])([0-9])/g,
+ // Foo3 => foo-3, foo3 => foo-3
+ /([A-Z])([A-Z][a-z])/g
+ // FOOBar => foo-bar
+ ]
+ });
+ }
// packages/block-editor/build-module/components/colors/utils.mjs
k([names_default, a11y_default]);
- var { kebabCase } = unlock(import_components.privateApis);
var getColorObjectByAttributeValues = (colors2, definedColor, customColor) => {
if (definedColor) {
const colorObj = colors2?.find(
@@ -7375,7 +7458,6 @@ var wp;
// packages/block-editor/build-module/components/colors/with-colors.mjs
var import_element7 = __toESM(require_element(), 1);
var import_compose2 = __toESM(require_compose(), 1);
- var import_components5 = __toESM(require_components(), 1);
// packages/block-editor/build-module/components/use-settings/index.mjs
var import_data8 = __toESM(require_data(), 1);
@@ -7383,11 +7465,11 @@ var wp;
// packages/block-editor/build-module/components/block-edit/index.mjs
var import_element6 = __toESM(require_element(), 1);
- var import_blocks10 = __toESM(require_blocks(), 1);
+ var import_blocks12 = __toESM(require_blocks(), 1);
// packages/block-editor/build-module/components/block-edit/edit.mjs
var import_blocks = __toESM(require_blocks(), 1);
- var import_components2 = __toESM(require_components(), 1);
+ var import_components = __toESM(require_components(), 1);
var import_data = __toESM(require_data(), 1);
var import_element4 = __toESM(require_element(), 1);
@@ -7478,6 +7560,13 @@ var wp;
return bindingsWithDefaults;
}
+ // packages/block-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/block-editor"
+ );
+
// packages/block-editor/build-module/components/block-list/private-block-context.mjs
var import_element3 = __toESM(require_element(), 1);
var PrivateBlockContext = (0, import_element3.createContext)({});
@@ -7494,7 +7583,7 @@ var wp;
const Component5 = blockType.edit || blockType.save;
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Component5, { ...props });
};
- var EditWithFilters = (0, import_components2.withFilters)("editor.BlockEdit")(Edit);
+ var EditWithFilters = (0, import_components.withFilters)("editor.BlockEdit")(Edit);
var EditWithGeneratedProps = (props) => {
const { name, clientId, attributes, setAttributes } = props;
const registry = (0, import_data.useRegistry)();
@@ -7676,7 +7765,7 @@ var wp;
);
}
const generatedClassName = (0, import_blocks.hasBlockSupport)(blockType, "className", true) ? (0, import_blocks.getBlockDefaultClassName)(name) : null;
- const className = clsx_default(
+ const className2 = clsx_default(
generatedClassName,
attributes?.className,
props.className
@@ -7686,7 +7775,7 @@ var wp;
{
...props,
attributes: computedAttributes,
- className,
+ className: className2,
context,
setAttributes: setBoundAttributes
}
@@ -7695,8 +7784,8 @@ var wp;
var edit_default = EditWithGeneratedProps;
// packages/block-editor/build-module/components/block-edit/multiple-usage-warning.mjs
- var import_blocks9 = __toESM(require_blocks(), 1);
- var import_components4 = __toESM(require_components(), 1);
+ var import_blocks11 = __toESM(require_blocks(), 1);
+ var import_components3 = __toESM(require_components(), 1);
var import_data7 = __toESM(require_data(), 1);
var import_i18n7 = __toESM(require_i18n(), 1);
@@ -7828,6 +7917,8 @@ var wp;
allowedMimeTypes: null,
// Allows to disable block locking interface.
canLockBlocks: true,
+ // Allows to disable the block-level style states interface.
+ blockStatesEditingEnabled: true,
// Whether the user can edit custom CSS (requires edit_css capability).
// Defaults to false for safety - PHP passes true when user has capability.
canEditCSS: false,
@@ -9451,7 +9542,9 @@ var wp;
}
case "SELECT_BLOCK":
case "SELECTION_CHANGE": {
- if (state?.clientId && state.clientId !== action.clientId) {
+ const startClientId = action.clientId ?? action.start?.clientId;
+ const endClientId = action.clientId ?? action.end?.clientId;
+ if (state?.clientId && (startClientId !== endClientId || state.clientId !== startClientId)) {
return void 0;
}
break;
@@ -10593,178 +10686,183 @@ var wp;
var import_jsx_runtime88 = __toESM(require_jsx_runtime(), 1);
var post_list_default = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_primitives86.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_primitives86.Path, { d: "M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z" }) });
- // packages/icons/build-module/library/reset.mjs
+ // packages/icons/build-module/library/published.mjs
var import_primitives87 = __toESM(require_primitives(), 1);
var import_jsx_runtime89 = __toESM(require_jsx_runtime(), 1);
- var reset_default = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_primitives87.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_primitives87.Path, { d: "M7 11.5h10V13H7z" }) });
+ var published_default = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_primitives87.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_primitives87.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z" }) });
- // packages/icons/build-module/library/rotate-right.mjs
+ // packages/icons/build-module/library/reset.mjs
var import_primitives88 = __toESM(require_primitives(), 1);
var import_jsx_runtime90 = __toESM(require_jsx_runtime(), 1);
- var rotate_right_default = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_primitives88.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_primitives88.Path, { d: "M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z" }) });
+ var reset_default = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_primitives88.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_primitives88.Path, { d: "M7 11.5h10V13H7z" }) });
- // packages/icons/build-module/library/row.mjs
+ // packages/icons/build-module/library/rotate-right.mjs
var import_primitives89 = __toESM(require_primitives(), 1);
var import_jsx_runtime91 = __toESM(require_jsx_runtime(), 1);
- var row_default = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_primitives89.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_primitives89.Path, { d: "M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z" }) });
+ var rotate_right_default = /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_primitives89.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_primitives89.Path, { d: "M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z" }) });
- // packages/icons/build-module/library/search.mjs
+ // packages/icons/build-module/library/row.mjs
var import_primitives90 = __toESM(require_primitives(), 1);
var import_jsx_runtime92 = __toESM(require_jsx_runtime(), 1);
- var search_default = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_primitives90.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_primitives90.Path, { d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z" }) });
+ var row_default = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_primitives90.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_primitives90.Path, { d: "M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z" }) });
- // packages/icons/build-module/library/seen.mjs
+ // packages/icons/build-module/library/search.mjs
var import_primitives91 = __toESM(require_primitives(), 1);
var import_jsx_runtime93 = __toESM(require_jsx_runtime(), 1);
- var seen_default = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_primitives91.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_primitives91.Path, { d: "M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z" }) });
+ var search_default = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_primitives91.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_primitives91.Path, { d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z" }) });
- // packages/icons/build-module/library/settings.mjs
+ // packages/icons/build-module/library/seen.mjs
var import_primitives92 = __toESM(require_primitives(), 1);
var import_jsx_runtime94 = __toESM(require_jsx_runtime(), 1);
- var settings_default = /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_primitives92.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_primitives92.Path, { d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z" }),
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_primitives92.Path, { d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z" })
- ] });
+ var seen_default = /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_primitives92.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_primitives92.Path, { d: "M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z" }) });
- // packages/icons/build-module/library/shadow.mjs
+ // packages/icons/build-module/library/settings.mjs
var import_primitives93 = __toESM(require_primitives(), 1);
var import_jsx_runtime95 = __toESM(require_jsx_runtime(), 1);
- var shadow_default = /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_primitives93.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_primitives93.Path, { d: "M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z" }) });
+ var settings_default = /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_primitives93.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_primitives93.Path, { d: "m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z" }),
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_primitives93.Path, { d: "m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z" })
+ ] });
- // packages/icons/build-module/library/sides-all.mjs
+ // packages/icons/build-module/library/shadow.mjs
var import_primitives94 = __toESM(require_primitives(), 1);
var import_jsx_runtime96 = __toESM(require_jsx_runtime(), 1);
- var sides_all_default = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_primitives94.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_primitives94.Path, { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z" }) });
+ var shadow_default = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_primitives94.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_primitives94.Path, { d: "M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z" }) });
- // packages/icons/build-module/library/sides-bottom.mjs
+ // packages/icons/build-module/library/sides-all.mjs
var import_primitives95 = __toESM(require_primitives(), 1);
var import_jsx_runtime97 = __toESM(require_jsx_runtime(), 1);
- var sides_bottom_default = /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_primitives95.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_primitives95.Path, { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z", style: { opacity: 0.25 } }),
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_primitives95.Path, { d: "m16.5 19.5h-9v-1.5h9z" })
- ] });
+ var sides_all_default = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_primitives95.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_primitives95.Path, { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z" }) });
- // packages/icons/build-module/library/sides-horizontal.mjs
+ // packages/icons/build-module/library/sides-bottom.mjs
var import_primitives96 = __toESM(require_primitives(), 1);
var import_jsx_runtime98 = __toESM(require_jsx_runtime(), 1);
- var sides_horizontal_default = /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_primitives96.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
+ var sides_bottom_default = /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_primitives96.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_primitives96.Path, { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z", style: { opacity: 0.25 } }),
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_primitives96.Path, { d: "m4.5 7.5v9h1.5v-9z" }),
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_primitives96.Path, { d: "m18 7.5v9h1.5v-9z" })
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_primitives96.Path, { d: "m16.5 19.5h-9v-1.5h9z" })
] });
- // packages/icons/build-module/library/sides-left.mjs
+ // packages/icons/build-module/library/sides-horizontal.mjs
var import_primitives97 = __toESM(require_primitives(), 1);
var import_jsx_runtime99 = __toESM(require_jsx_runtime(), 1);
- var sides_left_default = /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_primitives97.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
+ var sides_horizontal_default = /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_primitives97.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_primitives97.Path, { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z", style: { opacity: 0.25 } }),
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_primitives97.Path, { d: "m4.5 16.5v-9h1.5v9z" })
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_primitives97.Path, { d: "m4.5 7.5v9h1.5v-9z" }),
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_primitives97.Path, { d: "m18 7.5v9h1.5v-9z" })
] });
- // packages/icons/build-module/library/sides-right.mjs
+ // packages/icons/build-module/library/sides-left.mjs
var import_primitives98 = __toESM(require_primitives(), 1);
var import_jsx_runtime100 = __toESM(require_jsx_runtime(), 1);
- var sides_right_default = /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_primitives98.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
+ var sides_left_default = /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_primitives98.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_primitives98.Path, { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z", style: { opacity: 0.25 } }),
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_primitives98.Path, { d: "m18 16.5v-9h1.5v9z" })
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_primitives98.Path, { d: "m4.5 16.5v-9h1.5v9z" })
] });
- // packages/icons/build-module/library/sides-top.mjs
+ // packages/icons/build-module/library/sides-right.mjs
var import_primitives99 = __toESM(require_primitives(), 1);
var import_jsx_runtime101 = __toESM(require_jsx_runtime(), 1);
- var sides_top_default = /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_primitives99.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
+ var sides_right_default = /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_primitives99.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_primitives99.Path, { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z", style: { opacity: 0.25 } }),
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_primitives99.Path, { d: "m16.5 6h-9v-1.5h9z" })
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_primitives99.Path, { d: "m18 16.5v-9h1.5v9z" })
] });
- // packages/icons/build-module/library/sides-vertical.mjs
+ // packages/icons/build-module/library/sides-top.mjs
var import_primitives100 = __toESM(require_primitives(), 1);
var import_jsx_runtime102 = __toESM(require_jsx_runtime(), 1);
- var sides_vertical_default = /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_primitives100.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
+ var sides_top_default = /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_primitives100.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_primitives100.Path, { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z", style: { opacity: 0.25 } }),
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_primitives100.Path, { d: "m7.5 6h9v-1.5h-9z" }),
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_primitives100.Path, { d: "m7.5 19.5h9v-1.5h-9z" })
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_primitives100.Path, { d: "m16.5 6h-9v-1.5h9z" })
] });
- // packages/icons/build-module/library/stack.mjs
+ // packages/icons/build-module/library/sides-vertical.mjs
var import_primitives101 = __toESM(require_primitives(), 1);
var import_jsx_runtime103 = __toESM(require_jsx_runtime(), 1);
- var stack_default = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_primitives101.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_primitives101.Path, { d: "M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z" }) });
+ var sides_vertical_default = /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_primitives101.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_primitives101.Path, { d: "m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z", style: { opacity: 0.25 } }),
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_primitives101.Path, { d: "m7.5 6h9v-1.5h-9z" }),
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_primitives101.Path, { d: "m7.5 19.5h9v-1.5h-9z" })
+ ] });
- // packages/icons/build-module/library/stretch-full-width.mjs
+ // packages/icons/build-module/library/stack.mjs
var import_primitives102 = __toESM(require_primitives(), 1);
var import_jsx_runtime104 = __toESM(require_jsx_runtime(), 1);
- var stretch_full_width_default = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_primitives102.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_primitives102.Path, { d: "M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z" }) });
+ var stack_default = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_primitives102.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_primitives102.Path, { d: "M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z" }) });
- // packages/icons/build-module/library/stretch-wide.mjs
+ // packages/icons/build-module/library/stretch-full-width.mjs
var import_primitives103 = __toESM(require_primitives(), 1);
var import_jsx_runtime105 = __toESM(require_jsx_runtime(), 1);
- var stretch_wide_default = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_primitives103.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_primitives103.Path, { d: "M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z" }) });
+ var stretch_full_width_default = /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_primitives103.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_primitives103.Path, { d: "M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z" }) });
- // packages/icons/build-module/library/styles.mjs
+ // packages/icons/build-module/library/stretch-wide.mjs
var import_primitives104 = __toESM(require_primitives(), 1);
var import_jsx_runtime106 = __toESM(require_jsx_runtime(), 1);
- var styles_default = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_primitives104.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_primitives104.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z" }) });
+ var stretch_wide_default = /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_primitives104.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_primitives104.Path, { d: "M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z" }) });
- // packages/icons/build-module/library/symbol.mjs
+ // packages/icons/build-module/library/styles.mjs
var import_primitives105 = __toESM(require_primitives(), 1);
var import_jsx_runtime107 = __toESM(require_jsx_runtime(), 1);
- var symbol_default = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_primitives105.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_primitives105.Path, { d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z" }) });
+ var styles_default = /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_primitives105.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_primitives105.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z" }) });
- // packages/icons/build-module/library/tablet.mjs
+ // packages/icons/build-module/library/symbol.mjs
var import_primitives106 = __toESM(require_primitives(), 1);
var import_jsx_runtime108 = __toESM(require_jsx_runtime(), 1);
- var tablet_default = /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_primitives106.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_primitives106.Path, { d: "M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z" }) });
+ var symbol_default = /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_primitives106.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_primitives106.Path, { d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z" }) });
- // packages/icons/build-module/library/tag.mjs
+ // packages/icons/build-module/library/tablet.mjs
var import_primitives107 = __toESM(require_primitives(), 1);
var import_jsx_runtime109 = __toESM(require_jsx_runtime(), 1);
- var tag_default = /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_primitives107.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_primitives107.Path, { d: "M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" }) });
+ var tablet_default = /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_primitives107.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_primitives107.Path, { d: "M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z" }) });
- // packages/icons/build-module/library/text-horizontal.mjs
+ // packages/icons/build-module/library/tag.mjs
var import_primitives108 = __toESM(require_primitives(), 1);
var import_jsx_runtime110 = __toESM(require_jsx_runtime(), 1);
- var text_horizontal_default = /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_primitives108.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_primitives108.Path, { d: "M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z" }) });
+ var tag_default = /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_primitives108.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_primitives108.Path, { d: "M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" }) });
- // packages/icons/build-module/library/text-vertical.mjs
+ // packages/icons/build-module/library/text-horizontal.mjs
var import_primitives109 = __toESM(require_primitives(), 1);
var import_jsx_runtime111 = __toESM(require_jsx_runtime(), 1);
- var text_vertical_default = /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_primitives109.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_primitives109.Path, { d: "M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z" }) });
+ var text_horizontal_default = /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_primitives109.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_primitives109.Path, { d: "M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z" }) });
- // packages/icons/build-module/library/trash.mjs
+ // packages/icons/build-module/library/text-vertical.mjs
var import_primitives110 = __toESM(require_primitives(), 1);
var import_jsx_runtime112 = __toESM(require_jsx_runtime(), 1);
- var trash_default = /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_primitives110.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_primitives110.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z" }) });
+ var text_vertical_default = /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_primitives110.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_primitives110.Path, { d: "M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z" }) });
- // packages/icons/build-module/library/ungroup.mjs
+ // packages/icons/build-module/library/trash.mjs
var import_primitives111 = __toESM(require_primitives(), 1);
var import_jsx_runtime113 = __toESM(require_jsx_runtime(), 1);
- var ungroup_default = /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_primitives111.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_primitives111.Path, { d: "M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z" }) });
+ var trash_default = /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_primitives111.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_primitives111.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z" }) });
- // packages/icons/build-module/library/unlock.mjs
+ // packages/icons/build-module/library/ungroup.mjs
var import_primitives112 = __toESM(require_primitives(), 1);
var import_jsx_runtime114 = __toESM(require_jsx_runtime(), 1);
- var unlock_default = /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_primitives112.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_primitives112.Path, { d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z" }) });
+ var ungroup_default = /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_primitives112.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_primitives112.Path, { d: "M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z" }) });
- // packages/icons/build-module/library/unseen.mjs
+ // packages/icons/build-module/library/unlock.mjs
var import_primitives113 = __toESM(require_primitives(), 1);
var import_jsx_runtime115 = __toESM(require_jsx_runtime(), 1);
- var unseen_default = /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_primitives113.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_primitives113.Path, { d: "M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z" }) });
+ var unlock_default = /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_primitives113.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_primitives113.Path, { d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z" }) });
- // packages/icons/build-module/library/upload.mjs
+ // packages/icons/build-module/library/unseen.mjs
var import_primitives114 = __toESM(require_primitives(), 1);
var import_jsx_runtime116 = __toESM(require_jsx_runtime(), 1);
- var upload_default = /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_primitives114.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_primitives114.Path, { d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z" }) });
+ var unseen_default = /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_primitives114.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_primitives114.Path, { d: "M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z" }) });
- // packages/icons/build-module/library/verse.mjs
+ // packages/icons/build-module/library/upload.mjs
var import_primitives115 = __toESM(require_primitives(), 1);
var import_jsx_runtime117 = __toESM(require_jsx_runtime(), 1);
- var verse_default = /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_primitives115.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_primitives115.Path, { d: "M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z" }) });
+ var upload_default = /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_primitives115.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_primitives115.Path, { d: "M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z" }) });
- // packages/icons/build-module/library/video.mjs
+ // packages/icons/build-module/library/verse.mjs
var import_primitives116 = __toESM(require_primitives(), 1);
var import_jsx_runtime118 = __toESM(require_jsx_runtime(), 1);
- var video_default = /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_primitives116.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_primitives116.Path, { d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z" }) });
+ var verse_default = /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_primitives116.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_primitives116.Path, { d: "M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z" }) });
+
+ // packages/icons/build-module/library/video.mjs
+ var import_primitives117 = __toESM(require_primitives(), 1);
+ var import_jsx_runtime119 = __toESM(require_jsx_runtime(), 1);
+ var video_default = /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_primitives117.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_primitives117.Path, { d: "M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z" }) });
// packages/block-editor/build-module/store/selectors.mjs
var import_rich_text = __toESM(require_rich_text(), 1);
@@ -10835,6 +10933,7 @@ var wp;
isResponsiveEditing: () => isResponsiveEditing2,
isSectionBlock: () => isSectionBlock,
isSelectedBlockStyleStateShownOnCanvas: () => isSelectedBlockStyleStateShownOnCanvas,
+ isSyncedBlock: () => isSyncedBlock,
isWithinEditedContentOnlySection: () => isWithinEditedContentOnlySection,
isZoomOut: () => isZoomOut,
shouldRenderBlockListView: () => shouldRenderBlockListView
@@ -11651,9 +11750,11 @@ var wp;
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 || // @ts-expect-error
- !backgroundStyle?.backgroundImage?.url) {
+ if (!backgroundStyle || !hasImageUrl(backgroundStyle.backgroundImage)) {
return;
}
let backgroundStylesWithDefaults;
@@ -12202,7 +12303,7 @@ var wp;
}
if (gapValue && layoutDefinitions) {
Object.values(layoutDefinitions).forEach(
- ({ className, name, spacingStyles }) => {
+ ({ className: className2, name, spacingStyles }) => {
if (!hasBlockGapSupport && "flex" !== name && "grid" !== name) {
return;
}
@@ -12221,9 +12322,9 @@ var wp;
if (declarations.length) {
let combinedSelector = "";
if (!hasBlockGapSupport) {
- combinedSelector = selector3 === ROOT_BLOCK_SELECTOR ? `:where(.${className}${spacingStyle?.selector || ""})` : `:where(${selector3}.${className}${spacingStyle?.selector || ""})`;
+ combinedSelector = selector3 === ROOT_BLOCK_SELECTOR ? `:where(.${className2}${spacingStyle?.selector || ""})` : `:where(${selector3}.${className2}${spacingStyle?.selector || ""})`;
} else {
- combinedSelector = selector3 === ROOT_BLOCK_SELECTOR ? `:root :where(.${className})${spacingStyle?.selector || ""}` : `:root :where(${selector3}-${className})${spacingStyle?.selector || ""}`;
+ combinedSelector = selector3 === ROOT_BLOCK_SELECTOR ? `:root :where(.${className2})${spacingStyle?.selector || ""}` : `:root :where(${selector3}-${className2})${spacingStyle?.selector || ""}`;
}
ruleset += `${combinedSelector} { ${declarations.join(
"; "
@@ -12240,9 +12341,9 @@ var wp;
if (selector3 === ROOT_BLOCK_SELECTOR && layoutDefinitions) {
const validDisplayModes = ["block", "flex", "grid"];
Object.values(layoutDefinitions).forEach(
- ({ className, displayMode, baseStyles }) => {
+ ({ className: className2, displayMode, baseStyles }) => {
if (displayMode && validDisplayModes.includes(displayMode)) {
- ruleset += `${selector3} .${className} { display:${displayMode}; }`;
+ ruleset += `${selector3} .${className2} { display:${displayMode}; }`;
}
if (baseStyles?.length) {
baseStyles.forEach((baseStyle) => {
@@ -12257,7 +12358,7 @@ var wp;
);
}
if (declarations.length) {
- const combinedSelector = `.${className}${baseStyle?.selector || ""}`;
+ const combinedSelector = `.${className2}${baseStyle?.selector || ""}`;
ruleset += `${combinedSelector} { ${declarations.join(
"; "
)}; }`;
@@ -12377,6 +12478,20 @@ var wp;
}
);
}
+ 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) {
@@ -12444,7 +12559,10 @@ var wp;
});
}
Object.entries(
- typedVariation?.elements ?? {}
+ getElementStylesByName(
+ typedVariation,
+ responsiveMediaQueries
+ )
).forEach(([element, elementStyles]) => {
if (elementStyles && import_blocks3.__EXPERIMENTAL_ELEMENTS[element]) {
variationNodesToAdd.push({
@@ -12497,7 +12615,10 @@ var wp;
styles: variationBlockStyleNodes
});
Object.entries(
- variationBlockStyles.elements ?? {}
+ getElementStylesByName(
+ variationBlockStyles,
+ responsiveMediaQueries
+ )
).forEach(
([
variationBlockElement,
@@ -12533,22 +12654,22 @@ var wp;
});
}
nodes.push(...variationStyleNodesToAdd);
- Object.entries(typedNode?.elements ?? {}).forEach(
- ([elementName, value]) => {
- if (typeof blockSelectors !== "string" && value && blockSelectors?.[blockName] && import_blocks3.__EXPERIMENTAL_ELEMENTS[elementName]) {
- nodes.push({
- styles: value,
- selector: blockSelectors[blockName]?.selector.split(",").map((sel) => {
- const elementSelectors = import_blocks3.__EXPERIMENTAL_ELEMENTS[elementName].split(",");
- return elementSelectors.map(
- (elementSelector) => sel + " " + elementSelector
- );
- }).join(","),
- elementName
- });
- }
+ Object.entries(
+ getElementStylesByName(typedNode, responsiveMediaQueries)
+ ).forEach(([elementName, value]) => {
+ if (typeof blockSelectors !== "string" && value && blockSelectors?.[blockName] && import_blocks3.__EXPERIMENTAL_ELEMENTS[elementName]) {
+ nodes.push({
+ styles: value,
+ selector: blockSelectors[blockName]?.selector.split(",").map((sel) => {
+ const elementSelectors = import_blocks3.__EXPERIMENTAL_ELEMENTS[elementName].split(",");
+ return elementSelectors.map(
+ (elementSelector) => sel + " " + elementSelector
+ );
+ }).join(","),
+ elementName
+ });
}
- );
+ });
nodes.push(...variationNodesToAdd);
}
);
@@ -12828,10 +12949,8 @@ var wp;
}
}
const hasLayoutSupport2 = !!blockType?.supports?.layout || !!blockType?.supports?.__experimentalLayout;
- const fallbackGapValue = (
- // @ts-expect-error
- blockType?.supports?.spacing?.blockGap?.__experimentalDefault
- );
+ const blockGapSupport = blockType?.supports?.spacing?.blockGap;
+ const fallbackGapValue = typeof blockGapSupport === "object" && !Array.isArray(blockGapSupport) ? blockGapSupport.__experimentalDefault : void 0;
const blockStyleVariations = getBlockStyles2(name);
const styleVariationSelectors = {};
blockStyleVariations?.forEach((variation) => {
@@ -13589,25 +13708,33 @@ var wp;
}
);
}
- var getEnabledClientIdsTree = (0, import_data4.createRegistrySelector)(
- () => (0, import_data4.createSelector)(getEnabledClientIdsTreeUnmemoized, (state) => [
+ var getEnabledClientIdsTree = (0, import_data4.createSelector)(
+ getEnabledClientIdsTreeUnmemoized,
+ (state) => [
state.blocks.order,
state.derivedBlockEditingModes,
state.blocks.blockEditingModes
- ])
+ ]
);
- var getListViewClientIdsTree = (0, import_data4.createRegistrySelector)(
- () => (0, import_data4.createSelector)(getListViewClientIdsTreeUnmemoized, (state) => [
+ var getListViewClientIdsTree = (0, import_data4.createSelector)(
+ getListViewClientIdsTreeUnmemoized,
+ (state) => [
state.blocks.order,
state.derivedBlockEditingModes,
state.blocks.blockEditingModes,
state.blocks.parents,
- state.blocks.byClientId,
- state.blocks.attributes,
- state.blockListSettings,
state.editedContentOnlySection,
- state.settings
- ])
+ // The state below is only read to resolve a block's parent section,
+ // which the tree does only while a content-only section is being
+ // edited. Depending on it otherwise rebuilds the tree on every
+ // attribute change, i.e. on every keystroke.
+ ...state.editedContentOnlySection ? [
+ state.blocks.byClientId,
+ state.blocks.attributes,
+ state.blockListSettings,
+ state.settings
+ ] : []
+ ]
);
var getEnabledBlockParents = (0, import_data4.createSelector)(
(state, clientId, ascending = false) => {
@@ -13826,6 +13953,14 @@ var wp;
}
return isSectionBlockCandidate(state, clientId);
}
+ function isSyncedBlock(state, clientId) {
+ const blockName = getBlockName(state, clientId);
+ if (blockName !== "core/block" && blockName !== "core/template-part") {
+ return false;
+ }
+ const patternName = getBlockAttributes(state, clientId)?.metadata?.patternName;
+ return !(patternName && isSectionBlock(state, clientId));
+ }
function getEditedContentOnlySection(state) {
return state.editedContentOnlySection;
}
@@ -14769,21 +14904,34 @@ var wp;
if (selectionStart.clientId !== selectionEnd.clientId) {
return false;
}
- return selectionStart.clientId === clientId;
+ return !!clientId && selectionStart.clientId === clientId;
}
+ var getSelectedBlockAncestors = (0, import_data5.createSelector)(
+ (state) => {
+ const ancestors = /* @__PURE__ */ new Set();
+ for (const clientId of getSelectedBlockClientIds(state)) {
+ let current = clientId;
+ while (current = state.blocks.parents.get(current)) {
+ if (ancestors.has(current)) {
+ break;
+ }
+ ancestors.add(current);
+ }
+ }
+ return ancestors;
+ },
+ (state) => getSelectedBlockClientIds.getDependants(state)
+ );
function hasSelectedInnerBlock(state, clientId, deep = false) {
+ if (!clientId) {
+ return false;
+ }
const selectedBlockClientIds = getSelectedBlockClientIds(state);
if (!selectedBlockClientIds.length) {
return false;
}
if (deep) {
- return selectedBlockClientIds.some(
- (id) => (
- // Pass true because we don't care about order and it's more
- // performant.
- getBlockParents(state, id, true).includes(clientId)
- )
- );
+ return getSelectedBlockAncestors(state).has(clientId);
}
return selectedBlockClientIds.some(
(id) => getBlockRootClientId(state, id) === clientId
@@ -15923,6 +16071,7 @@ var wp;
var import_deprecated3 = __toESM(require_deprecated(), 1);
var import_a11y2 = __toESM(require_a11y(), 1);
var import_i18n4 = __toESM(require_i18n(), 1);
+ var import_blocks8 = __toESM(require_blocks(), 1);
var castArray = (maybeArray) => Array.isArray(maybeArray) ? maybeArray : [maybeArray];
var privateSettings = [
"inserterMediaCategories",
@@ -16007,11 +16156,27 @@ var wp;
}
}
}
+ let removeRoot = false;
+ const rootClientId = select3.getBlockRootClientId(clientIds[0]);
+ if (rootClientId && !(0, import_blocks8.getBlockType)(select3.getBlockName(rootClientId))?.parent?.length) {
+ const blockOrder = select3.getBlockOrder(rootClientId);
+ removeRoot = blockOrder.length === clientIds.length && blockOrder.every(
+ (clientId) => clientIds.includes(clientId)
+ ) && (0, import_blocks8.isUnmodifiedBlock)(
+ select3.__unstableGetBlockWithoutInnerBlocks(rootClientId)
+ );
+ }
if (selectPrevious) {
- dispatch.selectPreviousBlock(clientIds[0], selectPrevious);
+ dispatch.selectPreviousBlock(
+ removeRoot ? rootClientId : clientIds[0],
+ selectPrevious
+ );
}
registry.batch(() => {
- dispatch({ type: "REMOVE_BLOCKS", clientIds });
+ dispatch({
+ type: "REMOVE_BLOCKS",
+ clientIds: removeRoot ? [rootClientId] : clientIds
+ });
dispatch(ensureDefaultBlock());
});
};
@@ -16272,7 +16437,7 @@ var wp;
updateSettings: () => updateSettings,
validateBlocksToTemplate: () => validateBlocksToTemplate
});
- var import_blocks8 = __toESM(require_blocks(), 1);
+ var import_blocks10 = __toESM(require_blocks(), 1);
var import_a11y3 = __toESM(require_a11y(), 1);
var import_i18n5 = __toESM(require_i18n(), 1);
var import_notices = __toESM(require_notices(), 1);
@@ -16303,6 +16468,23 @@ var wp;
return void 0;
}
+ // packages/block-editor/build-module/utils/sibling-block-attributes.mjs
+ var import_blocks9 = __toESM(require_blocks(), 1);
+ function getSiblingBlockAttributes(blockName, attributes) {
+ if (!attributes) {
+ return {};
+ }
+ const excluded = new Set(
+ (0, import_blocks9.getBlockAttributesNamesByRole)(blockName, "content")
+ );
+ excluded.add("metadata");
+ return Object.fromEntries(
+ Object.entries(attributes).filter(
+ ([key]) => !excluded.has(key)
+ )
+ );
+ }
+
// packages/block-editor/build-module/store/actions.mjs
var castArray2 = (maybeArray) => Array.isArray(maybeArray) ? maybeArray : [maybeArray];
var resetBlocks = (blocks2) => ({ dispatch }) => {
@@ -16312,7 +16494,7 @@ var wp;
var validateBlocksToTemplate = (blocks2) => ({ select: select3, dispatch }) => {
const template2 = select3.getTemplate();
const templateLock = select3.getTemplateLock();
- const isBlocksValidToTemplate = !template2 || templateLock !== "all" || (0, import_blocks8.doBlocksMatchTemplate)(blocks2, template2);
+ const isBlocksValidToTemplate = !template2 || templateLock !== "all" || (0, import_blocks10.doBlocksMatchTemplate)(blocks2, template2);
const isValidTemplate2 = select3.isValidTemplate();
if (isBlocksValidToTemplate !== isValidTemplate2) {
dispatch.setTemplateValidity(isBlocksValidToTemplate);
@@ -16416,10 +16598,26 @@ var wp;
initialPosition: __experimentalInitialPosition
});
const blockCount = select3.getSelectedBlockCount();
+ const nestedBlockCount = select3.getClientIdsOfDescendants(
+ select3.getMultiSelectedBlockClientIds()
+ ).length;
(0, import_a11y3.speak)(
- (0, import_i18n5.sprintf)(
+ nestedBlockCount ? (0, import_i18n5.sprintf)(
+ /* translators: 1: number of selected blocks. 2: number of blocks including nested blocks. */
+ (0, import_i18n5._n)(
+ "%1$s block selected, %2$s including nested blocks.",
+ "%1$s blocks selected, %2$s including nested blocks.",
+ blockCount
+ ),
+ blockCount,
+ blockCount + nestedBlockCount
+ ) : (0, import_i18n5.sprintf)(
/* translators: %s: number of selected blocks */
- (0, import_i18n5._n)("%s block selected.", "%s blocks selected.", blockCount),
+ (0, import_i18n5._n)(
+ "%s block selected.",
+ "%s blocks selected.",
+ blockCount
+ ),
blockCount
),
"assertive"
@@ -16450,16 +16648,24 @@ var wp;
return;
}
}
+ const blocksWithTemplates = applyBlockTypeTemplates(blocks2);
registry.batch(() => {
dispatch({
type: "REPLACE_BLOCKS",
clientIds,
- blocks: blocks2,
+ blocks: blocksWithTemplates,
time: Date.now(),
indexToSelect,
initialPosition: initialPosition2,
meta
});
+ selectBlockTypeTemplate(
+ select3,
+ dispatch,
+ blocks2,
+ blocksWithTemplates,
+ initialPosition2
+ );
dispatch.ensureDefaultBlock();
});
};
@@ -16519,7 +16725,47 @@ var wp;
meta
);
}
- var insertBlocks = (blocks2, index2, rootClientId, updateSelection = true, initialPosition2 = 0, meta) => ({ select: select3, dispatch }) => {
+ function applyBlockTypeTemplates(blocks2, expandedTypes = /* @__PURE__ */ new Set()) {
+ let hasChanges = false;
+ const result = blocks2.map((block) => {
+ let { innerBlocks } = block;
+ if (innerBlocks?.length) {
+ innerBlocks = applyBlockTypeTemplates(innerBlocks, expandedTypes);
+ } else if (!expandedTypes.has(block.name)) {
+ const { template: template2 } = (0, import_blocks10.getBlockType)(block.name) ?? {};
+ if (template2?.length) {
+ innerBlocks = applyBlockTypeTemplates(
+ (0, import_blocks10.synchronizeBlocksWithTemplate)([], template2),
+ new Set(expandedTypes).add(block.name)
+ );
+ }
+ }
+ if (innerBlocks === block.innerBlocks) {
+ return block;
+ }
+ hasChanges = true;
+ return { ...block, innerBlocks };
+ });
+ return hasChanges ? result : blocks2;
+ }
+ function selectBlockTypeTemplate(select3, dispatch, originalBlocks, blocksWithTemplates, initialPosition2) {
+ const selectedClientId = select3.getSelectedBlockClientId();
+ if (!selectedClientId) {
+ return;
+ }
+ const index2 = blocksWithTemplates.findIndex(
+ (block2) => block2.clientId === selectedClientId
+ );
+ if (index2 === -1 || blocksWithTemplates[index2] === originalBlocks[index2] || !blocksWithTemplates[index2].innerBlocks.length || !(0, import_blocks10.getBlockType)(blocksWithTemplates[index2].name)?.templateInsertUpdatesSelection) {
+ return;
+ }
+ let block = blocksWithTemplates[index2];
+ while (block.innerBlocks[0]) {
+ block = block.innerBlocks[0];
+ }
+ dispatch.selectBlock(block.clientId, initialPosition2);
+ }
+ var insertBlocks = (blocks2, index2, rootClientId, updateSelection = true, initialPosition2 = 0, meta) => ({ select: select3, dispatch, registry }) => {
if (initialPosition2 !== null && typeof initialPosition2 === "object") {
meta = initialPosition2;
initialPosition2 = 0;
@@ -16543,15 +16789,25 @@ var wp;
}
}
if (allowedBlocks.length) {
- dispatch({
- type: "INSERT_BLOCKS",
- blocks: allowedBlocks,
- index: index2,
- rootClientId,
- time: Date.now(),
- updateSelection,
- initialPosition: updateSelection ? initialPosition2 : null,
- meta
+ const blocksWithTemplates = applyBlockTypeTemplates(allowedBlocks);
+ registry.batch(() => {
+ dispatch({
+ type: "INSERT_BLOCKS",
+ blocks: blocksWithTemplates,
+ index: index2,
+ rootClientId,
+ time: Date.now(),
+ updateSelection,
+ initialPosition: updateSelection ? initialPosition2 : null,
+ meta
+ });
+ selectBlockTypeTemplate(
+ select3,
+ dispatch,
+ allowedBlocks,
+ blocksWithTemplates,
+ initialPosition2
+ );
});
}
};
@@ -16584,7 +16840,7 @@ var wp;
dispatch({ type: "SYNCHRONIZE_TEMPLATE" });
const blocks2 = select3.getBlocks();
const template2 = select3.getTemplate();
- const updatedBlockList = (0, import_blocks8.synchronizeBlocksWithTemplate)(
+ const updatedBlockList = (0, import_blocks10.synchronizeBlocksWithTemplate)(
blocks2,
template2
);
@@ -16621,7 +16877,7 @@ var wp;
}
const targetSelection = isForward ? selectionEnd : selectionStart;
const targetBlock = select3.getBlock(targetSelection.clientId);
- const targetBlockType = (0, import_blocks8.getBlockType)(targetBlock.name);
+ const targetBlockType = (0, import_blocks10.getBlockType)(targetBlock.name);
if (!targetBlockType.merge) {
return;
}
@@ -16635,14 +16891,14 @@ var wp;
let valueB = (0, import_rich_text3.create)({ html: htmlB });
valueA = (0, import_rich_text3.remove)(valueA, selectionA.offset, valueA.text.length);
valueB = (0, import_rich_text3.insert)(valueB, START_OF_SELECTED_AREA, 0, selectionB.offset);
- const cloneA = (0, import_blocks8.cloneBlock)(blockA, {
+ const cloneA = (0, import_blocks10.cloneBlock)(blockA, {
[selectionA.attributeKey]: (0, import_rich_text3.toHTMLString)({ value: valueA })
});
- const cloneB = (0, import_blocks8.cloneBlock)(blockB, {
+ const cloneB = (0, import_blocks10.cloneBlock)(blockB, {
[selectionB.attributeKey]: (0, import_rich_text3.toHTMLString)({ value: valueB })
});
const followingBlock = isForward ? cloneA : cloneB;
- const blocksWithTheSameType = blockA.name === blockB.name ? [followingBlock] : (0, import_blocks8.switchToBlockType)(followingBlock, targetBlockType.name);
+ const blocksWithTheSameType = blockA.name === blockB.name ? [followingBlock] : (0, import_blocks10.switchToBlockType)(followingBlock, targetBlockType.name);
if (!blocksWithTheSameType || !blocksWithTheSameType.length) {
return;
}
@@ -16725,8 +16981,8 @@ var wp;
const selectionB = selectionEnd;
const blockA = select3.getBlock(selectionA.clientId);
const blockB = select3.getBlock(selectionB.clientId);
- const blockAType = (0, import_blocks8.getBlockType)(blockA.name);
- const blockBType = (0, import_blocks8.getBlockType)(blockB.name);
+ const blockAType = (0, import_blocks10.getBlockType)(blockA.name);
+ const blockBType = (0, import_blocks10.getBlockType)(blockB.name);
const attributeKeyA = typeof selectionA.attributeKey === "string" ? selectionA.attributeKey : findRichTextAttributeKey(blockAType);
const attributeKeyB = typeof selectionB.attributeKey === "string" ? selectionB.attributeKey : findRichTextAttributeKey(blockBType);
const blockAttributes = select3.getBlockAttributes(
@@ -16754,7 +17010,7 @@ var wp;
}
if (selectionA.clientId === selectionB.clientId && attributeKeyA === attributeKeyB && selectionA.offset === selectionB.offset) {
if (blocks2.length) {
- if ((0, import_blocks8.isUnmodifiedDefaultBlock)(blockA, "content")) {
+ if ((0, import_blocks10.isUnmodifiedDefaultBlock)(blockA, "content")) {
dispatch.replaceBlocks(
[selectionA.clientId],
blocks2,
@@ -16765,12 +17021,17 @@ var wp;
}
} else if (!select3.getBlockOrder(selectionA.clientId).length) {
let createEmpty2 = function() {
- const defaultBlockName2 = (0, import_blocks8.getDefaultBlockName)();
- return select3.canInsertBlockType(
+ const defaultBlockName2 = (0, import_blocks10.getDefaultBlockName)();
+ if (select3.canInsertBlockType(
defaultBlockName2,
anchorRootClientId
- ) ? (0, import_blocks8.createBlock)(defaultBlockName2) : (0, import_blocks8.createBlock)(
- select3.getBlockName(selectionA.clientId)
+ )) {
+ return (0, import_blocks10.createBlock)(defaultBlockName2);
+ }
+ const name = select3.getBlockName(selectionA.clientId);
+ return (0, import_blocks10.createBlock)(
+ name,
+ getSiblingBlockAttributes(name, blockAttributes)
);
};
var createEmpty = createEmpty2;
@@ -16814,19 +17075,19 @@ var wp;
let tail = {
...blockB,
// Only preserve the original client ID if the end is different.
- clientId: blockA.clientId === blockB.clientId ? (0, import_blocks8.createBlock)(blockB.name).clientId : blockB.clientId,
+ clientId: blockA.clientId === blockB.clientId ? (0, import_blocks10.createBlock)(blockB.name).clientId : blockB.clientId,
attributes: {
...blockB.attributes,
[attributeKeyB]: (0, import_rich_text3.toHTMLString)({ value: valueB })
}
};
- const defaultBlockName = (0, import_blocks8.getDefaultBlockName)();
+ const defaultBlockName = (0, import_blocks10.getDefaultBlockName)();
if (
// A block is only split when the selection is within the same
// block.
blockA.clientId === blockB.clientId && defaultBlockName && tail.name !== defaultBlockName && select3.canInsertBlockType(defaultBlockName, anchorRootClientId)
) {
- const switched = (0, import_blocks8.switchToBlockType)(tail, defaultBlockName);
+ const switched = (0, import_blocks10.switchToBlockType)(tail, defaultBlockName);
if (switched?.length === 1) {
tail = switched[0];
}
@@ -16842,8 +17103,8 @@ var wp;
const output = [];
const clonedBlocks = [...blocks2];
const firstBlock = clonedBlocks.shift();
- const headType = (0, import_blocks8.getBlockType)(head.name);
- const firstBlocks = headType.merge && firstBlock.name === headType.name ? [firstBlock] : (0, import_blocks8.switchToBlockType)(firstBlock, headType.name);
+ const headType = (0, import_blocks10.getBlockType)(head.name);
+ const firstBlocks = headType.merge && firstBlock.name === headType.name ? [firstBlock] : (0, import_blocks10.switchToBlockType)(firstBlock, headType.name);
if (firstBlocks?.length) {
const first = firstBlocks.shift();
head = {
@@ -16861,18 +17122,18 @@ var wp;
};
clonedBlocks.unshift(...firstBlocks);
} else {
- if (!(0, import_blocks8.isUnmodifiedBlock)(head)) {
+ if (!(0, import_blocks10.isUnmodifiedBlock)(head)) {
output.push(head);
}
output.push(firstBlock);
}
const lastBlock = clonedBlocks.pop();
- const tailType = (0, import_blocks8.getBlockType)(tail.name);
+ const tailType = (0, import_blocks10.getBlockType)(tail.name);
if (clonedBlocks.length) {
output.push(...clonedBlocks);
}
if (lastBlock) {
- const lastBlocks = tailType.merge && tailType.name === lastBlock.name ? [lastBlock] : (0, import_blocks8.switchToBlockType)(lastBlock, tailType.name);
+ const lastBlocks = tailType.merge && tailType.name === lastBlock.name ? [lastBlock] : (0, import_blocks10.switchToBlockType)(lastBlock, tailType.name);
if (lastBlocks?.length) {
const last = lastBlocks.pop();
output.push({
@@ -16892,11 +17153,11 @@ var wp;
};
} else {
output.push(lastBlock);
- if (!(0, import_blocks8.isUnmodifiedBlock)(tail)) {
+ if (!(0, import_blocks10.isUnmodifiedBlock)(tail)) {
output.push(tail);
}
}
- } else if (!(0, import_blocks8.isUnmodifiedBlock)(tail)) {
+ } else if (!(0, import_blocks10.isUnmodifiedBlock)(tail)) {
output.push(tail);
}
registry.batch(() => {
@@ -16928,13 +17189,13 @@ var wp;
const clientIdA = firstBlockClientId;
const clientIdB = secondBlockClientId;
const blockA = select3.getBlock(clientIdA);
- const blockAType = (0, import_blocks8.getBlockType)(blockA.name);
+ const blockAType = (0, import_blocks10.getBlockType)(blockA.name);
if (!blockAType || select3.getBlockEditingMode(clientIdA) === "disabled" || select3.getBlockEditingMode(clientIdB) === "disabled") {
return;
}
const blockB = select3.getBlock(clientIdB);
- if (!blockAType.merge && (0, import_blocks8.getBlockSupport)(blockA.name, "__experimentalOnMerge")) {
- const blocksWithTheSameType2 = (0, import_blocks8.switchToBlockType)(
+ if (!blockAType.merge && (0, import_blocks10.getBlockSupport)(blockA.name, "__experimentalOnMerge")) {
+ const blocksWithTheSameType2 = (0, import_blocks10.switchToBlockType)(
blockB,
blockAType.name
);
@@ -16975,7 +17236,7 @@ var wp;
});
return;
}
- if ((0, import_blocks8.isUnmodifiedDefaultBlock)(blockA)) {
+ if ((0, import_blocks10.isUnmodifiedDefaultBlock)(blockA)) {
const isASelected = select3.isBlockSelected(clientIdA);
if (isASelected) {
registry.batch(() => {
@@ -16987,7 +17248,7 @@ var wp;
}
return;
}
- if ((0, import_blocks8.isUnmodifiedDefaultBlock)(blockB)) {
+ if ((0, import_blocks10.isUnmodifiedDefaultBlock)(blockB)) {
dispatch.removeBlock(
clientIdB,
select3.isBlockSelected(clientIdB)
@@ -16995,7 +17256,7 @@ var wp;
return;
}
if (!blockAType.merge) {
- if ((0, import_blocks8.isUnmodifiedBlock)(blockB, "content")) {
+ if ((0, import_blocks10.isUnmodifiedBlock)(blockB, "content")) {
dispatch.removeBlock(
clientIdB,
select3.isBlockSelected(clientIdB)
@@ -17005,7 +17266,7 @@ var wp;
}
return;
}
- const blockBType = (0, import_blocks8.getBlockType)(blockB.name);
+ const blockBType = (0, import_blocks10.getBlockType)(blockB.name);
const { clientId, attributeKey, offset: offset4 } = select3.getSelectionStart();
const selectedBlockType = clientId === clientIdA ? blockAType : blockBType;
const attributeDefinition = selectedBlockType.attributes[attributeKey];
@@ -17025,8 +17286,8 @@ var wp;
);
}
}
- const cloneA = (0, import_blocks8.cloneBlock)(blockA);
- const cloneB = (0, import_blocks8.cloneBlock)(blockB);
+ const cloneA = (0, import_blocks10.cloneBlock)(blockA);
+ const cloneB = (0, import_blocks10.cloneBlock)(blockB);
if (canRestoreTextSelection) {
const selectedBlock = clientId === clientIdA ? cloneA : cloneB;
const html = selectedBlock.attributes[attributeKey];
@@ -17040,7 +17301,7 @@ var wp;
value
});
}
- const blocksWithTheSameType = blockA.name === blockB.name ? [cloneB] : (0, import_blocks8.switchToBlockType)(cloneB, blockA.name);
+ const blocksWithTheSameType = blockA.name === blockB.name ? [cloneB] : (0, import_blocks10.switchToBlockType)(cloneB, blockA.name);
if (!blocksWithTheSameType || !blocksWithTheSameType.length) {
return;
}
@@ -17153,11 +17414,11 @@ var wp;
return { type: "SELECTION_CHANGE", ...clientId };
}
var insertDefaultBlock = (attributes, rootClientId, index2) => ({ dispatch }) => {
- const defaultBlockName = (0, import_blocks8.getDefaultBlockName)();
+ const defaultBlockName = (0, import_blocks10.getDefaultBlockName)();
if (!defaultBlockName) {
return;
}
- const block = (0, import_blocks8.createBlock)(defaultBlockName, attributes);
+ const block = (0, import_blocks10.createBlock)(defaultBlockName, attributes);
return dispatch.insertBlock(block, index2, rootClientId);
};
function updateBlockListSettings(clientId, settings2) {
@@ -17228,7 +17489,7 @@ var wp;
}
const blockNames = blocks2.map((block) => block.name);
if (blockNames.some(
- (blockName) => !(0, import_blocks8.hasBlockSupport)(blockName, "multiple", true)
+ (blockName) => !(0, import_blocks10.hasBlockSupport)(blockName, "multiple", true)
)) {
return;
}
@@ -17238,7 +17499,7 @@ var wp;
clientIdsArray[clientIdsArray.length - 1]
);
const clonedBlocks = blocks2.map(
- (block) => (0, import_blocks8.cloneSanitizedBlock)(block)
+ (block) => (0, import_blocks10.cloneSanitizedBlock)(block)
);
dispatch.insertBlocks(
clonedBlocks,
@@ -17264,18 +17525,12 @@ var wp;
if (!directInsertBlock) {
return dispatch.insertDefaultBlock({}, rootClientId, blockIndex);
}
- const copiedAttributes = {};
- if (directInsertBlock.attributesToCopy) {
- const attributes = select3.getBlockAttributes(clientId);
- directInsertBlock.attributesToCopy.forEach((key) => {
- if (attributes[key]) {
- copiedAttributes[key] = attributes[key];
- }
- });
- }
- const block = (0, import_blocks8.createBlock)(directInsertBlock.name, {
+ const block = (0, import_blocks10.createBlock)(directInsertBlock.name, {
...directInsertBlock.attributes,
- ...copiedAttributes
+ ...select3.getBlockName(clientId) === directInsertBlock.name ? getSiblingBlockAttributes(
+ directInsertBlock.name,
+ select3.getBlockAttributes(clientId)
+ ) : {}
});
return dispatch.insertBlock(block, blockIndex, rootClientId);
};
@@ -17293,18 +17548,12 @@ var wp;
blockIndex + 1
);
}
- const copiedAttributes = {};
- if (directInsertBlock.attributesToCopy) {
- const attributes = select3.getBlockAttributes(clientId);
- directInsertBlock.attributesToCopy.forEach((key) => {
- if (attributes[key]) {
- copiedAttributes[key] = attributes[key];
- }
- });
- }
- const block = (0, import_blocks8.createBlock)(directInsertBlock.name, {
+ const block = (0, import_blocks10.createBlock)(directInsertBlock.name, {
...directInsertBlock.attributes,
- ...copiedAttributes
+ ...select3.getBlockName(clientId) === directInsertBlock.name ? getSiblingBlockAttributes(
+ directInsertBlock.name,
+ select3.getBlockAttributes(clientId)
+ ) : {}
});
return dispatch.insertBlock(block, blockIndex + 1, rootClientId);
};
@@ -17450,14 +17699,14 @@ var wp;
unlock(store).registerPrivateSelectors(private_selectors_exports);
// packages/block-editor/build-module/components/warning/index.mjs
- var import_components3 = __toESM(require_components(), 1);
+ var import_components2 = __toESM(require_components(), 1);
var import_i18n6 = __toESM(require_i18n(), 1);
- var import_jsx_runtime119 = __toESM(require_jsx_runtime(), 1);
- function Warning({ className, actions, children, secondaryActions }) {
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { style: { display: "contents", all: "initial" }, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: clsx_default(className, "block-editor-warning"), children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "block-editor-warning__contents", children: [
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "block-editor-warning__message", children }),
- (actions?.length > 0 || secondaryActions) && /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "block-editor-warning__actions", children: [
- actions?.length > 0 && actions.map((action, i2) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
+ var import_jsx_runtime120 = __toESM(require_jsx_runtime(), 1);
+ function Warning({ className: className2, actions, children, secondaryActions }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { style: { display: "contents", all: "initial" }, children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: clsx_default(className2, "block-editor-warning"), children: /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "block-editor-warning__contents", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("p", { className: "block-editor-warning__message", children }),
+ (actions?.length > 0 || secondaryActions) && /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "block-editor-warning__actions", children: [
+ actions?.length > 0 && actions.map((action, i2) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
"span",
{
className: "block-editor-warning__action",
@@ -17465,8 +17714,8 @@ var wp;
},
i2
)),
- secondaryActions && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
- import_components3.DropdownMenu,
+ secondaryActions && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
+ import_components2.DropdownMenu,
{
className: "block-editor-warning__secondary",
icon: more_vertical_default,
@@ -17476,9 +17725,9 @@ var wp;
className: "block-editor-warning__dropdown"
},
noIcons: true,
- children: () => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_components3.MenuGroup, { children: secondaryActions.map(
- (item, pos) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
- import_components3.MenuItem,
+ children: () => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_components2.MenuGroup, { children: secondaryActions.map(
+ (item, pos) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
+ import_components2.MenuItem,
{
onClick: item.onClick,
children: item.title
@@ -17494,20 +17743,20 @@ var wp;
var warning_default = Warning;
// packages/block-editor/build-module/components/block-edit/multiple-usage-warning.mjs
- var import_jsx_runtime120 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime121 = __toESM(require_jsx_runtime(), 1);
function MultipleUsageWarning({
originalBlockClientId,
name,
onReplace
}) {
const { selectBlock: selectBlock2 } = (0, import_data7.useDispatch)(store);
- const blockType = (0, import_blocks9.getBlockType)(name);
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
+ const blockType = (0, import_blocks11.getBlockType)(name);
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
warning_default,
{
actions: [
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
- import_components4.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
+ import_components3.Button,
{
__next40pxDefaultSize: true,
variant: "secondary",
@@ -17516,8 +17765,8 @@ var wp;
},
"find-original"
),
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
- import_components4.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
+ import_components3.Button,
{
__next40pxDefaultSize: true,
variant: "secondary",
@@ -17528,7 +17777,7 @@ var wp;
)
],
children: [
- /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("strong", { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("strong", { children: [
blockType?.title,
": "
] }),
@@ -17539,7 +17788,7 @@ var wp;
}
// packages/block-editor/build-module/components/block-edit/index.mjs
- var import_jsx_runtime121 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime122 = __toESM(require_jsx_runtime(), 1);
function BlockEdit({
mayDisplayControls,
mayDisplayParentControls,
@@ -17559,11 +17808,11 @@ var wp;
} = props;
const { layout = null, metadata = {} } = attributes;
const { bindings } = metadata;
- const layoutSupport = (0, import_blocks10.hasBlockSupport)(name, "layout", false) || (0, import_blocks10.hasBlockSupport)(name, "__experimentalLayout", false);
+ const layoutSupport = (0, import_blocks12.hasBlockSupport)(name, "layout", false) || (0, import_blocks12.hasBlockSupport)(name, "__experimentalLayout", false);
const parentBlockEditContext = useBlockEditContext();
- const isInListViewBlockSupportTree = !!parentBlockEditContext[isInListViewBlockSupportTreeKey] || (0, import_blocks10.hasBlockSupport)(name, "listView") || name === "core/navigation";
+ const isInListViewBlockSupportTree = !!parentBlockEditContext[isInListViewBlockSupportTreeKey] || (0, import_blocks12.hasBlockSupport)(name, "listView") || name === "core/navigation";
const { originalBlockClientId } = (0, import_element6.useContext)(PrivateBlockContext);
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
Provider,
{
value: (0, import_element6.useMemo)(
@@ -17600,8 +17849,8 @@ var wp;
]
),
children: [
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(edit_default, { ...props }),
- originalBlockClientId && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(edit_default, { ...props }),
+ originalBlockClientId && /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
MultipleUsageWarning,
{
originalBlockClientId,
@@ -17636,12 +17885,11 @@ var wp;
}
// packages/block-editor/build-module/components/colors/with-colors.mjs
- var import_jsx_runtime122 = __toESM(require_jsx_runtime(), 1);
- var { kebabCase: kebabCase3 } = unlock(import_components5.privateApis);
+ var import_jsx_runtime123 = __toESM(require_jsx_runtime(), 1);
var upperFirst = ([firstLetter, ...rest]) => firstLetter.toUpperCase() + rest.join("");
var withCustomColorPalette = (colorsArray) => (0, import_compose2.createHigherOrderComponent)(
(WrappedComponent) => function WithCustomColorPalette(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(WrappedComponent, { ...props, colors: colorsArray });
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(WrappedComponent, { ...props, colors: colorsArray });
},
"withCustomColorPalette"
);
@@ -17660,7 +17908,7 @@ var wp;
],
[userPalette, themePalette, defaultPalette]
);
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(WrappedComponent, { ...props, colors: allColors });
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(WrappedComponent, { ...props, colors: allColors });
},
"withEditorColorPalette"
);
@@ -17668,7 +17916,7 @@ var wp;
const colorMap = colorTypes.reduce((colorObject, colorType) => {
return {
...colorObject,
- ...typeof colorType === "string" ? { [colorType]: kebabCase3(colorType) } : colorType
+ ...typeof colorType === "string" ? { [colorType]: kebabCase(colorType) } : colorType
};
}, {});
return (0, import_compose2.compose)([
@@ -17742,7 +17990,7 @@ var wp;
);
}
render() {
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
WrappedComponent,
{
...{
@@ -17865,8 +18113,6 @@ var wp;
}
// packages/block-editor/build-module/components/font-sizes/utils.mjs
- var import_components6 = __toESM(require_components(), 1);
- var { kebabCase: kebabCase4 } = unlock(import_components6.privateApis);
var getFontSize = (fontSizes, fontSizeAttribute, customFontSizeAttribute) => {
if (fontSizeAttribute) {
const fontSizeObject = fontSizes?.find(
@@ -17893,7 +18139,7 @@ var wp;
if (!fontSizeSlug) {
return;
}
- return `has-${kebabCase4(fontSizeSlug)}-font-size`;
+ return `has-${kebabCase(fontSizeSlug)}-font-size`;
}
// packages/block-editor/build-module/components/font-sizes/fluid-utils.mjs
@@ -18037,15 +18283,15 @@ var wp;
}
// packages/block-editor/build-module/components/font-sizes/font-size-picker.mjs
- var import_components7 = __toESM(require_components(), 1);
- var import_jsx_runtime123 = __toESM(require_jsx_runtime(), 1);
+ var import_components4 = __toESM(require_components(), 1);
+ var import_jsx_runtime124 = __toESM(require_jsx_runtime(), 1);
function FontSizePicker(props) {
const [fontSizes, customFontSize] = useSettings(
"typography.fontSizes",
"typography.customFontSize"
);
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
- import_components7.FontSizePicker,
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
+ import_components4.FontSizePicker,
{
...props,
fontSizes,
@@ -18058,7 +18304,7 @@ var wp;
// packages/block-editor/build-module/components/font-sizes/with-font-sizes.mjs
var import_compose3 = __toESM(require_compose(), 1);
var import_element9 = __toESM(require_element(), 1);
- var import_jsx_runtime124 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime125 = __toESM(require_jsx_runtime(), 1);
var DEFAULT_FONT_SIZES = [];
var upperFirst2 = ([firstLetter, ...rest]) => firstLetter.toUpperCase() + rest.join("");
var with_font_sizes_default = (...fontSizeNames) => {
@@ -18076,7 +18322,7 @@ var wp;
const [fontSizes] = useSettings(
"typography.fontSizes"
);
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
WrappedComponent,
{
...props,
@@ -18166,7 +18412,7 @@ var wp;
};
}
render() {
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
WrappedComponent,
{
...{
@@ -18187,8 +18433,8 @@ var wp;
// packages/block-editor/build-module/components/alignment-control/ui.mjs
var import_i18n8 = __toESM(require_i18n(), 1);
- var import_components8 = __toESM(require_components(), 1);
- var import_jsx_runtime125 = __toESM(require_jsx_runtime(), 1);
+ var import_components5 = __toESM(require_components(), 1);
+ var import_jsx_runtime126 = __toESM(require_jsx_runtime(), 1);
var DEFAULT_ALIGNMENT_CONTROLS = [
{
icon: align_left_default,
@@ -18230,12 +18476,12 @@ var wp;
}
return (0, import_i18n8.isRTL)() ? align_right_default : align_left_default;
}
- const UIComponent = isToolbar ? import_components8.ToolbarGroup : import_components8.ToolbarDropdownMenu;
+ const UIComponent = isToolbar ? import_components5.ToolbarGroup : import_components5.ToolbarDropdownMenu;
const extraProps = isToolbar ? { isCollapsed: isCollapsed3 } : {
toggleProps: description ? { description } : {},
popoverProps: POPOVER_PROPS
};
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
UIComponent,
{
icon: setIcon(),
@@ -18257,88 +18503,27 @@ var wp;
var ui_default = AlignmentUI;
// packages/block-editor/build-module/components/alignment-control/index.mjs
- var import_jsx_runtime126 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime127 = __toESM(require_jsx_runtime(), 1);
var AlignmentControl = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(ui_default, { ...props, isToolbar: false });
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(ui_default, { ...props, isToolbar: false });
};
var AlignmentToolbar = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(ui_default, { ...props, isToolbar: true });
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(ui_default, { ...props, isToolbar: true });
};
// packages/block-editor/build-module/components/autocomplete/index.mjs
var import_hooks3 = __toESM(require_hooks(), 1);
- var import_components10 = __toESM(require_components(), 1);
+ var import_components7 = __toESM(require_components(), 1);
var import_element13 = __toESM(require_element(), 1);
- var import_blocks13 = __toESM(require_blocks(), 1);
+ var import_blocks15 = __toESM(require_blocks(), 1);
// packages/block-editor/build-module/autocompleters/block.mjs
var import_data11 = __toESM(require_data(), 1);
- var import_blocks12 = __toESM(require_blocks(), 1);
+ var import_blocks14 = __toESM(require_blocks(), 1);
var import_element12 = __toESM(require_element(), 1);
// packages/block-editor/build-module/components/inserter/search-items.mjs
var import_remove_accents = __toESM(require_remove_accents(), 1);
-
- // node_modules/tslib/tslib.es6.mjs
- var extendStatics = function(d2, b2) {
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
- d3.__proto__ = b3;
- } || function(d3, b3) {
- for (var p2 in b3) if (Object.prototype.hasOwnProperty.call(b3, p2)) d3[p2] = b3[p2];
- };
- return extendStatics(d2, b2);
- };
- function __extends(d2, b2) {
- if (typeof b2 !== "function" && b2 !== null)
- throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
- extendStatics(d2, b2);
- function __233() {
- this.constructor = d2;
- }
- d2.prototype = b2 === null ? Object.create(b2) : (__233.prototype = b2.prototype, new __233());
- }
- var __assign = function() {
- __assign = Object.assign || function __assign2(t3) {
- for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
- s2 = arguments[i2];
- for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2)) t3[p2] = s2[p2];
- }
- return t3;
- };
- return __assign.apply(this, arguments);
- };
-
- // node_modules/lower-case/dist.es2015/index.js
- function lowerCase(str) {
- return str.toLowerCase();
- }
-
- // node_modules/no-case/dist.es2015/index.js
- var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
- var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
- function noCase(input, options) {
- if (options === void 0) {
- options = {};
- }
- var _a = options.splitRegexp, splitRegexp2 = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp2 = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
- var result = replace(replace(input, splitRegexp2, "$1\0$2"), stripRegexp2, "\0");
- var start2 = 0;
- var end = result.length;
- while (result.charAt(start2) === "\0")
- start2++;
- while (result.charAt(end - 1) === "\0")
- end--;
- return result.slice(start2, end).split("\0").map(transform).join(delimiter);
- }
- function replace(input, re, value) {
- if (re instanceof RegExp)
- return input.replace(re, value);
- return re.reduce(function(input2, re2) {
- return input2.replace(re2, value);
- }, input);
- }
-
- // packages/block-editor/build-module/components/inserter/search-items.mjs
var defaultGetName = (item) => item.name || "";
var defaultGetTitle = (item) => item.title;
var defaultGetDescription = (item) => item.description || "";
@@ -18455,7 +18640,7 @@ var wp;
}
// packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.mjs
- var import_blocks11 = __toESM(require_blocks(), 1);
+ var import_blocks13 = __toESM(require_blocks(), 1);
var import_data10 = __toESM(require_data(), 1);
var import_element10 = __toESM(require_element(), 1);
var import_notices2 = __toESM(require_notices(), 1);
@@ -18479,7 +18664,7 @@ var wp;
);
const { createErrorNotice } = (0, import_data10.useDispatch)(import_notices2.store);
const [categories, collections] = (0, import_data10.useSelect)((select3) => {
- const { getCategories, getCollections } = select3(import_blocks11.store);
+ const { getCategories, getCollections } = select3(import_blocks13.store);
return [getCategories(), getCollections()];
}, []);
const onSelectItem = (0, import_element10.useCallback)(
@@ -18496,7 +18681,7 @@ var wp;
rootClientId
);
if (destinationClientId === null) {
- const title = (0, import_blocks11.getBlockType)(name)?.title ?? name;
+ const title = (0, import_blocks13.getBlockType)(name)?.title ?? name;
createErrorNotice(
(0, import_i18n9.sprintf)(
/* translators: %s: block pattern title. */
@@ -18510,12 +18695,12 @@ var wp;
);
return;
}
- const insertedBlock = syncStatus === "unsynced" ? (0, import_blocks11.parse)(content, {
+ const insertedBlock = syncStatus === "unsynced" ? (0, import_blocks13.parse)(content, {
__unstableSkipMigrationLogs: true
- }) : (0, import_blocks11.createBlock)(
+ }) : (0, import_blocks13.createBlock)(
name,
initialAttributes,
- (0, import_blocks11.createBlocksFromInnerBlocksTemplate)(innerBlocks),
+ (0, import_blocks13.createBlocksFromInnerBlocksTemplate)(innerBlocks),
innerContent
);
onInsert(
@@ -18537,17 +18722,17 @@ var wp;
var use_block_types_state_default = useBlockTypesState;
// packages/block-editor/build-module/components/block-icon/index.mjs
- var import_components9 = __toESM(require_components(), 1);
+ var import_components6 = __toESM(require_components(), 1);
var import_element11 = __toESM(require_element(), 1);
- var import_jsx_runtime127 = __toESM(require_jsx_runtime(), 1);
- function BlockIcon({ icon, showColors = false, className, context }) {
+ var import_jsx_runtime128 = __toESM(require_jsx_runtime(), 1);
+ function BlockIcon({ icon, showColors = false, className: className2, context }) {
if (icon?.src === "block-default") {
icon = {
src: block_default_default
};
}
- const renderedIcon = /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
- import_components9.Icon,
+ const renderedIcon = /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
+ import_components6.Icon,
{
icon: icon && icon.src ? icon.src : icon,
context
@@ -18557,11 +18742,11 @@ var wp;
backgroundColor: icon && icon.background,
color: icon && icon.foreground
} : {};
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
"span",
{
style,
- className: clsx_default("block-editor-block-icon", className, {
+ className: clsx_default("block-editor-block-icon", className2, {
"has-colors": showColors
}),
children: renderedIcon
@@ -18590,7 +18775,7 @@ var wp;
};
// packages/block-editor/build-module/autocompleters/block.mjs
- var import_jsx_runtime128 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime129 = __toESM(require_jsx_runtime(), 1);
var noop = () => {
};
var SHOWN_BLOCK_TYPES = 9;
@@ -18607,7 +18792,7 @@ var wp;
getBlockListSettings: getBlockListSettings2,
getBlockRootClientId: getBlockRootClientId2
} = select3(store);
- const { getActiveBlockVariation } = select3(import_blocks12.store);
+ const { getActiveBlockVariation } = select3(import_blocks14.store);
const selectedBlockClientId = getSelectedBlockClientId2();
const { name: blockName, attributes } = getBlock2(
selectedBlockClientId
@@ -18655,8 +18840,8 @@ var wp;
return {
key: `block-${blockItem.id}`,
value: blockItem,
- label: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
+ label: /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(import_jsx_runtime129.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
block_icon_default,
{
icon,
@@ -18688,11 +18873,11 @@ var wp;
return {
action: "replace",
value: syncStatus === "unsynced" ? (blocks2 ?? []).map(
- (block) => (0, import_blocks12.cloneBlock)(block)
- ) : (0, import_blocks12.createBlock)(
+ (block) => (0, import_blocks14.cloneBlock)(block)
+ ) : (0, import_blocks14.createBlock)(
name,
initialAttributes,
- (0, import_blocks12.createBlocksFromInnerBlocksTemplate)(
+ (0, import_blocks14.createBlocksFromInnerBlocksTemplate)(
innerBlocks
),
innerContent
@@ -18704,13 +18889,13 @@ var wp;
var block_default = createBlockCompleter();
// packages/block-editor/build-module/components/autocomplete/index.mjs
- var import_jsx_runtime129 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime130 = __toESM(require_jsx_runtime(), 1);
var EMPTY_ARRAY3 = [];
function useCompleters({ completers = EMPTY_ARRAY3 }) {
const { name } = useBlockEditContext();
return (0, import_element13.useMemo)(() => {
let filteredCompleters = [...completers];
- if (name === (0, import_blocks13.getDefaultBlockName)() || (0, import_blocks13.getBlockSupport)(name, "__experimentalSlashInserter", false)) {
+ if (name === (0, import_blocks15.getDefaultBlockName)() || (0, import_blocks15.getBlockSupport)(name, "__experimentalSlashInserter", false)) {
filteredCompleters = [...filteredCompleters, block_default];
}
if ((0, import_hooks3.hasFilter)("editor.Autocomplete.completers")) {
@@ -18729,19 +18914,19 @@ var wp;
}, [completers, name]);
}
function useBlockEditorAutocompleteProps(props) {
- return (0, import_components10.__unstableUseAutocompleteProps)({
+ return (0, import_components7.__unstableUseAutocompleteProps)({
...props,
completers: useCompleters(props)
});
}
function BlockEditorAutocomplete(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_components10.Autocomplete, { ...props, completers: useCompleters(props) });
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_components7.Autocomplete, { ...props, completers: useCompleters(props) });
}
var autocomplete_default = BlockEditorAutocomplete;
// packages/block-editor/build-module/components/block-alignment-control/ui.mjs
var import_i18n17 = __toESM(require_i18n(), 1);
- var import_components16 = __toESM(require_components(), 1);
+ var import_components13 = __toESM(require_components(), 1);
// packages/block-editor/build-module/components/block-alignment-control/use-available-alignments.mjs
var import_data12 = __toESM(require_data(), 1);
@@ -18751,7 +18936,7 @@ var wp;
// packages/block-editor/build-module/layouts/flex.mjs
var import_i18n12 = __toESM(require_i18n(), 1);
- var import_components11 = __toESM(require_components(), 1);
+ var import_components8 = __toESM(require_components(), 1);
// packages/block-editor/build-module/layouts/utils.mjs
var import_i18n10 = __toESM(require_i18n(), 1);
@@ -19156,7 +19341,7 @@ var wp;
}
// packages/block-editor/build-module/layouts/flex.mjs
- var import_jsx_runtime130 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime131 = __toESM(require_jsx_runtime(), 1);
var justifyContentMap = {
left: "flex-start",
right: "flex-end",
@@ -19261,24 +19446,24 @@ var wp;
flexWrap: resetLayout?.flexWrap
})
);
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(import_jsx_runtime130.Fragment, { children: [
- (allowJustification || allowOrientation) && /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
- import_components11.Flex,
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_jsx_runtime131.Fragment, { children: [
+ (allowJustification || allowOrientation) && /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
+ import_components8.Flex,
{
align: "flex-start",
className: "block-editor-hooks__flex-layout-controls",
gap: 4,
justify: "flex-start",
children: [
- allowJustification && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.__experimentalToolsPanelItem,
+ allowJustification && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.__experimentalToolsPanelItem,
{
label: (0, import_i18n12.__)("Justification"),
hasValue: hasJustificationValue,
onDeselect: resetJustification,
isShownByDefault: true,
panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
FlexLayoutJustifyContentControl,
{
layout,
@@ -19287,15 +19472,15 @@ var wp;
)
}
),
- allowOrientation && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.__experimentalToolsPanelItem,
+ allowOrientation && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.__experimentalToolsPanelItem,
{
label: (0, import_i18n12.__)("Orientation"),
hasValue: hasOrientationValue,
onDeselect: resetOrientation,
isShownByDefault: true,
panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
OrientationControl,
{
layout,
@@ -19307,14 +19492,14 @@ var wp;
]
}
),
- allowVerticalAlignment && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.__experimentalToolsPanelItem,
+ allowVerticalAlignment && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.__experimentalToolsPanelItem,
{
label: (0, import_i18n12.__)("Alignment"),
hasValue: hasVerticalAlignmentValue,
onDeselect: resetVerticalAlignment,
panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
FlexLayoutVerticalAlignmentControl,
{
layout,
@@ -19323,14 +19508,14 @@ var wp;
)
}
),
- allowWrap && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.__experimentalToolsPanelItem,
+ allowWrap && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.__experimentalToolsPanelItem,
{
label: (0, import_i18n12.__)("Wrapping"),
hasValue: hasWrapValue,
onDeselect: resetWrap,
panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
FlexWrapControl,
{
layout,
@@ -19351,13 +19536,13 @@ var wp;
if (!allowJustification && !allowVerticalAlignment) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
block_controls_default,
{
group: controlsGroup,
__experimentalShareWithChildBlocks: true,
children: [
- allowJustification && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
+ allowJustification && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
FlexLayoutJustifyContentControl,
{
layout,
@@ -19365,7 +19550,7 @@ var wp;
isToolbar: true
}
),
- allowVerticalAlignment && /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
+ allowVerticalAlignment && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
FlexLayoutVerticalAlignmentControl,
{
layout,
@@ -19479,7 +19664,7 @@ var wp;
};
const controls = getVerticalAlignmentControls(orientation);
if (isToolbar) {
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
BlockVerticalAlignmentControl,
{
onChange: onVerticalAlignmentChange,
@@ -19488,8 +19673,8 @@ var wp;
}
);
}
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.__experimentalToggleGroupControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.__experimentalToggleGroupControl,
{
label: (0, import_i18n12.__)("Alignment"),
onChange: onVerticalAlignmentChange,
@@ -19497,8 +19682,8 @@ var wp;
className: "block-editor-hooks__flex-layout-alignment-controls",
children: controls.map((control) => {
const { icon, label } = verticalAlignmentOptions[control];
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.__experimentalToggleGroupControlOptionIcon,
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.__experimentalToggleGroupControlOptionIcon,
{
value: control,
icon,
@@ -19532,7 +19717,7 @@ var wp;
allowedControls.push("stretch");
}
if (isToolbar) {
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
JustifyContentControl,
{
allowedControls,
@@ -19572,16 +19757,16 @@ var wp;
label: (0, import_i18n12.__)("Stretch items")
});
}
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.__experimentalToggleGroupControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.__experimentalToggleGroupControl,
{
label: (0, import_i18n12.__)("Justification"),
value: justifyContent,
onChange: onJustificationChange,
className: "block-editor-hooks__flex-layout-justification-controls",
children: justificationOptions.map(({ value, icon, label }) => {
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.__experimentalToggleGroupControlOptionIcon,
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.__experimentalToggleGroupControlOptionIcon,
{
value,
icon,
@@ -19595,8 +19780,8 @@ var wp;
}
function FlexWrapControl({ layout, onChange }) {
const { flexWrap = "wrap" } = layout;
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.ToggleControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.ToggleControl,
{
label: (0, import_i18n12.__)("Allow to wrap to multiple lines"),
onChange: (value) => {
@@ -19615,8 +19800,8 @@ var wp;
verticalAlignment,
justifyContent
} = layout;
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
- import_components11.__experimentalToggleGroupControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
+ import_components8.__experimentalToggleGroupControl,
{
className: "block-editor-hooks__flex-layout-orientation-controls",
label: (0, import_i18n12.__)("Orientation"),
@@ -19647,16 +19832,16 @@ var wp;
});
},
children: [
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.__experimentalToggleGroupControlOptionIcon,
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.__experimentalToggleGroupControlOptionIcon,
{
icon: arrow_right_default,
value: "horizontal",
label: (0, import_i18n12.__)("Horizontal")
}
),
- /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
- import_components11.__experimentalToggleGroupControlOptionIcon,
+ /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ import_components8.__experimentalToggleGroupControlOptionIcon,
{
icon: arrow_down_default,
value: "vertical",
@@ -19743,10 +19928,10 @@ var wp;
};
// packages/block-editor/build-module/layouts/constrained.mjs
- var import_components13 = __toESM(require_components(), 1);
+ var import_components10 = __toESM(require_components(), 1);
var import_i18n14 = __toESM(require_i18n(), 1);
var import_style_engine3 = __toESM(require_style_engine(), 1);
- var import_jsx_runtime131 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime132 = __toESM(require_jsx_runtime(), 1);
var GLOBAL_CONTENT_SIZE = "var(--wp--style--global--content-size, none)";
var GLOBAL_WIDE_SIZE = "var(--wp--style--global--wide-size, none)";
var constrained_default = {
@@ -19788,7 +19973,7 @@ var wp;
}
];
const [availableUnits] = useSettings("spacing.units");
- const units2 = (0, import_components13.__experimentalUseCustomUnits)({
+ const units2 = (0, import_components10.__experimentalUseCustomUnits)({
availableUnits: availableUnits || ["%", "px", "em", "rem", "vw"]
});
const hasLayoutValue = (key, defaultValue) => (layout?.[key] ?? defaultValue) !== (resetLayout?.[key] ?? defaultValue);
@@ -19813,17 +19998,17 @@ var wp;
const hasContentSizeValue = () => hasLayoutValue("contentSize");
const hasWideSizeValue = () => hasLayoutValue("wideSize");
const hasJustificationValue = () => hasLayoutValue("justifyContent", "center");
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_jsx_runtime131.Fragment, { children: [
- allowCustomContentAndWideSize && /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_jsx_runtime131.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
- import_components13.__experimentalToolsPanelItem,
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_jsx_runtime132.Fragment, { children: [
+ allowCustomContentAndWideSize && /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_jsx_runtime132.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
+ import_components10.__experimentalToolsPanelItem,
{
label: (0, import_i18n14.__)("Content width"),
hasValue: hasContentSizeValue,
onDeselect: resetContentSize,
panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
- import_components13.__experimentalUnitControl,
+ children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
+ import_components10.__experimentalUnitControl,
{
label: (0, import_i18n14.__)("Content width"),
labelPosition: "top",
@@ -19836,21 +20021,21 @@ var wp;
});
},
units: units2,
- prefix: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_components13.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(icon_default, { icon: align_none_default }) })
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_components10.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(icon_default, { icon: align_none_default }) })
}
)
}
),
- /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(
- import_components13.__experimentalToolsPanelItem,
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
+ import_components10.__experimentalToolsPanelItem,
{
label: (0, import_i18n14.__)("Wide width"),
hasValue: hasWideSizeValue,
onDeselect: resetWideSize,
panelId: clientId,
children: [
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
- import_components13.__experimentalUnitControl,
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
+ import_components10.__experimentalUnitControl,
{
label: (0, import_i18n14.__)("Wide width"),
labelPosition: "top",
@@ -19863,33 +20048,33 @@ var wp;
});
},
units: units2,
- prefix: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_components13.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(icon_default, { icon: stretch_wide_default }) })
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_components10.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(icon_default, { icon: stretch_wide_default }) })
}
),
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("p", { className: "block-editor-hooks__layout-constrained-helptext", children: (0, import_i18n14.__)(
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("p", { className: "block-editor-hooks__layout-constrained-helptext", children: (0, import_i18n14.__)(
"Customize the width for all elements that are assigned to the center or wide columns."
) })
]
}
)
] }),
- allowJustification && /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
- import_components13.__experimentalToolsPanelItem,
+ allowJustification && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
+ import_components10.__experimentalToolsPanelItem,
{
label: (0, import_i18n14.__)("Justification"),
hasValue: hasJustificationValue,
onDeselect: resetJustification,
panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
- import_components13.__experimentalToggleGroupControl,
+ children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
+ import_components10.__experimentalToggleGroupControl,
{
label: (0, import_i18n14.__)("Justification"),
value: justifyContent,
onChange: onJustificationChange,
children: justificationOptions.map(
({ value, icon, label }) => {
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
- import_components13.__experimentalToggleGroupControlOptionIcon,
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
+ import_components10.__experimentalToggleGroupControlOptionIcon,
{
value,
icon,
@@ -19915,12 +20100,12 @@ var wp;
if (!allowJustification) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
block_controls_default,
{
group: controlsGroup,
__experimentalShareWithChildBlocks: true,
- children: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
DefaultLayoutJustifyContentControl,
{
layout,
@@ -20079,7 +20264,7 @@ var wp;
});
};
const allowedControls = ["left", "center", "right"];
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
JustifyContentControl,
{
allowedControls,
@@ -20092,9 +20277,9 @@ var wp;
// packages/block-editor/build-module/layouts/grid.mjs
var import_i18n15 = __toESM(require_i18n(), 1);
- var import_components15 = __toESM(require_components(), 1);
+ var import_components12 = __toESM(require_components(), 1);
var import_element14 = __toESM(require_element(), 1);
- var import_jsx_runtime132 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime133 = __toESM(require_jsx_runtime(), 1);
var RANGE_CONTROL_MAX_VALUES = {
px: 600,
"%": 100,
@@ -20177,16 +20362,16 @@ var wp;
autoFit: resetLayout?.autoFit
})
);
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_jsx_runtime132.Fragment, { children: [
- window.__experimentalEnableGridInteractivity && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.__experimentalToolsPanelItem,
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(import_jsx_runtime133.Fragment, { children: [
+ window.__experimentalEnableGridInteractivity && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.__experimentalToolsPanelItem,
{
label: (0, import_i18n15.__)("Grid item position"),
hasValue: hasGridTypeValue,
onDeselect: resetGridType,
isShownByDefault: true,
panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
GridLayoutTypeControl,
{
layout,
@@ -20195,15 +20380,15 @@ var wp;
)
}
),
- showColumnsControl && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.__experimentalToolsPanelItem,
+ showColumnsControl && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.__experimentalToolsPanelItem,
{
label: (0, import_i18n15.__)("Columns and rows"),
hasValue: hasColumnsAndRowsValue,
onDeselect: resetColumnsAndRows,
isShownByDefault: true,
panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
GridLayoutColumnsAndRowsControl,
{
layout,
@@ -20213,15 +20398,15 @@ var wp;
)
}
),
- showMinWidthControl && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.__experimentalToolsPanelItem,
+ showMinWidthControl && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.__experimentalToolsPanelItem,
{
label: (0, import_i18n15.__)("Min. column width"),
hasValue: hasMinimumColumnWidthValue,
onDeselect: resetMinimumColumnWidth,
isShownByDefault: true,
panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
GridLayoutMinimumWidthControl,
{
layout,
@@ -20230,14 +20415,14 @@ var wp;
)
}
),
- showFillControl && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.__experimentalToolsPanelItem,
+ showFillControl && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.__experimentalToolsPanelItem,
{
label: (0, import_i18n15.__)("Fill available space"),
hasValue: hasFillValue,
onDeselect: resetFill,
panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
GridLayoutFillControl,
{
layout,
@@ -20352,7 +20537,7 @@ var wp;
const { minimumColumnWidth, columnCount, isManualPlacement } = layout;
const defaultValue = isManualPlacement || columnCount ? null : "12rem";
const value = minimumColumnWidth || defaultValue;
- const [quantity, unit = "rem"] = (0, import_components15.__experimentalParseQuantityAndUnitFromRawValue)(value);
+ const [quantity, unit = "rem"] = (0, import_components12.__experimentalParseQuantityAndUnitFromRawValue)(value);
const handleSliderChange = (next) => {
onChange({
...layout,
@@ -20371,11 +20556,11 @@ var wp;
minimumColumnWidth: newValue
});
};
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("fieldset", { className: "block-editor-hooks__grid-layout-minimum-width-control", children: [
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_components15.BaseControl.VisualLabel, { as: "legend", children: (0, import_i18n15.__)("Min. column width") }),
- /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_components15.Flex, { gap: 4, children: [
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_components15.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.__experimentalUnitControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("fieldset", { className: "block-editor-hooks__grid-layout-minimum-width-control", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_components12.BaseControl.VisualLabel, { as: "legend", children: (0, import_i18n15.__)("Min. column width") }),
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(import_components12.Flex, { gap: 4, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_components12.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.__experimentalUnitControl,
{
onChange: (newValue) => {
onChange({
@@ -20391,8 +20576,8 @@ var wp;
hideLabelFromVision: true
}
) }),
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_components15.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.RangeControl,
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_components12.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.RangeControl,
{
onChange: handleSliderChange,
value: quantity || 0,
@@ -20404,7 +20589,7 @@ var wp;
}
) })
] }),
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("p", { className: "components-base-control__help", children: (0, import_i18n15.__)(
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("p", { className: "components-base-control__help", children: (0, import_i18n15.__)(
"Columns will wrap to fewer per row when they can no longer maintain the minimum width."
) })
] });
@@ -20420,11 +20605,11 @@ var wp;
rowCount,
isManualPlacement
} = layout;
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_jsx_runtime132.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("fieldset", { className: "block-editor-hooks__grid-layout-columns-and-rows-controls", children: [
- !isManualPlacement && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_components15.BaseControl.VisualLabel, { as: "legend", children: (0, import_i18n15.__)("Max. columns") }),
- /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_components15.Flex, { gap: 4, children: [
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_components15.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.__experimentalNumberControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_jsx_runtime133.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("fieldset", { className: "block-editor-hooks__grid-layout-columns-and-rows-controls", children: [
+ !isManualPlacement && /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_components12.BaseControl.VisualLabel, { as: "legend", children: (0, import_i18n15.__)("Max. columns") }),
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(import_components12.Flex, { gap: 4, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_components12.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.__experimentalNumberControl,
{
onChange: (value) => {
const defaultNewColumnCount = isManualPlacement ? 1 : void 0;
@@ -20440,8 +20625,8 @@ var wp;
hideLabelFromVision: !isManualPlacement
}
) }),
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_components15.FlexItem, { isBlock: true, children: allowSizingOnChildren && isManualPlacement ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.__experimentalNumberControl,
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_components12.FlexItem, { isBlock: true, children: allowSizingOnChildren && isManualPlacement ? /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.__experimentalNumberControl,
{
onChange: (value) => {
const newRowCount = value === "" || value === "0" ? 1 : parseInt(value, 10);
@@ -20454,8 +20639,8 @@ var wp;
min: 1,
label: (0, import_i18n15.__)("Rows")
}
- ) : /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.RangeControl,
+ ) : /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.RangeControl,
{
value: columnCount ?? 1,
onChange: (value) => onChange({
@@ -20474,8 +20659,8 @@ var wp;
}
function GridLayoutFillControl({ layout, onChange }) {
const { autoFit = false } = layout;
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.ToggleControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.ToggleControl,
{
label: (0, import_i18n15.__)("Fill available space"),
help: (0, import_i18n15.__)(
@@ -20519,8 +20704,8 @@ var wp;
) : (0, import_i18n15.__)(
"Grid items are placed automatically depending on their order."
);
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
- import_components15.__experimentalToggleGroupControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
+ import_components12.__experimentalToggleGroupControl,
{
label: (0, import_i18n15.__)("Grid item position"),
value: gridPlacement,
@@ -20528,16 +20713,16 @@ var wp;
isBlock: true,
help: helpText2,
children: [
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.__experimentalToggleGroupControlOption,
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.__experimentalToggleGroupControlOption,
{
value: "auto",
label: (0, import_i18n15.__)("Auto")
},
"auto"
),
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
- import_components15.__experimentalToggleGroupControlOption,
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
+ import_components12.__experimentalToggleGroupControlOption,
{
value: "manual",
label: (0, import_i18n15.__)("Manual")
@@ -20559,7 +20744,7 @@ var wp;
}
// packages/block-editor/build-module/components/block-list/layout.mjs
- var import_jsx_runtime133 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime134 = __toESM(require_jsx_runtime(), 1);
var defaultLayout = { type: "default" };
var Layout = (0, import_element15.createContext)(defaultLayout);
Layout.displayName = "BlockLayoutContext";
@@ -20573,7 +20758,7 @@ var wp;
const hasBlockGapSupport = blockGapSupport !== null;
if (layoutType) {
if (css) {
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("style", { children: css });
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)("style", { children: css });
}
const layoutStyle = layoutType.getLayoutStyle?.({
hasBlockGapSupport,
@@ -20581,7 +20766,7 @@ var wp;
...props
});
if (layoutStyle) {
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("style", { children: layoutStyle });
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)("style", { children: layoutStyle });
}
}
return null;
@@ -20677,7 +20862,7 @@ var wp;
var DEFAULT_CONTROL = "none";
// packages/block-editor/build-module/components/block-alignment-control/ui.mjs
- var import_jsx_runtime134 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime135 = __toESM(require_jsx_runtime(), 1);
function BlockAlignmentUI({
value,
onChange,
@@ -20697,7 +20882,7 @@ var wp;
}
const activeAlignmentControl = BLOCK_ALIGNMENTS_CONTROLS[value];
const defaultAlignmentControl = BLOCK_ALIGNMENTS_CONTROLS[DEFAULT_CONTROL];
- const UIComponent = isToolbar ? import_components16.ToolbarGroup : import_components16.ToolbarDropdownMenu;
+ const UIComponent = isToolbar ? import_components13.ToolbarGroup : import_components13.ToolbarDropdownMenu;
const commonProps = {
icon: activeAlignmentControl ? activeAlignmentControl.icon : defaultAlignmentControl.icon,
label
@@ -20715,12 +20900,12 @@ var wp;
} : {
toggleProps: description ? { description } : {},
children: ({ onClose }) => {
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_jsx_runtime134.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_components16.MenuGroup, { className: "block-editor-block-alignment-control__menu-group", children: enabledControls.map(
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_jsx_runtime135.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_components13.MenuGroup, { className: "block-editor-block-alignment-control__menu-group", children: enabledControls.map(
({ name: controlName, info }) => {
const { icon, title } = BLOCK_ALIGNMENTS_CONTROLS[controlName];
const isSelected = controlName === value || !value && controlName === "none";
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
- import_components16.MenuItem,
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
+ import_components13.MenuItem,
{
icon,
iconPosition: "left",
@@ -20747,32 +20932,32 @@ var wp;
) }) });
}
};
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(UIComponent, { ...commonProps, ...extraProps });
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(UIComponent, { ...commonProps, ...extraProps });
}
var ui_default2 = BlockAlignmentUI;
// packages/block-editor/build-module/components/block-alignment-control/index.mjs
- var import_jsx_runtime135 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime136 = __toESM(require_jsx_runtime(), 1);
var BlockAlignmentControl = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ui_default2, { ...props, isToolbar: false });
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(ui_default2, { ...props, isToolbar: false });
};
var BlockAlignmentToolbar = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ui_default2, { ...props, isToolbar: true });
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(ui_default2, { ...props, isToolbar: true });
};
// packages/block-editor/build-module/components/block-bindings/attribute-control.mjs
var import_es63 = __toESM(require_es6(), 1);
var import_i18n18 = __toESM(require_i18n(), 1);
- var import_blocks15 = __toESM(require_blocks(), 1);
- var import_components18 = __toESM(require_components(), 1);
+ var import_blocks17 = __toESM(require_blocks(), 1);
+ var import_components15 = __toESM(require_components(), 1);
var import_data15 = __toESM(require_data(), 1);
var import_element17 = __toESM(require_element(), 1);
var import_compose5 = __toESM(require_compose(), 1);
// packages/block-editor/build-module/components/block-bindings/source-fields-list.mjs
var import_es62 = __toESM(require_es6(), 1);
- var import_blocks14 = __toESM(require_blocks(), 1);
- var import_components17 = __toESM(require_components(), 1);
+ var import_blocks16 = __toESM(require_blocks(), 1);
+ var import_components14 = __toESM(require_components(), 1);
var import_data14 = __toESM(require_data(), 1);
var import_element16 = __toESM(require_element(), 1);
var import_compose4 = __toESM(require_compose(), 1);
@@ -20818,8 +21003,8 @@ var wp;
}
// packages/block-editor/build-module/components/block-bindings/source-fields-list.mjs
- var import_jsx_runtime136 = __toESM(require_jsx_runtime(), 1);
- var { Menu } = unlock(import_components17.privateApis);
+ var import_jsx_runtime137 = __toESM(require_jsx_runtime(), 1);
+ var { Menu } = unlock(import_components14.privateApis);
function BlockBindingsSourceFieldsListItem({
args,
attribute,
@@ -20848,7 +21033,7 @@ var wp;
[attribute, blockContext, itemBindings, source]
);
const { updateBlockBindings } = useBlockBindingsUtils();
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(
Menu.CheckboxItem,
{
onChange: () => {
@@ -20869,8 +21054,8 @@ var wp;
checked: (0, import_es62.default)(args, field.args) ?? // Deprecate key dependency in 7.0.
field.key === args?.key,
children: [
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Menu.ItemLabel, { children: field.label }),
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Menu.ItemHelpText, { children: values[attribute] })
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Menu.ItemLabel, { children: field.label }),
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Menu.ItemHelpText, { children: values[attribute] })
]
}
);
@@ -20885,14 +21070,14 @@ var wp;
if (!fields || fields.length === 0) {
return null;
}
- const source = (0, import_blocks14.getBlockBindingsSource)(sourceKey);
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(
+ const source = (0, import_blocks16.getBlockBindingsSource)(sourceKey);
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(
Menu,
{
placement: isMobile ? "bottom-start" : "left-start",
children: [
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Menu.SubmenuTriggerItem, { children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Menu.ItemLabel, { children: source.label }) }),
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Menu.Popover, { gutter: 8, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(Menu.Group, { children: fields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Menu.SubmenuTriggerItem, { children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Menu.ItemLabel, { children: source.label }) }),
+ /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Menu.Popover, { gutter: 8, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Menu.Group, { children: fields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
BlockBindingsSourceFieldsListItem,
{
args,
@@ -20910,8 +21095,8 @@ var wp;
}
// packages/block-editor/build-module/components/block-bindings/attribute-control.mjs
- var import_jsx_runtime137 = __toESM(require_jsx_runtime(), 1);
- var { Menu: Menu2 } = unlock(import_components18.privateApis);
+ var import_jsx_runtime138 = __toESM(require_jsx_runtime(), 1);
+ var { Menu: Menu2 } = unlock(import_components15.privateApis);
function BlockBindingsAttributeControl({
attribute,
binding,
@@ -20925,9 +21110,9 @@ var wp;
const {
getAllBlockBindingsSources,
getBlockBindingsSourceFieldsList,
- getBlockType: getBlockType30
- } = unlock(select3(import_blocks15.store));
- const _attribute = getBlockType30(blockName).attributes?.[attribute];
+ getBlockType: getBlockType33
+ } = unlock(select3(import_blocks17.store));
+ const _attribute = getBlockType33(blockName).attributes?.[attribute];
if (_attribute?.enum) {
return {};
}
@@ -20960,7 +21145,7 @@ var wp;
const hasCompatibleFields = Object.keys(compatibleFields).length > 0;
const isAttributeReadOnly = !canUpdateBlockBindings || !hasCompatibleFields;
const { source: boundSourceName, args } = binding || {};
- const source = (0, import_blocks15.getBlockBindingsSource)(boundSourceName);
+ const source = (0, import_blocks17.getBlockBindingsSource)(boundSourceName);
let displayText;
let isValid2 = true;
if (binding === void 0) {
@@ -20978,8 +21163,8 @@ var wp;
(field) => (0, import_es63.default)(field.args, args)
)?.label || source?.label || boundSourceName;
}
- return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
- import_components18.__experimentalToolsPanelItem,
+ return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
+ import_components15.__experimentalToolsPanelItem,
{
hasValue: () => !!binding,
label: attribute,
@@ -20988,21 +21173,21 @@ var wp;
[attribute]: void 0
});
}),
- children: /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(Menu2, { placement: isMobile ? "bottom-start" : "left-start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(Menu2, { placement: isMobile ? "bottom-start" : "left-start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
Menu2.TriggerButton,
{
- render: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_components18.__experimentalItem, {}),
+ render: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_components15.__experimentalItem, {}),
disabled: !hasCompatibleFields,
- children: /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(
- import_components18.__experimentalVStack,
+ children: /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(
+ import_components15.__experimentalVStack,
{
className: "block-editor-bindings__item",
spacing: 0,
children: [
- /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_components18.__experimentalText, { truncate: true, children: attribute }),
- /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
- import_components18.__experimentalText,
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_components15.__experimentalText, { truncate: true, children: attribute }),
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
+ import_components15.__experimentalText,
{
truncate: true,
variant: isValid2 ? "muted" : void 0,
@@ -21015,12 +21200,12 @@ var wp;
)
}
),
- !isAttributeReadOnly && /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Menu2.Popover, { gutter: isMobile ? 8 : 36, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
+ !isAttributeReadOnly && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Menu2.Popover, { gutter: isMobile ? 8 : 36, children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
Menu2,
{
placement: isMobile ? "bottom-start" : "left-start",
children: Object.entries(compatibleFields).map(
- ([sourceKey, fields]) => /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
+ ([sourceKey, fields]) => /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
BlockBindingsSourceFieldsList,
{
args: binding?.args,
@@ -21040,16 +21225,16 @@ var wp;
// packages/block-editor/build-module/components/block-full-height-alignment-control/index.mjs
var import_i18n19 = __toESM(require_i18n(), 1);
- var import_components19 = __toESM(require_components(), 1);
- var import_jsx_runtime138 = __toESM(require_jsx_runtime(), 1);
+ var import_components16 = __toESM(require_components(), 1);
+ var import_jsx_runtime139 = __toESM(require_jsx_runtime(), 1);
function BlockFullHeightAlignmentControl({
isActive,
label = (0, import_i18n19.__)("Full height"),
onToggle,
isDisabled
}) {
- return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
- import_components19.ToolbarButton,
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
+ import_components16.ToolbarButton,
{
isActive,
icon: full_height_default,
@@ -21064,8 +21249,8 @@ var wp;
// packages/block-editor/build-module/components/block-alignment-matrix-control/index.mjs
var import_i18n20 = __toESM(require_i18n(), 1);
var import_keycodes = __toESM(require_keycodes(), 1);
- var import_components20 = __toESM(require_components(), 1);
- var import_jsx_runtime139 = __toESM(require_jsx_runtime(), 1);
+ var import_components17 = __toESM(require_components(), 1);
+ var import_jsx_runtime140 = __toESM(require_jsx_runtime(), 1);
var noop2 = () => {
};
function BlockAlignmentMatrixControl(props) {
@@ -21075,9 +21260,9 @@ var wp;
value = "center",
isDisabled
} = props;
- const icon = /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_components20.AlignmentMatrixControl.Icon, { value });
- return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
- import_components20.Dropdown,
+ const icon = /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_components17.AlignmentMatrixControl.Icon, { value });
+ return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
+ import_components17.Dropdown,
{
popoverProps: { placement: "bottom-start" },
renderToggle: ({ onToggle, isOpen }) => {
@@ -21087,8 +21272,8 @@ var wp;
onToggle();
}
};
- return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
- import_components20.ToolbarButton,
+ return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
+ import_components17.ToolbarButton,
{
onClick: onToggle,
"aria-haspopup": "true",
@@ -21101,21 +21286,21 @@ var wp;
}
);
},
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_components20.AlignmentMatrixControl, { onChange, value })
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_components17.AlignmentMatrixControl, { onChange, value })
}
);
}
var block_alignment_matrix_control_default = BlockAlignmentMatrixControl;
// packages/block-editor/build-module/components/block-breadcrumb/index.mjs
- var import_components21 = __toESM(require_components(), 1);
+ var import_components18 = __toESM(require_components(), 1);
var import_data17 = __toESM(require_data(), 1);
var import_i18n21 = __toESM(require_i18n(), 1);
var import_element20 = __toESM(require_element(), 1);
// packages/block-editor/build-module/components/block-title/use-block-display-title.mjs
var import_data16 = __toESM(require_data(), 1);
- var import_blocks16 = __toESM(require_blocks(), 1);
+ var import_blocks18 = __toESM(require_blocks(), 1);
function useBlockDisplayTitle({
clientId,
maximumLength,
@@ -21127,14 +21312,14 @@ var wp;
return null;
}
const { getBlockName: getBlockName2, getBlockAttributes: getBlockAttributes3, getBlock: getBlock2 } = select3(store);
- const { getBlockType: getBlockType30, getActiveBlockVariation } = select3(import_blocks16.store);
+ const { getBlockType: getBlockType33, getActiveBlockVariation } = select3(import_blocks18.store);
const blockName = getBlockName2(clientId);
- const blockType = getBlockType30(blockName);
+ const blockType = getBlockType33(blockName);
if (!blockType) {
return null;
}
const attributes = getBlockAttributes3(clientId);
- const label = (0, import_blocks16.__experimentalGetBlockLabel)(blockType, attributes, context);
+ const label = (0, import_blocks18.__experimentalGetBlockLabel)(blockType, attributes, context);
if (label !== blockType.title) {
return label;
}
@@ -21170,7 +21355,7 @@ var wp;
// packages/block-editor/build-module/components/provider/block-refs-provider.mjs
var import_element18 = __toESM(require_element(), 1);
var import_compose6 = __toESM(require_compose(), 1);
- var import_jsx_runtime140 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime141 = __toESM(require_jsx_runtime(), 1);
var BlockRefs = (0, import_element18.createContext)({
refsMap: (0, import_compose6.observableMap)(),
eventHandlers: /* @__PURE__ */ new Map()
@@ -21181,7 +21366,7 @@ var wp;
() => ({ refsMap: (0, import_compose6.observableMap)(), eventHandlers: /* @__PURE__ */ new Map() }),
[]
);
- return /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(BlockRefs.Provider, { value, children });
+ return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(BlockRefs.Provider, { value, children });
}
// packages/block-editor/build-module/components/block-list/use-block-props/use-block-refs.mjs
@@ -21239,7 +21424,7 @@ var wp;
}
// packages/block-editor/build-module/components/block-breadcrumb/index.mjs
- var import_jsx_runtime141 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime142 = __toESM(require_jsx_runtime(), 1);
function BlockBreadcrumb({ rootLabelText }) {
const { selectBlock: selectBlock2, clearSelectedBlock: clearSelectedBlock2 } = (0, import_data17.useDispatch)(store);
const { clientId, parents, hasSelection } = (0, import_data17.useSelect)((select3) => {
@@ -21258,21 +21443,21 @@ var wp;
const rootLabel = rootLabelText || (0, import_i18n21._x)("Document", "noun, breadcrumb");
const blockRef = (0, import_element20.useRef)();
useBlockElementRef(clientId, blockRef);
- return /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
"ul",
{
className: "block-editor-block-breadcrumb",
role: "list",
"aria-label": (0, import_i18n21.__)("Block breadcrumb"),
children: [
- /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
"li",
{
className: !hasSelection ? "block-editor-block-breadcrumb__current" : void 0,
"aria-current": !hasSelection ? "true" : void 0,
children: [
- hasSelection && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
- import_components21.Button,
+ hasSelection && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
+ import_components18.Button,
{
size: "small",
className: "block-editor-block-breadcrumb__button",
@@ -21286,8 +21471,8 @@ var wp;
children: rootLabel
}
),
- !hasSelection && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("span", { children: rootLabel }),
- !!clientId && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
+ !hasSelection && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: rootLabel }),
+ !!clientId && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
icon_default,
{
icon: chevron_right_small_default,
@@ -21297,14 +21482,14 @@ var wp;
]
}
),
- parents.map((parentClientId) => /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("li", { children: [
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
- import_components21.Button,
+ parents.map((parentClientId) => /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("li", { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
+ import_components18.Button,
{
size: "small",
className: "block-editor-block-breadcrumb__button",
onClick: () => selectBlock2(parentClientId),
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
BlockTitle,
{
clientId: parentClientId,
@@ -21314,7 +21499,7 @@ var wp;
)
}
),
- /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
icon_default,
{
icon: chevron_right_small_default,
@@ -21322,12 +21507,12 @@ var wp;
}
)
] }, parentClientId)),
- !!clientId && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
+ !!clientId && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
"li",
{
className: "block-editor-block-breadcrumb__current",
"aria-current": "true",
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
BlockTitle,
{
clientId,
@@ -21356,30 +21541,30 @@ var wp;
}
// packages/block-editor/build-module/components/block-canvas/index.mjs
- var import_compose71 = __toESM(require_compose(), 1);
- var import_element181 = __toESM(require_element(), 1);
- var import_data126 = __toESM(require_data(), 1);
- var import_components116 = __toESM(require_components(), 1);
+ var import_compose72 = __toESM(require_compose(), 1);
+ var import_element189 = __toESM(require_element(), 1);
+ var import_data127 = __toESM(require_data(), 1);
+ var import_components114 = __toESM(require_components(), 1);
// packages/block-editor/build-module/components/block-list/index.mjs
- var import_data81 = __toESM(require_data(), 1);
- var import_compose58 = __toESM(require_compose(), 1);
- var import_element145 = __toESM(require_element(), 1);
- var import_blocks46 = __toESM(require_blocks(), 1);
+ var import_data82 = __toESM(require_data(), 1);
+ var import_compose59 = __toESM(require_compose(), 1);
+ var import_element153 = __toESM(require_element(), 1);
+ var import_blocks49 = __toESM(require_blocks(), 1);
// packages/block-editor/build-module/components/block-list/block.mjs
var import_element33 = __toESM(require_element(), 1);
- var import_blocks23 = __toESM(require_blocks(), 1);
- var import_components28 = __toESM(require_components(), 1);
- var import_data31 = __toESM(require_data(), 1);
+ var import_blocks25 = __toESM(require_blocks(), 1);
+ var import_components25 = __toESM(require_components(), 1);
+ var import_data32 = __toESM(require_data(), 1);
var import_compose19 = __toESM(require_compose(), 1);
var import_dom8 = __toESM(require_dom(), 1);
// packages/block-editor/build-module/components/block-list/block-invalid-warning.mjs
var import_i18n23 = __toESM(require_i18n(), 1);
- var import_components23 = __toESM(require_components(), 1);
+ var import_components20 = __toESM(require_components(), 1);
var import_element22 = __toESM(require_element(), 1);
- var import_blocks18 = __toESM(require_blocks(), 1);
+ var import_blocks20 = __toESM(require_blocks(), 1);
var import_data19 = __toESM(require_data(), 1);
// node_modules/diff/libesm/diff/base.js
@@ -21594,29 +21779,29 @@ var wp;
// packages/block-editor/build-module/components/block-compare/index.mjs
var import_i18n22 = __toESM(require_i18n(), 1);
- var import_blocks17 = __toESM(require_blocks(), 1);
+ var import_blocks19 = __toESM(require_blocks(), 1);
// packages/block-editor/build-module/components/block-compare/block-view.mjs
- var import_components22 = __toESM(require_components(), 1);
+ var import_components19 = __toESM(require_components(), 1);
var import_element21 = __toESM(require_element(), 1);
var import_dom = __toESM(require_dom(), 1);
- var import_jsx_runtime142 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime143 = __toESM(require_jsx_runtime(), 1);
function BlockView({
title,
rawContent,
renderedContent,
action,
actionText,
- className
+ className: className2
}) {
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className, children: [
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "block-editor-block-compare__content", children: [
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("h2", { className: "block-editor-block-compare__heading", children: title }),
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "block-editor-block-compare__html", children: rawContent }),
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "block-editor-block-compare__preview edit-post-visual-editor", children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_element21.RawHTML, { children: (0, import_dom.safeHTML)(renderedContent) }) })
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", { className: className2, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", { className: "block-editor-block-compare__content", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("h2", { className: "block-editor-block-compare__heading", children: title }),
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { className: "block-editor-block-compare__html", children: rawContent }),
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { className: "block-editor-block-compare__preview edit-post-visual-editor", children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_element21.RawHTML, { children: (0, import_dom.safeHTML)(renderedContent) }) })
] }),
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "block-editor-block-compare__action", children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
- import_components22.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { className: "block-editor-block-compare__action", children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
+ import_components19.Button,
{
__next40pxDefaultSize: true,
variant: "secondary",
@@ -21629,7 +21814,7 @@ var wp;
}
// packages/block-editor/build-module/components/block-compare/index.mjs
- var import_jsx_runtime143 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime144 = __toESM(require_jsx_runtime(), 1);
function BlockCompare({
block,
onKeep,
@@ -21644,20 +21829,20 @@ var wp;
"block-editor-block-compare__added": item.added,
"block-editor-block-compare__removed": item.removed
});
- return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("span", { className: classes, children: item.value }, pos);
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("span", { className: classes, children: item.value }, pos);
});
}
function getConvertedContent(convertedBlock) {
const newBlocks = Array.isArray(convertedBlock) ? convertedBlock : [convertedBlock];
const newContent = newBlocks.map(
- (item) => (0, import_blocks17.getSaveContent)(item.name, item.attributes, item.innerBlocks)
+ (item) => (0, import_blocks19.getSaveContent)(item.name, item.attributes, item.innerBlocks)
);
return newContent.join("");
}
const converted = getConvertedContent(convertor(block));
const difference = getDifference(block.originalContent, converted);
- return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", { className: "block-editor-block-compare__wrapper", children: [
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)("div", { className: "block-editor-block-compare__wrapper", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
BlockView,
{
title: (0, import_i18n22.__)("Current"),
@@ -21668,7 +21853,7 @@ var wp;
renderedContent: block.originalContent
}
),
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
BlockView,
{
title: (0, import_i18n22.__)("After Conversion"),
@@ -21684,8 +21869,8 @@ var wp;
var block_compare_default = BlockCompare;
// packages/block-editor/build-module/components/block-list/block-invalid-warning.mjs
- var import_jsx_runtime144 = __toESM(require_jsx_runtime(), 1);
- var blockToBlocks = (block) => (0, import_blocks18.rawHandler)({
+ var import_jsx_runtime145 = __toESM(require_jsx_runtime(), 1);
+ var blockToBlocks = (block) => (0, import_blocks20.rawHandler)({
HTML: block.originalContent
});
function BlockInvalidWarning({ clientId }) {
@@ -21709,7 +21894,7 @@ var wp;
const convert = (0, import_element22.useMemo)(
() => ({
toHTML() {
- const htmlBlock = (0, import_blocks18.createBlock)(
+ const htmlBlock = (0, import_blocks20.createBlock)(
"core/html",
{},
[],
@@ -21722,7 +21907,7 @@ var wp;
return replaceBlock2(block.clientId, newBlocks);
},
toRecoveredBlock() {
- const recoveredBlock = (0, import_blocks18.createBlock)(
+ const recoveredBlock = (0, import_blocks20.createBlock)(
block.name,
block.attributes,
block.innerBlocks
@@ -21746,13 +21931,13 @@ var wp;
].filter(Boolean),
[canInsertHTMLBlock, convert]
);
- return /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(import_jsx_runtime144.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_jsx_runtime145.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
warning_default,
{
actions: [
- /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
- import_components23.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
+ import_components20.Button,
{
__next40pxDefaultSize: true,
onClick: convert.toRecoveredBlock,
@@ -21766,8 +21951,8 @@ var wp;
children: (0, import_i18n23.__)("Block contains unexpected or invalid content.")
}
),
- compare2 && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
- import_components23.Modal,
+ compare2 && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
+ import_components20.Modal,
{
title: (
// translators: Dialog title to fix block content
@@ -21775,7 +21960,7 @@ var wp;
),
onRequestClose: onCompareClose,
className: "block-editor-block-compare",
- children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
block_compare_default,
{
block,
@@ -21792,8 +21977,8 @@ var wp;
// packages/block-editor/build-module/components/block-list/block-crash-warning.mjs
var import_i18n24 = __toESM(require_i18n(), 1);
- var import_jsx_runtime145 = __toESM(require_jsx_runtime(), 1);
- var warning = /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(warning_default, { className: "block-editor-block-list__block-crash-warning", children: (0, import_i18n24.__)("This block has encountered an error and cannot be previewed.") });
+ var import_jsx_runtime146 = __toESM(require_jsx_runtime(), 1);
+ var warning = /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(warning_default, { className: "block-editor-block-list__block-crash-warning", children: (0, import_i18n24.__)("This block has encountered an error and cannot be previewed.") });
function BlockCrashWarning() {
return warning;
}
@@ -21825,7 +22010,7 @@ var wp;
var import_react_autosize_textarea = __toESM(require_lib(), 1);
var import_element24 = __toESM(require_element(), 1);
var import_data20 = __toESM(require_data(), 1);
- var import_blocks19 = __toESM(require_blocks(), 1);
+ var import_blocks21 = __toESM(require_blocks(), 1);
// packages/block-editor/build-module/utils/native-undo.mjs
var import_compose8 = __toESM(require_compose(), 1);
@@ -21853,7 +22038,7 @@ var wp;
}
// packages/block-editor/build-module/components/block-list/block-html.mjs
- var import_jsx_runtime146 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime147 = __toESM(require_jsx_runtime(), 1);
function BlockHTML({ clientId }) {
const [html, setHtml] = (0, import_element24.useState)("");
const nativeUndoRef = useNativeUndo();
@@ -21863,21 +22048,21 @@ var wp;
);
const { updateBlock: updateBlock2 } = (0, import_data20.useDispatch)(store);
const blockContent = (0, import_element24.useMemo)(
- () => block ? (0, import_blocks19.getBlockContent)(block) : "",
+ () => block ? (0, import_blocks21.getBlockContent)(block) : "",
[block]
);
const onChange = () => {
- const blockType = (0, import_blocks19.getBlockType)(block.name);
+ const blockType = (0, import_blocks21.getBlockType)(block.name);
if (!blockType) {
return;
}
- const attributes = (0, import_blocks19.getBlockAttributes)(
+ const attributes = (0, import_blocks21.getBlockAttributes)(
blockType,
html,
block.attributes
);
- const content = html ? html : (0, import_blocks19.getSaveContent)(blockType, attributes);
- const [isValid2] = html ? (0, import_blocks19.validateBlock)({
+ const content = html ? html : (0, import_blocks21.getSaveContent)(blockType, attributes);
+ const [isValid2] = html ? (0, import_blocks21.validateBlock)({
...block,
attributes,
originalContent: content
@@ -21894,7 +22079,7 @@ var wp;
(0, import_element24.useEffect)(() => {
setHtml(blockContent);
}, [blockContent]);
- return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
import_react_autosize_textarea.default,
{
className: "block-editor-block-list__block-html-textarea",
@@ -21910,8 +22095,9 @@ var wp;
// packages/block-editor/build-module/components/block-list/use-block-props/index.mjs
var import_element32 = __toESM(require_element(), 1);
var import_i18n30 = __toESM(require_i18n(), 1);
- var import_blocks22 = __toESM(require_blocks(), 1);
+ var import_blocks24 = __toESM(require_blocks(), 1);
var import_compose18 = __toESM(require_compose(), 1);
+ var import_data31 = __toESM(require_data(), 1);
var import_warning4 = __toESM(require_warning(), 1);
// node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.js
@@ -24872,7 +25058,7 @@ var wp;
if (isPartOfSelection && isDragging3) {
return;
}
- const zIndex = isPartOfSelection ? "1" : "";
+ const zIndex = isPartOfSelection ? "20" : "";
const controller = new Controller({
x: 0,
y: 0,
@@ -24887,7 +25073,7 @@ var wp;
const finishedMoving = x22 === 0 && y22 === 0;
ref.current.style.transformOrigin = "center center";
ref.current.style.transform = finishedMoving ? null : `translate3d(${x22}px,${y22}px,0)`;
- ref.current.style.zIndex = zIndex;
+ ref.current.style.zIndex = finishedMoving ? null : zIndex;
preserveScrollPosition();
}
});
@@ -25318,7 +25504,7 @@ var wp;
}
// packages/block-editor/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.mjs
- var import_blocks20 = __toESM(require_blocks(), 1);
+ var import_blocks22 = __toESM(require_blocks(), 1);
var import_dom7 = __toESM(require_dom(), 1);
var import_keycodes2 = __toESM(require_keycodes(), 1);
var import_data25 = __toESM(require_data(), 1);
@@ -25514,8 +25700,8 @@ var wp;
function onDoubleClick(event) {
const isSection = isSectionBlock2(clientId);
const block = getBlock2(clientId);
- const isSyncedPattern = (0, import_blocks20.isReusableBlock)(block);
- const isTemplatePartBlock = (0, import_blocks20.isTemplatePart)(block);
+ const isSyncedPattern = (0, import_blocks22.isReusableBlock)(block);
+ const isTemplatePartBlock = (0, import_blocks22.isTemplatePart)(block);
const isAlreadyEditing = editedContentOnlySection2 === clientId;
if (!isSection || isAlreadyEditing || isSyncedPattern || isTemplatePartBlock) {
return;
@@ -25535,8 +25721,8 @@ var wp;
isSelected,
getBlockRootClientId2,
getBlock2,
- import_blocks20.isReusableBlock,
- import_blocks20.isTemplatePart,
+ import_blocks22.isReusableBlock,
+ import_blocks22.isTemplatePart,
insertAfterBlock2,
removeBlock2,
isZoomOut2,
@@ -25709,7 +25895,7 @@ var wp;
// packages/block-editor/build-module/components/block-visibility/modal.mjs
var import_i18n26 = __toESM(require_i18n(), 1);
var import_element30 = __toESM(require_element(), 1);
- var import_components24 = __toESM(require_components(), 1);
+ var import_components21 = __toESM(require_components(), 1);
var import_data27 = __toESM(require_data(), 1);
var import_keyboard_shortcuts = __toESM(require_keyboard_shortcuts(), 1);
var import_notices3 = __toESM(require_notices(), 1);
@@ -25800,7 +25986,7 @@ var wp;
}
// packages/block-editor/build-module/components/block-visibility/modal.mjs
- var import_jsx_runtime147 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime148 = __toESM(require_jsx_runtime(), 1);
var DEFAULT_VIEWPORT_CHECKBOX_VALUES = {
[BLOCK_VISIBILITY_VIEWPORTS.mobile.key]: false,
[BLOCK_VISIBILITY_VIEWPORTS.tablet.key]: false,
@@ -25955,23 +26141,23 @@ var wp;
]
);
const hasMultipleBlocks = blocks2?.length > 1;
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
- import_components24.Modal,
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
+ import_components21.Modal,
{
title: clientIds?.length > 1 ? (0, import_i18n26.__)("Hide blocks") : (0, import_i18n26.__)("Hide block"),
onRequestClose: onClose,
overlayClassName: "block-editor-block-visibility-modal",
size: "small",
- children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("form", { onSubmit: handleSubmit, children: [
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("fieldset", { children: [
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("legend", { children: hasMultipleBlocks ? (0, import_i18n26.__)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("form", { onSubmit: handleSubmit, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("fieldset", { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("legend", { children: hasMultipleBlocks ? (0, import_i18n26.__)(
"Select the viewport sizes for which you want to hide the blocks. Changes will apply to all selected blocks."
) : (0, import_i18n26.__)(
"Select the viewport size for which you want to hide the block."
) }),
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("ul", { className: "block-editor-block-visibility-modal__options", children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("li", { className: "block-editor-block-visibility-modal__options-item block-editor-block-visibility-modal__options-item--everywhere", children: [
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
- import_components24.CheckboxControl,
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("ul", { className: "block-editor-block-visibility-modal__options", children: /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("li", { className: "block-editor-block-visibility-modal__options-item block-editor-block-visibility-modal__options-item--everywhere", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
+ import_components21.CheckboxControl,
{
className: "block-editor-block-visibility-modal__options-checkbox--everywhere",
label: (0, import_i18n26.__)("Omit from published content"),
@@ -25985,14 +26171,14 @@ var wp;
}
}
),
- hideEverywhere !== true && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("ul", { className: "block-editor-block-visibility-modal__sub-options", children: viewportEntries.map(
- ([, { label, icon, key }]) => /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
+ hideEverywhere !== true && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("ul", { className: "block-editor-block-visibility-modal__sub-options", children: viewportEntries.map(
+ ([, { label, icon, key }]) => /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
"li",
{
className: "block-editor-block-visibility-modal__options-item",
children: [
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
- import_components24.CheckboxControl,
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
+ import_components21.CheckboxControl,
{
label: (0, import_i18n26.sprintf)(
// translators: %s: The viewport name.
@@ -26007,8 +26193,8 @@ var wp;
)
}
),
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
- import_components24.Icon,
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
+ import_components21.Icon,
{
icon,
className: clsx_default({
@@ -26022,17 +26208,17 @@ var wp;
)
) })
] }) }),
- hasMultipleBlocks && hasIndeterminateValues && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("p", { className: "block-editor-block-visibility-modal__description", children: (0, import_i18n26.__)(
+ hasMultipleBlocks && hasIndeterminateValues && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("p", { className: "block-editor-block-visibility-modal__description", children: (0, import_i18n26.__)(
"Selected blocks have different visibility settings. The checkboxes show an indeterminate state when settings differ."
) }),
- !hasMultipleBlocks && hideEverywhere === true && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("p", { className: "block-editor-block-visibility-modal__description", children: (0, import_i18n26.sprintf)(
+ !hasMultipleBlocks && hideEverywhere === true && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("p", { className: "block-editor-block-visibility-modal__description", children: (0, import_i18n26.sprintf)(
// translators: %s: The shortcut key to access the List View.
(0, import_i18n26.__)(
"Block will be hidden in the editor, and omitted from the published markup on the frontend. You can configure it again by selecting it in the List View (%s)."
),
listViewShortcut
) }),
- !hasMultipleBlocks && !hideEverywhere && isAnyViewportChecked && /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("p", { className: "block-editor-block-visibility-modal__description", children: (0, import_element30.createInterpolateElement)(
+ !hasMultipleBlocks && !hideEverywhere && isAnyViewportChecked && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("p", { className: "block-editor-block-visibility-modal__description", children: (0, import_element30.createInterpolateElement)(
(0, import_i18n26.sprintf)(
// translators: %s: The shortcut key to access the List View
(0, import_i18n26.__)(
@@ -26041,19 +26227,19 @@ var wp;
listViewShortcut
),
{
- strong: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("strong", {})
+ strong: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("strong", {})
}
) })
] }),
- /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(
- import_components24.Flex,
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(
+ import_components21.Flex,
{
className: "block-editor-block-visibility-modal__actions",
justify: "flex-end",
expanded: false,
children: [
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_components24.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
- import_components24.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_components21.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
+ import_components21.Button,
{
variant: "tertiary",
onClick: onClose,
@@ -26061,8 +26247,8 @@ var wp;
children: (0, import_i18n26.__)("Cancel")
}
) }),
- /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_components24.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
- import_components24.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_components21.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
+ import_components21.Button,
{
variant: "primary",
type: "submit",
@@ -26083,13 +26269,12 @@ var wp;
// packages/block-editor/build-module/components/block-visibility/use-block-visibility.mjs
var import_compose17 = __toESM(require_compose(), 1);
var { getViewportBreakpoints: getViewportBreakpoints4 } = unlock(privateApis);
- function useBlockVisibility(options = {}) {
- const {
- blockVisibility: blockVisibility2 = void 0,
- deviceType = BLOCK_VISIBILITY_VIEWPORTS.desktop.key,
- viewportSettings,
- view = window
- } = options;
+ function useBlockVisibility({
+ blockVisibility: blockVisibility2,
+ deviceType = "desktop",
+ viewportSettings,
+ view = window
+ } = {}) {
const viewportBreakpoints = getViewportBreakpoints4(viewportSettings);
const mobileMediaQuery = viewportBreakpoints.mobile ? `(width <= ${viewportBreakpoints.mobile})` : void 0;
const isMobileViewport = (0, import_compose17.useMediaQuery)(mobileMediaQuery, view);
@@ -26099,28 +26284,28 @@ var wp;
}
const isTabletViewport = (0, import_compose17.useMediaQuery)(tabletMediaQuery, view);
let currentViewport;
- if (deviceType === BLOCK_VISIBILITY_VIEWPORTS.mobile.key && viewportBreakpoints.mobile) {
- currentViewport = BLOCK_VISIBILITY_VIEWPORTS.mobile.key;
- } else if (deviceType === BLOCK_VISIBILITY_VIEWPORTS.tablet.key && viewportBreakpoints.tablet) {
- currentViewport = BLOCK_VISIBILITY_VIEWPORTS.tablet.key;
+ if (deviceType === "mobile" && viewportBreakpoints.mobile) {
+ currentViewport = "mobile";
+ } else if (deviceType === "tablet" && viewportBreakpoints.tablet) {
+ currentViewport = "tablet";
} else if (isMobileViewport) {
- currentViewport = BLOCK_VISIBILITY_VIEWPORTS.mobile.key;
+ currentViewport = "mobile";
} else if (isTabletViewport && viewportBreakpoints.tablet) {
- currentViewport = BLOCK_VISIBILITY_VIEWPORTS.tablet.key;
+ currentViewport = "tablet";
} else {
- currentViewport = BLOCK_VISIBILITY_VIEWPORTS.desktop.key;
+ currentViewport = "desktop";
}
- const isBlockCurrentlyHidden = blockVisibility2 === false || blockVisibility2?.viewport?.[currentViewport] === false;
+ const isBlockCurrentlyHidden = blockVisibility2 === false || typeof blockVisibility2 === "object" && blockVisibility2?.viewport?.[currentViewport] === false;
return { isBlockCurrentlyHidden, currentViewport };
}
// packages/block-editor/build-module/components/block-visibility/viewport-toolbar.mjs
var import_i18n27 = __toESM(require_i18n(), 1);
- var import_components25 = __toESM(require_components(), 1);
+ var import_components22 = __toESM(require_components(), 1);
var import_element31 = __toESM(require_element(), 1);
- var import_blocks21 = __toESM(require_blocks(), 1);
+ var import_blocks23 = __toESM(require_blocks(), 1);
var import_data28 = __toESM(require_data(), 1);
- var import_jsx_runtime148 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime149 = __toESM(require_jsx_runtime(), 1);
function BlockVisibilityViewportToolbar({ clientIds }) {
const hasBlockVisibilityButtonShownRef = (0, import_element31.useRef)(false);
const [blockVisibility2] = useSettings("blockVisibility.allowEditing");
@@ -26130,7 +26315,7 @@ var wp;
const _blocks = getBlocksByClientId2(clientIds);
return {
canToggleBlockVisibility: _blocks.every(
- ({ clientId }) => (0, import_blocks21.hasBlockSupport)(
+ ({ clientId }) => (0, import_blocks23.hasBlockSupport)(
getBlockName2(clientId),
"visibility",
true
@@ -26156,8 +26341,8 @@ var wp;
return null;
}
const { showViewportModal: showViewportModal2 } = unlock(blockEditorDispatch);
- return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(import_components25.ToolbarGroup, { className: "block-editor-block-visibility-toolbar", children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
- import_components25.ToolbarButton,
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_components22.ToolbarGroup, { className: "block-editor-block-visibility-toolbar", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
+ import_components22.ToolbarButton,
{
disabled: !canToggleBlockVisibility,
icon: areBlocksHiddenAnywhere ? unseen_default : seen_default,
@@ -26170,10 +26355,10 @@ var wp;
// packages/block-editor/build-module/components/block-visibility/viewport-menu-item.mjs
var import_i18n28 = __toESM(require_i18n(), 1);
- var import_components26 = __toESM(require_components(), 1);
+ var import_components23 = __toESM(require_components(), 1);
var import_data29 = __toESM(require_data(), 1);
var import_keyboard_shortcuts2 = __toESM(require_keyboard_shortcuts(), 1);
- var import_jsx_runtime149 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime150 = __toESM(require_jsx_runtime(), 1);
function BlockVisibilityViewportMenuItem({ clientIds }) {
const [blockVisibility2] = useSettings("blockVisibility.allowEditing");
const { areBlocksHiddenAnywhere, shortcut } = (0, import_data29.useSelect)(
@@ -26199,8 +26384,8 @@ var wp;
return null;
}
const { showViewportModal: showViewportModal2 } = unlock(dispatch);
- return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
- import_components26.MenuItem,
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
+ import_components23.MenuItem,
{
onClick: () => showViewportModal2(clientIds),
shortcut,
@@ -26210,11 +26395,11 @@ var wp;
}
// packages/block-editor/build-module/components/block-visibility/viewport-visibility-info.mjs
- var import_components27 = __toESM(require_components(), 1);
+ var import_components24 = __toESM(require_components(), 1);
var import_data30 = __toESM(require_data(), 1);
var import_i18n29 = __toESM(require_i18n(), 1);
- var import_jsx_runtime150 = __toESM(require_jsx_runtime(), 1);
- var { Badge: WCBadge } = unlock(import_components27.privateApis);
+ var import_jsx_runtime151 = __toESM(require_jsx_runtime(), 1);
+ var { Badge: WCBadge } = unlock(import_components24.privateApis);
var DEFAULT_VISIBILITY_STATE = {
currentBlockVisibility: void 0,
hasParentHiddenEverywhere: false,
@@ -26234,9 +26419,9 @@ var wp;
const {
getBlockAttributes: getBlockAttributes3,
isBlockParentHiddenEverywhere: isBlockParentHiddenEverywhere2,
- getSettings: getSettings7
+ getSettings: getSettings8
} = unlock(select3(store));
- const settings2 = getSettings7();
+ const settings2 = getSettings8();
return {
currentBlockVisibility: getBlockAttributes3(clientId)?.metadata?.blockVisibility,
selectedDeviceType: settings2?.[deviceTypeKey]?.toLowerCase() || BLOCK_VISIBILITY_VIEWPORTS.desktop.key,
@@ -26292,17 +26477,45 @@ var wp;
viewportLabel
);
}
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(WCBadge, { className: "block-editor-block-visibility-info", children: /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(import_components27.__experimentalHStack, { spacing: 2, justify: "start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_components27.Icon, { icon: unseen_default }),
- /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_components27.__experimentalText, { children: label })
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(WCBadge, { className: "block-editor-block-visibility-info", children: /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(import_components24.__experimentalHStack, { spacing: 2, justify: "start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(import_components24.Icon, { icon: unseen_default }),
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(import_components24.__experimentalText, { children: label })
] }) });
}
// packages/block-editor/build-module/components/block-list/use-block-props/index.mjs
+ function useGhostMaterialize(rootClientId, ghostBlock) {
+ const { insertBlocks: insertBlocks2 } = (0, import_data31.useDispatch)(store);
+ return (0, import_compose18.useRefEffect)(
+ (element) => {
+ if (!ghostBlock) {
+ return;
+ }
+ function remove5() {
+ element.removeEventListener("pointerdown", materialize, true);
+ element.removeEventListener("focusin", materialize, true);
+ }
+ function materialize() {
+ remove5();
+ insertBlocks2(
+ [ghostBlock],
+ void 0,
+ rootClientId,
+ true,
+ 0
+ );
+ }
+ element.addEventListener("pointerdown", materialize, true);
+ element.addEventListener("focusin", materialize, true);
+ return remove5;
+ },
+ [ghostBlock, rootClientId, insertBlocks2]
+ );
+ }
function useBlockProps(props = {}, { __unstableIsHtml } = {}) {
const {
clientId,
- className,
+ className: className2,
wrapperProps = {},
isAligned,
index: index2,
@@ -26331,8 +26544,11 @@ var wp;
blockVisibility: blockVisibility2,
deviceType,
viewportSettings,
- ariaLabel
+ ariaLabel,
+ ghostBlock,
+ rootClientId
} = (0, import_element32.useContext)(PrivateBlockContext);
+ const ghostRef = useGhostMaterialize(rootClientId, ghostBlock);
useRegisterBlockEventHandlers(clientId, wrapperProps);
const defaultViewRef = (0, import_compose18.useRefEffect)((element) => {
if (element) {
@@ -26347,6 +26563,7 @@ var wp;
const isHoverEnabled = !isWithinSectionBlock;
const mergedRefs = (0, import_compose18.useMergeRefs)([
props.ref,
+ ghostRef,
defaultViewRef,
useFocusFirstElement({ clientId, initialPosition: initialPosition2 }),
useBlockRefProvider(clientId),
@@ -26392,7 +26609,7 @@ var wp;
ref: mergedRefs,
id: `block-${clientId}${htmlSuffix}`,
role: "document",
- "aria-label": ariaLabel ?? blockLabel,
+ "aria-label": ariaLabel ?? (clientId === ghostBlock?.clientId ? (0, import_i18n30.__)("Add default block") : void 0) ?? props["aria-label"] ?? blockLabel,
"data-block": clientId,
"data-type": name,
"data-title": blockTitle,
@@ -26416,7 +26633,7 @@ var wp;
"is-editing-content-only-section": isEditingContentOnlySection,
"is-block-hidden": isBlockCurrentlyHidden
},
- className,
+ className2,
props.className,
wrapperProps.className,
defaultClassName
@@ -26424,10 +26641,10 @@ var wp;
style: { ...wrapperProps.style, ...props.style, ...bindingsStyle }
};
}
- useBlockProps.save = import_blocks22.__unstableGetBlockProps;
+ useBlockProps.save = import_blocks24.__unstableGetBlockProps;
// packages/block-editor/build-module/components/block-list/block.mjs
- var import_jsx_runtime151 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime152 = __toESM(require_jsx_runtime(), 1);
function mergeWrapperProps(propsA, propsB) {
const newProps = {
...propsA,
@@ -26442,7 +26659,7 @@ var wp;
return newProps;
}
function Block({ children, isHtml, ...props }) {
- return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...useBlockProps(props, { __unstableIsHtml: isHtml }), children });
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { ...useBlockProps(props, { __unstableIsHtml: isHtml }), children });
}
function BlockListBlock({
block: { __unstableBlockSource },
@@ -26452,7 +26669,7 @@ var wp;
clientId,
isSelected,
isSelectionEnabled: isSelectionEnabled3,
- className,
+ className: className2,
__unstableLayoutClassNames: layoutClassNames,
name,
isValid: isValid2,
@@ -26473,7 +26690,7 @@ var wp;
...context
} = (0, import_element33.useContext)(PrivateBlockContext);
const parentLayout = useLayout() || {};
- let blockEdit = /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
+ let blockEdit = /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
BlockEdit,
{
name,
@@ -26496,7 +26713,7 @@ var wp;
isPreviewMode: context.isPreviewMode
}
);
- const blockType = (0, import_blocks23.getBlockType)(name);
+ const blockType = (0, import_blocks25.getBlockType)(name);
if (blockType?.getEditWrapperProps) {
wrapperProps = mergeWrapperProps(
wrapperProps,
@@ -26504,12 +26721,12 @@ var wp;
);
}
const isAligned = wrapperProps && !!wrapperProps["data-align"] && !themeSupportsLayout;
- const isSticky = className?.includes("is-position-sticky");
+ const isSticky = className2?.includes("is-position-sticky");
if (isAligned) {
- blockEdit = /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
+ blockEdit = /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
"div",
{
- className: clsx_default("wp-block", isSticky && className),
+ className: clsx_default("wp-block", isSticky && className2),
"data-align": wrapperProps["data-align"],
children: blockEdit
}
@@ -26517,20 +26734,20 @@ var wp;
}
let block;
if (!isValid2) {
- const saveContent = __unstableBlockSource ? (0, import_blocks23.serializeRawBlock)(__unstableBlockSource) : (0, import_blocks23.getSaveContent)(blockType, attributes);
- block = /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(Block, { className: "has-warning", children: [
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(BlockInvalidWarning, { clientId }),
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(import_element33.RawHTML, { children: (0, import_dom8.safeHTML)(saveContent) })
+ const saveContent = __unstableBlockSource ? (0, import_blocks25.serializeRawBlock)(__unstableBlockSource) : (0, import_blocks25.getSaveContent)(blockType, attributes);
+ block = /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(Block, { className: "has-warning", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(BlockInvalidWarning, { clientId }),
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(import_element33.RawHTML, { children: (0, import_dom8.safeHTML)(saveContent) })
] });
} else if (mode2 === "html") {
- block = /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(import_jsx_runtime151.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { style: { display: "none" }, children: blockEdit }),
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(Block, { isHtml: true, children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(block_html_default, { clientId }) })
+ block = /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(import_jsx_runtime152.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { style: { display: "none" }, children: blockEdit }),
+ /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(Block, { isHtml: true, children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(block_html_default, { clientId }) })
] });
} else if (blockType?.apiVersion > 1) {
block = blockEdit;
} else {
- block = /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(Block, { children: blockEdit });
+ block = /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(Block, { children: blockEdit });
}
const { "data-align": dataAlign, ...restWrapperProps } = wrapperProps ?? {};
const updatedWrapperProps = {
@@ -26538,10 +26755,10 @@ var wp;
className: clsx_default(
restWrapperProps.className,
dataAlign && themeSupportsLayout && `align${dataAlign}`,
- !(dataAlign && isSticky) && className
+ !(dataAlign && isSticky) && className2
)
};
- return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
PrivateBlockContext.Provider,
{
value: {
@@ -26550,17 +26767,17 @@ var wp;
isSelectionWithinCurrentSection,
...context
},
- children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
block_crash_boundary_default,
{
- fallback: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(Block, { className: "has-warning", children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(BlockCrashWarning, {}) }),
+ fallback: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(Block, { className: "has-warning", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(BlockCrashWarning, {}) }),
children: block
}
)
}
);
}
- var applyWithDispatch = (0, import_data31.withDispatch)((dispatch, ownProps, registry) => {
+ var applyWithDispatch = (0, import_data32.withDispatch)((dispatch, ownProps, registry) => {
const {
updateBlockAttributes: updateBlockAttributes2,
insertBlocks: insertBlocks2,
@@ -26606,17 +26823,17 @@ var wp;
} = registry.select(store);
function switchToDefaultOrRemove() {
const block = getBlock2(clientId);
- const defaultBlockName = (0, import_blocks23.getDefaultBlockName)();
- const defaultBlockType = (0, import_blocks23.getBlockType)(defaultBlockName);
+ const defaultBlockName = (0, import_blocks25.getDefaultBlockName)();
+ const defaultBlockType = (0, import_blocks25.getBlockType)(defaultBlockName);
if (getBlockName2(clientId) !== defaultBlockName) {
- const replacement = (0, import_blocks23.switchToBlockType)(
+ const replacement = (0, import_blocks25.switchToBlockType)(
block,
defaultBlockName
);
if (replacement && replacement.length) {
replaceBlocks2(clientId, replacement);
}
- } else if ((0, import_blocks23.isUnmodifiedDefaultBlock)(block)) {
+ } else if ((0, import_blocks25.isUnmodifiedDefaultBlock)(block)) {
const nextBlockClientId = getNextBlockClientId2(clientId);
if (nextBlockClientId) {
registry.batch(() => {
@@ -26631,18 +26848,18 @@ var wp;
);
replaceBlocks2(
[clientId],
- [(0, import_blocks23.createBlock)(defaultBlockName, attributes)]
+ [(0, import_blocks25.createBlock)(defaultBlockName, attributes)]
);
}
}
function moveFirstItemUp(_clientId, changeSelection = true) {
const wrapperBlockName = getBlockName2(_clientId);
- const wrapperBlockType = (0, import_blocks23.getBlockType)(wrapperBlockName);
+ const wrapperBlockType = (0, import_blocks25.getBlockType)(wrapperBlockName);
const isTextualWrapper = wrapperBlockType.category === "text";
const targetRootClientId = getBlockRootClientId2(_clientId);
const blockOrder = getBlockOrder2(_clientId);
const [firstClientId] = blockOrder;
- if (blockOrder.length === 1 && (0, import_blocks23.isUnmodifiedBlock)(getBlock2(firstClientId))) {
+ if (blockOrder.length === 1 && (0, import_blocks25.isUnmodifiedBlock)(getBlock2(firstClientId), "content")) {
removeBlock2(_clientId);
} else if (isTextualWrapper) {
registry.batch(() => {
@@ -26657,9 +26874,9 @@ var wp;
getBlockIndex2(_clientId)
);
} else {
- const replacement = (0, import_blocks23.switchToBlockType)(
+ const replacement = (0, import_blocks25.switchToBlockType)(
getBlock2(firstClientId),
- (0, import_blocks23.getDefaultBlockName)()
+ (0, import_blocks25.getDefaultBlockName)()
);
if (replacement && replacement.length && replacement.every(
(block) => canInsertBlockType2(
@@ -26678,7 +26895,10 @@ var wp;
switchToDefaultOrRemove();
}
}
- if (!getBlockOrder2(_clientId).length && (0, import_blocks23.isUnmodifiedBlock)(getBlock2(_clientId))) {
+ if (!getBlockOrder2(_clientId).length && (0, import_blocks25.isUnmodifiedBlock)(
+ getBlock2(_clientId),
+ "content"
+ )) {
removeBlock2(_clientId, false);
}
});
@@ -26716,7 +26936,16 @@ var wp;
if (!nextBlockClientId) {
return;
}
- if (getBlockOrder2(nextBlockClientId).length) {
+ if ((0, import_blocks25.isUnmodifiedDefaultBlock)(getBlock2(clientId))) {
+ let firstLeafClientId = nextBlockClientId;
+ while (getBlockOrder2(firstLeafClientId).length) {
+ firstLeafClientId = getBlockOrder2(firstLeafClientId)[0];
+ }
+ registry.batch(() => {
+ removeBlock2(clientId);
+ selectBlock2(firstLeafClientId);
+ });
+ } else if (getBlockOrder2(nextBlockClientId).length) {
moveFirstItemUp(nextBlockClientId, false);
} else {
mergeBlocks2(clientId, nextBlockClientId);
@@ -26751,7 +26980,7 @@ var wp;
}
},
onReplace(blocks2, indexToSelect, initialPosition2) {
- if (blocks2.length && !(0, import_blocks23.isUnmodifiedDefaultBlock)(blocks2[blocks2.length - 1])) {
+ if (blocks2.length && !(0, import_blocks25.isUnmodifiedDefaultBlock)(blocks2[blocks2.length - 1])) {
__unstableMarkLastChangeAsPersistent2();
}
const replacementBlocks = blocks2?.length === 1 && Array.isArray(blocks2[0]) ? blocks2[0] : blocks2;
@@ -26772,11 +27001,19 @@ var wp;
});
BlockListBlock = (0, import_compose19.compose)(
applyWithDispatch,
- (0, import_components28.withFilters)("editor.BlockListBlock")
+ (0, import_components25.withFilters)("editor.BlockListBlock")
)(BlockListBlock);
function BlockListBlockProvider(props) {
- const { clientId, rootClientId } = props;
- const selectedProps = (0, import_data31.useSelect)(
+ const { clientId, rootClientId, ghostBlock } = props;
+ const ghostBlockWithoutAttributes = (0, import_element33.useMemo)(
+ () => ghostBlock ? {
+ clientId: ghostBlock.clientId,
+ name: ghostBlock.name,
+ isValid: true
+ } : void 0,
+ [ghostBlock]
+ );
+ const selectedProps = (0, import_data32.useSelect)(
(select3) => {
const {
isBlockSelected: isBlockSelected2,
@@ -26789,7 +27026,7 @@ var wp;
getBlockAttributes: getBlockAttributes3,
canRemoveBlock: canRemoveBlock2,
canMoveBlock: canMoveBlock2,
- getSettings: getSettings7,
+ getSettings: getSettings8,
getEditedContentOnlySection: getEditedContentOnlySection2,
getBlockEditingMode: getBlockEditingMode2,
getBlockName: getBlockName2,
@@ -26808,18 +27045,20 @@ var wp;
__unstableHasActiveBlockOverlayActive: __unstableHasActiveBlockOverlayActive2,
getSelectedBlocksInitialCaretPosition: getSelectedBlocksInitialCaretPosition2
} = unlock(select3(store));
- const blockWithoutAttributes = getBlockWithoutAttributes2(clientId);
+ const blockWithoutAttributes = getBlockWithoutAttributes2(clientId) ?? // An appender ghost renders from its block object until it
+ // is inserted on entry; it is never selected before that.
+ (clientId === ghostBlockWithoutAttributes?.clientId ? ghostBlockWithoutAttributes : void 0);
if (!blockWithoutAttributes) {
return;
}
const {
hasBlockSupport: _hasBlockSupport,
getActiveBlockVariation
- } = select3(import_blocks23.store);
- const attributes2 = getBlockAttributes3(clientId);
+ } = select3(import_blocks25.store);
+ const attributes2 = getBlockAttributes3(clientId) ?? ghostBlock?.attributes;
const { name: blockName, isValid: isValid22 } = blockWithoutAttributes;
- const blockType2 = (0, import_blocks23.getBlockType)(blockName);
- const settings2 = getSettings7();
+ const blockType2 = (0, import_blocks25.getBlockType)(blockName);
+ const settings2 = getSettings8();
const {
supportsLayout,
isPreviewMode: isPreviewMode2,
@@ -26840,9 +27079,9 @@ var wp;
isValid: isValid22,
themeSupportsLayout: supportsLayout,
index: getBlockIndex2(clientId),
- isReusable: (0, import_blocks23.isReusableBlock)(blockType2),
+ isReusable: (0, import_blocks25.isReusableBlock)(blockType2),
className: hasLightBlockWrapper ? attributes2.className : void 0,
- defaultClassName: hasLightBlockWrapper ? (0, import_blocks23.getBlockDefaultClassName)(blockName) : void 0,
+ defaultClassName: hasLightBlockWrapper ? (0, import_blocks25.getBlockDefaultClassName)(blockName) : void 0,
blockTitle: blockType2?.title,
bindableAttributes: bindableAttributes2,
blockVisibility: blockVisibility22,
@@ -26864,8 +27103,10 @@ var wp;
clientId,
checkDeep
);
- const sectionBlockClientId = _isSectionBlock(clientId) ? clientId : getParentSectionBlock2(clientId);
- const multiple = (0, import_blocks23.hasBlockSupport)(blockName, "multiple", true);
+ const isSectionBlock22 = _isSectionBlock(clientId);
+ const sectionBlockClientId = isSectionBlock22 ? clientId : getParentSectionBlock2(clientId);
+ const isSelectionWithinCurrentSection2 = isBlockSelected2(sectionBlockClientId) || !!sectionBlockClientId && hasSelectedInnerBlock2(sectionBlockClientId, checkDeep);
+ const multiple = (0, import_blocks25.hasBlockSupport)(blockName, "multiple", true);
const blocksWithSameName = multiple ? [] : getBlocksByName2(blockName);
const isInvalid = blocksWithSameName.length && blocksWithSameName[0] !== clientId;
return {
@@ -26873,9 +27114,9 @@ var wp;
mode: getBlockMode2(clientId),
isSelectionEnabled: isSelectionEnabled22(),
isLocked: !!getTemplateLock2(rootClientId),
- isSectionBlock: _isSectionBlock(clientId),
+ isSectionBlock: isSectionBlock22,
isWithinSectionBlock: !!sectionBlockClientId,
- isSelectionWithinCurrentSection: isBlockSelected2(sectionBlockClientId) || hasSelectedInnerBlock2(sectionBlockClientId, checkDeep),
+ isSelectionWithinCurrentSection: isSelectionWithinCurrentSection2,
blockType: blockType2,
canRemove: canRemove2,
canMove: canMove2,
@@ -26908,7 +27149,7 @@ var wp;
viewportSettings: viewportSettings2
};
},
- [clientId, rootClientId]
+ [clientId, rootClientId, ghostBlock, ghostBlockWithoutAttributes]
);
const defaultViewRef = (0, import_compose19.useRefEffect)((element) => {
if (element) {
@@ -26969,7 +27210,7 @@ var wp;
isSelectionWithinCurrentSection,
isEditingDisabled,
hasEditableOutline,
- className,
+ className: className2,
defaultClassName,
originalBlockClientId,
bindableAttributes,
@@ -26979,8 +27220,10 @@ var wp;
} = selectedProps;
const privateContext = {
isPreviewMode,
+ ghostBlock,
+ rootClientId,
clientId,
- className,
+ className: className2,
index: index2,
mode: mode2,
name,
@@ -27019,7 +27262,7 @@ var wp;
if (isBlockCurrentlyHidden && !isSelected && !isMultiSelected && !hasChildSelected) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(PrivateBlockContext.Provider, { value: privateContext, children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(PrivateBlockContext.Provider, { value: privateContext, children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
BlockListBlock,
{
...props,
@@ -27045,26 +27288,26 @@ var wp;
var block_default2 = (0, import_element33.memo)(BlockListBlockProvider);
// packages/block-editor/build-module/components/block-list-appender/index.mjs
- var import_data68 = __toESM(require_data(), 1);
- var import_blocks40 = __toESM(require_blocks(), 1);
+ var import_data69 = __toESM(require_data(), 1);
+ var import_blocks43 = __toESM(require_blocks(), 1);
// packages/block-editor/build-module/components/default-block-appender/index.mjs
- var import_i18n65 = __toESM(require_i18n(), 1);
+ var import_i18n68 = __toESM(require_i18n(), 1);
var import_html_entities = __toESM(require_html_entities(), 1);
- var import_data67 = __toESM(require_data(), 1);
+ var import_data68 = __toESM(require_data(), 1);
var import_keycodes9 = __toESM(require_keycodes(), 1);
// packages/block-editor/build-module/components/inserter/index.mjs
- var import_a11y10 = __toESM(require_a11y(), 1);
- var import_i18n64 = __toESM(require_i18n(), 1);
- var import_components61 = __toESM(require_components(), 1);
- var import_data66 = __toESM(require_data(), 1);
- var import_blocks39 = __toESM(require_blocks(), 1);
- var import_element132 = __toESM(require_element(), 1);
+ var import_a11y11 = __toESM(require_a11y(), 1);
+ var import_i18n67 = __toESM(require_i18n(), 1);
+ var import_components59 = __toESM(require_components(), 1);
+ var import_data67 = __toESM(require_data(), 1);
+ var import_blocks42 = __toESM(require_blocks(), 1);
+ var import_element140 = __toESM(require_element(), 1);
// packages/block-editor/build-module/components/inserter/menu.mjs
- var import_element130 = __toESM(require_element(), 1);
- var import_components59 = __toESM(require_components(), 1);
+ var import_element138 = __toESM(require_element(), 1);
+ var import_components57 = __toESM(require_components(), 1);
// packages/ui/build-module/badge/badge.mjs
var import_element48 = __toESM(require_element(), 1);
@@ -27246,7 +27489,7 @@ var wp;
}
// node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs
- var import_jsx_runtime152 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime153 = __toESM(require_jsx_runtime(), 1);
function CompositeList(props) {
const {
children,
@@ -27352,7 +27595,7 @@ var wp;
labelsRef,
nextIndexRef
}), [register2, unregister, subscribeMapChange, elementsRef, labelsRef, nextIndexRef]);
- return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(CompositeListContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(CompositeListContext.Provider, {
value: contextValue,
children
});
@@ -27542,8 +27785,8 @@ var wp;
}
// node_modules/@base-ui/react/utils/resolveClassName.mjs
- function resolveClassName(className, state) {
- return typeof className === "function" ? className(state) : className;
+ function resolveClassName(className2, state) {
+ return typeof className2 === "function" ? className2(state) : className2;
}
// node_modules/@base-ui/react/utils/resolveStyle.mjs
@@ -27730,7 +27973,7 @@ var wp;
stateAttributesMapping: stateAttributesMapping10,
enabled = true
} = params;
- const className = enabled ? resolveClassName(classNameProp, state) : void 0;
+ const className2 = enabled ? resolveClassName(classNameProp, state) : void 0;
const style = enabled ? resolveStyle2(styleProp, state) : void 0;
const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping10) : EMPTY_OBJECT;
const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : void 0;
@@ -27747,8 +27990,8 @@ var wp;
if (!enabled) {
return EMPTY_OBJECT;
}
- if (className !== void 0) {
- outProps.className = mergeClassNames(outProps.className, className);
+ if (className2 !== void 0) {
+ outProps.className = mergeClassNames(outProps.className, className2);
}
if (style !== void 0) {
outProps.style = mergeObjects(outProps.style, style);
@@ -28435,7 +28678,7 @@ var wp;
function getNearestOverflowAncestor(node) {
const parentNode = getParentNode(node);
if (isLastTraversableNode(parentNode)) {
- return node.ownerDocument ? node.ownerDocument.body : node.body;
+ return (node.ownerDocument || node).body;
}
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
return parentNode;
@@ -29609,7 +29852,7 @@ var wp;
}
// node_modules/@base-ui/react/floating-ui-react/components/FloatingDelayGroup.mjs
- var import_jsx_runtime153 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime154 = __toESM(require_jsx_runtime(), 1);
var FloatingDelayGroupContext = /* @__PURE__ */ React25.createContext({
hasProvider: false,
timeoutMs: 0,
@@ -29653,7 +29896,7 @@ var wp;
close: getDelay(delay, "close")
};
}, [delay, currentIdRef, delayRef, initialDelayRef]);
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(FloatingDelayGroupContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(FloatingDelayGroupContext.Provider, {
value: React25.useMemo(() => ({
hasProvider: true,
delayRef,
@@ -29815,7 +30058,7 @@ var wp;
};
// node_modules/@base-ui/react/utils/FocusGuard.mjs
- var import_jsx_runtime154 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime155 = __toESM(require_jsx_runtime(), 1);
var FocusGuard = /* @__PURE__ */ React26.forwardRef(function FocusGuard2(props, ref) {
const [role, setRole] = React26.useState();
useIsoLayoutEffect(() => {
@@ -29828,7 +30071,7 @@ var wp;
// Role is only for VoiceOver
role
};
- return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", {
+ return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", {
...props,
ref,
style: visuallyHidden,
@@ -29933,12 +30176,12 @@ var wp;
return oppositeSideMap[side] + placement.slice(side.length);
}
function expandPaddingObject(padding) {
+ var _padding$top, _padding$right, _padding$bottom, _padding$left;
return {
- top: 0,
- right: 0,
- bottom: 0,
- left: 0,
- ...padding
+ top: (_padding$top = padding.top) != null ? _padding$top : 0,
+ right: (_padding$right = padding.right) != null ? _padding$right : 0,
+ bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
+ left: (_padding$left = padding.left) != null ? _padding$left : 0
};
}
function getPaddingObject(padding) {
@@ -30432,7 +30675,7 @@ var wp;
};
// node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs
- var import_jsx_runtime155 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime156 = __toESM(require_jsx_runtime(), 1);
var PortalContext = /* @__PURE__ */ React27.createContext(null);
if (true) PortalContext.displayName = "PortalContext";
var usePortalContext = () => React27.useContext(PortalContext);
@@ -30498,7 +30741,7 @@ var wp;
var FloatingPortal = /* @__PURE__ */ React27.forwardRef(function FloatingPortal2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
children,
container,
@@ -30557,10 +30800,10 @@ var wp;
portalNode,
setFocusManagerState
}), [portalNode]);
- return /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)(React27.Fragment, {
- children: [portalSubtree, /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)(PortalContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)(React27.Fragment, {
+ children: [portalSubtree, /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)(PortalContext.Provider, {
value: portalContextValue,
- children: [shouldRenderGuards && portalNode && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(FocusGuard, {
+ children: [shouldRenderGuards && portalNode && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(FocusGuard, {
"data-type": "outside",
ref: beforeOutsideRef,
onFocus: (event) => {
@@ -30572,10 +30815,10 @@ var wp;
prevTabbable?.focus();
}
}
- }), shouldRenderGuards && portalNode && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", {
+ }), shouldRenderGuards && portalNode && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("span", {
"aria-owns": portalNode.id,
style: ownerVisuallyHidden
- }), portalNode && /* @__PURE__ */ ReactDOM2.createPortal(children, portalNode), shouldRenderGuards && portalNode && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(FocusGuard, {
+ }), portalNode && /* @__PURE__ */ ReactDOM2.createPortal(children, portalNode), shouldRenderGuards && portalNode && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(FocusGuard, {
"data-type": "outside",
ref: afterOutsideRef,
onFocus: (event) => {
@@ -30619,7 +30862,7 @@ var wp;
}
// node_modules/@base-ui/react/floating-ui-react/components/FloatingTree.mjs
- var import_jsx_runtime156 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime157 = __toESM(require_jsx_runtime(), 1);
var FloatingNodeContext = /* @__PURE__ */ React28.createContext(null);
if (true) FloatingNodeContext.displayName = "FloatingNodeContext";
var FloatingTreeContext = /* @__PURE__ */ React28.createContext(null);
@@ -30631,7 +30874,7 @@ var wp;
};
// node_modules/@base-ui/react/floating-ui-react/components/FloatingFocusManager.mjs
- var import_jsx_runtime157 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime158 = __toESM(require_jsx_runtime(), 1);
function getEventType(event, lastInteractionType) {
const win = getWindow(getTarget(event));
if (event instanceof win.KeyboardEvent) {
@@ -31070,8 +31313,8 @@ var wp;
};
}, [disabled2, floatingFocusElement]);
const shouldRenderGuards = !disabled2 && (modal ? !isUntrappedTypeableCombobox : true) && (isInsidePortal || modal);
- return /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)(React29.Fragment, {
- children: [shouldRenderGuards && /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(FocusGuard, {
+ return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(React29.Fragment, {
+ children: [shouldRenderGuards && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(FocusGuard, {
"data-type": "inside",
ref: mergedBeforeGuardRef,
onFocus: (event) => {
@@ -31088,7 +31331,7 @@ var wp;
}
}
}
- }), children, shouldRenderGuards && /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(FocusGuard, {
+ }), children, shouldRenderGuards && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(FocusGuard, {
"data-type": "inside",
ref: mergedAfterGuardRef,
onFocus: (event) => {
@@ -31564,8 +31807,8 @@ var wp;
const isScrollableY = lastTraversableNode || scrollRe.test(style.overflowY);
const canScrollX = isScrollableX && target.clientWidth > 0 && target.scrollWidth > target.clientWidth;
const canScrollY = isScrollableY && target.clientHeight > 0 && target.scrollHeight > target.clientHeight;
- const isRTL18 = style.direction === "rtl";
- const pressedVerticalScrollbar = canScrollY && (isRTL18 ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);
+ const isRTL19 = style.direction === "rtl";
+ const pressedVerticalScrollbar = canScrollY && (isRTL19 ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);
const pressedHorizontalScrollbar = canScrollX && event.offsetY > target.clientHeight;
if (pressedVerticalScrollbar || pressedHorizontalScrollbar) {
return;
@@ -31802,13 +32045,9 @@ var wp;
y: reference.y
};
}
- switch (getAlignment(placement)) {
- case "start":
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
- break;
- case "end":
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
- break;
+ const alignment = getAlignment(placement);
+ if (alignment) {
+ coords[alignmentAxis] += commonAlign * (alignment === "end" ? 1 : -1) * (rtl && isVertical ? -1 : 1);
}
return coords;
}
@@ -31848,10 +32087,7 @@ var wp;
height: rects.floating.height
} : rects.reference;
const offsetParent = await (platform3.getOffsetParent == null ? void 0 : platform3.getOffsetParent(elements.floating));
- const offsetScale = await (platform3.isElement == null ? void 0 : platform3.isElement(offsetParent)) ? await (platform3.getScale == null ? void 0 : platform3.getScale(offsetParent)) || {
- x: 1,
- y: 1
- } : {
+ const offsetScale = await (platform3.isElement == null ? void 0 : platform3.isElement(offsetParent)) && await (platform3.getScale == null ? void 0 : platform3.getScale(offsetParent)) || {
x: 1,
y: 1
};
@@ -32230,23 +32466,16 @@ var wp;
y: y2
};
const overflow = await platform3.detectOverflow(state, detectOverflowOptions);
- const crossAxis = getSideAxis(getSide(placement));
+ const crossAxis = getSideAxis(placement);
const mainAxis = getOppositeAxis(crossAxis);
let mainAxisCoord = coords[mainAxis];
let crossAxisCoord = coords[crossAxis];
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === "y" ? "top" : "left"], coord, coord - overflow[axis === "y" ? "bottom" : "right"]);
if (checkMainAxis) {
- const minSide = mainAxis === "y" ? "top" : "left";
- const maxSide = mainAxis === "y" ? "bottom" : "right";
- const min2 = mainAxisCoord + overflow[minSide];
- const max2 = mainAxisCoord - overflow[maxSide];
- mainAxisCoord = clamp(min2, mainAxisCoord, max2);
+ mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
}
if (checkCrossAxis) {
- const minSide = crossAxis === "y" ? "top" : "left";
- const maxSide = crossAxis === "y" ? "bottom" : "right";
- const min2 = crossAxisCoord + overflow[minSide];
- const max2 = crossAxisCoord - overflow[maxSide];
- crossAxisCoord = clamp(min2, crossAxisCoord, max2);
+ crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
}
const limitedCoords = limiter.fn({
...state,
@@ -32274,6 +32503,7 @@ var wp;
return {
options,
fn(state) {
+ var _rawOffset$mainAxis, _rawOffset$crossAxis;
const {
x: x2,
y: y2,
@@ -32299,9 +32529,8 @@ var wp;
mainAxis: rawOffset,
crossAxis: 0
} : {
- mainAxis: 0,
- crossAxis: 0,
- ...rawOffset
+ mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
+ crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
};
if (checkMainAxis) {
const len = mainAxis === "y" ? "height" : "width";
@@ -32340,7 +32569,6 @@ var wp;
name: "size",
options,
async fn(state) {
- var _state$middlewareData, _state$middlewareData2;
const {
placement,
rects,
@@ -32373,24 +32601,21 @@ var wp;
const maximumClippingWidth = width - overflow.left - overflow.right;
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
- const noShift = !state.middlewareData.shift;
+ const shiftData = state.middlewareData.shift;
+ const noShift = !shiftData;
let availableHeight = overflowAvailableHeight;
let availableWidth = overflowAvailableWidth;
- if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
+ if (shiftData != null && shiftData.enabled.x) {
availableWidth = maximumClippingWidth;
}
- if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
+ if (shiftData != null && shiftData.enabled.y) {
availableHeight = maximumClippingHeight;
}
if (noShift && !alignment) {
- const xMin = max(overflow.left, 0);
- const xMax = max(overflow.right, 0);
- const yMin = max(overflow.top, 0);
- const yMax = max(overflow.bottom, 0);
if (isYAxis) {
- availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
+ availableWidth = width - 2 * max(overflow.left, overflow.right);
} else {
- availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
+ availableHeight = height - 2 * max(overflow.top, overflow.bottom);
}
}
await apply({
@@ -32472,10 +32697,7 @@ var wp;
if (isFixed === void 0) {
isFixed = false;
}
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
- return false;
- }
- return isFixed;
+ return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
}
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
if (includeScale === void 0) {
@@ -32501,12 +32723,12 @@ var wp;
let y2 = (clientRect.top + visualOffsets.y) / scale.y;
let width = clientRect.width / scale.x;
let height = clientRect.height / scale.y;
- if (domElement) {
+ if (domElement && offsetParent) {
const win = getWindow(domElement);
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
+ const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
let currentWin = win;
let currentIFrame = getFrameElement(currentWin);
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
+ while (currentIFrame && offsetWin !== currentWin) {
const iframeScale = getScale(currentIFrame);
const iframeRect = currentIFrame.getBoundingClientRect();
const css = getComputedStyle2(currentIFrame);
@@ -32565,7 +32787,7 @@ var wp;
let scale = createCoords(1);
const offsets = createCoords(0);
const isOffsetParentAnElement = isHTMLElement(offsetParent);
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (isOffsetParentAnElement || !isFixed) {
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
scroll = getNodeScroll(offsetParent);
}
@@ -32585,15 +32807,14 @@ var wp;
};
}
function getClientRects(element) {
- return Array.from(element.getClientRects());
+ return element.getClientRects ? Array.from(element.getClientRects()) : [];
}
- function getDocumentRect(element) {
- const html = getDocumentElement(element);
- const scroll = getNodeScroll(element);
- const body = element.ownerDocument.body;
+ function getDocumentRect(html) {
+ const scroll = getNodeScroll(html);
+ const body = html.ownerDocument.body;
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
- let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
+ let x2 = -scroll.scrollLeft + getWindowScrollBarX(html);
const y2 = -scroll.scrollTop;
if (getComputedStyle2(body).direction === "rtl") {
x2 += max(html.clientWidth, body.clientWidth) - width;
@@ -32606,7 +32827,11 @@ var wp;
};
}
var SCROLLBAR_MAX = 25;
- function getViewportRect(element, strategy) {
+ function getViewportRect(element, strategy, rootBoundary) {
+ if (rootBoundary === void 0) {
+ rootBoundary = "viewport";
+ }
+ const isLayoutViewport = rootBoundary === "layoutViewport";
const win = getWindow(element);
const html = getDocumentElement(element);
const visualViewport = win.visualViewport;
@@ -32615,12 +32840,19 @@ var wp;
let x2 = 0;
let y2 = 0;
if (visualViewport) {
- width = visualViewport.width;
- height = visualViewport.height;
- const visualViewportBased = isWebKit();
- if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
- x2 = visualViewport.offsetLeft;
- y2 = visualViewport.offsetTop;
+ const layoutRelativeClientCoords = !isWebKit() || strategy === "fixed";
+ if (isLayoutViewport) {
+ if (!layoutRelativeClientCoords) {
+ x2 = -visualViewport.offsetLeft;
+ y2 = -visualViewport.offsetTop;
+ }
+ } else {
+ width = visualViewport.width;
+ height = visualViewport.height;
+ if (layoutRelativeClientCoords) {
+ x2 = visualViewport.offsetLeft;
+ y2 = visualViewport.offsetTop;
+ }
}
}
const windowScrollbarX = getWindowScrollBarX(html);
@@ -32629,12 +32861,11 @@ var wp;
const body = doc.body;
const bodyStyles = getComputedStyle(body);
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
- const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
- if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
- width -= clippingStableScrollbarWidth;
+ const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
+ const gutter = getComputedStyle(html).scrollbarGutter === "stable both-edges" ? reservedWidth / 2 : reservedWidth;
+ if (gutter <= SCROLLBAR_MAX) {
+ width -= gutter;
}
- } else if (windowScrollbarX <= SCROLLBAR_MAX) {
- width += windowScrollbarX;
}
return {
width,
@@ -32647,7 +32878,7 @@ var wp;
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
const top = clientRect.top + element.clientTop;
const left = clientRect.left + element.clientLeft;
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
+ const scale = getScale(element);
const width = element.clientWidth * scale.x;
const height = element.clientHeight * scale.y;
const x2 = left * scale.x;
@@ -32661,8 +32892,8 @@ var wp;
}
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
let rect;
- if (clippingAncestor === "viewport") {
- rect = getViewportRect(element, strategy);
+ if (clippingAncestor === "viewport" || clippingAncestor === "layoutViewport") {
+ rect = getViewportRect(element, strategy, clippingAncestor);
} else if (clippingAncestor === "document") {
rect = getDocumentRect(getDocumentElement(element));
} else if (isElement(clippingAncestor)) {
@@ -32678,33 +32909,24 @@ var wp;
}
return rectToClientRect(rect);
}
- function hasFixedPositionAncestor(element, stopNode) {
- const parentNode = getParentNode(element);
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
- return false;
- }
- return getComputedStyle2(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
- }
function getClippingElementAncestors(element, cache) {
const cachedResult = cache.get(element);
if (cachedResult) {
return cachedResult;
}
let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
- let currentContainingBlockComputedStyle = null;
+ let lastKeptComputedStyle = null;
const elementIsFixed = getComputedStyle2(element).position === "fixed";
let currentNode = elementIsFixed ? getParentNode(element) : element;
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
const computedStyle = getComputedStyle2(currentNode);
const currentNodeIsContaining = isContainingBlock(currentNode);
- if (!currentNodeIsContaining && computedStyle.position === "fixed") {
- currentContainingBlockComputedStyle = null;
- }
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
+ const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? "fixed" : "";
+ const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === "fixed" || lastPosition === "absolute" && computedStyle.position === "static");
if (shouldDropCurrentNode) {
result = result.filter((ancestor) => ancestor !== currentNode);
} else {
- currentContainingBlockComputedStyle = computedStyle;
+ lastKeptComputedStyle = computedStyle;
}
currentNode = getParentNode(currentNode);
}
@@ -32759,10 +32981,7 @@ var wp;
scrollTop: 0
};
const offsets = createCoords(0);
- function setLeftRTLScrollbarOffset() {
- offsets.x = getWindowScrollBarX(documentElement);
- }
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (isOffsetParentAnElement || !isFixed) {
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
scroll = getNodeScroll(offsetParent);
}
@@ -32770,12 +32989,10 @@ var wp;
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
offsets.x = offsetRect.x + offsetParent.clientLeft;
offsets.y = offsetRect.y + offsetParent.clientTop;
- } else if (documentElement) {
- setLeftRTLScrollbarOffset();
}
}
- if (isFixed && !isOffsetParentAnElement && documentElement) {
- setLeftRTLScrollbarOffset();
+ if (!isOffsetParentAnElement && documentElement) {
+ offsets.x = getWindowScrollBarX(documentElement);
}
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
@@ -32859,7 +33076,7 @@ var wp;
function rectsAreEqual(a2, b2) {
return a2.x === b2.x && a2.y === b2.y && a2.width === b2.width && a2.height === b2.height;
}
- function observeMove(element, onMove) {
+ function observeMove(element, onMove, ancestorResize) {
let io = null;
let timeoutId;
const root = getDocumentElement(element);
@@ -32902,6 +33119,9 @@ var wp;
let isFirstUpdate = true;
function handleObserve(entries) {
const ratio = entries[0].intersectionRatio;
+ if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
+ return refresh();
+ }
if (ratio !== threshold) {
if (!isFirstUpdate) {
return refresh();
@@ -32914,9 +33134,6 @@ var wp;
refresh(false, ratio);
}
}
- if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
- refresh();
- }
isFirstUpdate = false;
}
try {
@@ -32930,8 +33147,14 @@ var wp;
}
io.observe(element);
}
+ const win = getWindow(element);
+ const handleResize = () => refresh(ancestorResize);
+ win.addEventListener("resize", handleResize);
refresh(true);
- return cleanup;
+ return () => {
+ win.removeEventListener("resize", handleResize);
+ cleanup();
+ };
}
function autoUpdate(reference, floating, update4, options) {
if (options === void 0) {
@@ -32947,12 +33170,10 @@ var wp;
const referenceEl = unwrapElement(reference);
const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
ancestors.forEach((ancestor) => {
- ancestorScroll && ancestor.addEventListener("scroll", update4, {
- passive: true
- });
+ ancestorScroll && ancestor.addEventListener("scroll", update4);
ancestorResize && ancestor.addEventListener("resize", update4);
});
- const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update4) : null;
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update4, ancestorResize) : null;
let reobserveFrame = -1;
let resizeObserver = null;
if (elementResize) {
@@ -33011,11 +33232,9 @@ var wp;
var limitShift2 = limitShift;
var computePosition2 = (reference, floating, options) => {
const cache = /* @__PURE__ */ new Map();
- const mergedOptions = {
- platform: platform2,
- ...options
- };
+ const mergedOptions = options != null ? options : {};
const platformWithCache = {
+ ...platform2,
...mergedOptions.platform,
_c: cache
};
@@ -36044,7 +36263,7 @@ var wp;
// node_modules/@base-ui/react/utils/InternalBackdrop.mjs
var React45 = __toESM(require_react(), 1);
- var import_jsx_runtime158 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime159 = __toESM(require_jsx_runtime(), 1);
var InternalBackdrop = /* @__PURE__ */ React45.forwardRef(function InternalBackdrop2(props, ref) {
const {
cutout,
@@ -36055,7 +36274,7 @@ var wp;
const rect = cutout.getBoundingClientRect();
clipPath = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${rect.left}px ${rect.top}px,${rect.left}px ${rect.bottom}px,${rect.right}px ${rect.bottom}px,${rect.right}px ${rect.top}px,${rect.left}px ${rect.top}px)`;
}
- return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", {
+ return /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", {
ref,
role: "presentation",
"data-base-ui-inert": "",
@@ -36206,7 +36425,7 @@ var wp;
}
// node_modules/@base-ui/react/internals/resolveValueLabel.mjs
- var import_jsx_runtime159 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime160 = __toESM(require_jsx_runtime(), 1);
function isGroupedItems(items) {
return items != null && items.length > 0 && typeof items[0] === "object" && items[0] != null && "items" in items[0];
}
@@ -36292,7 +36511,7 @@ var wp;
if (index2 > 0) {
acc.push(", ");
}
- acc.push(/* @__PURE__ */ (0, import_jsx_runtime159.jsx)(React49.Fragment, {
+ acc.push(/* @__PURE__ */ (0, import_jsx_runtime160.jsx)(React49.Fragment, {
children: resolveSelectedLabel(value, items, itemToStringLabel)
}, index2));
return acc;
@@ -36622,12 +36841,12 @@ var wp;
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
const minPadding = Math.min(paddingObject[minProp], largestPossiblePadding);
const maxPadding = Math.min(paddingObject[maxProp], largestPossiblePadding);
- const min2 = minPadding;
- const max2 = clientSize - arrowDimensions[length] - maxPadding;
+ const min3 = minPadding;
+ const max3 = clientSize - arrowDimensions[length] - maxPadding;
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
- const offset4 = clamp(min2, center, max2);
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset4 && rects.reference[length] / 2 - (center < min2 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
- const alignmentOffset = shouldAddOffset ? center < min2 ? center - min2 : center - max2 : 0;
+ const offset4 = clamp(min3, center, max3);
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset4 && rects.reference[length] / 2 - (center < min3 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
+ const alignmentOffset = shouldAddOffset ? center < min3 ? center - min3 : center - max3 : 0;
return {
[axis]: coords[axis] + alignmentOffset,
data: {
@@ -37157,7 +37376,7 @@ var wp;
var React57 = __toESM(require_react(), 1);
var Separator = /* @__PURE__ */ React57.forwardRef(function SeparatorComponent(componentProps, forwardedRef) {
const {
- className,
+ className: className2,
render: render4,
orientation = "horizontal",
style,
@@ -37178,23 +37397,54 @@ var wp;
});
if (true) Separator.displayName = "Separator";
- // node_modules/@base-ui/react/field/item/FieldItemContext.mjs
+ // node_modules/@base-ui/react/button/Button.mjs
var React58 = __toESM(require_react(), 1);
- var FieldItemContext = /* @__PURE__ */ React58.createContext({
+ var Button6 = /* @__PURE__ */ React58.forwardRef(function Button7(componentProps, forwardedRef) {
+ const {
+ render: render4,
+ className: className2,
+ disabled: disabled2 = false,
+ focusableWhenDisabled = false,
+ nativeButton = true,
+ style,
+ ...elementProps
+ } = componentProps;
+ const {
+ getButtonProps,
+ buttonRef
+ } = useButton({
+ disabled: disabled2,
+ focusableWhenDisabled,
+ native: nativeButton
+ });
+ const state = {
+ disabled: disabled2
+ };
+ return useRenderElement("button", componentProps, {
+ state,
+ ref: [forwardedRef, buttonRef],
+ props: [elementProps, getButtonProps]
+ });
+ });
+ if (true) Button6.displayName = "Button";
+
+ // node_modules/@base-ui/react/field/item/FieldItemContext.mjs
+ var React59 = __toESM(require_react(), 1);
+ var FieldItemContext = /* @__PURE__ */ React59.createContext({
disabled: false
});
if (true) FieldItemContext.displayName = "FieldItemContext";
function useFieldItemContext() {
- const context = React58.useContext(FieldItemContext);
+ const context = React59.useContext(FieldItemContext);
return context;
}
// node_modules/@base-ui/react/checkbox-group/CheckboxGroupContext.mjs
- var React59 = __toESM(require_react(), 1);
- var CheckboxGroupContext = /* @__PURE__ */ React59.createContext(void 0);
+ var React60 = __toESM(require_react(), 1);
+ var CheckboxGroupContext = /* @__PURE__ */ React60.createContext(void 0);
if (true) CheckboxGroupContext.displayName = "CheckboxGroupContext";
function useCheckboxGroupContext(optional = true) {
- const context = React59.useContext(CheckboxGroupContext);
+ const context = React60.useContext(CheckboxGroupContext);
if (context === void 0 && !optional) {
throw new Error(true ? "Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>." : formatErrorMessage_default(3));
}
@@ -37210,7 +37460,7 @@ var wp;
});
// node_modules/@base-ui/react/collapsible/root/CollapsibleRoot.mjs
- var React60 = __toESM(require_react(), 1);
+ var React61 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/collapsible/root/stateAttributesMapping.mjs
var collapsibleStateAttributesMapping = {
@@ -37219,11 +37469,11 @@ var wp;
};
// node_modules/@base-ui/react/collapsible/root/CollapsibleRoot.mjs
- var import_jsx_runtime160 = __toESM(require_jsx_runtime(), 1);
- var CollapsibleRoot = /* @__PURE__ */ React60.forwardRef(function CollapsibleRoot2(componentProps, forwardedRef) {
+ var import_jsx_runtime161 = __toESM(require_jsx_runtime(), 1);
+ var CollapsibleRoot = /* @__PURE__ */ React61.forwardRef(function CollapsibleRoot2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
defaultOpen = false,
disabled: disabled2 = false,
onOpenChange: onOpenChangeProp,
@@ -37238,12 +37488,12 @@ var wp;
onOpenChange,
disabled: disabled2
});
- const state = React60.useMemo(() => ({
+ const state = React61.useMemo(() => ({
open: collapsible.open,
disabled: collapsible.disabled,
transitionStatus: collapsible.transitionStatus
}), [collapsible.open, collapsible.disabled, collapsible.transitionStatus]);
- const contextValue = React60.useMemo(() => ({
+ const contextValue = React61.useMemo(() => ({
...collapsible,
onOpenChange,
state
@@ -37254,7 +37504,7 @@ var wp;
props: elementProps,
stateAttributesMapping: collapsibleStateAttributesMapping
});
- return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(CollapsibleRootContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(CollapsibleRootContext.Provider, {
value: contextValue,
children: element
});
@@ -37262,12 +37512,12 @@ var wp;
if (true) CollapsibleRoot.displayName = "CollapsibleRoot";
// node_modules/@base-ui/react/collapsible/trigger/CollapsibleTrigger.mjs
- var React61 = __toESM(require_react(), 1);
+ var React62 = __toESM(require_react(), 1);
var stateAttributesMapping = {
...triggerOpenStateMapping,
...transitionStatusMapping
};
- var CollapsibleTrigger = /* @__PURE__ */ React61.forwardRef(function CollapsibleTrigger2(componentProps, forwardedRef) {
+ var CollapsibleTrigger = /* @__PURE__ */ React62.forwardRef(function CollapsibleTrigger2(componentProps, forwardedRef) {
const {
panelId,
open,
@@ -37276,7 +37526,7 @@ var wp;
disabled: contextDisabled
} = useCollapsibleRootContext();
const {
- className,
+ className: className2,
disabled: disabled2 = contextDisabled,
render: render4,
nativeButton = true,
@@ -37306,7 +37556,7 @@ var wp;
if (true) CollapsibleTrigger.displayName = "CollapsibleTrigger";
// node_modules/@base-ui/react/collapsible/panel/CollapsiblePanel.mjs
- var React62 = __toESM(require_react(), 1);
+ var React63 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/collapsible/panel/CollapsiblePanelCssVars.mjs
var CollapsiblePanelCssVars = /* @__PURE__ */ (function(CollapsiblePanelCssVars2) {
@@ -37316,9 +37566,9 @@ var wp;
})({});
// node_modules/@base-ui/react/collapsible/panel/CollapsiblePanel.mjs
- var CollapsiblePanel = /* @__PURE__ */ React62.forwardRef(function CollapsiblePanel2(componentProps, forwardedRef) {
+ var CollapsiblePanel = /* @__PURE__ */ React63.forwardRef(function CollapsiblePanel2(componentProps, forwardedRef) {
const {
- className,
+ className: className2,
hiddenUntilFound: hiddenUntilFoundProp,
keepMounted: keepMountedProp,
render: render4,
@@ -37493,11 +37743,11 @@ var wp;
}
// node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs
- var React63 = __toESM(require_react(), 1);
- var ToolbarRootContext = /* @__PURE__ */ React63.createContext(void 0);
+ var React64 = __toESM(require_react(), 1);
+ var ToolbarRootContext = /* @__PURE__ */ React64.createContext(void 0);
if (true) ToolbarRootContext.displayName = "ToolbarRootContext";
function useToolbarRootContext(optional) {
- const context = React63.useContext(ToolbarRootContext);
+ const context = React64.useContext(ToolbarRootContext);
if (context === void 0 && !optional) {
throw new Error(true ? "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>." : formatErrorMessage_default(69));
}
@@ -37505,13 +37755,13 @@ var wp;
}
// node_modules/@base-ui/react/utils/usePopupViewport.mjs
- var React66 = __toESM(require_react(), 1);
+ var React68 = __toESM(require_react(), 1);
var ReactDOM6 = __toESM(require_react_dom(), 1);
// node_modules/@base-ui/utils/usePreviousValue.mjs
- var React64 = __toESM(require_react(), 1);
+ var React65 = __toESM(require_react(), 1);
function usePreviousValue(value) {
- const [state, setState] = React64.useState({
+ const [state, setState] = React65.useState({
current: value,
previous: null
});
@@ -37525,7 +37775,7 @@ var wp;
}
// node_modules/@base-ui/react/utils/usePopupAutoResize.mjs
- var React65 = __toESM(require_react(), 1);
+ var React66 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/utils/getCssDimensions.mjs
function getCssDimensions2(element) {
@@ -37560,12 +37810,12 @@ var wp;
} = parameters;
const runOnceAnimationsFinish = useAnimationsFinished(popupElement, true, false);
const animationFrame = useAnimationFrame();
- const committedDimensionsRef = React65.useRef(null);
- const isInitialRenderRef = React65.useRef(true);
- const restoreAnchoringStylesRef = React65.useRef(NOOP);
+ const committedDimensionsRef = React66.useRef(null);
+ const isInitialRenderRef = React66.useRef(true);
+ const restoreAnchoringStylesRef = React66.useRef(NOOP);
const onMeasureLayout = useStableCallback(onMeasureLayoutParam);
const onMeasureLayoutComplete = useStableCallback(onMeasureLayoutCompleteParam);
- const anchoringStyles = React65.useMemo(() => {
+ const anchoringStyles = React66.useMemo(() => {
let isOriginSide = side === "top";
let isPhysicalLeft = side === "left";
if (direction === "rtl") {
@@ -37676,8 +37926,25 @@ var wp;
positionerElement.style.setProperty("--positioner-height", height);
}
+ // node_modules/@base-ui/react/direction-provider/DirectionProvider.mjs
+ var React67 = __toESM(require_react(), 1);
+ var import_jsx_runtime162 = __toESM(require_jsx_runtime(), 1);
+ var DirectionProvider = function DirectionProvider2(props) {
+ const {
+ direction = "ltr"
+ } = props;
+ const contextValue = React67.useMemo(() => ({
+ direction
+ }), [direction]);
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(DirectionContext.Provider, {
+ value: contextValue,
+ children: props.children
+ });
+ };
+ if (true) DirectionProvider.displayName = "DirectionProvider";
+
// node_modules/@base-ui/react/utils/usePopupViewport.mjs
- var import_jsx_runtime161 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime163 = __toESM(require_jsx_runtime(), 1);
function usePopupViewport(parameters) {
const {
store: store2,
@@ -37695,15 +37962,15 @@ var wp;
const positionerElement = store2.useState("positionerElement");
const previousActiveTrigger = usePreviousValue(open ? activeTrigger : null);
const currentContentKey = usePopupContentKey(activeTriggerId, payload);
- const capturedNodeRef = React66.useRef(null);
- const [previousContentNode, setPreviousContentNode] = React66.useState(null);
- const [newTriggerOffset, setNewTriggerOffset] = React66.useState(null);
- const currentContainerRef = React66.useRef(null);
- const previousContainerRef = React66.useRef(null);
+ const capturedNodeRef = React68.useRef(null);
+ const [previousContentNode, setPreviousContentNode] = React68.useState(null);
+ const [newTriggerOffset, setNewTriggerOffset] = React68.useState(null);
+ const currentContainerRef = React68.useRef(null);
+ const previousContainerRef = React68.useRef(null);
const onAnimationsFinished = useAnimationsFinished(currentContainerRef, true, false);
const cleanupFrame = useAnimationFrame();
- const [previousContentDimensions, setPreviousContentDimensions] = React66.useState(null);
- const [showStartingStyleAttribute, setShowStartingStyleAttribute] = React66.useState(false);
+ const [previousContentDimensions, setPreviousContentDimensions] = React68.useState(null);
+ const [showStartingStyleAttribute, setShowStartingStyleAttribute] = React68.useState(false);
useIsoLayoutEffect(() => {
store2.set("hasViewport", true);
return () => {
@@ -37723,7 +37990,7 @@ var wp;
setPreviousContentDimensions(previousDimensions);
}
});
- const lastHandledTriggerRef = React66.useRef(null);
+ const lastHandledTriggerRef = React68.useRef(null);
useIsoLayoutEffect(() => {
if (!open || !mounted) {
lastHandledTriggerRef.current = null;
@@ -37762,14 +38029,14 @@ var wp;
const isTransitioning = previousContentNode != null;
let childrenToRender;
if (!isTransitioning) {
- childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", {
+ childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", {
"data-current": true,
ref: currentContainerRef,
children
}, currentContentKey);
} else {
- childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)(React66.Fragment, {
- children: [/* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", {
+ childrenToRender = /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(React68.Fragment, {
+ children: [/* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", {
"data-previous": true,
inert: inertValue(true),
ref: previousContainerRef,
@@ -37781,7 +38048,7 @@ var wp;
position: "absolute"
},
"data-ending-style": showStartingStyleAttribute ? void 0 : ""
- }, "previous"), /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", {
+ }, "previous"), /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", {
"data-current": true,
ref: currentContainerRef,
"data-starting-style": showStartingStyleAttribute ? "" : void 0,
@@ -37847,10 +38114,10 @@ var wp;
};
}
function usePopupContentKey(activeTriggerId, payload) {
- const [contentKey, setContentKey] = React66.useState(0);
- const previousActiveTriggerIdRef = React66.useRef(activeTriggerId);
- const previousPayloadRef = React66.useRef(payload);
- const pendingPayloadUpdateRef = React66.useRef(false);
+ const [contentKey, setContentKey] = React68.useState(0);
+ const previousActiveTriggerIdRef = React68.useRef(activeTriggerId);
+ const previousPayloadRef = React68.useRef(payload);
+ const pendingPayloadUpdateRef = React68.useRef(false);
useIsoLayoutEffect(() => {
const previousActiveTriggerId = previousActiveTriggerIdRef.current;
const previousPayload = previousPayloadRef.current;
@@ -37875,19 +38142,19 @@ var wp;
}
// node_modules/@base-ui/react/internals/csp-context/CSPContext.mjs
- var React67 = __toESM(require_react(), 1);
- var CSPContext = /* @__PURE__ */ React67.createContext(void 0);
+ var React69 = __toESM(require_react(), 1);
+ var CSPContext = /* @__PURE__ */ React69.createContext(void 0);
if (true) CSPContext.displayName = "CSPContext";
var DEFAULT_CSP_CONTEXT_VALUE = {
disableStyleElements: false
};
function useCSPContext() {
- return React67.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;
+ return React69.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;
}
// node_modules/@base-ui/react/internals/clamp.mjs
- function clamp2(val, min2 = Number.MIN_SAFE_INTEGER, max2 = Number.MAX_SAFE_INTEGER) {
- return Math.max(min2, Math.min(val, max2));
+ function clamp2(val, min3 = Number.MIN_SAFE_INTEGER, max3 = Number.MAX_SAFE_INTEGER) {
+ return Math.max(min3, Math.min(val, max3));
}
// node_modules/@base-ui/react/field/index.parts.mjs
@@ -37903,14 +38170,14 @@ var wp;
});
// node_modules/@base-ui/react/field/root/FieldRoot.mjs
- var React72 = __toESM(require_react(), 1);
+ var React74 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/fieldset/root/FieldsetRootContext.mjs
- var React68 = __toESM(require_react(), 1);
- var FieldsetRootContext = /* @__PURE__ */ React68.createContext(void 0);
+ var React70 = __toESM(require_react(), 1);
+ var FieldsetRootContext = /* @__PURE__ */ React70.createContext(void 0);
if (true) FieldsetRootContext.displayName = "FieldsetRootContext";
function useFieldsetRootContext(optional = false) {
- const context = React68.useContext(FieldsetRootContext);
+ const context = React70.useContext(FieldsetRootContext);
if (!context && !optional) {
throw new Error(true ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : formatErrorMessage_default(86));
}
@@ -37918,14 +38185,14 @@ var wp;
}
// node_modules/@base-ui/react/internals/labelable-provider/LabelableProvider.mjs
- var React69 = __toESM(require_react(), 1);
- var import_jsx_runtime162 = __toESM(require_jsx_runtime(), 1);
+ var React71 = __toESM(require_react(), 1);
+ var import_jsx_runtime164 = __toESM(require_jsx_runtime(), 1);
var LabelableProvider = function LabelableProvider2(props) {
const defaultId = useBaseUiId();
const initialControlId = props.controlId === void 0 ? defaultId : props.controlId;
- const [controlId, setControlIdState] = React69.useState(initialControlId);
- const [labelId, setLabelId] = React69.useState(props.labelId);
- const [messageIds, setMessageIds] = React69.useState([]);
+ const [controlId, setControlIdState] = React71.useState(initialControlId);
+ const [labelId, setLabelId] = React71.useState(props.labelId);
+ const [messageIds, setMessageIds] = React71.useState([]);
const registrationsRef = useRefWithInit(() => /* @__PURE__ */ new Map());
const {
messageIds: parentMessageIds
@@ -37953,7 +38220,7 @@ var wp;
return nextControlId;
});
});
- const getDescriptionProps = React69.useCallback((externalProps) => {
+ const getDescriptionProps = React71.useCallback((externalProps) => {
const ids = externalProps["aria-describedby"] ? externalProps["aria-describedby"].split(" ") : [];
ids.push(...parentMessageIds, ...messageIds);
return {
@@ -37961,7 +38228,7 @@ var wp;
"aria-describedby": Array.from(new Set(ids)).join(" ") || void 0
};
}, [parentMessageIds, messageIds]);
- const contextValue = React69.useMemo(() => ({
+ const contextValue = React71.useMemo(() => ({
controlId,
registerControlId,
labelId,
@@ -37970,7 +38237,7 @@ var wp;
setMessageIds,
getDescriptionProps
}), [controlId, registerControlId, labelId, setLabelId, messageIds, setMessageIds, getDescriptionProps]);
- return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(LabelableContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(LabelableContext.Provider, {
value: contextValue,
children: props.children
});
@@ -37978,7 +38245,7 @@ var wp;
if (true) LabelableProvider.displayName = "LabelableProvider";
// node_modules/@base-ui/react/field/root/useFieldValidation.mjs
- var React70 = __toESM(require_react(), 1);
+ var React72 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/field/utils/getCombinedFieldValidityData.mjs
function getCombinedFieldValidityData(validityData, invalid) {
@@ -38053,10 +38320,10 @@ var wp;
getDescriptionProps
} = useLabelableContext();
const timeout = useTimeout();
- const inputRef = React70.useRef(null);
+ const inputRef = React72.useRef(null);
const registeredInputs = useRefWithInit(() => /* @__PURE__ */ new Set()).current;
- const validationCommitIdRef = React70.useRef(0);
- const registerInput = React70.useCallback((element) => {
+ const validationCommitIdRef = React72.useRef(0);
+ const registerInput = React72.useCallback((element) => {
if (!element) {
return void 0;
}
@@ -38206,10 +38473,10 @@ var wp;
commit(value, !validateOnChange);
}
});
- const getValidationProps = React70.useCallback((disabled2, externalProps = {}) => mergeProps(getDescriptionProps(externalProps), state.valid === false && !state.disabled && !disabled2 ? {
+ const getValidationProps = React72.useCallback((disabled2, externalProps = {}) => mergeProps(getDescriptionProps(externalProps), state.valid === false && !state.disabled && !disabled2 ? {
"aria-invalid": true
} : EMPTY_OBJECT), [getDescriptionProps, state.disabled, state.valid]);
- return React70.useMemo(() => ({
+ return React72.useMemo(() => ({
getValidationProps,
inputRef,
registerInput,
@@ -38219,7 +38486,7 @@ var wp;
}
// node_modules/@base-ui/react/internals/field-register-control/useFieldControlRegistration.mjs
- var React71 = __toESM(require_react(), 1);
+ var React73 = __toESM(require_react(), 1);
function useFieldControlRegistration(params) {
const {
commit,
@@ -38234,9 +38501,9 @@ var wp;
const {
formRef
} = useFormContext();
- const activeFieldControlSourceRef = React71.useRef(null);
- const registrationRef = React71.useRef(null);
- const fallbackControlRef = React71.useRef(null);
+ const activeFieldControlSourceRef = React73.useRef(null);
+ const registrationRef = React73.useRef(null);
+ const fallbackControlRef = React73.useRef(null);
const getValueForForm = useStableCallback(() => {
const registration = registrationRef.current;
if (!registration) {
@@ -38341,8 +38608,8 @@ var wp;
}
// node_modules/@base-ui/react/field/root/FieldRoot.mjs
- var import_jsx_runtime163 = __toESM(require_jsx_runtime(), 1);
- var FieldRootInner = /* @__PURE__ */ React72.forwardRef(function FieldRootInner2(componentProps, forwardedRef) {
+ var import_jsx_runtime165 = __toESM(require_jsx_runtime(), 1);
+ var FieldRootInner = /* @__PURE__ */ React74.forwardRef(function FieldRootInner2(componentProps, forwardedRef) {
const {
errors,
validationMode: formValidationMode,
@@ -38350,7 +38617,7 @@ var wp;
} = useFormContext();
const {
render: render4,
- className,
+ className: className2,
validate: validateProp,
validationDebounceTime = 0,
validationMode = formValidationMode,
@@ -38366,23 +38633,23 @@ var wp;
const disabledFieldset = useFieldsetRootContext(true)?.disabled;
const validate = useStableCallback(validateProp || (() => null));
const disabled2 = disabledFieldset || disabledProp;
- const [touchedState, setTouchedUnwrapped] = React72.useState(false);
- const [dirtyState, setDirtyUnwrapped] = React72.useState(false);
- const [filled, setFilled] = React72.useState(false);
- const [focused, setFocused] = React72.useState(false);
+ const [touchedState, setTouchedUnwrapped] = React74.useState(false);
+ const [dirtyState, setDirtyUnwrapped] = React74.useState(false);
+ const [filled, setFilled] = React74.useState(false);
+ const [focused, setFocused] = React74.useState(false);
const dirty = dirtyProp ?? dirtyState;
const touched = touchedProp ?? touchedState;
- const markedDirtyRef = React72.useRef(dirty);
- const registeredFieldIdRef = React72.useRef(void 0);
- const [registeredFieldName, setRegisteredFieldName] = React72.useState();
+ const markedDirtyRef = React74.useRef(dirty);
+ const registeredFieldIdRef = React74.useRef(void 0);
+ const [registeredFieldName, setRegisteredFieldName] = React74.useState();
const effectiveName = name ?? registeredFieldName;
useIsoLayoutEffect(() => {
if (dirtyProp !== void 0) {
markedDirtyRef.current = dirtyProp;
}
}, [dirtyProp]);
- const getRegisteredFieldId = React72.useCallback(() => registeredFieldIdRef.current, []);
- const setRegisteredFieldId = React72.useCallback((id) => {
+ const getRegisteredFieldId = React74.useCallback(() => registeredFieldIdRef.current, []);
+ const setRegisteredFieldId = React74.useCallback((id) => {
registeredFieldIdRef.current = id;
}, []);
const setDirty = useStableCallback((value) => {
@@ -38404,7 +38671,7 @@ var wp;
const formError = effectiveName && Object.hasOwn(errors, effectiveName) ? errors[effectiveName] : null;
const hasFormError = !!(Array.isArray(formError) ? formError.length : formError);
const invalid = invalidProp === true || hasFormError;
- const [validityData, setValidityData] = React72.useState({
+ const [validityData, setValidityData] = React74.useState({
state: DEFAULT_VALIDITY_STATE,
error: "",
errors: [],
@@ -38412,7 +38679,7 @@ var wp;
initialValue: null
});
const valid = disabled2 ? null : !invalid && validityData.state.valid;
- const state = React72.useMemo(() => ({
+ const state = React74.useMemo(() => ({
disabled: disabled2,
touched,
dirty,
@@ -38441,10 +38708,10 @@ var wp;
setValidityData,
validityData
});
- React72.useImperativeHandle(actionsRef, () => ({
+ React74.useImperativeHandle(actionsRef, () => ({
validate: validateFieldControl
}), [validateFieldControl]);
- const contextValue = React72.useMemo(() => ({
+ const contextValue = React74.useMemo(() => ({
invalid,
name: effectiveName,
validityData,
@@ -38473,15 +38740,15 @@ var wp;
props: elementProps,
stateAttributesMapping: fieldValidityMapping
});
- return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(FieldRootContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(FieldRootContext.Provider, {
value: contextValue,
children: element
});
});
if (true) FieldRootInner.displayName = "FieldRootInner";
- var FieldRoot = /* @__PURE__ */ React72.forwardRef(function FieldRoot2(componentProps, forwardedRef) {
- return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(LabelableProvider, {
- children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(FieldRootInner, {
+ var FieldRoot = /* @__PURE__ */ React74.forwardRef(function FieldRoot2(componentProps, forwardedRef) {
+ return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(LabelableProvider, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(FieldRootInner, {
...componentProps,
ref: forwardedRef
})
@@ -38490,11 +38757,11 @@ var wp;
if (true) FieldRoot.displayName = "FieldRoot";
// node_modules/@base-ui/react/field/label/FieldLabel.mjs
- var React73 = __toESM(require_react(), 1);
- var FieldLabel = /* @__PURE__ */ React73.forwardRef(function FieldLabel2(componentProps, forwardedRef) {
+ var React75 = __toESM(require_react(), 1);
+ var FieldLabel = /* @__PURE__ */ React75.forwardRef(function FieldLabel2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
id: idProp,
nativeLabel = true,
@@ -38509,13 +38776,13 @@ var wp;
...fieldRootContext.state,
disabled: fieldRootContext.disabled || fieldItemContext.disabled
};
- const labelRef = React73.useRef(null);
+ const labelRef = React75.useRef(null);
const labelProps = useLabel({
id: labelId ?? idProp,
native: nativeLabel
});
if (true) {
- React73.useEffect(() => {
+ React75.useEffect(() => {
if (!labelRef.current) {
return;
}
@@ -38544,17 +38811,17 @@ var wp;
if (true) FieldLabel.displayName = "FieldLabel";
// node_modules/@base-ui/react/field/error/FieldError.mjs
- var React74 = __toESM(require_react(), 1);
- var import_jsx_runtime164 = __toESM(require_jsx_runtime(), 1);
+ var React76 = __toESM(require_react(), 1);
+ var import_jsx_runtime166 = __toESM(require_jsx_runtime(), 1);
var stateAttributesMapping2 = {
...fieldValidityMapping,
...transitionStatusMapping
};
- var FieldError = /* @__PURE__ */ React74.forwardRef(function FieldError2(componentProps, forwardedRef) {
+ var FieldError = /* @__PURE__ */ React76.forwardRef(function FieldError2(componentProps, forwardedRef) {
const {
render: render4,
id: idProp,
- className,
+ className: className2,
match: match2,
style,
...elementProps
@@ -38598,9 +38865,9 @@ var wp;
setMessageIds((v2) => v2.filter((item) => item !== id));
};
}, [rendered, id, setMessageIds]);
- const errorRef = React74.useRef(null);
- const [lastRenderedMessage, setLastRenderedMessage] = React74.useState(null);
- const [lastRenderedMessageKey, setLastRenderedMessageKey] = React74.useState(null);
+ const errorRef = React76.useRef(null);
+ const [lastRenderedMessage, setLastRenderedMessage] = React76.useState(null);
+ const [lastRenderedMessageKey, setLastRenderedMessageKey] = React76.useState(null);
let error2 = validityData.error;
if (!hasSpecificMatch && hasFormError) {
error2 = formError;
@@ -38609,8 +38876,8 @@ var wp;
}
let errorMessage = error2 ?? "";
if (Array.isArray(error2)) {
- errorMessage = error2.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("ul", {
- children: error2.map((message2) => /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("li", {
+ errorMessage = error2.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("ul", {
+ children: error2.map((message2) => /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("li", {
children: message2
}, message2))
}) : error2[0] ?? "";
@@ -38651,12 +38918,12 @@ var wp;
if (true) FieldError.displayName = "FieldError";
// node_modules/@base-ui/react/field/description/FieldDescription.mjs
- var React75 = __toESM(require_react(), 1);
- var FieldDescription = /* @__PURE__ */ React75.forwardRef(function FieldDescription2(componentProps, forwardedRef) {
+ var React77 = __toESM(require_react(), 1);
+ var FieldDescription = /* @__PURE__ */ React77.forwardRef(function FieldDescription2(componentProps, forwardedRef) {
const {
render: render4,
id: idProp,
- className,
+ className: className2,
style,
...elementProps
} = componentProps;
@@ -38692,11 +38959,11 @@ var wp;
if (true) FieldDescription.displayName = "FieldDescription";
// node_modules/@base-ui/react/field/control/FieldControl.mjs
- var React76 = __toESM(require_react(), 1);
- var FieldControl = /* @__PURE__ */ React76.forwardRef(function FieldControl2(componentProps, forwardedRef) {
+ var React78 = __toESM(require_react(), 1);
+ var FieldControl = /* @__PURE__ */ React78.forwardRef(function FieldControl2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
id: idProp,
name: nameProp,
value: valueProp,
@@ -38742,7 +39009,7 @@ var wp;
setFilled(false);
}
}, [validation.inputRef, setFilled, valueProp]);
- const inputRef = React76.useRef(null);
+ const inputRef = React78.useRef(null);
useIsoLayoutEffect(() => {
if (autoFocus && inputRef.current === activeElement(ownerDocument(inputRef.current))) {
setFocused(true);
@@ -38807,8 +39074,8 @@ var wp;
if (true) FieldControl.displayName = "FieldControl";
// node_modules/@base-ui/react/field/validity/FieldValidity.mjs
- var React77 = __toESM(require_react(), 1);
- var import_jsx_runtime165 = __toESM(require_jsx_runtime(), 1);
+ var React79 = __toESM(require_react(), 1);
+ var import_jsx_runtime167 = __toESM(require_jsx_runtime(), 1);
var FieldValidity = function FieldValidity2(props) {
const {
children
@@ -38817,31 +39084,31 @@ var wp;
validityData,
invalid
} = useFieldRootContext(false);
- const combinedFieldValidityData = React77.useMemo(() => getCombinedFieldValidityData(validityData, invalid), [validityData, invalid]);
+ const combinedFieldValidityData = React79.useMemo(() => getCombinedFieldValidityData(validityData, invalid), [validityData, invalid]);
const isInvalid = combinedFieldValidityData.state.valid === false;
const {
transitionStatus
} = useTransitionStatus(isInvalid);
- const fieldValidityState = React77.useMemo(() => {
+ const fieldValidityState = React79.useMemo(() => {
return {
...combinedFieldValidityData,
validity: combinedFieldValidityData.state,
transitionStatus
};
}, [combinedFieldValidityData, transitionStatus]);
- return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(React77.Fragment, {
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(React79.Fragment, {
children: children(fieldValidityState)
});
};
if (true) FieldValidity.displayName = "FieldValidity";
// node_modules/@base-ui/react/field/item/FieldItem.mjs
- var React78 = __toESM(require_react(), 1);
- var import_jsx_runtime166 = __toESM(require_jsx_runtime(), 1);
- var FieldItem = /* @__PURE__ */ React78.forwardRef(function FieldItem2(componentProps, forwardedRef) {
+ var React80 = __toESM(require_react(), 1);
+ var import_jsx_runtime168 = __toESM(require_jsx_runtime(), 1);
+ var FieldItem = /* @__PURE__ */ React80.forwardRef(function FieldItem2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
disabled: disabledProp = false,
...elementProps
@@ -38858,7 +39125,7 @@ var wp;
const checkboxGroupContext = useCheckboxGroupContext();
const hasParentCheckbox = checkboxGroupContext?.allValues !== void 0;
const controlId = hasParentCheckbox ? checkboxGroupContext?.parent.id : void 0;
- const fieldItemContext = React78.useMemo(() => ({
+ const fieldItemContext = React80.useMemo(() => ({
disabled: disabled2
}), [disabled2]);
const element = useRenderElement("div", componentProps, {
@@ -38867,9 +39134,9 @@ var wp;
props: elementProps,
stateAttributesMapping: fieldValidityMapping
});
- return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(LabelableProvider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(LabelableProvider, {
controlId,
- children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(FieldItemContext.Provider, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(FieldItemContext.Provider, {
value: fieldItemContext,
children: element
})
@@ -38878,14 +39145,14 @@ var wp;
if (true) FieldItem.displayName = "FieldItem";
// node_modules/@base-ui/react/utils/FloatingPortalLite.mjs
- var React79 = __toESM(require_react(), 1);
+ var React81 = __toESM(require_react(), 1);
var ReactDOM7 = __toESM(require_react_dom(), 1);
- var import_jsx_runtime167 = __toESM(require_jsx_runtime(), 1);
- var FloatingPortalLite = /* @__PURE__ */ React79.forwardRef(function FloatingPortalLite2(componentProps, forwardedRef) {
+ var import_jsx_runtime169 = __toESM(require_jsx_runtime(), 1);
+ var FloatingPortalLite = /* @__PURE__ */ React81.forwardRef(function FloatingPortalLite2(componentProps, forwardedRef) {
const {
children,
container,
- className,
+ className: className2,
render: render4,
style,
...elementProps
@@ -38902,19 +39169,19 @@ var wp;
if (!portalSubtree && !portalNode) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(React79.Fragment, {
+ return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(React81.Fragment, {
children: [portalSubtree, portalNode && /* @__PURE__ */ ReactDOM7.createPortal(children, portalNode)]
});
});
if (true) FloatingPortalLite.displayName = "FloatingPortalLite";
// node_modules/@base-ui/react/utils/styles.mjs
- var import_jsx_runtime168 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime170 = __toESM(require_jsx_runtime(), 1);
var DISABLE_SCROLLBAR_CLASS_NAME = "base-ui-disable-scrollbar";
var styleDisableScrollbar = {
className: DISABLE_SCROLLBAR_CLASS_NAME,
getElement(nonce) {
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("style", {
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("style", {
nonce,
href: DISABLE_SCROLLBAR_CLASS_NAME,
precedence: "base-ui:low",
@@ -38929,23 +39196,23 @@ var wp;
function getMaxScrollOffset(scrollSize, clientSize) {
return Math.max(0, scrollSize - clientSize);
}
- function normalizeScrollOffset(value, max2) {
- if (max2 <= 0) {
+ function normalizeScrollOffset(value, max3) {
+ if (max3 <= 0) {
return 0;
}
- const clamped = clamp2(value, 0, max2);
+ const clamped = clamp2(value, 0, max3);
const startDistance = clamped;
- const endDistance = max2 - clamped;
+ const endDistance = max3 - clamped;
const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;
const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;
if (withinStartTolerance && withinEndTolerance) {
- return startDistance <= endDistance ? 0 : max2;
+ return startDistance <= endDistance ? 0 : max3;
}
if (withinStartTolerance) {
return 0;
}
if (withinEndTolerance) {
- return max2;
+ return max3;
}
return clamped;
}
@@ -38975,23 +39242,23 @@ var wp;
});
// node_modules/@base-ui/react/select/root/SelectRoot.mjs
- var React81 = __toESM(require_react(), 1);
+ var React83 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/select/root/SelectRootContext.mjs
- var React80 = __toESM(require_react(), 1);
- var SelectRootContext = /* @__PURE__ */ React80.createContext(null);
+ var React82 = __toESM(require_react(), 1);
+ var SelectRootContext = /* @__PURE__ */ React82.createContext(null);
if (true) SelectRootContext.displayName = "SelectRootContext";
- var SelectFloatingContext = /* @__PURE__ */ React80.createContext(null);
+ var SelectFloatingContext = /* @__PURE__ */ React82.createContext(null);
if (true) SelectFloatingContext.displayName = "SelectFloatingContext";
function useSelectRootContext() {
- const context = React80.useContext(SelectRootContext);
+ const context = React82.useContext(SelectRootContext);
if (context === null) {
throw new Error(true ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : formatErrorMessage_default(60));
}
return context;
}
function useSelectFloatingContext() {
- const context = React80.useContext(SelectFloatingContext);
+ const context = React82.useContext(SelectFloatingContext);
if (context === null) {
throw new Error(true ? "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>." : formatErrorMessage_default(61));
}
@@ -39057,7 +39324,7 @@ var wp;
};
// node_modules/@base-ui/react/select/root/SelectRoot.mjs
- var import_jsx_runtime169 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime171 = __toESM(require_jsx_runtime(), 1);
function SelectRoot(props) {
const {
id,
@@ -39116,22 +39383,22 @@ var wp;
name: "Select",
state: "open"
});
- const listRef = React81.useRef([]);
- const labelsRef = React81.useRef([]);
- const popupRef = React81.useRef(null);
- const scrollHandlerRef = React81.useRef(null);
- const scrollArrowsMountedCountRef = React81.useRef(0);
- const valueRef = React81.useRef(null);
- const valuesRef = React81.useRef([]);
- const typingRef = React81.useRef(false);
- const firstItemTextRef = React81.useRef(null);
- const selectedItemTextRef = React81.useRef(null);
- const selectionRef = React81.useRef({
+ const listRef = React83.useRef([]);
+ const labelsRef = React83.useRef([]);
+ const popupRef = React83.useRef(null);
+ const scrollHandlerRef = React83.useRef(null);
+ const scrollArrowsMountedCountRef = React83.useRef(0);
+ const valueRef = React83.useRef(null);
+ const valuesRef = React83.useRef([]);
+ const typingRef = React83.useRef(false);
+ const firstItemTextRef = React83.useRef(null);
+ const selectedItemTextRef = React83.useRef(null);
+ const selectionRef = React83.useRef({
allowSelectedMouseUp: false,
allowUnselectedMouseUp: false,
dragY: 0
});
- const alignItemWithTriggerActiveRef = React81.useRef(false);
+ const alignItemWithTriggerActiveRef = React83.useRef(false);
const {
mounted,
setMounted,
@@ -39174,13 +39441,13 @@ var wp;
const positionerElement = useStore(store2, selectors2.positionerElement);
const previousOpenMethod = usePreviousValue(openMethod);
const renderedOpenMethod = openMethod ?? previousOpenMethod ?? null;
- const serializedValue = React81.useMemo(() => {
+ const serializedValue = React83.useMemo(() => {
if (multiple) {
return "";
}
return stringifyAsValue(value, itemToStringValue);
}, [multiple, value, itemToStringValue]);
- const fieldStringValue = React81.useMemo(() => {
+ const fieldStringValue = React83.useMemo(() => {
if (multiple && Array.isArray(value)) {
return value.map((currentValue) => stringifyAsValue(currentValue, itemToStringValue));
}
@@ -39189,7 +39456,7 @@ var wp;
const controlRef = useValueAsRef(store2.state.triggerElement);
const getStringifiedValueForForm = useStableCallback(() => fieldStringValue);
useRegisterFieldControl(controlRef, generatedId, value, getStringifiedValueForForm, !disabled2, nameProp);
- const initialValueRef = React81.useRef(value);
+ const initialValueRef = React83.useRef(value);
const hasSelectedValue = multiple ? Array.isArray(value) && value.length > 0 : value != null && stringifyAsValue(value, itemToStringValue) !== "";
useIsoLayoutEffect(() => {
if (value !== initialValueRef.current) {
@@ -39267,7 +39534,7 @@ var wp;
}
}
});
- React81.useImperativeHandle(actionsRef, () => ({
+ React83.useImperativeHandle(actionsRef, () => ({
unmount: handleUnmount
}), [handleUnmount]);
const setValue = useStableCallback((nextValue, eventDetails) => {
@@ -39342,14 +39609,14 @@ var wp;
typingRef.current = typing;
}
});
- const mergedTriggerProps = React81.useMemo(() => {
+ const mergedTriggerProps = React83.useMemo(() => {
const triggerInteractionProps = mergeProps(typeahead.reference, listNavigation2.reference, dismiss.reference, click.reference, interactionTypeProps);
if (generatedId) {
triggerInteractionProps.id = generatedId;
}
return triggerInteractionProps;
}, [click.reference, typeahead.reference, listNavigation2.reference, dismiss.reference, interactionTypeProps, generatedId]);
- const popupProps = React81.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, typeahead.floating, listNavigation2.floating, dismiss.floating), [typeahead.floating, listNavigation2.floating, dismiss.floating]);
+ const popupProps = React83.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, typeahead.floating, listNavigation2.floating, dismiss.floating), [typeahead.floating, listNavigation2.floating, dismiss.floating]);
const itemProps = listNavigation2.item ?? EMPTY_OBJECT;
useOnFirstRender(() => {
store2.update({
@@ -39375,7 +39642,7 @@ var wp;
openMethod: renderedOpenMethod
});
}, [store2, generatedId, modal, multiple, value, open, mounted, transitionStatus, popupProps, mergedTriggerProps, items, itemToStringLabel, itemToStringValue, isItemEqualToValue, renderedOpenMethod]);
- const contextValue = React81.useMemo(() => ({
+ const contextValue = React83.useMemo(() => ({
store: store2,
name,
required,
@@ -39406,13 +39673,13 @@ var wp;
const ref = useMergedRefs(inputRef, validation.inputRef);
const hasMultipleSelection = multiple && Array.isArray(value) && value.length > 0;
const hiddenInputName = multiple ? void 0 : name;
- const hiddenInputs = React81.useMemo(() => {
+ const hiddenInputs = React83.useMemo(() => {
if (!multiple || !Array.isArray(value) || !name) {
return null;
}
return value.map((v2) => {
const currentSerializedValue = stringifyAsValue(v2, itemToStringValue);
- return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("input", {
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("input", {
type: "hidden",
form,
name,
@@ -39421,11 +39688,11 @@ var wp;
}, currentSerializedValue);
});
}, [multiple, value, form, name, itemToStringValue, disabled2]);
- return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(SelectRootContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(SelectRootContext.Provider, {
value: contextValue,
- children: /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(SelectFloatingContext.Provider, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(SelectFloatingContext.Provider, {
value: floatingContext,
- children: [children, /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("input", {
+ children: [children, /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("input", {
...validation.getValidationProps(disabled2, {
onFocus() {
store2.state.triggerElement?.focus({
@@ -39480,11 +39747,11 @@ var wp;
}
// node_modules/@base-ui/react/select/label/SelectLabel.mjs
- var React82 = __toESM(require_react(), 1);
- var SelectLabel = /* @__PURE__ */ React82.forwardRef(function SelectLabel2(componentProps, forwardedRef) {
+ var React84 = __toESM(require_react(), 1);
+ var SelectLabel = /* @__PURE__ */ React84.forwardRef(function SelectLabel2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
...elementProps
} = componentProps;
@@ -39514,7 +39781,7 @@ var wp;
if (true) SelectLabel.displayName = "SelectLabel";
// node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs
- var React83 = __toESM(require_react(), 1);
+ var React85 = __toESM(require_react(), 1);
var BOUNDARY_OFFSET = 2;
var SELECTED_DELAY = 400;
var stateAttributesMapping3 = {
@@ -39525,10 +39792,10 @@ var wp;
} : null,
value: () => null
};
- var SelectTrigger = /* @__PURE__ */ React83.forwardRef(function SelectTrigger2(componentProps, forwardedRef) {
+ var SelectTrigger = /* @__PURE__ */ React85.forwardRef(function SelectTrigger2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
id: idProp,
disabled: disabledProp = false,
nativeButton = true,
@@ -39573,7 +39840,7 @@ var wp;
id
});
const positionerRef = useValueAsRef(positionerElement);
- const triggerRef = React83.useRef(null);
+ const triggerRef = React85.useRef(null);
const {
getButtonProps,
buttonRef
@@ -39587,7 +39854,7 @@ var wp;
const timeoutFocus = useTimeout();
const timeoutMouseDown = useTimeout();
const selectedDelayTimeout = useTimeout();
- React83.useEffect(() => {
+ React85.useEffect(() => {
if (open) {
selectedDelayTimeout.start(SELECTED_DELAY, () => {
selectionRef.current.allowUnselectedMouseUp = true;
@@ -39681,13 +39948,13 @@ var wp;
if (true) SelectTrigger.displayName = "SelectTrigger";
// node_modules/@base-ui/react/select/value/SelectValue.mjs
- var React84 = __toESM(require_react(), 1);
+ var React86 = __toESM(require_react(), 1);
var stateAttributesMapping4 = {
value: () => null
};
- var SelectValue = /* @__PURE__ */ React84.forwardRef(function SelectValue2(componentProps, forwardedRef) {
+ var SelectValue = /* @__PURE__ */ React86.forwardRef(function SelectValue2(componentProps, forwardedRef) {
const {
- className,
+ className: className2,
render: render4,
children: childrenProp,
placeholder,
@@ -39733,11 +40000,11 @@ var wp;
if (true) SelectValue.displayName = "SelectValue";
// node_modules/@base-ui/react/select/icon/SelectIcon.mjs
- var React85 = __toESM(require_react(), 1);
- var SelectIcon = /* @__PURE__ */ React85.forwardRef(function SelectIcon2(componentProps, forwardedRef) {
+ var React87 = __toESM(require_react(), 1);
+ var SelectIcon = /* @__PURE__ */ React87.forwardRef(function SelectIcon2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
...elementProps
} = componentProps;
@@ -39762,16 +40029,16 @@ var wp;
if (true) SelectIcon.displayName = "SelectIcon";
// node_modules/@base-ui/react/select/portal/SelectPortal.mjs
- var React87 = __toESM(require_react(), 1);
+ var React89 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/select/portal/SelectPortalContext.mjs
- var React86 = __toESM(require_react(), 1);
- var SelectPortalContext = /* @__PURE__ */ React86.createContext(void 0);
+ var React88 = __toESM(require_react(), 1);
+ var SelectPortalContext = /* @__PURE__ */ React88.createContext(void 0);
if (true) SelectPortalContext.displayName = "SelectPortalContext";
// node_modules/@base-ui/react/select/portal/SelectPortal.mjs
- var import_jsx_runtime170 = __toESM(require_jsx_runtime(), 1);
- var SelectPortal = /* @__PURE__ */ React87.forwardRef(function SelectPortal2(portalProps, forwardedRef) {
+ var import_jsx_runtime172 = __toESM(require_jsx_runtime(), 1);
+ var SelectPortal = /* @__PURE__ */ React89.forwardRef(function SelectPortal2(portalProps, forwardedRef) {
const {
store: store2
} = useSelectRootContext();
@@ -39781,9 +40048,9 @@ var wp;
if (!shouldRender) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(SelectPortalContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(SelectPortalContext.Provider, {
value: true,
- children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(FloatingPortal, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(FloatingPortal, {
ref: forwardedRef,
...portalProps
})
@@ -39792,15 +40059,15 @@ var wp;
if (true) SelectPortal.displayName = "SelectPortal";
// node_modules/@base-ui/react/select/backdrop/SelectBackdrop.mjs
- var React88 = __toESM(require_react(), 1);
+ var React90 = __toESM(require_react(), 1);
var stateAttributesMapping5 = {
...popupStateMapping,
...transitionStatusMapping
};
- var SelectBackdrop = /* @__PURE__ */ React88.forwardRef(function SelectBackdrop2(componentProps, forwardedRef) {
+ var SelectBackdrop = /* @__PURE__ */ React90.forwardRef(function SelectBackdrop2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
...elementProps
} = componentProps;
@@ -39832,14 +40099,14 @@ var wp;
if (true) SelectBackdrop.displayName = "SelectBackdrop";
// node_modules/@base-ui/react/select/positioner/SelectPositioner.mjs
- var React90 = __toESM(require_react(), 1);
+ var React92 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/select/positioner/SelectPositionerContext.mjs
- var React89 = __toESM(require_react(), 1);
- var SelectPositionerContext = /* @__PURE__ */ React89.createContext(void 0);
+ var React91 = __toESM(require_react(), 1);
+ var SelectPositionerContext = /* @__PURE__ */ React91.createContext(void 0);
if (true) SelectPositionerContext.displayName = "SelectPositionerContext";
function useSelectPositionerContext() {
- const context = React89.useContext(SelectPositionerContext);
+ const context = React91.useContext(SelectPositionerContext);
if (!context) {
throw new Error(true ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." : formatErrorMessage_default(59));
}
@@ -39860,15 +40127,15 @@ var wp;
};
// node_modules/@base-ui/react/select/positioner/SelectPositioner.mjs
- var import_jsx_runtime171 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime173 = __toESM(require_jsx_runtime(), 1);
var FIXED = {
position: "fixed"
};
- var SelectPositioner = /* @__PURE__ */ React90.forwardRef(function SelectPositioner2(componentProps, forwardedRef) {
+ var SelectPositioner = /* @__PURE__ */ React92.forwardRef(function SelectPositioner2(componentProps, forwardedRef) {
const {
anchor,
positionMethod = "absolute",
- className,
+ className: className2,
render: render4,
side = "bottom",
align = "center",
@@ -39905,9 +40172,9 @@ var wp;
const triggerElement = useStore(store2, selectors2.triggerElement);
const isItemEqualToValue = useStore(store2, selectors2.isItemEqualToValue);
const transitionStatus = useStore(store2, selectors2.transitionStatus);
- const scrollUpArrowRef = React90.useRef(null);
- const scrollDownArrowRef = React90.useRef(null);
- const [controlledAlignItemWithTrigger, setControlledAlignItemWithTrigger] = React90.useState(alignItemWithTrigger);
+ const scrollUpArrowRef = React92.useRef(null);
+ const scrollDownArrowRef = React92.useRef(null);
+ const [controlledAlignItemWithTrigger, setControlledAlignItemWithTrigger] = React92.useState(alignItemWithTrigger);
const alignItemWithTriggerActive = mounted && controlledAlignItemWithTrigger && openMethod !== "touch";
if (!mounted && controlledAlignItemWithTrigger !== alignItemWithTrigger) {
setControlledAlignItemWithTrigger(alignItemWithTrigger);
@@ -39922,7 +40189,7 @@ var wp;
}
}
}, [store2, mounted]);
- React90.useImperativeHandle(alignItemWithTriggerActiveRef, () => alignItemWithTriggerActive);
+ React92.useImperativeHandle(alignItemWithTriggerActiveRef, () => alignItemWithTriggerActive);
useAnchoredPopupScrollLock((alignItemWithTriggerActive || modal) && open, openMethod === "touch", positionerElement, triggerElement);
const positioning = useAnchorPositioning({
anchor,
@@ -39963,7 +40230,7 @@ var wp;
hidden: !mounted,
inert: !open
});
- const prevMapSizeRef = React90.useRef(0);
+ const prevMapSizeRef = React92.useRef(0);
const onMapChange = useStableCallback((map) => {
if (map.size === 0 && prevMapSizeRef.current === 0) {
return;
@@ -40013,7 +40280,7 @@ var wp;
clearStyles(popupRef.current, stylesToClear);
}
});
- const contextValue = React90.useMemo(() => ({
+ const contextValue = React92.useMemo(() => ({
...positioning,
side: renderedSide,
alignItemWithTriggerActive,
@@ -40021,13 +40288,13 @@ var wp;
scrollUpArrowRef,
scrollDownArrowRef
}), [positioning, renderedSide, alignItemWithTriggerActive, setControlledAlignItemWithTrigger]);
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(CompositeList, {
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(CompositeList, {
elementsRef: listRef,
labelsRef,
onMapChange,
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(SelectPositionerContext.Provider, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(SelectPositionerContext.Provider, {
value: contextValue,
- children: [mounted && modal && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(InternalBackdrop, {
+ children: [mounted && modal && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(InternalBackdrop, {
inert: inertValue(!open),
cutout: triggerElement
}), element]
@@ -40037,16 +40304,16 @@ var wp;
if (true) SelectPositioner.displayName = "SelectPositioner";
// node_modules/@base-ui/react/select/popup/SelectPopup.mjs
- var React91 = __toESM(require_react(), 1);
- var import_jsx_runtime172 = __toESM(require_jsx_runtime(), 1);
+ var React93 = __toESM(require_react(), 1);
+ var import_jsx_runtime174 = __toESM(require_jsx_runtime(), 1);
var stateAttributesMapping6 = {
...popupStateMapping,
...transitionStatusMapping
};
- var SelectPopup = /* @__PURE__ */ React91.forwardRef(function SelectPopup2(componentProps, forwardedRef) {
+ var SelectPopup = /* @__PURE__ */ React93.forwardRef(function SelectPopup2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
finalFocus,
...elementProps
@@ -40088,9 +40355,9 @@ var wp;
const triggerElement = useStore(store2, selectors2.triggerElement);
const positionerElement = useStore(store2, selectors2.positionerElement);
const listElement = useStore(store2, selectors2.listElement);
- const reachedMaxHeightRef = React91.useRef(false);
- const initialPlacedRef = React91.useRef(false);
- const originalPositionerStylesRef = React91.useRef({});
+ const reachedMaxHeightRef = React93.useRef(false);
+ const initialPlacedRef = React93.useRef(false);
+ const originalPositionerStylesRef = React93.useRef({});
const scrollArrowFrame = useAnimationFrame();
const handleScroll = useStableCallback((scroller) => {
if (!positionerElement || !popupRef.current || !initialPlacedRef.current) {
@@ -40171,7 +40438,7 @@ var wp;
}
handleScrollArrowVisibility();
});
- React91.useImperativeHandle(scrollHandlerRef, () => handleScroll, [handleScroll]);
+ React93.useImperativeHandle(scrollHandlerRef, () => handleScroll, [handleScroll]);
useOpenChangeComplete({
open,
ref: popupRef,
@@ -40317,7 +40584,7 @@ var wp;
restoreTransformStyles();
}
}, [store2, open, positionerElement, triggerElement, valueRef, firstItemTextRef, selectedItemTextRef, popupRef, handleScrollArrowVisibility, alignItemWithTriggerActive, setControlledAlignItemWithTrigger, scrollArrowFrame, listElement, listRef, highlightItemOnHover, direction, isPositioned]);
- React91.useEffect(() => {
+ React93.useEffect(() => {
if (!alignItemWithTriggerActive || !positionerElement || !open) {
return void 0;
}
@@ -40361,8 +40628,8 @@ var wp;
className: !listElement && alignItemWithTriggerActive ? styleDisableScrollbar.className : void 0
}, elementProps]
});
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(React91.Fragment, {
- children: [!disableStyleElements && styleDisableScrollbar.getElement(nonce), /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(FloatingFocusManager, {
+ return /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)(React93.Fragment, {
+ children: [!disableStyleElements && styleDisableScrollbar.getElement(nonce), /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(FloatingFocusManager, {
context: floatingRootContext,
modal: false,
disabled: !mounted,
@@ -40418,11 +40685,11 @@ var wp;
}
// node_modules/@base-ui/react/select/list/SelectList.mjs
- var React92 = __toESM(require_react(), 1);
- var SelectList = /* @__PURE__ */ React92.forwardRef(function SelectList2(componentProps, forwardedRef) {
+ var React94 = __toESM(require_react(), 1);
+ var SelectList = /* @__PURE__ */ React94.forwardRef(function SelectList2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
...elementProps
} = componentProps;
@@ -40460,14 +40727,14 @@ var wp;
if (true) SelectList.displayName = "SelectList";
// node_modules/@base-ui/react/select/item/SelectItem.mjs
- var React94 = __toESM(require_react(), 1);
+ var React96 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/select/item/SelectItemContext.mjs
- var React93 = __toESM(require_react(), 1);
- var SelectItemContext = /* @__PURE__ */ React93.createContext(void 0);
+ var React95 = __toESM(require_react(), 1);
+ var SelectItemContext = /* @__PURE__ */ React95.createContext(void 0);
if (true) SelectItemContext.displayName = "SelectItemContext";
function useSelectItemContext() {
- const context = React93.useContext(SelectItemContext);
+ const context = React95.useContext(SelectItemContext);
if (!context) {
throw new Error(true ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : formatErrorMessage_default(57));
}
@@ -40475,11 +40742,11 @@ var wp;
}
// node_modules/@base-ui/react/select/item/SelectItem.mjs
- var import_jsx_runtime173 = __toESM(require_jsx_runtime(), 1);
- var SelectItem = /* @__PURE__ */ React94.memo(/* @__PURE__ */ React94.forwardRef(function SelectItem2(componentProps, forwardedRef) {
+ var import_jsx_runtime175 = __toESM(require_jsx_runtime(), 1);
+ var SelectItem = /* @__PURE__ */ React96.memo(/* @__PURE__ */ React96.forwardRef(function SelectItem2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
value: itemValue = null,
label,
@@ -40487,7 +40754,7 @@ var wp;
nativeButton = false,
...elementProps
} = componentProps;
- const textRef = React94.useRef(null);
+ const textRef = React96.useRef(null);
const listItem = useCompositeListItem({
label,
textRef,
@@ -40513,7 +40780,7 @@ var wp;
const isItemEqualToValue = useStore(store2, selectors2.isItemEqualToValue);
const index2 = listItem.index;
const hasRegistered = index2 !== -1;
- const itemRef = React94.useRef(null);
+ const itemRef = React96.useRef(null);
useIsoLayoutEffect(() => {
if (!hasRegistered) {
return void 0;
@@ -40540,9 +40807,9 @@ var wp;
}
}
}, [hasRegistered, index2, multiple, isItemEqualToValue, store2, itemValue, selectedItemTextRef]);
- const lastKeyRef = React94.useRef(null);
- const pointerTypeRef = React94.useRef("mouse");
- const allowMouseSelectionRef = React94.useRef(false);
+ const lastKeyRef = React96.useRef(null);
+ const pointerTypeRef = React96.useRef("mouse");
+ const allowMouseSelectionRef = React96.useRef(false);
const {
getButtonProps,
buttonRef
@@ -40643,14 +40910,14 @@ var wp;
state,
props: [itemProps, defaultProps, elementProps, getButtonProps]
});
- const contextValue = React94.useMemo(() => ({
+ const contextValue = React96.useMemo(() => ({
selected,
index: index2,
textRef,
selectedByFocus,
hasRegistered
}), [selected, index2, textRef, selectedByFocus, hasRegistered]);
- return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(SelectItemContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(SelectItemContext.Provider, {
value: contextValue,
children: element
});
@@ -40658,9 +40925,9 @@ var wp;
if (true) SelectItem.displayName = "SelectItem";
// node_modules/@base-ui/react/select/item-indicator/SelectItemIndicator.mjs
- var React95 = __toESM(require_react(), 1);
- var import_jsx_runtime174 = __toESM(require_jsx_runtime(), 1);
- var SelectItemIndicator = /* @__PURE__ */ React95.forwardRef(function SelectItemIndicator2(componentProps, forwardedRef) {
+ var React97 = __toESM(require_react(), 1);
+ var import_jsx_runtime176 = __toESM(require_jsx_runtime(), 1);
+ var SelectItemIndicator = /* @__PURE__ */ React97.forwardRef(function SelectItemIndicator2(componentProps, forwardedRef) {
const keepMounted = componentProps.keepMounted ?? false;
const {
selected
@@ -40669,16 +40936,16 @@ var wp;
if (!shouldRender) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(Inner, {
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(Inner, {
...componentProps,
ref: forwardedRef
});
});
if (true) SelectItemIndicator.displayName = "SelectItemIndicator";
- var Inner = /* @__PURE__ */ React95.memo(/* @__PURE__ */ React95.forwardRef((componentProps, forwardedRef) => {
+ var Inner = /* @__PURE__ */ React97.memo(/* @__PURE__ */ React97.forwardRef((componentProps, forwardedRef) => {
const {
render: render4,
- className,
+ className: className2,
style,
keepMounted,
...elementProps
@@ -40686,7 +40953,7 @@ var wp;
const {
selected
} = useSelectItemContext();
- const indicatorRef = React95.useRef(null);
+ const indicatorRef = React97.useRef(null);
const {
transitionStatus,
setMounted
@@ -40718,8 +40985,8 @@ var wp;
if (true) Inner.displayName = "Inner";
// node_modules/@base-ui/react/select/item-text/SelectItemText.mjs
- var React96 = __toESM(require_react(), 1);
- var SelectItemText = /* @__PURE__ */ React96.memo(/* @__PURE__ */ React96.forwardRef(function SelectItemText2(componentProps, forwardedRef) {
+ var React98 = __toESM(require_react(), 1);
+ var SelectItemText = /* @__PURE__ */ React98.memo(/* @__PURE__ */ React98.forwardRef(function SelectItemText2(componentProps, forwardedRef) {
const {
index: index2,
textRef,
@@ -40732,11 +40999,11 @@ var wp;
} = useSelectRootContext();
const {
render: render4,
- className,
+ className: className2,
style,
...elementProps
} = componentProps;
- const localRef = React96.useCallback((node) => {
+ const localRef = React98.useCallback((node) => {
if (!node) {
return;
}
@@ -40756,15 +41023,15 @@ var wp;
if (true) SelectItemText.displayName = "SelectItemText";
// node_modules/@base-ui/react/select/arrow/SelectArrow.mjs
- var React97 = __toESM(require_react(), 1);
+ var React99 = __toESM(require_react(), 1);
var stateAttributesMapping7 = {
...popupStateMapping,
...transitionStatusMapping
};
- var SelectArrow = /* @__PURE__ */ React97.forwardRef(function SelectArrow2(componentProps, forwardedRef) {
+ var SelectArrow = /* @__PURE__ */ React99.forwardRef(function SelectArrow2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
...elementProps
} = componentProps;
@@ -40803,14 +41070,14 @@ var wp;
if (true) SelectArrow.displayName = "SelectArrow";
// node_modules/@base-ui/react/select/scroll-down-arrow/SelectScrollDownArrow.mjs
- var React99 = __toESM(require_react(), 1);
+ var React101 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/select/scroll-arrow/SelectScrollArrow.mjs
- var React98 = __toESM(require_react(), 1);
- var SelectScrollArrow = /* @__PURE__ */ React98.forwardRef(function SelectScrollArrow2(componentProps, forwardedRef) {
+ var React100 = __toESM(require_react(), 1);
+ var SelectScrollArrow = /* @__PURE__ */ React100.forwardRef(function SelectScrollArrow2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
direction,
keepMounted = false,
@@ -40954,9 +41221,9 @@ var wp;
}
// node_modules/@base-ui/react/select/scroll-down-arrow/SelectScrollDownArrow.mjs
- var import_jsx_runtime175 = __toESM(require_jsx_runtime(), 1);
- var SelectScrollDownArrow = /* @__PURE__ */ React99.forwardRef(function SelectScrollDownArrow2(props, forwardedRef) {
- return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(SelectScrollArrow, {
+ var import_jsx_runtime177 = __toESM(require_jsx_runtime(), 1);
+ var SelectScrollDownArrow = /* @__PURE__ */ React101.forwardRef(function SelectScrollDownArrow2(props, forwardedRef) {
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(SelectScrollArrow, {
...props,
ref: forwardedRef,
direction: "down"
@@ -40965,10 +41232,10 @@ var wp;
if (true) SelectScrollDownArrow.displayName = "SelectScrollDownArrow";
// node_modules/@base-ui/react/select/scroll-up-arrow/SelectScrollUpArrow.mjs
- var React100 = __toESM(require_react(), 1);
- var import_jsx_runtime176 = __toESM(require_jsx_runtime(), 1);
- var SelectScrollUpArrow = /* @__PURE__ */ React100.forwardRef(function SelectScrollUpArrow2(props, forwardedRef) {
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(SelectScrollArrow, {
+ var React102 = __toESM(require_react(), 1);
+ var import_jsx_runtime178 = __toESM(require_jsx_runtime(), 1);
+ var SelectScrollUpArrow = /* @__PURE__ */ React102.forwardRef(function SelectScrollUpArrow2(props, forwardedRef) {
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(SelectScrollArrow, {
...props,
ref: forwardedRef,
direction: "up"
@@ -40977,14 +41244,14 @@ var wp;
if (true) SelectScrollUpArrow.displayName = "SelectScrollUpArrow";
// node_modules/@base-ui/react/select/group/SelectGroup.mjs
- var React102 = __toESM(require_react(), 1);
+ var React104 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/select/group/SelectGroupContext.mjs
- var React101 = __toESM(require_react(), 1);
- var SelectGroupContext = /* @__PURE__ */ React101.createContext(void 0);
+ var React103 = __toESM(require_react(), 1);
+ var SelectGroupContext = /* @__PURE__ */ React103.createContext(void 0);
if (true) SelectGroupContext.displayName = "SelectGroupContext";
function useSelectGroupContext() {
- const context = React101.useContext(SelectGroupContext);
+ const context = React103.useContext(SelectGroupContext);
if (context === void 0) {
throw new Error(true ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : formatErrorMessage_default(56));
}
@@ -40992,16 +41259,16 @@ var wp;
}
// node_modules/@base-ui/react/select/group/SelectGroup.mjs
- var import_jsx_runtime177 = __toESM(require_jsx_runtime(), 1);
- var SelectGroup = /* @__PURE__ */ React102.forwardRef(function SelectGroup2(componentProps, forwardedRef) {
+ var import_jsx_runtime179 = __toESM(require_jsx_runtime(), 1);
+ var SelectGroup = /* @__PURE__ */ React104.forwardRef(function SelectGroup2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
...elementProps
} = componentProps;
- const [labelId, setLabelId] = React102.useState();
- const contextValue = React102.useMemo(() => ({
+ const [labelId, setLabelId] = React104.useState();
+ const contextValue = React104.useMemo(() => ({
labelId,
setLabelId
}), [labelId, setLabelId]);
@@ -41012,7 +41279,7 @@ var wp;
"aria-labelledby": labelId
}, elementProps]
});
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(SelectGroupContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(SelectGroupContext.Provider, {
value: contextValue,
children: element
});
@@ -41020,11 +41287,11 @@ var wp;
if (true) SelectGroup.displayName = "SelectGroup";
// node_modules/@base-ui/react/select/group-label/SelectGroupLabel.mjs
- var React103 = __toESM(require_react(), 1);
- var SelectGroupLabel = /* @__PURE__ */ React103.forwardRef(function SelectGroupLabel2(componentProps, forwardedRef) {
+ var React105 = __toESM(require_react(), 1);
+ var SelectGroupLabel = /* @__PURE__ */ React105.forwardRef(function SelectGroupLabel2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
id: idProp,
...elementProps
@@ -41062,14 +41329,14 @@ var wp;
});
// node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs
- var React106 = __toESM(require_react(), 1);
+ var React108 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/root/TooltipRootContext.mjs
- var React104 = __toESM(require_react(), 1);
- var TooltipRootContext = /* @__PURE__ */ React104.createContext(void 0);
+ var React106 = __toESM(require_react(), 1);
+ var TooltipRootContext = /* @__PURE__ */ React106.createContext(void 0);
if (true) TooltipRootContext.displayName = "TooltipRootContext";
function useTooltipRootContext(optional) {
- const context = React104.useContext(TooltipRootContext);
+ const context = React106.useContext(TooltipRootContext);
if (context === void 0 && !optional) {
throw new Error(true ? "Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>." : formatErrorMessage_default(72));
}
@@ -41077,7 +41344,7 @@ var wp;
}
// node_modules/@base-ui/react/tooltip/store/TooltipStore.mjs
- var React105 = __toESM(require_react(), 1);
+ var React107 = __toESM(require_react(), 1);
var selectors3 = {
...popupStoreSelectors,
disabled: createSelector3((state) => state.disabled),
@@ -41099,7 +41366,7 @@ var wp;
};
state.floatingRootContext = createPopupFloatingRootContext(triggerElements, floatingId, nested);
super(state, {
- popupRef: /* @__PURE__ */ React105.createRef(),
+ popupRef: /* @__PURE__ */ React107.createRef(),
onOpenChange: void 0,
onOpenChangeComplete: void 0,
triggerElements
@@ -41137,7 +41404,7 @@ var wp;
}
// node_modules/@base-ui/react/tooltip/root/TooltipRoot.mjs
- var import_jsx_runtime178 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime180 = __toESM(require_jsx_runtime(), 1);
var TooltipRoot = fastComponent(function TooltipRoot2(props) {
const {
disabled: disabled2 = false,
@@ -41184,7 +41451,7 @@ var wp;
const isInstantPhase = store2.useState("isInstantPhase");
const instantType = store2.useState("instantType");
const lastOpenChangeReason = store2.useState("lastOpenChangeReason");
- const previousInstantTypeRef = React106.useRef(null);
+ const previousInstantTypeRef = React108.useRef(null);
useIsoLayoutEffect(() => {
if (openState && disabled2) {
store2.setOpen(false, createChangeEventDetails(reason_parts_exports.disabled));
@@ -41208,17 +41475,17 @@ var wp;
}
}
}, [store2, activeTriggerId, open]);
- const handleImperativeClose = React106.useCallback(() => {
+ const handleImperativeClose = React108.useCallback(() => {
store2.setOpen(false, createChangeEventDetails(reason_parts_exports.imperativeAction));
}, [store2]);
- React106.useImperativeHandle(actionsRef, () => ({
+ React108.useImperativeHandle(actionsRef, () => ({
unmount: forceUnmount,
close: handleImperativeClose
}), [forceUnmount, handleImperativeClose]);
const shouldRenderInteractions = open || mounted || !disabled2 && trackCursorAxis !== "none";
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(TooltipRootContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)(TooltipRootContext.Provider, {
value: store2,
- children: [shouldRenderInteractions && /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(TooltipInteractions, {
+ children: [shouldRenderInteractions && /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(TooltipInteractions, {
store: store2,
disabled: disabled2,
trackCursorAxis
@@ -41242,9 +41509,9 @@ var wp;
enabled: !disabled2 && trackCursorAxis !== "none",
axis: trackCursorAxis === "none" ? void 0 : trackCursorAxis
});
- const activeTriggerProps = React106.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);
- const inactiveTriggerProps = React106.useMemo(() => mergeProps(clientPoint.trigger, dismiss.trigger), [clientPoint.trigger, dismiss.trigger]);
- const popupProps = React106.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, clientPoint.floating, dismiss.floating), [clientPoint.floating, dismiss.floating]);
+ const activeTriggerProps = React108.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);
+ const inactiveTriggerProps = React108.useMemo(() => mergeProps(clientPoint.trigger, dismiss.trigger), [clientPoint.trigger, dismiss.trigger]);
+ const popupProps = React108.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, clientPoint.floating, dismiss.floating), [clientPoint.floating, dismiss.floating]);
usePopupInteractionProps(store2, {
activeTriggerProps,
inactiveTriggerProps,
@@ -41254,14 +41521,14 @@ var wp;
}
// node_modules/@base-ui/react/tooltip/trigger/TooltipTrigger.mjs
- var React108 = __toESM(require_react(), 1);
+ var React110 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/provider/TooltipProviderContext.mjs
- var React107 = __toESM(require_react(), 1);
- var TooltipProviderContext = /* @__PURE__ */ React107.createContext(void 0);
+ var React109 = __toESM(require_react(), 1);
+ var TooltipProviderContext = /* @__PURE__ */ React109.createContext(void 0);
if (true) TooltipProviderContext.displayName = "TooltipProviderContext";
function useTooltipProviderContext() {
- return React107.useContext(TooltipProviderContext);
+ return React109.useContext(TooltipProviderContext);
}
// node_modules/@base-ui/react/tooltip/trigger/TooltipTriggerDataAttributes.mjs
@@ -41311,7 +41578,7 @@ var wp;
var TooltipTrigger = fastComponentRef(function TooltipTrigger2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
handle,
payload,
@@ -41331,7 +41598,7 @@ var wp;
const isTriggerActive = store2.useState("isTriggerActive", thisTriggerId);
const isOpenedByThisTrigger = store2.useState("isOpenedByTrigger", thisTriggerId);
const floatingRootContext = store2.useState("floatingRootContext");
- const triggerElementRef = React108.useRef(null);
+ const triggerElementRef = React110.useRef(null);
const delayWithDefault = delay ?? OPEN_DELAY;
const closeDelayWithDefault = closeDelay ?? 0;
const {
@@ -41357,9 +41624,9 @@ var wp;
const disabledRef = useValueAsRef(disabled2);
const trackCursorAxis = store2.useState("trackCursorAxis");
const disableHoverablePopup = store2.useState("disableHoverablePopup");
- const isNestedTriggerHoveredRef = React108.useRef(false);
+ const isNestedTriggerHoveredRef = React110.useRef(false);
const nestedTriggerOpenTimeout = useTimeout();
- const pointerTypeRef = React108.useRef(void 0);
+ const pointerTypeRef = React110.useRef(void 0);
function getOpenDelay() {
const providerDelay = providerContext?.delay;
const groupOpenValue = typeof delayRef.current === "object" ? delayRef.current.open : void 0;
@@ -41492,14 +41759,14 @@ var wp;
if (true) TooltipTrigger.displayName = "TooltipTrigger";
// node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
- var React110 = __toESM(require_react(), 1);
+ var React112 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/portal/TooltipPortalContext.mjs
- var React109 = __toESM(require_react(), 1);
- var TooltipPortalContext = /* @__PURE__ */ React109.createContext(void 0);
+ var React111 = __toESM(require_react(), 1);
+ var TooltipPortalContext = /* @__PURE__ */ React111.createContext(void 0);
if (true) TooltipPortalContext.displayName = "TooltipPortalContext";
function useTooltipPortalContext() {
- const value = React109.useContext(TooltipPortalContext);
+ const value = React111.useContext(TooltipPortalContext);
if (value === void 0) {
throw new Error(true ? "Base UI: <Tooltip.Portal> is missing." : formatErrorMessage_default(70));
}
@@ -41507,8 +41774,8 @@ var wp;
}
// node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
- var import_jsx_runtime179 = __toESM(require_jsx_runtime(), 1);
- var TooltipPortal = /* @__PURE__ */ React110.forwardRef(function TooltipPortal2(props, forwardedRef) {
+ var import_jsx_runtime181 = __toESM(require_jsx_runtime(), 1);
+ var TooltipPortal = /* @__PURE__ */ React112.forwardRef(function TooltipPortal2(props, forwardedRef) {
const {
keepMounted = false,
...portalProps
@@ -41519,9 +41786,9 @@ var wp;
if (!shouldRender) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(TooltipPortalContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(TooltipPortalContext.Provider, {
value: keepMounted,
- children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(FloatingPortalLite, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(FloatingPortalLite, {
ref: forwardedRef,
...portalProps
})
@@ -41530,14 +41797,14 @@ var wp;
if (true) TooltipPortal.displayName = "TooltipPortal";
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
- var React112 = __toESM(require_react(), 1);
+ var React114 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositionerContext.mjs
- var React111 = __toESM(require_react(), 1);
- var TooltipPositionerContext = /* @__PURE__ */ React111.createContext(void 0);
+ var React113 = __toESM(require_react(), 1);
+ var TooltipPositionerContext = /* @__PURE__ */ React113.createContext(void 0);
if (true) TooltipPositionerContext.displayName = "TooltipPositionerContext";
function useTooltipPositionerContext() {
- const context = React111.useContext(TooltipPositionerContext);
+ const context = React113.useContext(TooltipPositionerContext);
if (context === void 0) {
throw new Error(true ? "Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>." : formatErrorMessage_default(71));
}
@@ -41545,11 +41812,11 @@ var wp;
}
// node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
- var import_jsx_runtime180 = __toESM(require_jsx_runtime(), 1);
- var TooltipPositioner = /* @__PURE__ */ React112.forwardRef(function TooltipPositioner2(componentProps, forwardedRef) {
+ var import_jsx_runtime182 = __toESM(require_jsx_runtime(), 1);
+ var TooltipPositioner = /* @__PURE__ */ React114.forwardRef(function TooltipPositioner2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
anchor,
positionMethod = "absolute",
side = "top",
@@ -41593,7 +41860,7 @@ var wp;
collisionAvoidance,
adaptiveOrigin: hasViewport ? adaptiveOrigin : void 0
});
- const state = React112.useMemo(() => ({
+ const state = React114.useMemo(() => ({
open,
side: positioning.side,
align: positioning.align,
@@ -41608,7 +41875,7 @@ var wp;
hidden: !mounted,
inert: !open || trackCursorAxis === "both" || disableHoverablePopup
});
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(TooltipPositionerContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(TooltipPositionerContext.Provider, {
value: positioning,
children: element
});
@@ -41616,15 +41883,15 @@ var wp;
if (true) TooltipPositioner.displayName = "TooltipPositioner";
// node_modules/@base-ui/react/tooltip/popup/TooltipPopup.mjs
- var React113 = __toESM(require_react(), 1);
+ var React115 = __toESM(require_react(), 1);
var stateAttributesMapping8 = {
...popupStateMapping,
...transitionStatusMapping
};
- var TooltipPopup = /* @__PURE__ */ React113.forwardRef(function TooltipPopup2(componentProps, forwardedRef) {
+ var TooltipPopup = /* @__PURE__ */ React115.forwardRef(function TooltipPopup2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
...elementProps
} = componentProps;
@@ -41672,11 +41939,11 @@ var wp;
if (true) TooltipPopup.displayName = "TooltipPopup";
// node_modules/@base-ui/react/tooltip/arrow/TooltipArrow.mjs
- var React114 = __toESM(require_react(), 1);
- var TooltipArrow = /* @__PURE__ */ React114.forwardRef(function TooltipArrow2(componentProps, forwardedRef) {
+ var React116 = __toESM(require_react(), 1);
+ var TooltipArrow = /* @__PURE__ */ React116.forwardRef(function TooltipArrow2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
...elementProps
} = componentProps;
@@ -41711,25 +41978,25 @@ var wp;
if (true) TooltipArrow.displayName = "TooltipArrow";
// node_modules/@base-ui/react/tooltip/provider/TooltipProvider.mjs
- var React115 = __toESM(require_react(), 1);
- var import_jsx_runtime181 = __toESM(require_jsx_runtime(), 1);
+ var React117 = __toESM(require_react(), 1);
+ var import_jsx_runtime183 = __toESM(require_jsx_runtime(), 1);
var TooltipProvider = function TooltipProvider2(props) {
const {
delay,
closeDelay,
timeout = 400
} = props;
- const contextValue = React115.useMemo(() => ({
+ const contextValue = React117.useMemo(() => ({
delay,
closeDelay
}), [delay, closeDelay]);
- const delayValue = React115.useMemo(() => ({
+ const delayValue = React117.useMemo(() => ({
open: delay,
close: closeDelay
}), [delay, closeDelay]);
- return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(TooltipProviderContext.Provider, {
+ return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(TooltipProviderContext.Provider, {
value: contextValue,
- children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(FloatingDelayGroup, {
+ children: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(FloatingDelayGroup, {
delay: delayValue,
timeoutMs: timeout,
children: props.children
@@ -41739,7 +42006,7 @@ var wp;
if (true) TooltipProvider.displayName = "TooltipProvider";
// node_modules/@base-ui/react/tooltip/viewport/TooltipViewport.mjs
- var React116 = __toESM(require_react(), 1);
+ var React118 = __toESM(require_react(), 1);
// node_modules/@base-ui/react/tooltip/viewport/TooltipViewportCssVars.mjs
var TooltipViewportCssVars = /* @__PURE__ */ (function(TooltipViewportCssVars2) {
@@ -41754,10 +42021,10 @@ var wp;
"data-activation-direction": value
} : null
};
- var TooltipViewport = /* @__PURE__ */ React116.forwardRef(function TooltipViewport2(componentProps, forwardedRef) {
+ var TooltipViewport = /* @__PURE__ */ React118.forwardRef(function TooltipViewport2(componentProps, forwardedRef) {
const {
render: render4,
- className,
+ className: className2,
style,
children,
...elementProps
@@ -41926,7 +42193,7 @@ var wp;
registerStyle("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
}
var global_css_defense_default = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
- var Text = (0, import_element47.forwardRef)(function Text2({ variant = "body-md", render: render4, className, ...props }, ref) {
+ var Text = (0, import_element47.forwardRef)(function Text2({ variant = "body-md", render: render4, className: className2, ...props }, ref) {
const element = useRender({
render: render4,
defaultTagName: "span",
@@ -41937,7 +42204,7 @@ var wp;
global_css_defense_default.heading,
global_css_defense_default.p,
style_default[variant],
- className
+ className2
)
})
});
@@ -41945,7 +42212,7 @@ var wp;
});
// packages/ui/build-module/badge/badge.mjs
- var import_jsx_runtime182 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime184 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE2 = "data-wp-hash";
function getRuntime2() {
const globalScope = globalThis;
@@ -42030,15 +42297,15 @@ var wp;
registerStyle2("9db2873e7f", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-background-surface-error,#f6e6e3);color:var(--wpds-color-foreground-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-background-surface-warning,#fde6be);color:var(--wpds-color-foreground-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-background-surface-caution,#fee995);color:var(--wpds-color-foreground-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-background-surface-success,#c6f7cd);color:var(--wpds-color-foreground-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-background-surface-info,#deebfa);color:var(--wpds-color-foreground-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}}");
}
var style_default2 = { "badge": "_96e6251aad1a6136__badge", "is-high-intent": "_99f7158cb520f750__is-high-intent", "is-medium-intent": "c20ebef2365bc8b7__is-medium-intent", "is-low-intent": "_365e1626c6202e52__is-low-intent", "is-stable-intent": "_33f8198127ddf4ef__is-stable-intent", "is-informational-intent": "_04c1aca8fc449412__is-informational-intent", "is-draft-intent": "_90726e69d495ec19__is-draft-intent", "is-none-intent": "_898f4a544993bd39__is-none-intent" };
- var Badge = (0, import_element48.forwardRef)(function Badge2({ intent = "none", className, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
+ var Badge = (0, import_element48.forwardRef)(function Badge2({ intent = "none", className: className2, ...props }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
Text,
{
ref,
className: clsx_default(
style_default2.badge,
style_default2[`is-${intent}-intent`],
- className
+ className2
),
...props,
variant: "body-sm"
@@ -42046,35 +42313,11 @@ var wp;
);
});
- // packages/ui/build-module/icon/icon.mjs
+ // packages/ui/build-module/button/button.mjs
+ var import_a11y4 = __toESM(require_a11y(), 1);
var import_element49 = __toESM(require_element(), 1);
- var import_primitives117 = __toESM(require_primitives(), 1);
- var import_jsx_runtime183 = __toESM(require_jsx_runtime(), 1);
- var Icon = (0, import_element49.forwardRef)(function Icon2({ icon, size: size4 = 24, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
- import_primitives117.SVG,
- {
- ref,
- ...icon.props,
- ...restProps,
- width: size4,
- height: size4
- }
- );
- });
-
- // packages/ui/build-module/card/index.mjs
- var card_exports = {};
- __export(card_exports, {
- Content: () => Content,
- FullBleed: () => FullBleed,
- Header: () => Header,
- Root: () => Root,
- Title: () => Title
- });
-
- // packages/ui/build-module/card/root.mjs
- var import_element50 = __toESM(require_element(), 1);
+ var import_i18n31 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime185 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE3 = "data-wp-hash";
function getRuntime3() {
const globalScope = globalThis;
@@ -42155,27 +42398,87 @@ var wp;
injectStyle3(targetDocument, hash, css);
}
}
+ if (typeof process === "undefined" || true) {
+ registerStyle3("b74f1ac304", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);inset-inline-start:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');
+ }
+ var style_default3 = { "button": "_97b0fc33c028be1a__button", "is-unstyled": "abbb272e2ce49bd6__is-unstyled", "is-loading": "_914b42f315c0e580__is-loading", "is-small": "_908205475f9f2a92__is-small", "icon": "_9f6fc6553aeb36fe__icon", "is-brand": "dd460c965226cc77__is-brand", "is-outline": "_62d5a778b7b258ee__is-outline", "is-minimal": "ad0619a3217c6a5b__is-minimal", "is-neutral": "e722a8f96726aa99__is-neutral", "is-solid": "b50b3358c5fb4d0b__is-solid", "is-compact": "cf59cf1b69629838__is-compact", "loading-animation": "_5a1d53da6f830c8d__loading-animation" };
if (typeof process === "undefined" || true) {
registerStyle3("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
}
var resets_default = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
if (typeof process === "undefined" || true) {
- registerStyle3("5d38cbdd27", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
+ registerStyle3("2ffedd8246", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
}
- var style_default3 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
- var Root = (0, import_element50.forwardRef)(function Card({ render: render4, ...restProps }, ref) {
- const mergedClassName = clsx_default(style_default3.root, resets_default["box-sizing"]);
- const element = useRender({
- defaultTagName: "div",
- render: render4,
- ref,
- props: mergeProps({ className: mergedClassName }, restProps)
- });
- return element;
- });
+ var focus_module_default = { "outset-ring--focus": "af79fb116edb0dd7__outset-ring--focus", "outset-ring--focus-visible": "dfcfdc28396e5d98__outset-ring--focus-visible", "outset-ring--focus-within": "e5cd9ee879f6403a__outset-ring--focus-within", "outset-ring--focus-within-visible": "_64de9947bf305b7a__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "_81935a08e952f267__outset-ring--focus-parent-visible", "outset-ring--focus-except-active": "abc777e9713fa711__outset-ring--focus-except-active", "outset-ring--focus-within-except-active": "_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active" };
+ if (typeof process === "undefined" || true) {
+ registerStyle3("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
+ }
+ var global_css_defense_default2 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
+ var Button8 = (0, import_element49.forwardRef)(
+ function Button22({
+ tone = "brand",
+ variant = "solid",
+ size: size4 = "default",
+ className: className2,
+ focusableWhenDisabled = true,
+ disabled: disabled2,
+ loading,
+ loadingAnnouncement = (0, import_i18n31.__)("Loading"),
+ children,
+ ...props
+ }, ref) {
+ const mergedClassName = clsx_default(
+ global_css_defense_default2.button,
+ resets_default["box-sizing"],
+ focus_module_default["outset-ring--focus-except-active"],
+ variant !== "unstyled" && style_default3.button,
+ style_default3[`is-${tone}`],
+ style_default3[`is-${variant}`],
+ style_default3[`is-${size4}`],
+ loading && style_default3["is-loading"],
+ className2
+ );
+ (0, import_element49.useEffect)(() => {
+ if (loading && loadingAnnouncement) {
+ (0, import_a11y4.speak)(loadingAnnouncement);
+ }
+ }, [loading, loadingAnnouncement]);
+ return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
+ Button6,
+ {
+ ref,
+ className: mergedClassName,
+ focusableWhenDisabled,
+ disabled: disabled2 ?? loading,
+ ...props,
+ children
+ }
+ );
+ }
+ );
- // packages/ui/build-module/card/header.mjs
+ // packages/ui/build-module/button/icon.mjs
var import_element51 = __toESM(require_element(), 1);
+
+ // packages/ui/build-module/icon/icon.mjs
+ var import_element50 = __toESM(require_element(), 1);
+ var import_primitives118 = __toESM(require_primitives(), 1);
+ var import_jsx_runtime186 = __toESM(require_jsx_runtime(), 1);
+ var Icon = (0, import_element50.forwardRef)(function Icon2({ icon, size: size4 = 24, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
+ import_primitives118.SVG,
+ {
+ ref,
+ ...icon.props,
+ ...restProps,
+ width: size4,
+ height: size4
+ }
+ );
+ });
+
+ // packages/ui/build-module/button/icon.mjs
+ var import_jsx_runtime187 = __toESM(require_jsx_runtime(), 1);
var STYLE_HASH_ATTRIBUTE4 = "data-wp-hash";
function getRuntime4() {
const globalScope = globalThis;
@@ -42257,32394 +42560,30402 @@ var wp;
}
}
if (typeof process === "undefined" || true) {
- registerStyle4("5d38cbdd27", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
+ registerStyle4("b74f1ac304", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);inset-inline-start:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');
}
- var style_default4 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
- var Header = (0, import_element51.forwardRef)(
- function CardHeader({ render: render4, ...props }, ref) {
- const element = useRender({
- defaultTagName: "div",
- render: render4,
- ref,
- props: mergeProps({ className: style_default4.header }, props)
- });
- return element;
+ var style_default4 = { "button": "_97b0fc33c028be1a__button", "is-unstyled": "abbb272e2ce49bd6__is-unstyled", "is-loading": "_914b42f315c0e580__is-loading", "is-small": "_908205475f9f2a92__is-small", "icon": "_9f6fc6553aeb36fe__icon", "is-brand": "dd460c965226cc77__is-brand", "is-outline": "_62d5a778b7b258ee__is-outline", "is-minimal": "ad0619a3217c6a5b__is-minimal", "is-neutral": "e722a8f96726aa99__is-neutral", "is-solid": "b50b3358c5fb4d0b__is-solid", "is-compact": "cf59cf1b69629838__is-compact", "loading-animation": "_5a1d53da6f830c8d__loading-animation" };
+ var ButtonIcon = (0, import_element51.forwardRef)(
+ function ButtonIcon2({ className: className2, icon, ...props }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
+ Icon,
+ {
+ ref,
+ icon,
+ className: clsx_default(style_default4.icon, className2),
+ size: 24,
+ ...props
+ }
+ );
}
);
- // packages/ui/build-module/card/content.mjs
- var import_element52 = __toESM(require_element(), 1);
- var STYLE_HASH_ATTRIBUTE5 = "data-wp-hash";
- function getRuntime5() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument5(document);
- }
- return globalScope.__wpStyleRuntime;
+ // packages/ui/build-module/button/index.mjs
+ ButtonIcon.displayName = "Button.Icon";
+ var Button9 = Object.assign(Button8, {
+ /**
+ * An icon component specifically designed to work well when rendered inside
+ * a `Button` component.
+ */
+ Icon: ButtonIcon
+ });
+
+ // node_modules/@date-fns/tz/tzName/index.js
+ function tzName(timeZone, date, format7 = "long") {
+ return new Intl.DateTimeFormat("en-US", {
+ // Enforces engine to render the time. Without the option JavaScriptCore omits it.
+ hour: "numeric",
+ timeZone,
+ timeZoneName: format7
+ }).format(date).split(/\s/g).slice(2).join(" ");
}
- function documentContainsStyleHash5(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE5}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE5) === hash) {
- return true;
- }
+
+ // node_modules/@date-fns/tz/tzOffset/index.js
+ var offsetFormatCache = {};
+ var offsetCache = {};
+ function tzOffset(timeZone, date) {
+ try {
+ const format7 = offsetFormatCache[timeZone] ||= new Intl.DateTimeFormat("en-US", {
+ timeZone,
+ timeZoneName: "longOffset"
+ }).format;
+ const offsetStr = format7(date).split("GMT")[1];
+ if (offsetStr in offsetCache) return offsetCache[offsetStr];
+ return calcOffset(offsetStr, offsetStr.split(":"));
+ } catch {
+ if (timeZone in offsetCache) return offsetCache[timeZone];
+ const captures = timeZone?.match(offsetRe);
+ if (captures) return calcOffset(timeZone, captures.slice(1));
+ return NaN;
}
- return false;
}
- function injectStyle5(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime5();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash5(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE5, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
+ var offsetRe = /([+-]\d\d):?(\d\d)?/;
+ function calcOffset(cacheStr, values) {
+ const hours = +(values[0] || 0);
+ const minutes = +(values[1] || 0);
+ const seconds = +(values[2] || 0) / 60;
+ return offsetCache[cacheStr] = hours * 60 + minutes > 0 ? hours * 60 + minutes + seconds : hours * 60 - minutes - seconds;
}
- function registerDocument5(targetDocument) {
- const runtime = getRuntime5();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle5(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
+
+ // node_modules/@date-fns/tz/date/mini.js
+ var TZDateMini = class _TZDateMini extends Date {
+ //#region static
+ constructor(...args) {
+ super();
+ if (args.length > 1 && typeof args[args.length - 1] === "string") {
+ this.timeZone = args.pop();
}
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ this.internal = /* @__PURE__ */ new Date();
+ if (isNaN(tzOffset(this.timeZone, this))) {
+ this.setTime(NaN);
+ } else {
+ if (!args.length) {
+ this.setTime(Date.now());
+ } else if (typeof args[0] === "number" && (args.length === 1 || args.length === 2 && typeof args[1] !== "number")) {
+ this.setTime(args[0]);
+ } else if (typeof args[0] === "string") {
+ this.setTime(+new Date(args[0]));
+ } else if (args[0] instanceof Date) {
+ this.setTime(+args[0]);
+ } else {
+ this.setTime(+new Date(...args));
+ adjustToSystemTZ(this, args);
+ }
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle5(hash, css) {
- const runtime = getRuntime5();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle5(targetDocument, hash, css);
}
- }
- if (typeof process === "undefined" || true) {
- registerStyle5("5d38cbdd27", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
- }
- var style_default5 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
- var Content = (0, import_element52.forwardRef)(
- function CardContent({ render: render4, ...props }, ref) {
- const element = useRender({
- defaultTagName: "div",
- render: render4,
- ref,
- props: mergeProps({ className: style_default5.content }, props)
- });
- return element;
- }
- );
-
- // packages/ui/build-module/card/full-bleed.mjs
- var import_element53 = __toESM(require_element(), 1);
- var STYLE_HASH_ATTRIBUTE6 = "data-wp-hash";
- function getRuntime6() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
+ static tz(tz, ...args) {
+ return args.length ? new _TZDateMini(...args, tz) : new _TZDateMini(Date.now(), tz);
}
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument6(document);
+ //#endregion
+ //#region time zone
+ withTimeZone(timeZone) {
+ return new _TZDateMini(+this, timeZone);
}
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash6(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
+ getTimezoneOffset() {
+ const offset4 = -tzOffset(this.timeZone, this);
+ return offset4 > 0 ? Math.floor(offset4) : Math.ceil(offset4);
}
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE6}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE6) === hash) {
- return true;
- }
+ //#endregion
+ //#region time
+ setTime(_time) {
+ Date.prototype.setTime.apply(this, arguments);
+ syncToInternal(this);
+ return +this;
}
- return false;
- }
- function injectStyle6(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
+ //#endregion
+ //#region date-fns integration
+ [/* @__PURE__ */ Symbol.for("constructDateFrom")](date) {
+ return new _TZDateMini(+new Date(date), this.timeZone);
}
- const runtime = getRuntime6();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
+ //#endregion
+ };
+ var re = /^(get|set)(?!UTC)/;
+ Object.getOwnPropertyNames(Date.prototype).forEach((method) => {
+ if (!re.test(method)) return;
+ const utcMethod = method.replace(re, "$1UTC");
+ if (!TZDateMini.prototype[utcMethod]) return;
+ if (method.startsWith("get")) {
+ TZDateMini.prototype[method] = function() {
+ return this.internal[utcMethod]();
+ };
+ } else {
+ TZDateMini.prototype[method] = function() {
+ Date.prototype[utcMethod].apply(this.internal, arguments);
+ syncFromInternal(this);
+ return +this;
+ };
+ TZDateMini.prototype[utcMethod] = function() {
+ Date.prototype[utcMethod].apply(this, arguments);
+ syncToInternal(this);
+ return +this;
+ };
}
- if (injectedStyles.has(hash)) {
- return;
+ });
+ function syncToInternal(date) {
+ date.internal.setTime(+date);
+ date.internal.setUTCSeconds(date.internal.getUTCSeconds() - // Round after converting minutes to seconds to avoid fractional offset
+ // precision errors from historical offsets.
+ Math.round(-tzOffset(date.timeZone, date) * 60));
+ }
+ function syncFromInternal(date) {
+ Date.prototype.setFullYear.call(date, date.internal.getUTCFullYear(), date.internal.getUTCMonth(), date.internal.getUTCDate());
+ Date.prototype.setHours.call(date, date.internal.getUTCHours(), date.internal.getUTCMinutes(), date.internal.getUTCSeconds(), date.internal.getUTCMilliseconds());
+ adjustToSystemTZ(date);
+ }
+ function adjustToSystemTZ(date, constructorArgs) {
+ const expectedInternalTime = Array.isArray(constructorArgs) ? constructorArgsToInternalTime(constructorArgs) : +date.internal;
+ const offsetWithSeconds = tzOffset(date.timeZone, date);
+ const offset4 = offsetWithSeconds > 0 ? Math.floor(offsetWithSeconds) : Math.ceil(offsetWithSeconds);
+ const prevHour = /* @__PURE__ */ new Date(+date);
+ prevHour.setUTCHours(prevHour.getUTCHours() - 1);
+ const systemOffset = -(/* @__PURE__ */ new Date(+date)).getTimezoneOffset();
+ const prevHourSystemOffset = -(/* @__PURE__ */ new Date(+prevHour)).getTimezoneOffset();
+ const systemDSTChange = systemOffset - prevHourSystemOffset;
+ let systemOffsetForDiff = systemOffset;
+ if (systemDSTChange && systemOffset !== offset4) {
+ const systemHour = Date.prototype.getHours.apply(date);
+ const expectedHour = Array.isArray(constructorArgs) ? constructorArgs[3] || 0 : date.internal.getUTCHours();
+ if (systemHour !== expectedHour) {
+ const testDate = /* @__PURE__ */ new Date(+date);
+ const testOffsetDiff = systemOffset - offset4;
+ if (testOffsetDiff) testDate.setUTCMinutes(testDate.getUTCMinutes() + testOffsetDiff);
+ const testOffsetWithSeconds = tzOffset(date.timeZone, testDate);
+ const testOffset = testOffsetWithSeconds > 0 ? Math.floor(testOffsetWithSeconds) : Math.ceil(testOffsetWithSeconds);
+ if (testOffset === offset4) systemOffsetForDiff = prevHourSystemOffset;
+ }
+ }
+ const offsetDiff = systemOffsetForDiff - offset4;
+ if (offsetDiff)
+ Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetDiff);
+ const systemDate = /* @__PURE__ */ new Date(+date);
+ systemDate.setUTCSeconds(0);
+ const systemSecondsOffset = systemOffset > 0 ? systemDate.getSeconds() : (systemDate.getSeconds() - 60) % 60;
+ const secondsOffset = Math.round(-(tzOffset(date.timeZone, date) * 60)) % 60;
+ if (secondsOffset || systemSecondsOffset)
+ Date.prototype.setUTCSeconds.call(date, Date.prototype.getUTCSeconds.call(date) + secondsOffset + systemSecondsOffset);
+ const postOffsetWithSeconds = tzOffset(date.timeZone, date);
+ const postOffset = postOffsetWithSeconds > 0 ? Math.floor(postOffsetWithSeconds) : Math.ceil(postOffsetWithSeconds);
+ const postSystemOffset = -(/* @__PURE__ */ new Date(+date)).getTimezoneOffset();
+ const postOffsetDiff = postSystemOffset - postOffset;
+ const offsetChanged = postOffset !== offset4;
+ const postDiff = postOffsetDiff - offsetDiff;
+ const targetDSTShift = postOffset - offset4;
+ const postOffsetCandidate = expectedInternalTime - postOffset * 60 * 1e3;
+ const normalizedTargetDSTGap = targetDSTShift > 0 && targetInternalTime(date) - expectedInternalTime === targetDSTShift * 60 * 1e3 && targetInternalTime(date, postOffsetCandidate) !== expectedInternalTime;
+ if (offsetChanged && postDiff && !normalizedTargetDSTGap) {
+ Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + postDiff);
+ const newOffsetWithSeconds = tzOffset(date.timeZone, date);
+ const newOffset = newOffsetWithSeconds > 0 ? Math.floor(newOffsetWithSeconds) : Math.ceil(newOffsetWithSeconds);
+ const offsetChange = postOffset - newOffset;
+ if (offsetChange && postDiff < 0) {
+ Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetChange);
+ }
+ }
+ syncToInternal(date);
+ const expectedTime = constructorArgs ? expectedInternalTime : expectedInternalTime + secondsOffset * 1e3;
+ const drift = expectedTime - +date.internal;
+ if (drift && Math.abs(drift) < 30 * 60 * 1e3) {
+ Date.prototype.setTime.call(date, +date + drift);
+ syncToInternal(date);
+ }
+ }
+ function constructorArgsToInternalTime(args) {
+ return Date.UTC(args[0], args.length > 1 ? args[1] : 0, args.length > 2 ? args[2] : 1, ...args.slice(3));
+ }
+ function targetInternalTime(date, time) {
+ const internal = new Date(time ?? +date);
+ internal.setUTCSeconds(internal.getUTCSeconds() - Math.round(-tzOffset(date.timeZone, internal) * 60));
+ return +internal;
+ }
+
+ // node_modules/@date-fns/tz/date/index.js
+ var TZDate = class _TZDate extends TZDateMini {
+ //#region static
+ static tz(tz, ...args) {
+ return args.length ? new _TZDate(...args, tz) : new _TZDate(Date.now(), tz);
+ }
+ //#endregion
+ //#region representation
+ toISOString() {
+ const [sign, hours, minutes] = this.tzComponents();
+ const tz = `${sign}${hours}:${minutes}`;
+ return this.internal.toISOString().slice(0, -1) + tz;
+ }
+ toString() {
+ return `${this.toDateString()} ${this.toTimeString()}`;
+ }
+ toDateString() {
+ const [day, date, month, year] = this.internal.toUTCString().split(" ");
+ return `${day?.slice(0, -1)} ${month} ${date} ${year}`;
+ }
+ toTimeString() {
+ const time = this.internal.toUTCString().split(" ")[4];
+ const [sign, hours, minutes] = this.tzComponents();
+ return `${time} GMT${sign}${hours}${minutes} (${tzName(this.timeZone, this)})`;
+ }
+ toLocaleString(locales, options) {
+ return Date.prototype.toLocaleString.call(this, locales, {
+ ...options,
+ timeZone: options?.timeZone || this.timeZone
+ });
}
- if (documentContainsStyleHash6(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
+ toLocaleDateString(locales, options) {
+ return Date.prototype.toLocaleDateString.call(this, locales, {
+ ...options,
+ timeZone: options?.timeZone || this.timeZone
+ });
}
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE6, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument6(targetDocument) {
- const runtime = getRuntime6();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle6(targetDocument, hash, css);
+ toLocaleTimeString(locales, options) {
+ return Date.prototype.toLocaleTimeString.call(this, locales, {
+ ...options,
+ timeZone: options?.timeZone || this.timeZone
+ });
}
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
- }
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle6(hash, css) {
- const runtime = getRuntime6();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle6(targetDocument, hash, css);
+ //#endregion
+ //#region private
+ tzComponents() {
+ const offset4 = this.getTimezoneOffset();
+ const sign = offset4 > 0 ? "-" : "+";
+ const hours = String(Math.floor(Math.abs(offset4) / 60)).padStart(2, "0");
+ const minutes = String(Math.abs(offset4) % 60).padStart(2, "0");
+ return [sign, hours, minutes];
}
- }
- if (typeof process === "undefined" || true) {
- registerStyle6("5d38cbdd27", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
- }
- var style_default6 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
- var FullBleed = (0, import_element53.forwardRef)(
- function CardFullBleed({ render: render4, ...props }, ref) {
- const element = useRender({
- defaultTagName: "div",
- render: render4,
- ref,
- props: mergeProps(
- { className: style_default6.fullbleed },
- props
- )
- });
- return element;
+ //#endregion
+ withTimeZone(timeZone) {
+ return new _TZDate(+this, timeZone);
}
- );
-
- // packages/ui/build-module/card/title.mjs
- var import_element54 = __toESM(require_element(), 1);
- var import_jsx_runtime184 = __toESM(require_jsx_runtime(), 1);
- var DEFAULT_TAG = /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("div", {});
- var Title = (0, import_element54.forwardRef)(
- function CardTitle({ render: render4 = DEFAULT_TAG, children, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
- Text,
- {
- ref,
- variant: "heading-lg",
- render: render4,
- ...props,
- children
- }
- );
+ //#region date-fns integration
+ [/* @__PURE__ */ Symbol.for("constructDateFrom")](date) {
+ return new _TZDate(+new Date(date), this.timeZone);
}
- );
+ //#endregion
+ };
- // packages/ui/build-module/collapsible/panel.mjs
- var import_element55 = __toESM(require_element(), 1);
- var import_jsx_runtime185 = __toESM(require_jsx_runtime(), 1);
- var Panel = (0, import_element55.forwardRef)(
- function CollapsiblePanel3(props, forwardedRef) {
- return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(index_parts_exports.Panel, { ref: forwardedRef, ...props });
- }
- );
+ // node_modules/date-fns/constants.js
+ var daysInYear = 365.2425;
+ var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
+ var minTime = -maxTime;
+ var millisecondsInWeek = 6048e5;
+ var millisecondsInDay = 864e5;
+ var millisecondsInMinute = 6e4;
+ var millisecondsInHour = 36e5;
+ var millisecondsInSecond = 1e3;
+ var secondsInHour = 3600;
+ var secondsInDay = secondsInHour * 24;
+ var secondsInWeek = secondsInDay * 7;
+ var secondsInYear = secondsInDay * daysInYear;
+ var secondsInMonth = secondsInYear / 12;
+ var secondsInQuarter = secondsInMonth * 3;
+ var constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
- // packages/ui/build-module/collapsible/root.mjs
- var import_element56 = __toESM(require_element(), 1);
- var import_jsx_runtime186 = __toESM(require_jsx_runtime(), 1);
- var Root2 = (0, import_element56.forwardRef)(
- function CollapsibleRoot3(props, forwardedRef) {
- return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(index_parts_exports.Root, { ref: forwardedRef, ...props });
- }
- );
+ // node_modules/date-fns/constructFrom.js
+ function constructFrom(date, value) {
+ if (typeof date === "function") return date(value);
+ if (date && typeof date === "object" && constructFromSymbol in date)
+ return date[constructFromSymbol](value);
+ if (date instanceof Date) return new date.constructor(value);
+ return new Date(value);
+ }
- // packages/ui/build-module/collapsible/trigger.mjs
- var import_element57 = __toESM(require_element(), 1);
- var import_jsx_runtime187 = __toESM(require_jsx_runtime(), 1);
- var Trigger = (0, import_element57.forwardRef)(
- function CollapsibleTrigger3(props, forwardedRef) {
- return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(index_parts_exports.Trigger, { ref: forwardedRef, ...props });
- }
- );
+ // node_modules/date-fns/toDate.js
+ function toDate(argument, context) {
+ return constructFrom(context || argument, argument);
+ }
- // packages/ui/build-module/collapsible-card/index.mjs
- var collapsible_card_exports = {};
- __export(collapsible_card_exports, {
- Content: () => Content2,
- Header: () => Header2,
- HeaderDescription: () => HeaderDescription,
- Root: () => Root3
- });
+ // node_modules/date-fns/addDays.js
+ function addDays(date, amount, options) {
+ const _date = toDate(date, options?.in);
+ if (isNaN(amount)) return constructFrom(options?.in || date, NaN);
+ if (!amount) return _date;
+ _date.setDate(_date.getDate() + amount);
+ return _date;
+ }
- // packages/ui/build-module/collapsible-card/root.mjs
- var import_element58 = __toESM(require_element(), 1);
- var import_jsx_runtime188 = __toESM(require_jsx_runtime(), 1);
- var Root3 = (0, import_element58.forwardRef)(
- function CollapsibleCardRoot({ render: render4, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
- Root2,
- {
- ref,
- render: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(Root, { render: render4 }),
- ...restProps
- }
+ // node_modules/date-fns/addMonths.js
+ function addMonths(date, amount, options) {
+ const _date = toDate(date, options?.in);
+ if (isNaN(amount)) return constructFrom(options?.in || date, NaN);
+ if (!amount) {
+ return _date;
+ }
+ const dayOfMonth = _date.getDate();
+ const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());
+ endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
+ const daysInMonth = endOfDesiredMonth.getDate();
+ if (dayOfMonth >= daysInMonth) {
+ return endOfDesiredMonth;
+ } else {
+ _date.setFullYear(
+ endOfDesiredMonth.getFullYear(),
+ endOfDesiredMonth.getMonth(),
+ dayOfMonth
);
+ return _date;
}
- );
-
- // packages/ui/build-module/collapsible-card/header.mjs
- var import_element60 = __toESM(require_element(), 1);
+ }
- // packages/ui/build-module/collapsible-card/context.mjs
- var import_element59 = __toESM(require_element(), 1);
- var HeaderDescriptionIdContext = (0, import_element59.createContext)({
- setDescriptionId: () => {
- }
- });
+ // node_modules/date-fns/_lib/defaultOptions.js
+ var defaultOptions = {};
+ function getDefaultOptions() {
+ return defaultOptions;
+ }
- // packages/ui/build-module/collapsible-card/header.mjs
- var import_jsx_runtime189 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE7 = "data-wp-hash";
- function getRuntime7() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument7(document);
- }
- return globalScope.__wpStyleRuntime;
+ // node_modules/date-fns/startOfWeek.js
+ function startOfWeek(date, options) {
+ const defaultOptions2 = getDefaultOptions();
+ const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
+ const _date = toDate(date, options?.in);
+ const day = _date.getDay();
+ const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
+ _date.setDate(_date.getDate() - diff);
+ _date.setHours(0, 0, 0, 0);
+ return _date;
}
- function documentContainsStyleHash7(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE7}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE7) === hash) {
- return true;
- }
- }
- return false;
+
+ // node_modules/date-fns/startOfISOWeek.js
+ function startOfISOWeek(date, options) {
+ return startOfWeek(date, { ...options, weekStartsOn: 1 });
}
- function injectStyle7(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime7();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash7(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
+
+ // node_modules/date-fns/getISOWeekYear.js
+ function getISOWeekYear(date, options) {
+ const _date = toDate(date, options?.in);
+ const year = _date.getFullYear();
+ const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);
+ fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
+ fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
+ const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
+ const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);
+ fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
+ fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
+ const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
+ if (_date.getTime() >= startOfNextYear.getTime()) {
+ return year + 1;
+ } else if (_date.getTime() >= startOfThisYear.getTime()) {
+ return year;
+ } else {
+ return year - 1;
}
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE7, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
}
- function registerDocument7(targetDocument) {
- const runtime = getRuntime7();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
+
+ // node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
+ function getTimezoneOffsetInMilliseconds(date) {
+ const _date = toDate(date);
+ const utcDate = new Date(
+ Date.UTC(
+ _date.getFullYear(),
+ _date.getMonth(),
+ _date.getDate(),
+ _date.getHours(),
+ _date.getMinutes(),
+ _date.getSeconds(),
+ _date.getMilliseconds()
+ )
);
- for (const [hash, css] of runtime.styles) {
- injectStyle7(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
- }
- runtime.documents.set(targetDocument, count - 1);
- };
+ utcDate.setUTCFullYear(_date.getFullYear());
+ return +date - +utcDate;
}
- function registerStyle7(hash, css) {
- const runtime = getRuntime7();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle7(targetDocument, hash, css);
- }
+
+ // node_modules/date-fns/_lib/normalizeDates.js
+ function normalizeDates(context, ...dates) {
+ const normalize = constructFrom.bind(
+ null,
+ context || dates.find((date) => typeof date === "object")
+ );
+ return dates.map(normalize);
}
- if (typeof process === "undefined" || true) {
- registerStyle7("78199613cf", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");
+
+ // node_modules/date-fns/startOfDay.js
+ function startOfDay(date, options) {
+ const _date = toDate(date, options?.in);
+ _date.setHours(0, 0, 0, 0);
+ return _date;
}
- var style_default7 = { "heading-wrapper": "_626190151275d6d3__heading-wrapper", "header-content": "cab17c7a373cb60d__header-content", "header-trigger-positioner": "dd89d27c4f15912d__header-trigger-positioner", "header-trigger-wrapper": "bcfab5f2448bafef__header-trigger-wrapper", "header-trigger": "_3106f8d2b0330faa__header-trigger", "header": "_5d2dfcb4085c6d0f__header", "content": "e34cf37ccd0d81e0__content", "overflow-visible": "_03cfdbcd710393c9__overflow-visible", "content-inner": "_41bfdbf7b6c087c2__content-inner" };
- if (typeof process === "undefined" || true) {
- registerStyle7("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
+
+ // node_modules/date-fns/differenceInCalendarDays.js
+ function differenceInCalendarDays(laterDate, earlierDate, options) {
+ const [laterDate_, earlierDate_] = normalizeDates(
+ options?.in,
+ laterDate,
+ earlierDate
+ );
+ const laterStartOfDay = startOfDay(laterDate_);
+ const earlierStartOfDay = startOfDay(earlierDate_);
+ const laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);
+ const earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);
+ return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);
}
- var global_css_defense_default2 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
- if (typeof process === "undefined" || true) {
- registerStyle7("5f8e7aa0bc", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
+
+ // node_modules/date-fns/startOfISOWeekYear.js
+ function startOfISOWeekYear(date, options) {
+ const year = getISOWeekYear(date, options);
+ const fourthOfJanuary = constructFrom(options?.in || date, 0);
+ fourthOfJanuary.setFullYear(year, 0, 4);
+ fourthOfJanuary.setHours(0, 0, 0, 0);
+ return startOfISOWeek(fourthOfJanuary);
}
- var focus_default = { "outset-ring--focus": "_08e8a2e44959f892__outset-ring--focus", "outset-ring--focus-except-active": "e25b2bdd7aa21721__outset-ring--focus-except-active", "outset-ring--focus-visible": "d0541bc9dd9dc7b6__outset-ring--focus-visible", "outset-ring--focus-within": "cd83dfc2126a0846__outset-ring--focus-within", "outset-ring--focus-within-except-active": "_970d04df7376df67__outset-ring--focus-within-except-active", "outset-ring--focus-within-visible": "c5cb3ee4bddaa8e4__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "ecadb9e080e2dfa5__outset-ring--focus-parent-visible" };
- var Header2 = (0, import_element60.forwardRef)(
- function CollapsibleCardHeader({ children, className, render: render4, ...restProps }, ref) {
- const [descriptionId, setDescriptionId] = (0, import_element60.useState)();
- const contextValue = (0, import_element60.useMemo)(
- () => ({ setDescriptionId }),
- [setDescriptionId]
- );
- return useRender({
- defaultTagName: "div",
- render: render4,
- ref,
- props: mergeProps(restProps, {
- className: clsx_default(
- global_css_defense_default2.heading,
- style_default7["heading-wrapper"],
- className
- ),
- children: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(HeaderDescriptionIdContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)(
- Trigger,
- {
- className: style_default7.header,
- render: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(Header, {}),
- nativeButton: false,
- "aria-describedby": descriptionId,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime189.jsx)("div", { className: style_default7["header-content"], children }),
- /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
- "div",
- {
- className: clsx_default(
- style_default7["header-trigger-positioner"]
- ),
- children: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
- "div",
- {
- className: clsx_default(
- style_default7["header-trigger-wrapper"],
- global_css_defense_default2.div,
- // While the interactive trigger element is the whole header,
- // the focus ring will be displayed only on the icon to visually
- // emulate it being the button.
- focus_default["outset-ring--focus-parent-visible"]
- ),
- children: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
- Icon,
- {
- icon: chevron_down_default,
- className: style_default7["header-trigger"]
- }
- )
- }
- )
- }
- )
- ]
- }
- ) })
- })
- });
- }
- );
- // packages/ui/build-module/collapsible-card/header-description.mjs
- var import_element61 = __toESM(require_element(), 1);
- var import_jsx_runtime190 = __toESM(require_jsx_runtime(), 1);
- var HeaderDescription = (0, import_element61.forwardRef)(function CollapsibleCardHeaderDescription({ children, className, ...restProps }, ref) {
- const descriptionId = (0, import_element61.useId)();
- const { setDescriptionId } = (0, import_element61.useContext)(HeaderDescriptionIdContext);
- (0, import_element61.useEffect)(() => {
- setDescriptionId(descriptionId);
- return () => setDescriptionId(void 0);
- }, [descriptionId, setDescriptionId]);
- return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
- "div",
- {
- ref,
- id: descriptionId,
- "aria-hidden": "true",
- className,
- ...restProps,
- children
- }
- );
- });
+ // node_modules/date-fns/addWeeks.js
+ function addWeeks(date, amount, options) {
+ return addDays(date, amount * 7, options);
+ }
- // packages/ui/build-module/collapsible-card/content.mjs
- var import_element62 = __toESM(require_element(), 1);
- var import_jsx_runtime191 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE8 = "data-wp-hash";
- function getRuntime8() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument8(document);
- }
- return globalScope.__wpStyleRuntime;
+ // node_modules/date-fns/addYears.js
+ function addYears(date, amount, options) {
+ return addMonths(date, amount * 12, options);
}
- function documentContainsStyleHash8(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE8}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE8) === hash) {
- return true;
- }
- }
- return false;
+
+ // node_modules/date-fns/max.js
+ function max2(dates, options) {
+ let result;
+ let context = options?.in;
+ dates.forEach((date) => {
+ if (!context && typeof date === "object")
+ context = constructFrom.bind(null, date);
+ const date_ = toDate(date, context);
+ if (!result || result < date_ || isNaN(+date_)) result = date_;
+ });
+ return constructFrom(context, result || NaN);
}
- function injectStyle8(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime8();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash8(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE8, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
+
+ // node_modules/date-fns/min.js
+ function min2(dates, options) {
+ let result;
+ let context = options?.in;
+ dates.forEach((date) => {
+ if (!context && typeof date === "object")
+ context = constructFrom.bind(null, date);
+ const date_ = toDate(date, context);
+ if (!result || result > date_ || isNaN(+date_)) result = date_;
+ });
+ return constructFrom(context, result || NaN);
}
- function registerDocument8(targetDocument) {
- const runtime = getRuntime8();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
+
+ // node_modules/date-fns/isSameDay.js
+ function isSameDay(laterDate, earlierDate, options) {
+ const [dateLeft_, dateRight_] = normalizeDates(
+ options?.in,
+ laterDate,
+ earlierDate
);
- for (const [hash, css] of runtime.styles) {
- injectStyle8(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
- }
- runtime.documents.set(targetDocument, count - 1);
- };
+ return +startOfDay(dateLeft_) === +startOfDay(dateRight_);
}
- function registerStyle8(hash, css) {
- const runtime = getRuntime8();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle8(targetDocument, hash, css);
- }
+
+ // node_modules/date-fns/isDate.js
+ function isDate(value) {
+ return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
}
- if (typeof process === "undefined" || true) {
- registerStyle8("78199613cf", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");
+
+ // node_modules/date-fns/isValid.js
+ function isValid(date) {
+ return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
}
- var style_default8 = { "heading-wrapper": "_626190151275d6d3__heading-wrapper", "header-content": "cab17c7a373cb60d__header-content", "header-trigger-positioner": "dd89d27c4f15912d__header-trigger-positioner", "header-trigger-wrapper": "bcfab5f2448bafef__header-trigger-wrapper", "header-trigger": "_3106f8d2b0330faa__header-trigger", "header": "_5d2dfcb4085c6d0f__header", "content": "e34cf37ccd0d81e0__content", "overflow-visible": "_03cfdbcd710393c9__overflow-visible", "content-inner": "_41bfdbf7b6c087c2__content-inner" };
- var Content2 = (0, import_element62.forwardRef)(
- function CollapsibleCardContent({ className, render: render4, children, hiddenUntilFound = true, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
- Panel,
- {
- ref,
- className: (state) => clsx_default(
- style_default8.content,
- state.open && state.transitionStatus === "idle" && style_default8["overflow-visible"],
- className
- ),
- hiddenUntilFound,
- ...restProps,
- children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
- Content,
- {
- className: style_default8["content-inner"],
- render: render4,
- children
- }
- )
- }
- );
- }
- );
- // packages/ui/build-module/utils/render-slot-with-children.mjs
- var import_element63 = __toESM(require_element(), 1);
- function renderSlotWithChildren(slot, defaultSlot, children) {
- return (0, import_element63.cloneElement)(slot ?? defaultSlot, { children });
+ // node_modules/date-fns/differenceInCalendarMonths.js
+ function differenceInCalendarMonths(laterDate, earlierDate, options) {
+ const [laterDate_, earlierDate_] = normalizeDates(
+ options?.in,
+ laterDate,
+ earlierDate
+ );
+ const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();
+ const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();
+ return yearsDiff * 12 + monthsDiff;
}
- // packages/ui/build-module/utils/theme-provider.mjs
- var theme = __toESM(require_theme(), 1);
+ // node_modules/date-fns/endOfMonth.js
+ function endOfMonth(date, options) {
+ const _date = toDate(date, options?.in);
+ const month = _date.getMonth();
+ _date.setFullYear(_date.getFullYear(), month + 1, 0);
+ _date.setHours(23, 59, 59, 999);
+ return _date;
+ }
- // packages/ui/build-module/lock-unlock.mjs
- var import_private_apis4 = __toESM(require_private_apis(), 1);
- var { lock: lock3, unlock: unlock3 } = (0, import_private_apis4.__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/ui"
- );
+ // node_modules/date-fns/_lib/normalizeInterval.js
+ function normalizeInterval(context, interval) {
+ const [start2, end] = normalizeDates(context, interval.start, interval.end);
+ return { start: start2, end };
+ }
- // packages/ui/build-module/utils/theme-provider.mjs
- function getThemeProvider() {
- const themePackage = theme;
- if (themePackage.ThemeProvider) {
- return themePackage.ThemeProvider;
+ // node_modules/date-fns/eachMonthOfInterval.js
+ function eachMonthOfInterval(interval, options) {
+ const { start: start2, end } = normalizeInterval(options?.in, interval);
+ let reversed = +start2 > +end;
+ const endTime = reversed ? +start2 : +end;
+ const date = reversed ? end : start2;
+ date.setHours(0, 0, 0, 0);
+ date.setDate(1);
+ let step = options?.step ?? 1;
+ if (!step) return [];
+ if (step < 0) {
+ step = -step;
+ reversed = !reversed;
}
- if (!themePackage.privateApis) {
- throw new Error(
- "@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`."
- );
+ const dates = [];
+ while (+date <= endTime) {
+ dates.push(constructFrom(start2, date));
+ date.setMonth(date.getMonth() + step);
}
- return unlock3(
- themePackage.privateApis
- ).ThemeProvider;
+ return reversed ? dates.reverse() : dates;
}
- var ThemeProvider = getThemeProvider();
- // packages/ui/build-module/stack/stack.mjs
- var import_element64 = __toESM(require_element(), 1);
- var STYLE_HASH_ATTRIBUTE9 = "data-wp-hash";
- function getRuntime9() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument9(document);
- }
- return globalScope.__wpStyleRuntime;
+ // node_modules/date-fns/startOfMonth.js
+ function startOfMonth(date, options) {
+ const _date = toDate(date, options?.in);
+ _date.setDate(1);
+ _date.setHours(0, 0, 0, 0);
+ return _date;
}
- function documentContainsStyleHash9(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE9}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE9) === hash) {
- return true;
- }
- }
- return false;
+
+ // node_modules/date-fns/endOfYear.js
+ function endOfYear(date, options) {
+ const _date = toDate(date, options?.in);
+ const year = _date.getFullYear();
+ _date.setFullYear(year + 1, 0, 0);
+ _date.setHours(23, 59, 59, 999);
+ return _date;
}
- function injectStyle9(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime9();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash9(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE9, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
+
+ // node_modules/date-fns/startOfYear.js
+ function startOfYear(date, options) {
+ const date_ = toDate(date, options?.in);
+ date_.setFullYear(date_.getFullYear(), 0, 1);
+ date_.setHours(0, 0, 0, 0);
+ return date_;
}
- function registerDocument9(targetDocument) {
- const runtime = getRuntime9();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle9(targetDocument, hash, css);
+
+ // node_modules/date-fns/eachYearOfInterval.js
+ function eachYearOfInterval(interval, options) {
+ const { start: start2, end } = normalizeInterval(options?.in, interval);
+ let reversed = +start2 > +end;
+ const endTime = reversed ? +start2 : +end;
+ const date = reversed ? end : start2;
+ date.setHours(0, 0, 0, 0);
+ date.setMonth(0, 1);
+ let step = options?.step ?? 1;
+ if (!step) return [];
+ if (step < 0) {
+ step = -step;
+ reversed = !reversed;
}
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
- }
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle9(hash, css) {
- const runtime = getRuntime9();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle9(targetDocument, hash, css);
+ const dates = [];
+ while (+date <= endTime) {
+ dates.push(constructFrom(start2, date));
+ date.setFullYear(date.getFullYear() + step);
}
+ return reversed ? dates.reverse() : dates;
}
- if (typeof process === "undefined" || true) {
- registerStyle9("32aba35fe1", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");
- }
- var style_default9 = { "stack": "_19ce0419607e1896__stack" };
- var gapTokens = {
- xs: "var(--wpds-dimension-gap-xs, 4px)",
- sm: "var(--wpds-dimension-gap-sm, 8px)",
- md: "var(--wpds-dimension-gap-md, 12px)",
- lg: "var(--wpds-dimension-gap-lg, 16px)",
- xl: "var(--wpds-dimension-gap-xl, 24px)",
- "2xl": "var(--wpds-dimension-gap-2xl, 32px)",
- "3xl": "var(--wpds-dimension-gap-3xl, 40px)"
- };
- var Stack = (0, import_element64.forwardRef)(function Stack2({ direction, gap, align, justify, wrap, render: render4, ...props }, ref) {
- const style = {
- gap: gap && gapTokens[gap],
- alignItems: align,
- justifyContent: justify,
- flexDirection: direction,
- flexWrap: wrap
- };
- const element = useRender({
- render: render4,
- ref,
- props: mergeProps(props, { style, className: style_default9.stack })
- });
- return element;
- });
-
- // packages/ui/build-module/tooltip/index.mjs
- var tooltip_exports = {};
- __export(tooltip_exports, {
- Popup: () => Popup,
- Portal: () => Portal,
- Positioner: () => Positioner,
- Provider: () => Provider2,
- Root: () => Root4,
- Trigger: () => Trigger2
- });
- // packages/ui/build-module/tooltip/popup.mjs
- var import_element67 = __toESM(require_element(), 1);
+ // node_modules/date-fns/endOfWeek.js
+ function endOfWeek(date, options) {
+ const defaultOptions2 = getDefaultOptions();
+ const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
+ const _date = toDate(date, options?.in);
+ const day = _date.getDay();
+ const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
+ _date.setDate(_date.getDate() + diff);
+ _date.setHours(23, 59, 59, 999);
+ return _date;
+ }
- // packages/ui/build-module/tooltip/portal.mjs
- var import_element65 = __toESM(require_element(), 1);
+ // node_modules/date-fns/endOfISOWeek.js
+ function endOfISOWeek(date, options) {
+ return endOfWeek(date, { ...options, weekStartsOn: 1 });
+ }
- // packages/ui/build-module/utils/wp-compat-overlay-slot.mjs
- var STYLE_HASH_ATTRIBUTE10 = "data-wp-hash";
- function getRuntime10() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
+ // node_modules/date-fns/locale/en-US/_lib/formatDistance.js
+ var formatDistanceLocale = {
+ lessThanXSeconds: {
+ one: "less than a second",
+ other: "less than {{count}} seconds"
+ },
+ xSeconds: {
+ one: "1 second",
+ other: "{{count}} seconds"
+ },
+ halfAMinute: "half a minute",
+ lessThanXMinutes: {
+ one: "less than a minute",
+ other: "less than {{count}} minutes"
+ },
+ xMinutes: {
+ one: "1 minute",
+ other: "{{count}} minutes"
+ },
+ aboutXHours: {
+ one: "about 1 hour",
+ other: "about {{count}} hours"
+ },
+ xHours: {
+ one: "1 hour",
+ other: "{{count}} hours"
+ },
+ xDays: {
+ one: "1 day",
+ other: "{{count}} days"
+ },
+ aboutXWeeks: {
+ one: "about 1 week",
+ other: "about {{count}} weeks"
+ },
+ xWeeks: {
+ one: "1 week",
+ other: "{{count}} weeks"
+ },
+ aboutXMonths: {
+ one: "about 1 month",
+ other: "about {{count}} months"
+ },
+ xMonths: {
+ one: "1 month",
+ other: "{{count}} months"
+ },
+ aboutXYears: {
+ one: "about 1 year",
+ other: "about {{count}} years"
+ },
+ xYears: {
+ one: "1 year",
+ other: "{{count}} years"
+ },
+ overXYears: {
+ one: "over 1 year",
+ other: "over {{count}} years"
+ },
+ almostXYears: {
+ one: "almost 1 year",
+ other: "almost {{count}} years"
}
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument10(document);
+ };
+ var formatDistance = (token, count, options) => {
+ let result;
+ const tokenValue = formatDistanceLocale[token];
+ if (typeof tokenValue === "string") {
+ result = tokenValue;
+ } else if (count === 1) {
+ result = tokenValue.one;
+ } else {
+ result = tokenValue.other.replace("{{count}}", count.toString());
}
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash10(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
+ if (options?.addSuffix) {
+ if (options.comparison && options.comparison > 0) {
+ return "in " + result;
+ } else {
+ return result + " ago";
+ }
}
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE10}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE10) === hash) {
- return true;
- }
- }
- return false;
- }
- function injectStyle10(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime10();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash10(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE10, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
+ return result;
+ };
+
+ // node_modules/date-fns/locale/_lib/buildFormatLongFn.js
+ function buildFormatLongFn(args) {
+ return (options = {}) => {
+ const width = options.width ? String(options.width) : args.defaultWidth;
+ const format7 = args.formats[width] || args.formats[args.defaultWidth];
+ return format7;
+ };
}
- function registerDocument10(targetDocument) {
- const runtime = getRuntime10();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle10(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+
+ // node_modules/date-fns/locale/en-US/_lib/formatLong.js
+ var dateFormats = {
+ full: "EEEE, MMMM do, y",
+ long: "MMMM do, y",
+ medium: "MMM d, y",
+ short: "MM/dd/yyyy"
+ };
+ var timeFormats = {
+ full: "h:mm:ss a zzzz",
+ long: "h:mm:ss a z",
+ medium: "h:mm:ss a",
+ short: "h:mm a"
+ };
+ var dateTimeFormats = {
+ full: "{{date}} 'at' {{time}}",
+ long: "{{date}} 'at' {{time}}",
+ medium: "{{date}}, {{time}}",
+ short: "{{date}}, {{time}}"
+ };
+ var formatLong = {
+ date: buildFormatLongFn({
+ formats: dateFormats,
+ defaultWidth: "full"
+ }),
+ time: buildFormatLongFn({
+ formats: timeFormats,
+ defaultWidth: "full"
+ }),
+ dateTime: buildFormatLongFn({
+ formats: dateTimeFormats,
+ defaultWidth: "full"
+ })
+ };
+
+ // node_modules/date-fns/locale/en-US/_lib/formatRelative.js
+ var formatRelativeLocale = {
+ lastWeek: "'last' eeee 'at' p",
+ yesterday: "'yesterday at' p",
+ today: "'today at' p",
+ tomorrow: "'tomorrow at' p",
+ nextWeek: "eeee 'at' p",
+ other: "P"
+ };
+ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
+
+ // node_modules/date-fns/locale/_lib/buildLocalizeFn.js
+ function buildLocalizeFn(args) {
+ return (value, options) => {
+ const context = options?.context ? String(options.context) : "standalone";
+ let valuesArray;
+ if (context === "formatting" && args.formattingValues) {
+ const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
+ const width = options?.width ? String(options.width) : defaultWidth;
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
+ } else {
+ const defaultWidth = args.defaultWidth;
+ const width = options?.width ? String(options.width) : args.defaultWidth;
+ valuesArray = args.values[width] || args.values[defaultWidth];
}
- runtime.documents.set(targetDocument, count - 1);
+ const index2 = args.argumentCallback ? args.argumentCallback(value) : value;
+ return valuesArray[index2];
};
}
- function registerStyle10(hash, css) {
- const runtime = getRuntime10();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle10(targetDocument, hash, css);
- }
- }
- if (typeof process === "undefined" || true) {
- registerStyle10("be37f31c1e", "._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");
- }
- var wp_compat_overlay_slot_default = { "slot": "_11fc52b637ff8a7e__slot" };
- var WP_COMPAT_OVERLAY_SLOT_ATTRIBUTE = "data-wp-compat-overlay-slot";
- function resolveOwnerDocument() {
- return typeof document === "undefined" ? null : document;
- }
- function isInWordPressEnvironment() {
- let topWp;
- try {
- topWp = window.top?.wp;
- } catch {
- }
- const wp = topWp ?? window.wp;
- return typeof wp?.components === "object" && wp.components !== null;
- }
- var cachedSlot = null;
- function ensureSlotIsAccessible(element) {
- element.setAttribute("aria-hidden", "false");
- return element;
- }
- function createSlot(ownerDocument2) {
- const element = ownerDocument2.createElement("div");
- element.setAttribute(WP_COMPAT_OVERLAY_SLOT_ATTRIBUTE, "");
- if (wp_compat_overlay_slot_default.slot) {
- element.classList.add(wp_compat_overlay_slot_default.slot);
- }
- ownerDocument2.body.appendChild(element);
- return element;
- }
- function getWpCompatOverlaySlot() {
- if (typeof window === "undefined") {
- return void 0;
- }
- if (!isInWordPressEnvironment() && window.__wpUiCompatOverlaySlotEnabled !== true) {
- return void 0;
- }
- const ownerDocument2 = resolveOwnerDocument();
- if (!ownerDocument2 || !ownerDocument2.body) {
- return void 0;
- }
- if (cachedSlot && cachedSlot.ownerDocument === ownerDocument2 && cachedSlot.isConnected) {
- return ensureSlotIsAccessible(cachedSlot);
+
+ // node_modules/date-fns/locale/en-US/_lib/localize.js
+ var eraValues = {
+ narrow: ["B", "A"],
+ abbreviated: ["BC", "AD"],
+ wide: ["Before Christ", "Anno Domini"]
+ };
+ var quarterValues = {
+ narrow: ["1", "2", "3", "4"],
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
+ };
+ var monthValues = {
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
+ abbreviated: [
+ "Jan",
+ "Feb",
+ "Mar",
+ "Apr",
+ "May",
+ "Jun",
+ "Jul",
+ "Aug",
+ "Sep",
+ "Oct",
+ "Nov",
+ "Dec"
+ ],
+ wide: [
+ "January",
+ "February",
+ "March",
+ "April",
+ "May",
+ "June",
+ "July",
+ "August",
+ "September",
+ "October",
+ "November",
+ "December"
+ ]
+ };
+ var dayValues = {
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
+ wide: [
+ "Sunday",
+ "Monday",
+ "Tuesday",
+ "Wednesday",
+ "Thursday",
+ "Friday",
+ "Saturday"
+ ]
+ };
+ var dayPeriodValues = {
+ narrow: {
+ am: "a",
+ pm: "p",
+ midnight: "mi",
+ noon: "n",
+ morning: "morning",
+ afternoon: "afternoon",
+ evening: "evening",
+ night: "night"
+ },
+ abbreviated: {
+ am: "AM",
+ pm: "PM",
+ midnight: "midnight",
+ noon: "noon",
+ morning: "morning",
+ afternoon: "afternoon",
+ evening: "evening",
+ night: "night"
+ },
+ wide: {
+ am: "a.m.",
+ pm: "p.m.",
+ midnight: "midnight",
+ noon: "noon",
+ morning: "morning",
+ afternoon: "afternoon",
+ evening: "evening",
+ night: "night"
}
- const existing = ownerDocument2.querySelector(
- `[${WP_COMPAT_OVERLAY_SLOT_ATTRIBUTE}]`
- );
- if (existing instanceof HTMLDivElement) {
- cachedSlot = ensureSlotIsAccessible(existing);
- return cachedSlot;
+ };
+ var formattingDayPeriodValues = {
+ narrow: {
+ am: "a",
+ pm: "p",
+ midnight: "mi",
+ noon: "n",
+ morning: "in the morning",
+ afternoon: "in the afternoon",
+ evening: "in the evening",
+ night: "at night"
+ },
+ abbreviated: {
+ am: "AM",
+ pm: "PM",
+ midnight: "midnight",
+ noon: "noon",
+ morning: "in the morning",
+ afternoon: "in the afternoon",
+ evening: "in the evening",
+ night: "at night"
+ },
+ wide: {
+ am: "a.m.",
+ pm: "p.m.",
+ midnight: "midnight",
+ noon: "noon",
+ morning: "in the morning",
+ afternoon: "in the afternoon",
+ evening: "in the evening",
+ night: "at night"
}
- if (cachedSlot?.isConnected) {
- cachedSlot.remove();
+ };
+ var ordinalNumber = (dirtyNumber, _options) => {
+ const number = Number(dirtyNumber);
+ const rem100 = number % 100;
+ if (rem100 > 20 || rem100 < 10) {
+ switch (rem100 % 10) {
+ case 1:
+ return number + "st";
+ case 2:
+ return number + "nd";
+ case 3:
+ return number + "rd";
+ }
}
- cachedSlot = ensureSlotIsAccessible(createSlot(ownerDocument2));
- return cachedSlot;
- }
+ return number + "th";
+ };
+ var localize = {
+ ordinalNumber,
+ era: buildLocalizeFn({
+ values: eraValues,
+ defaultWidth: "wide"
+ }),
+ quarter: buildLocalizeFn({
+ values: quarterValues,
+ defaultWidth: "wide",
+ argumentCallback: (quarter) => quarter - 1
+ }),
+ month: buildLocalizeFn({
+ values: monthValues,
+ defaultWidth: "wide"
+ }),
+ day: buildLocalizeFn({
+ values: dayValues,
+ defaultWidth: "wide"
+ }),
+ dayPeriod: buildLocalizeFn({
+ values: dayPeriodValues,
+ defaultWidth: "wide",
+ formattingValues: formattingDayPeriodValues,
+ defaultFormattingWidth: "wide"
+ })
+ };
- // packages/ui/build-module/tooltip/portal.mjs
- var import_jsx_runtime192 = __toESM(require_jsx_runtime(), 1);
- var Portal = (0, import_element65.forwardRef)(
- function TooltipPortal3({ container, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
- index_parts_exports4.Portal,
- {
- container: container ?? getWpCompatOverlaySlot(),
- ...restProps,
- ref
- }
+ // node_modules/date-fns/locale/_lib/buildMatchFn.js
+ function buildMatchFn(args) {
+ return (string, options = {}) => {
+ const width = options.width;
+ const matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
+ const matchResult = string.match(matchPattern);
+ if (!matchResult) {
+ return null;
+ }
+ const matchedString = matchResult[0];
+ const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
+ const key = Array.isArray(parsePatterns) ? findIndex2(parsePatterns, (pattern) => pattern.test(matchedString)) : (
+ // [TODO] -- I challenge you to fix the type
+ findKey(parsePatterns, (pattern) => pattern.test(matchedString))
);
- }
- );
-
- // packages/ui/build-module/tooltip/positioner.mjs
- var import_element66 = __toESM(require_element(), 1);
- var import_jsx_runtime193 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE11 = "data-wp-hash";
- function getRuntime11() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
+ let value;
+ value = args.valueCallback ? args.valueCallback(key) : key;
+ value = options.valueCallback ? (
+ // [TODO] -- I challenge you to fix the type
+ options.valueCallback(value)
+ ) : value;
+ const rest = string.slice(matchedString.length);
+ return { value, rest };
};
- if (typeof document !== "undefined") {
- registerDocument11(document);
- }
- return globalScope.__wpStyleRuntime;
}
- function documentContainsStyleHash11(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE11}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE11) === hash) {
- return true;
+ function findKey(object, predicate) {
+ for (const key in object) {
+ if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
+ return key;
}
}
- return false;
- }
- function injectStyle11(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime11();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash11(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE11, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
+ return void 0;
}
- function registerDocument11(targetDocument) {
- const runtime = getRuntime11();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle11(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ function findIndex2(array, predicate) {
+ for (let key = 0; key < array.length; key++) {
+ if (predicate(array[key])) {
+ return key;
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle11(hash, css) {
- const runtime = getRuntime11();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle11(targetDocument, hash, css);
}
+ return void 0;
}
- if (typeof process === "undefined" || true) {
- registerStyle11("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
- }
- var resets_default2 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
- if (typeof process === "undefined" || true) {
- registerStyle11("19fcc06039", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');
- }
- var style_default10 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
- var Positioner = (0, import_element66.forwardRef)(
- function TooltipPositioner3({ align = "center", className, side = "top", sideOffset = 4, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
- index_parts_exports4.Positioner,
- {
- ref,
- align,
- side,
- sideOffset,
- ...props,
- className: clsx_default(
- resets_default2["box-sizing"],
- style_default10.positioner,
- className
- )
- }
- );
- }
- );
- // packages/ui/build-module/tooltip/popup.mjs
- var import_jsx_runtime194 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE12 = "data-wp-hash";
- function getRuntime12() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
+ // node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
+ function buildMatchPatternFn(args) {
+ return (string, options = {}) => {
+ const matchResult = string.match(args.matchPattern);
+ if (!matchResult) return null;
+ const matchedString = matchResult[0];
+ const parseResult = string.match(args.parsePattern);
+ if (!parseResult) return null;
+ let value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
+ value = options.valueCallback ? options.valueCallback(value) : value;
+ const rest = string.slice(matchedString.length);
+ return { value, rest };
};
- if (typeof document !== "undefined") {
- registerDocument12(document);
- }
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash12(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE12}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE12) === hash) {
- return true;
- }
- }
- return false;
}
- function injectStyle12(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime12();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash12(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE12, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument12(targetDocument) {
- const runtime = getRuntime12();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle12(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
- }
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle12(hash, css) {
- const runtime = getRuntime12();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle12(targetDocument, hash, css);
+
+ // node_modules/date-fns/locale/en-US/_lib/match.js
+ var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
+ var parseOrdinalNumberPattern = /\d+/i;
+ var matchEraPatterns = {
+ narrow: /^(b|a)/i,
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
+ wide: /^(before christ|before common era|anno domini|common era)/i
+ };
+ var parseEraPatterns = {
+ any: [/^b/i, /^(a|c)/i]
+ };
+ var matchQuarterPatterns = {
+ narrow: /^[1234]/i,
+ abbreviated: /^q[1234]/i,
+ wide: /^[1234](th|st|nd|rd)? quarter/i
+ };
+ var parseQuarterPatterns = {
+ any: [/1/i, /2/i, /3/i, /4/i]
+ };
+ var matchMonthPatterns = {
+ narrow: /^[jfmasond]/i,
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
+ };
+ var parseMonthPatterns = {
+ narrow: [
+ /^j/i,
+ /^f/i,
+ /^m/i,
+ /^a/i,
+ /^m/i,
+ /^j/i,
+ /^j/i,
+ /^a/i,
+ /^s/i,
+ /^o/i,
+ /^n/i,
+ /^d/i
+ ],
+ any: [
+ /^ja/i,
+ /^f/i,
+ /^mar/i,
+ /^ap/i,
+ /^may/i,
+ /^jun/i,
+ /^jul/i,
+ /^au/i,
+ /^s/i,
+ /^o/i,
+ /^n/i,
+ /^d/i
+ ]
+ };
+ var matchDayPatterns = {
+ narrow: /^[smtwf]/i,
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
+ };
+ var parseDayPatterns = {
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
+ };
+ var matchDayPeriodPatterns = {
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
+ };
+ var parseDayPeriodPatterns = {
+ any: {
+ am: /^a/i,
+ pm: /^p/i,
+ midnight: /^mi/i,
+ noon: /^no/i,
+ morning: /morning/i,
+ afternoon: /afternoon/i,
+ evening: /evening/i,
+ night: /night/i
}
- }
- if (typeof process === "undefined" || true) {
- registerStyle12("19fcc06039", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');
- }
- var style_default11 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
- var POPUP_COLOR = { background: "#1e1e1e" };
- var Popup = (0, import_element67.forwardRef)(function TooltipPopup3({ portal, positioner, children, className, ...props }, ref) {
- const popupContent = /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(ThemeProvider, { color: POPUP_COLOR, children: /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
- index_parts_exports4.Popup,
- {
- ref,
- className: clsx_default(style_default11.popup, className),
- ...props,
- children
- }
- ) });
- const positionedPopup = renderSlotWithChildren(
- positioner,
- /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(Positioner, {}),
- popupContent
- );
- return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(Portal, {}), positionedPopup);
- });
+ };
+ var match = {
+ ordinalNumber: buildMatchPatternFn({
+ matchPattern: matchOrdinalNumberPattern,
+ parsePattern: parseOrdinalNumberPattern,
+ valueCallback: (value) => parseInt(value, 10)
+ }),
+ era: buildMatchFn({
+ matchPatterns: matchEraPatterns,
+ defaultMatchWidth: "wide",
+ parsePatterns: parseEraPatterns,
+ defaultParseWidth: "any"
+ }),
+ quarter: buildMatchFn({
+ matchPatterns: matchQuarterPatterns,
+ defaultMatchWidth: "wide",
+ parsePatterns: parseQuarterPatterns,
+ defaultParseWidth: "any",
+ valueCallback: (index2) => index2 + 1
+ }),
+ month: buildMatchFn({
+ matchPatterns: matchMonthPatterns,
+ defaultMatchWidth: "wide",
+ parsePatterns: parseMonthPatterns,
+ defaultParseWidth: "any"
+ }),
+ day: buildMatchFn({
+ matchPatterns: matchDayPatterns,
+ defaultMatchWidth: "wide",
+ parsePatterns: parseDayPatterns,
+ defaultParseWidth: "any"
+ }),
+ dayPeriod: buildMatchFn({
+ matchPatterns: matchDayPeriodPatterns,
+ defaultMatchWidth: "any",
+ parsePatterns: parseDayPeriodPatterns,
+ defaultParseWidth: "any"
+ })
+ };
- // packages/ui/build-module/tooltip/trigger.mjs
- var import_element68 = __toESM(require_element(), 1);
- var import_jsx_runtime195 = __toESM(require_jsx_runtime(), 1);
- var Trigger2 = (0, import_element68.forwardRef)(
- function TooltipTrigger3(props, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(index_parts_exports4.Trigger, { ref, ...props });
+ // node_modules/date-fns/locale/en-US.js
+ var enUS = {
+ code: "en-US",
+ formatDistance,
+ formatLong,
+ formatRelative,
+ localize,
+ match,
+ options: {
+ weekStartsOn: 0,
+ firstWeekContainsDate: 1
}
- );
+ };
- // packages/ui/build-module/tooltip/root.mjs
- var import_jsx_runtime196 = __toESM(require_jsx_runtime(), 1);
- function Root4(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(index_parts_exports4.Root, { ...props });
+ // node_modules/date-fns/getDayOfYear.js
+ function getDayOfYear(date, options) {
+ const _date = toDate(date, options?.in);
+ const diff = differenceInCalendarDays(_date, startOfYear(_date));
+ const dayOfYear = diff + 1;
+ return dayOfYear;
}
- // packages/ui/build-module/tooltip/provider.mjs
- var import_jsx_runtime197 = __toESM(require_jsx_runtime(), 1);
- function Provider2({ ...props }) {
- return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(index_parts_exports4.Provider, { ...props });
+ // node_modules/date-fns/getISOWeek.js
+ function getISOWeek(date, options) {
+ const _date = toDate(date, options?.in);
+ const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);
+ return Math.round(diff / millisecondsInWeek) + 1;
}
- // packages/ui/build-module/form/primitives/input-layout/input-layout.mjs
- var import_element69 = __toESM(require_element(), 1);
- var import_jsx_runtime198 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE13 = "data-wp-hash";
- function getRuntime13() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument13(document);
- }
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash13(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE13}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE13) === hash) {
- return true;
- }
- }
- return false;
- }
- function injectStyle13(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime13();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash13(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE13, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument13(targetDocument) {
- const runtime = getRuntime13();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle13(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
- }
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle13(hash, css) {
- const runtime = getRuntime13();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle13(targetDocument, hash, css);
+ // node_modules/date-fns/getWeekYear.js
+ function getWeekYear(date, options) {
+ const _date = toDate(date, options?.in);
+ const year = _date.getFullYear();
+ const defaultOptions2 = getDefaultOptions();
+ const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
+ const firstWeekOfNextYear = constructFrom(options?.in || date, 0);
+ firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
+ firstWeekOfNextYear.setHours(0, 0, 0, 0);
+ const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);
+ const firstWeekOfThisYear = constructFrom(options?.in || date, 0);
+ firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
+ firstWeekOfThisYear.setHours(0, 0, 0, 0);
+ const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);
+ if (+_date >= +startOfNextYear) {
+ return year + 1;
+ } else if (+_date >= +startOfThisYear) {
+ return year;
+ } else {
+ return year - 1;
}
}
- if (typeof process === "undefined" || true) {
- registerStyle13("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
+
+ // node_modules/date-fns/startOfWeekYear.js
+ function startOfWeekYear(date, options) {
+ const defaultOptions2 = getDefaultOptions();
+ const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
+ const year = getWeekYear(date, options);
+ const firstWeek = constructFrom(options?.in || date, 0);
+ firstWeek.setFullYear(year, 0, firstWeekContainsDate);
+ firstWeek.setHours(0, 0, 0, 0);
+ const _date = startOfWeek(firstWeek, options);
+ return _date;
}
- var global_css_defense_default3 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
- if (typeof process === "undefined" || true) {
- registerStyle13("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
+
+ // node_modules/date-fns/getWeek.js
+ function getWeek(date, options) {
+ const _date = toDate(date, options?.in);
+ const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
+ return Math.round(diff / millisecondsInWeek) + 1;
}
- var resets_default3 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
- if (typeof process === "undefined" || true) {
- registerStyle13("bc14d8e61b", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');
+
+ // node_modules/date-fns/_lib/addLeadingZeros.js
+ function addLeadingZeros(number, targetLength) {
+ const sign = number < 0 ? "-" : "";
+ const output = Math.abs(number).toString().padStart(targetLength, "0");
+ return sign + output;
}
- var style_default12 = { "input-layout": "cb2baafdc08746bb__input-layout", "is-size-compact": "_0c807a84cbb94e0c__is-size-compact", "is-size-small": "ed67cda122dc1e7b__is-size-small", "is-disabled": "_6fb7104732387680__is-disabled", "is-borderless": "_8097270636ca6100__is-borderless", "input-layout-slot": "_0d7afad74a057888__input-layout-slot", "slot-wrapper": "c192b41a12b4387b__slot-wrapper", "is-padding-minimal": "_0c952682762ca288__is-padding-minimal" };
- var InputLayout = (0, import_element69.forwardRef)(
- function InputLayout2({
- className,
- children,
- visuallyDisabled,
- size: size4 = "default",
- isBorderless,
- prefix: prefix2,
- suffix,
- ...restProps
- }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)(
- "div",
- {
- ref,
- className: clsx_default(
- global_css_defense_default3.div,
- resets_default3["box-sizing"],
- style_default12["input-layout"],
- style_default12[`is-size-${size4}`],
- visuallyDisabled && style_default12["is-disabled"],
- isBorderless && style_default12["is-borderless"],
- className
- ),
- ...restProps,
- children: [
- import_element69.Children.count(prefix2) > 0 && /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
- "div",
- {
- className: style_default12["slot-wrapper"],
- "data-slot-type": "prefix",
- children: prefix2
- }
- ),
- children,
- import_element69.Children.count(suffix) > 0 && /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
- "div",
- {
- className: style_default12["slot-wrapper"],
- "data-slot-type": "suffix",
- children: suffix
- }
- )
- ]
- }
+
+ // node_modules/date-fns/_lib/format/lightFormatters.js
+ var lightFormatters = {
+ // Year
+ y(date, token) {
+ const signedYear = date.getFullYear();
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
+ return addLeadingZeros(token === "yy" ? year % 100 : year, token.length);
+ },
+ // Month
+ M(date, token) {
+ const month = date.getMonth();
+ return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2);
+ },
+ // Day of the month
+ d(date, token) {
+ return addLeadingZeros(date.getDate(), token.length);
+ },
+ // AM or PM
+ a(date, token) {
+ const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am";
+ switch (token) {
+ case "a":
+ case "aa":
+ return dayPeriodEnumValue.toUpperCase();
+ case "aaa":
+ return dayPeriodEnumValue;
+ case "aaaaa":
+ return dayPeriodEnumValue[0];
+ case "aaaa":
+ default:
+ return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
+ }
+ },
+ // Hour [1-12]
+ h(date, token) {
+ return addLeadingZeros(date.getHours() % 12 || 12, token.length);
+ },
+ // Hour [0-23]
+ H(date, token) {
+ return addLeadingZeros(date.getHours(), token.length);
+ },
+ // Minute
+ m(date, token) {
+ return addLeadingZeros(date.getMinutes(), token.length);
+ },
+ // Second
+ s(date, token) {
+ return addLeadingZeros(date.getSeconds(), token.length);
+ },
+ // Fraction of second
+ S(date, token) {
+ const numberOfDigits = token.length;
+ const milliseconds = date.getMilliseconds();
+ const fractionalSeconds = Math.trunc(
+ milliseconds * Math.pow(10, numberOfDigits - 3)
);
+ return addLeadingZeros(fractionalSeconds, token.length);
}
- );
+ };
- // packages/ui/build-module/form/primitives/input-layout/slot.mjs
- var import_element70 = __toESM(require_element(), 1);
- var import_jsx_runtime199 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE14 = "data-wp-hash";
- function getRuntime14() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument14(document);
- }
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash14(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE14}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE14) === hash) {
- return true;
+ // node_modules/date-fns/_lib/format/formatters.js
+ var dayPeriodEnum = {
+ am: "am",
+ pm: "pm",
+ midnight: "midnight",
+ noon: "noon",
+ morning: "morning",
+ afternoon: "afternoon",
+ evening: "evening",
+ night: "night"
+ };
+ var formatters = {
+ // Era
+ G: function(date, token, localize2) {
+ const era = date.getFullYear() > 0 ? 1 : 0;
+ switch (token) {
+ // AD, BC
+ case "G":
+ case "GG":
+ case "GGG":
+ return localize2.era(era, { width: "abbreviated" });
+ // A, B
+ case "GGGGG":
+ return localize2.era(era, { width: "narrow" });
+ // Anno Domini, Before Christ
+ case "GGGG":
+ default:
+ return localize2.era(era, { width: "wide" });
}
- }
- return false;
- }
- function injectStyle14(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime14();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash14(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE14, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument14(targetDocument) {
- const runtime = getRuntime14();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle14(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
- }
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle14(hash, css) {
- const runtime = getRuntime14();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle14(targetDocument, hash, css);
- }
- }
- if (typeof process === "undefined" || true) {
- registerStyle14("bc14d8e61b", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');
- }
- var style_default13 = { "input-layout": "cb2baafdc08746bb__input-layout", "is-size-compact": "_0c807a84cbb94e0c__is-size-compact", "is-size-small": "ed67cda122dc1e7b__is-size-small", "is-disabled": "_6fb7104732387680__is-disabled", "is-borderless": "_8097270636ca6100__is-borderless", "input-layout-slot": "_0d7afad74a057888__input-layout-slot", "slot-wrapper": "c192b41a12b4387b__slot-wrapper", "is-padding-minimal": "_0c952682762ca288__is-padding-minimal" };
- var InputLayoutSlot = (0, import_element70.forwardRef)(function InputLayoutSlot2({ padding = "default", className, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
- "div",
- {
- ref,
- className: clsx_default(
- style_default13["input-layout-slot"],
- style_default13[`is-padding-${padding}`],
- className
- ),
- ...restProps
+ },
+ // Year
+ y: function(date, token, localize2) {
+ if (token === "yo") {
+ const signedYear = date.getFullYear();
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
+ return localize2.ordinalNumber(year, { unit: "year" });
}
- );
- });
- InputLayoutSlot.displayName = "InputLayout.Slot";
-
- // packages/ui/build-module/form/primitives/input-layout/index.mjs
- var InputLayout3 = Object.assign(InputLayout, {
- Slot: InputLayoutSlot
- });
-
- // packages/ui/build-module/form/primitives/constants.mjs
- var ITEM_POPUP_POSITIONER_PROPS = {
- align: "start",
- sideOffset: 8,
- collisionPadding: 12
- };
-
- // packages/ui/build-module/form/primitives/field/index.mjs
- var field_exports = {};
- __export(field_exports, {
- Control: () => Control,
- Description: () => Description,
- Details: () => Details,
- Item: () => Item2,
- Label: () => Label,
- Root: () => Root5
- });
-
- // packages/ui/build-module/form/primitives/field/root.mjs
- var import_element71 = __toESM(require_element(), 1);
- var import_jsx_runtime200 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE15 = "data-wp-hash";
- function getRuntime15() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument15(document);
- }
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash15(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE15}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE15) === hash) {
- return true;
+ return lightFormatters.y(date, token);
+ },
+ // Local week-numbering year
+ Y: function(date, token, localize2, options) {
+ const signedWeekYear = getWeekYear(date, options);
+ const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
+ if (token === "YY") {
+ const twoDigitYear = weekYear % 100;
+ return addLeadingZeros(twoDigitYear, 2);
}
- }
- return false;
- }
- function injectStyle15(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime15();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash15(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE15, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument15(targetDocument) {
- const runtime = getRuntime15();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle15(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
+ if (token === "Yo") {
+ return localize2.ordinalNumber(weekYear, { unit: "year" });
}
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ return addLeadingZeros(weekYear, token.length);
+ },
+ // ISO week-numbering year
+ R: function(date, token) {
+ const isoWeekYear = getISOWeekYear(date);
+ return addLeadingZeros(isoWeekYear, token.length);
+ },
+ // Extended year. This is a single number designating the year of this calendar system.
+ // The main difference between `y` and `u` localizers are B.C. years:
+ // | Year | `y` | `u` |
+ // |------|-----|-----|
+ // | AC 1 | 1 | 1 |
+ // | BC 1 | 1 | 0 |
+ // | BC 2 | 2 | -1 |
+ // Also `yy` always returns the last two digits of a year,
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
+ u: function(date, token) {
+ const year = date.getFullYear();
+ return addLeadingZeros(year, token.length);
+ },
+ // Quarter
+ Q: function(date, token, localize2) {
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
+ switch (token) {
+ // 1, 2, 3, 4
+ case "Q":
+ return String(quarter);
+ // 01, 02, 03, 04
+ case "QQ":
+ return addLeadingZeros(quarter, 2);
+ // 1st, 2nd, 3rd, 4th
+ case "Qo":
+ return localize2.ordinalNumber(quarter, { unit: "quarter" });
+ // Q1, Q2, Q3, Q4
+ case "QQQ":
+ return localize2.quarter(quarter, {
+ width: "abbreviated",
+ context: "formatting"
+ });
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
+ case "QQQQQ":
+ return localize2.quarter(quarter, {
+ width: "narrow",
+ context: "formatting"
+ });
+ // 1st quarter, 2nd quarter, ...
+ case "QQQQ":
+ default:
+ return localize2.quarter(quarter, {
+ width: "wide",
+ context: "formatting"
+ });
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle15(hash, css) {
- const runtime = getRuntime15();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle15(targetDocument, hash, css);
- }
- }
- if (typeof process === "undefined" || true) {
- registerStyle15("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
- }
- var resets_default4 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
- var DEFAULT_RENDER = (props) => /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(Stack, { ...props, direction: "column", gap: "sm" });
- var Root5 = (0, import_element71.forwardRef)(function Root22({ className, render: render4 = DEFAULT_RENDER, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
- index_parts_exports2.Root,
- {
- ref,
- className: clsx_default(resets_default4["box-sizing"], className),
- render: render4,
- ...restProps
+ },
+ // Stand-alone quarter
+ q: function(date, token, localize2) {
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
+ switch (token) {
+ // 1, 2, 3, 4
+ case "q":
+ return String(quarter);
+ // 01, 02, 03, 04
+ case "qq":
+ return addLeadingZeros(quarter, 2);
+ // 1st, 2nd, 3rd, 4th
+ case "qo":
+ return localize2.ordinalNumber(quarter, { unit: "quarter" });
+ // Q1, Q2, Q3, Q4
+ case "qqq":
+ return localize2.quarter(quarter, {
+ width: "abbreviated",
+ context: "standalone"
+ });
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
+ case "qqqqq":
+ return localize2.quarter(quarter, {
+ width: "narrow",
+ context: "standalone"
+ });
+ // 1st quarter, 2nd quarter, ...
+ case "qqqq":
+ default:
+ return localize2.quarter(quarter, {
+ width: "wide",
+ context: "standalone"
+ });
}
- );
- });
-
- // packages/ui/build-module/form/primitives/field/item.mjs
- var import_element72 = __toESM(require_element(), 1);
- var import_jsx_runtime201 = __toESM(require_jsx_runtime(), 1);
- var Item2 = (0, import_element72.forwardRef)(function Item22(props, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(index_parts_exports2.Item, { ref, ...props });
- });
-
- // packages/ui/build-module/form/primitives/field/label.mjs
- var import_element74 = __toESM(require_element(), 1);
-
- // packages/ui/build-module/visually-hidden/visually-hidden.mjs
- var import_element73 = __toESM(require_element(), 1);
- var STYLE_HASH_ATTRIBUTE16 = "data-wp-hash";
- function getRuntime16() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument16(document);
- }
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash16(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE16}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE16) === hash) {
- return true;
+ },
+ // Month
+ M: function(date, token, localize2) {
+ const month = date.getMonth();
+ switch (token) {
+ case "M":
+ case "MM":
+ return lightFormatters.M(date, token);
+ // 1st, 2nd, ..., 12th
+ case "Mo":
+ return localize2.ordinalNumber(month + 1, { unit: "month" });
+ // Jan, Feb, ..., Dec
+ case "MMM":
+ return localize2.month(month, {
+ width: "abbreviated",
+ context: "formatting"
+ });
+ // J, F, ..., D
+ case "MMMMM":
+ return localize2.month(month, {
+ width: "narrow",
+ context: "formatting"
+ });
+ // January, February, ..., December
+ case "MMMM":
+ default:
+ return localize2.month(month, { width: "wide", context: "formatting" });
}
- }
- return false;
- }
- function injectStyle16(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime16();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash16(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE16, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument16(targetDocument) {
- const runtime = getRuntime16();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle16(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
+ },
+ // Stand-alone month
+ L: function(date, token, localize2) {
+ const month = date.getMonth();
+ switch (token) {
+ // 1, 2, ..., 12
+ case "L":
+ return String(month + 1);
+ // 01, 02, ..., 12
+ case "LL":
+ return addLeadingZeros(month + 1, 2);
+ // 1st, 2nd, ..., 12th
+ case "Lo":
+ return localize2.ordinalNumber(month + 1, { unit: "month" });
+ // Jan, Feb, ..., Dec
+ case "LLL":
+ return localize2.month(month, {
+ width: "abbreviated",
+ context: "standalone"
+ });
+ // J, F, ..., D
+ case "LLLLL":
+ return localize2.month(month, {
+ width: "narrow",
+ context: "standalone"
+ });
+ // January, February, ..., December
+ case "LLLL":
+ default:
+ return localize2.month(month, { width: "wide", context: "standalone" });
}
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ },
+ // Local week of year
+ w: function(date, token, localize2, options) {
+ const week = getWeek(date, options);
+ if (token === "wo") {
+ return localize2.ordinalNumber(week, { unit: "week" });
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle16(hash, css) {
- const runtime = getRuntime16();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle16(targetDocument, hash, css);
- }
- }
- if (typeof process === "undefined" || true) {
- registerStyle16("fa606a57ae", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");
- }
- var style_default14 = { "visually-hidden": "f37b9e2e191ebd66__visually-hidden" };
- var VisuallyHidden = (0, import_element73.forwardRef)(
- function VisuallyHidden2({ render: render4, ...restProps }, ref) {
- const element = useRender({
- render: render4,
- ref,
- props: mergeProps(
- { className: style_default14["visually-hidden"] },
- restProps,
- {
- // @ts-expect-error Arbitrary data-* attributes aren't indexable on the typed div props. Kept hardcoded so consumers can't change or remove it.
- "data-visually-hidden": ""
- }
- )
- });
- return element;
- }
- );
-
- // packages/ui/build-module/form/primitives/field/label.mjs
- var import_jsx_runtime202 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE17 = "data-wp-hash";
- function getRuntime17() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument17(document);
- }
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash17(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE17}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE17) === hash) {
- return true;
+ return addLeadingZeros(week, token.length);
+ },
+ // ISO week of year
+ I: function(date, token, localize2) {
+ const isoWeek = getISOWeek(date);
+ if (token === "Io") {
+ return localize2.ordinalNumber(isoWeek, { unit: "week" });
}
- }
- return false;
- }
- function injectStyle17(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime17();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash17(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE17, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument17(targetDocument) {
- const runtime = getRuntime17();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle17(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
+ return addLeadingZeros(isoWeek, token.length);
+ },
+ // Day of the month
+ d: function(date, token, localize2) {
+ if (token === "do") {
+ return localize2.ordinalNumber(date.getDate(), { unit: "date" });
}
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ return lightFormatters.d(date, token);
+ },
+ // Day of year
+ D: function(date, token, localize2) {
+ const dayOfYear = getDayOfYear(date);
+ if (token === "Do") {
+ return localize2.ordinalNumber(dayOfYear, { unit: "dayOfYear" });
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle17(hash, css) {
- const runtime = getRuntime17();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle17(targetDocument, hash, css);
- }
- }
- if (typeof process === "undefined" || true) {
- registerStyle17("e08ffbfdae", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');
- }
- var field_default = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
- var Label = (0, import_element74.forwardRef)(
- function Label2({ className, hideFromVision, variant, ...restProps }, ref) {
- const label = /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
- index_parts_exports2.Label,
- {
- ref,
- className: clsx_default(
- field_default.label,
- variant && field_default[`is-${variant}`],
- className
- ),
- ...restProps
- }
- );
- if (hideFromVision) {
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(VisuallyHidden, { render: label });
+ return addLeadingZeros(dayOfYear, token.length);
+ },
+ // Day of week
+ E: function(date, token, localize2) {
+ const dayOfWeek = date.getDay();
+ switch (token) {
+ // Tue
+ case "E":
+ case "EE":
+ case "EEE":
+ return localize2.day(dayOfWeek, {
+ width: "abbreviated",
+ context: "formatting"
+ });
+ // T
+ case "EEEEE":
+ return localize2.day(dayOfWeek, {
+ width: "narrow",
+ context: "formatting"
+ });
+ // Tu
+ case "EEEEEE":
+ return localize2.day(dayOfWeek, {
+ width: "short",
+ context: "formatting"
+ });
+ // Tuesday
+ case "EEEE":
+ default:
+ return localize2.day(dayOfWeek, {
+ width: "wide",
+ context: "formatting"
+ });
}
- return label;
- }
- );
-
- // packages/ui/build-module/form/primitives/field/description.mjs
- var import_element75 = __toESM(require_element(), 1);
- var import_jsx_runtime203 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE18 = "data-wp-hash";
- function getRuntime18() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument18(document);
- }
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash18(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE18}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE18) === hash) {
- return true;
+ },
+ // Local day of week
+ e: function(date, token, localize2, options) {
+ const dayOfWeek = date.getDay();
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
+ switch (token) {
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
+ case "e":
+ return String(localDayOfWeek);
+ // Padded numerical value
+ case "ee":
+ return addLeadingZeros(localDayOfWeek, 2);
+ // 1st, 2nd, ..., 7th
+ case "eo":
+ return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
+ case "eee":
+ return localize2.day(dayOfWeek, {
+ width: "abbreviated",
+ context: "formatting"
+ });
+ // T
+ case "eeeee":
+ return localize2.day(dayOfWeek, {
+ width: "narrow",
+ context: "formatting"
+ });
+ // Tu
+ case "eeeeee":
+ return localize2.day(dayOfWeek, {
+ width: "short",
+ context: "formatting"
+ });
+ // Tuesday
+ case "eeee":
+ default:
+ return localize2.day(dayOfWeek, {
+ width: "wide",
+ context: "formatting"
+ });
}
- }
- return false;
- }
- function injectStyle18(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime18();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash18(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE18, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument18(targetDocument) {
- const runtime = getRuntime18();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle18(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
+ },
+ // Stand-alone local day of week
+ c: function(date, token, localize2, options) {
+ const dayOfWeek = date.getDay();
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
+ switch (token) {
+ // Numerical value (same as in `e`)
+ case "c":
+ return String(localDayOfWeek);
+ // Padded numerical value
+ case "cc":
+ return addLeadingZeros(localDayOfWeek, token.length);
+ // 1st, 2nd, ..., 7th
+ case "co":
+ return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
+ case "ccc":
+ return localize2.day(dayOfWeek, {
+ width: "abbreviated",
+ context: "standalone"
+ });
+ // T
+ case "ccccc":
+ return localize2.day(dayOfWeek, {
+ width: "narrow",
+ context: "standalone"
+ });
+ // Tu
+ case "cccccc":
+ return localize2.day(dayOfWeek, {
+ width: "short",
+ context: "standalone"
+ });
+ // Tuesday
+ case "cccc":
+ default:
+ return localize2.day(dayOfWeek, {
+ width: "wide",
+ context: "standalone"
+ });
}
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ },
+ // ISO day of week
+ i: function(date, token, localize2) {
+ const dayOfWeek = date.getDay();
+ const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
+ switch (token) {
+ // 2
+ case "i":
+ return String(isoDayOfWeek);
+ // 02
+ case "ii":
+ return addLeadingZeros(isoDayOfWeek, token.length);
+ // 2nd
+ case "io":
+ return localize2.ordinalNumber(isoDayOfWeek, { unit: "day" });
+ // Tue
+ case "iii":
+ return localize2.day(dayOfWeek, {
+ width: "abbreviated",
+ context: "formatting"
+ });
+ // T
+ case "iiiii":
+ return localize2.day(dayOfWeek, {
+ width: "narrow",
+ context: "formatting"
+ });
+ // Tu
+ case "iiiiii":
+ return localize2.day(dayOfWeek, {
+ width: "short",
+ context: "formatting"
+ });
+ // Tuesday
+ case "iiii":
+ default:
+ return localize2.day(dayOfWeek, {
+ width: "wide",
+ context: "formatting"
+ });
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle18(hash, css) {
- const runtime = getRuntime18();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle18(targetDocument, hash, css);
- }
- }
- if (typeof process === "undefined" || true) {
- registerStyle18("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
- }
- var global_css_defense_default4 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
- if (typeof process === "undefined" || true) {
- registerStyle18("e08ffbfdae", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');
- }
- var field_default2 = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
- var Description = (0, import_element75.forwardRef)(function Description2({ className, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
- index_parts_exports2.Description,
- {
- ref,
- className: clsx_default(
- global_css_defense_default4.p,
- field_default2.description,
- className
- ),
- ...restProps
+ },
+ // AM or PM
+ a: function(date, token, localize2) {
+ const hours = date.getHours();
+ const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
+ switch (token) {
+ case "a":
+ case "aa":
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "abbreviated",
+ context: "formatting"
+ });
+ case "aaa":
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "abbreviated",
+ context: "formatting"
+ }).toLowerCase();
+ case "aaaaa":
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "narrow",
+ context: "formatting"
+ });
+ case "aaaa":
+ default:
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "wide",
+ context: "formatting"
+ });
}
- );
- });
-
- // packages/ui/build-module/form/primitives/field/details.mjs
- var import_element76 = __toESM(require_element(), 1);
- var import_i18n31 = __toESM(require_i18n(), 1);
- var import_jsx_runtime204 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE19 = "data-wp-hash";
- function getRuntime19() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument19(document);
- }
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash19(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE19}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE19) === hash) {
- return true;
+ },
+ // AM, PM, midnight, noon
+ b: function(date, token, localize2) {
+ const hours = date.getHours();
+ let dayPeriodEnumValue;
+ if (hours === 12) {
+ dayPeriodEnumValue = dayPeriodEnum.noon;
+ } else if (hours === 0) {
+ dayPeriodEnumValue = dayPeriodEnum.midnight;
+ } else {
+ dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
}
- }
- return false;
- }
- function injectStyle19(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime19();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash19(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE19, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument19(targetDocument) {
- const runtime = getRuntime19();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle19(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
+ switch (token) {
+ case "b":
+ case "bb":
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "abbreviated",
+ context: "formatting"
+ });
+ case "bbb":
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "abbreviated",
+ context: "formatting"
+ }).toLowerCase();
+ case "bbbbb":
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "narrow",
+ context: "formatting"
+ });
+ case "bbbb":
+ default:
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "wide",
+ context: "formatting"
+ });
}
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ },
+ // in the morning, in the afternoon, in the evening, at night
+ B: function(date, token, localize2) {
+ const hours = date.getHours();
+ let dayPeriodEnumValue;
+ if (hours >= 17) {
+ dayPeriodEnumValue = dayPeriodEnum.evening;
+ } else if (hours >= 12) {
+ dayPeriodEnumValue = dayPeriodEnum.afternoon;
+ } else if (hours >= 4) {
+ dayPeriodEnumValue = dayPeriodEnum.morning;
+ } else {
+ dayPeriodEnumValue = dayPeriodEnum.night;
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle19(hash, css) {
- const runtime = getRuntime19();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle19(targetDocument, hash, css);
- }
- }
- if (typeof process === "undefined" || true) {
- registerStyle19("e08ffbfdae", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');
- }
- var field_default3 = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
- var Details = (0, import_element76.forwardRef)(
- function Details2({ className, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(import_jsx_runtime204.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(index_parts_exports2.Description, {}), children: (0, import_i18n31.__)("More details follow the field.") }),
- /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
- "div",
- {
- ref,
- className: clsx_default(field_default3.description, className),
- ...restProps
- }
- )
- ] });
- }
- );
-
- // packages/ui/build-module/form/primitives/field/control.mjs
- var import_element77 = __toESM(require_element(), 1);
- var import_jsx_runtime205 = __toESM(require_jsx_runtime(), 1);
- var Control = (0, import_element77.forwardRef)(
- function Control2(props, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(index_parts_exports2.Control, { ref, ...props });
- }
- );
-
- // packages/ui/build-module/form/primitives/select/index.mjs
- var select_exports = {};
- __export(select_exports, {
- Group: () => Group,
- GroupLabel: () => GroupLabel,
- Item: () => Item3,
- Popup: () => Popup2,
- Portal: () => Portal2,
- Positioner: () => Positioner2,
- Root: () => Root6,
- Trigger: () => Trigger3
- });
-
- // packages/ui/build-module/form/primitives/select/group.mjs
- var import_element78 = __toESM(require_element(), 1);
- var import_jsx_runtime206 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE20 = "data-wp-hash";
- function getRuntime20() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument20(document);
- }
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash20(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE20}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE20) === hash) {
- return true;
+ switch (token) {
+ case "B":
+ case "BB":
+ case "BBB":
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "abbreviated",
+ context: "formatting"
+ });
+ case "BBBBB":
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "narrow",
+ context: "formatting"
+ });
+ case "BBBB":
+ default:
+ return localize2.dayPeriod(dayPeriodEnumValue, {
+ width: "wide",
+ context: "formatting"
+ });
}
+ },
+ // Hour [1-12]
+ h: function(date, token, localize2) {
+ if (token === "ho") {
+ let hours = date.getHours() % 12;
+ if (hours === 0) hours = 12;
+ return localize2.ordinalNumber(hours, { unit: "hour" });
+ }
+ return lightFormatters.h(date, token);
+ },
+ // Hour [0-23]
+ H: function(date, token, localize2) {
+ if (token === "Ho") {
+ return localize2.ordinalNumber(date.getHours(), { unit: "hour" });
+ }
+ return lightFormatters.H(date, token);
+ },
+ // Hour [0-11]
+ K: function(date, token, localize2) {
+ const hours = date.getHours() % 12;
+ if (token === "Ko") {
+ return localize2.ordinalNumber(hours, { unit: "hour" });
+ }
+ return addLeadingZeros(hours, token.length);
+ },
+ // Hour [1-24]
+ k: function(date, token, localize2) {
+ let hours = date.getHours();
+ if (hours === 0) hours = 24;
+ if (token === "ko") {
+ return localize2.ordinalNumber(hours, { unit: "hour" });
+ }
+ return addLeadingZeros(hours, token.length);
+ },
+ // Minute
+ m: function(date, token, localize2) {
+ if (token === "mo") {
+ return localize2.ordinalNumber(date.getMinutes(), { unit: "minute" });
+ }
+ return lightFormatters.m(date, token);
+ },
+ // Second
+ s: function(date, token, localize2) {
+ if (token === "so") {
+ return localize2.ordinalNumber(date.getSeconds(), { unit: "second" });
+ }
+ return lightFormatters.s(date, token);
+ },
+ // Fraction of second
+ S: function(date, token) {
+ return lightFormatters.S(date, token);
+ },
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
+ X: function(date, token, _localize) {
+ const timezoneOffset = date.getTimezoneOffset();
+ if (timezoneOffset === 0) {
+ return "Z";
+ }
+ switch (token) {
+ // Hours and optional minutes
+ case "X":
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
+ // Hours, minutes and optional seconds without `:` delimiter
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
+ // so this token always has the same output as `XX`
+ case "XXXX":
+ case "XX":
+ return formatTimezone(timezoneOffset);
+ // Hours, minutes and optional seconds with `:` delimiter
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
+ // so this token always has the same output as `XXX`
+ case "XXXXX":
+ case "XXX":
+ // Hours and minutes with `:` delimiter
+ default:
+ return formatTimezone(timezoneOffset, ":");
+ }
+ },
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
+ x: function(date, token, _localize) {
+ const timezoneOffset = date.getTimezoneOffset();
+ switch (token) {
+ // Hours and optional minutes
+ case "x":
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
+ // Hours, minutes and optional seconds without `:` delimiter
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
+ // so this token always has the same output as `xx`
+ case "xxxx":
+ case "xx":
+ return formatTimezone(timezoneOffset);
+ // Hours, minutes and optional seconds with `:` delimiter
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
+ // so this token always has the same output as `xxx`
+ case "xxxxx":
+ case "xxx":
+ // Hours and minutes with `:` delimiter
+ default:
+ return formatTimezone(timezoneOffset, ":");
+ }
+ },
+ // Timezone (GMT)
+ O: function(date, token, _localize) {
+ const timezoneOffset = date.getTimezoneOffset();
+ switch (token) {
+ // Short
+ case "O":
+ case "OO":
+ case "OOO":
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
+ // Long
+ case "OOOO":
+ default:
+ return "GMT" + formatTimezone(timezoneOffset, ":");
+ }
+ },
+ // Timezone (specific non-location)
+ z: function(date, token, _localize) {
+ const timezoneOffset = date.getTimezoneOffset();
+ switch (token) {
+ // Short
+ case "z":
+ case "zz":
+ case "zzz":
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
+ // Long
+ case "zzzz":
+ default:
+ return "GMT" + formatTimezone(timezoneOffset, ":");
+ }
+ },
+ // Seconds timestamp
+ t: function(date, token, _localize) {
+ const timestamp = Math.trunc(+date / 1e3);
+ return addLeadingZeros(timestamp, token.length);
+ },
+ // Milliseconds timestamp
+ T: function(date, token, _localize) {
+ return addLeadingZeros(+date, token.length);
}
- return false;
- }
- function injectStyle20(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime20();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
+ };
+ function formatTimezoneShort(offset4, delimiter = "") {
+ const sign = offset4 > 0 ? "-" : "+";
+ const absOffset = Math.abs(offset4);
+ const hours = Math.trunc(absOffset / 60);
+ const minutes = absOffset % 60;
+ if (minutes === 0) {
+ return sign + String(hours);
}
- if (documentContainsStyleHash20(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
+ return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
+ }
+ function formatTimezoneWithOptionalMinutes(offset4, delimiter) {
+ if (offset4 % 60 === 0) {
+ const sign = offset4 > 0 ? "-" : "+";
+ return sign + addLeadingZeros(Math.abs(offset4) / 60, 2);
}
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE20, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
+ return formatTimezone(offset4, delimiter);
}
- function registerDocument20(targetDocument) {
- const runtime = getRuntime20();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle20(targetDocument, hash, css);
+ function formatTimezone(offset4, delimiter = "") {
+ const sign = offset4 > 0 ? "-" : "+";
+ const absOffset = Math.abs(offset4);
+ const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);
+ const minutes = addLeadingZeros(absOffset % 60, 2);
+ return sign + hours + delimiter + minutes;
+ }
+
+ // node_modules/date-fns/_lib/format/longFormatters.js
+ var dateLongFormatter = (pattern, formatLong2) => {
+ switch (pattern) {
+ case "P":
+ return formatLong2.date({ width: "short" });
+ case "PP":
+ return formatLong2.date({ width: "medium" });
+ case "PPP":
+ return formatLong2.date({ width: "long" });
+ case "PPPP":
+ default:
+ return formatLong2.date({ width: "full" });
}
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
+ };
+ var timeLongFormatter = (pattern, formatLong2) => {
+ switch (pattern) {
+ case "p":
+ return formatLong2.time({ width: "short" });
+ case "pp":
+ return formatLong2.time({ width: "medium" });
+ case "ppp":
+ return formatLong2.time({ width: "long" });
+ case "pppp":
+ default:
+ return formatLong2.time({ width: "full" });
+ }
+ };
+ var dateTimeLongFormatter = (pattern, formatLong2) => {
+ const matchResult = pattern.match(/(P+)(p+)?/) || [];
+ const datePattern = matchResult[1];
+ const timePattern = matchResult[2];
+ if (!timePattern) {
+ return dateLongFormatter(pattern, formatLong2);
+ }
+ let dateTimeFormat;
+ switch (datePattern) {
+ case "P":
+ dateTimeFormat = formatLong2.dateTime({ width: "short" });
+ break;
+ case "PP":
+ dateTimeFormat = formatLong2.dateTime({ width: "medium" });
+ break;
+ case "PPP":
+ dateTimeFormat = formatLong2.dateTime({ width: "long" });
+ break;
+ case "PPPP":
+ default:
+ dateTimeFormat = formatLong2.dateTime({ width: "full" });
+ break;
+ }
+ return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong2)).replace("{{time}}", timeLongFormatter(timePattern, formatLong2));
+ };
+ var longFormatters = {
+ p: timeLongFormatter,
+ P: dateTimeLongFormatter
+ };
+
+ // node_modules/date-fns/_lib/protectedTokens.js
+ var dayOfYearTokenRE = /^D+$/;
+ var weekYearTokenRE = /^Y+$/;
+ var throwTokens = ["D", "DD", "YY", "YYYY"];
+ function isProtectedDayOfYearToken(token) {
+ return dayOfYearTokenRE.test(token);
+ }
+ function isProtectedWeekYearToken(token) {
+ return weekYearTokenRE.test(token);
+ }
+ function warnOrThrowProtectedError(token, format7, input) {
+ const _message = message(token, format7, input);
+ console.warn(_message);
+ if (throwTokens.includes(token)) throw new RangeError(_message);
+ }
+ function message(token, format7, input) {
+ const subject = token[0] === "Y" ? "years" : "days of the month";
+ return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format7}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
+ }
+
+ // node_modules/date-fns/format.js
+ var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
+ var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
+ var escapedStringRegExp = /^'([^]*?)'?$/;
+ var doubleQuoteRegExp = /''/g;
+ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
+ function format(date, formatStr, options) {
+ const defaultOptions2 = getDefaultOptions();
+ const locale = options?.locale ?? defaultOptions2.locale ?? enUS;
+ const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
+ const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
+ const originalDate = toDate(date, options?.in);
+ if (!isValid(originalDate)) {
+ throw new RangeError("Invalid time value");
+ }
+ let parts = formatStr.match(longFormattingTokensRegExp).map((substring) => {
+ const firstCharacter = substring[0];
+ if (firstCharacter === "p" || firstCharacter === "P") {
+ const longFormatter = longFormatters[firstCharacter];
+ return longFormatter(substring, locale.formatLong);
}
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ return substring;
+ }).join("").match(formattingTokensRegExp).map((substring) => {
+ if (substring === "''") {
+ return { isToken: false, value: "'" };
}
- runtime.documents.set(targetDocument, count - 1);
+ const firstCharacter = substring[0];
+ if (firstCharacter === "'") {
+ return { isToken: false, value: cleanEscapedString(substring) };
+ }
+ if (formatters[firstCharacter]) {
+ return { isToken: true, value: substring };
+ }
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
+ throw new RangeError(
+ "Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"
+ );
+ }
+ return { isToken: false, value: substring };
+ });
+ if (locale.localize.preprocessor) {
+ parts = locale.localize.preprocessor(originalDate, parts);
+ }
+ const formatterOptions = {
+ firstWeekContainsDate,
+ weekStartsOn,
+ locale
};
+ return parts.map((part) => {
+ if (!part.isToken) return part.value;
+ const token = part.value;
+ if (!options?.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token) || !options?.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) {
+ warnOrThrowProtectedError(token, formatStr, String(date));
+ }
+ const formatter = formatters[token[0]];
+ return formatter(originalDate, token, locale.localize, formatterOptions);
+ }).join("");
}
- function registerStyle20(hash, css) {
- const runtime = getRuntime20();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle20(targetDocument, hash, css);
+ function cleanEscapedString(input) {
+ const matched = input.match(escapedStringRegExp);
+ if (!matched) {
+ return input;
}
+ return matched[1].replace(doubleQuoteRegExp, "'");
}
- if (typeof process === "undefined" || true) {
- registerStyle20("5705fc490f", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;transform:translate(0);&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.f181b98b0d33282a__is-size-compact{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');
+
+ // node_modules/date-fns/getDaysInMonth.js
+ function getDaysInMonth(date, options) {
+ const _date = toDate(date, options?.in);
+ const year = _date.getFullYear();
+ const monthIndex = _date.getMonth();
+ const lastDayOfMonth = constructFrom(_date, 0);
+ lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
+ lastDayOfMonth.setHours(0, 0, 0, 0);
+ return lastDayOfMonth.getDate();
}
- var item_popup_default = { "popup": "_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion", "list": "f43dc7c768d7b622__list", "list-scrollable-container": "_233cd60cdb84a2ef__list-scrollable-container", "list-footer": "ec4db6f0122263e7__list-footer", "group": "b3c0d7f103fb10a2__group", "group-label": "_21b59380477c306c__group-label", "item": "_684ccb7988365b4f__item", "is-size-compact": "f181b98b0d33282a__is-size-compact", "is-size-small": "_38f7faff93c61958__is-size-small", "item-indicator-icon": "_92fbe4765dfad5ee__item-indicator-icon", "item-icon": "a3adcfd0b73ffd40__item-icon", "empty": "_06c7ff39d2f685b9__empty" };
- var Group = (0, import_element78.forwardRef)(
- function Group2({ className, children, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
- index_parts_exports3.Group,
- {
- className: clsx_default(item_popup_default.group, className),
- ref,
- ...restProps,
- children
- }
- );
- }
- );
- // packages/ui/build-module/form/primitives/select/group-label.mjs
- var import_element79 = __toESM(require_element(), 1);
- var import_jsx_runtime207 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE21 = "data-wp-hash";
- function getRuntime21() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument21(document);
- }
- return globalScope.__wpStyleRuntime;
+ // node_modules/date-fns/getDefaultOptions.js
+ function getDefaultOptions2() {
+ return Object.assign({}, getDefaultOptions());
}
- function documentContainsStyleHash21(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
+
+ // node_modules/date-fns/getISODay.js
+ function getISODay(date, options) {
+ const day = toDate(date, options?.in).getDay();
+ return day === 0 ? 7 : day;
+ }
+
+ // node_modules/date-fns/getMonth.js
+ function getMonth(date, options) {
+ return toDate(date, options?.in).getMonth();
+ }
+
+ // node_modules/date-fns/getYear.js
+ function getYear(date, options) {
+ return toDate(date, options?.in).getFullYear();
+ }
+
+ // node_modules/date-fns/isAfter.js
+ function isAfter(date, dateToCompare) {
+ return +toDate(date) > +toDate(dateToCompare);
+ }
+
+ // node_modules/date-fns/isBefore.js
+ function isBefore(date, dateToCompare) {
+ return +toDate(date) < +toDate(dateToCompare);
+ }
+
+ // node_modules/date-fns/transpose.js
+ function transpose(date, constructor) {
+ const date_ = isConstructor(constructor) ? new constructor(0) : constructFrom(constructor, 0);
+ date_.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());
+ date_.setHours(
+ date.getHours(),
+ date.getMinutes(),
+ date.getSeconds(),
+ date.getMilliseconds()
+ );
+ return date_;
+ }
+ function isConstructor(constructor) {
+ return typeof constructor === "function" && constructor.prototype?.constructor === constructor;
+ }
+
+ // node_modules/date-fns/parse/_lib/Setter.js
+ var TIMEZONE_UNIT_PRIORITY = 10;
+ var Setter = class {
+ subPriority = 0;
+ validate(_utcDate, _options) {
+ return true;
}
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE21}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE21) === hash) {
- return true;
+ };
+ var ValueSetter = class extends Setter {
+ constructor(value, validateValue, setValue, priority2, subPriority) {
+ super();
+ this.value = value;
+ this.validateValue = validateValue;
+ this.setValue = setValue;
+ this.priority = priority2;
+ if (subPriority) {
+ this.subPriority = subPriority;
}
}
- return false;
- }
- function injectStyle21(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime21();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
+ validate(date, options) {
+ return this.validateValue(date, this.value, options);
}
- if (injectedStyles.has(hash)) {
- return;
+ set(date, flags, options) {
+ return this.setValue(date, flags, this.value, options);
}
- if (documentContainsStyleHash21(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
+ };
+ var DateTimezoneSetter = class extends Setter {
+ priority = TIMEZONE_UNIT_PRIORITY;
+ subPriority = -1;
+ constructor(context, reference) {
+ super();
+ this.context = context || ((date) => constructFrom(reference, date));
}
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE21, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument21(targetDocument) {
- const runtime = getRuntime21();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle21(targetDocument, hash, css);
+ set(date, flags) {
+ if (flags.timestampIsSet) return date;
+ return constructFrom(date, transpose(date, this.context));
}
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ };
+
+ // node_modules/date-fns/parse/_lib/Parser.js
+ var Parser = class {
+ run(dateString, token, match2, options) {
+ const result = this.parse(dateString, token, match2, options);
+ if (!result) {
+ return null;
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle21(hash, css) {
- const runtime = getRuntime21();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle21(targetDocument, hash, css);
+ return {
+ setter: new ValueSetter(
+ result.value,
+ this.validate,
+ this.set,
+ this.priority,
+ this.subPriority
+ ),
+ rest: result.rest
+ };
}
- }
- if (typeof process === "undefined" || true) {
- registerStyle21("5705fc490f", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;transform:translate(0);&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.f181b98b0d33282a__is-size-compact{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');
- }
- var item_popup_default2 = { "popup": "_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion", "list": "f43dc7c768d7b622__list", "list-scrollable-container": "_233cd60cdb84a2ef__list-scrollable-container", "list-footer": "ec4db6f0122263e7__list-footer", "group": "b3c0d7f103fb10a2__group", "group-label": "_21b59380477c306c__group-label", "item": "_684ccb7988365b4f__item", "is-size-compact": "f181b98b0d33282a__is-size-compact", "is-size-small": "_38f7faff93c61958__is-size-small", "item-indicator-icon": "_92fbe4765dfad5ee__item-indicator-icon", "item-icon": "a3adcfd0b73ffd40__item-icon", "empty": "_06c7ff39d2f685b9__empty" };
- var GroupLabel = (0, import_element79.forwardRef)(
- function GroupLabel2({ className, children, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
- Text,
- {
- variant: "heading-sm",
- className: clsx_default(
- item_popup_default2["group-label"],
- className
- ),
- render: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(index_parts_exports3.GroupLabel, { ref, ...restProps }),
- children
- }
- );
+ validate(_utcDate, _value, _options) {
+ return true;
}
- );
+ };
- // packages/ui/build-module/form/primitives/select/item.mjs
- var import_element80 = __toESM(require_element(), 1);
- var import_jsx_runtime208 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE22 = "data-wp-hash";
- function getRuntime22() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
+ // node_modules/date-fns/parse/_lib/parsers/EraParser.js
+ var EraParser = class extends Parser {
+ priority = 140;
+ parse(dateString, token, match2) {
+ switch (token) {
+ // AD, BC
+ case "G":
+ case "GG":
+ case "GGG":
+ return match2.era(dateString, { width: "abbreviated" }) || match2.era(dateString, { width: "narrow" });
+ // A, B
+ case "GGGGG":
+ return match2.era(dateString, { width: "narrow" });
+ // Anno Domini, Before Christ
+ case "GGGG":
+ default:
+ return match2.era(dateString, { width: "wide" }) || match2.era(dateString, { width: "abbreviated" }) || match2.era(dateString, { width: "narrow" });
+ }
+ }
+ set(date, flags, value) {
+ flags.era = value;
+ date.setFullYear(value, 0, 1);
+ date.setHours(0, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = ["R", "u", "t", "T"];
+ };
+
+ // node_modules/date-fns/parse/_lib/constants.js
+ var numericPatterns = {
+ month: /^(1[0-2]|0?\d)/,
+ // 0 to 12
+ date: /^(3[0-1]|[0-2]?\d)/,
+ // 0 to 31
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
+ // 0 to 366
+ week: /^(5[0-3]|[0-4]?\d)/,
+ // 0 to 53
+ hour23h: /^(2[0-3]|[0-1]?\d)/,
+ // 0 to 23
+ hour24h: /^(2[0-4]|[0-1]?\d)/,
+ // 0 to 24
+ hour11h: /^(1[0-1]|0?\d)/,
+ // 0 to 11
+ hour12h: /^(1[0-2]|0?\d)/,
+ // 0 to 12
+ minute: /^[0-5]?\d/,
+ // 0 to 59
+ second: /^[0-5]?\d/,
+ // 0 to 59
+ singleDigit: /^\d/,
+ // 0 to 9
+ twoDigits: /^\d{1,2}/,
+ // 0 to 99
+ threeDigits: /^\d{1,3}/,
+ // 0 to 999
+ fourDigits: /^\d{1,4}/,
+ // 0 to 9999
+ anyDigitsSigned: /^-?\d+/,
+ singleDigitSigned: /^-?\d/,
+ // 0 to 9, -0 to -9
+ twoDigitsSigned: /^-?\d{1,2}/,
+ // 0 to 99, -0 to -99
+ threeDigitsSigned: /^-?\d{1,3}/,
+ // 0 to 999, -0 to -999
+ fourDigitsSigned: /^-?\d{1,4}/
+ // 0 to 9999, -0 to -9999
+ };
+ var timezonePatterns = {
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
+ };
+
+ // node_modules/date-fns/parse/_lib/utils.js
+ function mapValue(parseFnResult, mapFn) {
+ if (!parseFnResult) {
+ return parseFnResult;
}
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
+ return {
+ value: mapFn(parseFnResult.value),
+ rest: parseFnResult.rest
};
- if (typeof document !== "undefined") {
- registerDocument22(document);
+ }
+ function parseNumericPattern(pattern, dateString) {
+ const matchResult = dateString.match(pattern);
+ if (!matchResult) {
+ return null;
}
- return globalScope.__wpStyleRuntime;
+ return {
+ value: parseInt(matchResult[0], 10),
+ rest: dateString.slice(matchResult[0].length)
+ };
}
- function documentContainsStyleHash22(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
+ function parseTimezonePattern(pattern, dateString) {
+ const matchResult = dateString.match(pattern);
+ if (!matchResult) {
+ return null;
}
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE22}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE22) === hash) {
- return true;
- }
+ if (matchResult[0] === "Z") {
+ return {
+ value: 0,
+ rest: dateString.slice(1)
+ };
+ }
+ const sign = matchResult[1] === "+" ? 1 : -1;
+ const hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
+ const minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
+ const seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
+ return {
+ value: sign * (hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * millisecondsInSecond),
+ rest: dateString.slice(matchResult[0].length)
+ };
+ }
+ function parseAnyDigitsSigned(dateString) {
+ return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);
+ }
+ function parseNDigits(n2, dateString) {
+ switch (n2) {
+ case 1:
+ return parseNumericPattern(numericPatterns.singleDigit, dateString);
+ case 2:
+ return parseNumericPattern(numericPatterns.twoDigits, dateString);
+ case 3:
+ return parseNumericPattern(numericPatterns.threeDigits, dateString);
+ case 4:
+ return parseNumericPattern(numericPatterns.fourDigits, dateString);
+ default:
+ return parseNumericPattern(new RegExp("^\\d{1," + n2 + "}"), dateString);
+ }
+ }
+ function parseNDigitsSigned(n2, dateString) {
+ switch (n2) {
+ case 1:
+ return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);
+ case 2:
+ return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);
+ case 3:
+ return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);
+ case 4:
+ return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);
+ default:
+ return parseNumericPattern(new RegExp("^-?\\d{1," + n2 + "}"), dateString);
+ }
+ }
+ function dayPeriodEnumToHours(dayPeriod) {
+ switch (dayPeriod) {
+ case "morning":
+ return 4;
+ case "evening":
+ return 17;
+ case "pm":
+ case "noon":
+ case "afternoon":
+ return 12;
+ case "am":
+ case "midnight":
+ case "night":
+ default:
+ return 0;
}
- return false;
}
- function injectStyle22(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
+ function normalizeTwoDigitYear(twoDigitYear, currentYear) {
+ const isCommonEra = currentYear > 0;
+ const absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
+ let result;
+ if (absCurrentYear <= 50) {
+ result = twoDigitYear || 100;
+ } else {
+ const rangeEnd = absCurrentYear + 50;
+ const rangeEndCentury = Math.trunc(rangeEnd / 100) * 100;
+ const isPreviousCentury = twoDigitYear >= rangeEnd % 100;
+ result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
}
- const runtime = getRuntime22();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash22(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE22, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument22(targetDocument) {
- const runtime = getRuntime22();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle22(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
- }
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle22(hash, css) {
- const runtime = getRuntime22();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle22(targetDocument, hash, css);
- }
- }
- if (typeof process === "undefined" || true) {
- registerStyle22("5705fc490f", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;transform:translate(0);&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.f181b98b0d33282a__is-size-compact{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');
+ return isCommonEra ? result : 1 - result;
}
- var item_popup_default3 = { "popup": "_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion", "list": "f43dc7c768d7b622__list", "list-scrollable-container": "_233cd60cdb84a2ef__list-scrollable-container", "list-footer": "ec4db6f0122263e7__list-footer", "group": "b3c0d7f103fb10a2__group", "group-label": "_21b59380477c306c__group-label", "item": "_684ccb7988365b4f__item", "is-size-compact": "f181b98b0d33282a__is-size-compact", "is-size-small": "_38f7faff93c61958__is-size-small", "item-indicator-icon": "_92fbe4765dfad5ee__item-indicator-icon", "item-icon": "a3adcfd0b73ffd40__item-icon", "empty": "_06c7ff39d2f685b9__empty" };
- if (typeof process === "undefined" || true) {
- registerStyle22("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
+ function isLeapYearIndex(year) {
+ return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
}
- var resets_default5 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
- var Item3 = (0, import_element80.forwardRef)(
- function Item23({ className, value, size: size4 = "default", children, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(
- index_parts_exports3.Item,
- {
- className: clsx_default(
- resets_default5["box-sizing"],
- item_popup_default3.item,
- item_popup_default3[`is-size-${size4}`],
- className
- ),
- value,
- ref,
- ...restProps,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
- Icon,
- {
- icon: check_default,
- className: clsx_default(
- item_popup_default3["item-icon"],
- item_popup_default3["item-indicator-icon"]
- ),
- size: size4 === "small" ? 20 : 24
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(index_parts_exports3.ItemText, { children })
- ]
- }
- );
- }
- );
-
- // packages/ui/build-module/form/primitives/select/popup.mjs
- var import_element83 = __toESM(require_element(), 1);
- // packages/ui/build-module/form/primitives/select/portal.mjs
- var import_element81 = __toESM(require_element(), 1);
- var import_jsx_runtime209 = __toESM(require_jsx_runtime(), 1);
- var Portal2 = (0, import_element81.forwardRef)(function SelectPortal3({ container, ...restProps }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
- index_parts_exports3.Portal,
- {
- container: container ?? getWpCompatOverlaySlot(),
- ...restProps,
- ref
+ // node_modules/date-fns/parse/_lib/parsers/YearParser.js
+ var YearParser = class extends Parser {
+ priority = 130;
+ incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"];
+ parse(dateString, token, match2) {
+ const valueCallback = (year) => ({
+ year,
+ isTwoDigitYear: token === "yy"
+ });
+ switch (token) {
+ case "y":
+ return mapValue(parseNDigits(4, dateString), valueCallback);
+ case "yo":
+ return mapValue(
+ match2.ordinalNumber(dateString, {
+ unit: "year"
+ }),
+ valueCallback
+ );
+ default:
+ return mapValue(parseNDigits(token.length, dateString), valueCallback);
}
- );
- });
-
- // packages/ui/build-module/form/primitives/select/positioner.mjs
- var import_element82 = __toESM(require_element(), 1);
- var import_jsx_runtime210 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE23 = "data-wp-hash";
- function getRuntime23() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument23(document);
}
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash23(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
+ validate(_date, value) {
+ return value.isTwoDigitYear || value.year > 0;
}
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE23}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE23) === hash) {
- return true;
+ set(date, flags, value) {
+ const currentYear = date.getFullYear();
+ if (value.isTwoDigitYear) {
+ const normalizedTwoDigitYear = normalizeTwoDigitYear(
+ value.year,
+ currentYear
+ );
+ date.setFullYear(normalizedTwoDigitYear, 0, 1);
+ date.setHours(0, 0, 0, 0);
+ return date;
}
+ const year = !("era" in flags) || flags.era === 1 ? value.year : 1 - value.year;
+ date.setFullYear(year, 0, 1);
+ date.setHours(0, 0, 0, 0);
+ return date;
}
- return false;
- }
- function injectStyle23(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime23();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash23(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE23, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument23(targetDocument) {
- const runtime = getRuntime23();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle23(targetDocument, hash, css);
- }
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
- }
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js
+ var LocalWeekYearParser = class extends Parser {
+ priority = 130;
+ parse(dateString, token, match2) {
+ const valueCallback = (year) => ({
+ year,
+ isTwoDigitYear: token === "YY"
+ });
+ switch (token) {
+ case "Y":
+ return mapValue(parseNDigits(4, dateString), valueCallback);
+ case "Yo":
+ return mapValue(
+ match2.ordinalNumber(dateString, {
+ unit: "year"
+ }),
+ valueCallback
+ );
+ default:
+ return mapValue(parseNDigits(token.length, dateString), valueCallback);
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle23(hash, css) {
- const runtime = getRuntime23();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle23(targetDocument, hash, css);
}
- }
- if (typeof process === "undefined" || true) {
- registerStyle23("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
- }
- var resets_default6 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
- if (typeof process === "undefined" || true) {
- registerStyle23("8c70612dd7", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0ab863136fb95530__positioner{z-index:var(--wp-ui-select-z-index,initial)}}}");
- }
- var style_default15 = { "positioner": "_0ab863136fb95530__positioner" };
- var Positioner2 = (0, import_element82.forwardRef)(
- function SelectPositioner3({ className, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
- index_parts_exports3.Positioner,
- {
- ...ITEM_POPUP_POSITIONER_PROPS,
- alignItemWithTrigger: false,
- ...props,
- ref,
- className: clsx_default(
- resets_default6["box-sizing"],
- style_default15.positioner,
- className
- )
- }
- );
+ validate(_date, value) {
+ return value.isTwoDigitYear || value.year > 0;
}
- );
+ set(date, flags, value, options) {
+ const currentYear = getWeekYear(date, options);
+ if (value.isTwoDigitYear) {
+ const normalizedTwoDigitYear = normalizeTwoDigitYear(
+ value.year,
+ currentYear
+ );
+ date.setFullYear(
+ normalizedTwoDigitYear,
+ 0,
+ options.firstWeekContainsDate
+ );
+ date.setHours(0, 0, 0, 0);
+ return startOfWeek(date, options);
+ }
+ const year = !("era" in flags) || flags.era === 1 ? value.year : 1 - value.year;
+ date.setFullYear(year, 0, options.firstWeekContainsDate);
+ date.setHours(0, 0, 0, 0);
+ return startOfWeek(date, options);
+ }
+ incompatibleTokens = [
+ "y",
+ "R",
+ "u",
+ "Q",
+ "q",
+ "M",
+ "L",
+ "I",
+ "d",
+ "D",
+ "i",
+ "t",
+ "T"
+ ];
+ };
- // packages/ui/build-module/form/primitives/select/popup.mjs
- var import_jsx_runtime211 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE24 = "data-wp-hash";
- function getRuntime24() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument24(document);
- }
- return globalScope.__wpStyleRuntime;
- }
- function documentContainsStyleHash24(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
- }
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE24}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE24) === hash) {
- return true;
+ // node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js
+ var ISOWeekYearParser = class extends Parser {
+ priority = 130;
+ parse(dateString, token) {
+ if (token === "R") {
+ return parseNDigitsSigned(4, dateString);
+ }
+ return parseNDigitsSigned(token.length, dateString);
+ }
+ set(date, _flags, value) {
+ const firstWeekOfYear = constructFrom(date, 0);
+ firstWeekOfYear.setFullYear(value, 0, 4);
+ firstWeekOfYear.setHours(0, 0, 0, 0);
+ return startOfISOWeek(firstWeekOfYear);
+ }
+ incompatibleTokens = [
+ "G",
+ "y",
+ "Y",
+ "u",
+ "Q",
+ "q",
+ "M",
+ "L",
+ "w",
+ "d",
+ "D",
+ "e",
+ "c",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js
+ var ExtendedYearParser = class extends Parser {
+ priority = 130;
+ parse(dateString, token) {
+ if (token === "u") {
+ return parseNDigitsSigned(4, dateString);
}
+ return parseNDigitsSigned(token.length, dateString);
}
- return false;
- }
- function injectStyle24(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
- }
- const runtime = getRuntime24();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
- }
- if (injectedStyles.has(hash)) {
- return;
- }
- if (documentContainsStyleHash24(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
+ set(date, _flags, value) {
+ date.setFullYear(value, 0, 1);
+ date.setHours(0, 0, 0, 0);
+ return date;
}
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE24, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
- }
- function registerDocument24(targetDocument) {
- const runtime = getRuntime24();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle24(targetDocument, hash, css);
+ incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/QuarterParser.js
+ var QuarterParser = class extends Parser {
+ priority = 120;
+ parse(dateString, token, match2) {
+ switch (token) {
+ // 1, 2, 3, 4
+ case "Q":
+ case "QQ":
+ return parseNDigits(token.length, dateString);
+ // 1st, 2nd, 3rd, 4th
+ case "Qo":
+ return match2.ordinalNumber(dateString, { unit: "quarter" });
+ // Q1, Q2, Q3, Q4
+ case "QQQ":
+ return match2.quarter(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.quarter(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
+ case "QQQQQ":
+ return match2.quarter(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ // 1st quarter, 2nd quarter, ...
+ case "QQQQ":
+ default:
+ return match2.quarter(dateString, {
+ width: "wide",
+ context: "formatting"
+ }) || match2.quarter(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.quarter(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ }
}
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
+ validate(_date, value) {
+ return value >= 1 && value <= 4;
+ }
+ set(date, _flags, value) {
+ date.setMonth((value - 1) * 3, 1);
+ date.setHours(0, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = [
+ "Y",
+ "R",
+ "q",
+ "M",
+ "L",
+ "w",
+ "I",
+ "d",
+ "D",
+ "i",
+ "e",
+ "c",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js
+ var StandAloneQuarterParser = class extends Parser {
+ priority = 120;
+ parse(dateString, token, match2) {
+ switch (token) {
+ // 1, 2, 3, 4
+ case "q":
+ case "qq":
+ return parseNDigits(token.length, dateString);
+ // 1st, 2nd, 3rd, 4th
+ case "qo":
+ return match2.ordinalNumber(dateString, { unit: "quarter" });
+ // Q1, Q2, Q3, Q4
+ case "qqq":
+ return match2.quarter(dateString, {
+ width: "abbreviated",
+ context: "standalone"
+ }) || match2.quarter(dateString, {
+ width: "narrow",
+ context: "standalone"
+ });
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
+ case "qqqqq":
+ return match2.quarter(dateString, {
+ width: "narrow",
+ context: "standalone"
+ });
+ // 1st quarter, 2nd quarter, ...
+ case "qqqq":
+ default:
+ return match2.quarter(dateString, {
+ width: "wide",
+ context: "standalone"
+ }) || match2.quarter(dateString, {
+ width: "abbreviated",
+ context: "standalone"
+ }) || match2.quarter(dateString, {
+ width: "narrow",
+ context: "standalone"
+ });
}
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ }
+ validate(_date, value) {
+ return value >= 1 && value <= 4;
+ }
+ set(date, _flags, value) {
+ date.setMonth((value - 1) * 3, 1);
+ date.setHours(0, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = [
+ "Y",
+ "R",
+ "Q",
+ "M",
+ "L",
+ "w",
+ "I",
+ "d",
+ "D",
+ "i",
+ "e",
+ "c",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/MonthParser.js
+ var MonthParser = class extends Parser {
+ incompatibleTokens = [
+ "Y",
+ "R",
+ "q",
+ "Q",
+ "L",
+ "w",
+ "I",
+ "D",
+ "i",
+ "e",
+ "c",
+ "t",
+ "T"
+ ];
+ priority = 110;
+ parse(dateString, token, match2) {
+ const valueCallback = (value) => value - 1;
+ switch (token) {
+ // 1, 2, ..., 12
+ case "M":
+ return mapValue(
+ parseNumericPattern(numericPatterns.month, dateString),
+ valueCallback
+ );
+ // 01, 02, ..., 12
+ case "MM":
+ return mapValue(parseNDigits(2, dateString), valueCallback);
+ // 1st, 2nd, ..., 12th
+ case "Mo":
+ return mapValue(
+ match2.ordinalNumber(dateString, {
+ unit: "month"
+ }),
+ valueCallback
+ );
+ // Jan, Feb, ..., Dec
+ case "MMM":
+ return match2.month(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.month(dateString, { width: "narrow", context: "formatting" });
+ // J, F, ..., D
+ case "MMMMM":
+ return match2.month(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ // January, February, ..., December
+ case "MMMM":
+ default:
+ return match2.month(dateString, { width: "wide", context: "formatting" }) || match2.month(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.month(dateString, { width: "narrow", context: "formatting" });
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle24(hash, css) {
- const runtime = getRuntime24();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle24(targetDocument, hash, css);
}
- }
- if (typeof process === "undefined" || true) {
- registerStyle24("5705fc490f", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;transform:translate(0);&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.f181b98b0d33282a__is-size-compact{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');
- }
- var item_popup_default4 = { "popup": "_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion", "list": "f43dc7c768d7b622__list", "list-scrollable-container": "_233cd60cdb84a2ef__list-scrollable-container", "list-footer": "ec4db6f0122263e7__list-footer", "group": "b3c0d7f103fb10a2__group", "group-label": "_21b59380477c306c__group-label", "item": "_684ccb7988365b4f__item", "is-size-compact": "f181b98b0d33282a__is-size-compact", "is-size-small": "_38f7faff93c61958__is-size-small", "item-indicator-icon": "_92fbe4765dfad5ee__item-indicator-icon", "item-icon": "a3adcfd0b73ffd40__item-icon", "empty": "_06c7ff39d2f685b9__empty" };
- var Popup2 = (0, import_element83.forwardRef)(
- function Popup22({ className, portal, positioner, children, ...restProps }, ref) {
- const popupContent = /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
- index_parts_exports3.Popup,
- {
- ref,
- className: clsx_default(item_popup_default4.popup, className),
- ...restProps,
- children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(index_parts_exports3.List, { className: item_popup_default4.list, children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
- "div",
- {
- className: item_popup_default4["list-scrollable-container"],
- children
- }
- ) })
- }
- ) });
- const positionedPopup = renderSlotWithChildren(
- positioner,
- /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Positioner2, {}),
- popupContent
- );
- return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Portal2, {}), positionedPopup);
+ validate(_date, value) {
+ return value >= 0 && value <= 11;
}
- );
+ set(date, _flags, value) {
+ date.setMonth(value, 1);
+ date.setHours(0, 0, 0, 0);
+ return date;
+ }
+ };
- // packages/ui/build-module/form/primitives/select/root.mjs
- var import_jsx_runtime212 = __toESM(require_jsx_runtime(), 1);
- function Root6(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(index_parts_exports3.Root, { ...props });
+ // node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js
+ var StandAloneMonthParser = class extends Parser {
+ priority = 110;
+ parse(dateString, token, match2) {
+ const valueCallback = (value) => value - 1;
+ switch (token) {
+ // 1, 2, ..., 12
+ case "L":
+ return mapValue(
+ parseNumericPattern(numericPatterns.month, dateString),
+ valueCallback
+ );
+ // 01, 02, ..., 12
+ case "LL":
+ return mapValue(parseNDigits(2, dateString), valueCallback);
+ // 1st, 2nd, ..., 12th
+ case "Lo":
+ return mapValue(
+ match2.ordinalNumber(dateString, {
+ unit: "month"
+ }),
+ valueCallback
+ );
+ // Jan, Feb, ..., Dec
+ case "LLL":
+ return match2.month(dateString, {
+ width: "abbreviated",
+ context: "standalone"
+ }) || match2.month(dateString, { width: "narrow", context: "standalone" });
+ // J, F, ..., D
+ case "LLLLL":
+ return match2.month(dateString, {
+ width: "narrow",
+ context: "standalone"
+ });
+ // January, February, ..., December
+ case "LLLL":
+ default:
+ return match2.month(dateString, { width: "wide", context: "standalone" }) || match2.month(dateString, {
+ width: "abbreviated",
+ context: "standalone"
+ }) || match2.month(dateString, { width: "narrow", context: "standalone" });
+ }
+ }
+ validate(_date, value) {
+ return value >= 0 && value <= 11;
+ }
+ set(date, _flags, value) {
+ date.setMonth(value, 1);
+ date.setHours(0, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = [
+ "Y",
+ "R",
+ "q",
+ "Q",
+ "M",
+ "w",
+ "I",
+ "D",
+ "i",
+ "e",
+ "c",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/setWeek.js
+ function setWeek(date, week, options) {
+ const date_ = toDate(date, options?.in);
+ const diff = getWeek(date_, options) - week;
+ date_.setDate(date_.getDate() - diff * 7);
+ return toDate(date_, options?.in);
}
- // packages/ui/build-module/form/primitives/select/trigger.mjs
- var import_element84 = __toESM(require_element(), 1);
- var import_i18n32 = __toESM(require_i18n(), 1);
- var import_jsx_runtime213 = __toESM(require_jsx_runtime(), 1);
- var STYLE_HASH_ATTRIBUTE25 = "data-wp-hash";
- function getRuntime25() {
- const globalScope = globalThis;
- if (globalScope.__wpStyleRuntime) {
- return globalScope.__wpStyleRuntime;
- }
- globalScope.__wpStyleRuntime = {
- documents: /* @__PURE__ */ new Map(),
- styles: /* @__PURE__ */ new Map(),
- injectedStyles: /* @__PURE__ */ new WeakMap()
- };
- if (typeof document !== "undefined") {
- registerDocument25(document);
- }
- return globalScope.__wpStyleRuntime;
+ // node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js
+ var LocalWeekParser = class extends Parser {
+ priority = 100;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "w":
+ return parseNumericPattern(numericPatterns.week, dateString);
+ case "wo":
+ return match2.ordinalNumber(dateString, { unit: "week" });
+ default:
+ return parseNDigits(token.length, dateString);
+ }
+ }
+ validate(_date, value) {
+ return value >= 1 && value <= 53;
+ }
+ set(date, _flags, value, options) {
+ return startOfWeek(setWeek(date, value, options), options);
+ }
+ incompatibleTokens = [
+ "y",
+ "R",
+ "u",
+ "q",
+ "Q",
+ "M",
+ "L",
+ "I",
+ "d",
+ "D",
+ "i",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/setISOWeek.js
+ function setISOWeek(date, week, options) {
+ const _date = toDate(date, options?.in);
+ const diff = getISOWeek(_date, options) - week;
+ _date.setDate(_date.getDate() - diff * 7);
+ return _date;
}
- function documentContainsStyleHash25(targetDocument, hash) {
- if (!targetDocument.head) {
- return false;
+
+ // node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js
+ var ISOWeekParser = class extends Parser {
+ priority = 100;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "I":
+ return parseNumericPattern(numericPatterns.week, dateString);
+ case "Io":
+ return match2.ordinalNumber(dateString, { unit: "week" });
+ default:
+ return parseNDigits(token.length, dateString);
+ }
+ }
+ validate(_date, value) {
+ return value >= 1 && value <= 53;
+ }
+ set(date, _flags, value) {
+ return startOfISOWeek(setISOWeek(date, value));
+ }
+ incompatibleTokens = [
+ "y",
+ "Y",
+ "u",
+ "q",
+ "Q",
+ "M",
+ "L",
+ "w",
+ "d",
+ "D",
+ "e",
+ "c",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/DateParser.js
+ var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
+ var DAYS_IN_MONTH_LEAP_YEAR = [
+ 31,
+ 29,
+ 31,
+ 30,
+ 31,
+ 30,
+ 31,
+ 31,
+ 30,
+ 31,
+ 30,
+ 31
+ ];
+ var DateParser = class extends Parser {
+ priority = 90;
+ subPriority = 1;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "d":
+ return parseNumericPattern(numericPatterns.date, dateString);
+ case "do":
+ return match2.ordinalNumber(dateString, { unit: "date" });
+ default:
+ return parseNDigits(token.length, dateString);
+ }
}
- for (const style of targetDocument.head.querySelectorAll(
- `style[${STYLE_HASH_ATTRIBUTE25}]`
- )) {
- if (style.getAttribute(STYLE_HASH_ATTRIBUTE25) === hash) {
- return true;
+ validate(date, value) {
+ const year = date.getFullYear();
+ const isLeapYear = isLeapYearIndex(year);
+ const month = date.getMonth();
+ if (isLeapYear) {
+ return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
+ } else {
+ return value >= 1 && value <= DAYS_IN_MONTH[month];
+ }
+ }
+ set(date, _flags, value) {
+ date.setDate(value);
+ date.setHours(0, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = [
+ "Y",
+ "R",
+ "q",
+ "Q",
+ "w",
+ "I",
+ "D",
+ "i",
+ "e",
+ "c",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js
+ var DayOfYearParser = class extends Parser {
+ priority = 90;
+ subpriority = 1;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "D":
+ case "DD":
+ return parseNumericPattern(numericPatterns.dayOfYear, dateString);
+ case "Do":
+ return match2.ordinalNumber(dateString, { unit: "date" });
+ default:
+ return parseNDigits(token.length, dateString);
}
}
- return false;
- }
- function injectStyle25(targetDocument, hash, css) {
- if (!targetDocument.head) {
- return;
+ validate(date, value) {
+ const year = date.getFullYear();
+ const isLeapYear = isLeapYearIndex(year);
+ if (isLeapYear) {
+ return value >= 1 && value <= 366;
+ } else {
+ return value >= 1 && value <= 365;
+ }
+ }
+ set(date, _flags, value) {
+ date.setMonth(0, value);
+ date.setHours(0, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = [
+ "Y",
+ "R",
+ "q",
+ "Q",
+ "M",
+ "L",
+ "w",
+ "I",
+ "d",
+ "E",
+ "i",
+ "e",
+ "c",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/setDay.js
+ function setDay(date, day, options) {
+ const defaultOptions2 = getDefaultOptions();
+ const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
+ const date_ = toDate(date, options?.in);
+ const currentDay = date_.getDay();
+ const remainder = day % 7;
+ const dayIndex = (remainder + 7) % 7;
+ const delta = 7 - weekStartsOn;
+ const diff = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7;
+ return addDays(date_, diff, options);
+ }
+
+ // node_modules/date-fns/parse/_lib/parsers/DayParser.js
+ var DayParser = class extends Parser {
+ priority = 90;
+ parse(dateString, token, match2) {
+ switch (token) {
+ // Tue
+ case "E":
+ case "EE":
+ case "EEE":
+ return match2.day(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
+ // T
+ case "EEEEE":
+ return match2.day(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ // Tu
+ case "EEEEEE":
+ return match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
+ // Tuesday
+ case "EEEE":
+ default:
+ return match2.day(dateString, { width: "wide", context: "formatting" }) || match2.day(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
+ }
}
- const runtime = getRuntime25();
- let injectedStyles = runtime.injectedStyles.get(targetDocument);
- if (!injectedStyles) {
- injectedStyles = /* @__PURE__ */ new Set();
- runtime.injectedStyles.set(targetDocument, injectedStyles);
+ validate(_date, value) {
+ return value >= 0 && value <= 6;
}
- if (injectedStyles.has(hash)) {
- return;
+ set(date, _flags, value, options) {
+ date = setDay(date, value, options);
+ date.setHours(0, 0, 0, 0);
+ return date;
}
- if (documentContainsStyleHash25(targetDocument, hash)) {
- injectedStyles.add(hash);
- return;
- }
- const style = targetDocument.createElement("style");
- style.setAttribute(STYLE_HASH_ATTRIBUTE25, hash);
- style.appendChild(targetDocument.createTextNode(css));
- targetDocument.head.appendChild(style);
- injectedStyles.add(hash);
+ incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js
+ var LocalDayParser = class extends Parser {
+ priority = 90;
+ parse(dateString, token, match2, options) {
+ const valueCallback = (value) => {
+ const wholeWeekDays = Math.floor((value - 1) / 7) * 7;
+ return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
+ };
+ switch (token) {
+ // 3
+ case "e":
+ case "ee":
+ return mapValue(parseNDigits(token.length, dateString), valueCallback);
+ // 3rd
+ case "eo":
+ return mapValue(
+ match2.ordinalNumber(dateString, {
+ unit: "day"
+ }),
+ valueCallback
+ );
+ // Tue
+ case "eee":
+ return match2.day(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
+ // T
+ case "eeeee":
+ return match2.day(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ // Tu
+ case "eeeeee":
+ return match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
+ // Tuesday
+ case "eeee":
+ default:
+ return match2.day(dateString, { width: "wide", context: "formatting" }) || match2.day(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" });
+ }
+ }
+ validate(_date, value) {
+ return value >= 0 && value <= 6;
+ }
+ set(date, _flags, value, options) {
+ date = setDay(date, value, options);
+ date.setHours(0, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = [
+ "y",
+ "R",
+ "u",
+ "q",
+ "Q",
+ "M",
+ "L",
+ "I",
+ "d",
+ "D",
+ "E",
+ "i",
+ "c",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js
+ var StandAloneLocalDayParser = class extends Parser {
+ priority = 90;
+ parse(dateString, token, match2, options) {
+ const valueCallback = (value) => {
+ const wholeWeekDays = Math.floor((value - 1) / 7) * 7;
+ return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
+ };
+ switch (token) {
+ // 3
+ case "c":
+ case "cc":
+ return mapValue(parseNDigits(token.length, dateString), valueCallback);
+ // 3rd
+ case "co":
+ return mapValue(
+ match2.ordinalNumber(dateString, {
+ unit: "day"
+ }),
+ valueCallback
+ );
+ // Tue
+ case "ccc":
+ return match2.day(dateString, {
+ width: "abbreviated",
+ context: "standalone"
+ }) || match2.day(dateString, { width: "short", context: "standalone" }) || match2.day(dateString, { width: "narrow", context: "standalone" });
+ // T
+ case "ccccc":
+ return match2.day(dateString, {
+ width: "narrow",
+ context: "standalone"
+ });
+ // Tu
+ case "cccccc":
+ return match2.day(dateString, { width: "short", context: "standalone" }) || match2.day(dateString, { width: "narrow", context: "standalone" });
+ // Tuesday
+ case "cccc":
+ default:
+ return match2.day(dateString, { width: "wide", context: "standalone" }) || match2.day(dateString, {
+ width: "abbreviated",
+ context: "standalone"
+ }) || match2.day(dateString, { width: "short", context: "standalone" }) || match2.day(dateString, { width: "narrow", context: "standalone" });
+ }
+ }
+ validate(_date, value) {
+ return value >= 0 && value <= 6;
+ }
+ set(date, _flags, value, options) {
+ date = setDay(date, value, options);
+ date.setHours(0, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = [
+ "y",
+ "R",
+ "u",
+ "q",
+ "Q",
+ "M",
+ "L",
+ "I",
+ "d",
+ "D",
+ "E",
+ "i",
+ "e",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/setISODay.js
+ function setISODay(date, day, options) {
+ const date_ = toDate(date, options?.in);
+ const currentDay = getISODay(date_, options);
+ const diff = day - currentDay;
+ return addDays(date_, diff, options);
}
- function registerDocument25(targetDocument) {
- const runtime = getRuntime25();
- runtime.documents.set(
- targetDocument,
- (runtime.documents.get(targetDocument) ?? 0) + 1
- );
- for (const [hash, css] of runtime.styles) {
- injectStyle25(targetDocument, hash, css);
+
+ // node_modules/date-fns/parse/_lib/parsers/ISODayParser.js
+ var ISODayParser = class extends Parser {
+ priority = 90;
+ parse(dateString, token, match2) {
+ const valueCallback = (value) => {
+ if (value === 0) {
+ return 7;
+ }
+ return value;
+ };
+ switch (token) {
+ // 2
+ case "i":
+ case "ii":
+ return parseNDigits(token.length, dateString);
+ // 2nd
+ case "io":
+ return match2.ordinalNumber(dateString, { unit: "day" });
+ // Tue
+ case "iii":
+ return mapValue(
+ match2.day(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.day(dateString, {
+ width: "short",
+ context: "formatting"
+ }) || match2.day(dateString, {
+ width: "narrow",
+ context: "formatting"
+ }),
+ valueCallback
+ );
+ // T
+ case "iiiii":
+ return mapValue(
+ match2.day(dateString, {
+ width: "narrow",
+ context: "formatting"
+ }),
+ valueCallback
+ );
+ // Tu
+ case "iiiiii":
+ return mapValue(
+ match2.day(dateString, {
+ width: "short",
+ context: "formatting"
+ }) || match2.day(dateString, {
+ width: "narrow",
+ context: "formatting"
+ }),
+ valueCallback
+ );
+ // Tuesday
+ case "iiii":
+ default:
+ return mapValue(
+ match2.day(dateString, {
+ width: "wide",
+ context: "formatting"
+ }) || match2.day(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.day(dateString, {
+ width: "short",
+ context: "formatting"
+ }) || match2.day(dateString, {
+ width: "narrow",
+ context: "formatting"
+ }),
+ valueCallback
+ );
+ }
}
- return () => {
- const count = runtime.documents.get(targetDocument);
- if (count === void 0) {
- return;
+ validate(_date, value) {
+ return value >= 1 && value <= 7;
+ }
+ set(date, _flags, value) {
+ date = setISODay(date, value);
+ date.setHours(0, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = [
+ "y",
+ "Y",
+ "u",
+ "q",
+ "Q",
+ "M",
+ "L",
+ "w",
+ "d",
+ "D",
+ "E",
+ "e",
+ "c",
+ "t",
+ "T"
+ ];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/AMPMParser.js
+ var AMPMParser = class extends Parser {
+ priority = 80;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "a":
+ case "aa":
+ case "aaa":
+ return match2.dayPeriod(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.dayPeriod(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ case "aaaaa":
+ return match2.dayPeriod(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ case "aaaa":
+ default:
+ return match2.dayPeriod(dateString, {
+ width: "wide",
+ context: "formatting"
+ }) || match2.dayPeriod(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.dayPeriod(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
}
- if (count <= 1) {
- runtime.documents.delete(targetDocument);
- return;
+ }
+ set(date, _flags, value) {
+ date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js
+ var AMPMMidnightParser = class extends Parser {
+ priority = 80;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "b":
+ case "bb":
+ case "bbb":
+ return match2.dayPeriod(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.dayPeriod(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ case "bbbbb":
+ return match2.dayPeriod(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ case "bbbb":
+ default:
+ return match2.dayPeriod(dateString, {
+ width: "wide",
+ context: "formatting"
+ }) || match2.dayPeriod(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.dayPeriod(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
}
- runtime.documents.set(targetDocument, count - 1);
- };
- }
- function registerStyle25(hash, css) {
- const runtime = getRuntime25();
- runtime.styles.set(hash, css);
- for (const targetDocument of runtime.documents.keys()) {
- injectStyle25(targetDocument, hash, css);
}
- }
- if (typeof process === "undefined" || true) {
- registerStyle25("5f8e7aa0bc", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
- }
- var focus_default2 = { "outset-ring--focus": "_08e8a2e44959f892__outset-ring--focus", "outset-ring--focus-except-active": "e25b2bdd7aa21721__outset-ring--focus-except-active", "outset-ring--focus-visible": "d0541bc9dd9dc7b6__outset-ring--focus-visible", "outset-ring--focus-within": "cd83dfc2126a0846__outset-ring--focus-within", "outset-ring--focus-within-except-active": "_970d04df7376df67__outset-ring--focus-within-except-active", "outset-ring--focus-within-visible": "c5cb3ee4bddaa8e4__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "ecadb9e080e2dfa5__outset-ring--focus-parent-visible" };
- if (typeof process === "undefined" || true) {
- registerStyle25("7b4a0ac519", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._6e4e0445ef20426b__trigger-wrapper{&.fa98c865fb77e675__is-minimal{width:fit-content}}._7893295e3f6d1af7__trigger{align-items:center;background-color:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:inherit;font-size:inherit;gap:var(--wpds-dimension-gap-xs,4px);justify-content:space-between;line-height:1.4;padding-block:4px;padding-inline-end:calc(var(--wp-ui-input-layout-padding-inline) - 4px);padding-inline-start:var(--wp-ui-input-layout-padding-inline);text-align:start;user-select:none;width:100%;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.fa98c865fb77e675__is-minimal{width:auto}&:focus{outline:none}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}}.e760c9339965ce84__trigger-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;._7893295e3f6d1af7__trigger[data-placeholder] &{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}}._308bc63e43681f99__trigger-caret{flex:0 0 auto}}}");
- }
- var select_trigger_default = { "trigger-wrapper": "_6e4e0445ef20426b__trigger-wrapper", "is-minimal": "fa98c865fb77e675__is-minimal", "trigger": "_7893295e3f6d1af7__trigger", "trigger-value": "e760c9339965ce84__trigger-value", "trigger-caret": "_308bc63e43681f99__trigger-caret" };
- var Trigger3 = (0, import_element84.forwardRef)(
- function Trigger22({
- className,
- size: size4,
- variant,
- children,
- placeholder = (0, import_i18n32.__)("Select"),
- ...restProps
- }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
- InputLayout3,
- {
- className: clsx_default(
- focus_default2["outset-ring--focus-within-except-active"],
- select_trigger_default["trigger-wrapper"],
- variant === "minimal" && select_trigger_default["is-minimal"],
- className
- ),
- size: size4,
- isBorderless: variant === "minimal",
- children: /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
- index_parts_exports3.Trigger,
- {
- ...restProps,
- className: clsx_default(
- select_trigger_default.trigger,
- variant === "minimal" && select_trigger_default["is-minimal"]
- ),
- "data-can-disable-input-layout": true,
- ref,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
- index_parts_exports3.Value,
- {
- placeholder,
- className: select_trigger_default["trigger-value"],
- children
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
- Icon,
- {
- className: select_trigger_default["trigger-caret"],
- icon: chevron_down_default,
- size: 18
- }
- )
- ]
- }
- )
- }
- );
+ set(date, _flags, value) {
+ date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);
+ return date;
}
- );
+ incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
+ };
- // packages/ui/build-module/form/select-control/select-control.mjs
- var import_element87 = __toESM(require_element(), 1);
+ // node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js
+ var DayPeriodParser = class extends Parser {
+ priority = 80;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "B":
+ case "BB":
+ case "BBB":
+ return match2.dayPeriod(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.dayPeriod(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ case "BBBBB":
+ return match2.dayPeriod(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ case "BBBB":
+ default:
+ return match2.dayPeriod(dateString, {
+ width: "wide",
+ context: "formatting"
+ }) || match2.dayPeriod(dateString, {
+ width: "abbreviated",
+ context: "formatting"
+ }) || match2.dayPeriod(dateString, {
+ width: "narrow",
+ context: "formatting"
+ });
+ }
+ }
+ set(date, _flags, value) {
+ date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = ["a", "b", "t", "T"];
+ };
- // packages/ui/build-module/form/select-control/context.mjs
- var import_element85 = __toESM(require_element(), 1);
- var SelectControlSizeContext = (0, import_element85.createContext)(void 0);
- var useSelectControlSizeContext = () => {
- return (0, import_element85.useContext)(SelectControlSizeContext);
+ // node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js
+ var Hour1to12Parser = class extends Parser {
+ priority = 70;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "h":
+ return parseNumericPattern(numericPatterns.hour12h, dateString);
+ case "ho":
+ return match2.ordinalNumber(dateString, { unit: "hour" });
+ default:
+ return parseNDigits(token.length, dateString);
+ }
+ }
+ validate(_date, value) {
+ return value >= 1 && value <= 12;
+ }
+ set(date, _flags, value) {
+ const isPM = date.getHours() >= 12;
+ if (isPM && value < 12) {
+ date.setHours(value + 12, 0, 0, 0);
+ } else if (!isPM && value === 12) {
+ date.setHours(0, 0, 0, 0);
+ } else {
+ date.setHours(value, 0, 0, 0);
+ }
+ return date;
+ }
+ incompatibleTokens = ["H", "K", "k", "t", "T"];
};
- // packages/ui/build-module/form/select-control/item.mjs
- var import_element86 = __toESM(require_element(), 1);
- var import_jsx_runtime214 = __toESM(require_jsx_runtime(), 1);
- var Item4 = (0, import_element86.forwardRef)(
- function Item24({ size: sizeProp, ...restProps }, ref) {
- const contextSize = useSelectControlSizeContext();
- const size4 = sizeProp ?? contextSize;
- return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(select_exports.Item, { size: size4, ref, ...restProps });
+ // node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js
+ var Hour0to23Parser = class extends Parser {
+ priority = 70;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "H":
+ return parseNumericPattern(numericPatterns.hour23h, dateString);
+ case "Ho":
+ return match2.ordinalNumber(dateString, { unit: "hour" });
+ default:
+ return parseNDigits(token.length, dateString);
+ }
}
- );
+ validate(_date, value) {
+ return value >= 0 && value <= 23;
+ }
+ set(date, _flags, value) {
+ date.setHours(value, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = ["a", "b", "h", "K", "k", "t", "T"];
+ };
- // packages/ui/build-module/form/select-control/select-control.mjs
- var import_jsx_runtime215 = __toESM(require_jsx_runtime(), 1);
- var SelectControl = (0, import_element87.forwardRef)(function SelectControl2({
- className,
- children,
- items,
- label,
- description,
- details,
- hideLabelFromVision,
- placeholder,
- size: size4 = "default",
- triggerContent,
- ...restProps
- }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(field_exports.Root, { className, children: [
- /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(field_exports.Label, { hideFromVision: hideLabelFromVision, children: label }),
- /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(select_exports.Root, { items, ...restProps, children: [
- /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
- select_exports.Trigger,
- {
- ref,
- placeholder,
- size: size4,
- children: triggerContent
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(select_exports.Popup, { children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(SelectControlSizeContext.Provider, { value: size4, children: children !== void 0 ? children : items?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
- Item4,
- {
- value: item,
- label: item.label,
- disabled: item.disabled,
- children: item.label
- },
- item.value ?? "null"
- )) }) })
- ] }),
- description && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(field_exports.Description, { children: description }),
- details && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(field_exports.Details, { children: details })
- ] });
- });
+ // node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js
+ var Hour0To11Parser = class extends Parser {
+ priority = 70;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "K":
+ return parseNumericPattern(numericPatterns.hour11h, dateString);
+ case "Ko":
+ return match2.ordinalNumber(dateString, { unit: "hour" });
+ default:
+ return parseNDigits(token.length, dateString);
+ }
+ }
+ validate(_date, value) {
+ return value >= 0 && value <= 11;
+ }
+ set(date, _flags, value) {
+ const isPM = date.getHours() >= 12;
+ if (isPM && value < 12) {
+ date.setHours(value + 12, 0, 0, 0);
+ } else {
+ date.setHours(value, 0, 0, 0);
+ }
+ return date;
+ }
+ incompatibleTokens = ["h", "H", "k", "t", "T"];
+ };
- // packages/ui/build-module/form/select-control/index.mjs
- Group.displayName = "SelectControl.Group";
- GroupLabel.displayName = "SelectControl.GroupLabel";
- Item4.displayName = "SelectControl.Item";
- var SelectControl3 = Object.assign(SelectControl, {
- /**
- * Groups related items together with an associated label rendered by
- * `SelectControl.GroupLabel`.
- */
- Group,
- /**
- * Renders a label for a `SelectControl.Group`.
- */
- GroupLabel,
- /**
- * An item rendered inside a `SelectControl` popup.
- */
- Item: Item4
- });
+ // node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js
+ var Hour1To24Parser = class extends Parser {
+ priority = 70;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "k":
+ return parseNumericPattern(numericPatterns.hour24h, dateString);
+ case "ko":
+ return match2.ordinalNumber(dateString, { unit: "hour" });
+ default:
+ return parseNDigits(token.length, dateString);
+ }
+ }
+ validate(_date, value) {
+ return value >= 1 && value <= 24;
+ }
+ set(date, _flags, value) {
+ const hours = value <= 24 ? value % 24 : value;
+ date.setHours(hours, 0, 0, 0);
+ return date;
+ }
+ incompatibleTokens = ["a", "b", "h", "H", "K", "t", "T"];
+ };
- // packages/block-editor/build-module/components/inserter/menu.mjs
- var import_i18n62 = __toESM(require_i18n(), 1);
- var import_compose48 = __toESM(require_compose(), 1);
- var import_data64 = __toESM(require_data(), 1);
+ // node_modules/date-fns/parse/_lib/parsers/MinuteParser.js
+ var MinuteParser = class extends Parser {
+ priority = 60;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "m":
+ return parseNumericPattern(numericPatterns.minute, dateString);
+ case "mo":
+ return match2.ordinalNumber(dateString, { unit: "minute" });
+ default:
+ return parseNDigits(token.length, dateString);
+ }
+ }
+ validate(_date, value) {
+ return value >= 0 && value <= 59;
+ }
+ set(date, _flags, value) {
+ date.setMinutes(value, 0, 0);
+ return date;
+ }
+ incompatibleTokens = ["t", "T"];
+ };
- // packages/block-editor/build-module/components/inserter/tips.mjs
- var import_i18n33 = __toESM(require_i18n(), 1);
- var import_element88 = __toESM(require_element(), 1);
- var import_components29 = __toESM(require_components(), 1);
- var import_jsx_runtime216 = __toESM(require_jsx_runtime(), 1);
- var globalTips = [
- (0, import_element88.createInterpolateElement)(
- (0, import_i18n33.__)(
- "While writing, you can press <kbd>/</kbd> to quickly insert new blocks."
- ),
- { kbd: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("kbd", {}) }
- ),
- (0, import_element88.createInterpolateElement)(
- (0, import_i18n33.__)(
- "Indent a list by pressing <kbd>space</kbd> at the beginning of a line."
- ),
- { kbd: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("kbd", {}) }
- ),
- (0, import_element88.createInterpolateElement)(
- (0, import_i18n33.__)(
- "Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."
- ),
- { kbd: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("kbd", {}) }
- ),
- (0, import_i18n33.__)("Drag files into the editor to automatically insert media blocks."),
- (0, import_i18n33.__)("Change a block's type by pressing the block icon on the toolbar.")
- ];
- function Tips() {
- const [randomIndex] = (0, import_element88.useState)(
- () => Math.floor(Math.random() * globalTips.length)
- );
- return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(import_components29.Tip, { children: globalTips[randomIndex] });
- }
- var tips_default = Tips;
+ // node_modules/date-fns/parse/_lib/parsers/SecondParser.js
+ var SecondParser = class extends Parser {
+ priority = 50;
+ parse(dateString, token, match2) {
+ switch (token) {
+ case "s":
+ return parseNumericPattern(numericPatterns.second, dateString);
+ case "so":
+ return match2.ordinalNumber(dateString, { unit: "second" });
+ default:
+ return parseNDigits(token.length, dateString);
+ }
+ }
+ validate(_date, value) {
+ return value >= 0 && value <= 59;
+ }
+ set(date, _flags, value) {
+ date.setSeconds(value, 0);
+ return date;
+ }
+ incompatibleTokens = ["t", "T"];
+ };
- // packages/block-editor/build-module/components/inserter/preview-panel.mjs
- var import_blocks30 = __toESM(require_blocks(), 1);
- var import_element104 = __toESM(require_element(), 1);
- var import_i18n40 = __toESM(require_i18n(), 1);
+ // node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js
+ var FractionOfSecondParser = class extends Parser {
+ priority = 30;
+ parse(dateString, token) {
+ const valueCallback = (value) => Math.trunc(value * Math.pow(10, -token.length + 3));
+ return mapValue(parseNDigits(token.length, dateString), valueCallback);
+ }
+ set(date, _flags, value) {
+ date.setMilliseconds(value);
+ return date;
+ }
+ incompatibleTokens = ["t", "T"];
+ };
- // packages/block-editor/build-module/components/block-card/index.mjs
- var import_components30 = __toESM(require_components(), 1);
- var import_data32 = __toESM(require_data(), 1);
- var import_deprecated6 = __toESM(require_deprecated(), 1);
- var import_i18n34 = __toESM(require_i18n(), 1);
- var import_blocks24 = __toESM(require_blocks(), 1);
- var import_jsx_runtime217 = __toESM(require_jsx_runtime(), 1);
- var { Badge: WCBadge2 } = unlock(import_components30.privateApis);
- function OptionalParentSelectButton({ children, onClick }) {
- if (!onClick) {
- return children;
+ // node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js
+ var ISOTimezoneWithZParser = class extends Parser {
+ priority = 10;
+ parse(dateString, token) {
+ switch (token) {
+ case "X":
+ return parseTimezonePattern(
+ timezonePatterns.basicOptionalMinutes,
+ dateString
+ );
+ case "XX":
+ return parseTimezonePattern(timezonePatterns.basic, dateString);
+ case "XXXX":
+ return parseTimezonePattern(
+ timezonePatterns.basicOptionalSeconds,
+ dateString
+ );
+ case "XXXXX":
+ return parseTimezonePattern(
+ timezonePatterns.extendedOptionalSeconds,
+ dateString
+ );
+ case "XXX":
+ default:
+ return parseTimezonePattern(timezonePatterns.extended, dateString);
+ }
}
- return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
- import_components30.Button,
- {
- __next40pxDefaultSize: true,
- className: "block-editor-block-card__parent-select-button",
- onClick,
- children
+ set(date, flags, value) {
+ if (flags.timestampIsSet) return date;
+ return constructFrom(
+ date,
+ date.getTime() - getTimezoneOffsetInMilliseconds(date) - value
+ );
+ }
+ incompatibleTokens = ["t", "T", "x"];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js
+ var ISOTimezoneParser = class extends Parser {
+ priority = 10;
+ parse(dateString, token) {
+ switch (token) {
+ case "x":
+ return parseTimezonePattern(
+ timezonePatterns.basicOptionalMinutes,
+ dateString
+ );
+ case "xx":
+ return parseTimezonePattern(timezonePatterns.basic, dateString);
+ case "xxxx":
+ return parseTimezonePattern(
+ timezonePatterns.basicOptionalSeconds,
+ dateString
+ );
+ case "xxxxx":
+ return parseTimezonePattern(
+ timezonePatterns.extendedOptionalSeconds,
+ dateString
+ );
+ case "xxx":
+ default:
+ return parseTimezonePattern(timezonePatterns.extended, dateString);
}
- );
- }
- function BlockCard({
- title,
- icon,
- description,
- blockType,
- className,
- name,
- allowParentNavigation,
- parentClientId,
- isChild,
- children,
- clientId,
- controls
- }) {
- if (blockType) {
- (0, import_deprecated6.default)("`blockType` property in `BlockCard component`", {
- since: "5.7",
- alternative: "`title, icon and description` properties"
- });
- ({ title, icon, description } = blockType);
}
- const { parentBlockClientId, parentBlockName } = (0, import_data32.useSelect)(
- (select3) => {
- if (parentClientId || isChild || !allowParentNavigation) {
- return {};
+ set(date, flags, value) {
+ if (flags.timestampIsSet) return date;
+ return constructFrom(
+ date,
+ date.getTime() - getTimezoneOffsetInMilliseconds(date) - value
+ );
+ }
+ incompatibleTokens = ["t", "T", "X"];
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js
+ var TimestampSecondsParser = class extends Parser {
+ priority = 40;
+ parse(dateString) {
+ return parseAnyDigitsSigned(dateString);
+ }
+ set(date, _flags, value) {
+ return [constructFrom(date, value * 1e3), { timestampIsSet: true }];
+ }
+ incompatibleTokens = "*";
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js
+ var TimestampMillisecondsParser = class extends Parser {
+ priority = 20;
+ parse(dateString) {
+ return parseAnyDigitsSigned(dateString);
+ }
+ set(date, _flags, value) {
+ return [constructFrom(date, value), { timestampIsSet: true }];
+ }
+ incompatibleTokens = "*";
+ };
+
+ // node_modules/date-fns/parse/_lib/parsers.js
+ var parsers = {
+ G: new EraParser(),
+ y: new YearParser(),
+ Y: new LocalWeekYearParser(),
+ R: new ISOWeekYearParser(),
+ u: new ExtendedYearParser(),
+ Q: new QuarterParser(),
+ q: new StandAloneQuarterParser(),
+ M: new MonthParser(),
+ L: new StandAloneMonthParser(),
+ w: new LocalWeekParser(),
+ I: new ISOWeekParser(),
+ d: new DateParser(),
+ D: new DayOfYearParser(),
+ E: new DayParser(),
+ e: new LocalDayParser(),
+ c: new StandAloneLocalDayParser(),
+ i: new ISODayParser(),
+ a: new AMPMParser(),
+ b: new AMPMMidnightParser(),
+ B: new DayPeriodParser(),
+ h: new Hour1to12Parser(),
+ H: new Hour0to23Parser(),
+ K: new Hour0To11Parser(),
+ k: new Hour1To24Parser(),
+ m: new MinuteParser(),
+ s: new SecondParser(),
+ S: new FractionOfSecondParser(),
+ X: new ISOTimezoneWithZParser(),
+ x: new ISOTimezoneParser(),
+ t: new TimestampSecondsParser(),
+ T: new TimestampMillisecondsParser()
+ };
+
+ // node_modules/date-fns/parse.js
+ var formattingTokensRegExp2 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
+ var longFormattingTokensRegExp2 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
+ var escapedStringRegExp2 = /^'([^]*?)'?$/;
+ var doubleQuoteRegExp2 = /''/g;
+ var notWhitespaceRegExp = /\S/;
+ var unescapedLatinCharacterRegExp2 = /[a-zA-Z]/;
+ function parse3(dateStr, formatStr, referenceDate, options) {
+ const invalidDate = () => constructFrom(options?.in || referenceDate, NaN);
+ const defaultOptions2 = getDefaultOptions2();
+ const locale = options?.locale ?? defaultOptions2.locale ?? enUS;
+ const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
+ const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
+ if (!formatStr)
+ return dateStr ? invalidDate() : toDate(referenceDate, options?.in);
+ const subFnOptions = {
+ firstWeekContainsDate,
+ weekStartsOn,
+ locale
+ };
+ const setters = [new DateTimezoneSetter(options?.in, referenceDate)];
+ const tokens = formatStr.match(longFormattingTokensRegExp2).map((substring) => {
+ const firstCharacter = substring[0];
+ if (firstCharacter in longFormatters) {
+ const longFormatter = longFormatters[firstCharacter];
+ return longFormatter(substring, locale.formatLong);
+ }
+ return substring;
+ }).join("").match(formattingTokensRegExp2);
+ const usedTokens = [];
+ for (let token of tokens) {
+ if (!options?.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token)) {
+ warnOrThrowProtectedError(token, formatStr, dateStr);
+ }
+ if (!options?.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) {
+ warnOrThrowProtectedError(token, formatStr, dateStr);
+ }
+ const firstCharacter = token[0];
+ const parser = parsers[firstCharacter];
+ if (parser) {
+ const { incompatibleTokens } = parser;
+ if (Array.isArray(incompatibleTokens)) {
+ const incompatibleToken = usedTokens.find(
+ (usedToken) => incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter
+ );
+ if (incompatibleToken) {
+ throw new RangeError(
+ `The format string mustn't contain \`${incompatibleToken.fullToken}\` and \`${token}\` at the same time`
+ );
+ }
+ } else if (parser.incompatibleTokens === "*" && usedTokens.length > 0) {
+ throw new RangeError(
+ `The format string mustn't contain \`${token}\` and any other token at the same time`
+ );
}
- const { getBlockParents: getBlockParents2, getBlockName: getBlockName2, shouldRenderBlockListView: shouldRenderBlockListView2 } = unlock(select3(store));
- const parents = getBlockParents2(clientId, false);
- const foundParentId = parents.find(
- (parentId) => shouldRenderBlockListView2(parentId)
+ usedTokens.push({ token: firstCharacter, fullToken: token });
+ const parseResult = parser.run(
+ dateStr,
+ token,
+ locale.match,
+ subFnOptions
);
- return {
- parentBlockClientId: foundParentId,
- parentBlockName: foundParentId ? getBlockName2(foundParentId) : null
- };
- },
- [clientId, allowParentNavigation, isChild, parentClientId]
+ if (!parseResult) {
+ return invalidDate();
+ }
+ setters.push(parseResult.setter);
+ dateStr = parseResult.rest;
+ } else {
+ if (firstCharacter.match(unescapedLatinCharacterRegExp2)) {
+ throw new RangeError(
+ "Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"
+ );
+ }
+ if (token === "''") {
+ token = "'";
+ } else if (firstCharacter === "'") {
+ token = cleanEscapedString2(token);
+ }
+ if (dateStr.indexOf(token) === 0) {
+ dateStr = dateStr.slice(token.length);
+ } else {
+ return invalidDate();
+ }
+ }
+ }
+ if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) {
+ return invalidDate();
+ }
+ const uniquePrioritySetters = setters.map((setter) => setter.priority).sort((a2, b2) => b2 - a2).filter((priority2, index2, array) => array.indexOf(priority2) === index2).map(
+ (priority2) => setters.filter((setter) => setter.priority === priority2).sort((a2, b2) => b2.subPriority - a2.subPriority)
+ ).map((setterArray) => setterArray[0]);
+ let date = toDate(referenceDate, options?.in);
+ if (isNaN(+date)) return invalidDate();
+ const flags = {};
+ for (const setter of uniquePrioritySetters) {
+ if (!setter.validate(date, subFnOptions)) {
+ return invalidDate();
+ }
+ const result = setter.set(date, flags, subFnOptions);
+ if (Array.isArray(result)) {
+ date = result[0];
+ Object.assign(flags, result[1]);
+ } else {
+ date = result;
+ }
+ }
+ return date;
+ }
+ function cleanEscapedString2(input) {
+ return input.match(escapedStringRegExp2)[1].replace(doubleQuoteRegExp2, "'");
+ }
+
+ // node_modules/date-fns/isSameMonth.js
+ function isSameMonth(laterDate, earlierDate, options) {
+ const [laterDate_, earlierDate_] = normalizeDates(
+ options?.in,
+ laterDate,
+ earlierDate
);
- const { selectBlock: selectBlock2 } = (0, import_data32.useDispatch)(store);
- const TitleElement = parentClientId ? "div" : "h2";
- return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
- "div",
- {
- className: clsx_default(
- "block-editor-block-card",
- {
- "is-parent": parentClientId,
- "is-child": isChild
- },
- className
- ),
- children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Stack, { direction: "column", gap: "sm", children: [
- /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Stack, { direction: "row", align: "center", justify: "space-between", children: [
- /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Stack, { direction: "row", align: "center", justify: "flex-start", children: [
- parentBlockClientId && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
- import_components30.Button,
- {
- onClick: () => selectBlock2(parentBlockClientId),
- label: parentBlockName ? (0, import_i18n34.sprintf)(
- /* translators: %s: The name of the parent block. */
- (0, import_i18n34.__)('Go to "%s" block'),
- (0, import_blocks24.getBlockType)(parentBlockName)?.title
- ) : (0, import_i18n34.__)("Go to parent block"),
- style: (
- // TODO: This style override is also used in ToolsPanelHeader.
- // It should be supported out-of-the-box by Button.
- { minWidth: 24, padding: 0 }
- ),
- icon: (0, import_i18n34.isRTL)() ? chevron_right_default : chevron_left_default,
- size: "small"
- }
- ),
- isChild && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("span", { className: "block-editor-block-card__child-indicator-icon", children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
- import_components30.Icon,
- {
- icon: (0, import_i18n34.isRTL)() ? arrow_left_default : arrow_right_default
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
- OptionalParentSelectButton,
- {
- onClick: parentClientId ? () => {
- selectBlock2(parentClientId);
- } : void 0,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(block_icon_default, { icon, showColors: true }),
- /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Stack, { direction: "column", gap: "xs", children: [
- /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(TitleElement, { className: "block-editor-block-card__title", children: [
- /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("span", { className: "block-editor-block-card__name", children: !!name?.length ? name : title }),
- !parentClientId && !isChild && !!name?.length && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(WCBadge2, { children: title })
- ] }),
- children
- ] })
- ]
- }
- )
- ] }),
- controls
- ] }),
- !parentClientId && !isChild && description && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Text, { className: "block-editor-block-card__description", children: description })
- ] })
+ return laterDate_.getFullYear() === earlierDate_.getFullYear() && laterDate_.getMonth() === earlierDate_.getMonth();
+ }
+
+ // node_modules/date-fns/isSameYear.js
+ function isSameYear(laterDate, earlierDate, options) {
+ const [laterDate_, earlierDate_] = normalizeDates(
+ options?.in,
+ laterDate,
+ earlierDate
+ );
+ return laterDate_.getFullYear() === earlierDate_.getFullYear();
+ }
+
+ // node_modules/date-fns/subDays.js
+ function subDays(date, amount, options) {
+ return addDays(date, -amount, options);
+ }
+
+ // node_modules/date-fns/setMonth.js
+ function setMonth(date, month, options) {
+ const _date = toDate(date, options?.in);
+ const year = _date.getFullYear();
+ const day = _date.getDate();
+ const midMonth = constructFrom(options?.in || date, 0);
+ midMonth.setFullYear(year, month, 15);
+ midMonth.setHours(0, 0, 0, 0);
+ const daysInMonth = getDaysInMonth(midMonth);
+ _date.setMonth(month, Math.min(day, daysInMonth));
+ return _date;
+ }
+
+ // node_modules/date-fns/setYear.js
+ function setYear(date, year, options) {
+ const date_ = toDate(date, options?.in);
+ if (isNaN(+date_)) return constructFrom(options?.in || date, NaN);
+ date_.setFullYear(year);
+ return date_;
+ }
+
+ // node_modules/date-fns/subMonths.js
+ function subMonths(date, amount, options) {
+ return addMonths(date, -amount, options);
+ }
+
+ // node_modules/date-fns/subWeeks.js
+ function subWeeks(date, amount, options) {
+ return addWeeks(date, -amount, options);
+ }
+
+ // node_modules/date-fns/subYears.js
+ function subYears(date, amount, options) {
+ return addYears(date, -amount, options);
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js
+ var FIVE_WEEKS = 5;
+ var FOUR_WEEKS = 4;
+ function getBroadcastWeeksInMonth(month, dateLib) {
+ const firstDayOfMonth = dateLib.startOfMonth(month);
+ const firstDayOfWeek = firstDayOfMonth.getDay() > 0 ? firstDayOfMonth.getDay() : 7;
+ const broadcastStartDate = dateLib.addDays(month, -firstDayOfWeek + 1);
+ const lastDateOfLastWeek = dateLib.addDays(broadcastStartDate, FIVE_WEEKS * 7 - 1);
+ const numberOfWeeks = dateLib.getMonth(month) === dateLib.getMonth(lastDateOfLastWeek) ? FIVE_WEEKS : FOUR_WEEKS;
+ return numberOfWeeks;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js
+ function startOfBroadcastWeek(date, dateLib) {
+ const firstOfMonth = dateLib.startOfMonth(date);
+ const dayOfWeek = firstOfMonth.getDay();
+ if (dayOfWeek === 1) {
+ return firstOfMonth;
+ } else if (dayOfWeek === 0) {
+ return dateLib.addDays(firstOfMonth, -1 * 6);
+ } else {
+ return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));
+ }
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js
+ function endOfBroadcastWeek(date, dateLib) {
+ const startDate = startOfBroadcastWeek(date, dateLib);
+ const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);
+ const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);
+ return endDate;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/locale/en-US.js
+ var enUS2 = {
+ ...enUS,
+ labels: {
+ labelDayButton: (date, modifiers, options, dateLib) => {
+ let formatDate2;
+ if (dateLib && typeof dateLib.format === "function") {
+ formatDate2 = dateLib.format.bind(dateLib);
+ } else {
+ formatDate2 = (d2, pattern) => format(d2, pattern, { locale: enUS, ...options });
+ }
+ let label = formatDate2(date, "PPPP");
+ if (modifiers.today)
+ label = `Today, ${label}`;
+ if (modifiers.selected)
+ label = `${label}, selected`;
+ return label;
+ },
+ labelMonthDropdown: "Choose the Month",
+ labelNext: "Go to the Next Month",
+ labelPrevious: "Go to the Previous Month",
+ labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
+ labelYearDropdown: "Choose the Year",
+ labelGrid: (date, options, dateLib) => {
+ let formatDate2;
+ if (dateLib && typeof dateLib.format === "function") {
+ formatDate2 = dateLib.format.bind(dateLib);
+ } else {
+ formatDate2 = (d2, pattern) => format(d2, pattern, { locale: enUS, ...options });
+ }
+ return formatDate2(date, "LLLL yyyy");
+ },
+ labelGridcell: (date, modifiers, options, dateLib) => {
+ let formatDate2;
+ if (dateLib && typeof dateLib.format === "function") {
+ formatDate2 = dateLib.format.bind(dateLib);
+ } else {
+ formatDate2 = (d2, pattern) => format(d2, pattern, { locale: enUS, ...options });
+ }
+ let label = formatDate2(date, "PPPP");
+ if (modifiers?.today) {
+ label = `Today, ${label}`;
+ }
+ return label;
+ },
+ labelNav: "Navigation bar",
+ labelWeekNumberHeader: "Week Number",
+ labelWeekday: (date, options, dateLib) => {
+ let formatDate2;
+ if (dateLib && typeof dateLib.format === "function") {
+ formatDate2 = dateLib.format.bind(dateLib);
+ } else {
+ formatDate2 = (d2, pattern) => format(d2, pattern, { locale: enUS, ...options });
+ }
+ return formatDate2(date, "cccc");
+ }
+ }
+ };
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/classes/DateLib.js
+ var DateLib = class _DateLib {
+ /**
+ * Creates an instance of `DateLib`.
+ *
+ * @param options Configuration options for the date library.
+ * @param overrides Custom overrides for the date library functions.
+ */
+ constructor(options, overrides) {
+ this.today = () => {
+ if (this.overrides?.today) {
+ return this.overrides.today();
+ }
+ if (this.options.timeZone) {
+ return TZDate.tz(this.options.timeZone);
+ }
+ const DateCtor = this.options.Date ?? Date;
+ return new DateCtor();
+ };
+ this.newDate = (year, monthIndex, date) => {
+ if (this.overrides?.newDate) {
+ return this.overrides.newDate(year, monthIndex, date);
+ }
+ if (this.options.timeZone) {
+ return new TZDate(year, monthIndex, date, this.options.timeZone);
+ }
+ return new Date(year, monthIndex, date);
+ };
+ this.addDays = (date, amount) => {
+ return this.overrides?.addDays ? this.overrides.addDays(date, amount) : addDays(date, amount);
+ };
+ this.addMonths = (date, amount) => {
+ return this.overrides?.addMonths ? this.overrides.addMonths(date, amount) : addMonths(date, amount);
+ };
+ this.addWeeks = (date, amount) => {
+ return this.overrides?.addWeeks ? this.overrides.addWeeks(date, amount) : addWeeks(date, amount);
+ };
+ this.addYears = (date, amount) => {
+ return this.overrides?.addYears ? this.overrides.addYears(date, amount) : addYears(date, amount);
+ };
+ this.differenceInCalendarDays = (dateLeft, dateRight) => {
+ return this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(dateLeft, dateRight) : differenceInCalendarDays(dateLeft, dateRight);
+ };
+ this.differenceInCalendarMonths = (dateLeft, dateRight) => {
+ return this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(dateLeft, dateRight) : differenceInCalendarMonths(dateLeft, dateRight);
+ };
+ this.eachMonthOfInterval = (interval) => {
+ return this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(interval) : eachMonthOfInterval(interval);
+ };
+ this.eachYearOfInterval = (interval) => {
+ const years = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(interval) : eachYearOfInterval(interval);
+ const uniqueYears = new Set(years.map((d2) => this.getYear(d2)));
+ if (uniqueYears.size === years.length) {
+ return years;
+ }
+ const yearsArray = [];
+ uniqueYears.forEach((y2) => {
+ yearsArray.push(new Date(y2, 0, 1));
+ });
+ return yearsArray;
+ };
+ this.endOfBroadcastWeek = (date) => {
+ return this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(date) : endOfBroadcastWeek(date, this);
+ };
+ this.endOfISOWeek = (date) => {
+ return this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(date) : endOfISOWeek(date);
+ };
+ this.endOfMonth = (date) => {
+ return this.overrides?.endOfMonth ? this.overrides.endOfMonth(date) : endOfMonth(date);
+ };
+ this.endOfWeek = (date, options2) => {
+ return this.overrides?.endOfWeek ? this.overrides.endOfWeek(date, options2) : endOfWeek(date, this.options);
+ };
+ this.endOfYear = (date) => {
+ return this.overrides?.endOfYear ? this.overrides.endOfYear(date) : endOfYear(date);
+ };
+ this.format = (date, formatStr, _options) => {
+ const formatted = this.overrides?.format ? this.overrides.format(date, formatStr, this.options) : format(date, formatStr, this.options);
+ if (this.options.numerals && this.options.numerals !== "latn") {
+ return this.replaceDigits(formatted);
+ }
+ return formatted;
+ };
+ this.getISOWeek = (date) => {
+ return this.overrides?.getISOWeek ? this.overrides.getISOWeek(date) : getISOWeek(date);
+ };
+ this.getMonth = (date, _options) => {
+ return this.overrides?.getMonth ? this.overrides.getMonth(date, this.options) : getMonth(date, this.options);
+ };
+ this.getYear = (date, _options) => {
+ return this.overrides?.getYear ? this.overrides.getYear(date, this.options) : getYear(date, this.options);
+ };
+ this.getWeek = (date, _options) => {
+ return this.overrides?.getWeek ? this.overrides.getWeek(date, this.options) : getWeek(date, this.options);
+ };
+ this.isAfter = (date, dateToCompare) => {
+ return this.overrides?.isAfter ? this.overrides.isAfter(date, dateToCompare) : isAfter(date, dateToCompare);
+ };
+ this.isBefore = (date, dateToCompare) => {
+ return this.overrides?.isBefore ? this.overrides.isBefore(date, dateToCompare) : isBefore(date, dateToCompare);
+ };
+ this.isDate = (value) => {
+ return this.overrides?.isDate ? this.overrides.isDate(value) : isDate(value);
+ };
+ this.isSameDay = (dateLeft, dateRight) => {
+ return this.overrides?.isSameDay ? this.overrides.isSameDay(dateLeft, dateRight) : isSameDay(dateLeft, dateRight);
+ };
+ this.isSameMonth = (dateLeft, dateRight) => {
+ return this.overrides?.isSameMonth ? this.overrides.isSameMonth(dateLeft, dateRight) : isSameMonth(dateLeft, dateRight);
+ };
+ this.isSameYear = (dateLeft, dateRight) => {
+ return this.overrides?.isSameYear ? this.overrides.isSameYear(dateLeft, dateRight) : isSameYear(dateLeft, dateRight);
+ };
+ this.max = (dates) => {
+ return this.overrides?.max ? this.overrides.max(dates) : max2(dates);
+ };
+ this.min = (dates) => {
+ return this.overrides?.min ? this.overrides.min(dates) : min2(dates);
+ };
+ this.setMonth = (date, month) => {
+ return this.overrides?.setMonth ? this.overrides.setMonth(date, month) : setMonth(date, month);
+ };
+ this.setYear = (date, year) => {
+ return this.overrides?.setYear ? this.overrides.setYear(date, year) : setYear(date, year);
+ };
+ this.startOfBroadcastWeek = (date, _dateLib) => {
+ return this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(date, this) : startOfBroadcastWeek(date, this);
+ };
+ this.startOfDay = (date) => {
+ return this.overrides?.startOfDay ? this.overrides.startOfDay(date) : startOfDay(date);
+ };
+ this.startOfISOWeek = (date) => {
+ return this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(date) : startOfISOWeek(date);
+ };
+ this.startOfMonth = (date) => {
+ return this.overrides?.startOfMonth ? this.overrides.startOfMonth(date) : startOfMonth(date);
+ };
+ this.startOfWeek = (date, _options) => {
+ return this.overrides?.startOfWeek ? this.overrides.startOfWeek(date, this.options) : startOfWeek(date, this.options);
+ };
+ this.startOfYear = (date) => {
+ return this.overrides?.startOfYear ? this.overrides.startOfYear(date) : startOfYear(date);
+ };
+ this.options = { locale: enUS2, ...options };
+ this.overrides = overrides;
+ }
+ /**
+ * Generates a mapping of Arabic digits (0-9) to the target numbering system
+ * digits.
+ *
+ * @since 9.5.0
+ * @returns A record mapping Arabic digits to the target numerals.
+ */
+ getDigitMap() {
+ const { numerals = "latn" } = this.options;
+ const formatter = new Intl.NumberFormat("en-US", {
+ numberingSystem: numerals
+ });
+ const digitMap = {};
+ for (let i2 = 0; i2 < 10; i2++) {
+ digitMap[i2.toString()] = formatter.format(i2);
+ }
+ return digitMap;
+ }
+ /**
+ * Replaces Arabic digits in a string with the target numbering system digits.
+ *
+ * @since 9.5.0
+ * @param input The string containing Arabic digits.
+ * @returns The string with digits replaced.
+ */
+ replaceDigits(input) {
+ const digitMap = this.getDigitMap();
+ return input.replace(/\d/g, (digit) => digitMap[digit] || digit);
+ }
+ /**
+ * Formats a number using the configured numbering system.
+ *
+ * @since 9.5.0
+ * @param value The number to format.
+ * @returns The formatted number as a string.
+ */
+ formatNumber(value) {
+ return this.replaceDigits(value.toString());
+ }
+ /**
+ * Returns the preferred ordering for month and year labels for the current
+ * locale.
+ */
+ getMonthYearOrder() {
+ const code = this.options.locale?.code;
+ if (!code) {
+ return "month-first";
+ }
+ return _DateLib.yearFirstLocales.has(code) ? "year-first" : "month-first";
+ }
+ /**
+ * Formats the month/year pair respecting locale conventions.
+ *
+ * @since 9.11.0
+ */
+ formatMonthYear(date) {
+ const { locale, timeZone, numerals } = this.options;
+ const localeCode = locale?.code;
+ if (localeCode && _DateLib.yearFirstLocales.has(localeCode)) {
+ try {
+ const intl = new Intl.DateTimeFormat(localeCode, {
+ month: "long",
+ year: "numeric",
+ timeZone,
+ numberingSystem: numerals
+ });
+ const formatted = intl.format(date);
+ return formatted;
+ } catch {
+ }
}
+ const pattern = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
+ return this.format(date, pattern);
+ }
+ };
+ DateLib.yearFirstLocales = /* @__PURE__ */ new Set([
+ "eu",
+ "hu",
+ "ja",
+ "ja-Hira",
+ "ja-JP",
+ "ko",
+ "ko-KR",
+ "lt",
+ "lt-LT",
+ "lv",
+ "lv-LV",
+ "mn",
+ "mn-MN",
+ "zh",
+ "zh-CN",
+ "zh-HK",
+ "zh-TW"
+ ]);
+ var defaultDateLib = new DateLib();
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js
+ var CalendarDay = class {
+ constructor(date, displayMonth, dateLib = defaultDateLib) {
+ this.date = date;
+ this.displayMonth = displayMonth;
+ this.outside = Boolean(displayMonth && !dateLib.isSameMonth(date, displayMonth));
+ this.dateLib = dateLib;
+ this.isoDate = dateLib.format(date, "yyyy-MM-dd");
+ this.displayMonthId = dateLib.format(displayMonth, "yyyy-MM");
+ this.dateMonthId = dateLib.format(date, "yyyy-MM");
+ }
+ /**
+ * Checks if this day is equal to another `CalendarDay`, considering both the
+ * date and the displayed month.
+ *
+ * @param day The `CalendarDay` to compare with.
+ * @returns `true` if the days are equal, otherwise `false`.
+ */
+ isEqualTo(day) {
+ return this.dateLib.isSameDay(day.date, this.date) && this.dateLib.isSameMonth(day.displayMonth, this.displayMonth);
+ }
+ };
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js
+ var CalendarMonth = class {
+ constructor(month, weeks) {
+ this.date = month;
+ this.weeks = weeks;
+ }
+ };
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js
+ var CalendarWeek = class {
+ constructor(weekNumber, days) {
+ this.days = days;
+ this.weekNumber = weekNumber;
+ }
+ };
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/custom-components.js
+ var custom_components_exports = {};
+ __export(custom_components_exports, {
+ CaptionLabel: () => CaptionLabel,
+ Chevron: () => Chevron,
+ Day: () => Day,
+ DayButton: () => DayButton,
+ Dropdown: () => Dropdown2,
+ DropdownNav: () => DropdownNav,
+ Footer: () => Footer,
+ Month: () => Month,
+ MonthCaption: () => MonthCaption,
+ MonthGrid: () => MonthGrid,
+ Months: () => Months,
+ MonthsDropdown: () => MonthsDropdown,
+ Nav: () => Nav,
+ NextMonthButton: () => NextMonthButton,
+ Option: () => Option,
+ PreviousMonthButton: () => PreviousMonthButton,
+ Root: () => Root,
+ Select: () => Select,
+ Week: () => Week,
+ WeekNumber: () => WeekNumber,
+ WeekNumberHeader: () => WeekNumberHeader,
+ Weekday: () => Weekday,
+ Weekdays: () => Weekdays,
+ Weeks: () => Weeks,
+ YearsDropdown: () => YearsDropdown
+ });
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js
+ var import_react7 = __toESM(require_react(), 1);
+ function CaptionLabel(props) {
+ return import_react7.default.createElement("span", { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Chevron.js
+ var import_react8 = __toESM(require_react(), 1);
+ function Chevron(props) {
+ const { size: size4 = 24, orientation = "left", className: className2, style } = props;
+ return import_react8.default.createElement(
+ "svg",
+ { className: className2, style, width: size4, height: size4, viewBox: "0 0 24 24" },
+ orientation === "up" && import_react8.default.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
+ orientation === "down" && import_react8.default.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
+ orientation === "left" && import_react8.default.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
+ orientation === "right" && import_react8.default.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
+ );
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Day.js
+ var import_react9 = __toESM(require_react(), 1);
+ function Day(props) {
+ const { day, modifiers, ...tdProps } = props;
+ return import_react9.default.createElement("td", { ...tdProps });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/DayButton.js
+ var import_react10 = __toESM(require_react(), 1);
+ function DayButton(props) {
+ const { day, modifiers, ...buttonProps } = props;
+ const ref = import_react10.default.useRef(null);
+ import_react10.default.useEffect(() => {
+ if (modifiers.focused)
+ ref.current?.focus();
+ }, [modifiers.focused]);
+ return import_react10.default.createElement("button", { ref, ...buttonProps });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Dropdown.js
+ var import_react12 = __toESM(require_react(), 1);
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/UI.js
+ var UI;
+ (function(UI2) {
+ UI2["Root"] = "root";
+ UI2["Chevron"] = "chevron";
+ UI2["Day"] = "day";
+ UI2["DayButton"] = "day_button";
+ UI2["CaptionLabel"] = "caption_label";
+ UI2["Dropdowns"] = "dropdowns";
+ UI2["Dropdown"] = "dropdown";
+ UI2["DropdownRoot"] = "dropdown_root";
+ UI2["Footer"] = "footer";
+ UI2["MonthGrid"] = "month_grid";
+ UI2["MonthCaption"] = "month_caption";
+ UI2["MonthsDropdown"] = "months_dropdown";
+ UI2["Month"] = "month";
+ UI2["Months"] = "months";
+ UI2["Nav"] = "nav";
+ UI2["NextMonthButton"] = "button_next";
+ UI2["PreviousMonthButton"] = "button_previous";
+ UI2["Week"] = "week";
+ UI2["Weeks"] = "weeks";
+ UI2["Weekday"] = "weekday";
+ UI2["Weekdays"] = "weekdays";
+ UI2["WeekNumber"] = "week_number";
+ UI2["WeekNumberHeader"] = "week_number_header";
+ UI2["YearsDropdown"] = "years_dropdown";
+ })(UI || (UI = {}));
+ var DayFlag;
+ (function(DayFlag2) {
+ DayFlag2["disabled"] = "disabled";
+ DayFlag2["hidden"] = "hidden";
+ DayFlag2["outside"] = "outside";
+ DayFlag2["focused"] = "focused";
+ DayFlag2["today"] = "today";
+ })(DayFlag || (DayFlag = {}));
+ var SelectionState;
+ (function(SelectionState2) {
+ SelectionState2["range_end"] = "range_end";
+ SelectionState2["range_middle"] = "range_middle";
+ SelectionState2["range_start"] = "range_start";
+ SelectionState2["selected"] = "selected";
+ })(SelectionState || (SelectionState = {}));
+ var Animation2;
+ (function(Animation3) {
+ Animation3["weeks_before_enter"] = "weeks_before_enter";
+ Animation3["weeks_before_exit"] = "weeks_before_exit";
+ Animation3["weeks_after_enter"] = "weeks_after_enter";
+ Animation3["weeks_after_exit"] = "weeks_after_exit";
+ Animation3["caption_after_enter"] = "caption_after_enter";
+ Animation3["caption_after_exit"] = "caption_after_exit";
+ Animation3["caption_before_enter"] = "caption_before_enter";
+ Animation3["caption_before_exit"] = "caption_before_exit";
+ })(Animation2 || (Animation2 = {}));
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/useDayPicker.js
+ var import_react11 = __toESM(require_react(), 1);
+ var dayPickerContext = (0, import_react11.createContext)(void 0);
+ function useDayPicker() {
+ const context = (0, import_react11.useContext)(dayPickerContext);
+ if (context === void 0) {
+ throw new Error("useDayPicker() must be used within a custom component.");
+ }
+ return context;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Dropdown.js
+ function Dropdown2(props) {
+ const { options, className: className2, ...selectProps } = props;
+ const { classNames: classNames2, components, styles } = useDayPicker();
+ const cssClassSelect = [classNames2[UI.Dropdown], className2].join(" ");
+ const selectedOption = options?.find(({ value }) => value === selectProps.value);
+ return import_react12.default.createElement(
+ "span",
+ { "data-disabled": selectProps.disabled, className: classNames2[UI.DropdownRoot], style: styles?.[UI.DropdownRoot] },
+ import_react12.default.createElement(components.Select, { className: cssClassSelect, ...selectProps }, options?.map(({ value, label, disabled: disabled2 }) => import_react12.default.createElement(components.Option, { key: value, value, disabled: disabled2 }, label))),
+ import_react12.default.createElement(
+ "span",
+ { className: classNames2[UI.CaptionLabel], style: styles?.[UI.CaptionLabel], "aria-hidden": true },
+ selectedOption?.label,
+ import_react12.default.createElement(components.Chevron, { orientation: "down", size: 18, className: classNames2[UI.Chevron], style: styles?.[UI.Chevron] })
+ )
);
}
- var block_card_default = BlockCard;
- // packages/block-editor/build-module/components/block-preview/index.mjs
- var import_compose37 = __toESM(require_compose(), 1);
- var import_data54 = __toESM(require_data(), 1);
- var import_element103 = __toESM(require_element(), 1);
- var import_deprecated7 = __toESM(require_deprecated(), 1);
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/DropdownNav.js
+ var import_react13 = __toESM(require_react(), 1);
+ function DropdownNav(props) {
+ return import_react13.default.createElement("div", { ...props });
+ }
- // packages/block-editor/build-module/components/provider/index.mjs
- var import_data36 = __toESM(require_data(), 1);
- var import_element94 = __toESM(require_element(), 1);
- var import_components31 = __toESM(require_components(), 1);
- var import_upload_media = __toESM(require_upload_media(), 1);
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Footer.js
+ var import_react14 = __toESM(require_react(), 1);
+ function Footer(props) {
+ return import_react14.default.createElement("div", { ...props });
+ }
- // packages/block-editor/build-module/components/provider/with-registry-provider.mjs
- var import_element89 = __toESM(require_element(), 1);
- var import_data33 = __toESM(require_data(), 1);
- var import_compose20 = __toESM(require_compose(), 1);
- var import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
- function getSubRegistry(subRegistries, registry, useSubRegistry) {
- if (!useSubRegistry) {
- return registry;
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Month.js
+ var import_react15 = __toESM(require_react(), 1);
+ function Month(props) {
+ const { calendarMonth, displayIndex, ...divProps } = props;
+ return import_react15.default.createElement("div", { ...divProps }, props.children);
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/MonthCaption.js
+ var import_react16 = __toESM(require_react(), 1);
+ function MonthCaption(props) {
+ const { calendarMonth, displayIndex, ...divProps } = props;
+ return import_react16.default.createElement("div", { ...divProps });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/MonthGrid.js
+ var import_react17 = __toESM(require_react(), 1);
+ function MonthGrid(props) {
+ return import_react17.default.createElement("table", { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Months.js
+ var import_react18 = __toESM(require_react(), 1);
+ function Months(props) {
+ return import_react18.default.createElement("div", { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
+ var import_react19 = __toESM(require_react(), 1);
+ function MonthsDropdown(props) {
+ const { components } = useDayPicker();
+ return import_react19.default.createElement(components.Dropdown, { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Nav.js
+ var import_react20 = __toESM(require_react(), 1);
+ function Nav(props) {
+ const { onPreviousClick, onNextClick, previousMonth, nextMonth, ...navProps } = props;
+ const { components, classNames: classNames2, styles, labels: { labelPrevious: labelPrevious2, labelNext: labelNext2 } } = useDayPicker();
+ const handleNextClick = (0, import_react20.useCallback)((e2) => {
+ if (nextMonth) {
+ onNextClick?.(e2);
+ }
+ }, [nextMonth, onNextClick]);
+ const handlePreviousClick = (0, import_react20.useCallback)((e2) => {
+ if (previousMonth) {
+ onPreviousClick?.(e2);
+ }
+ }, [previousMonth, onPreviousClick]);
+ return import_react20.default.createElement(
+ "nav",
+ { ...navProps },
+ import_react20.default.createElement(
+ components.PreviousMonthButton,
+ { type: "button", className: classNames2[UI.PreviousMonthButton], style: styles?.[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick },
+ import_react20.default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames2[UI.Chevron], style: styles?.[UI.Chevron], orientation: "left" })
+ ),
+ import_react20.default.createElement(
+ components.NextMonthButton,
+ { type: "button", className: classNames2[UI.NextMonthButton], style: styles?.[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick },
+ import_react20.default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, orientation: "right", className: classNames2[UI.Chevron], style: styles?.[UI.Chevron] })
+ )
+ );
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js
+ var import_react21 = __toESM(require_react(), 1);
+ function NextMonthButton(props) {
+ return import_react21.default.createElement("button", { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Option.js
+ var import_react22 = __toESM(require_react(), 1);
+ function Option(props) {
+ return import_react22.default.createElement("option", { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js
+ var import_react23 = __toESM(require_react(), 1);
+ function PreviousMonthButton(props) {
+ return import_react23.default.createElement("button", { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Root.js
+ var import_react24 = __toESM(require_react(), 1);
+ function Root(props) {
+ const { rootRef, ...rest } = props;
+ return import_react24.default.createElement("div", { ...rest, ref: rootRef });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Select.js
+ var import_react25 = __toESM(require_react(), 1);
+ function Select(props) {
+ return import_react25.default.createElement("select", { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Week.js
+ var import_react26 = __toESM(require_react(), 1);
+ function Week(props) {
+ const { week, ...trProps } = props;
+ return import_react26.default.createElement("tr", { ...trProps });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Weekday.js
+ var import_react27 = __toESM(require_react(), 1);
+ function Weekday(props) {
+ return import_react27.default.createElement("th", { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Weekdays.js
+ var import_react28 = __toESM(require_react(), 1);
+ function Weekdays(props) {
+ return import_react28.default.createElement(
+ "thead",
+ { "aria-hidden": true },
+ import_react28.default.createElement("tr", { ...props })
+ );
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/WeekNumber.js
+ var import_react29 = __toESM(require_react(), 1);
+ function WeekNumber(props) {
+ const { week, ...thProps } = props;
+ return import_react29.default.createElement("th", { ...thProps });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js
+ var import_react30 = __toESM(require_react(), 1);
+ function WeekNumberHeader(props) {
+ return import_react30.default.createElement("th", { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/Weeks.js
+ var import_react31 = __toESM(require_react(), 1);
+ function Weeks(props) {
+ return import_react31.default.createElement("tbody", { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js
+ var import_react32 = __toESM(require_react(), 1);
+ function YearsDropdown(props) {
+ const { components } = useDayPicker();
+ return import_react32.default.createElement(components.Dropdown, { ...props });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/DayPicker.js
+ var import_react37 = __toESM(require_react(), 1);
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
+ function rangeIncludesDate(range2, date, excludeEnds = false, dateLib = defaultDateLib) {
+ let { from, to: to2 } = range2;
+ const { differenceInCalendarDays: differenceInCalendarDays2, isSameDay: isSameDay2 } = dateLib;
+ if (from && to2) {
+ const isRangeInverted = differenceInCalendarDays2(to2, from) < 0;
+ if (isRangeInverted) {
+ [from, to2] = [to2, from];
+ }
+ const isInRange = differenceInCalendarDays2(date, from) >= (excludeEnds ? 1 : 0) && differenceInCalendarDays2(to2, date) >= (excludeEnds ? 1 : 0);
+ return isInRange;
}
- let subRegistry = subRegistries.get(registry);
- if (!subRegistry) {
- subRegistry = (0, import_data33.createRegistry)({}, registry);
- subRegistry.registerStore(STORE_NAME, storeConfig);
- subRegistries.set(registry, subRegistry);
+ if (!excludeEnds && to2) {
+ return isSameDay2(to2, date);
}
- return subRegistry;
+ if (!excludeEnds && from) {
+ return isSameDay2(from, date);
+ }
+ return false;
}
- var withRegistryProvider = (0, import_compose20.createHigherOrderComponent)(
- (WrappedComponent) => function WithRegistryProvider({ useSubRegistry = true, ...props }) {
- const registry = (0, import_data33.useRegistry)();
- const [subRegistries] = (0, import_element89.useState)(() => /* @__PURE__ */ new WeakMap());
- const subRegistry = getSubRegistry(
- subRegistries,
- registry,
- useSubRegistry
- );
- if (subRegistry === registry) {
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(WrappedComponent, { registry, ...props });
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/utils/typeguards.js
+ function isDateInterval(matcher) {
+ return Boolean(matcher && typeof matcher === "object" && "before" in matcher && "after" in matcher);
+ }
+ function isDateRange(value) {
+ return Boolean(value && typeof value === "object" && "from" in value);
+ }
+ function isDateAfterType(value) {
+ return Boolean(value && typeof value === "object" && "after" in value);
+ }
+ function isDateBeforeType(value) {
+ return Boolean(value && typeof value === "object" && "before" in value);
+ }
+ function isDayOfWeekType(value) {
+ return Boolean(value && typeof value === "object" && "dayOfWeek" in value);
+ }
+ function isDatesArray(value, dateLib) {
+ return Array.isArray(value) && value.every(dateLib.isDate);
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js
+ function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
+ const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;
+ const { isSameDay: isSameDay2, differenceInCalendarDays: differenceInCalendarDays2, isAfter: isAfter2 } = dateLib;
+ return matchersArr.some((matcher) => {
+ if (typeof matcher === "boolean") {
+ return matcher;
}
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_data33.RegistryProvider, { value: subRegistry, children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(WrappedComponent, { registry: subRegistry, ...props }) });
- },
- "withRegistryProvider"
- );
- var with_registry_provider_default = withRegistryProvider;
+ if (dateLib.isDate(matcher)) {
+ return isSameDay2(date, matcher);
+ }
+ if (isDatesArray(matcher, dateLib)) {
+ return matcher.some((matcherDate) => isSameDay2(date, matcherDate));
+ }
+ if (isDateRange(matcher)) {
+ return rangeIncludesDate(matcher, date, false, dateLib);
+ }
+ if (isDayOfWeekType(matcher)) {
+ if (!Array.isArray(matcher.dayOfWeek)) {
+ return matcher.dayOfWeek === date.getDay();
+ }
+ return matcher.dayOfWeek.includes(date.getDay());
+ }
+ if (isDateInterval(matcher)) {
+ const diffBefore = differenceInCalendarDays2(matcher.before, date);
+ const diffAfter = differenceInCalendarDays2(matcher.after, date);
+ const isDayBefore = diffBefore > 0;
+ const isDayAfter = diffAfter < 0;
+ const isClosedInterval = isAfter2(matcher.before, matcher.after);
+ if (isClosedInterval) {
+ return isDayAfter && isDayBefore;
+ } else {
+ return isDayBefore || isDayAfter;
+ }
+ }
+ if (isDateAfterType(matcher)) {
+ return differenceInCalendarDays2(date, matcher.after) > 0;
+ }
+ if (isDateBeforeType(matcher)) {
+ return differenceInCalendarDays2(matcher.before, date) > 0;
+ }
+ if (typeof matcher === "function") {
+ return matcher(date);
+ }
+ return false;
+ });
+ }
- // packages/block-editor/build-module/components/provider/use-block-sync.mjs
- var import_element91 = __toESM(require_element(), 1);
- var import_data34 = __toESM(require_data(), 1);
- var import_blocks25 = __toESM(require_blocks(), 1);
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js
+ function createGetModifiers(days, props, navStart, navEnd, dateLib) {
+ const { disabled: disabled2, hidden, modifiers, showOutsideDays, broadcastCalendar, today = dateLib.today() } = props;
+ const { isSameDay: isSameDay2, isSameMonth: isSameMonth2, startOfMonth: startOfMonth2, isBefore: isBefore2, endOfMonth: endOfMonth2, isAfter: isAfter2 } = dateLib;
+ const computedNavStart = navStart && startOfMonth2(navStart);
+ const computedNavEnd = navEnd && endOfMonth2(navEnd);
+ const internalModifiersMap = {
+ [DayFlag.focused]: [],
+ [DayFlag.outside]: [],
+ [DayFlag.disabled]: [],
+ [DayFlag.hidden]: [],
+ [DayFlag.today]: []
+ };
+ const customModifiersMap = {};
+ for (const day of days) {
+ const { date, displayMonth } = day;
+ const isOutside = Boolean(displayMonth && !isSameMonth2(date, displayMonth));
+ const isBeforeNavStart = Boolean(computedNavStart && isBefore2(date, computedNavStart));
+ const isAfterNavEnd = Boolean(computedNavEnd && isAfter2(date, computedNavEnd));
+ const isDisabled = Boolean(disabled2 && dateMatchModifiers(date, disabled2, dateLib));
+ const isHidden = Boolean(hidden && dateMatchModifiers(date, hidden, dateLib)) || isBeforeNavStart || isAfterNavEnd || // Broadcast calendar will show outside days as default
+ !broadcastCalendar && !showOutsideDays && isOutside || broadcastCalendar && showOutsideDays === false && isOutside;
+ const isToday = isSameDay2(date, today);
+ if (isOutside)
+ internalModifiersMap.outside.push(day);
+ if (isDisabled)
+ internalModifiersMap.disabled.push(day);
+ if (isHidden)
+ internalModifiersMap.hidden.push(day);
+ if (isToday)
+ internalModifiersMap.today.push(day);
+ if (modifiers) {
+ Object.keys(modifiers).forEach((name) => {
+ const modifierValue = modifiers?.[name];
+ const isMatch = modifierValue ? dateMatchModifiers(date, modifierValue, dateLib) : false;
+ if (!isMatch)
+ return;
+ if (customModifiersMap[name]) {
+ customModifiersMap[name].push(day);
+ } else {
+ customModifiersMap[name] = [day];
+ }
+ });
+ }
+ }
+ return (day) => {
+ const dayFlags = {
+ [DayFlag.focused]: false,
+ [DayFlag.disabled]: false,
+ [DayFlag.hidden]: false,
+ [DayFlag.outside]: false,
+ [DayFlag.today]: false
+ };
+ const customModifiers = {};
+ for (const name in internalModifiersMap) {
+ const days2 = internalModifiersMap[name];
+ dayFlags[name] = days2.some((d2) => d2 === day);
+ }
+ for (const name in customModifiersMap) {
+ customModifiers[name] = customModifiersMap[name].some((d2) => d2 === day);
+ }
+ return {
+ ...dayFlags,
+ // custom modifiers should override all the previous ones
+ ...customModifiers
+ };
+ };
+ }
- // packages/block-editor/build-module/components/provider/selection-context.mjs
- var import_element90 = __toESM(require_element(), 1);
- var noop7 = () => {
- };
- var SelectionContext = (0, import_element90.createContext)({
- getSelection: () => void 0,
- onChangeSelection: noop7
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js
+ function getClassNamesForModifiers(modifiers, classNames2, modifiersClassNames = {}) {
+ const modifierClassNames = Object.entries(modifiers).filter(([, active]) => active === true).reduce((previousValue, [key]) => {
+ if (modifiersClassNames[key]) {
+ previousValue.push(modifiersClassNames[key]);
+ } else if (classNames2[DayFlag[key]]) {
+ previousValue.push(classNames2[DayFlag[key]]);
+ } else if (classNames2[SelectionState[key]]) {
+ previousValue.push(classNames2[SelectionState[key]]);
+ }
+ return previousValue;
+ }, [classNames2[UI.Day]]);
+ return modifierClassNames;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getComponents.js
+ function getComponents(customComponents) {
+ return {
+ ...custom_components_exports,
+ ...customComponents
+ };
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js
+ function getDataAttributes(props) {
+ const dataAttributes = {
+ "data-mode": props.mode ?? void 0,
+ "data-required": "required" in props ? props.required : void 0,
+ "data-multiple-months": props.numberOfMonths && props.numberOfMonths > 1 || void 0,
+ "data-week-numbers": props.showWeekNumber || void 0,
+ "data-broadcast-calendar": props.broadcastCalendar || void 0,
+ "data-nav-layout": props.navLayout || void 0
+ };
+ Object.entries(props).forEach(([key, val]) => {
+ if (key.startsWith("data-")) {
+ dataAttributes[key] = val;
+ }
+ });
+ return dataAttributes;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js
+ function getDefaultClassNames() {
+ const classNames2 = {};
+ for (const key in UI) {
+ classNames2[UI[key]] = `rdp-${UI[key]}`;
+ }
+ for (const key in DayFlag) {
+ classNames2[DayFlag[key]] = `rdp-${DayFlag[key]}`;
+ }
+ for (const key in SelectionState) {
+ classNames2[SelectionState[key]] = `rdp-${SelectionState[key]}`;
+ }
+ for (const key in Animation2) {
+ classNames2[Animation2[key]] = `rdp-${Animation2[key]}`;
+ }
+ return classNames2;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/formatters/index.js
+ var formatters_exports = {};
+ __export(formatters_exports, {
+ formatCaption: () => formatCaption,
+ formatDay: () => formatDay,
+ formatMonthDropdown: () => formatMonthDropdown,
+ formatWeekNumber: () => formatWeekNumber,
+ formatWeekNumberHeader: () => formatWeekNumberHeader,
+ formatWeekdayName: () => formatWeekdayName,
+ formatYearDropdown: () => formatYearDropdown
});
- // packages/block-editor/build-module/components/provider/use-block-sync.mjs
- var noop8 = () => {
- };
- function cloneBlockWithMapping(block, mapping) {
- const clonedBlock = (0, import_blocks25.cloneBlock)(block);
- mapping.externalToInternal.set(block.clientId, clonedBlock.clientId);
- mapping.internalToExternal.set(clonedBlock.clientId, block.clientId);
- if (block.innerBlocks?.length) {
- clonedBlock.innerBlocks = block.innerBlocks.map((innerBlock) => {
- const clonedInner = cloneBlockWithMapping(innerBlock, mapping);
- return clonedInner;
- });
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js
+ function formatCaption(month, options, dateLib) {
+ const lib = dateLib ?? new DateLib(options);
+ return lib.formatMonthYear(month);
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/formatters/formatDay.js
+ function formatDay(date, options, dateLib) {
+ return (dateLib ?? new DateLib(options)).format(date, "d");
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js
+ function formatMonthDropdown(month, dateLib = defaultDateLib) {
+ return dateLib.format(month, "LLLL");
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js
+ function formatWeekdayName(weekday, options, dateLib) {
+ return (dateLib ?? new DateLib(options)).format(weekday, "cccccc");
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js
+ function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
+ if (weekNumber < 10) {
+ return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);
}
- return clonedBlock;
+ return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);
}
- function restoreExternalIds(blocks2, mapping) {
- return blocks2.map((block) => {
- const externalId = mapping.internalToExternal.get(block.clientId);
- return {
- ...block,
- // Use external ID if available, otherwise keep internal ID (for new blocks)
- clientId: externalId ?? block.clientId,
- innerBlocks: restoreExternalIds(block.innerBlocks, mapping)
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js
+ function formatWeekNumberHeader() {
+ return ``;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js
+ function formatYearDropdown(year, dateLib = defaultDateLib) {
+ return dateLib.format(year, "yyyy");
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js
+ function getFormatters(customFormatters) {
+ return {
+ ...formatters_exports,
+ ...customFormatters
+ };
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/index.js
+ var labels_exports = {};
+ __export(labels_exports, {
+ labelDayButton: () => labelDayButton,
+ labelGrid: () => labelGrid,
+ labelGridcell: () => labelGridcell,
+ labelMonthDropdown: () => labelMonthDropdown,
+ labelNav: () => labelNav,
+ labelNext: () => labelNext,
+ labelPrevious: () => labelPrevious,
+ labelWeekNumber: () => labelWeekNumber,
+ labelWeekNumberHeader: () => labelWeekNumberHeader,
+ labelWeekday: () => labelWeekday,
+ labelYearDropdown: () => labelYearDropdown
+ });
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js
+ function labelDayButton(date, modifiers, options, dateLib) {
+ let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
+ if (modifiers.today)
+ label = `Today, ${label}`;
+ if (modifiers.selected)
+ label = `${label}, selected`;
+ return label;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelGrid.js
+ function labelGrid(date, options, dateLib) {
+ const lib = dateLib ?? new DateLib(options);
+ return lib.formatMonthYear(date);
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js
+ function labelGridcell(date, modifiers, options, dateLib) {
+ let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
+ if (modifiers?.today) {
+ label = `Today, ${label}`;
+ }
+ return label;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js
+ function labelMonthDropdown(_options) {
+ return "Choose the Month";
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelNav.js
+ function labelNav() {
+ return "";
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelNext.js
+ var defaultLabel = "Go to the Next Month";
+ function labelNext(_month, _options) {
+ return defaultLabel;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js
+ function labelPrevious(_month) {
+ return "Go to the Previous Month";
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js
+ function labelWeekday(date, options, dateLib) {
+ return (dateLib ?? new DateLib(options)).format(date, "cccc");
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js
+ function labelWeekNumber(weekNumber, _options) {
+ return `Week ${weekNumber}`;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js
+ function labelWeekNumberHeader(_options) {
+ return "Week Number";
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js
+ function labelYearDropdown(_options) {
+ return "Choose the Year";
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getLabels.js
+ var resolveLabel = (defaultLabel2, customLabel, localeLabel) => {
+ if (customLabel)
+ return customLabel;
+ if (localeLabel) {
+ return typeof localeLabel === "function" ? localeLabel : (..._args) => localeLabel;
+ }
+ return defaultLabel2;
+ };
+ function getLabels(customLabels, options) {
+ const localeLabels = options.locale?.labels ?? {};
+ return {
+ ...labels_exports,
+ ...customLabels ?? {},
+ labelDayButton: resolveLabel(labelDayButton, customLabels?.labelDayButton, localeLabels.labelDayButton),
+ labelMonthDropdown: resolveLabel(labelMonthDropdown, customLabels?.labelMonthDropdown, localeLabels.labelMonthDropdown),
+ labelNext: resolveLabel(labelNext, customLabels?.labelNext, localeLabels.labelNext),
+ labelPrevious: resolveLabel(labelPrevious, customLabels?.labelPrevious, localeLabels.labelPrevious),
+ labelWeekNumber: resolveLabel(labelWeekNumber, customLabels?.labelWeekNumber, localeLabels.labelWeekNumber),
+ labelYearDropdown: resolveLabel(labelYearDropdown, customLabels?.labelYearDropdown, localeLabels.labelYearDropdown),
+ labelGrid: resolveLabel(labelGrid, customLabels?.labelGrid, localeLabels.labelGrid),
+ labelGridcell: resolveLabel(labelGridcell, customLabels?.labelGridcell, localeLabels.labelGridcell),
+ labelNav: resolveLabel(labelNav, customLabels?.labelNav, localeLabels.labelNav),
+ labelWeekNumberHeader: resolveLabel(labelWeekNumberHeader, customLabels?.labelWeekNumberHeader, localeLabels.labelWeekNumberHeader),
+ labelWeekday: resolveLabel(labelWeekday, customLabels?.labelWeekday, localeLabels.labelWeekday)
+ };
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js
+ function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
+ const { startOfMonth: startOfMonth2, startOfYear: startOfYear2, endOfYear: endOfYear2, eachMonthOfInterval: eachMonthOfInterval2, getMonth: getMonth2 } = dateLib;
+ const months = eachMonthOfInterval2({
+ start: startOfYear2(displayMonth),
+ end: endOfYear2(displayMonth)
+ });
+ const options = months.map((month) => {
+ const label = formatters2.formatMonthDropdown(month, dateLib);
+ const value = getMonth2(month);
+ const disabled2 = navStart && month < startOfMonth2(navStart) || navEnd && month > startOfMonth2(navEnd) || false;
+ return { value, label, disabled: disabled2 };
+ });
+ return options;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js
+ function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
+ let style = { ...styles?.[UI.Day] };
+ Object.entries(dayModifiers).filter(([, active]) => active === true).forEach(([modifier]) => {
+ style = {
+ ...style,
+ ...modifiersStyles?.[modifier]
};
});
+ return style;
}
- function restoreSelectionIds(selectionState, mapping) {
- const { selectionStart, selectionEnd, initialPosition: initialPosition2 } = selectionState;
- const restoreClientId = (sel) => {
- if (!sel?.clientId) {
- return sel;
- }
- const externalId = mapping.internalToExternal.get(sel.clientId);
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js
+ function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
+ const referenceToday = today ?? dateLib.today();
+ const start2 = broadcastCalendar ? dateLib.startOfBroadcastWeek(referenceToday, dateLib) : ISOWeek ? dateLib.startOfISOWeek(referenceToday) : dateLib.startOfWeek(referenceToday);
+ const days = [];
+ for (let i2 = 0; i2 < 7; i2++) {
+ const day = dateLib.addDays(start2, i2);
+ days.push(day);
+ }
+ return days;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js
+ function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse = false) {
+ if (!navStart)
+ return void 0;
+ if (!navEnd)
+ return void 0;
+ const { startOfYear: startOfYear2, endOfYear: endOfYear2, eachYearOfInterval: eachYearOfInterval2, getYear: getYear2 } = dateLib;
+ const firstNavYear = startOfYear2(navStart);
+ const lastNavYear = endOfYear2(navEnd);
+ const years = eachYearOfInterval2({ start: firstNavYear, end: lastNavYear });
+ if (reverse)
+ years.reverse();
+ return years.map((year) => {
+ const label = formatters2.formatYearDropdown(year, dateLib);
return {
- ...sel,
- clientId: externalId ?? sel.clientId
+ value: getYear2(year),
+ label,
+ disabled: false
};
+ });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/noonDateLib.js
+ function createNoonOverrides(timeZone, options = {}) {
+ const { weekStartsOn, locale } = options;
+ const fallbackWeekStartsOn = weekStartsOn ?? locale?.options?.weekStartsOn ?? 0;
+ const toNoonTZDate = (date) => {
+ const normalizedDate = typeof date === "number" || typeof date === "string" ? new Date(date) : date;
+ return new TZDate(normalizedDate.getFullYear(), normalizedDate.getMonth(), normalizedDate.getDate(), 12, 0, 0, timeZone);
+ };
+ const toCalendarDate = (date) => {
+ const zoned = toNoonTZDate(date);
+ return new Date(zoned.getFullYear(), zoned.getMonth(), zoned.getDate(), 0, 0, 0, 0);
};
return {
- selectionStart: restoreClientId(selectionStart),
- selectionEnd: restoreClientId(selectionEnd),
- initialPosition: initialPosition2
+ today: () => {
+ return toNoonTZDate(TZDate.tz(timeZone));
+ },
+ newDate: (year, monthIndex, date) => {
+ return new TZDate(year, monthIndex, date, 12, 0, 0, timeZone);
+ },
+ startOfDay: (date) => {
+ return toNoonTZDate(date);
+ },
+ startOfWeek: (date, options2) => {
+ const base = toNoonTZDate(date);
+ const weekStartsOnValue = options2?.weekStartsOn ?? fallbackWeekStartsOn;
+ const diff = (base.getDay() - weekStartsOnValue + 7) % 7;
+ base.setDate(base.getDate() - diff);
+ return base;
+ },
+ startOfISOWeek: (date) => {
+ const base = toNoonTZDate(date);
+ const diff = (base.getDay() - 1 + 7) % 7;
+ base.setDate(base.getDate() - diff);
+ return base;
+ },
+ startOfMonth: (date) => {
+ const base = toNoonTZDate(date);
+ base.setDate(1);
+ return base;
+ },
+ startOfYear: (date) => {
+ const base = toNoonTZDate(date);
+ base.setMonth(0, 1);
+ return base;
+ },
+ endOfWeek: (date, options2) => {
+ const base = toNoonTZDate(date);
+ const weekStartsOnValue = options2?.weekStartsOn ?? fallbackWeekStartsOn;
+ const endDow = (weekStartsOnValue + 6) % 7;
+ const diff = (endDow - base.getDay() + 7) % 7;
+ base.setDate(base.getDate() + diff);
+ return base;
+ },
+ endOfISOWeek: (date) => {
+ const base = toNoonTZDate(date);
+ const diff = (7 - base.getDay()) % 7;
+ base.setDate(base.getDate() + diff);
+ return base;
+ },
+ endOfMonth: (date) => {
+ const base = toNoonTZDate(date);
+ base.setMonth(base.getMonth() + 1, 0);
+ return base;
+ },
+ endOfYear: (date) => {
+ const base = toNoonTZDate(date);
+ base.setMonth(11, 31);
+ return base;
+ },
+ eachMonthOfInterval: (interval) => {
+ const start2 = toNoonTZDate(interval.start);
+ const end = toNoonTZDate(interval.end);
+ const result = [];
+ const cursor = new TZDate(start2.getFullYear(), start2.getMonth(), 1, 12, 0, 0, timeZone);
+ const endKey = end.getFullYear() * 12 + end.getMonth();
+ while (cursor.getFullYear() * 12 + cursor.getMonth() <= endKey) {
+ result.push(new TZDate(cursor, timeZone));
+ cursor.setMonth(cursor.getMonth() + 1, 1);
+ }
+ return result;
+ },
+ // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
+ // mutate the same TZDate, and return it.
+ addDays: (date, amount) => {
+ const base = toNoonTZDate(date);
+ base.setDate(base.getDate() + amount);
+ return base;
+ },
+ addWeeks: (date, amount) => {
+ const base = toNoonTZDate(date);
+ base.setDate(base.getDate() + amount * 7);
+ return base;
+ },
+ addMonths: (date, amount) => {
+ const base = toNoonTZDate(date);
+ base.setMonth(base.getMonth() + amount);
+ return base;
+ },
+ addYears: (date, amount) => {
+ const base = toNoonTZDate(date);
+ base.setFullYear(base.getFullYear() + amount);
+ return base;
+ },
+ eachYearOfInterval: (interval) => {
+ const start2 = toNoonTZDate(interval.start);
+ const end = toNoonTZDate(interval.end);
+ const years = [];
+ const cursor = new TZDate(start2.getFullYear(), 0, 1, 12, 0, 0, timeZone);
+ while (cursor.getFullYear() <= end.getFullYear()) {
+ years.push(new TZDate(cursor, timeZone));
+ cursor.setFullYear(cursor.getFullYear() + 1, 0, 1);
+ }
+ return years;
+ },
+ getWeek: (date, options2) => {
+ const base = toCalendarDate(date);
+ return getWeek(base, {
+ weekStartsOn: options2?.weekStartsOn ?? fallbackWeekStartsOn,
+ firstWeekContainsDate: options2?.firstWeekContainsDate ?? locale?.options?.firstWeekContainsDate ?? 1
+ });
+ },
+ getISOWeek: (date) => {
+ const base = toCalendarDate(date);
+ return getISOWeek(base);
+ },
+ differenceInCalendarDays: (dateLeft, dateRight) => {
+ const left = toCalendarDate(dateLeft);
+ const right = toCalendarDate(dateRight);
+ return differenceInCalendarDays(left, right);
+ },
+ differenceInCalendarMonths: (dateLeft, dateRight) => {
+ const left = toCalendarDate(dateLeft);
+ const right = toCalendarDate(dateRight);
+ return differenceInCalendarMonths(left, right);
+ }
};
}
- function useBlockSync({
- clientId = null,
- value: controlledBlocks,
- onChange = noop8,
- onInput = noop8
- }) {
- const registry = (0, import_data34.useRegistry)();
- const { getSelection, onChangeSelection } = (0, import_element91.useContext)(SelectionContext);
- const {
- resetBlocks: resetBlocks2,
- resetSelection: resetSelection2,
- replaceInnerBlocks: replaceInnerBlocks2,
- setHasControlledInnerBlocks: setHasControlledInnerBlocks2,
- __unstableMarkNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent2
- } = registry.dispatch(store);
- const { getBlockName: getBlockName2, getBlocks: getBlocks2, getSelectionStart: getSelectionStart2, getSelectionEnd: getSelectionEnd2 } = registry.select(store);
- const pendingChangesRef = (0, import_element91.useRef)({ incoming: null, outgoing: [] });
- const subscribedRef = (0, import_element91.useRef)(false);
- const idMappingRef = (0, import_element91.useRef)({
- externalToInternal: /* @__PURE__ */ new Map(),
- internalToExternal: /* @__PURE__ */ new Map()
- });
- const appliedSelectionRef = (0, import_element91.useRef)(null);
- const isRestoringSelectionRef = (0, import_element91.useRef)(false);
- const restoreSelection = () => {
- const selection2 = getSelection();
- if (!selection2?.selectionStart?.clientId || selection2 === appliedSelectionRef.current) {
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/useAnimation.js
+ var import_react33 = __toESM(require_react(), 1);
+ var asHtmlElement = (element) => {
+ if (element instanceof HTMLElement)
+ return element;
+ return null;
+ };
+ var queryMonthEls = (element) => [
+ ...element.querySelectorAll("[data-animated-month]") ?? []
+ ];
+ var queryMonthEl = (element) => asHtmlElement(element.querySelector("[data-animated-month]"));
+ var queryCaptionEl = (element) => asHtmlElement(element.querySelector("[data-animated-caption]"));
+ var queryWeeksEl = (element) => asHtmlElement(element.querySelector("[data-animated-weeks]"));
+ var queryNavEl = (element) => asHtmlElement(element.querySelector("[data-animated-nav]"));
+ var queryWeekdaysEl = (element) => asHtmlElement(element.querySelector("[data-animated-weekdays]"));
+ function useAnimation(rootElRef, enabled, { classNames: classNames2, months, focused, dateLib }) {
+ const previousRootElSnapshotRef = (0, import_react33.useRef)(null);
+ const previousMonthsRef = (0, import_react33.useRef)(months);
+ const animatingRef = (0, import_react33.useRef)(false);
+ (0, import_react33.useLayoutEffect)(() => {
+ const previousMonths = previousMonthsRef.current;
+ previousMonthsRef.current = months;
+ if (!enabled || !rootElRef.current || // safety check because the ref can be set to anything by consumers
+ !(rootElRef.current instanceof HTMLElement) || // validation required for the animation to work as expected
+ months.length === 0 || previousMonths.length === 0 || months.length !== previousMonths.length) {
return;
}
- const startClientId = selection2.selectionStart.clientId;
- const isOurs = clientId ? idMappingRef.current.externalToInternal.has(startClientId) : !!getBlockName2(startClientId);
- if (isOurs) {
- appliedSelectionRef.current = selection2;
- const convert = (sel) => {
- if (!sel?.clientId || !clientId) {
- return sel;
+ const isSameMonth2 = dateLib.isSameMonth(months[0].date, previousMonths[0].date);
+ const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);
+ const captionAnimationClass = isAfterPreviousMonth ? classNames2[Animation2.caption_after_enter] : classNames2[Animation2.caption_before_enter];
+ const weeksAnimationClass = isAfterPreviousMonth ? classNames2[Animation2.weeks_after_enter] : classNames2[Animation2.weeks_before_enter];
+ const previousRootElSnapshot = previousRootElSnapshotRef.current;
+ const rootElSnapshot = rootElRef.current.cloneNode(true);
+ if (rootElSnapshot instanceof HTMLElement) {
+ const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);
+ currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {
+ if (!(currentMonthElSnapshot instanceof HTMLElement))
+ return;
+ const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);
+ if (previousMonthElSnapshot && currentMonthElSnapshot.contains(previousMonthElSnapshot)) {
+ currentMonthElSnapshot.removeChild(previousMonthElSnapshot);
}
- return {
- ...sel,
- clientId: idMappingRef.current.externalToInternal.get(
- sel.clientId
- ) ?? sel.clientId
- };
- };
- isRestoringSelectionRef.current = true;
- resetSelection2(
- convert(selection2.selectionStart),
- convert(selection2.selectionEnd),
- selection2.initialPosition
- );
- isRestoringSelectionRef.current = false;
+ const captionEl = queryCaptionEl(currentMonthElSnapshot);
+ if (captionEl) {
+ captionEl.classList.remove(captionAnimationClass);
+ }
+ const weeksEl = queryWeeksEl(currentMonthElSnapshot);
+ if (weeksEl) {
+ weeksEl.classList.remove(weeksAnimationClass);
+ }
+ });
+ previousRootElSnapshotRef.current = rootElSnapshot;
+ } else {
+ previousRootElSnapshotRef.current = null;
}
- };
- const setControlledBlocks = () => {
- if (!controlledBlocks) {
+ if (animatingRef.current || isSameMonth2 || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
+ focused) {
return;
}
- if (clientId) {
- registry.batch(() => {
- idMappingRef.current.externalToInternal.clear();
- idMappingRef.current.internalToExternal.clear();
- const storeBlocks = controlledBlocks.map(
- (block) => cloneBlockWithMapping(block, idMappingRef.current)
- );
- __unstableMarkNextChangeAsNotPersistent2({
- history: "ignore"
- });
- setHasControlledInnerBlocks2(clientId, true);
- if (subscribedRef.current) {
- pendingChangesRef.current.incoming = storeBlocks;
+ const previousMonthEls = previousRootElSnapshot instanceof HTMLElement ? queryMonthEls(previousRootElSnapshot) : [];
+ const currentMonthEls = queryMonthEls(rootElRef.current);
+ if (currentMonthEls?.every((el) => el instanceof HTMLElement) && previousMonthEls?.every((el) => el instanceof HTMLElement)) {
+ animatingRef.current = true;
+ const cleanUpFunctions = [];
+ rootElRef.current.style.isolation = "isolate";
+ const navEl = queryNavEl(rootElRef.current);
+ if (navEl) {
+ navEl.style.zIndex = "1";
+ }
+ currentMonthEls.forEach((currentMonthEl, index2) => {
+ const previousMonthEl = previousMonthEls[index2];
+ if (!previousMonthEl) {
+ return;
}
- __unstableMarkNextChangeAsNotPersistent2({
- history: "ignore"
- });
- replaceInnerBlocks2(clientId, storeBlocks);
- appliedSelectionRef.current = null;
+ currentMonthEl.style.position = "relative";
+ currentMonthEl.style.overflow = "hidden";
+ const captionEl = queryCaptionEl(currentMonthEl);
+ if (captionEl) {
+ captionEl.classList.add(captionAnimationClass);
+ }
+ const weeksEl = queryWeeksEl(currentMonthEl);
+ if (weeksEl) {
+ weeksEl.classList.add(weeksAnimationClass);
+ }
+ const cleanUp = () => {
+ animatingRef.current = false;
+ if (rootElRef.current) {
+ rootElRef.current.style.isolation = "";
+ }
+ if (navEl) {
+ navEl.style.zIndex = "";
+ }
+ if (captionEl) {
+ captionEl.classList.remove(captionAnimationClass);
+ }
+ if (weeksEl) {
+ weeksEl.classList.remove(weeksAnimationClass);
+ }
+ currentMonthEl.style.position = "";
+ currentMonthEl.style.overflow = "";
+ if (currentMonthEl.contains(previousMonthEl)) {
+ currentMonthEl.removeChild(previousMonthEl);
+ }
+ };
+ cleanUpFunctions.push(cleanUp);
+ previousMonthEl.style.pointerEvents = "none";
+ previousMonthEl.style.position = "absolute";
+ previousMonthEl.style.overflow = "hidden";
+ previousMonthEl.setAttribute("aria-hidden", "true");
+ const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);
+ if (previousWeekdaysEl) {
+ previousWeekdaysEl.style.opacity = "0";
+ }
+ const previousCaptionEl = queryCaptionEl(previousMonthEl);
+ if (previousCaptionEl) {
+ previousCaptionEl.classList.add(isAfterPreviousMonth ? classNames2[Animation2.caption_before_exit] : classNames2[Animation2.caption_after_exit]);
+ previousCaptionEl.addEventListener("animationend", cleanUp);
+ }
+ const previousWeeksEl = queryWeeksEl(previousMonthEl);
+ if (previousWeeksEl) {
+ previousWeeksEl.classList.add(isAfterPreviousMonth ? classNames2[Animation2.weeks_before_exit] : classNames2[Animation2.weeks_after_exit]);
+ }
+ currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);
});
- } else {
- if (subscribedRef.current) {
- pendingChangesRef.current.incoming = controlledBlocks;
- }
- __unstableMarkNextChangeAsNotPersistent2({
- history: "ignore"
- });
- resetBlocks2(controlledBlocks);
}
- };
- const unsetControlledBlocks = () => {
- if (clientId) {
- __unstableMarkNextChangeAsNotPersistent2({
- history: "ignore"
- });
- setHasControlledInnerBlocks2(clientId, false);
- __unstableMarkNextChangeAsNotPersistent2({
- history: "ignore"
- });
- replaceInnerBlocks2(clientId, []);
- } else {
- __unstableMarkNextChangeAsNotPersistent2({
- history: "ignore"
+ });
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/useCalendar.js
+ var import_react35 = __toESM(require_react(), 1);
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getDates.js
+ function getDates(displayMonths, maxDate, props, dateLib) {
+ const firstMonth = displayMonths[0];
+ const lastMonth = displayMonths[displayMonths.length - 1];
+ const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};
+ const { addDays: addDays2, differenceInCalendarDays: differenceInCalendarDays2, differenceInCalendarMonths: differenceInCalendarMonths2, endOfBroadcastWeek: endOfBroadcastWeek2, endOfISOWeek: endOfISOWeek2, endOfMonth: endOfMonth2, endOfWeek: endOfWeek2, isAfter: isAfter2, startOfBroadcastWeek: startOfBroadcastWeek2, startOfISOWeek: startOfISOWeek2, startOfWeek: startOfWeek2 } = dateLib;
+ const startWeekFirstDate = broadcastCalendar ? startOfBroadcastWeek2(firstMonth, dateLib) : ISOWeek ? startOfISOWeek2(firstMonth) : startOfWeek2(firstMonth);
+ const displayMonthsWeekEnd = broadcastCalendar ? endOfBroadcastWeek2(lastMonth) : ISOWeek ? endOfISOWeek2(endOfMonth2(lastMonth)) : endOfWeek2(endOfMonth2(lastMonth));
+ const constraintWeekEnd = maxDate && (broadcastCalendar ? endOfBroadcastWeek2(maxDate) : ISOWeek ? endOfISOWeek2(maxDate) : endOfWeek2(maxDate));
+ const gridEndDate = constraintWeekEnd && isAfter2(displayMonthsWeekEnd, constraintWeekEnd) ? constraintWeekEnd : displayMonthsWeekEnd;
+ const nOfDays = differenceInCalendarDays2(gridEndDate, startWeekFirstDate);
+ const nOfMonths = differenceInCalendarMonths2(lastMonth, firstMonth) + 1;
+ const dates = [];
+ for (let i2 = 0; i2 <= nOfDays; i2++) {
+ const date = addDays2(startWeekFirstDate, i2);
+ dates.push(date);
+ }
+ const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;
+ const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;
+ if (fixedWeeks && dates.length < extraDates) {
+ const daysToAdd = extraDates - dates.length;
+ for (let i2 = 0; i2 < daysToAdd; i2++) {
+ const date = addDays2(dates[dates.length - 1], 1);
+ dates.push(date);
+ }
+ }
+ return dates;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getDays.js
+ function getDays(calendarMonths) {
+ const initialDays = [];
+ return calendarMonths.reduce((days, month) => {
+ const weekDays = month.weeks.reduce((weekDays2, week) => {
+ return weekDays2.concat(week.days.slice());
+ }, initialDays.slice());
+ return days.concat(weekDays.slice());
+ }, initialDays.slice());
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js
+ function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {
+ const { numberOfMonths = 1 } = props;
+ const months = [];
+ for (let i2 = 0; i2 < numberOfMonths; i2++) {
+ const month = dateLib.addMonths(firstDisplayedMonth, i2);
+ if (calendarEndMonth && month > calendarEndMonth) {
+ break;
+ }
+ months.push(month);
+ }
+ return months;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js
+ function getInitialMonth(props, navStart, navEnd, dateLib) {
+ const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1 } = props;
+ let initialMonth = month || defaultMonth || today;
+ const { differenceInCalendarMonths: differenceInCalendarMonths2, addMonths: addMonths2, startOfMonth: startOfMonth2 } = dateLib;
+ if (navEnd && differenceInCalendarMonths2(navEnd, initialMonth) < numberOfMonths - 1) {
+ const offset4 = -1 * (numberOfMonths - 1);
+ initialMonth = addMonths2(navEnd, offset4);
+ }
+ if (navStart && differenceInCalendarMonths2(initialMonth, navStart) < 0) {
+ initialMonth = navStart;
+ }
+ return startOfMonth2(initialMonth);
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getMonths.js
+ function getMonths(displayMonths, dates, props, dateLib) {
+ const { addDays: addDays2, endOfBroadcastWeek: endOfBroadcastWeek2, endOfISOWeek: endOfISOWeek2, endOfMonth: endOfMonth2, endOfWeek: endOfWeek2, getISOWeek: getISOWeek2, getWeek: getWeek2, startOfBroadcastWeek: startOfBroadcastWeek2, startOfISOWeek: startOfISOWeek2, startOfWeek: startOfWeek2 } = dateLib;
+ const dayPickerMonths = displayMonths.reduce((months, month) => {
+ const firstDateOfFirstWeek = props.broadcastCalendar ? startOfBroadcastWeek2(month, dateLib) : props.ISOWeek ? startOfISOWeek2(month) : startOfWeek2(month);
+ const lastDateOfLastWeek = props.broadcastCalendar ? endOfBroadcastWeek2(month) : props.ISOWeek ? endOfISOWeek2(endOfMonth2(month)) : endOfWeek2(endOfMonth2(month));
+ const monthDates = dates.filter((date) => {
+ return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;
+ });
+ const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;
+ if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {
+ const extraDates = dates.filter((date) => {
+ const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;
+ return date > lastDateOfLastWeek && date <= addDays2(lastDateOfLastWeek, daysToAdd);
});
- resetBlocks2([]);
+ monthDates.push(...extraDates);
+ }
+ const weeks = monthDates.reduce((weeks2, date) => {
+ const weekNumber = props.ISOWeek ? getISOWeek2(date) : getWeek2(date);
+ const week = weeks2.find((week2) => week2.weekNumber === weekNumber);
+ const day = new CalendarDay(date, month, dateLib);
+ if (!week) {
+ weeks2.push(new CalendarWeek(weekNumber, [day]));
+ } else {
+ week.days.push(day);
+ }
+ return weeks2;
+ }, []);
+ const dayPickerMonth = new CalendarMonth(month, weeks);
+ months.push(dayPickerMonth);
+ return months;
+ }, []);
+ if (!props.reverseMonths) {
+ return dayPickerMonths;
+ } else {
+ return dayPickerMonths.reverse();
+ }
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js
+ function getNavMonths(props, dateLib) {
+ let { startMonth, endMonth } = props;
+ const { startOfYear: startOfYear2, startOfDay: startOfDay2, startOfMonth: startOfMonth2, endOfMonth: endOfMonth2, addYears: addYears2, endOfYear: endOfYear2, today } = dateLib;
+ const hasYearDropdown = props.captionLayout === "dropdown" || props.captionLayout === "dropdown-years";
+ if (startMonth) {
+ startMonth = startOfMonth2(startMonth);
+ } else if (!startMonth && hasYearDropdown) {
+ startMonth = startOfYear2(addYears2(props.today ?? today(), -100));
+ }
+ if (endMonth) {
+ endMonth = endOfMonth2(endMonth);
+ } else if (!endMonth && hasYearDropdown) {
+ endMonth = endOfYear2(props.today ?? today());
+ }
+ return [
+ startMonth ? startOfDay2(startMonth) : startMonth,
+ endMonth ? startOfDay2(endMonth) : endMonth
+ ];
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js
+ function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
+ if (options.disableNavigation) {
+ return void 0;
+ }
+ const { pagedNavigation, numberOfMonths = 1 } = options;
+ const { startOfMonth: startOfMonth2, addMonths: addMonths2, differenceInCalendarMonths: differenceInCalendarMonths2 } = dateLib;
+ const offset4 = pagedNavigation ? numberOfMonths : 1;
+ const month = startOfMonth2(firstDisplayedMonth);
+ if (!calendarEndMonth) {
+ return addMonths2(month, offset4);
+ }
+ const monthsDiff = differenceInCalendarMonths2(calendarEndMonth, firstDisplayedMonth);
+ if (monthsDiff < numberOfMonths) {
+ return void 0;
+ }
+ return addMonths2(month, offset4);
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js
+ function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {
+ if (options.disableNavigation) {
+ return void 0;
+ }
+ const { pagedNavigation, numberOfMonths } = options;
+ const { startOfMonth: startOfMonth2, addMonths: addMonths2, differenceInCalendarMonths: differenceInCalendarMonths2 } = dateLib;
+ const offset4 = pagedNavigation ? numberOfMonths ?? 1 : 1;
+ const month = startOfMonth2(firstDisplayedMonth);
+ if (!calendarStartMonth) {
+ return addMonths2(month, -offset4);
+ }
+ const monthsDiff = differenceInCalendarMonths2(month, calendarStartMonth);
+ if (monthsDiff <= 0) {
+ return void 0;
+ }
+ return addMonths2(month, -offset4);
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js
+ function getWeeks(months) {
+ const initialWeeks = [];
+ return months.reduce((weeks, month) => {
+ return weeks.concat(month.weeks.slice());
+ }, initialWeeks.slice());
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js
+ var import_react34 = __toESM(require_react(), 1);
+ function useControlledValue(defaultValue, controlledValue) {
+ const [uncontrolledValue, setValue] = (0, import_react34.useState)(defaultValue);
+ const value = controlledValue === void 0 ? uncontrolledValue : controlledValue;
+ return [value, setValue];
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/useCalendar.js
+ function useCalendar(props, dateLib) {
+ const [navStart, navEnd] = getNavMonths(props, dateLib);
+ const { startOfMonth: startOfMonth2, endOfMonth: endOfMonth2 } = dateLib;
+ const initialMonth = getInitialMonth(props, navStart, navEnd, dateLib);
+ const [firstMonth, setFirstMonth] = useControlledValue(
+ initialMonth,
+ // initialMonth is always computed from props.month if provided
+ props.month ? initialMonth : void 0
+ );
+ (0, import_react35.useEffect)(() => {
+ const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);
+ setFirstMonth(newInitialMonth);
+ }, [props.timeZone]);
+ const { months, weeks, days, previousMonth, nextMonth } = (0, import_react35.useMemo)(() => {
+ const displayMonths = getDisplayMonths(firstMonth, navEnd, { numberOfMonths: props.numberOfMonths }, dateLib);
+ const dates = getDates(displayMonths, props.endMonth ? endOfMonth2(props.endMonth) : void 0, {
+ ISOWeek: props.ISOWeek,
+ fixedWeeks: props.fixedWeeks,
+ broadcastCalendar: props.broadcastCalendar
+ }, dateLib);
+ const months2 = getMonths(displayMonths, dates, {
+ broadcastCalendar: props.broadcastCalendar,
+ fixedWeeks: props.fixedWeeks,
+ ISOWeek: props.ISOWeek,
+ reverseMonths: props.reverseMonths
+ }, dateLib);
+ const weeks2 = getWeeks(months2);
+ const days2 = getDays(months2);
+ const previousMonth2 = getPreviousMonth(firstMonth, navStart, props, dateLib);
+ const nextMonth2 = getNextMonth(firstMonth, navEnd, props, dateLib);
+ return {
+ months: months2,
+ weeks: weeks2,
+ days: days2,
+ previousMonth: previousMonth2,
+ nextMonth: nextMonth2
+ };
+ }, [
+ dateLib,
+ firstMonth.getTime(),
+ navEnd?.getTime(),
+ navStart?.getTime(),
+ props.disableNavigation,
+ props.broadcastCalendar,
+ props.endMonth?.getTime(),
+ props.fixedWeeks,
+ props.ISOWeek,
+ props.numberOfMonths,
+ props.pagedNavigation,
+ props.reverseMonths
+ ]);
+ const { disableNavigation, onMonthChange } = props;
+ const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d2) => d2.isEqualTo(day)));
+ const goToMonth = (date) => {
+ if (disableNavigation) {
+ return;
+ }
+ let newMonth = startOfMonth2(date);
+ if (navStart && newMonth < startOfMonth2(navStart)) {
+ newMonth = startOfMonth2(navStart);
}
+ if (navEnd && newMonth > startOfMonth2(navEnd)) {
+ newMonth = startOfMonth2(navEnd);
+ }
+ setFirstMonth(newMonth);
+ onMonthChange?.(newMonth);
};
- const onInputRef = (0, import_element91.useRef)(onInput);
- const onChangeRef = (0, import_element91.useRef)(onChange);
- (0, import_element91.useEffect)(() => {
- onInputRef.current = onInput;
- onChangeRef.current = onChange;
- }, [onInput, onChange]);
- (0, import_element91.useEffect)(() => {
- const isOutgoing = pendingChangesRef.current.outgoing.includes(controlledBlocks);
- const storeMatch = getBlocks2(clientId) === controlledBlocks;
- if (isOutgoing) {
- if (pendingChangesRef.current.outgoing[pendingChangesRef.current.outgoing.length - 1] === controlledBlocks) {
- pendingChangesRef.current.outgoing = [];
+ const goToDay = (day) => {
+ if (isDayInCalendar(day)) {
+ return;
+ }
+ goToMonth(day.date);
+ };
+ const calendar = {
+ months,
+ weeks,
+ days,
+ navStart,
+ navEnd,
+ previousMonth,
+ nextMonth,
+ goToMonth,
+ goToDay
+ };
+ return calendar;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/useFocus.js
+ var import_react36 = __toESM(require_react(), 1);
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js
+ var FocusTargetPriority;
+ (function(FocusTargetPriority2) {
+ FocusTargetPriority2[FocusTargetPriority2["Today"] = 0] = "Today";
+ FocusTargetPriority2[FocusTargetPriority2["Selected"] = 1] = "Selected";
+ FocusTargetPriority2[FocusTargetPriority2["LastFocused"] = 2] = "LastFocused";
+ FocusTargetPriority2[FocusTargetPriority2["FocusedModifier"] = 3] = "FocusedModifier";
+ })(FocusTargetPriority || (FocusTargetPriority = {}));
+ function isFocusableDay(modifiers) {
+ return !modifiers[DayFlag.disabled] && !modifiers[DayFlag.hidden] && !modifiers[DayFlag.outside];
+ }
+ function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
+ let focusTarget;
+ let foundFocusTargetPriority = -1;
+ for (const day of days) {
+ const modifiers = getModifiers(day);
+ if (isFocusableDay(modifiers)) {
+ if (modifiers[DayFlag.focused] && foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {
+ focusTarget = day;
+ foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;
+ } else if (lastFocused?.isEqualTo(day) && foundFocusTargetPriority < FocusTargetPriority.LastFocused) {
+ focusTarget = day;
+ foundFocusTargetPriority = FocusTargetPriority.LastFocused;
+ } else if (isSelected(day.date) && foundFocusTargetPriority < FocusTargetPriority.Selected) {
+ focusTarget = day;
+ foundFocusTargetPriority = FocusTargetPriority.Selected;
+ } else if (modifiers[DayFlag.today] && foundFocusTargetPriority < FocusTargetPriority.Today) {
+ focusTarget = day;
+ foundFocusTargetPriority = FocusTargetPriority.Today;
+ }
+ }
+ }
+ if (!focusTarget) {
+ focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));
+ }
+ return focusTarget;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js
+ function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {
+ const { ISOWeek, broadcastCalendar } = props;
+ const { addDays: addDays2, addMonths: addMonths2, addWeeks: addWeeks2, addYears: addYears2, endOfBroadcastWeek: endOfBroadcastWeek2, endOfISOWeek: endOfISOWeek2, endOfWeek: endOfWeek2, max: max3, min: min3, startOfBroadcastWeek: startOfBroadcastWeek2, startOfISOWeek: startOfISOWeek2, startOfWeek: startOfWeek2 } = dateLib;
+ const moveFns = {
+ day: addDays2,
+ week: addWeeks2,
+ month: addMonths2,
+ year: addYears2,
+ startOfWeek: (date) => broadcastCalendar ? startOfBroadcastWeek2(date, dateLib) : ISOWeek ? startOfISOWeek2(date) : startOfWeek2(date),
+ endOfWeek: (date) => broadcastCalendar ? endOfBroadcastWeek2(date) : ISOWeek ? endOfISOWeek2(date) : endOfWeek2(date)
+ };
+ let focusableDate = moveFns[moveBy](refDate, moveDir === "after" ? 1 : -1);
+ if (moveDir === "before" && navStart) {
+ focusableDate = max3([navStart, focusableDate]);
+ } else if (moveDir === "after" && navEnd) {
+ focusableDate = min3([navEnd, focusableDate]);
+ }
+ return focusableDate;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js
+ function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {
+ if (attempt > 365) {
+ return void 0;
+ }
+ const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);
+ const isDisabled = Boolean(props.disabled && dateMatchModifiers(focusableDate, props.disabled, dateLib));
+ const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));
+ const targetMonth = focusableDate;
+ const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);
+ if (!isDisabled && !isHidden) {
+ return focusDay;
+ }
+ return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/useFocus.js
+ function useFocus2(props, calendar, getModifiers, isSelected, dateLib) {
+ const { autoFocus } = props;
+ const [lastFocused, setLastFocused] = (0, import_react36.useState)();
+ const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);
+ const [focusedDay, setFocused] = (0, import_react36.useState)(autoFocus ? focusTarget : void 0);
+ const blur = () => {
+ setLastFocused(focusedDay);
+ setFocused(void 0);
+ };
+ const moveFocus = (moveBy, moveDir) => {
+ if (!focusedDay)
+ return;
+ const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);
+ if (!nextFocus)
+ return;
+ if (props.disableNavigation) {
+ const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));
+ if (!isNextInCalendar) {
+ return;
}
- } else if (!storeMatch) {
- pendingChangesRef.current.outgoing = [];
- setControlledBlocks();
- restoreSelection();
}
- }, [controlledBlocks, clientId]);
- (0, import_element91.useEffect)(() => {
- const {
- getSelectedBlocksInitialCaretPosition: getSelectedBlocksInitialCaretPosition2,
- isLastBlockChangePersistent: isLastBlockChangePersistent2,
- __unstableGetLastBlockChangeHistoryMode: __unstableGetLastBlockChangeHistoryMode2,
- __unstableIsLastBlockChangeIgnored: __unstableIsLastBlockChangeIgnored2,
- areInnerBlocksControlled: areInnerBlocksControlled2,
- getBlockParents: getBlockParents2
- } = registry.select(store);
- let blocks2 = getBlocks2(clientId);
- let isPersistent = isLastBlockChangePersistent2();
- let blockHistoryMode = __unstableGetLastBlockChangeHistoryMode2();
- let previousAreBlocksDifferent = false;
- let prevSelectionStart = getSelectionStart2();
- let prevSelectionEnd = getSelectionEnd2();
- subscribedRef.current = true;
- const unsubscribe = registry.subscribe(() => {
- if (clientId !== null && getBlockName2(clientId) === null) {
+ calendar.goToDay(nextFocus);
+ setFocused(nextFocus);
+ };
+ const isFocusTarget = (day) => {
+ return Boolean(focusTarget?.isEqualTo(day));
+ };
+ const useFocus3 = {
+ isFocusTarget,
+ setFocused,
+ focused: focusedDay,
+ blur,
+ moveFocus
+ };
+ return useFocus3;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/selection/useMulti.js
+ function useMulti(props, dateLib) {
+ const { selected: initiallySelected, required, onSelect } = props;
+ const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : void 0);
+ const selected = !onSelect ? internallySelected : initiallySelected;
+ const { isSameDay: isSameDay2 } = dateLib;
+ const isSelected = (date) => {
+ return selected?.some((d2) => isSameDay2(d2, date)) ?? false;
+ };
+ const { min: min3, max: max3 } = props;
+ const select3 = (triggerDate, modifiers, e2) => {
+ let newDates = [...selected ?? []];
+ if (isSelected(triggerDate)) {
+ if (selected?.length === min3) {
return;
}
- const newIsPersistent = isLastBlockChangePersistent2();
- const newBlockHistoryMode = __unstableGetLastBlockChangeHistoryMode2();
- const newBlocks = getBlocks2(clientId);
- const areBlocksDifferent = newBlocks !== blocks2;
- blocks2 = newBlocks;
- if (areBlocksDifferent && (pendingChangesRef.current.incoming || __unstableIsLastBlockChangeIgnored2())) {
- pendingChangesRef.current.incoming = null;
- isPersistent = newIsPersistent;
- blockHistoryMode = newBlockHistoryMode;
+ if (required && selected?.length === 1) {
return;
}
- const didPersistenceChange = previousAreBlocksDifferent && !areBlocksDifferent && newIsPersistent && !isPersistent;
- const blocksChanged = areBlocksDifferent || didPersistenceChange;
- const newSelectionStart = getSelectionStart2();
- const newSelectionEnd = getSelectionEnd2();
- const selectionChanged = newSelectionStart !== prevSelectionStart || newSelectionEnd !== prevSelectionEnd;
- if (selectionChanged) {
- prevSelectionStart = newSelectionStart;
- prevSelectionEnd = newSelectionEnd;
+ newDates = selected?.filter((d2) => !isSameDay2(d2, triggerDate));
+ } else {
+ if (selected?.length === max3) {
+ newDates = [triggerDate];
+ } else {
+ newDates = [...newDates, triggerDate];
}
- if (blocksChanged || selectionChanged) {
- registry.batch(() => {
- if (blocksChanged) {
- isPersistent = newIsPersistent;
- blockHistoryMode = newBlockHistoryMode;
- const blocksForParent = clientId ? restoreExternalIds(blocks2, idMappingRef.current) : blocks2;
- const selectionInfo = {
- selectionStart: newSelectionStart,
- selectionEnd: newSelectionEnd,
- initialPosition: getSelectedBlocksInitialCaretPosition2()
- };
- const selectionForParent = clientId ? restoreSelectionIds(
- selectionInfo,
- idMappingRef.current
- ) : selectionInfo;
- pendingChangesRef.current.outgoing.push(
- blocksForParent
- );
- const updateParent = isPersistent ? onChangeRef.current : onInputRef.current;
- const updateOptions = {
- selection: selectionForParent
- };
- if (blockHistoryMode === "ignore") {
- updateOptions.undoIgnore = true;
- }
- updateParent(blocksForParent, updateOptions);
- }
- if (selectionChanged && !blocksChanged && newSelectionStart?.clientId && !isRestoringSelectionRef.current) {
- const isOurs = clientId ? idMappingRef.current.internalToExternal.has(
- newSelectionStart.clientId
- ) : !getBlockParents2(
- newSelectionStart.clientId
- ).some(
- (parentId) => areInnerBlocksControlled2(parentId)
- );
- if (isOurs) {
- const selectionInfo = {
- selectionStart: newSelectionStart,
- selectionEnd: newSelectionEnd,
- initialPosition: getSelectedBlocksInitialCaretPosition2()
- };
- onChangeSelection(
- clientId ? restoreSelectionIds(
- selectionInfo,
- idMappingRef.current
- ) : selectionInfo
- );
- }
- }
- });
+ }
+ if (!onSelect) {
+ setSelected(newDates);
+ }
+ onSelect?.(newDates, triggerDate, modifiers, e2);
+ return newDates;
+ };
+ return {
+ selected,
+ select: select3,
+ isSelected
+ };
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/utils/addToRange.js
+ function addToRange(date, initialRange, min3 = 0, max3 = 0, required = false, dateLib = defaultDateLib) {
+ const { from, to: to2 } = initialRange || {};
+ const { isSameDay: isSameDay2, isAfter: isAfter2, isBefore: isBefore2 } = dateLib;
+ let range2;
+ if (!from && !to2) {
+ range2 = { from: date, to: min3 > 0 ? void 0 : date };
+ } else if (from && !to2) {
+ if (isSameDay2(from, date)) {
+ if (min3 === 0) {
+ range2 = { from, to: date };
+ } else if (required) {
+ range2 = { from, to: void 0 };
+ } else {
+ range2 = void 0;
}
- previousAreBlocksDifferent = areBlocksDifferent;
- }, store);
- return () => {
- subscribedRef.current = false;
- unsubscribe();
- };
- }, [registry, clientId]);
- (0, import_element91.useEffect)(() => {
- return () => {
- unsetControlledBlocks();
- };
- }, []);
+ } else if (isBefore2(date, from)) {
+ range2 = { from: date, to: from };
+ } else {
+ range2 = { from, to: date };
+ }
+ } else if (from && to2) {
+ if (isSameDay2(from, date) && isSameDay2(to2, date)) {
+ if (required) {
+ range2 = { from, to: to2 };
+ } else {
+ range2 = void 0;
+ }
+ } else if (isSameDay2(from, date)) {
+ range2 = { from, to: min3 > 0 ? void 0 : date };
+ } else if (isSameDay2(to2, date)) {
+ range2 = { from: date, to: min3 > 0 ? void 0 : date };
+ } else if (isBefore2(date, from)) {
+ range2 = { from: date, to: to2 };
+ } else if (isAfter2(date, from)) {
+ range2 = { from, to: date };
+ } else if (isAfter2(date, to2)) {
+ range2 = { from, to: date };
+ } else {
+ throw new Error("Invalid range");
+ }
+ }
+ if (range2?.from && range2?.to) {
+ const diff = dateLib.differenceInCalendarDays(range2.to, range2.from);
+ if (max3 > 0 && diff > max3) {
+ range2 = { from: date, to: void 0 };
+ } else if (min3 > 1 && diff < min3) {
+ range2 = { from: date, to: void 0 };
+ }
+ }
+ return range2;
}
- // packages/block-editor/build-module/components/keyboard-shortcuts/index.mjs
- var import_element92 = __toESM(require_element(), 1);
- var import_data35 = __toESM(require_data(), 1);
- var import_keyboard_shortcuts3 = __toESM(require_keyboard_shortcuts(), 1);
- var import_i18n35 = __toESM(require_i18n(), 1);
- function KeyboardShortcuts() {
- return null;
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js
+ function rangeContainsDayOfWeek(range2, dayOfWeek, dateLib = defaultDateLib) {
+ const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;
+ let date = range2.from;
+ const totalDays = dateLib.differenceInCalendarDays(range2.to, range2.from);
+ const totalDaysLimit = Math.min(totalDays, 6);
+ for (let i2 = 0; i2 <= totalDaysLimit; i2++) {
+ if (dayOfWeekArr.includes(date.getDay())) {
+ return true;
+ }
+ date = dateLib.addDays(date, 1);
+ }
+ return false;
}
- function KeyboardShortcutsRegister() {
- const { registerShortcut, unregisterShortcut } = (0, import_data35.useDispatch)(
- import_keyboard_shortcuts3.store
- );
- const [blockVisibility2] = useSettings("blockVisibility.allowEditing");
- (0, import_element92.useEffect)(() => {
- registerShortcut({
- name: "core/block-editor/copy",
- category: "block",
- description: (0, import_i18n35.__)("Copy the selected block(s)."),
- keyCombination: {
- modifier: "primary",
- character: "c"
- }
- });
- registerShortcut({
- name: "core/block-editor/cut",
- category: "block",
- description: (0, import_i18n35.__)("Cut the selected block(s)."),
- keyCombination: {
- modifier: "primary",
- character: "x"
- }
- });
- registerShortcut({
- name: "core/block-editor/paste",
- category: "block",
- description: (0, import_i18n35.__)("Paste the selected block(s)."),
- keyCombination: {
- modifier: "primary",
- character: "v"
- }
- });
- registerShortcut({
- name: "core/block-editor/duplicate",
- category: "block",
- description: (0, import_i18n35.__)("Duplicate the selected block(s)."),
- keyCombination: {
- modifier: "primaryShift",
- character: "d"
- }
- });
- registerShortcut({
- name: "core/block-editor/remove",
- category: "block",
- description: (0, import_i18n35.__)("Remove the selected block(s)."),
- keyCombination: {
- modifier: "access",
- character: "z"
- }
- });
- registerShortcut({
- name: "core/block-editor/paste-styles",
- category: "block",
- description: (0, import_i18n35.__)(
- "Paste the copied style to the selected block(s)."
- ),
- keyCombination: {
- modifier: "primaryAlt",
- character: "v"
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js
+ function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {
+ return rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) || rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) || rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) || rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib);
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js
+ function rangeContainsModifiers(range2, modifiers, dateLib = defaultDateLib) {
+ const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];
+ const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== "function");
+ const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {
+ if (typeof matcher === "boolean")
+ return matcher;
+ if (dateLib.isDate(matcher)) {
+ return rangeIncludesDate(range2, matcher, false, dateLib);
+ }
+ if (isDatesArray(matcher, dateLib)) {
+ return matcher.some((date) => rangeIncludesDate(range2, date, false, dateLib));
+ }
+ if (isDateRange(matcher)) {
+ if (matcher.from && matcher.to) {
+ return rangeOverlaps(range2, { from: matcher.from, to: matcher.to }, dateLib);
}
- });
- registerShortcut({
- name: "core/block-editor/insert-before",
- category: "block",
- description: (0, import_i18n35.__)(
- "Insert a new block before the selected block(s)."
- ),
- keyCombination: {
- modifier: "primaryAlt",
- character: "t"
+ return false;
+ }
+ if (isDayOfWeekType(matcher)) {
+ return rangeContainsDayOfWeek(range2, matcher.dayOfWeek, dateLib);
+ }
+ if (isDateInterval(matcher)) {
+ const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);
+ if (isClosedInterval) {
+ return rangeOverlaps(range2, {
+ from: dateLib.addDays(matcher.after, 1),
+ to: dateLib.addDays(matcher.before, -1)
+ }, dateLib);
}
- });
- registerShortcut({
- name: "core/block-editor/insert-after",
- category: "block",
- description: (0, import_i18n35.__)(
- "Insert a new block after the selected block(s)."
- ),
- keyCombination: {
- modifier: "primaryAlt",
- character: "y"
+ return dateMatchModifiers(range2.from, matcher, dateLib) || dateMatchModifiers(range2.to, matcher, dateLib);
+ }
+ if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {
+ return dateMatchModifiers(range2.from, matcher, dateLib) || dateMatchModifiers(range2.to, matcher, dateLib);
+ }
+ return false;
+ });
+ if (nonFunctionMatchersResult) {
+ return true;
+ }
+ const functionMatchers = matchers.filter((matcher) => typeof matcher === "function");
+ if (functionMatchers.length) {
+ let date = range2.from;
+ const totalDays = dateLib.differenceInCalendarDays(range2.to, range2.from);
+ for (let i2 = 0; i2 <= totalDays; i2++) {
+ if (functionMatchers.some((matcher) => matcher(date))) {
+ return true;
}
- });
- registerShortcut({
- name: "core/block-editor/delete-multi-selection",
- category: "block",
- description: (0, import_i18n35.__)("Delete selection."),
- keyCombination: {
- character: "del"
- },
- aliases: [
- {
- character: "backspace"
+ date = dateLib.addDays(date, 1);
+ }
+ }
+ return false;
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/selection/useRange.js
+ function useRange(props, dateLib) {
+ const { disabled: disabled2, excludeDisabled, resetOnSelect, selected: initiallySelected, required, onSelect } = props;
+ const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : void 0);
+ const selected = !onSelect ? internallySelected : initiallySelected;
+ const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);
+ const select3 = (triggerDate, modifiers, e2) => {
+ const { min: min3, max: max3 } = props;
+ let newRange;
+ if (triggerDate) {
+ const selectedFrom = selected?.from;
+ const selectedTo = selected?.to;
+ const hasFullRange = !!selectedFrom && !!selectedTo;
+ const isClickingSingleDayRange = !!selectedFrom && !!selectedTo && dateLib.isSameDay(selectedFrom, selectedTo) && dateLib.isSameDay(triggerDate, selectedFrom);
+ if (resetOnSelect && (hasFullRange || !selected?.from)) {
+ if (!required && isClickingSingleDayRange) {
+ newRange = void 0;
+ } else {
+ newRange = { from: triggerDate, to: void 0 };
}
- ]
- });
- registerShortcut({
- name: "core/block-editor/stop-editing-as-blocks",
- category: "block",
- description: (0, import_i18n35.__)("Finish editing a design."),
- keyCombination: {
- character: "escape"
- }
- });
- registerShortcut({
- name: "core/block-editor/select-all",
- category: "selection",
- description: (0, import_i18n35.__)(
- "Select all text when typing. Press again to select all blocks."
- ),
- keyCombination: {
- modifier: "primary",
- character: "a"
- }
- });
- registerShortcut({
- name: "core/block-editor/unselect",
- category: "selection",
- description: (0, import_i18n35.__)("Clear selection."),
- keyCombination: {
- character: "escape"
- }
- });
- registerShortcut({
- name: "core/block-editor/multi-text-selection",
- category: "selection",
- description: (0, import_i18n35.__)("Select text across multiple blocks."),
- keyCombination: {
- modifier: "shift",
- // Spotted during my own research — invalid character?
- character: "arrow"
- }
- });
- registerShortcut({
- name: "core/block-editor/focus-toolbar",
- category: "global",
- description: (0, import_i18n35.__)("Navigate to the nearest toolbar."),
- keyCombination: {
- modifier: "alt",
- character: "F10"
- }
- });
- registerShortcut({
- name: "core/block-editor/move-up",
- category: "block",
- description: (0, import_i18n35.__)("Move the selected block(s) up."),
- keyCombination: {
- modifier: "secondary",
- character: "t"
- }
- });
- registerShortcut({
- name: "core/block-editor/move-down",
- category: "block",
- description: (0, import_i18n35.__)("Move the selected block(s) down."),
- keyCombination: {
- modifier: "secondary",
- character: "y"
- }
- });
- registerShortcut({
- name: "core/block-editor/collapse-list-view",
- category: "list-view",
- description: (0, import_i18n35.__)("Collapse all other items."),
- keyCombination: {
- modifier: "alt",
- character: "l"
+ } else {
+ newRange = addToRange(triggerDate, selected, min3, max3, required, dateLib);
}
- });
- registerShortcut({
- name: "core/block-editor/group",
- category: "block",
- description: (0, import_i18n35.__)(
- "Create a group block from the selected multiple blocks."
- ),
- keyCombination: {
- modifier: "primary",
- character: "g"
+ }
+ if (excludeDisabled && disabled2 && newRange?.from && newRange.to) {
+ if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled2, dateLib)) {
+ newRange.from = triggerDate;
+ newRange.to = void 0;
}
- });
- if (blockVisibility2 === false) {
- unregisterShortcut("core/block-editor/toggle-block-visibility");
+ }
+ if (!onSelect) {
+ setSelected(newRange);
+ }
+ onSelect?.(newRange, triggerDate, modifiers, e2);
+ return newRange;
+ };
+ return {
+ selected,
+ select: select3,
+ isSelected
+ };
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/selection/useSingle.js
+ function useSingle(props, dateLib) {
+ const { selected: initiallySelected, required, onSelect } = props;
+ const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : void 0);
+ const selected = !onSelect ? internallySelected : initiallySelected;
+ const { isSameDay: isSameDay2 } = dateLib;
+ const isSelected = (compareDate) => {
+ return selected ? isSameDay2(selected, compareDate) : false;
+ };
+ const select3 = (triggerDate, modifiers, e2) => {
+ let newDate = triggerDate;
+ if (!required && selected && selected && isSameDay2(triggerDate, selected)) {
+ newDate = void 0;
+ }
+ if (!onSelect) {
+ setSelected(newDate);
+ }
+ if (required) {
+ onSelect?.(newDate, triggerDate, modifiers, e2);
} else {
- registerShortcut({
- name: "core/block-editor/toggle-block-visibility",
- category: "block",
- description: (0, import_i18n35.__)("Show or hide the selected block(s)."),
- keyCombination: {
- modifier: "primaryShift",
- character: "h"
- }
- });
+ onSelect?.(newDate, triggerDate, modifiers, e2);
}
- registerShortcut({
- name: "core/block-editor/rename",
- category: "block",
- description: (0, import_i18n35.__)("Rename the selected block."),
- keyCombination: {
- modifier: "primaryAlt",
- character: "r"
- }
- });
- }, [registerShortcut, unregisterShortcut, blockVisibility2]);
- return null;
+ return newDate;
+ };
+ return {
+ selected,
+ select: select3,
+ isSelected
+ };
+ }
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/useSelection.js
+ function useSelection(props, dateLib) {
+ const single = useSingle(props, dateLib);
+ const multi = useMulti(props, dateLib);
+ const range2 = useRange(props, dateLib);
+ switch (props.mode) {
+ case "single":
+ return single;
+ case "multiple":
+ return multi;
+ case "range":
+ return range2;
+ default:
+ return void 0;
+ }
}
- KeyboardShortcuts.Register = KeyboardShortcutsRegister;
- var keyboard_shortcuts_default = KeyboardShortcuts;
- // packages/block-editor/build-module/components/provider/use-media-upload-settings.mjs
- var import_element93 = __toESM(require_element(), 1);
- function useMediaUploadSettings(settings2 = {}) {
- return (0, import_element93.useMemo)(
- () => ({
- mediaUpload: settings2.mediaUpload,
- mediaSideload: settings2.mediaSideload,
- mediaFinalize: settings2.mediaFinalize,
- mediaDelete: settings2.mediaDelete,
- maxUploadFileSize: settings2.maxUploadFileSize,
- allowedMimeTypes: settings2.allowedMimeTypes,
- allImageSizes: settings2.allImageSizes,
- bigImageSizeThreshold: settings2.bigImageSizeThreshold,
- imageStripMeta: settings2.imageStripMeta,
- imageMaxBitDepth: settings2.imageMaxBitDepth
- }),
- [settings2]
- );
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js
+ function toTimeZone(date, timeZone) {
+ if (date instanceof TZDate && date.timeZone === timeZone) {
+ return date;
+ }
+ return new TZDate(date, timeZone);
}
- var use_media_upload_settings_default = useMediaUploadSettings;
- // packages/block-editor/build-module/components/provider/index.mjs
- var import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
- var noop9 = () => {
- };
- var hasLoggedFallback = false;
- var isClientSideMediaEnabledCache = null;
- var isHeicCanvasEnabledCache = null;
- var HEIC_MIME_TYPES = ["image/heic", "image/heif"];
- function shouldEnableClientSideMediaProcessing() {
- if (isClientSideMediaEnabledCache !== null) {
- return isClientSideMediaEnabledCache;
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js
+ function toZoneNoon(date, timeZone, noonSafe) {
+ if (!noonSafe)
+ return toTimeZone(date, timeZone);
+ const zoned = toTimeZone(date, timeZone);
+ const noonZoned = new TZDate(zoned.getFullYear(), zoned.getMonth(), zoned.getDate(), 12, 0, 0, timeZone);
+ return new Date(noonZoned.getTime());
+ }
+ function convertMatcher(matcher, timeZone, noonSafe) {
+ if (typeof matcher === "boolean" || typeof matcher === "function") {
+ return matcher;
}
- if (!window.__clientSideMediaProcessing) {
- isClientSideMediaEnabledCache = false;
- return false;
+ if (matcher instanceof Date) {
+ return toZoneNoon(matcher, timeZone, noonSafe);
}
- if (typeof import_upload_media.detectClientSideMediaSupport !== "function") {
- isClientSideMediaEnabledCache = false;
- return false;
+ if (Array.isArray(matcher)) {
+ return matcher.map((value) => value instanceof Date ? toZoneNoon(value, timeZone, noonSafe) : value);
}
- const detection = (0, import_upload_media.detectClientSideMediaSupport)();
- if (!detection || !detection.supported) {
- if (!hasLoggedFallback) {
- console.info(
- `Client-side media processing unavailable: ${detection.reason}. Using server-side processing.`
- );
- hasLoggedFallback = true;
- }
- isClientSideMediaEnabledCache = false;
- return false;
+ if (isDateRange(matcher)) {
+ return {
+ ...matcher,
+ from: matcher.from ? toTimeZone(matcher.from, timeZone) : matcher.from,
+ to: matcher.to ? toTimeZone(matcher.to, timeZone) : matcher.to
+ };
}
- isClientSideMediaEnabledCache = true;
- return true;
- }
- function shouldEnableHeicCanvasProcessing() {
- if (isHeicCanvasEnabledCache !== null) {
- return isHeicCanvasEnabledCache;
+ if (isDateInterval(matcher)) {
+ return {
+ before: toZoneNoon(matcher.before, timeZone, noonSafe),
+ after: toZoneNoon(matcher.after, timeZone, noonSafe)
+ };
}
- if (shouldEnableClientSideMediaProcessing()) {
- isHeicCanvasEnabledCache = false;
- return false;
+ if (isDateAfterType(matcher)) {
+ return {
+ after: toZoneNoon(matcher.after, timeZone, noonSafe)
+ };
}
- if (!window.__clientSideMediaProcessing) {
- isHeicCanvasEnabledCache = false;
- return false;
+ if (isDateBeforeType(matcher)) {
+ return {
+ before: toZoneNoon(matcher.before, timeZone, noonSafe)
+ };
}
- if (typeof import_upload_media.isHeicCanvasSupported !== "function" || !(0, import_upload_media.isHeicCanvasSupported)()) {
- isHeicCanvasEnabledCache = false;
- return false;
+ return matcher;
+ }
+ function convertMatchersToTimeZone(matchers, timeZone, noonSafe) {
+ if (!matchers) {
+ return matchers;
}
- isHeicCanvasEnabledCache = true;
- return true;
+ if (Array.isArray(matchers)) {
+ return matchers.map((matcher) => convertMatcher(matcher, timeZone, noonSafe));
+ }
+ return convertMatcher(matchers, timeZone, noonSafe);
}
- function mediaUpload(registry, settings2, {
- allowedTypes,
- additionalData = {},
- filesList,
- onError = noop9,
- onFileChange,
- onSuccess,
- onBatchSuccess
- }) {
- void registry.dispatch(import_upload_media.store).addItems({
- files: Array.from(filesList),
- onChange: onFileChange,
- onSuccess: (attachments) => {
- settings2?.[mediaUploadOnSuccessKey]?.(attachments);
- onSuccess?.(attachments);
- },
- onBatchSuccess,
- onError: (error2) => onError(typeof error2 === "string" ? error2 : error2?.message ?? ""),
- additionalData,
- allowedTypes
+
+ // node_modules/@daypicker/react/node_modules/react-day-picker/dist/esm/DayPicker.js
+ function DayPicker(initialProps) {
+ let props = initialProps;
+ const timeZone = props.timeZone;
+ if (timeZone) {
+ props = {
+ ...initialProps,
+ timeZone
+ };
+ if (props.today) {
+ props.today = toTimeZone(props.today, timeZone);
+ }
+ if (props.month) {
+ props.month = toTimeZone(props.month, timeZone);
+ }
+ if (props.defaultMonth) {
+ props.defaultMonth = toTimeZone(props.defaultMonth, timeZone);
+ }
+ if (props.startMonth) {
+ props.startMonth = toTimeZone(props.startMonth, timeZone);
+ }
+ if (props.endMonth) {
+ props.endMonth = toTimeZone(props.endMonth, timeZone);
+ }
+ if (props.mode === "single" && props.selected) {
+ props.selected = toTimeZone(props.selected, timeZone);
+ } else if (props.mode === "multiple" && props.selected) {
+ props.selected = props.selected?.map((date) => toTimeZone(date, timeZone));
+ } else if (props.mode === "range" && props.selected) {
+ props.selected = {
+ from: props.selected.from ? toTimeZone(props.selected.from, timeZone) : props.selected.from,
+ to: props.selected.to ? toTimeZone(props.selected.to, timeZone) : props.selected.to
+ };
+ }
+ if (props.disabled !== void 0) {
+ props.disabled = convertMatchersToTimeZone(props.disabled, timeZone);
+ }
+ if (props.hidden !== void 0) {
+ props.hidden = convertMatchersToTimeZone(props.hidden, timeZone);
+ }
+ if (props.modifiers) {
+ const nextModifiers = {};
+ Object.keys(props.modifiers).forEach((key) => {
+ nextModifiers[key] = convertMatchersToTimeZone(props.modifiers?.[key], timeZone);
+ });
+ props.modifiers = nextModifiers;
+ }
+ }
+ const { components, formatters: formatters2, labels, dateLib, locale, classNames: classNames2 } = (0, import_react37.useMemo)(() => {
+ const locale2 = { ...enUS2, ...props.locale };
+ const weekStartsOn = props.broadcastCalendar ? 1 : props.weekStartsOn;
+ const noonOverrides = props.noonSafe && props.timeZone ? createNoonOverrides(props.timeZone, {
+ weekStartsOn,
+ locale: locale2
+ }) : void 0;
+ const overrides = props.dateLib && noonOverrides ? { ...noonOverrides, ...props.dateLib } : props.dateLib ?? noonOverrides;
+ const dateLib2 = new DateLib({
+ locale: locale2,
+ weekStartsOn,
+ firstWeekContainsDate: props.firstWeekContainsDate,
+ useAdditionalWeekYearTokens: props.useAdditionalWeekYearTokens,
+ useAdditionalDayOfYearTokens: props.useAdditionalDayOfYearTokens,
+ timeZone: props.timeZone,
+ numerals: props.numerals
+ }, overrides);
+ return {
+ dateLib: dateLib2,
+ components: getComponents(props.components),
+ formatters: getFormatters(props.formatters),
+ labels: getLabels(props.labels, dateLib2.options),
+ locale: locale2,
+ classNames: { ...getDefaultClassNames(), ...props.classNames }
+ };
+ }, [
+ props.locale,
+ props.broadcastCalendar,
+ props.weekStartsOn,
+ props.firstWeekContainsDate,
+ props.useAdditionalWeekYearTokens,
+ props.useAdditionalDayOfYearTokens,
+ props.timeZone,
+ props.numerals,
+ props.dateLib,
+ props.noonSafe,
+ props.components,
+ props.formatters,
+ props.labels,
+ props.classNames
+ ]);
+ if (!props.today) {
+ props = { ...props, today: dateLib.today() };
+ }
+ const { captionLayout, mode: mode2, navLayout, numberOfMonths = 1, onDayBlur, onDayClick, onDayFocus, onDayKeyDown, onDayMouseEnter, onDayMouseLeave, onNextClick, onPrevClick, showWeekNumber, styles } = props;
+ const { formatCaption: formatCaption2, formatDay: formatDay2, formatMonthDropdown: formatMonthDropdown2, formatWeekNumber: formatWeekNumber2, formatWeekNumberHeader: formatWeekNumberHeader2, formatWeekdayName: formatWeekdayName2, formatYearDropdown: formatYearDropdown2 } = formatters2;
+ const calendar = useCalendar(props, dateLib);
+ const { days, months, navStart, navEnd, previousMonth, nextMonth, goToMonth } = calendar;
+ const getModifiers = createGetModifiers(days, props, navStart, navEnd, dateLib);
+ const { isSelected, select: select3, selected: selectedValue } = useSelection(props, dateLib) ?? {};
+ const { blur, focused, isFocusTarget, moveFocus, setFocused } = useFocus2(props, calendar, getModifiers, isSelected ?? (() => false), dateLib);
+ const { labelDayButton: labelDayButton2, labelGridcell: labelGridcell2, labelGrid: labelGrid2, labelMonthDropdown: labelMonthDropdown2, labelNav: labelNav2, labelPrevious: labelPrevious2, labelNext: labelNext2, labelWeekday: labelWeekday2, labelWeekNumber: labelWeekNumber2, labelWeekNumberHeader: labelWeekNumberHeader2, labelYearDropdown: labelYearDropdown2 } = labels;
+ const weekdays = (0, import_react37.useMemo)(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);
+ const isInteractive = mode2 !== void 0 || onDayClick !== void 0;
+ const handlePreviousClick = (0, import_react37.useCallback)(() => {
+ if (!previousMonth)
+ return;
+ goToMonth(previousMonth);
+ onPrevClick?.(previousMonth);
+ }, [previousMonth, goToMonth, onPrevClick]);
+ const handleNextClick = (0, import_react37.useCallback)(() => {
+ if (!nextMonth)
+ return;
+ goToMonth(nextMonth);
+ onNextClick?.(nextMonth);
+ }, [goToMonth, nextMonth, onNextClick]);
+ const handleDayClick = (0, import_react37.useCallback)((day, m2) => (e2) => {
+ e2.preventDefault();
+ e2.stopPropagation();
+ setFocused(day);
+ if (m2.disabled) {
+ return;
+ }
+ select3?.(day.date, m2, e2);
+ onDayClick?.(day.date, m2, e2);
+ }, [select3, onDayClick, setFocused]);
+ const handleDayFocus = (0, import_react37.useCallback)((day, m2) => (e2) => {
+ setFocused(day);
+ onDayFocus?.(day.date, m2, e2);
+ }, [onDayFocus, setFocused]);
+ const handleDayBlur = (0, import_react37.useCallback)((day, m2) => (e2) => {
+ blur();
+ onDayBlur?.(day.date, m2, e2);
+ }, [blur, onDayBlur]);
+ const handleDayKeyDown = (0, import_react37.useCallback)((day, modifiers) => (e2) => {
+ const keyMap = {
+ ArrowLeft: [
+ e2.shiftKey ? "month" : "day",
+ props.dir === "rtl" ? "after" : "before"
+ ],
+ ArrowRight: [
+ e2.shiftKey ? "month" : "day",
+ props.dir === "rtl" ? "before" : "after"
+ ],
+ ArrowDown: [e2.shiftKey ? "year" : "week", "after"],
+ ArrowUp: [e2.shiftKey ? "year" : "week", "before"],
+ PageUp: [e2.shiftKey ? "year" : "month", "before"],
+ PageDown: [e2.shiftKey ? "year" : "month", "after"],
+ Home: ["startOfWeek", "before"],
+ End: ["endOfWeek", "after"]
+ };
+ if (keyMap[e2.key]) {
+ e2.preventDefault();
+ e2.stopPropagation();
+ const [moveBy, moveDir] = keyMap[e2.key];
+ moveFocus(moveBy, moveDir);
+ }
+ onDayKeyDown?.(day.date, modifiers, e2);
+ }, [moveFocus, onDayKeyDown, props.dir]);
+ const handleDayMouseEnter = (0, import_react37.useCallback)((day, modifiers) => (e2) => {
+ onDayMouseEnter?.(day.date, modifiers, e2);
+ }, [onDayMouseEnter]);
+ const handleDayMouseLeave = (0, import_react37.useCallback)((day, modifiers) => (e2) => {
+ onDayMouseLeave?.(day.date, modifiers, e2);
+ }, [onDayMouseLeave]);
+ const handleMonthChange = (0, import_react37.useCallback)((date, monthOffset) => (e2) => {
+ const selectedMonth = Number(e2.target.value);
+ const month = dateLib.setMonth(dateLib.startOfMonth(date), selectedMonth);
+ goToMonth(dateLib.addMonths(month, -monthOffset));
+ }, [dateLib, goToMonth]);
+ const handleYearChange = (0, import_react37.useCallback)((date, monthOffset) => (e2) => {
+ const selectedYear = Number(e2.target.value);
+ const month = dateLib.setYear(dateLib.startOfMonth(date), selectedYear);
+ goToMonth(dateLib.addMonths(month, -monthOffset));
+ }, [dateLib, goToMonth]);
+ const { className: className2, style } = (0, import_react37.useMemo)(() => ({
+ className: [classNames2[UI.Root], props.className].filter(Boolean).join(" "),
+ style: { ...styles?.[UI.Root], ...props.style }
+ }), [classNames2, props.className, props.style, styles]);
+ const dataAttributes = getDataAttributes(props);
+ const getDropdownStyle = (dropdown) => {
+ const dropdownStyle = styles?.[UI.Dropdown];
+ const specificDropdownStyle = styles?.[dropdown];
+ if (!dropdownStyle && !specificDropdownStyle) {
+ return void 0;
+ }
+ return {
+ ...dropdownStyle,
+ ...specificDropdownStyle
+ };
+ };
+ const rootElRef = (0, import_react37.useRef)(null);
+ useAnimation(rootElRef, Boolean(props.animate), {
+ classNames: classNames2,
+ months,
+ focused,
+ dateLib
});
+ const contextValue = {
+ dayPickerProps: props,
+ selected: selectedValue,
+ select: select3,
+ isSelected,
+ months,
+ nextMonth,
+ previousMonth,
+ goToMonth,
+ getModifiers,
+ components,
+ classNames: classNames2,
+ styles,
+ labels,
+ formatters: formatters2
+ };
+ return import_react37.default.createElement(
+ dayPickerContext.Provider,
+ { value: contextValue },
+ import_react37.default.createElement(
+ components.Root,
+ { rootRef: props.animate ? rootElRef : void 0, className: className2, style, dir: props.dir, id: props.id, lang: props.lang ?? locale.code, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"], ...dataAttributes },
+ import_react37.default.createElement(
+ components.Months,
+ { className: classNames2[UI.Months], style: styles?.[UI.Months] },
+ !props.hideNavigation && !navLayout && import_react37.default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames2[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
+ months.map((calendarMonth, displayIndex) => {
+ const monthOffset = props.reverseMonths ? months.length - 1 - displayIndex : displayIndex;
+ return import_react37.default.createElement(
+ components.Month,
+ {
+ "data-animated-month": props.animate ? "true" : void 0,
+ className: classNames2[UI.Month],
+ style: styles?.[UI.Month],
+ // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
+ key: displayIndex,
+ displayIndex,
+ calendarMonth
+ },
+ navLayout === "around" && !props.hideNavigation && displayIndex === 0 && import_react37.default.createElement(
+ components.PreviousMonthButton,
+ { type: "button", className: classNames2[UI.PreviousMonthButton], style: styles?.[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick, "data-animated-button": props.animate ? "true" : void 0 },
+ import_react37.default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames2[UI.Chevron], style: styles?.[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" })
+ ),
+ import_react37.default.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : void 0, className: classNames2[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth, displayIndex }, captionLayout?.startsWith("dropdown") ? import_react37.default.createElement(
+ components.DropdownNav,
+ { className: classNames2[UI.Dropdowns], style: styles?.[UI.Dropdowns] },
+ (() => {
+ const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ? import_react37.default.createElement(components.MonthsDropdown, { key: "month", className: classNames2[UI.MonthsDropdown], "aria-label": labelMonthDropdown2(), disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date, monthOffset), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters2, dateLib), style: getDropdownStyle(UI.MonthsDropdown), value: dateLib.getMonth(calendarMonth.date) }) : import_react37.default.createElement("span", { key: "month" }, formatMonthDropdown2(calendarMonth.date, dateLib));
+ const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ? import_react37.default.createElement(components.YearsDropdown, { key: "year", className: classNames2[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date, monthOffset), options: getYearOptions(navStart, navEnd, formatters2, dateLib, Boolean(props.reverseYears)), style: getDropdownStyle(UI.YearsDropdown), value: dateLib.getYear(calendarMonth.date) }) : import_react37.default.createElement("span", { key: "year" }, formatYearDropdown2(calendarMonth.date, dateLib));
+ const controls = dateLib.getMonthYearOrder() === "year-first" ? [yearControl, monthControl] : [monthControl, yearControl];
+ return controls;
+ })(),
+ import_react37.default.createElement("span", { role: "status", "aria-live": "polite", style: {
+ border: 0,
+ clip: "rect(0 0 0 0)",
+ height: "1px",
+ margin: "-1px",
+ overflow: "hidden",
+ padding: 0,
+ position: "absolute",
+ width: "1px",
+ whiteSpace: "nowrap",
+ wordWrap: "normal"
+ } }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))
+ ) : import_react37.default.createElement(components.CaptionLabel, { className: classNames2[UI.CaptionLabel], style: styles?.[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))),
+ navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 && import_react37.default.createElement(
+ components.NextMonthButton,
+ { type: "button", className: classNames2[UI.NextMonthButton], style: styles?.[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick, "data-animated-button": props.animate ? "true" : void 0 },
+ import_react37.default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, className: classNames2[UI.Chevron], style: styles?.[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" })
+ ),
+ displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation && import_react37.default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames2[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
+ import_react37.default.createElement(
+ components.MonthGrid,
+ { role: "grid", "aria-multiselectable": mode2 === "multiple" || mode2 === "range", "aria-label": labelGrid2(calendarMonth.date, dateLib.options, dateLib) || void 0, className: classNames2[UI.MonthGrid], style: styles?.[UI.MonthGrid] },
+ !props.hideWeekdays && import_react37.default.createElement(
+ components.Weekdays,
+ { "data-animated-weekdays": props.animate ? "true" : void 0, className: classNames2[UI.Weekdays], style: styles?.[UI.Weekdays] },
+ showWeekNumber && import_react37.default.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader2(dateLib.options), className: classNames2[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader2()),
+ weekdays.map((weekday) => import_react37.default.createElement(components.Weekday, { "aria-label": labelWeekday2(weekday, dateLib.options, dateLib), className: classNames2[UI.Weekday], key: String(weekday), style: styles?.[UI.Weekday], scope: "col" }, formatWeekdayName2(weekday, dateLib.options, dateLib)))
+ ),
+ import_react37.default.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : void 0, className: classNames2[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {
+ return import_react37.default.createElement(
+ components.Week,
+ { className: classNames2[UI.Week], key: week.weekNumber, style: styles?.[UI.Week], week },
+ showWeekNumber && import_react37.default.createElement(components.WeekNumber, { week, style: styles?.[UI.WeekNumber], "aria-label": labelWeekNumber2(week.weekNumber, {
+ locale
+ }), className: classNames2[UI.WeekNumber], scope: "row", role: "rowheader" }, formatWeekNumber2(week.weekNumber, dateLib)),
+ week.days.map((day) => {
+ const { date } = day;
+ const modifiers = getModifiers(day);
+ modifiers[DayFlag.focused] = !modifiers.hidden && Boolean(focused?.isEqualTo(day));
+ modifiers[SelectionState.selected] = isSelected?.(date) || modifiers.selected;
+ if (isDateRange(selectedValue)) {
+ const { from, to: to2 } = selectedValue;
+ modifiers[SelectionState.range_start] = Boolean(from && to2 && dateLib.isSameDay(date, from));
+ modifiers[SelectionState.range_end] = Boolean(from && to2 && dateLib.isSameDay(date, to2));
+ modifiers[SelectionState.range_middle] = rangeIncludesDate(selectedValue, date, true, dateLib);
+ }
+ const style2 = getStyleForModifiers(modifiers, styles, props.modifiersStyles);
+ const className3 = getClassNamesForModifiers(modifiers, classNames2, props.modifiersClassNames);
+ const ariaLabel = !isInteractive && !modifiers.hidden ? labelGridcell2(date, modifiers, dateLib.options, dateLib) : void 0;
+ return import_react37.default.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day, modifiers, className: className3.join(" "), style: style2, role: "gridcell", "aria-selected": modifiers.selected || void 0, "aria-label": ariaLabel, "data-day": day.isoDate, "data-month": day.outside ? day.dateMonthId : void 0, "data-selected": modifiers.selected || void 0, "data-disabled": modifiers.disabled || void 0, "data-hidden": modifiers.hidden || void 0, "data-outside": day.outside || void 0, "data-focused": modifiers.focused || void 0, "data-today": modifiers.today || void 0 }, !modifiers.hidden && isInteractive ? import_react37.default.createElement(components.DayButton, { className: classNames2[UI.DayButton], style: styles?.[UI.DayButton], type: "button", day, modifiers, disabled: !modifiers.focused && modifiers.disabled || void 0, "aria-disabled": modifiers.focused && modifiers.disabled || void 0, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton2(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay2(date, dateLib.options, dateLib)) : !modifiers.hidden && formatDay2(day.date, dateLib.options, dateLib));
+ })
+ );
+ }))
+ )
+ );
+ })
+ ),
+ props.footer && import_react37.default.createElement(components.Footer, { className: classNames2[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)
+ )
+ );
}
- function heicMediaUpload(registry, settings2, {
- allowedTypes,
- additionalData = {},
- filesList,
- onError = noop9,
- onFileChange,
- onSuccess,
- onBatchSuccess
- }) {
- const files = Array.from(filesList);
- const heicFiles = files.filter(
- (file) => HEIC_MIME_TYPES.includes(file.type)
+
+ // packages/ui/build-module/calendar/calendar.mjs
+ var import_element56 = __toESM(require_element(), 1);
+
+ // packages/ui/build-module/calendar/utils/components.mjs
+ var import_element53 = __toESM(require_element(), 1);
+ var import_compose20 = __toESM(require_compose(), 1);
+
+ // packages/ui/build-module/calendar/utils/root-context.mjs
+ var import_element52 = __toESM(require_element(), 1);
+ var RootContext = (0, import_element52.createContext)({});
+
+ // packages/ui/build-module/calendar/utils/components.mjs
+ var import_jsx_runtime188 = __toESM(require_jsx_runtime(), 1);
+ var PreviewDashStartAndEnd = () => {
+ return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
+ "svg",
+ {
+ viewBox: "0 0 32 32",
+ xmlns: "http://www.w3.org/2000/svg",
+ fill: "none",
+ stroke: "currentColor",
+ strokeDasharray: "3.7677",
+ strokeDashoffset: "3.2",
+ strokeWidth: "1",
+ children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("path", { d: "M29.5,0.5 h-27 a2,2 0 0 0 -2,2 v27 a2,2 0 0 0 2,2 h27 a2,2 0 0 0 2,-2 v-27 a2,2 0 0 0 -2,-2" })
+ }
);
- const otherFiles = files.filter(
- (file) => !HEIC_MIME_TYPES.includes(file.type)
+ };
+ var PreviewDashStart = () => {
+ return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
+ "svg",
+ {
+ viewBox: "0 0 32 32",
+ xmlns: "http://www.w3.org/2000/svg",
+ fill: "none",
+ stroke: "currentColor",
+ strokeDasharray: "3.84516",
+ strokeDashoffset: "1.9226",
+ strokeWidth: "1",
+ children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("path", { d: "M32,0.5 h-29.5 a2,2 0 0 0 -2,2 v27 a2,2 0 0 0 2,2 h30" })
+ }
);
- const hasBothPaths = heicFiles.length > 0 && otherFiles.length > 0 && settings2?.mediaUpload;
- let pathsRemaining = hasBothPaths ? 2 : 1;
- const coordinatedBatchSuccess = hasBothPaths ? () => {
- pathsRemaining--;
- if (pathsRemaining <= 0) {
- onBatchSuccess?.();
+ };
+ var PreviewDashMiddle = () => {
+ return /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)(
+ "svg",
+ {
+ viewBox: "0 0 32 32",
+ xmlns: "http://www.w3.org/2000/svg",
+ fill: "none",
+ stroke: "currentColor",
+ strokeDasharray: "3.9 4",
+ strokeDashoffset: "2",
+ strokeWidth: "1",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("line", { x1: "0", y1: "0.5", x2: "100", y2: "0.5" }),
+ /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("line", { x1: "0", y1: "31.5", x2: "100", y2: "31.5" })
+ ]
}
- } : onBatchSuccess;
- if (heicFiles.length > 0) {
- void registry.dispatch(import_upload_media.store).addItems({
- files: heicFiles,
- onChange: onFileChange,
- onSuccess: (attachments) => {
- settings2?.[mediaUploadOnSuccessKey]?.(attachments);
- onSuccess?.(attachments);
- },
- onBatchSuccess: coordinatedBatchSuccess,
- onError: (error2) => onError(
- typeof error2 === "string" ? error2 : error2?.message ?? ""
- ),
- additionalData,
- allowedTypes
- });
- }
- if (otherFiles.length > 0 && settings2?.mediaUpload) {
- settings2.mediaUpload({
- allowedTypes,
- additionalData,
- filesList: otherFiles,
- onError,
- onFileChange,
- onSuccess,
- onBatchSuccess: coordinatedBatchSuccess
- });
- }
+ );
+ };
+ var PreviewDashEnd = () => {
+ return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
+ "svg",
+ {
+ viewBox: "0 0 32 32",
+ xmlns: "http://www.w3.org/2000/svg",
+ fill: "none",
+ stroke: "currentColor",
+ strokeDasharray: "3.84516",
+ strokeDashoffset: "1.9226",
+ strokeWidth: "1",
+ children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("path", { d: "M0,0.5 h29.5 a2,2 0 0 1 2,2 v27 a2,2 0 0 1 -2,2 h-29.5" })
+ }
+ );
+ };
+ function Day2(props) {
+ const { day, modifiers, children, ...tdProps } = props;
+ let PreviewDash;
+ if (modifiers.preview_start && modifiers.preview_end) {
+ PreviewDash = PreviewDashStartAndEnd;
+ } else if (modifiers.preview_start) {
+ PreviewDash = PreviewDashStart;
+ } else if (modifiers.preview_end) {
+ PreviewDash = PreviewDashEnd;
+ } else if (modifiers.preview) {
+ PreviewDash = PreviewDashMiddle;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)("td", { ...tdProps, children: [
+ PreviewDash && /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(PreviewDash, {}),
+ children
+ ] });
}
- function BlockSyncEffect(props) {
- useBlockSync(props);
- return null;
+ function Root2({ rootRef, ...props }) {
+ const { render: render4, ref } = (0, import_element53.useContext)(RootContext);
+ const mergedRef = (0, import_compose20.useMergeRefs)([rootRef ?? null, ref ?? null]);
+ return useRender({
+ render: render4,
+ defaultTagName: "div",
+ ref: mergedRef,
+ props
+ });
}
- var ExperimentalBlockEditorProvider = with_registry_provider_default(
- (props) => {
- const {
- settings: _settings,
- registry,
- stripExperimentalSettings = false
- } = props;
- const mediaUploadSettings = use_media_upload_settings_default(_settings);
- const isClientSideMediaEnabled = shouldEnableClientSideMediaProcessing();
- const isHeicCanvasEnabled = shouldEnableHeicCanvasProcessing();
- const useUploadMediaPipeline = isClientSideMediaEnabled || isHeicCanvasEnabled;
- const isMediaUploadIntercepted = !!_settings?.mediaUpload?.__isMediaUploadInterceptor;
- const settings2 = (0, import_element94.useMemo)(() => {
- if (useUploadMediaPipeline && _settings?.mediaUpload && !isMediaUploadIntercepted) {
- const uploadFn = isClientSideMediaEnabled ? mediaUpload : heicMediaUpload;
- const interceptor = uploadFn.bind(null, registry, _settings);
- interceptor.__isMediaUploadInterceptor = true;
- return {
- ..._settings,
- mediaUpload: interceptor
- };
- }
- return _settings;
- }, [
- _settings,
- registry,
- useUploadMediaPipeline,
- isClientSideMediaEnabled,
- isMediaUploadIntercepted
- ]);
- const { __experimentalUpdateSettings: __experimentalUpdateSettings2 } = unlock(
- (0, import_data36.useDispatch)(store)
- );
- (0, import_element94.useEffect)(() => {
- __experimentalUpdateSettings2(
- {
- ...settings2,
- __internalIsInitialized: true
- },
- {
- stripExperimentalSettings,
- reset: true
- }
- );
- }, [
- settings2,
- stripExperimentalSettings,
- __experimentalUpdateSettings2
- ]);
- const selectionRef = (0, import_element94.useRef)(props.selection);
- selectionRef.current = props.selection;
- const onChangeSelectionRef = (0, import_element94.useRef)(props.onChangeSelection ?? noop9);
- onChangeSelectionRef.current = props.onChangeSelection ?? noop9;
- const selectionContextValue = (0, import_element94.useMemo)(
- () => ({
- getSelection: () => selectionRef.current,
- onChangeSelection: (...args) => onChangeSelectionRef.current(...args)
- }),
- []
- );
- const children = /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_components31.SlotFillProvider, { passthrough: true, children: [
- !settings2?.isPreviewMode && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(keyboard_shortcuts_default.Register, {}),
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(BlockRefsProvider, { children: props.children })
- ] });
- const content = /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(SelectionContext.Provider, { value: selectionContextValue, children: [
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
- BlockSyncEffect,
- {
- clientId: props.clientId,
- value: props.value,
- onChange: props.onChange,
- onInput: props.onInput
- }
- ),
- children
- ] });
- if (useUploadMediaPipeline && !isMediaUploadIntercepted) {
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
- import_upload_media.MediaUploadProvider,
- {
- settings: mediaUploadSettings,
- useSubRegistry: false,
- children: content
- }
- );
+ function Chevron2({ orientation, className: className2 }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
+ Icon,
+ {
+ className: className2,
+ icon: orientation === "right" ? chevron_right_default : chevron_left_default
}
- return content;
- }
- );
- var BlockEditorProvider = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(ExperimentalBlockEditorProvider, { ...props, stripExperimentalSettings: true, children: props.children });
- };
- var provider_default = BlockEditorProvider;
-
- // packages/block-editor/build-module/components/block-preview/auto.mjs
- var import_compose36 = __toESM(require_compose(), 1);
- var import_data53 = __toESM(require_data(), 1);
- var import_element101 = __toESM(require_element(), 1);
- var import_components34 = __toESM(require_components(), 1);
-
- // packages/block-editor/build-module/components/iframe/index.mjs
- var import_react14 = __toESM(require_react(), 1);
- var import_element99 = __toESM(require_element(), 1);
- var import_i18n39 = __toESM(require_i18n(), 1);
- var import_compose35 = __toESM(require_compose(), 1);
- var import_components32 = __toESM(require_components(), 1);
- var import_data51 = __toESM(require_data(), 1);
-
- // packages/block-editor/build-module/components/writing-flow/index.mjs
- var import_data50 = __toESM(require_data(), 1);
- var import_i18n38 = __toESM(require_i18n(), 1);
- var import_compose33 = __toESM(require_compose(), 1);
- var import_element97 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/writing-flow/use-editable-root.mjs
- var import_data37 = __toESM(require_data(), 1);
- var import_compose21 = __toESM(require_compose(), 1);
-
- // packages/block-editor/build-module/components/writing-flow/utils.mjs
- var import_i18n36 = __toESM(require_i18n(), 1);
- var import_dom37 = __toESM(require_dom(), 1);
- var import_blocks26 = __toESM(require_blocks(), 1);
+ );
+ }
+ function NavButton({
+ className: className2,
+ "aria-disabled": ariaDisabled,
+ ...props
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
+ Button9,
+ {
+ ...props,
+ className: className2,
+ variant: "minimal",
+ tone: "neutral",
+ size: "compact",
+ disabled: ariaDisabled === true || ariaDisabled === "true",
+ focusableWhenDisabled: true
+ }
+ );
+ }
- // packages/block-editor/build-module/utils/pasting.mjs
- var import_dom36 = __toESM(require_dom(), 1);
- function removeWindowsFragments(html) {
- const startStr = "<!--StartFragment-->";
- const startIdx = html.indexOf(startStr);
- if (startIdx > -1) {
- html = html.substring(startIdx + startStr.length);
- } else {
- return html;
+ // packages/ui/build-module/calendar/utils/constants.mjs
+ var STYLE_HASH_ATTRIBUTE5 = "data-wp-hash";
+ function getRuntime5() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
}
- const endStr = "<!--EndFragment-->";
- const endIdx = html.indexOf(endStr);
- if (endIdx > -1) {
- html = html.substring(0, endIdx);
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument5(document);
}
- return html;
+ return globalScope.__wpStyleRuntime;
}
- function removeCharsetMetaTag(html) {
- const metaTag = `<meta charset='utf-8'>`;
- if (html.startsWith(metaTag)) {
- return html.slice(metaTag.length);
+ function documentContainsStyleHash5(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
}
- return html;
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE5}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE5) === hash) {
+ return true;
+ }
+ }
+ return false;
}
- function getPasteEventData({
- clipboardData
- }) {
- let plainText = "";
- let html = "";
- try {
- plainText = clipboardData.getData("text/plain");
- html = clipboardData.getData("text/html");
- } catch {
+ function injectStyle5(targetDocument, hash, css) {
+ if (!targetDocument.head) {
return;
}
- html = removeWindowsFragments(html);
- html = removeCharsetMetaTag(html);
- const files = (0, import_dom36.getFilesFromDataTransfer)(clipboardData);
- if (files.length && !shouldDismissPastedFiles(files, html)) {
- return { files };
+ const runtime = getRuntime5();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
}
- return { html, plainText, files: [] };
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash5(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE5, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
}
- function shouldDismissPastedFiles(files, html) {
- if (html && files?.length === 1 && files[0].type.indexOf("image/") === 0) {
- const IMAGE_TAG = /<\s*img\b/gi;
- if (html.match(IMAGE_TAG)?.length !== 1) {
- return true;
+ function registerDocument5(targetDocument) {
+ const runtime = getRuntime5();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
+ );
+ for (const [hash, css] of runtime.styles) {
+ injectStyle5(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- const IMG_WITH_LOCAL_SRC = /<\s*img\b[^>]*\bsrc="file:\/\//i;
- if (html.match(IMG_WITH_LOCAL_SRC)) {
- return true;
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- }
- return false;
+ runtime.documents.set(targetDocument, count - 1);
+ };
}
-
- // packages/block-editor/build-module/components/writing-flow/utils.mjs
- var requiresWrapperOnCopy = /* @__PURE__ */ Symbol("requiresWrapperOnCopy");
- function setClipboardBlocks(event, blocks2, registry) {
- let _blocks = blocks2;
- const [firstBlock] = blocks2;
- if (firstBlock) {
- const firstBlockType = registry.select(import_blocks26.store).getBlockType(firstBlock.name);
- if (firstBlockType[requiresWrapperOnCopy]) {
- const { getBlockRootClientId: getBlockRootClientId2, getBlockName: getBlockName2, getBlockAttributes: getBlockAttributes3 } = registry.select(store);
- const wrapperBlockClientId = getBlockRootClientId2(
- firstBlock.clientId
- );
- const wrapperBlockName = getBlockName2(wrapperBlockClientId);
- if (wrapperBlockName) {
- _blocks = (0, import_blocks26.createBlock)(
- wrapperBlockName,
- getBlockAttributes3(wrapperBlockClientId),
- _blocks
- );
- }
- }
+ function registerStyle5(hash, css) {
+ const runtime = getRuntime5();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle5(targetDocument, hash, css);
}
- const serialized = (0, import_blocks26.serialize)(_blocks);
- event.clipboardData.setData("text/plain", toPlainText(serialized));
- event.clipboardData.setData("text/html", serialized);
}
- function getPasteBlocks(event, canUserUseUnfilteredHTML) {
- const { plainText, html, files } = getPasteEventData(event);
- let blocks2 = [];
- if (files.length) {
- const fromTransforms = (0, import_blocks26.getBlockTransforms)("from");
- blocks2 = files.reduce((accumulator, file) => {
- const transformation = (0, import_blocks26.findTransform)(
- fromTransforms,
- (transform) => transform.type === "files" && transform.isMatch([file])
- );
- if (transformation) {
- accumulator.push(transformation.transform([file]));
- }
- return accumulator;
- }, []).flat();
- } else {
- blocks2 = (0, import_blocks26.pasteHandler)({
- HTML: html,
- plainText,
- mode: "BLOCKS",
- canUserUseUnfilteredHTML
- });
- }
- return blocks2;
+ if (typeof process === "undefined" || true) {
+ registerStyle5("6a1312fdcf", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._2c7ac60ba97b3411__root{--wp-ui-calendar-cell-size:var(--wpds-dimension-size-md,32px);--wp-ui-calendar-range-middle-background-color:color-mix(in srgb,var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);--wp-ui-calendar-preview-border-color:color-mix(in srgb,var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9)) 16%,transparent);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:inline-block;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);position:relative;z-index:0}._172c492625235710__day{padding:0;position:relative;&:has(._1b64226e315835f8__day-button:disabled){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&:has(._1b64226e315835f8__day-button:focus-visible),&:has(._1b64226e315835f8__day-button:hover:not(:disabled)){color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}}._1b64226e315835f8__day-button{align-items:center;background:none;border:none;border-radius:var(--wpds-border-radius-sm,2px);color:inherit;cursor:var(--wpds-cursor-control,pointer);display:flex;font:inherit;font-variant-numeric:tabular-nums;height:var(--wp-ui-calendar-cell-size);justify-content:center;margin:0;padding:0;position:relative;width:var(--wp-ui-calendar-cell-size);&:before{border:none;border-radius:var(--wpds-border-radius-sm,2px);z-index:-1}&:after,&:before{content:"";inset:0;position:absolute}&:after{pointer-events:none;z-index:1}&:disabled{cursor:revert;@media (forced-colors:active){text-decoration:line-through}}}._66b9a8120581fd4b__caption-label{align-items:center;border:0;display:inline-flex;position:relative;text-transform:capitalize;white-space:nowrap;z-index:1}._228eede754134437__chevron{fill:currentColor;display:inline-block;height:var(--wpds-dimension-size-2xs,16px);width:var(--wpds-dimension-size-2xs,16px)}._2c7ac60ba97b3411__root[dir=rtl] ._66b1d4a7b488b496__nav ._228eede754134437__chevron{transform:rotate(180deg);transform-origin:50%}._337e5337d49b7f3d__month-caption{align-content:center;display:flex;height:var(--wp-ui-calendar-cell-size);justify-content:center;margin-bottom:var(--wpds-dimension-gap-md,12px)}._110e46230c68e498__months{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-lg,16px);justify-content:center;max-width:fit-content;position:relative}._92915239fedb1fea__month-grid{border-collapse:separate;border-spacing:0 var(--wpds-dimension-gap-xs,4px)}._66b1d4a7b488b496__nav{align-items:center;display:flex;height:var(--wp-ui-calendar-cell-size);inset-block-start:0;inset-inline-end:0;inset-inline-start:0;justify-content:space-between;position:absolute}._7207199709ca5776__weekday{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-weight:var(--wpds-typography-font-weight-default,400);height:var(--wp-ui-calendar-cell-size);padding:0;text-align:center;text-transform:uppercase;width:var(--wp-ui-calendar-cell-size)}._058175f0f9c495e0__today:after{border:2px solid;border-radius:50%;content:"";height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0;z-index:1}.acb642920fb0bef5__selected:not(._165d91a726feca9c__range-middle){&:has(._1b64226e315835f8__day-button,._1b64226e315835f8__day-button:hover:not(:disabled)){color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0)}&:has(._1b64226e315835f8__day-button:disabled){color:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}._1b64226e315835f8__day-button{&:before{background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);border:1px solid transparent}&:disabled:before{background-color:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6)}&:hover:not(:disabled):before{background-color:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}}}.c259c5c255fda10f__outside{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}._4d8957a0ca4ec8f0__hidden{visibility:hidden}.f2523033db055ffe__range-start:not(.c04a453de7b11520__range-end) ._1b64226e315835f8__day-button{&,&:before{border-end-end-radius:0;border-start-end-radius:0}}._165d91a726feca9c__range-middle ._1b64226e315835f8__day-button{&:before{background-color:var(--wp-ui-calendar-range-middle-background-color);border-color:transparent;border-radius:0;border-style:solid;border-width:1px 0}}.c04a453de7b11520__range-end:not(.f2523033db055ffe__range-start) ._1b64226e315835f8__day-button{&,&:before{border-end-start-radius:0;border-start-start-radius:0}}._81b244e7c541d95e__preview svg{color:var(--wp-ui-calendar-preview-border-color);inset:0;pointer-events:none;position:absolute;@media (forced-colors:active){color:inherit}}._2c7ac60ba97b3411__root[dir=rtl] ._81b244e7c541d95e__preview svg{transform:scaleX(-1)}._81b244e7c541d95e__preview._165d91a726feca9c__range-middle ._1b64226e315835f8__day-button:before{border:none}@keyframes _255a1a462a5377db__slide-in-left{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes c21e45f616d6db39__slide-in-right{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes aed80001de9ae226__slide-out-left{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes _7d4779a7f29408f2__slide-out-right{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes _83ba6321b055d687__fade-in{0%{opacity:0}to{opacity:1}}@keyframes _96fbead71248d210__fade-out{0%{opacity:1}to{opacity:0}}._1563bccb09e39c30__caption-after-enter,._60ac2a7fc3208801__weeks-before-exit,._735dacf9052adecd__caption-before-exit,._7f73a6ab85101202__weeks-after-exit,._805d698b56ba4a29__weeks-after-enter,._9721326fbc23a5fb__weeks-before-enter,.c7a3082839155d29__caption-after-exit,.cb8a5ec82ad0885e__caption-before-enter{animation-duration:0s;animation-fill-mode:forwards;animation-timing-function:var(--wpds-motion-easing-balanced,cubic-bezier(.4,0,.2,1));@media not (prefers-reduced-motion){animation-duration:var(--wpds-motion-duration-lg,.3s)}}._2c7ac60ba97b3411__root[dir=rtl] ._805d698b56ba4a29__weeks-after-enter,._9721326fbc23a5fb__weeks-before-enter{animation-name:_255a1a462a5377db__slide-in-left}._2c7ac60ba97b3411__root[dir=rtl] ._7f73a6ab85101202__weeks-after-exit,._60ac2a7fc3208801__weeks-before-exit{animation-name:aed80001de9ae226__slide-out-left}._2c7ac60ba97b3411__root[dir=rtl] ._9721326fbc23a5fb__weeks-before-enter,._805d698b56ba4a29__weeks-after-enter{animation-name:c21e45f616d6db39__slide-in-right}._2c7ac60ba97b3411__root[dir=rtl] ._60ac2a7fc3208801__weeks-before-exit,._7f73a6ab85101202__weeks-after-exit{animation-name:_7d4779a7f29408f2__slide-out-right}._1563bccb09e39c30__caption-after-enter,.cb8a5ec82ad0885e__caption-before-enter{animation-name:_83ba6321b055d687__fade-in}._735dacf9052adecd__caption-before-exit,.c7a3082839155d29__caption-after-exit{animation-name:_96fbead71248d210__fade-out}}@layer compositions{._395a75bb1930f57e__nav-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset;--wp-ui-button-height:var(--wp-ui-calendar-cell-size)}}}');
}
- function toPlainText(html) {
- html = html.replace(/<br>/g, "\n");
- const plainText = (0, import_dom37.__unstableStripHTML)(html).trim();
- return plainText.replace(/\n\n+/g, "\n\n");
+ var style_default5 = { "root": "_2c7ac60ba97b3411__root", "day": "_172c492625235710__day", "day-button": "_1b64226e315835f8__day-button", "caption-label": "_66b9a8120581fd4b__caption-label", "chevron": "_228eede754134437__chevron", "nav": "_66b1d4a7b488b496__nav", "month-caption": "_337e5337d49b7f3d__month-caption", "months": "_110e46230c68e498__months", "month-grid": "_92915239fedb1fea__month-grid", "weekday": "_7207199709ca5776__weekday", "today": "_058175f0f9c495e0__today", "selected": "acb642920fb0bef5__selected", "range-middle": "_165d91a726feca9c__range-middle", "outside": "c259c5c255fda10f__outside", "hidden": "_4d8957a0ca4ec8f0__hidden", "range-start": "f2523033db055ffe__range-start", "range-end": "c04a453de7b11520__range-end", "preview": "_81b244e7c541d95e__preview", "weeks-before-enter": "_9721326fbc23a5fb__weeks-before-enter", "weeks-before-exit": "_60ac2a7fc3208801__weeks-before-exit", "weeks-after-enter": "_805d698b56ba4a29__weeks-after-enter", "weeks-after-exit": "_7f73a6ab85101202__weeks-after-exit", "caption-after-enter": "_1563bccb09e39c30__caption-after-enter", "caption-after-exit": "c7a3082839155d29__caption-after-exit", "caption-before-enter": "cb8a5ec82ad0885e__caption-before-enter", "caption-before-exit": "_735dacf9052adecd__caption-before-exit", "slide-in-left": "_255a1a462a5377db__slide-in-left", "slide-out-left": "aed80001de9ae226__slide-out-left", "slide-in-right": "c21e45f616d6db39__slide-in-right", "slide-out-right": "_7d4779a7f29408f2__slide-out-right", "fade-in": "_83ba6321b055d687__fade-in", "fade-out": "_96fbead71248d210__fade-out", "nav-button": "_395a75bb1930f57e__nav-button" };
+ if (typeof process === "undefined" || true) {
+ registerStyle5("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
}
- function setContentEditableWrapper(node, value, { focus: focus10 = true } = {}) {
- if (node.contentEditable === String(value)) {
- return value;
- }
- node.contentEditable = value;
- if (!value) {
- node.removeAttribute("role");
- node.removeAttribute("aria-multiline");
- node.removeAttribute("aria-label");
- return false;
- }
- if (!node.isContentEditable) {
- node.removeAttribute("contenteditable");
- return false;
- }
- node.setAttribute("role", "textbox");
- node.setAttribute("aria-multiline", "true");
- node.setAttribute("aria-label", (0, import_i18n36.__)("Editor canvas"));
- if (focus10) {
- node.focus({ preventScroll: true });
+ var resets_default2 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
+ if (typeof process === "undefined" || true) {
+ registerStyle5("2ffedd8246", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
+ }
+ var focus_module_default2 = { "outset-ring--focus": "af79fb116edb0dd7__outset-ring--focus", "outset-ring--focus-visible": "dfcfdc28396e5d98__outset-ring--focus-visible", "outset-ring--focus-within": "e5cd9ee879f6403a__outset-ring--focus-within", "outset-ring--focus-within-visible": "_64de9947bf305b7a__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "_81935a08e952f267__outset-ring--focus-parent-visible", "outset-ring--focus-except-active": "abc777e9713fa711__outset-ring--focus-except-active", "outset-ring--focus-within-except-active": "_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active" };
+ if (typeof process === "undefined" || true) {
+ registerStyle5("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
+ }
+ var global_css_defense_default3 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
+ var CLASSNAMES = {
+ root: clsx_default(style_default5.root, resets_default2["box-sizing"]),
+ day: style_default5.day,
+ day_button: clsx_default(
+ style_default5["day-button"],
+ global_css_defense_default3.button,
+ focus_module_default2["outset-ring--focus-visible"]
+ ),
+ outside: style_default5.outside,
+ caption_label: style_default5["caption-label"],
+ button_next: style_default5["nav-button"],
+ button_previous: style_default5["nav-button"],
+ chevron: style_default5.chevron,
+ nav: style_default5.nav,
+ month_caption: style_default5["month-caption"],
+ months: style_default5.months,
+ month_grid: style_default5["month-grid"],
+ weekday: style_default5.weekday,
+ today: style_default5.today,
+ selected: style_default5.selected,
+ /*
+ * Disabled days are styled through `:has(.day-button:disabled)` rather than
+ * a modifier class on the cell, because the two are not equivalent: the
+ * focused day keeps its button enabled so it stays reachable. Mapped to
+ * `undefined` on purpose, so `@daypicker/react` doesn't fall back to its
+ * own `rdp-disabled` class for a modifier we don't style.
+ */
+ disabled: void 0,
+ hidden: style_default5.hidden,
+ range_start: style_default5["range-start"],
+ range_end: style_default5["range-end"],
+ range_middle: style_default5["range-middle"],
+ weeks_before_enter: style_default5["weeks-before-enter"],
+ weeks_before_exit: style_default5["weeks-before-exit"],
+ weeks_after_enter: style_default5["weeks-after-enter"],
+ weeks_after_exit: style_default5["weeks-after-exit"],
+ caption_after_enter: style_default5["caption-after-enter"],
+ caption_after_exit: style_default5["caption-after-exit"],
+ caption_before_enter: style_default5["caption-before-enter"],
+ caption_before_exit: style_default5["caption-before-exit"]
+ };
+ var MODIFIER_CLASSNAMES = {
+ preview: style_default5.preview
+ };
+ var COMMON_PROPS = {
+ animate: true,
+ // Only show days in the current month
+ showOutsideDays: false,
+ // Hide week number column
+ showWeekNumber: false,
+ // Show weekdays row
+ hideWeekdays: false,
+ // Month and year caption are not interactive
+ captionLayout: "label",
+ // Show a variable number of weeks depending on the month
+ fixedWeeks: false,
+ // Show navigation buttons
+ hideNavigation: false,
+ // Class names
+ classNames: CLASSNAMES,
+ // Default role
+ role: "application",
+ components: {
+ Day: Day2,
+ Root: Root2,
+ Chevron: Chevron2,
+ PreviousMonthButton: NavButton,
+ NextMonthButton: NavButton
+ }
+ };
+
+ // packages/ui/build-module/calendar/utils/misc.mjs
+ function clampNumberOfMonths(numberOfMonths) {
+ return Math.min(3, Math.max(1, numberOfMonths));
+ }
+
+ // packages/ui/build-module/calendar/utils/use-controlled-value.mjs
+ var import_element54 = __toESM(require_element(), 1);
+ function useControlledValue2({
+ defaultValue,
+ onChange,
+ value: valueProp
+ }) {
+ const hasValue3 = typeof valueProp !== "undefined";
+ const initialValue = hasValue3 ? valueProp : defaultValue;
+ const [state, setState] = (0, import_element54.useState)(initialValue);
+ const value = hasValue3 ? valueProp : state;
+ const uncontrolledSetValue = (0, import_element54.useCallback)(
+ (nextValue, ...args) => {
+ setState(nextValue);
+ onChange?.(nextValue, ...args);
+ },
+ [onChange]
+ );
+ let setValue;
+ if (hasValue3 && typeof onChange === "function") {
+ setValue = onChange;
+ } else if (!hasValue3 && typeof onChange === "function") {
+ setValue = uncontrolledSetValue;
+ } else {
+ setValue = setState;
}
- return true;
+ return [value, setValue];
}
- // packages/block-editor/build-module/components/writing-flow/use-editable-root.mjs
- function useEditableRoot() {
- const registry = (0, import_data37.useRegistry)();
- const enabled = (0, import_data37.useSelect)((select3) => {
- const { getSelectedBlockClientId: getSelectedBlockClientId2, canHostEditableRoot: canHostEditableRoot2, isZoomOut: isZoomOut2 } = unlock(select3(store));
- return !isZoomOut2() && canHostEditableRoot2(getSelectedBlockClientId2());
- }, []);
- return (0, import_compose21.useRefEffect)(
- (node) => {
- if (!enabled) {
- return;
- }
- const {
- getSelectedBlockClientId: getSelectedBlockClientId2,
- hasMultiSelection: hasMultiSelection2,
- isMultiSelecting: isMultiSelecting3
- } = registry.select(store);
- if (!setContentEditableWrapper(node, true, { focus: false })) {
- return;
- }
- const { activeElement: activeElement2 } = node.ownerDocument;
- const selection2 = node.ownerDocument.defaultView.getSelection();
- if (activeElement2 !== node && activeElement2?.isContentEditable && node.contains(activeElement2) && getBlockClientId(activeElement2) === getSelectedBlockClientId2() && selection2.anchorNode && activeElement2.contains(selection2.anchorNode)) {
- node.focus();
- }
- return () => {
- if (hasMultiSelection2() || isMultiSelecting3()) {
- return;
- }
- setContentEditableWrapper(node, false);
- if (node.ownerDocument.activeElement === node) {
- const editable = getSelectionEditableElement(
- node.ownerDocument.defaultView.getSelection(),
- node
- );
- if (editable && getBlockClientId(editable) === getSelectedBlockClientId2()) {
- editable.focus();
+ // packages/ui/build-module/calendar/utils/use-localization-props.mjs
+ var import_i18n32 = __toESM(require_i18n(), 1);
+ var import_element55 = __toESM(require_element(), 1);
+ function isLocaleRTL(localeCode) {
+ const localeObj = new Intl.Locale(localeCode);
+ const direction = localeObj.getTextInfo?.().direction;
+ if (direction) {
+ return direction === "rtl";
+ }
+ return [
+ "ar",
+ // Arabic
+ "he",
+ // Hebrew
+ "fa",
+ // Persian (Farsi)
+ "ur",
+ // Urdu
+ "ps",
+ // Pashto
+ "syr",
+ // Syriac
+ "dv",
+ // Divehi
+ "ku",
+ // Kurdish (Sorani)
+ "ckb",
+ // Central Kurdish (Sorani)
+ "ug",
+ // Uyghur
+ "yi"
+ // Yiddish
+ ].includes(localeObj.language);
+ }
+ var useLocalizationProps = ({
+ locale,
+ timeZone,
+ mode: mode2
+ }) => {
+ return (0, import_element55.useMemo)(() => {
+ const monthNameFormatter = new Intl.DateTimeFormat(locale.code, {
+ year: "numeric",
+ month: "long",
+ timeZone
+ });
+ const weekdayNarrowFormatter = new Intl.DateTimeFormat(locale.code, {
+ weekday: "narrow",
+ timeZone
+ });
+ const weekdayLongFormatter = new Intl.DateTimeFormat(locale.code, {
+ weekday: "long",
+ timeZone
+ });
+ const fullDateFormatter = new Intl.DateTimeFormat(locale.code, {
+ weekday: "long",
+ year: "numeric",
+ month: "long",
+ day: "numeric",
+ timeZone
+ });
+ return {
+ "aria-label": mode2 === "single" ? (0, import_i18n32.__)("Date calendar") : (0, import_i18n32.__)("Date range calendar"),
+ labels: {
+ /**
+ * The label for the month grid.
+ * @param date
+ */
+ labelGrid: (date) => monthNameFormatter.format(date),
+ /**
+ * The label for the gridcell, when the calendar is not interactive.
+ * @param date
+ * @param modifiers
+ */
+ labelGridcell: (date, modifiers) => {
+ const formattedDate = fullDateFormatter.format(date);
+ let label = formattedDate;
+ if (modifiers?.today) {
+ label = (0, import_i18n32.sprintf)(
+ // translators: %s is the full date (e.g. "Monday, April 29, 2025")
+ (0, import_i18n32.__)("Today, %s"),
+ formattedDate
+ );
+ }
+ return label;
+ },
+ /** The label for the "next month" button. */
+ labelNext: () => (0, import_i18n32.__)("Go to the Next Month"),
+ /** The label for the "previous month" button. */
+ labelPrevious: () => (0, import_i18n32.__)("Go to the Previous Month"),
+ /**
+ * The label for the day button.
+ * @param date
+ * @param modifiers
+ */
+ labelDayButton: (date, modifiers) => {
+ const formattedDate = fullDateFormatter.format(date);
+ let label = formattedDate;
+ if (modifiers?.today && modifiers?.selected) {
+ return (0, import_i18n32.sprintf)(
+ // translators: %s is the full date (e.g. "Monday, April 29, 2025")
+ (0, import_i18n32.__)("Today, %s, selected"),
+ formattedDate
+ );
+ }
+ if (modifiers?.today) {
+ label = (0, import_i18n32.sprintf)(
+ // translators: %s is the full date (e.g. "Monday, April 29, 2025")
+ (0, import_i18n32.__)("Today, %s"),
+ formattedDate
+ );
+ }
+ if (modifiers?.selected) {
+ label = (0, import_i18n32.sprintf)(
+ // translators: %s is the full date (e.g. "Monday, April 29, 2025")
+ (0, import_i18n32.__)("%s, selected"),
+ formattedDate
+ );
}
+ return label;
+ },
+ /**
+ * The label for the weekday.
+ * @param date
+ */
+ labelWeekday: (date) => weekdayLongFormatter.format(date)
+ },
+ locale,
+ dir: isLocaleRTL(locale.code) ? "rtl" : "ltr",
+ formatters: {
+ formatWeekdayName: (date) => {
+ return weekdayNarrowFormatter.format(date);
+ },
+ formatCaption: (date) => {
+ return monthNameFormatter.format(date);
}
- };
- },
- [enabled, registry]
- );
- }
+ },
+ timeZone
+ };
+ }, [locale, timeZone, mode2]);
+ };
- // packages/block-editor/build-module/components/writing-flow/use-home-end.mjs
- var import_keycodes3 = __toESM(require_keycodes(), 1);
- var import_data38 = __toESM(require_data(), 1);
- var import_compose22 = __toESM(require_compose(), 1);
- function useHomeEnd() {
- const { hasMultiSelection: hasMultiSelection2 } = (0, import_data38.useSelect)(store);
- return (0, import_compose22.useRefEffect)((node) => {
- function onKeyDown(event) {
- if (event.defaultPrevented) {
- return;
- }
- if (event.keyCode !== import_keycodes3.HOME && event.keyCode !== import_keycodes3.END) {
- return;
- }
- if (event.metaKey || event.ctrlKey || event.altKey) {
- return;
- }
- if (!event.target.isContentEditable || hasMultiSelection2()) {
- return;
- }
- const selection2 = node.ownerDocument.defaultView.getSelection();
- if (!getSelectionEditableElement(selection2, node)) {
- return;
+ // packages/ui/build-module/calendar/calendar.mjs
+ var import_jsx_runtime189 = __toESM(require_jsx_runtime(), 1);
+ var Calendar = (0, import_element56.forwardRef)(
+ function Calendar2({
+ defaultValue,
+ value: valueProp,
+ onValueChange,
+ numberOfMonths = 1,
+ locale = enUS2,
+ timeZone,
+ render: render4,
+ labels: customLabels,
+ ...props
+ }, ref) {
+ const localizationProps = useLocalizationProps({
+ locale,
+ timeZone,
+ mode: "single"
+ });
+ const labels = (0, import_element56.useMemo)(
+ () => customLabels ? { ...localizationProps.labels, ...customLabels } : localizationProps.labels,
+ [localizationProps.labels, customLabels]
+ );
+ const onChange = (0, import_element56.useCallback)(
+ (selected2, triggerDate, modifiers, e2) => {
+ onValueChange?.(
+ selected2 ?? null,
+ triggerDate,
+ modifiers,
+ e2
+ );
+ },
+ [onValueChange]
+ );
+ const [selected, setSelected] = useControlledValue2({
+ defaultValue,
+ value: valueProp,
+ onChange
+ });
+ const rootContextValue = (0, import_element56.useMemo)(
+ () => ({ render: render4, ref }),
+ [render4, ref]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(RootContext.Provider, { value: rootContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
+ DayPicker,
+ {
+ ...COMMON_PROPS,
+ ...localizationProps,
+ ...props,
+ role: "application",
+ mode: "single",
+ numberOfMonths: clampNumberOfMonths(numberOfMonths),
+ labels,
+ selected: selected ?? void 0,
+ onSelect: setSelected
}
- event.preventDefault();
- selection2.modify(
- event.shiftKey ? "extend" : "move",
- event.keyCode === import_keycodes3.HOME ? "backward" : "forward",
- "lineboundary"
- );
+ ) });
+ }
+ );
+
+ // packages/ui/build-module/calendar/range-calendar.mjs
+ var import_element57 = __toESM(require_element(), 1);
+ var import_jsx_runtime190 = __toESM(require_jsx_runtime(), 1);
+ function usePreviewRange({
+ value,
+ hoveredDate,
+ excludeDisabled,
+ min: min3,
+ max: max3,
+ disabled: disabled2
+ }) {
+ return (0, import_element57.useMemo)(() => {
+ if (!hoveredDate || !value?.from) {
+ return;
}
- node.addEventListener("keydown", onKeyDown);
- return () => {
- node.removeEventListener("keydown", onKeyDown);
- };
- }, []);
+ let previewHighlight;
+ let potentialNewRange;
+ if (hoveredDate < value.from) {
+ previewHighlight = {
+ from: hoveredDate,
+ to: value.from
+ };
+ potentialNewRange = {
+ from: hoveredDate,
+ to: value.to ?? value.from
+ };
+ } else if (value.to && hoveredDate > value.from && hoveredDate < value.to) {
+ previewHighlight = {
+ from: value.from,
+ to: hoveredDate
+ };
+ potentialNewRange = {
+ from: value.from,
+ to: hoveredDate
+ };
+ } else if (hoveredDate > value.from) {
+ previewHighlight = {
+ from: value.to ?? value.from,
+ to: hoveredDate
+ };
+ potentialNewRange = {
+ from: value.from,
+ to: hoveredDate
+ };
+ }
+ if (min3 !== void 0 && min3 > 0 && potentialNewRange && differenceInCalendarDays(
+ potentialNewRange.to,
+ potentialNewRange.from
+ ) < min3) {
+ previewHighlight = {
+ from: hoveredDate,
+ to: hoveredDate
+ };
+ }
+ if (max3 !== void 0 && max3 > 0 && potentialNewRange && differenceInCalendarDays(
+ potentialNewRange.to,
+ potentialNewRange.from
+ ) > max3) {
+ previewHighlight = {
+ from: hoveredDate,
+ to: hoveredDate
+ };
+ }
+ if (excludeDisabled && disabled2 && potentialNewRange && rangeContainsModifiers(potentialNewRange, disabled2)) {
+ previewHighlight = {
+ from: hoveredDate,
+ to: hoveredDate
+ };
+ }
+ return previewHighlight;
+ }, [value, hoveredDate, excludeDisabled, min3, max3, disabled2]);
}
+ var RangeCalendar = (0, import_element57.forwardRef)(
+ function RangeCalendar2({
+ defaultValue,
+ value: valueProp,
+ onValueChange,
+ numberOfMonths = 1,
+ excludeDisabled,
+ min: min3,
+ max: max3,
+ disabled: disabled2,
+ locale = enUS2,
+ timeZone,
+ render: render4,
+ labels: customLabels,
+ ...props
+ }, ref) {
+ const localizationProps = useLocalizationProps({
+ locale,
+ timeZone,
+ mode: "range"
+ });
+ const labels = (0, import_element57.useMemo)(
+ () => customLabels ? { ...localizationProps.labels, ...customLabels } : localizationProps.labels,
+ [localizationProps.labels, customLabels]
+ );
+ const onChange = (0, import_element57.useCallback)(
+ (selected2, triggerDate, modifiers2, e2) => {
+ onValueChange?.(
+ selected2 ?? null,
+ triggerDate,
+ modifiers2,
+ e2
+ );
+ },
+ [onValueChange]
+ );
+ const [selected, setSelected] = useControlledValue2({
+ defaultValue,
+ value: valueProp,
+ onChange
+ });
+ const [hoveredDate, setHoveredDate] = (0, import_element57.useState)(
+ void 0
+ );
+ const previewRange = usePreviewRange({
+ value: selected,
+ hoveredDate,
+ excludeDisabled,
+ min: min3,
+ max: max3,
+ disabled: disabled2
+ });
+ const modifiers = (0, import_element57.useMemo)(() => {
+ return {
+ preview: previewRange,
+ preview_start: previewRange?.from,
+ preview_end: previewRange?.to
+ };
+ }, [previewRange]);
+ const rootContextValue = (0, import_element57.useMemo)(
+ () => ({ render: render4, ref }),
+ [render4, ref]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(RootContext.Provider, { value: rootContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
+ DayPicker,
+ {
+ ...COMMON_PROPS,
+ ...localizationProps,
+ ...props,
+ role: "application",
+ mode: "range",
+ numberOfMonths: clampNumberOfMonths(numberOfMonths),
+ disabled: disabled2,
+ excludeDisabled,
+ min: min3,
+ max: max3,
+ labels,
+ selected: selected ?? void 0,
+ onSelect: setSelected,
+ onDayMouseEnter: (date) => setHoveredDate(date),
+ onDayMouseLeave: () => setHoveredDate(void 0),
+ modifiers,
+ modifiersClassNames: MODIFIER_CLASSNAMES
+ }
+ ) });
+ }
+ );
- // packages/block-editor/build-module/components/writing-flow/use-multi-selection.mjs
- var import_compose23 = __toESM(require_compose(), 1);
- var import_data39 = __toESM(require_data(), 1);
- function selector(select3) {
- const {
- isMultiSelecting: isMultiSelecting3,
- getMultiSelectedBlockClientIds: getMultiSelectedBlockClientIds2,
- hasMultiSelection: hasMultiSelection2,
- getSelectedBlockClientId: getSelectedBlockClientId2,
- getSelectedBlocksInitialCaretPosition: getSelectedBlocksInitialCaretPosition2,
- __unstableIsFullySelected: __unstableIsFullySelected2
- } = select3(store);
- return {
- isMultiSelecting: isMultiSelecting3(),
- multiSelectedBlockClientIds: getMultiSelectedBlockClientIds2(),
- hasMultiSelection: hasMultiSelection2(),
- selectedBlockClientId: getSelectedBlockClientId2(),
- initialPosition: getSelectedBlocksInitialCaretPosition2(),
- isFullSelection: __unstableIsFullySelected2()
+ // packages/ui/build-module/card/index.mjs
+ var card_exports = {};
+ __export(card_exports, {
+ Content: () => Content,
+ FullBleed: () => FullBleed,
+ Header: () => Header,
+ Root: () => Root3,
+ Title: () => Title
+ });
+
+ // packages/ui/build-module/card/root.mjs
+ var import_element58 = __toESM(require_element(), 1);
+ var STYLE_HASH_ATTRIBUTE6 = "data-wp-hash";
+ function getRuntime6() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
};
+ if (typeof document !== "undefined") {
+ registerDocument6(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
- function useMultiSelection() {
- const {
- initialPosition: initialPosition2,
- isMultiSelecting: isMultiSelecting3,
- multiSelectedBlockClientIds,
- hasMultiSelection: hasMultiSelection2,
- selectedBlockClientId,
- isFullSelection
- } = (0, import_data39.useSelect)(selector, []);
- return (0, import_compose23.useRefEffect)(
- (node) => {
- const { ownerDocument: ownerDocument2 } = node;
- const { defaultView } = ownerDocument2;
- if (initialPosition2 === void 0 || initialPosition2 === null) {
- return;
- }
- if (!hasMultiSelection2 || isMultiSelecting3) {
- return;
- }
- const { length } = multiSelectedBlockClientIds;
- if (length < 2) {
- return;
- }
- if (!isFullSelection) {
- return;
- }
- setContentEditableWrapper(node, true);
- defaultView.getSelection().removeAllRanges();
- },
- [
- hasMultiSelection2,
- isMultiSelecting3,
- multiSelectedBlockClientIds,
- selectedBlockClientId,
- initialPosition2,
- isFullSelection
- ]
- );
- }
-
- // packages/block-editor/build-module/components/writing-flow/use-tab-nav.mjs
- var import_dom40 = __toESM(require_dom(), 1);
- var import_keycodes4 = __toESM(require_keycodes(), 1);
- var import_data40 = __toESM(require_data(), 1);
- var import_compose24 = __toESM(require_compose(), 1);
- var import_element95 = __toESM(require_element(), 1);
- var import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
- function useTabNav() {
- const containerRef = (
- /** @type {typeof useRef<HTMLElement>} */
- (0, import_element95.useRef)()
- );
- const focusCaptureBeforeRef = (0, import_element95.useRef)();
- const focusCaptureAfterRef = (0, import_element95.useRef)();
- const {
- hasMultiSelection: hasMultiSelection2,
- getSelectedBlockClientId: getSelectedBlockClientId2,
- getBlockCount: getBlockCount2,
- getBlockOrder: getBlockOrder2,
- getLastFocus: getLastFocus2,
- getSectionRootClientId: getSectionRootClientId2,
- isZoomOut: isZoomOut2
- } = unlock((0, import_data40.useSelect)(store));
- const { setLastFocus: setLastFocus2 } = unlock((0, import_data40.useDispatch)(store));
- const noCaptureRef = (0, import_element95.useRef)();
- function onFocusCapture(event) {
- const canvasElement = containerRef.current.ownerDocument === event.target.ownerDocument ? containerRef.current : containerRef.current.ownerDocument.defaultView.frameElement;
- if (noCaptureRef.current) {
- noCaptureRef.current = null;
- } else if (hasMultiSelection2()) {
- containerRef.current.focus();
- } else if (getSelectedBlockClientId2()) {
- if (getLastFocus2()?.current) {
- getLastFocus2().current.focus();
- } else {
- containerRef.current.querySelector(
- `[data-block="${getSelectedBlockClientId2()}"]`
- ).focus();
- }
- } else if (isZoomOut2()) {
- const sectionRootClientId = getSectionRootClientId2();
- const sectionBlocks = getBlockOrder2(sectionRootClientId);
- if (sectionBlocks.length) {
- containerRef.current.querySelector(`[data-block="${sectionBlocks[0]}"]`).focus();
- } else if (sectionRootClientId) {
- containerRef.current.querySelector(`[data-block="${sectionRootClientId}"]`).focus();
- } else {
- canvasElement.focus();
- }
- } else {
- const isBefore = (
- // eslint-disable-next-line no-bitwise
- event.target.compareDocumentPosition(canvasElement) & event.target.DOCUMENT_POSITION_FOLLOWING
- );
- const tabbables = import_dom40.focus.tabbable.find(containerRef.current);
- if (tabbables.length) {
- const next = isBefore ? tabbables[0] : tabbables[tabbables.length - 1];
- next.focus();
- }
- }
+ function documentContainsStyleHash6(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
}
- const before = /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
- "div",
- {
- ref: focusCaptureBeforeRef,
- tabIndex: "0",
- onFocus: onFocusCapture
- }
- );
- const after = /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
- "div",
- {
- ref: focusCaptureAfterRef,
- tabIndex: "0",
- onFocus: onFocusCapture
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE6}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE6) === hash) {
+ return true;
}
+ }
+ return false;
+ }
+ function injectStyle6(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime6();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash6(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE6, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument6(targetDocument) {
+ const runtime = getRuntime6();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- const ref = (0, import_compose24.useRefEffect)((node) => {
- function onKeyDown(event) {
- if (event.defaultPrevented) {
- return;
- }
- if (event.keyCode !== import_keycodes4.TAB) {
- return;
- }
- if (
- // Bails in case the focus capture elements aren’t present. They
- // may be omitted to avoid silent tab stops in preview mode.
- // See: https://github.com/WordPress/gutenberg/pull/59317
- !focusCaptureAfterRef.current || !focusCaptureBeforeRef.current
- ) {
- return;
- }
- const { target, shiftKey: isShift } = event;
- const direction = isShift ? "findPrevious" : "findNext";
- const nextTabbable = import_dom40.focus.tabbable[direction](target);
- const currentBlock = target.closest("[data-block]");
- const isElementPartOfSelectedBlock = currentBlock && nextTabbable && (isInSameBlock(currentBlock, nextTabbable) || isInsideRootBlock(currentBlock, nextTabbable));
- if ((0, import_dom40.isFormElement)(nextTabbable) && isElementPartOfSelectedBlock) {
- return;
- }
- const next = isShift ? focusCaptureBeforeRef : focusCaptureAfterRef;
- noCaptureRef.current = true;
- next.current.focus({ preventScroll: true });
- }
- function onFocusOut(event) {
- setLastFocus2({ ...getLastFocus2(), current: event.target });
- const { ownerDocument: ownerDocument22 } = node;
- if (!event.relatedTarget && event.target.hasAttribute("data-block") && ownerDocument22.activeElement === ownerDocument22.body && getBlockCount2() === 0) {
- node.focus();
- }
+ for (const [hash, css] of runtime.styles) {
+ injectStyle6(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- function preventScrollOnTab(event) {
- if (event.keyCode !== import_keycodes4.TAB) {
- return;
- }
- if (event.target?.getAttribute("role") === "region") {
- return;
- }
- if (containerRef.current === event.target) {
- return;
- }
- const isShift = event.shiftKey;
- const direction = isShift ? "findPrevious" : "findNext";
- const target = import_dom40.focus.tabbable[direction](event.target);
- if (target === focusCaptureBeforeRef.current || target === focusCaptureAfterRef.current) {
- event.preventDefault();
- target.focus({ preventScroll: true });
- }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- const { ownerDocument: ownerDocument2 } = node;
- const { defaultView } = ownerDocument2;
- defaultView.addEventListener("keydown", preventScrollOnTab);
- node.addEventListener("keydown", onKeyDown);
- node.addEventListener("focusout", onFocusOut);
- return () => {
- defaultView.removeEventListener("keydown", preventScrollOnTab);
- node.removeEventListener("keydown", onKeyDown);
- node.removeEventListener("focusout", onFocusOut);
- };
- }, []);
- const mergedRefs = (0, import_compose24.useMergeRefs)([containerRef, ref]);
- return [before, mergedRefs, after];
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle6(hash, css) {
+ const runtime = getRuntime6();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle6(targetDocument, hash, css);
+ }
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle6("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
+ }
+ var resets_default3 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
+ if (typeof process === "undefined" || true) {
+ registerStyle6("5d38cbdd27", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
}
+ var style_default6 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
+ var Root3 = (0, import_element58.forwardRef)(function Card({ render: render4, ...restProps }, ref) {
+ const mergedClassName = clsx_default(style_default6.root, resets_default3["box-sizing"]);
+ const element = useRender({
+ defaultTagName: "div",
+ render: render4,
+ ref,
+ props: mergeProps({ className: mergedClassName }, restProps)
+ });
+ return element;
+ });
- // packages/block-editor/build-module/components/writing-flow/use-arrow-nav.mjs
- var import_dom42 = __toESM(require_dom(), 1);
- var import_keycodes5 = __toESM(require_keycodes(), 1);
- var import_data41 = __toESM(require_data(), 1);
- var import_compose25 = __toESM(require_compose(), 1);
- function isNavigationCandidate(element, keyCode, hasModifier) {
- const isVertical = keyCode === import_keycodes5.UP || keyCode === import_keycodes5.DOWN;
- const { tagName } = element;
- const elementType = element.getAttribute("type");
- if (isVertical && !hasModifier) {
- if (tagName === "INPUT") {
- const verticalInputTypes = [
- "date",
- "datetime-local",
- "month",
- "number",
- "range",
- "time",
- "week"
- ];
- return !verticalInputTypes.includes(elementType);
- }
- return true;
+ // packages/ui/build-module/card/header.mjs
+ var import_element59 = __toESM(require_element(), 1);
+ var STYLE_HASH_ATTRIBUTE7 = "data-wp-hash";
+ function getRuntime7() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
}
- if (tagName === "INPUT") {
- const simpleInputTypes = [
- "button",
- "checkbox",
- "number",
- "color",
- "file",
- "image",
- "radio",
- "reset",
- "submit"
- ];
- return simpleInputTypes.includes(elementType);
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument7(document);
}
- return tagName !== "TEXTAREA";
+ return globalScope.__wpStyleRuntime;
}
- function getClosestTabbable(target, isReverse, containerElement, onlyVertical) {
- let focusableNodes = import_dom42.focus.focusable.find(containerElement);
- if (isReverse) {
- focusableNodes.reverse();
+ function documentContainsStyleHash7(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
}
- focusableNodes = focusableNodes.slice(
- focusableNodes.indexOf(target) + 1
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE7}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE7) === hash) {
+ return true;
+ }
+ }
+ return false;
+ }
+ function injectStyle7(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime7();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash7(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE7, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument7(targetDocument) {
+ const runtime = getRuntime7();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- let targetRect;
- if (onlyVertical) {
- targetRect = target.getBoundingClientRect();
+ for (const [hash, css] of runtime.styles) {
+ injectStyle7(targetDocument, hash, css);
}
- function isTabCandidate(node) {
- if (node.contentEditable !== "true" && getBlockClientId(node) && import_dom42.focus.focusable.find(node).filter((element) => !(0, import_dom42.isFormElement)(element)).length !== 0) {
- return false;
- }
- if (!import_dom42.focus.tabbable.isTabbableIndex(node)) {
- return false;
- }
- if (node.isContentEditable && node.contentEditable !== "true" && getBlockClientId(node.closest('[contenteditable="true"]'))) {
- return false;
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- if (onlyVertical) {
- const nodeRect = node.getBoundingClientRect();
- if (nodeRect.left >= targetRect.right || nodeRect.right <= targetRect.left) {
- return false;
- }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- return true;
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle7(hash, css) {
+ const runtime = getRuntime7();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle7(targetDocument, hash, css);
}
- return focusableNodes.find(isTabCandidate);
}
- function useArrowNav() {
- const {
- getMultiSelectedBlocksStartClientId: getMultiSelectedBlocksStartClientId2,
- getMultiSelectedBlocksEndClientId: getMultiSelectedBlocksEndClientId2,
- getNextBlockClientId: getNextBlockClientId2,
- getPreviousBlockClientId: getPreviousBlockClientId2,
- getSelectedBlockClientId: getSelectedBlockClientId2,
- getSelectionStart: getSelectionStart2,
- getSettings: getSettings7,
- hasMultiSelection: hasMultiSelection2,
- __unstableIsFullySelected: __unstableIsFullySelected2
- } = (0, import_data41.useSelect)(store);
- const { selectBlock: selectBlock2, multiSelect: multiSelect2 } = (0, import_data41.useDispatch)(store);
- return (0, import_compose25.useRefEffect)((node) => {
- let verticalRect;
- function onMouseDown() {
- verticalRect = null;
- }
- function isClosestTabbableABlock(target, isReverse) {
- const closestTabbable = getClosestTabbable(
- target,
- isReverse,
- node
- );
- return closestTabbable && getBlockClientId(closestTabbable);
- }
- function onKeyDown(event) {
- if (event.defaultPrevented) {
- return;
- }
- const { keyCode, shiftKey, ctrlKey, altKey, metaKey } = event;
- const target = event.target === node && getSelectionEditableElement(
- node.ownerDocument.defaultView.getSelection(),
- node
- ) || event.target;
- const isUp = keyCode === import_keycodes5.UP;
- const isDown = keyCode === import_keycodes5.DOWN;
- const isLeft = keyCode === import_keycodes5.LEFT;
- const isRight = keyCode === import_keycodes5.RIGHT;
- const isReverse = isUp || isLeft;
- const isHorizontal = isLeft || isRight;
- const isVertical = isUp || isDown;
- const isNav = isHorizontal || isVertical;
- const hasModifier = shiftKey || ctrlKey || altKey || metaKey;
- const isNavEdge = isVertical ? import_dom42.isVerticalEdge : import_dom42.isHorizontalEdge;
- const { ownerDocument: ownerDocument2 } = node;
- const { defaultView } = ownerDocument2;
- if (!isNav) {
- return;
- }
- if (getSettings7().isPreviewMode) {
- return;
- }
- if (hasMultiSelection2()) {
- if (shiftKey) {
- const selection2 = defaultView.getSelection();
- if (__unstableIsFullySelected2() && (!selection2.rangeCount || selection2.isCollapsed)) {
- const anchorClientId = getMultiSelectedBlocksStartClientId2();
- const focusClientId = getMultiSelectedBlocksEndClientId2();
- const nextClientId = isReverse ? getPreviousBlockClientId2(focusClientId) : getNextBlockClientId2(focusClientId);
- if (nextClientId) {
- multiSelect2(anchorClientId, nextClientId);
- event.preventDefault();
- }
- }
- return;
- }
- if (!__unstableIsFullySelected2()) {
- return;
- }
- event.preventDefault();
- if (isReverse) {
- selectBlock2(getMultiSelectedBlocksStartClientId2());
- } else {
- selectBlock2(getMultiSelectedBlocksEndClientId2(), -1);
- }
- return;
- }
- if (shiftKey && getSelectedBlockClientId2() && !getSelectionStart2().attributeKey) {
- const selectedClientId = getSelectedBlockClientId2();
- const nextClientId = isReverse ? getPreviousBlockClientId2(selectedClientId) : getNextBlockClientId2(selectedClientId);
- if (nextClientId) {
- multiSelect2(selectedClientId, nextClientId);
- event.preventDefault();
- }
- return;
- }
- if (!isNavigationCandidate(target, keyCode, hasModifier)) {
- return;
- }
- if (!isVertical) {
- verticalRect = null;
- } else if (!verticalRect) {
- verticalRect = (0, import_dom42.computeCaretRect)(defaultView);
- }
- const isReverseDir = (0, import_dom42.isRTL)(target) ? !isReverse : isReverse;
- const { keepCaretInsideBlock } = getSettings7();
- if (shiftKey) {
- if (isNavEdge(target, isReverse)) {
- if (isClosestTabbableABlock(target, isReverse)) {
- setContentEditableWrapper(node, true);
- } else if (node.contentEditable === "true") {
- const selection2 = defaultView.getSelection();
- selection2.extend(
- target,
- isReverse ? 0 : target.childNodes.length
- );
- event.preventDefault();
- }
- }
- } else if (isVertical && (0, import_dom42.isVerticalEdge)(target, isReverse) && // When Alt is pressed, only intercept if the caret is also at
- // the horizontal edge.
- (altKey ? (0, import_dom42.isHorizontalEdge)(target, isReverseDir) : true) && !keepCaretInsideBlock) {
- const closestTabbable = getClosestTabbable(
- target,
- isReverse,
- node,
- true
- );
- if (closestTabbable) {
- (0, import_dom42.placeCaretAtVerticalEdge)(
- closestTabbable,
- // When Alt is pressed, place the caret at the furthest
- // horizontal edge and the furthest vertical edge.
- altKey ? !isReverse : isReverse,
- altKey ? void 0 : verticalRect
- );
- event.preventDefault();
- }
- } else if (isHorizontal && defaultView.getSelection().isCollapsed && (0, import_dom42.isHorizontalEdge)(target, isReverseDir) && !keepCaretInsideBlock) {
- const closestTabbable = getClosestTabbable(
- target,
- isReverseDir,
- node
- );
- (0, import_dom42.placeCaretAtHorizontalEdge)(closestTabbable, isReverse);
- event.preventDefault();
- }
- }
- node.addEventListener("mousedown", onMouseDown);
- node.addEventListener("keydown", onKeyDown);
- return () => {
- node.removeEventListener("mousedown", onMouseDown);
- node.removeEventListener("keydown", onKeyDown);
- };
- }, []);
+ if (typeof process === "undefined" || true) {
+ registerStyle7("5d38cbdd27", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
}
+ var style_default7 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
+ var Header = (0, import_element59.forwardRef)(
+ function CardHeader({ render: render4, ...props }, ref) {
+ const element = useRender({
+ defaultTagName: "div",
+ render: render4,
+ ref,
+ props: mergeProps({ className: style_default7.header }, props)
+ });
+ return element;
+ }
+ );
- // packages/block-editor/build-module/components/writing-flow/use-preview-mode-nav.mjs
- var import_compose26 = __toESM(require_compose(), 1);
- var import_data42 = __toESM(require_data(), 1);
- var import_keycodes6 = __toESM(require_keycodes(), 1);
- function usePreviewModeNav() {
- const isPreviewMode = (0, import_data42.useSelect)(
- (select3) => select3(store).getSettings().isPreviewMode,
- []
- );
- return (0, import_compose26.useRefEffect)(
- (node) => {
- if (!isPreviewMode) {
- return;
- }
- function onKeyDown(event) {
- const { keyCode, shiftKey, target } = event;
- const isTab = keyCode === import_keycodes6.TAB;
- const isUp = keyCode === import_keycodes6.UP;
- const isDown = keyCode === import_keycodes6.DOWN;
- const isLeft = keyCode === import_keycodes6.LEFT;
- const isRight = keyCode === import_keycodes6.RIGHT;
- const isArrow = isUp || isDown || isLeft || isRight;
- if (!isTab && !isArrow) {
- return;
- }
- const isReverse = isTab ? shiftKey : isUp || isLeft;
- const blocks2 = Array.from(
- node.querySelectorAll("[data-block]")
- );
- if (!blocks2.length) {
- return;
- }
- const currentBlock = target.closest("[data-block]");
- const currentIndex = currentBlock ? blocks2.indexOf(currentBlock) : -1;
- if (currentIndex === -1) {
- return;
- }
- if (isTab) {
- if (isReverse && currentIndex === 0) {
- return;
- }
- if (!isReverse && currentIndex === blocks2.length - 1) {
- return;
- }
- }
- let nextIndex;
- if (isReverse) {
- nextIndex = currentIndex <= 0 ? blocks2.length - 1 : currentIndex - 1;
- } else {
- nextIndex = currentIndex === -1 || currentIndex >= blocks2.length - 1 ? 0 : currentIndex + 1;
- }
- event.preventDefault();
- blocks2[nextIndex].focus();
- }
- node.addEventListener("keydown", onKeyDown);
- return () => {
- node.removeEventListener("keydown", onKeyDown);
- };
- },
- [isPreviewMode]
- );
+ // packages/ui/build-module/card/content.mjs
+ var import_element60 = __toESM(require_element(), 1);
+ var STYLE_HASH_ATTRIBUTE8 = "data-wp-hash";
+ function getRuntime8() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument8(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
-
- // packages/block-editor/build-module/components/writing-flow/use-select-all.mjs
- var import_dom44 = __toESM(require_dom(), 1);
- var import_data43 = __toESM(require_data(), 1);
- var import_keyboard_shortcuts5 = __toESM(require_keyboard_shortcuts(), 1);
- var import_compose27 = __toESM(require_compose(), 1);
- function useSelectAll() {
- const { getBlockOrder: getBlockOrder2, getSelectedBlockClientIds: getSelectedBlockClientIds2, getBlockRootClientId: getBlockRootClientId2 } = (0, import_data43.useSelect)(store);
- const { multiSelect: multiSelect2, selectBlock: selectBlock2 } = (0, import_data43.useDispatch)(store);
- const isMatch = (0, import_keyboard_shortcuts5.__unstableUseShortcutEventMatch)();
- return (0, import_compose27.useRefEffect)((node) => {
- function onKeyDown(event) {
- if (!isMatch("core/block-editor/select-all", event)) {
- return;
- }
- const selectedClientIds = getSelectedBlockClientIds2();
- const { ownerDocument: ownerDocument2 } = node;
- const selection2 = ownerDocument2.defaultView.getSelection();
- const editable = event.target === node && getSelectionEditableElement(selection2, node) || event.target;
- if (selectedClientIds.length < 2 && !(0, import_dom44.isEntirelySelected)(editable)) {
- if (event.target === node && editable !== node) {
- event.preventDefault();
- const range2 = ownerDocument2.createRange();
- range2.selectNodeContents(editable);
- selection2.removeAllRanges();
- selection2.addRange(range2);
- ownerDocument2.dispatchEvent(
- new Event("selectionchange")
- );
- }
- return;
- }
- event.preventDefault();
- const [firstSelectedClientId] = selectedClientIds;
- const activeClientId = getBlockClientId(
- ownerDocument2.activeElement
- );
- if (activeClientId && activeClientId !== firstSelectedClientId && !isInsideRootBlock(
- ownerDocument2.getElementById(
- "block-" + firstSelectedClientId
- ),
- ownerDocument2.activeElement
- )) {
- selectBlock2(activeClientId);
- return;
- }
- const rootClientId = getBlockRootClientId2(firstSelectedClientId);
- const blockClientIds = getBlockOrder2(rootClientId);
- if (selectedClientIds.length === blockClientIds.length) {
- if (rootClientId) {
- node.ownerDocument.defaultView.getSelection().removeAllRanges();
- selectBlock2(rootClientId);
- }
- return;
- }
- multiSelect2(
- blockClientIds[0],
- blockClientIds[blockClientIds.length - 1]
- );
+ function documentContainsStyleHash8(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE8}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE8) === hash) {
+ return true;
}
- node.addEventListener("keydown", onKeyDown);
- return () => {
- node.removeEventListener("keydown", onKeyDown);
- };
- }, []);
+ }
+ return false;
}
-
- // packages/block-editor/build-module/components/writing-flow/use-drag-selection.mjs
- var import_data44 = __toESM(require_data(), 1);
- var import_compose28 = __toESM(require_compose(), 1);
- function useDragSelection() {
- const { startMultiSelect: startMultiSelect2, stopMultiSelect: stopMultiSelect2 } = (0, import_data44.useDispatch)(store);
- const {
- getSettings: getSettings7,
- isSelectionEnabled: isSelectionEnabled3,
- hasSelectedBlock: hasSelectedBlock2,
- isDraggingBlocks: isDraggingBlocks2,
- isMultiSelecting: isMultiSelecting3
- } = (0, import_data44.useSelect)(store);
- return (0, import_compose28.useRefEffect)(
- (node) => {
- const { ownerDocument: ownerDocument2 } = node;
- const { defaultView } = ownerDocument2;
- let anchorElement;
- let rafId2;
- function onMouseUp() {
- stopMultiSelect2();
- defaultView.removeEventListener("mouseup", onMouseUp);
- rafId2 = defaultView.requestAnimationFrame(() => {
- if (!hasSelectedBlock2()) {
- return;
- }
- setContentEditableWrapper(node, false);
- const selection2 = defaultView.getSelection();
- if (selection2.rangeCount) {
- const range2 = selection2.getRangeAt(0);
- const { commonAncestorContainer } = range2;
- const clonedRange = range2.cloneRange();
- if (anchorElement.contains(commonAncestorContainer)) {
- anchorElement.focus();
- selection2.removeAllRanges();
- selection2.addRange(clonedRange);
- }
- }
- });
- }
- let lastMouseDownTarget;
- function onMouseDown({ target }) {
- lastMouseDownTarget = target;
- }
- function onMouseLeave({ buttons, target, relatedTarget }) {
- if (!target.contains(lastMouseDownTarget)) {
- return;
- }
- if (target.contains(relatedTarget)) {
- return;
- }
- if (isDraggingBlocks2()) {
- return;
- }
- if (buttons !== 1) {
- return;
- }
- if (isMultiSelecting3()) {
- return;
- }
- if (node === target) {
- return;
- }
- if (target.getAttribute("contenteditable") !== "true" && !getSettings7().isPreviewMode) {
- return;
- }
- if (!isSelectionEnabled3()) {
- return;
- }
- anchorElement = target;
- startMultiSelect2();
- defaultView.addEventListener("mouseup", onMouseUp);
- setContentEditableWrapper(node, true);
- }
- node.addEventListener("mouseout", onMouseLeave);
- node.addEventListener("mousedown", onMouseDown);
- return () => {
- node.removeEventListener("mouseout", onMouseLeave);
- defaultView.removeEventListener("mouseup", onMouseUp);
- defaultView.cancelAnimationFrame(rafId2);
- };
- },
- [
- startMultiSelect2,
- stopMultiSelect2,
- isSelectionEnabled3,
- hasSelectedBlock2
- ]
- );
+ function injectStyle8(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime8();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash8(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE8, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
}
-
- // packages/block-editor/build-module/components/writing-flow/use-selection-observer.mjs
- var import_data45 = __toESM(require_data(), 1);
- var import_compose29 = __toESM(require_compose(), 1);
- var import_rich_text4 = __toESM(require_rich_text(), 1);
- var import_dom46 = __toESM(require_dom(), 1);
- var { ownsSelection } = unlock(import_rich_text4.privateApis);
- function extractSelectionStartNode(selection2) {
- const { anchorNode, anchorOffset } = selection2;
- if (anchorNode.nodeType === anchorNode.TEXT_NODE) {
- return anchorNode;
+ function registerDocument8(targetDocument) {
+ const runtime = getRuntime8();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
+ );
+ for (const [hash, css] of runtime.styles) {
+ injectStyle8(targetDocument, hash, css);
}
- if (anchorOffset === 0) {
- return anchorNode;
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
+ }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
+ }
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle8(hash, css) {
+ const runtime = getRuntime8();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle8(targetDocument, hash, css);
}
- return anchorNode.childNodes[anchorOffset - 1];
}
- function extractSelectionEndNode(selection2, isTripleClick) {
- const { focusNode, focusOffset } = selection2;
- if (focusNode.nodeType === focusNode.TEXT_NODE) {
- return focusNode;
+ if (typeof process === "undefined" || true) {
+ registerStyle8("5d38cbdd27", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
+ }
+ var style_default8 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
+ var Content = (0, import_element60.forwardRef)(
+ function CardContent({ render: render4, ...props }, ref) {
+ const element = useRender({
+ defaultTagName: "div",
+ render: render4,
+ ref,
+ props: mergeProps({ className: style_default8.content }, props)
+ });
+ return element;
}
- if (focusOffset === focusNode.childNodes.length) {
- return focusNode;
+ );
+
+ // packages/ui/build-module/card/full-bleed.mjs
+ var import_element61 = __toESM(require_element(), 1);
+ var STYLE_HASH_ATTRIBUTE9 = "data-wp-hash";
+ function getRuntime9() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
}
- if (focusOffset === 0 && (0, import_dom46.isSelectionForward)(selection2) && isTripleClick) {
- return focusNode.previousSibling ?? focusNode.parentElement;
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument9(document);
}
- return focusNode.childNodes[focusOffset];
+ return globalScope.__wpStyleRuntime;
}
- function findDepth(a2, b2) {
- let depth = 0;
- while (a2[depth] === b2[depth]) {
- depth++;
+ function documentContainsStyleHash9(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
}
- return depth;
- }
- function getRichTextElement(node) {
- const element = node.nodeType === node.ELEMENT_NODE ? node : node.parentElement;
- return element?.closest("[data-wp-block-attribute-key]");
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE9}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE9) === hash) {
+ return true;
+ }
+ }
+ return false;
}
- function useSelectionObserver() {
- const {
- multiSelect: multiSelect2,
- selectBlock: selectBlock2,
- selectionChange: selectionChange2,
- startMultiSelect: startMultiSelect2,
- stopMultiSelect: stopMultiSelect2
- } = (0, import_data45.useDispatch)(store);
- const {
- getBlockParents: getBlockParents2,
- getBlockSelectionStart: getBlockSelectionStart2,
- isMultiSelecting: isMultiSelecting3,
- getSelectionStart: getSelectionStart2,
- getSelectionEnd: getSelectionEnd2,
- getSelectedBlockClientId: getSelectedBlockClientId2,
- canHostEditableRoot: canHostEditableRoot2
- } = unlock((0, import_data45.useSelect)(store));
- return (0, import_compose29.useRefEffect)(
- (node) => {
- const { ownerDocument: ownerDocument2 } = node;
- const { defaultView } = ownerDocument2;
- let isTripleClick = false;
- function onMouseDown(event) {
- isTripleClick = event.detail === 3;
- if (event.shiftKey) {
- startMultiSelect2();
- }
- }
- function onKeyDown() {
- isTripleClick = false;
- }
- function onSelectionChange(event) {
- const selection2 = defaultView.getSelection();
- if (!selection2.rangeCount) {
- return;
- }
- const startNode = extractSelectionStartNode(selection2);
- const endNode = extractSelectionEndNode(
- selection2,
- isTripleClick
- );
- if (!node.contains(startNode) || !node.contains(endNode)) {
- return;
- }
- const isClickShift = event.shiftKey && event.type === "mouseup";
- if (selection2.isCollapsed && !isClickShift) {
- const collapsedClientId = getBlockClientId(startNode);
- if (!isMultiSelecting3() && collapsedClientId && // Only keep the wrapper editable when the collapsed
- // selection is in the block that is actually selected.
- // A stale native selection may linger in a previously
- // selected editable root block (e.g. Firefox does not
- // always move it), which must not re-enable the wrapper
- // after another block has been selected.
- collapsedClientId === getSelectedBlockClientId2() && canHostEditableRoot2(collapsedClientId)) {
- setContentEditableWrapper(node, true);
- const { activeElement: activeElement2 } = ownerDocument2;
- if (activeElement2 !== node && activeElement2?.isContentEditable && node.contains(activeElement2) && getBlockClientId(activeElement2) === collapsedClientId) {
- node.focus();
- }
- return;
- }
- if (node.contentEditable === "true" && !isMultiSelecting3()) {
- setContentEditableWrapper(node, false);
- let element = startNode.nodeType === startNode.ELEMENT_NODE ? startNode : startNode.parentElement;
- element = element?.closest("[contenteditable]");
- element?.focus();
- }
- return;
- }
- let startClientId = getBlockClientId(startNode);
- let endClientId = getBlockClientId(endNode);
- if (isClickShift) {
- const selectedClientId = getBlockSelectionStart2();
- const clickedClientId = getBlockClientId(event.target);
- const focusNodeIsNonSelectable = clickedClientId !== endClientId;
- if (startClientId === endClientId && selection2.isCollapsed || !endClientId || focusNodeIsNonSelectable) {
- endClientId = clickedClientId;
- }
- if (startClientId !== selectedClientId) {
- startClientId = selectedClientId;
- }
- }
- if (startClientId === void 0 && endClientId === void 0) {
- setContentEditableWrapper(node, false);
- return;
- }
- if (event.type === "mouseup" && !event.shiftKey && !isMultiSelecting3() && startClientId === endClientId) {
- const clickedClientId = getBlockClientId(event.target);
- if (clickedClientId && clickedClientId !== startClientId) {
- selection2.removeAllRanges();
- return;
- }
- }
- const isSingularSelection = startClientId === endClientId;
- if (isSingularSelection) {
- if (!isMultiSelecting3()) {
- const richTextElement = !selection2.isCollapsed && (getRichTextElement(startNode) || getRichTextElement(endNode));
- if (richTextElement && // The rich text instance syncs the selection
- // itself when its element is editable and owns the
- // selection (also through a focused editing host).
- // It may be temporarily non-editable while a drag
- // that started outside it is in progress (see
- // rich-text's preventFocusCapture).
- (richTextElement.contentEditable !== "true" || ownerDocument2.activeElement !== richTextElement && !ownsSelection(richTextElement))) {
- const range2 = selection2.getRangeAt(0);
- const richTextData = (0, import_rich_text4.create)({
- element: richTextElement,
- range: range2,
- __unstableIsEditableTree: true
- });
- const selectionUpdate = {
- start: {
- clientId: startClientId,
- attributeKey: richTextElement.dataset.wpBlockAttributeKey,
- offset: richTextData.start ?? 0
- },
- end: {
- clientId: startClientId,
- attributeKey: richTextElement.dataset.wpBlockAttributeKey,
- // Clamp the end offset to the element. A
- // forward selection can overshoot past the
- // rich text (e.g. a triple click extends
- // into the next block at offset 0), leaving
- // `end` undefined; that means the selection
- // reaches through the end of this element's
- // content.
- offset: richTextData.end ?? richTextData.text.length
- }
- };
- const { start: start2, end } = selectionUpdate;
- const selectionStart = getSelectionStart2();
- const selectionEnd = getSelectionEnd2();
- if (selectionStart.clientId !== start2.clientId || selectionEnd.clientId !== end.clientId || selectionStart.attributeKey !== start2.attributeKey || selectionStart.offset !== start2.offset || selectionEnd.offset !== end.offset) {
- selectionChange2(selectionUpdate);
- }
- } else {
- selectBlock2(startClientId);
- }
- } else {
- multiSelect2(startClientId, startClientId);
- }
- } else {
- const startPath = [
- ...getBlockParents2(startClientId),
- startClientId
- ];
- const endPath = [
- ...getBlockParents2(endClientId),
- endClientId
- ];
- const depth = findDepth(startPath, endPath);
- const isAncestorDescendant = depth >= startPath.length || depth >= endPath.length;
- if (!isAncestorDescendant && (startPath[depth] !== startClientId || endPath[depth] !== endClientId)) {
- multiSelect2(startPath[depth], endPath[depth]);
- return;
- }
- const richTextElementStart = getRichTextElement(startNode);
- const richTextElementEnd = getRichTextElement(endNode);
- if (richTextElementStart && richTextElementEnd) {
- const range2 = selection2.getRangeAt(0);
- const richTextDataStart = (0, import_rich_text4.create)({
- element: richTextElementStart,
- range: range2,
- __unstableIsEditableTree: true
- });
- const richTextDataEnd = (0, import_rich_text4.create)({
- element: richTextElementEnd,
- range: range2,
- __unstableIsEditableTree: true
- });
- const startOffset = richTextDataStart.start ?? richTextDataStart.end;
- const endOffset = richTextDataEnd.start ?? richTextDataEnd.end;
- selectionChange2({
- start: {
- clientId: startClientId,
- attributeKey: richTextElementStart.dataset.wpBlockAttributeKey,
- offset: startOffset
- },
- end: {
- clientId: endClientId,
- attributeKey: richTextElementEnd.dataset.wpBlockAttributeKey,
- offset: endOffset
- }
- });
- } else {
- multiSelect2(startClientId, endClientId);
- }
- }
- }
- function ensureMultiBlockSelectionSync(event) {
- const selection2 = defaultView.getSelection();
- if (!selection2.rangeCount || selection2.isCollapsed) {
- return;
- }
- const startClientId = getBlockClientId(
- extractSelectionStartNode(selection2)
- );
- const endClientId = getBlockClientId(
- extractSelectionEndNode(selection2, isTripleClick)
- );
- if (startClientId !== endClientId) {
- onSelectionChange(event);
- }
- }
- ownerDocument2.addEventListener(
- "selectionchange",
- onSelectionChange
- );
- function onMouseUp(event) {
- onSelectionChange(event);
- stopMultiSelect2();
- }
- defaultView.addEventListener("mouseup", onMouseUp);
- node.addEventListener("mousedown", onMouseDown);
- node.addEventListener("keydown", onKeyDown);
- ownerDocument2.addEventListener(
- "copy",
- ensureMultiBlockSelectionSync,
- true
- );
- ownerDocument2.addEventListener(
- "cut",
- ensureMultiBlockSelectionSync,
- true
- );
- ownerDocument2.addEventListener(
- "paste",
- ensureMultiBlockSelectionSync,
- true
- );
- return () => {
- ownerDocument2.removeEventListener(
- "selectionchange",
- onSelectionChange
- );
- defaultView.removeEventListener("mouseup", onMouseUp);
- node.removeEventListener("mousedown", onMouseDown);
- node.removeEventListener("keydown", onKeyDown);
- ownerDocument2.removeEventListener(
- "copy",
- ensureMultiBlockSelectionSync,
- true
- );
- ownerDocument2.removeEventListener(
- "cut",
- ensureMultiBlockSelectionSync,
- true
- );
- ownerDocument2.removeEventListener(
- "paste",
- ensureMultiBlockSelectionSync,
- true
- );
- };
- },
- [multiSelect2, selectBlock2, selectionChange2, getBlockParents2]
- );
+ function injectStyle9(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime9();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash9(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE9, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
}
-
- // packages/block-editor/build-module/components/writing-flow/use-click-selection.mjs
- var import_data46 = __toESM(require_data(), 1);
- var import_compose30 = __toESM(require_compose(), 1);
- function useClickSelection() {
- const { selectBlock: selectBlock2 } = (0, import_data46.useDispatch)(store);
- const {
- isSelectionEnabled: isSelectionEnabled3,
- getBlockSelectionStart: getBlockSelectionStart2,
- getSelectionStart: getSelectionStart2,
- hasMultiSelection: hasMultiSelection2
- } = (0, import_data46.useSelect)(store);
- return (0, import_compose30.useRefEffect)(
- (node) => {
- function onMouseDown(event) {
- if (!isSelectionEnabled3() || event.button !== 0) {
- return;
- }
- const startClientId = getBlockSelectionStart2();
- const clickedClientId = getBlockClientId(event.target);
- if (event.shiftKey) {
- if (startClientId && startClientId !== clickedClientId) {
- const { clientId, attributeKey } = getSelectionStart2();
- setContentEditableWrapper(node, true, {
- focus: !!attributeKey
- });
- const { ownerDocument: ownerDocument2 } = node;
- const selection2 = ownerDocument2.defaultView.getSelection();
- const blockElement = !attributeKey && ownerDocument2.getElementById(
- `block-${clientId}`
- );
- if (blockElement && !(selection2.anchorNode && blockElement.contains(selection2.anchorNode))) {
- const isForward = (
- // eslint-disable-next-line no-bitwise
- blockElement.compareDocumentPosition(
- event.target
- ) & node.DOCUMENT_POSITION_FOLLOWING
- );
- selection2.setPosition(
- blockElement,
- isForward ? 0 : blockElement.childNodes.length
- );
- }
- }
- } else if (hasMultiSelection2()) {
- selectBlock2(clickedClientId);
- }
- }
- node.addEventListener("mousedown", onMouseDown);
- return () => {
- node.removeEventListener("mousedown", onMouseDown);
- };
- },
- [
- selectBlock2,
- isSelectionEnabled3,
- getBlockSelectionStart2,
- getSelectionStart2,
- hasMultiSelection2
- ]
+ function registerDocument9(targetDocument) {
+ const runtime = getRuntime9();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
+ for (const [hash, css] of runtime.styles) {
+ injectStyle9(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
+ }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
+ }
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle9(hash, css) {
+ const runtime = getRuntime9();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle9(targetDocument, hash, css);
+ }
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle9("5d38cbdd27", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._02872bf298eadc43__root{--wp-ui-card-padding:var(--wpds-dimension-padding-2xl,24px);--wp-ui-card-header-content-gap:var(--wpds-dimension-gap-xl,24px);--wp-ui-card-header-content-margin:calc(var(--wp-ui-card-header-content-gap) - var(--wp-ui-card-padding));background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:var(--wpds-border-radius-lg,8px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;overflow:clip}._5dffdaf2a6e669ac__content,.bbccc92e6ba5662d__header{padding:var(--wp-ui-card-padding);&:not(:first-child):not(:last-child){padding-block-end:0}}.bbccc92e6ba5662d__header+._5dffdaf2a6e669ac__content{margin-block-start:var(--wp-ui-card-header-content-margin);padding-block-start:0}.c1fa192587e1b4a6__fullbleed{margin-inline:calc(var(--wp-ui-card-padding)*-1);width:calc(100% + var(--wp-ui-card-padding)*2)}._02872bf298eadc43__root>:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):first-child>.c1fa192587e1b4a6__fullbleed:first-child{margin-block-start:calc(var(--wp-ui-card-padding)*-1)}:is(.bbccc92e6ba5662d__header,._5dffdaf2a6e669ac__content):last-child>.c1fa192587e1b4a6__fullbleed:last-child{margin-block-end:calc(var(--wp-ui-card-padding)*-1)}}}");
}
+ var style_default9 = { "root": "_02872bf298eadc43__root", "header": "bbccc92e6ba5662d__header", "content": "_5dffdaf2a6e669ac__content", "fullbleed": "c1fa192587e1b4a6__fullbleed" };
+ var FullBleed = (0, import_element61.forwardRef)(
+ function CardFullBleed({ render: render4, ...props }, ref) {
+ const element = useRender({
+ defaultTagName: "div",
+ render: render4,
+ ref,
+ props: mergeProps(
+ { className: style_default9.fullbleed },
+ props
+ )
+ });
+ return element;
+ }
+ );
- // packages/block-editor/build-module/components/writing-flow/use-input.mjs
- var import_data47 = __toESM(require_data(), 1);
- var import_compose31 = __toESM(require_compose(), 1);
- var import_keycodes7 = __toESM(require_keycodes(), 1);
- var import_blocks27 = __toESM(require_blocks(), 1);
- function useInput() {
- const {
- __unstableIsFullySelected: __unstableIsFullySelected2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getSelectedBlockClientId: getSelectedBlockClientId2,
- __unstableIsSelectionMergeable: __unstableIsSelectionMergeable2,
- hasMultiSelection: hasMultiSelection2,
- getBlockName: getBlockName2,
- canInsertBlockType: canInsertBlockType2,
- getBlockRootClientId: getBlockRootClientId2,
- getSelectionStart: getSelectionStart2,
- getSelectionEnd: getSelectionEnd2,
- getBlockAttributes: getBlockAttributes3
- } = (0, import_data47.useSelect)(store);
- const {
- replaceBlocks: replaceBlocks2,
- __unstableSplitSelection: __unstableSplitSelection2,
- removeBlocks: removeBlocks2,
- __unstableDeleteSelection: __unstableDeleteSelection2,
- __unstableExpandSelection: __unstableExpandSelection2,
- __unstableMarkAutomaticChange: __unstableMarkAutomaticChange2
- } = (0, import_data47.useDispatch)(store);
- return (0, import_compose31.useRefEffect)((node) => {
- function onBeforeInput(event) {
- if (node.contentEditable !== "true") {
- return;
- }
- if (hasMultiSelection2()) {
- event.preventDefault();
- return;
+ // packages/ui/build-module/card/title.mjs
+ var import_element62 = __toESM(require_element(), 1);
+ var import_jsx_runtime191 = __toESM(require_jsx_runtime(), 1);
+ var DEFAULT_TAG = /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", {});
+ var Title = (0, import_element62.forwardRef)(
+ function CardTitle({ render: render4 = DEFAULT_TAG, children, ...props }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
+ Text,
+ {
+ ref,
+ variant: "heading-lg",
+ render: render4,
+ ...props,
+ children
}
- const selection2 = node.ownerDocument.defaultView.getSelection();
- if (!getSelectionEditableElement(selection2, node)) {
- event.preventDefault();
+ );
+ }
+ );
+
+ // packages/ui/build-module/collapsible/panel.mjs
+ var import_element63 = __toESM(require_element(), 1);
+ var import_jsx_runtime192 = __toESM(require_jsx_runtime(), 1);
+ var Panel = (0, import_element63.forwardRef)(
+ function CollapsiblePanel3(props, forwardedRef) {
+ return /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(index_parts_exports.Panel, { ref: forwardedRef, ...props });
+ }
+ );
+
+ // packages/ui/build-module/collapsible/root.mjs
+ var import_element64 = __toESM(require_element(), 1);
+ var import_jsx_runtime193 = __toESM(require_jsx_runtime(), 1);
+ var Root4 = (0, import_element64.forwardRef)(
+ function CollapsibleRoot3(props, forwardedRef) {
+ return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(index_parts_exports.Root, { ref: forwardedRef, ...props });
+ }
+ );
+
+ // packages/ui/build-module/collapsible/trigger.mjs
+ var import_element65 = __toESM(require_element(), 1);
+ var import_jsx_runtime194 = __toESM(require_jsx_runtime(), 1);
+ var Trigger = (0, import_element65.forwardRef)(
+ function CollapsibleTrigger3(props, forwardedRef) {
+ return /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(index_parts_exports.Trigger, { ref: forwardedRef, ...props });
+ }
+ );
+
+ // packages/ui/build-module/collapsible-card/index.mjs
+ var collapsible_card_exports = {};
+ __export(collapsible_card_exports, {
+ Content: () => Content2,
+ Header: () => Header2,
+ HeaderDescription: () => HeaderDescription,
+ Root: () => Root32
+ });
+
+ // packages/ui/build-module/collapsible-card/root.mjs
+ var import_element66 = __toESM(require_element(), 1);
+ var import_jsx_runtime195 = __toESM(require_jsx_runtime(), 1);
+ var Root32 = (0, import_element66.forwardRef)(
+ function CollapsibleCardRoot({ render: render4, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
+ Root4,
+ {
+ ref,
+ render: /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(Root3, { render: render4 }),
+ ...restProps
}
+ );
+ }
+ );
+
+ // packages/ui/build-module/collapsible-card/header.mjs
+ var import_element68 = __toESM(require_element(), 1);
+
+ // packages/ui/build-module/collapsible-card/context.mjs
+ var import_element67 = __toESM(require_element(), 1);
+ var HeaderDescriptionIdContext = (0, import_element67.createContext)({
+ setDescriptionId: () => {
+ }
+ });
+
+ // packages/ui/build-module/collapsible-card/header.mjs
+ var import_jsx_runtime196 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE10 = "data-wp-hash";
+ function getRuntime10() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument10(document);
+ }
+ return globalScope.__wpStyleRuntime;
+ }
+ function documentContainsStyleHash10(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE10}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE10) === hash) {
+ return true;
}
- function onKeyDown(event) {
- if (event.defaultPrevented) {
- return;
- }
- if (!hasMultiSelection2()) {
- if (event.keyCode === import_keycodes7.ENTER) {
- if (event.shiftKey || __unstableIsFullySelected2()) {
- return;
- }
- const clientId = getSelectedBlockClientId2();
- const blockName = getBlockName2(clientId);
- const selectionStart = getSelectionStart2();
- const selectionEnd = getSelectionEnd2();
- if (selectionStart.attributeKey === selectionEnd.attributeKey) {
- const selectedAttributeValue = getBlockAttributes3(clientId)[selectionStart.attributeKey];
- const transforms = (0, import_blocks27.getBlockTransforms)("from").filter(
- ({ type }) => type === "enter"
- );
- const transformation = (0, import_blocks27.findTransform)(
- transforms,
- (item) => {
- return item.regExp.test(
- selectedAttributeValue
- );
- }
- );
- if (transformation) {
- replaceBlocks2(
- clientId,
- transformation.transform({
- content: selectedAttributeValue
- })
- );
- __unstableMarkAutomaticChange2();
- return;
- }
- }
- if (!(0, import_blocks27.hasBlockSupport)(blockName, "splitting", false) && !event.__deprecatedOnSplit) {
- return;
- }
- if (canInsertBlockType2(
- (0, import_blocks27.getDefaultBlockName)(),
- getBlockRootClientId2(clientId)
- ) || canInsertBlockType2(
- blockName,
- getBlockRootClientId2(clientId)
- )) {
- __unstableSplitSelection2();
- event.preventDefault();
- }
- }
- return;
- }
- if (event.keyCode === import_keycodes7.ENTER) {
- setContentEditableWrapper(node, false);
- event.preventDefault();
- if (__unstableIsFullySelected2()) {
- replaceBlocks2(
- getSelectedBlockClientIds2(),
- (0, import_blocks27.createBlock)((0, import_blocks27.getDefaultBlockName)())
- );
- } else {
- __unstableSplitSelection2();
- }
- } else if (event.keyCode === import_keycodes7.BACKSPACE || event.keyCode === import_keycodes7.DELETE) {
- setContentEditableWrapper(node, false);
- event.preventDefault();
- if (__unstableIsFullySelected2()) {
- removeBlocks2(getSelectedBlockClientIds2());
- } else if (__unstableIsSelectionMergeable2()) {
- __unstableDeleteSelection2(event.keyCode === import_keycodes7.DELETE);
- } else {
- __unstableExpandSelection2();
- }
- } else if (
- // If key.length is longer than 1, it's a control key that doesn't
- // input anything.
- event.key.length === 1 && !(event.metaKey || event.ctrlKey)
- ) {
- setContentEditableWrapper(node, false);
- if (__unstableIsSelectionMergeable2()) {
- __unstableDeleteSelection2(event.keyCode === import_keycodes7.DELETE);
- } else {
- event.preventDefault();
- node.ownerDocument.defaultView.getSelection().removeAllRanges();
- }
- }
+ }
+ return false;
+ }
+ function injectStyle10(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime10();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash10(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE10, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument10(targetDocument) {
+ const runtime = getRuntime10();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
+ );
+ for (const [hash, css] of runtime.styles) {
+ injectStyle10(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- function onCompositionStart(event) {
- if (!hasMultiSelection2()) {
- return;
- }
- setContentEditableWrapper(node, false);
- if (__unstableIsSelectionMergeable2()) {
- __unstableDeleteSelection2();
- } else {
- event.preventDefault();
- node.ownerDocument.defaultView.getSelection().removeAllRanges();
- }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- node.addEventListener("beforeinput", onBeforeInput);
- node.addEventListener("keydown", onKeyDown);
- node.addEventListener("compositionstart", onCompositionStart);
- return () => {
- node.removeEventListener("beforeinput", onBeforeInput);
- node.removeEventListener("keydown", onKeyDown);
- node.removeEventListener("compositionstart", onCompositionStart);
- };
- }, []);
+ runtime.documents.set(targetDocument, count - 1);
+ };
}
-
- // packages/block-editor/build-module/components/writing-flow/use-clipboard-handler.mjs
- var import_blocks29 = __toESM(require_blocks(), 1);
- var import_dom50 = __toESM(require_dom(), 1);
- var import_data49 = __toESM(require_data(), 1);
- var import_compose32 = __toESM(require_compose(), 1);
-
- // packages/block-editor/build-module/utils/use-notify-copy.mjs
- var import_element96 = __toESM(require_element(), 1);
- var import_blocks28 = __toESM(require_blocks(), 1);
- var import_data48 = __toESM(require_data(), 1);
- var import_i18n37 = __toESM(require_i18n(), 1);
- var import_notices4 = __toESM(require_notices(), 1);
- function useNotifyCopy() {
- const { getBlockName: getBlockName2 } = (0, import_data48.useSelect)(store);
- const { getBlockType: getBlockType30 } = (0, import_data48.useSelect)(import_blocks28.store);
- const { createSuccessNotice } = (0, import_data48.useDispatch)(import_notices4.store);
- return (0, import_element96.useCallback)(
- (eventType, selectedBlockClientIds) => {
- let notice = "";
- if (eventType === "copyStyles") {
- notice = (0, import_i18n37.__)("Styles copied to clipboard.");
- } else if (selectedBlockClientIds.length === 1) {
- const clientId = selectedBlockClientIds[0];
- const title = getBlockType30(getBlockName2(clientId))?.title;
- if (eventType === "copy") {
- notice = (0, import_i18n37.sprintf)(
- // Translators: %s: Name of the block being copied, e.g. "Paragraph".
- (0, import_i18n37.__)('Copied "%s" to clipboard.'),
- title
- );
- } else {
- notice = (0, import_i18n37.sprintf)(
- // Translators: %s: Name of the block being cut, e.g. "Paragraph".
- (0, import_i18n37.__)('Moved "%s" to clipboard.'),
- title
- );
- }
- } else if (eventType === "copy") {
- notice = (0, import_i18n37.sprintf)(
- // Translators: %d: Number of blocks being copied.
- (0, import_i18n37._n)(
- "Copied %d block to clipboard.",
- "Copied %d blocks to clipboard.",
- selectedBlockClientIds.length
- ),
- selectedBlockClientIds.length
- );
- } else {
- notice = (0, import_i18n37.sprintf)(
- // Translators: %d: Number of blocks being moved.
- (0, import_i18n37._n)(
- "Moved %d block to clipboard.",
- "Moved %d blocks to clipboard.",
- selectedBlockClientIds.length
- ),
- selectedBlockClientIds.length
- );
- }
- createSuccessNotice(notice, {
- type: "snackbar"
- });
- },
- [createSuccessNotice, getBlockName2, getBlockType30]
- );
+ function registerStyle10(hash, css) {
+ const runtime = getRuntime10();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle10(targetDocument, hash, css);
+ }
}
-
- // packages/block-editor/build-module/components/writing-flow/use-clipboard-handler.mjs
- function useClipboardHandler() {
- const registry = (0, import_data49.useRegistry)();
- const {
- getBlocksByClientId: getBlocksByClientId2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- hasMultiSelection: hasMultiSelection2,
- getSettings: getSettings7,
- getBlockName: getBlockName2,
- __unstableIsFullySelected: __unstableIsFullySelected2,
- __unstableIsSelectionCollapsed: __unstableIsSelectionCollapsed2,
- __unstableIsSelectionMergeable: __unstableIsSelectionMergeable2,
- __unstableGetSelectedBlocksWithPartialSelection: __unstableGetSelectedBlocksWithPartialSelection2,
- canInsertBlockType: canInsertBlockType2,
- getBlockRootClientId: getBlockRootClientId2
- } = (0, import_data49.useSelect)(store);
- const {
- flashBlock: flashBlock2,
- removeBlocks: removeBlocks2,
- replaceBlocks: replaceBlocks2,
- __unstableDeleteSelection: __unstableDeleteSelection2,
- __unstableExpandSelection: __unstableExpandSelection2,
- __unstableSplitSelection: __unstableSplitSelection2
- } = (0, import_data49.useDispatch)(store);
- const notifyCopy = useNotifyCopy();
- return (0, import_compose32.useRefEffect)((node) => {
- function handler(event) {
- if (event.defaultPrevented) {
- return;
- }
- const selectedBlockClientIds = getSelectedBlockClientIds2();
- if (selectedBlockClientIds.length === 0) {
- return;
- }
- if (!hasMultiSelection2()) {
- const { target } = event;
- const { ownerDocument: ownerDocument2 } = target;
- const hasSelection = event.type === "copy" || event.type === "cut" ? (0, import_dom50.documentHasUncollapsedSelection)(ownerDocument2) : (0, import_dom50.documentHasSelection)(ownerDocument2) && !ownerDocument2.activeElement.isContentEditable;
- if (hasSelection) {
- return;
- }
- }
- const { activeElement: activeElement2 } = event.target.ownerDocument;
- if (!node.contains(activeElement2)) {
- return;
- }
- const isSelectionMergeable = __unstableIsSelectionMergeable2();
- const shouldHandleWholeBlocks = __unstableIsSelectionCollapsed2() || __unstableIsFullySelected2();
- const expandSelectionIsNeeded = !shouldHandleWholeBlocks && !isSelectionMergeable;
- if (event.type === "copy" || event.type === "cut") {
- event.preventDefault();
- if (selectedBlockClientIds.length === 1) {
- flashBlock2(selectedBlockClientIds[0]);
- }
- if (expandSelectionIsNeeded) {
- __unstableExpandSelection2();
- } else {
- notifyCopy(event.type, selectedBlockClientIds);
- let blocks2;
- if (shouldHandleWholeBlocks) {
- blocks2 = getBlocksByClientId2(selectedBlockClientIds);
- } else {
- const [head, tail] = __unstableGetSelectedBlocksWithPartialSelection2();
- const inBetweenBlocks = getBlocksByClientId2(
- selectedBlockClientIds.slice(
- 1,
- selectedBlockClientIds.length - 1
+ if (typeof process === "undefined" || true) {
+ registerStyle10("78199613cf", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");
+ }
+ var style_default10 = { "heading-wrapper": "_626190151275d6d3__heading-wrapper", "header-content": "cab17c7a373cb60d__header-content", "header-trigger-positioner": "dd89d27c4f15912d__header-trigger-positioner", "header-trigger-wrapper": "bcfab5f2448bafef__header-trigger-wrapper", "header-trigger": "_3106f8d2b0330faa__header-trigger", "header": "_5d2dfcb4085c6d0f__header", "content": "e34cf37ccd0d81e0__content", "overflow-visible": "_03cfdbcd710393c9__overflow-visible", "content-inner": "_41bfdbf7b6c087c2__content-inner" };
+ if (typeof process === "undefined" || true) {
+ registerStyle10("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
+ }
+ var global_css_defense_default4 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
+ if (typeof process === "undefined" || true) {
+ registerStyle10("2ffedd8246", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
+ }
+ var focus_module_default3 = { "outset-ring--focus": "af79fb116edb0dd7__outset-ring--focus", "outset-ring--focus-visible": "dfcfdc28396e5d98__outset-ring--focus-visible", "outset-ring--focus-within": "e5cd9ee879f6403a__outset-ring--focus-within", "outset-ring--focus-within-visible": "_64de9947bf305b7a__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "_81935a08e952f267__outset-ring--focus-parent-visible", "outset-ring--focus-except-active": "abc777e9713fa711__outset-ring--focus-except-active", "outset-ring--focus-within-except-active": "_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active" };
+ var Header2 = (0, import_element68.forwardRef)(
+ function CollapsibleCardHeader({ children, className: className2, render: render4, ...restProps }, ref) {
+ const [descriptionId, setDescriptionId] = (0, import_element68.useState)();
+ const contextValue = (0, import_element68.useMemo)(
+ () => ({ setDescriptionId }),
+ [setDescriptionId]
+ );
+ return useRender({
+ defaultTagName: "div",
+ render: render4,
+ ref,
+ props: mergeProps(restProps, {
+ className: clsx_default(
+ global_css_defense_default4.heading,
+ style_default10["heading-wrapper"],
+ className2
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(HeaderDescriptionIdContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)(
+ Trigger,
+ {
+ className: style_default10.header,
+ render: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(Header, {}),
+ nativeButton: false,
+ "aria-describedby": descriptionId,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { className: style_default10["header-content"], children }),
+ /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
+ "div",
+ {
+ className: clsx_default(
+ style_default10["header-trigger-positioner"]
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
+ "div",
+ {
+ className: clsx_default(
+ style_default10["header-trigger-wrapper"],
+ global_css_defense_default4.div,
+ // While the interactive trigger element is the whole header,
+ // the focus ring will be displayed only on the icon to visually
+ // emulate it being the button.
+ focus_module_default3["outset-ring--focus-parent-visible"]
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
+ Icon,
+ {
+ icon: chevron_down_default,
+ className: style_default10["header-trigger"]
+ }
+ )
+ }
+ )
+ }
)
- );
- blocks2 = [head, ...inBetweenBlocks, tail];
- }
- setClipboardBlocks(event, blocks2, registry);
- }
- }
- if (event.type === "cut") {
- if (shouldHandleWholeBlocks && !expandSelectionIsNeeded) {
- removeBlocks2(selectedBlockClientIds);
- } else {
- setContentEditableWrapper(
- event.target.ownerDocument.activeElement,
- false
- );
- __unstableDeleteSelection2();
- }
- } else if (event.type === "paste") {
- const {
- __experimentalCanUserUseUnfilteredHTML: canUserUseUnfilteredHTML,
- mediaUpload: mediaUpload2
- } = getSettings7();
- const isInternal = event.clipboardData.getData("rich-text") === "true";
- if (isInternal) {
- return;
- }
- const { plainText, html, files } = getPasteEventData(event);
- const isFullySelected = __unstableIsFullySelected2();
- let blocks2 = [];
- if (files.length) {
- if (!mediaUpload2) {
- event.preventDefault();
- return;
- }
- const fromTransforms = (0, import_blocks29.getBlockTransforms)("from");
- blocks2 = files.reduce((accumulator, file) => {
- const transformation = (0, import_blocks29.findTransform)(
- fromTransforms,
- (transform) => transform.type === "files" && transform.isMatch([file])
- );
- if (transformation) {
- accumulator.push(
- transformation.transform([file])
- );
- }
- return accumulator;
- }, []).flat();
- } else {
- blocks2 = (0, import_blocks29.pasteHandler)({
- HTML: html,
- plainText,
- mode: isFullySelected ? "BLOCKS" : "AUTO",
- canUserUseUnfilteredHTML
- });
- }
- if (typeof blocks2 === "string") {
- return;
- }
- if (isFullySelected) {
- replaceBlocks2(
- selectedBlockClientIds,
- blocks2,
- blocks2.length - 1,
- -1
- );
- event.preventDefault();
- return;
- }
- if (!hasMultiSelection2() && !(0, import_blocks29.hasBlockSupport)(
- getBlockName2(selectedBlockClientIds[0]),
- "splitting",
- false
- ) && !event.__deprecatedOnSplit) {
- return;
- }
- const [firstSelectedClientId] = selectedBlockClientIds;
- const rootClientId = getBlockRootClientId2(
- firstSelectedClientId
- );
- const newBlocks = [];
- for (const block of blocks2) {
- if (canInsertBlockType2(block.name, rootClientId)) {
- newBlocks.push(block);
- } else {
- const rootBlockName = getBlockName2(rootClientId);
- const switchedBlocks = block.name !== rootBlockName ? (0, import_blocks29.switchToBlockType)(block, rootBlockName) : [block];
- if (!switchedBlocks) {
- return;
- }
- for (const switchedBlock of switchedBlocks) {
- for (const innerBlock of switchedBlock.innerBlocks) {
- newBlocks.push(innerBlock);
- }
- }
+ ]
}
- }
- __unstableSplitSelection2(newBlocks);
- event.preventDefault();
- }
- }
- node.ownerDocument.addEventListener("copy", handler);
- node.ownerDocument.addEventListener("cut", handler);
- node.ownerDocument.addEventListener("paste", handler);
- return () => {
- node.ownerDocument.removeEventListener("copy", handler);
- node.ownerDocument.removeEventListener("cut", handler);
- node.ownerDocument.removeEventListener("paste", handler);
- };
- }, []);
- }
+ ) })
+ })
+ });
+ }
+ );
- // packages/block-editor/build-module/components/writing-flow/index.mjs
- var import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
- function useWritingFlow() {
- const [before, ref, after] = useTabNav();
- const hasMultiSelection2 = (0, import_data50.useSelect)(
- (select3) => select3(store).hasMultiSelection(),
- []
- );
- return [
- before,
- (0, import_compose33.useMergeRefs)([
+ // packages/ui/build-module/collapsible-card/header-description.mjs
+ var import_element69 = __toESM(require_element(), 1);
+ var import_jsx_runtime197 = __toESM(require_jsx_runtime(), 1);
+ var HeaderDescription = (0, import_element69.forwardRef)(function CollapsibleCardHeaderDescription({ children, className: className2, ...restProps }, ref) {
+ const descriptionId = (0, import_element69.useId)();
+ const { setDescriptionId } = (0, import_element69.useContext)(HeaderDescriptionIdContext);
+ (0, import_element69.useEffect)(() => {
+ setDescriptionId(descriptionId);
+ return () => setDescriptionId(void 0);
+ }, [descriptionId, setDescriptionId]);
+ return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
+ "div",
+ {
ref,
- useEditableRootEventHandlers(),
- useClipboardHandler(),
- useInput(),
- useEditableRoot(),
- useHomeEnd(),
- useDragSelection(),
- useSelectionObserver(),
- useClickSelection(),
- useMultiSelection(),
- useSelectAll(),
- useArrowNav(),
- usePreviewModeNav(),
- (0, import_compose33.useRefEffect)(
- (node) => {
- node.tabIndex = 0;
- node.dataset.hasMultiSelection = hasMultiSelection2;
- if (!hasMultiSelection2) {
- return () => {
- delete node.dataset.hasMultiSelection;
- };
- }
- node.setAttribute(
- "aria-label",
- (0, import_i18n38.__)("Multiple selected blocks")
- );
- return () => {
- delete node.dataset.hasMultiSelection;
- if (node.contentEditable === "true") {
- node.setAttribute(
- "aria-label",
- (0, import_i18n38.__)("Editor canvas")
- );
- } else {
- node.removeAttribute("aria-label");
- }
- };
- },
- [hasMultiSelection2]
- )
- ]),
- after
- ];
+ id: descriptionId,
+ "aria-hidden": "true",
+ className: className2,
+ ...restProps,
+ children
+ }
+ );
+ });
+
+ // packages/ui/build-module/collapsible-card/content.mjs
+ var import_element70 = __toESM(require_element(), 1);
+ var import_jsx_runtime198 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE11 = "data-wp-hash";
+ function getRuntime11() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument11(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
- function WritingFlow({ children, ...props }, forwardedRef) {
- const [before, ref, after] = useWritingFlow();
- return /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(import_jsx_runtime221.Fragment, { children: [
- before,
- /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
- "div",
- {
- ...props,
- ref: (0, import_compose33.useMergeRefs)([ref, forwardedRef]),
- className: clsx_default(
- props.className,
- "block-editor-writing-flow"
- ),
- children
- }
- ),
- after
- ] });
+ function documentContainsStyleHash11(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE11}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE11) === hash) {
+ return true;
+ }
+ }
+ return false;
}
- var writing_flow_default = (0, import_element97.forwardRef)(WritingFlow);
-
- // packages/block-editor/build-module/components/iframe/get-compatibility-styles.mjs
- var compatibilityStyles = null;
- function getCompatibilityStyles() {
- if (compatibilityStyles) {
- return compatibilityStyles;
+ function injectStyle11(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
}
- compatibilityStyles = Array.from(document.styleSheets).reduce(
- (accumulator, styleSheet) => {
- try {
- styleSheet.cssRules;
- } catch {
- return accumulator;
- }
- const { ownerNode, cssRules } = styleSheet;
- if (ownerNode === null) {
- return accumulator;
- }
- if (!cssRules) {
- return accumulator;
- }
- if (ownerNode.id.startsWith("wp-")) {
- return accumulator;
- }
- if (!ownerNode.id) {
- return accumulator;
- }
- function matchFromRules(_cssRules) {
- return Array.from(_cssRules).find(
- ({
- selectorText,
- conditionText,
- cssRules: __cssRules
- }) => {
- if (conditionText) {
- return matchFromRules(__cssRules);
- }
- return selectorText && (selectorText.includes(
- ".editor-styles-wrapper"
- ) || selectorText.includes(".wp-block"));
- }
- );
- }
- if (matchFromRules(cssRules)) {
- const isInline = ownerNode.tagName === "STYLE";
- if (isInline) {
- const mainStylesCssId = ownerNode.id.replace(
- "-inline-css",
- "-css"
- );
- const mainStylesElement = document.getElementById(mainStylesCssId);
- if (mainStylesElement) {
- accumulator.push(mainStylesElement.cloneNode(true));
- }
- }
- accumulator.push(ownerNode.cloneNode(true));
- if (!isInline) {
- const inlineStylesCssId = ownerNode.id.replace(
- "-css",
- "-inline-css"
- );
- const inlineStylesElement = document.getElementById(inlineStylesCssId);
- if (inlineStylesElement) {
- accumulator.push(
- inlineStylesElement.cloneNode(true)
- );
- }
- }
- }
- return accumulator;
- },
- []
- );
- return compatibilityStyles;
- }
-
- // packages/block-editor/build-module/components/iframe/use-scale-canvas.mjs
- var import_element98 = __toESM(require_element(), 1);
- var import_compose34 = __toESM(require_compose(), 1);
- function calculateScale({
- frameSize,
- containerWidth,
- maxContainerWidth,
- scaleContainerWidth
- }) {
- return (Math.min(containerWidth, maxContainerWidth) - frameSize * 2) / scaleContainerWidth;
- }
- function computeScrollHeightNext(transitionFrom, transitionTo) {
- const { scaleValue: prevScale, scrollHeight: prevScrollHeight } = transitionFrom;
- const { frameSize, scaleValue } = transitionTo;
- return prevScrollHeight * (scaleValue / prevScale) + frameSize * 2;
+ const runtime = getRuntime11();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash11(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE11, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
}
- function computeScrollTopNext(transitionFrom, transitionTo) {
- const {
- containerHeight: prevContainerHeight,
- frameSize: prevFrameSize,
- scaleValue: prevScale,
- scrollTop: prevScrollTop
- } = transitionFrom;
- const { containerHeight, frameSize, scaleValue, scrollHeight } = transitionTo;
- let scrollTopNext = prevScrollTop;
- scrollTopNext = (scrollTopNext + prevContainerHeight / 2 - prevFrameSize) / prevScale - prevContainerHeight / 2;
- scrollTopNext = (scrollTopNext + containerHeight / 2) * scaleValue + frameSize - containerHeight / 2;
- scrollTopNext = prevScrollTop <= prevFrameSize ? 0 : scrollTopNext;
- const maxScrollTop = scrollHeight - containerHeight;
- return Math.round(
- Math.min(Math.max(0, scrollTopNext), Math.max(0, maxScrollTop))
+ function registerDocument11(targetDocument) {
+ const runtime = getRuntime11();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- }
- function getAnimationKeyframes(transitionFrom, transitionTo) {
- const {
- scaleValue: prevScale,
- frameSize: prevFrameSize,
- scrollTop
- } = transitionFrom;
- const { scaleValue, frameSize, scrollTop: scrollTopNext } = transitionTo;
- return [
- {
- translate: `0 0`,
- scale: prevScale,
- paddingTop: `${prevFrameSize / prevScale}px`,
- paddingBottom: `${prevFrameSize / prevScale}px`
- },
- {
- translate: `0 ${scrollTop - scrollTopNext}px`,
- scale: scaleValue,
- paddingTop: `${frameSize / scaleValue}px`,
- paddingBottom: `${frameSize / scaleValue}px`
+ for (const [hash, css] of runtime.styles) {
+ injectStyle11(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- ];
- }
- function useScaleCanvas({
- frameSize,
- iframeDocument,
- maxContainerWidth = 750,
- scale
- }) {
- const [contentResizeListener, { height: contentHeight }] = (0, import_compose34.useResizeObserver)();
- const [
- containerResizeListener,
- { width: containerWidth, height: containerHeight }
- ] = (0, import_compose34.useResizeObserver)();
- const initialContainerWidthRef = (0, import_element98.useRef)(0);
- const isZoomedOut = scale !== 1;
- const prefersReducedMotion = (0, import_compose34.useReducedMotion)();
- const isAutoScaled = scale === "auto-scaled";
- const startAnimationRef = (0, import_element98.useRef)(false);
- const animationRef = (0, import_element98.useRef)(null);
- (0, import_element98.useEffect)(() => {
- if (!isZoomedOut) {
- initialContainerWidthRef.current = containerWidth;
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- }, [containerWidth, isZoomedOut]);
- const scaleContainerWidth = Math.max(
- initialContainerWidthRef.current,
- containerWidth
- );
- const scaleValue = isAutoScaled ? calculateScale({
- frameSize,
- containerWidth,
- maxContainerWidth,
- scaleContainerWidth
- }) : scale;
- const transitionFromRef = (0, import_element98.useRef)({
- scaleValue,
- frameSize,
- containerHeight: 0,
- scrollTop: 0,
- scrollHeight: 0
- });
- const transitionToRef = (0, import_element98.useRef)({
- scaleValue,
- frameSize,
- containerHeight: 0,
- scrollTop: 0,
- scrollHeight: 0
- });
- const startZoomOutAnimation = (0, import_element98.useCallback)(() => {
- const { scrollTop } = transitionFromRef.current;
- const { scrollTop: scrollTopNext } = transitionToRef.current;
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-scroll-top",
- `${scrollTop}px`
- );
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-scroll-top-next",
- `${scrollTopNext}px`
- );
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-overflow-behavior",
- transitionFromRef.current.scrollHeight === transitionFromRef.current.containerHeight ? "auto" : "scroll"
- );
- iframeDocument.documentElement.classList.add("zoom-out-animation");
- return iframeDocument.documentElement.animate(
- getAnimationKeyframes(
- transitionFromRef.current,
- transitionToRef.current
- ),
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle11(hash, css) {
+ const runtime = getRuntime11();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle11(targetDocument, hash, css);
+ }
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle11("78199613cf", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._626190151275d6d3__heading-wrapper{--_gcd-heading-color:inherit;--_gcd-heading-font-size:inherit;--_gcd-heading-font-weight:inherit;--_gcd-heading-margin:0;font-family:inherit;line-height:inherit}.cab17c7a373cb60d__header-content{flex:1;min-width:0}.dd89d27c4f15912d__header-trigger-positioner{align-self:center;flex-shrink:0;max-height:0;overflow:visible}.bcfab5f2448bafef__header-trigger-wrapper{border-radius:var(--wpds-border-radius-sm,2px);display:flex;translate:0 -50%}._3106f8d2b0330faa__header-trigger{@media not (prefers-reduced-motion){transition:rotate .15s ease-out}}._5d2dfcb4085c6d0f__header[data-panel-open] ._3106f8d2b0330faa__header-trigger{rotate:180deg}._5d2dfcb4085c6d0f__header[data-disabled] ._3106f8d2b0330faa__header-trigger{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.e34cf37ccd0d81e0__content{height:var(--collapsible-panel-height);margin-block-start:var(--wp-ui-card-header-content-margin);overflow:hidden;&._03cfdbcd710393c9__overflow-visible{overflow:visible}&[hidden]:not([hidden=until-found]){display:none}&[data-ending-style],&[data-starting-style]{height:0}@media not (prefers-reduced-motion){transition:all .15s ease-out}}}@layer compositions{._41bfdbf7b6c087c2__content-inner{padding-block-start:0}._5d2dfcb4085c6d0f__header{align-items:stretch;display:flex;flex-direction:row;gap:var(--wpds-dimension-gap-sm,8px);outline:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}}}}");
+ }
+ var style_default11 = { "heading-wrapper": "_626190151275d6d3__heading-wrapper", "header-content": "cab17c7a373cb60d__header-content", "header-trigger-positioner": "dd89d27c4f15912d__header-trigger-positioner", "header-trigger-wrapper": "bcfab5f2448bafef__header-trigger-wrapper", "header-trigger": "_3106f8d2b0330faa__header-trigger", "header": "_5d2dfcb4085c6d0f__header", "content": "e34cf37ccd0d81e0__content", "overflow-visible": "_03cfdbcd710393c9__overflow-visible", "content-inner": "_41bfdbf7b6c087c2__content-inner" };
+ var Content2 = (0, import_element70.forwardRef)(
+ function CollapsibleCardContent({ className: className2, render: render4, children, hiddenUntilFound = true, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
+ Panel,
{
- easing: "cubic-bezier(0.46, 0.03, 0.52, 0.96)",
- duration: 400
+ ref,
+ className: (state) => clsx_default(
+ style_default11.content,
+ state.open && state.transitionStatus === "idle" && style_default11["overflow-visible"],
+ className2
+ ),
+ hiddenUntilFound,
+ ...restProps,
+ children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
+ Content,
+ {
+ className: style_default11["content-inner"],
+ render: render4,
+ children
+ }
+ )
}
);
- }, [iframeDocument]);
- const finishZoomOutAnimation = (0, import_element98.useCallback)(() => {
- startAnimationRef.current = false;
- animationRef.current = null;
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-scale",
- transitionToRef.current.scaleValue
- );
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-frame-size",
- `${transitionToRef.current.frameSize}px`
- );
- iframeDocument.documentElement.classList.remove("zoom-out-animation");
- iframeDocument.documentElement.scrollTop = transitionToRef.current.scrollTop;
- iframeDocument.documentElement.style.removeProperty(
- "--wp-block-editor-iframe-zoom-out-scroll-top"
- );
- iframeDocument.documentElement.style.removeProperty(
- "--wp-block-editor-iframe-zoom-out-scroll-top-next"
- );
- iframeDocument.documentElement.style.removeProperty(
- "--wp-block-editor-iframe-zoom-out-overflow-behavior"
+ }
+ );
+
+ // packages/ui/build-module/utils/render-slot-with-children.mjs
+ var import_element71 = __toESM(require_element(), 1);
+ function renderSlotWithChildren(slot, defaultSlot, children) {
+ return (0, import_element71.cloneElement)(slot ?? defaultSlot, { children });
+ }
+
+ // packages/ui/build-module/utils/theme-provider.mjs
+ var theme = __toESM(require_theme(), 1);
+
+ // packages/ui/build-module/lock-unlock.mjs
+ var import_private_apis4 = __toESM(require_private_apis(), 1);
+ var { lock: lock3, unlock: unlock3 } = (0, import_private_apis4.__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/ui"
+ );
+
+ // packages/ui/build-module/utils/theme-provider.mjs
+ function getThemeProvider() {
+ const themePackage = theme;
+ if (themePackage.ThemeProvider) {
+ return themePackage.ThemeProvider;
+ }
+ if (!themePackage.privateApis) {
+ throw new Error(
+ "@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`."
);
- transitionFromRef.current = transitionToRef.current;
- }, [iframeDocument]);
- const previousIsZoomedOut = (0, import_element98.useRef)(false);
- (0, import_element98.useEffect)(() => {
- if (!iframeDocument) {
- return;
- }
- const trigger = previousIsZoomedOut.current !== isZoomedOut;
- previousIsZoomedOut.current = isZoomedOut;
- if (!trigger) {
- return;
- }
- startAnimationRef.current = true;
- if (!isZoomedOut) {
- return;
- }
- iframeDocument.documentElement.classList.add("is-zoomed-out");
- return () => {
- iframeDocument.documentElement.classList.remove("is-zoomed-out");
- };
- }, [iframeDocument, isZoomedOut]);
- (0, import_element98.useEffect)(() => {
- if (!iframeDocument) {
- return;
- }
- if (isAutoScaled && transitionFromRef.current.scaleValue !== 1) {
- transitionFromRef.current.scaleValue = calculateScale({
- frameSize: transitionFromRef.current.frameSize,
- containerWidth,
- maxContainerWidth,
- scaleContainerWidth: containerWidth
- });
- }
- if (scaleValue < 1) {
- if (!startAnimationRef.current) {
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-scale",
- scaleValue
- );
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-frame-size",
- `${frameSize}px`
- );
- }
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-content-height",
- `${contentHeight}px`
- );
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-inner-height",
- `${containerHeight}px`
- );
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-container-width",
- `${containerWidth}px`
- );
- iframeDocument.documentElement.style.setProperty(
- "--wp-block-editor-iframe-zoom-out-scale-container-width",
- `${scaleContainerWidth}px`
- );
- }
- if (startAnimationRef.current) {
- startAnimationRef.current = false;
- if (animationRef.current) {
- animationRef.current.reverse();
- const tempTransitionFrom = transitionFromRef.current;
- const tempTransitionTo = transitionToRef.current;
- transitionFromRef.current = tempTransitionTo;
- transitionToRef.current = tempTransitionFrom;
- } else {
- transitionFromRef.current.scrollTop = iframeDocument.documentElement.scrollTop;
- transitionFromRef.current.scrollHeight = iframeDocument.documentElement.scrollHeight;
- transitionFromRef.current.containerHeight = containerHeight;
- transitionToRef.current = {
- scaleValue,
- frameSize,
- containerHeight: iframeDocument.documentElement.clientHeight
- // use clientHeight to get the actual height of the new container after zoom state changes have rendered, as it will be the most up-to-date.
- };
- transitionToRef.current.scrollHeight = computeScrollHeightNext(
- transitionFromRef.current,
- transitionToRef.current
- );
- transitionToRef.current.scrollTop = computeScrollTopNext(
- transitionFromRef.current,
- transitionToRef.current
- );
- animationRef.current = startZoomOutAnimation();
- if (prefersReducedMotion) {
- finishZoomOutAnimation();
- } else {
- animationRef.current.onfinish = finishZoomOutAnimation;
- }
- }
- }
- }, [
- startZoomOutAnimation,
- finishZoomOutAnimation,
- prefersReducedMotion,
- isAutoScaled,
- scaleValue,
- frameSize,
- iframeDocument,
- contentHeight,
- containerWidth,
- containerHeight,
- maxContainerWidth,
- scaleContainerWidth
- ]);
- return {
- isZoomedOut,
- scaleContainerWidth,
- contentResizeListener,
- containerResizeListener
- };
+ }
+ return unlock3(
+ themePackage.privateApis
+ ).ThemeProvider;
}
+ var ThemeProvider = getThemeProvider();
- // packages/block-editor/build-module/components/iframe/index.mjs
- var import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
- function bubbleEvent(event, Constructor, frame) {
- const init = {};
- for (const key in event) {
- init[key] = event[key];
+ // packages/ui/build-module/stack/stack.mjs
+ var import_element72 = __toESM(require_element(), 1);
+ var STYLE_HASH_ATTRIBUTE12 = "data-wp-hash";
+ function getRuntime12() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
}
- if (event instanceof frame.contentDocument.defaultView.MouseEvent) {
- const rect = frame.getBoundingClientRect();
- init.clientX += rect.left;
- init.clientY += rect.top;
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument12(document);
}
- const newEvent = new Constructor(event.type, init);
- if (init.defaultPrevented) {
- newEvent.preventDefault();
+ return globalScope.__wpStyleRuntime;
+ }
+ function documentContainsStyleHash12(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
}
- const cancelled = !frame.dispatchEvent(newEvent);
- if (cancelled) {
- event.preventDefault();
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE12}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE12) === hash) {
+ return true;
+ }
}
+ return false;
}
- function useBubbleEvents(iframeDocument) {
- return (0, import_compose35.useRefEffect)(() => {
- const { defaultView } = iframeDocument;
- if (!defaultView) {
+ function injectStyle12(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime12();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash12(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE12, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument12(targetDocument) {
+ const runtime = getRuntime12();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
+ );
+ for (const [hash, css] of runtime.styles) {
+ injectStyle12(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
return;
}
- const { frameElement } = defaultView;
- const html = iframeDocument.documentElement;
- const eventTypes = ["dragover", "mousemove"];
- const handlers = {};
- for (const name of eventTypes) {
- handlers[name] = (event) => {
- const prototype = Object.getPrototypeOf(event);
- const constructorName = prototype.constructor.name;
- const Constructor = window[constructorName];
- bubbleEvent(event, Constructor, frameElement);
- };
- html.addEventListener(name, handlers[name]);
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- return () => {
- for (const name of eventTypes) {
- html.removeEventListener(name, handlers[name]);
- }
- };
- });
+ runtime.documents.set(targetDocument, count - 1);
+ };
}
- var iframeSrcCache = /* @__PURE__ */ new WeakMap();
- var iframeSrcCleanup = globalThis.FinalizationRegistry ? new globalThis.FinalizationRegistry(
- (url) => URL.revokeObjectURL(url)
- ) : void 0;
- function getIframeSrc(resolvedAssets) {
- let src = iframeSrcCache.get(resolvedAssets);
- if (src) {
- return src;
- }
- let body = "";
- if (import_react14.version.split(".")[0] === "18") {
- body = "<body><script>document.currentScript.parentElement.remove()<\/script></body>";
+ function registerStyle12(hash, css) {
+ const runtime = getRuntime12();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle12(targetDocument, hash, css);
}
- const html = `<!doctype html>
-<html>
- <head>
- <meta charset="utf-8">
- <base href="${window.location.href}">
- <style>
- html{
- height: auto !important;
- min-height: 100%;
- }
- /* Lowest specificity to not override global styles */
- :where(body) {
- margin: 0;
- /* Default background color in case zoom out mode background
- colors the html element */
- background-color: white;
- }
- </style>
- ${resolvedAssets.styles ?? ""}
- ${resolvedAssets.scripts ?? ""}
- </head>
- ${body}
-</html>`;
- src = URL.createObjectURL(new Blob([html], { type: "text/html" }));
- iframeSrcCache.set(resolvedAssets, src);
- iframeSrcCleanup?.register(resolvedAssets, src);
- return src;
- }
- function Iframe({
- contentRef,
- children,
- tabIndex = 0,
- scale = 1,
- frameSize = 0,
- readonly,
- forwardedRef: ref,
- title = (0, import_i18n39.__)("Editor canvas"),
- ...props
- }) {
- const { resolvedAssets, isPreviewMode } = (0, import_data51.useSelect)((select3) => {
- const settings2 = select3(store).getSettings();
- return {
- resolvedAssets: settings2.__unstableResolvedAssets,
- isPreviewMode: settings2.isPreviewMode
- };
- }, []);
- const [iframeDocument, setIframeDocument] = (0, import_element99.useState)();
- const [bodyClasses, setBodyClasses] = (0, import_element99.useState)([]);
- const [before, writingFlowRef, after] = useWritingFlow();
- const setRef = (0, import_compose35.useRefEffect)((node) => {
- let iFrameDocument;
- function preventFileDropDefault(event) {
- event.preventDefault();
- }
- function interceptLinkClicks(event) {
- if (event.target.tagName === "A" && event.target.getAttribute("href")?.startsWith("#")) {
- event.preventDefault();
- iFrameDocument.defaultView.location.hash = event.target.getAttribute("href").slice(1);
- }
- }
- const { ownerDocument: ownerDocument2 } = node;
- setBodyClasses(
- Array.from(ownerDocument2.body.classList).filter(
- (name) => name.startsWith("admin-color-") || name.startsWith("post-type-") || name === "wp-embed-responsive"
- )
- );
- function onLoad() {
- const { contentDocument } = node;
- const { documentElement } = contentDocument;
- iFrameDocument = contentDocument;
- setIframeDocument(contentDocument);
- documentElement.classList.add("block-editor-iframe__html");
- contentDocument.dir = ownerDocument2.dir;
- for (const compatStyle of getCompatibilityStyles()) {
- if (contentDocument.getElementById(compatStyle.id)) {
- continue;
- }
- contentDocument.head.appendChild(
- compatStyle.cloneNode(true)
- );
- if (!isPreviewMode) {
- console.warn(
- `${compatStyle.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,
- compatStyle
- );
- }
- }
- iFrameDocument.addEventListener(
- "dragover",
- preventFileDropDefault,
- false
- );
- iFrameDocument.addEventListener(
- "drop",
- preventFileDropDefault,
- false
- );
- iFrameDocument.addEventListener("click", interceptLinkClicks);
- }
- node.addEventListener("load", onLoad);
- return () => {
- setIframeDocument(void 0);
- node.removeEventListener("load", onLoad);
- iFrameDocument?.removeEventListener(
- "dragover",
- preventFileDropDefault
- );
- iFrameDocument?.removeEventListener(
- "drop",
- preventFileDropDefault
- );
- iFrameDocument?.removeEventListener("click", interceptLinkClicks);
- };
- }, []);
- const {
- contentResizeListener,
- containerResizeListener,
- isZoomedOut,
- scaleContainerWidth
- } = useScaleCanvas({
- scale,
- frameSize: parseInt(frameSize),
- iframeDocument
- });
- const disabledRef = (0, import_compose35.useDisabled)({ isDisabled: !readonly });
- const unguardedBodyRef = (0, import_compose35.useMergeRefs)([
- useBubbleEvents(iframeDocument),
- contentRef,
- writingFlowRef,
- disabledRef
- ]);
- const bodyRef = (0, import_compose35.useRefEffect)(
- (node) => {
- if (node.ownerDocument.defaultView) {
- unguardedBodyRef(node);
- return () => unguardedBodyRef(null);
- }
- return () => {
- };
- },
- [unguardedBodyRef]
- );
- const src = getIframeSrc(resolvedAssets);
- const shouldRenderFocusCaptureElements = tabIndex >= 0 && !isPreviewMode;
- const iframe = /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(import_jsx_runtime222.Fragment, { children: [
- shouldRenderFocusCaptureElements && before,
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
- "iframe",
- {
- ...props,
- style: {
- ...props.style,
- height: props.style?.height,
- border: 0
- },
- ref: (0, import_compose35.useMergeRefs)([ref, setRef]),
- tabIndex,
- src,
- title,
- onKeyDown: (event) => {
- if (props.onKeyDown) {
- props.onKeyDown(event);
- }
- if (event.currentTarget.ownerDocument !== event.target.ownerDocument) {
- const { stopPropagation } = event.nativeEvent;
- event.nativeEvent.stopPropagation = () => {
- };
- event.stopPropagation();
- event.nativeEvent.stopPropagation = stopPropagation;
- bubbleEvent(
- event,
- window.KeyboardEvent,
- event.currentTarget
- );
- }
- },
- children: iframeDocument && (0, import_element99.createPortal)(
- /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
- "body",
- {
- ref: bodyRef,
- className: clsx_default(
- "block-editor-iframe__body",
- "editor-styles-wrapper",
- ...bodyClasses
- ),
- children: [
- contentResizeListener,
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(import_components32.__experimentalStyleProvider, { document: iframeDocument, children })
- ]
- }
- ),
- iframeDocument.documentElement
- )
- }
- ),
- shouldRenderFocusCaptureElements && after
- ] });
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)("div", { className: "block-editor-iframe__container", children: [
- containerResizeListener,
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
- "div",
- {
- className: clsx_default(
- "block-editor-iframe__scale-container",
- isZoomedOut && "is-zoomed-out"
- ),
- style: {
- "--wp-block-editor-iframe-zoom-out-scale-container-width": isZoomedOut && `${scaleContainerWidth}px`
- },
- children: iframe
- }
- )
- ] });
}
- function IframeIfReady(props, ref) {
- const isInitialised = (0, import_data51.useSelect)(
- (select3) => select3(store).getSettings().__internalIsInitialized,
- []
- );
- if (!isInitialised) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Iframe, { ...props, forwardedRef: ref });
+ if (typeof process === "undefined" || true) {
+ registerStyle12("32aba35fe1", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");
}
- var iframe_default = (0, import_element99.forwardRef)(IframeIfReady);
+ var style_default12 = { "stack": "_19ce0419607e1896__stack" };
+ var gapTokens = {
+ xs: "var(--wpds-dimension-gap-xs, 4px)",
+ sm: "var(--wpds-dimension-gap-sm, 8px)",
+ md: "var(--wpds-dimension-gap-md, 12px)",
+ lg: "var(--wpds-dimension-gap-lg, 16px)",
+ xl: "var(--wpds-dimension-gap-xl, 24px)",
+ "2xl": "var(--wpds-dimension-gap-2xl, 32px)",
+ "3xl": "var(--wpds-dimension-gap-3xl, 40px)"
+ };
+ var Stack = (0, import_element72.forwardRef)(function Stack2({ direction, gap, align, justify, wrap, render: render4, ...props }, ref) {
+ const style = {
+ gap: gap && gapTokens[gap],
+ alignItems: align,
+ justifyContent: justify,
+ flexDirection: direction,
+ flexWrap: wrap
+ };
+ const element = useRender({
+ render: render4,
+ ref,
+ props: mergeProps(props, { style, className: style_default12.stack })
+ });
+ return element;
+ });
- // packages/block-editor/build-module/components/editor-styles/index.mjs
- var import_components33 = __toESM(require_components(), 1);
- var import_element100 = __toESM(require_element(), 1);
- var import_data52 = __toESM(require_data(), 1);
+ // packages/ui/build-module/tooltip/index.mjs
+ var tooltip_exports = {};
+ __export(tooltip_exports, {
+ Popup: () => Popup,
+ Portal: () => Portal,
+ Positioner: () => Positioner,
+ Provider: () => Provider2,
+ Root: () => Root5,
+ Trigger: () => Trigger2
+ });
- // node_modules/parsel-js/dist/parsel.js
- var TOKENS = {
- attribute: /\[\s*(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)\s*(?:(?<operator>\W?=)\s*(?<value>.+?)\s*(\s(?<caseSensitive>[iIsS]))?\s*)?\]/gu,
- id: /#(?<name>[-\w\P{ASCII}]+)/gu,
- class: /\.(?<name>[-\w\P{ASCII}]+)/gu,
- comma: /\s*,\s*/g,
- combinator: /\s*[\s>+~]\s*/g,
- "pseudo-element": /::(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,
- "pseudo-class": /:(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,
- universal: /(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?\*/gu,
- type: /(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)/gu
- // this must be last
- };
- var TRIM_TOKENS = /* @__PURE__ */ new Set(["combinator", "comma"]);
- var getArgumentPatternByType = (type) => {
- switch (type) {
- case "pseudo-element":
- case "pseudo-class":
- return new RegExp(TOKENS[type].source.replace("(?<argument>\xB6*)", "(?<argument>.*)"), "gu");
- default:
- return TOKENS[type];
+ // packages/ui/build-module/tooltip/popup.mjs
+ var import_element75 = __toESM(require_element(), 1);
+
+ // packages/ui/build-module/tooltip/portal.mjs
+ var import_element73 = __toESM(require_element(), 1);
+
+ // packages/ui/build-module/utils/wp-compat-overlay-slot.mjs
+ var STYLE_HASH_ATTRIBUTE13 = "data-wp-hash";
+ function getRuntime13() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
}
- };
- function gobbleParens(text, offset4) {
- let nesting = 0;
- let result = "";
- for (; offset4 < text.length; offset4++) {
- const char = text[offset4];
- switch (char) {
- case "(":
- ++nesting;
- break;
- case ")":
- --nesting;
- break;
- }
- result += char;
- if (nesting === 0) {
- return result;
- }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument13(document);
}
- return result;
+ return globalScope.__wpStyleRuntime;
}
- function tokenizeBy(text, grammar = TOKENS) {
- if (!text) {
- return [];
- }
- const tokens = [text];
- for (const [type, pattern] of Object.entries(grammar)) {
- for (let i2 = 0; i2 < tokens.length; i2++) {
- const token = tokens[i2];
- if (typeof token !== "string") {
- continue;
- }
- pattern.lastIndex = 0;
- const match2 = pattern.exec(token);
- if (!match2) {
- continue;
- }
- const from = match2.index - 1;
- const args = [];
- const content = match2[0];
- const before = token.slice(0, from + 1);
- if (before) {
- args.push(before);
- }
- args.push({
- ...match2.groups,
- type,
- content
- });
- const after = token.slice(from + content.length + 1);
- if (after) {
- args.push(after);
- }
- tokens.splice(i2, 1, ...args);
- }
+ function documentContainsStyleHash13(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
}
- let offset4 = 0;
- for (const token of tokens) {
- switch (typeof token) {
- case "string":
- throw new Error(`Unexpected sequence ${token} found at index ${offset4}`);
- case "object":
- offset4 += token.content.length;
- token.pos = [offset4 - token.content.length, offset4];
- if (TRIM_TOKENS.has(token.type)) {
- token.content = token.content.trim() || " ";
- }
- break;
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE13}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE13) === hash) {
+ return true;
}
}
- return tokens;
+ return false;
}
- var STRING_PATTERN = /(['"])([^\\\n]+?)\1/g;
- var ESCAPE_PATTERN = /\\./g;
- function tokenize(selector3, grammar = TOKENS) {
- selector3 = selector3.trim();
- if (selector3 === "") {
- return [];
+ function injectStyle13(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
}
- const replacements = [];
- selector3 = selector3.replace(ESCAPE_PATTERN, (value, offset4) => {
- replacements.push({ value, offset: offset4 });
- return "\uE000".repeat(value.length);
- });
- selector3 = selector3.replace(STRING_PATTERN, (value, quote, content, offset4) => {
- replacements.push({ value, offset: offset4 });
- return `${quote}${"\uE001".repeat(content.length)}${quote}`;
- });
- {
- let pos = 0;
- let offset4;
- while ((offset4 = selector3.indexOf("(", pos)) > -1) {
- const value = gobbleParens(selector3, offset4);
- replacements.push({ value, offset: offset4 });
- selector3 = `${selector3.substring(0, offset4)}(${"\xB6".repeat(value.length - 2)})${selector3.substring(offset4 + value.length)}`;
- pos = offset4 + value.length;
- }
+ const runtime = getRuntime13();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
}
- const tokens = tokenizeBy(selector3, grammar);
- const changedTokens = /* @__PURE__ */ new Set();
- for (const replacement of replacements.reverse()) {
- for (const token of tokens) {
- const { offset: offset4, value } = replacement;
- if (!(token.pos[0] <= offset4 && offset4 + value.length <= token.pos[1])) {
- continue;
- }
- const { content } = token;
- const tokenOffset = offset4 - token.pos[0];
- token.content = content.slice(0, tokenOffset) + value + content.slice(tokenOffset + value.length);
- if (token.content !== content) {
- changedTokens.add(token);
- }
- }
+ if (injectedStyles.has(hash)) {
+ return;
}
- for (const token of changedTokens) {
- const pattern = getArgumentPatternByType(token.type);
- if (!pattern) {
- throw new Error(`Unknown token type: ${token.type}`);
+ if (documentContainsStyleHash13(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE13, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument13(targetDocument) {
+ const runtime = getRuntime13();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
+ );
+ for (const [hash, css] of runtime.styles) {
+ injectStyle13(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- pattern.lastIndex = 0;
- const match2 = pattern.exec(token.content);
- if (!match2) {
- throw new Error(`Unable to parse content for ${token.type}: ${token.content}`);
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- Object.assign(token, match2.groups);
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle13(hash, css) {
+ const runtime = getRuntime13();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle13(targetDocument, hash, css);
}
- return tokens;
}
- function* flatten(node, parent) {
- switch (node.type) {
- case "list":
- for (let child of node.list) {
- yield* flatten(child, node);
- }
- break;
- case "complex":
- yield* flatten(node.left, node);
- yield* flatten(node.right, node);
- break;
- case "compound":
- yield* node.list.map((token) => [token, node]);
- break;
- default:
- yield [node, parent];
+ if (typeof process === "undefined" || true) {
+ registerStyle13("be37f31c1e", "._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");
+ }
+ var wp_compat_overlay_slot_default = { "slot": "_11fc52b637ff8a7e__slot" };
+ var WP_COMPAT_OVERLAY_SLOT_ATTRIBUTE = "data-wp-compat-overlay-slot";
+ function resolveOwnerDocument() {
+ return typeof document === "undefined" ? null : document;
+ }
+ function isInWordPressEnvironment() {
+ let topWp;
+ try {
+ topWp = window.top?.wp;
+ } catch {
}
+ const wp = topWp ?? window.wp;
+ return typeof wp?.components === "object" && wp.components !== null;
}
- function stringify(listOrNode) {
- let tokens;
- if (Array.isArray(listOrNode)) {
- tokens = listOrNode;
- } else {
- tokens = [...flatten(listOrNode)].map(([token]) => token);
+ var cachedSlot = null;
+ function ensureSlotIsAccessible(element) {
+ element.setAttribute("aria-hidden", "false");
+ return element;
+ }
+ function createSlot(ownerDocument2) {
+ const element = ownerDocument2.createElement("div");
+ element.setAttribute(WP_COMPAT_OVERLAY_SLOT_ATTRIBUTE, "");
+ if (wp_compat_overlay_slot_default.slot) {
+ element.classList.add(wp_compat_overlay_slot_default.slot);
}
- return tokens.map((token) => token.content).join("");
+ ownerDocument2.body.appendChild(element);
+ return element;
}
-
- // packages/block-editor/build-module/utils/transform-styles/index.mjs
- var import_processor = __toESM(require_processor(), 1);
- var import_css_syntax_error = __toESM(require_css_syntax_error(), 1);
- var import_postcss_prefix_selector = __toESM(require_postcss_prefix_selector(), 1);
- var import_postcss_urlrebase = __toESM(require_postcss_urlrebase(), 1);
- var cacheByWrapperSelector = /* @__PURE__ */ new Map();
- var ROOT_SELECTOR_TOKENS = [
- { type: "type", content: "body" },
- { type: "type", content: "html" },
- { type: "pseudo-class", content: ":root" },
- { type: "pseudo-class", content: ":where(body)" },
- { type: "pseudo-class", content: ":where(:root)" },
- { type: "pseudo-class", content: ":where(html)" }
- ];
- function prefixRootSelector(prefix2, selector3) {
- const tokenized = tokenize(selector3);
- const lastRootIndex = tokenized.findLastIndex(({ content, type }) => {
- return ROOT_SELECTOR_TOKENS.some(
- (rootSelector) => content === rootSelector.content && type === rootSelector.type
- );
- });
- let insertionPoint2 = -1;
- for (let i2 = lastRootIndex + 1; i2 < tokenized.length; i2++) {
- if (tokenized[i2].type === "combinator") {
- insertionPoint2 = i2;
- break;
- }
+ function getWpCompatOverlaySlot() {
+ if (typeof window === "undefined") {
+ return void 0;
}
- const tokenizedPrefix = tokenize(prefix2);
- tokenized.splice(
- // Insert at the insertion point, or the end.
- insertionPoint2 === -1 ? tokenized.length : insertionPoint2,
- 0,
- {
- type: "combinator",
- content: " ",
- pos: [0, 0]
- },
- ...tokenizedPrefix
+ if (!isInWordPressEnvironment() && window.__wpUiCompatOverlaySlotEnabled !== true) {
+ return void 0;
+ }
+ const ownerDocument2 = resolveOwnerDocument();
+ if (!ownerDocument2 || !ownerDocument2.body) {
+ return void 0;
+ }
+ if (cachedSlot && cachedSlot.ownerDocument === ownerDocument2 && cachedSlot.isConnected) {
+ return ensureSlotIsAccessible(cachedSlot);
+ }
+ const existing = ownerDocument2.querySelector(
+ `[${WP_COMPAT_OVERLAY_SLOT_ATTRIBUTE}]`
);
- return stringify(tokenized);
- }
- function transformStyle({ css, ignoredSelectors = [], baseURL }, wrapperSelector = "", transformOptions) {
- if (!wrapperSelector && !baseURL) {
- return css;
+ if (existing instanceof HTMLDivElement) {
+ cachedSlot = ensureSlotIsAccessible(existing);
+ return cachedSlot;
}
- try {
- const excludedSelectors = [
- ...ignoredSelectors,
- ...transformOptions?.ignoredSelectors ?? [],
- wrapperSelector
- ];
- return new import_processor.default(
- [
- wrapperSelector && (0, import_postcss_prefix_selector.default)({
- prefix: wrapperSelector,
- transform(prefix2, selector3, prefixedSelector) {
- if (excludedSelectors.some(
- (excludedSelector) => excludedSelector instanceof RegExp ? selector3.match(excludedSelector) : selector3.includes(excludedSelector)
- )) {
- return selector3;
- }
- const hasRootSelector = ROOT_SELECTOR_TOKENS.some(
- (rootSelector) => selector3.startsWith(rootSelector.content)
- );
- if (hasRootSelector) {
- return prefixRootSelector(prefix2, selector3);
- }
- return prefixedSelector;
- }
- }),
- baseURL && (0, import_postcss_urlrebase.default)({ rootUrl: baseURL })
- ].filter(Boolean)
- ).process(css, {}).css;
- } catch (error2) {
- if (error2 instanceof import_css_syntax_error.default) {
- console.warn(
- "wp.blockEditor.transformStyles Failed to transform CSS.",
- error2.message + "\n" + error2.showSourceCode(false)
- );
- } else {
- console.warn(
- "wp.blockEditor.transformStyles Failed to transform CSS.",
- error2
- );
- }
- return null;
+ if (cachedSlot?.isConnected) {
+ cachedSlot.remove();
}
+ cachedSlot = ensureSlotIsAccessible(createSlot(ownerDocument2));
+ return cachedSlot;
}
- var transformStyles = (styles, wrapperSelector = "", transformOptions) => {
- let cache = cacheByWrapperSelector.get(wrapperSelector);
- if (!cache) {
- cache = /* @__PURE__ */ new WeakMap();
- cacheByWrapperSelector.set(wrapperSelector, cache);
- }
- return styles.map((style) => {
- let css = cache.get(style);
- if (!css) {
- css = transformStyle(style, wrapperSelector, transformOptions);
- cache.set(style, css);
- }
- return css;
- });
- };
- var transform_styles_default = transformStyles;
- // packages/block-editor/build-module/components/editor-styles/index.mjs
- var import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
- k([names_default, a11y_default]);
- function useDarkThemeBodyClassName(styles, scope) {
- return (0, import_element100.useCallback)(
- (node) => {
- if (!node) {
- return;
- }
- const { ownerDocument: ownerDocument2 } = node;
- const { defaultView, body } = ownerDocument2;
- const canvas = scope ? ownerDocument2.querySelector(scope) : body;
- let backgroundColor;
- if (!canvas) {
- const tempCanvas = ownerDocument2.createElement("div");
- tempCanvas.classList.add("editor-styles-wrapper");
- body.appendChild(tempCanvas);
- backgroundColor = defaultView?.getComputedStyle(tempCanvas, null).getPropertyValue("background-color");
- body.removeChild(tempCanvas);
- } else {
- backgroundColor = defaultView?.getComputedStyle(canvas, null).getPropertyValue("background-color");
- }
- const colordBackgroundColor = w(backgroundColor);
- if (colordBackgroundColor.luminance() > 0.5 || colordBackgroundColor.alpha() === 0) {
- body.classList.remove("is-dark-theme");
- } else {
- body.classList.add("is-dark-theme");
+ // packages/ui/build-module/tooltip/portal.mjs
+ var import_jsx_runtime199 = __toESM(require_jsx_runtime(), 1);
+ var Portal = (0, import_element73.forwardRef)(
+ function TooltipPortal3({ container, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
+ index_parts_exports4.Portal,
+ {
+ container: container ?? getWpCompatOverlaySlot(),
+ ...restProps,
+ ref
}
- },
- [styles, scope]
- );
+ );
+ }
+ );
+
+ // packages/ui/build-module/tooltip/positioner.mjs
+ var import_element74 = __toESM(require_element(), 1);
+ var import_jsx_runtime200 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE14 = "data-wp-hash";
+ function getRuntime14() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument14(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
- function EditorStyles({ styles, scope, transformOptions }) {
- const overrides = (0, import_data52.useSelect)(
- (select3) => unlock(select3(store)).getStyleOverrides(),
- []
- );
- const [transformedStyles, transformedSvgs] = (0, import_element100.useMemo)(() => {
- const _styles = Object.values(styles ?? []);
- const orderedOverrides = [
- ...overrides.filter(
- ([, override]) => override?.__unstableType !== "custom-css"
- ),
- ...overrides.filter(
- ([, override]) => override?.__unstableType === "custom-css"
- )
- ];
- for (const [id, override] of orderedOverrides) {
- const index2 = _styles.findIndex(({ id: _id }) => id === _id);
- const overrideWithId = { ...override, id };
- if (index2 === -1) {
- _styles.push(overrideWithId);
- } else {
- _styles[index2] = overrideWithId;
- }
+ function documentContainsStyleHash14(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE14}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE14) === hash) {
+ return true;
}
- return [
- transform_styles_default(
- _styles.filter((style) => style?.css),
- scope,
- transformOptions
- ),
- _styles.filter((style) => style.__unstableType === "svgs").map((style) => style.assets).join("")
- ];
- }, [styles, overrides, scope, transformOptions]);
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(import_jsx_runtime223.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
- "style",
- {
- ref: useDarkThemeBodyClassName(transformedStyles, scope)
- }
- ),
- transformedStyles.map((css, index2) => /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("style", { children: css }, index2)),
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
- import_components33.SVG,
- {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 0 0",
- width: "0",
- height: "0",
- role: "none",
- style: {
- visibility: "hidden",
- position: "absolute",
- left: "-9999px",
- overflow: "hidden"
- },
- dangerouslySetInnerHTML: { __html: transformedSvgs }
- }
- )
- ] });
+ }
+ return false;
}
- var editor_styles_default = (0, import_element100.memo)(EditorStyles);
-
- // packages/block-editor/build-module/components/block-preview/auto.mjs
- var import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
- var MemoizedBlockList = (0, import_element101.memo)(BlockList);
- var MAX_HEIGHT = 2e3;
- var EMPTY_ADDITIONAL_STYLES = [];
- function ScaledBlockPreview({
- viewportWidth,
- containerWidth,
- minHeight,
- additionalStyles = EMPTY_ADDITIONAL_STYLES
- }) {
- if (!viewportWidth) {
- viewportWidth = containerWidth;
+ function injectStyle14(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
}
- const [contentResizeListener, { height: contentHeight }] = (0, import_compose36.useResizeObserver)();
- const { styles } = (0, import_data53.useSelect)((select3) => {
- const settings2 = select3(store).getSettings();
- return {
- styles: settings2.styles
- };
- }, []);
- const editorStyles = (0, import_element101.useMemo)(() => {
- if (styles) {
- return [
- ...styles,
- {
- css: "body{height:auto;overflow:hidden;border:none;padding:0;}",
- __unstableType: "presets"
- },
- ...additionalStyles
- ];
+ const runtime = getRuntime14();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash14(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE14, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument14(targetDocument) {
+ const runtime = getRuntime14();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
+ );
+ for (const [hash, css] of runtime.styles) {
+ injectStyle14(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- return styles;
- }, [styles, additionalStyles]);
- const scale = containerWidth / viewportWidth;
- const aspectRatio = contentHeight ? containerWidth / (contentHeight * scale) : 0;
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
- import_components34.Disabled,
- {
- className: "block-editor-block-preview__content",
- style: {
- transform: `scale(${scale})`,
- // Using width + aspect-ratio instead of height here triggers browsers' native
- // handling of scrollbar's visibility. It prevents the flickering issue seen
- // in https://github.com/WordPress/gutenberg/issues/52027.
- // See https://github.com/WordPress/gutenberg/pull/52921 for more info.
- aspectRatio,
- maxHeight: contentHeight > MAX_HEIGHT ? MAX_HEIGHT * scale : void 0,
- minHeight
- },
- children: /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
- iframe_default,
- {
- contentRef: (0, import_compose36.useRefEffect)((bodyElement) => {
- const {
- ownerDocument: { documentElement }
- } = bodyElement;
- documentElement.classList.add(
- "block-editor-block-preview__content-iframe"
- );
- documentElement.style.position = "absolute";
- documentElement.style.width = "100%";
- bodyElement.style.boxSizing = "border-box";
- bodyElement.style.position = "absolute";
- bodyElement.style.width = "100%";
- }, []),
- "aria-hidden": true,
- tabIndex: -1,
- style: {
- position: "absolute",
- width: viewportWidth,
- height: contentHeight,
- pointerEvents: "none",
- // This is a catch-all max-height for patterns.
- // See: https://github.com/WordPress/gutenberg/pull/38175.
- maxHeight: MAX_HEIGHT,
- minHeight: scale !== 0 && scale < 1 && minHeight ? minHeight / scale : minHeight
- },
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(editor_styles_default, { styles: editorStyles }),
- contentResizeListener,
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(MemoizedBlockList, { renderAppender: false })
- ]
- }
- )
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- );
+ runtime.documents.set(targetDocument, count - 1);
+ };
}
- function AutoBlockPreview(props) {
- const [containerResizeListener, { width: containerWidth }] = (0, import_compose36.useResizeObserver)();
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_jsx_runtime224.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { style: { position: "relative", width: "100%", height: 0 }, children: containerResizeListener }),
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { className: "block-editor-block-preview__container", children: !!containerWidth && /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
- ScaledBlockPreview,
+ function registerStyle14(hash, css) {
+ const runtime = getRuntime14();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle14(targetDocument, hash, css);
+ }
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle14("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
+ }
+ var resets_default4 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
+ if (typeof process === "undefined" || true) {
+ registerStyle14("19fcc06039", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');
+ }
+ var style_default13 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
+ var Positioner = (0, import_element74.forwardRef)(
+ function TooltipPositioner3({ align = "center", className: className2, side = "top", sideOffset = 4, ...props }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
+ index_parts_exports4.Positioner,
{
+ ref,
+ align,
+ side,
+ sideOffset,
...props,
- containerWidth
+ className: clsx_default(
+ resets_default4["box-sizing"],
+ style_default13.positioner,
+ className2
+ )
}
- ) })
- ] });
- }
+ );
+ }
+ );
- // packages/block-editor/build-module/components/block-preview/async.mjs
- var import_element102 = __toESM(require_element(), 1);
- var import_priority_queue = __toESM(require_priority_queue(), 1);
- var blockPreviewQueue = (0, import_priority_queue.createQueue)();
- function Async({ children, placeholder }) {
- const [shouldRender, setShouldRender] = (0, import_element102.useState)(false);
- (0, import_element102.useEffect)(() => {
- const context = {};
- blockPreviewQueue.add(context, () => {
- (0, import_element102.flushSync)(() => {
- setShouldRender(true);
- });
- });
- return () => {
- blockPreviewQueue.cancel(context);
- };
- }, []);
- if (!shouldRender) {
- return placeholder;
+ // packages/ui/build-module/tooltip/popup.mjs
+ var import_jsx_runtime201 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE15 = "data-wp-hash";
+ function getRuntime15() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
}
- return children;
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument15(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
-
- // packages/block-editor/build-module/components/block-preview/index.mjs
- var import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
- var EMPTY_ADDITIONAL_STYLES2 = [];
- function BlockPreview({
- blocks: blocks2,
- viewportWidth = 1200,
- minHeight,
- additionalStyles = EMPTY_ADDITIONAL_STYLES2,
- // Deprecated props:
- __experimentalMinHeight,
- __experimentalPadding
- }) {
- if (__experimentalMinHeight) {
- minHeight = __experimentalMinHeight;
- (0, import_deprecated7.default)("The __experimentalMinHeight prop", {
- since: "6.2",
- version: "6.4",
- alternative: "minHeight"
- });
+ function documentContainsStyleHash15(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
}
- if (__experimentalPadding) {
- additionalStyles = [
- ...additionalStyles,
- { css: `body { padding: ${__experimentalPadding}px; }` }
- ];
- (0, import_deprecated7.default)("The __experimentalPadding prop of BlockPreview", {
- since: "6.2",
- version: "6.4",
- alternative: "additionalStyles"
- });
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE15}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE15) === hash) {
+ return true;
+ }
}
- const originalSettings = (0, import_data54.useSelect)(
- (select3) => select3(store).getSettings(),
- []
- );
- const settings2 = (0, import_element103.useMemo)(
- () => ({
- ...originalSettings,
- focusMode: false,
- // Disable "Spotlight mode".
- isPreviewMode: true
- }),
- [originalSettings]
- );
- const renderedBlocks = (0, import_element103.useMemo)(
- () => Array.isArray(blocks2) ? blocks2 : [blocks2],
- [blocks2]
+ return false;
+ }
+ function injectStyle15(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime15();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash15(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE15, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument15(targetDocument) {
+ const runtime = getRuntime15();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- if (!blocks2 || blocks2.length === 0) {
- return null;
+ for (const [hash, css] of runtime.styles) {
+ injectStyle15(targetDocument, hash, css);
}
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
- ExperimentalBlockEditorProvider,
- {
- value: renderedBlocks,
- settings: settings2,
- children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
- AutoBlockPreview,
- {
- viewportWidth,
- minHeight,
- additionalStyles
- }
- )
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- );
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
+ }
+ runtime.documents.set(targetDocument, count - 1);
+ };
}
- var MemoizedBlockPreview = (0, import_element103.memo)(BlockPreview);
- MemoizedBlockPreview.Async = Async;
- var block_preview_default = MemoizedBlockPreview;
- function useBlockPreview({ blocks: blocks2, props = {}, layout }) {
- const originalSettings = (0, import_data54.useSelect)(
- (select3) => select3(store).getSettings(),
- []
- );
- const settings2 = (0, import_element103.useMemo)(
- () => ({
- ...originalSettings,
- styles: void 0,
- // Clear styles included by the parent settings, as they are already output by the parent's EditorStyles.
- focusMode: false,
- // Disable "Spotlight mode".
- isPreviewMode: true
- }),
- [originalSettings]
- );
- const disabledRef = (0, import_compose37.useDisabled)();
- const ref = (0, import_compose37.useMergeRefs)([props.ref, disabledRef]);
- const renderedBlocks = (0, import_element103.useMemo)(
- () => Array.isArray(blocks2) ? blocks2 : [blocks2],
- [blocks2]
- );
- const children = /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
- ExperimentalBlockEditorProvider,
- {
- value: renderedBlocks,
- settings: settings2,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(editor_styles_default, {}),
- /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(BlockListItems, { renderAppender: false, layout })
- ]
- }
- );
- return {
- ...props,
- ref,
- className: clsx_default(
- props.className,
- "block-editor-block-preview__live-content",
- "components-disabled"
- ),
- children: blocks2?.length ? children : null
- };
+ function registerStyle15(hash, css) {
+ const runtime = getRuntime15();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle15(targetDocument, hash, css);
+ }
}
-
- // packages/block-editor/build-module/components/inserter/preview-panel.mjs
- var import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
- function InserterPreviewPanel({ item }) {
- const { name, title, icon, description, initialAttributes, example } = item;
- const isReusable = (0, import_blocks30.isReusableBlock)(item);
- const blocks2 = (0, import_element104.useMemo)(() => {
- if (!example) {
- return (0, import_blocks30.createBlock)(name, initialAttributes);
- }
- return (0, import_blocks30.getBlockFromExample)(name, {
- attributes: {
- ...example.attributes,
- ...initialAttributes
- },
- innerBlocks: example.innerBlocks,
- innerContent: example.innerContent
- });
- }, [name, example, initialAttributes]);
- const previewHeight = 144;
- const sidebarWidth = 280;
- const viewportWidth = example?.viewportWidth ?? 500;
- const scale = sidebarWidth / viewportWidth;
- const minHeight = scale !== 0 && scale < 1 && previewHeight ? previewHeight / scale : previewHeight;
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { className: "block-editor-inserter__preview-container", children: [
- /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { className: "block-editor-inserter__preview", children: isReusable || example ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { className: "block-editor-inserter__preview-content", children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
- block_preview_default,
- {
- blocks: blocks2,
- viewportWidth,
- minHeight: previewHeight,
- additionalStyles: (
- //We want this CSS to be in sync with the one in BlockPreviewPanel.
- [
- {
- css: `
- body {
- padding: 24px;
- min-height:${Math.round(minHeight)}px;
- display:flex;
- align-items:center;
- }
- .is-root-container { width: 100%; }
- `
- }
- ]
- )
- }
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { className: "block-editor-inserter__preview-content-missing", children: (0, import_i18n40.__)("No preview available.") }) }),
- !isReusable && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
- block_card_default,
- {
- title,
- icon,
- description
- }
- )
- ] });
+ if (typeof process === "undefined" || true) {
+ registerStyle15("19fcc06039", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');
}
- var preview_panel_default = InserterPreviewPanel;
-
- // packages/block-editor/build-module/components/inserter/block-types-tab.mjs
- var import_i18n44 = __toESM(require_i18n(), 1);
- var import_element111 = __toESM(require_element(), 1);
- var import_compose39 = __toESM(require_compose(), 1);
-
- // packages/block-editor/build-module/components/block-types-list/index.mjs
- var import_blocks33 = __toESM(require_blocks(), 1);
- var import_compose38 = __toESM(require_compose(), 1);
-
- // packages/block-editor/build-module/components/inserter-list-item/index.mjs
- var import_element110 = __toESM(require_element(), 1);
- var import_blocks32 = __toESM(require_blocks(), 1);
- var import_components40 = __toESM(require_components(), 1);
- var import_keycodes8 = __toESM(require_keycodes(), 1);
-
- // packages/block-editor/build-module/components/inserter-listbox/index.mjs
- var import_components37 = __toESM(require_components(), 1);
- var import_element108 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/inserter-listbox/group.mjs
- var import_element105 = __toESM(require_element(), 1);
- var import_i18n41 = __toESM(require_i18n(), 1);
- var import_a11y5 = __toESM(require_a11y(), 1);
- var import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
- function InserterListboxGroup(props, ref) {
- const [shouldSpeak, setShouldSpeak] = (0, import_element105.useState)(false);
- (0, import_element105.useEffect)(() => {
- if (shouldSpeak) {
- (0, import_a11y5.speak)(
- (0, import_i18n41.__)("Use left and right arrow keys to move through blocks")
- );
- }
- }, [shouldSpeak]);
- return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
- "div",
+ var style_default14 = { "positioner": "_480b748dd3510e64__positioner", "popup": "_50096b232db7709d__popup" };
+ var POPUP_COLOR = { background: "#1e1e1e" };
+ var Popup = (0, import_element75.forwardRef)(function TooltipPopup3({ portal, positioner, children, className: className2, ...props }, ref) {
+ const popupContent = /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(ThemeProvider, { color: POPUP_COLOR, children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
+ index_parts_exports4.Popup,
{
ref,
- role: "listbox",
- "aria-orientation": "horizontal",
- onFocus: () => {
- setShouldSpeak(true);
- },
- onBlur: (event) => {
- const focusingOutsideGroup = !event.currentTarget.contains(
- event.relatedTarget
- );
- if (focusingOutsideGroup) {
- setShouldSpeak(false);
- }
- },
- ...props
+ className: clsx_default(style_default14.popup, className2),
+ ...props,
+ children
}
+ ) });
+ const positionedPopup = renderSlotWithChildren(
+ positioner,
+ /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(Positioner, {}),
+ popupContent
);
+ return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(Portal, {}), positionedPopup);
+ });
+
+ // packages/ui/build-module/tooltip/trigger.mjs
+ var import_element76 = __toESM(require_element(), 1);
+ var import_jsx_runtime202 = __toESM(require_jsx_runtime(), 1);
+ var Trigger2 = (0, import_element76.forwardRef)(
+ function TooltipTrigger3(props, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(index_parts_exports4.Trigger, { ref, ...props });
+ }
+ );
+
+ // packages/ui/build-module/utils/direction-provider.mjs
+ var import_i18n33 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime203 = __toESM(require_jsx_runtime(), 1);
+ function DirectionProvider3({ children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(DirectionProvider, { direction: (0, import_i18n33.isRTL)() ? "rtl" : "ltr", children });
}
- var group_default2 = (0, import_element105.forwardRef)(InserterListboxGroup);
- // packages/block-editor/build-module/components/inserter-listbox/row.mjs
- var import_element106 = __toESM(require_element(), 1);
- var import_components35 = __toESM(require_components(), 1);
- var import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
- function InserterListboxRow(props, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(import_components35.Composite.Group, { role: "presentation", ref, ...props });
+ // packages/ui/build-module/tooltip/root.mjs
+ var import_jsx_runtime204 = __toESM(require_jsx_runtime(), 1);
+ function Root5(props) {
+ return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(DirectionProvider3, { children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(index_parts_exports4.Root, { ...props }) });
}
- var row_default2 = (0, import_element106.forwardRef)(InserterListboxRow);
- // packages/block-editor/build-module/components/inserter-listbox/item.mjs
- var import_components36 = __toESM(require_components(), 1);
- var import_element107 = __toESM(require_element(), 1);
- var import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
- function InserterListboxItem({ isFirst, as: Component5, children, ...props }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
- import_components36.Composite.Item,
- {
- ref,
- role: "option",
- accessibleWhenDisabled: true,
- ...props,
- render: (htmlProps) => {
- const propsWithTabIndex = {
- ...htmlProps,
- tabIndex: isFirst ? 0 : htmlProps.tabIndex
- };
- if (Component5) {
- return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Component5, { ...propsWithTabIndex, children });
- }
- if (typeof children === "function") {
- return children(propsWithTabIndex);
- }
- return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(import_components36.Button, { __next40pxDefaultSize: true, ...propsWithTabIndex, children });
- }
- }
- );
+ // packages/ui/build-module/tooltip/provider.mjs
+ var import_jsx_runtime205 = __toESM(require_jsx_runtime(), 1);
+ function Provider2({ ...props }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(index_parts_exports4.Provider, { ...props });
}
- var item_default = (0, import_element107.forwardRef)(InserterListboxItem);
- // packages/block-editor/build-module/components/inserter-listbox/index.mjs
- var import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
- function InserterListBoxWrapper({ key, children }) {
- return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(import_element108.Fragment, { children }, key);
+ // packages/ui/build-module/visually-hidden/visually-hidden.mjs
+ var import_element77 = __toESM(require_element(), 1);
+ var STYLE_HASH_ATTRIBUTE16 = "data-wp-hash";
+ function getRuntime16() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument16(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
- function InserterListbox({ children }) {
- return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
- import_components37.Composite,
- {
- focusShift: true,
- focusWrap: "horizontal",
- render: InserterListBoxWrapper,
- children
+ function documentContainsStyleHash16(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE16}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE16) === hash) {
+ return true;
}
- );
+ }
+ return false;
}
- var inserter_listbox_default = InserterListbox;
-
- // packages/block-editor/build-module/components/inserter-draggable-blocks/index.mjs
- var import_components39 = __toESM(require_components(), 1);
- var import_blocks31 = __toESM(require_blocks(), 1);
- var import_data55 = __toESM(require_data(), 1);
- var import_element109 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/block-draggable/draggable-chip.mjs
- var import_i18n42 = __toESM(require_i18n(), 1);
- var import_components38 = __toESM(require_components(), 1);
- var import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
- function BlockDraggableChip({
- count,
- icon,
- isPattern,
- fadeWhenDisabled
- }) {
- const patternLabel = isPattern && (0, import_i18n42.__)("Pattern");
- return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)("div", { className: "block-editor-block-draggable-chip-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
- "div",
- {
- className: "block-editor-block-draggable-chip",
- "data-testid": "block-draggable-chip",
- children: /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
- import_components38.Flex,
- {
- justify: "center",
- className: "block-editor-block-draggable-chip__content",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(import_components38.FlexItem, { children: icon ? /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(block_icon_default, { icon }) : patternLabel || (0, import_i18n42.sprintf)(
- /* translators: %d: Number of blocks. */
- (0, import_i18n42._n)("%d block", "%d blocks", count),
- count
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(import_components38.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(block_icon_default, { icon: drag_handle_default }) }),
- fadeWhenDisabled && /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(import_components38.FlexItem, { className: "block-editor-block-draggable-chip__disabled", children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)("span", { className: "block-editor-block-draggable-chip__disabled-icon" }) })
- ]
- }
- )
- }
- ) });
+ function injectStyle16(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime16();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash16(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE16, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
}
-
- // packages/block-editor/build-module/components/inserter-draggable-blocks/index.mjs
- var import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
- var InserterDraggableBlocks = ({
- isEnabled,
- blocks: blocks2,
- icon,
- children,
- pattern
- }) => {
- const blockName = blocks2.length === 1 ? blocks2[0].name : void 0;
- const blockTypeIcon = (0, import_data55.useSelect)(
- (select3) => {
- return blockName && select3(import_blocks31.store).getBlockType(blockName)?.icon;
- },
- [blockName]
- );
- const { startDragging: startDragging2, stopDragging: stopDragging2 } = unlock(
- (0, import_data55.useDispatch)(store)
+ function registerDocument16(targetDocument) {
+ const runtime = getRuntime16();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- const patternBlock = (0, import_element109.useMemo)(() => {
- return pattern?.type === INSERTER_PATTERN_TYPES.user && pattern?.syncStatus !== "unsynced" ? [(0, import_blocks31.createBlock)("core/block", { ref: pattern.id })] : void 0;
- }, [pattern?.type, pattern?.syncStatus, pattern?.id]);
- if (!isEnabled) {
- return children({
- draggable: false,
- onDragStart: void 0,
- onDragEnd: void 0
- });
+ for (const [hash, css] of runtime.styles) {
+ injectStyle16(targetDocument, hash, css);
}
- const draggableBlocks = patternBlock ?? blocks2;
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
- import_components39.Draggable,
- {
- __experimentalTransferDataType: "wp-blocks",
- transferData: { type: "inserter", blocks: draggableBlocks },
- onDragStart: (event) => {
- startDragging2();
- const addedTypes = /* @__PURE__ */ new Set();
- for (const block of draggableBlocks) {
- const type = `wp-block:${block.name}`;
- if (!addedTypes.has(type)) {
- event.dataTransfer.items.add("", type);
- addedTypes.add(type);
- }
- }
- },
- onDragEnd: () => {
- stopDragging2();
- },
- __experimentalDragComponent: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
- BlockDraggableChip,
- {
- count: blocks2.length,
- icon: icon || !pattern && blockTypeIcon,
- isPattern: !!pattern
- }
- ),
- children: ({ onDraggableStart, onDraggableEnd }) => {
- return children({
- draggable: true,
- onDragStart: onDraggableStart,
- onDragEnd: onDraggableEnd
- });
- }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- );
- };
- var inserter_draggable_blocks_default = InserterDraggableBlocks;
-
- // packages/block-editor/build-module/components/inserter-list-item/index.mjs
- var import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
- function InserterListItem({
- className,
- isFirst,
- item,
- onSelect,
- onHover,
- isDraggable,
- ...props
- }) {
- const isDraggingRef = (0, import_element110.useRef)(false);
- const itemIconStyle = item.icon ? {
- backgroundColor: item.icon.background,
- color: item.icon.foreground
- } : {};
- const blocks2 = (0, import_element110.useMemo)(
- () => [
- (0, import_blocks32.createBlock)(
- item.name,
- item.initialAttributes,
- (0, import_blocks32.createBlocksFromInnerBlocksTemplate)(item.innerBlocks),
- item.innerContent
- )
- ],
- [
- item.name,
- item.initialAttributes,
- item.innerBlocks,
- item.innerContent
- ]
- );
- const isSynced = (0, import_blocks32.isReusableBlock)(item) && item.syncStatus !== "unsynced" || (0, import_blocks32.isTemplatePart)(item);
- return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
- inserter_draggable_blocks_default,
- {
- isEnabled: isDraggable && !item.isDisabled,
- blocks: blocks2,
- icon: item.icon,
- children: ({ draggable, onDragStart, onDragEnd }) => /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
- "div",
- {
- className: clsx_default(
- "block-editor-block-types-list__list-item",
- {
- "is-synced": isSynced
- }
- ),
- draggable,
- onDragStart: (event) => {
- isDraggingRef.current = true;
- if (onDragStart) {
- onHover(null);
- onDragStart(event);
- }
- },
- onDragEnd: (event) => {
- isDraggingRef.current = false;
- if (onDragEnd) {
- onDragEnd(event);
- }
- },
- children: /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
- item_default,
- {
- isFirst,
- className: clsx_default(
- "block-editor-block-types-list__item",
- className
- ),
- disabled: item.isDisabled,
- onClick: (event) => {
- event.preventDefault();
- onSelect(
- item,
- (0, import_keycodes8.isAppleOS)() ? event.metaKey : event.ctrlKey
- );
- onHover(null);
- },
- onKeyDown: (event) => {
- const { keyCode } = event;
- if (keyCode === import_keycodes8.ENTER) {
- event.preventDefault();
- onSelect(
- item,
- (0, import_keycodes8.isAppleOS)() ? event.metaKey : event.ctrlKey
- );
- onHover(null);
- }
- },
- onMouseEnter: () => {
- if (isDraggingRef.current) {
- return;
- }
- onHover(item);
- },
- onMouseLeave: () => onHover(null),
- ...props,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
- "span",
- {
- className: "block-editor-block-types-list__item-icon",
- style: itemIconStyle,
- children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(block_icon_default, { icon: item.icon, showColors: true })
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime233.jsx)("span", { className: "block-editor-block-types-list__item-title", children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(import_components40.__experimentalTruncate, { numberOfLines: 3, children: item.title }) })
- ]
- }
- )
- }
- )
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- );
+ runtime.documents.set(targetDocument, count - 1);
+ };
}
- var inserter_list_item_default = (0, import_element110.memo)(InserterListItem);
-
- // packages/block-editor/build-module/components/block-types-list/index.mjs
- var import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
- function chunk(array, size4) {
- const chunks = [];
- for (let i2 = 0, j2 = array.length; i2 < j2; i2 += size4) {
- chunks.push(array.slice(i2, i2 + size4));
+ function registerStyle16(hash, css) {
+ const runtime = getRuntime16();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle16(targetDocument, hash, css);
}
- return chunks;
}
- function BlockTypesList({
- items = [],
- onSelect,
- onHover = () => {
- },
- children,
- label,
- isDraggable = true
- }) {
- const className = "block-editor-block-types-list";
- const listId = (0, import_compose38.useInstanceId)(BlockTypesList, className);
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(group_default2, { className, "aria-label": label, children: [
- chunk(items, 3).map((row, i2) => /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(row_default2, { children: row.map((item, j2) => /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
- inserter_list_item_default,
- {
- item,
- className: (0, import_blocks33.getBlockMenuDefaultClassName)(
- item.id
- ),
- onSelect,
- onHover,
- isDraggable: isDraggable && !item.isDisabled,
- isFirst: i2 === 0 && j2 === 0,
- rowId: `${listId}-${i2}`
- },
- item.id
- )) }, i2)),
- children
- ] });
+ if (typeof process === "undefined" || true) {
+ registerStyle16("fa606a57ae", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");
}
- var block_types_list_default = BlockTypesList;
+ var style_default15 = { "visually-hidden": "f37b9e2e191ebd66__visually-hidden" };
+ var VisuallyHidden = (0, import_element77.forwardRef)(
+ function VisuallyHidden2({ render: render4, ...restProps }, ref) {
+ const element = useRender({
+ render: render4,
+ ref,
+ props: mergeProps(
+ { className: style_default15["visually-hidden"] },
+ restProps,
+ {
+ // @ts-expect-error Arbitrary data-* attributes aren't indexable on the typed div props. Kept hardcoded so consumers can't change or remove it.
+ "data-visually-hidden": ""
+ }
+ )
+ });
+ return element;
+ }
+ );
- // packages/block-editor/build-module/components/inserter/panel.mjs
- var import_components41 = __toESM(require_components(), 1);
- var import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
- function InserterPanel({ title, icon, children }) {
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(import_jsx_runtime235.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { className: "block-editor-inserter__panel-header", children: [
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)("h2", { className: "block-editor-inserter__panel-title", children: title }),
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(import_components41.Icon, { icon })
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime235.jsx)("div", { className: "block-editor-inserter__panel-content", children })
- ] });
+ // packages/ui/build-module/form/primitives/input-layout/input-layout.mjs
+ var import_element78 = __toESM(require_element(), 1);
+ var import_jsx_runtime206 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE17 = "data-wp-hash";
+ function getRuntime17() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument17(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
- var panel_default = InserterPanel;
-
- // packages/block-editor/build-module/components/inserter/no-results.mjs
- var import_i18n43 = __toESM(require_i18n(), 1);
- var import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
- function InserterNoResults({ children = (0, import_i18n43.__)("No results found.") }) {
- return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("div", { className: "block-editor-inserter__no-results", children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("p", { children }) });
+ function documentContainsStyleHash17(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE17}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE17) === hash) {
+ return true;
+ }
+ }
+ return false;
}
- var no_results_default = InserterNoResults;
-
- // packages/block-editor/build-module/components/inserter/block-types-tab.mjs
- var import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
- var getBlockNamespace = (item) => item.name.split("/")[0];
- var MAX_SUGGESTED_ITEMS = 6;
- var EMPTY_ARRAY6 = [];
- function BlockTypesTabPanel({
- items,
- collections,
- categories,
- onSelectItem,
- onHover,
- showMostUsedBlocks,
- className
- }) {
- const suggestedItems = (0, import_element111.useMemo)(() => {
- return orderBy(items, "frecency", "desc").slice(
- 0,
- MAX_SUGGESTED_ITEMS
- );
- }, [items]);
- const uncategorizedItems = (0, import_element111.useMemo)(() => {
- return items.filter((item) => !item.category);
- }, [items]);
- const itemsPerCollection = (0, import_element111.useMemo)(() => {
- const result = { ...collections };
- Object.keys(collections).forEach((namespace) => {
- result[namespace] = items.filter(
- (item) => getBlockNamespace(item) === namespace
- );
- if (result[namespace].length === 0) {
- delete result[namespace];
- }
- });
- return result;
- }, [items, collections]);
- (0, import_element111.useEffect)(() => () => onHover(null), []);
- const currentlyRenderedCategories = (0, import_compose39.useAsyncList)(categories);
- const didRenderAllCategories = categories.length === currentlyRenderedCategories.length;
- const collectionEntries = (0, import_element111.useMemo)(() => {
- return Object.entries(collections);
- }, [collections]);
- const currentlyRenderedCollections = (0, import_compose39.useAsyncList)(
- didRenderAllCategories ? collectionEntries : EMPTY_ARRAY6
- );
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)("div", { className, children: [
- showMostUsedBlocks && // Only show the most used blocks if the total amount of block
- // is larger than 1 row, otherwise it is not so useful.
- items.length > 3 && !!suggestedItems.length && /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(panel_default, { title: (0, import_i18n44._x)("Most used", "blocks"), children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
- block_types_list_default,
- {
- items: suggestedItems,
- onSelect: onSelectItem,
- onHover,
- label: (0, import_i18n44._x)("Most used", "blocks")
- }
- ) }),
- currentlyRenderedCategories.map((category) => {
- const categoryItems = items.filter(
- (item) => item.category === category.slug
- );
- if (!categoryItems || !categoryItems.length) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
- panel_default,
- {
- title: category.title,
- icon: category.icon,
- children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
- block_types_list_default,
- {
- items: categoryItems,
- onSelect: onSelectItem,
- onHover,
- label: category.title
- }
- )
- },
- category.slug
- );
- }),
- didRenderAllCategories && uncategorizedItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
- panel_default,
- {
- className: "block-editor-inserter__uncategorized-blocks-panel",
- title: (0, import_i18n44.__)("Uncategorized"),
- children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
- block_types_list_default,
- {
- items: uncategorizedItems,
- onSelect: onSelectItem,
- onHover,
- label: (0, import_i18n44.__)("Uncategorized")
- }
- )
- }
- ),
- currentlyRenderedCollections.map(
- ([namespace, collection]) => {
- const collectionItems = itemsPerCollection[namespace];
- if (!collectionItems || !collectionItems.length) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
- panel_default,
- {
- title: collection.title,
- icon: collection.icon,
- children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
- block_types_list_default,
- {
- items: collectionItems,
- onSelect: onSelectItem,
- onHover,
- label: collection.title
- }
- )
- },
- namespace
- );
- }
- )
- ] });
+ function injectStyle17(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime17();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash17(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE17, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
}
- function BlockTypesTab({ rootClientId, onInsert, onHover, showMostUsedBlocks }, ref) {
- const [items, categories, collections, onSelectItem] = use_block_types_state_default(
- rootClientId,
- onInsert
+ function registerDocument17(targetDocument) {
+ const runtime = getRuntime17();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- if (!items.length) {
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(no_results_default, {});
+ for (const [hash, css] of runtime.styles) {
+ injectStyle17(targetDocument, hash, css);
}
- const itemsForCurrentRoot = [];
- const itemsRemaining = [];
- for (const item of items) {
- if (item.category === "reusable") {
- continue;
- }
- if (item.isSearchOnly) {
- continue;
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- if (item.isAllowedInCurrentRoot) {
- itemsForCurrentRoot.push(item);
- } else {
- itemsRemaining.push(item);
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle17(hash, css) {
+ const runtime = getRuntime17();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle17(targetDocument, hash, css);
}
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(inserter_listbox_default, { children: /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)("div", { ref, children: [
- !!itemsForCurrentRoot.length && /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(import_jsx_runtime237.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
- BlockTypesTabPanel,
- {
- items: itemsForCurrentRoot,
- categories,
- collections,
- onSelectItem,
- onHover,
- showMostUsedBlocks,
- className: "block-editor-inserter__insertable-blocks-at-selection"
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
- BlockTypesTabPanel,
- {
- items: itemsRemaining,
- categories,
- collections,
- onSelectItem,
- onHover,
- showMostUsedBlocks,
- className: "block-editor-inserter__all-blocks"
- }
- )
- ] }) });
}
- var block_types_tab_default = (0, import_element111.forwardRef)(BlockTypesTab);
-
- // packages/block-editor/build-module/components/inserter/block-patterns-tab/index.mjs
- var import_element122 = __toESM(require_element(), 1);
- var import_compose44 = __toESM(require_compose(), 1);
- var import_components51 = __toESM(require_components(), 1);
- var import_i18n56 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/inserter/block-patterns-explorer/index.mjs
- var import_components46 = __toESM(require_components(), 1);
- var import_element118 = __toESM(require_element(), 1);
- var import_i18n52 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.mjs
- var import_components42 = __toESM(require_components(), 1);
- var import_i18n45 = __toESM(require_i18n(), 1);
- var import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
- function PatternCategoriesList({
- selectedCategory,
- patternCategories,
- onClickCategory
- }) {
- const baseClassName = "block-editor-block-patterns-explorer__sidebar";
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)("div", { className: `${baseClassName}__categories-list`, children: patternCategories.map(({ name, label }) => {
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
- import_components42.Button,
- {
- __next40pxDefaultSize: true,
- label,
- className: `${baseClassName}__categories-list__item`,
- isPressed: selectedCategory === name,
- onClick: () => {
- onClickCategory(name);
- },
- children: label
- },
- name
- );
- }) });
+ if (typeof process === "undefined" || true) {
+ registerStyle17("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
}
- function PatternsExplorerSearch({ searchValue, setSearchValue }) {
- const baseClassName = "block-editor-block-patterns-explorer__search";
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)("div", { className: baseClassName, children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
- import_components42.SearchControl,
- {
- onChange: setSearchValue,
- value: searchValue,
- label: (0, import_i18n45.__)("Search"),
- placeholder: (0, import_i18n45.__)("Search")
- }
- ) });
+ var global_css_defense_default5 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
+ if (typeof process === "undefined" || true) {
+ registerStyle17("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
}
- function PatternExplorerSidebar({
- selectedCategory,
- patternCategories,
- onClickCategory,
- searchValue,
- setSearchValue
- }) {
- const baseClassName = "block-editor-block-patterns-explorer__sidebar";
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)("div", { className: baseClassName, children: [
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
- PatternsExplorerSearch,
- {
- searchValue,
- setSearchValue
- }
- ),
- !searchValue && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
- PatternCategoriesList,
- {
- selectedCategory,
- patternCategories,
- onClickCategory
- }
- )
- ] });
+ var resets_default5 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
+ if (typeof process === "undefined" || true) {
+ registerStyle17("bc14d8e61b", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');
}
- var pattern_explorer_sidebar_default = PatternExplorerSidebar;
-
- // packages/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-list.mjs
- var import_element116 = __toESM(require_element(), 1);
- var import_i18n50 = __toESM(require_i18n(), 1);
- var import_compose42 = __toESM(require_compose(), 1);
- var import_components45 = __toESM(require_components(), 1);
- var import_a11y7 = __toESM(require_a11y(), 1);
-
- // packages/block-editor/build-module/components/block-patterns-list/index.mjs
- var import_blocks34 = __toESM(require_blocks(), 1);
- var import_element112 = __toESM(require_element(), 1);
- var import_components44 = __toESM(require_components(), 1);
- var import_compose40 = __toESM(require_compose(), 1);
- var import_i18n47 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/block-patterns-paging/index.mjs
- var import_components43 = __toESM(require_components(), 1);
- var import_i18n46 = __toESM(require_i18n(), 1);
- var import_jsx_runtime239 = __toESM(require_jsx_runtime(), 1);
- function Pagination({
- currentPage,
- numPages,
- changePage,
- totalItems
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(import_components43.__experimentalVStack, { className: "block-editor-patterns__grid-pagination-wrapper", children: [
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_components43.__experimentalText, { variant: "muted", children: (0, import_i18n46.sprintf)(
- // translators: %s: Total number of patterns.
- (0, import_i18n46._n)("%s item", "%s items", totalItems),
- totalItems
- ) }),
- numPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
- import_components43.__experimentalHStack,
+ var style_default16 = { "input-layout": "cb2baafdc08746bb__input-layout", "is-size-compact": "_0c807a84cbb94e0c__is-size-compact", "is-size-small": "ed67cda122dc1e7b__is-size-small", "is-disabled": "_6fb7104732387680__is-disabled", "is-borderless": "_8097270636ca6100__is-borderless", "input-layout-slot": "_0d7afad74a057888__input-layout-slot", "slot-wrapper": "c192b41a12b4387b__slot-wrapper", "is-padding-minimal": "_0c952682762ca288__is-padding-minimal" };
+ var InputLayout = (0, import_element78.forwardRef)(
+ function InputLayout2({
+ className: className2,
+ children,
+ visuallyDisabled,
+ size: size4 = "default",
+ isBorderless,
+ prefix: prefix2,
+ suffix,
+ ...restProps
+ }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)(
+ "div",
{
- expanded: false,
- spacing: 3,
- justify: "flex-start",
- className: "block-editor-patterns__grid-pagination",
+ ref,
+ className: clsx_default(
+ global_css_defense_default5.div,
+ resets_default5["box-sizing"],
+ style_default16["input-layout"],
+ style_default16[`is-size-${size4}`],
+ visuallyDisabled && style_default16["is-disabled"],
+ isBorderless && style_default16["is-borderless"],
+ className2
+ ),
+ ...restProps,
children: [
- /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
- import_components43.__experimentalHStack,
+ import_element78.Children.count(prefix2) > 0 && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
+ "div",
{
- expanded: false,
- spacing: 1,
- className: "block-editor-patterns__grid-pagination-previous",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
- import_components43.Button,
- {
- variant: "tertiary",
- onClick: () => changePage(1),
- disabled: currentPage === 1,
- "aria-label": (0, import_i18n46.__)("First page"),
- size: "compact",
- accessibleWhenDisabled: true,
- className: "block-editor-patterns__grid-pagination-button",
- children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("span", { children: "\xAB" })
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
- import_components43.Button,
- {
- variant: "tertiary",
- onClick: () => changePage(currentPage - 1),
- disabled: currentPage === 1,
- "aria-label": (0, import_i18n46.__)("Previous page"),
- size: "compact",
- accessibleWhenDisabled: true,
- className: "block-editor-patterns__grid-pagination-button",
- children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("span", { children: "\u2039" })
- }
- )
- ]
+ className: style_default16["slot-wrapper"],
+ "data-slot-type": "prefix",
+ children: prefix2
}
),
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_components43.__experimentalText, { variant: "muted", children: (0, import_i18n46.sprintf)(
- // translators: 1: Current page number. 2: Total number of pages.
- (0, import_i18n46._x)("%1$s of %2$s", "paging"),
- currentPage,
- numPages
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
- import_components43.__experimentalHStack,
+ children,
+ import_element78.Children.count(suffix) > 0 && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
+ "div",
{
- expanded: false,
- spacing: 1,
- className: "block-editor-patterns__grid-pagination-next",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
- import_components43.Button,
- {
- variant: "tertiary",
- onClick: () => changePage(currentPage + 1),
- disabled: currentPage === numPages,
- "aria-label": (0, import_i18n46.__)("Next page"),
- size: "compact",
- accessibleWhenDisabled: true,
- className: "block-editor-patterns__grid-pagination-button",
- children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("span", { children: "\u203A" })
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
- import_components43.Button,
- {
- variant: "tertiary",
- onClick: () => changePage(numPages),
- disabled: currentPage === numPages,
- "aria-label": (0, import_i18n46.__)("Last page"),
- size: "compact",
- accessibleWhenDisabled: true,
- className: "block-editor-patterns__grid-pagination-button",
- children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("span", { children: "\xBB" })
- }
- )
- ]
+ className: style_default16["slot-wrapper"],
+ "data-slot-type": "suffix",
+ children: suffix
}
)
]
}
- )
- ] });
- }
+ );
+ }
+ );
- // packages/block-editor/build-module/components/block-patterns-list/index.mjs
- var import_jsx_runtime240 = __toESM(require_jsx_runtime(), 1);
- var WithToolTip = ({ showTooltip, title, children }) => {
- if (showTooltip) {
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(tooltip_exports.Root, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(tooltip_exports.Trigger, { render: children }),
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(tooltip_exports.Popup, { children: title })
- ] });
+ // packages/ui/build-module/form/primitives/input-layout/slot.mjs
+ var import_element79 = __toESM(require_element(), 1);
+ var import_jsx_runtime207 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE18 = "data-wp-hash";
+ function getRuntime18() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
}
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(import_jsx_runtime240.Fragment, { children });
- };
- function BlockPattern({
- id,
- isDraggable,
- pattern,
- onClick,
- onHover,
- showTitlesAsTooltip,
- category,
- isSelected
- }) {
- const [isDragging3, setIsDragging] = (0, import_element112.useState)(false);
- const { blocks: blocks2, viewportWidth } = pattern;
- const instanceId = (0, import_compose40.useInstanceId)(BlockPattern);
- const descriptionId = `block-editor-block-patterns-list__item-description-${instanceId}`;
- const isUserPattern = pattern.type === INSERTER_PATTERN_TYPES.user;
- const patternBlocks = (0, import_element112.useMemo)(() => {
- if (!category || !isDraggable) {
- return blocks2;
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument18(document);
+ }
+ return globalScope.__wpStyleRuntime;
+ }
+ function documentContainsStyleHash18(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE18}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE18) === hash) {
+ return true;
}
- return (blocks2 ?? []).map((block) => {
- const clonedBlock = (0, import_blocks34.cloneBlock)(block);
- if (clonedBlock.attributes.metadata?.categories?.includes(
- category
- )) {
- clonedBlock.attributes.metadata.categories = [category];
- }
- return clonedBlock;
- });
- }, [blocks2, isDraggable, category]);
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
- inserter_draggable_blocks_default,
- {
- isEnabled: isDraggable,
- blocks: patternBlocks,
- pattern,
- children: ({ draggable, onDragStart, onDragEnd }) => /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
- "div",
- {
- className: "block-editor-block-patterns-list__list-item",
- draggable,
- onDragStart: (event) => {
- setIsDragging(true);
- if (onDragStart) {
- onHover?.(null);
- onDragStart(event);
- }
- },
- onDragEnd: (event) => {
- setIsDragging(false);
- if (onDragEnd) {
- onDragEnd(event);
- }
- },
- children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
- WithToolTip,
- {
- showTooltip: showTitlesAsTooltip && !isUserPattern,
- title: pattern.title,
- children: /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
- import_components44.Composite.Item,
- {
- render: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
- "div",
- {
- role: "option",
- "aria-label": pattern.title,
- "aria-describedby": pattern.description ? descriptionId : void 0,
- className: clsx_default(
- "block-editor-block-patterns-list__item",
- {
- "block-editor-block-patterns-list__list-item-synced": pattern.type === INSERTER_PATTERN_TYPES.user && !pattern.syncStatus,
- "is-selected": isSelected
- }
- )
- }
- ),
- id,
- onClick: () => {
- onClick(pattern, blocks2);
- onHover?.(null);
- },
- onMouseEnter: () => {
- if (isDragging3) {
- return;
- }
- onHover?.(pattern);
- },
- onMouseLeave: () => onHover?.(null),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
- block_preview_default.Async,
- {
- placeholder: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(BlockPatternPlaceholder, {}),
- children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
- block_preview_default,
- {
- blocks: blocks2,
- viewportWidth
- }
- )
- }
- ),
- (!showTitlesAsTooltip || isUserPattern) && /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
- import_components44.__experimentalHStack,
- {
- className: "block-editor-patterns__pattern-details",
- spacing: 2,
- children: [
- isUserPattern && !pattern.syncStatus && /* @__PURE__ */ (0, import_jsx_runtime240.jsx)("div", { className: "block-editor-patterns__pattern-icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
- icon_default,
- {
- className: "block-editor-patterns__pattern-icon",
- icon: symbol_default
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
- Text,
- {
- render: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)("div", {}),
- className: "block-editor-block-patterns-list__item-title",
- variant: "body-sm",
- children: pattern.title
- }
- )
- ]
- }
- ),
- !!pattern.description && /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(VisuallyHidden, { id: descriptionId, children: pattern.description })
- ]
- }
- )
- }
- )
- }
- )
- }
- );
+ }
+ return false;
}
- function BlockPatternPlaceholder() {
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)("div", { className: "block-editor-block-patterns-list__item is-placeholder" });
+ function injectStyle18(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime18();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash18(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE18, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
}
- function BlockPatternsList({
- isDraggable,
- blockPatterns,
- onHover,
- onClickPattern,
- orientation,
- category,
- label = (0, import_i18n47.__)("Patterns"),
- showTitlesAsTooltip,
- pagingProps
- }, ref) {
- const [activeCompositeId, setActiveCompositeId] = (0, import_element112.useState)(void 0);
- const [activePattern, setActivePattern] = (0, import_element112.useState)(null);
- (0, import_element112.useEffect)(() => {
- const firstCompositeItemId = blockPatterns[0]?.name;
- setActiveCompositeId(firstCompositeItemId);
- }, [blockPatterns]);
- const handleClickPattern = (pattern, blocks2) => {
- setActivePattern(pattern.name);
- onClickPattern(pattern, blocks2);
+ function registerDocument18(targetDocument) {
+ const runtime = getRuntime18();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
+ );
+ for (const [hash, css] of runtime.styles) {
+ injectStyle18(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
+ }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
+ }
+ runtime.documents.set(targetDocument, count - 1);
};
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
- import_components44.Composite,
+ }
+ function registerStyle18(hash, css) {
+ const runtime = getRuntime18();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle18(targetDocument, hash, css);
+ }
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle18("bc14d8e61b", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&._8097270636ca6100__is-borderless{border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');
+ }
+ var style_default17 = { "input-layout": "cb2baafdc08746bb__input-layout", "is-size-compact": "_0c807a84cbb94e0c__is-size-compact", "is-size-small": "ed67cda122dc1e7b__is-size-small", "is-disabled": "_6fb7104732387680__is-disabled", "is-borderless": "_8097270636ca6100__is-borderless", "input-layout-slot": "_0d7afad74a057888__input-layout-slot", "slot-wrapper": "c192b41a12b4387b__slot-wrapper", "is-padding-minimal": "_0c952682762ca288__is-padding-minimal" };
+ var InputLayoutSlot = (0, import_element79.forwardRef)(function InputLayoutSlot2({ padding = "default", className: className2, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
+ "div",
{
- orientation,
- activeId: activeCompositeId,
- setActiveId: setActiveCompositeId,
- role: "listbox",
- className: "block-editor-block-patterns-list",
- "aria-label": label,
ref,
- children: [
- blockPatterns.map((pattern) => /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
- BlockPattern,
- {
- id: pattern.name,
- pattern,
- onClick: handleClickPattern,
- onHover,
- isDraggable,
- showTitlesAsTooltip,
- category,
- isSelected: !!activePattern && activePattern === pattern.name
- },
- pattern.name
- )),
- pagingProps && /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Pagination, { ...pagingProps })
- ]
+ className: clsx_default(
+ style_default17["input-layout-slot"],
+ style_default17[`is-padding-${padding}`],
+ className2
+ ),
+ ...restProps
}
);
- }
- var block_patterns_list_default = (0, import_element112.forwardRef)(BlockPatternsList);
+ });
+ InputLayoutSlot.displayName = "InputLayout.Slot";
- // packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.mjs
- var import_data56 = __toESM(require_data(), 1);
- var import_blocks35 = __toESM(require_blocks(), 1);
- var import_i18n48 = __toESM(require_i18n(), 1);
- var import_a11y6 = __toESM(require_a11y(), 1);
- var import_element113 = __toESM(require_element(), 1);
- function getIndex({
- destinationRootClientId,
- destinationIndex,
- rootClientId,
- registry
- }) {
- if (rootClientId === destinationRootClientId) {
- return destinationIndex;
- }
- const parents = [
- "",
- ...registry.select(store).getBlockParents(destinationRootClientId),
- destinationRootClientId
- ];
- const parentIndex = parents.indexOf(rootClientId);
- if (parentIndex !== -1) {
- return registry.select(store).getBlockIndex(parents[parentIndex + 1]) + 1;
- }
- return registry.select(store).getBlockOrder(rootClientId).length;
- }
- function useInsertionPoint({
- rootClientId = "",
- insertionIndex,
- clientId,
- isAppender,
- onSelect,
- shouldFocusBlock = true,
- selectBlockOnInsert = true
- }) {
- const registry = (0, import_data56.useRegistry)();
- const {
- getSelectedBlock: getSelectedBlock2,
- getClosestAllowedInsertionPoint: getClosestAllowedInsertionPoint2,
- isBlockInsertionPointVisible: isBlockInsertionPointVisible2
- } = unlock((0, import_data56.useSelect)(store));
- const { destinationRootClientId, destinationIndex } = (0, import_data56.useSelect)(
- (select3) => {
- const {
- getSelectedBlockClientId: getSelectedBlockClientId2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlockIndex: getBlockIndex2,
- getBlockOrder: getBlockOrder2,
- getInsertionPoint: getInsertionPoint2
- } = unlock(select3(store));
- const selectedBlockClientId = getSelectedBlockClientId2();
- let _destinationRootClientId = rootClientId;
- let _destinationIndex;
- const insertionPoint2 = getInsertionPoint2();
- if (insertionIndex !== void 0) {
- _destinationIndex = insertionIndex;
- } else if (insertionPoint2 && insertionPoint2.hasOwnProperty("index")) {
- _destinationRootClientId = insertionPoint2?.rootClientId ? insertionPoint2.rootClientId : rootClientId;
- _destinationIndex = insertionPoint2.index;
- } else if (clientId) {
- _destinationIndex = getBlockIndex2(clientId);
- } else if (!isAppender && selectedBlockClientId) {
- _destinationRootClientId = getBlockRootClientId2(
- selectedBlockClientId
- );
- _destinationIndex = getBlockIndex2(selectedBlockClientId) + 1;
- } else {
- _destinationIndex = getBlockOrder2(
- _destinationRootClientId
- ).length;
- }
- return {
- destinationRootClientId: _destinationRootClientId,
- destinationIndex: _destinationIndex
- };
- },
- [rootClientId, insertionIndex, clientId, isAppender]
- );
- const {
- replaceBlocks: replaceBlocks2,
- insertBlocks: insertBlocks2,
- showInsertionPoint: showInsertionPoint2,
- hideInsertionPoint: hideInsertionPoint2,
- setLastFocus: setLastFocus2
- } = unlock((0, import_data56.useDispatch)(store));
- const onInsertBlocks = (0, import_element113.useCallback)(
- (blocks2, meta, shouldForceFocusBlock = false, _rootClientId) => {
- if (shouldForceFocusBlock || shouldFocusBlock || selectBlockOnInsert) {
- setLastFocus2(null);
- }
- const selectedBlock = getSelectedBlock2();
- if (!isAppender && selectedBlock && (0, import_blocks35.isUnmodifiedDefaultBlock)(selectedBlock, "content")) {
- replaceBlocks2(
- selectedBlock.clientId,
- blocks2,
- null,
- shouldFocusBlock || shouldForceFocusBlock ? 0 : null,
- meta
- );
- } else {
- insertBlocks2(
- blocks2,
- isAppender || _rootClientId === void 0 ? destinationIndex : getIndex({
- destinationRootClientId,
- destinationIndex,
- rootClientId: _rootClientId,
- registry
- }),
- isAppender || _rootClientId === void 0 ? destinationRootClientId : _rootClientId,
- selectBlockOnInsert,
- shouldFocusBlock || shouldForceFocusBlock ? 0 : null,
- meta
- );
- }
- const blockLength = Array.isArray(blocks2) ? blocks2.length : 1;
- const message2 = (0, import_i18n48.sprintf)(
- // translators: %d: the name of the block that has been added
- (0, import_i18n48._n)("%d block added.", "%d blocks added.", blockLength),
- blockLength
- );
- (0, import_a11y6.speak)(message2);
- if (onSelect) {
- onSelect(blocks2);
- }
- },
- [
- isAppender,
- getSelectedBlock2,
- replaceBlocks2,
- insertBlocks2,
- destinationRootClientId,
- destinationIndex,
- onSelect,
- shouldFocusBlock,
- selectBlockOnInsert,
- setLastFocus2,
- registry
- ]
- );
- const onToggleInsertionPoint = (0, import_element113.useCallback)(
- (item) => {
- if (item && !isBlockInsertionPointVisible2()) {
- const allowedDestinationRootClientId = getClosestAllowedInsertionPoint2(
- item.name,
- destinationRootClientId
- );
- if (allowedDestinationRootClientId !== null) {
- showInsertionPoint2(
- allowedDestinationRootClientId,
- getIndex({
- destinationRootClientId,
- destinationIndex,
- rootClientId: allowedDestinationRootClientId,
- registry
- })
- );
- }
- } else {
- hideInsertionPoint2();
- }
- },
- [
- getClosestAllowedInsertionPoint2,
- isBlockInsertionPointVisible2,
- showInsertionPoint2,
- hideInsertionPoint2,
- destinationRootClientId,
- destinationIndex,
- registry
- ]
- );
- return [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint];
- }
- var use_insertion_point_default = useInsertionPoint;
+ // packages/ui/build-module/form/primitives/input-layout/index.mjs
+ var InputLayout3 = Object.assign(InputLayout, {
+ Slot: InputLayoutSlot
+ });
- // packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.mjs
- var import_element114 = __toESM(require_element(), 1);
- var import_blocks36 = __toESM(require_blocks(), 1);
- var import_data57 = __toESM(require_data(), 1);
- var import_i18n49 = __toESM(require_i18n(), 1);
- var import_notices5 = __toESM(require_notices(), 1);
- var usePatternsState = (onInsert, rootClientId, selectedCategory, isQuick) => {
- const options = (0, import_element114.useMemo)(
- () => ({ [isFiltered]: !!isQuick }),
- [isQuick]
- );
- const isWithinNavigationOverlayContext = (0, import_data57.useSelect)((select3) => {
- const { getSettings: getSettings7 } = unlock(select3(store));
- const settings2 = getSettings7();
- return settings2[isNavigationOverlayContextKey] ?? false;
- }, []);
- const { patternCategories, patterns, userPatternCategories } = (0, import_data57.useSelect)(
- (select3) => {
- const { getSettings: getSettings7, __experimentalGetAllowedPatterns: __experimentalGetAllowedPatterns2 } = unlock(
- select3(store)
- );
- const settings2 = getSettings7();
- const userPatternCategoriesSelect = settings2[userPatternCategoriesSelectKey];
- return {
- patterns: __experimentalGetAllowedPatterns2(
- rootClientId,
- options
- ),
- userPatternCategories: userPatternCategoriesSelect ? userPatternCategoriesSelect(select3) : settings2.__experimentalUserPatternCategories,
- patternCategories: settings2.__experimentalBlockPatternCategories
- };
- },
- [rootClientId, options]
- );
- const filteredPatterns = (0, import_element114.useMemo)(() => {
- return patterns.filter((pattern) => {
- const hasNavigationCategory = pattern.categories?.includes("navigation");
- if (hasNavigationCategory && !isWithinNavigationOverlayContext) {
- return false;
- }
- return true;
- });
- }, [patterns, isWithinNavigationOverlayContext]);
- const { getClosestAllowedInsertionPointForPattern: getClosestAllowedInsertionPointForPattern2 } = unlock(
- (0, import_data57.useSelect)(store)
- );
- const allCategories = (0, import_element114.useMemo)(() => {
- const categories = [...patternCategories];
- userPatternCategories?.forEach((userCategory) => {
- if (!categories.find(
- (existingCategory) => existingCategory.name === userCategory.name
- )) {
- categories.push(userCategory);
- }
- });
- return categories;
- }, [patternCategories, userPatternCategories]);
- const { createSuccessNotice } = (0, import_data57.useDispatch)(import_notices5.store);
- const onClickPattern = (0, import_element114.useCallback)(
- (pattern, blocks2) => {
- const destinationRootClientId = isQuick ? rootClientId : getClosestAllowedInsertionPointForPattern2(
- pattern,
- rootClientId
- );
- if (destinationRootClientId === null) {
- return;
- }
- const patternBlocks = pattern.type === INSERTER_PATTERN_TYPES.user && pattern.syncStatus !== "unsynced" ? [(0, import_blocks36.createBlock)("core/block", { ref: pattern.id })] : blocks2;
- onInsert(
- (patternBlocks ?? []).map((block) => {
- const clonedBlock = (0, import_blocks36.cloneBlock)(block);
- if (clonedBlock.attributes.metadata?.categories?.includes(
- selectedCategory
- )) {
- clonedBlock.attributes.metadata.categories = [
- selectedCategory
- ];
- }
- return clonedBlock;
- }),
- pattern.name,
- false,
- destinationRootClientId
- );
- createSuccessNotice(
- (0, import_i18n49.sprintf)(
- /* translators: %s: block pattern title. */
- (0, import_i18n49.__)('Pattern "%s" inserted.'),
- pattern.title
- ),
- {
- type: "snackbar",
- id: "inserter-notice"
- }
- );
- },
- [
- createSuccessNotice,
- onInsert,
- selectedCategory,
- rootClientId,
- getClosestAllowedInsertionPointForPattern2,
- isQuick
- ]
- );
- return [filteredPatterns, allCategories, onClickPattern];
+ // packages/ui/build-module/form/primitives/constants.mjs
+ var ITEM_POPUP_POSITIONER_PROPS = {
+ align: "start",
+ sideOffset: 8,
+ collisionPadding: 12
};
- var use_patterns_state_default = usePatternsState;
- // packages/block-editor/build-module/components/inserter/hooks/use-patterns-paging.mjs
- var import_element115 = __toESM(require_element(), 1);
- var import_compose41 = __toESM(require_compose(), 1);
- var import_dom51 = __toESM(require_dom(), 1);
- var PAGE_SIZE = 20;
- function usePatternsPaging(currentCategoryPatterns, currentCategory, scrollContainerRef, currentFilter = "") {
- const [currentPage, setCurrentPage] = (0, import_element115.useState)(1);
- const previousCategory = (0, import_compose41.usePrevious)(currentCategory);
- const previousFilter = (0, import_compose41.usePrevious)(currentFilter);
- if ((previousCategory !== currentCategory || previousFilter !== currentFilter) && currentPage !== 1) {
- setCurrentPage(1);
+ // packages/ui/build-module/form/primitives/field/index.mjs
+ var field_exports = {};
+ __export(field_exports, {
+ Control: () => Control,
+ Description: () => Description,
+ Details: () => Details,
+ Item: () => Item2,
+ Label: () => Label,
+ Root: () => Root6
+ });
+
+ // packages/ui/build-module/form/primitives/field/root.mjs
+ var import_element80 = __toESM(require_element(), 1);
+ var import_jsx_runtime208 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE19 = "data-wp-hash";
+ function getRuntime19() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
}
- const totalItems = currentCategoryPatterns.length;
- const pageIndex = currentPage - 1;
- const categoryPatterns = (0, import_element115.useMemo)(() => {
- return currentCategoryPatterns.slice(
- pageIndex * PAGE_SIZE,
- pageIndex * PAGE_SIZE + PAGE_SIZE
- );
- }, [pageIndex, currentCategoryPatterns]);
- const numPages = Math.ceil(currentCategoryPatterns.length / PAGE_SIZE);
- const changePage = (page) => {
- const scrollContainer = (0, import_dom51.getScrollContainer)(
- scrollContainerRef?.current
- );
- scrollContainer?.scrollTo(0, 0);
- setCurrentPage(page);
- };
- (0, import_element115.useEffect)(
- function scrollToTopOnCategoryChange() {
- const scrollContainer = (0, import_dom51.getScrollContainer)(
- scrollContainerRef?.current
- );
- scrollContainer?.scrollTo(0, 0);
- },
- [currentCategory, scrollContainerRef]
- );
- return {
- totalItems,
- categoryPatterns,
- numPages,
- changePage,
- currentPage
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
};
+ if (typeof document !== "undefined") {
+ registerDocument19(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
-
- // packages/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-list.mjs
- var import_jsx_runtime241 = __toESM(require_jsx_runtime(), 1);
- function PatternsListHeader({ filterValue, filteredBlockPatternsLength }) {
- if (!filterValue) {
- return null;
+ function documentContainsStyleHash19(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
}
- return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
- import_components45.__experimentalHeading,
- {
- level: 2,
- lineHeight: "48px",
- className: "block-editor-block-patterns-explorer__search-results-count",
- children: (0, import_i18n50.sprintf)(
- /* translators: %d: number of patterns. */
- (0, import_i18n50._n)(
- "%d pattern found",
- "%d patterns found",
- filteredBlockPatternsLength
- ),
- filteredBlockPatternsLength
- )
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE19}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE19) === hash) {
+ return true;
}
- );
+ }
+ return false;
}
- function PatternList({
- searchValue,
- selectedCategory,
- patternCategories,
- rootClientId,
- onModalClose
- }) {
- const container = (0, import_element116.useRef)();
- const debouncedSpeak = (0, import_compose42.useDebounce)(import_a11y7.speak, 500);
- const [destinationRootClientId, onInsertBlocks] = use_insertion_point_default({
- rootClientId,
- shouldFocusBlock: true
- });
- const [patterns, , onClickPattern] = use_patterns_state_default(
- onInsertBlocks,
- destinationRootClientId,
- selectedCategory
- );
- const registeredPatternCategories = (0, import_element116.useMemo)(
- () => patternCategories.map(
- (patternCategory) => patternCategory.name
- ),
- [patternCategories]
+ function injectStyle19(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime19();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash19(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE19, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument19(targetDocument) {
+ const runtime = getRuntime19();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- const filteredBlockPatterns = (0, import_element116.useMemo)(() => {
- const filteredPatterns = patterns.filter((pattern) => {
- if (selectedCategory === allPatternsCategory.name) {
- return true;
- }
- if (selectedCategory === myPatternsCategory.name && pattern.type === INSERTER_PATTERN_TYPES.user) {
- return true;
- }
- if (selectedCategory === starterPatternsCategory.name && pattern.blockTypes?.includes("core/post-content")) {
- return true;
- }
- if (selectedCategory === "uncategorized") {
- const hasKnownCategory = pattern.categories?.some(
- (category) => registeredPatternCategories.includes(category)
- ) ?? false;
- return !pattern.categories?.length || !hasKnownCategory;
- }
- return pattern.categories?.includes(selectedCategory);
- });
- if (!searchValue) {
- return filteredPatterns;
+ for (const [hash, css] of runtime.styles) {
+ injectStyle19(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- return searchItems(filteredPatterns, searchValue);
- }, [
- searchValue,
- patterns,
- selectedCategory,
- registeredPatternCategories
- ]);
- (0, import_element116.useEffect)(() => {
- if (!searchValue) {
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
return;
}
- const count = filteredBlockPatterns.length;
- const resultsFoundMessage = (0, import_i18n50.sprintf)(
- /* translators: %d: number of results. */
- (0, import_i18n50._n)("%d result found.", "%d results found.", count),
- count
- );
- debouncedSpeak(resultsFoundMessage);
- }, [searchValue, debouncedSpeak, filteredBlockPatterns.length]);
- const pagingProps = usePatternsPaging(
- filteredBlockPatterns,
- selectedCategory,
- container
- );
- const [previousSearchValue, setPreviousSearchValue] = (0, import_element116.useState)(searchValue);
- if (searchValue !== previousSearchValue) {
- setPreviousSearchValue(searchValue);
- pagingProps.changePage(1);
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle19(hash, css) {
+ const runtime = getRuntime19();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle19(targetDocument, hash, css);
}
- const hasItems = !!filteredBlockPatterns?.length;
- return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
- "div",
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle19("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
+ }
+ var resets_default6 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
+ var DEFAULT_RENDER = (props) => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Stack, { ...props, direction: "column", gap: "sm" });
+ var Root6 = (0, import_element80.forwardRef)(function Root22({ className: className2, render: render4 = DEFAULT_RENDER, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
+ index_parts_exports2.Root,
{
- className: "block-editor-block-patterns-explorer__list",
- ref: container,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
- PatternsListHeader,
- {
- filterValue: searchValue,
- filteredBlockPatternsLength: filteredBlockPatterns.length
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(inserter_listbox_default, { children: hasItems && /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(import_jsx_runtime241.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
- block_patterns_list_default,
- {
- blockPatterns: pagingProps.categoryPatterns,
- onClickPattern: (pattern, blocks2) => {
- onClickPattern(pattern, blocks2);
- onModalClose();
- },
- isDraggable: false
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Pagination, { ...pagingProps })
- ] }) })
- ]
+ ref,
+ className: clsx_default(resets_default6["box-sizing"], className2),
+ render: render4,
+ ...restProps
}
);
- }
- var pattern_list_default = PatternList;
+ });
- // packages/block-editor/build-module/components/inserter/block-patterns-tab/use-pattern-categories.mjs
- var import_element117 = __toESM(require_element(), 1);
- var import_i18n51 = __toESM(require_i18n(), 1);
- var import_a11y8 = __toESM(require_a11y(), 1);
- function hasRegisteredCategory(pattern, allCategories) {
- if (!pattern.categories || !pattern.categories.length) {
+ // packages/ui/build-module/form/primitives/field/item.mjs
+ var import_element81 = __toESM(require_element(), 1);
+ var import_jsx_runtime209 = __toESM(require_jsx_runtime(), 1);
+ var Item2 = (0, import_element81.forwardRef)(function Item22(props, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(index_parts_exports2.Item, { ref, ...props });
+ });
+
+ // packages/ui/build-module/form/primitives/field/label.mjs
+ var import_element82 = __toESM(require_element(), 1);
+ var import_jsx_runtime210 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE20 = "data-wp-hash";
+ function getRuntime20() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument20(document);
+ }
+ return globalScope.__wpStyleRuntime;
+ }
+ function documentContainsStyleHash20(targetDocument, hash) {
+ if (!targetDocument.head) {
return false;
}
- return pattern.categories.some(
- (cat) => allCategories.some((category) => category.name === cat)
- );
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE20}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE20) === hash) {
+ return true;
+ }
+ }
+ return false;
}
- function usePatternCategories(rootClientId, sourceFilter = "all") {
- const [patterns, allCategories] = use_patterns_state_default(
- void 0,
- rootClientId
- );
- const filteredPatterns = (0, import_element117.useMemo)(
- () => sourceFilter === "all" ? patterns : patterns.filter(
- (pattern) => !isPatternFiltered(pattern, sourceFilter)
- ),
- [sourceFilter, patterns]
+ function injectStyle20(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime20();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash20(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE20, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument20(targetDocument) {
+ const runtime = getRuntime20();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- const populatedCategories = (0, import_element117.useMemo)(() => {
- const categories = allCategories.filter(
- (category) => filteredPatterns.some(
- (pattern) => pattern.categories?.includes(category.name)
- )
- ).sort((a2, b2) => a2.label.localeCompare(b2.label));
- if (filteredPatterns.some(
- (pattern) => !hasRegisteredCategory(pattern, allCategories)
- ) && !categories.find(
- (category) => category.name === "uncategorized"
- )) {
- categories.push({
- name: "uncategorized",
- label: (0, import_i18n51._x)("Uncategorized")
- });
- }
- if (filteredPatterns.some(
- (pattern) => pattern.blockTypes?.includes("core/post-content")
- )) {
- categories.unshift(starterPatternsCategory);
- }
- if (filteredPatterns.some(
- (pattern) => pattern.type === INSERTER_PATTERN_TYPES.user
- )) {
- categories.unshift(myPatternsCategory);
+ for (const [hash, css] of runtime.styles) {
+ injectStyle20(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- if (filteredPatterns.length > 0) {
- categories.unshift({
- name: allPatternsCategory.name,
- label: allPatternsCategory.label
- });
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- (0, import_a11y8.speak)(
- (0, import_i18n51.sprintf)(
- /* translators: %d: number of categories . */
- (0, import_i18n51._n)(
- "%d category button displayed.",
- "%d category buttons displayed.",
- categories.length
- ),
- categories.length
- )
- );
- return categories;
- }, [allCategories, filteredPatterns]);
- return populatedCategories;
+ runtime.documents.set(targetDocument, count - 1);
+ };
}
-
- // packages/block-editor/build-module/components/inserter/block-patterns-explorer/index.mjs
- var import_jsx_runtime242 = __toESM(require_jsx_runtime(), 1);
- function PatternsExplorer({ initialCategory, rootClientId, onModalClose }) {
- const [searchValue, setSearchValue] = (0, import_element118.useState)("");
- const [selectedCategory, setSelectedCategory] = (0, import_element118.useState)(
- initialCategory?.name
- );
- const patternCategories = usePatternCategories(rootClientId);
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)("div", { className: "block-editor-block-patterns-explorer", children: [
- /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
- pattern_explorer_sidebar_default,
- {
- selectedCategory,
- patternCategories,
- onClickCategory: setSelectedCategory,
- searchValue,
- setSearchValue
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
- pattern_list_default,
- {
- searchValue,
- selectedCategory,
- patternCategories,
- rootClientId,
- onModalClose
- }
- )
- ] });
+ function registerStyle20(hash, css) {
+ const runtime = getRuntime20();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle20(targetDocument, hash, css);
+ }
}
- function PatternsExplorerModal({ onModalClose, ...restProps }) {
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
- import_components46.Modal,
- {
- title: (0, import_i18n52.__)("Patterns"),
- onRequestClose: onModalClose,
- isFullScreen: true,
- children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(PatternsExplorer, { onModalClose, ...restProps })
- }
- );
+ if (typeof process === "undefined" || true) {
+ registerStyle20("e08ffbfdae", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');
}
- var block_patterns_explorer_default = PatternsExplorerModal;
-
- // packages/block-editor/build-module/components/inserter/mobile-tab-navigation.mjs
- var import_i18n53 = __toESM(require_i18n(), 1);
- var import_components47 = __toESM(require_components(), 1);
- var import_jsx_runtime243 = __toESM(require_jsx_runtime(), 1);
- function ScreenHeader({ title }) {
- return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_components47.__experimentalVStack, { spacing: 0, children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_components47.__experimentalView, { children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_components47.__experimentalSpacer, { marginBottom: 0, paddingX: 4, paddingY: 3, children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(import_components47.__experimentalHStack, { spacing: 2, children: [
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
- import_components47.Navigator.BackButton,
+ var field_default = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
+ var Label = (0, import_element82.forwardRef)(
+ function Label2({ className: className2, hideFromVision, variant, ...restProps }, ref) {
+ const label = /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
+ index_parts_exports2.Label,
{
- style: (
- // TODO: This style override is also used in ToolsPanelHeader.
- // It should be supported out-of-the-box by Button.
- { minWidth: 24, padding: 0 }
+ ref,
+ className: clsx_default(
+ field_default.label,
+ variant && field_default[`is-${variant}`],
+ className2
),
- icon: (0, import_i18n53.isRTL)() ? chevron_right_default : chevron_left_default,
- size: "small",
- label: (0, import_i18n53.__)("Back")
+ ...restProps
}
- ),
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_components47.__experimentalSpacer, { children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_components47.__experimentalHeading, { level: 5, children: title }) })
- ] }) }) }) });
+ );
+ if (hideFromVision) {
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(VisuallyHidden, { render: label });
+ }
+ return label;
+ }
+ );
+
+ // packages/ui/build-module/form/primitives/field/description.mjs
+ var import_element83 = __toESM(require_element(), 1);
+ var import_jsx_runtime211 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE21 = "data-wp-hash";
+ function getRuntime21() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument21(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
- function MobileTabNavigation({
- categories,
- children,
- screenClassName
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
- import_components47.Navigator,
- {
- initialPath: "/",
- className: "block-editor-inserter__mobile-tab-navigation",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_components47.Navigator.Screen, { path: "/", children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_components47.__experimentalItemGroup, { children: categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
- import_components47.Navigator.Button,
- {
- path: `/category/${category.name}`,
- as: import_components47.__experimentalItem,
- isAction: true,
- children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(import_components47.__experimentalHStack, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_components47.FlexBlock, { children: category.label }),
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
- icon_default,
- {
- icon: (0, import_i18n53.isRTL)() ? chevron_left_default : chevron_right_default
- }
- )
- ] })
- },
- category.name
- )) }) }),
- categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
- import_components47.Navigator.Screen,
- {
- className: screenClassName,
- path: `/category/${category.name}`,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(ScreenHeader, { title: (0, import_i18n53.__)("Back") }),
- children(category)
- ]
- },
- category.name
- ))
- ]
+ function documentContainsStyleHash21(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE21}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE21) === hash) {
+ return true;
}
- );
+ }
+ return false;
}
-
- // packages/block-editor/build-module/components/inserter/block-patterns-tab/pattern-category-previews.mjs
- var import_element120 = __toESM(require_element(), 1);
- var import_i18n55 = __toESM(require_i18n(), 1);
- var import_components49 = __toESM(require_components(), 1);
-
- // packages/block-editor/build-module/components/inserter/block-patterns-tab/patterns-filter.mjs
- var import_components48 = __toESM(require_components(), 1);
- var import_i18n54 = __toESM(require_i18n(), 1);
- var import_element119 = __toESM(require_element(), 1);
- var import_jsx_runtime244 = __toESM(require_jsx_runtime(), 1);
- var getShouldDisableSyncFilter = (sourceFilter) => sourceFilter !== "all" && sourceFilter !== "user";
- var getShouldHideSourcesFilter = (category) => {
- return category.name === myPatternsCategory.name;
- };
- var PATTERN_SOURCE_MENU_OPTIONS = [
- {
- value: "all",
- label: (0, import_i18n54._x)("All", "patterns")
- },
- {
- value: INSERTER_PATTERN_TYPES.directory,
- label: (0, import_i18n54.__)("Pattern Directory")
- },
- {
- value: INSERTER_PATTERN_TYPES.theme,
- label: (0, import_i18n54.__)("Theme & Plugins")
- },
- {
- value: INSERTER_PATTERN_TYPES.user,
- label: (0, import_i18n54.__)("User")
+ function injectStyle21(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
}
- ];
- function PatternsFilter({
- setPatternSyncFilter,
- setPatternSourceFilter,
- patternSyncFilter,
- patternSourceFilter,
- scrollContainerRef,
- category
- }) {
- const currentPatternSourceFilter = category.name === myPatternsCategory.name ? INSERTER_PATTERN_TYPES.user : patternSourceFilter;
- const shouldDisableSyncFilter = getShouldDisableSyncFilter(
- currentPatternSourceFilter
- );
- const shouldHideSourcesFilter = getShouldHideSourcesFilter(category);
- const patternSyncMenuOptions = (0, import_element119.useMemo)(
- () => [
- {
- value: "all",
- label: (0, import_i18n54._x)("All", "patterns")
- },
- {
- value: INSERTER_SYNC_TYPES.full,
- label: (0, import_i18n54._x)("Synced", "patterns"),
- disabled: shouldDisableSyncFilter
- },
- {
- value: INSERTER_SYNC_TYPES.unsynced,
- label: (0, import_i18n54._x)("Not synced", "patterns"),
- disabled: shouldDisableSyncFilter
- }
- ],
- [shouldDisableSyncFilter]
+ const runtime = getRuntime21();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash21(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE21, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument21(targetDocument) {
+ const runtime = getRuntime21();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- function handleSetSourceFilterChange(newSourceFilter) {
- setPatternSourceFilter(newSourceFilter);
- if (getShouldDisableSyncFilter(newSourceFilter)) {
- setPatternSyncFilter("all");
+ for (const [hash, css] of runtime.styles) {
+ injectStyle21(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
+ }
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle21(hash, css) {
+ const runtime = getRuntime21();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle21(targetDocument, hash, css);
}
- return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_jsx_runtime244.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
- import_components48.DropdownMenu,
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle21("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
+ }
+ var global_css_defense_default6 = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
+ if (typeof process === "undefined" || true) {
+ registerStyle21("e08ffbfdae", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');
+ }
+ var field_default2 = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
+ var Description = (0, import_element83.forwardRef)(function Description2({ className: className2, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
+ index_parts_exports2.Description,
{
- popoverProps: {
- placement: "right-end"
- },
- label: (0, import_i18n54.__)("Filter patterns"),
- toggleProps: { size: "compact" },
- icon: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
- icon_default,
- {
- icon: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
- import_components48.SVG,
- {
- width: "24",
- height: "24",
- viewBox: "0 0 24 24",
- fill: "none",
- xmlns: "http://www.w3.org/2000/svg",
- children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
- import_components48.Path,
- {
- d: "M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",
- fill: "currentColor"
- }
- )
- }
- )
- }
+ ref,
+ className: clsx_default(
+ global_css_defense_default6.p,
+ field_default2.description,
+ className2
),
- children: () => /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(import_jsx_runtime244.Fragment, { children: [
- !shouldHideSourcesFilter && /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_components48.MenuGroup, { label: (0, import_i18n54.__)("Source"), children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
- import_components48.MenuItemsChoice,
- {
- choices: PATTERN_SOURCE_MENU_OPTIONS,
- onSelect: (value) => {
- handleSetSourceFilterChange(value);
- scrollContainerRef.current?.scrollTo(
- 0,
- 0
- );
- },
- value: currentPatternSourceFilter
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_components48.MenuGroup, { label: (0, import_i18n54.__)("Type"), children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
- import_components48.MenuItemsChoice,
- {
- choices: patternSyncMenuOptions,
- onSelect: (value) => {
- setPatternSyncFilter(value);
- scrollContainerRef.current?.scrollTo(
- 0,
- 0
- );
- },
- value: patternSyncFilter
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("div", { className: "block-editor-inserter__patterns-filter-help", children: (0, import_element119.createInterpolateElement)(
- (0, import_i18n54.__)(
- "Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."
- ),
- {
- Link: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
- import_components48.ExternalLink,
- {
- href: (0, import_i18n54.__)(
- "https://wordpress.org/patterns/"
- )
- }
- )
- }
- ) })
- ] })
+ ...restProps
}
- ) });
- }
-
- // packages/block-editor/build-module/components/inserter/block-patterns-tab/pattern-category-previews.mjs
- var import_jsx_runtime245 = __toESM(require_jsx_runtime(), 1);
- var noop10 = () => {
- };
- function PatternCategoryPreviews({
- rootClientId,
- onInsert,
- onHover = noop10,
- category,
- showTitlesAsTooltip
- }) {
- const [allPatterns, , onClickPattern] = use_patterns_state_default(
- onInsert,
- rootClientId,
- category?.name
);
- const [patternSyncFilter, setPatternSyncFilter] = (0, import_element120.useState)("all");
- const [patternSourceFilter, setPatternSourceFilter] = (0, import_element120.useState)("all");
- const availableCategories = usePatternCategories(
- rootClientId,
- patternSourceFilter
- );
- const scrollContainerRef = (0, import_element120.useRef)();
- const currentCategoryPatterns = (0, import_element120.useMemo)(
- () => allPatterns.filter((pattern) => {
- if (isPatternFiltered(
- pattern,
- patternSourceFilter,
- patternSyncFilter
- )) {
- return false;
- }
- if (category.name === allPatternsCategory.name) {
- return true;
- }
- if (category.name === myPatternsCategory.name && pattern.type === INSERTER_PATTERN_TYPES.user) {
- return true;
- }
- if (category.name === starterPatternsCategory.name && pattern.blockTypes?.includes("core/post-content")) {
- return true;
- }
- if (category.name === "uncategorized") {
- if (!pattern.categories) {
- return true;
- }
- return !pattern.categories.some(
- (catName) => availableCategories.some((c6) => c6.name === catName)
- );
- }
- return pattern.categories?.includes(category.name);
- }),
- [
- allPatterns,
- availableCategories,
- category.name,
- patternSourceFilter,
- patternSyncFilter
- ]
- );
- const pagingProps = usePatternsPaging(
- currentCategoryPatterns,
- category,
- scrollContainerRef
- );
- const { changePage } = pagingProps;
- (0, import_element120.useEffect)(() => () => onHover(null), []);
- const onSetPatternSyncFilter = (0, import_element120.useCallback)(
- (value) => {
- setPatternSyncFilter(value);
- changePage(1);
- },
- [setPatternSyncFilter, changePage]
- );
- const onSetPatternSourceFilter = (0, import_element120.useCallback)(
- (value) => {
- setPatternSourceFilter(value);
- changePage(1);
- },
- [setPatternSourceFilter, changePage]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(import_jsx_runtime245.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
- import_components49.__experimentalVStack,
- {
- spacing: 2,
- className: "block-editor-inserter__patterns-category-panel-header",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(import_components49.__experimentalHStack, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_components49.FlexBlock, { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
- import_components49.__experimentalHeading,
- {
- className: "block-editor-inserter__patterns-category-panel-title",
- size: 13,
- level: 4,
- as: "div",
- children: category.label
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
- PatternsFilter,
- {
- patternSyncFilter,
- patternSourceFilter,
- setPatternSyncFilter: onSetPatternSyncFilter,
- setPatternSourceFilter: onSetPatternSourceFilter,
- scrollContainerRef,
- category
- }
- )
- ] }),
- !currentCategoryPatterns.length && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
- import_components49.__experimentalText,
- {
- variant: "muted",
- className: "block-editor-inserter__patterns-category-no-results",
- children: (0, import_i18n55.__)("No results found")
- }
- )
- ]
- }
- ),
- currentCategoryPatterns.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(import_jsx_runtime245.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
- import_components49.__experimentalText,
- {
- size: "12",
- as: "p",
- className: "block-editor-inserter__help-text",
- children: (0, import_i18n55.__)("Drag and drop patterns into the canvas.")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
- block_patterns_list_default,
- {
- ref: scrollContainerRef,
- blockPatterns: pagingProps.categoryPatterns,
- onClickPattern,
- onHover,
- label: category.label,
- orientation: "vertical",
- category: category.name,
- isDraggable: true,
- showTitlesAsTooltip,
- patternFilter: patternSourceFilter,
- pagingProps
- }
- )
- ] })
- ] });
- }
+ });
- // packages/block-editor/build-module/components/inserter/category-tabs/index.mjs
- var import_compose43 = __toESM(require_compose(), 1);
- var import_components50 = __toESM(require_components(), 1);
- var import_element121 = __toESM(require_element(), 1);
- var import_jsx_runtime246 = __toESM(require_jsx_runtime(), 1);
- var { Tabs } = unlock(import_components50.privateApis);
- function CategoryTabs({
- categories,
- selectedCategory,
- onSelectCategory,
- children
- }) {
- const ANIMATION_DURATION = 0.25;
- const disableMotion = (0, import_compose43.useReducedMotion)();
- const defaultTransition = {
- type: "tween",
- duration: disableMotion ? 0 : ANIMATION_DURATION,
- ease: [0.6, 0, 0.4, 1]
+ // packages/ui/build-module/form/primitives/field/details.mjs
+ var import_element84 = __toESM(require_element(), 1);
+ var import_i18n34 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime212 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE22 = "data-wp-hash";
+ function getRuntime22() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
};
- const previousSelectedCategory = (0, import_compose43.usePrevious)(selectedCategory);
- const selectedTabId = selectedCategory ? selectedCategory.name : null;
- const [activeTabId, setActiveId] = (0, import_element121.useState)();
- const firstTabId = categories?.[0]?.name;
- if (selectedTabId === null && !activeTabId && firstTabId) {
- setActiveId(firstTabId);
+ if (typeof document !== "undefined") {
+ registerDocument22(document);
}
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
- Tabs,
- {
- selectOnMove: false,
- selectedTabId,
- orientation: "vertical",
- onSelect: (categoryId) => {
- onSelectCategory(
- categories.find(
- (category) => category.name === categoryId
- )
- );
- },
- activeTabId,
- onActiveTabIdChange: setActiveId,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Tabs.TabList, { className: "block-editor-inserter__category-tablist", children: categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
- Tabs.Tab,
- {
- tabId: category.name,
- "aria-current": category === selectedCategory ? "true" : void 0,
- children: category.label
- },
- category.name
- )) }),
- categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
- Tabs.TabPanel,
- {
- tabId: category.name,
- focusable: false,
- children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
- import_components50.__unstableMotion.div,
- {
- className: "block-editor-inserter__category-panel",
- initial: !previousSelectedCategory ? "closed" : "open",
- animate: "open",
- variants: {
- open: {
- transform: "translateX( 0 )",
- transitionEnd: {
- zIndex: "1"
- }
- },
- closed: {
- transform: "translateX( -100% )",
- zIndex: "-1"
- }
- },
- transition: defaultTransition,
- children
- }
- )
- },
- category.name
- ))
- ]
+ return globalScope.__wpStyleRuntime;
+ }
+ function documentContainsStyleHash22(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE22}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE22) === hash) {
+ return true;
}
+ }
+ return false;
+ }
+ function injectStyle22(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime22();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash22(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE22, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument22(targetDocument) {
+ const runtime = getRuntime22();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
+ for (const [hash, css] of runtime.styles) {
+ injectStyle22(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
+ }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
+ }
+ runtime.documents.set(targetDocument, count - 1);
+ };
}
- var category_tabs_default = CategoryTabs;
-
- // packages/block-editor/build-module/components/inserter/block-patterns-tab/index.mjs
- var import_jsx_runtime247 = __toESM(require_jsx_runtime(), 1);
- function BlockPatternsTab({
- onSelectCategory,
- selectedCategory,
- onInsert,
- rootClientId,
- children
- }) {
- const [showPatternsExplorer, setShowPatternsExplorer] = (0, import_element122.useState)(false);
- const categories = usePatternCategories(rootClientId);
- const isMobile = (0, import_compose44.useViewportMatch)("medium", "<");
- if (!categories.length) {
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(no_results_default, {});
+ function registerStyle22(hash, css) {
+ const runtime = getRuntime22();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle22(targetDocument, hash, css);
}
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(import_jsx_runtime247.Fragment, { children: [
- !isMobile && /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)("div", { className: "block-editor-inserter__block-patterns-tabs-container", children: [
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
- category_tabs_default,
- {
- categories,
- selectedCategory,
- onSelectCategory,
- children
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
- import_components51.Button,
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle22("e08ffbfdae", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');
+ }
+ var field_default3 = { "label": "_2d5ad850b2f90964__label", "is-plain": "_17c4214649230bea__is-plain", "description": "_08a3750500e0233f__description" };
+ var Details = (0, import_element84.forwardRef)(
+ function Details2({ className: className2, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(import_jsx_runtime212.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(index_parts_exports2.Description, {}), children: (0, import_i18n34.__)("More details follow the field.") }),
+ /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
+ "div",
{
- __next40pxDefaultSize: true,
- className: "block-editor-inserter__patterns-explore-button",
- onClick: () => setShowPatternsExplorer(true),
- variant: "secondary",
- children: (0, import_i18n56.__)("Explore all patterns")
+ ref,
+ className: clsx_default(field_default3.description, className2),
+ ...restProps
}
)
- ] }),
- isMobile && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(MobileTabNavigation, { categories, children: (category) => /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("div", { className: "block-editor-inserter__category-panel", children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
- PatternCategoryPreviews,
- {
- onInsert,
- rootClientId,
- category
- },
- category.name
- ) }) }),
- showPatternsExplorer && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
- block_patterns_explorer_default,
- {
- initialCategory: selectedCategory || categories[0],
- patternCategories: categories,
- onModalClose: () => setShowPatternsExplorer(false),
- rootClientId
- }
- )
- ] });
- }
- var block_patterns_tab_default = BlockPatternsTab;
-
- // packages/block-editor/build-module/components/inserter/media-tab/media-tab.mjs
- var import_i18n60 = __toESM(require_i18n(), 1);
- var import_compose46 = __toESM(require_compose(), 1);
- var import_components56 = __toESM(require_components(), 1);
- var import_element126 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/inserter/media-tab/media-panel.mjs
- var import_components55 = __toESM(require_components(), 1);
- var import_i18n59 = __toESM(require_i18n(), 1);
- var import_element125 = __toESM(require_element(), 1);
- var import_compose45 = __toESM(require_compose(), 1);
- var import_data61 = __toESM(require_data(), 1);
- var import_dom52 = __toESM(require_dom(), 1);
- var import_notices7 = __toESM(require_notices(), 1);
+ ] });
+ }
+ );
- // packages/block-editor/build-module/components/inserter/media-tab/media-list.mjs
- var import_components53 = __toESM(require_components(), 1);
- var import_i18n58 = __toESM(require_i18n(), 1);
+ // packages/ui/build-module/form/primitives/field/control.mjs
+ var import_element85 = __toESM(require_element(), 1);
+ var import_jsx_runtime213 = __toESM(require_jsx_runtime(), 1);
+ var Control = (0, import_element85.forwardRef)(
+ function Control2(props, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(index_parts_exports2.Control, { ref, ...props });
+ }
+ );
- // packages/block-editor/build-module/components/inserter/media-tab/media-preview.mjs
- var import_components52 = __toESM(require_components(), 1);
- var import_i18n57 = __toESM(require_i18n(), 1);
- var import_element123 = __toESM(require_element(), 1);
- var import_blocks38 = __toESM(require_blocks(), 1);
- var import_data58 = __toESM(require_data(), 1);
- var import_notices6 = __toESM(require_notices(), 1);
- var import_blob = __toESM(require_blob(), 1);
- var import_url2 = __toESM(require_url(), 1);
+ // packages/ui/build-module/form/primitives/select/index.mjs
+ var select_exports = {};
+ __export(select_exports, {
+ Group: () => Group,
+ GroupLabel: () => GroupLabel,
+ Item: () => Item3,
+ Popup: () => Popup2,
+ Portal: () => Portal2,
+ Positioner: () => Positioner2,
+ Root: () => Root7,
+ Trigger: () => Trigger3
+ });
- // packages/block-editor/build-module/components/inserter/media-tab/utils.mjs
- var import_blocks37 = __toESM(require_blocks(), 1);
- var import_jsx_runtime248 = __toESM(require_jsx_runtime(), 1);
- var mediaTypeTag = { image: "img", video: "video", audio: "audio" };
- function getBlockAndPreviewFromMedia(media, mediaType) {
- const attributes = {
- id: media.id || void 0,
- caption: media.caption || void 0
+ // packages/ui/build-module/form/primitives/select/group.mjs
+ var import_element86 = __toESM(require_element(), 1);
+ var import_jsx_runtime214 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE23 = "data-wp-hash";
+ function getRuntime23() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
};
- const mediaSrc = media.url;
- const alt = media.alt || void 0;
- if (mediaType === "image") {
- attributes.url = mediaSrc;
- attributes.alt = alt;
- } else if (["video", "audio"].includes(mediaType)) {
- attributes.src = mediaSrc;
+ if (typeof document !== "undefined") {
+ registerDocument23(document);
}
- const PreviewTag = mediaTypeTag[mediaType];
- const preview = /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
- PreviewTag,
- {
- src: media.previewUrl || mediaSrc,
- alt,
- controls: mediaType === "audio" ? true : void 0,
- inert: "true",
- onError: ({ currentTarget }) => {
- if (currentTarget.src === media.previewUrl) {
- currentTarget.src = mediaSrc;
- }
- }
- }
- );
- return [(0, import_blocks37.createBlock)(`core/${mediaType}`, attributes), preview];
+ return globalScope.__wpStyleRuntime;
}
-
- // packages/block-editor/build-module/components/inserter/media-tab/media-preview.mjs
- var import_jsx_runtime249 = __toESM(require_jsx_runtime(), 1);
- var ALLOWED_MEDIA_TYPES = ["image"];
- var MEDIA_OPTIONS_POPOVER_PROPS = {
- placement: "bottom-end",
- className: "block-editor-inserter__media-list__item-preview-options__popover"
- };
- function MediaPreviewOptions({ category, media, onDetach }) {
- if (!category.getReportUrl && !onDetach) {
- return null;
+ function documentContainsStyleHash23(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
}
- const reportUrl = category.getReportUrl?.(media);
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- import_components52.DropdownMenu,
- {
- className: "block-editor-inserter__media-list__item-preview-options",
- label: (0, import_i18n57.__)("Options"),
- popoverProps: MEDIA_OPTIONS_POPOVER_PROPS,
- icon: more_vertical_default,
- children: () => /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(import_components52.MenuGroup, { children: [
- reportUrl && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- import_components52.MenuItem,
- {
- onClick: () => window.open(reportUrl, "_blank").focus(),
- icon: external_default,
- children: (0, import_i18n57.sprintf)(
- /* translators: %s: The media type to report e.g: "image", "video", "audio" */
- (0, import_i18n57.__)("Report %s"),
- category.mediaType
- )
- }
- ),
- onDetach && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- import_components52.MenuItem,
- {
- onClick: () => onDetach(media),
- icon: link_off_default,
- children: category.postTypeLabel ? (0, import_i18n57.sprintf)(
- /* translators: %s: Name of the post type e.g: "Page". */
- (0, import_i18n57.__)("Detach from %s"),
- category.postTypeLabel
- ) : (0, import_i18n57.__)("Detach from post")
- }
- )
- ] })
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE23}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE23) === hash) {
+ return true;
}
- );
- }
- function InsertExternalImageModal({ onClose, onSubmit }) {
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
- import_components52.Modal,
- {
- title: (0, import_i18n57.__)("Insert external image"),
- onRequestClose: onClose,
- className: "block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(import_components52.__experimentalVStack, { spacing: 3, children: [
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("p", { children: (0, import_i18n57.__)(
- "This image cannot be uploaded to your Media Library, but it can still be inserted as an external image."
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("p", { children: (0, import_i18n57.__)(
- "External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation."
- ) })
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
- import_components52.Flex,
- {
- className: "block-editor-block-lock-modal__actions",
- justify: "flex-end",
- expanded: false,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(import_components52.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- import_components52.Button,
- {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: onClose,
- children: (0, import_i18n57.__)("Cancel")
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(import_components52.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- import_components52.Button,
- {
- __next40pxDefaultSize: true,
- variant: "primary",
- onClick: onSubmit,
- children: (0, import_i18n57.__)("Insert")
- }
- ) })
- ]
- }
- )
- ]
- }
- );
+ }
+ return false;
}
- function MediaPreview({ media, onClick, onDetach, category }) {
- const [showExternalUploadModal, setShowExternalUploadModal] = (0, import_element123.useState)(false);
- const [isHovered, setIsHovered] = (0, import_element123.useState)(false);
- const [isInserting, setIsInserting] = (0, import_element123.useState)(false);
- const [block, preview] = (0, import_element123.useMemo)(
- () => getBlockAndPreviewFromMedia(media, category.mediaType),
- [media, category.mediaType]
- );
- const { createErrorNotice, createSuccessNotice } = (0, import_data58.useDispatch)(import_notices6.store);
- const { getSettings: getSettings7, getBlock: getBlock2 } = (0, import_data58.useSelect)(store);
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data58.useDispatch)(store);
- const onMediaInsert = (0, import_element123.useCallback)(
- (previewBlock) => {
- if (isInserting) {
- return;
- }
- const settings2 = getSettings7();
- const clonedBlock = (0, import_blocks38.cloneBlock)(previewBlock);
- const { id, url, caption } = clonedBlock.attributes;
- if (!id && !settings2.mediaUpload) {
- setShowExternalUploadModal(true);
- return;
- }
- if (!!id) {
- onClick(clonedBlock);
- return;
- }
- setIsInserting(true);
- window.fetch(url).then((response) => response.blob()).then((blob) => {
- const fileName = (0, import_url2.getFilename)(url) || "image.jpg";
- const file = new File([blob], fileName, {
- type: blob.type
- });
- settings2.mediaUpload({
- filesList: [file],
- additionalData: { caption },
- onFileChange([img]) {
- if ((0, import_blob.isBlobURL)(img.url)) {
- return;
- }
- if (!getBlock2(clonedBlock.clientId)) {
- onClick({
- ...clonedBlock,
- attributes: {
- ...clonedBlock.attributes,
- id: img.id,
- url: img.url
- }
- });
- createSuccessNotice(
- (0, import_i18n57.__)("Image uploaded and inserted."),
- { type: "snackbar", id: "inserter-notice" }
- );
- } else {
- updateBlockAttributes2(clonedBlock.clientId, {
- ...clonedBlock.attributes,
- id: img.id,
- url: img.url
- });
- }
- setIsInserting(false);
- },
- allowedTypes: ALLOWED_MEDIA_TYPES,
- onError(message2) {
- createErrorNotice(message2, {
- type: "snackbar",
- id: "inserter-notice"
- });
- setIsInserting(false);
- }
- });
- }).catch(() => {
- setShowExternalUploadModal(true);
- setIsInserting(false);
- });
- },
- [
- isInserting,
- getSettings7,
- onClick,
- createSuccessNotice,
- updateBlockAttributes2,
- createErrorNotice,
- getBlock2
- ]
+ function injectStyle23(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime23();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash23(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE23, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument23(targetDocument) {
+ const runtime = getRuntime23();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- const title = typeof media.title === "string" ? media.title : media.title?.rendered || (0, import_i18n57.__)("no title");
- const onMouseEnter = (0, import_element123.useCallback)(() => setIsHovered(true), []);
- const onMouseLeave = (0, import_element123.useCallback)(() => setIsHovered(false), []);
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(import_jsx_runtime249.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(inserter_draggable_blocks_default, { isEnabled: true, blocks: [block], children: ({ draggable, onDragStart, onDragEnd }) => /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- "div",
- {
- className: clsx_default(
- "block-editor-inserter__media-list__list-item",
- {
- "is-hovered": isHovered
- }
- ),
- draggable,
- onDragStart,
- onDragEnd,
- children: /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
- "div",
- {
- onMouseEnter,
- onMouseLeave,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(tooltip_exports.Root, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- tooltip_exports.Trigger,
- {
- render: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- import_components52.Composite.Item,
- {
- render: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- "div",
- {
- "aria-label": title,
- role: "option",
- className: "block-editor-inserter__media-list__item"
- }
- ),
- onClick: () => onMediaInsert(block),
- children: /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)("div", { className: "block-editor-inserter__media-list__item-preview", children: [
- preview,
- isInserting && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("div", { className: "block-editor-inserter__media-list__item-preview-spinner", children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(import_components52.Spinner, {}) })
- ] })
- }
- )
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(tooltip_exports.Popup, { children: title })
- ] }),
- !isInserting && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- MediaPreviewOptions,
- {
- category,
- media,
- onDetach
- }
- )
- ]
- }
- )
- }
- ) }),
- showExternalUploadModal && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
- InsertExternalImageModal,
+ for (const [hash, css] of runtime.styles) {
+ injectStyle23(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
+ }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
+ }
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle23(hash, css) {
+ const runtime = getRuntime23();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle23(targetDocument, hash, css);
+ }
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle23("5705fc490f", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;transform:translate(0);&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.f181b98b0d33282a__is-size-compact{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');
+ }
+ var item_popup_default = { "popup": "_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion", "list": "f43dc7c768d7b622__list", "list-scrollable-container": "_233cd60cdb84a2ef__list-scrollable-container", "list-footer": "ec4db6f0122263e7__list-footer", "group": "b3c0d7f103fb10a2__group", "group-label": "_21b59380477c306c__group-label", "item": "_684ccb7988365b4f__item", "is-size-compact": "f181b98b0d33282a__is-size-compact", "is-size-small": "_38f7faff93c61958__is-size-small", "item-indicator-icon": "_92fbe4765dfad5ee__item-indicator-icon", "item-icon": "a3adcfd0b73ffd40__item-icon", "empty": "_06c7ff39d2f685b9__empty" };
+ var Group = (0, import_element86.forwardRef)(
+ function Group2({ className: className2, children, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
+ index_parts_exports3.Group,
{
- onClose: () => setShowExternalUploadModal(false),
- onSubmit: () => {
- onClick((0, import_blocks38.cloneBlock)(block));
- createSuccessNotice((0, import_i18n57.__)("Image inserted."), {
- type: "snackbar",
- id: "inserter-notice"
- });
- setShowExternalUploadModal(false);
- }
+ className: clsx_default(item_popup_default.group, className2),
+ ref,
+ ...restProps,
+ children
}
- )
- ] });
- }
+ );
+ }
+ );
- // packages/block-editor/build-module/components/inserter/media-tab/media-list.mjs
- var import_jsx_runtime250 = __toESM(require_jsx_runtime(), 1);
- function MediaList({
- mediaList,
- category,
- onClick,
- onDetach,
- label = (0, import_i18n58.__)("Media List")
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
- import_components53.Composite,
- {
- role: "listbox",
- className: "block-editor-inserter__media-list",
- "aria-label": label,
- children: mediaList.map((media, index2) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
- MediaPreview,
- {
- media,
- category,
- onClick,
- onDetach
- },
- media.id || media.sourceId || index2
- ))
+ // packages/ui/build-module/form/primitives/select/group-label.mjs
+ var import_element87 = __toESM(require_element(), 1);
+ var import_jsx_runtime215 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE24 = "data-wp-hash";
+ function getRuntime24() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument24(document);
+ }
+ return globalScope.__wpStyleRuntime;
+ }
+ function documentContainsStyleHash24(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE24}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE24) === hash) {
+ return true;
}
- );
+ }
+ return false;
}
- var media_list_default = MediaList;
-
- // packages/block-editor/build-module/components/media-upload/index.mjs
- var import_components54 = __toESM(require_components(), 1);
- var MediaUpload = () => null;
- var media_upload_default = (0, import_components54.withFilters)("editor.MediaUpload")(MediaUpload);
-
- // packages/block-editor/build-module/components/media-upload/check.mjs
- var import_data59 = __toESM(require_data(), 1);
- function MediaUploadCheck({ fallback = null, children }) {
- const hasUploadPermissions = (0, import_data59.useSelect)((select3) => {
- const { getSettings: getSettings7 } = select3(store);
- return !!getSettings7().mediaUpload;
- }, []);
- return hasUploadPermissions ? children : fallback;
+ function injectStyle24(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime24();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash24(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE24, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
}
- var check_default2 = MediaUploadCheck;
-
- // packages/block-editor/build-module/components/inserter/media-tab/hooks.mjs
- var import_element124 = __toESM(require_element(), 1);
- var import_data60 = __toESM(require_data(), 1);
- function normalizeFetchResult(result) {
- if (Array.isArray(result)) {
- return { mediaItems: result };
+ function registerDocument24(targetDocument) {
+ const runtime = getRuntime24();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
+ );
+ for (const [hash, css] of runtime.styles) {
+ injectStyle24(targetDocument, hash, css);
}
- return {
- mediaItems: result?.mediaItems ?? [],
- totalItems: result?.totalItems,
- totalPages: result?.totalPages
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
+ }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
+ }
+ runtime.documents.set(targetDocument, count - 1);
};
}
- function useMediaResults(category, query = {}, refreshKey) {
- const [mediaList, setMediaList] = (0, import_element124.useState)();
- const [totals, setTotals] = (0, import_element124.useState)({});
- const [isLoading, setIsLoading] = (0, import_element124.useState)(false);
- const lastRequestRef = (0, import_element124.useRef)();
- const lastQueryKeyRef = (0, import_element124.useRef)();
- const lastFetchRef = (0, import_element124.useRef)();
- const lastSourceRef = (0, import_element124.useRef)();
- (0, import_element124.useEffect)(() => {
- (async () => {
- const key = JSON.stringify({
- category: category.name,
- ...query
- });
- const request = {};
- lastRequestRef.current = request;
- setIsLoading(true);
- if (lastQueryKeyRef.current !== key || lastFetchRef.current !== category.fetch) {
- setMediaList([]);
- }
- if (lastSourceRef.current !== category.name || lastFetchRef.current !== category.fetch) {
- setTotals({});
- }
- lastQueryKeyRef.current = key;
- lastFetchRef.current = category.fetch;
- lastSourceRef.current = category.name;
- const { page, ...queryWithoutPage } = query;
- const fetchQuery = page > 1 ? query : queryWithoutPage;
- const { mediaItems, totalItems, totalPages } = normalizeFetchResult(
- await category.fetch?.(fetchQuery)
- );
- if (request === lastRequestRef.current) {
- setMediaList(mediaItems);
- setTotals({ totalItems, totalPages });
- setIsLoading(false);
+ function registerStyle24(hash, css) {
+ const runtime = getRuntime24();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle24(targetDocument, hash, css);
+ }
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle24("5705fc490f", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;transform:translate(0);&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.f181b98b0d33282a__is-size-compact{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');
+ }
+ var item_popup_default2 = { "popup": "_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion", "list": "f43dc7c768d7b622__list", "list-scrollable-container": "_233cd60cdb84a2ef__list-scrollable-container", "list-footer": "ec4db6f0122263e7__list-footer", "group": "b3c0d7f103fb10a2__group", "group-label": "_21b59380477c306c__group-label", "item": "_684ccb7988365b4f__item", "is-size-compact": "f181b98b0d33282a__is-size-compact", "is-size-small": "_38f7faff93c61958__is-size-small", "item-indicator-icon": "_92fbe4765dfad5ee__item-indicator-icon", "item-icon": "a3adcfd0b73ffd40__item-icon", "empty": "_06c7ff39d2f685b9__empty" };
+ var GroupLabel = (0, import_element87.forwardRef)(
+ function GroupLabel2({ className: className2, children, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
+ Text,
+ {
+ variant: "heading-sm",
+ className: clsx_default(
+ item_popup_default2["group-label"],
+ className2
+ ),
+ render: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(index_parts_exports3.GroupLabel, { ref, ...restProps }),
+ children
}
- })();
- }, [
- category.name,
- category.fetch,
- ...Object.values(query),
- refreshKey
- ]);
- return {
- mediaList,
- isLoading,
- totalItems: totals.totalItems,
- totalPages: totals.totalPages
+ );
+ }
+ );
+
+ // packages/ui/build-module/form/primitives/select/item.mjs
+ var import_element88 = __toESM(require_element(), 1);
+ var import_jsx_runtime216 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE25 = "data-wp-hash";
+ function getRuntime25() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
};
+ if (typeof document !== "undefined") {
+ registerDocument25(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
- function useDelayedLoading(isLoading, delay = 400) {
- const [showLoading, setShowLoading] = (0, import_element124.useState)(false);
- (0, import_element124.useEffect)(() => {
- if (!isLoading) {
- return void 0;
+ function documentContainsStyleHash25(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE25}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE25) === hash) {
+ return true;
}
- const timeout = setTimeout(() => setShowLoading(true), delay);
- return () => {
- clearTimeout(timeout);
- setShowLoading(false);
- };
- }, [isLoading, delay]);
- return showLoading;
+ }
+ return false;
}
- function useMediaCategories(rootClientId) {
- const [categories, setCategories] = (0, import_element124.useState)([]);
- const inserterMediaCategories = (0, import_data60.useSelect)(
- (select3) => unlock(select3(store)).getInserterMediaCategories(),
- []
+ function injectStyle25(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime25();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash25(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE25, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument25(targetDocument) {
+ const runtime = getRuntime25();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- const { canInsertImage, canInsertVideo, canInsertAudio } = (0, import_data60.useSelect)(
- (select3) => {
- const { canInsertBlockType: canInsertBlockType2 } = select3(store);
- return {
- canInsertImage: canInsertBlockType2(
- "core/image",
- rootClientId
+ for (const [hash, css] of runtime.styles) {
+ injectStyle25(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
+ }
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
+ }
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle25(hash, css) {
+ const runtime = getRuntime25();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle25(targetDocument, hash, css);
+ }
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle25("5705fc490f", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;transform:translate(0);&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.f181b98b0d33282a__is-size-compact{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');
+ }
+ var item_popup_default3 = { "popup": "_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion", "list": "f43dc7c768d7b622__list", "list-scrollable-container": "_233cd60cdb84a2ef__list-scrollable-container", "list-footer": "ec4db6f0122263e7__list-footer", "group": "b3c0d7f103fb10a2__group", "group-label": "_21b59380477c306c__group-label", "item": "_684ccb7988365b4f__item", "is-size-compact": "f181b98b0d33282a__is-size-compact", "is-size-small": "_38f7faff93c61958__is-size-small", "item-indicator-icon": "_92fbe4765dfad5ee__item-indicator-icon", "item-icon": "a3adcfd0b73ffd40__item-icon", "empty": "_06c7ff39d2f685b9__empty" };
+ if (typeof process === "undefined" || true) {
+ registerStyle25("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
+ }
+ var resets_default7 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
+ var Item3 = (0, import_element88.forwardRef)(
+ function Item23({ className: className2, value, size: size4 = "default", children, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
+ index_parts_exports3.Item,
+ {
+ className: clsx_default(
+ resets_default7["box-sizing"],
+ item_popup_default3.item,
+ item_popup_default3[`is-size-${size4}`],
+ className2
),
- canInsertVideo: canInsertBlockType2(
- "core/video",
- rootClientId
- ),
- canInsertAudio: canInsertBlockType2(
- "core/audio",
- rootClientId
- )
- };
- },
- [rootClientId]
- );
- (0, import_element124.useEffect)(() => {
- (async () => {
- const _categories = [];
- if (!inserterMediaCategories) {
- return;
- }
- const categoriesHaveMedia = new Map(
- await Promise.all(
- inserterMediaCategories.map(async (category) => {
- if (category.isExternalResource) {
- return [category.name, true];
- }
- let results = [];
- try {
- const { mediaItems } = normalizeFetchResult(
- await category.fetch({ per_page: 1 })
- );
- results = mediaItems;
- } catch {
+ value,
+ ref,
+ ...restProps,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
+ Icon,
+ {
+ icon: check_default,
+ className: clsx_default(
+ item_popup_default3["item-icon"],
+ item_popup_default3["item-indicator-icon"]
+ ),
+ size: size4 === "small" ? 20 : 24
}
- return [category.name, !!results.length];
- })
- )
- );
- const canInsertMediaType = {
- image: canInsertImage,
- video: canInsertVideo,
- audio: canInsertAudio
- };
- inserterMediaCategories.forEach((category) => {
- if (canInsertMediaType[category.mediaType] && (categoriesHaveMedia.get(category.name) || category.emptyMessage)) {
- _categories.push(category);
- }
- });
- if (!!_categories.length) {
- setCategories(_categories);
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(index_parts_exports3.ItemText, { children })
+ ]
}
- })();
- }, [
- canInsertImage,
- canInsertVideo,
- canInsertAudio,
- inserterMediaCategories
- ]);
- return categories;
- }
+ );
+ }
+ );
- // packages/block-editor/build-module/components/inserter/media-tab/media-panel.mjs
- var import_jsx_runtime251 = __toESM(require_jsx_runtime(), 1);
- var MEDIA_ITEMS_PER_PAGE = 20;
- var ATTACH_ALLOWED_TYPES = ["image"];
- function AttachImagesButton({ onSelect }) {
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(check_default2, { children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
- media_upload_default,
+ // packages/ui/build-module/form/primitives/select/popup.mjs
+ var import_element91 = __toESM(require_element(), 1);
+
+ // packages/ui/build-module/form/primitives/select/portal.mjs
+ var import_element89 = __toESM(require_element(), 1);
+ var import_jsx_runtime217 = __toESM(require_jsx_runtime(), 1);
+ var Portal2 = (0, import_element89.forwardRef)(function SelectPortal3({ container, ...restProps }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
+ index_parts_exports3.Portal,
{
- multiple: "add",
- onSelect,
- allowedTypes: ATTACH_ALLOWED_TYPES,
- title: (0, import_i18n59.__)("Attach images"),
- render: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
- import_components55.Button,
- {
- __next40pxDefaultSize: true,
- className: "block-editor-inserter__media-panel-attach",
- "data-unstable-ignore-focus-outside-for-relatedtarget": ".media-modal",
- onClick: (event) => {
- event.target.focus();
- open();
- },
- variant: "secondary",
- children: (0, import_i18n59.__)("Attach images")
- }
- )
+ container: container ?? getWpCompatOverlaySlot(),
+ ...restProps,
+ ref
}
- ) });
+ );
+ });
+
+ // packages/ui/build-module/form/primitives/select/positioner.mjs
+ var import_element90 = __toESM(require_element(), 1);
+ var import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE26 = "data-wp-hash";
+ function getRuntime26() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument26(document);
+ }
+ return globalScope.__wpStyleRuntime;
}
- function MediaCategoryPanel({ rootClientId, onInsert, category }) {
- const [search, setSearch, debouncedSearch] = (0, import_compose45.useDebouncedInput)();
- const [page, setPage] = (0, import_element125.useState)(1);
- const previousCategory = (0, import_compose45.usePrevious)(category.name);
- const previousSearch = (0, import_compose45.usePrevious)(debouncedSearch);
- if ((previousCategory !== category.name || previousSearch !== debouncedSearch) && page !== 1) {
- setPage(1);
+ function documentContainsStyleHash26(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
}
- const query = (0, import_element125.useMemo)(
- () => ({
- per_page: MEDIA_ITEMS_PER_PAGE,
- page,
- search: debouncedSearch
- }),
- [page, debouncedSearch]
- );
- const [refreshKey, setRefreshKey] = (0, import_element125.useState)(0);
- const { mediaList, isLoading, totalItems, totalPages } = useMediaResults(
- category,
- query,
- refreshKey
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE26}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE26) === hash) {
+ return true;
+ }
+ }
+ return false;
+ }
+ function injectStyle26(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime26();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash26(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE26, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument26(targetDocument) {
+ const runtime = getRuntime26();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- const numPages = totalPages || 1;
- if (typeof totalPages === "number" && page > numPages) {
- setPage(numPages);
+ for (const [hash, css] of runtime.styles) {
+ injectStyle26(targetDocument, hash, css);
}
- const supportsAttachments = !category.isExternalResource;
- const attach = supportsAttachments ? category.attach : void 0;
- const detach = supportsAttachments ? category.detach : void 0;
- const subscribe = supportsAttachments ? category.subscribe : void 0;
- const showPagination = numPages > 1;
- const hasFooter = showPagination || !!attach;
- const scrollContainerRef = (0, import_element125.useRef)();
- const changePage = (0, import_element125.useCallback)((nextPage) => {
- const scrollContainer = (0, import_dom52.getScrollContainer)(
- scrollContainerRef.current
- );
- scrollContainer?.scrollTo(0, 0);
- setPage(nextPage);
- }, []);
- const { createErrorNotice, createSuccessNotice, createWarningNotice } = (0, import_data61.useDispatch)(import_notices7.store);
- const showRefreshing = useDelayedLoading(isLoading);
- const refresh = (0, import_element125.useCallback)(() => {
- if (supportsAttachments) {
- category.invalidate?.(query);
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- setRefreshKey((key) => key + 1);
- }, [category, query, supportsAttachments]);
- (0, import_element125.useEffect)(() => {
- if (!subscribe) {
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
return;
}
- return subscribe(() => setRefreshKey((key) => key + 1), query);
- }, [subscribe, query]);
- const handleAttach = (0, import_element125.useCallback)(
- async (selectedMedia) => {
- try {
- const attachedCount = await attach(selectedMedia);
- if (!attachedCount) {
- createWarningNotice((0, import_i18n59.__)("No images were attached."), {
- type: "snackbar",
- id: "inserter-notice"
- });
- return;
- }
- refresh();
- createSuccessNotice(
- category.postTypeLabel ? (0, import_i18n59.sprintf)(
- /* translators: %1$d: Number of images attached. %2$s: Name of the post type e.g: "Page". */
- (0, import_i18n59._n)(
- "%1$d image attached to %2$s.",
- "%1$d images attached to %2$s.",
- attachedCount
- ),
- attachedCount,
- category.postTypeLabel
- ) : (0, import_i18n59.sprintf)(
- /* translators: %d: Number of images attached to the post. */
- (0, import_i18n59._n)(
- "%d image attached to post.",
- "%d images attached to post.",
- attachedCount
- ),
- attachedCount
- ),
- { type: "snackbar", id: "inserter-notice" }
- );
- } catch {
- createErrorNotice((0, import_i18n59.__)("Could not attach images."), {
- type: "snackbar",
- id: "inserter-notice"
- });
- }
- },
- [
- attach,
- category,
- refresh,
- createErrorNotice,
- createSuccessNotice,
- createWarningNotice
- ]
- );
- const handleDetach = (0, import_element125.useCallback)(
- async (media) => {
- try {
- await detach(media);
- refresh();
- createSuccessNotice(
- category.postTypeLabel ? (0, import_i18n59.sprintf)(
- /* translators: %s: Name of the post type e.g: "Page". */
- (0, import_i18n59.__)("Image detached from %s."),
- category.postTypeLabel
- ) : (0, import_i18n59.__)("Image detached from post."),
- { type: "snackbar", id: "inserter-notice" }
- );
- } catch {
- createErrorNotice((0, import_i18n59.__)("Could not detach image."), {
- type: "snackbar",
- id: "inserter-notice"
- });
- }
- },
- [detach, category, refresh, createErrorNotice, createSuccessNotice]
- );
- const [mediaPendingDetach, setMediaPendingDetach] = (0, import_element125.useState)();
- const confirmDetach = (0, import_element125.useCallback)(() => {
- const media = mediaPendingDetach;
- setMediaPendingDetach(void 0);
- handleDetach(media);
- }, [handleDetach, mediaPendingDetach]);
- const baseCssClass = "block-editor-inserter__media-panel";
- const searchLabel = category.labels.search_items || (0, import_i18n59.__)("Search");
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
- "div",
- {
- ref: scrollContainerRef,
- className: clsx_default(baseCssClass, {
- // The footer supplies the breathing room beneath the grid, so the
- // list drops its own bottom padding (see styles).
- "has-footer": hasFooter
- }),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
- import_components55.SearchControl,
- {
- className: `${baseCssClass}-search`,
- onChange: setSearch,
- value: search,
- label: searchLabel,
- placeholder: searchLabel
- }
- ),
- isLoading && !mediaList?.length && /* @__PURE__ */ (0, import_jsx_runtime251.jsx)("div", { className: `${baseCssClass}-spinner`, children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_components55.Spinner, {}) }),
- !isLoading && !mediaList?.length && /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(no_results_default, { children: category.emptyMessage && !debouncedSearch ? (
- // For a source with a custom empty message (e.g.
- // Attachments) and no active search, an empty result
- // means nothing is attached yet — clearer than the
- // generic "no results found".
- category.emptyMessage
- ) : (0, import_i18n59.__)("No results found.") }),
- !!mediaList?.length && // Keep the existing items visible while a refetch is in flight,
- // dimming (and gently pulsing) them rather than clearing the grid,
- // so it doesn't flicker or pop.
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
- "div",
- {
- className: clsx_default(`${baseCssClass}-results`, {
- "is-loading": showRefreshing
- }),
- "aria-busy": showRefreshing,
- children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
- media_list_default,
- {
- rootClientId,
- onClick: onInsert,
- onDetach: detach ? setMediaPendingDetach : void 0,
- mediaList,
- category
- }
- )
- }
- ),
- hasFooter && // A single footer wrapper owns the top and horizontal breathing
- // room, so the pager and attach button don't span the full width
- // and sit clear of the grid above (see styles).
- /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
- Stack,
- {
- direction: "column",
- gap: "sm",
- className: `${baseCssClass}-footer`,
- children: [
- showPagination && // Reuse the Patterns tab pager (presentational only); only
- // rendered for multi-page sources (see `showPagination`).
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
- Pagination,
- {
- currentPage: page,
- numPages,
- changePage,
- totalItems
- }
- ),
- attach && // Lines up with the "Open Media Library" button in the
- // adjacent column.
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(AttachImagesButton, { onSelect: handleAttach })
- ]
- }
- ),
- mediaPendingDetach && // A plain `Modal` (not `ConfirmDialog`) so we can pass
- // `overlayClassName` and stack it above the options dropdown that
- // opened it (see the z-index entry in `_z-index.scss`).
- /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
- import_components55.Modal,
- {
- title: (0, import_i18n59.__)("Detach image"),
- onRequestClose: () => setMediaPendingDetach(void 0),
- overlayClassName: `${baseCssClass}-detach-modal`,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)("p", { children: category.postTypeLabel ? (0, import_i18n59.sprintf)(
- /* translators: %s: Name of the post type e.g: "Page". */
- (0, import_i18n59.__)(
- "Detach this image from the current %s? The image will remain in the Media Library."
- ),
- category.postTypeLabel
- ) : (0, import_i18n59.__)(
- "Detach this image from the current post? The image will remain in the Media Library."
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)("div", { className: `${baseCssClass}-detach-actions`, children: [
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
- import_components55.Button,
- {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: () => setMediaPendingDetach(void 0),
- children: (0, import_i18n59.__)("Cancel")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
- import_components55.Button,
- {
- __next40pxDefaultSize: true,
- variant: "primary",
- onClick: confirmDetach,
- children: (0, import_i18n59.__)("Detach")
- }
- )
- ] })
- ]
- }
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle26(hash, css) {
+ const runtime = getRuntime26();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle26(targetDocument, hash, css);
+ }
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle26("10f3806643", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
+ }
+ var resets_default8 = { "box-sizing": "_336cd3e4e743482f__box-sizing" };
+ if (typeof process === "undefined" || true) {
+ registerStyle26("8c70612dd7", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._0ab863136fb95530__positioner{z-index:var(--wp-ui-select-z-index,initial)}}}");
+ }
+ var style_default18 = { "positioner": "_0ab863136fb95530__positioner" };
+ var Positioner2 = (0, import_element90.forwardRef)(
+ function SelectPositioner3({ className: className2, ...props }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
+ index_parts_exports3.Positioner,
+ {
+ ...ITEM_POPUP_POSITIONER_PROPS,
+ alignItemWithTrigger: false,
+ ...props,
+ ref,
+ className: clsx_default(
+ resets_default8["box-sizing"],
+ style_default18.positioner,
+ className2
)
- ]
+ }
+ );
+ }
+ );
+
+ // packages/ui/build-module/form/primitives/select/popup.mjs
+ var import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE27 = "data-wp-hash";
+ function getRuntime27() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
+ }
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument27(document);
+ }
+ return globalScope.__wpStyleRuntime;
+ }
+ function documentContainsStyleHash27(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE27}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE27) === hash) {
+ return true;
}
- );
+ }
+ return false;
}
-
- // packages/block-editor/build-module/components/inserter/media-tab/media-tab.mjs
- var import_jsx_runtime252 = __toESM(require_jsx_runtime(), 1);
- var ALLOWED_MEDIA_TYPES2 = ["image", "video", "audio"];
- function MediaTab({
- rootClientId,
- selectedCategory,
- onSelectCategory,
- onInsert,
- children
- }) {
- const mediaCategories = useMediaCategories(rootClientId);
- const isMobile = (0, import_compose46.useViewportMatch)("medium", "<");
- const baseCssClass = "block-editor-inserter__media-tabs";
- const onSelectMedia = (0, import_element126.useCallback)(
- (media) => {
- if (!media?.url) {
- return;
- }
- const mediaType = window.__experimentalDataViewsMediaModal && media.mime_type ? media.mime_type.split("/")[0] : media.type;
- const [block] = getBlockAndPreviewFromMedia(media, mediaType);
- onInsert(block);
- },
- [onInsert]
- );
- const categories = (0, import_element126.useMemo)(
- () => mediaCategories.map((mediaCategory) => ({
- ...mediaCategory,
- label: mediaCategory.labels.name
- })),
- [mediaCategories]
+ function injectStyle27(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime27();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash27(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE27, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument27(targetDocument) {
+ const runtime = getRuntime27();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
);
- (0, import_element126.useEffect)(() => {
- if (!selectedCategory) {
+ for (const [hash, css] of runtime.styles) {
+ injectStyle27(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
return;
}
- const latestCategory = categories.find(
- (category) => category.name === selectedCategory.name
- );
- if (latestCategory && latestCategory !== selectedCategory) {
- onSelectCategory(latestCategory);
- } else if (!latestCategory) {
- onSelectCategory(null);
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
+ return;
}
- }, [categories, onSelectCategory, selectedCategory]);
- if (!categories.length) {
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(no_results_default, {});
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle27(hash, css) {
+ const runtime = getRuntime27();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle27(targetDocument, hash, css);
}
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(import_jsx_runtime252.Fragment, { children: [
- !isMobile && /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)("div", { className: `${baseCssClass}-container`, children: [
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
- category_tabs_default,
- {
- categories,
- selectedCategory,
- onSelectCategory,
- children
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(check_default2, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
- media_upload_default,
- {
- multiple: false,
- onSelect: onSelectMedia,
- allowedTypes: ALLOWED_MEDIA_TYPES2,
- render: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
- import_components56.Button,
- {
- __next40pxDefaultSize: true,
- onClick: (event) => {
- event.target.focus();
- open();
- },
- className: "block-editor-inserter__media-library-button",
- variant: "secondary",
- "data-unstable-ignore-focus-outside-for-relatedtarget": ".media-modal",
- children: (0, import_i18n60.__)("Open Media Library")
- }
- )
- }
- ) })
- ] }),
- isMobile && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
- MobileTabNavigation,
- {
- categories,
- screenClassName: "block-editor-inserter__media-mobile-screen",
- children: (category) => /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
- MediaCategoryPanel,
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle27("5705fc490f", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._380b81b8f79fb10f__dropdown-motion{--wp-ui-dropdown-slide-distance:4px;--wp-ui-dropdown-slide-duration:var(--wpds-motion-duration-md,200ms);--wp-ui-dropdown-slide-easing:var(--wpds-motion-easing-expressive,cubic-bezier(0.25,0,0,1));--wp-ui-dropdown-fade-duration:var(--wpds-motion-duration-sm,100ms);--wp-ui-dropdown-fade-easing:linear;@media not (prefers-reduced-motion){transition-duration:var(--wp-ui-dropdown-slide-duration),var(--wp-ui-dropdown-fade-duration);transition-property:transform,opacity;transition-timing-function:var(--wp-ui-dropdown-slide-easing),var(--wp-ui-dropdown-fade-easing);will-change:transform,opacity}opacity:1;transform:translate(0);&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}&[data-side=bottom][data-ending-style],&[data-side=bottom][data-starting-style]{transform:translateY(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&[data-side=top][data-ending-style],&[data-side=top][data-starting-style]{transform:translateY(var(--wp-ui-dropdown-slide-distance))}&[data-side=left][data-ending-style],&[data-side=left][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=right][data-ending-style],&[data-side=right][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._234b520016b4e56f__popup{--wp-ui-popup-padding:var(--wpds-dimension-padding-xs,4px);--_wp-ui-elevation-md:0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-md);display:grid;grid-template-areas:"header" "main";grid-template-rows:auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width)}.f43dc7c768d7b622__list{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto;line-height:var(--wpds-typography-line-height-sm,20px)}._233cd60cdb84a2ef__list-scrollable-container{grid-area:scrollable;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}.ec4db6f0122263e7__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._233cd60cdb84a2ef__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}.b3c0d7f103fb10a2__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._21b59380477c306c__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-md,32px);padding-inline:var(--wpds-dimension-padding-md,12px)}._684ccb7988365b4f__item{--wp-ui-popup-item-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-popup-item-padding-block:var(--wpds-dimension-padding-xs,4px);align-items:center;border-radius:var(--wpds-border-radius-sm,2px);display:flex;gap:var(--wpds-dimension-gap-xs,4px);justify-content:flex-start;margin-inline:var(--wp-ui-popup-padding);min-height:var(--wp-ui-popup-item-height);padding-block:var(--wp-ui-popup-item-padding-block);padding-inline-end:var(--wp-ui-popup-item-padding-inline);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px));user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.f181b98b0d33282a__is-size-compact{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px)}&._38f7faff93c61958__is-size-small{--wp-ui-popup-item-height:var(--wpds-dimension-size-sm,24px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-popup-item-padding-block:2px}&:not([data-selected]){._92fbe4765dfad5ee__item-indicator-icon{opacity:0}}&[data-highlighted]:not([aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:none;@media (forced-colors:active){outline:1px solid Highlight}}&[aria-disabled=true]{background-color:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}}.a3adcfd0b73ffd40__item-icon{flex-shrink:0}._06c7ff39d2f685b9__empty:not(:empty){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-lg,40px);--wp-ui-popup-empty-padding-inline:var(--wpds-dimension-padding-md,12px);align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);min-height:var(--wp-ui-popup-empty-min-height);padding-inline:var(--wp-ui-popup-empty-padding-inline)}}}');
+ }
+ var item_popup_default4 = { "popup": "_234b520016b4e56f__popup _380b81b8f79fb10f__dropdown-motion", "list": "f43dc7c768d7b622__list", "list-scrollable-container": "_233cd60cdb84a2ef__list-scrollable-container", "list-footer": "ec4db6f0122263e7__list-footer", "group": "b3c0d7f103fb10a2__group", "group-label": "_21b59380477c306c__group-label", "item": "_684ccb7988365b4f__item", "is-size-compact": "f181b98b0d33282a__is-size-compact", "is-size-small": "_38f7faff93c61958__is-size-small", "item-indicator-icon": "_92fbe4765dfad5ee__item-indicator-icon", "item-icon": "a3adcfd0b73ffd40__item-icon", "empty": "_06c7ff39d2f685b9__empty" };
+ var Popup2 = (0, import_element91.forwardRef)(
+ function Popup22({ className: className2, portal, positioner, children, ...restProps }, ref) {
+ const popupContent = /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
+ index_parts_exports3.Popup,
+ {
+ ref,
+ className: clsx_default(item_popup_default4.popup, className2),
+ ...restProps,
+ children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(index_parts_exports3.List, { className: item_popup_default4.list, children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
+ "div",
{
- onInsert,
- rootClientId,
- category
+ className: item_popup_default4["list-scrollable-container"],
+ children
}
- )
+ ) })
}
- )
- ] });
- }
- var media_tab_default = MediaTab;
-
- // packages/block-editor/build-module/components/inserter/search-results.mjs
- var import_element127 = __toESM(require_element(), 1);
- var import_i18n61 = __toESM(require_i18n(), 1);
- var import_compose47 = __toESM(require_compose(), 1);
- var import_a11y9 = __toESM(require_a11y(), 1);
- var import_data62 = __toESM(require_data(), 1);
-
- // packages/block-editor/build-module/components/inserter-menu-extension/index.mjs
- var import_components57 = __toESM(require_components(), 1);
- var { Fill: __unstableInserterMenuExtension, Slot } = (0, import_components57.createSlotFill)(
- "__unstableInserterMenuExtension"
+ ) });
+ const positionedPopup = renderSlotWithChildren(
+ positioner,
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Positioner2, {}),
+ popupContent
+ );
+ return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Portal2, {}), positionedPopup);
+ }
);
- __unstableInserterMenuExtension.Slot = Slot;
- var inserter_menu_extension_default = __unstableInserterMenuExtension;
- // packages/block-editor/build-module/components/inserter/search-results.mjs
- var import_jsx_runtime253 = __toESM(require_jsx_runtime(), 1);
- var INITIAL_INSERTER_RESULTS = 9;
- var EMPTY_ARRAY7 = [];
- function InserterSearchResults({
- filterValue,
- onSelect,
- onHover,
- onHoverPattern,
- rootClientId,
- clientId,
- isAppender,
- __experimentalInsertionIndex,
- maxBlockPatterns,
- maxBlockTypes,
- showBlockDirectory = false,
- isDraggable = true,
- shouldFocusBlock = true,
- prioritizePatterns,
- selectBlockOnInsert,
- isQuick
- }) {
- const debouncedSpeak = (0, import_compose47.useDebounce)(import_a11y9.speak, 500);
- const { prioritizedBlocks } = (0, import_data62.useSelect)(
- (select3) => {
- const blockListSettings2 = select3(store).getBlockListSettings(rootClientId);
- return {
- prioritizedBlocks: blockListSettings2?.prioritizedInserterBlocks || EMPTY_ARRAY7
- };
- },
- [rootClientId]
- );
- const [destinationRootClientId, onInsertBlocks] = use_insertion_point_default({
- onSelect,
- rootClientId,
- clientId,
- isAppender,
- insertionIndex: __experimentalInsertionIndex,
- shouldFocusBlock,
- selectBlockOnInsert
- });
- const [
- blockTypes,
- blockTypeCategories,
- blockTypeCollections,
- onSelectBlockType
- ] = use_block_types_state_default(destinationRootClientId, onInsertBlocks, isQuick);
- const [patterns, , onClickPattern] = use_patterns_state_default(
- onInsertBlocks,
- destinationRootClientId,
- void 0,
- isQuick
- );
- const filteredBlockPatterns = (0, import_element127.useMemo)(() => {
- if (maxBlockPatterns === 0) {
- return [];
- }
- const results = searchItems(patterns, filterValue);
- return maxBlockPatterns !== void 0 ? results.slice(0, maxBlockPatterns) : results;
- }, [filterValue, patterns, maxBlockPatterns]);
- let maxBlockTypesToShow = maxBlockTypes;
- if (prioritizePatterns && filteredBlockPatterns.length > 2) {
- maxBlockTypesToShow = 0;
+ // packages/ui/build-module/form/primitives/select/root.mjs
+ var import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
+ function Root7(props) {
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(DirectionProvider3, { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(index_parts_exports3.Root, { ...props }) });
+ }
+
+ // packages/ui/build-module/form/primitives/select/trigger.mjs
+ var import_element92 = __toESM(require_element(), 1);
+ var import_i18n35 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
+ var STYLE_HASH_ATTRIBUTE28 = "data-wp-hash";
+ function getRuntime28() {
+ const globalScope = globalThis;
+ if (globalScope.__wpStyleRuntime) {
+ return globalScope.__wpStyleRuntime;
}
- const filteredBlockTypes = (0, import_element127.useMemo)(() => {
- if (maxBlockTypesToShow === 0) {
- return [];
+ globalScope.__wpStyleRuntime = {
+ documents: /* @__PURE__ */ new Map(),
+ styles: /* @__PURE__ */ new Map(),
+ injectedStyles: /* @__PURE__ */ new WeakMap()
+ };
+ if (typeof document !== "undefined") {
+ registerDocument28(document);
+ }
+ return globalScope.__wpStyleRuntime;
+ }
+ function documentContainsStyleHash28(targetDocument, hash) {
+ if (!targetDocument.head) {
+ return false;
+ }
+ for (const style of targetDocument.head.querySelectorAll(
+ `style[${STYLE_HASH_ATTRIBUTE28}]`
+ )) {
+ if (style.getAttribute(STYLE_HASH_ATTRIBUTE28) === hash) {
+ return true;
}
- const nonPatternBlockTypes = blockTypes.filter(
- (blockType) => blockType.name !== "core/block"
- );
- let orderedItems = orderBy(nonPatternBlockTypes, "frecency", "desc");
- if (!filterValue && prioritizedBlocks.length) {
- orderedItems = orderInserterBlockItems(
- orderedItems,
- prioritizedBlocks
- );
+ }
+ return false;
+ }
+ function injectStyle28(targetDocument, hash, css) {
+ if (!targetDocument.head) {
+ return;
+ }
+ const runtime = getRuntime28();
+ let injectedStyles = runtime.injectedStyles.get(targetDocument);
+ if (!injectedStyles) {
+ injectedStyles = /* @__PURE__ */ new Set();
+ runtime.injectedStyles.set(targetDocument, injectedStyles);
+ }
+ if (injectedStyles.has(hash)) {
+ return;
+ }
+ if (documentContainsStyleHash28(targetDocument, hash)) {
+ injectedStyles.add(hash);
+ return;
+ }
+ const style = targetDocument.createElement("style");
+ style.setAttribute(STYLE_HASH_ATTRIBUTE28, hash);
+ style.appendChild(targetDocument.createTextNode(css));
+ targetDocument.head.appendChild(style);
+ injectedStyles.add(hash);
+ }
+ function registerDocument28(targetDocument) {
+ const runtime = getRuntime28();
+ runtime.documents.set(
+ targetDocument,
+ (runtime.documents.get(targetDocument) ?? 0) + 1
+ );
+ for (const [hash, css] of runtime.styles) {
+ injectStyle28(targetDocument, hash, css);
+ }
+ return () => {
+ const count = runtime.documents.get(targetDocument);
+ if (count === void 0) {
+ return;
}
- const results = searchBlockItems(
- orderedItems,
- blockTypeCategories,
- blockTypeCollections,
- filterValue
- );
- return maxBlockTypesToShow !== void 0 ? results.slice(0, maxBlockTypesToShow) : results;
- }, [
- filterValue,
- blockTypes,
- blockTypeCategories,
- blockTypeCollections,
- maxBlockTypesToShow,
- prioritizedBlocks
- ]);
- (0, import_element127.useEffect)(() => {
- if (!filterValue) {
+ if (count <= 1) {
+ runtime.documents.delete(targetDocument);
return;
}
- const count = filteredBlockTypes.length + filteredBlockPatterns.length;
- const resultsFoundMessage = (0, import_i18n61.sprintf)(
- /* translators: %d: number of results. */
- (0, import_i18n61._n)("%d result found.", "%d results found.", count),
- count
+ runtime.documents.set(targetDocument, count - 1);
+ };
+ }
+ function registerStyle28(hash, css) {
+ const runtime = getRuntime28();
+ runtime.styles.set(hash, css);
+ for (const targetDocument of runtime.documents.keys()) {
+ injectStyle28(targetDocument, hash, css);
+ }
+ }
+ if (typeof process === "undefined" || true) {
+ registerStyle28("2ffedd8246", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--focus-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color);outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");
+ }
+ var focus_module_default4 = { "outset-ring--focus": "af79fb116edb0dd7__outset-ring--focus", "outset-ring--focus-visible": "dfcfdc28396e5d98__outset-ring--focus-visible", "outset-ring--focus-within": "e5cd9ee879f6403a__outset-ring--focus-within", "outset-ring--focus-within-visible": "_64de9947bf305b7a__outset-ring--focus-within-visible", "outset-ring--focus-parent-visible": "_81935a08e952f267__outset-ring--focus-parent-visible", "outset-ring--focus-except-active": "abc777e9713fa711__outset-ring--focus-except-active", "outset-ring--focus-within-except-active": "_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active" };
+ if (typeof process === "undefined" || true) {
+ registerStyle28("7b4a0ac519", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._6e4e0445ef20426b__trigger-wrapper{&.fa98c865fb77e675__is-minimal{width:fit-content}}._7893295e3f6d1af7__trigger{align-items:center;background-color:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;font-family:inherit;font-size:inherit;gap:var(--wpds-dimension-gap-xs,4px);justify-content:space-between;line-height:1.4;padding-block:4px;padding-inline-end:calc(var(--wp-ui-input-layout-padding-inline) - 4px);padding-inline-start:var(--wp-ui-input-layout-padding-inline);text-align:start;user-select:none;width:100%;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&.fa98c865fb77e675__is-minimal{width:auto}&:focus{outline:none}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}}.e760c9339965ce84__trigger-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;._7893295e3f6d1af7__trigger[data-placeholder] &{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}}._308bc63e43681f99__trigger-caret{flex:0 0 auto}}}");
+ }
+ var select_trigger_default = { "trigger-wrapper": "_6e4e0445ef20426b__trigger-wrapper", "is-minimal": "fa98c865fb77e675__is-minimal", "trigger": "_7893295e3f6d1af7__trigger", "trigger-value": "e760c9339965ce84__trigger-value", "trigger-caret": "_308bc63e43681f99__trigger-caret" };
+ var Trigger3 = (0, import_element92.forwardRef)(
+ function Trigger22({
+ className: className2,
+ size: size4,
+ variant,
+ children,
+ placeholder = (0, import_i18n35.__)("Select"),
+ ...restProps
+ }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
+ InputLayout3,
+ {
+ className: clsx_default(
+ focus_module_default4["outset-ring--focus-within-except-active"],
+ select_trigger_default["trigger-wrapper"],
+ variant === "minimal" && select_trigger_default["is-minimal"],
+ className2
+ ),
+ size: size4,
+ isBorderless: variant === "minimal",
+ children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
+ index_parts_exports3.Trigger,
+ {
+ ...restProps,
+ className: clsx_default(
+ select_trigger_default.trigger,
+ variant === "minimal" && select_trigger_default["is-minimal"]
+ ),
+ "data-can-disable-input-layout": true,
+ ref,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
+ index_parts_exports3.Value,
+ {
+ placeholder,
+ className: select_trigger_default["trigger-value"],
+ children
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
+ Icon,
+ {
+ className: select_trigger_default["trigger-caret"],
+ icon: chevron_down_default,
+ size: 18
+ }
+ )
+ ]
+ }
+ )
+ }
);
- debouncedSpeak(resultsFoundMessage);
- }, [
- filterValue,
- debouncedSpeak,
- filteredBlockTypes,
- filteredBlockPatterns
- ]);
- const currentShownBlockTypes = (0, import_compose47.useAsyncList)(filteredBlockTypes, {
- step: INITIAL_INSERTER_RESULTS
- });
- const hasItems = filteredBlockTypes.length > 0 || filteredBlockPatterns.length > 0;
- const blocksUI = !!filteredBlockTypes.length && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
- panel_default,
- {
- title: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(VisuallyHidden, { children: (0, import_i18n61.__)("Blocks") }),
- children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
- block_types_list_default,
+ }
+ );
+
+ // packages/ui/build-module/form/select-control/select-control.mjs
+ var import_element95 = __toESM(require_element(), 1);
+
+ // packages/ui/build-module/form/select-control/context.mjs
+ var import_element93 = __toESM(require_element(), 1);
+ var SelectControlSizeContext = (0, import_element93.createContext)(void 0);
+ var useSelectControlSizeContext = () => {
+ return (0, import_element93.useContext)(SelectControlSizeContext);
+ };
+
+ // packages/ui/build-module/form/select-control/item.mjs
+ var import_element94 = __toESM(require_element(), 1);
+ var import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
+ var Item4 = (0, import_element94.forwardRef)(
+ function Item24({ size: sizeProp, ...restProps }, ref) {
+ const contextSize = useSelectControlSizeContext();
+ const size4 = sizeProp ?? contextSize;
+ return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(select_exports.Item, { size: size4, ref, ...restProps });
+ }
+ );
+
+ // packages/ui/build-module/form/select-control/select-control.mjs
+ var import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
+ var SelectControl = (0, import_element95.forwardRef)(function SelectControl2({
+ className: className2,
+ children,
+ items,
+ label,
+ description,
+ details,
+ hideLabelFromVision,
+ placeholder,
+ size: size4 = "default",
+ triggerContent,
+ ...restProps
+ }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(field_exports.Root, { className: className2, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(field_exports.Label, { hideFromVision: hideLabelFromVision, children: label }),
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(select_exports.Root, { items, ...restProps, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
+ select_exports.Trigger,
{
- items: currentShownBlockTypes,
- onSelect: onSelectBlockType,
- onHover,
- label: (0, import_i18n61.__)("Blocks"),
- isDraggable
+ ref,
+ placeholder,
+ size: size4,
+ children: triggerContent
}
- )
- }
- );
- const patternsUI = !!filteredBlockPatterns.length && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
- panel_default,
- {
- title: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(VisuallyHidden, { children: (0, import_i18n61.__)("Patterns") }),
- children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { className: "block-editor-inserter__quick-inserter-patterns", children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
- block_patterns_list_default,
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(select_exports.Popup, { children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(SelectControlSizeContext.Provider, { value: size4, children: children !== void 0 ? children : items?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
+ Item4,
{
- blockPatterns: filteredBlockPatterns,
- onClickPattern,
- onHover: onHoverPattern,
- isDraggable
- }
- ) })
- }
- );
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(inserter_listbox_default, { children: [
- !showBlockDirectory && !hasItems && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(no_results_default, {}),
- prioritizePatterns ? patternsUI : blocksUI,
- !!filteredBlockTypes.length && !!filteredBlockPatterns.length && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { className: "block-editor-inserter__quick-inserter-separator" }),
- prioritizePatterns ? blocksUI : patternsUI,
- showBlockDirectory && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
- inserter_menu_extension_default.Slot,
- {
- fillProps: {
- onSelect: onSelectBlockType,
- onHover,
- filterValue,
- hasItems,
- rootClientId: destinationRootClientId
+ value: item,
+ label: item.label,
+ disabled: item.disabled,
+ children: item.label
},
- children: (fills) => {
- if (fills.length) {
- return fills;
- }
- if (!hasItems) {
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(no_results_default, {});
- }
- return null;
- }
- }
- )
+ item.value ?? "null"
+ )) }) })
+ ] }),
+ description && /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(field_exports.Description, { children: description }),
+ details && /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(field_exports.Details, { children: details })
] });
+ });
+
+ // packages/ui/build-module/form/select-control/index.mjs
+ Group.displayName = "SelectControl.Group";
+ GroupLabel.displayName = "SelectControl.GroupLabel";
+ Item4.displayName = "SelectControl.Item";
+ var SelectControl3 = Object.assign(SelectControl, {
+ /**
+ * Groups related items together with an associated label rendered by
+ * `SelectControl.GroupLabel`.
+ */
+ Group,
+ /**
+ * Renders a label for a `SelectControl.Group`.
+ */
+ GroupLabel,
+ /**
+ * An item rendered inside a `SelectControl` popup.
+ */
+ Item: Item4
+ });
+
+ // packages/block-editor/build-module/components/inserter/menu.mjs
+ var import_i18n65 = __toESM(require_i18n(), 1);
+ var import_compose49 = __toESM(require_compose(), 1);
+ var import_data65 = __toESM(require_data(), 1);
+
+ // packages/block-editor/build-module/components/inserter/tips.mjs
+ var import_i18n36 = __toESM(require_i18n(), 1);
+ var import_element96 = __toESM(require_element(), 1);
+ var import_components27 = __toESM(require_components(), 1);
+ var import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
+ var globalTips = [
+ (0, import_element96.createInterpolateElement)(
+ (0, import_i18n36.__)(
+ "While writing, you can press <kbd>/</kbd> to quickly insert new blocks."
+ ),
+ { kbd: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("kbd", {}) }
+ ),
+ (0, import_element96.createInterpolateElement)(
+ (0, import_i18n36.__)(
+ "Indent a list by pressing <kbd>space</kbd> at the beginning of a line."
+ ),
+ { kbd: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("kbd", {}) }
+ ),
+ (0, import_element96.createInterpolateElement)(
+ (0, import_i18n36.__)(
+ "Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."
+ ),
+ { kbd: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("kbd", {}) }
+ ),
+ (0, import_i18n36.__)("Drag files into the editor to automatically insert media blocks."),
+ (0, import_i18n36.__)("Change a block's type by pressing the block icon on the toolbar.")
+ ];
+ function Tips() {
+ const [randomIndex] = (0, import_element96.useState)(
+ () => Math.floor(Math.random() * globalTips.length)
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_components27.Tip, { children: globalTips[randomIndex] });
}
- var search_results_default = InserterSearchResults;
+ var tips_default = Tips;
- // packages/block-editor/build-module/components/tabbed-sidebar/index.mjs
- var import_components58 = __toESM(require_components(), 1);
- var import_element128 = __toESM(require_element(), 1);
- var import_jsx_runtime254 = __toESM(require_jsx_runtime(), 1);
- var { Tabs: Tabs2 } = unlock(import_components58.privateApis);
- function TabbedSidebar({ defaultTabId, onClose, onSelect, selectedTab, tabs, closeButtonLabel }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)("div", { className: "block-editor-tabbed-sidebar", children: /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
- Tabs2,
+ // packages/block-editor/build-module/components/inserter/preview-panel.mjs
+ var import_blocks33 = __toESM(require_blocks(), 1);
+ var import_element112 = __toESM(require_element(), 1);
+ var import_i18n43 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/block-card/index.mjs
+ var import_components28 = __toESM(require_components(), 1);
+ var import_data33 = __toESM(require_data(), 1);
+ var import_deprecated6 = __toESM(require_deprecated(), 1);
+ var import_i18n37 = __toESM(require_i18n(), 1);
+ var import_blocks26 = __toESM(require_blocks(), 1);
+ var import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
+ var { Badge: WCBadge2 } = unlock(import_components28.privateApis);
+ function OptionalParentSelectButton({ children, onClick }) {
+ if (!onClick) {
+ return children;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
+ import_components28.Button,
{
- selectOnMove: false,
- defaultTabId,
- onSelect,
- selectedTabId: selectedTab,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)("div", { className: "block-editor-tabbed-sidebar__tablist-and-close-button", children: [
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
- import_components58.Button,
- {
- className: "block-editor-tabbed-sidebar__close-button",
- icon: close_small_default,
- label: closeButtonLabel,
- onClick: () => onClose(),
- size: "compact"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
- Tabs2.TabList,
- {
- className: "block-editor-tabbed-sidebar__tablist",
- ref,
- children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
- Tabs2.Tab,
- {
- tabId: tab.name,
- className: "block-editor-tabbed-sidebar__tab",
- children: tab.title
- },
- tab.name
- ))
- }
- )
- ] }),
- tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
- Tabs2.TabPanel,
- {
- tabId: tab.name,
- focusable: false,
- className: "block-editor-tabbed-sidebar__tabpanel",
- ref: tab.panelRef,
- children: tab.panel
- },
- tab.name
- ))
- ]
+ __next40pxDefaultSize: true,
+ className: "block-editor-block-card__parent-select-button",
+ onClick,
+ children
}
- ) });
- }
- var tabbed_sidebar_default = (0, import_element128.forwardRef)(TabbedSidebar);
-
- // packages/block-editor/build-module/hooks/use-zoom-out.mjs
- var import_data63 = __toESM(require_data(), 1);
- var import_element129 = __toESM(require_element(), 1);
- function useZoomOut(enabled = true) {
- const { setZoomLevel: setZoomLevel2, resetZoomLevel: resetZoomLevel2 } = unlock(
- (0, import_data63.useDispatch)(store)
);
- const { isZoomedOut, isZoomOut: isZoomOut2 } = (0, import_data63.useSelect)((select3) => {
- const { isZoomOut: _isZoomOut } = unlock(select3(store));
- return {
- isZoomedOut: _isZoomOut(),
- isZoomOut: _isZoomOut
- };
- }, []);
- const controlZoomLevelRef = (0, import_element129.useRef)(false);
- const isEnabledRef = (0, import_element129.useRef)(enabled);
- (0, import_element129.useEffect)(() => {
- if (isZoomedOut !== isEnabledRef.current) {
- controlZoomLevelRef.current = false;
- }
- }, [isZoomedOut]);
- (0, import_element129.useEffect)(() => {
- isEnabledRef.current = enabled;
- if (enabled !== isZoomOut2()) {
- controlZoomLevelRef.current = true;
- if (enabled) {
- setZoomLevel2("auto-scaled");
- } else {
- resetZoomLevel2();
- }
- }
- return () => {
- if (controlZoomLevelRef.current && isZoomOut2()) {
- resetZoomLevel2();
- }
- };
- }, [enabled, isZoomOut2, resetZoomLevel2, setZoomLevel2]);
}
-
- // packages/block-editor/build-module/components/inserter/menu.mjs
- var import_jsx_runtime255 = __toESM(require_jsx_runtime(), 1);
- var NOOP2 = () => {
- };
- function InserterMenu({
- rootClientId,
+ function BlockCard({
+ title,
+ icon,
+ description,
+ blockType,
+ className: className2,
+ name,
+ allowParentNavigation,
+ parentClientId,
+ isChild,
+ children,
clientId,
- isAppender,
- __experimentalInsertionIndex,
- onSelect,
- showInserterHelpPanel,
- showMostUsedBlocks,
- __experimentalFilterValue = "",
- shouldFocusBlock = true,
- onPatternCategorySelection,
- onClose,
- __experimentalInitialTab,
- __experimentalInitialCategory
- }, ref) {
- const { isZoomOutMode, hasSectionRootClientId } = (0, import_data64.useSelect)((select3) => {
- const { isZoomOut: isZoomOut2, getSectionRootClientId: getSectionRootClientId2 } = unlock(
- select3(store)
- );
- return {
- isZoomOutMode: isZoomOut2(),
- hasSectionRootClientId: !!getSectionRootClientId2()
- };
- }, []);
- const [filterValue, setFilterValue, delayedFilterValue] = (0, import_compose48.useDebouncedInput)(__experimentalFilterValue);
- const [hoveredItem, setHoveredItem] = (0, import_element130.useState)(null);
- const [selectedPatternCategory, setSelectedPatternCategory] = (0, import_element130.useState)(
- __experimentalInitialCategory
- );
- const [patternFilter, setPatternFilter] = (0, import_element130.useState)("all");
- const [selectedMediaCategory, setSelectedMediaCategory] = (0, import_element130.useState)(null);
- const isLargeViewport = (0, import_compose48.useViewportMatch)("large");
- const isMobileViewport = (0, import_compose48.useViewportMatch)("medium", "<");
- const maybeCloseInserter = isMobileViewport ? onClose : NOOP2;
- function getInitialTab() {
- if (__experimentalInitialTab) {
- return __experimentalInitialTab;
- }
- if (isZoomOutMode) {
- return "patterns";
- }
- return "blocks";
+ controls
+ }) {
+ if (blockType) {
+ (0, import_deprecated6.default)("`blockType` property in `BlockCard component`", {
+ since: "5.7",
+ alternative: "`title, icon and description` properties"
+ });
+ ({ title, icon, description } = blockType);
}
- const [selectedTab, setSelectedTab] = (0, import_element130.useState)(getInitialTab());
- const shouldUseZoomOut = hasSectionRootClientId && (selectedTab === "patterns" || selectedTab === "media");
- useZoomOut(shouldUseZoomOut && isLargeViewport);
- const [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint] = use_insertion_point_default({
- rootClientId,
- clientId,
- isAppender,
- insertionIndex: __experimentalInsertionIndex,
- shouldFocusBlock
- });
- const blockTypesTabRef = (0, import_element130.useRef)();
- const onInsert = (0, import_element130.useCallback)(
- (blocks2, meta, shouldForceFocusBlock, _rootClientId) => {
- onInsertBlocks(
- blocks2,
- meta,
- shouldForceFocusBlock,
- _rootClientId
+ const { parentBlockClientId, parentBlockName } = (0, import_data33.useSelect)(
+ (select3) => {
+ if (parentClientId || isChild || !allowParentNavigation) {
+ return {};
+ }
+ const { getBlockParents: getBlockParents2, getBlockName: getBlockName2, shouldRenderBlockListView: shouldRenderBlockListView2 } = unlock(select3(store));
+ const parents = getBlockParents2(clientId, false);
+ const foundParentId = parents.find(
+ (parentId) => shouldRenderBlockListView2(parentId)
);
- onSelect(blocks2);
- maybeCloseInserter();
- window.requestAnimationFrame(() => {
- if (!shouldFocusBlock && !blockTypesTabRef.current?.contains(
- ref.current.ownerDocument.activeElement
- )) {
- blockTypesTabRef.current?.querySelector("button").focus();
- }
- });
- },
- [onInsertBlocks, maybeCloseInserter, onSelect, ref, shouldFocusBlock]
- );
- const onInsertPattern = (0, import_element130.useCallback)(
- (blocks2, patternName, ...args) => {
- onToggleInsertionPoint(false);
- onInsertBlocks(blocks2, { patternName }, ...args);
- onSelect();
- maybeCloseInserter();
- },
- [onInsertBlocks, maybeCloseInserter, onSelect, onToggleInsertionPoint]
- );
- const onHover = (0, import_element130.useCallback)(
- (item) => {
- onToggleInsertionPoint(item);
- setHoveredItem(item);
- },
- [onToggleInsertionPoint, setHoveredItem]
- );
- const onClickPatternCategory = (0, import_element130.useCallback)(
- (patternCategory, filter) => {
- setSelectedPatternCategory(patternCategory);
- setPatternFilter(filter);
- onPatternCategorySelection?.();
+ return {
+ parentBlockClientId: foundParentId,
+ parentBlockName: foundParentId ? getBlockName2(foundParentId) : null
+ };
},
- [setSelectedPatternCategory, onPatternCategorySelection]
+ [clientId, allowParentNavigation, isChild, parentClientId]
);
- const showPatternPanel = selectedTab === "patterns" && !delayedFilterValue && !!selectedPatternCategory;
- const showMediaPanel = selectedTab === "media" && !!selectedMediaCategory;
- const [isScrolled, setIsScrolled] = (0, import_element130.useState)(false);
- const blocksPanelRef = (0, import_element130.useRef)(null);
- const patternsPanelRef = (0, import_element130.useRef)(null);
- const mediaPanelRef = (0, import_element130.useRef)(null);
- (0, import_element130.useEffect)(() => {
- const handleScroll = (event) => {
- setIsScrolled(event.currentTarget.scrollTop > 0);
- };
- const panels = [
- blocksPanelRef.current,
- patternsPanelRef.current,
- mediaPanelRef.current
- ].filter(Boolean);
- panels.forEach(
- (panel) => panel.addEventListener("scroll", handleScroll)
- );
- return () => {
- panels.forEach(
- (panel) => panel.removeEventListener("scroll", handleScroll)
- );
- };
- }, []);
- const inserterSearch = (0, import_element130.useMemo)(() => {
- if (selectedTab === "media") {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(import_jsx_runtime255.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
- import_components59.SearchControl,
- {
- className: clsx_default("block-editor-inserter__search", {
- "is-scrolled": isScrolled
- }),
- onChange: (value) => {
- if (hoveredItem) {
- setHoveredItem(null);
- }
- setFilterValue(value);
- },
- value: filterValue,
- label: (0, import_i18n62.__)("Search"),
- placeholder: (0, import_i18n62.__)("Search")
- }
- ),
- !!delayedFilterValue && /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
- search_results_default,
- {
- filterValue: delayedFilterValue,
- onSelect,
- onHover,
- rootClientId,
- clientId,
- isAppender,
- __experimentalInsertionIndex,
- showBlockDirectory: true,
- shouldFocusBlock,
- prioritizePatterns: selectedTab === "patterns"
- }
- )
- ] });
- }, [
- selectedTab,
- hoveredItem,
- setHoveredItem,
- setFilterValue,
- filterValue,
- delayedFilterValue,
- onSelect,
- onHover,
- shouldFocusBlock,
- clientId,
- rootClientId,
- __experimentalInsertionIndex,
- isAppender,
- isScrolled
- ]);
- const blocksTab = (0, import_element130.useMemo)(() => {
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(import_jsx_runtime255.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("div", { className: "block-editor-inserter__block-list", children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
- block_types_tab_default,
- {
- ref: blockTypesTabRef,
- rootClientId: destinationRootClientId,
- onInsert,
- onHover,
- showMostUsedBlocks
- }
- ) }),
- showInserterHelpPanel && /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)("div", { className: "block-editor-inserter__tips", children: [
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("h2", {}), children: (0, import_i18n62.__)("A tip for using the block editor") }),
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(tips_default, {})
- ] })
- ] });
- }, [
- destinationRootClientId,
- onInsert,
- onHover,
- showMostUsedBlocks,
- showInserterHelpPanel
- ]);
- const patternsTab = (0, import_element130.useMemo)(() => {
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
- block_patterns_tab_default,
- {
- rootClientId: destinationRootClientId,
- onInsert: onInsertPattern,
- onSelectCategory: onClickPatternCategory,
- selectedCategory: selectedPatternCategory,
- children: showPatternPanel && /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
- PatternCategoryPreviews,
- {
- rootClientId: destinationRootClientId,
- onInsert: onInsertPattern,
- category: selectedPatternCategory,
- patternFilter,
- showTitlesAsTooltip: true
- }
- )
- }
- );
- }, [
- destinationRootClientId,
- onInsertPattern,
- onClickPatternCategory,
- patternFilter,
- selectedPatternCategory,
- showPatternPanel
- ]);
- const mediaTab = (0, import_element130.useMemo)(() => {
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
- media_tab_default,
- {
- rootClientId: destinationRootClientId,
- selectedCategory: selectedMediaCategory,
- onSelectCategory: setSelectedMediaCategory,
- onInsert,
- children: showMediaPanel && /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
- MediaCategoryPanel,
- {
- rootClientId: destinationRootClientId,
- onInsert,
- category: selectedMediaCategory
- }
- )
- }
- );
- }, [
- destinationRootClientId,
- onInsert,
- selectedMediaCategory,
- setSelectedMediaCategory,
- showMediaPanel
- ]);
- const handleSetSelectedTab = (value) => {
- if (value !== "patterns") {
- setSelectedPatternCategory(null);
- }
- setSelectedTab(value);
- };
- const tabsRef = (0, import_element130.useRef)();
- (0, import_element130.useLayoutEffect)(() => {
- if (tabsRef.current) {
- window.requestAnimationFrame(() => {
- tabsRef.current.querySelector('[role="tab"][aria-selected="true"]')?.focus();
- });
- }
- }, []);
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
+ const { selectBlock: selectBlock2 } = (0, import_data33.useDispatch)(store);
+ const TitleElement = parentClientId ? "div" : "h2";
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
"div",
{
- className: clsx_default("block-editor-inserter__menu", {
- "show-panel": showPatternPanel || showMediaPanel,
- "is-zoom-out": isZoomOutMode
- }),
- ref,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("div", { className: "block-editor-inserter__main-area", children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
- tabbed_sidebar_default,
- {
- ref: tabsRef,
- onSelect: handleSetSelectedTab,
- onClose,
- selectedTab,
- closeButtonLabel: (0, import_i18n62.__)("Close Block Inserter"),
- tabs: [
+ className: clsx_default(
+ "block-editor-block-card",
+ {
+ "is-parent": parentClientId,
+ "is-child": isChild
+ },
+ className2
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Stack, { direction: "column", gap: "sm", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Stack, { direction: "row", align: "center", justify: "space-between", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Stack, { direction: "row", align: "center", justify: "flex-start", children: [
+ parentBlockClientId && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
+ import_components28.Button,
{
- name: "blocks",
- title: (0, import_i18n62.__)("Blocks"),
- panelRef: blocksPanelRef,
- panel: /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(import_jsx_runtime255.Fragment, { children: [
- inserterSearch,
- selectedTab === "blocks" && !delayedFilterValue && blocksTab
- ] })
- },
+ onClick: () => selectBlock2(parentBlockClientId),
+ label: parentBlockName ? (0, import_i18n37.sprintf)(
+ /* translators: %s: The name of the parent block. */
+ (0, import_i18n37.__)('Go to "%s" block'),
+ (0, import_blocks26.getBlockType)(parentBlockName)?.title
+ ) : (0, import_i18n37.__)("Go to parent block"),
+ style: (
+ // TODO: This style override is also used in ToolsPanelHeader.
+ // It should be supported out-of-the-box by Button.
+ { minWidth: 24, padding: 0 }
+ ),
+ icon: (0, import_i18n37.isRTL)() ? chevron_right_default : chevron_left_default,
+ size: "small"
+ }
+ ),
+ isChild && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)("span", { className: "block-editor-block-card__child-indicator-icon", children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
+ import_components28.Icon,
{
- name: "patterns",
- title: (0, import_i18n62.__)("Patterns"),
- panelRef: patternsPanelRef,
- panel: /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(import_jsx_runtime255.Fragment, { children: [
- inserterSearch,
- selectedTab === "patterns" && !delayedFilterValue && patternsTab
- ] })
- },
+ icon: (0, import_i18n37.isRTL)() ? arrow_left_default : arrow_right_default
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
+ OptionalParentSelectButton,
{
- name: "media",
- title: (0, import_i18n62.__)("Media"),
- panelRef: mediaPanelRef,
- panel: /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(import_jsx_runtime255.Fragment, { children: [
- inserterSearch,
- mediaTab
- ] })
+ onClick: parentClientId ? () => {
+ selectBlock2(parentClientId);
+ } : void 0,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(block_icon_default, { icon, showColors: true }),
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Stack, { direction: "column", gap: "xs", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(TitleElement, { className: "block-editor-block-card__title", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)("span", { className: "block-editor-block-card__name", children: !!name?.length ? name : title }),
+ !parentClientId && !isChild && !!name?.length && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(WCBadge2, { children: title })
+ ] }),
+ children
+ ] })
+ ]
}
- ]
- }
- ) }),
- showInserterHelpPanel && hoveredItem && /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
- import_components59.Popover,
- {
- className: "block-editor-inserter__preview-container__popover",
- placement: "right-start",
- offset: 16,
- focusOnMount: false,
- animate: false,
- children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(preview_panel_default, { item: hoveredItem })
- }
- )
- ]
- }
- );
- }
- var PrivateInserterMenu = (0, import_element130.forwardRef)(InserterMenu);
- function PublicInserterMenu(props, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
- PrivateInserterMenu,
- {
- ...props,
- onPatternCategorySelection: NOOP2,
- ref
+ )
+ ] }),
+ controls
+ ] }),
+ !parentClientId && !isChild && description && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text, { className: "block-editor-block-card__description", children: description })
+ ] })
}
);
}
- var menu_default = (0, import_element130.forwardRef)(PublicInserterMenu);
+ var block_card_default = BlockCard;
- // packages/block-editor/build-module/components/inserter/quick-inserter.mjs
- var import_element131 = __toESM(require_element(), 1);
- var import_i18n63 = __toESM(require_i18n(), 1);
- var import_components60 = __toESM(require_components(), 1);
- var import_data65 = __toESM(require_data(), 1);
- var import_jsx_runtime256 = __toESM(require_jsx_runtime(), 1);
- var SEARCH_THRESHOLD = 6;
- var SHOWN_BLOCK_TYPES2 = 6;
- var SHOWN_BLOCK_PATTERNS = 2;
- function QuickInserter({
- onSelect,
- rootClientId,
- clientId,
- isAppender,
- selectBlockOnInsert,
- hasSearch = true
- }) {
- const [filterValue, setFilterValue] = (0, import_element131.useState)("");
- const [destinationRootClientId, onInsertBlocks] = use_insertion_point_default({
- onSelect,
- rootClientId,
- clientId,
- isAppender,
- selectBlockOnInsert
- });
- const [blockTypes] = use_block_types_state_default(
- destinationRootClientId,
- onInsertBlocks,
- true
- );
- const { setInserterIsOpened, insertionIndex } = (0, import_data65.useSelect)(
- (select3) => {
- const { getSettings: getSettings7, getBlockIndex: getBlockIndex2, getBlockCount: getBlockCount2 } = select3(store);
- const settings2 = getSettings7();
- const index2 = getBlockIndex2(clientId);
- const blockCount = getBlockCount2();
- return {
- setInserterIsOpened: settings2.__experimentalSetIsInserterOpened,
- insertionIndex: index2 === -1 ? blockCount : index2
- };
- },
- [clientId]
- );
- const showSearch = hasSearch && blockTypes.length > SEARCH_THRESHOLD;
- (0, import_element131.useEffect)(() => {
- if (setInserterIsOpened) {
- setInserterIsOpened(false);
- }
- }, [setInserterIsOpened]);
- const onBrowseAll = () => {
- setInserterIsOpened({
- filterValue,
- onSelect,
- rootClientId,
- insertionIndex
- });
- };
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
- "div",
- {
- className: clsx_default("block-editor-inserter__quick-inserter", {
- "has-search": showSearch,
- "has-expand": setInserterIsOpened
- }),
- children: [
- showSearch && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
- import_components60.SearchControl,
- {
- className: "block-editor-inserter__search",
- value: filterValue,
- onChange: (value) => {
- setFilterValue(value);
- },
- label: (0, import_i18n63.__)("Search"),
- placeholder: (0, import_i18n63.__)("Search")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("div", { className: "block-editor-inserter__quick-inserter-results", children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
- search_results_default,
- {
- filterValue,
- onSelect,
- rootClientId,
- clientId,
- isAppender,
- maxBlockPatterns: !!filterValue ? SHOWN_BLOCK_PATTERNS : 0,
- maxBlockTypes: SHOWN_BLOCK_TYPES2,
- isDraggable: false,
- selectBlockOnInsert,
- isQuick: true
- }
- ) }),
- setInserterIsOpened && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
- import_components60.Button,
- {
- __next40pxDefaultSize: true,
- className: "block-editor-inserter__quick-inserter-expand",
- onClick: onBrowseAll,
- "aria-label": (0, import_i18n63.__)(
- "Browse all. This will open the main inserter panel in the editor toolbar."
- ),
- children: (0, import_i18n63.__)("Browse all")
- }
- )
- ]
- }
- );
- }
+ // packages/block-editor/build-module/components/block-preview/index.mjs
+ var import_compose38 = __toESM(require_compose(), 1);
+ var import_data55 = __toESM(require_data(), 1);
+ var import_element111 = __toESM(require_element(), 1);
+ var import_deprecated7 = __toESM(require_deprecated(), 1);
- // packages/block-editor/build-module/components/inserter/get-appender-label.mjs
- var MAX_APPENDER_LABEL_LENGTH = 50;
- function getAppenderLabel(defaultBlock, defaultBlockType) {
- if (!defaultBlock || !defaultBlock.attributes || !defaultBlockType?.__experimentalLabel) {
- return null;
+ // packages/block-editor/build-module/components/provider/index.mjs
+ var import_data37 = __toESM(require_data(), 1);
+ var import_element102 = __toESM(require_element(), 1);
+ var import_components29 = __toESM(require_components(), 1);
+ var import_upload_media = __toESM(require_upload_media(), 1);
+
+ // packages/block-editor/build-module/components/provider/with-registry-provider.mjs
+ var import_element97 = __toESM(require_element(), 1);
+ var import_data34 = __toESM(require_data(), 1);
+ var import_compose21 = __toESM(require_compose(), 1);
+ var import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
+ function getSubRegistry(subRegistries, registry, useSubRegistry) {
+ if (!useSubRegistry) {
+ return registry;
}
- const result = defaultBlockType.__experimentalLabel(
- defaultBlock.attributes,
- { context: "appender" }
- );
- if (typeof result === "string" && result.length < MAX_APPENDER_LABEL_LENGTH && result.length > 0) {
- return result;
+ let subRegistry = subRegistries.get(registry);
+ if (!subRegistry) {
+ subRegistry = (0, import_data34.createRegistry)({}, registry);
+ subRegistry.registerStore(STORE_NAME, storeConfig);
+ subRegistries.set(registry, subRegistry);
}
- return null;
+ return subRegistry;
}
-
- // packages/block-editor/build-module/components/inserter/index.mjs
- var import_jsx_runtime257 = __toESM(require_jsx_runtime(), 1);
- var UnforwardedInserterToggle = ({
- onToggle,
- disabled: disabled2,
- isOpen,
- blockTitle,
- hasSingleBlockType,
- appenderLabel,
- toggleProps = {}
- }, ref) => {
- const {
- as: Wrapper = import_components61.Button,
- label: labelProp,
- onClick,
- ...rest
- } = toggleProps;
- let label = labelProp;
- if (!label && appenderLabel) {
- label = appenderLabel;
- } else if (!label && hasSingleBlockType) {
- label = (0, import_i18n64.sprintf)(
- // translators: %s: the name of the block when there is only one
- (0, import_i18n64._x)("Add %s", "directly add the only allowed block"),
- blockTitle.toLowerCase()
+ var withRegistryProvider = (0, import_compose21.createHigherOrderComponent)(
+ (WrappedComponent) => function WithRegistryProvider({ useSubRegistry = true, ...props }) {
+ const registry = (0, import_data34.useRegistry)();
+ const [subRegistries] = (0, import_element97.useState)(() => /* @__PURE__ */ new WeakMap());
+ const subRegistry = getSubRegistry(
+ subRegistries,
+ registry,
+ useSubRegistry
);
- } else if (!label) {
- label = (0, import_i18n64._x)("Add block", "Generic label for block inserter button");
- }
- function handleClick(event) {
- if (onToggle) {
- onToggle(event);
- }
- if (onClick) {
- onClick(event);
- }
- }
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
- Wrapper,
- {
- ref,
- __next40pxDefaultSize: toggleProps.as ? void 0 : true,
- icon: plus_default,
- label,
- tooltipPosition: "bottom",
- onClick: handleClick,
- className: "block-editor-inserter__toggle",
- "aria-haspopup": !hasSingleBlockType ? "true" : false,
- "aria-expanded": !hasSingleBlockType ? isOpen : false,
- isPressed: !hasSingleBlockType && isOpen,
- disabled: disabled2,
- ...rest
+ if (subRegistry === registry) {
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(WrappedComponent, { registry, ...props });
}
- );
- };
- var InserterToggle = (0, import_element132.forwardRef)(UnforwardedInserterToggle);
- var UnforwardedInserter = ({
- clientId,
- rootClientId,
- disabled: disabled2,
- isAppender,
- position,
- selectBlockOnInsert,
- shouldDirectInsert = true,
- showInserterHelpPanel,
- // This prop is experimental to give some time for the quick inserter to mature
- // Feel free to make them stable after a few releases.
- __experimentalIsQuick: isQuick,
- onSelectOrClose,
- onToggle,
- renderToggle: renderToggleProp,
- toggleProps
- }, ref) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(import_data34.RegistryProvider, { value: subRegistry, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(WrappedComponent, { registry: subRegistry, ...props }) });
+ },
+ "withRegistryProvider"
+ );
+ var with_registry_provider_default = withRegistryProvider;
+
+ // packages/block-editor/build-module/components/provider/use-block-sync.mjs
+ var import_element99 = __toESM(require_element(), 1);
+ var import_data35 = __toESM(require_data(), 1);
+ var import_blocks27 = __toESM(require_blocks(), 1);
+
+ // packages/block-editor/build-module/components/provider/selection-context.mjs
+ var import_element98 = __toESM(require_element(), 1);
+ var noop7 = () => {
+ };
+ var SelectionContext = (0, import_element98.createContext)({
+ getSelection: () => void 0,
+ onChangeSelection: noop7
+ });
+
+ // packages/block-editor/build-module/components/provider/use-block-sync.mjs
+ var noop8 = () => {
+ };
+ function cloneBlockWithMapping(block, mapping) {
+ const clonedBlock = (0, import_blocks27.cloneBlock)(block);
+ mapping.externalToInternal.set(block.clientId, clonedBlock.clientId);
+ mapping.internalToExternal.set(clonedBlock.clientId, block.clientId);
+ if (block.innerBlocks?.length) {
+ clonedBlock.innerBlocks = block.innerBlocks.map((innerBlock) => {
+ const clonedInner = cloneBlockWithMapping(innerBlock, mapping);
+ return clonedInner;
+ });
+ }
+ return clonedBlock;
+ }
+ function restoreExternalIds(blocks2, mapping) {
+ return blocks2.map((block) => {
+ const externalId = mapping.internalToExternal.get(block.clientId);
+ return {
+ ...block,
+ // Use external ID if available, otherwise keep internal ID (for new blocks)
+ clientId: externalId ?? block.clientId,
+ innerBlocks: restoreExternalIds(block.innerBlocks, mapping)
+ };
+ });
+ }
+ function restoreSelectionIds(selectionState, mapping) {
+ const { selectionStart, selectionEnd, initialPosition: initialPosition2 } = selectionState;
+ const restoreClientId = (sel) => {
+ if (!sel?.clientId) {
+ return sel;
+ }
+ const externalId = mapping.internalToExternal.get(sel.clientId);
+ return {
+ ...sel,
+ clientId: externalId ?? sel.clientId
+ };
+ };
+ return {
+ selectionStart: restoreClientId(selectionStart),
+ selectionEnd: restoreClientId(selectionEnd),
+ initialPosition: initialPosition2
+ };
+ }
+ function useBlockSync({
+ clientId = null,
+ value: controlledBlocks,
+ onChange = noop8,
+ onInput = noop8
+ }) {
+ const registry = (0, import_data35.useRegistry)();
+ const { getSelection, onChangeSelection } = (0, import_element99.useContext)(SelectionContext);
const {
- hasItems,
- hasSingleBlockType,
- blockTitle,
- allowedBlockType,
- blockToInsert,
- appenderLabel,
- targetRootClientId
- } = (0, import_data66.useSelect)(
- (select3) => {
- const {
- getBlockRootClientId: getBlockRootClientId22,
- hasInserterItems: hasInserterItems2,
- getAllowedBlocks: getAllowedBlocks2,
- getDirectInsertBlock: getDirectInsertBlock2,
- getBlockListSettings: getBlockListSettings2
- } = select3(store);
- const { getBlockVariations: getBlockVariations2, getBlockType: getBlockType210 } = select3(import_blocks39.store);
- const _targetRootClientId = rootClientId || getBlockRootClientId22(clientId) || void 0;
- const allowedBlocks = getAllowedBlocks2(_targetRootClientId);
- const directInsertBlock = shouldDirectInsert && getDirectInsertBlock2(_targetRootClientId);
- const { defaultBlock } = getBlockListSettings2(_targetRootClientId) ?? {};
- const _hasSingleBlockType = allowedBlocks?.length === 1 && getBlockVariations2(allowedBlocks[0].name, "inserter")?.length === 0;
- const _allowedBlockType = _hasSingleBlockType ? allowedBlocks[0] : null;
- let _blockToInsert = directInsertBlock || null;
- if (!_blockToInsert && _hasSingleBlockType && defaultBlock?.name === _allowedBlockType.name) {
- _blockToInsert = defaultBlock;
- }
- const defaultBlockType = directInsertBlock ? getBlockType210(directInsertBlock.name) : null;
- return {
- hasItems: hasInserterItems2(_targetRootClientId),
- hasSingleBlockType: _hasSingleBlockType,
- blockTitle: _allowedBlockType ? _allowedBlockType.title : "",
- allowedBlockType: _allowedBlockType,
- blockToInsert: _blockToInsert,
- appenderLabel: getAppenderLabel(
- directInsertBlock,
- defaultBlockType
- ),
- targetRootClientId: _targetRootClientId
+ resetBlocks: resetBlocks2,
+ resetSelection: resetSelection2,
+ replaceInnerBlocks: replaceInnerBlocks2,
+ setHasControlledInnerBlocks: setHasControlledInnerBlocks2,
+ __unstableMarkNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent2
+ } = registry.dispatch(store);
+ const { getBlockName: getBlockName2, getBlocks: getBlocks2, getSelectionStart: getSelectionStart2, getSelectionEnd: getSelectionEnd2 } = registry.select(store);
+ const pendingChangesRef = (0, import_element99.useRef)({ incoming: null, outgoing: [] });
+ const subscribedRef = (0, import_element99.useRef)(false);
+ const idMappingRef = (0, import_element99.useRef)({
+ externalToInternal: /* @__PURE__ */ new Map(),
+ internalToExternal: /* @__PURE__ */ new Map()
+ });
+ const appliedSelectionRef = (0, import_element99.useRef)(null);
+ const isRestoringSelectionRef = (0, import_element99.useRef)(false);
+ const restoreSelection = () => {
+ const selection2 = getSelection();
+ if (!selection2?.selectionStart?.clientId || selection2 === appliedSelectionRef.current) {
+ return;
+ }
+ const startClientId = selection2.selectionStart.clientId;
+ const isOurs = clientId ? idMappingRef.current.externalToInternal.has(startClientId) : !!getBlockName2(startClientId);
+ if (isOurs) {
+ appliedSelectionRef.current = selection2;
+ const convert = (sel) => {
+ if (!sel?.clientId || !clientId) {
+ return sel;
+ }
+ return {
+ ...sel,
+ clientId: idMappingRef.current.externalToInternal.get(
+ sel.clientId
+ ) ?? sel.clientId
+ };
};
- },
- [rootClientId, clientId, shouldDirectInsert]
- );
- const { insertBlock: insertBlock2 } = (0, import_data66.useDispatch)(store);
- const {
- getBlock: getBlock2,
- getBlockIndex: getBlockIndex2,
- getBlockOrder: getBlockOrder2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlockSelectionEnd: getBlockSelectionEnd2,
- getPreviousBlockClientId: getPreviousBlockClientId2
- } = (0, import_data66.useSelect)(store);
- const { getActiveBlockVariation, getBlockType: getBlockType30 } = (0, import_data66.useSelect)(import_blocks39.store);
- if (!hasItems && (isAppender || targetRootClientId || clientId)) {
- return null;
- }
- function insertOnlyAllowedBlock() {
- const blockName = blockToInsert?.name ?? allowedBlockType.name;
- function getAdjacentBlockAttributes(attributesToCopy) {
- if (!attributesToCopy?.length) {
- return {};
- }
- let adjacentAttributes;
- if (clientId) {
- const currentBlock = getBlock2(clientId);
- const previousBlock = getBlock2(
- getPreviousBlockClientId2(clientId)
+ isRestoringSelectionRef.current = true;
+ resetSelection2(
+ convert(selection2.selectionStart),
+ convert(selection2.selectionEnd),
+ selection2.initialPosition
+ );
+ isRestoringSelectionRef.current = false;
+ }
+ };
+ const setControlledBlocks = () => {
+ if (!controlledBlocks) {
+ return;
+ }
+ if (clientId) {
+ registry.batch(() => {
+ idMappingRef.current.externalToInternal.clear();
+ idMappingRef.current.internalToExternal.clear();
+ const storeBlocks = controlledBlocks.map(
+ (block) => cloneBlockWithMapping(block, idMappingRef.current)
);
- if (currentBlock?.name === previousBlock?.name) {
- adjacentAttributes = previousBlock?.attributes;
- }
- } else if (targetRootClientId) {
- const lastInnerBlock = getBlock2(targetRootClientId)?.innerBlocks?.at(-1);
- if (lastInnerBlock?.name === blockName) {
- adjacentAttributes = lastInnerBlock.attributes;
+ __unstableMarkNextChangeAsNotPersistent2({
+ history: "ignore"
+ });
+ setHasControlledInnerBlocks2(clientId, true);
+ if (subscribedRef.current) {
+ pendingChangesRef.current.incoming = storeBlocks;
}
+ __unstableMarkNextChangeAsNotPersistent2({
+ history: "ignore"
+ });
+ replaceInnerBlocks2(clientId, storeBlocks);
+ appliedSelectionRef.current = null;
+ });
+ } else {
+ if (subscribedRef.current) {
+ pendingChangesRef.current.incoming = controlledBlocks;
}
- if (!adjacentAttributes) {
- return {};
+ __unstableMarkNextChangeAsNotPersistent2({
+ history: "ignore"
+ });
+ resetBlocks2(controlledBlocks);
+ }
+ };
+ const unsetControlledBlocks = () => {
+ if (clientId) {
+ __unstableMarkNextChangeAsNotPersistent2({
+ history: "ignore"
+ });
+ setHasControlledInnerBlocks2(clientId, false);
+ __unstableMarkNextChangeAsNotPersistent2({
+ history: "ignore"
+ });
+ replaceInnerBlocks2(clientId, []);
+ } else {
+ __unstableMarkNextChangeAsNotPersistent2({
+ history: "ignore"
+ });
+ resetBlocks2([]);
+ }
+ };
+ const onInputRef = (0, import_element99.useRef)(onInput);
+ const onChangeRef = (0, import_element99.useRef)(onChange);
+ (0, import_element99.useEffect)(() => {
+ onInputRef.current = onInput;
+ onChangeRef.current = onChange;
+ }, [onInput, onChange]);
+ (0, import_element99.useEffect)(() => {
+ const isOutgoing = pendingChangesRef.current.outgoing.includes(controlledBlocks);
+ const storeMatch = getBlocks2(clientId) === controlledBlocks;
+ if (isOutgoing) {
+ if (pendingChangesRef.current.outgoing[pendingChangesRef.current.outgoing.length - 1] === controlledBlocks) {
+ pendingChangesRef.current.outgoing = [];
}
- return Object.fromEntries(
- attributesToCopy.filter((attr2) => attr2 in adjacentAttributes).map((attr2) => [attr2, adjacentAttributes[attr2]])
- );
+ } else if (!storeMatch) {
+ pendingChangesRef.current.outgoing = [];
+ setControlledBlocks();
+ restoreSelection();
}
- function getInsertionIndex() {
- if (clientId) {
- return getBlockIndex2(clientId);
+ }, [controlledBlocks, clientId]);
+ (0, import_element99.useEffect)(() => {
+ const {
+ getSelectedBlocksInitialCaretPosition: getSelectedBlocksInitialCaretPosition2,
+ isLastBlockChangePersistent: isLastBlockChangePersistent2,
+ __unstableGetLastBlockChangeHistoryMode: __unstableGetLastBlockChangeHistoryMode2,
+ __unstableIsLastBlockChangeIgnored: __unstableIsLastBlockChangeIgnored2,
+ areInnerBlocksControlled: areInnerBlocksControlled2,
+ getBlockParents: getBlockParents2
+ } = registry.select(store);
+ let blocks2 = getBlocks2(clientId);
+ let isPersistent = isLastBlockChangePersistent2();
+ let blockHistoryMode = __unstableGetLastBlockChangeHistoryMode2();
+ let previousAreBlocksDifferent = false;
+ let prevSelectionStart = getSelectionStart2();
+ let prevSelectionEnd = getSelectionEnd2();
+ subscribedRef.current = true;
+ const unsubscribe = registry.subscribe(() => {
+ if (clientId !== null && getBlockName2(clientId) === null) {
+ return;
}
- const end = getBlockSelectionEnd2();
- if (!isAppender && end && getBlockRootClientId2(end) === targetRootClientId) {
- return getBlockIndex2(end) + 1;
+ const newIsPersistent = isLastBlockChangePersistent2();
+ const newBlockHistoryMode = __unstableGetLastBlockChangeHistoryMode2();
+ const newBlocks = getBlocks2(clientId);
+ const areBlocksDifferent = newBlocks !== blocks2;
+ blocks2 = newBlocks;
+ if (areBlocksDifferent && (pendingChangesRef.current.incoming || __unstableIsLastBlockChangeIgnored2())) {
+ pendingChangesRef.current.incoming = null;
+ isPersistent = newIsPersistent;
+ blockHistoryMode = newBlockHistoryMode;
+ return;
}
- return getBlockOrder2(targetRootClientId).length;
- }
- const newAttributes = getAdjacentBlockAttributes(
- blockToInsert?.attributesToCopy
- );
- const newBlock = (0, import_blocks39.createBlock)(blockName, {
- ...blockToInsert?.attributes,
- ...newAttributes
- });
- insertBlock2(
- newBlock,
- getInsertionIndex(),
- targetRootClientId,
- selectBlockOnInsert
- );
- onSelectOrClose?.(newBlock);
- const blockTypeToInsert = getBlockType30(blockName);
- let blockLabelToInsert;
- if (blockTypeToInsert) {
- blockLabelToInsert = (0, import_blocks39.__experimentalGetBlockLabel)(
- blockTypeToInsert,
- newBlock.attributes
- );
- if (blockLabelToInsert === blockTypeToInsert.title) {
- blockLabelToInsert = getActiveBlockVariation(blockName, newBlock.attributes)?.title || blockLabelToInsert;
+ const didPersistenceChange = previousAreBlocksDifferent && !areBlocksDifferent && newIsPersistent && !isPersistent;
+ const blocksChanged = areBlocksDifferent || didPersistenceChange;
+ const newSelectionStart = getSelectionStart2();
+ const newSelectionEnd = getSelectionEnd2();
+ const selectionChanged = newSelectionStart !== prevSelectionStart || newSelectionEnd !== prevSelectionEnd;
+ if (selectionChanged) {
+ prevSelectionStart = newSelectionStart;
+ prevSelectionEnd = newSelectionEnd;
}
- }
- if (blockLabelToInsert) {
- const message2 = (0, import_i18n64.sprintf)(
- // translators: %s: the name of the block that has been added
- (0, import_i18n64.__)("%s block added"),
- blockLabelToInsert
- );
- (0, import_a11y10.speak)(message2);
- }
- }
- function renderToggle3({ onToggle: dropdownOnToggle, isOpen }) {
- const toggleArgs = {
- onToggle: dropdownOnToggle,
- isOpen,
- disabled: disabled2 || !hasItems,
- blockTitle,
- hasSingleBlockType,
- appenderLabel,
- toggleProps
- };
- if (renderToggleProp) {
- return renderToggleProp(toggleArgs);
- }
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(InserterToggle, { ref, ...toggleArgs });
- }
- function renderContent({ onClose }) {
- if (isQuick) {
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
- QuickInserter,
- {
- onSelect: (blocks2) => {
- const firstBlock = Array.isArray(blocks2) && blocks2?.length ? blocks2[0] : blocks2;
- if (onSelectOrClose && typeof onSelectOrClose === "function") {
- onSelectOrClose(firstBlock);
+ if (blocksChanged || selectionChanged) {
+ registry.batch(() => {
+ if (blocksChanged) {
+ isPersistent = newIsPersistent;
+ blockHistoryMode = newBlockHistoryMode;
+ const blocksForParent = clientId ? restoreExternalIds(blocks2, idMappingRef.current) : blocks2;
+ const selectionInfo = {
+ selectionStart: newSelectionStart,
+ selectionEnd: newSelectionEnd,
+ initialPosition: getSelectedBlocksInitialCaretPosition2()
+ };
+ const selectionForParent = clientId ? restoreSelectionIds(
+ selectionInfo,
+ idMappingRef.current
+ ) : selectionInfo;
+ pendingChangesRef.current.outgoing.push(
+ blocksForParent
+ );
+ const updateParent = isPersistent ? onChangeRef.current : onInputRef.current;
+ const updateOptions = {
+ selection: selectionForParent
+ };
+ if (blockHistoryMode === "ignore") {
+ updateOptions.undoIgnore = true;
}
- onClose();
- },
- rootClientId: targetRootClientId,
- clientId,
- isAppender,
- selectBlockOnInsert
- }
- );
- }
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
- menu_default,
- {
- onSelect: () => {
- onClose();
- },
- onClose,
- rootClientId: targetRootClientId,
- clientId,
- isAppender,
- showInserterHelpPanel
- }
- );
- }
- if (hasSingleBlockType || blockToInsert) {
- return renderToggle3({ onToggle: insertOnlyAllowedBlock });
- }
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
- import_components61.Dropdown,
- {
- className: "block-editor-inserter",
- contentClassName: clsx_default("block-editor-inserter__popover", {
- "is-quick": isQuick
- }),
- popoverProps: { position, shift: true },
- onToggle,
- expandOnMobile: true,
- headerTitle: (0, import_i18n64.__)("Add a block"),
- renderToggle: renderToggle3,
- renderContent,
- onClose: onSelectOrClose
- }
- );
- };
- var Inserter = (0, import_element132.forwardRef)(UnforwardedInserter);
- var inserter_default = Inserter;
-
- // packages/block-editor/build-module/components/default-block-appender/index.mjs
- var import_jsx_runtime258 = __toESM(require_jsx_runtime(), 1);
- var ZWNBSP = "\uFEFF";
- function DefaultBlockAppender({ rootClientId }) {
- const { showPrompt, isLocked, placeholder, isManualGrid } = (0, import_data67.useSelect)(
- (select3) => {
- const {
- getBlockCount: getBlockCount2,
- getSettings: getSettings7,
- getTemplateLock: getTemplateLock2,
- getBlockAttributes: getBlockAttributes3
- } = select3(store);
- const isEmpty4 = !getBlockCount2(rootClientId);
- const { bodyPlaceholder } = getSettings7();
- return {
- showPrompt: isEmpty4,
- isLocked: !!getTemplateLock2(rootClientId),
- placeholder: bodyPlaceholder,
- isManualGrid: getBlockAttributes3(rootClientId)?.layout?.isManualPlacement
- };
- },
- [rootClientId]
- );
- const { insertDefaultBlock: insertDefaultBlock2, startTyping: startTyping2 } = (0, import_data67.useDispatch)(store);
- if (isLocked || isManualGrid) {
- return null;
- }
- const value = (0, import_html_entities.decodeEntities)(placeholder) || (0, import_i18n65.__)("Type / to choose a block");
- const onAppend = () => {
- insertDefaultBlock2(void 0, rootClientId);
- startTyping2();
- };
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
- "div",
- {
- "data-root-client-id": rootClientId || "",
- className: clsx_default("block-editor-default-block-appender", {
- "has-visible-prompt": showPrompt
- }),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
- "p",
- {
- tabIndex: "0",
- role: "button",
- "aria-label": (0, import_i18n65.__)("Add default block"),
- className: "block-editor-default-block-appender__content",
- onKeyDown: (event) => {
- if (import_keycodes9.ENTER === event.keyCode || import_keycodes9.SPACE === event.keyCode) {
- onAppend();
- }
- },
- onClick: () => onAppend(),
- onFocus: () => {
- if (showPrompt) {
- onAppend();
- }
- },
- children: showPrompt ? value : ZWNBSP
+ updateParent(blocksForParent, updateOptions);
}
- ),
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
- inserter_default,
- {
- rootClientId,
- position: "bottom right",
- isAppender: true,
- __experimentalIsQuick: true
+ if (selectionChanged && !blocksChanged && newSelectionStart?.clientId && !isRestoringSelectionRef.current) {
+ const isOurs = clientId ? idMappingRef.current.internalToExternal.has(
+ newSelectionStart.clientId
+ ) : !getBlockParents2(
+ newSelectionStart.clientId
+ ).some(
+ (parentId) => areInnerBlocksControlled2(parentId)
+ );
+ if (isOurs) {
+ const selectionInfo = {
+ selectionStart: newSelectionStart,
+ selectionEnd: newSelectionEnd,
+ initialPosition: getSelectedBlocksInitialCaretPosition2()
+ };
+ onChangeSelection(
+ clientId ? restoreSelectionIds(
+ selectionInfo,
+ idMappingRef.current
+ ) : selectionInfo
+ );
+ }
}
- )
- ]
- }
- );
+ });
+ }
+ previousAreBlocksDifferent = areBlocksDifferent;
+ }, store);
+ return () => {
+ subscribedRef.current = false;
+ unsubscribe();
+ };
+ }, [registry, clientId]);
+ (0, import_element99.useEffect)(() => {
+ return () => {
+ unsetControlledBlocks();
+ };
+ }, []);
}
- // packages/block-editor/build-module/components/button-block-appender/index.mjs
- var import_components62 = __toESM(require_components(), 1);
- var import_element133 = __toESM(require_element(), 1);
- var import_i18n66 = __toESM(require_i18n(), 1);
- var import_deprecated8 = __toESM(require_deprecated(), 1);
- var import_jsx_runtime259 = __toESM(require_jsx_runtime(), 1);
- function ButtonBlockAppender({ rootClientId, className, onFocus, tabIndex, onSelect }, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
- inserter_default,
- {
- position: "bottom center",
- rootClientId,
- __experimentalIsQuick: true,
- onSelectOrClose: (...args) => {
- if (onSelect && typeof onSelect === "function") {
- onSelect(...args);
- }
+ // packages/block-editor/build-module/components/keyboard-shortcuts/index.mjs
+ var import_element100 = __toESM(require_element(), 1);
+ var import_data36 = __toESM(require_data(), 1);
+ var import_keyboard_shortcuts3 = __toESM(require_keyboard_shortcuts(), 1);
+ var import_i18n38 = __toESM(require_i18n(), 1);
+ function KeyboardShortcuts() {
+ return null;
+ }
+ function KeyboardShortcutsRegister() {
+ const { registerShortcut, unregisterShortcut } = (0, import_data36.useDispatch)(
+ import_keyboard_shortcuts3.store
+ );
+ const [blockVisibility2] = useSettings("blockVisibility.allowEditing");
+ (0, import_element100.useEffect)(() => {
+ registerShortcut({
+ name: "core/block-editor/copy",
+ category: "block",
+ description: (0, import_i18n38.__)("Copy the selected block(s)."),
+ keyCombination: {
+ modifier: "primary",
+ character: "c"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/cut",
+ category: "block",
+ description: (0, import_i18n38.__)("Cut the selected block(s)."),
+ keyCombination: {
+ modifier: "primary",
+ character: "x"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/paste",
+ category: "block",
+ description: (0, import_i18n38.__)("Paste the selected block(s)."),
+ keyCombination: {
+ modifier: "primary",
+ character: "v"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/duplicate",
+ category: "block",
+ description: (0, import_i18n38.__)("Duplicate the selected block(s)."),
+ keyCombination: {
+ modifier: "primaryShift",
+ character: "d"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/remove",
+ category: "block",
+ description: (0, import_i18n38.__)("Remove the selected block(s)."),
+ keyCombination: {
+ modifier: "access",
+ character: "z"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/paste-styles",
+ category: "block",
+ description: (0, import_i18n38.__)(
+ "Paste the copied style to the selected block(s)."
+ ),
+ keyCombination: {
+ modifier: "primaryAlt",
+ character: "v"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/insert-before",
+ category: "block",
+ description: (0, import_i18n38.__)(
+ "Insert a new block before the selected block(s)."
+ ),
+ keyCombination: {
+ modifier: "primaryAlt",
+ character: "t"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/insert-after",
+ category: "block",
+ description: (0, import_i18n38.__)(
+ "Insert a new block after the selected block(s)."
+ ),
+ keyCombination: {
+ modifier: "primaryAlt",
+ character: "y"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/delete-multi-selection",
+ category: "block",
+ description: (0, import_i18n38.__)("Delete selection."),
+ keyCombination: {
+ character: "del"
},
- renderToggle: ({
- onToggle,
- disabled: disabled2,
- isOpen,
- blockTitle,
- hasSingleBlockType,
- appenderLabel
- }) => {
- const isToggleButton = !hasSingleBlockType;
- let label;
- if (appenderLabel) {
- label = appenderLabel;
- } else if (hasSingleBlockType) {
- label = (0, import_i18n66.sprintf)(
- // translators: %s: the name of the block when there is only one
- (0, import_i18n66._x)("Add %s", "directly add the only allowed block"),
- blockTitle.toLowerCase()
- );
- } else {
- label = (0, import_i18n66._x)(
- "Add block",
- "Generic label for block inserter button"
- );
+ aliases: [
+ {
+ character: "backspace"
}
- return (
- // Disable reason: There shouldn't be a case where this button is disabled but not visually hidden.
- // eslint-disable-next-line @wordpress/components-no-unsafe-button-disabled
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
- import_components62.Button,
- {
- __next40pxDefaultSize: true,
- ref,
- onFocus,
- tabIndex,
- className: clsx_default(
- className,
- "block-editor-button-block-appender"
- ),
- onClick: onToggle,
- "aria-haspopup": isToggleButton ? "true" : void 0,
- "aria-expanded": isToggleButton ? isOpen : void 0,
- disabled: disabled2,
- label,
- showTooltip: true,
- children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(icon_default, { icon: plus_default })
- }
- )
- );
- },
- isAppender: true
+ ]
+ });
+ registerShortcut({
+ name: "core/block-editor/stop-editing-as-blocks",
+ category: "block",
+ description: (0, import_i18n38.__)("Finish editing a design."),
+ keyCombination: {
+ character: "escape"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/select-all",
+ category: "selection",
+ description: (0, import_i18n38.__)(
+ "Select all text when typing. Press again to select all blocks."
+ ),
+ keyCombination: {
+ modifier: "primary",
+ character: "a"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/unselect",
+ category: "selection",
+ description: (0, import_i18n38.__)("Clear selection."),
+ keyCombination: {
+ character: "escape"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/multi-text-selection",
+ category: "selection",
+ description: (0, import_i18n38.__)("Select text across multiple blocks."),
+ keyCombination: {
+ modifier: "shift",
+ // Spotted during my own research — invalid character?
+ character: "arrow"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/focus-toolbar",
+ category: "global",
+ description: (0, import_i18n38.__)("Navigate to the nearest toolbar."),
+ keyCombination: {
+ modifier: "alt",
+ character: "F10"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/move-up",
+ category: "block",
+ description: (0, import_i18n38.__)("Move the selected block(s) up."),
+ keyCombination: {
+ modifier: "secondary",
+ character: "t"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/move-down",
+ category: "block",
+ description: (0, import_i18n38.__)("Move the selected block(s) down."),
+ keyCombination: {
+ modifier: "secondary",
+ character: "y"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/collapse-list-view",
+ category: "list-view",
+ description: (0, import_i18n38.__)("Collapse all other items."),
+ keyCombination: {
+ modifier: "alt",
+ character: "l"
+ }
+ });
+ registerShortcut({
+ name: "core/block-editor/group",
+ category: "block",
+ description: (0, import_i18n38.__)(
+ "Create a group block from the selected multiple blocks."
+ ),
+ keyCombination: {
+ modifier: "primary",
+ character: "g"
+ }
+ });
+ if (blockVisibility2 === false) {
+ unregisterShortcut("core/block-editor/toggle-block-visibility");
+ } else {
+ registerShortcut({
+ name: "core/block-editor/toggle-block-visibility",
+ category: "block",
+ description: (0, import_i18n38.__)("Show or hide the selected block(s)."),
+ keyCombination: {
+ modifier: "primaryShift",
+ character: "h"
+ }
+ });
}
- );
+ registerShortcut({
+ name: "core/block-editor/rename",
+ category: "block",
+ description: (0, import_i18n38.__)("Rename the selected block."),
+ keyCombination: {
+ modifier: "primaryAlt",
+ character: "r"
+ }
+ });
+ }, [registerShortcut, unregisterShortcut, blockVisibility2]);
+ return null;
}
- var ButtonBlockerAppender = (0, import_element133.forwardRef)((props, ref) => {
- (0, import_deprecated8.default)(`wp.blockEditor.ButtonBlockerAppender`, {
- alternative: "wp.blockEditor.ButtonBlockAppender",
- since: "5.9"
- });
- return ButtonBlockAppender(props, ref);
- });
- var button_block_appender_default = (0, import_element133.forwardRef)(ButtonBlockAppender);
+ KeyboardShortcuts.Register = KeyboardShortcutsRegister;
+ var keyboard_shortcuts_default = KeyboardShortcuts;
- // packages/block-editor/build-module/components/block-list-appender/index.mjs
- var import_jsx_runtime260 = __toESM(require_jsx_runtime(), 1);
- function DefaultAppender({ rootClientId }) {
- const canInsertDefaultBlock = (0, import_data68.useSelect)(
- (select3) => select3(store).canInsertBlockType(
- (0, import_blocks40.getDefaultBlockName)(),
- rootClientId
- )
+ // packages/block-editor/build-module/components/provider/use-media-upload-settings.mjs
+ var import_element101 = __toESM(require_element(), 1);
+ function useMediaUploadSettings(settings2 = {}) {
+ return (0, import_element101.useMemo)(
+ () => ({
+ mediaUpload: settings2.mediaUpload,
+ mediaSideload: settings2.mediaSideload,
+ mediaFinalize: settings2.mediaFinalize,
+ mediaDelete: settings2.mediaDelete,
+ maxUploadFileSize: settings2.maxUploadFileSize,
+ allowedMimeTypes: settings2.allowedMimeTypes,
+ allImageSizes: settings2.allImageSizes,
+ bigImageSizeThreshold: settings2.bigImageSizeThreshold,
+ imageStripMeta: settings2.imageStripMeta,
+ imageMaxBitDepth: settings2.imageMaxBitDepth
+ }),
+ [settings2]
);
- if (canInsertDefaultBlock) {
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(DefaultBlockAppender, { rootClientId });
+ }
+ var use_media_upload_settings_default = useMediaUploadSettings;
+
+ // packages/block-editor/build-module/components/provider/index.mjs
+ var import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
+ var noop9 = () => {
+ };
+ var hasLoggedFallback = false;
+ var isClientSideMediaEnabledCache = null;
+ var isHeicCanvasEnabledCache = null;
+ var HEIC_MIME_TYPES = ["image/heic", "image/heif"];
+ function shouldEnableClientSideMediaProcessing() {
+ if (isClientSideMediaEnabledCache !== null) {
+ return isClientSideMediaEnabledCache;
}
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
- button_block_appender_default,
- {
- rootClientId,
- className: "block-list-appender__toggle"
+ if (!window.__clientSideMediaProcessing) {
+ isClientSideMediaEnabledCache = false;
+ return false;
+ }
+ if (typeof import_upload_media.detectClientSideMediaSupport !== "function") {
+ isClientSideMediaEnabledCache = false;
+ return false;
+ }
+ const detection = (0, import_upload_media.detectClientSideMediaSupport)();
+ if (!detection || !detection.supported) {
+ if (!hasLoggedFallback) {
+ console.info(
+ `Client-side media processing unavailable: ${detection.reason}. Using server-side processing.`
+ );
+ hasLoggedFallback = true;
}
- );
+ isClientSideMediaEnabledCache = false;
+ return false;
+ }
+ isClientSideMediaEnabledCache = true;
+ return true;
}
- function BlockListAppender({
- rootClientId,
- CustomAppender,
- className,
- tagName: TagName = "div"
- }) {
- const isDragOver = (0, import_data68.useSelect)(
- (select3) => {
- const {
- getBlockInsertionPoint: getBlockInsertionPoint2,
- isBlockInsertionPointVisible: isBlockInsertionPointVisible2,
- getBlockCount: getBlockCount2
- } = select3(store);
- const insertionPoint2 = getBlockInsertionPoint2();
- return isBlockInsertionPointVisible2() && rootClientId === insertionPoint2?.rootClientId && getBlockCount2(rootClientId) === 0;
- },
- [rootClientId]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
- TagName,
- {
- tabIndex: -1,
- className: clsx_default("block-list-appender wp-block", className, {
- "is-drag-over": isDragOver
- }),
- contentEditable: false,
- "data-block": true,
- children: CustomAppender ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(CustomAppender, {}) : /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(DefaultAppender, { rootClientId })
- }
- );
+ function shouldEnableHeicCanvasProcessing() {
+ if (isHeicCanvasEnabledCache !== null) {
+ return isHeicCanvasEnabledCache;
+ }
+ if (shouldEnableClientSideMediaProcessing()) {
+ isHeicCanvasEnabledCache = false;
+ return false;
+ }
+ if (!window.__clientSideMediaProcessing) {
+ isHeicCanvasEnabledCache = false;
+ return false;
+ }
+ if (typeof import_upload_media.isHeicCanvasSupported !== "function" || !(0, import_upload_media.isHeicCanvasSupported)()) {
+ isHeicCanvasEnabledCache = false;
+ return false;
+ }
+ isHeicCanvasEnabledCache = true;
+ return true;
}
-
- // packages/block-editor/build-module/components/block-list/use-in-between-inserter.mjs
- var import_compose53 = __toESM(require_compose(), 1);
- var import_data72 = __toESM(require_data(), 1);
- var import_element138 = __toESM(require_element(), 1);
- var import_i18n68 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/block-tools/insertion-point.mjs
- var import_data71 = __toESM(require_data(), 1);
- var import_element137 = __toESM(require_element(), 1);
- var import_components66 = __toESM(require_components(), 1);
- var import_compose52 = __toESM(require_compose(), 1);
-
- // packages/block-editor/build-module/components/block-popover/inbetween.mjs
- var import_data69 = __toESM(require_data(), 1);
- var import_element134 = __toESM(require_element(), 1);
- var import_components63 = __toESM(require_components(), 1);
- var import_i18n67 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/block-popover/use-popover-scroll.mjs
- var import_compose49 = __toESM(require_compose(), 1);
- var import_dom53 = __toESM(require_dom(), 1);
- var scrollContainerCache = /* @__PURE__ */ new WeakMap();
- function usePopoverScroll(contentRef) {
- const effect = (0, import_compose49.useRefEffect)(
- (node) => {
- function onWheel(event) {
- const { deltaX, deltaY, target } = event;
- const contentEl = contentRef.current;
- let scrollContainer = scrollContainerCache.get(contentEl);
- if (!scrollContainer) {
- scrollContainer = (0, import_dom53.getScrollContainer)(contentEl);
- scrollContainerCache.set(contentEl, scrollContainer);
- }
- const eventScrollContainer = (0, import_dom53.getScrollContainer)(target);
- if (!node.contains(eventScrollContainer)) {
- scrollContainer.scrollBy(deltaX, deltaY);
- }
- }
- const options = { passive: true };
- node.addEventListener("wheel", onWheel, options);
- return () => {
- node.removeEventListener("wheel", onWheel, options);
- };
+ function mediaUpload(registry, settings2, {
+ allowedTypes,
+ additionalData = {},
+ filesList,
+ onError = noop9,
+ onFileChange,
+ onSuccess,
+ onBatchSuccess
+ }) {
+ void registry.dispatch(import_upload_media.store).addItems({
+ files: Array.from(filesList),
+ onChange: onFileChange,
+ onSuccess: (attachments) => {
+ settings2?.[mediaUploadOnSuccessKey]?.(attachments);
+ onSuccess?.(attachments);
},
- [contentRef]
- );
- return contentRef ? effect : null;
+ onBatchSuccess,
+ onError: (error2) => onError(typeof error2 === "string" ? error2 : error2?.message ?? ""),
+ additionalData,
+ allowedTypes
+ });
}
- var use_popover_scroll_default = usePopoverScroll;
-
- // packages/block-editor/build-module/components/block-popover/inbetween.mjs
- var import_jsx_runtime261 = __toESM(require_jsx_runtime(), 1);
- var MAX_POPOVER_RECOMPUTE_COUNTER = Number.MAX_SAFE_INTEGER;
- function BlockPopoverInbetween({
- previousClientId,
- nextClientId,
- children,
- __unstablePopoverSlot,
- __unstableContentRef,
- operation = "insert",
- nearestSide = "right",
- ...props
+ function heicMediaUpload(registry, settings2, {
+ allowedTypes,
+ additionalData = {},
+ filesList,
+ onError = noop9,
+ onFileChange,
+ onSuccess,
+ onBatchSuccess
}) {
- const [popoverRecomputeCounter, forcePopoverRecompute] = (0, import_element134.useReducer)(
- // Module is there to make sure that the counter doesn't overflow.
- (s2) => (s2 + 1) % MAX_POPOVER_RECOMPUTE_COUNTER,
- 0
+ const files = Array.from(filesList);
+ const heicFiles = files.filter(
+ (file) => HEIC_MIME_TYPES.includes(file.type)
);
- const { orientation, rootClientId, isVisible } = (0, import_data69.useSelect)(
- (select3) => {
- const {
- getBlockListSettings: getBlockListSettings2,
- getBlockRootClientId: getBlockRootClientId2,
- isBlockVisible: isBlockVisible2
- } = select3(store);
- const _rootClientId = getBlockRootClientId2(
- previousClientId ?? nextClientId
- );
- return {
- orientation: getBlockListSettings2(_rootClientId)?.orientation || "vertical",
- rootClientId: _rootClientId,
- isVisible: isBlockVisible2(previousClientId) && isBlockVisible2(nextClientId)
- };
- },
- [previousClientId, nextClientId]
+ const otherFiles = files.filter(
+ (file) => !HEIC_MIME_TYPES.includes(file.type)
);
- const previousElement = useBlockElement(previousClientId);
- const nextElement = useBlockElement(nextClientId);
- const isVertical = orientation === "vertical";
- const popoverAnchor = (0, import_element134.useMemo)(() => {
- if (
- // popoverRecomputeCounter is by definition always equal or greater than 0.
- // This check is only there to satisfy the correctness of the
- // exhaustive-deps rule for the `useMemo` hook.
- popoverRecomputeCounter < 0 || !previousElement && !nextElement || !isVisible
- ) {
- return void 0;
+ const hasBothPaths = heicFiles.length > 0 && otherFiles.length > 0 && settings2?.mediaUpload;
+ let pathsRemaining = hasBothPaths ? 2 : 1;
+ const coordinatedBatchSuccess = hasBothPaths ? () => {
+ pathsRemaining--;
+ if (pathsRemaining <= 0) {
+ onBatchSuccess?.();
}
- const contextElement = operation === "group" ? nextElement || previousElement : previousElement || nextElement;
- return {
- contextElement,
- getBoundingClientRect() {
- const previousRect = previousElement ? previousElement.getBoundingClientRect() : null;
- const nextRect = nextElement ? nextElement.getBoundingClientRect() : null;
- let left = 0;
- let top = 0;
- let width = 0;
- let height = 0;
- if (operation === "group") {
- const targetRect = nextRect || previousRect;
- top = targetRect.top;
- width = 0;
- height = targetRect.bottom - targetRect.top;
- left = nearestSide === "left" ? targetRect.left - 2 : targetRect.right - 2;
- } else if (isVertical) {
- top = previousRect ? previousRect.bottom : nextRect.top;
- width = previousRect ? previousRect.width : nextRect.width;
- height = nextRect && previousRect ? nextRect.top - previousRect.bottom : 0;
- left = previousRect ? previousRect.left : nextRect.left;
- } else {
- top = previousRect ? previousRect.top : nextRect.top;
- height = previousRect ? previousRect.height : nextRect.height;
- if ((0, import_i18n67.isRTL)()) {
- left = nextRect ? nextRect.right : previousRect.left;
- width = previousRect && nextRect ? previousRect.left - nextRect.right : 0;
- } else {
- left = previousRect ? previousRect.right : nextRect.left;
- width = previousRect && nextRect ? nextRect.left - previousRect.right : 0;
- }
- width = Math.max(width, 0);
- }
- return new window.DOMRect(left, top, width, height);
- }
- };
- }, [
- previousElement,
- nextElement,
- popoverRecomputeCounter,
- isVertical,
- isVisible,
- operation,
- nearestSide
- ]);
- const popoverScrollRef = use_popover_scroll_default(__unstableContentRef);
- (0, import_element134.useLayoutEffect)(() => {
- if (!previousElement) {
- return;
- }
- const observer = new window.MutationObserver(forcePopoverRecompute);
- observer.observe(previousElement, { attributes: true });
- return () => {
- observer.disconnect();
- };
- }, [previousElement]);
- (0, import_element134.useLayoutEffect)(() => {
- if (!nextElement) {
- return;
- }
- const observer = new window.MutationObserver(forcePopoverRecompute);
- observer.observe(nextElement, { attributes: true });
- return () => {
- observer.disconnect();
- };
- }, [nextElement]);
- (0, import_element134.useLayoutEffect)(() => {
- if (!previousElement) {
- return;
- }
- previousElement.ownerDocument.defaultView.addEventListener(
- "resize",
- forcePopoverRecompute
+ } : onBatchSuccess;
+ if (heicFiles.length > 0) {
+ void registry.dispatch(import_upload_media.store).addItems({
+ files: heicFiles,
+ onChange: onFileChange,
+ onSuccess: (attachments) => {
+ settings2?.[mediaUploadOnSuccessKey]?.(attachments);
+ onSuccess?.(attachments);
+ },
+ onBatchSuccess: coordinatedBatchSuccess,
+ onError: (error2) => onError(
+ typeof error2 === "string" ? error2 : error2?.message ?? ""
+ ),
+ additionalData,
+ allowedTypes
+ });
+ }
+ if (otherFiles.length > 0 && settings2?.mediaUpload) {
+ settings2.mediaUpload({
+ allowedTypes,
+ additionalData,
+ filesList: otherFiles,
+ onError,
+ onFileChange,
+ onSuccess,
+ onBatchSuccess: coordinatedBatchSuccess
+ });
+ }
+ }
+ function BlockSyncEffect(props) {
+ useBlockSync(props);
+ return null;
+ }
+ var ExperimentalBlockEditorProvider = with_registry_provider_default(
+ (props) => {
+ const {
+ settings: _settings,
+ registry,
+ stripExperimentalSettings = false
+ } = props;
+ const mediaUploadSettings = use_media_upload_settings_default(_settings);
+ const isClientSideMediaEnabled = shouldEnableClientSideMediaProcessing();
+ const isHeicCanvasEnabled = shouldEnableHeicCanvasProcessing();
+ const useUploadMediaPipeline = isClientSideMediaEnabled || isHeicCanvasEnabled;
+ const isMediaUploadIntercepted = !!_settings?.mediaUpload?.__isMediaUploadInterceptor;
+ const settings2 = (0, import_element102.useMemo)(() => {
+ if (useUploadMediaPipeline && _settings?.mediaUpload && !isMediaUploadIntercepted) {
+ const uploadFn = isClientSideMediaEnabled ? mediaUpload : heicMediaUpload;
+ const interceptor = uploadFn.bind(null, registry, _settings);
+ interceptor.__isMediaUploadInterceptor = true;
+ return {
+ ..._settings,
+ mediaUpload: interceptor
+ };
+ }
+ return _settings;
+ }, [
+ _settings,
+ registry,
+ useUploadMediaPipeline,
+ isClientSideMediaEnabled,
+ isMediaUploadIntercepted
+ ]);
+ const { __experimentalUpdateSettings: __experimentalUpdateSettings2 } = unlock(
+ (0, import_data37.useDispatch)(store)
);
- return () => {
- previousElement.ownerDocument.defaultView?.removeEventListener(
- "resize",
- forcePopoverRecompute
+ (0, import_element102.useEffect)(() => {
+ __experimentalUpdateSettings2(
+ {
+ ...settings2,
+ __internalIsInitialized: true
+ },
+ {
+ stripExperimentalSettings,
+ reset: true
+ }
);
- };
- }, [previousElement]);
- if (!previousElement && !nextElement || !isVisible) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
- import_components63.Popover,
- {
- ref: popoverScrollRef,
- animate: false,
- anchor: popoverAnchor,
- focusOnMount: false,
- __unstableSlotName: __unstablePopoverSlot,
- inline: !__unstablePopoverSlot,
- ...props,
- className: clsx_default(
- "block-editor-block-popover",
- "block-editor-block-popover__inbetween",
- props.className
+ }, [
+ settings2,
+ stripExperimentalSettings,
+ __experimentalUpdateSettings2
+ ]);
+ const selectionRef = (0, import_element102.useRef)(props.selection);
+ selectionRef.current = props.selection;
+ const onChangeSelectionRef = (0, import_element102.useRef)(props.onChangeSelection ?? noop9);
+ onChangeSelectionRef.current = props.onChangeSelection ?? noop9;
+ const selectionContextValue = (0, import_element102.useMemo)(
+ () => ({
+ getSelection: () => selectionRef.current,
+ onChangeSelection: (...args) => onChangeSelectionRef.current(...args)
+ }),
+ []
+ );
+ const children = /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(import_components29.SlotFillProvider, { passthrough: true, children: [
+ !settings2?.isPreviewMode && /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(keyboard_shortcuts_default.Register, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(BlockRefsProvider, { children: props.children })
+ ] });
+ const content = /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(SelectionContext.Provider, { value: selectionContextValue, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
+ BlockSyncEffect,
+ {
+ clientId: props.clientId,
+ value: props.value,
+ onChange: props.onChange,
+ onInput: props.onInput
+ }
),
- resize: false,
- flip: false,
- placement: "overlay",
- variant: "unstyled",
- children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("div", { className: "block-editor-block-popover__inbetween-container", children })
- },
- nextClientId + "--" + rootClientId
- );
- }
- var inbetween_default = BlockPopoverInbetween;
+ children
+ ] });
+ if (useUploadMediaPipeline && !isMediaUploadIntercepted) {
+ return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
+ import_upload_media.MediaUploadProvider,
+ {
+ settings: mediaUploadSettings,
+ useSubRegistry: false,
+ children: content
+ }
+ );
+ }
+ return content;
+ }
+ );
+ var BlockEditorProvider = (props) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(ExperimentalBlockEditorProvider, { ...props, stripExperimentalSettings: true, children: props.children });
+ };
+ var provider_default = BlockEditorProvider;
- // packages/block-editor/build-module/components/block-popover/drop-zone.mjs
- var import_data70 = __toESM(require_data(), 1);
- var import_compose51 = __toESM(require_compose(), 1);
- var import_components65 = __toESM(require_components(), 1);
+ // packages/block-editor/build-module/components/block-preview/auto.mjs
+ var import_compose37 = __toESM(require_compose(), 1);
+ var import_data54 = __toESM(require_data(), 1);
+ var import_element109 = __toESM(require_element(), 1);
+ var import_components32 = __toESM(require_components(), 1);
- // packages/block-editor/build-module/components/block-popover/cover.mjs
- var import_element136 = __toESM(require_element(), 1);
+ // packages/block-editor/build-module/components/iframe/index.mjs
+ var import_react48 = __toESM(require_react(), 1);
+ var import_element107 = __toESM(require_element(), 1);
+ var import_i18n42 = __toESM(require_i18n(), 1);
+ var import_compose36 = __toESM(require_compose(), 1);
+ var import_components30 = __toESM(require_components(), 1);
+ var import_data52 = __toESM(require_data(), 1);
- // packages/block-editor/build-module/components/block-popover/index.mjs
- var import_compose50 = __toESM(require_compose(), 1);
- var import_components64 = __toESM(require_components(), 1);
- var import_element135 = __toESM(require_element(), 1);
- var import_jsx_runtime262 = __toESM(require_jsx_runtime(), 1);
- var MAX_POPOVER_RECOMPUTE_COUNTER2 = Number.MAX_SAFE_INTEGER;
- function BlockPopover({
- clientId,
- bottomClientId,
- children,
- __unstablePopoverSlot,
- __unstableContentRef,
- shift: shift4 = true,
- ...props
- }, ref) {
- const selectedElement = useBlockElement(clientId);
- const lastSelectedElement = useBlockElement(bottomClientId ?? clientId);
- const mergedRefs = (0, import_compose50.useMergeRefs)([
- ref,
- use_popover_scroll_default(__unstableContentRef)
- ]);
- const [
- popoverDimensionsRecomputeCounter,
- forceRecomputePopoverDimensions
- ] = (0, import_element135.useReducer)(
- // Module is there to make sure that the counter doesn't overflow.
- (s2) => (s2 + 1) % MAX_POPOVER_RECOMPUTE_COUNTER2,
- 0
- );
- (0, import_element135.useLayoutEffect)(() => {
- if (!selectedElement) {
- return;
- }
- let rafId2;
- const observer = new window.MutationObserver(() => {
- if (rafId2) {
- return;
- }
- rafId2 = window.requestAnimationFrame(() => {
- rafId2 = null;
- forceRecomputePopoverDimensions();
- });
- });
- observer.observe(selectedElement, { attributes: true });
- return () => {
- observer.disconnect();
- if (rafId2) {
- window.cancelAnimationFrame(rafId2);
- }
- };
- }, [selectedElement]);
- const popoverAnchor = (0, import_element135.useMemo)(() => {
- if (
- // popoverDimensionsRecomputeCounter is by definition always equal or greater
- // than 0. This check is only there to satisfy the correctness of the
- // exhaustive-deps rule for the `useMemo` hook.
- popoverDimensionsRecomputeCounter < 0 || !selectedElement || bottomClientId && !lastSelectedElement
- ) {
- return void 0;
- }
- return {
- getBoundingClientRect() {
- return lastSelectedElement ? rectUnion(
- getElementBounds(selectedElement),
- getElementBounds(lastSelectedElement)
- ) : getElementBounds(selectedElement);
- },
- contextElement: selectedElement
- };
- }, [
- popoverDimensionsRecomputeCounter,
- selectedElement,
- bottomClientId,
- lastSelectedElement
- ]);
- if (!selectedElement || bottomClientId && !lastSelectedElement) {
- return null;
+ // packages/block-editor/build-module/components/writing-flow/index.mjs
+ var import_data51 = __toESM(require_data(), 1);
+ var import_i18n41 = __toESM(require_i18n(), 1);
+ var import_compose34 = __toESM(require_compose(), 1);
+ var import_element105 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/writing-flow/use-editable-root.mjs
+ var import_data38 = __toESM(require_data(), 1);
+ var import_compose22 = __toESM(require_compose(), 1);
+
+ // packages/block-editor/build-module/components/writing-flow/utils.mjs
+ var import_i18n39 = __toESM(require_i18n(), 1);
+ var import_dom37 = __toESM(require_dom(), 1);
+ var import_blocks28 = __toESM(require_blocks(), 1);
+
+ // packages/block-editor/build-module/utils/pasting.mjs
+ var import_dom36 = __toESM(require_dom(), 1);
+ function removeWindowsFragments(html) {
+ const startStr = "<!--StartFragment-->";
+ const startIdx = html.indexOf(startStr);
+ if (startIdx > -1) {
+ html = html.substring(startIdx + startStr.length);
+ } else {
+ return html;
}
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
- import_components64.Popover,
- {
- ref: mergedRefs,
- animate: false,
- focusOnMount: false,
- anchor: popoverAnchor,
- __unstableSlotName: __unstablePopoverSlot,
- inline: !__unstablePopoverSlot,
- placement: "top-start",
- resize: false,
- flip: false,
- shift: shift4,
- ...props,
- className: clsx_default("block-editor-block-popover", props.className),
- variant: "unstyled",
- children
- }
- );
+ const endStr = "<!--EndFragment-->";
+ const endIdx = html.indexOf(endStr);
+ if (endIdx > -1) {
+ html = html.substring(0, endIdx);
+ }
+ return html;
}
- var PrivateBlockPopover = (0, import_element135.forwardRef)(BlockPopover);
- var PublicBlockPopover = ({ clientId, bottomClientId, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
- PrivateBlockPopover,
- {
- ...props,
- bottomClientId,
- clientId,
- __unstableContentRef: void 0,
- __unstablePopoverSlot: void 0,
- ref,
- children
+ function removeCharsetMetaTag(html) {
+ const metaTag = `<meta charset='utf-8'>`;
+ if (html.startsWith(metaTag)) {
+ return html.slice(metaTag.length);
}
- );
- var block_popover_default = (0, import_element135.forwardRef)(PublicBlockPopover);
-
- // packages/block-editor/build-module/components/block-popover/cover.mjs
- var import_jsx_runtime263 = __toESM(require_jsx_runtime(), 1);
- function BlockPopoverCover({
- clientId,
- bottomClientId,
- children,
- shift: shift4 = false,
- additionalStyles,
- ...props
- }, ref) {
- bottomClientId ??= clientId;
- const selectedElement = useBlockElement(clientId);
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
- PrivateBlockPopover,
- {
- ref,
- clientId,
- bottomClientId,
- shift: shift4,
- ...props,
- children: selectedElement && clientId === bottomClientId ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
- CoverContainer,
- {
- selectedElement,
- additionalStyles,
- children
- }
- ) : children
- }
- );
+ return html;
}
- function CoverContainer({
- selectedElement,
- additionalStyles = {},
- children
+ function getPasteEventData({
+ clipboardData
}) {
- const [width, setWidth] = (0, import_element136.useState)(selectedElement.offsetWidth);
- const [height, setHeight] = (0, import_element136.useState)(selectedElement.offsetHeight);
- (0, import_element136.useEffect)(() => {
- const observer = new window.ResizeObserver(() => {
- setWidth(selectedElement.offsetWidth);
- setHeight(selectedElement.offsetHeight);
- });
- observer.observe(selectedElement, { box: "border-box" });
- return () => observer.disconnect();
- }, [selectedElement]);
- const style = (0, import_element136.useMemo)(() => {
- return {
- position: "absolute",
- width,
- height,
- ...additionalStyles
- };
- }, [width, height, additionalStyles]);
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("div", { style, children });
+ let plainText = "";
+ let html = "";
+ try {
+ plainText = clipboardData.getData("text/plain");
+ html = clipboardData.getData("text/html");
+ } catch {
+ return;
+ }
+ html = removeWindowsFragments(html);
+ html = removeCharsetMetaTag(html);
+ const files = (0, import_dom36.getFilesFromDataTransfer)(clipboardData);
+ if (files.length && !shouldDismissPastedFiles(files, html)) {
+ return { files };
+ }
+ return { html, plainText, files: [] };
}
- var cover_default = (0, import_element136.forwardRef)(BlockPopoverCover);
-
- // packages/block-editor/build-module/components/block-popover/drop-zone.mjs
- var import_jsx_runtime264 = __toESM(require_jsx_runtime(), 1);
- var animateVariants = {
- hide: { opacity: 0, scaleY: 0.75 },
- show: { opacity: 1, scaleY: 1 },
- exit: { opacity: 0, scaleY: 0.9 }
- };
- function BlockDropZonePopover({
- __unstablePopoverSlot,
- __unstableContentRef
- }) {
- const { clientId } = (0, import_data70.useSelect)((select3) => {
- const { getBlockOrder: getBlockOrder2, getBlockInsertionPoint: getBlockInsertionPoint2 } = select3(store);
- const insertionPoint2 = getBlockInsertionPoint2();
- const order = getBlockOrder2(insertionPoint2.rootClientId);
- if (!order.length) {
- return {};
+ function shouldDismissPastedFiles(files, html) {
+ if (html && files?.length === 1 && files[0].type.indexOf("image/") === 0) {
+ const IMAGE_TAG = /<\s*img\b/gi;
+ if (html.match(IMAGE_TAG)?.length !== 1) {
+ return true;
}
- return {
- clientId: order[insertionPoint2.index]
- };
- }, []);
- const reducedMotion = (0, import_compose51.useReducedMotion)();
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
- cover_default,
- {
- clientId,
- __unstablePopoverSlot,
- __unstableContentRef,
- className: "block-editor-block-popover__drop-zone",
- children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
- import_components65.__unstableMotion.div,
- {
- "data-testid": "block-popover-drop-zone",
- initial: reducedMotion ? animateVariants.show : animateVariants.hide,
- animate: animateVariants.show,
- exit: reducedMotion ? animateVariants.show : animateVariants.exit,
- className: "block-editor-block-popover__drop-zone-foreground"
- }
- )
+ const IMG_WITH_LOCAL_SRC = /<\s*img\b[^>]*\bsrc="file:\/\//i;
+ if (html.match(IMG_WITH_LOCAL_SRC)) {
+ return true;
}
- );
+ }
+ return false;
}
- var drop_zone_default = BlockDropZonePopover;
- // packages/block-editor/build-module/components/block-tools/insertion-point.mjs
- var import_jsx_runtime265 = __toESM(require_jsx_runtime(), 1);
- var InsertionPointOpenRef = (0, import_element137.createContext)();
- InsertionPointOpenRef.displayName = "InsertionPointOpenRefContext";
- function InbetweenInsertionPointPopover({
- __unstablePopoverSlot,
- __unstableContentRef,
- operation = "insert",
- nearestSide = "right"
- }) {
- const { selectBlock: selectBlock2, hideInsertionPoint: hideInsertionPoint2 } = (0, import_data71.useDispatch)(store);
- const openRef = (0, import_element137.useContext)(InsertionPointOpenRef);
- const ref = (0, import_element137.useRef)();
- const {
- orientation,
- previousClientId,
- nextClientId,
- rootClientId,
- isInserterShown,
- isDistractionFree,
- isZoomOutMode
- } = (0, import_data71.useSelect)((select3) => {
- const {
- getBlockOrder: getBlockOrder2,
- getBlockListSettings: getBlockListSettings2,
- getBlockInsertionPoint: getBlockInsertionPoint2,
- isBlockBeingDragged: isBlockBeingDragged2,
- getPreviousBlockClientId: getPreviousBlockClientId2,
- getNextBlockClientId: getNextBlockClientId2,
- getSettings: getSettings7,
- isZoomOut: isZoomOut2
- } = unlock(select3(store));
- const insertionPoint2 = getBlockInsertionPoint2();
- const order = getBlockOrder2(insertionPoint2.rootClientId);
- if (!order.length) {
- return {};
- }
- let _previousClientId = order[insertionPoint2.index - 1];
- let _nextClientId = order[insertionPoint2.index];
- while (isBlockBeingDragged2(_previousClientId)) {
- _previousClientId = getPreviousBlockClientId2(_previousClientId);
- }
- while (isBlockBeingDragged2(_nextClientId)) {
- _nextClientId = getNextBlockClientId2(_nextClientId);
- }
- const settings2 = getSettings7();
- return {
- previousClientId: _previousClientId,
- nextClientId: _nextClientId,
- orientation: getBlockListSettings2(insertionPoint2.rootClientId)?.orientation || "vertical",
- rootClientId: insertionPoint2.rootClientId,
- isDistractionFree: settings2.isDistractionFree,
- isInserterShown: insertionPoint2?.__unstableWithInserter,
- isZoomOutMode: isZoomOut2()
- };
- }, []);
- const { getBlockEditingMode: getBlockEditingMode2 } = (0, import_data71.useSelect)(store);
- const disableMotion = (0, import_compose52.useReducedMotion)();
- function onClick(event) {
- if (event.target === ref.current && nextClientId && getBlockEditingMode2(nextClientId) !== "disabled") {
- selectBlock2(nextClientId, -1);
- }
- }
- function maybeHideInserterPoint(event) {
- if (event.target === ref.current && !openRef.current) {
- hideInsertionPoint2();
+ // packages/block-editor/build-module/components/writing-flow/utils.mjs
+ var requiresWrapperOnCopy = /* @__PURE__ */ Symbol("requiresWrapperOnCopy");
+ function setClipboardBlocks(event, blocks2, registry) {
+ let _blocks = blocks2;
+ const [firstBlock] = blocks2;
+ if (firstBlock) {
+ const firstBlockType = registry.select(import_blocks28.store).getBlockType(firstBlock.name);
+ if (firstBlockType[requiresWrapperOnCopy]) {
+ const { getBlockRootClientId: getBlockRootClientId2, getBlockName: getBlockName2, getBlockAttributes: getBlockAttributes3 } = registry.select(store);
+ const wrapperBlockClientId = getBlockRootClientId2(
+ firstBlock.clientId
+ );
+ const wrapperBlockName = getBlockName2(wrapperBlockClientId);
+ if (wrapperBlockName) {
+ _blocks = (0, import_blocks28.createBlock)(
+ wrapperBlockName,
+ getBlockAttributes3(wrapperBlockClientId),
+ _blocks
+ );
+ }
}
}
- function onFocus(event) {
- if (event.target !== ref.current) {
- openRef.current = true;
- }
- }
- const maybeResetOpenRef = (0, import_element137.useCallback)(
- (node) => {
- if (!node && openRef.current) {
- openRef.current = false;
+ const serialized = (0, import_blocks28.serialize)(_blocks);
+ event.clipboardData.setData("text/plain", toPlainText(serialized));
+ event.clipboardData.setData("text/html", serialized);
+ }
+ function getPasteBlocks(event, canUserUseUnfilteredHTML) {
+ const { plainText, html, files } = getPasteEventData(event);
+ let blocks2 = [];
+ if (files.length) {
+ const fromTransforms = (0, import_blocks28.getBlockTransforms)("from");
+ blocks2 = files.reduce((accumulator, file) => {
+ const transformation = (0, import_blocks28.findTransform)(
+ fromTransforms,
+ (transform) => transform.type === "files" && transform.isMatch([file])
+ );
+ if (transformation) {
+ accumulator.push(transformation.transform([file]));
}
- },
- [openRef]
- );
- const lineVariants = {
- // Initial position starts from the center and invisible.
- start: {
- opacity: 0,
- scale: 0
- },
- // The line expands to fill the container. If the inserter is visible it
- // is delayed so it appears orchestrated.
- rest: {
- opacity: 1,
- scale: 1,
- transition: { delay: isInserterShown ? 0.5 : 0, type: "tween" }
- },
- hover: {
- opacity: 1,
- scale: 1,
- transition: { delay: 0.5, type: "tween" }
- }
- };
- const inserterVariants = {
- start: {
- scale: disableMotion ? 1 : 0
- },
- rest: {
- scale: 1,
- transition: { delay: 0.4, type: "tween" }
- }
- };
- if (isDistractionFree) {
- return null;
- }
- if (isZoomOutMode && operation !== "insert") {
- return null;
+ return accumulator;
+ }, []).flat();
+ } else {
+ blocks2 = (0, import_blocks28.pasteHandler)({
+ HTML: html,
+ plainText,
+ mode: "BLOCKS",
+ canUserUseUnfilteredHTML
+ });
}
- const orientationClassname = orientation === "horizontal" || operation === "group" ? "is-horizontal" : "is-vertical";
- const className = clsx_default(
- "block-editor-block-list__insertion-point",
- orientationClassname
- );
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
- inbetween_default,
- {
- previousClientId,
- nextClientId,
- __unstablePopoverSlot,
- __unstableContentRef,
- operation,
- nearestSide,
- children: /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
- import_components66.__unstableMotion.div,
- {
- layout: !disableMotion,
- initial: disableMotion ? "rest" : "start",
- animate: "rest",
- whileHover: "hover",
- whileTap: "pressed",
- exit: "start",
- ref,
- tabIndex: -1,
- onClick,
- onFocus,
- className: clsx_default(className, {
- "is-with-inserter": isInserterShown
- }),
- onHoverEnd: maybeHideInserterPoint,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
- import_components66.__unstableMotion.div,
- {
- variants: lineVariants,
- className: "block-editor-block-list__insertion-point-indicator",
- "data-testid": "block-list-insertion-point-indicator"
- }
- ),
- isInserterShown && /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
- import_components66.__unstableMotion.div,
- {
- variants: inserterVariants,
- className: clsx_default(
- "block-editor-block-list__insertion-point-inserter"
- ),
- children: /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
- inserter_default,
- {
- ref: maybeResetOpenRef,
- position: "bottom center",
- clientId: nextClientId,
- rootClientId,
- __experimentalIsQuick: true,
- onToggle: (isOpen) => {
- openRef.current = isOpen;
- },
- onSelectOrClose: () => {
- openRef.current = false;
- }
- }
- )
- }
- )
- ]
- }
- )
- }
- );
+ return blocks2;
}
- function InsertionPoint(props) {
- const { insertionPoint: insertionPoint2, isVisible, isBlockListEmpty } = (0, import_data71.useSelect)(
- (select3) => {
- const {
- getBlockInsertionPoint: getBlockInsertionPoint2,
- isBlockInsertionPointVisible: isBlockInsertionPointVisible2,
- getBlockCount: getBlockCount2
- } = select3(store);
- const blockInsertionPoint = getBlockInsertionPoint2();
- return {
- insertionPoint: blockInsertionPoint,
- isVisible: isBlockInsertionPointVisible2(),
- isBlockListEmpty: getBlockCount2(blockInsertionPoint?.rootClientId) === 0
- };
- },
- []
- );
- if (!isVisible || // Don't render the insertion point if the block list is empty.
- // The insertion point will be represented by the appender instead.
- isBlockListEmpty) {
- return null;
+ function toPlainText(html) {
+ html = html.replace(/<br>/g, "\n");
+ const plainText = (0, import_dom37.__unstableStripHTML)(html).trim();
+ return plainText.replace(/\n\n+/g, "\n\n");
+ }
+ function setContentEditableWrapper(node, value, { focus: focus10 = true } = {}) {
+ if (node.contentEditable === String(value)) {
+ return value;
}
- return insertionPoint2.operation === "replace" ? /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
- drop_zone_default,
- {
- ...props
- },
- `${insertionPoint2.rootClientId}-${insertionPoint2.index}`
- ) : /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
- InbetweenInsertionPointPopover,
- {
- operation: insertionPoint2.operation,
- nearestSide: insertionPoint2.nearestSide,
- ...props
- }
- );
+ node.contentEditable = value;
+ if (!value) {
+ node.removeAttribute("role");
+ node.removeAttribute("aria-multiline");
+ node.removeAttribute("aria-label");
+ return false;
+ }
+ if (!node.isContentEditable) {
+ node.removeAttribute("contenteditable");
+ return false;
+ }
+ node.setAttribute("role", "textbox");
+ node.setAttribute("aria-multiline", "true");
+ node.setAttribute("aria-label", (0, import_i18n39.__)("Editor canvas"));
+ if (focus10) {
+ node.focus({ preventScroll: true });
+ }
+ return true;
}
- // packages/block-editor/build-module/components/block-list/use-in-between-inserter.mjs
- function useInBetweenInserter() {
- const openRef = (0, import_element138.useContext)(InsertionPointOpenRef);
- const isInBetweenInserterDisabled = (0, import_data72.useSelect)((select3) => {
- const settings2 = select3(store).getSettings();
- return settings2.isDistractionFree || settings2.isPreviewMode || unlock(select3(store)).isZoomOut();
+ // packages/block-editor/build-module/components/writing-flow/use-editable-root.mjs
+ function useEditableRoot() {
+ const registry = (0, import_data38.useRegistry)();
+ const enabled = (0, import_data38.useSelect)((select3) => {
+ const { getSelectedBlockClientId: getSelectedBlockClientId2, canHostEditableRoot: canHostEditableRoot2, isZoomOut: isZoomOut2 } = unlock(select3(store));
+ return !isZoomOut2() && canHostEditableRoot2(getSelectedBlockClientId2());
}, []);
- const {
- getBlockListSettings: getBlockListSettings2,
- getBlockIndex: getBlockIndex2,
- isMultiSelecting: isMultiSelecting3,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getSettings: getSettings7,
- getTemplateLock: getTemplateLock2,
- __unstableIsWithinBlockOverlay: __unstableIsWithinBlockOverlay2,
- getBlockEditingMode: getBlockEditingMode2,
- getBlockName: getBlockName2,
- getBlockAttributes: getBlockAttributes3,
- getParentSectionBlock: getParentSectionBlock2
- } = unlock((0, import_data72.useSelect)(store));
- const { showInsertionPoint: showInsertionPoint2, hideInsertionPoint: hideInsertionPoint2 } = (0, import_data72.useDispatch)(store);
- return (0, import_compose53.useRefEffect)(
+ return (0, import_compose22.useRefEffect)(
(node) => {
- if (isInBetweenInserterDisabled) {
+ if (!enabled) {
return;
}
- function onMouseMove(event) {
- if (openRef === void 0 || openRef.current) {
- return;
- }
- if (event.target.nodeType === event.target.TEXT_NODE) {
- return;
- }
- if (isMultiSelecting3()) {
- return;
- }
- if (!event.target.classList.contains(
- "block-editor-block-list__layout"
- )) {
- hideInsertionPoint2();
- return;
- }
- let rootClientId;
- if (!event.target.classList.contains("is-root-container")) {
- const blockElement = !!event.target.getAttribute(
- "data-block"
- ) ? event.target : event.target.closest("[data-block]");
- rootClientId = blockElement.getAttribute("data-block");
- }
- if (getTemplateLock2(rootClientId) || getBlockEditingMode2(rootClientId) === "disabled" || getBlockName2(rootClientId) === "core/block" || rootClientId && getBlockAttributes3(rootClientId).layout?.isManualPlacement) {
- return;
- }
- const blockListSettings2 = getBlockListSettings2(rootClientId);
- const orientation = blockListSettings2?.orientation || "vertical";
- const captureToolbars = !!blockListSettings2?.__experimentalCaptureToolbars;
- const offsetTop = event.clientY;
- const offsetLeft = event.clientX;
- const children = Array.from(event.target.children);
- let element = children.find((blockEl) => {
- const blockElRect = blockEl.getBoundingClientRect();
- return blockEl.classList.contains("wp-block") && orientation === "vertical" && blockElRect.top > offsetTop || blockEl.classList.contains("wp-block") && orientation === "horizontal" && ((0, import_i18n68.isRTL)() ? blockElRect.right < offsetLeft : blockElRect.left > offsetLeft);
- });
- if (!element) {
- hideInsertionPoint2();
+ const {
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ hasMultiSelection: hasMultiSelection2,
+ isMultiSelecting: isMultiSelecting3
+ } = registry.select(store);
+ if (!setContentEditableWrapper(node, true, { focus: false })) {
+ return;
+ }
+ const { activeElement: activeElement2 } = node.ownerDocument;
+ const selection2 = node.ownerDocument.defaultView.getSelection();
+ if (activeElement2 !== node && activeElement2?.isContentEditable && node.contains(activeElement2) && getBlockClientId(activeElement2) === getSelectedBlockClientId2() && selection2.anchorNode && activeElement2.contains(selection2.anchorNode)) {
+ node.focus();
+ }
+ return () => {
+ if (hasMultiSelection2() || isMultiSelecting3()) {
return;
}
- if (!element.id) {
- element = element.firstElementChild;
- if (!element) {
- hideInsertionPoint2();
- return;
+ setContentEditableWrapper(node, false);
+ if (node.ownerDocument.activeElement === node) {
+ const editable = getSelectionEditableElement(
+ node.ownerDocument.defaultView.getSelection(),
+ node
+ );
+ if (editable && getBlockClientId(editable) === getSelectedBlockClientId2()) {
+ editable.focus();
}
}
- const clientId = element.id.slice("block-".length);
- if (!clientId || __unstableIsWithinBlockOverlay2(clientId) || !!getParentSectionBlock2(clientId)) {
- return;
- }
- if (getSelectedBlockClientIds2().includes(clientId) && orientation === "vertical" && !captureToolbars && !getSettings7().hasFixedToolbar) {
- return;
- }
- const elementRect = element.getBoundingClientRect();
- if (orientation === "horizontal" && (event.clientY > elementRect.bottom || event.clientY < elementRect.top) || orientation === "vertical" && (event.clientX > elementRect.right || event.clientX < elementRect.left)) {
- hideInsertionPoint2();
- return;
- }
- const index2 = getBlockIndex2(clientId);
- if (index2 === 0) {
- hideInsertionPoint2();
- return;
- }
- showInsertionPoint2(rootClientId, index2, {
- __unstableWithInserter: true
- });
- }
- node.addEventListener("mousemove", onMouseMove);
- return () => {
- node.removeEventListener("mousemove", onMouseMove);
};
},
- [
- openRef,
- getBlockListSettings2,
- getBlockIndex2,
- isMultiSelecting3,
- showInsertionPoint2,
- hideInsertionPoint2,
- getSelectedBlockClientIds2,
- isInBetweenInserterDisabled
- ]
+ [enabled, registry]
);
}
- // packages/block-editor/build-module/components/block-selection-clearer/index.mjs
- var import_data73 = __toESM(require_data(), 1);
- var import_compose54 = __toESM(require_compose(), 1);
- var import_jsx_runtime266 = __toESM(require_jsx_runtime(), 1);
- function useBlockSelectionClearer() {
- const { getSettings: getSettings7, hasSelectedBlock: hasSelectedBlock2, hasMultiSelection: hasMultiSelection2 } = (0, import_data73.useSelect)(store);
- const { clearSelectedBlock: clearSelectedBlock2 } = (0, import_data73.useDispatch)(store);
- const { clearBlockSelection: isEnabled } = getSettings7();
- return (0, import_compose54.useRefEffect)(
+ // packages/block-editor/build-module/components/writing-flow/use-home-end.mjs
+ var import_keycodes3 = __toESM(require_keycodes(), 1);
+ var import_data39 = __toESM(require_data(), 1);
+ var import_compose23 = __toESM(require_compose(), 1);
+ function useHomeEnd() {
+ const { hasMultiSelection: hasMultiSelection2 } = (0, import_data39.useSelect)(store);
+ return (0, import_compose23.useRefEffect)((node) => {
+ function onKeyDown(event) {
+ if (event.defaultPrevented) {
+ return;
+ }
+ if (event.keyCode !== import_keycodes3.HOME && event.keyCode !== import_keycodes3.END) {
+ return;
+ }
+ if (event.metaKey || event.ctrlKey || event.altKey) {
+ return;
+ }
+ if (!event.target.isContentEditable || hasMultiSelection2()) {
+ return;
+ }
+ const selection2 = node.ownerDocument.defaultView.getSelection();
+ if (!getSelectionEditableElement(selection2, node)) {
+ return;
+ }
+ event.preventDefault();
+ selection2.modify(
+ event.shiftKey ? "extend" : "move",
+ event.keyCode === import_keycodes3.HOME ? "backward" : "forward",
+ "lineboundary"
+ );
+ }
+ node.addEventListener("keydown", onKeyDown);
+ return () => {
+ node.removeEventListener("keydown", onKeyDown);
+ };
+ }, []);
+ }
+
+ // packages/block-editor/build-module/components/writing-flow/use-multi-selection.mjs
+ var import_compose24 = __toESM(require_compose(), 1);
+ var import_data40 = __toESM(require_data(), 1);
+ function selector(select3) {
+ const {
+ isMultiSelecting: isMultiSelecting3,
+ getMultiSelectedBlockClientIds: getMultiSelectedBlockClientIds2,
+ hasMultiSelection: hasMultiSelection2,
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ getSelectedBlocksInitialCaretPosition: getSelectedBlocksInitialCaretPosition2,
+ __unstableIsFullySelected: __unstableIsFullySelected2
+ } = select3(store);
+ return {
+ isMultiSelecting: isMultiSelecting3(),
+ multiSelectedBlockClientIds: getMultiSelectedBlockClientIds2(),
+ hasMultiSelection: hasMultiSelection2(),
+ selectedBlockClientId: getSelectedBlockClientId2(),
+ initialPosition: getSelectedBlocksInitialCaretPosition2(),
+ isFullSelection: __unstableIsFullySelected2()
+ };
+ }
+ function useMultiSelection() {
+ const {
+ initialPosition: initialPosition2,
+ isMultiSelecting: isMultiSelecting3,
+ multiSelectedBlockClientIds,
+ hasMultiSelection: hasMultiSelection2,
+ selectedBlockClientId,
+ isFullSelection
+ } = (0, import_data40.useSelect)(selector, []);
+ return (0, import_compose24.useRefEffect)(
(node) => {
- if (!isEnabled) {
+ const { ownerDocument: ownerDocument2 } = node;
+ const { defaultView } = ownerDocument2;
+ if (initialPosition2 === void 0 || initialPosition2 === null) {
return;
}
- function onMouseDown(event) {
- if (!hasSelectedBlock2() && !hasMultiSelection2()) {
- return;
- }
- if (event.target !== node) {
- return;
- }
- clearSelectedBlock2();
+ if (!hasMultiSelection2 || isMultiSelecting3) {
+ return;
}
- node.addEventListener("mousedown", onMouseDown);
- return () => {
- node.removeEventListener("mousedown", onMouseDown);
- };
+ const { length } = multiSelectedBlockClientIds;
+ if (length < 2) {
+ return;
+ }
+ if (!isFullSelection) {
+ return;
+ }
+ setContentEditableWrapper(node, true);
+ defaultView.getSelection().removeAllRanges();
},
- [hasSelectedBlock2, hasMultiSelection2, clearSelectedBlock2, isEnabled]
+ [
+ hasMultiSelection2,
+ isMultiSelecting3,
+ multiSelectedBlockClientIds,
+ selectedBlockClientId,
+ initialPosition2,
+ isFullSelection
+ ]
);
}
- function BlockSelectionClearer(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)("div", { ref: useBlockSelectionClearer(), ...props });
- }
-
- // packages/block-editor/build-module/components/inner-blocks/index.mjs
- var import_compose56 = __toESM(require_compose(), 1);
- var import_element143 = __toESM(require_element(), 1);
- var import_data79 = __toESM(require_data(), 1);
- var import_blocks45 = __toESM(require_blocks(), 1);
- // packages/block-editor/build-module/components/inner-blocks/button-block-appender.mjs
- var import_jsx_runtime267 = __toESM(require_jsx_runtime(), 1);
- function ButtonBlockAppender2({
- showSeparator,
- isFloating,
- onAddBlock,
- isToggle
- }) {
- const { clientId } = useBlockEditContext();
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
- button_block_appender_default,
+ // packages/block-editor/build-module/components/writing-flow/use-tab-nav.mjs
+ var import_dom40 = __toESM(require_dom(), 1);
+ var import_keycodes4 = __toESM(require_keycodes(), 1);
+ var import_data41 = __toESM(require_data(), 1);
+ var import_compose25 = __toESM(require_compose(), 1);
+ var import_element103 = __toESM(require_element(), 1);
+ var import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
+ function useTabNav() {
+ const containerRef = (
+ /** @type {typeof useRef<HTMLElement>} */
+ (0, import_element103.useRef)()
+ );
+ const focusCaptureBeforeRef = (0, import_element103.useRef)();
+ const focusCaptureAfterRef = (0, import_element103.useRef)();
+ const {
+ hasMultiSelection: hasMultiSelection2,
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ getBlockCount: getBlockCount2,
+ getBlockOrder: getBlockOrder2,
+ getLastFocus: getLastFocus2,
+ getSectionRootClientId: getSectionRootClientId2,
+ isZoomOut: isZoomOut2
+ } = unlock((0, import_data41.useSelect)(store));
+ const { setLastFocus: setLastFocus2 } = unlock((0, import_data41.useDispatch)(store));
+ const noCaptureRef = (0, import_element103.useRef)();
+ function onFocusCapture(event) {
+ const canvasElement = containerRef.current.ownerDocument === event.target.ownerDocument ? containerRef.current : containerRef.current.ownerDocument.defaultView.frameElement;
+ if (noCaptureRef.current) {
+ noCaptureRef.current = null;
+ } else if (hasMultiSelection2()) {
+ containerRef.current.focus();
+ } else if (getSelectedBlockClientId2()) {
+ if (getLastFocus2()?.current) {
+ getLastFocus2().current.focus();
+ } else {
+ containerRef.current.querySelector(
+ `[data-block="${getSelectedBlockClientId2()}"]`
+ ).focus();
+ }
+ } else if (isZoomOut2()) {
+ const sectionRootClientId = getSectionRootClientId2();
+ const sectionBlocks = getBlockOrder2(sectionRootClientId);
+ if (sectionBlocks.length) {
+ containerRef.current.querySelector(`[data-block="${sectionBlocks[0]}"]`).focus();
+ } else if (sectionRootClientId) {
+ containerRef.current.querySelector(`[data-block="${sectionRootClientId}"]`).focus();
+ } else {
+ canvasElement.focus();
+ }
+ } else {
+ const isBefore2 = (
+ // eslint-disable-next-line no-bitwise
+ event.target.compareDocumentPosition(canvasElement) & event.target.DOCUMENT_POSITION_FOLLOWING
+ );
+ const tabbables = import_dom40.focus.tabbable.find(containerRef.current);
+ if (tabbables.length) {
+ const next = isBefore2 ? tabbables[0] : tabbables[tabbables.length - 1];
+ next.focus();
+ }
+ }
+ }
+ const before = /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
+ "div",
{
- className: clsx_default({
- "block-list-appender__toggle": isToggle
- }),
- rootClientId: clientId,
- showSeparator,
- isFloating,
- onAddBlock
+ ref: focusCaptureBeforeRef,
+ tabIndex: "0",
+ onFocus: onFocusCapture
}
);
- }
-
- // packages/block-editor/build-module/components/inner-blocks/default-block-appender.mjs
- var import_jsx_runtime268 = __toESM(require_jsx_runtime(), 1);
- function DefaultBlockAppender2() {
- const { clientId } = useBlockEditContext();
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(DefaultBlockAppender, { rootClientId: clientId });
- }
-
- // packages/block-editor/build-module/components/inner-blocks/use-nested-settings-update.mjs
- var import_element139 = __toESM(require_element(), 1);
- var import_data74 = __toESM(require_data(), 1);
- var import_deprecated9 = __toESM(require_deprecated(), 1);
- var import_is_shallow_equal = __toESM(require_is_shallow_equal(), 1);
- var pendingSettingsUpdates = /* @__PURE__ */ new WeakMap();
- function createShallowMemo() {
- let value;
- return (newValue) => {
- if (value === void 0 || !(0, import_is_shallow_equal.isShallowEqual)(value, newValue)) {
- value = newValue;
+ const after = /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
+ "div",
+ {
+ ref: focusCaptureAfterRef,
+ tabIndex: "0",
+ onFocus: onFocusCapture
}
- return value;
- };
- }
- function useShallowMemo(value) {
- const [memo15] = (0, import_element139.useState)(createShallowMemo);
- return memo15(value);
- }
- function useNestedSettingsUpdate(clientId, parentLock, allowedBlocks, prioritizedInserterBlocks, defaultBlock, directInsert, __experimentalDefaultBlock, __experimentalDirectInsert, templateLock, captureToolbars, orientation, layout) {
- const registry = (0, import_data74.useRegistry)();
- const _allowedBlocks = useShallowMemo(allowedBlocks);
- const _prioritizedInserterBlocks = useShallowMemo(
- prioritizedInserterBlocks
);
- const _templateLock = templateLock === void 0 || parentLock === "contentOnly" ? parentLock : templateLock;
- (0, import_element139.useLayoutEffect)(() => {
- const newSettings = {
- allowedBlocks: _allowedBlocks,
- prioritizedInserterBlocks: _prioritizedInserterBlocks,
- templateLock: _templateLock
- };
- if (captureToolbars !== void 0) {
- newSettings.__experimentalCaptureToolbars = captureToolbars;
- }
- if (orientation !== void 0) {
- newSettings.orientation = orientation;
- } else {
- const layoutType = getLayoutType(layout?.type);
- newSettings.orientation = layoutType.getOrientation(layout);
- }
- if (__experimentalDefaultBlock !== void 0) {
- (0, import_deprecated9.default)("__experimentalDefaultBlock", {
- alternative: "defaultBlock",
- since: "6.3",
- version: "6.4"
- });
- newSettings.defaultBlock = __experimentalDefaultBlock;
- }
- if (defaultBlock !== void 0) {
- newSettings.defaultBlock = defaultBlock;
- }
- if (__experimentalDirectInsert !== void 0) {
- (0, import_deprecated9.default)("__experimentalDirectInsert", {
- alternative: "directInsert",
- since: "6.3",
- version: "6.4"
- });
- newSettings.directInsert = __experimentalDirectInsert;
- }
- if (directInsert !== void 0) {
- newSettings.directInsert = directInsert;
- }
- if (newSettings.directInsert !== void 0 && typeof newSettings.directInsert !== "boolean") {
- (0, import_deprecated9.default)("Using `Function` as a `directInsert` argument", {
- alternative: "`boolean` values",
- since: "6.5"
- });
- }
- if (!pendingSettingsUpdates.get(registry)) {
- pendingSettingsUpdates.set(registry, {});
- }
- pendingSettingsUpdates.get(registry)[clientId] = newSettings;
- window.queueMicrotask(() => {
- const settings2 = pendingSettingsUpdates.get(registry);
- if (Object.keys(settings2).length) {
- const { updateBlockListSettings: updateBlockListSettings2 } = registry.dispatch(store);
- updateBlockListSettings2(settings2);
- pendingSettingsUpdates.set(registry, {});
- }
- });
- }, [
- clientId,
- _allowedBlocks,
- _prioritizedInserterBlocks,
- _templateLock,
- defaultBlock,
- directInsert,
- __experimentalDefaultBlock,
- __experimentalDirectInsert,
- captureToolbars,
- orientation,
- layout,
- registry
- ]);
- }
-
- // packages/block-editor/build-module/components/inner-blocks/use-inner-block-template-sync.mjs
- var import_es64 = __toESM(require_es6(), 1);
- var import_element140 = __toESM(require_element(), 1);
- var import_data75 = __toESM(require_data(), 1);
- var import_blocks41 = __toESM(require_blocks(), 1);
- function useInnerBlockTemplateSync(clientId, template2, templateLock, templateInsertUpdatesSelection) {
- const registry = (0, import_data75.useRegistry)();
- const existingTemplateRef = (0, import_element140.useRef)(null);
- (0, import_element140.useLayoutEffect)(() => {
- let isCancelled = false;
- const {
- getBlocks: getBlocks2,
- getSelectedBlocksInitialCaretPosition: getSelectedBlocksInitialCaretPosition2,
- isBlockSelected: isBlockSelected2
- } = registry.select(store);
- const { replaceInnerBlocks: replaceInnerBlocks2, __unstableMarkNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent2 } = registry.dispatch(store);
- window.queueMicrotask(() => {
- if (isCancelled) {
+ const ref = (0, import_compose25.useRefEffect)((node) => {
+ function onKeyDown(event) {
+ if (event.defaultPrevented) {
return;
}
- const currentInnerBlocks = getBlocks2(clientId);
- const shouldApplyTemplate = currentInnerBlocks.length === 0 || templateLock === "all" || templateLock === "contentOnly";
- const hasTemplateChanged = !(0, import_es64.default)(
- template2,
- existingTemplateRef.current
- );
- if (!shouldApplyTemplate || !hasTemplateChanged) {
+ if (event.keyCode !== import_keycodes4.TAB) {
return;
}
- existingTemplateRef.current = template2;
- const nextBlocks = (0, import_blocks41.synchronizeBlocksWithTemplate)(
- currentInnerBlocks,
- template2
- );
- if (!(0, import_es64.default)(nextBlocks, currentInnerBlocks)) {
- __unstableMarkNextChangeAsNotPersistent2({
- history: "ignore"
- });
- replaceInnerBlocks2(
- clientId,
- nextBlocks,
- currentInnerBlocks.length === 0 && templateInsertUpdatesSelection && nextBlocks.length !== 0 && isBlockSelected2(clientId),
- // This ensures the "initialPosition" doesn't change when applying the template
- // If we're supposed to focus the block, we'll focus the first inner block
- // otherwise, we won't apply any auto-focus.
- // This ensures for instance that the focus stays in the inserter when inserting the "buttons" block.
- getSelectedBlocksInitialCaretPosition2()
- );
+ if (
+ // Bails in case the focus capture elements aren’t present. They
+ // may be omitted to avoid silent tab stops in preview mode.
+ // See: https://github.com/WordPress/gutenberg/pull/59317
+ !focusCaptureAfterRef.current || !focusCaptureBeforeRef.current
+ ) {
+ return;
}
- });
- return () => {
- isCancelled = true;
- };
- }, [
- template2,
- templateLock,
- clientId,
- registry,
- templateInsertUpdatesSelection
- ]);
- }
-
- // packages/block-editor/build-module/components/inner-blocks/use-block-context.mjs
- var import_blocks42 = __toESM(require_blocks(), 1);
- var import_data76 = __toESM(require_data(), 1);
- function useBlockContext(clientId) {
- return (0, import_data76.useSelect)(
- (select3) => {
- const block = select3(store).getBlock(clientId);
- if (!block) {
- return void 0;
+ const { target, shiftKey: isShift } = event;
+ const direction = isShift ? "findPrevious" : "findNext";
+ const nextTabbable = import_dom40.focus.tabbable[direction](target);
+ const currentBlock = target.closest("[data-block]");
+ const isElementPartOfSelectedBlock = currentBlock && nextTabbable && (isInSameBlock(currentBlock, nextTabbable) || isInsideRootBlock(currentBlock, nextTabbable));
+ if ((0, import_dom40.isFormElement)(nextTabbable) && isElementPartOfSelectedBlock) {
+ return;
}
- const blockType = select3(import_blocks42.store).getBlockType(block.name);
- if (!blockType) {
- return void 0;
+ const next = isShift ? focusCaptureBeforeRef : focusCaptureAfterRef;
+ noCaptureRef.current = true;
+ next.current.focus({ preventScroll: true });
+ }
+ function onFocusOut(event) {
+ if (!node.contains(event.relatedTarget)) {
+ setLastFocus2({ current: event.target });
}
- if (Object.keys(blockType.providesContext).length === 0) {
- return void 0;
+ const { ownerDocument: ownerDocument22 } = node;
+ if (!event.relatedTarget && event.target.hasAttribute("data-block") && ownerDocument22.activeElement === ownerDocument22.body && getBlockCount2() === 0) {
+ node.focus();
}
- return Object.fromEntries(
- Object.entries(blockType.providesContext).map(
- ([contextName, attributeName]) => [
- contextName,
- block.attributes[attributeName]
- ]
- )
- );
- },
- [clientId]
- );
- }
-
- // packages/block-editor/build-module/components/use-block-drop-zone/index.mjs
- var import_data78 = __toESM(require_data(), 1);
- var import_element142 = __toESM(require_element(), 1);
- var import_compose55 = __toESM(require_compose(), 1);
- var import_i18n69 = __toESM(require_i18n(), 1);
- var import_blocks44 = __toESM(require_blocks(), 1);
-
- // packages/block-editor/build-module/components/use-on-block-drop/index.mjs
- var import_element141 = __toESM(require_element(), 1);
- var import_blocks43 = __toESM(require_blocks(), 1);
- var import_data77 = __toESM(require_data(), 1);
- var import_dom55 = __toESM(require_dom(), 1);
- function parseDropEvent(event) {
- let result = {
- srcRootClientId: null,
- srcClientIds: null,
- srcIndex: null,
- type: null,
- blocks: null
- };
- if (!event.dataTransfer) {
- return result;
- }
- try {
- result = Object.assign(
- result,
- JSON.parse(event.dataTransfer.getData("wp-blocks"))
- );
- } catch {
- return result;
- }
- return result;
- }
- function onBlockDrop(targetRootClientId, targetBlockIndex, getBlockIndex2, getClientIdsOfDescendants2, moveBlocks, insertOrReplaceBlocks, clearSelectedBlock2, operation, getBlock2) {
- return (event) => {
- const {
- srcRootClientId: sourceRootClientId,
- srcClientIds: sourceClientIds,
- type: dropType,
- blocks: blocks2
- } = parseDropEvent(event);
- if (dropType === "inserter") {
- clearSelectedBlock2();
- const blocksToInsert = blocks2.map(
- (block) => (0, import_blocks43.cloneBlock)(block)
- );
- insertOrReplaceBlocks(blocksToInsert, true, null);
}
- if (dropType === "block") {
- const sourceBlockIndex = getBlockIndex2(sourceClientIds[0]);
- if (sourceRootClientId === targetRootClientId && sourceBlockIndex === targetBlockIndex) {
+ function preventScrollOnTab(event) {
+ if (event.keyCode !== import_keycodes4.TAB) {
return;
}
- if (sourceClientIds.includes(targetRootClientId) || getClientIdsOfDescendants2(sourceClientIds).some(
- (id) => id === targetRootClientId
- )) {
+ if (event.target?.getAttribute("role") === "region") {
return;
}
- if (operation === "group") {
- const blocksToInsert = sourceClientIds.map(
- (clientId) => getBlock2(clientId)
- );
- insertOrReplaceBlocks(
- blocksToInsert,
- true,
- null,
- sourceClientIds
- );
+ if (containerRef.current === event.target) {
return;
}
- const isAtSameLevel = sourceRootClientId === targetRootClientId;
- const draggedBlockCount = sourceClientIds.length;
- const insertIndex = isAtSameLevel && sourceBlockIndex < targetBlockIndex ? targetBlockIndex - draggedBlockCount : targetBlockIndex;
- moveBlocks(sourceClientIds, sourceRootClientId, insertIndex);
+ const isShift = event.shiftKey;
+ const direction = isShift ? "findPrevious" : "findNext";
+ const target = import_dom40.focus.tabbable[direction](event.target);
+ if (target === focusCaptureBeforeRef.current || target === focusCaptureAfterRef.current) {
+ event.preventDefault();
+ target.focus({ preventScroll: true });
+ }
}
- };
+ const { ownerDocument: ownerDocument2 } = node;
+ const { defaultView } = ownerDocument2;
+ defaultView.addEventListener("keydown", preventScrollOnTab);
+ node.addEventListener("keydown", onKeyDown);
+ node.addEventListener("focusout", onFocusOut);
+ return () => {
+ defaultView.removeEventListener("keydown", preventScrollOnTab);
+ node.removeEventListener("keydown", onKeyDown);
+ node.removeEventListener("focusout", onFocusOut);
+ };
+ }, []);
+ const mergedRefs = (0, import_compose25.useMergeRefs)([containerRef, ref]);
+ return [before, mergedRefs, after];
}
- function onFilesDrop(targetRootClientId, getSettings7, updateBlockAttributes2, canInsertBlockType2, insertOrReplaceBlocks) {
- return (files) => {
- if (!getSettings7().mediaUpload) {
+
+ // packages/block-editor/build-module/components/writing-flow/use-arrow-nav.mjs
+ var import_dom42 = __toESM(require_dom(), 1);
+ var import_keycodes5 = __toESM(require_keycodes(), 1);
+ var import_data42 = __toESM(require_data(), 1);
+ var import_compose26 = __toESM(require_compose(), 1);
+ var import_blocks29 = __toESM(require_blocks(), 1);
+ function isNavigationCandidate(element, keyCode, hasModifier) {
+ const isVertical = keyCode === import_keycodes5.UP || keyCode === import_keycodes5.DOWN;
+ const { tagName } = element;
+ const elementType = element.getAttribute("type");
+ if (isVertical && !hasModifier) {
+ if (tagName === "INPUT") {
+ const verticalInputTypes = [
+ "date",
+ "datetime-local",
+ "month",
+ "number",
+ "range",
+ "time",
+ "week"
+ ];
+ return !verticalInputTypes.includes(elementType);
+ }
+ return true;
+ }
+ if (tagName === "INPUT") {
+ const simpleInputTypes = [
+ "button",
+ "checkbox",
+ "number",
+ "color",
+ "file",
+ "image",
+ "radio",
+ "reset",
+ "submit"
+ ];
+ return simpleInputTypes.includes(elementType);
+ }
+ return tagName !== "TEXTAREA";
+ }
+ function getClosestTabbable(target, isReverse, containerElement, onlyVertical) {
+ let focusableNodes = import_dom42.focus.focusable.find(containerElement);
+ if (isReverse) {
+ focusableNodes.reverse();
+ }
+ focusableNodes = focusableNodes.slice(
+ focusableNodes.indexOf(target) + 1
+ );
+ let targetRect;
+ if (onlyVertical) {
+ targetRect = target.getBoundingClientRect();
+ }
+ function isTabCandidate(node) {
+ if (node.children.length === 1 && isInSameBlock(node, node.firstElementChild) && node.firstElementChild.getAttribute("contenteditable") === "true") {
return;
}
- const transformation = (0, import_blocks43.findTransform)(
- (0, import_blocks43.getBlockTransforms)("from"),
- (transform) => transform.type === "files" && canInsertBlockType2(transform.blockName, targetRootClientId) && transform.isMatch(files)
- );
- if (transformation) {
- const blocks2 = transformation.transform(
- files,
- updateBlockAttributes2
- );
- insertOrReplaceBlocks(blocks2);
+ const blockType = (0, import_blocks29.getBlockType)(node.getAttribute("data-type"));
+ if (node.contentEditable !== "true" && getBlockClientId(node) && blockType && (blockType.merge || (0, import_blocks29.hasBlockSupport)(blockType, "__experimentalOnMerge")) && import_dom42.focus.focusable.find(node).filter((element) => !(0, import_dom42.isFormElement)(element)).length !== 0) {
+ return false;
}
- };
- }
- function onHTMLDrop(insertOrReplaceBlocks) {
- return (HTML) => {
- const blocks2 = (0, import_blocks43.pasteHandler)({ HTML, mode: "BLOCKS" });
- if (blocks2.length) {
- insertOrReplaceBlocks(blocks2);
+ if (!import_dom42.focus.tabbable.isTabbableIndex(node)) {
+ return false;
}
- };
+ if (node.isContentEditable && node.contentEditable !== "true" && getBlockClientId(node.closest('[contenteditable="true"]'))) {
+ return false;
+ }
+ if (onlyVertical) {
+ const nodeRect = node.getBoundingClientRect();
+ if (nodeRect.left >= targetRect.right || nodeRect.right <= targetRect.left) {
+ return false;
+ }
+ }
+ return true;
+ }
+ return focusableNodes.find(isTabCandidate);
}
- function useOnBlockDrop(targetRootClientId, targetBlockIndex, options = {}) {
- const { operation = "insert", nearestSide = "right" } = options;
- const {
- canInsertBlockType: canInsertBlockType2,
- getBlockIndex: getBlockIndex2,
- getClientIdsOfDescendants: getClientIdsOfDescendants2,
- getBlockOrder: getBlockOrder2,
- getBlocksByClientId: getBlocksByClientId2,
- getSettings: getSettings7,
- getBlock: getBlock2
- } = (0, import_data77.useSelect)(store);
- const { getGroupingBlockName } = (0, import_data77.useSelect)(import_blocks43.store);
+ function useArrowNav() {
const {
- insertBlocks: insertBlocks2,
- moveBlocksToPosition: moveBlocksToPosition2,
- updateBlockAttributes: updateBlockAttributes2,
- clearSelectedBlock: clearSelectedBlock2,
- replaceBlocks: replaceBlocks2,
- removeBlocks: removeBlocks2
- } = (0, import_data77.useDispatch)(store);
- const registry = (0, import_data77.useRegistry)();
- const insertOrReplaceBlocks = (0, import_element141.useCallback)(
- (blocks2, updateSelection = true, initialPosition2 = 0, clientIdsToReplace = []) => {
- if (!Array.isArray(blocks2)) {
- blocks2 = [blocks2];
+ getMultiSelectedBlocksStartClientId: getMultiSelectedBlocksStartClientId2,
+ getMultiSelectedBlocksEndClientId: getMultiSelectedBlocksEndClientId2,
+ getNextBlockClientId: getNextBlockClientId2,
+ getPreviousBlockClientId: getPreviousBlockClientId2,
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ getSelectionStart: getSelectionStart2,
+ getSettings: getSettings8,
+ hasMultiSelection: hasMultiSelection2,
+ __unstableIsFullySelected: __unstableIsFullySelected2
+ } = (0, import_data42.useSelect)(store);
+ const { selectBlock: selectBlock2, multiSelect: multiSelect2 } = (0, import_data42.useDispatch)(store);
+ return (0, import_compose26.useRefEffect)((node) => {
+ let verticalRect;
+ function onMouseDown() {
+ verticalRect = null;
+ }
+ function isClosestTabbableABlock(target, isReverse) {
+ const closestTabbable = getClosestTabbable(
+ target,
+ isReverse,
+ node
+ );
+ return closestTabbable && getBlockClientId(closestTabbable);
+ }
+ function onKeyDown(event) {
+ if (event.defaultPrevented) {
+ return;
}
- const clientIds = getBlockOrder2(targetRootClientId);
- const clientId = clientIds[targetBlockIndex];
- if (operation === "replace") {
- replaceBlocks2(clientId, blocks2, void 0, initialPosition2);
- } else if (operation === "group") {
- const targetBlock = getBlock2(clientId);
- if (nearestSide === "left") {
- blocks2.push(targetBlock);
+ const { keyCode, shiftKey, ctrlKey, altKey, metaKey } = event;
+ const target = event.target === node && getSelectionEditableElement(
+ node.ownerDocument.defaultView.getSelection(),
+ node
+ ) || event.target;
+ const isUp = keyCode === import_keycodes5.UP;
+ const isDown = keyCode === import_keycodes5.DOWN;
+ const isLeft = keyCode === import_keycodes5.LEFT;
+ const isRight = keyCode === import_keycodes5.RIGHT;
+ const isReverse = isUp || isLeft;
+ const isHorizontal = isLeft || isRight;
+ const isVertical = isUp || isDown;
+ const isNav = isHorizontal || isVertical;
+ const hasModifier = shiftKey || ctrlKey || altKey || metaKey;
+ const isNavEdge = isVertical ? import_dom42.isVerticalEdge : import_dom42.isHorizontalEdge;
+ const { ownerDocument: ownerDocument2 } = node;
+ const { defaultView } = ownerDocument2;
+ if (!isNav) {
+ return;
+ }
+ if (getSettings8().isPreviewMode) {
+ return;
+ }
+ if (hasMultiSelection2()) {
+ if (shiftKey) {
+ const selection2 = defaultView.getSelection();
+ if (__unstableIsFullySelected2() && (!selection2.rangeCount || selection2.isCollapsed)) {
+ const anchorClientId = getMultiSelectedBlocksStartClientId2();
+ const focusClientId = getMultiSelectedBlocksEndClientId2();
+ const nextClientId = isReverse ? getPreviousBlockClientId2(focusClientId) : getNextBlockClientId2(focusClientId);
+ if (nextClientId) {
+ multiSelect2(anchorClientId, nextClientId);
+ event.preventDefault();
+ }
+ }
+ return;
+ }
+ if (!__unstableIsFullySelected2()) {
+ return;
+ }
+ event.preventDefault();
+ if (isReverse) {
+ selectBlock2(getMultiSelectedBlocksStartClientId2());
} else {
- blocks2.unshift(targetBlock);
+ selectBlock2(getMultiSelectedBlocksEndClientId2(), -1);
}
- const groupInnerBlocks = blocks2.map(
- (block) => (0, import_blocks43.cloneSanitizedBlock)(block)
- );
- const areAllImages = blocks2.every((block) => {
- return block.name === "core/image";
- });
- const galleryBlock = canInsertBlockType2(
- "core/gallery",
- targetRootClientId
- );
- const wrappedBlocks = (0, import_blocks43.createBlock)(
- areAllImages && galleryBlock ? "core/gallery" : getGroupingBlockName(),
- {
- layout: {
- type: "flex",
- flexWrap: areAllImages && galleryBlock ? null : "nowrap"
- }
- },
- groupInnerBlocks
- );
- replaceBlocks2(
- [clientId, ...clientIdsToReplace],
- wrappedBlocks,
- void 0,
- initialPosition2
- );
- } else {
- insertBlocks2(
- blocks2,
- targetBlockIndex,
- targetRootClientId,
- updateSelection,
- initialPosition2
- );
+ return;
}
- },
- [
- getBlockOrder2,
- targetRootClientId,
- targetBlockIndex,
- operation,
- replaceBlocks2,
- getBlock2,
- nearestSide,
- canInsertBlockType2,
- getGroupingBlockName,
- insertBlocks2
- ]
- );
- const moveBlocks = (0, import_element141.useCallback)(
- (sourceClientIds, sourceRootClientId, insertIndex) => {
- if (operation === "replace") {
- const sourceBlocks = getBlocksByClientId2(sourceClientIds);
- const targetBlockClientIds = getBlockOrder2(targetRootClientId);
- const targetBlockClientId = targetBlockClientIds[targetBlockIndex];
- registry.batch(() => {
- removeBlocks2(sourceClientIds, false);
- replaceBlocks2(
- targetBlockClientId,
- sourceBlocks,
- void 0,
- 0
+ if (shiftKey && getSelectedBlockClientId2() && !getSelectionStart2().attributeKey) {
+ const selectedClientId = getSelectedBlockClientId2();
+ const nextClientId = isReverse ? getPreviousBlockClientId2(selectedClientId) : getNextBlockClientId2(selectedClientId);
+ if (nextClientId) {
+ multiSelect2(selectedClientId, nextClientId);
+ event.preventDefault();
+ }
+ return;
+ }
+ if (!isNavigationCandidate(target, keyCode, hasModifier)) {
+ return;
+ }
+ if (!isVertical) {
+ verticalRect = null;
+ } else if (!verticalRect) {
+ verticalRect = (0, import_dom42.computeCaretRect)(defaultView);
+ }
+ const isReverseDir = (0, import_dom42.isRTL)(target) ? !isReverse : isReverse;
+ const { keepCaretInsideBlock } = getSettings8();
+ if (shiftKey) {
+ if (isNavEdge(target, isReverse)) {
+ if (isClosestTabbableABlock(target, isReverse)) {
+ setContentEditableWrapper(node, true);
+ } else if (node.contentEditable === "true") {
+ const selection2 = defaultView.getSelection();
+ selection2.extend(
+ target,
+ isReverse ? 0 : target.childNodes.length
+ );
+ event.preventDefault();
+ }
+ }
+ } else if (isVertical && (0, import_dom42.isVerticalEdge)(target, isReverse) && // When Alt is pressed, only intercept if the caret is also at
+ // the horizontal edge.
+ (altKey ? (0, import_dom42.isHorizontalEdge)(target, isReverseDir) : true) && !keepCaretInsideBlock) {
+ const closestTabbable = getClosestTabbable(
+ target,
+ isReverse,
+ node,
+ true
+ );
+ if (closestTabbable) {
+ (0, import_dom42.placeCaretAtVerticalEdge)(
+ closestTabbable,
+ // When Alt is pressed, place the caret at the furthest
+ // horizontal edge and the furthest vertical edge.
+ altKey ? !isReverse : isReverse,
+ altKey ? void 0 : verticalRect
);
- });
- } else {
- moveBlocksToPosition2(
- sourceClientIds,
- sourceRootClientId,
- targetRootClientId,
- insertIndex
+ event.preventDefault();
+ }
+ } else if (isHorizontal && defaultView.getSelection().isCollapsed && (0, import_dom42.isHorizontalEdge)(target, isReverseDir) && !keepCaretInsideBlock) {
+ const closestTabbable = getClosestTabbable(
+ target,
+ isReverseDir,
+ node
);
+ (0, import_dom42.placeCaretAtHorizontalEdge)(closestTabbable, isReverse);
+ event.preventDefault();
}
- },
- [
- operation,
- getBlockOrder2,
- getBlocksByClientId2,
- moveBlocksToPosition2,
- registry,
- removeBlocks2,
- replaceBlocks2,
- targetBlockIndex,
- targetRootClientId
- ]
- );
- const _onDrop = onBlockDrop(
- targetRootClientId,
- targetBlockIndex,
- getBlockIndex2,
- getClientIdsOfDescendants2,
- moveBlocks,
- insertOrReplaceBlocks,
- clearSelectedBlock2,
- operation,
- getBlock2
- );
- const _onFilesDrop = onFilesDrop(
- targetRootClientId,
- getSettings7,
- updateBlockAttributes2,
- canInsertBlockType2,
- insertOrReplaceBlocks
- );
- const _onHTMLDrop = onHTMLDrop(insertOrReplaceBlocks);
- return (event) => {
- const files = (0, import_dom55.getFilesFromDataTransfer)(event.dataTransfer);
- const html = event.dataTransfer.getData("text/html");
- if (html) {
- _onHTMLDrop(html);
- } else if (files.length) {
- _onFilesDrop(files);
- } else {
- _onDrop(event);
}
- };
+ node.addEventListener("mousedown", onMouseDown);
+ node.addEventListener("keydown", onKeyDown);
+ return () => {
+ node.removeEventListener("mousedown", onMouseDown);
+ node.removeEventListener("keydown", onKeyDown);
+ };
+ }, []);
}
- // packages/block-editor/build-module/utils/math.mjs
- function getDistanceFromPointToEdge(point, rect, edge) {
- const isHorizontal = edge === "top" || edge === "bottom";
- const { x: x2, y: y2 } = point;
- const pointLateralPosition = isHorizontal ? x2 : y2;
- const pointForwardPosition = isHorizontal ? y2 : x2;
- const edgeStart = isHorizontal ? rect.left : rect.top;
- const edgeEnd = isHorizontal ? rect.right : rect.bottom;
- const edgeForwardPosition = rect[edge];
- let edgeLateralPosition;
- if (pointLateralPosition >= edgeStart && pointLateralPosition <= edgeEnd) {
- edgeLateralPosition = pointLateralPosition;
- } else if (pointLateralPosition < edgeEnd) {
- edgeLateralPosition = edgeStart;
- } else {
- edgeLateralPosition = edgeEnd;
- }
- return Math.sqrt(
- (pointLateralPosition - edgeLateralPosition) ** 2 + (pointForwardPosition - edgeForwardPosition) ** 2
+ // packages/block-editor/build-module/components/writing-flow/use-preview-mode-nav.mjs
+ var import_compose27 = __toESM(require_compose(), 1);
+ var import_data43 = __toESM(require_data(), 1);
+ var import_keycodes6 = __toESM(require_keycodes(), 1);
+ function usePreviewModeNav() {
+ const isPreviewMode = (0, import_data43.useSelect)(
+ (select3) => select3(store).getSettings().isPreviewMode,
+ []
);
- }
- function getDistanceToNearestEdge(point, rect, allowedEdges = ["top", "bottom", "left", "right"]) {
- let candidateDistance;
- let candidateEdge;
- allowedEdges.forEach((edge) => {
- const distance = getDistanceFromPointToEdge(point, rect, edge);
- if (candidateDistance === void 0 || distance < candidateDistance) {
- candidateDistance = distance;
- candidateEdge = edge;
- }
- });
- return [candidateDistance, candidateEdge];
- }
- function isPointContainedByRect(point, rect) {
- return rect.left <= point.x && rect.right >= point.x && rect.top <= point.y && rect.bottom >= point.y;
- }
- function isPointWithinTopAndBottomBoundariesOfRect(point, rect) {
- return rect.top <= point.y && rect.bottom >= point.y;
- }
-
- // packages/block-editor/build-module/components/use-block-drop-zone/index.mjs
- var THRESHOLD_DISTANCE = 30;
- var MINIMUM_HEIGHT_FOR_THRESHOLD = 120;
- var MINIMUM_WIDTH_FOR_THRESHOLD = 120;
- function getDropTargetPosition(blocksData, position, orientation = "vertical", options = {}) {
- const allowedEdges = orientation === "horizontal" ? ["left", "right"] : ["top", "bottom"];
- let nearestIndex = 0;
- let insertPosition = "before";
- let minDistance = Infinity;
- let targetBlockIndex = null;
- let nearestSide = "right";
- const {
- dropZoneElement,
- parentBlockOrientation,
- rootBlockIndex = 0
- } = options;
- if (dropZoneElement && parentBlockOrientation !== "horizontal") {
- const rect = dropZoneElement.getBoundingClientRect();
- const [distance, edge] = getDistanceToNearestEdge(position, rect, [
- "top",
- "bottom"
- ]);
- if (rect.height > MINIMUM_HEIGHT_FOR_THRESHOLD && distance < THRESHOLD_DISTANCE) {
- if (edge === "top") {
- return [rootBlockIndex, "before"];
- }
- if (edge === "bottom") {
- return [rootBlockIndex + 1, "after"];
+ return (0, import_compose27.useRefEffect)(
+ (node) => {
+ if (!isPreviewMode) {
+ return;
}
- }
- }
- const isRightToLeft = (0, import_i18n69.isRTL)();
- if (dropZoneElement && parentBlockOrientation === "horizontal") {
- const rect = dropZoneElement.getBoundingClientRect();
- const [distance, edge] = getDistanceToNearestEdge(position, rect, [
- "left",
- "right"
- ]);
- if (rect.width > MINIMUM_WIDTH_FOR_THRESHOLD && distance < THRESHOLD_DISTANCE) {
- if (isRightToLeft && edge === "right" || !isRightToLeft && edge === "left") {
- return [rootBlockIndex, "before"];
+ function onKeyDown(event) {
+ const { keyCode, shiftKey, target } = event;
+ const isTab = keyCode === import_keycodes6.TAB;
+ const isUp = keyCode === import_keycodes6.UP;
+ const isDown = keyCode === import_keycodes6.DOWN;
+ const isLeft = keyCode === import_keycodes6.LEFT;
+ const isRight = keyCode === import_keycodes6.RIGHT;
+ const isArrow = isUp || isDown || isLeft || isRight;
+ if (!isTab && !isArrow) {
+ return;
+ }
+ const isReverse = isTab ? shiftKey : isUp || isLeft;
+ const blocks2 = Array.from(
+ node.querySelectorAll("[data-block]")
+ );
+ if (!blocks2.length) {
+ return;
+ }
+ const currentBlock = target.closest("[data-block]");
+ const currentIndex = currentBlock ? blocks2.indexOf(currentBlock) : -1;
+ if (currentIndex === -1) {
+ return;
+ }
+ if (isTab) {
+ if (isReverse && currentIndex === 0) {
+ return;
+ }
+ if (!isReverse && currentIndex === blocks2.length - 1) {
+ return;
+ }
+ }
+ let nextIndex;
+ if (isReverse) {
+ nextIndex = currentIndex <= 0 ? blocks2.length - 1 : currentIndex - 1;
+ } else {
+ nextIndex = currentIndex === -1 || currentIndex >= blocks2.length - 1 ? 0 : currentIndex + 1;
+ }
+ event.preventDefault();
+ blocks2[nextIndex].focus();
}
- if (isRightToLeft && edge === "left" || !isRightToLeft && edge === "right") {
- return [rootBlockIndex + 1, "after"];
+ node.addEventListener("keydown", onKeyDown);
+ return () => {
+ node.removeEventListener("keydown", onKeyDown);
+ };
+ },
+ [isPreviewMode]
+ );
+ }
+
+ // packages/block-editor/build-module/components/writing-flow/use-select-all.mjs
+ var import_dom44 = __toESM(require_dom(), 1);
+ var import_data44 = __toESM(require_data(), 1);
+ var import_keyboard_shortcuts5 = __toESM(require_keyboard_shortcuts(), 1);
+ var import_compose28 = __toESM(require_compose(), 1);
+ function useSelectAll() {
+ const { getBlockOrder: getBlockOrder2, getSelectedBlockClientIds: getSelectedBlockClientIds2, getBlockRootClientId: getBlockRootClientId2 } = (0, import_data44.useSelect)(store);
+ const { multiSelect: multiSelect2, selectBlock: selectBlock2 } = (0, import_data44.useDispatch)(store);
+ const isMatch = (0, import_keyboard_shortcuts5.__unstableUseShortcutEventMatch)();
+ return (0, import_compose28.useRefEffect)((node) => {
+ function onKeyDown(event) {
+ if (!isMatch("core/block-editor/select-all", event)) {
+ return;
}
- }
- }
- blocksData.forEach(
- ({
- isUnmodifiedDefaultBlock: isUnmodifiedDefaultBlock5,
- getBoundingClientRect: getBoundingClientRect2,
- blockIndex,
- blockOrientation
- }) => {
- const rect = getBoundingClientRect2();
- if (!rect) {
+ const selectedClientIds = getSelectedBlockClientIds2();
+ const { ownerDocument: ownerDocument2 } = node;
+ const selection2 = ownerDocument2.defaultView.getSelection();
+ const editable = event.target === node && getSelectionEditableElement(selection2, node) || event.target;
+ if (selectedClientIds.length < 2 && !(0, import_dom44.isEntirelySelected)(editable)) {
+ if (event.target === node && editable !== node) {
+ event.preventDefault();
+ const range2 = ownerDocument2.createRange();
+ range2.selectNodeContents(editable);
+ selection2.removeAllRanges();
+ selection2.addRange(range2);
+ ownerDocument2.dispatchEvent(
+ new Event("selectionchange")
+ );
+ }
return;
}
- let [distance, edge] = getDistanceToNearestEdge(
- position,
- rect,
- allowedEdges
- );
- const [sideDistance, sideEdge] = getDistanceToNearestEdge(
- position,
- rect,
- ["left", "right"]
+ event.preventDefault();
+ const [firstSelectedClientId] = selectedClientIds;
+ const activeClientId = getBlockClientId(
+ ownerDocument2.activeElement
);
- const isPointInsideRect = isPointContainedByRect(position, rect);
- if (isUnmodifiedDefaultBlock5 && isPointInsideRect) {
- distance = 0;
- } else if (orientation === "vertical" && blockOrientation !== "horizontal" && (isPointInsideRect && sideDistance < THRESHOLD_DISTANCE || !isPointInsideRect && isPointWithinTopAndBottomBoundariesOfRect(
- position,
- rect
- ))) {
- targetBlockIndex = blockIndex;
- nearestSide = sideEdge;
- }
- if (distance < minDistance) {
- insertPosition = edge === "bottom" || !isRightToLeft && edge === "right" || isRightToLeft && edge === "left" ? "after" : "before";
- minDistance = distance;
- nearestIndex = blockIndex;
+ if (activeClientId && activeClientId !== firstSelectedClientId && !isInsideRootBlock(
+ ownerDocument2.getElementById(
+ "block-" + firstSelectedClientId
+ ),
+ ownerDocument2.activeElement
+ )) {
+ selectBlock2(activeClientId);
+ return;
}
- }
- );
- const adjacentIndex = nearestIndex + (insertPosition === "after" ? 1 : -1);
- const isNearestBlockUnmodifiedDefaultBlock = !!blocksData[nearestIndex]?.isUnmodifiedDefaultBlock;
- const isAdjacentBlockUnmodifiedDefaultBlock = !!blocksData[adjacentIndex]?.isUnmodifiedDefaultBlock;
- if (targetBlockIndex !== null) {
- return [targetBlockIndex, "group", nearestSide];
- }
- if (!isNearestBlockUnmodifiedDefaultBlock && !isAdjacentBlockUnmodifiedDefaultBlock) {
- const insertionIndex = insertPosition === "after" ? nearestIndex + 1 : nearestIndex;
- return [insertionIndex, "insert"];
- }
- return [
- isNearestBlockUnmodifiedDefaultBlock ? nearestIndex : adjacentIndex,
- "replace"
- ];
- }
- function isDropTargetValid(getBlockType30, allowedBlocks, draggedBlockNames, targetBlockName) {
- let areBlocksAllowed = true;
- if (allowedBlocks) {
- const allowedBlockNames = allowedBlocks?.map(({ name }) => name);
- areBlocksAllowed = draggedBlockNames.every(
- (name) => allowedBlockNames?.includes(name)
- );
- }
- const draggedBlockTypes = draggedBlockNames.map(
- (name) => getBlockType30(name)
- );
- const targetMatchesDraggedBlockParents = draggedBlockTypes.every(
- (block) => {
- const [allowedParentName] = block?.parent || [];
- if (!allowedParentName) {
- return true;
+ const rootClientId = getBlockRootClientId2(firstSelectedClientId);
+ const blockClientIds = getBlockOrder2(rootClientId);
+ if (selectedClientIds.length === blockClientIds.length) {
+ if (rootClientId) {
+ node.ownerDocument.defaultView.getSelection().removeAllRanges();
+ selectBlock2(rootClientId);
+ }
+ return;
}
- return allowedParentName === targetBlockName;
+ multiSelect2(
+ blockClientIds[0],
+ blockClientIds[blockClientIds.length - 1]
+ );
}
- );
- return areBlocksAllowed && targetMatchesDraggedBlockParents;
- }
- function isInsertionPoint(targetToCheck, ownerDocument2) {
- const { defaultView } = ownerDocument2;
- return !!(defaultView && targetToCheck instanceof defaultView.HTMLElement && targetToCheck.closest("[data-is-insertion-point]"));
+ node.addEventListener("keydown", onKeyDown);
+ return () => {
+ node.removeEventListener("keydown", onKeyDown);
+ };
+ }, []);
}
- function useBlockDropZone({
- dropZoneElement,
- // An undefined value represents a top-level block. Default to an empty
- // string for this so that `targetRootClientId` can be easily compared to
- // values returned by the `getRootBlockClientId` selector, which also uses
- // an empty string to represent top-level blocks.
- rootClientId: targetRootClientId = "",
- parentClientId: parentBlockClientId = "",
- isDisabled = false
- } = {}) {
- const registry = (0, import_data78.useRegistry)();
- const [dropTarget, setDropTarget] = (0, import_element142.useState)({
- index: null,
- operation: "insert"
- });
- const { getBlockType: getBlockType30, getBlockVariations: getBlockVariations2, getGroupingBlockName } = (0, import_data78.useSelect)(import_blocks44.store);
- const {
- canInsertBlockType: canInsertBlockType2,
- getBlockListSettings: getBlockListSettings2,
- getBlocks: getBlocks2,
- getBlockIndex: getBlockIndex2,
- getDraggedBlockClientIds: getDraggedBlockClientIds2,
- getBlockNamesByClientId: getBlockNamesByClientId2,
- getAllowedBlocks: getAllowedBlocks2,
- isDragging: isDragging3,
- isGroupable: isGroupable2,
- isZoomOut: isZoomOut2,
- getSectionRootClientId: getSectionRootClientId2,
- getBlockParents: getBlockParents2
- } = unlock((0, import_data78.useSelect)(store));
+
+ // packages/block-editor/build-module/components/writing-flow/use-drag-selection.mjs
+ var import_data45 = __toESM(require_data(), 1);
+ var import_compose29 = __toESM(require_compose(), 1);
+ function useDragSelection() {
+ const { startMultiSelect: startMultiSelect2, stopMultiSelect: stopMultiSelect2 } = (0, import_data45.useDispatch)(store);
const {
- showInsertionPoint: showInsertionPoint2,
- hideInsertionPoint: hideInsertionPoint2,
- startDragging: startDragging2,
- stopDragging: stopDragging2
- } = unlock((0, import_data78.useDispatch)(store));
- const onBlockDrop2 = useOnBlockDrop(
- dropTarget.operation === "before" || dropTarget.operation === "after" ? parentBlockClientId : targetRootClientId,
- dropTarget.index,
- {
- operation: dropTarget.operation,
- nearestSide: dropTarget.nearestSide
- }
- );
- const throttled = (0, import_compose55.useThrottle)(
- (0, import_element142.useCallback)(
- (event, ownerDocument2) => {
- if (!isDragging3()) {
- startDragging2();
+ getSettings: getSettings8,
+ isSelectionEnabled: isSelectionEnabled3,
+ hasSelectedBlock: hasSelectedBlock2,
+ isDraggingBlocks: isDraggingBlocks2,
+ isMultiSelecting: isMultiSelecting3
+ } = (0, import_data45.useSelect)(store);
+ return (0, import_compose29.useRefEffect)(
+ (node) => {
+ const { ownerDocument: ownerDocument2 } = node;
+ const { defaultView } = ownerDocument2;
+ let anchorElement;
+ let rafId2;
+ function onMouseUp() {
+ stopMultiSelect2();
+ defaultView.removeEventListener("mouseup", onMouseUp);
+ rafId2 = defaultView.requestAnimationFrame(() => {
+ if (!hasSelectedBlock2()) {
+ return;
+ }
+ setContentEditableWrapper(node, false);
+ const selection2 = defaultView.getSelection();
+ if (selection2.rangeCount) {
+ const range2 = selection2.getRangeAt(0);
+ const { commonAncestorContainer } = range2;
+ const clonedRange = range2.cloneRange();
+ if (anchorElement.contains(commonAncestorContainer)) {
+ anchorElement.focus();
+ selection2.removeAllRanges();
+ selection2.addRange(clonedRange);
+ }
+ }
+ });
+ }
+ let lastMouseDownTarget;
+ function onMouseDown({ target }) {
+ lastMouseDownTarget = target;
+ }
+ function onMouseLeave({ buttons, target, relatedTarget }) {
+ if (!target.contains(lastMouseDownTarget)) {
+ return;
}
- const draggedBlockClientIds = getDraggedBlockClientIds2();
- const targetParents = [
- targetRootClientId,
- ...getBlockParents2(targetRootClientId, true)
- ];
- const isTargetWithinDraggedBlocks = draggedBlockClientIds.some(
- (clientId) => targetParents.includes(clientId)
- );
- if (isTargetWithinDraggedBlocks) {
+ if (target.contains(relatedTarget)) {
return;
}
- const allowedBlocks = getAllowedBlocks2(targetRootClientId);
- const targetBlockName = getBlockNamesByClientId2([
- targetRootClientId
- ])[0];
- const draggedBlockNames = getBlockNamesByClientId2(
- draggedBlockClientIds
- );
- const isBlockDroppingAllowed = isDropTargetValid(
- getBlockType30,
- allowedBlocks,
- draggedBlockNames,
- targetBlockName
- );
- if (!isBlockDroppingAllowed) {
+ if (isDraggingBlocks2()) {
return;
}
- const sectionRootClientId = getSectionRootClientId2();
- if (isZoomOut2() && sectionRootClientId !== targetRootClientId) {
+ if (buttons !== 1) {
return;
}
- const blocks2 = getBlocks2(targetRootClientId).filter((block) => {
- return !((0, import_blocks44.hasBlockSupport)(block.name, "visibility", true) && block.attributes?.metadata?.blockVisibility === false);
- });
- if (blocks2.length === 0) {
- registry.batch(() => {
- setDropTarget({
- index: 0,
- operation: "insert"
- });
- showInsertionPoint2(targetRootClientId, 0, {
- operation: "insert"
- });
- });
+ if (isMultiSelecting3()) {
return;
}
- const blocksData = blocks2.map((block) => {
- const clientId = block.clientId;
- return {
- isUnmodifiedDefaultBlock: (0, import_blocks44.isUnmodifiedDefaultBlock)(block),
- getBoundingClientRect: () => {
- const blockElement = ownerDocument2.getElementById(
- `block-${clientId}`
- );
- return blockElement ? blockElement.getBoundingClientRect() : null;
- },
- blockIndex: getBlockIndex2(clientId),
- blockOrientation: getBlockListSettings2(clientId)?.orientation
- };
- });
- const dropTargetPosition = getDropTargetPosition(
- blocksData,
- { x: event.clientX, y: event.clientY },
- getBlockListSettings2(targetRootClientId)?.orientation,
- {
- dropZoneElement,
- parentBlockClientId,
- parentBlockOrientation: parentBlockClientId ? getBlockListSettings2(parentBlockClientId)?.orientation : void 0,
- rootBlockIndex: getBlockIndex2(targetRootClientId)
- }
- );
- const [targetIndex, operation, nearestSide] = dropTargetPosition;
- const isTargetIndexEmptyDefaultBlock = blocksData[targetIndex]?.isUnmodifiedDefaultBlock;
- if (isZoomOut2() && !isTargetIndexEmptyDefaultBlock && operation !== "insert") {
+ if (node === target) {
return;
}
- if (operation === "group") {
- const targetBlock = blocks2[targetIndex];
- const areAllImages = [
- targetBlock.name,
- ...draggedBlockNames
- ].every((name) => name === "core/image");
- const canInsertGalleryBlock = canInsertBlockType2(
- "core/gallery",
- targetRootClientId
- );
- const areGroupableBlocks = isGroupable2([
- targetBlock.clientId,
- getDraggedBlockClientIds2()
- ]);
- const groupBlockVariations = getBlockVariations2(
- getGroupingBlockName(),
- "block"
- );
- const canInsertRow = groupBlockVariations && groupBlockVariations.find(
- ({ name }) => name === "group-row"
- );
- if (areAllImages && !canInsertGalleryBlock && (!areGroupableBlocks || !canInsertRow)) {
- return;
- }
- if (!areAllImages && (!areGroupableBlocks || !canInsertRow)) {
- return;
- }
+ if (target.getAttribute("contenteditable") !== "true" && !getSettings8().isPreviewMode) {
+ return;
}
- registry.batch(() => {
- setDropTarget({
- index: targetIndex,
- operation,
- nearestSide
- });
- const insertionPointClientId = [
- "before",
- "after"
- ].includes(operation) ? parentBlockClientId : targetRootClientId;
- showInsertionPoint2(insertionPointClientId, targetIndex, {
- operation,
- nearestSide
- });
- });
- },
- [
- isDragging3,
- getAllowedBlocks2,
- targetRootClientId,
- getBlockNamesByClientId2,
- getDraggedBlockClientIds2,
- getBlockType30,
- getSectionRootClientId2,
- isZoomOut2,
- getBlocks2,
- getBlockListSettings2,
- dropZoneElement,
- parentBlockClientId,
- getBlockIndex2,
- registry,
- startDragging2,
- showInsertionPoint2,
- canInsertBlockType2,
- isGroupable2,
- getBlockVariations2,
- getGroupingBlockName
- ]
- ),
- 200
- );
- return (0, import_compose55.__experimentalUseDropZone)({
- dropZoneElement,
- isDisabled,
- onDrop: onBlockDrop2,
- onDragOver(event) {
- throttled(event, event.currentTarget.ownerDocument);
- },
- onDragLeave(event) {
- const { ownerDocument: ownerDocument2 } = event.currentTarget;
- if (isInsertionPoint(event.relatedTarget, ownerDocument2) || isInsertionPoint(event.target, ownerDocument2)) {
- return;
- }
- throttled.cancel();
- hideInsertionPoint2();
- },
- onDragEnd() {
- throttled.cancel();
- stopDragging2();
- hideInsertionPoint2();
- }
- });
- }
-
- // packages/block-editor/build-module/components/inner-blocks/index.mjs
- var import_jsx_runtime269 = __toESM(require_jsx_runtime(), 1);
- var EMPTY_OBJECT2 = {};
- function BlockContext({ children, clientId }) {
- const context = useBlockContext(clientId);
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(BlockContextProvider, { value: context, children });
- }
- var BlockListItemsMemo = (0, import_element143.memo)(BlockListItems);
- function UncontrolledInnerBlocks(props) {
- const {
- clientId,
- allowedBlocks,
- prioritizedInserterBlocks,
- defaultBlock,
- directInsert,
- __experimentalDefaultBlock,
- __experimentalDirectInsert,
- template: template2,
- templateLock,
- wrapperRef,
- templateInsertUpdatesSelection,
- __experimentalCaptureToolbars: captureToolbars,
- __experimentalAppenderTagName,
- renderAppender,
- orientation,
- placeholder,
- layout,
- name,
- blockType,
- parentLock,
- defaultLayout: defaultLayout2
- } = props;
- useNestedSettingsUpdate(
- clientId,
- parentLock,
- allowedBlocks,
- prioritizedInserterBlocks,
- defaultBlock,
- directInsert,
- __experimentalDefaultBlock,
- __experimentalDirectInsert,
- templateLock,
- captureToolbars,
- orientation,
- layout
- );
- useInnerBlockTemplateSync(
- clientId,
- template2,
- templateLock,
- templateInsertUpdatesSelection
- );
- const defaultLayoutBlockSupport = (0, import_blocks45.getBlockSupport)(name, "layout") || (0, import_blocks45.getBlockSupport)(name, "__experimentalLayout") || EMPTY_OBJECT2;
- const { allowSizingOnChildren = false } = defaultLayoutBlockSupport;
- const usedLayout = layout || defaultLayoutBlockSupport;
- const memoedLayout = (0, import_element143.useMemo)(
- () => ({
- // Default layout will know about any content/wide size defined by the theme.
- ...defaultLayout2,
- ...usedLayout,
- ...allowSizingOnChildren && {
- allowSizingOnChildren: true
- }
- }),
- [defaultLayout2, usedLayout, allowSizingOnChildren]
- );
- const items = /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
- BlockListItemsMemo,
- {
- rootClientId: clientId,
- renderAppender,
- __experimentalAppenderTagName,
- layout: memoedLayout,
- wrapperRef,
- placeholder
- }
- );
- if (!blockType?.providesContext || Object.keys(blockType.providesContext).length === 0) {
- return items;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(BlockContext, { clientId, children: items });
- }
- function ControlledInnerBlocks(props) {
- useBlockSync(props);
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(UncontrolledInnerBlocks, { ...props });
- }
- var ForwardedInnerBlocks = (0, import_element143.forwardRef)((props, ref) => {
- const innerBlocksProps = useInnerBlocksProps({ ref }, props);
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("div", { className: "block-editor-inner-blocks", children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("div", { ...innerBlocksProps }) });
- });
- function useInnerBlocksProps(props = {}, options = {}) {
- const {
- __unstableDisableLayoutClassNames,
- __unstableDisableDropZone,
- dropZoneElement
- } = options;
- const {
- clientId,
- layout = null,
- __unstableLayoutClassNames: layoutClassNames = ""
- } = useBlockEditContext();
- const selected = (0, import_data79.useSelect)(
- (select3) => {
- const {
- getBlockName: getBlockName2,
- isZoomOut: isZoomOut2,
- getTemplateLock: getTemplateLock2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlockEditingMode: getBlockEditingMode2,
- getBlockSettings: getBlockSettings2,
- getSectionRootClientId: getSectionRootClientId2
- } = unlock(select3(store));
- if (!clientId) {
- const sectionRootClientId = getSectionRootClientId2();
- return {
- isDropZoneDisabled: isZoomOut2() && sectionRootClientId !== ""
- };
- }
- const { hasBlockSupport: hasBlockSupport45, getBlockType: getBlockType30 } = select3(import_blocks45.store);
- const blockName = getBlockName2(clientId);
- const blockEditingMode = getBlockEditingMode2(clientId);
- const parentClientId2 = getBlockRootClientId2(clientId);
- const [defaultLayout22] = getBlockSettings2(clientId, "layout");
- let _isDropZoneDisabled = blockEditingMode === "disabled";
- if (isZoomOut2()) {
- const sectionRootClientId = getSectionRootClientId2();
- _isDropZoneDisabled = clientId !== sectionRootClientId;
+ if (!isSelectionEnabled3()) {
+ return;
+ }
+ anchorElement = target;
+ startMultiSelect2();
+ defaultView.addEventListener("mouseup", onMouseUp);
+ setContentEditableWrapper(node, true);
}
- return {
- __experimentalCaptureToolbars: hasBlockSupport45(
- blockName,
- "__experimentalExposeControlsToChildren",
- false
- ),
- name: blockName,
- blockType: getBlockType30(blockName),
- parentLock: getTemplateLock2(parentClientId2),
- parentClientId: parentClientId2,
- isDropZoneDisabled: _isDropZoneDisabled,
- defaultLayout: defaultLayout22
+ node.addEventListener("mouseout", onMouseLeave);
+ node.addEventListener("mousedown", onMouseDown);
+ return () => {
+ node.removeEventListener("mouseout", onMouseLeave);
+ defaultView.removeEventListener("mouseup", onMouseUp);
+ defaultView.cancelAnimationFrame(rafId2);
};
},
- [clientId]
+ [
+ startMultiSelect2,
+ stopMultiSelect2,
+ isSelectionEnabled3,
+ hasSelectedBlock2
+ ]
);
- const {
- __experimentalCaptureToolbars,
- name,
- blockType,
- parentLock,
- parentClientId,
- isDropZoneDisabled,
- defaultLayout: defaultLayout2
- } = selected;
- const blockDropZoneRef = useBlockDropZone({
- dropZoneElement,
- rootClientId: clientId,
- parentClientId
- });
- const ref = (0, import_compose56.useMergeRefs)([
- props.ref,
- __unstableDisableDropZone || isDropZoneDisabled || layout?.isManualPlacement && window.__experimentalEnableGridInteractivity ? null : blockDropZoneRef
- ]);
- const innerBlocksProps = {
- __experimentalCaptureToolbars,
- layout,
- name,
- blockType,
- parentLock,
- defaultLayout: defaultLayout2,
- ...options
- };
- const InnerBlocks = innerBlocksProps.value && innerBlocksProps.onChange ? ControlledInnerBlocks : UncontrolledInnerBlocks;
- return {
- ...props,
- ref,
- className: clsx_default(
- props.className,
- "block-editor-block-list__layout",
- __unstableDisableLayoutClassNames ? "" : layoutClassNames
- ),
- children: clientId ? /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(InnerBlocks, { ...innerBlocksProps, clientId }) : /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(BlockListItems, { ...options })
- };
}
- useInnerBlocksProps.save = import_blocks45.__unstableGetInnerBlocksProps;
- ForwardedInnerBlocks.DefaultBlockAppender = DefaultBlockAppender2;
- ForwardedInnerBlocks.ButtonBlockAppender = ButtonBlockAppender2;
- ForwardedInnerBlocks.Content = () => useInnerBlocksProps.save().children;
- var inner_blocks_default = ForwardedInnerBlocks;
- // packages/block-editor/build-module/components/block-list/zoom-out-separator.mjs
- var import_components67 = __toESM(require_components(), 1);
- var import_compose57 = __toESM(require_compose(), 1);
- var import_data80 = __toESM(require_data(), 1);
- var import_element144 = __toESM(require_element(), 1);
- var import_i18n70 = __toESM(require_i18n(), 1);
- var import_jsx_runtime270 = __toESM(require_jsx_runtime(), 1);
- function ZoomOutSeparator({
- clientId,
- rootClientId = "",
- position = "top"
- }) {
- const [isDraggedOver, setIsDraggedOver] = (0, import_element144.useState)(false);
- const {
- sectionRootClientId,
- sectionClientIds,
- insertionPoint: insertionPoint2,
- blockInsertionPointVisible,
- blockInsertionPoint,
- blocksBeingDragged
- } = (0, import_data80.useSelect)((select3) => {
- const {
- getInsertionPoint: getInsertionPoint2,
- getBlockOrder: getBlockOrder2,
- getSectionRootClientId: getSectionRootClientId2,
- isBlockInsertionPointVisible: isBlockInsertionPointVisible2,
- getBlockInsertionPoint: getBlockInsertionPoint2,
- getDraggedBlockClientIds: getDraggedBlockClientIds2
- } = unlock(select3(store));
- const root = getSectionRootClientId2();
- const sectionRootClientIds = getBlockOrder2(root);
- return {
- sectionRootClientId: root,
- sectionClientIds: sectionRootClientIds,
- insertionPoint: getInsertionPoint2(),
- blockInsertionPoint: getBlockInsertionPoint2(),
- blockInsertionPointVisible: isBlockInsertionPointVisible2(),
- blocksBeingDragged: getDraggedBlockClientIds2()
- };
- }, []);
- const isReducedMotion = (0, import_compose57.useReducedMotion)();
- if (!clientId) {
- return;
+ // packages/block-editor/build-module/components/writing-flow/use-selection-observer.mjs
+ var import_data46 = __toESM(require_data(), 1);
+ var import_compose30 = __toESM(require_compose(), 1);
+ var import_rich_text4 = __toESM(require_rich_text(), 1);
+ var import_dom46 = __toESM(require_dom(), 1);
+ var { ownsSelection } = unlock(import_rich_text4.privateApis);
+ function extractSelectionStartNode(selection2) {
+ const { anchorNode, anchorOffset } = selection2;
+ if (anchorNode.nodeType === anchorNode.TEXT_NODE) {
+ return anchorNode;
}
- let isVisible = false;
- const isSectionBlock2 = rootClientId === sectionRootClientId && sectionClientIds && sectionClientIds.includes(clientId);
- if (!isSectionBlock2) {
- return null;
+ if (anchorOffset === 0) {
+ return anchorNode;
}
- const hasTopInsertionPoint = insertionPoint2?.index === 0 && clientId === sectionClientIds[insertionPoint2.index];
- const hasBottomInsertionPoint = insertionPoint2 && insertionPoint2.hasOwnProperty("index") && clientId === sectionClientIds[insertionPoint2.index - 1];
- if (position === "top") {
- isVisible = hasTopInsertionPoint || blockInsertionPointVisible && blockInsertionPoint.index === 0 && clientId === sectionClientIds[blockInsertionPoint.index];
+ return anchorNode.childNodes[anchorOffset - 1];
+ }
+ function extractSelectionEndNode(selection2, isTripleClick) {
+ const { focusNode, focusOffset } = selection2;
+ if (focusNode.nodeType === focusNode.TEXT_NODE) {
+ return focusNode;
}
- if (position === "bottom") {
- isVisible = hasBottomInsertionPoint || blockInsertionPointVisible && clientId === sectionClientIds[blockInsertionPoint.index - 1];
+ if (focusOffset === focusNode.childNodes.length) {
+ return focusNode;
}
- const blockBeingDraggedClientId = blocksBeingDragged[0];
- const isCurrentBlockBeingDragged = blocksBeingDragged.includes(clientId);
- const blockBeingDraggedIndex = sectionClientIds.indexOf(
- blockBeingDraggedClientId
- );
- const blockBeingDraggedPreviousSiblingClientId = blockBeingDraggedIndex > 0 ? sectionClientIds[blockBeingDraggedIndex - 1] : null;
- const isCurrentBlockPreviousSiblingOfBlockBeingDragged = blockBeingDraggedPreviousSiblingClientId === clientId;
- if (isCurrentBlockBeingDragged || isCurrentBlockPreviousSiblingOfBlockBeingDragged) {
- isVisible = false;
+ if (focusOffset === 0 && (0, import_dom46.isSelectionForward)(selection2) && isTripleClick) {
+ return focusNode.previousSibling ?? focusNode.parentElement;
}
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(import_components67.__unstableAnimatePresence, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
- import_components67.__unstableMotion.div,
- {
- initial: { height: 0 },
- animate: {
- // Use a height equal to that of the zoom out frame size.
- height: "calc(1 * var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)"
- },
- exit: { height: 0 },
- transition: {
- type: "tween",
- duration: isReducedMotion ? 0 : 0.2,
- ease: [0.6, 0, 0.4, 1]
- },
- className: clsx_default(
- "block-editor-block-list__zoom-out-separator",
- {
- "is-dragged-over": isDraggedOver
- }
- ),
- "data-is-insertion-point": "true",
- onDragOver: () => setIsDraggedOver(true),
- onDragLeave: () => setIsDraggedOver(false),
- children: /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
- import_components67.__unstableMotion.div,
- {
- initial: { opacity: 0 },
- animate: { opacity: 1 },
- exit: { opacity: 0, transition: { delay: -0.125 } },
- transition: {
- ease: "linear",
- duration: 0.1,
- delay: 0.125
- },
- children: (0, import_i18n70.__)("Drop pattern.")
- }
- )
- }
- ) });
+ return focusNode.childNodes[focusOffset];
}
-
- // packages/block-editor/build-module/components/block-list/index.mjs
- var import_jsx_runtime271 = __toESM(require_jsx_runtime(), 1);
- var IntersectionObserver2 = (0, import_element145.createContext)();
- IntersectionObserver2.displayName = "IntersectionObserverContext";
- var pendingBlockVisibilityUpdatesPerRegistry = /* @__PURE__ */ new WeakMap();
- var delayedBlockVisibilityDebounceOptions = {
- trailing: true
- };
- function Root7({ className, ...settings2 }) {
+ function findDepth(a2, b2) {
+ let depth = 0;
+ while (a2[depth] === b2[depth]) {
+ depth++;
+ }
+ return depth;
+ }
+ function getRichTextElement(node) {
+ const element = node.nodeType === node.ELEMENT_NODE ? node : node.parentElement;
+ return element?.closest("[data-wp-block-attribute-key]");
+ }
+ function useSelectionObserver() {
const {
- isOutlineMode,
- isFocusMode,
- isPreviewMode,
- editedContentOnlySection: editedContentOnlySection2
- } = (0, import_data81.useSelect)((select3) => {
- const {
- getSettings: getSettings7,
- isTyping: isTyping3,
- hasBlockSpotlight: hasBlockSpotlight3,
- getEditedContentOnlySection: getEditedContentOnlySection2
- } = unlock(select3(store));
- const {
- outlineMode,
- focusMode,
- isPreviewMode: _isPreviewMode
- } = getSettings7();
- return {
- isOutlineMode: outlineMode && !isTyping3(),
- isFocusMode: focusMode || hasBlockSpotlight3(),
- isPreviewMode: _isPreviewMode,
- editedContentOnlySection: getEditedContentOnlySection2()
- };
- }, []);
- const registry = (0, import_data81.useRegistry)();
- const { setBlockVisibility: setBlockVisibility2 } = (0, import_data81.useDispatch)(store);
- const delayedBlockVisibilityUpdates = (0, import_compose58.useDebounce)(
- (0, import_element145.useCallback)(() => {
- const updates = {};
- pendingBlockVisibilityUpdatesPerRegistry.get(registry).forEach(([id, isIntersecting]) => {
- updates[id] = isIntersecting;
- });
- setBlockVisibility2(updates);
- }, [registry]),
- 300,
- delayedBlockVisibilityDebounceOptions
- );
- const intersectionObserver = (0, import_element145.useMemo)(() => {
- const { IntersectionObserver: Observer } = window;
- if (!Observer) {
- return;
- }
- return new Observer((entries) => {
- if (!pendingBlockVisibilityUpdatesPerRegistry.get(registry)) {
- pendingBlockVisibilityUpdatesPerRegistry.set(registry, []);
- }
- for (const entry of entries) {
- const clientId = entry.target.getAttribute("data-block");
- pendingBlockVisibilityUpdatesPerRegistry.get(registry).push([clientId, entry.isIntersecting]);
+ multiSelect: multiSelect2,
+ selectBlock: selectBlock2,
+ selectionChange: selectionChange2,
+ startMultiSelect: startMultiSelect2,
+ stopMultiSelect: stopMultiSelect2
+ } = (0, import_data46.useDispatch)(store);
+ const {
+ getBlockParents: getBlockParents2,
+ getBlockSelectionStart: getBlockSelectionStart2,
+ isMultiSelecting: isMultiSelecting3,
+ getSelectionStart: getSelectionStart2,
+ getSelectionEnd: getSelectionEnd2,
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ canHostEditableRoot: canHostEditableRoot2
+ } = unlock((0, import_data46.useSelect)(store));
+ return (0, import_compose30.useRefEffect)(
+ (node) => {
+ const { ownerDocument: ownerDocument2 } = node;
+ const { defaultView } = ownerDocument2;
+ let isTripleClick = false;
+ function onMouseDown(event) {
+ isTripleClick = event.detail === 3;
+ if (event.shiftKey) {
+ startMultiSelect2();
+ }
}
- delayedBlockVisibilityUpdates();
- });
- }, []);
- const innerBlocksProps = useInnerBlocksProps(
- {
- ref: (0, import_compose58.useMergeRefs)([
- useBlockSelectionClearer(),
- useInBetweenInserter()
- ]),
- className: clsx_default("is-root-container", className, {
- "is-outline-mode": isOutlineMode,
- "is-focus-mode": isFocusMode,
- "is-preview-mode": isPreviewMode
- })
- },
- settings2
- );
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(IntersectionObserver2.Provider, { value: intersectionObserver, children: [
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("div", { ...innerBlocksProps }),
- !!editedContentOnlySection2 && /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
- StopEditingContentOnlySectionOnOutsideSelect,
- {
- clientId: editedContentOnlySection2
+ function onKeyDown() {
+ isTripleClick = false;
}
- )
- ] });
- }
- function StopEditingContentOnlySectionOnOutsideSelect({ clientId }) {
- const { stopEditingContentOnlySection: stopEditingContentOnlySection2 } = unlock(
- (0, import_data81.useDispatch)(store)
- );
- const isBlockOrDescendantSelected = (0, import_data81.useSelect)(
- (select3) => {
- const {
- isBlockSelected: isBlockSelected2,
- hasSelectedInnerBlock: hasSelectedInnerBlock2,
- getBlockSelectionStart: getBlockSelectionStart2
- } = select3(store);
- return !getBlockSelectionStart2() || isBlockSelected2(clientId) || hasSelectedInnerBlock2(clientId, true);
+ function onSelectionChange(event) {
+ const selection2 = defaultView.getSelection();
+ if (!selection2.rangeCount) {
+ return;
+ }
+ const startNode = extractSelectionStartNode(selection2);
+ const endNode = extractSelectionEndNode(
+ selection2,
+ isTripleClick
+ );
+ if (!node.contains(startNode) || !node.contains(endNode)) {
+ return;
+ }
+ const isClickShift = event.shiftKey && event.type === "mouseup";
+ if (selection2.isCollapsed && !isClickShift) {
+ const collapsedClientId = getBlockClientId(startNode);
+ if (!isMultiSelecting3() && collapsedClientId && // Only keep the wrapper editable when the collapsed
+ // selection is in the block that is actually selected.
+ // A stale native selection may linger in a previously
+ // selected editable root block (e.g. Firefox does not
+ // always move it), which must not re-enable the wrapper
+ // after another block has been selected.
+ collapsedClientId === getSelectedBlockClientId2() && canHostEditableRoot2(collapsedClientId)) {
+ setContentEditableWrapper(node, true);
+ const { activeElement: activeElement2 } = ownerDocument2;
+ if (activeElement2 !== node && activeElement2?.isContentEditable && node.contains(activeElement2) && getBlockClientId(activeElement2) === collapsedClientId) {
+ node.focus();
+ }
+ return;
+ }
+ if (node.contentEditable === "true" && !isMultiSelecting3()) {
+ setContentEditableWrapper(node, false);
+ let element = startNode.nodeType === startNode.ELEMENT_NODE ? startNode : startNode.parentElement;
+ element = element?.closest("[contenteditable]");
+ element?.focus();
+ }
+ return;
+ }
+ let startClientId = getBlockClientId(startNode);
+ let endClientId = getBlockClientId(endNode);
+ if (isClickShift) {
+ const selectedClientId = getBlockSelectionStart2();
+ const clickedClientId = getBlockClientId(event.target);
+ const focusNodeIsNonSelectable = clickedClientId !== endClientId;
+ if (startClientId === endClientId && selection2.isCollapsed || !endClientId || focusNodeIsNonSelectable) {
+ endClientId = clickedClientId;
+ }
+ if (startClientId !== selectedClientId) {
+ startClientId = selectedClientId;
+ }
+ }
+ if (startClientId === void 0 && endClientId === void 0) {
+ setContentEditableWrapper(node, false);
+ return;
+ }
+ if (event.type === "mouseup" && !event.shiftKey && !isMultiSelecting3() && startClientId === endClientId) {
+ const clickedClientId = getBlockClientId(event.target);
+ if (clickedClientId && clickedClientId !== startClientId) {
+ selection2.removeAllRanges();
+ return;
+ }
+ }
+ const isSingularSelection = startClientId === endClientId;
+ if (isSingularSelection) {
+ if (!isMultiSelecting3()) {
+ const richTextElement = !selection2.isCollapsed && (getRichTextElement(startNode) || getRichTextElement(endNode));
+ if (richTextElement && // The rich text instance syncs the selection
+ // itself when its element is editable and owns the
+ // selection (also through a focused editing host).
+ // It may be temporarily non-editable while a drag
+ // that started outside it is in progress (see
+ // rich-text's preventFocusCapture).
+ (richTextElement.contentEditable !== "true" || ownerDocument2.activeElement !== richTextElement && !ownsSelection(richTextElement))) {
+ const range2 = selection2.getRangeAt(0);
+ const richTextData = (0, import_rich_text4.create)({
+ element: richTextElement,
+ range: range2,
+ __unstableIsEditableTree: true
+ });
+ const selectionUpdate = {
+ start: {
+ clientId: startClientId,
+ attributeKey: richTextElement.dataset.wpBlockAttributeKey,
+ offset: richTextData.start ?? 0
+ },
+ end: {
+ clientId: startClientId,
+ attributeKey: richTextElement.dataset.wpBlockAttributeKey,
+ // Clamp the end offset to the element. A
+ // forward selection can overshoot past the
+ // rich text (e.g. a triple click extends
+ // into the next block at offset 0), leaving
+ // `end` undefined; that means the selection
+ // reaches through the end of this element's
+ // content.
+ offset: richTextData.end ?? richTextData.text.length
+ }
+ };
+ const { start: start2, end } = selectionUpdate;
+ const selectionStart = getSelectionStart2();
+ const selectionEnd = getSelectionEnd2();
+ if (selectionStart.clientId !== start2.clientId || selectionEnd.clientId !== end.clientId || selectionStart.attributeKey !== start2.attributeKey || selectionStart.offset !== start2.offset || selectionEnd.offset !== end.offset) {
+ selectionChange2(selectionUpdate);
+ }
+ } else {
+ selectBlock2(startClientId);
+ }
+ } else {
+ multiSelect2(startClientId, startClientId);
+ }
+ } else {
+ const startPath = [
+ ...getBlockParents2(startClientId),
+ startClientId
+ ];
+ const endPath = [
+ ...getBlockParents2(endClientId),
+ endClientId
+ ];
+ const depth = findDepth(startPath, endPath);
+ const isAncestorDescendant = depth >= startPath.length || depth >= endPath.length;
+ if (!isAncestorDescendant && (startPath[depth] !== startClientId || endPath[depth] !== endClientId)) {
+ multiSelect2(startPath[depth], endPath[depth]);
+ return;
+ }
+ const richTextElementStart = getRichTextElement(startNode);
+ const richTextElementEnd = getRichTextElement(endNode);
+ if (richTextElementStart && richTextElementEnd) {
+ const range2 = selection2.getRangeAt(0);
+ const richTextDataStart = (0, import_rich_text4.create)({
+ element: richTextElementStart,
+ range: range2,
+ __unstableIsEditableTree: true
+ });
+ const richTextDataEnd = (0, import_rich_text4.create)({
+ element: richTextElementEnd,
+ range: range2,
+ __unstableIsEditableTree: true
+ });
+ const startOffset = richTextDataStart.start ?? richTextDataStart.end;
+ const endOffset = richTextDataEnd.start ?? richTextDataEnd.end;
+ selectionChange2({
+ start: {
+ clientId: startClientId,
+ attributeKey: richTextElementStart.dataset.wpBlockAttributeKey,
+ offset: startOffset
+ },
+ end: {
+ clientId: endClientId,
+ attributeKey: richTextElementEnd.dataset.wpBlockAttributeKey,
+ offset: endOffset
+ }
+ });
+ } else {
+ multiSelect2(startClientId, endClientId);
+ }
+ }
+ }
+ function ensureMultiBlockSelectionSync(event) {
+ const selection2 = defaultView.getSelection();
+ if (!selection2.rangeCount || selection2.isCollapsed) {
+ return;
+ }
+ const startClientId = getBlockClientId(
+ extractSelectionStartNode(selection2)
+ );
+ const endClientId = getBlockClientId(
+ extractSelectionEndNode(selection2, isTripleClick)
+ );
+ if (startClientId !== endClientId) {
+ onSelectionChange(event);
+ }
+ }
+ ownerDocument2.addEventListener(
+ "selectionchange",
+ onSelectionChange
+ );
+ function onMouseUp(event) {
+ onSelectionChange(event);
+ stopMultiSelect2();
+ }
+ defaultView.addEventListener("mouseup", onMouseUp);
+ node.addEventListener("mousedown", onMouseDown);
+ node.addEventListener("keydown", onKeyDown);
+ ownerDocument2.addEventListener(
+ "copy",
+ ensureMultiBlockSelectionSync,
+ true
+ );
+ ownerDocument2.addEventListener(
+ "cut",
+ ensureMultiBlockSelectionSync,
+ true
+ );
+ ownerDocument2.addEventListener(
+ "paste",
+ ensureMultiBlockSelectionSync,
+ true
+ );
+ return () => {
+ ownerDocument2.removeEventListener(
+ "selectionchange",
+ onSelectionChange
+ );
+ defaultView.removeEventListener("mouseup", onMouseUp);
+ node.removeEventListener("mousedown", onMouseDown);
+ node.removeEventListener("keydown", onKeyDown);
+ ownerDocument2.removeEventListener(
+ "copy",
+ ensureMultiBlockSelectionSync,
+ true
+ );
+ ownerDocument2.removeEventListener(
+ "cut",
+ ensureMultiBlockSelectionSync,
+ true
+ );
+ ownerDocument2.removeEventListener(
+ "paste",
+ ensureMultiBlockSelectionSync,
+ true
+ );
+ };
},
- [clientId]
+ [multiSelect2, selectBlock2, selectionChange2, getBlockParents2]
);
- (0, import_element145.useEffect)(() => {
- if (!isBlockOrDescendantSelected) {
- stopEditingContentOnlySection2();
- }
- }, [isBlockOrDescendantSelected, stopEditingContentOnlySection2]);
- return null;
- }
- function BlockList(settings2) {
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Provider, { value: DEFAULT_BLOCK_EDIT_CONTEXT, children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Root7, { ...settings2 }) });
}
- var EMPTY_ARRAY8 = [];
- var EMPTY_SET2 = /* @__PURE__ */ new Set();
- function Items({
- placeholder,
- rootClientId,
- renderAppender: CustomAppender,
- __experimentalAppenderTagName,
- layout = defaultLayout
- }) {
- const hasAppender = CustomAppender !== false;
- const hasCustomAppender = !!CustomAppender;
+
+ // packages/block-editor/build-module/components/writing-flow/use-click-selection.mjs
+ var import_data47 = __toESM(require_data(), 1);
+ var import_compose31 = __toESM(require_compose(), 1);
+ function useClickSelection() {
+ const { selectBlock: selectBlock2 } = (0, import_data47.useDispatch)(store);
const {
- order,
- isZoomOut: isZoomOut2,
- selectedBlocks,
- visibleBlocks,
- shouldRenderAppender
- } = (0, import_data81.useSelect)(
- (select3) => {
- const {
- getSettings: getSettings7,
- getBlockOrder: getBlockOrder2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- __unstableGetVisibleBlocks: __unstableGetVisibleBlocks2,
- getTemplateLock: getTemplateLock2,
- getBlockEditingMode: getBlockEditingMode2,
- isSectionBlock: isSectionBlock2,
- isContainerInsertableToInContentOnlyMode: isContainerInsertableToInContentOnlyMode2,
- getBlockName: getBlockName2,
- isZoomOut: _isZoomOut,
- canInsertBlockType: canInsertBlockType2
- } = unlock(select3(store));
- const _order = getBlockOrder2(rootClientId);
- if (getSettings7().isPreviewMode) {
- return {
- order: _order,
- selectedBlocks: EMPTY_ARRAY8,
- visibleBlocks: EMPTY_SET2
- };
+ isSelectionEnabled: isSelectionEnabled3,
+ getBlockSelectionStart: getBlockSelectionStart2,
+ getSelectionStart: getSelectionStart2,
+ hasMultiSelection: hasMultiSelection2
+ } = (0, import_data47.useSelect)(store);
+ return (0, import_compose31.useRefEffect)(
+ (node) => {
+ function onMouseDown(event) {
+ if (!isSelectionEnabled3() || event.button !== 0) {
+ return;
+ }
+ const startClientId = getBlockSelectionStart2();
+ const clickedClientId = getBlockClientId(event.target);
+ if (event.shiftKey) {
+ if (startClientId && startClientId !== clickedClientId) {
+ const { clientId, attributeKey } = getSelectionStart2();
+ setContentEditableWrapper(node, true, {
+ focus: !!attributeKey
+ });
+ const { ownerDocument: ownerDocument2 } = node;
+ const selection2 = ownerDocument2.defaultView.getSelection();
+ const blockElement = !attributeKey && ownerDocument2.getElementById(
+ `block-${clientId}`
+ );
+ if (blockElement && !(selection2.anchorNode && blockElement.contains(selection2.anchorNode))) {
+ const isForward = (
+ // eslint-disable-next-line no-bitwise
+ blockElement.compareDocumentPosition(
+ event.target
+ ) & node.DOCUMENT_POSITION_FOLLOWING
+ );
+ selection2.setPosition(
+ blockElement,
+ isForward ? 0 : blockElement.childNodes.length
+ );
+ }
+ }
+ } else if (hasMultiSelection2()) {
+ selectBlock2(clickedClientId);
+ }
}
- const selectedBlockClientIds = getSelectedBlockClientIds2();
- const selectedBlockClientId = selectedBlockClientIds[0];
- const showRootAppender = !rootClientId && !selectedBlockClientId && (!_order.length || !canInsertBlockType2(
- (0, import_blocks46.getDefaultBlockName)(),
- rootClientId
- ));
- const hasSelectedRoot = !!(rootClientId && selectedBlockClientId && rootClientId === selectedBlockClientId);
- const templateLock = getTemplateLock2(rootClientId);
- return {
- order: _order,
- selectedBlocks: selectedBlockClientIds,
- visibleBlocks: __unstableGetVisibleBlocks2(),
- isZoomOut: _isZoomOut(),
- shouldRenderAppender: (!isSectionBlock2(rootClientId) || isContainerInsertableToInContentOnlyMode2(
- getBlockName2(selectedBlockClientId),
- rootClientId
- )) && getBlockEditingMode2(rootClientId) !== "disabled" && (!templateLock || templateLock === "contentOnly") && hasAppender && !_isZoomOut() && (hasCustomAppender || hasSelectedRoot || showRootAppender)
+ node.addEventListener("mousedown", onMouseDown);
+ return () => {
+ node.removeEventListener("mousedown", onMouseDown);
};
},
- [rootClientId, hasAppender, hasCustomAppender]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(LayoutProvider, { value: layout, children: [
- order.map((clientId) => /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
- import_data81.AsyncModeProvider,
- {
- value: (
- // Only provide data asynchronously if the block is
- // not visible and not selected.
- !visibleBlocks.has(clientId) && !selectedBlocks.includes(clientId)
- ),
- children: [
- isZoomOut2 && /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
- ZoomOutSeparator,
- {
- clientId,
- rootClientId,
- position: "top"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
- block_default2,
- {
- rootClientId,
- clientId
- }
- ),
- isZoomOut2 && /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
- ZoomOutSeparator,
- {
- clientId,
- rootClientId,
- position: "bottom"
- }
- )
- ]
- },
- clientId
- )),
- order.length < 1 && placeholder,
- shouldRenderAppender && /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
- BlockListAppender,
- {
- tagName: __experimentalAppenderTagName,
- rootClientId,
- CustomAppender
- }
- )
- ] });
- }
- function BlockListItems(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(import_data81.AsyncModeProvider, { value: false, children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Items, { ...props }) });
- }
-
- // packages/block-editor/build-module/components/block-tools/index.mjs
- var import_data123 = __toESM(require_data(), 1);
- var import_dom60 = __toESM(require_dom(), 1);
- var import_components115 = __toESM(require_components(), 1);
- var import_keyboard_shortcuts10 = __toESM(require_keyboard_shortcuts(), 1);
- var import_element180 = __toESM(require_element(), 1);
- var import_blocks75 = __toESM(require_blocks(), 1);
- var import_a11y12 = __toESM(require_a11y(), 1);
- var import_i18n103 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/block-tools/use-block-toolbar-popover-props.mjs
- var import_compose62 = __toESM(require_compose(), 1);
- var import_data86 = __toESM(require_data(), 1);
- var import_dom56 = __toESM(require_dom(), 1);
- var import_element153 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/hooks/position.mjs
- var import_i18n72 = __toESM(require_i18n(), 1);
- var import_blocks48 = __toESM(require_blocks(), 1);
- var import_compose61 = __toESM(require_compose(), 1);
- var import_data85 = __toESM(require_data(), 1);
- var import_element152 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/inspector-controls/fill.mjs
- var import_components70 = __toESM(require_components(), 1);
- var import_warning5 = __toESM(require_warning(), 1);
- var import_deprecated10 = __toESM(require_deprecated(), 1);
- var import_element148 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/inspector-controls/groups.mjs
- var import_components68 = __toESM(require_components(), 1);
- var InspectorControlsDefault = (0, import_components68.createSlotFill)("InspectorControls");
- var InspectorControlsAdvanced = (0, import_components68.createSlotFill)("InspectorAdvancedControls");
- var InspectorControlsBindings = (0, import_components68.createSlotFill)("InspectorControlsBindings");
- var InspectorControlsBackground = (0, import_components68.createSlotFill)(
- "InspectorControlsBackground"
- );
- var InspectorControlsBorder = (0, import_components68.createSlotFill)("InspectorControlsBorder");
- var InspectorControlsColor = (0, import_components68.createSlotFill)("InspectorControlsColor");
- var InspectorControlsFilter = (0, import_components68.createSlotFill)("InspectorControlsFilter");
- var InspectorControlsDimensions = (0, import_components68.createSlotFill)(
- "InspectorControlsDimensions"
- );
- var InspectorControlsLayout = (0, import_components68.createSlotFill)("InspectorControlsLayout");
- var InspectorControlsElements = (0, import_components68.createSlotFill)("InspectorControlsElements");
- var InspectorControlsPosition = (0, import_components68.createSlotFill)("InspectorControlsPosition");
- var InspectorControlsTypography = (0, import_components68.createSlotFill)(
- "InspectorControlsTypography"
- );
- var InspectorControlsListView = (0, import_components68.createSlotFill)("InspectorControlsListView");
- var InspectorControlsStyles = (0, import_components68.createSlotFill)("InspectorControlsStyles");
- var InspectorControlsEffects = (0, import_components68.createSlotFill)("InspectorControlsEffects");
- var InspectorControlsContent = (0, import_components68.createSlotFill)("InspectorControlsContent");
- var groups = {
- default: InspectorControlsDefault,
- advanced: InspectorControlsAdvanced,
- background: InspectorControlsBackground,
- bindings: InspectorControlsBindings,
- border: InspectorControlsBorder,
- color: InspectorControlsColor,
- content: InspectorControlsContent,
- dimensions: InspectorControlsDimensions,
- effects: InspectorControlsEffects,
- elements: InspectorControlsElements,
- filter: InspectorControlsFilter,
- layout: InspectorControlsLayout,
- list: InspectorControlsListView,
- position: InspectorControlsPosition,
- settings: InspectorControlsDefault,
- // Alias for default.
- styles: InspectorControlsStyles,
- typography: InspectorControlsTypography
- };
- var groups_default = groups;
- var PrivateInspectorControlsAllowedBlocks = (0, import_components68.createSlotFill)(
- /* @__PURE__ */ Symbol("PrivateInspectorControlsAllowedBlocks")
- );
-
- // packages/block-editor/build-module/hooks/block-style-state.mjs
- var import_element146 = __toESM(require_element(), 1);
- var DEFAULT_STATE_VALUE2 = "default";
- var DEFAULT_BLOCK_STYLE_STATE2 = {
- viewport: DEFAULT_STATE_VALUE2,
- pseudo: DEFAULT_STATE_VALUE2
- };
- var BlockStyleStateContext = (0, import_element146.createContext)(DEFAULT_BLOCK_STYLE_STATE2);
- var BlockStyleStateProvider = BlockStyleStateContext.Provider;
- function useBlockStyleState() {
- return (0, import_element146.useContext)(BlockStyleStateContext);
- }
- function hasViewportBlockStyleState(selectedState) {
- return !!selectedState?.viewport && selectedState.viewport !== DEFAULT_STATE_VALUE2;
- }
- function hasPseudoBlockStyleState(selectedState) {
- return !!selectedState?.pseudo && selectedState.pseudo !== DEFAULT_STATE_VALUE2;
- }
- function isDefaultBlockStyleState2(selectedState) {
- return !hasViewportBlockStyleState(selectedState) && !hasPseudoBlockStyleState(selectedState);
- }
- function getStyleStatePath2(selectedState) {
- if (isDefaultBlockStyleState2(selectedState)) {
- return [];
- }
- return [selectedState.viewport, selectedState.pseudo].filter(
- (state) => state && state !== DEFAULT_STATE_VALUE2
+ [
+ selectBlock2,
+ isSelectionEnabled3,
+ getBlockSelectionStart2,
+ getSelectionStart2,
+ hasMultiSelection2
+ ]
);
}
- function getStyleForState2(style, selectedState) {
- const path = getStyleStatePath2(selectedState);
- if (!path.length) {
- return style;
- }
- return getValueFromObjectPath2(style, path);
- }
- function setStyleForState(style, selectedState, newStyle) {
- const path = getStyleStatePath2(selectedState);
- if (!path.length) {
- return cleanEmptyObject(newStyle);
- }
- return cleanEmptyObject(setImmutably2(style, path, newStyle));
- }
- function scopeResetAllFilterToState(selectedState, resetAllFilter) {
- if (!resetAllFilter || isDefaultBlockStyleState2(selectedState)) {
- return resetAllFilter;
- }
- return (attributes) => {
- const existingStateStyle = getStyleForState2(attributes?.style, selectedState) || {};
- const updatedStateAttributes = resetAllFilter({
- style: existingStateStyle
- });
- const updatedStateStyle = updatedStateAttributes && typeof updatedStateAttributes === "object" && !Array.isArray(updatedStateAttributes) && Object.prototype.hasOwnProperty.call(
- updatedStateAttributes,
- "style"
- ) ? updatedStateAttributes.style : updatedStateAttributes;
- return {
- style: setStyleForState(
- attributes?.style,
- selectedState,
- updatedStateStyle
- )
- };
- };
- }
- // packages/block-editor/build-module/components/inspector-controls/list-view-content-popover.mjs
- var import_components69 = __toESM(require_components(), 1);
- var import_element147 = __toESM(require_element(), 1);
- var import_compose59 = __toESM(require_compose(), 1);
- var import_data82 = __toESM(require_data(), 1);
- var import_jsx_runtime272 = __toESM(require_jsx_runtime(), 1);
- var LIST_VIEW_CONTENT_PANEL_SLOT = /* @__PURE__ */ Symbol("ListViewContentPopover");
- var { Fill, Slot: Slot2 } = (0, import_components69.createSlotFill)(LIST_VIEW_CONTENT_PANEL_SLOT);
- function useInspectorPopoverPlacement() {
- const isMobile = (0, import_compose59.useViewportMatch)("medium", "<");
- return !isMobile ? {
- popoverProps: {
- placement: "left-start",
- offset: 35,
- resize: false
- }
- } : {};
- }
- function ListViewContentPopover({ listViewRef }) {
- const { popoverProps: popoverProps3 } = useInspectorPopoverPlacement();
- const fills = (0, import_components69.__experimentalUseSlotFills)(LIST_VIEW_CONTENT_PANEL_SLOT);
- const hasFills = Boolean(fills && fills.length);
- const { selectedClientId, isOpen } = (0, import_data82.useSelect)((select3) => {
- const { getSelectedBlockClientId: getSelectedBlockClientId2 } = select3(store);
- const privateSelectors = unlock(select3(store));
- return {
- selectedClientId: getSelectedBlockClientId2(),
- isOpen: privateSelectors.isListViewContentPanelOpen()
- };
- }, []);
- const [anchorElement, setAnchorElement] = (0, import_element147.useState)(null);
- (0, import_element147.useLayoutEffect)(() => {
- if (!selectedClientId || !listViewRef?.current) {
- setAnchorElement(null);
- return;
- }
- const element = listViewRef.current.querySelector(
- `[data-block="${selectedClientId}"]`
- );
- setAnchorElement(element);
- }, [selectedClientId, listViewRef]);
- const { closeListViewContentPanel: closeListViewContentPanel2 } = unlock(
- (0, import_data82.useDispatch)(store)
- );
- if (!isOpen || !hasFills || !anchorElement) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
- import_components69.Popover,
- {
- ...popoverProps3 ?? {},
- className: "block-editor-inspector-list-view-content-popover",
- anchor: anchorElement,
- onClose: closeListViewContentPanel2,
- children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("div", { style: { width: "280px" }, children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(Slot2, {}) })
- }
- );
- }
-
- // packages/block-editor/build-module/components/inspector-controls/fill.mjs
- var import_jsx_runtime273 = __toESM(require_jsx_runtime(), 1);
- var PATTERN_EDITING_GROUPS = ["content", "list"];
- function InspectorControlsFill({
- children,
- group = "default",
- __experimentalGroup,
- resetAllFilter
- }) {
- if (__experimentalGroup) {
- (0, import_deprecated10.default)(
- "`__experimentalGroup` property in `InspectorControlsFill`",
- {
- since: "6.2",
- version: "6.4",
- alternative: "`group`"
+ // packages/block-editor/build-module/components/writing-flow/use-input.mjs
+ var import_data48 = __toESM(require_data(), 1);
+ var import_compose32 = __toESM(require_compose(), 1);
+ var import_keycodes7 = __toESM(require_keycodes(), 1);
+ var import_blocks30 = __toESM(require_blocks(), 1);
+ function useInput() {
+ const {
+ __unstableIsFullySelected: __unstableIsFullySelected2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ __unstableIsSelectionMergeable: __unstableIsSelectionMergeable2,
+ hasMultiSelection: hasMultiSelection2,
+ getBlockName: getBlockName2,
+ canInsertBlockType: canInsertBlockType2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getSelectionStart: getSelectionStart2,
+ getSelectionEnd: getSelectionEnd2,
+ getBlockAttributes: getBlockAttributes3
+ } = (0, import_data48.useSelect)(store);
+ const {
+ replaceBlocks: replaceBlocks2,
+ __unstableSplitSelection: __unstableSplitSelection2,
+ removeBlocks: removeBlocks2,
+ __unstableDeleteSelection: __unstableDeleteSelection2,
+ __unstableExpandSelection: __unstableExpandSelection2,
+ __unstableMarkAutomaticChange: __unstableMarkAutomaticChange2
+ } = (0, import_data48.useDispatch)(store);
+ return (0, import_compose32.useRefEffect)((node) => {
+ function onBeforeInput(event) {
+ if (node.contentEditable !== "true") {
+ return;
+ }
+ if (hasMultiSelection2()) {
+ event.preventDefault();
+ return;
+ }
+ const selection2 = node.ownerDocument.defaultView.getSelection();
+ if (!getSelectionEditableElement(selection2, node)) {
+ event.preventDefault();
}
- );
- group = __experimentalGroup;
- }
- const context = useBlockEditContext();
- const Fill5 = groups_default[group]?.Fill;
- if (!Fill5) {
- (0, import_warning5.default)(`Unknown InspectorControls group "${group}" provided.`);
- return null;
- }
- if (context[mayDisplayPatternEditingControlsKey]) {
- const isTemplatePart9 = context.name === "core/template-part";
- const isPatternEditingGroup = PATTERN_EDITING_GROUPS.includes(group);
- const canShowGroup = isTemplatePart9 || isPatternEditingGroup;
- if (!canShowGroup) {
- return null;
}
- }
- if (!context[mayDisplayPatternEditingControlsKey] && !context[mayDisplayControlsKey]) {
- return null;
- }
- if (group === "content" && !!context[isInListViewBlockSupportTreeKey] && !!context[mayDisplayPatternEditingControlsKey]) {
- if (context[mayDisplayControlsKey]) {
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(import_components70.__experimentalStyleProvider, { document, children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Fill, { children }) });
+ function onKeyDown(event) {
+ if (event.defaultPrevented) {
+ return;
+ }
+ if (!hasMultiSelection2()) {
+ if (event.keyCode === import_keycodes7.ENTER) {
+ if (event.shiftKey || __unstableIsFullySelected2()) {
+ return;
+ }
+ const clientId = getSelectedBlockClientId2();
+ const blockName = getBlockName2(clientId);
+ const selectionStart = getSelectionStart2();
+ const selectionEnd = getSelectionEnd2();
+ if (selectionStart.attributeKey === selectionEnd.attributeKey) {
+ const selectedAttributeValue = getBlockAttributes3(clientId)[selectionStart.attributeKey];
+ const transforms = (0, import_blocks30.getBlockTransforms)("from").filter(
+ ({ type }) => type === "enter"
+ );
+ const transformation = (0, import_blocks30.findTransform)(
+ transforms,
+ (item) => {
+ return item.regExp.test(
+ selectedAttributeValue
+ );
+ }
+ );
+ if (transformation) {
+ replaceBlocks2(
+ clientId,
+ transformation.transform({
+ content: selectedAttributeValue
+ })
+ );
+ __unstableMarkAutomaticChange2();
+ return;
+ }
+ }
+ if (!(0, import_blocks30.hasBlockSupport)(blockName, "splitting", false) && !event.__deprecatedOnSplit) {
+ return;
+ }
+ if (canInsertBlockType2(
+ (0, import_blocks30.getDefaultBlockName)(),
+ getBlockRootClientId2(clientId)
+ ) || canInsertBlockType2(
+ blockName,
+ getBlockRootClientId2(clientId)
+ )) {
+ __unstableSplitSelection2();
+ event.preventDefault();
+ }
+ }
+ return;
+ }
+ if (event.keyCode === import_keycodes7.ENTER) {
+ setContentEditableWrapper(node, false);
+ event.preventDefault();
+ if (__unstableIsFullySelected2()) {
+ replaceBlocks2(
+ getSelectedBlockClientIds2(),
+ (0, import_blocks30.createBlock)((0, import_blocks30.getDefaultBlockName)())
+ );
+ } else {
+ __unstableSplitSelection2();
+ }
+ } else if (event.keyCode === import_keycodes7.BACKSPACE || event.keyCode === import_keycodes7.DELETE) {
+ setContentEditableWrapper(node, false);
+ event.preventDefault();
+ if (__unstableIsFullySelected2()) {
+ removeBlocks2(getSelectedBlockClientIds2());
+ } else if (__unstableIsSelectionMergeable2()) {
+ __unstableDeleteSelection2(event.keyCode === import_keycodes7.DELETE);
+ } else {
+ __unstableExpandSelection2();
+ }
+ } else if (
+ // If key.length is longer than 1, it's a control key that doesn't
+ // input anything.
+ event.key.length === 1 && !(event.metaKey || event.ctrlKey)
+ ) {
+ setContentEditableWrapper(node, false);
+ if (__unstableIsSelectionMergeable2()) {
+ __unstableDeleteSelection2(event.keyCode === import_keycodes7.DELETE);
+ } else {
+ event.preventDefault();
+ node.ownerDocument.defaultView.getSelection().removeAllRanges();
+ }
+ }
}
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(import_components70.__experimentalStyleProvider, { document, children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Fill5, { children: (fillProps) => {
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
- ToolsPanelInspectorControl,
- {
- fillProps,
- children,
- resetAllFilter
+ function onCompositionStart(event) {
+ if (!hasMultiSelection2()) {
+ return;
+ }
+ setContentEditableWrapper(node, false);
+ if (__unstableIsSelectionMergeable2()) {
+ __unstableDeleteSelection2();
+ } else {
+ event.preventDefault();
+ node.ownerDocument.defaultView.getSelection().removeAllRanges();
}
- );
- } }) });
- }
- function RegisterResetAll({ resetAllFilter, children }) {
- const { registerResetAllFilter, deregisterResetAllFilter } = (0, import_element148.useContext)(import_components70.__experimentalToolsPanelContext);
- const selectedState = useBlockStyleState();
- const scopedResetAllFilter = (0, import_element148.useMemo)(
- () => scopeResetAllFilterToState(selectedState, resetAllFilter),
- [resetAllFilter, selectedState]
- );
- (0, import_element148.useEffect)(() => {
- if (scopedResetAllFilter && registerResetAllFilter && deregisterResetAllFilter) {
- registerResetAllFilter(scopedResetAllFilter);
- return () => {
- deregisterResetAllFilter(scopedResetAllFilter);
- };
}
- }, [
- scopedResetAllFilter,
- registerResetAllFilter,
- deregisterResetAllFilter
- ]);
- return children;
- }
- function ToolsPanelInspectorControl({ children, resetAllFilter, fillProps }) {
- const { forwardedContext = [] } = fillProps;
- const innerMarkup = /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(RegisterResetAll, { resetAllFilter, children });
- return forwardedContext.reduce(
- (inner, [Provider3, props]) => /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Provider3, { ...props, children: inner }),
- innerMarkup
- );
+ node.addEventListener("beforeinput", onBeforeInput);
+ node.addEventListener("keydown", onKeyDown);
+ node.addEventListener("compositionstart", onCompositionStart);
+ return () => {
+ node.removeEventListener("beforeinput", onBeforeInput);
+ node.removeEventListener("keydown", onKeyDown);
+ node.removeEventListener("compositionstart", onCompositionStart);
+ };
+ }, []);
}
- // packages/block-editor/build-module/components/inspector-controls/slot.mjs
- var import_components73 = __toESM(require_components(), 1);
- var import_element151 = __toESM(require_element(), 1);
- var import_warning6 = __toESM(require_warning(), 1);
- var import_deprecated11 = __toESM(require_deprecated(), 1);
-
- // packages/block-editor/build-module/components/inspector-controls/block-support-tools-panel.mjs
- var import_components71 = __toESM(require_components(), 1);
- var import_data83 = __toESM(require_data(), 1);
- var import_element149 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/global-styles/utils.mjs
- var import_compose60 = __toESM(require_compose(), 1);
- function useToolsPanelDropdownMenuProps() {
- const isMobile = (0, import_compose60.useViewportMatch)("medium", "<");
- return !isMobile ? {
- popoverProps: {
- placement: "left-start",
- // For non-mobile, inner sidebar width (248px) - button width (24px) - border (1px) + padding (16px) + spacing (20px)
- offset: 259
- }
- } : {};
- }
- function scopeSelector2(scope, selector3) {
- if (!scope || !selector3) {
- return selector3;
- }
- const scopes = scope.split(",");
- const selectors4 = selector3.split(",");
- const selectorsScoped = [];
- scopes.forEach((outer) => {
- selectors4.forEach((inner) => {
- selectorsScoped.push(`${outer.trim()} ${inner.trim()}`);
- });
- });
- return selectorsScoped.join(", ");
- }
+ // packages/block-editor/build-module/components/writing-flow/use-clipboard-handler.mjs
+ var import_blocks32 = __toESM(require_blocks(), 1);
+ var import_dom50 = __toESM(require_dom(), 1);
+ var import_data50 = __toESM(require_data(), 1);
+ var import_compose33 = __toESM(require_compose(), 1);
- // packages/block-editor/build-module/components/inspector-controls/block-support-tools-panel.mjs
- var import_jsx_runtime274 = __toESM(require_jsx_runtime(), 1);
- function BlockSupportToolsPanel({ children, group, label }) {
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data83.useDispatch)(store);
- const {
- getBlockAttributes: getBlockAttributes3,
- getBlockName: getBlockName2,
- getMultiSelectedBlockClientIds: getMultiSelectedBlockClientIds2,
- getSelectedBlockClientId: getSelectedBlockClientId2,
- hasMultiSelection: hasMultiSelection2
- } = (0, import_data83.useSelect)(store);
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- const panelId = getSelectedBlockClientId2();
- const resetAll = (0, import_element149.useCallback)(
- (resetFilters = []) => {
- const newAttributes = {};
- const clientIds = hasMultiSelection2() ? getMultiSelectedBlockClientIds2() : [panelId];
- clientIds.forEach((clientId) => {
- const blockAttributes = getBlockAttributes3(clientId) || {};
- const { style } = blockAttributes;
- let newBlockAttributes = { style };
- const resetContext = {
- attributes: blockAttributes,
- clientId,
- name: getBlockName2(clientId)
- };
- resetFilters.forEach((resetFilter) => {
- newBlockAttributes = {
- ...newBlockAttributes,
- ...resetFilter(newBlockAttributes, resetContext)
- };
- });
- newBlockAttributes = {
- ...newBlockAttributes,
- style: cleanEmptyObject(newBlockAttributes.style)
- };
- newAttributes[clientId] = newBlockAttributes;
+ // packages/block-editor/build-module/utils/use-notify-copy.mjs
+ var import_element104 = __toESM(require_element(), 1);
+ var import_blocks31 = __toESM(require_blocks(), 1);
+ var import_data49 = __toESM(require_data(), 1);
+ var import_i18n40 = __toESM(require_i18n(), 1);
+ var import_notices4 = __toESM(require_notices(), 1);
+ function useNotifyCopy() {
+ const { getBlockName: getBlockName2 } = (0, import_data49.useSelect)(store);
+ const { getBlockType: getBlockType33 } = (0, import_data49.useSelect)(import_blocks31.store);
+ const { createSuccessNotice } = (0, import_data49.useDispatch)(import_notices4.store);
+ return (0, import_element104.useCallback)(
+ (eventType, selectedBlockClientIds) => {
+ let notice = "";
+ if (eventType === "copyStyles") {
+ notice = (0, import_i18n40.__)("Styles copied to clipboard.");
+ } else if (selectedBlockClientIds.length === 1) {
+ const clientId = selectedBlockClientIds[0];
+ const title = getBlockType33(getBlockName2(clientId))?.title;
+ if (eventType === "copy") {
+ notice = (0, import_i18n40.sprintf)(
+ // Translators: %s: Name of the block being copied, e.g. "Paragraph".
+ (0, import_i18n40.__)('Copied "%s" to clipboard.'),
+ title
+ );
+ } else {
+ notice = (0, import_i18n40.sprintf)(
+ // Translators: %s: Name of the block being cut, e.g. "Paragraph".
+ (0, import_i18n40.__)('Moved "%s" to clipboard.'),
+ title
+ );
+ }
+ } else if (eventType === "copy") {
+ notice = (0, import_i18n40.sprintf)(
+ // Translators: %d: Number of blocks being copied.
+ (0, import_i18n40._n)(
+ "Copied %d block to clipboard.",
+ "Copied %d blocks to clipboard.",
+ selectedBlockClientIds.length
+ ),
+ selectedBlockClientIds.length
+ );
+ } else {
+ notice = (0, import_i18n40.sprintf)(
+ // Translators: %d: Number of blocks being moved.
+ (0, import_i18n40._n)(
+ "Moved %d block to clipboard.",
+ "Moved %d blocks to clipboard.",
+ selectedBlockClientIds.length
+ ),
+ selectedBlockClientIds.length
+ );
+ }
+ createSuccessNotice(notice, {
+ type: "snackbar"
});
- updateBlockAttributes2(clientIds, newAttributes, true);
- },
- [
- getBlockAttributes3,
- getBlockName2,
- getMultiSelectedBlockClientIds2,
- hasMultiSelection2,
- panelId,
- updateBlockAttributes2
- ]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
- import_components71.__experimentalToolsPanel,
- {
- className: `${group}-block-support-panel`,
- label,
- resetAll,
- panelId,
- hasInnerWrapper: true,
- shouldRenderPlaceholderItems: true,
- __experimentalFirstVisibleItemClass: "first",
- __experimentalLastVisibleItemClass: "last",
- dropdownMenuProps,
- children
},
- panelId
+ [createSuccessNotice, getBlockName2, getBlockType33]
);
}
- // packages/block-editor/build-module/components/inspector-controls/block-support-slot-container.mjs
- var import_components72 = __toESM(require_components(), 1);
- var import_element150 = __toESM(require_element(), 1);
- var import_jsx_runtime275 = __toESM(require_jsx_runtime(), 1);
- function BlockSupportSlotContainer({
- Slot: Slot10,
- fillProps,
- ...props
- }) {
- const toolsPanelContext = (0, import_element150.useContext)(import_components72.__experimentalToolsPanelContext);
- const computedFillProps = (0, import_element150.useMemo)(
- () => ({
- ...fillProps ?? {},
- forwardedContext: [
- ...fillProps?.forwardedContext ?? [],
- [import_components72.__experimentalToolsPanelContext.Provider, { value: toolsPanelContext }]
- ]
- }),
- [toolsPanelContext, fillProps]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(Slot10, { ...props, fillProps: computedFillProps, bubblesVirtually: true });
+ // packages/block-editor/build-module/components/writing-flow/use-clipboard-handler.mjs
+ function isBlockEntirelySelected(ownerDocument2, clientId) {
+ const selection2 = ownerDocument2.defaultView.getSelection();
+ if (getBlockClientId(selection2.anchorNode) !== clientId) {
+ return false;
+ }
+ const blockElement = ownerDocument2.getElementById(`block-${clientId}`);
+ return !!blockElement?.isContentEditable && (0, import_dom50.isEntirelySelected)(blockElement);
}
-
- // packages/block-editor/build-module/components/inspector-controls/slot.mjs
- var import_jsx_runtime276 = __toESM(require_jsx_runtime(), 1);
- function InspectorControlsSlot({ __experimentalGroup, group = "default", label, fillProps, ...props }, ref) {
- if (__experimentalGroup) {
- (0, import_deprecated11.default)(
- "`__experimentalGroup` property in `InspectorControlsSlot`",
- {
- since: "6.2",
- version: "6.4",
- alternative: "`group`"
+ function useClipboardHandler() {
+ const registry = (0, import_data50.useRegistry)();
+ const {
+ getBlocksByClientId: getBlocksByClientId2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ hasMultiSelection: hasMultiSelection2,
+ getSettings: getSettings8,
+ getBlockName: getBlockName2,
+ __unstableIsFullySelected: __unstableIsFullySelected2,
+ __unstableIsSelectionCollapsed: __unstableIsSelectionCollapsed2,
+ __unstableIsSelectionMergeable: __unstableIsSelectionMergeable2,
+ __unstableGetSelectedBlocksWithPartialSelection: __unstableGetSelectedBlocksWithPartialSelection2,
+ canInsertBlockType: canInsertBlockType2,
+ getBlockRootClientId: getBlockRootClientId2
+ } = (0, import_data50.useSelect)(store);
+ const {
+ flashBlock: flashBlock2,
+ removeBlocks: removeBlocks2,
+ replaceBlocks: replaceBlocks2,
+ __unstableDeleteSelection: __unstableDeleteSelection2,
+ __unstableExpandSelection: __unstableExpandSelection2,
+ __unstableSplitSelection: __unstableSplitSelection2
+ } = (0, import_data50.useDispatch)(store);
+ const notifyCopy = useNotifyCopy();
+ return (0, import_compose33.useRefEffect)((node) => {
+ function handler(event) {
+ if (event.defaultPrevented) {
+ return;
}
- );
- group = __experimentalGroup;
- }
- const slotFill = groups_default[group];
- const fills = (0, import_components73.__experimentalUseSlotFills)(slotFill?.name);
- if (!slotFill) {
- (0, import_warning6.default)(`Unknown InspectorControls group "${group}" provided.`);
- return null;
- }
- if (!fills?.length) {
- return null;
- }
- const { Slot: Slot10 } = slotFill;
- if (label) {
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(BlockSupportToolsPanel, { group, label, children: /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
- BlockSupportSlotContainer,
- {
- ...props,
- fillProps,
- Slot: Slot10
+ const selectedBlockClientIds = getSelectedBlockClientIds2();
+ if (selectedBlockClientIds.length === 0) {
+ return;
}
- ) });
- }
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
- Slot10,
- {
- ...props,
- ref,
- fillProps,
- bubblesVirtually: true
- }
- );
- }
- var slot_default = (0, import_element151.forwardRef)(InspectorControlsSlot);
-
- // packages/block-editor/build-module/components/inspector-controls/index.mjs
- var import_jsx_runtime277 = __toESM(require_jsx_runtime(), 1);
- var InspectorControls = InspectorControlsFill;
- InspectorControls.Slot = slot_default;
- var InspectorAdvancedControls = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(InspectorControlsFill, { ...props, group: "advanced" });
- };
- InspectorAdvancedControls.Slot = function Slot3(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(slot_default, { ...props, group: "advanced" });
- };
- InspectorAdvancedControls.slotName = "InspectorAdvancedControls";
- var inspector_controls_default = InspectorControls;
-
- // packages/block-editor/build-module/components/use-block-display-information/index.mjs
- var import_data84 = __toESM(require_data(), 1);
- var import_blocks47 = __toESM(require_blocks(), 1);
- var import_i18n71 = __toESM(require_i18n(), 1);
- function getPositionTypeLabel(attributes) {
- const positionType = attributes?.style?.position?.type;
- if (positionType === "sticky") {
- return (0, import_i18n71.__)("Sticky");
- }
- if (positionType === "fixed") {
- return (0, import_i18n71.__)("Fixed");
- }
- return null;
- }
- function useBlockDisplayInformation(clientId) {
- return (0, import_data84.useSelect)(
- (select3) => {
- if (!clientId) {
- return null;
+ const isWholeSingleBlockCopy = event.type === "copy" && !hasMultiSelection2() && isBlockEntirelySelected(
+ event.target.ownerDocument,
+ selectedBlockClientIds[0]
+ );
+ if (!hasMultiSelection2()) {
+ const { ownerDocument: ownerDocument2 } = event.target;
+ const hasSelection = event.type === "copy" || event.type === "cut" ? (0, import_dom50.documentHasUncollapsedSelection)(ownerDocument2) : (0, import_dom50.documentHasSelection)(ownerDocument2) && !ownerDocument2.activeElement.isContentEditable;
+ if (hasSelection && !isWholeSingleBlockCopy) {
+ return;
+ }
}
- const blockEditorSelect = select3(store);
- const {
- getBlockName: getBlockName2,
- getBlockAttributes: getBlockAttributes3,
- getBlock: getBlock2,
- __experimentalGetParsedPattern: __experimentalGetParsedPattern2
- } = blockEditorSelect;
- const { getBlockType: getBlockType30, getActiveBlockVariation } = select3(import_blocks47.store);
- const blockName = getBlockName2(clientId);
- const blockType = getBlockType30(blockName);
- if (!blockType) {
- return null;
+ const { activeElement: activeElement2 } = event.target.ownerDocument;
+ if (!node.contains(activeElement2)) {
+ return;
}
- const attributes = getBlockAttributes3(clientId);
- const { isSectionBlock: isSectionBlock2 } = unlock(blockEditorSelect);
- const patternName = attributes?.metadata?.patternName;
- if (patternName && isSectionBlock2(clientId)) {
- const pattern = __experimentalGetParsedPattern2(patternName);
- const positionLabel2 = getPositionTypeLabel(attributes);
- return {
- isSynced: false,
- title: (0, import_i18n71.__)("Pattern"),
- icon: symbol_default,
- description: pattern?.description || (0, import_i18n71.__)("A block pattern."),
- anchor: attributes?.anchor,
- positionLabel: positionLabel2,
- positionType: attributes?.style?.position?.type,
- name: pattern?.title || attributes?.metadata?.name
- };
+ const isSelectionMergeable = __unstableIsSelectionMergeable2();
+ const shouldHandleWholeBlocks = __unstableIsSelectionCollapsed2() || __unstableIsFullySelected2() || isWholeSingleBlockCopy;
+ const expandSelectionIsNeeded = !shouldHandleWholeBlocks && !isSelectionMergeable;
+ if (event.type === "copy" || event.type === "cut") {
+ event.preventDefault();
+ if (selectedBlockClientIds.length === 1) {
+ flashBlock2(selectedBlockClientIds[0]);
+ }
+ if (expandSelectionIsNeeded) {
+ __unstableExpandSelection2();
+ } else {
+ notifyCopy(event.type, selectedBlockClientIds);
+ let blocks2;
+ if (shouldHandleWholeBlocks) {
+ blocks2 = getBlocksByClientId2(selectedBlockClientIds);
+ } else {
+ const [head, tail] = __unstableGetSelectedBlocksWithPartialSelection2();
+ const inBetweenBlocks = getBlocksByClientId2(
+ selectedBlockClientIds.slice(
+ 1,
+ selectedBlockClientIds.length - 1
+ )
+ );
+ blocks2 = [head, ...inBetweenBlocks, tail];
+ }
+ setClipboardBlocks(event, blocks2, registry);
+ }
}
- const match2 = getActiveBlockVariation(
- blockName,
- attributes,
- void 0,
- getBlock2?.(clientId)?.innerContent
- );
- const isSynced = (0, import_blocks47.isReusableBlock)(blockType) || (0, import_blocks47.isTemplatePart)(blockType);
- const syncedTitle = isSynced ? (0, import_blocks47.__experimentalGetBlockLabel)(blockType, attributes) : void 0;
- const title = syncedTitle || blockType.title;
- const positionLabel = getPositionTypeLabel(attributes);
- const blockTypeInfo = {
- isSynced,
- title,
- icon: blockType.icon,
- description: blockType.description,
- anchor: attributes?.anchor,
- positionLabel,
- positionType: attributes?.style?.position?.type,
- name: attributes?.metadata?.name
- };
- if (!match2) {
- return blockTypeInfo;
+ if (event.type === "cut") {
+ if (shouldHandleWholeBlocks && !expandSelectionIsNeeded) {
+ removeBlocks2(selectedBlockClientIds);
+ } else {
+ setContentEditableWrapper(
+ event.target.ownerDocument.activeElement,
+ false
+ );
+ __unstableDeleteSelection2();
+ }
+ } else if (event.type === "paste") {
+ const {
+ __experimentalCanUserUseUnfilteredHTML: canUserUseUnfilteredHTML,
+ mediaUpload: mediaUpload2
+ } = getSettings8();
+ const isInternal = event.clipboardData.getData("rich-text") === "true";
+ if (isInternal) {
+ return;
+ }
+ const { plainText, html, files } = getPasteEventData(event);
+ const isFullySelected = __unstableIsFullySelected2();
+ let blocks2 = [];
+ if (files.length) {
+ if (!mediaUpload2) {
+ event.preventDefault();
+ return;
+ }
+ const fromTransforms = (0, import_blocks32.getBlockTransforms)("from");
+ blocks2 = files.reduce((accumulator, file) => {
+ const transformation = (0, import_blocks32.findTransform)(
+ fromTransforms,
+ (transform) => transform.type === "files" && transform.isMatch([file])
+ );
+ if (transformation) {
+ accumulator.push(
+ transformation.transform([file])
+ );
+ }
+ return accumulator;
+ }, []).flat();
+ } else {
+ blocks2 = (0, import_blocks32.pasteHandler)({
+ HTML: html,
+ plainText,
+ mode: isFullySelected ? "BLOCKS" : "AUTO",
+ canUserUseUnfilteredHTML
+ });
+ }
+ if (typeof blocks2 === "string") {
+ return;
+ }
+ if (isFullySelected) {
+ replaceBlocks2(
+ selectedBlockClientIds,
+ blocks2,
+ blocks2.length - 1,
+ -1
+ );
+ event.preventDefault();
+ return;
+ }
+ if (!hasMultiSelection2() && isBlockEntirelySelected(
+ event.target.ownerDocument,
+ selectedBlockClientIds[0]
+ )) {
+ replaceBlocks2(
+ selectedBlockClientIds,
+ blocks2,
+ blocks2.length - 1,
+ -1
+ );
+ event.preventDefault();
+ return;
+ }
+ if (!hasMultiSelection2() && !(0, import_blocks32.hasBlockSupport)(
+ getBlockName2(selectedBlockClientIds[0]),
+ "splitting",
+ false
+ ) && !event.__deprecatedOnSplit) {
+ return;
+ }
+ const [firstSelectedClientId] = selectedBlockClientIds;
+ const rootClientId = getBlockRootClientId2(
+ firstSelectedClientId
+ );
+ const newBlocks = [];
+ for (const block of blocks2) {
+ if (canInsertBlockType2(block.name, rootClientId)) {
+ newBlocks.push(block);
+ } else {
+ const rootBlockName = getBlockName2(rootClientId);
+ const switchedBlocks = block.name !== rootBlockName ? (0, import_blocks32.switchToBlockType)(block, rootBlockName) : [block];
+ if (!switchedBlocks) {
+ return;
+ }
+ for (const switchedBlock of switchedBlocks) {
+ for (const innerBlock of switchedBlock.innerBlocks) {
+ newBlocks.push(innerBlock);
+ }
+ }
+ }
+ }
+ __unstableSplitSelection2(newBlocks);
+ event.preventDefault();
}
- return {
- isSynced,
- title: match2.title || blockType.title,
- icon: match2.icon || blockType.icon,
- description: match2.description || blockType.description,
- anchor: attributes?.anchor,
- positionLabel,
- positionType: attributes?.style?.position?.type,
- name: attributes?.metadata?.name
- };
- },
- [clientId]
- );
+ }
+ node.ownerDocument.addEventListener("copy", handler);
+ node.ownerDocument.addEventListener("cut", handler);
+ node.ownerDocument.addEventListener("paste", handler);
+ return () => {
+ node.ownerDocument.removeEventListener("copy", handler);
+ node.ownerDocument.removeEventListener("cut", handler);
+ node.ownerDocument.removeEventListener("paste", handler);
+ };
+ }, []);
}
- // packages/block-editor/build-module/hooks/position.mjs
- var import_jsx_runtime278 = __toESM(require_jsx_runtime(), 1);
- var POSITION_SUPPORT_KEY = "position";
- var DEFAULT_OPTION = {
- key: "default",
- value: "",
- label: (0, import_i18n72.__)("Default")
- };
- var STICKY_OPTION = {
- key: "sticky",
- value: "sticky",
- label: (0, import_i18n72._x)("Sticky", "Name for the value of the CSS position property"),
- hint: (0, import_i18n72.__)(
- "The block will stick to the top of the window instead of scrolling."
- )
- };
- var FIXED_OPTION = {
- key: "fixed",
- value: "fixed",
- label: (0, import_i18n72._x)("Fixed", "Name for the value of the CSS position property"),
- hint: (0, import_i18n72.__)("The block will not move when the page is scrolled.")
- };
- var POSITION_SIDES = ["top", "right", "bottom", "left"];
- var VALID_POSITION_TYPES = ["sticky", "fixed"];
- function getPositionCSS({ selector: selector3, style }) {
- let output = "";
- const { type: positionType } = style?.position || {};
- if (!VALID_POSITION_TYPES.includes(positionType)) {
- return output;
- }
- output += `${selector3} {`;
- output += `position: ${positionType};`;
- POSITION_SIDES.forEach((side) => {
- if (style?.position?.[side] !== void 0) {
- output += `${side}: ${style.position[side]};`;
- }
- });
- if (positionType === "sticky" || positionType === "fixed") {
- output += `z-index: 10`;
- }
- output += `}`;
- return output;
+ // packages/block-editor/build-module/components/writing-flow/index.mjs
+ var import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
+ function useWritingFlow() {
+ const [before, ref, after] = useTabNav();
+ const hasMultiSelection2 = (0, import_data51.useSelect)(
+ (select3) => select3(store).hasMultiSelection(),
+ []
+ );
+ return [
+ before,
+ (0, import_compose34.useMergeRefs)([
+ ref,
+ useEditableRootEventHandlers(),
+ useClipboardHandler(),
+ useInput(),
+ useEditableRoot(),
+ useHomeEnd(),
+ useDragSelection(),
+ useSelectionObserver(),
+ useClickSelection(),
+ useMultiSelection(),
+ useSelectAll(),
+ useArrowNav(),
+ usePreviewModeNav(),
+ (0, import_compose34.useRefEffect)(
+ (node) => {
+ node.tabIndex = 0;
+ node.dataset.hasMultiSelection = hasMultiSelection2;
+ if (!hasMultiSelection2) {
+ return () => {
+ delete node.dataset.hasMultiSelection;
+ };
+ }
+ node.setAttribute(
+ "aria-label",
+ (0, import_i18n41.__)("Multiple selected blocks")
+ );
+ return () => {
+ delete node.dataset.hasMultiSelection;
+ if (node.contentEditable === "true") {
+ node.setAttribute(
+ "aria-label",
+ (0, import_i18n41.__)("Editor canvas")
+ );
+ } else {
+ node.removeAttribute("aria-label");
+ }
+ };
+ },
+ [hasMultiSelection2]
+ )
+ ]),
+ after
+ ];
}
- function hasStickyPositionSupport(blockType) {
- const support = (0, import_blocks48.getBlockSupport)(blockType, POSITION_SUPPORT_KEY);
- return !!(true === support || support?.sticky);
+ function WritingFlow({ children, ...props }, forwardedRef) {
+ const [before, ref, after] = useWritingFlow();
+ return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, { children: [
+ before,
+ /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
+ "div",
+ {
+ ...props,
+ ref: (0, import_compose34.useMergeRefs)([ref, forwardedRef]),
+ className: clsx_default(
+ props.className,
+ "block-editor-writing-flow"
+ ),
+ children
+ }
+ ),
+ after
+ ] });
}
- function hasFixedPositionSupport(blockType) {
- const support = (0, import_blocks48.getBlockSupport)(blockType, POSITION_SUPPORT_KEY);
- return !!(true === support || support?.fixed);
+ var writing_flow_default = (0, import_element105.forwardRef)(WritingFlow);
+
+ // packages/block-editor/build-module/components/iframe/get-compatibility-styles.mjs
+ var compatibilityStyles = null;
+ function getCompatibilityStyles() {
+ if (compatibilityStyles) {
+ return compatibilityStyles;
+ }
+ compatibilityStyles = Array.from(document.styleSheets).reduce(
+ (accumulator, styleSheet) => {
+ try {
+ styleSheet.cssRules;
+ } catch {
+ return accumulator;
+ }
+ const { ownerNode, cssRules } = styleSheet;
+ if (ownerNode === null) {
+ return accumulator;
+ }
+ if (!cssRules) {
+ return accumulator;
+ }
+ if (ownerNode.id.startsWith("wp-")) {
+ return accumulator;
+ }
+ if (!ownerNode.id) {
+ return accumulator;
+ }
+ function matchFromRules(_cssRules) {
+ return Array.from(_cssRules).find(
+ ({
+ selectorText,
+ conditionText,
+ cssRules: __cssRules
+ }) => {
+ if (conditionText) {
+ return matchFromRules(__cssRules);
+ }
+ return selectorText && (selectorText.includes(
+ ".editor-styles-wrapper"
+ ) || selectorText.includes(".wp-block"));
+ }
+ );
+ }
+ if (matchFromRules(cssRules)) {
+ const isInline = ownerNode.tagName === "STYLE";
+ if (isInline) {
+ const mainStylesCssId = ownerNode.id.replace(
+ "-inline-css",
+ "-css"
+ );
+ const mainStylesElement = document.getElementById(mainStylesCssId);
+ if (mainStylesElement) {
+ accumulator.push(mainStylesElement.cloneNode(true));
+ }
+ }
+ accumulator.push(ownerNode.cloneNode(true));
+ if (!isInline) {
+ const inlineStylesCssId = ownerNode.id.replace(
+ "-css",
+ "-inline-css"
+ );
+ const inlineStylesElement = document.getElementById(inlineStylesCssId);
+ if (inlineStylesElement) {
+ accumulator.push(
+ inlineStylesElement.cloneNode(true)
+ );
+ }
+ }
+ }
+ return accumulator;
+ },
+ []
+ );
+ return compatibilityStyles;
}
- function hasPositionSupport(blockType) {
- const support = (0, import_blocks48.getBlockSupport)(blockType, POSITION_SUPPORT_KEY);
- return !!support;
+
+ // packages/block-editor/build-module/components/iframe/use-scale-canvas.mjs
+ var import_element106 = __toESM(require_element(), 1);
+ var import_compose35 = __toESM(require_compose(), 1);
+ function calculateScale({
+ frameSize,
+ containerWidth,
+ maxContainerWidth,
+ scaleContainerWidth
+ }) {
+ return (Math.min(containerWidth, maxContainerWidth) - frameSize * 2) / scaleContainerWidth;
}
- function hasStickyOrFixedPositionValue(attributes) {
- const positionType = attributes?.style?.position?.type;
- return positionType === "sticky" || positionType === "fixed";
+ function computeScrollHeightNext(transitionFrom, transitionTo) {
+ const { scaleValue: prevScale, scrollHeight: prevScrollHeight } = transitionFrom;
+ const { frameSize, scaleValue } = transitionTo;
+ return prevScrollHeight * (scaleValue / prevScale) + frameSize * 2;
}
- function useIsPositionDisabled({ name: blockName } = {}) {
- const [allowFixed, allowSticky] = useSettings(
- "position.fixed",
- "position.sticky"
+ function computeScrollTopNext(transitionFrom, transitionTo) {
+ const {
+ containerHeight: prevContainerHeight,
+ frameSize: prevFrameSize,
+ scaleValue: prevScale,
+ scrollTop: prevScrollTop
+ } = transitionFrom;
+ const { containerHeight, frameSize, scaleValue, scrollHeight } = transitionTo;
+ let scrollTopNext = prevScrollTop;
+ scrollTopNext = (scrollTopNext + prevContainerHeight / 2 - prevFrameSize) / prevScale - prevContainerHeight / 2;
+ scrollTopNext = (scrollTopNext + containerHeight / 2) * scaleValue + frameSize - containerHeight / 2;
+ scrollTopNext = prevScrollTop <= prevFrameSize ? 0 : scrollTopNext;
+ const maxScrollTop = scrollHeight - containerHeight;
+ return Math.round(
+ Math.min(Math.max(0, scrollTopNext), Math.max(0, maxScrollTop))
);
- const isDisabled = !allowFixed && !allowSticky;
- return !hasPositionSupport(blockName) || isDisabled;
}
- function PositionPanelPure({
- style = {},
- clientId,
- name: blockName,
- setAttributes
- }) {
- const allowFixed = hasFixedPositionSupport(blockName);
- const allowSticky = hasStickyPositionSupport(blockName);
- const value = style?.position?.type;
- const { firstParentClientId } = (0, import_data85.useSelect)(
- (select3) => {
- const { getBlockParents: getBlockParents2 } = select3(store);
- const parents = getBlockParents2(clientId);
- return { firstParentClientId: parents[parents.length - 1] };
+ function getAnimationKeyframes(transitionFrom, transitionTo) {
+ const {
+ scaleValue: prevScale,
+ frameSize: prevFrameSize,
+ scrollTop
+ } = transitionFrom;
+ const { scaleValue, frameSize, scrollTop: scrollTopNext } = transitionTo;
+ return [
+ {
+ translate: `0 0`,
+ scale: prevScale,
+ paddingTop: `${prevFrameSize / prevScale}px`,
+ paddingBottom: `${prevFrameSize / prevScale}px`
},
- [clientId]
- );
- const blockInformation = useBlockDisplayInformation(firstParentClientId);
- const stickyHelpText = allowSticky && value === STICKY_OPTION.value && blockInformation ? (0, import_i18n72.sprintf)(
- /* translators: %s: the name of the parent block. */
- (0, import_i18n72.__)(
- "The block will stick to the scrollable area of the parent %s block."
- ),
- blockInformation.title
- ) : null;
- const options = (0, import_element152.useMemo)(() => {
- const availableOptions = [DEFAULT_OPTION];
- if (allowSticky || value === STICKY_OPTION.value) {
- availableOptions.push(STICKY_OPTION);
- }
- if (allowFixed || value === FIXED_OPTION.value) {
- availableOptions.push(FIXED_OPTION);
- }
- return availableOptions;
- }, [allowFixed, allowSticky, value]);
- const onChangeType = (next) => {
- const placementValue = "0px";
- const newStyle = {
- ...style,
- position: {
- ...style?.position,
- type: next,
- top: next === "sticky" || next === "fixed" ? placementValue : void 0
- }
- };
- setAttributes({
- style: cleanEmptyObject(newStyle)
- });
- };
- const selectedOption = value ? options.find((option) => option.value === value) || DEFAULT_OPTION : DEFAULT_OPTION;
- const hintIdPrefix = (0, import_element152.useId)();
- return options.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(inspector_controls_default, { group: "position", children: /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
- SelectControl3,
{
- label: (0, import_i18n72.__)("Position"),
- hideLabelFromVision: true,
- description: stickyHelpText,
- items: options,
- value: selectedOption,
- onValueChange: (selectedItem) => {
- onChangeType(selectedItem.value);
- },
- children: options.map((option) => {
- const hintId = option.hint ? `${hintIdPrefix}-${option.key}` : void 0;
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(
- SelectControl3.Item,
- {
- value: option,
- label: option.label,
- className: "block-editor-hooks__position-control-item",
- "aria-describedby": hintId,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("div", { children: option.label }),
- option.hint && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
- "div",
- {
- id: hintId,
- className: "block-editor-hooks__position-control-item-hint",
- "aria-hidden": "true",
- children: option.hint
- }
- )
- ]
- },
- option.key
- );
- })
+ translate: `0 ${scrollTop - scrollTopNext}px`,
+ scale: scaleValue,
+ paddingTop: `${frameSize / scaleValue}px`,
+ paddingBottom: `${frameSize / scaleValue}px`
}
- ) }) : null;
+ ];
}
- var position_default = {
- edit: function Edit2(props) {
- const isPositionDisabled = useIsPositionDisabled(props);
- if (isPositionDisabled) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(PositionPanelPure, { ...props });
- },
- useBlockProps: useBlockProps2,
- attributeKeys: ["style"],
- hasSupport(name) {
- return (0, import_blocks48.hasBlockSupport)(name, POSITION_SUPPORT_KEY);
- }
- };
- var POSITION_BLOCK_PROPS_REFERENCE = {};
- function useBlockProps2({ name, style }) {
- const hasPositionBlockSupport = (0, import_blocks48.hasBlockSupport)(
- name,
- POSITION_SUPPORT_KEY
- );
- const isPositionDisabled = useIsPositionDisabled({ name });
- const allowPositionStyles = hasPositionBlockSupport && !isPositionDisabled;
- const id = (0, import_compose61.useInstanceId)(POSITION_BLOCK_PROPS_REFERENCE);
- const positionSelector = `.wp-container-${id}.wp-container-${id}`;
- let css;
- if (allowPositionStyles) {
- css = getPositionCSS({
- selector: positionSelector,
- style
- }) || "";
- }
- const className = clsx_default({
- [`wp-container-${id}`]: allowPositionStyles && !!css,
- // Only attach a container class if there is generated CSS to be attached.
- [`is-position-${style?.position?.type}`]: allowPositionStyles && !!css && !!style?.position?.type
- });
- useStyleOverride({ css });
- return { className };
- }
-
- // packages/block-editor/build-module/components/block-tools/use-block-toolbar-popover-props.mjs
- var COMMON_PROPS = {
- placement: "top-start"
- };
- var DEFAULT_PROPS2 = {
- ...COMMON_PROPS,
- flip: false,
- shift: true
- };
- var RESTRICTED_HEIGHT_PROPS = {
- ...COMMON_PROPS,
- flip: true,
- shift: false
- };
- function getProps(contentElement, selectedBlockElement, scrollContainer, toolbarHeight, isSticky) {
- if (!contentElement || !selectedBlockElement) {
- return DEFAULT_PROPS2;
- }
- const scrollTop = scrollContainer?.scrollTop || 0;
- const blockRect = getElementBounds(selectedBlockElement);
- const contentRect = contentElement.getBoundingClientRect();
- const topOfContentElementInViewport = scrollTop + contentRect.top;
- const viewportHeight = contentElement.ownerDocument.documentElement.clientHeight;
- const restrictedTopArea = topOfContentElementInViewport + toolbarHeight;
- const hasSpaceForToolbarAbove = blockRect.top > restrictedTopArea;
- const isBlockTallerThanViewport = blockRect.height > viewportHeight - toolbarHeight;
- if (!isSticky && (hasSpaceForToolbarAbove || isBlockTallerThanViewport)) {
- return DEFAULT_PROPS2;
- }
- return RESTRICTED_HEIGHT_PROPS;
- }
- function useBlockToolbarPopoverProps({
- contentElement,
- clientId
- }) {
- const selectedBlockElement = useBlockElement(clientId);
- const [toolbarHeight, setToolbarHeight] = (0, import_element153.useState)(0);
- const { blockIndex, isSticky } = (0, import_data86.useSelect)(
- (select3) => {
- const { getBlockIndex: getBlockIndex2, getBlockAttributes: getBlockAttributes3 } = select3(store);
- return {
- blockIndex: getBlockIndex2(clientId),
- isSticky: hasStickyOrFixedPositionValue(
- getBlockAttributes3(clientId)
- )
- };
- },
- [clientId]
- );
- const scrollContainer = (0, import_element153.useMemo)(() => {
- if (!contentElement) {
- return;
- }
- return (0, import_dom56.getScrollContainer)(contentElement);
- }, [contentElement]);
- const [props, setProps] = (0, import_element153.useState)(
- () => getProps(
- contentElement,
- selectedBlockElement,
- scrollContainer,
- toolbarHeight,
- isSticky
- )
- );
- const popoverRef = (0, import_compose62.useRefEffect)((popoverNode) => {
- setToolbarHeight(popoverNode.offsetHeight);
- }, []);
- const updateProps = (0, import_element153.useCallback)(
- () => setProps(
- getProps(
- contentElement,
- selectedBlockElement,
- scrollContainer,
- toolbarHeight,
- isSticky
- )
- ),
- [
- contentElement,
- selectedBlockElement,
- scrollContainer,
- toolbarHeight,
- isSticky
- ]
- );
- (0, import_element153.useLayoutEffect)(updateProps, [blockIndex, updateProps]);
- (0, import_element153.useLayoutEffect)(() => {
- if (!contentElement || !selectedBlockElement) {
- return;
- }
- const contentView = contentElement?.ownerDocument?.defaultView;
- contentView?.addEventListener?.("resize", updateProps);
- let resizeObserver;
- const blockView = selectedBlockElement?.ownerDocument?.defaultView;
- if (blockView?.ResizeObserver) {
- resizeObserver = new blockView.ResizeObserver(updateProps);
- resizeObserver.observe(selectedBlockElement);
- }
- return () => {
- contentView?.removeEventListener?.("resize", updateProps);
- if (resizeObserver) {
- resizeObserver.disconnect();
- }
- };
- }, [updateProps, contentElement, selectedBlockElement]);
+ var NULL_SIZE = { width: null, height: null };
+ function extractSize(entries) {
+ const contentBoxSize = entries.at(-1).contentBoxSize[0];
return {
- ...props,
- ref: popoverRef
+ width: contentBoxSize.inlineSize,
+ height: contentBoxSize.blockSize
};
}
-
- // packages/block-editor/build-module/components/block-tools/use-selected-block-tool-props.mjs
- var import_data87 = __toESM(require_data(), 1);
- function useSelectedBlockToolProps(clientId) {
- const selectedBlockProps = (0, import_data87.useSelect)(
- (select3) => {
- const {
- getBlockRootClientId: getBlockRootClientId2,
- getBlockParents: getBlockParents2,
- __experimentalGetBlockListSettingsForBlocks: __experimentalGetBlockListSettingsForBlocks2,
- isBlockInsertionPointVisible: isBlockInsertionPointVisible2,
- getBlockInsertionPoint: getBlockInsertionPoint2,
- getBlockOrder: getBlockOrder2,
- hasMultiSelection: hasMultiSelection2,
- getLastMultiSelectedBlockClientId: getLastMultiSelectedBlockClientId2
- } = select3(store);
- const blockParentsClientIds = getBlockParents2(clientId);
- const parentBlockListSettings = __experimentalGetBlockListSettingsForBlocks2(
- blockParentsClientIds
- );
- const capturingClientId = blockParentsClientIds.find(
- (parentClientId) => parentBlockListSettings[parentClientId]?.__experimentalCaptureToolbars
- );
- let isInsertionPointVisible = false;
- if (isBlockInsertionPointVisible2()) {
- const insertionPoint2 = getBlockInsertionPoint2();
- const order = getBlockOrder2(insertionPoint2.rootClientId);
- isInsertionPointVisible = order[insertionPoint2.index] === clientId;
- }
- return {
- capturingClientId,
- isInsertionPointVisible,
- lastClientId: hasMultiSelection2() ? getLastMultiSelectedBlockClientId2() : null,
- rootClientId: getBlockRootClientId2(clientId)
- };
- },
- [clientId]
- );
- return selectedBlockProps;
- }
-
- // packages/block-editor/build-module/components/block-tools/empty-block-inserter.mjs
- var import_jsx_runtime279 = __toESM(require_jsx_runtime(), 1);
- function EmptyBlockInserter({
- clientId,
- __unstableContentRef
+ function useScaleCanvas({
+ frameSize,
+ iframeDocument,
+ maxContainerWidth = 750,
+ scale
}) {
- const { isInsertionPointVisible, lastClientId, rootClientId } = useSelectedBlockToolProps(clientId);
- const popoverProps3 = useBlockToolbarPopoverProps({
- contentElement: __unstableContentRef?.current,
- clientId
+ const [{ height: contentHeight }, setContentRect] = (0, import_element106.useState)(NULL_SIZE);
+ const contentRef = (0, import_compose35.useResizeObserver)((entries) => {
+ setContentRect(extractSize(entries));
});
- return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
- cover_default,
- {
- clientId,
- bottomClientId: lastClientId,
- className: clsx_default(
- "block-editor-block-list__block-side-inserter-popover",
- {
- "is-insertion-point-visible": isInsertionPointVisible
- }
- ),
- __unstableContentRef,
- ...popoverProps3,
- children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("div", { className: "block-editor-block-list__empty-block-inserter", children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
- inserter_default,
- {
- position: "bottom right",
- rootClientId,
- clientId,
- __experimentalIsQuick: true
- }
- ) })
+ const [
+ { width: containerWidth, height: containerHeight },
+ setContainerRect
+ ] = (0, import_element106.useState)(NULL_SIZE);
+ const containerRef = (0, import_compose35.useResizeObserver)((entries) => {
+ setContainerRect(extractSize(entries));
+ });
+ const initialContainerWidthRef = (0, import_element106.useRef)(0);
+ const isZoomedOut = scale !== 1;
+ const prefersReducedMotion = (0, import_compose35.useReducedMotion)();
+ const isAutoScaled = scale === "auto-scaled";
+ const startAnimationRef = (0, import_element106.useRef)(false);
+ const animationRef = (0, import_element106.useRef)(null);
+ (0, import_element106.useEffect)(() => {
+ if (!isZoomedOut) {
+ initialContainerWidthRef.current = containerWidth;
}
+ }, [containerWidth, isZoomedOut]);
+ const scaleContainerWidth = Math.max(
+ initialContainerWidthRef.current,
+ containerWidth
);
- }
-
- // packages/block-editor/build-module/components/block-tools/block-toolbar-popover.mjs
- var import_data120 = __toESM(require_data(), 1);
- var import_element178 = __toESM(require_element(), 1);
- var import_keyboard_shortcuts9 = __toESM(require_keyboard_shortcuts(), 1);
-
- // packages/block-editor/build-module/components/block-toolbar/index.mjs
- var import_i18n101 = __toESM(require_i18n(), 1);
- var import_data119 = __toESM(require_data(), 1);
- var import_element177 = __toESM(require_element(), 1);
- var import_compose69 = __toESM(require_compose(), 1);
- var import_blocks73 = __toESM(require_blocks(), 1);
- var import_components113 = __toESM(require_components(), 1);
-
- // packages/block-editor/build-module/components/block-mover/index.mjs
- var import_components76 = __toESM(require_components(), 1);
- var import_data90 = __toESM(require_data(), 1);
- var import_i18n75 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/block-draggable/index.mjs
- var import_blocks49 = __toESM(require_blocks(), 1);
- var import_components74 = __toESM(require_components(), 1);
- var import_data88 = __toESM(require_data(), 1);
- var import_element155 = __toESM(require_element(), 1);
- var import_compose63 = __toESM(require_compose(), 1);
-
- // packages/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.mjs
- var import_dom58 = __toESM(require_dom(), 1);
- var import_element154 = __toESM(require_element(), 1);
- var SCROLL_INACTIVE_DISTANCE_PX = 50;
- var SCROLL_INTERVAL_MS = 25;
- var PIXELS_PER_SECOND_PER_PERCENTAGE = 1e3;
- var VELOCITY_MULTIPLIER = PIXELS_PER_SECOND_PER_PERCENTAGE * (SCROLL_INTERVAL_MS / 1e3);
- function useScrollWhenDragging() {
- const dragStartYRef = (0, import_element154.useRef)(null);
- const velocityYRef = (0, import_element154.useRef)(null);
- const scrollParentYRef = (0, import_element154.useRef)(null);
- const scrollEditorIntervalRef = (0, import_element154.useRef)(null);
- (0, import_element154.useEffect)(
- () => () => {
- if (scrollEditorIntervalRef.current) {
- clearInterval(scrollEditorIntervalRef.current);
- scrollEditorIntervalRef.current = null;
- }
- },
- []
- );
- const startScrolling = (0, import_element154.useCallback)((event) => {
- dragStartYRef.current = event.clientY;
- scrollParentYRef.current = (0, import_dom58.getScrollContainer)(event.target);
- scrollEditorIntervalRef.current = setInterval(() => {
- if (scrollParentYRef.current && velocityYRef.current) {
- const newTop = scrollParentYRef.current.scrollTop + velocityYRef.current;
- scrollParentYRef.current.scroll({
- top: newTop
- });
+ const scaleValue = isAutoScaled ? calculateScale({
+ frameSize,
+ containerWidth,
+ maxContainerWidth,
+ scaleContainerWidth
+ }) : scale;
+ const transitionFromRef = (0, import_element106.useRef)({
+ scaleValue,
+ frameSize,
+ containerHeight: 0,
+ scrollTop: 0,
+ scrollHeight: 0
+ });
+ const transitionToRef = (0, import_element106.useRef)({
+ scaleValue,
+ frameSize,
+ containerHeight: 0,
+ scrollTop: 0,
+ scrollHeight: 0
+ });
+ const startZoomOutAnimation = (0, import_element106.useCallback)(() => {
+ const { scrollTop } = transitionFromRef.current;
+ const { scrollTop: scrollTopNext } = transitionToRef.current;
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-scroll-top",
+ `${scrollTop}px`
+ );
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-scroll-top-next",
+ `${scrollTopNext}px`
+ );
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-overflow-behavior",
+ transitionFromRef.current.scrollHeight === transitionFromRef.current.containerHeight ? "auto" : "scroll"
+ );
+ iframeDocument.documentElement.classList.add("zoom-out-animation");
+ return iframeDocument.documentElement.animate(
+ getAnimationKeyframes(
+ transitionFromRef.current,
+ transitionToRef.current
+ ),
+ {
+ easing: "cubic-bezier(0.46, 0.03, 0.52, 0.96)",
+ duration: 400
}
- }, SCROLL_INTERVAL_MS);
- }, []);
- const scrollOnDragOver = (0, import_element154.useCallback)((event) => {
- if (!scrollParentYRef.current) {
+ );
+ }, [iframeDocument]);
+ const finishZoomOutAnimation = (0, import_element106.useCallback)(() => {
+ startAnimationRef.current = false;
+ animationRef.current = null;
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-scale",
+ transitionToRef.current.scaleValue
+ );
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-frame-size",
+ `${transitionToRef.current.frameSize}px`
+ );
+ iframeDocument.documentElement.classList.remove("zoom-out-animation");
+ iframeDocument.documentElement.scrollTop = transitionToRef.current.scrollTop;
+ iframeDocument.documentElement.style.removeProperty(
+ "--wp-block-editor-iframe-zoom-out-scroll-top"
+ );
+ iframeDocument.documentElement.style.removeProperty(
+ "--wp-block-editor-iframe-zoom-out-scroll-top-next"
+ );
+ iframeDocument.documentElement.style.removeProperty(
+ "--wp-block-editor-iframe-zoom-out-overflow-behavior"
+ );
+ transitionFromRef.current = transitionToRef.current;
+ }, [iframeDocument]);
+ const previousIsZoomedOut = (0, import_element106.useRef)(false);
+ (0, import_element106.useEffect)(() => {
+ if (!iframeDocument) {
return;
}
- const scrollParentHeight = scrollParentYRef.current.offsetHeight;
- const offsetDragStartPosition = dragStartYRef.current - scrollParentYRef.current.offsetTop;
- const offsetDragPosition = event.clientY - scrollParentYRef.current.offsetTop;
- if (event.clientY > offsetDragStartPosition) {
- const moveableDistance = Math.max(
- scrollParentHeight - offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX,
- 0
- );
- const dragDistance = Math.max(
- offsetDragPosition - offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX,
- 0
- );
- const distancePercentage = moveableDistance === 0 || dragDistance === 0 ? 0 : dragDistance / moveableDistance;
- velocityYRef.current = VELOCITY_MULTIPLIER * distancePercentage;
- } else if (event.clientY < offsetDragStartPosition) {
- const moveableDistance = Math.max(
- offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX,
- 0
- );
- const dragDistance = Math.max(
- offsetDragStartPosition - offsetDragPosition - SCROLL_INACTIVE_DISTANCE_PX,
- 0
- );
- const distancePercentage = moveableDistance === 0 || dragDistance === 0 ? 0 : dragDistance / moveableDistance;
- velocityYRef.current = -VELOCITY_MULTIPLIER * distancePercentage;
- } else {
- velocityYRef.current = 0;
+ const trigger = previousIsZoomedOut.current !== isZoomedOut;
+ previousIsZoomedOut.current = isZoomedOut;
+ if (!trigger) {
+ return;
}
- }, []);
- const stopScrolling = () => {
- dragStartYRef.current = null;
- scrollParentYRef.current = null;
- if (scrollEditorIntervalRef.current) {
- clearInterval(scrollEditorIntervalRef.current);
- scrollEditorIntervalRef.current = null;
+ startAnimationRef.current = true;
+ if (!isZoomedOut) {
+ return;
}
- };
- return [startScrolling, scrollOnDragOver, stopScrolling];
- }
-
- // packages/block-editor/build-module/components/block-draggable/index.mjs
- var import_jsx_runtime280 = __toESM(require_jsx_runtime(), 1);
- var BlockDraggable = ({
- appendToOwnerDocument,
- children,
- clientIds,
- cloneClassname,
- elementId,
- onDragStart,
- onDragEnd,
- fadeWhenDisabled = false,
- dragComponent
- }) => {
- const {
- srcRootClientId,
- isDraggable,
- icon,
- visibleInserter,
- getBlockType: getBlockType30
- } = (0, import_data88.useSelect)(
- (select3) => {
- const {
- canMoveBlocks: canMoveBlocks2,
- getBlockRootClientId: getBlockRootClientId22,
- getBlockName: getBlockName2,
- getBlockAttributes: getBlockAttributes3,
- isBlockInsertionPointVisible: isBlockInsertionPointVisible2
- } = select3(store);
- const { getBlockType: _getBlockType, getActiveBlockVariation } = select3(import_blocks49.store);
- const rootClientId = getBlockRootClientId22(clientIds[0]);
- const blockName = getBlockName2(clientIds[0]);
- const variation = getActiveBlockVariation(
- blockName,
- getBlockAttributes3(clientIds[0])
- );
- return {
- srcRootClientId: rootClientId,
- isDraggable: canMoveBlocks2(clientIds),
- icon: variation?.icon || _getBlockType(blockName)?.icon,
- visibleInserter: isBlockInsertionPointVisible2(),
- getBlockType: _getBlockType
- };
- },
- [clientIds]
- );
- const isDraggingRef = (0, import_element155.useRef)(false);
- const [startScrolling, scrollOnDragOver, stopScrolling] = useScrollWhenDragging();
- const { getAllowedBlocks: getAllowedBlocks2, getBlockNamesByClientId: getBlockNamesByClientId2, getBlockRootClientId: getBlockRootClientId2 } = (0, import_data88.useSelect)(store);
- const { startDraggingBlocks: startDraggingBlocks2, stopDraggingBlocks: stopDraggingBlocks2 } = (0, import_data88.useDispatch)(store);
- (0, import_element155.useEffect)(() => {
+ iframeDocument.documentElement.classList.add("is-zoomed-out");
return () => {
- if (isDraggingRef.current) {
- stopDraggingBlocks2();
- }
+ iframeDocument.documentElement.classList.remove("is-zoomed-out");
};
- }, []);
- const blockEl = useBlockElement(clientIds[0]);
- const editorRoot = blockEl?.closest("body");
- (0, import_element155.useEffect)(() => {
- if (!editorRoot || !fadeWhenDisabled) {
+ }, [iframeDocument, isZoomedOut]);
+ (0, import_element106.useEffect)(() => {
+ if (!iframeDocument) {
return;
}
- const onDragOver = (event) => {
- if (!event.target.closest("[data-block]")) {
- return;
- }
- const draggedBlockNames = getBlockNamesByClientId2(clientIds);
- const targetClientId = event.target.closest("[data-block]").getAttribute("data-block");
- const allowedBlocks = getAllowedBlocks2(targetClientId);
- const targetBlockName = getBlockNamesByClientId2([
- targetClientId
- ])[0];
- let dropTargetValid;
- if (allowedBlocks?.length === 0) {
- const targetRootClientId = getBlockRootClientId2(targetClientId);
- const targetRootBlockName = getBlockNamesByClientId2([
- targetRootClientId
- ])[0];
- const rootAllowedBlocks = getAllowedBlocks2(targetRootClientId);
- dropTargetValid = isDropTargetValid(
- getBlockType30,
- rootAllowedBlocks,
- draggedBlockNames,
- targetRootBlockName
+ if (isAutoScaled && transitionFromRef.current.scaleValue !== 1) {
+ transitionFromRef.current.scaleValue = calculateScale({
+ frameSize: transitionFromRef.current.frameSize,
+ containerWidth,
+ maxContainerWidth,
+ scaleContainerWidth: containerWidth
+ });
+ }
+ if (scaleValue < 1) {
+ if (!startAnimationRef.current) {
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-scale",
+ scaleValue
);
- } else {
- dropTargetValid = isDropTargetValid(
- getBlockType30,
- allowedBlocks,
- draggedBlockNames,
- targetBlockName
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-frame-size",
+ `${frameSize}px`
);
}
- if (!dropTargetValid && !visibleInserter) {
- window?.document?.body?.classList?.add(
- "block-draggable-invalid-drag-token"
- );
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-content-height",
+ `${contentHeight}px`
+ );
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-inner-height",
+ `${containerHeight}px`
+ );
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-container-width",
+ `${containerWidth}px`
+ );
+ iframeDocument.documentElement.style.setProperty(
+ "--wp-block-editor-iframe-zoom-out-scale-container-width",
+ `${scaleContainerWidth}px`
+ );
+ }
+ if (startAnimationRef.current) {
+ startAnimationRef.current = false;
+ if (animationRef.current) {
+ animationRef.current.reverse();
+ const tempTransitionFrom = transitionFromRef.current;
+ const tempTransitionTo = transitionToRef.current;
+ transitionFromRef.current = tempTransitionTo;
+ transitionToRef.current = tempTransitionFrom;
} else {
- window?.document?.body?.classList?.remove(
- "block-draggable-invalid-drag-token"
+ transitionFromRef.current.scrollTop = iframeDocument.documentElement.scrollTop;
+ transitionFromRef.current.scrollHeight = iframeDocument.documentElement.scrollHeight;
+ transitionFromRef.current.containerHeight = containerHeight;
+ transitionToRef.current = {
+ scaleValue,
+ frameSize,
+ containerHeight: iframeDocument.documentElement.clientHeight
+ // use clientHeight to get the actual height of the new container after zoom state changes have rendered, as it will be the most up-to-date.
+ };
+ transitionToRef.current.scrollHeight = computeScrollHeightNext(
+ transitionFromRef.current,
+ transitionToRef.current
);
- }
- };
- const throttledOnDragOver = (0, import_compose63.throttle)(onDragOver, 200);
- editorRoot.addEventListener("dragover", throttledOnDragOver);
- return () => {
- editorRoot.removeEventListener("dragover", throttledOnDragOver);
- };
- }, [
- clientIds,
- editorRoot,
- fadeWhenDisabled,
- getAllowedBlocks2,
- getBlockNamesByClientId2,
- getBlockRootClientId2,
- getBlockType30,
- visibleInserter
- ]);
- if (!isDraggable) {
- return children({ draggable: false });
- }
- const transferData = {
- type: "block",
- srcClientIds: clientIds,
- srcRootClientId
- };
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
- import_components74.Draggable,
- {
- appendToOwnerDocument,
- cloneClassname,
- __experimentalTransferDataType: "wp-blocks",
- transferData,
- onDragStart: (event) => {
- window.requestAnimationFrame(() => {
- startDraggingBlocks2(clientIds);
- isDraggingRef.current = true;
- startScrolling(event);
- if (onDragStart) {
- onDragStart();
- }
- });
- },
- onDragOver: scrollOnDragOver,
- onDragEnd: () => {
- stopDraggingBlocks2();
- isDraggingRef.current = false;
- stopScrolling();
- if (onDragEnd) {
- onDragEnd();
+ transitionToRef.current.scrollTop = computeScrollTopNext(
+ transitionFromRef.current,
+ transitionToRef.current
+ );
+ animationRef.current = startZoomOutAnimation();
+ if (prefersReducedMotion) {
+ finishZoomOutAnimation();
+ } else {
+ animationRef.current.onfinish = finishZoomOutAnimation;
}
- },
- __experimentalDragComponent: (
- // Check against `undefined` so that `null` can be used to disable
- // the default drag component.
- dragComponent !== void 0 ? dragComponent : /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
- BlockDraggableChip,
- {
- count: clientIds.length,
- icon,
- fadeWhenDisabled: true
- }
- )
- ),
- elementId,
- children: ({ onDraggableStart, onDraggableEnd }) => {
- return children({
- draggable: true,
- onDragStart: onDraggableStart,
- onDragEnd: onDraggableEnd
- });
}
}
- );
- };
- var block_draggable_default = BlockDraggable;
-
- // packages/block-editor/build-module/components/block-mover/button.mjs
- var import_blocks50 = __toESM(require_blocks(), 1);
- var import_components75 = __toESM(require_components(), 1);
- var import_compose64 = __toESM(require_compose(), 1);
- var import_data89 = __toESM(require_data(), 1);
- var import_element156 = __toESM(require_element(), 1);
- var import_i18n74 = __toESM(require_i18n(), 1);
- var import_keycodes10 = __toESM(require_keycodes(), 1);
+ }, [
+ startZoomOutAnimation,
+ finishZoomOutAnimation,
+ prefersReducedMotion,
+ isAutoScaled,
+ scaleValue,
+ frameSize,
+ iframeDocument,
+ contentHeight,
+ containerWidth,
+ containerHeight,
+ maxContainerWidth,
+ scaleContainerWidth
+ ]);
+ return {
+ isZoomedOut,
+ scaleContainerWidth,
+ contentRef,
+ containerRef
+ };
+ }
- // packages/block-editor/build-module/components/block-mover/mover-description.mjs
- var import_i18n73 = __toESM(require_i18n(), 1);
- var getMovementDirection = (moveDirection, orientation) => {
- if (moveDirection === "up") {
- if (orientation === "horizontal") {
- return (0, import_i18n73.isRTL)() ? "right" : "left";
- }
- return "up";
- } else if (moveDirection === "down") {
- if (orientation === "horizontal") {
- return (0, import_i18n73.isRTL)() ? "left" : "right";
- }
- return "down";
+ // packages/block-editor/build-module/components/iframe/index.mjs
+ var import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
+ function bubbleEvent(event, Constructor, frame) {
+ const init = {};
+ for (const key in event) {
+ init[key] = event[key];
}
- return null;
- };
- function getBlockMoverDescription(selectedCount, type, firstIndex, isFirst, isLast, dir, orientation) {
- const position = firstIndex + 1;
- if (selectedCount > 1) {
- return getMultiBlockMoverDescription(
- selectedCount,
- firstIndex,
- isFirst,
- isLast,
- dir,
- orientation
- );
+ if (event instanceof frame.contentDocument.defaultView.MouseEvent) {
+ const rect = frame.getBoundingClientRect();
+ init.clientX += rect.left;
+ init.clientY += rect.top;
}
- if (isFirst && isLast) {
- return (0, import_i18n73.sprintf)(
- // translators: %s: Type of block (i.e. Text, Image etc)
- (0, import_i18n73.__)("Block %s is the only block, and cannot be moved"),
- type
- );
+ const newEvent = new Constructor(event.type, init);
+ if (init.defaultPrevented) {
+ newEvent.preventDefault();
}
- if (dir > 0 && !isLast) {
- const movementDirection = getMovementDirection("down", orientation);
- if (movementDirection === "down") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
- (0, import_i18n73.__)(
- "Move %1$s block from position %2$d down to position %3$d"
- ),
- type,
- position,
- position + 1
- );
- }
- if (movementDirection === "left") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
- (0, import_i18n73.__)(
- "Move %1$s block from position %2$d left to position %3$d"
- ),
- type,
- position,
- position + 1
- );
+ const cancelled = !frame.dispatchEvent(newEvent);
+ if (cancelled) {
+ event.preventDefault();
+ }
+ }
+ function useBubbleEvents(iframeDocument) {
+ return (0, import_compose36.useRefEffect)(() => {
+ const { defaultView } = iframeDocument;
+ if (!defaultView) {
+ return;
}
- if (movementDirection === "right") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
- (0, import_i18n73.__)(
- "Move %1$s block from position %2$d right to position %3$d"
- ),
- type,
- position,
- position + 1
- );
+ const { frameElement } = defaultView;
+ const html = iframeDocument.documentElement;
+ const eventTypes = ["dragover", "mousemove"];
+ const handlers = {};
+ for (const name of eventTypes) {
+ handlers[name] = (event) => {
+ const prototype = Object.getPrototypeOf(event);
+ const constructorName = prototype.constructor.name;
+ const Constructor = window[constructorName];
+ bubbleEvent(event, Constructor, frameElement);
+ };
+ html.addEventListener(name, handlers[name]);
}
+ return () => {
+ for (const name of eventTypes) {
+ html.removeEventListener(name, handlers[name]);
+ }
+ };
+ });
+ }
+ var iframeSrcCache = /* @__PURE__ */ new WeakMap();
+ var iframeSrcCleanup = globalThis.FinalizationRegistry ? new globalThis.FinalizationRegistry(
+ (url) => URL.revokeObjectURL(url)
+ ) : void 0;
+ function getIframeSrc(resolvedAssets) {
+ let src = iframeSrcCache.get(resolvedAssets);
+ if (src) {
+ return src;
}
- if (dir > 0 && isLast) {
- const movementDirection = getMovementDirection("down", orientation);
- if (movementDirection === "down") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc)
- (0, import_i18n73.__)(
- "Block %1$s is at the end of the content and can\u2019t be moved down"
- ),
- type
- );
+ let body = "";
+ if (import_react48.version.split(".")[0] === "18") {
+ body = "<body><script>document.currentScript.parentElement.remove()<\/script></body>";
+ }
+ const html = `<!doctype html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <base href="${window.location.href}">
+ <style>
+ html{
+ height: auto !important;
+ min-height: 100%;
+ }
+ /* Lowest specificity to not override global styles */
+ :where(body) {
+ margin: 0;
+ /* Default background color in case zoom out mode background
+ colors the html element */
+ background-color: white;
+ }
+ </style>
+ ${resolvedAssets.styles ?? ""}
+ ${resolvedAssets.scripts ?? ""}
+ </head>
+ ${body}
+</html>`;
+ src = URL.createObjectURL(new Blob([html], { type: "text/html" }));
+ iframeSrcCache.set(resolvedAssets, src);
+ iframeSrcCleanup?.register(resolvedAssets, src);
+ return src;
+ }
+ function Iframe({
+ contentRef,
+ children,
+ tabIndex = 0,
+ scale = 1,
+ frameSize = 0,
+ readonly,
+ forwardedRef: ref,
+ title = (0, import_i18n42.__)("Editor canvas"),
+ ...props
+ }) {
+ const { resolvedAssets, isPreviewMode } = (0, import_data52.useSelect)((select3) => {
+ const settings2 = select3(store).getSettings();
+ return {
+ resolvedAssets: settings2.__unstableResolvedAssets,
+ isPreviewMode: settings2.isPreviewMode
+ };
+ }, []);
+ const [iframeDocument, setIframeDocument] = (0, import_element107.useState)();
+ const [bodyClasses, setBodyClasses] = (0, import_element107.useState)([]);
+ const [before, writingFlowRef, after] = useWritingFlow();
+ const setRef = (0, import_compose36.useRefEffect)((node) => {
+ let iFrameDocument;
+ function preventFileDropDefault(event) {
+ event.preventDefault();
}
- if (movementDirection === "left") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc)
- (0, import_i18n73.__)(
- "Block %1$s is at the end of the content and can\u2019t be moved left"
- ),
- type
- );
+ function interceptLinkClicks(event) {
+ if (event.target.tagName === "A" && event.target.getAttribute("href")?.startsWith("#")) {
+ event.preventDefault();
+ iFrameDocument.defaultView.location.hash = event.target.getAttribute("href").slice(1);
+ }
}
- if (movementDirection === "right") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc)
- (0, import_i18n73.__)(
- "Block %1$s is at the end of the content and can\u2019t be moved right"
- ),
- type
+ const { ownerDocument: ownerDocument2 } = node;
+ setBodyClasses(
+ Array.from(ownerDocument2.body.classList).filter(
+ (name) => name.startsWith("admin-color-") || name.startsWith("post-type-") || name === "wp-embed-responsive"
+ )
+ );
+ function onLoad() {
+ const { contentDocument } = node;
+ const { documentElement } = contentDocument;
+ iFrameDocument = contentDocument;
+ setIframeDocument(contentDocument);
+ documentElement.classList.add("block-editor-iframe__html");
+ contentDocument.dir = ownerDocument2.dir;
+ for (const compatStyle of getCompatibilityStyles()) {
+ if (contentDocument.getElementById(compatStyle.id)) {
+ continue;
+ }
+ contentDocument.head.appendChild(
+ compatStyle.cloneNode(true)
+ );
+ if (!isPreviewMode) {
+ console.warn(
+ `${compatStyle.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,
+ compatStyle
+ );
+ }
+ }
+ iFrameDocument.addEventListener(
+ "dragover",
+ preventFileDropDefault,
+ false
);
- }
- }
- if (dir < 0 && !isFirst) {
- const movementDirection = getMovementDirection("up", orientation);
- if (movementDirection === "up") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
- (0, import_i18n73.__)("Move %1$s block from position %2$d up to position %3$d"),
- type,
- position,
- position - 1
+ iFrameDocument.addEventListener(
+ "drop",
+ preventFileDropDefault,
+ false
);
+ iFrameDocument.addEventListener("click", interceptLinkClicks);
}
- if (movementDirection === "left") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
- (0, import_i18n73.__)(
- "Move %1$s block from position %2$d left to position %3$d"
- ),
- type,
- position,
- position - 1
+ node.addEventListener("load", onLoad);
+ return () => {
+ setIframeDocument(void 0);
+ node.removeEventListener("load", onLoad);
+ iFrameDocument?.removeEventListener(
+ "dragover",
+ preventFileDropDefault
);
- }
- if (movementDirection === "right") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
- (0, import_i18n73.__)(
- "Move %1$s block from position %2$d right to position %3$d"
- ),
- type,
- position,
- position - 1
+ iFrameDocument?.removeEventListener(
+ "drop",
+ preventFileDropDefault
);
+ iFrameDocument?.removeEventListener("click", interceptLinkClicks);
+ };
+ }, []);
+ const {
+ contentRef: scaleContentRef,
+ containerRef,
+ isZoomedOut,
+ scaleContainerWidth
+ } = useScaleCanvas({
+ scale,
+ frameSize: parseInt(frameSize),
+ iframeDocument
+ });
+ const disabledRef = (0, import_compose36.useDisabled)({ isDisabled: !readonly });
+ const unguardedBodyRef = (0, import_compose36.useMergeRefs)([
+ useBubbleEvents(iframeDocument),
+ contentRef,
+ writingFlowRef,
+ disabledRef,
+ scaleContentRef
+ ]);
+ const bodyRef = (0, import_compose36.useRefEffect)(
+ (node) => {
+ if (node.ownerDocument.defaultView) {
+ unguardedBodyRef(node);
+ return () => unguardedBodyRef(null);
+ }
+ return () => {
+ };
+ },
+ [unguardedBodyRef]
+ );
+ const src = getIframeSrc(resolvedAssets);
+ const shouldRenderFocusCaptureElements = tabIndex >= 0 && !isPreviewMode;
+ const iframe = /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_jsx_runtime230.Fragment, { children: [
+ shouldRenderFocusCaptureElements && before,
+ /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
+ "iframe",
+ {
+ ...props,
+ style: {
+ ...props.style,
+ height: props.style?.height,
+ border: 0
+ },
+ ref: (0, import_compose36.useMergeRefs)([ref, setRef]),
+ tabIndex,
+ src,
+ title,
+ onKeyDown: (event) => {
+ if (props.onKeyDown) {
+ props.onKeyDown(event);
+ }
+ if (event.currentTarget.ownerDocument !== event.target.ownerDocument) {
+ const { stopPropagation } = event.nativeEvent;
+ event.nativeEvent.stopPropagation = () => {
+ };
+ event.stopPropagation();
+ event.nativeEvent.stopPropagation = stopPropagation;
+ bubbleEvent(
+ event,
+ window.KeyboardEvent,
+ event.currentTarget
+ );
+ }
+ },
+ children: iframeDocument && (0, import_element107.createPortal)(
+ /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
+ "body",
+ {
+ ref: bodyRef,
+ className: clsx_default(
+ "block-editor-iframe__body",
+ "editor-styles-wrapper",
+ ...bodyClasses
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(import_components30.__experimentalStyleProvider, { document: iframeDocument, children })
+ }
+ ),
+ iframeDocument.documentElement
+ )
+ }
+ ),
+ shouldRenderFocusCaptureElements && after
+ ] });
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("div", { className: "block-editor-iframe__container", ref: containerRef, children: /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
+ "div",
+ {
+ className: clsx_default(
+ "block-editor-iframe__scale-container",
+ isZoomedOut && "is-zoomed-out"
+ ),
+ style: {
+ "--wp-block-editor-iframe-zoom-out-scale-container-width": isZoomedOut && `${scaleContainerWidth}px`
+ },
+ children: iframe
}
+ ) });
+ }
+ function IframeIfReady(props, ref) {
+ const isInitialised = (0, import_data52.useSelect)(
+ (select3) => select3(store).getSettings().__internalIsInitialized,
+ []
+ );
+ if (!isInitialised) {
+ return null;
}
- if (dir < 0 && isFirst) {
- const movementDirection = getMovementDirection("up", orientation);
- if (movementDirection === "up") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc)
- (0, import_i18n73.__)(
- "Block %1$s is at the beginning of the content and can\u2019t be moved up"
- ),
- type
- );
- }
- if (movementDirection === "left") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc)
- (0, import_i18n73.__)(
- "Block %1$s is at the beginning of the content and can\u2019t be moved left"
- ),
- type
- );
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(Iframe, { ...props, forwardedRef: ref });
+ }
+ var iframe_default = (0, import_element107.forwardRef)(IframeIfReady);
+
+ // packages/block-editor/build-module/components/editor-styles/index.mjs
+ var import_components31 = __toESM(require_components(), 1);
+ var import_element108 = __toESM(require_element(), 1);
+ var import_data53 = __toESM(require_data(), 1);
+
+ // node_modules/parsel-js/dist/parsel.js
+ var TOKENS = {
+ attribute: /\[\s*(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)\s*(?:(?<operator>\W?=)\s*(?<value>.+?)\s*(\s(?<caseSensitive>[iIsS]))?\s*)?\]/gu,
+ id: /#(?<name>[-\w\P{ASCII}]+)/gu,
+ class: /\.(?<name>[-\w\P{ASCII}]+)/gu,
+ comma: /\s*,\s*/g,
+ combinator: /\s*[\s>+~]\s*/g,
+ "pseudo-element": /::(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,
+ "pseudo-class": /:(?<name>[-\w\P{ASCII}]+)(?:\((?<argument>¶*)\))?/gu,
+ universal: /(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?\*/gu,
+ type: /(?:(?<namespace>\*|[-\w\P{ASCII}]*)\|)?(?<name>[-\w\P{ASCII}]+)/gu
+ // this must be last
+ };
+ var TRIM_TOKENS = /* @__PURE__ */ new Set(["combinator", "comma"]);
+ var getArgumentPatternByType = (type) => {
+ switch (type) {
+ case "pseudo-element":
+ case "pseudo-class":
+ return new RegExp(TOKENS[type].source.replace("(?<argument>\xB6*)", "(?<argument>.*)"), "gu");
+ default:
+ return TOKENS[type];
+ }
+ };
+ function gobbleParens(text, offset4) {
+ let nesting = 0;
+ let result = "";
+ for (; offset4 < text.length; offset4++) {
+ const char = text[offset4];
+ switch (char) {
+ case "(":
+ ++nesting;
+ break;
+ case ")":
+ --nesting;
+ break;
}
- if (movementDirection === "right") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Type of block (i.e. Text, Image etc)
- (0, import_i18n73.__)(
- "Block %1$s is at the beginning of the content and can\u2019t be moved right"
- ),
- type
- );
+ result += char;
+ if (nesting === 0) {
+ return result;
}
}
+ return result;
}
- function getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir, orientation) {
- const position = firstIndex + 1;
- if (isFirst && isLast) {
- return (0, import_i18n73.__)("All blocks are selected, and cannot be moved");
+ function tokenizeBy(text, grammar = TOKENS) {
+ if (!text) {
+ return [];
}
- if (dir > 0 && !isLast) {
- const movementDirection = getMovementDirection("down", orientation);
- if (movementDirection === "down") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Number of selected blocks, 2: Position of selected blocks
- (0, import_i18n73.__)("Move %1$d blocks from position %2$d down by one place"),
- selectedCount,
- position
- );
- }
- if (movementDirection === "left") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Number of selected blocks, 2: Position of selected blocks
- (0, import_i18n73.__)("Move %1$d blocks from position %2$d left by one place"),
- selectedCount,
- position
- );
- }
- if (movementDirection === "right") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Number of selected blocks, 2: Position of selected blocks
- (0, import_i18n73.__)("Move %1$d blocks from position %2$d right by one place"),
- selectedCount,
- position
- );
+ const tokens = [text];
+ for (const [type, pattern] of Object.entries(grammar)) {
+ for (let i2 = 0; i2 < tokens.length; i2++) {
+ const token = tokens[i2];
+ if (typeof token !== "string") {
+ continue;
+ }
+ pattern.lastIndex = 0;
+ const match2 = pattern.exec(token);
+ if (!match2) {
+ continue;
+ }
+ const from = match2.index - 1;
+ const args = [];
+ const content = match2[0];
+ const before = token.slice(0, from + 1);
+ if (before) {
+ args.push(before);
+ }
+ args.push({
+ ...match2.groups,
+ type,
+ content
+ });
+ const after = token.slice(from + content.length + 1);
+ if (after) {
+ args.push(after);
+ }
+ tokens.splice(i2, 1, ...args);
}
}
- if (dir > 0 && isLast) {
- const movementDirection = getMovementDirection("down", orientation);
- if (movementDirection === "down") {
- return (0, import_i18n73.__)(
- "Blocks cannot be moved down as they are already at the bottom"
- );
- }
- if (movementDirection === "left") {
- return (0, import_i18n73.__)(
- "Blocks cannot be moved left as they are already are at the leftmost position"
- );
- }
- if (movementDirection === "right") {
- return (0, import_i18n73.__)(
- "Blocks cannot be moved right as they are already are at the rightmost position"
- );
+ let offset4 = 0;
+ for (const token of tokens) {
+ switch (typeof token) {
+ case "string":
+ throw new Error(`Unexpected sequence ${token} found at index ${offset4}`);
+ case "object":
+ offset4 += token.content.length;
+ token.pos = [offset4 - token.content.length, offset4];
+ if (TRIM_TOKENS.has(token.type)) {
+ token.content = token.content.trim() || " ";
+ }
+ break;
}
}
- if (dir < 0 && !isFirst) {
- const movementDirection = getMovementDirection("up", orientation);
- if (movementDirection === "up") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Number of selected blocks, 2: Position of selected blocks
- (0, import_i18n73.__)("Move %1$d blocks from position %2$d up by one place"),
- selectedCount,
- position
- );
- }
- if (movementDirection === "left") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Number of selected blocks, 2: Position of selected blocks
- (0, import_i18n73.__)("Move %1$d blocks from position %2$d left by one place"),
- selectedCount,
- position
- );
- }
- if (movementDirection === "right") {
- return (0, import_i18n73.sprintf)(
- // translators: 1: Number of selected blocks, 2: Position of selected blocks
- (0, import_i18n73.__)("Move %1$d blocks from position %2$d right by one place"),
- selectedCount,
- position
- );
- }
+ return tokens;
+ }
+ var STRING_PATTERN = /(['"])([^\\\n]+?)\1/g;
+ var ESCAPE_PATTERN = /\\./g;
+ function tokenize(selector3, grammar = TOKENS) {
+ selector3 = selector3.trim();
+ if (selector3 === "") {
+ return [];
}
- if (dir < 0 && isFirst) {
- const movementDirection = getMovementDirection("up", orientation);
- if (movementDirection === "up") {
- return (0, import_i18n73.__)(
- "Blocks cannot be moved up as they are already at the top"
- );
- }
- if (movementDirection === "left") {
- return (0, import_i18n73.__)(
- "Blocks cannot be moved left as they are already are at the leftmost position"
- );
- }
- if (movementDirection === "right") {
- return (0, import_i18n73.__)(
- "Blocks cannot be moved right as they are already are at the rightmost position"
- );
+ const replacements = [];
+ selector3 = selector3.replace(ESCAPE_PATTERN, (value, offset4) => {
+ replacements.push({ value, offset: offset4 });
+ return "\uE000".repeat(value.length);
+ });
+ selector3 = selector3.replace(STRING_PATTERN, (value, quote, content, offset4) => {
+ replacements.push({ value, offset: offset4 });
+ return `${quote}${"\uE001".repeat(content.length)}${quote}`;
+ });
+ {
+ let pos = 0;
+ let offset4;
+ while ((offset4 = selector3.indexOf("(", pos)) > -1) {
+ const value = gobbleParens(selector3, offset4);
+ replacements.push({ value, offset: offset4 });
+ selector3 = `${selector3.substring(0, offset4)}(${"\xB6".repeat(value.length - 2)})${selector3.substring(offset4 + value.length)}`;
+ pos = offset4 + value.length;
}
}
- }
-
- // packages/block-editor/build-module/components/block-mover/button.mjs
- var import_jsx_runtime281 = __toESM(require_jsx_runtime(), 1);
- var getArrowIcon = (direction, orientation) => {
- if (direction === "up") {
- if (orientation === "horizontal") {
- return (0, import_i18n74.isRTL)() ? chevron_right_default : chevron_left_default;
- }
- return chevron_up_default;
- } else if (direction === "down") {
- if (orientation === "horizontal") {
- return (0, import_i18n74.isRTL)() ? chevron_left_default : chevron_right_default;
+ const tokens = tokenizeBy(selector3, grammar);
+ const changedTokens = /* @__PURE__ */ new Set();
+ for (const replacement of replacements.reverse()) {
+ for (const token of tokens) {
+ const { offset: offset4, value } = replacement;
+ if (!(token.pos[0] <= offset4 && offset4 + value.length <= token.pos[1])) {
+ continue;
+ }
+ const { content } = token;
+ const tokenOffset = offset4 - token.pos[0];
+ token.content = content.slice(0, tokenOffset) + value + content.slice(tokenOffset + value.length);
+ if (token.content !== content) {
+ changedTokens.add(token);
+ }
}
- return chevron_down_default;
}
- return null;
- };
- var getMovementDirectionLabel = (moveDirection, orientation) => {
- if (moveDirection === "up") {
- if (orientation === "horizontal") {
- return (0, import_i18n74.isRTL)() ? (0, import_i18n74.__)("Move right") : (0, import_i18n74.__)("Move left");
+ for (const token of changedTokens) {
+ const pattern = getArgumentPatternByType(token.type);
+ if (!pattern) {
+ throw new Error(`Unknown token type: ${token.type}`);
}
- return (0, import_i18n74.__)("Move up");
- } else if (moveDirection === "down") {
- if (orientation === "horizontal") {
- return (0, import_i18n74.isRTL)() ? (0, import_i18n74.__)("Move left") : (0, import_i18n74.__)("Move right");
+ pattern.lastIndex = 0;
+ const match2 = pattern.exec(token.content);
+ if (!match2) {
+ throw new Error(`Unable to parse content for ${token.type}: ${token.content}`);
}
- return (0, import_i18n74.__)("Move down");
+ Object.assign(token, match2.groups);
}
- return null;
- };
- var BlockMoverButton = (0, import_element156.forwardRef)(
- ({ clientIds, direction, orientation: moverOrientation, ...props }, ref) => {
- const instanceId = (0, import_compose64.useInstanceId)(BlockMoverButton);
- const normalizedClientIds = (0, import_element156.useMemo)(
- () => Array.isArray(clientIds) ? clientIds : [clientIds],
- [clientIds]
- );
- const blocksCount = normalizedClientIds.length;
- const isMobileViewport = (0, import_compose64.useViewportMatch)("small", "<");
- const {
- blockType,
- isDisabled,
- rootClientId,
- isFirst,
- isLast,
- firstIndex,
- orientation = "vertical"
- } = (0, import_data89.useSelect)(
- (select3) => {
- const {
- getBlockIndex: getBlockIndex2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlockOrder: getBlockOrder2,
- getBlock: getBlock2,
- getBlockListSettings: getBlockListSettings2
- } = select3(store);
- const firstClientId = normalizedClientIds[0];
- const blockRootClientId = getBlockRootClientId2(firstClientId);
- const firstBlockIndex = getBlockIndex2(firstClientId);
- const lastBlockIndex = getBlockIndex2(
- normalizedClientIds[normalizedClientIds.length - 1]
- );
- const blockOrder = getBlockOrder2(blockRootClientId);
- const block = getBlock2(firstClientId);
- const isFirstBlock = firstBlockIndex === 0;
- const isLastBlock = lastBlockIndex === blockOrder.length - 1;
- const { orientation: blockListOrientation } = getBlockListSettings2(blockRootClientId) || {};
- return {
- blockType: block ? (0, import_blocks50.getBlockType)(block.name) : null,
- isDisabled: direction === "up" ? isFirstBlock : isLastBlock,
- rootClientId: blockRootClientId,
- firstIndex: firstBlockIndex,
- isFirst: isFirstBlock,
- isLast: isLastBlock,
- orientation: moverOrientation || blockListOrientation
- };
- },
- [direction, moverOrientation, normalizedClientIds]
- );
- const { moveBlocksDown: moveBlocksDown2, moveBlocksUp: moveBlocksUp2 } = (0, import_data89.useDispatch)(store);
- const moverFunction = direction === "up" ? moveBlocksUp2 : moveBlocksDown2;
- const onClick = (event) => {
- moverFunction(clientIds, rootClientId);
- if (props.onClick) {
- props.onClick(event);
+ return tokens;
+ }
+ function* flatten(node, parent) {
+ switch (node.type) {
+ case "list":
+ for (let child of node.list) {
+ yield* flatten(child, node);
}
- };
- const descriptionId = `block-editor-block-mover-button__description-${instanceId}`;
- return /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(import_jsx_runtime281.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
- import_components75.Button,
- {
- __next40pxDefaultSize: true,
- ref,
- className: clsx_default(
- "block-editor-block-mover-button",
- `is-${direction}-button`
- ),
- icon: getArrowIcon(direction, orientation),
- label: getMovementDirectionLabel(
- direction,
- orientation
- ),
- tooltipPosition: !isMobileViewport && direction === "down" && orientation === "vertical" ? "bottom" : "top",
- "aria-describedby": descriptionId,
- ...props,
- onClick: isDisabled ? null : onClick,
- disabled: isDisabled,
- accessibleWhenDisabled: true,
- shortcut: direction === "up" ? import_keycodes10.displayShortcut.secondary("t") : import_keycodes10.displayShortcut.secondary("y")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(VisuallyHidden, { id: descriptionId, children: getBlockMoverDescription(
- blocksCount,
- blockType && blockType.title,
- firstIndex,
- isFirst,
- isLast,
- direction === "up" ? -1 : 1,
- orientation
- ) })
- ] });
+ break;
+ case "complex":
+ yield* flatten(node.left, node);
+ yield* flatten(node.right, node);
+ break;
+ case "compound":
+ yield* node.list.map((token) => [token, node]);
+ break;
+ default:
+ yield [node, parent];
}
- );
- var BlockMoverUpButton = (0, import_element156.forwardRef)((props, ref) => {
- return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(BlockMoverButton, { direction: "up", ref, ...props });
- });
- var BlockMoverDownButton = (0, import_element156.forwardRef)((props, ref) => {
- return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(BlockMoverButton, { direction: "down", ref, ...props });
- });
+ }
+ function stringify(listOrNode) {
+ let tokens;
+ if (Array.isArray(listOrNode)) {
+ tokens = listOrNode;
+ } else {
+ tokens = [...flatten(listOrNode)].map(([token]) => token);
+ }
+ return tokens.map((token) => token.content).join("");
+ }
- // packages/block-editor/build-module/components/block-mover/index.mjs
- var import_jsx_runtime282 = __toESM(require_jsx_runtime(), 1);
- function BlockMover({ clientIds, hideDragHandle }) {
- const {
- canMove,
- rootClientId,
- isFirst,
- isLast,
- orientation,
- isManualGrid
- } = (0, import_data90.useSelect)(
- (select3) => {
- const {
- getBlockIndex: getBlockIndex2,
- getBlockListSettings: getBlockListSettings2,
- canMoveBlocks: canMoveBlocks2,
- getBlockOrder: getBlockOrder2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlockAttributes: getBlockAttributes3
- } = select3(store);
- const normalizedClientIds = Array.isArray(clientIds) ? clientIds : [clientIds];
- const firstClientId = normalizedClientIds[0];
- const _rootClientId = getBlockRootClientId2(firstClientId);
- const firstIndex = getBlockIndex2(firstClientId);
- const lastIndex = getBlockIndex2(
- normalizedClientIds[normalizedClientIds.length - 1]
- );
- const blockOrder = getBlockOrder2(_rootClientId);
- const { layout = {} } = getBlockAttributes3(_rootClientId) ?? {};
- return {
- canMove: canMoveBlocks2(clientIds),
- rootClientId: _rootClientId,
- isFirst: firstIndex === 0,
- isLast: lastIndex === blockOrder.length - 1,
- orientation: getBlockListSettings2(_rootClientId)?.orientation,
- isManualGrid: layout.type === "grid" && layout.isManualPlacement && window.__experimentalEnableGridInteractivity
- };
+ // packages/block-editor/build-module/utils/transform-styles/index.mjs
+ var import_processor = __toESM(require_processor(), 1);
+ var import_css_syntax_error = __toESM(require_css_syntax_error(), 1);
+ var import_postcss_prefix_selector = __toESM(require_postcss_prefix_selector(), 1);
+ var import_postcss_urlrebase = __toESM(require_postcss_urlrebase(), 1);
+ var cacheByWrapperSelector = /* @__PURE__ */ new Map();
+ var ROOT_SELECTOR_TOKENS = [
+ { type: "type", content: "body" },
+ { type: "type", content: "html" },
+ { type: "pseudo-class", content: ":root" },
+ { type: "pseudo-class", content: ":where(body)" },
+ { type: "pseudo-class", content: ":where(:root)" },
+ { type: "pseudo-class", content: ":where(html)" }
+ ];
+ function prefixRootSelector(prefix2, selector3) {
+ const tokenized = tokenize(selector3);
+ const lastRootIndex = tokenized.findLastIndex(({ content, type }) => {
+ return ROOT_SELECTOR_TOKENS.some(
+ (rootSelector) => content === rootSelector.content && type === rootSelector.type
+ );
+ });
+ let insertionPoint2 = -1;
+ for (let i2 = lastRootIndex + 1; i2 < tokenized.length; i2++) {
+ if (tokenized[i2].type === "combinator") {
+ insertionPoint2 = i2;
+ break;
+ }
+ }
+ const tokenizedPrefix = tokenize(prefix2);
+ tokenized.splice(
+ // Insert at the insertion point, or the end.
+ insertionPoint2 === -1 ? tokenized.length : insertionPoint2,
+ 0,
+ {
+ type: "combinator",
+ content: " ",
+ pos: [0, 0]
},
- [clientIds]
+ ...tokenizedPrefix
);
- if (!canMove || isFirst && isLast && !rootClientId || hideDragHandle && isManualGrid) {
- return null;
+ return stringify(tokenized);
+ }
+ function transformStyle({ css, ignoredSelectors = [], baseURL }, wrapperSelector = "", transformOptions) {
+ if (!wrapperSelector && !baseURL) {
+ return css;
}
- return /* @__PURE__ */ (0, import_jsx_runtime282.jsxs)(
- import_components76.ToolbarGroup,
- {
- className: clsx_default("block-editor-block-mover", {
- "is-horizontal": orientation === "horizontal"
- }),
- children: [
- !hideDragHandle && /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(block_draggable_default, { clientIds, fadeWhenDisabled: true, children: (draggableProps) => /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
- import_components76.Button,
- {
- __next40pxDefaultSize: true,
- icon: drag_handle_default,
- className: "block-editor-block-mover__drag-handle",
- label: (0, import_i18n75.__)("Drag"),
- tabIndex: "-1",
- ...draggableProps
- }
- ) }),
- !isManualGrid && /* @__PURE__ */ (0, import_jsx_runtime282.jsxs)("div", { className: "block-editor-block-mover__move-button-container", children: [
- /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(import_components76.ToolbarItem, { children: (itemProps) => /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
- BlockMoverUpButton,
- {
- clientIds,
- ...itemProps
+ try {
+ const excludedSelectors = [
+ ...ignoredSelectors,
+ ...transformOptions?.ignoredSelectors ?? [],
+ wrapperSelector
+ ];
+ return new import_processor.default(
+ [
+ wrapperSelector && (0, import_postcss_prefix_selector.default)({
+ prefix: wrapperSelector,
+ transform(prefix2, selector3, prefixedSelector) {
+ if (excludedSelectors.some(
+ (excludedSelector) => excludedSelector instanceof RegExp ? selector3.match(excludedSelector) : selector3.includes(excludedSelector)
+ )) {
+ return selector3;
}
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(import_components76.ToolbarItem, { children: (itemProps) => /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
- BlockMoverDownButton,
- {
- clientIds,
- ...itemProps
+ const hasRootSelector = ROOT_SELECTOR_TOKENS.some(
+ (rootSelector) => selector3.startsWith(rootSelector.content)
+ );
+ if (hasRootSelector) {
+ return prefixRootSelector(prefix2, selector3);
}
- ) })
- ] })
- ]
+ return prefixedSelector;
+ }
+ }),
+ baseURL && (0, import_postcss_urlrebase.default)({ rootUrl: baseURL })
+ ].filter(Boolean)
+ ).process(css, {}).css;
+ } catch (error2) {
+ if (error2 instanceof import_css_syntax_error.default) {
+ console.warn(
+ "wp.blockEditor.transformStyles Failed to transform CSS.",
+ error2.message + "\n" + error2.showSourceCode(false)
+ );
+ } else {
+ console.warn(
+ "wp.blockEditor.transformStyles Failed to transform CSS.",
+ error2
+ );
}
- );
+ return null;
+ }
}
- var block_mover_default = BlockMover;
-
- // packages/block-editor/build-module/components/block-parent-selector/index.mjs
- var import_components77 = __toESM(require_components(), 1);
- var import_data92 = __toESM(require_data(), 1);
- var import_i18n76 = __toESM(require_i18n(), 1);
- var import_element158 = __toESM(require_element(), 1);
+ var transformStyles = (styles, wrapperSelector = "", transformOptions) => {
+ let cache = cacheByWrapperSelector.get(wrapperSelector);
+ if (!cache) {
+ cache = /* @__PURE__ */ new WeakMap();
+ cacheByWrapperSelector.set(wrapperSelector, cache);
+ }
+ return styles.map((style) => {
+ let css = cache.get(style);
+ if (!css) {
+ css = transformStyle(style, wrapperSelector, transformOptions);
+ cache.set(style, css);
+ }
+ return css;
+ });
+ };
+ var transform_styles_default = transformStyles;
- // packages/block-editor/build-module/components/block-toolbar/utils.mjs
- var import_data91 = __toESM(require_data(), 1);
- var import_element157 = __toESM(require_element(), 1);
- var { clearTimeout: clearTimeout2, setTimeout: setTimeout2 } = window;
- var DEBOUNCE_TIMEOUT = 200;
- function useDebouncedShowGestures({
- ref,
- isFocused,
- highlightParent,
- debounceTimeout = DEBOUNCE_TIMEOUT
- }) {
- const { getSelectedBlockClientId: getSelectedBlockClientId2, getBlockRootClientId: getBlockRootClientId2 } = (0, import_data91.useSelect)(store);
- const { toggleBlockHighlight: toggleBlockHighlight2 } = (0, import_data91.useDispatch)(store);
- const timeoutRef = (0, import_element157.useRef)();
- const isDistractionFree = (0, import_data91.useSelect)(
- (select3) => select3(store).getSettings().isDistractionFree,
+ // packages/block-editor/build-module/components/editor-styles/index.mjs
+ var import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
+ k([names_default, a11y_default]);
+ function useDarkThemeBodyClassName(styles, scope) {
+ return (0, import_element108.useCallback)(
+ (node) => {
+ if (!node) {
+ return;
+ }
+ const { ownerDocument: ownerDocument2 } = node;
+ const { defaultView, body } = ownerDocument2;
+ const canvas = scope ? ownerDocument2.querySelector(scope) : body;
+ let backgroundColor;
+ if (!canvas) {
+ const tempCanvas = ownerDocument2.createElement("div");
+ tempCanvas.classList.add("editor-styles-wrapper");
+ body.appendChild(tempCanvas);
+ backgroundColor = defaultView?.getComputedStyle(tempCanvas, null).getPropertyValue("background-color");
+ body.removeChild(tempCanvas);
+ } else {
+ backgroundColor = defaultView?.getComputedStyle(canvas, null).getPropertyValue("background-color");
+ }
+ const colordBackgroundColor = w(backgroundColor);
+ if (colordBackgroundColor.luminance() > 0.5 || colordBackgroundColor.alpha() === 0) {
+ body.classList.remove("is-dark-theme");
+ } else {
+ body.classList.add("is-dark-theme");
+ }
+ },
+ [styles, scope]
+ );
+ }
+ function EditorStyles({ styles, scope, transformOptions }) {
+ const overrides = (0, import_data53.useSelect)(
+ (select3) => unlock(select3(store)).getStyleOverrides(),
[]
);
- const handleOnChange = (nextIsFocused) => {
- if (nextIsFocused && isDistractionFree) {
- return;
+ const [transformedStyles, transformedSvgs] = (0, import_element108.useMemo)(() => {
+ const _styles = Object.values(styles ?? []);
+ const orderedOverrides = [
+ ...overrides.filter(
+ ([, override]) => override?.__unstableType !== "custom-css"
+ ),
+ ...overrides.filter(
+ ([, override]) => override?.__unstableType === "custom-css"
+ )
+ ];
+ for (const [id, override] of orderedOverrides) {
+ const index2 = _styles.findIndex(({ id: _id }) => id === _id);
+ const overrideWithId = { ...override, id };
+ if (index2 === -1) {
+ _styles.push(overrideWithId);
+ } else {
+ _styles[index2] = overrideWithId;
+ }
}
- const selectedBlockClientId = getSelectedBlockClientId2();
- const clientId = highlightParent ? getBlockRootClientId2(selectedBlockClientId) : selectedBlockClientId;
- toggleBlockHighlight2(clientId, nextIsFocused);
- };
- const getIsHovered = () => {
- return ref?.current && ref.current.matches(":hover");
- };
- const shouldHideGestures = () => {
- const isHovered = getIsHovered();
- return !isFocused && !isHovered;
- };
- const clearTimeoutRef = () => {
- const timeout = timeoutRef.current;
- if (timeout && clearTimeout2) {
- clearTimeout2(timeout);
- }
- };
- const debouncedShowGestures = (event) => {
- if (event) {
- event.stopPropagation();
- }
- clearTimeoutRef();
- handleOnChange(true);
- };
- const debouncedHideGestures = (event) => {
- if (event) {
- event.stopPropagation();
- }
- clearTimeoutRef();
- timeoutRef.current = setTimeout2(() => {
- if (shouldHideGestures()) {
- handleOnChange(false);
- }
- }, debounceTimeout);
- };
- (0, import_element157.useEffect)(
- () => () => {
- handleOnChange(false);
- clearTimeoutRef();
- },
- []
- );
- return {
- debouncedShowGestures,
- debouncedHideGestures
- };
- }
- function useShowHoveredOrFocusedGestures({
- ref,
- highlightParent = false,
- debounceTimeout = DEBOUNCE_TIMEOUT
- }) {
- const [isFocused, setIsFocused] = (0, import_element157.useState)(false);
- const { debouncedShowGestures, debouncedHideGestures } = useDebouncedShowGestures({
- ref,
- debounceTimeout,
- isFocused,
- highlightParent
- });
- const registerRef = (0, import_element157.useRef)(false);
- const isFocusedWithin = () => {
- return ref?.current && ref.current.contains(ref.current.ownerDocument.activeElement);
- };
- (0, import_element157.useEffect)(() => {
- const node = ref.current;
- const handleOnFocus = () => {
- if (isFocusedWithin()) {
- setIsFocused(true);
- debouncedShowGestures();
- }
- };
- const handleOnBlur = () => {
- if (!isFocusedWithin()) {
- setIsFocused(false);
- debouncedHideGestures();
+ return [
+ transform_styles_default(
+ _styles.filter((style) => style?.css),
+ scope,
+ transformOptions
+ ),
+ _styles.filter((style) => style.__unstableType === "svgs").map((style) => style.assets).join("")
+ ];
+ }, [styles, overrides, scope, transformOptions]);
+ return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(import_jsx_runtime231.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
+ "style",
+ {
+ ref: useDarkThemeBodyClassName(transformedStyles, scope)
}
- };
- if (node && !registerRef.current) {
- node.addEventListener("focus", handleOnFocus, true);
- node.addEventListener("blur", handleOnBlur, true);
- registerRef.current = true;
- }
- return () => {
- if (node) {
- node.removeEventListener("focus", handleOnFocus);
- node.removeEventListener("blur", handleOnBlur);
+ ),
+ transformedStyles.map((css, index2) => /* @__PURE__ */ (0, import_jsx_runtime231.jsx)("style", { children: css }, index2)),
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
+ import_components31.SVG,
+ {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 0 0",
+ width: "0",
+ height: "0",
+ role: "none",
+ style: {
+ visibility: "hidden",
+ position: "absolute",
+ left: "-9999px",
+ overflow: "hidden"
+ },
+ dangerouslySetInnerHTML: { __html: transformedSvgs }
}
- };
- }, [
- ref,
- registerRef,
- setIsFocused,
- debouncedShowGestures,
- debouncedHideGestures
- ]);
- return {
- onMouseMove: debouncedShowGestures,
- onMouseLeave: debouncedHideGestures
- };
+ )
+ ] });
}
+ var editor_styles_default = (0, import_element108.memo)(EditorStyles);
- // packages/block-editor/build-module/components/block-parent-selector/index.mjs
- var import_jsx_runtime283 = __toESM(require_jsx_runtime(), 1);
- function BlockParentSelector() {
- const { selectBlock: selectBlock2 } = (0, import_data92.useDispatch)(store);
- const { parentClientId } = (0, import_data92.useSelect)((select3) => {
- const {
- getBlockParents: getBlockParents2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getParentSectionBlock: getParentSectionBlock2
- } = unlock(select3(store));
- const [selectedBlockClientId] = getSelectedBlockClientIds2();
- const parentSection = getParentSectionBlock2(selectedBlockClientId);
- const parents = getBlockParents2(selectedBlockClientId);
- const _parentClientId = parentSection ?? parents[parents.length - 1];
+ // packages/block-editor/build-module/components/block-preview/auto.mjs
+ var import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
+ var MemoizedBlockList = (0, import_element109.memo)(BlockList);
+ var MAX_HEIGHT = 2e3;
+ var EMPTY_ADDITIONAL_STYLES = [];
+ function ScaledBlockPreview({
+ viewportWidth,
+ containerWidth,
+ minHeight,
+ additionalStyles = EMPTY_ADDITIONAL_STYLES
+ }) {
+ if (!viewportWidth) {
+ viewportWidth = containerWidth;
+ }
+ const [contentResizeListener, { height: contentHeight }] = (0, import_compose37.useResizeObserver)();
+ const { styles } = (0, import_data54.useSelect)((select3) => {
+ const settings2 = select3(store).getSettings();
return {
- parentClientId: _parentClientId
+ styles: settings2.styles
};
}, []);
- const blockInformation = useBlockDisplayInformation(parentClientId);
- const nodeRef = (0, import_element158.useRef)();
- const showHoveredOrFocusedGestures = useShowHoveredOrFocusedGestures({
- ref: nodeRef,
- highlightParent: true
- });
- return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
- "div",
+ const editorStyles = (0, import_element109.useMemo)(() => {
+ if (styles) {
+ return [
+ ...styles,
+ {
+ css: "body{height:auto;overflow:hidden;border:none;padding:0;}",
+ __unstableType: "presets"
+ },
+ ...additionalStyles
+ ];
+ }
+ return styles;
+ }, [styles, additionalStyles]);
+ const scale = containerWidth / viewportWidth;
+ const aspectRatio = contentHeight ? containerWidth / (contentHeight * scale) : 0;
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
+ import_components32.Disabled,
{
- className: "block-editor-block-parent-selector",
- ref: nodeRef,
- ...showHoveredOrFocusedGestures,
- children: /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
- import_components77.ToolbarButton,
+ className: "block-editor-block-preview__content",
+ style: {
+ transform: `scale(${scale})`,
+ // Using width + aspect-ratio instead of height here triggers browsers' native
+ // handling of scrollbar's visibility. It prevents the flickering issue seen
+ // in https://github.com/WordPress/gutenberg/issues/52027.
+ // See https://github.com/WordPress/gutenberg/pull/52921 for more info.
+ aspectRatio,
+ maxHeight: contentHeight > MAX_HEIGHT ? MAX_HEIGHT * scale : void 0,
+ minHeight
+ },
+ children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
+ iframe_default,
{
- className: "block-editor-block-parent-selector__button",
- onClick: () => selectBlock2(parentClientId),
- label: (0, import_i18n76.sprintf)(
- /* translators: %s: Name of the block's parent. */
- (0, import_i18n76.__)("Select parent block: %s"),
- blockInformation?.title
- ),
- showTooltip: true,
- icon: /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(block_icon_default, { icon: blockInformation?.icon })
+ contentRef: (0, import_compose37.useRefEffect)((bodyElement) => {
+ const {
+ ownerDocument: { documentElement }
+ } = bodyElement;
+ documentElement.classList.add(
+ "block-editor-block-preview__content-iframe"
+ );
+ documentElement.style.position = "absolute";
+ documentElement.style.width = "100%";
+ bodyElement.style.boxSizing = "border-box";
+ bodyElement.style.position = "absolute";
+ bodyElement.style.width = "100%";
+ }, []),
+ "aria-hidden": true,
+ tabIndex: -1,
+ style: {
+ position: "absolute",
+ width: viewportWidth,
+ height: contentHeight,
+ pointerEvents: "none",
+ // This is a catch-all max-height for patterns.
+ // See: https://github.com/WordPress/gutenberg/pull/38175.
+ maxHeight: MAX_HEIGHT,
+ minHeight: scale !== 0 && scale < 1 && minHeight ? minHeight / scale : minHeight
+ },
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(editor_styles_default, { styles: editorStyles }),
+ contentResizeListener,
+ /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(MemoizedBlockList, { renderAppender: false })
+ ]
}
)
- },
- parentClientId
+ }
);
}
+ function AutoBlockPreview(props) {
+ const [containerResizeListener, { width: containerWidth }] = (0, import_compose37.useResizeObserver)();
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(import_jsx_runtime232.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { style: { position: "relative", width: "100%", height: 0 }, children: containerResizeListener }),
+ /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { className: "block-editor-block-preview__container", children: !!containerWidth && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
+ ScaledBlockPreview,
+ {
+ ...props,
+ containerWidth
+ }
+ ) })
+ ] });
+ }
- // packages/block-editor/build-module/components/block-controls/fill.mjs
- var import_components79 = __toESM(require_components(), 1);
-
- // packages/block-editor/build-module/components/block-controls/groups.mjs
- var import_components78 = __toESM(require_components(), 1);
- var BlockControlsDefault = (0, import_components78.createSlotFill)("BlockControls");
- var BlockControlsBlock = (0, import_components78.createSlotFill)("BlockControlsBlock");
- var BlockControlsInline = (0, import_components78.createSlotFill)("BlockFormatControls");
- var BlockControlsOther = (0, import_components78.createSlotFill)("BlockControlsOther");
- var BlockControlsParent = (0, import_components78.createSlotFill)("BlockControlsParent");
- var BlockControlsStyleState = (0, import_components78.createSlotFill)("BlockControlsStyleState");
- var groups2 = {
- default: BlockControlsDefault,
- block: BlockControlsBlock,
- inline: BlockControlsInline,
- other: BlockControlsOther,
- parent: BlockControlsParent,
- "style-state": BlockControlsStyleState
- };
- var groups_default2 = groups2;
-
- // packages/block-editor/build-module/components/block-controls/hook.mjs
- function useBlockControlsFill(group, shareWithChildBlocks) {
- const context = useBlockEditContext();
- if (context[mayDisplayControlsKey]) {
- return groups_default2[group]?.Fill;
- }
- if (context[mayDisplayParentControlsKey] && shareWithChildBlocks) {
- return groups_default2.parent.Fill;
+ // packages/block-editor/build-module/components/block-preview/async.mjs
+ var import_element110 = __toESM(require_element(), 1);
+ var import_priority_queue = __toESM(require_priority_queue(), 1);
+ var blockPreviewQueue = (0, import_priority_queue.createQueue)();
+ function Async({ children, placeholder }) {
+ const [shouldRender, setShouldRender] = (0, import_element110.useState)(false);
+ (0, import_element110.useEffect)(() => {
+ const context = {};
+ blockPreviewQueue.add(context, () => {
+ (0, import_element110.flushSync)(() => {
+ setShouldRender(true);
+ });
+ });
+ return () => {
+ blockPreviewQueue.cancel(context);
+ };
+ }, []);
+ if (!shouldRender) {
+ return placeholder;
}
- return null;
+ return children;
}
- // packages/block-editor/build-module/components/block-controls/fill.mjs
- var import_jsx_runtime284 = __toESM(require_jsx_runtime(), 1);
- function BlockControlsFill({
- group = "default",
- controls,
- children,
- __experimentalShareWithChildBlocks = false
+ // packages/block-editor/build-module/components/block-preview/index.mjs
+ var import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
+ var EMPTY_ADDITIONAL_STYLES2 = [];
+ function BlockPreview({
+ blocks: blocks2,
+ viewportWidth = 1200,
+ minHeight,
+ additionalStyles = EMPTY_ADDITIONAL_STYLES2,
+ // Deprecated props:
+ __experimentalMinHeight,
+ __experimentalPadding
}) {
- const Fill5 = useBlockControlsFill(
- group,
- __experimentalShareWithChildBlocks
+ if (__experimentalMinHeight) {
+ minHeight = __experimentalMinHeight;
+ (0, import_deprecated7.default)("The __experimentalMinHeight prop", {
+ since: "6.2",
+ version: "6.4",
+ alternative: "minHeight"
+ });
+ }
+ if (__experimentalPadding) {
+ additionalStyles = [
+ ...additionalStyles,
+ { css: `body { padding: ${__experimentalPadding}px; }` }
+ ];
+ (0, import_deprecated7.default)("The __experimentalPadding prop of BlockPreview", {
+ since: "6.2",
+ version: "6.4",
+ alternative: "additionalStyles"
+ });
+ }
+ const originalSettings = (0, import_data55.useSelect)(
+ (select3) => select3(store).getSettings(),
+ []
);
- if (!Fill5) {
+ const settings2 = (0, import_element111.useMemo)(
+ () => ({
+ ...originalSettings,
+ focusMode: false,
+ // Disable "Spotlight mode".
+ isPreviewMode: true
+ }),
+ [originalSettings]
+ );
+ const renderedBlocks = (0, import_element111.useMemo)(
+ () => Array.isArray(blocks2) ? blocks2 : [blocks2],
+ [blocks2]
+ );
+ if (!blocks2 || blocks2.length === 0) {
return null;
}
- const innerMarkup = /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_jsx_runtime284.Fragment, { children: [
- group === "default" && /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(import_components79.ToolbarGroup, { controls }),
- children
- ] });
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(import_components79.__experimentalStyleProvider, { document, children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Fill5, { children: (fillProps) => {
- const { forwardedContext = [] } = fillProps;
- return forwardedContext.reduce(
- (inner, [Provider3, props]) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Provider3, { ...props, children: inner }),
- innerMarkup
- );
- } }) });
+ return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
+ ExperimentalBlockEditorProvider,
+ {
+ value: renderedBlocks,
+ settings: settings2,
+ children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
+ AutoBlockPreview,
+ {
+ viewportWidth,
+ minHeight,
+ additionalStyles
+ }
+ )
+ }
+ );
}
-
- // packages/block-editor/build-module/components/block-controls/slot.mjs
- var import_element159 = __toESM(require_element(), 1);
- var import_components80 = __toESM(require_components(), 1);
- var import_warning7 = __toESM(require_warning(), 1);
- var import_jsx_runtime285 = __toESM(require_jsx_runtime(), 1);
- var { ComponentsContext } = unlock(import_components80.privateApis);
- function BlockControlsSlot({ group = "default", ...props }) {
- const toolbarState = (0, import_element159.useContext)(import_components80.__experimentalToolbarContext);
- const contextState = (0, import_element159.useContext)(ComponentsContext);
- const fillProps = (0, import_element159.useMemo)(
+ var MemoizedBlockPreview = (0, import_element111.memo)(BlockPreview);
+ MemoizedBlockPreview.Async = Async;
+ var block_preview_default = MemoizedBlockPreview;
+ function useBlockPreview({ blocks: blocks2, props = {}, layout }) {
+ const originalSettings = (0, import_data55.useSelect)(
+ (select3) => select3(store).getSettings(),
+ []
+ );
+ const settings2 = (0, import_element111.useMemo)(
() => ({
- forwardedContext: [
- [import_components80.__experimentalToolbarContext.Provider, { value: toolbarState }],
- [ComponentsContext.Provider, { value: contextState }]
- ]
+ ...originalSettings,
+ styles: void 0,
+ // Clear styles included by the parent settings, as they are already output by the parent's EditorStyles.
+ focusMode: false,
+ // Disable "Spotlight mode".
+ isPreviewMode: true
}),
- [toolbarState, contextState]
+ [originalSettings]
);
- const slotFill = groups_default2[group];
- const fills = (0, import_components80.__experimentalUseSlotFills)(slotFill.name);
- if (!slotFill) {
- (0, import_warning7.default)(`Unknown BlockControls group "${group}" provided.`);
- return null;
- }
- if (!fills?.length) {
- return null;
- }
- const { Slot: Slot10 } = slotFill;
- const slot = /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Slot10, { ...props, bubblesVirtually: true, fillProps });
- if (group === "default") {
- return slot;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(import_components80.ToolbarGroup, { children: slot });
+ const disabledRef = (0, import_compose38.useDisabled)();
+ const ref = (0, import_compose38.useMergeRefs)([props.ref, disabledRef]);
+ const renderedBlocks = (0, import_element111.useMemo)(
+ () => Array.isArray(blocks2) ? blocks2 : [blocks2],
+ [blocks2]
+ );
+ const children = /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
+ ExperimentalBlockEditorProvider,
+ {
+ value: renderedBlocks,
+ settings: settings2,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(editor_styles_default, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(BlockListItems, { renderAppender: false, layout })
+ ]
+ }
+ );
+ return {
+ ...props,
+ ref,
+ className: clsx_default(
+ props.className,
+ "block-editor-block-preview__live-content",
+ "components-disabled"
+ ),
+ children: blocks2?.length ? children : null
+ };
}
- // packages/block-editor/build-module/components/block-controls/index.mjs
- var import_jsx_runtime286 = __toESM(require_jsx_runtime(), 1);
- var BlockControls = BlockControlsFill;
- BlockControls.Slot = BlockControlsSlot;
- var BlockFormatControls = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(BlockControlsFill, { group: "inline", ...props });
- };
- BlockFormatControls.Slot = function Slot4(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(BlockControlsSlot, { group: "inline", ...props });
- };
- var block_controls_default = BlockControls;
-
- // packages/block-editor/build-module/components/block-toolbar/block-toolbar-last-item.mjs
- var import_components81 = __toESM(require_components(), 1);
- var { Fill: __unstableBlockToolbarLastItem, Slot: Slot5 } = (0, import_components81.createSlotFill)(
- "__unstableBlockToolbarLastItem"
- );
- __unstableBlockToolbarLastItem.Slot = Slot5;
- var block_toolbar_last_item_default = __unstableBlockToolbarLastItem;
+ // packages/block-editor/build-module/components/inserter/preview-panel.mjs
+ var import_jsx_runtime234 = __toESM(require_jsx_runtime(), 1);
+ function InserterPreviewPanel({ item }) {
+ const { name, title, icon, description, initialAttributes, example } = item;
+ const isReusable = (0, import_blocks33.isReusableBlock)(item);
+ const blocks2 = (0, import_element112.useMemo)(() => {
+ if (!example) {
+ return (0, import_blocks33.createBlock)(name, initialAttributes);
+ }
+ return (0, import_blocks33.getBlockFromExample)(name, {
+ attributes: {
+ ...example.attributes,
+ ...initialAttributes
+ },
+ innerBlocks: example.innerBlocks,
+ innerContent: example.innerContent
+ });
+ }, [name, example, initialAttributes]);
+ const previewHeight = 144;
+ const sidebarWidth = 280;
+ const viewportWidth = example?.viewportWidth ?? 500;
+ const scale = sidebarWidth / viewportWidth;
+ const minHeight = scale !== 0 && scale < 1 && previewHeight ? previewHeight / scale : previewHeight;
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)("div", { className: "block-editor-inserter__preview-container", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { className: "block-editor-inserter__preview", children: isReusable || example ? /* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { className: "block-editor-inserter__preview-content", children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
+ block_preview_default,
+ {
+ blocks: blocks2,
+ viewportWidth,
+ minHeight: previewHeight,
+ additionalStyles: (
+ //We want this CSS to be in sync with the one in BlockPreviewPanel.
+ [
+ {
+ css: `
+ body {
+ padding: 24px;
+ min-height:${Math.round(minHeight)}px;
+ display:flex;
+ align-items:center;
+ }
+ .is-root-container { width: 100%; }
+ `
+ }
+ ]
+ )
+ }
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { className: "block-editor-inserter__preview-content-missing", children: (0, import_i18n43.__)("No preview available.") }) }),
+ !isReusable && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
+ block_card_default,
+ {
+ title,
+ icon,
+ description
+ }
+ )
+ ] });
+ }
+ var preview_panel_default = InserterPreviewPanel;
- // packages/block-editor/build-module/components/block-settings-menu/index.mjs
- var import_components97 = __toESM(require_components(), 1);
+ // packages/block-editor/build-module/components/inserter/block-types-tab.mjs
+ var import_i18n47 = __toESM(require_i18n(), 1);
+ var import_element119 = __toESM(require_element(), 1);
+ var import_compose40 = __toESM(require_compose(), 1);
- // packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.mjs
- var import_blocks62 = __toESM(require_blocks(), 1);
- var import_components95 = __toESM(require_components(), 1);
- var import_data106 = __toESM(require_data(), 1);
- var import_element167 = __toESM(require_element(), 1);
- var import_i18n88 = __toESM(require_i18n(), 1);
- var import_keyboard_shortcuts7 = __toESM(require_keyboard_shortcuts(), 1);
- var import_compose66 = __toESM(require_compose(), 1);
+ // packages/block-editor/build-module/components/block-types-list/index.mjs
+ var import_blocks36 = __toESM(require_blocks(), 1);
+ var import_compose39 = __toESM(require_compose(), 1);
- // packages/block-editor/build-module/components/block-actions/index.mjs
- var import_data94 = __toESM(require_data(), 1);
- var import_blocks53 = __toESM(require_blocks(), 1);
+ // packages/block-editor/build-module/components/inserter-list-item/index.mjs
+ var import_element118 = __toESM(require_element(), 1);
+ var import_blocks35 = __toESM(require_blocks(), 1);
+ var import_components38 = __toESM(require_components(), 1);
+ var import_keycodes8 = __toESM(require_keycodes(), 1);
- // packages/block-editor/build-module/components/use-paste-styles/index.mjs
- var import_element160 = __toESM(require_element(), 1);
- var import_blocks52 = __toESM(require_blocks(), 1);
- var import_data93 = __toESM(require_data(), 1);
- var import_notices8 = __toESM(require_notices(), 1);
- var import_i18n77 = __toESM(require_i18n(), 1);
+ // packages/block-editor/build-module/components/inserter-listbox/index.mjs
+ var import_components35 = __toESM(require_components(), 1);
+ var import_element116 = __toESM(require_element(), 1);
- // packages/block-editor/build-module/hooks/supports.mjs
- var import_blocks51 = __toESM(require_blocks(), 1);
- var ALIGN_SUPPORT_KEY = "align";
- var BORDER_SUPPORT_KEY = "__experimentalBorder";
- var COLOR_SUPPORT_KEY = "color";
- var CUSTOM_CLASS_NAME_SUPPORT_KEY = "customClassName";
- var FONT_FAMILY_SUPPORT_KEY = "typography.__experimentalFontFamily";
- var FONT_SIZE_SUPPORT_KEY = "typography.fontSize";
- var LINE_HEIGHT_SUPPORT_KEY = "typography.lineHeight";
- var FONT_STYLE_SUPPORT_KEY = "typography.__experimentalFontStyle";
- var FONT_WEIGHT_SUPPORT_KEY = "typography.__experimentalFontWeight";
- var TEXT_ALIGN_SUPPORT_KEY = "typography.textAlign";
- var TEXT_COLUMNS_SUPPORT_KEY = "typography.textColumns";
- var TEXT_DECORATION_SUPPORT_KEY = "typography.__experimentalTextDecoration";
- var WRITING_MODE_SUPPORT_KEY = "typography.__experimentalWritingMode";
- var TEXT_TRANSFORM_SUPPORT_KEY = "typography.__experimentalTextTransform";
- var LETTER_SPACING_SUPPORT_KEY = "typography.__experimentalLetterSpacing";
- var LAYOUT_SUPPORT_KEY = "layout";
- var TYPOGRAPHY_SUPPORT_KEYS = [
- LINE_HEIGHT_SUPPORT_KEY,
- FONT_SIZE_SUPPORT_KEY,
- FONT_STYLE_SUPPORT_KEY,
- FONT_WEIGHT_SUPPORT_KEY,
- FONT_FAMILY_SUPPORT_KEY,
- TEXT_ALIGN_SUPPORT_KEY,
- TEXT_COLUMNS_SUPPORT_KEY,
- TEXT_DECORATION_SUPPORT_KEY,
- TEXT_TRANSFORM_SUPPORT_KEY,
- WRITING_MODE_SUPPORT_KEY,
- LETTER_SPACING_SUPPORT_KEY
- ];
- var EFFECTS_SUPPORT_KEYS = ["shadow"];
- var SPACING_SUPPORT_KEY = "spacing";
- var styleSupportKeys = [
- ...EFFECTS_SUPPORT_KEYS,
- ...TYPOGRAPHY_SUPPORT_KEYS,
- BORDER_SUPPORT_KEY,
- COLOR_SUPPORT_KEY,
- SPACING_SUPPORT_KEY
- ];
- var hasAlignSupport = (nameOrType) => (0, import_blocks51.hasBlockSupport)(nameOrType, ALIGN_SUPPORT_KEY);
- function hasBorderSupport(nameOrType, feature = "any") {
- const support = (0, import_blocks51.getBlockSupport)(nameOrType, BORDER_SUPPORT_KEY);
- if (support === true) {
- return true;
- }
- if (feature === "any") {
- return !!(support?.color || support?.radius || support?.width || support?.style);
- }
- return !!support?.[feature];
- }
- var hasGradientSupport = (nameOrType) => {
- const colorSupport = (0, import_blocks51.getBlockSupport)(nameOrType, COLOR_SUPPORT_KEY);
- return colorSupport !== null && typeof colorSupport === "object" && !!colorSupport.gradients;
- };
- var hasBackgroundColorSupport = (nameOrType) => {
- const colorSupport = (0, import_blocks51.getBlockSupport)(nameOrType, COLOR_SUPPORT_KEY);
- return colorSupport && colorSupport.background !== false;
- };
- var hasTextAlignSupport = (nameOrType) => (0, import_blocks51.hasBlockSupport)(nameOrType, TEXT_ALIGN_SUPPORT_KEY);
- var hasTextColorSupport = (nameOrType) => {
- const colorSupport = (0, import_blocks51.getBlockSupport)(nameOrType, COLOR_SUPPORT_KEY);
- return colorSupport && colorSupport.text !== false;
- };
- var hasCustomClassNameSupport = (nameOrType) => (0, import_blocks51.hasBlockSupport)(nameOrType, CUSTOM_CLASS_NAME_SUPPORT_KEY, true);
- var hasFontFamilySupport = (nameOrType) => (0, import_blocks51.hasBlockSupport)(nameOrType, FONT_FAMILY_SUPPORT_KEY);
- var hasFontSizeSupport = (nameOrType) => (0, import_blocks51.hasBlockSupport)(nameOrType, FONT_SIZE_SUPPORT_KEY);
- var hasLayoutSupport = (nameOrType) => (0, import_blocks51.hasBlockSupport)(nameOrType, LAYOUT_SUPPORT_KEY);
- var hasStyleSupport = (nameOrType) => styleSupportKeys.some((key) => (0, import_blocks51.hasBlockSupport)(nameOrType, key));
-
- // packages/block-editor/build-module/components/use-paste-styles/index.mjs
- function hasSerializedBlocks(text) {
- try {
- const blocks2 = (0, import_blocks52.parse)(text, {
- __unstableSkipMigrationLogs: true,
- __unstableSkipAutop: true
- });
- if (blocks2.length === 1 && blocks2[0].name === "core/freeform") {
- return false;
+ // packages/block-editor/build-module/components/inserter-listbox/group.mjs
+ var import_element113 = __toESM(require_element(), 1);
+ var import_i18n44 = __toESM(require_i18n(), 1);
+ var import_a11y6 = __toESM(require_a11y(), 1);
+ var import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
+ function InserterListboxGroup(props, ref) {
+ const [shouldSpeak, setShouldSpeak] = (0, import_element113.useState)(false);
+ (0, import_element113.useEffect)(() => {
+ if (shouldSpeak) {
+ (0, import_a11y6.speak)(
+ (0, import_i18n44.__)("Use left and right arrow keys to move through blocks")
+ );
+ }
+ }, [shouldSpeak]);
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
+ "div",
+ {
+ ref,
+ role: "listbox",
+ "aria-orientation": "horizontal",
+ onFocus: () => {
+ setShouldSpeak(true);
+ },
+ onBlur: (event) => {
+ const focusingOutsideGroup = !event.currentTarget.contains(
+ event.relatedTarget
+ );
+ if (focusingOutsideGroup) {
+ setShouldSpeak(false);
+ }
+ },
+ ...props
}
- return true;
- } catch {
- return false;
- }
- }
- var STYLE_ATTRIBUTES = {
- align: hasAlignSupport,
- borderColor: (nameOrType) => hasBorderSupport(nameOrType, "color"),
- backgroundColor: hasBackgroundColorSupport,
- textAlign: hasTextAlignSupport,
- textColor: hasTextColorSupport,
- gradient: hasGradientSupport,
- className: hasCustomClassNameSupport,
- fontFamily: hasFontFamilySupport,
- fontSize: hasFontSizeSupport,
- layout: hasLayoutSupport,
- style: hasStyleSupport
- };
- function getStyleAttributes(sourceBlock, targetBlock) {
- return Object.entries(STYLE_ATTRIBUTES).reduce(
- (attributes, [attributeKey, hasSupport]) => {
- if (hasSupport(sourceBlock.name) && hasSupport(targetBlock.name)) {
- attributes[attributeKey] = sourceBlock.attributes[attributeKey];
- }
- return attributes;
- },
- {}
);
}
- function recursivelyUpdateBlockAttributes(targetBlocks, sourceBlocks, updateBlockAttributes2) {
- for (let index2 = 0; index2 < Math.min(sourceBlocks.length, targetBlocks.length); index2 += 1) {
- updateBlockAttributes2(
- targetBlocks[index2].clientId,
- getStyleAttributes(sourceBlocks[index2], targetBlocks[index2])
- );
- recursivelyUpdateBlockAttributes(
- targetBlocks[index2].innerBlocks,
- sourceBlocks[index2].innerBlocks,
- updateBlockAttributes2
- );
- }
+ var group_default2 = (0, import_element113.forwardRef)(InserterListboxGroup);
+
+ // packages/block-editor/build-module/components/inserter-listbox/row.mjs
+ var import_element114 = __toESM(require_element(), 1);
+ var import_components33 = __toESM(require_components(), 1);
+ var import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
+ function InserterListboxRow(props, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(import_components33.Composite.Group, { role: "presentation", ref, ...props });
}
- function usePasteStyles() {
- const registry = (0, import_data93.useRegistry)();
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data93.useDispatch)(store);
- const { createSuccessNotice, createWarningNotice, createErrorNotice } = (0, import_data93.useDispatch)(import_notices8.store);
- return (0, import_element160.useCallback)(
- async (targetBlocks) => {
- let html = "";
- try {
- if (!window.navigator.clipboard) {
- createErrorNotice(
- (0, import_i18n77.__)(
- "Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."
- ),
- { type: "snackbar" }
- );
- return;
+ var row_default2 = (0, import_element114.forwardRef)(InserterListboxRow);
+
+ // packages/block-editor/build-module/components/inserter-listbox/item.mjs
+ var import_components34 = __toESM(require_components(), 1);
+ var import_element115 = __toESM(require_element(), 1);
+ var import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
+ function InserterListboxItem({ isFirst, as: Component5, children, ...props }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
+ import_components34.Composite.Item,
+ {
+ ref,
+ role: "option",
+ accessibleWhenDisabled: true,
+ ...props,
+ render: (htmlProps) => {
+ const propsWithTabIndex = {
+ ...htmlProps,
+ tabIndex: isFirst ? 0 : htmlProps.tabIndex
+ };
+ if (Component5) {
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Component5, { ...propsWithTabIndex, children });
}
- html = await window.navigator.clipboard.readText();
- } catch {
- createErrorNotice(
- (0, import_i18n77.__)(
- "Unable to paste styles. Please allow browser clipboard permissions before continuing."
- ),
- {
- type: "snackbar"
- }
- );
- return;
- }
- if (!html || !hasSerializedBlocks(html)) {
- createWarningNotice(
- (0, import_i18n77.__)(
- "Unable to paste styles. Block styles couldn't be found within the copied content."
- ),
- {
- type: "snackbar"
- }
- );
- return;
- }
- const copiedBlocks = (0, import_blocks52.parse)(html);
- if (copiedBlocks.length === 1) {
- registry.batch(() => {
- recursivelyUpdateBlockAttributes(
- targetBlocks,
- targetBlocks.map(() => copiedBlocks[0]),
- updateBlockAttributes2
- );
- });
- } else {
- registry.batch(() => {
- recursivelyUpdateBlockAttributes(
- targetBlocks,
- copiedBlocks,
- updateBlockAttributes2
- );
- });
- }
- if (targetBlocks.length === 1) {
- const title = (0, import_blocks52.getBlockType)(targetBlocks[0].name)?.title;
- createSuccessNotice(
- (0, import_i18n77.sprintf)(
- // Translators: %s: Name of the block being pasted, e.g. "Paragraph".
- (0, import_i18n77.__)("Pasted styles to %s."),
- title
- ),
- { type: "snackbar" }
- );
- } else {
- createSuccessNotice(
- (0, import_i18n77.sprintf)(
- // Translators: %d: The number of the blocks.
- (0, import_i18n77.__)("Pasted styles to %d blocks."),
- targetBlocks.length
- ),
- { type: "snackbar" }
- );
+ if (typeof children === "function") {
+ return children(propsWithTabIndex);
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(import_components34.Button, { __next40pxDefaultSize: true, ...propsWithTabIndex, children });
}
- },
- [
- registry.batch,
- updateBlockAttributes2,
- createSuccessNotice,
- createWarningNotice,
- createErrorNotice
- ]
+ }
);
}
+ var item_default = (0, import_element115.forwardRef)(InserterListboxItem);
- // packages/block-editor/build-module/components/block-actions/index.mjs
- function BlockActions({
- clientIds,
- children,
- __experimentalUpdateSelection: updateSelection
- }) {
- const { getDefaultBlockName: getDefaultBlockName8, getGroupingBlockName } = (0, import_data94.useSelect)(import_blocks53.store);
- const selected = (0, import_data94.useSelect)(
- (select3) => {
- const {
- canInsertBlockType: canInsertBlockType2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlocksByClientId: getBlocksByClientId22,
- getDirectInsertBlock: getDirectInsertBlock2,
- canRemoveBlocks: canRemoveBlocks2
- } = select3(store);
- const blocks2 = getBlocksByClientId22(clientIds);
- const rootClientId = getBlockRootClientId2(clientIds[0]);
- const canInsertDefaultBlock = canInsertBlockType2(
- getDefaultBlockName8(),
- rootClientId
- );
- const directInsertBlock = rootClientId ? getDirectInsertBlock2(rootClientId) : null;
- return {
- canRemove: canRemoveBlocks2(clientIds),
- canInsertBlock: blocks2.every((block) => {
- return (canInsertDefaultBlock || !!directInsertBlock) && canInsertBlockType2(block.name, rootClientId);
- }),
- canCopyStyles: blocks2.every((block) => {
- return !!block && ((0, import_blocks53.hasBlockSupport)(block.name, "color") || (0, import_blocks53.hasBlockSupport)(block.name, "typography"));
- }),
- canDuplicate: blocks2.every((block) => {
- return !!block && (0, import_blocks53.hasBlockSupport)(block.name, "multiple", true) && canInsertBlockType2(block.name, rootClientId);
- })
- };
- },
- [clientIds, getDefaultBlockName8]
- );
- const { getBlocksByClientId: getBlocksByClientId2, getBlocks: getBlocks2 } = (0, import_data94.useSelect)(store);
- const { canRemove, canInsertBlock, canCopyStyles, canDuplicate } = selected;
- const {
- removeBlocks: removeBlocks2,
- replaceBlocks: replaceBlocks2,
- duplicateBlocks: duplicateBlocks2,
- insertAfterBlock: insertAfterBlock2,
- insertBeforeBlock: insertBeforeBlock2,
- flashBlock: flashBlock2
- } = (0, import_data94.useDispatch)(store);
- const pasteStyles = usePasteStyles();
- return children({
- canCopyStyles,
- canDuplicate,
- canInsertBlock,
- canRemove,
- onDuplicate() {
- return duplicateBlocks2(clientIds, updateSelection);
- },
- onRemove() {
- return removeBlocks2(clientIds, updateSelection);
- },
- onInsertBefore() {
- insertBeforeBlock2(clientIds[0]);
- },
- onInsertAfter() {
- insertAfterBlock2(clientIds[clientIds.length - 1]);
- },
- onGroup() {
- if (!clientIds.length) {
- return;
- }
- const groupingBlockName = getGroupingBlockName();
- const newBlocks = (0, import_blocks53.switchToBlockType)(
- getBlocksByClientId2(clientIds),
- groupingBlockName
- );
- if (!newBlocks) {
- return;
- }
- replaceBlocks2(clientIds, newBlocks);
- },
- onUngroup() {
- if (!clientIds.length) {
- return;
- }
- const innerBlocks = getBlocks2(clientIds[0]);
- if (!innerBlocks.length) {
- return;
- }
- replaceBlocks2(clientIds, innerBlocks);
- },
- onCopy() {
- if (clientIds.length === 1) {
- flashBlock2(clientIds[0]);
- }
- },
- async onPasteStyles() {
- await pasteStyles(getBlocksByClientId2(clientIds));
- }
- });
+ // packages/block-editor/build-module/components/inserter-listbox/index.mjs
+ var import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
+ function InserterListBoxWrapper({ key, children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_element116.Fragment, { children }, key);
}
-
- // packages/block-editor/build-module/components/collab/note-icon-slot.mjs
- var import_components82 = __toESM(require_components(), 1);
- var NoteIconSlotFill = (0, import_components82.createSlotFill)(/* @__PURE__ */ Symbol("NoteIconSlotFill"));
- var note_icon_slot_default = NoteIconSlotFill;
-
- // packages/block-editor/build-module/components/block-settings-menu/block-html-convert-button.mjs
- var import_i18n78 = __toESM(require_i18n(), 1);
- var import_components83 = __toESM(require_components(), 1);
- var import_blocks54 = __toESM(require_blocks(), 1);
- var import_data95 = __toESM(require_data(), 1);
- var import_jsx_runtime287 = __toESM(require_jsx_runtime(), 1);
- function BlockHTMLConvertButton({ clientId }) {
- const block = (0, import_data95.useSelect)(
- (select3) => select3(store).getBlock(clientId),
- [clientId]
- );
- const { replaceBlocks: replaceBlocks2 } = (0, import_data95.useDispatch)(store);
- if (!block || block.name !== "core/html") {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
- import_components83.MenuItem,
+ function InserterListbox({ children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
+ import_components35.Composite,
{
- onClick: () => replaceBlocks2(
- clientId,
- (0, import_blocks54.rawHandler)({ HTML: (0, import_blocks54.getBlockContent)(block) })
- ),
- children: (0, import_i18n78.__)("Convert to Blocks")
+ focusShift: true,
+ focusWrap: "horizontal",
+ render: InserterListBoxWrapper,
+ children
}
);
}
- var block_html_convert_button_default = BlockHTMLConvertButton;
-
- // packages/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.mjs
- var import_components84 = __toESM(require_components(), 1);
- var { Fill: __unstableBlockSettingsMenuFirstItem, Slot: Slot6 } = (0, import_components84.createSlotFill)(
- "__unstableBlockSettingsMenuFirstItem"
- );
- __unstableBlockSettingsMenuFirstItem.Slot = Slot6;
- var block_settings_menu_first_item_default = __unstableBlockSettingsMenuFirstItem;
-
- // packages/block-editor/build-module/components/block-settings-menu-controls/index.mjs
- var import_components93 = __toESM(require_components(), 1);
- var import_blocks61 = __toESM(require_blocks(), 1);
- var import_data104 = __toESM(require_data(), 1);
+ var inserter_listbox_default = InserterListbox;
- // packages/block-editor/build-module/components/convert-to-group-buttons/index.mjs
- var import_components86 = __toESM(require_components(), 1);
- var import_i18n80 = __toESM(require_i18n(), 1);
- var import_blocks57 = __toESM(require_blocks(), 1);
- var import_data98 = __toESM(require_data(), 1);
- var import_keycodes11 = __toESM(require_keycodes(), 1);
+ // packages/block-editor/build-module/components/inserter-draggable-blocks/index.mjs
+ var import_components37 = __toESM(require_components(), 1);
+ var import_blocks34 = __toESM(require_blocks(), 1);
+ var import_data56 = __toESM(require_data(), 1);
+ var import_element117 = __toESM(require_element(), 1);
- // packages/block-editor/build-module/components/convert-to-group-buttons/use-convert-to-group-button-props.mjs
- var import_blocks55 = __toESM(require_blocks(), 1);
- var import_data96 = __toESM(require_data(), 1);
- function useConvertToGroupButtonProps(selectedClientIds) {
- return (0, import_data96.useSelect)(
- (select3) => {
- const {
- getBlocksByClientId: getBlocksByClientId2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- isUngroupable: isUngroupable2,
- isGroupable: isGroupable2
- } = select3(store);
- const { getGroupingBlockName, getBlockType: getBlockType30 } = select3(import_blocks55.store);
- const clientIds = selectedClientIds?.length ? selectedClientIds : getSelectedBlockClientIds2();
- const blocksSelection = getBlocksByClientId2(clientIds);
- const [firstSelectedBlock] = blocksSelection;
- const _isUngroupable = clientIds.length === 1 && isUngroupable2(clientIds[0]);
- return {
- clientIds,
- isGroupable: isGroupable2(clientIds),
- isUngroupable: _isUngroupable,
- blocksSelection,
- groupingBlockName: getGroupingBlockName(),
- onUngroup: _isUngroupable && getBlockType30(firstSelectedBlock.name)?.transforms?.ungroup
- };
- },
- [selectedClientIds]
- );
+ // packages/block-editor/build-module/components/block-draggable/draggable-chip.mjs
+ var import_i18n45 = __toESM(require_i18n(), 1);
+ var import_components36 = __toESM(require_components(), 1);
+ var import_jsx_runtime239 = __toESM(require_jsx_runtime(), 1);
+ function BlockDraggableChip({
+ count,
+ icon,
+ isPattern,
+ fadeWhenDisabled
+ }) {
+ const patternLabel = isPattern && (0, import_i18n45.__)("Pattern");
+ return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("div", { className: "block-editor-block-draggable-chip-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
+ "div",
+ {
+ className: "block-editor-block-draggable-chip",
+ "data-testid": "block-draggable-chip",
+ children: /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
+ import_components36.Flex,
+ {
+ justify: "center",
+ className: "block-editor-block-draggable-chip__content",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_components36.FlexItem, { children: icon ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(block_icon_default, { icon }) : patternLabel || (0, import_i18n45.sprintf)(
+ /* translators: %d: Number of blocks. */
+ (0, import_i18n45._n)("%d block", "%d blocks", count),
+ count
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_components36.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(block_icon_default, { icon: drag_handle_default }) }),
+ fadeWhenDisabled && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(import_components36.FlexItem, { className: "block-editor-block-draggable-chip__disabled", children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("span", { className: "block-editor-block-draggable-chip__disabled-icon" }) })
+ ]
+ }
+ )
+ }
+ ) });
}
- // packages/block-editor/build-module/components/convert-to-group-buttons/toolbar.mjs
- var import_data97 = __toESM(require_data(), 1);
- var import_blocks56 = __toESM(require_blocks(), 1);
- var import_components85 = __toESM(require_components(), 1);
- var import_i18n79 = __toESM(require_i18n(), 1);
- var import_jsx_runtime288 = __toESM(require_jsx_runtime(), 1);
- var layouts = {
- group: { type: "constrained" },
- row: { type: "flex", flexWrap: "nowrap" },
- stack: { type: "flex", orientation: "vertical" },
- grid: { type: "grid" }
- };
- function BlockGroupToolbar() {
- const { blocksSelection, clientIds, groupingBlockName, isGroupable: isGroupable2 } = useConvertToGroupButtonProps();
- const { replaceBlocks: replaceBlocks2 } = (0, import_data97.useDispatch)(store);
- const { canRemove, variations } = (0, import_data97.useSelect)(
+ // packages/block-editor/build-module/components/inserter-draggable-blocks/index.mjs
+ var import_jsx_runtime240 = __toESM(require_jsx_runtime(), 1);
+ var InserterDraggableBlocks = ({
+ isEnabled,
+ blocks: blocks2,
+ icon,
+ children,
+ pattern
+ }) => {
+ const blockName = blocks2.length === 1 ? blocks2[0].name : void 0;
+ const blockTypeIcon = (0, import_data56.useSelect)(
(select3) => {
- const { canRemoveBlocks: canRemoveBlocks2 } = select3(store);
- const { getBlockVariations: getBlockVariations2 } = select3(import_blocks56.store);
- return {
- canRemove: canRemoveBlocks2(clientIds),
- variations: getBlockVariations2(
- groupingBlockName,
- "transform"
- )
- };
+ return blockName && select3(import_blocks34.store).getBlockType(blockName)?.icon;
},
- [clientIds, groupingBlockName]
- );
- const onConvertToGroup = (layout) => {
- const newBlocks = (0, import_blocks56.switchToBlockType)(
- blocksSelection,
- groupingBlockName
- );
- if (typeof layout !== "string") {
- layout = "group";
- }
- if (newBlocks && newBlocks.length > 0) {
- newBlocks[0].attributes.layout = layouts[layout];
- replaceBlocks2(clientIds, newBlocks);
- }
- };
- const onConvertToRow = () => onConvertToGroup("row");
- const onConvertToStack = () => onConvertToGroup("stack");
- const onConvertToGrid = () => onConvertToGroup("grid");
- if (!isGroupable2 || !canRemove) {
- return null;
- }
- const canInsertRow = !!variations.find(
- ({ name }) => name === "group-row"
- );
- const canInsertStack = !!variations.find(
- ({ name }) => name === "group-stack"
+ [blockName]
);
- const canInsertGrid = !!variations.find(
- ({ name }) => name === "group-grid"
+ const { startDragging: startDragging2, stopDragging: stopDragging2 } = unlock(
+ (0, import_data56.useDispatch)(store)
);
- return /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(import_components85.ToolbarGroup, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
- import_components85.ToolbarButton,
- {
- icon: group_default,
- label: (0, import_i18n79._x)("Group", "action: convert blocks to group"),
- onClick: onConvertToGroup
- }
- ),
- canInsertRow && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
- import_components85.ToolbarButton,
- {
- icon: row_default,
- label: (0, import_i18n79._x)("Row", "action: convert blocks to row"),
- onClick: onConvertToRow
- }
- ),
- canInsertStack && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
- import_components85.ToolbarButton,
- {
- icon: stack_default,
- label: (0, import_i18n79._x)("Stack", "action: convert blocks to stack"),
- onClick: onConvertToStack
- }
- ),
- canInsertGrid && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
- import_components85.ToolbarButton,
- {
- icon: grid_default,
- label: (0, import_i18n79._x)("Grid", "action: convert blocks to grid"),
- onClick: onConvertToGrid
- }
- )
- ] });
- }
- var toolbar_default = BlockGroupToolbar;
-
- // packages/block-editor/build-module/components/convert-to-group-buttons/index.mjs
- var import_jsx_runtime289 = __toESM(require_jsx_runtime(), 1);
- function ConvertToGroupButton({
- clientIds,
- isGroupable: isGroupable2,
- isUngroupable: isUngroupable2,
- onUngroup,
- blocksSelection,
- groupingBlockName,
- onClose = () => {
- }
- }) {
- const { getSelectedBlockClientIds: getSelectedBlockClientIds2 } = (0, import_data98.useSelect)(store);
- const { replaceBlocks: replaceBlocks2 } = (0, import_data98.useDispatch)(store);
- const onConvertToGroup = () => {
- const newBlocks = (0, import_blocks57.switchToBlockType)(
- blocksSelection,
- groupingBlockName
- );
- if (newBlocks) {
- replaceBlocks2(clientIds, newBlocks);
- }
- };
- const onConvertFromGroup = () => {
- let innerBlocks = blocksSelection[0].innerBlocks;
- if (!innerBlocks.length) {
- return;
- }
- if (onUngroup) {
- innerBlocks = onUngroup(
- blocksSelection[0].attributes,
- blocksSelection[0].innerBlocks
- );
- }
- replaceBlocks2(clientIds, innerBlocks);
- };
- if (!isGroupable2 && !isUngroupable2) {
- return null;
+ const patternBlock = (0, import_element117.useMemo)(() => {
+ return pattern?.type === INSERTER_PATTERN_TYPES.user && pattern?.syncStatus !== "unsynced" ? [(0, import_blocks34.createBlock)("core/block", { ref: pattern.id })] : void 0;
+ }, [pattern?.type, pattern?.syncStatus, pattern?.id]);
+ if (!isEnabled) {
+ return children({
+ draggable: false,
+ onDragStart: void 0,
+ onDragEnd: void 0
+ });
}
- const selectedBlockClientIds = getSelectedBlockClientIds2();
- return /* @__PURE__ */ (0, import_jsx_runtime289.jsxs)(import_jsx_runtime289.Fragment, { children: [
- isGroupable2 && /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
- import_components86.MenuItem,
- {
- shortcut: selectedBlockClientIds.length > 1 ? import_keycodes11.displayShortcut.primary("g") : void 0,
- onClick: () => {
- onConvertToGroup();
- onClose();
- },
- children: (0, import_i18n80._x)("Group", "verb")
- }
- ),
- isUngroupable2 && /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
- import_components86.MenuItem,
- {
- onClick: () => {
- onConvertFromGroup();
- onClose();
- },
- children: (0, import_i18n80._x)(
- "Ungroup",
- "Ungrouping blocks from within a grouping block back into individual blocks within the Editor"
- )
+ const draggableBlocks = patternBlock ?? blocks2;
+ return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
+ import_components37.Draggable,
+ {
+ __experimentalTransferDataType: "wp-blocks",
+ transferData: { type: "inserter", blocks: draggableBlocks },
+ onDragStart: (event) => {
+ startDragging2();
+ const addedTypes = /* @__PURE__ */ new Set();
+ for (const block of draggableBlocks) {
+ const type = `wp-block:${block.name}`;
+ if (!addedTypes.has(type)) {
+ event.dataTransfer.items.add("", type);
+ addedTypes.add(type);
+ }
+ }
+ },
+ onDragEnd: () => {
+ stopDragging2();
+ },
+ __experimentalDragComponent: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
+ BlockDraggableChip,
+ {
+ count: blocks2.length,
+ icon: icon || !pattern && blockTypeIcon,
+ isPattern: !!pattern
+ }
+ ),
+ children: ({ onDraggableStart, onDraggableEnd }) => {
+ return children({
+ draggable: true,
+ onDragStart: onDraggableStart,
+ onDragEnd: onDraggableEnd
+ });
}
- )
- ] });
- }
-
- // packages/block-editor/build-module/components/block-lock/menu-item.mjs
- var import_i18n82 = __toESM(require_i18n(), 1);
- var import_element162 = __toESM(require_element(), 1);
- var import_components88 = __toESM(require_components(), 1);
-
- // packages/block-editor/build-module/components/block-lock/use-block-lock.mjs
- var import_data99 = __toESM(require_data(), 1);
- function useBlockLock(clientId) {
- return (0, import_data99.useSelect)(
- (select3) => {
- const {
- canLockBlockType: canLockBlockType2,
- getBlockName: getBlockName2,
- isEditLockedBlock: isEditLockedBlock2,
- isMoveLockedBlock: isMoveLockedBlock2,
- isRemoveLockedBlock: isRemoveLockedBlock2,
- isLockedBlock: isLockedBlock2
- } = unlock(select3(store));
- return {
- isEditLocked: isEditLockedBlock2(clientId),
- isMoveLocked: isMoveLockedBlock2(clientId),
- isRemoveLocked: isRemoveLockedBlock2(clientId),
- canLock: canLockBlockType2(getBlockName2(clientId)),
- isLocked: isLockedBlock2(clientId)
- };
- },
- [clientId]
+ }
);
- }
+ };
+ var inserter_draggable_blocks_default = InserterDraggableBlocks;
- // packages/block-editor/build-module/components/block-lock/modal.mjs
- var import_i18n81 = __toESM(require_i18n(), 1);
- var import_element161 = __toESM(require_element(), 1);
- var import_components87 = __toESM(require_components(), 1);
- var import_data100 = __toESM(require_data(), 1);
- var import_blocks58 = __toESM(require_blocks(), 1);
- var import_jsx_runtime290 = __toESM(require_jsx_runtime(), 1);
- var ALLOWS_EDIT_LOCKING = ["core/navigation"];
- function getTemplateLockValue(lock5) {
- if (lock5.remove && lock5.move) {
- return "all";
- }
- if (lock5.remove && !lock5.move) {
- return "insert";
- }
- return false;
- }
- function BlockLockModal({ clientId, onClose }) {
- const [lock5, setLock] = (0, import_element161.useState)({ move: false, remove: false });
- const { isEditLocked, isMoveLocked, isRemoveLocked } = useBlockLock(clientId);
- const { allowsEditLocking, templateLock, hasTemplateLock } = (0, import_data100.useSelect)(
- (select3) => {
- const { getBlockName: getBlockName2, getBlockAttributes: getBlockAttributes3 } = select3(store);
- const blockName = getBlockName2(clientId);
- const blockType = (0, import_blocks58.getBlockType)(blockName);
- return {
- allowsEditLocking: ALLOWS_EDIT_LOCKING.includes(blockName),
- templateLock: getBlockAttributes3(clientId)?.templateLock,
- hasTemplateLock: !!blockType?.attributes?.templateLock
- };
- },
- [clientId]
- );
- const [applyTemplateLock, setApplyTemplateLock] = (0, import_element161.useState)(
- !!templateLock
+ // packages/block-editor/build-module/components/inserter-list-item/index.mjs
+ var import_jsx_runtime241 = __toESM(require_jsx_runtime(), 1);
+ function InserterListItem({
+ className: className2,
+ isFirst,
+ item,
+ onSelect,
+ onHover,
+ isDraggable,
+ ...props
+ }) {
+ const isDraggingRef = (0, import_element118.useRef)(false);
+ const itemIconStyle = item.icon ? {
+ backgroundColor: item.icon.background,
+ color: item.icon.foreground
+ } : {};
+ const blocks2 = (0, import_element118.useMemo)(
+ () => [
+ (0, import_blocks35.createBlock)(
+ item.name,
+ item.initialAttributes,
+ (0, import_blocks35.createBlocksFromInnerBlocksTemplate)(item.innerBlocks),
+ item.innerContent
+ )
+ ],
+ [
+ item.name,
+ item.initialAttributes,
+ item.innerBlocks,
+ item.innerContent
+ ]
);
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data100.useDispatch)(store);
- const blockInformation = useBlockDisplayInformation(clientId);
- (0, import_element161.useEffect)(() => {
- setLock({
- move: isMoveLocked,
- remove: isRemoveLocked,
- ...allowsEditLocking ? { edit: isEditLocked } : {}
- });
- }, [isEditLocked, isMoveLocked, isRemoveLocked, allowsEditLocking]);
- const isAllChecked = Object.values(lock5).every(Boolean);
- const isMixed = Object.values(lock5).some(Boolean) && !isAllChecked;
- const isDirty = lock5.move !== isMoveLocked || lock5.remove !== isRemoveLocked || allowsEditLocking && lock5.edit !== isEditLocked || hasTemplateLock && applyTemplateLock !== !!templateLock;
- return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.Modal,
+ const isSynced = (0, import_blocks35.isReusableBlock)(item) && item.syncStatus !== "unsynced" || (0, import_blocks35.isTemplatePart)(item);
+ return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
+ inserter_draggable_blocks_default,
{
- title: (0, import_i18n81.sprintf)(
- /* translators: %s: Name of the block. */
- (0, import_i18n81.__)("Lock %s"),
- blockInformation.title
- ),
- overlayClassName: "block-editor-block-lock-modal",
- onRequestClose: onClose,
- size: "small",
- children: /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)(
- "form",
+ isEnabled: isDraggable && !item.isDisabled,
+ blocks: blocks2,
+ icon: item.icon,
+ children: ({ draggable, onDragStart, onDragEnd }) => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
+ "div",
{
- onSubmit: (event) => {
- event.preventDefault();
- if (!isDirty) {
- return;
+ className: clsx_default(
+ "block-editor-block-types-list__list-item",
+ {
+ "is-synced": isSynced
+ }
+ ),
+ draggable,
+ onDragStart: (event) => {
+ isDraggingRef.current = true;
+ if (onDragStart) {
+ onHover(null);
+ onDragStart(event);
}
- updateBlockAttributes2([clientId], {
- lock: lock5,
- templateLock: applyTemplateLock ? getTemplateLockValue(lock5) : void 0
- });
- onClose();
},
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)("fieldset", { className: "block-editor-block-lock-modal__options", children: [
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)("legend", { children: (0, import_i18n81.__)("Select the features you want to lock") }),
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- "ul",
- {
- role: "list",
- className: "block-editor-block-lock-modal__checklist",
- children: /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)("li", { children: [
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.CheckboxControl,
- {
- className: "block-editor-block-lock-modal__options-all",
- label: (0, import_i18n81.__)("Lock all"),
- checked: isAllChecked,
- indeterminate: isMixed,
- onChange: (newValue) => setLock({
- move: newValue,
- remove: newValue,
- ...allowsEditLocking ? { edit: newValue } : {}
- })
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)(
- "ul",
- {
- role: "list",
- className: "block-editor-block-lock-modal__checklist",
- children: [
- allowsEditLocking && /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)("li", { className: "block-editor-block-lock-modal__checklist-item", children: [
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.CheckboxControl,
- {
- label: (0, import_i18n81.__)("Lock editing"),
- checked: !!lock5.edit,
- onChange: (edit) => setLock((prevLock) => ({
- ...prevLock,
- edit
- }))
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.Icon,
- {
- className: "block-editor-block-lock-modal__lock-icon",
- icon: lock5.edit ? lock_default : unlock_default
- }
- )
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)("li", { className: "block-editor-block-lock-modal__checklist-item", children: [
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.CheckboxControl,
- {
- label: (0, import_i18n81.__)("Lock movement"),
- checked: lock5.move,
- onChange: (move) => setLock((prevLock) => ({
- ...prevLock,
- move
- }))
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.Icon,
- {
- className: "block-editor-block-lock-modal__lock-icon",
- icon: lock5.move ? lock_default : unlock_default
- }
- )
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)("li", { className: "block-editor-block-lock-modal__checklist-item", children: [
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.CheckboxControl,
- {
- label: (0, import_i18n81.__)("Lock removal"),
- checked: lock5.remove,
- onChange: (remove5) => setLock((prevLock) => ({
- ...prevLock,
- remove: remove5
- }))
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.Icon,
- {
- className: "block-editor-block-lock-modal__lock-icon",
- icon: lock5.remove ? lock_default : unlock_default
- }
- )
- ] })
- ]
- }
- )
- ] })
- }
+ onDragEnd: (event) => {
+ isDraggingRef.current = false;
+ if (onDragEnd) {
+ onDragEnd(event);
+ }
+ },
+ children: /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
+ item_default,
+ {
+ isFirst,
+ className: clsx_default(
+ "block-editor-block-types-list__item",
+ className2
),
- hasTemplateLock && /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.ToggleControl,
- {
- className: "block-editor-block-lock-modal__template-lock",
- label: (0, import_i18n81.__)("Apply to all blocks inside"),
- checked: applyTemplateLock,
- disabled: lock5.move && !lock5.remove,
- onChange: () => setApplyTemplateLock(!applyTemplateLock)
+ disabled: item.isDisabled,
+ onClick: (event) => {
+ event.preventDefault();
+ onSelect(
+ item,
+ (0, import_keycodes8.isAppleOS)() ? event.metaKey : event.ctrlKey
+ );
+ onHover(null);
+ },
+ onKeyDown: (event) => {
+ const { keyCode } = event;
+ if (keyCode === import_keycodes8.ENTER) {
+ event.preventDefault();
+ onSelect(
+ item,
+ (0, import_keycodes8.isAppleOS)() ? event.metaKey : event.ctrlKey
+ );
+ onHover(null);
}
- )
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)(
- import_components87.Flex,
- {
- className: "block-editor-block-lock-modal__actions",
- justify: "flex-end",
- expanded: false,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(import_components87.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.Button,
- {
- variant: "tertiary",
- onClick: onClose,
- __next40pxDefaultSize: true,
- children: (0, import_i18n81.__)("Cancel")
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(import_components87.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
- import_components87.Button,
- {
- variant: "primary",
- type: "submit",
- disabled: !isDirty,
- accessibleWhenDisabled: true,
- __next40pxDefaultSize: true,
- children: (0, import_i18n81.__)("Apply")
- }
- ) })
- ]
- }
- )
- ]
+ },
+ onMouseEnter: () => {
+ if (isDraggingRef.current) {
+ return;
+ }
+ onHover(item);
+ },
+ onMouseLeave: () => onHover(null),
+ ...props,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
+ "span",
+ {
+ className: "block-editor-block-types-list__item-icon",
+ style: itemIconStyle,
+ children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(block_icon_default, { icon: item.icon, showColors: true })
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime241.jsx)("span", { className: "block-editor-block-types-list__item-title", children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(import_components38.__experimentalTruncate, { numberOfLines: 3, children: item.title }) })
+ ]
+ }
+ )
}
)
}
);
}
+ var inserter_list_item_default = (0, import_element118.memo)(InserterListItem);
- // packages/block-editor/build-module/components/block-lock/menu-item.mjs
- var import_jsx_runtime291 = __toESM(require_jsx_runtime(), 1);
- function BlockLockMenuItem({ clientId }) {
- const { canLock, isLocked } = useBlockLock(clientId);
- const [isModalOpen, toggleModal] = (0, import_element162.useReducer)(
- (isActive) => !isActive,
- false
- );
- if (!canLock) {
- return null;
+ // packages/block-editor/build-module/components/block-types-list/index.mjs
+ var import_jsx_runtime242 = __toESM(require_jsx_runtime(), 1);
+ function chunk(array, size4) {
+ const chunks = [];
+ for (let i2 = 0, j2 = array.length; i2 < j2; i2 += size4) {
+ chunks.push(array.slice(i2, i2 + size4));
}
- const label = isLocked ? (0, import_i18n82.__)("Unlock") : (0, import_i18n82.__)("Lock");
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsxs)(import_jsx_runtime291.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
- import_components88.MenuItem,
- {
- icon: isLocked ? unlock_default : lock_outline_default,
- onClick: toggleModal,
- "aria-expanded": isModalOpen,
- "aria-haspopup": "dialog",
- children: label
- }
- ),
- isModalOpen && /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(BlockLockModal, { clientId, onClose: toggleModal })
- ] });
+ return chunks;
}
-
- // packages/block-editor/build-module/components/block-lock/toolbar.mjs
- var import_i18n83 = __toESM(require_i18n(), 1);
- var import_components89 = __toESM(require_components(), 1);
- var import_element163 = __toESM(require_element(), 1);
- var import_jsx_runtime292 = __toESM(require_jsx_runtime(), 1);
- function BlockLockToolbar({ clientId }) {
- const { canLock, isLocked } = useBlockLock(clientId);
- const [isModalOpen, toggleModal] = (0, import_element163.useReducer)(
- (isActive) => !isActive,
- false
- );
- const hasLockButtonShownRef = (0, import_element163.useRef)(false);
- (0, import_element163.useEffect)(() => {
- if (isLocked) {
- hasLockButtonShownRef.current = true;
- }
- }, [isLocked]);
- if (!isLocked && !hasLockButtonShownRef.current) {
- return null;
- }
- let label = isLocked ? (0, import_i18n83.__)("Unlock") : (0, import_i18n83.__)("Lock");
- if (!canLock && isLocked) {
- label = (0, import_i18n83.__)("Locked");
- }
- return /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(import_jsx_runtime292.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(import_components89.ToolbarGroup, { className: "block-editor-block-lock-toolbar", children: /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
- import_components89.ToolbarButton,
+ function BlockTypesList({
+ items = [],
+ onSelect,
+ onHover = () => {
+ },
+ children,
+ label,
+ isDraggable = true
+ }) {
+ const className2 = "block-editor-block-types-list";
+ const listId = (0, import_compose39.useInstanceId)(BlockTypesList, className2);
+ return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(group_default2, { className: className2, "aria-label": label, children: [
+ chunk(items, 3).map((row, i2) => /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(row_default2, { children: row.map((item, j2) => /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
+ inserter_list_item_default,
{
- disabled: !canLock,
- icon: isLocked ? lock_default : unlock_default,
- label,
- onClick: toggleModal,
- "aria-expanded": isModalOpen,
- "aria-haspopup": "dialog"
- }
- ) }),
- isModalOpen && /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(BlockLockModal, { clientId, onClose: toggleModal })
+ item,
+ className: (0, import_blocks36.getBlockMenuDefaultClassName)(
+ item.id
+ ),
+ onSelect,
+ onHover,
+ isDraggable: isDraggable && !item.isDisabled,
+ isFirst: i2 === 0 && j2 === 0,
+ rowId: `${listId}-${i2}`
+ },
+ item.id
+ )) }, i2)),
+ children
] });
}
+ var block_types_list_default = BlockTypesList;
- // packages/block-editor/build-module/components/block-settings-menu/block-mode-toggle.mjs
- var import_i18n84 = __toESM(require_i18n(), 1);
- var import_components90 = __toESM(require_components(), 1);
- var import_blocks59 = __toESM(require_blocks(), 1);
- var import_data101 = __toESM(require_data(), 1);
- var import_jsx_runtime293 = __toESM(require_jsx_runtime(), 1);
- var noop11 = () => {
- };
- function BlockModeToggle({ clientId, onToggle = noop11 }) {
- const { blockType, mode: mode2, enabled } = (0, import_data101.useSelect)(
- (select3) => {
- const { getBlock: getBlock2, getBlockMode: getBlockMode2, getSettings: getSettings7 } = select3(store);
- const block = getBlock2(clientId);
- return {
- mode: getBlockMode2(clientId),
- blockType: block ? (0, import_blocks59.getBlockType)(block.name) : null,
- enabled: getSettings7().codeEditingEnabled && !!block?.isValid
- };
- },
- [clientId]
- );
- const { toggleBlockMode: toggleBlockMode2 } = (0, import_data101.useDispatch)(store);
- if (!blockType || !(0, import_blocks59.hasBlockSupport)(blockType, "html", true) || !enabled) {
- return null;
- }
- const label = mode2 === "visual" ? (0, import_i18n84.__)("Edit as HTML") : (0, import_i18n84.__)("Edit visually");
- return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
- import_components90.MenuItem,
- {
- onClick: () => {
- toggleBlockMode2(clientId);
- onToggle();
- },
- children: label
- }
- );
+ // packages/block-editor/build-module/components/inserter/panel.mjs
+ var import_components39 = __toESM(require_components(), 1);
+ var import_jsx_runtime243 = __toESM(require_jsx_runtime(), 1);
+ function InserterPanel({ title, icon, children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(import_jsx_runtime243.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)("div", { className: "block-editor-inserter__panel-header", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime243.jsx)("h2", { className: "block-editor-inserter__panel-title", children: title }),
+ /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(import_components39.Icon, { icon })
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime243.jsx)("div", { className: "block-editor-inserter__panel-content", children })
+ ] });
}
+ var panel_default = InserterPanel;
- // packages/block-editor/build-module/components/block-rename/rename-control.mjs
- var import_components92 = __toESM(require_components(), 1);
- var import_i18n86 = __toESM(require_i18n(), 1);
- var import_element165 = __toESM(require_element(), 1);
- var import_data103 = __toESM(require_data(), 1);
- var import_keyboard_shortcuts6 = __toESM(require_keyboard_shortcuts(), 1);
-
- // packages/block-editor/build-module/components/block-rename/modal.mjs
- var import_components91 = __toESM(require_components(), 1);
- var import_i18n85 = __toESM(require_i18n(), 1);
- var import_element164 = __toESM(require_element(), 1);
- var import_a11y11 = __toESM(require_a11y(), 1);
- var import_data102 = __toESM(require_data(), 1);
-
- // packages/block-editor/build-module/components/block-rename/is-empty-string.mjs
- function isEmptyString(testString) {
- return testString?.trim()?.length === 0;
+ // packages/block-editor/build-module/components/inserter/no-results.mjs
+ var import_i18n46 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime244 = __toESM(require_jsx_runtime(), 1);
+ function InserterNoResults({ children = (0, import_i18n46.__)("No results found.") }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("div", { className: "block-editor-inserter__no-results", children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("p", { children }) });
}
+ var no_results_default = InserterNoResults;
- // packages/block-editor/build-module/components/block-rename/modal.mjs
- var import_jsx_runtime294 = __toESM(require_jsx_runtime(), 1);
- function BlockRenameModal({ clientId, onClose }) {
- const [editedBlockName, setEditedBlockName] = (0, import_element164.useState)();
- const blockInformation = useBlockDisplayInformation(clientId);
- const { metadata } = (0, import_data102.useSelect)(
- (select3) => {
- const { getBlockAttributes: getBlockAttributes3 } = select3(store);
- return {
- metadata: getBlockAttributes3(clientId)?.metadata
- };
- },
- [clientId]
- );
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data102.useDispatch)(store);
- const blockName = metadata?.name || "";
- const originalBlockName = blockInformation?.title;
- const hasOverridesWarning = !!blockName && !!metadata?.bindings && Object.values(metadata.bindings).some(
- (binding) => binding.source === "core/pattern-overrides"
- );
- const nameHasChanged = editedBlockName !== void 0 && editedBlockName !== blockName;
- const nameIsOriginal = editedBlockName === originalBlockName;
- const nameIsEmpty = isEmptyString(editedBlockName);
- const isNameValid = nameHasChanged || nameIsOriginal;
- const autoSelectInputText = (event) => event.target.select();
- const handleSubmit = () => {
- const newName = nameIsOriginal || nameIsEmpty ? void 0 : editedBlockName;
- const message2 = nameIsOriginal || nameIsEmpty ? (0, import_i18n85.sprintf)(
- /* translators: %s: new name/label for the block */
- (0, import_i18n85.__)('Block name reset to: "%s".'),
- editedBlockName
- ) : (0, import_i18n85.sprintf)(
- /* translators: %s: new name/label for the block */
- (0, import_i18n85.__)('Block name changed to: "%s".'),
- editedBlockName
+ // packages/block-editor/build-module/components/inserter/block-types-tab.mjs
+ var import_jsx_runtime245 = __toESM(require_jsx_runtime(), 1);
+ var getBlockNamespace = (item) => item.name.split("/")[0];
+ var MAX_SUGGESTED_ITEMS = 6;
+ var EMPTY_ARRAY6 = [];
+ function BlockTypesTabPanel({
+ items,
+ collections,
+ categories,
+ onSelectItem,
+ onHover,
+ showMostUsedBlocks,
+ className: className2
+ }) {
+ const suggestedItems = (0, import_element119.useMemo)(() => {
+ return orderBy(items, "frecency", "desc").slice(
+ 0,
+ MAX_SUGGESTED_ITEMS
);
- (0, import_a11y11.speak)(message2, "assertive");
- updateBlockAttributes2([clientId], {
- metadata: cleanEmptyObject({
- ...metadata,
- name: newName
- })
+ }, [items]);
+ const uncategorizedItems = (0, import_element119.useMemo)(() => {
+ return items.filter((item) => !item.category);
+ }, [items]);
+ const itemsPerCollection = (0, import_element119.useMemo)(() => {
+ const result = { ...collections };
+ Object.keys(collections).forEach((namespace) => {
+ result[namespace] = items.filter(
+ (item) => getBlockNamespace(item) === namespace
+ );
+ if (result[namespace].length === 0) {
+ delete result[namespace];
+ }
});
- onClose();
- };
- return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
- import_components91.Modal,
- {
- title: (0, import_i18n85.__)("Rename"),
- onRequestClose: onClose,
- overlayClassName: "block-editor-block-rename-modal",
- focusOnMount: "firstContentElement",
- size: "small",
- children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
- "form",
+ return result;
+ }, [items, collections]);
+ (0, import_element119.useEffect)(() => () => onHover(null), []);
+ const currentlyRenderedCategories = (0, import_compose40.useAsyncList)(categories);
+ const didRenderAllCategories = categories.length === currentlyRenderedCategories.length;
+ const collectionEntries = (0, import_element119.useMemo)(() => {
+ return Object.entries(collections);
+ }, [collections]);
+ const currentlyRenderedCollections = (0, import_compose40.useAsyncList)(
+ didRenderAllCategories ? collectionEntries : EMPTY_ARRAY6
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)("div", { className: className2, children: [
+ showMostUsedBlocks && // Only show the most used blocks if the total amount of block
+ // is larger than 1 row, otherwise it is not so useful.
+ items.length > 3 && !!suggestedItems.length && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(panel_default, { title: (0, import_i18n47._x)("Most used", "blocks"), children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
+ block_types_list_default,
+ {
+ items: suggestedItems,
+ onSelect: onSelectItem,
+ onHover,
+ label: (0, import_i18n47._x)("Most used", "blocks")
+ }
+ ) }),
+ currentlyRenderedCategories.map((category) => {
+ const categoryItems = items.filter(
+ (item) => item.category === category.slug
+ );
+ if (!categoryItems || !categoryItems.length) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
+ panel_default,
{
- onSubmit: (e2) => {
- e2.preventDefault();
- if (!isNameValid) {
- return;
+ title: category.title,
+ icon: category.icon,
+ children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
+ block_types_list_default,
+ {
+ items: categoryItems,
+ onSelect: onSelectItem,
+ onHover,
+ label: category.title
}
- handleSubmit();
- },
- children: /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(import_components91.__experimentalVStack, { spacing: "3", children: [
- /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
- import_components91.TextControl,
+ )
+ },
+ category.slug
+ );
+ }),
+ didRenderAllCategories && uncategorizedItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
+ panel_default,
+ {
+ className: "block-editor-inserter__uncategorized-blocks-panel",
+ title: (0, import_i18n47.__)("Uncategorized"),
+ children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
+ block_types_list_default,
+ {
+ items: uncategorizedItems,
+ onSelect: onSelectItem,
+ onHover,
+ label: (0, import_i18n47.__)("Uncategorized")
+ }
+ )
+ }
+ ),
+ currentlyRenderedCollections.map(
+ ([namespace, collection]) => {
+ const collectionItems = itemsPerCollection[namespace];
+ if (!collectionItems || !collectionItems.length) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
+ panel_default,
+ {
+ title: collection.title,
+ icon: collection.icon,
+ children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
+ block_types_list_default,
{
- value: editedBlockName ?? blockName,
- label: (0, import_i18n85.__)("Name"),
- help: hasOverridesWarning ? (0, import_i18n85.__)(
- "This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."
- ) : void 0,
- placeholder: originalBlockName,
- onChange: setEditedBlockName,
- onFocus: autoSelectInputText
+ items: collectionItems,
+ onSelect: onSelectItem,
+ onHover,
+ label: collection.title
}
- ),
- /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(import_components91.__experimentalHStack, { justify: "right", children: [
- /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
- import_components91.Button,
- {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: onClose,
- children: (0, import_i18n85.__)("Cancel")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
- import_components91.Button,
- {
- __next40pxDefaultSize: true,
- accessibleWhenDisabled: true,
- disabled: !isNameValid,
- variant: "primary",
- type: "submit",
- children: (0, import_i18n85.__)("Save")
- }
- )
- ] })
- ] })
- }
- )
- }
+ )
+ },
+ namespace
+ );
+ }
+ )
+ ] });
+ }
+ function BlockTypesTab({ rootClientId, onInsert, onHover, showMostUsedBlocks }, ref) {
+ const [items, categories, collections, onSelectItem] = use_block_types_state_default(
+ rootClientId,
+ onInsert
);
+ if (!items.length) {
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(no_results_default, {});
+ }
+ const itemsForCurrentRoot = [];
+ const itemsRemaining = [];
+ for (const item of items) {
+ if (item.category === "reusable") {
+ continue;
+ }
+ if (item.isSearchOnly) {
+ continue;
+ }
+ if (item.isAllowedInCurrentRoot) {
+ itemsForCurrentRoot.push(item);
+ } else {
+ itemsRemaining.push(item);
+ }
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(inserter_listbox_default, { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)("div", { ref, children: [
+ !!itemsForCurrentRoot.length && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_jsx_runtime245.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
+ BlockTypesTabPanel,
+ {
+ items: itemsForCurrentRoot,
+ categories,
+ collections,
+ onSelectItem,
+ onHover,
+ showMostUsedBlocks,
+ className: "block-editor-inserter__insertable-blocks-at-selection"
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
+ BlockTypesTabPanel,
+ {
+ items: itemsRemaining,
+ categories,
+ collections,
+ onSelectItem,
+ onHover,
+ showMostUsedBlocks,
+ className: "block-editor-inserter__all-blocks"
+ }
+ )
+ ] }) });
}
+ var block_types_tab_default = (0, import_element119.forwardRef)(BlockTypesTab);
- // packages/block-editor/build-module/components/block-rename/rename-control.mjs
- var import_jsx_runtime295 = __toESM(require_jsx_runtime(), 1);
- function BlockRenameControl({ clientId }) {
- const [renamingBlock, setRenamingBlock] = (0, import_element165.useState)(false);
- const shortcut = (0, import_data103.useSelect)(
- (select3) => select3(import_keyboard_shortcuts6.store).getShortcutRepresentation(
- "core/block-editor/rename"
- ),
- []
- );
- return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(import_jsx_runtime295.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
- import_components92.MenuItem,
+ // packages/block-editor/build-module/components/inserter/block-patterns-tab/index.mjs
+ var import_element130 = __toESM(require_element(), 1);
+ var import_compose45 = __toESM(require_compose(), 1);
+ var import_components49 = __toESM(require_components(), 1);
+ var import_i18n59 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/inserter/block-patterns-explorer/index.mjs
+ var import_components44 = __toESM(require_components(), 1);
+ var import_element126 = __toESM(require_element(), 1);
+ var import_i18n55 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.mjs
+ var import_components40 = __toESM(require_components(), 1);
+ var import_i18n48 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime246 = __toESM(require_jsx_runtime(), 1);
+ function PatternCategoriesList({
+ selectedCategory,
+ patternCategories,
+ onClickCategory
+ }) {
+ const baseClassName = "block-editor-block-patterns-explorer__sidebar";
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)("div", { className: `${baseClassName}__categories-list`, children: patternCategories.map(({ name, label }) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
+ import_components40.Button,
{
+ __next40pxDefaultSize: true,
+ label,
+ className: `${baseClassName}__categories-list__item`,
+ isPressed: selectedCategory === name,
onClick: () => {
- setRenamingBlock(true);
+ onClickCategory(name);
},
- "aria-expanded": renamingBlock,
- "aria-haspopup": "dialog",
- shortcut,
- children: (0, import_i18n86.__)("Rename")
+ children: label
+ },
+ name
+ );
+ }) });
+ }
+ function PatternsExplorerSearch({ searchValue, setSearchValue }) {
+ const baseClassName = "block-editor-block-patterns-explorer__search";
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)("div", { className: baseClassName, children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
+ import_components40.SearchControl,
+ {
+ onChange: setSearchValue,
+ value: searchValue,
+ label: (0, import_i18n48.__)("Search"),
+ placeholder: (0, import_i18n48.__)("Search")
+ }
+ ) });
+ }
+ function PatternExplorerSidebar({
+ selectedCategory,
+ patternCategories,
+ onClickCategory,
+ searchValue,
+ setSearchValue
+ }) {
+ const baseClassName = "block-editor-block-patterns-explorer__sidebar";
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)("div", { className: baseClassName, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
+ PatternsExplorerSearch,
+ {
+ searchValue,
+ setSearchValue
}
),
- renamingBlock && /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
- BlockRenameModal,
+ !searchValue && /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
+ PatternCategoriesList,
{
- clientId,
- onClose: () => setRenamingBlock(false)
+ selectedCategory,
+ patternCategories,
+ onClickCategory
}
)
] });
}
+ var pattern_explorer_sidebar_default = PatternExplorerSidebar;
- // packages/block-editor/build-module/components/block-rename/use-block-rename.mjs
- var import_blocks60 = __toESM(require_blocks(), 1);
- function useBlockRename(name) {
- return {
- canRename: !!name && (0, import_blocks60.getBlockSupport)(name, "renaming", true)
- };
- }
+ // packages/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-list.mjs
+ var import_element124 = __toESM(require_element(), 1);
+ var import_i18n53 = __toESM(require_i18n(), 1);
+ var import_compose43 = __toESM(require_compose(), 1);
+ var import_components43 = __toESM(require_components(), 1);
+ var import_a11y8 = __toESM(require_a11y(), 1);
- // packages/block-editor/build-module/components/block-settings-menu-controls/index.mjs
- var import_jsx_runtime296 = __toESM(require_jsx_runtime(), 1);
- var { Fill: Fill2, Slot: Slot7 } = (0, import_components93.createSlotFill)("BlockSettingsMenuControls");
- var BlockSettingsMenuControlsSlot = ({ fillProps, clientIds = null }) => {
- const {
- selectedBlocks,
- selectedClientIds,
- isContentOnly,
- canToggleSelectedBlocksVisibility,
- canEdit
- } = (0, import_data104.useSelect)(
- (select3) => {
- const {
- getBlocksByClientId: getBlocksByClientId2,
- getBlockNamesByClientId: getBlockNamesByClientId2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getBlockEditingMode: getBlockEditingMode2,
- canEditBlock: canEditBlock2
- } = select3(store);
- const ids = clientIds !== null ? clientIds : getSelectedBlockClientIds2();
- return {
- selectedBlocks: getBlockNamesByClientId2(ids),
- selectedClientIds: ids,
- isContentOnly: getBlockEditingMode2(ids[0]) === "contentOnly",
- canToggleSelectedBlocksVisibility: getBlocksByClientId2(
- ids
- ).every(
- (block) => (0, import_blocks61.hasBlockSupport)(block.name, "visibility", true)
- ),
- canEdit: canEditBlock2(ids[0])
- };
- },
- [clientIds]
- );
- const { canLock } = useBlockLock(selectedClientIds[0]);
- const { canRename } = useBlockRename(selectedBlocks[0]);
- const showLockButton = selectedClientIds.length === 1 && canLock && !isContentOnly;
- const showRenameButton = selectedClientIds.length === 1 && canRename && !isContentOnly;
- const showVisibilityButton = canToggleSelectedBlocksVisibility && !isContentOnly;
- const convertToGroupButtonProps = useConvertToGroupButtonProps(selectedClientIds);
- const { isGroupable: isGroupable2, isUngroupable: isUngroupable2 } = convertToGroupButtonProps;
- const showConvertToGroupButton = (isGroupable2 || isUngroupable2) && !isContentOnly;
- return /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
- Slot7,
- {
- fillProps: {
- ...fillProps,
- canEdit,
- selectedBlocks,
- selectedClientIds
- },
- children: (fills) => {
- if (!fills?.length > 0 && !showConvertToGroupButton && !showLockButton) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(import_components93.MenuGroup, { children: [
- showConvertToGroupButton && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
- ConvertToGroupButton,
- {
- ...convertToGroupButtonProps,
- onClose: fillProps?.onClose
- }
- ),
- canEdit && showLockButton && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
- BlockLockMenuItem,
- {
- clientId: selectedClientIds[0]
- }
- ),
- canEdit && showRenameButton && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
- BlockRenameControl,
- {
- clientId: selectedClientIds[0]
- }
- ),
- canEdit && showVisibilityButton && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
- BlockVisibilityViewportMenuItem,
+ // packages/block-editor/build-module/components/block-patterns-list/index.mjs
+ var import_blocks37 = __toESM(require_blocks(), 1);
+ var import_element120 = __toESM(require_element(), 1);
+ var import_components42 = __toESM(require_components(), 1);
+ var import_compose41 = __toESM(require_compose(), 1);
+ var import_i18n50 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/block-patterns-paging/index.mjs
+ var import_components41 = __toESM(require_components(), 1);
+ var import_i18n49 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime247 = __toESM(require_jsx_runtime(), 1);
+ function Pagination({
+ currentPage,
+ numPages,
+ changePage,
+ totalItems
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(import_components41.__experimentalVStack, { className: "block-editor-patterns__grid-pagination-wrapper", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(import_components41.__experimentalText, { variant: "muted", children: (0, import_i18n49.sprintf)(
+ // translators: %s: Total number of patterns.
+ (0, import_i18n49._n)("%s item", "%s items", totalItems),
+ totalItems
+ ) }),
+ numPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
+ import_components41.__experimentalHStack,
+ {
+ expanded: false,
+ spacing: 3,
+ justify: "flex-start",
+ className: "block-editor-patterns__grid-pagination",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
+ import_components41.__experimentalHStack,
{
- clientIds: selectedClientIds
+ expanded: false,
+ spacing: 1,
+ className: "block-editor-patterns__grid-pagination-previous",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
+ import_components41.Button,
+ {
+ variant: "tertiary",
+ onClick: () => changePage(1),
+ disabled: currentPage === 1,
+ "aria-label": (0, import_i18n49.__)("First page"),
+ size: "compact",
+ accessibleWhenDisabled: true,
+ className: "block-editor-patterns__grid-pagination-button",
+ children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("span", { children: "\xAB" })
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
+ import_components41.Button,
+ {
+ variant: "tertiary",
+ onClick: () => changePage(currentPage - 1),
+ disabled: currentPage === 1,
+ "aria-label": (0, import_i18n49.__)("Previous page"),
+ size: "compact",
+ accessibleWhenDisabled: true,
+ className: "block-editor-patterns__grid-pagination-button",
+ children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("span", { children: "\u2039" })
+ }
+ )
+ ]
}
),
- fills,
- canEdit && fillProps?.count === 1 && !isContentOnly && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
- BlockModeToggle,
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(import_components41.__experimentalText, { variant: "muted", children: (0, import_i18n49.sprintf)(
+ // translators: 1: Current page number. 2: Total number of pages.
+ (0, import_i18n49._x)("%1$s of %2$s", "paging"),
+ currentPage,
+ numPages
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
+ import_components41.__experimentalHStack,
{
- clientId: fillProps?.firstBlockClientId,
- onToggle: fillProps?.onClose
+ expanded: false,
+ spacing: 1,
+ className: "block-editor-patterns__grid-pagination-next",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
+ import_components41.Button,
+ {
+ variant: "tertiary",
+ onClick: () => changePage(currentPage + 1),
+ disabled: currentPage === numPages,
+ "aria-label": (0, import_i18n49.__)("Next page"),
+ size: "compact",
+ accessibleWhenDisabled: true,
+ className: "block-editor-patterns__grid-pagination-button",
+ children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("span", { children: "\u203A" })
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
+ import_components41.Button,
+ {
+ variant: "tertiary",
+ onClick: () => changePage(numPages),
+ disabled: currentPage === numPages,
+ "aria-label": (0, import_i18n49.__)("Last page"),
+ size: "compact",
+ accessibleWhenDisabled: true,
+ className: "block-editor-patterns__grid-pagination-button",
+ children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("span", { children: "\xBB" })
+ }
+ )
+ ]
}
)
- ] });
+ ]
}
- }
- );
- };
- function BlockSettingsMenuControls({ ...props }) {
- return /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(import_components93.__experimentalStyleProvider, { document, children: /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(Fill2, { ...props }) });
+ )
+ ] });
}
- BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
- var block_settings_menu_controls_default = BlockSettingsMenuControls;
- // packages/block-editor/build-module/components/block-settings-menu/block-parent-selector-menu-item.mjs
- var import_element166 = __toESM(require_element(), 1);
- var import_components94 = __toESM(require_components(), 1);
- var import_compose65 = __toESM(require_compose(), 1);
- var import_data105 = __toESM(require_data(), 1);
- var import_i18n87 = __toESM(require_i18n(), 1);
- var import_jsx_runtime297 = __toESM(require_jsx_runtime(), 1);
- function BlockParentSelectorMenuItem({
- parentClientId,
- parentBlockType
- }) {
- const isSmallViewport = (0, import_compose65.useViewportMatch)("medium", "<");
- const { selectBlock: selectBlock2 } = (0, import_data105.useDispatch)(store);
- const menuItemRef = (0, import_element166.useRef)();
- const gesturesProps = useShowHoveredOrFocusedGestures({
- ref: menuItemRef,
- highlightParent: true
- });
- if (!isSmallViewport) {
- return null;
+ // packages/block-editor/build-module/components/block-patterns-list/index.mjs
+ var import_jsx_runtime248 = __toESM(require_jsx_runtime(), 1);
+ var WithToolTip = ({ showTooltip, title, children }) => {
+ if (showTooltip) {
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(tooltip_exports.Root, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(tooltip_exports.Trigger, { render: children }),
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(tooltip_exports.Popup, { children: title })
+ ] });
}
- return /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
- import_components94.MenuItem,
- {
- ...gesturesProps,
- ref: menuItemRef,
- icon: /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(block_icon_default, { icon: parentBlockType.icon }),
- onClick: () => selectBlock2(parentClientId),
- children: (0, import_i18n87.sprintf)(
- /* translators: %s: Name of the block's parent. */
- (0, import_i18n87.__)("Select parent block (%s)"),
- parentBlockType.title
- )
- }
- );
- }
-
- // packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.mjs
- var import_jsx_runtime298 = __toESM(require_jsx_runtime(), 1);
- var POPOVER_PROPS4 = {
- className: "block-editor-block-settings-menu__popover",
- placement: "bottom-start"
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(import_jsx_runtime248.Fragment, { children });
};
- function CopyMenuItem({
- clientIds,
- onCopy,
- label,
- shortcut,
- eventType = "copy",
- __experimentalUpdateSelection: updateSelection = false
+ function BlockPattern({
+ id,
+ isDraggable,
+ pattern,
+ onClick,
+ onHover,
+ showTitlesAsTooltip,
+ category,
+ isSelected
}) {
- const { getBlocksByClientId: getBlocksByClientId2 } = (0, import_data106.useSelect)(store);
- const { removeBlocks: removeBlocks2 } = (0, import_data106.useDispatch)(store);
- const notifyCopy = useNotifyCopy();
- const ref = (0, import_compose66.useCopyToClipboard)(
- () => (0, import_blocks62.serialize)(getBlocksByClientId2(clientIds)),
- () => {
- switch (eventType) {
- case "copy":
- case "copyStyles":
- onCopy();
- notifyCopy(eventType, clientIds);
- break;
- case "cut":
- notifyCopy(eventType, clientIds);
- removeBlocks2(clientIds, updateSelection);
- break;
- default:
- break;
- }
- }
- );
- const copyMenuItemLabel = label ? label : (0, import_i18n88.__)("Copy");
- return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(import_components95.MenuItem, { ref, shortcut, children: copyMenuItemLabel });
- }
- function BlockSettingsDropdown({
- block,
- clientIds,
- children,
- __experimentalSelectBlock,
- isContentOnlyListView,
- ...props
- }) {
- const count = clientIds.length;
- const firstBlockClientId = clientIds[0];
- const {
- firstParentClientId,
- parentBlockType,
- previousBlockClientId,
- selectedBlockClientIds,
- isContentOnly,
- isZoomOut: isZoomOut2,
- canEdit,
- canMove,
- isFirst,
- isLast
- } = (0, import_data106.useSelect)(
- (select3) => {
- const {
- getBlockName: getBlockName2,
- getBlockRootClientId: getBlockRootClientId2,
- getPreviousBlockClientId: getPreviousBlockClientId2,
- getSelectedBlockClientIds: getSelectedBlockClientIds22,
- getBlockAttributes: getBlockAttributes3,
- getBlockEditingMode: getBlockEditingMode2,
- isZoomOut: _isZoomOut,
- canEditBlock: canEditBlock2,
- canMoveBlocks: canMoveBlocks2,
- getBlockIndex: getBlockIndex2,
- getBlockCount: getBlockCount2
- } = unlock(select3(store));
- const { getActiveBlockVariation } = select3(import_blocks62.store);
- const _firstParentClientId = getBlockRootClientId2(firstBlockClientId);
- const parentBlockName = _firstParentClientId && getBlockName2(_firstParentClientId);
- return {
- firstParentClientId: _firstParentClientId,
- parentBlockType: _firstParentClientId && (getActiveBlockVariation(
- parentBlockName,
- getBlockAttributes3(_firstParentClientId)
- ) || (0, import_blocks62.getBlockType)(parentBlockName)),
- previousBlockClientId: getPreviousBlockClientId2(firstBlockClientId),
- selectedBlockClientIds: getSelectedBlockClientIds22(),
- isContentOnly: getBlockEditingMode2(firstBlockClientId) === "contentOnly",
- isZoomOut: _isZoomOut(),
- canEdit: canEditBlock2(firstBlockClientId),
- canMove: canMoveBlocks2(clientIds),
- isFirst: getBlockIndex2(firstBlockClientId) === 0,
- isLast: getBlockIndex2(firstBlockClientId) === getBlockCount2(_firstParentClientId) - 1
- };
- },
- [firstBlockClientId, clientIds]
- );
- const { getBlockOrder: getBlockOrder2, getSelectedBlockClientIds: getSelectedBlockClientIds2 } = (0, import_data106.useSelect)(store);
- const { moveBlocksDown: moveBlocksDown2, moveBlocksUp: moveBlocksUp2 } = (0, import_data106.useDispatch)(store);
- const shortcuts = (0, import_data106.useSelect)((select3) => {
- const { getShortcutRepresentation } = select3(import_keyboard_shortcuts7.store);
- return {
- copy: getShortcutRepresentation("core/block-editor/copy"),
- cut: getShortcutRepresentation("core/block-editor/cut"),
- duplicate: getShortcutRepresentation(
- "core/block-editor/duplicate"
- ),
- remove: getShortcutRepresentation("core/block-editor/remove"),
- insertAfter: getShortcutRepresentation(
- "core/block-editor/insert-after"
- ),
- insertBefore: getShortcutRepresentation(
- "core/block-editor/insert-before"
- )
- };
- }, []);
- const hasSelectedBlocks = selectedBlockClientIds.length > 0;
- async function updateSelectionAfterDuplicate(clientIdsPromise) {
- if (!__experimentalSelectBlock) {
- return;
- }
- const ids = await clientIdsPromise;
- if (ids && ids[0]) {
- __experimentalSelectBlock(ids[0], false);
- }
- }
- function updateSelectionAfterRemove() {
- if (!__experimentalSelectBlock) {
- return;
- }
- let blockToFocus = previousBlockClientId || firstParentClientId;
- if (!blockToFocus) {
- blockToFocus = getBlockOrder2()[0];
+ const [isDragging3, setIsDragging] = (0, import_element120.useState)(false);
+ const { blocks: blocks2, viewportWidth } = pattern;
+ const instanceId = (0, import_compose41.useInstanceId)(BlockPattern);
+ const descriptionId = `block-editor-block-patterns-list__item-description-${instanceId}`;
+ const isUserPattern = pattern.type === INSERTER_PATTERN_TYPES.user;
+ const patternBlocks = (0, import_element120.useMemo)(() => {
+ if (!category || !isDraggable) {
+ return blocks2;
}
- const shouldUpdateSelection = hasSelectedBlocks && getSelectedBlockClientIds2().length === 0;
- __experimentalSelectBlock(blockToFocus, shouldUpdateSelection);
- }
- const parentBlockIsSelected = selectedBlockClientIds?.includes(firstParentClientId);
- const shouldShowBlockParentMenuItem = !parentBlockIsSelected && !!firstParentClientId;
- return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- BlockActions,
+ return (blocks2 ?? []).map((block) => {
+ const clonedBlock = (0, import_blocks37.cloneBlock)(block);
+ if (clonedBlock.attributes.metadata?.categories?.includes(
+ category
+ )) {
+ clonedBlock.attributes.metadata.categories = [category];
+ }
+ return clonedBlock;
+ });
+ }, [blocks2, isDraggable, category]);
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
+ inserter_draggable_blocks_default,
{
- clientIds,
- __experimentalUpdateSelection: !__experimentalSelectBlock,
- children: ({
- canCopyStyles,
- canDuplicate,
- canInsertBlock,
- canRemove,
- onDuplicate,
- onInsertAfter,
- onInsertBefore,
- onRemove,
- onCopy,
- onPasteStyles
- }) => {
- const isEmpty4 = !canRemove && !canDuplicate && !canInsertBlock && isContentOnly;
- if (isEmpty4) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- import_components95.DropdownMenu,
- {
- icon: more_vertical_default,
- label: (0, import_i18n88.__)("Options"),
- className: "block-editor-block-settings-menu",
- popoverProps: POPOVER_PROPS4,
- noIcons: true,
- ...props,
- children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(import_jsx_runtime298.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(import_components95.MenuGroup, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- block_settings_menu_first_item_default.Slot,
- {
- fillProps: { onClose }
- }
- ),
- shouldShowBlockParentMenuItem && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- BlockParentSelectorMenuItem,
- {
- parentClientId: firstParentClientId,
- parentBlockType
- }
- ),
- canMove && isContentOnlyListView && /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(import_jsx_runtime298.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- import_components95.MenuItem,
- {
- icon: chevron_up_default,
- disabled: isFirst,
- accessibleWhenDisabled: true,
- onClick: (0, import_compose66.pipe)(onClose, () => {
- moveBlocksUp2(
- clientIds,
- firstParentClientId
- );
- }),
- children: (0, import_i18n88.__)("Move up")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- import_components95.MenuItem,
- {
- icon: chevron_down_default,
- disabled: isLast,
- accessibleWhenDisabled: true,
- onClick: (0, import_compose66.pipe)(onClose, () => {
- moveBlocksDown2(
- clientIds,
- firstParentClientId
- );
- }),
- children: (0, import_i18n88.__)("Move down")
- }
- )
- ] }),
- canEdit && count === 1 && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- block_html_convert_button_default,
- {
- clientId: firstBlockClientId
- }
- ),
- !isContentOnly && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- CopyMenuItem,
- {
- clientIds,
- onCopy,
- shortcut: shortcuts.copy
- }
- ),
- canRemove && !isContentOnly && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- CopyMenuItem,
- {
- clientIds,
- label: (0, import_i18n88.__)("Cut"),
- eventType: "cut",
- shortcut: shortcuts.cut,
- __experimentalUpdateSelection: !__experimentalSelectBlock
- }
- ),
- canDuplicate && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- import_components95.MenuItem,
- {
- onClick: (0, import_compose66.pipe)(
- onClose,
- onDuplicate,
- updateSelectionAfterDuplicate
- ),
- shortcut: shortcuts.duplicate,
- children: (0, import_i18n88.__)("Duplicate")
- }
- ),
- canInsertBlock && !isZoomOut2 && /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(import_jsx_runtime298.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- import_components95.MenuItem,
+ isEnabled: isDraggable,
+ blocks: patternBlocks,
+ pattern,
+ children: ({ draggable, onDragStart, onDragEnd }) => /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
+ "div",
+ {
+ className: "block-editor-block-patterns-list__list-item",
+ draggable,
+ onDragStart: (event) => {
+ setIsDragging(true);
+ if (onDragStart) {
+ onHover?.(null);
+ onDragStart(event);
+ }
+ },
+ onDragEnd: (event) => {
+ setIsDragging(false);
+ if (onDragEnd) {
+ onDragEnd(event);
+ }
+ },
+ children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
+ WithToolTip,
+ {
+ showTooltip: showTitlesAsTooltip && !isUserPattern,
+ title: pattern.title,
+ children: /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
+ import_components42.Composite.Item,
+ {
+ render: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
+ "div",
{
- onClick: (0, import_compose66.pipe)(
- onClose,
- onInsertBefore
- ),
- shortcut: shortcuts.insertBefore,
- children: (0, import_i18n88.__)("Add before")
+ role: "option",
+ "aria-label": pattern.title,
+ "aria-describedby": pattern.description ? descriptionId : void 0,
+ className: clsx_default(
+ "block-editor-block-patterns-list__item",
+ {
+ "block-editor-block-patterns-list__list-item-synced": pattern.type === INSERTER_PATTERN_TYPES.user && !pattern.syncStatus,
+ "is-selected": isSelected
+ }
+ )
}
),
- /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- import_components95.MenuItem,
- {
- onClick: (0, import_compose66.pipe)(
- onClose,
- onInsertAfter
- ),
- shortcut: shortcuts.insertAfter,
- children: (0, import_i18n88.__)("Add after")
- }
- )
- ] }),
- canEdit && count === 1 && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- note_icon_slot_default.Slot,
- {
- fillProps: {
- clientId: firstBlockClientId,
- onClose
+ id,
+ onClick: () => {
+ onClick(pattern, blocks2);
+ onHover?.(null);
+ },
+ onMouseEnter: () => {
+ if (isDragging3) {
+ return;
}
- }
- )
- ] }),
- canCopyStyles && !isContentOnly && /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(import_components95.MenuGroup, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- CopyMenuItem,
- {
- clientIds,
- onCopy,
- label: (0, import_i18n88.__)("Copy styles"),
- eventType: "copyStyles"
- }
- ),
- canEdit && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(import_components95.MenuItem, { onClick: onPasteStyles, children: (0, import_i18n88.__)("Paste styles") })
- ] }),
- !isContentOnly && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- block_settings_menu_controls_default.Slot,
- {
- fillProps: {
- onClose,
- count,
- firstBlockClientId
+ onHover?.(pattern);
},
- clientIds
- }
- ),
- typeof children === "function" ? children({ onClose }) : import_element167.Children.map(
- (child) => (0, import_element167.cloneElement)(child, { onClose })
- ),
- canRemove && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(import_components95.MenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
- import_components95.MenuItem,
- {
- onClick: (0, import_compose66.pipe)(
- onClose,
- onRemove,
- updateSelectionAfterRemove
- ),
- shortcut: shortcuts.remove,
- children: (0, import_i18n88.__)("Delete")
+ onMouseLeave: () => onHover?.(null),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
+ block_preview_default.Async,
+ {
+ placeholder: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(BlockPatternPlaceholder, {}),
+ children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
+ block_preview_default,
+ {
+ blocks: blocks2,
+ viewportWidth
+ }
+ )
+ }
+ ),
+ (!showTitlesAsTooltip || isUserPattern) && /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
+ import_components42.__experimentalHStack,
+ {
+ className: "block-editor-patterns__pattern-details",
+ spacing: 2,
+ children: [
+ isUserPattern && !pattern.syncStatus && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)("div", { className: "block-editor-patterns__pattern-icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
+ icon_default,
+ {
+ className: "block-editor-patterns__pattern-icon",
+ icon: symbol_default
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
+ Text,
+ {
+ render: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)("div", {}),
+ className: "block-editor-block-patterns-list__item-title",
+ variant: "body-sm",
+ children: pattern.title
+ }
+ )
+ ]
+ }
+ ),
+ !!pattern.description && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(VisuallyHidden, { id: descriptionId, children: pattern.description })
+ ]
}
- ) })
- ] })
- }
- );
- }
+ )
+ }
+ )
+ }
+ )
}
);
}
- var block_settings_dropdown_default = BlockSettingsDropdown;
-
- // packages/block-editor/build-module/components/collab/note-icon-toolbar-slot.mjs
- var import_components96 = __toESM(require_components(), 1);
- var NoteIconToolbarSlotFill = (0, import_components96.createSlotFill)(
- /* @__PURE__ */ Symbol("NoteIconToolbarSlotFill")
- );
- var note_icon_toolbar_slot_default = NoteIconToolbarSlotFill;
-
- // packages/block-editor/build-module/components/block-settings-menu/index.mjs
- var import_jsx_runtime299 = __toESM(require_jsx_runtime(), 1);
- function BlockSettingsMenu({ clientIds, ...props }) {
- return /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)(import_components97.ToolbarGroup, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(note_icon_toolbar_slot_default.Slot, {}),
- /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(import_components97.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
- block_settings_dropdown_default,
- {
- clientIds,
- toggleProps,
- ...props
- }
- ) })
- ] });
+ function BlockPatternPlaceholder() {
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)("div", { className: "block-editor-block-patterns-list__item is-placeholder" });
}
- var block_settings_menu_default = BlockSettingsMenu;
-
- // packages/block-editor/build-module/components/block-edit-visually-button/index.mjs
- var import_components98 = __toESM(require_components(), 1);
- var import_i18n89 = __toESM(require_i18n(), 1);
- var import_data107 = __toESM(require_data(), 1);
- var import_jsx_runtime300 = __toESM(require_jsx_runtime(), 1);
- function BlockEditVisuallyButton({ clientIds }) {
- const clientId = clientIds.length === 1 ? clientIds[0] : void 0;
- const canEditVisually = (0, import_data107.useSelect)(
- (select3) => !!clientId && select3(store).getBlockMode(clientId) === "html",
- [clientId]
- );
- const { toggleBlockMode: toggleBlockMode2 } = (0, import_data107.useDispatch)(store);
- if (!canEditVisually) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(import_components98.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
- import_components98.ToolbarButton,
+ function BlockPatternsList({
+ isDraggable,
+ blockPatterns,
+ onHover,
+ onClickPattern,
+ orientation,
+ category,
+ label = (0, import_i18n50.__)("Patterns"),
+ showTitlesAsTooltip,
+ pagingProps
+ }, ref) {
+ const [activeCompositeId, setActiveCompositeId] = (0, import_element120.useState)(void 0);
+ const [activePattern, setActivePattern] = (0, import_element120.useState)(null);
+ (0, import_element120.useEffect)(() => {
+ const firstCompositeItemId = blockPatterns[0]?.name;
+ setActiveCompositeId(firstCompositeItemId);
+ }, [blockPatterns]);
+ const handleClickPattern = (pattern, blocks2) => {
+ setActivePattern(pattern.name);
+ onClickPattern(pattern, blocks2);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
+ import_components42.Composite,
{
- onClick: () => {
- toggleBlockMode2(clientId);
- },
- children: (0, import_i18n89.__)("Edit visually")
+ orientation,
+ activeId: activeCompositeId,
+ setActiveId: setActiveCompositeId,
+ role: "listbox",
+ className: "block-editor-block-patterns-list",
+ "aria-label": label,
+ ref,
+ children: [
+ blockPatterns.map((pattern) => /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
+ BlockPattern,
+ {
+ id: pattern.name,
+ pattern,
+ onClick: handleClickPattern,
+ onHover,
+ isDraggable,
+ showTitlesAsTooltip,
+ category,
+ isSelected: !!activePattern && activePattern === pattern.name
+ },
+ pattern.name
+ )),
+ pagingProps && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Pagination, { ...pagingProps })
+ ]
}
- ) });
- }
-
- // packages/block-editor/build-module/components/navigable-toolbar/index.mjs
- var import_components99 = __toESM(require_components(), 1);
- var import_element168 = __toESM(require_element(), 1);
- var import_data108 = __toESM(require_data(), 1);
- var import_deprecated12 = __toESM(require_deprecated(), 1);
- var import_dom59 = __toESM(require_dom(), 1);
- var import_keyboard_shortcuts8 = __toESM(require_keyboard_shortcuts(), 1);
- var import_keycodes12 = __toESM(require_keycodes(), 1);
- var import_jsx_runtime301 = __toESM(require_jsx_runtime(), 1);
- function hasOnlyToolbarItem(elements) {
- const dataProp = "toolbarItem";
- return !elements.some((element) => !(dataProp in element.dataset));
- }
- function getAllFocusableToolbarItemsIn(container) {
- return Array.from(
- container.querySelectorAll("[data-toolbar-item]:not([disabled])")
);
}
- function hasFocusWithin(container) {
- return container.contains(container.ownerDocument.activeElement);
- }
- function focusFirstTabbableIn(container) {
- const [firstTabbable] = import_dom59.focus.tabbable.find(container);
- if (firstTabbable) {
- firstTabbable.focus({
- // When focusing newly mounted toolbars,
- // the position of the popover is often not right on the first render
- // This prevents the layout shifts when focusing the dialogs.
- preventScroll: true
- });
+ var block_patterns_list_default = (0, import_element120.forwardRef)(BlockPatternsList);
+
+ // packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.mjs
+ var import_data57 = __toESM(require_data(), 1);
+ var import_blocks38 = __toESM(require_blocks(), 1);
+ var import_i18n51 = __toESM(require_i18n(), 1);
+ var import_a11y7 = __toESM(require_a11y(), 1);
+ var import_element121 = __toESM(require_element(), 1);
+ function getIndex({
+ destinationRootClientId,
+ destinationIndex,
+ rootClientId,
+ registry
+ }) {
+ if (rootClientId === destinationRootClientId) {
+ return destinationIndex;
}
+ const parents = [
+ "",
+ ...registry.select(store).getBlockParents(destinationRootClientId),
+ destinationRootClientId
+ ];
+ const parentIndex = parents.indexOf(rootClientId);
+ if (parentIndex !== -1) {
+ return registry.select(store).getBlockIndex(parents[parentIndex + 1]) + 1;
+ }
+ return registry.select(store).getBlockOrder(rootClientId).length;
}
- function useIsAccessibleToolbar(toolbarRef) {
- const initialAccessibleToolbarState = true;
- const [isAccessibleToolbar, setIsAccessibleToolbar] = (0, import_element168.useState)(
- initialAccessibleToolbarState
- );
- const determineIsAccessibleToolbar = (0, import_element168.useCallback)(() => {
- const tabbables = import_dom59.focus.tabbable.find(toolbarRef.current);
- const onlyToolbarItem = hasOnlyToolbarItem(tabbables);
- if (!onlyToolbarItem) {
- (0, import_deprecated12.default)("Using custom components as toolbar controls", {
- since: "5.6",
- alternative: "ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",
- link: "https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"
- });
- }
- setIsAccessibleToolbar(onlyToolbarItem);
- }, [toolbarRef]);
- (0, import_element168.useLayoutEffect)(() => {
- const observer = new window.MutationObserver(
- determineIsAccessibleToolbar
- );
- observer.observe(toolbarRef.current, {
- childList: true,
- subtree: true
- });
- return () => observer.disconnect();
- }, [determineIsAccessibleToolbar, isAccessibleToolbar, toolbarRef]);
- return isAccessibleToolbar;
- }
- function useToolbarFocus({
- toolbarRef,
- focusOnMount,
- isAccessibleToolbar,
- defaultIndex,
- onIndexChange,
- shouldUseKeyboardFocusShortcut,
- focusEditorOnEscape
+ function useInsertionPoint({
+ rootClientId = "",
+ insertionIndex,
+ clientId,
+ isAppender,
+ onSelect,
+ shouldFocusBlock = true,
+ selectBlockOnInsert = true
}) {
- const [initialFocusOnMount] = (0, import_element168.useState)(focusOnMount);
- const [initialIndex] = (0, import_element168.useState)(defaultIndex);
- const focusToolbar = (0, import_element168.useCallback)(() => {
- focusFirstTabbableIn(toolbarRef.current);
- }, [toolbarRef]);
- const focusToolbarViaShortcut = () => {
- if (shouldUseKeyboardFocusShortcut) {
- focusToolbar();
- }
- };
- (0, import_keyboard_shortcuts8.useShortcut)("core/block-editor/focus-toolbar", focusToolbarViaShortcut);
- (0, import_element168.useEffect)(() => {
- if (initialFocusOnMount) {
- focusToolbar();
- }
- }, [isAccessibleToolbar, initialFocusOnMount, focusToolbar]);
- (0, import_element168.useEffect)(() => {
- const navigableToolbarRef = toolbarRef.current;
- let raf2 = 0;
- if (!initialFocusOnMount && !hasFocusWithin(navigableToolbarRef)) {
- raf2 = window.requestAnimationFrame(() => {
- const items = getAllFocusableToolbarItemsIn(navigableToolbarRef);
- const index2 = initialIndex || 0;
- if (items[index2] && hasFocusWithin(navigableToolbarRef)) {
- items[index2].focus({
- // When focusing newly mounted toolbars,
- // the position of the popover is often not right on the first render
- // This prevents the layout shifts when focusing the dialogs.
- preventScroll: true
- });
- }
- });
- }
- return () => {
- window.cancelAnimationFrame(raf2);
- if (!onIndexChange || !navigableToolbarRef) {
- return;
+ const registry = (0, import_data57.useRegistry)();
+ const {
+ getSelectedBlock: getSelectedBlock2,
+ getClosestAllowedInsertionPoint: getClosestAllowedInsertionPoint2,
+ isBlockInsertionPointVisible: isBlockInsertionPointVisible2
+ } = unlock((0, import_data57.useSelect)(store));
+ const { destinationRootClientId, destinationIndex } = (0, import_data57.useSelect)(
+ (select3) => {
+ const {
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockIndex: getBlockIndex2,
+ getBlockOrder: getBlockOrder2,
+ getInsertionPoint: getInsertionPoint2
+ } = unlock(select3(store));
+ const selectedBlockClientId = getSelectedBlockClientId2();
+ let _destinationRootClientId = rootClientId;
+ let _destinationIndex;
+ const insertionPoint2 = getInsertionPoint2();
+ if (insertionIndex !== void 0) {
+ _destinationIndex = insertionIndex;
+ } else if (insertionPoint2 && insertionPoint2.hasOwnProperty("index")) {
+ _destinationRootClientId = insertionPoint2?.rootClientId ? insertionPoint2.rootClientId : rootClientId;
+ _destinationIndex = insertionPoint2.index;
+ } else if (clientId) {
+ _destinationIndex = getBlockIndex2(clientId);
+ } else if (!isAppender && selectedBlockClientId) {
+ _destinationRootClientId = getBlockRootClientId2(
+ selectedBlockClientId
+ );
+ _destinationIndex = getBlockIndex2(selectedBlockClientId) + 1;
+ } else {
+ _destinationIndex = getBlockOrder2(
+ _destinationRootClientId
+ ).length;
}
- const items = getAllFocusableToolbarItemsIn(navigableToolbarRef);
- const index2 = items.findIndex((item) => item.tabIndex === 0);
- onIndexChange(index2);
- };
- }, [initialIndex, initialFocusOnMount, onIndexChange, toolbarRef]);
- const { getLastFocus: getLastFocus2 } = unlock((0, import_data108.useSelect)(store));
- (0, import_element168.useEffect)(() => {
- const navigableToolbarRef = toolbarRef.current;
- if (focusEditorOnEscape) {
- const handleKeyDown = (event) => {
- const lastFocus2 = getLastFocus2();
- if (event.keyCode === import_keycodes12.ESCAPE && lastFocus2?.current) {
- event.preventDefault();
- lastFocus2.current.focus();
- }
+ return {
+ destinationRootClientId: _destinationRootClientId,
+ destinationIndex: _destinationIndex
};
- navigableToolbarRef.addEventListener("keydown", handleKeyDown);
- return () => {
- navigableToolbarRef.removeEventListener(
- "keydown",
- handleKeyDown
+ },
+ [rootClientId, insertionIndex, clientId, isAppender]
+ );
+ const {
+ replaceBlocks: replaceBlocks2,
+ insertBlocks: insertBlocks2,
+ showInsertionPoint: showInsertionPoint2,
+ hideInsertionPoint: hideInsertionPoint2,
+ setLastFocus: setLastFocus2
+ } = unlock((0, import_data57.useDispatch)(store));
+ const onInsertBlocks = (0, import_element121.useCallback)(
+ (blocks2, meta, shouldForceFocusBlock = false, _rootClientId) => {
+ if (shouldForceFocusBlock || shouldFocusBlock || selectBlockOnInsert) {
+ setLastFocus2(null);
+ }
+ const selectedBlock = getSelectedBlock2();
+ if (!isAppender && selectedBlock && (0, import_blocks38.isUnmodifiedDefaultBlock)(selectedBlock, "content")) {
+ replaceBlocks2(
+ selectedBlock.clientId,
+ blocks2,
+ null,
+ shouldFocusBlock || shouldForceFocusBlock ? 0 : null,
+ meta
+ );
+ } else {
+ insertBlocks2(
+ blocks2,
+ isAppender || _rootClientId === void 0 ? destinationIndex : getIndex({
+ destinationRootClientId,
+ destinationIndex,
+ rootClientId: _rootClientId,
+ registry
+ }),
+ isAppender || _rootClientId === void 0 ? destinationRootClientId : _rootClientId,
+ selectBlockOnInsert,
+ shouldFocusBlock || shouldForceFocusBlock ? 0 : null,
+ meta
);
- };
- }
- }, [focusEditorOnEscape, getLastFocus2, toolbarRef]);
- }
- function NavigableToolbar({
- children,
- focusOnMount,
- focusEditorOnEscape = false,
- shouldUseKeyboardFocusShortcut = true,
- __experimentalInitialIndex: initialIndex,
- __experimentalOnIndexChange: onIndexChange,
- orientation = "horizontal",
- ...props
- }) {
- const toolbarRef = (0, import_element168.useRef)();
- const isAccessibleToolbar = useIsAccessibleToolbar(toolbarRef);
- useToolbarFocus({
- toolbarRef,
- focusOnMount,
- defaultIndex: initialIndex,
- onIndexChange,
- isAccessibleToolbar,
- shouldUseKeyboardFocusShortcut,
- focusEditorOnEscape
- });
- if (isAccessibleToolbar) {
- return /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
- import_components99.Toolbar,
- {
- label: props["aria-label"],
- ref: toolbarRef,
- orientation,
- ...props,
- children
}
- );
- }
- return /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
- import_components99.NavigableMenu,
- {
- orientation,
- role: "toolbar",
- ref: toolbarRef,
- ...props,
- children
- }
+ const blockLength = Array.isArray(blocks2) ? blocks2.length : 1;
+ const message2 = (0, import_i18n51.sprintf)(
+ // translators: %d: the name of the block that has been added
+ (0, import_i18n51._n)("%d block added.", "%d blocks added.", blockLength),
+ blockLength
+ );
+ (0, import_a11y7.speak)(message2);
+ if (onSelect) {
+ onSelect(blocks2);
+ }
+ },
+ [
+ isAppender,
+ getSelectedBlock2,
+ replaceBlocks2,
+ insertBlocks2,
+ destinationRootClientId,
+ destinationIndex,
+ onSelect,
+ shouldFocusBlock,
+ selectBlockOnInsert,
+ setLastFocus2,
+ registry
+ ]
+ );
+ const onToggleInsertionPoint = (0, import_element121.useCallback)(
+ (item) => {
+ if (item && !isBlockInsertionPointVisible2()) {
+ const allowedDestinationRootClientId = getClosestAllowedInsertionPoint2(
+ item.name,
+ destinationRootClientId
+ );
+ if (allowedDestinationRootClientId !== null) {
+ showInsertionPoint2(
+ allowedDestinationRootClientId,
+ getIndex({
+ destinationRootClientId,
+ destinationIndex,
+ rootClientId: allowedDestinationRootClientId,
+ registry
+ })
+ );
+ }
+ } else {
+ hideInsertionPoint2();
+ }
+ },
+ [
+ getClosestAllowedInsertionPoint2,
+ isBlockInsertionPointVisible2,
+ showInsertionPoint2,
+ hideInsertionPoint2,
+ destinationRootClientId,
+ destinationIndex,
+ registry
+ ]
);
+ return [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint];
}
+ var use_insertion_point_default = useInsertionPoint;
- // packages/block-editor/build-module/components/block-toolbar/use-has-block-toolbar.mjs
- var import_data109 = __toESM(require_data(), 1);
- var import_blocks63 = __toESM(require_blocks(), 1);
- function useHasBlockToolbar() {
- const enabled = (0, import_data109.useSelect)((select3) => {
- const { getBlockEditingMode: getBlockEditingMode2, getBlockName: getBlockName2, getBlockSelectionStart: getBlockSelectionStart2 } = select3(store);
- const selectedBlockClientId = getBlockSelectionStart2();
- const blockType = selectedBlockClientId && (0, import_blocks63.getBlockType)(getBlockName2(selectedBlockClientId));
- return blockType && (0, import_blocks63.hasBlockSupport)(blockType, "__experimentalToolbar", true) && getBlockEditingMode2(selectedBlockClientId) !== "disabled";
+ // packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.mjs
+ var import_element122 = __toESM(require_element(), 1);
+ var import_blocks39 = __toESM(require_blocks(), 1);
+ var import_data58 = __toESM(require_data(), 1);
+ var import_i18n52 = __toESM(require_i18n(), 1);
+ var import_notices5 = __toESM(require_notices(), 1);
+ var usePatternsState = (onInsert, rootClientId, selectedCategory, isQuick) => {
+ const options = (0, import_element122.useMemo)(
+ () => ({ [isFiltered]: !!isQuick }),
+ [isQuick]
+ );
+ const isWithinNavigationOverlayContext = (0, import_data58.useSelect)((select3) => {
+ const { getSettings: getSettings8 } = unlock(select3(store));
+ const settings2 = getSettings8();
+ return settings2[isNavigationOverlayContextKey] ?? false;
}, []);
- return enabled;
- }
-
- // packages/block-editor/build-module/components/block-toolbar/change-design.mjs
- var import_components100 = __toESM(require_components(), 1);
- var import_i18n90 = __toESM(require_i18n(), 1);
- var import_blocks64 = __toESM(require_blocks(), 1);
- var import_element169 = __toESM(require_element(), 1);
- var import_data110 = __toESM(require_data(), 1);
- var import_jsx_runtime302 = __toESM(require_jsx_runtime(), 1);
- var EMPTY_ARRAY9 = [];
- var MAX_PATTERNS_TO_SHOW = 6;
- var POPOVER_PROPS5 = {
- placement: "bottom-start"
- };
- function ChangeDesign({ clientId }) {
- const { categories, currentPatternName, patterns } = (0, import_data110.useSelect)(
+ const { patternCategories, patterns, userPatternCategories } = (0, import_data58.useSelect)(
(select3) => {
- const {
- getBlockAttributes: getBlockAttributes3,
- getBlockRootClientId: getBlockRootClientId2,
- __experimentalGetAllowedPatterns: __experimentalGetAllowedPatterns2
- } = select3(store);
- const attributes = getBlockAttributes3(clientId);
- const _categories = attributes?.metadata?.categories || EMPTY_ARRAY9;
- const rootBlock = getBlockRootClientId2(clientId);
- const _patterns = _categories.length > 0 ? __experimentalGetAllowedPatterns2(rootBlock) : EMPTY_ARRAY9;
+ const { getSettings: getSettings8, __experimentalGetAllowedPatterns: __experimentalGetAllowedPatterns2 } = unlock(
+ select3(store)
+ );
+ const settings2 = getSettings8();
+ const userPatternCategoriesSelect = settings2[userPatternCategoriesSelectKey];
return {
- categories: _categories,
- currentPatternName: attributes?.metadata?.patternName,
- patterns: _patterns
+ patterns: __experimentalGetAllowedPatterns2(
+ rootClientId,
+ options
+ ),
+ userPatternCategories: userPatternCategoriesSelect ? userPatternCategoriesSelect(select3) : settings2.__experimentalUserPatternCategories,
+ patternCategories: settings2.__experimentalBlockPatternCategories
};
},
- [clientId]
+ [rootClientId, options]
);
- const { replaceBlocks: replaceBlocks2 } = (0, import_data110.useDispatch)(store);
- const sameCategoryPatternsWithSingleWrapper = (0, import_element169.useMemo)(() => {
- if (categories.length === 0 || !patterns || patterns.length === 0) {
- return EMPTY_ARRAY9;
- }
+ const filteredPatterns = (0, import_element122.useMemo)(() => {
return patterns.filter((pattern) => {
- const isCorePattern = pattern.source === "core" || pattern.source?.startsWith("pattern-directory") && pattern.source !== "pattern-directory/theme";
- return (
- // Check if the pattern has only one top level block,
- // otherwise we may switch to a pattern that doesn't have replacement suggestions.
- pattern.blocks.length === 1 && // We exclude the core patterns and pattern directory patterns that are not theme patterns.
- !isCorePattern && // Exclude current pattern.
- currentPatternName !== pattern.name && pattern.categories?.some((category) => {
- return categories.includes(category);
- }) && // Check if the pattern is not a synced pattern.
- (pattern.syncStatus === "unsynced" || !pattern.id)
- );
- }).slice(0, MAX_PATTERNS_TO_SHOW);
- }, [categories, currentPatternName, patterns]);
- if (sameCategoryPatternsWithSingleWrapper.length < 2) {
- return null;
- }
- const onClickPattern = (pattern) => {
- const newBlocks = (pattern.blocks ?? []).map((block) => {
- return (0, import_blocks64.cloneBlock)(block);
+ const hasNavigationCategory = pattern.categories?.includes("navigation");
+ if (hasNavigationCategory && !isWithinNavigationOverlayContext) {
+ return false;
+ }
+ return true;
});
- newBlocks[0].attributes.metadata = {
- ...newBlocks[0].attributes.metadata,
- categories
- };
- replaceBlocks2(clientId, newBlocks);
- };
- return /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
- import_components100.Dropdown,
- {
- popoverProps: POPOVER_PROPS5,
- renderToggle: ({ onToggle, isOpen }) => {
- return /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(import_components100.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
- import_components100.ToolbarButton,
- {
- onClick: () => onToggle(!isOpen),
- "aria-expanded": isOpen,
- children: (0, import_i18n90.__)("Change design")
+ }, [patterns, isWithinNavigationOverlayContext]);
+ const { getClosestAllowedInsertionPointForPattern: getClosestAllowedInsertionPointForPattern2 } = unlock(
+ (0, import_data58.useSelect)(store)
+ );
+ const allCategories = (0, import_element122.useMemo)(() => {
+ const categories = [...patternCategories];
+ userPatternCategories?.forEach((userCategory) => {
+ if (!categories.find(
+ (existingCategory) => existingCategory.name === userCategory.name
+ )) {
+ categories.push(userCategory);
+ }
+ });
+ return categories;
+ }, [patternCategories, userPatternCategories]);
+ const { createSuccessNotice } = (0, import_data58.useDispatch)(import_notices5.store);
+ const onClickPattern = (0, import_element122.useCallback)(
+ (pattern, blocks2) => {
+ const destinationRootClientId = isQuick ? rootClientId : getClosestAllowedInsertionPointForPattern2(
+ pattern,
+ rootClientId
+ );
+ if (destinationRootClientId === null) {
+ return;
+ }
+ const patternBlocks = pattern.type === INSERTER_PATTERN_TYPES.user && pattern.syncStatus !== "unsynced" ? [(0, import_blocks39.createBlock)("core/block", { ref: pattern.id })] : blocks2;
+ onInsert(
+ (patternBlocks ?? []).map((block) => {
+ const clonedBlock = (0, import_blocks39.cloneBlock)(block);
+ if (clonedBlock.attributes.metadata?.categories?.includes(
+ selectedCategory
+ )) {
+ clonedBlock.attributes.metadata.categories = [
+ selectedCategory
+ ];
}
- ) });
- },
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
- import_components100.__experimentalDropdownContentWrapper,
+ return clonedBlock;
+ }),
+ pattern.name,
+ false,
+ destinationRootClientId
+ );
+ createSuccessNotice(
+ (0, import_i18n52.sprintf)(
+ /* translators: %s: block pattern title. */
+ (0, import_i18n52.__)('Pattern "%s" inserted.'),
+ pattern.title
+ ),
{
- className: "block-editor-block-toolbar-change-design-content-wrapper",
- paddingSize: "none",
- children: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
- block_patterns_list_default,
- {
- blockPatterns: sameCategoryPatternsWithSingleWrapper,
- onClickPattern,
- showTitlesAsTooltip: true
- }
- )
+ type: "snackbar",
+ id: "inserter-notice"
}
- )
- }
+ );
+ },
+ [
+ createSuccessNotice,
+ onInsert,
+ selectedCategory,
+ rootClientId,
+ getClosestAllowedInsertionPointForPattern2,
+ isQuick
+ ]
);
- }
-
- // packages/block-editor/build-module/components/block-toolbar/switch-section-style.mjs
- var import_components101 = __toESM(require_components(), 1);
- var import_i18n92 = __toESM(require_i18n(), 1);
- var import_data112 = __toESM(require_data(), 1);
-
- // packages/block-editor/build-module/components/block-styles/use-styles-for-block.mjs
- var import_data111 = __toESM(require_data(), 1);
- var import_blocks65 = __toESM(require_blocks(), 1);
- var import_element170 = __toESM(require_element(), 1);
+ return [filteredPatterns, allCategories, onClickPattern];
+ };
+ var use_patterns_state_default = usePatternsState;
- // packages/block-editor/build-module/components/block-styles/utils.mjs
- var import_token_list = __toESM(require_token_list(), 1);
- var import_i18n91 = __toESM(require_i18n(), 1);
- function getActiveStyle(styles, className) {
- for (const style of new import_token_list.default(className).values()) {
- if (style.indexOf("is-style-") === -1) {
- continue;
- }
- const potentialStyleName = style.substring(9);
- const activeStyle = styles?.find(
- ({ name }) => name === potentialStyleName
- );
- if (activeStyle) {
- return activeStyle;
- }
- }
- return getDefaultStyle(styles);
- }
- function replaceActiveStyle(className, activeStyle, newStyle) {
- const list = new import_token_list.default(className);
- if (activeStyle) {
- list.remove("is-style-" + activeStyle.name);
- }
- list.add("is-style-" + newStyle.name);
- return list.value;
- }
- function getRenderedStyles(styles) {
- if (!styles || styles.length === 0) {
- return [];
+ // packages/block-editor/build-module/components/inserter/hooks/use-patterns-paging.mjs
+ var import_element123 = __toESM(require_element(), 1);
+ var import_compose42 = __toESM(require_compose(), 1);
+ var import_dom52 = __toESM(require_dom(), 1);
+ var PAGE_SIZE = 20;
+ function usePatternsPaging(currentCategoryPatterns, currentCategory, scrollContainerRef, currentFilter = "") {
+ const [currentPage, setCurrentPage] = (0, import_element123.useState)(1);
+ const previousCategory = (0, import_compose42.usePrevious)(currentCategory);
+ const previousFilter = (0, import_compose42.usePrevious)(currentFilter);
+ if ((previousCategory !== currentCategory || previousFilter !== currentFilter) && currentPage !== 1) {
+ setCurrentPage(1);
}
- return getDefaultStyle(styles) ? styles : [
- {
- name: "default",
- label: (0, import_i18n91._x)("Default", "block style"),
- isDefault: true
- },
- ...styles
- ];
- }
- function getDefaultStyle(styles) {
- return styles?.find((style) => style.isDefault);
- }
-
- // packages/block-editor/build-module/components/block-styles/use-styles-for-block.mjs
- function useGenericPreviewBlock(block, type) {
- return (0, import_element170.useMemo)(() => {
- const example = type?.example;
- const blockName = type?.name;
- if (example && blockName) {
- return (0, import_blocks65.getBlockFromExample)(blockName, {
- attributes: example.attributes,
- innerBlocks: example.innerBlocks,
- innerContent: example.innerContent
- });
- }
- if (block) {
- return (0, import_blocks65.cloneBlock)(block);
- }
- }, [block, type?.example, type?.name]);
- }
- function useStylesForBlocks({ clientId, onSwitch }) {
- const selector3 = (select3) => {
- const { getBlock: getBlock2 } = select3(store);
- const block2 = getBlock2(clientId);
- if (!block2) {
- return {};
- }
- const blockType2 = (0, import_blocks65.getBlockType)(block2.name);
- const { getBlockStyles: getBlockStyles2 } = select3(import_blocks65.store);
- return {
- block: !blockType2?.example ? block2 : null,
- blockType: blockType2,
- styles: getBlockStyles2(block2.name),
- className: block2.attributes.className || ""
- };
- };
- const { styles, block, blockType, className } = (0, import_data111.useSelect)(selector3, [
- clientId
- ]);
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data111.useDispatch)(store);
- const stylesToRender = getRenderedStyles(styles);
- const activeStyle = getActiveStyle(stylesToRender, className);
- const genericPreviewBlock = useGenericPreviewBlock(block, blockType);
- const onSelect = (style) => {
- const styleClassName = replaceActiveStyle(
- className,
- activeStyle,
- style
+ const totalItems = currentCategoryPatterns.length;
+ const pageIndex = currentPage - 1;
+ const categoryPatterns = (0, import_element123.useMemo)(() => {
+ return currentCategoryPatterns.slice(
+ pageIndex * PAGE_SIZE,
+ pageIndex * PAGE_SIZE + PAGE_SIZE
);
- updateBlockAttributes2(clientId, {
- className: styleClassName
- });
- onSwitch();
+ }, [pageIndex, currentCategoryPatterns]);
+ const numPages = Math.ceil(currentCategoryPatterns.length / PAGE_SIZE);
+ const changePage = (page) => {
+ const scrollContainer = (0, import_dom52.getScrollContainer)(
+ scrollContainerRef?.current
+ );
+ scrollContainer?.scrollTo(0, 0);
+ setCurrentPage(page);
};
+ (0, import_element123.useEffect)(
+ function scrollToTopOnCategoryChange() {
+ const scrollContainer = (0, import_dom52.getScrollContainer)(
+ scrollContainerRef?.current
+ );
+ scrollContainer?.scrollTo(0, 0);
+ },
+ [currentCategory, scrollContainerRef]
+ );
return {
- onSelect,
- stylesToRender,
- activeStyle,
- genericPreviewBlock,
- className
+ totalItems,
+ categoryPatterns,
+ numPages,
+ changePage,
+ currentPage
};
}
- // packages/block-editor/build-module/components/block-toolbar/switch-section-style.mjs
- var import_jsx_runtime303 = __toESM(require_jsx_runtime(), 1);
- var { getVariationStyle: getVariationStyle2 } = unlock(privateApis);
- var styleIcon = /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)(
- import_components101.SVG,
- {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg",
- width: "24",
- height: "24",
- "aria-hidden": "true",
- focusable: "false",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(import_components101.Path, { d: "M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z" }),
- /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
- import_components101.Path,
- {
- stroke: "currentColor",
- strokeWidth: "1.5",
- d: "M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z"
- }
- )
- ]
+ // packages/block-editor/build-module/components/inserter/block-patterns-explorer/pattern-list.mjs
+ var import_jsx_runtime249 = __toESM(require_jsx_runtime(), 1);
+ function PatternsListHeader({ filterValue, filteredBlockPatternsLength }) {
+ if (!filterValue) {
+ return null;
}
- );
- function SwitchSectionStyle({ clientId }) {
- const { stylesToRender, activeStyle, className } = useStylesForBlocks({
- clientId
- });
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data112.useDispatch)(store);
- const { globalSettings, globalStyles, blockName } = (0, import_data112.useSelect)(
- (select3) => {
- const settings2 = select3(store).getSettings();
- return {
- globalSettings: settings2.__experimentalFeatures,
- globalStyles: settings2[globalStylesDataKey],
- blockName: select3(store).getBlockName(clientId)
- };
- },
- [clientId]
- );
- const activeStyleBackground = activeStyle?.name ? getVariationStyle2(
- {
- settings: globalSettings,
- styles: globalStyles
- },
- blockName,
- activeStyle.name
- )?.color?.background : void 0;
- if (!stylesToRender || stylesToRender.length === 0) {
- return null;
- }
- const handleStyleSwitch = () => {
- const currentIndex = stylesToRender.findIndex(
- (style) => style.name === activeStyle.name
- );
- const nextIndex = (currentIndex + 1) % stylesToRender.length;
- const nextStyle = stylesToRender[nextIndex];
- const styleClassName = replaceActiveStyle(
- className,
- activeStyle,
- nextStyle
- );
- updateBlockAttributes2(clientId, {
- className: styleClassName
- });
- };
- return /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(import_components101.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
- import_components101.ToolbarButton,
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
+ import_components43.__experimentalHeading,
{
- onClick: handleStyleSwitch,
- label: (0, import_i18n92.__)("Shuffle styles"),
- children: /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
- import_components101.Icon,
- {
- icon: styleIcon,
- style: {
- fill: activeStyleBackground || "transparent"
- }
- }
+ level: 2,
+ lineHeight: "48px",
+ className: "block-editor-block-patterns-explorer__search-results-count",
+ children: (0, import_i18n53.sprintf)(
+ /* translators: %d: number of patterns. */
+ (0, import_i18n53._n)(
+ "%d pattern found",
+ "%d patterns found",
+ filteredBlockPatternsLength
+ ),
+ filteredBlockPatternsLength
)
}
- ) });
- }
- var switch_section_style_default = SwitchSectionStyle;
-
- // packages/block-editor/build-module/components/block-toolbar/edit-section-button.mjs
- var import_components102 = __toESM(require_components(), 1);
- var import_i18n93 = __toESM(require_i18n(), 1);
- var import_data114 = __toESM(require_data(), 1);
- var import_blocks66 = __toESM(require_blocks(), 1);
-
- // packages/block-editor/build-module/hooks/use-content-only-section-edit.mjs
- var import_data113 = __toESM(require_data(), 1);
- function useContentOnlySectionEdit(clientId) {
- const {
- isSectionBlock: isSectionBlock2,
- isWithinSection,
- isWithinEditedSection,
- isEditingContentOnlySection,
- editedContentOnlySection: editedContentOnlySection2
- } = (0, import_data113.useSelect)(
- (select3) => {
- const {
- isSectionBlock: _isSectionBlock,
- getParentSectionBlock: getParentSectionBlock2,
- getEditedContentOnlySection: getEditedContentOnlySection2,
- isWithinEditedContentOnlySection: isWithinEditedContentOnlySection2
- } = unlock(select3(store));
- const editedSection = getEditedContentOnlySection2();
- return {
- isSectionBlock: _isSectionBlock(clientId),
- isWithinSection: _isSectionBlock(clientId) || !!getParentSectionBlock2(clientId),
- isWithinEditedSection: isWithinEditedContentOnlySection2(clientId),
- isEditingContentOnlySection: editedSection === clientId,
- editedContentOnlySection: editedSection
- };
- },
- [clientId]
);
- const blockEditorActions = (0, import_data113.useDispatch)(store);
- const { editContentOnlySection: editContentOnlySection2, stopEditingContentOnlySection: stopEditingContentOnlySection2 } = unlock(blockEditorActions);
- return {
- isSectionBlock: isSectionBlock2,
- isWithinSection,
- isWithinEditedSection,
- isEditingContentOnlySection,
- editedContentOnlySection: editedContentOnlySection2,
- editContentOnlySection: editContentOnlySection2,
- stopEditingContentOnlySection: stopEditingContentOnlySection2
- };
}
-
- // packages/block-editor/build-module/components/block-toolbar/edit-section-button.mjs
- var import_jsx_runtime304 = __toESM(require_jsx_runtime(), 1);
- function EditSectionButton({ clientId }) {
- const {
- isSectionBlock: isSectionBlock2,
- isEditingContentOnlySection,
- editContentOnlySection: editContentOnlySection2,
- stopEditingContentOnlySection: stopEditingContentOnlySection2
- } = useContentOnlySectionEdit(clientId);
- const blockType = (0, import_data114.useSelect)(
- (select3) => {
- if (!clientId) {
- return null;
+ function PatternList({
+ searchValue,
+ selectedCategory,
+ patternCategories,
+ rootClientId,
+ onModalClose
+ }) {
+ const container = (0, import_element124.useRef)();
+ const debouncedSpeak = (0, import_compose43.useDebounce)(import_a11y8.speak, 500);
+ const [destinationRootClientId, onInsertBlocks] = use_insertion_point_default({
+ rootClientId,
+ shouldFocusBlock: true
+ });
+ const [patterns, , onClickPattern] = use_patterns_state_default(
+ onInsertBlocks,
+ destinationRootClientId,
+ selectedCategory
+ );
+ const registeredPatternCategories = (0, import_element124.useMemo)(
+ () => patternCategories.map(
+ (patternCategory) => patternCategory.name
+ ),
+ [patternCategories]
+ );
+ const filteredBlockPatterns = (0, import_element124.useMemo)(() => {
+ const filteredPatterns = patterns.filter((pattern) => {
+ if (selectedCategory === allPatternsCategory.name) {
+ return true;
}
- const { getBlockName: getBlockName2 } = select3(store);
- const blockName = getBlockName2(clientId);
- return blockName ? { name: blockName } : null;
- },
- [clientId]
+ if (selectedCategory === myPatternsCategory.name && pattern.type === INSERTER_PATTERN_TYPES.user) {
+ return true;
+ }
+ if (selectedCategory === starterPatternsCategory.name && pattern.blockTypes?.includes("core/post-content")) {
+ return true;
+ }
+ if (selectedCategory === "uncategorized") {
+ const hasKnownCategory = pattern.categories?.some(
+ (category) => registeredPatternCategories.includes(category)
+ ) ?? false;
+ return !pattern.categories?.length || !hasKnownCategory;
+ }
+ return pattern.categories?.includes(selectedCategory);
+ });
+ if (!searchValue) {
+ return filteredPatterns;
+ }
+ return searchItems(filteredPatterns, searchValue);
+ }, [
+ searchValue,
+ patterns,
+ selectedCategory,
+ registeredPatternCategories
+ ]);
+ (0, import_element124.useEffect)(() => {
+ if (!searchValue) {
+ return;
+ }
+ const count = filteredBlockPatterns.length;
+ const resultsFoundMessage = (0, import_i18n53.sprintf)(
+ /* translators: %d: number of results. */
+ (0, import_i18n53._n)("%d result found.", "%d results found.", count),
+ count
+ );
+ debouncedSpeak(resultsFoundMessage);
+ }, [searchValue, debouncedSpeak, filteredBlockPatterns.length]);
+ const pagingProps = usePatternsPaging(
+ filteredBlockPatterns,
+ selectedCategory,
+ container
);
- if (!clientId || !isSectionBlock2 && !isEditingContentOnlySection || (0, import_blocks66.isReusableBlock)(blockType) || (0, import_blocks66.isTemplatePart)(blockType)) {
- return null;
+ const [previousSearchValue, setPreviousSearchValue] = (0, import_element124.useState)(searchValue);
+ if (searchValue !== previousSearchValue) {
+ setPreviousSearchValue(searchValue);
+ pagingProps.changePage(1);
}
- const isEditing = isEditingContentOnlySection;
- const handleClick = () => {
- if (isEditing) {
- stopEditingContentOnlySection2();
- } else {
- editContentOnlySection2(clientId);
+ const hasItems = !!filteredBlockPatterns?.length;
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
+ "div",
+ {
+ className: "block-editor-block-patterns-explorer__list",
+ ref: container,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
+ PatternsListHeader,
+ {
+ filterValue: searchValue,
+ filteredBlockPatternsLength: filteredBlockPatterns.length
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(inserter_listbox_default, { children: hasItems && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(import_jsx_runtime249.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
+ block_patterns_list_default,
+ {
+ blockPatterns: pagingProps.categoryPatterns,
+ onClickPattern: (pattern, blocks2) => {
+ onClickPattern(pattern, blocks2);
+ onModalClose();
+ },
+ isDraggable: false
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Pagination, { ...pagingProps })
+ ] }) })
+ ]
}
- };
- return /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(import_components102.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(import_components102.ToolbarButton, { onClick: handleClick, children: isEditing ? (
- /* translators: Button label to leave pattern editing mode. */
- (0, import_i18n93.__)("Exit pattern")
- ) : (
- /* translators: Button label to enter pattern editing mode. */
- (0, import_i18n93.__)("Edit pattern")
- ) }) });
+ );
}
+ var pattern_list_default = PatternList;
- // packages/block-editor/build-module/components/block-toolbar/block-toolbar-icon.mjs
- var import_components112 = __toESM(require_components(), 1);
- var import_i18n100 = __toESM(require_i18n(), 1);
- var import_data118 = __toESM(require_data(), 1);
- var import_blocks72 = __toESM(require_blocks(), 1);
- var import_preferences2 = __toESM(require_preferences(), 1);
-
- // packages/block-editor/build-module/components/block-switcher/index.mjs
- var import_i18n97 = __toESM(require_i18n(), 1);
- var import_components109 = __toESM(require_components(), 1);
- var import_blocks71 = __toESM(require_blocks(), 1);
- var import_data116 = __toESM(require_data(), 1);
-
- // packages/block-editor/build-module/components/block-switcher/block-transformations-menu.mjs
- var import_i18n94 = __toESM(require_i18n(), 1);
- var import_components105 = __toESM(require_components(), 1);
- var import_blocks68 = __toESM(require_blocks(), 1);
- var import_element172 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/block-switcher/preview-block-popover.mjs
- var import_components103 = __toESM(require_components(), 1);
- var import_compose67 = __toESM(require_compose(), 1);
- var import_jsx_runtime305 = __toESM(require_jsx_runtime(), 1);
- function PreviewBlockPopover({
- blocks: blocks2,
- placement = "right-start",
- offset: offset4 = 16,
- anchor
- }) {
- const isMobile = (0, import_compose67.useViewportMatch)("medium", "<");
- if (isMobile) {
- return null;
+ // packages/block-editor/build-module/components/inserter/block-patterns-tab/use-pattern-categories.mjs
+ var import_element125 = __toESM(require_element(), 1);
+ var import_i18n54 = __toESM(require_i18n(), 1);
+ var import_a11y9 = __toESM(require_a11y(), 1);
+ function hasRegisteredCategory(pattern, allCategories) {
+ if (!pattern.categories || !pattern.categories.length) {
+ return false;
}
- return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)("div", { className: "block-editor-block-switcher__popover-preview-container", children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
- import_components103.Popover,
- {
- className: "block-editor-block-switcher__popover-preview",
- placement,
- focusOnMount: false,
- offset: offset4,
- anchor,
- children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)("div", { className: "block-editor-block-switcher__preview", children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(block_preview_default, { viewportWidth: 601, blocks: blocks2 }) })
- }
- ) });
+ return pattern.categories.some(
+ (cat) => allCategories.some((category) => category.name === cat)
+ );
}
-
- // packages/block-editor/build-module/components/block-switcher/block-variation-transformations.mjs
- var import_components104 = __toESM(require_components(), 1);
- var import_blocks67 = __toESM(require_blocks(), 1);
- var import_data115 = __toESM(require_data(), 1);
- var import_element171 = __toESM(require_element(), 1);
- var import_jsx_runtime306 = __toESM(require_jsx_runtime(), 1);
- var EMPTY_OBJECT3 = {};
- function useBlockVariationTransforms({ clientIds, blocks: blocks2 }) {
- const { activeBlockVariation, blockVariationTransformations } = (0, import_data115.useSelect)(
- (select3) => {
- const { getBlockAttributes: getBlockAttributes3, canRemoveBlocks: canRemoveBlocks2 } = select3(store);
- const { getActiveBlockVariation, getBlockVariations: getBlockVariations2 } = select3(import_blocks67.store);
- const canRemove = canRemoveBlocks2(clientIds);
- if (blocks2.length !== 1 || !canRemove) {
- return EMPTY_OBJECT3;
- }
- const [firstBlock] = blocks2;
- return {
- blockVariationTransformations: getBlockVariations2(
- firstBlock.name,
- "transform"
- ),
- activeBlockVariation: getActiveBlockVariation(
- firstBlock.name,
- getBlockAttributes3(firstBlock.clientId)
- )
- };
- },
- [clientIds, blocks2]
+ function usePatternCategories(rootClientId, sourceFilter = "all") {
+ const [patterns, allCategories] = use_patterns_state_default(
+ void 0,
+ rootClientId
);
- const transformations = (0, import_element171.useMemo)(() => {
- return blockVariationTransformations?.filter(
- ({ name }) => name !== activeBlockVariation?.name
+ const filteredPatterns = (0, import_element125.useMemo)(
+ () => sourceFilter === "all" ? patterns : patterns.filter(
+ (pattern) => !isPatternFiltered(pattern, sourceFilter)
+ ),
+ [sourceFilter, patterns]
+ );
+ const populatedCategories = (0, import_element125.useMemo)(() => {
+ const categories = allCategories.filter(
+ (category) => filteredPatterns.some(
+ (pattern) => pattern.categories?.includes(category.name)
+ )
+ ).sort((a2, b2) => a2.label.localeCompare(b2.label));
+ if (filteredPatterns.some(
+ (pattern) => !hasRegisteredCategory(pattern, allCategories)
+ ) && !categories.find(
+ (category) => category.name === "uncategorized"
+ )) {
+ categories.push({
+ name: "uncategorized",
+ label: (0, import_i18n54._x)("Uncategorized")
+ });
+ }
+ if (filteredPatterns.some(
+ (pattern) => pattern.blockTypes?.includes("core/post-content")
+ )) {
+ categories.unshift(starterPatternsCategory);
+ }
+ if (filteredPatterns.some(
+ (pattern) => pattern.type === INSERTER_PATTERN_TYPES.user
+ )) {
+ categories.unshift(myPatternsCategory);
+ }
+ if (filteredPatterns.length > 0) {
+ categories.unshift({
+ name: allPatternsCategory.name,
+ label: allPatternsCategory.label
+ });
+ }
+ (0, import_a11y9.speak)(
+ (0, import_i18n54.sprintf)(
+ /* translators: %d: number of categories . */
+ (0, import_i18n54._n)(
+ "%d category button displayed.",
+ "%d category buttons displayed.",
+ categories.length
+ ),
+ categories.length
+ )
);
- }, [blockVariationTransformations, activeBlockVariation]);
- return transformations;
+ return categories;
+ }, [allCategories, filteredPatterns]);
+ return populatedCategories;
}
- var BlockVariationTransformations = ({
- transformations,
- onSelect,
- blocks: blocks2
- }) => {
- const [hoveredTransformItemName, setHoveredTransformItemName] = (0, import_element171.useState)();
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(import_jsx_runtime306.Fragment, { children: [
- hoveredTransformItemName && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
- PreviewBlockPopover,
+
+ // packages/block-editor/build-module/components/inserter/block-patterns-explorer/index.mjs
+ var import_jsx_runtime250 = __toESM(require_jsx_runtime(), 1);
+ function PatternsExplorer({ initialCategory, rootClientId, onModalClose }) {
+ const [searchValue, setSearchValue] = (0, import_element126.useState)("");
+ const [selectedCategory, setSelectedCategory] = (0, import_element126.useState)(
+ initialCategory?.name
+ );
+ const patternCategories = usePatternCategories(rootClientId);
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: "block-editor-block-patterns-explorer", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
+ pattern_explorer_sidebar_default,
{
- blocks: (0, import_blocks67.cloneBlock)(
- blocks2[0],
- transformations.find(
- ({ name }) => name === hoveredTransformItemName
- ).attributes
- )
+ selectedCategory,
+ patternCategories,
+ onClickCategory: setSelectedCategory,
+ searchValue,
+ setSearchValue
}
),
- transformations?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
- BlockVariationTransformationItem,
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
+ pattern_list_default,
{
- item,
- onSelect,
- setHoveredTransformItemName
- },
- item.name
- ))
+ searchValue,
+ selectedCategory,
+ patternCategories,
+ rootClientId,
+ onModalClose
+ }
+ )
] });
- };
- function BlockVariationTransformationItem({
- item,
- onSelect,
- setHoveredTransformItemName
- }) {
- const { name, icon, title } = item;
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
- import_components104.MenuItem,
+ }
+ function PatternsExplorerModal({ onModalClose, ...restProps }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
+ import_components44.Modal,
{
- className: (0, import_blocks67.getBlockMenuDefaultClassName)(name),
- onClick: (event) => {
- event.preventDefault();
- onSelect(name);
- },
- onMouseLeave: () => setHoveredTransformItemName(null),
- onMouseEnter: () => setHoveredTransformItemName(name),
- onFocus: () => setHoveredTransformItemName(name),
- onBlur: () => setHoveredTransformItemName(null),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(block_icon_default, { icon, showColors: true }),
- title
- ]
+ title: (0, import_i18n55.__)("Patterns"),
+ onRequestClose: onModalClose,
+ isFullScreen: true,
+ children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(PatternsExplorer, { onModalClose, ...restProps })
}
);
}
- var block_variation_transformations_default = BlockVariationTransformations;
+ var block_patterns_explorer_default = PatternsExplorerModal;
- // packages/block-editor/build-module/components/block-switcher/block-transformations-menu.mjs
- var import_jsx_runtime307 = __toESM(require_jsx_runtime(), 1);
- function useGroupedTransforms(possibleBlockTransformations) {
- const priorityContentTransformationBlocks = {
- "core/paragraph": 1,
- "core/heading": 2,
- "core/list": 3,
- "core/quote": 4
- };
- const transformations = (0, import_element172.useMemo)(() => {
- const priorityTextTransformsNames = Object.keys(
- priorityContentTransformationBlocks
- );
- const groupedPossibleTransforms = possibleBlockTransformations.reduce(
- (accumulator, item) => {
- const { name } = item;
- if (priorityTextTransformsNames.includes(name)) {
- accumulator.priorityTextTransformations.push(item);
- } else {
- accumulator.restTransformations.push(item);
- }
- return accumulator;
- },
- { priorityTextTransformations: [], restTransformations: [] }
- );
- if (groupedPossibleTransforms.priorityTextTransformations.length === 1 && groupedPossibleTransforms.priorityTextTransformations[0].name === "core/quote") {
- const singleQuote = groupedPossibleTransforms.priorityTextTransformations.pop();
- groupedPossibleTransforms.restTransformations.push(singleQuote);
- }
- return groupedPossibleTransforms;
- }, [possibleBlockTransformations]);
- transformations.priorityTextTransformations.sort(
- ({ name: currentName }, { name: nextName }) => {
- return priorityContentTransformationBlocks[currentName] < priorityContentTransformationBlocks[nextName] ? -1 : 1;
- }
- );
- return transformations;
+ // packages/block-editor/build-module/components/inserter/mobile-tab-navigation.mjs
+ var import_i18n56 = __toESM(require_i18n(), 1);
+ var import_components45 = __toESM(require_components(), 1);
+ var import_jsx_runtime251 = __toESM(require_jsx_runtime(), 1);
+ function ScreenHeader({ title }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_components45.__experimentalVStack, { spacing: 0, children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_components45.__experimentalView, { children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_components45.__experimentalSpacer, { marginBottom: 0, paddingX: 4, paddingY: 3, children: /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(import_components45.__experimentalHStack, { spacing: 2, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
+ import_components45.Navigator.BackButton,
+ {
+ style: (
+ // TODO: This style override is also used in ToolsPanelHeader.
+ // It should be supported out-of-the-box by Button.
+ { minWidth: 24, padding: 0 }
+ ),
+ icon: (0, import_i18n56.isRTL)() ? chevron_right_default : chevron_left_default,
+ size: "small",
+ label: (0, import_i18n56.__)("Back")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_components45.__experimentalSpacer, { children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_components45.__experimentalHeading, { level: 5, children: title }) })
+ ] }) }) }) });
}
- var BlockTransformationsMenu = ({
- className,
- possibleBlockTransformations,
- possibleBlockVariationTransformations,
- onSelect,
- onSelectVariation,
- blocks: blocks2
- }) => {
- const [hoveredTransformItem, setHoveredTransformItem] = (0, import_element172.useState)();
- const { priorityTextTransformations, restTransformations } = useGroupedTransforms(possibleBlockTransformations);
- const hasBothContentTransformations = priorityTextTransformations.length && restTransformations.length;
- const restTransformItems = !!restTransformations.length && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
- RestTransformationItems,
+ function MobileTabNavigation({
+ categories,
+ children,
+ screenClassName
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
+ import_components45.Navigator,
{
- restTransformations,
- onSelect,
- setHoveredTransformItem
- }
- );
- return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(import_jsx_runtime307.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(import_components105.MenuGroup, { label: (0, import_i18n94.__)("Transform to"), className, children: [
- hoveredTransformItem && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
- PreviewBlockPopover,
- {
- blocks: (0, import_blocks68.switchToBlockType)(
- blocks2,
- hoveredTransformItem.name,
- hoveredTransformItem.variationName
- )
- }
- ),
- !!possibleBlockVariationTransformations?.length && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
- block_variation_transformations_default,
- {
- transformations: possibleBlockVariationTransformations,
- blocks: blocks2,
- onSelect: onSelectVariation
- }
- ),
- priorityTextTransformations.map((item) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
- BlockTransformationItem,
- {
- item,
- onSelect,
- setHoveredTransformItem
- },
- item.id || item.name
- )),
- !hasBothContentTransformations && restTransformItems
- ] }),
- !!hasBothContentTransformations && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_components105.MenuGroup, { className, children: restTransformItems })
- ] });
- };
- function RestTransformationItems({
- restTransformations,
- onSelect,
- setHoveredTransformItem
- }) {
- return restTransformations.map((item) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
- BlockTransformationItem,
- {
- item,
- onSelect,
- setHoveredTransformItem
- },
- item.id || item.name
- ));
- }
- function BlockTransformationItem({
- item,
- onSelect,
- setHoveredTransformItem
- }) {
- const { name, icon, title, isDisabled } = item;
- return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
- import_components105.MenuItem,
- {
- className: (0, import_blocks68.getBlockMenuDefaultClassName)(name),
- onClick: (event) => {
- event.preventDefault();
- onSelect(name, item.variationName);
- },
- disabled: isDisabled,
- onMouseLeave: () => setHoveredTransformItem(null),
- onMouseEnter: () => setHoveredTransformItem(item),
- onFocus: () => setHoveredTransformItem(item),
- onBlur: () => setHoveredTransformItem(null),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(block_icon_default, { icon, showColors: true }),
- title
- ]
+ initialPath: "/",
+ className: "block-editor-inserter__mobile-tab-navigation",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_components45.Navigator.Screen, { path: "/", children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_components45.__experimentalItemGroup, { children: categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
+ import_components45.Navigator.Button,
+ {
+ path: `/category/${category.name}`,
+ as: import_components45.__experimentalItem,
+ isAction: true,
+ children: /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(import_components45.__experimentalHStack, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(import_components45.FlexBlock, { children: category.label }),
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
+ icon_default,
+ {
+ icon: (0, import_i18n56.isRTL)() ? chevron_left_default : chevron_right_default
+ }
+ )
+ ] })
+ },
+ category.name
+ )) }) }),
+ categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
+ import_components45.Navigator.Screen,
+ {
+ className: screenClassName,
+ path: `/category/${category.name}`,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(ScreenHeader, { title: (0, import_i18n56.__)("Back") }),
+ children(category)
+ ]
+ },
+ category.name
+ ))
+ ]
}
);
}
- var block_transformations_menu_default = BlockTransformationsMenu;
- // packages/block-editor/build-module/components/block-switcher/block-styles-menu.mjs
- var import_i18n95 = __toESM(require_i18n(), 1);
- var import_components107 = __toESM(require_components(), 1);
- var import_element173 = __toESM(require_element(), 1);
+ // packages/block-editor/build-module/components/inserter/block-patterns-tab/pattern-category-previews.mjs
+ var import_element128 = __toESM(require_element(), 1);
+ var import_i18n58 = __toESM(require_i18n(), 1);
+ var import_components47 = __toESM(require_components(), 1);
- // packages/block-editor/build-module/components/block-styles/menu-items.mjs
- var import_components106 = __toESM(require_components(), 1);
- var import_jsx_runtime308 = __toESM(require_jsx_runtime(), 1);
- var noop12 = () => {
+ // packages/block-editor/build-module/components/inserter/block-patterns-tab/patterns-filter.mjs
+ var import_components46 = __toESM(require_components(), 1);
+ var import_i18n57 = __toESM(require_i18n(), 1);
+ var import_element127 = __toESM(require_element(), 1);
+ var import_jsx_runtime252 = __toESM(require_jsx_runtime(), 1);
+ var getShouldDisableSyncFilter = (sourceFilter) => sourceFilter !== "all" && sourceFilter !== "user";
+ var getShouldHideSourcesFilter = (category) => {
+ return category.name === myPatternsCategory.name;
};
- function BlockStylesMenuItems({
- stylesToRender,
- activeStyle,
- onSelect = noop12,
- onHoverStyle = noop12
- }) {
- if (!stylesToRender || stylesToRender.length === 0) {
- return null;
+ var PATTERN_SOURCE_MENU_OPTIONS = [
+ {
+ value: "all",
+ label: (0, import_i18n57._x)("All", "patterns")
+ },
+ {
+ value: INSERTER_PATTERN_TYPES.directory,
+ label: (0, import_i18n57.__)("Pattern Directory")
+ },
+ {
+ value: INSERTER_PATTERN_TYPES.theme,
+ label: (0, import_i18n57.__)("Theme & Plugins")
+ },
+ {
+ value: INSERTER_PATTERN_TYPES.user,
+ label: (0, import_i18n57.__)("User")
}
- return /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_jsx_runtime308.Fragment, { children: stylesToRender.map((style) => {
- const menuItemText = style.label || style.name;
- return /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
- import_components106.MenuItem,
+ ];
+ function PatternsFilter({
+ setPatternSyncFilter,
+ setPatternSourceFilter,
+ patternSyncFilter,
+ patternSourceFilter,
+ scrollContainerRef,
+ category
+ }) {
+ const currentPatternSourceFilter = category.name === myPatternsCategory.name ? INSERTER_PATTERN_TYPES.user : patternSourceFilter;
+ const shouldDisableSyncFilter = getShouldDisableSyncFilter(
+ currentPatternSourceFilter
+ );
+ const shouldHideSourcesFilter = getShouldHideSourcesFilter(category);
+ const patternSyncMenuOptions = (0, import_element127.useMemo)(
+ () => [
{
- icon: activeStyle.name === style.name ? check_default : null,
- onClick: () => onSelect(style),
- onFocus: () => onHoverStyle(style),
- onBlur: () => onHoverStyle(null),
- onMouseEnter: () => onHoverStyle(style),
- onMouseLeave: () => onHoverStyle(null),
- children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
- import_components106.__experimentalText,
- {
- as: "span",
- limit: 18,
- ellipsizeMode: "tail",
- truncate: true,
- children: menuItemText
- }
- )
+ value: "all",
+ label: (0, import_i18n57._x)("All", "patterns")
},
- style.name
- );
- }) });
- }
-
- // packages/block-editor/build-module/components/block-switcher/block-styles-menu.mjs
- var import_jsx_runtime309 = __toESM(require_jsx_runtime(), 1);
- function BlockStylesMenu({ hoveredBlock, onSwitch }) {
- const { clientId } = hoveredBlock;
- const [hoveredStyle, setHoveredStyle] = (0, import_element173.useState)(null);
- const {
- onSelect,
- stylesToRender,
- activeStyle,
- genericPreviewBlock,
- className
- } = useStylesForBlocks({
- clientId,
- onSwitch
- });
- const previewBlocks = (0, import_element173.useMemo)(() => {
- if (!hoveredStyle || !genericPreviewBlock) {
- return null;
- }
- const previewClassName = replaceActiveStyle(
- className,
- activeStyle,
- hoveredStyle
- );
- return [
{
- ...genericPreviewBlock,
- attributes: {
- ...genericPreviewBlock.attributes || {},
- className: previewClassName
- }
+ value: INSERTER_SYNC_TYPES.full,
+ label: (0, import_i18n57._x)("Synced", "patterns"),
+ disabled: shouldDisableSyncFilter
+ },
+ {
+ value: INSERTER_SYNC_TYPES.unsynced,
+ label: (0, import_i18n57._x)("Not synced", "patterns"),
+ disabled: shouldDisableSyncFilter
}
- ];
- }, [hoveredStyle, genericPreviewBlock, className, activeStyle]);
- if (!stylesToRender || stylesToRender.length === 0) {
- return null;
+ ],
+ [shouldDisableSyncFilter]
+ );
+ function handleSetSourceFilterChange(newSourceFilter) {
+ setPatternSourceFilter(newSourceFilter);
+ if (getShouldDisableSyncFilter(newSourceFilter)) {
+ setPatternSyncFilter("all");
+ }
}
- return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
- import_components107.MenuGroup,
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_jsx_runtime252.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
+ import_components46.DropdownMenu,
{
- label: (0, import_i18n95.__)("Styles"),
- className: "block-editor-block-switcher__styles__menugroup",
- children: [
- previewBlocks && /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(PreviewBlockPopover, { blocks: previewBlocks }),
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
- BlockStylesMenuItems,
+ popoverProps: {
+ placement: "right-end"
+ },
+ label: (0, import_i18n57.__)("Filter patterns"),
+ toggleProps: { size: "compact" },
+ icon: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
+ icon_default,
+ {
+ icon: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
+ import_components46.SVG,
+ {
+ width: "24",
+ height: "24",
+ viewBox: "0 0 24 24",
+ fill: "none",
+ xmlns: "http://www.w3.org/2000/svg",
+ children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
+ import_components46.Path,
+ {
+ d: "M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z",
+ fill: "currentColor"
+ }
+ )
+ }
+ )
+ }
+ ),
+ children: () => /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(import_jsx_runtime252.Fragment, { children: [
+ !shouldHideSourcesFilter && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_components46.MenuGroup, { label: (0, import_i18n57.__)("Source"), children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
+ import_components46.MenuItemsChoice,
{
- stylesToRender,
- activeStyle,
- onSelect,
- onHoverStyle: setHoveredStyle
+ choices: PATTERN_SOURCE_MENU_OPTIONS,
+ onSelect: (value) => {
+ handleSetSourceFilterChange(value);
+ scrollContainerRef.current?.scrollTo(
+ 0,
+ 0
+ );
+ },
+ value: currentPatternSourceFilter
}
- )
- ]
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_components46.MenuGroup, { label: (0, import_i18n57.__)("Type"), children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
+ import_components46.MenuItemsChoice,
+ {
+ choices: patternSyncMenuOptions,
+ onSelect: (value) => {
+ setPatternSyncFilter(value);
+ scrollContainerRef.current?.scrollTo(
+ 0,
+ 0
+ );
+ },
+ value: patternSyncFilter
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("div", { className: "block-editor-inserter__patterns-filter-help", children: (0, import_element127.createInterpolateElement)(
+ (0, import_i18n57.__)(
+ "Patterns are available from the <Link>WordPress.org Pattern Directory</Link>, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced."
+ ),
+ {
+ Link: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
+ import_components46.ExternalLink,
+ {
+ href: (0, import_i18n57.__)(
+ "https://wordpress.org/patterns/"
+ )
+ }
+ )
+ }
+ ) })
+ ] })
}
- );
+ ) });
}
- // packages/block-editor/build-module/components/block-switcher/pattern-transformations-menu.mjs
- var import_i18n96 = __toESM(require_i18n(), 1);
- var import_element175 = __toESM(require_element(), 1);
- var import_compose68 = __toESM(require_compose(), 1);
- var import_components108 = __toESM(require_components(), 1);
-
- // packages/block-editor/build-module/components/block-switcher/use-transformed-patterns.mjs
- var import_element174 = __toESM(require_element(), 1);
- var import_blocks70 = __toESM(require_blocks(), 1);
-
- // packages/block-editor/build-module/components/block-switcher/utils.mjs
- var import_blocks69 = __toESM(require_blocks(), 1);
- var getMatchingBlockByName = (block, selectedBlockName, consumedBlocks = /* @__PURE__ */ new Set()) => {
- const { clientId, name, innerBlocks = [] } = block;
- if (consumedBlocks.has(clientId)) {
- return;
- }
- if (name === selectedBlockName) {
- return block;
- }
- for (const innerBlock of innerBlocks) {
- const match2 = getMatchingBlockByName(
- innerBlock,
- selectedBlockName,
- consumedBlocks
- );
- if (match2) {
- return match2;
- }
- }
- };
- var getRetainedBlockAttributes = (name, attributes) => {
- const contentAttributes = (0, import_blocks69.getBlockAttributesNamesByRole)(name, "content");
- if (!contentAttributes?.length) {
- return attributes;
- }
- return contentAttributes.reduce((_accumulator, attribute) => {
- if (attributes[attribute]) {
- _accumulator[attribute] = attributes[attribute];
- }
- return _accumulator;
- }, {});
+ // packages/block-editor/build-module/components/inserter/block-patterns-tab/pattern-category-previews.mjs
+ var import_jsx_runtime253 = __toESM(require_jsx_runtime(), 1);
+ var noop10 = () => {
};
-
- // packages/block-editor/build-module/components/block-switcher/use-transformed-patterns.mjs
- var transformMatchingBlock = (match2, selectedBlock) => {
- const retainedBlockAttributes = getRetainedBlockAttributes(
- selectedBlock.name,
- selectedBlock.attributes
+ function PatternCategoryPreviews({
+ rootClientId,
+ onInsert,
+ onHover = noop10,
+ category,
+ showTitlesAsTooltip
+ }) {
+ const [allPatterns, , onClickPattern] = use_patterns_state_default(
+ onInsert,
+ rootClientId,
+ category?.name
);
- match2.attributes = {
- ...match2.attributes,
- ...retainedBlockAttributes
- };
- };
- var getPatternTransformedBlocks = (selectedBlocks, patternBlocks) => {
- const _patternBlocks = patternBlocks.map(
- (block) => (0, import_blocks70.cloneBlock)(block)
+ const [patternSyncFilter, setPatternSyncFilter] = (0, import_element128.useState)("all");
+ const [patternSourceFilter, setPatternSourceFilter] = (0, import_element128.useState)("all");
+ const availableCategories = usePatternCategories(
+ rootClientId,
+ patternSourceFilter
);
- const consumedBlocks = /* @__PURE__ */ new Set();
- for (const selectedBlock of selectedBlocks) {
- let isMatch = false;
- for (const patternBlock of _patternBlocks) {
- const match2 = getMatchingBlockByName(
- patternBlock,
- selectedBlock.name,
- consumedBlocks
- );
- if (!match2) {
- continue;
+ const scrollContainerRef = (0, import_element128.useRef)();
+ const currentCategoryPatterns = (0, import_element128.useMemo)(
+ () => allPatterns.filter((pattern) => {
+ if (isPatternFiltered(
+ pattern,
+ patternSourceFilter,
+ patternSyncFilter
+ )) {
+ return false;
}
- isMatch = true;
- consumedBlocks.add(match2.clientId);
- transformMatchingBlock(match2, selectedBlock);
- break;
- }
- if (!isMatch) {
- return;
- }
- }
- return _patternBlocks;
- };
- var useTransformedPatterns = (patterns, selectedBlocks) => {
- return (0, import_element174.useMemo)(
- () => patterns.reduce((accumulator, _pattern) => {
- const transformedBlocks = getPatternTransformedBlocks(
- selectedBlocks,
- _pattern.blocks
- );
- if (transformedBlocks) {
- accumulator.push({
- ..._pattern,
- transformedBlocks
- });
+ if (category.name === allPatternsCategory.name) {
+ return true;
}
- return accumulator;
- }, []),
- [patterns, selectedBlocks]
- );
- };
- var use_transformed_patterns_default = useTransformedPatterns;
-
- // packages/block-editor/build-module/components/block-switcher/pattern-transformations-menu.mjs
- var import_jsx_runtime310 = __toESM(require_jsx_runtime(), 1);
- function PatternTransformationsMenu({
- blocks: blocks2,
- patterns: statePatterns,
- onSelect
- }) {
- const [showTransforms, setShowTransforms] = (0, import_element175.useState)(false);
- const patterns = use_transformed_patterns_default(statePatterns, blocks2);
- if (!patterns.length) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(import_components108.MenuGroup, { className: "block-editor-block-switcher__pattern__transforms__menugroup", children: [
- showTransforms && /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
- PreviewPatternsPopover,
- {
- patterns,
- onSelect
+ if (category.name === myPatternsCategory.name && pattern.type === INSERTER_PATTERN_TYPES.user) {
+ return true;
}
- ),
- /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
- import_components108.MenuItem,
- {
- onClick: (event) => {
- event.preventDefault();
- setShowTransforms(!showTransforms);
- },
- icon: chevron_right_default,
- children: (0, import_i18n96.__)("Patterns")
+ if (category.name === starterPatternsCategory.name && pattern.blockTypes?.includes("core/post-content")) {
+ return true;
}
- )
- ] });
- }
- function PreviewPatternsPopover({ patterns, onSelect }) {
- const isMobile = (0, import_compose68.useViewportMatch)("medium", "<");
- return /* @__PURE__ */ (0, import_jsx_runtime310.jsx)("div", { className: "block-editor-block-switcher__popover-preview-container", children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
- import_components108.Popover,
- {
- className: "block-editor-block-switcher__popover-preview",
- placement: isMobile ? "bottom" : "right-start",
- offset: 16,
- children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)("div", { className: "block-editor-block-switcher__preview is-pattern-list-preview", children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
- BlockPatternsList2,
- {
- patterns,
- onSelect
+ if (category.name === "uncategorized") {
+ if (!pattern.categories) {
+ return true;
}
- ) })
- }
- ) });
- }
- function BlockPatternsList2({ patterns, onSelect }) {
- return /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
- import_components108.Composite,
- {
- role: "listbox",
- className: "block-editor-block-switcher__preview-patterns-container",
- "aria-label": (0, import_i18n96.__)("Patterns list"),
- children: patterns.map((pattern) => /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
- BlockPattern2,
- {
- pattern,
- onSelect
- },
- pattern.name
- ))
- }
+ return !pattern.categories.some(
+ (catName) => availableCategories.some((c6) => c6.name === catName)
+ );
+ }
+ return pattern.categories?.includes(category.name);
+ }),
+ [
+ allPatterns,
+ availableCategories,
+ category.name,
+ patternSourceFilter,
+ patternSyncFilter
+ ]
);
- }
- function BlockPattern2({ pattern, onSelect }) {
- const baseClassName = "block-editor-block-switcher__preview-patterns-container";
- const descriptionId = (0, import_compose68.useInstanceId)(
- BlockPattern2,
- `${baseClassName}-list__item-description`
+ const pagingProps = usePatternsPaging(
+ currentCategoryPatterns,
+ category,
+ scrollContainerRef
+ );
+ const { changePage } = pagingProps;
+ (0, import_element128.useEffect)(() => () => onHover(null), []);
+ const onSetPatternSyncFilter = (0, import_element128.useCallback)(
+ (value) => {
+ setPatternSyncFilter(value);
+ changePage(1);
+ },
+ [setPatternSyncFilter, changePage]
+ );
+ const onSetPatternSourceFilter = (0, import_element128.useCallback)(
+ (value) => {
+ setPatternSourceFilter(value);
+ changePage(1);
+ },
+ [setPatternSourceFilter, changePage]
);
- return /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)("div", { className: `${baseClassName}-list__list-item`, children: [
- /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(
- import_components108.Composite.Item,
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(import_jsx_runtime253.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
+ import_components47.__experimentalVStack,
{
- render: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
- "div",
- {
- role: "option",
- "aria-label": pattern.title,
- "aria-describedby": pattern.description ? descriptionId : void 0,
- className: `${baseClassName}-list__item`
- }
- ),
- onClick: () => onSelect(pattern.transformedBlocks),
+ spacing: 2,
+ className: "block-editor-inserter__patterns-category-panel-header",
children: [
- /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
- block_preview_default,
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(import_components47.__experimentalHStack, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(import_components47.FlexBlock, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
+ import_components47.__experimentalHeading,
+ {
+ className: "block-editor-inserter__patterns-category-panel-title",
+ size: 13,
+ level: 4,
+ as: "div",
+ children: category.label
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
+ PatternsFilter,
+ {
+ patternSyncFilter,
+ patternSourceFilter,
+ setPatternSyncFilter: onSetPatternSyncFilter,
+ setPatternSourceFilter: onSetPatternSourceFilter,
+ scrollContainerRef,
+ category
+ }
+ )
+ ] }),
+ !currentCategoryPatterns.length && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
+ import_components47.__experimentalText,
{
- blocks: pattern.transformedBlocks,
- viewportWidth: pattern.viewportWidth || 500
+ variant: "muted",
+ className: "block-editor-inserter__patterns-category-no-results",
+ children: (0, import_i18n58.__)("No results found")
}
- ),
- /* @__PURE__ */ (0, import_jsx_runtime310.jsx)("div", { className: `${baseClassName}-list__item-title`, children: pattern.title })
+ )
]
}
),
- !!pattern.description && /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(VisuallyHidden, { id: descriptionId, children: pattern.description })
- ] });
- }
- var pattern_transformations_menu_default = PatternTransformationsMenu;
-
- // packages/block-editor/build-module/components/block-switcher/index.mjs
- var import_jsx_runtime311 = __toESM(require_jsx_runtime(), 1);
- function BlockSwitcherDropdownMenuContents({ onClose, clientIds }) {
- const { replaceBlocks: replaceBlocks2, multiSelect: multiSelect2, updateBlockAttributes: updateBlockAttributes2 } = (0, import_data116.useDispatch)(store);
- const {
- possibleBlockTransformations,
- patterns,
- blocks: blocks2,
- isUsingBindings,
- canRemove,
- hasBlockStyles
- } = (0, import_data116.useSelect)(
- (select3) => {
- const {
- getBlockAttributes: getBlockAttributes3,
- getBlocksByClientId: getBlocksByClientId2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlockTransformItems: getBlockTransformItems2,
- __experimentalGetPatternTransformItems: __experimentalGetPatternTransformItems2,
- canRemoveBlocks: canRemoveBlocks2,
- getBlockName: getBlockName2
- } = select3(store);
- const { getBlockStyles: getBlockStyles2 } = select3(import_blocks71.store);
- const rootClientId = getBlockRootClientId2(clientIds[0]);
- const _blocks = getBlocksByClientId2(clientIds);
- const _isSingleBlock = clientIds.length === 1;
- const _blockName = _isSingleBlock && getBlockName2(clientIds[0]);
- const _hasBlockStyles = _isSingleBlock && !!getBlockStyles2(_blockName)?.length;
- return {
- blocks: _blocks,
- possibleBlockTransformations: getBlockTransformItems2(
- _blocks,
- rootClientId
- ),
- patterns: __experimentalGetPatternTransformItems2(
- _blocks,
- rootClientId
- ),
- isUsingBindings: clientIds.every(
- (clientId) => !!getBlockAttributes3(clientId)?.metadata?.bindings
- ),
- canRemove: canRemoveBlocks2(clientIds),
- hasBlockStyles: _hasBlockStyles
- };
- },
- [clientIds]
- );
- const blockVariationTransformations = useBlockVariationTransforms({
- clientIds,
- blocks: blocks2
- });
- function selectForMultipleBlocks(insertedBlocks) {
- if (insertedBlocks.length > 1) {
- multiSelect2(
- insertedBlocks[0].clientId,
- insertedBlocks[insertedBlocks.length - 1].clientId
- );
- }
- }
- function onBlockTransform(name, variationName) {
- const newBlocks = (0, import_blocks71.switchToBlockType)(blocks2, name, variationName);
- replaceBlocks2(clientIds, newBlocks);
- selectForMultipleBlocks(newBlocks);
- }
- function onBlockVariationTransform(name) {
- updateBlockAttributes2(blocks2[0].clientId, {
- ...blockVariationTransformations.find(
- ({ name: variationName }) => variationName === name
- ).attributes
- });
- }
- function onPatternTransform(transformedBlocks) {
- replaceBlocks2(clientIds, transformedBlocks);
- selectForMultipleBlocks(transformedBlocks);
- }
- const isSingleBlock = blocks2.length === 1;
- const isSynced = isSingleBlock && ((0, import_blocks71.isTemplatePart)(blocks2[0]) || (0, import_blocks71.isReusableBlock)(blocks2[0]));
- const hasPossibleBlockTransformations = !!possibleBlockTransformations?.length && canRemove && !isSynced;
- const hasPossibleBlockVariationTransformations = !!blockVariationTransformations?.length;
- const hasPatternTransformation = !!patterns?.length && canRemove;
- const hasBlockOrBlockVariationTransforms = hasPossibleBlockTransformations || hasPossibleBlockVariationTransformations;
- const hasContents = hasBlockStyles || hasBlockOrBlockVariationTransforms || hasPatternTransformation;
- if (!hasContents) {
- return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)("p", { className: "block-editor-block-switcher__no-transforms", children: (0, import_i18n97.__)("No transforms.") });
- }
- const connectedBlockDescription = isSingleBlock ? (0, import_i18n97._x)(
- "This block is connected.",
- "block toolbar button label and description"
- ) : (0, import_i18n97._x)(
- "These blocks are connected.",
- "block toolbar button label and description"
- );
- return /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)("div", { className: "block-editor-block-switcher__container", children: [
- hasPatternTransformation && /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
- pattern_transformations_menu_default,
- {
- blocks: blocks2,
- patterns,
- onSelect: (transformedBlocks) => {
- onPatternTransform(transformedBlocks);
- onClose();
- }
- }
- ),
- hasBlockOrBlockVariationTransforms && /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
- block_transformations_menu_default,
- {
- className: "block-editor-block-switcher__transforms__menugroup",
- possibleBlockTransformations,
- possibleBlockVariationTransformations: blockVariationTransformations,
- blocks: blocks2,
- onSelect: (name, variationName) => {
- onBlockTransform(name, variationName);
- onClose();
- },
- onSelectVariation: (name) => {
- onBlockVariationTransform(name);
- onClose();
+ currentCategoryPatterns.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(import_jsx_runtime253.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
+ import_components47.__experimentalText,
+ {
+ size: "12",
+ as: "p",
+ className: "block-editor-inserter__help-text",
+ children: (0, import_i18n58.__)("Drag and drop patterns into the canvas.")
}
- }
- ),
- hasBlockStyles && /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
- BlockStylesMenu,
- {
- hoveredBlock: blocks2[0],
- onSwitch: onClose
- }
- ),
- isUsingBindings && /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(import_components109.MenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(import_components109.__experimentalText, { className: "block-editor-block-switcher__binding-indicator", children: connectedBlockDescription }) })
- ] });
- }
- var BlockSwitcher = ({ children, clientIds, label, text }) => {
- const isSingleBlock = clientIds.length === 1;
- const blockSwitcherDescription = isSingleBlock ? (0, import_i18n97.__)("Change block type or style") : (0, import_i18n97.sprintf)(
- /* translators: %d: number of blocks. */
- (0, import_i18n97._n)(
- "Change type of %d block",
- "Change type of %d blocks",
- clientIds.length
- ),
- clientIds.length
- );
- return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(import_components109.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(import_components109.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
- import_components109.DropdownMenu,
- {
- className: "block-editor-block-switcher",
- label,
- popoverProps: {
- placement: "bottom-start",
- className: "block-editor-block-switcher__popover"
- },
- icon: children,
- text,
- toggleProps: {
- description: blockSwitcherDescription,
- ...toggleProps
- },
- menuProps: { orientation: "both" },
- children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
- BlockSwitcherDropdownMenuContents,
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
+ block_patterns_list_default,
{
- onClose,
- clientIds
+ ref: scrollContainerRef,
+ blockPatterns: pagingProps.categoryPatterns,
+ onClickPattern,
+ onHover,
+ label: category.label,
+ orientation: "vertical",
+ category: category.name,
+ isDraggable: true,
+ showTitlesAsTooltip,
+ patternFilter: patternSourceFilter,
+ pagingProps
}
)
- }
- ) }) });
- };
- var block_switcher_default = BlockSwitcher;
+ ] })
+ ] });
+ }
- // packages/block-editor/build-module/components/block-toolbar/block-styles-dropdown.mjs
- var import_i18n98 = __toESM(require_i18n(), 1);
- var import_components110 = __toESM(require_components(), 1);
- var import_jsx_runtime312 = __toESM(require_jsx_runtime(), 1);
- function BlockStylesDropdown({
- clientIds,
- children,
- label,
- text
+ // packages/block-editor/build-module/components/inserter/category-tabs/index.mjs
+ var import_compose44 = __toESM(require_compose(), 1);
+ var import_components48 = __toESM(require_components(), 1);
+ var import_element129 = __toESM(require_element(), 1);
+ var import_jsx_runtime254 = __toESM(require_jsx_runtime(), 1);
+ var { Tabs } = unlock(import_components48.privateApis);
+ function CategoryTabs({
+ categories,
+ selectedCategory,
+ onSelectCategory,
+ children
}) {
- return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(import_components110.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(import_components110.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
- import_components110.DropdownMenu,
+ const ANIMATION_DURATION = 0.25;
+ const disableMotion = (0, import_compose44.useReducedMotion)();
+ const defaultTransition = {
+ type: "tween",
+ duration: disableMotion ? 0 : ANIMATION_DURATION,
+ ease: [0.6, 0, 0.4, 1]
+ };
+ const previousSelectedCategory = (0, import_compose44.usePrevious)(selectedCategory);
+ const selectedTabId = selectedCategory ? selectedCategory.name : null;
+ const [activeTabId, setActiveId] = (0, import_element129.useState)();
+ const firstTabId = categories?.[0]?.name;
+ if (selectedTabId === null && !activeTabId && firstTabId) {
+ setActiveId(firstTabId);
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
+ Tabs,
{
- className: "block-editor-block-switcher",
- label,
- popoverProps: {
- placement: "bottom-start",
- className: "block-editor-block-switcher__popover"
- },
- icon: children,
- text,
- toggleProps: {
- description: (0, import_i18n98.__)("Change block style"),
- ...toggleProps
+ selectOnMove: false,
+ selectedTabId,
+ orientation: "vertical",
+ onSelect: (categoryId) => {
+ onSelectCategory(
+ categories.find(
+ (category) => category.name === categoryId
+ )
+ );
},
- menuProps: { orientation: "both" },
- children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime312.jsx)("div", { className: "block-editor-block-switcher__container", children: /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
- BlockStylesMenu,
- {
- hoveredBlock: {
- clientId: clientIds[0]
+ activeTabId,
+ onActiveTabIdChange: setActiveId,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Tabs.TabList, { className: "block-editor-inserter__category-tablist", children: categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
+ Tabs.Tab,
+ {
+ tabId: category.name,
+ "aria-current": category === selectedCategory ? "true" : void 0,
+ children: category.label
},
- onSwitch: onClose
- }
- ) })
+ category.name
+ )) }),
+ categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
+ Tabs.TabPanel,
+ {
+ tabId: category.name,
+ focusable: false,
+ children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
+ import_components48.__unstableMotion.div,
+ {
+ className: "block-editor-inserter__category-panel",
+ initial: !previousSelectedCategory ? "closed" : "open",
+ animate: "open",
+ variants: {
+ open: {
+ transform: "translateX( 0 )",
+ transitionEnd: {
+ zIndex: "1"
+ }
+ },
+ closed: {
+ transform: "translateX( -100% )",
+ zIndex: "-1"
+ }
+ },
+ transition: defaultTransition,
+ children
+ }
+ )
+ },
+ category.name
+ ))
+ ]
}
- ) }) });
- }
-
- // packages/block-editor/build-module/components/block-toolbar/pattern-overrides-dropdown.mjs
- var import_components111 = __toESM(require_components(), 1);
- var import_i18n99 = __toESM(require_i18n(), 1);
- var import_element176 = __toESM(require_element(), 1);
- var import_data117 = __toESM(require_data(), 1);
- var import_jsx_runtime313 = __toESM(require_jsx_runtime(), 1);
- function PatternOverridesPopoverContent({ clientIds, blockTitle }) {
- const blockMetaName = (0, import_data117.useSelect)(
- (select3) => {
- const { getBlockAttributes: getBlockAttributes3 } = select3(store);
- return getBlockAttributes3(clientIds?.[0])?.metadata?.name;
- },
- [clientIds]
);
- const isSingleBlock = clientIds.length === 1;
- let description;
- if (isSingleBlock && blockMetaName) {
- description = (0, import_i18n99.sprintf)(
- /* translators: 1: The block type's name. 2: The block's user-provided name (the same as the override name). */
- (0, import_i18n99.__)('This %1$s is editable using the "%2$s" override.'),
- blockTitle.toLowerCase(),
- blockMetaName
- );
- } else {
- description = (0, import_i18n99.__)("These blocks are editable using overrides.");
- }
- return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(import_components111.__experimentalText, { children: description });
}
- function PatternOverridesDropdown({
- icon,
- clientIds,
- blockTitle,
- label
+ var category_tabs_default = CategoryTabs;
+
+ // packages/block-editor/build-module/components/inserter/block-patterns-tab/index.mjs
+ var import_jsx_runtime255 = __toESM(require_jsx_runtime(), 1);
+ function BlockPatternsTab({
+ onSelectCategory,
+ selectedCategory,
+ onInsert,
+ rootClientId,
+ children
}) {
- const [isOpen, setIsOpen] = (0, import_element176.useState)(false);
- const anchorRef = (0, import_element176.useRef)();
- return /* @__PURE__ */ (0, import_jsx_runtime313.jsxs)(import_jsx_runtime313.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
- import_components111.ToolbarButton,
+ const [showPatternsExplorer, setShowPatternsExplorer] = (0, import_element130.useState)(false);
+ const categories = usePatternCategories(rootClientId);
+ const isMobile = (0, import_compose45.useViewportMatch)("medium", "<");
+ if (!categories.length) {
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(no_results_default, {});
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(import_jsx_runtime255.Fragment, { children: [
+ !isMobile && /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)("div", { className: "block-editor-inserter__block-patterns-tabs-container", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
+ category_tabs_default,
+ {
+ categories,
+ selectedCategory,
+ onSelectCategory,
+ children
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
+ import_components49.Button,
+ {
+ __next40pxDefaultSize: true,
+ className: "block-editor-inserter__patterns-explore-button",
+ onClick: () => setShowPatternsExplorer(true),
+ variant: "secondary",
+ children: (0, import_i18n59.__)("Explore all patterns")
+ }
+ )
+ ] }),
+ isMobile && /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(MobileTabNavigation, { categories, children: (category) => /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("div", { className: "block-editor-inserter__category-panel", children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
+ PatternCategoryPreviews,
{
- ref: anchorRef,
- className: "block-editor-block-toolbar__pattern-overrides-indicator",
- icon,
- label,
- onClick: () => setIsOpen(!isOpen),
- "aria-expanded": isOpen
- }
- ),
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
- import_components111.Popover,
+ onInsert,
+ rootClientId,
+ category
+ },
+ category.name
+ ) }) }),
+ showPatternsExplorer && /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
+ block_patterns_explorer_default,
{
- anchor: anchorRef.current,
- onClose: () => setIsOpen(false),
- placement: "bottom-start",
- offset: 16,
- className: "block-editor-block-toolbar__pattern-overrides-popover",
- children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
- PatternOverridesPopoverContent,
- {
- clientIds,
- blockTitle
- }
- )
+ initialCategory: selectedCategory || categories[0],
+ patternCategories: categories,
+ onModalClose: () => setShowPatternsExplorer(false),
+ rootClientId
}
)
] });
}
+ var block_patterns_tab_default = BlockPatternsTab;
- // packages/block-editor/build-module/components/block-toolbar/block-toolbar-icon.mjs
- var import_jsx_runtime314 = __toESM(require_jsx_runtime(), 1);
- function getBlockIconVariant({ select: select3, clientIds }) {
- const {
- getBlockName: getBlockName2,
- getBlockAttributes: getBlockAttributes3,
- getBlockParentsByBlockName: getBlockParentsByBlockName2,
- canRemoveBlocks: canRemoveBlocks2,
- getTemplateLock: getTemplateLock2,
- getBlockEditingMode: getBlockEditingMode2,
- canEditBlock: canEditBlock2,
- isSectionBlock: isSectionBlock2
- } = unlock(select3(store));
- const { getBlockStyles: getBlockStyles2 } = select3(import_blocks72.store);
- const hasTemplateLock = clientIds.some(
- (id) => getTemplateLock2(id) === "contentOnly"
- );
- const isSingleBlock = clientIds.length === 1;
- const blockName = isSingleBlock && getBlockName2(clientIds[0]);
- const hasBlockStyles = isSingleBlock && !!getBlockStyles2(blockName)?.length;
- const hasPatternNameInSelection = clientIds.some(
- (id) => !!getBlockAttributes3(id)?.metadata?.patternName && isSectionBlock2(id)
- );
- const hasPatternOverrides = clientIds.every(
- (clientId) => hasPatternOverridesDefaultBinding(
- getBlockAttributes3(clientId)?.metadata?.bindings
- )
- );
- const hasParentPattern = clientIds.every(
- (clientId) => getBlockParentsByBlockName2(clientId, "core/block", true).length > 0
- );
- const canRemove = canRemoveBlocks2(clientIds);
- const canEdit = clientIds.every((clientId) => canEditBlock2(clientId));
- const editingMode = getBlockEditingMode2(clientIds[0]);
- const isDefaultEditingMode = editingMode === "default";
- const isContentOnlyMode = editingMode === "contentOnly";
- const _hideTransformsForSections = hasPatternNameInSelection;
- const _showBlockSwitcher = !_hideTransformsForSections && isDefaultEditingMode && (hasBlockStyles || canRemove) && !hasTemplateLock && canEdit;
- const _showPatternOverrides = hasPatternOverrides && hasParentPattern;
- if (_showBlockSwitcher) {
- return "switcher";
- } else if (isContentOnlyMode && hasBlockStyles && !hasPatternOverrides && canEdit) {
- return "styles-only";
- } else if (_showPatternOverrides) {
- return "pattern-overrides";
- }
- return "default";
- }
- function getBlockIcon({ select: select3, clientIds }) {
- const { getBlockName: getBlockName2, getBlockAttributes: getBlockAttributes3, getBlock: getBlock2, isSectionBlock: isSectionBlock2 } = unlock(select3(store));
- const _isSingleBlock = clientIds.length === 1;
- const firstClientId = clientIds[0];
- const blockAttributes = getBlockAttributes3(firstClientId);
- if (_isSingleBlock && blockAttributes?.metadata?.patternName && isSectionBlock2(firstClientId)) {
- return symbol_default;
- }
- const blockName = getBlockName2(firstClientId);
- const blockType = (0, import_blocks72.getBlockType)(blockName);
- if (_isSingleBlock) {
- const { getActiveBlockVariation } = select3(import_blocks72.store);
- const match2 = getActiveBlockVariation(
- blockName,
- blockAttributes,
- void 0,
- getBlock2?.(firstClientId)?.innerContent
- );
- return match2?.icon || blockType?.icon;
+ // packages/block-editor/build-module/components/inserter/media-tab/media-tab.mjs
+ var import_i18n63 = __toESM(require_i18n(), 1);
+ var import_compose47 = __toESM(require_compose(), 1);
+ var import_components54 = __toESM(require_components(), 1);
+ var import_element134 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/inserter/media-tab/media-panel.mjs
+ var import_components53 = __toESM(require_components(), 1);
+ var import_i18n62 = __toESM(require_i18n(), 1);
+ var import_element133 = __toESM(require_element(), 1);
+ var import_compose46 = __toESM(require_compose(), 1);
+ var import_data62 = __toESM(require_data(), 1);
+ var import_dom53 = __toESM(require_dom(), 1);
+ var import_notices7 = __toESM(require_notices(), 1);
+
+ // packages/block-editor/build-module/components/inserter/media-tab/media-list.mjs
+ var import_components51 = __toESM(require_components(), 1);
+ var import_i18n61 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/inserter/media-tab/media-preview.mjs
+ var import_components50 = __toESM(require_components(), 1);
+ var import_i18n60 = __toESM(require_i18n(), 1);
+ var import_element131 = __toESM(require_element(), 1);
+ var import_blocks41 = __toESM(require_blocks(), 1);
+ var import_data59 = __toESM(require_data(), 1);
+ var import_notices6 = __toESM(require_notices(), 1);
+ var import_blob = __toESM(require_blob(), 1);
+ var import_url2 = __toESM(require_url(), 1);
+
+ // packages/block-editor/build-module/components/inserter/media-tab/utils.mjs
+ var import_blocks40 = __toESM(require_blocks(), 1);
+ var import_jsx_runtime256 = __toESM(require_jsx_runtime(), 1);
+ var mediaTypeTag = { image: "img", video: "video", audio: "audio" };
+ function getBlockAndPreviewFromMedia(media, mediaType) {
+ const attributes = {
+ id: media.id || void 0,
+ caption: media.caption || void 0
+ };
+ const mediaSrc = media.url;
+ const alt = media.alt || void 0;
+ if (mediaType === "image") {
+ attributes.url = mediaSrc;
+ attributes.alt = alt;
+ } else if (["video", "audio"].includes(mediaType)) {
+ attributes.src = mediaSrc;
}
- const blockNames = clientIds.map((id) => getBlockName2(id));
- const isSelectionOfSameType = new Set(blockNames).size === 1;
- return isSelectionOfSameType ? blockType?.icon : copy_default;
- }
- function BlockToolbarIcon({ clientIds, isSynced }) {
- const { icon, showIconLabels, variant } = (0, import_data118.useSelect)(
- (select3) => {
- return {
- icon: getBlockIcon({ select: select3, clientIds }),
- showIconLabels: select3(import_preferences2.store).get(
- "core",
- "showIconLabels"
- ),
- variant: getBlockIconVariant({
- select: select3,
- clientIds
- })
- };
- },
- [clientIds]
- );
- const blockTitle = useBlockDisplayTitle({
- clientId: clientIds?.[0],
- maximumLength: 35
- });
- const isSingleBlock = clientIds.length === 1;
- const showBlockTitle = isSingleBlock && isSynced && !showIconLabels;
- const label = isSingleBlock ? blockTitle : (0, import_i18n100.__)("Multiple blocks selected");
- const text = showBlockTitle && blockTitle ? blockTitle : void 0;
- const BlockIconElement = /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
- block_icon_default,
+ const PreviewTag = mediaTypeTag[mediaType];
+ const preview = /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
+ PreviewTag,
{
- className: "block-editor-block-toolbar__block-icon",
- icon
+ src: media.previewUrl || mediaSrc,
+ alt,
+ controls: mediaType === "audio" ? true : void 0,
+ inert: "true",
+ onError: ({ currentTarget }) => {
+ if (currentTarget.src === media.previewUrl) {
+ currentTarget.src = mediaSrc;
+ }
+ }
}
);
- if (variant === "switcher") {
- return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
- block_switcher_default,
- {
- clientIds,
- label,
- text,
- children: BlockIconElement
- }
- );
+ return [(0, import_blocks40.createBlock)(`core/${mediaType}`, attributes), preview];
+ }
+
+ // packages/block-editor/build-module/components/inserter/media-tab/media-preview.mjs
+ var import_jsx_runtime257 = __toESM(require_jsx_runtime(), 1);
+ var ALLOWED_MEDIA_TYPES = ["image"];
+ var MEDIA_OPTIONS_POPOVER_PROPS = {
+ placement: "bottom-end",
+ className: "block-editor-inserter__media-list__item-preview-options__popover"
+ };
+ function MediaPreviewOptions({ category, media, onDetach }) {
+ if (!category.getReportUrl && !onDetach) {
+ return null;
}
- if (variant === "styles-only") {
- return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
- BlockStylesDropdown,
- {
- clientIds,
- label,
- text,
- children: BlockIconElement
- }
- );
- }
- if (variant === "pattern-overrides") {
- return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
- PatternOverridesDropdown,
- {
- icon: BlockIconElement,
- clientIds,
- blockTitle,
- label
- }
- );
- }
- return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
- import_components112.ToolbarButton,
+ const reportUrl = category.getReportUrl?.(media);
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ import_components50.DropdownMenu,
{
- disabled: true,
- className: "block-editor-block-toolbar__block-icon-button",
- title: label,
- icon: BlockIconElement,
- text
+ className: "block-editor-inserter__media-list__item-preview-options",
+ label: (0, import_i18n60.__)("Options"),
+ popoverProps: MEDIA_OPTIONS_POPOVER_PROPS,
+ icon: more_vertical_default,
+ children: () => /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(import_components50.MenuGroup, { children: [
+ reportUrl && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ import_components50.MenuItem,
+ {
+ onClick: () => window.open(reportUrl, "_blank").focus(),
+ icon: external_default,
+ children: (0, import_i18n60.sprintf)(
+ /* translators: %s: The media type to report e.g: "image", "video", "audio" */
+ (0, import_i18n60.__)("Report %s"),
+ category.mediaType
+ )
+ }
+ ),
+ onDetach && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ import_components50.MenuItem,
+ {
+ onClick: () => onDetach(media),
+ icon: link_off_default,
+ children: category.postTypeLabel ? (0, import_i18n60.sprintf)(
+ /* translators: %s: Name of the post type e.g: "Page". */
+ (0, import_i18n60.__)("Detach from %s"),
+ category.postTypeLabel
+ ) : (0, import_i18n60.__)("Detach from post")
+ }
+ )
+ ] })
}
);
}
-
- // packages/block-editor/build-module/components/block-toolbar/index.mjs
- var import_jsx_runtime315 = __toESM(require_jsx_runtime(), 1);
- function PrivateBlockToolbar({
- hideDragHandle,
- focusOnMount,
- __experimentalInitialIndex,
- __experimentalOnIndexChange,
- variant = "unstyled"
- }) {
- const {
- blockClientId,
- blockClientIds,
- isDefaultEditingMode,
- blockType,
- toolbarKey,
- shouldShowVisualToolbar,
- showParentSelector,
- isUsingBindings,
- isSectionContainer,
- hasContentOnlyLocking,
- showShuffleButton,
- showSlots,
- showGroupButtons,
- showLockButtons,
- showBlockVisibilityButton,
- showSwitchSectionStyleButton,
- areSelectedBlocksHiddenOnViewport,
- showStyleStateSlot,
- canEdit
- } = (0, import_data119.useSelect)((select3) => {
- const { canEditBlock: canEditBlock2 } = select3(store);
- const {
- getBlockName: getBlockName2,
- getBlockMode: getBlockMode2,
- getBlockParents: getBlockParents2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- isBlockValid: isBlockValid2,
- getBlockEditingMode: getBlockEditingMode2,
- getBlockAttributes: getBlockAttributes3,
- getSettings: getSettings7,
- getTemplateLock: getTemplateLock2,
- getParentSectionBlock: getParentSectionBlock2,
- isZoomOut: isZoomOut2,
- isSectionBlock: isSectionBlock2,
- isBlockHiddenAtViewport: isBlockHiddenAtViewport2,
- getSelectedBlockStyleState: getSelectedBlockStyleState2,
- isResponsiveEditing: isResponsiveEditing3
- } = unlock(select3(store));
- const selectedBlockClientIds = getSelectedBlockClientIds2();
- const selectedBlockClientId = selectedBlockClientIds[0];
- const parents = getBlockParents2(selectedBlockClientId);
- const parentSection = getParentSectionBlock2(selectedBlockClientId);
- const parentClientId = parentSection ?? parents[parents.length - 1];
- const parentBlockName = getBlockName2(parentClientId);
- const parentBlockType = (0, import_blocks73.getBlockType)(parentBlockName);
- const editingMode = getBlockEditingMode2(selectedBlockClientId);
- const _isDefaultEditingMode = editingMode === "default";
- const _blockName = getBlockName2(selectedBlockClientId);
- const isValid2 = selectedBlockClientIds.every(
- (id) => isBlockValid2(id)
- );
- const isVisual = selectedBlockClientIds.every(
- (id) => getBlockMode2(id) === "visual"
- );
- const _isUsingBindings = selectedBlockClientIds.every(
- (clientId) => !!getBlockAttributes3(clientId)?.metadata?.bindings
- );
- const _hasTemplateLock = selectedBlockClientIds.some(
- (id) => getTemplateLock2(id) === "contentOnly"
- );
- const _isZoomOut = isZoomOut2();
- const _isSectionBlock = isSectionBlock2(selectedBlockClientId);
- const _canEditBlock = canEditBlock2(selectedBlockClientId);
- const _showSwitchSectionStyleButton = _canEditBlock && (_isZoomOut || _isSectionBlock);
- const _currentDeviceType = getSettings7()?.[deviceTypeKey]?.toLowerCase() || "desktop";
- const _areSelectedBlocksHiddenOnViewport = selectedBlockClientIds.length > 0 && selectedBlockClientIds.every(
- (id) => isBlockHiddenAtViewport2(id, _currentDeviceType)
- );
- const _isEditingResponsiveStyleState = isResponsiveEditing3() && hasViewportBlockStyleState(
- getSelectedBlockStyleState2(selectedBlockClientId)
- );
- return {
- blockClientId: selectedBlockClientId,
- blockClientIds: selectedBlockClientIds,
- isDefaultEditingMode: _isDefaultEditingMode,
- blockType: selectedBlockClientId && (0, import_blocks73.getBlockType)(_blockName),
- shouldShowVisualToolbar: isValid2 && isVisual,
- toolbarKey: `${selectedBlockClientId}${parentClientId}`,
- showParentSelector: !_isZoomOut && parentBlockType && editingMode !== "contentOnly" && getBlockEditingMode2(parentClientId) !== "disabled" && (0, import_blocks73.hasBlockSupport)(
- parentBlockType,
- "__experimentalParentSelector",
- true
- ) && selectedBlockClientIds.length === 1,
- isUsingBindings: _isUsingBindings,
- isSectionContainer: _isSectionBlock,
- hasContentOnlyLocking: _hasTemplateLock,
- showShuffleButton: _isZoomOut,
- showSlots: !_isZoomOut && !_isEditingResponsiveStyleState,
- showStyleStateSlot: !_isZoomOut && _isEditingResponsiveStyleState,
- showGroupButtons: !_isZoomOut,
- showLockButtons: !_isZoomOut,
- showBlockVisibilityButton: !_isZoomOut,
- showSwitchSectionStyleButton: _showSwitchSectionStyleButton,
- areSelectedBlocksHiddenOnViewport: _areSelectedBlocksHiddenOnViewport,
- canEdit: _canEditBlock
- };
- }, []);
- const toolbarWrapperRef = (0, import_element177.useRef)(null);
- const nodeRef = (0, import_element177.useRef)();
- const showHoveredOrFocusedGestures = useShowHoveredOrFocusedGestures({
- ref: nodeRef
- });
- const isLargeViewport = !(0, import_compose69.useViewportMatch)("medium", "<");
- const hasBlockToolbar = useHasBlockToolbar();
- if (!hasBlockToolbar) {
- return null;
- }
- const isMultiToolbar = blockClientIds.length > 1;
- const isSynced = (0, import_blocks73.isReusableBlock)(blockType) || (0, import_blocks73.isTemplatePart)(blockType);
- const classes = clsx_default("block-editor-block-contextual-toolbar", {
- "has-parent": showParentSelector
- });
- const innerClasses = clsx_default("block-editor-block-toolbar", {
- "is-synced": isSynced,
- "is-connected": isUsingBindings
- });
- return /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- NavigableToolbar,
+ function InsertExternalImageModal({ onClose, onSubmit }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
+ import_components50.Modal,
{
- focusEditorOnEscape: true,
- className: classes,
- "aria-label": (0, import_i18n101.__)("Block tools"),
- variant: variant === "toolbar" ? void 0 : variant,
- focusOnMount,
- __experimentalInitialIndex,
- __experimentalOnIndexChange,
- children: /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)("div", { ref: toolbarWrapperRef, className: innerClasses, children: [
- showParentSelector && !isMultiToolbar && isLargeViewport && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(BlockParentSelector, {}),
- (shouldShowVisualToolbar || isMultiToolbar) && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)("div", { ref: nodeRef, ...showHoveredOrFocusedGestures, children: /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(import_components113.ToolbarGroup, { className: "block-editor-block-toolbar__block-controls", children: [
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- BlockToolbarIcon,
- {
- clientIds: blockClientIds,
- isSynced
- }
- ),
- isDefaultEditingMode && showBlockVisibilityButton && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- BlockVisibilityViewportToolbar,
- {
- clientIds: blockClientIds
- }
- ),
- !isMultiToolbar && isDefaultEditingMode && showLockButtons && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- BlockLockToolbar,
- {
- clientId: blockClientId
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- block_mover_default,
- {
- clientIds: blockClientIds,
- hideDragHandle
- }
- )
- ] }) }),
- !areSelectedBlocksHiddenOnViewport && !hasContentOnlyLocking && shouldShowVisualToolbar && isMultiToolbar && showGroupButtons && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(toolbar_default, {}),
- !isMultiToolbar && canEdit && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(EditSectionButton, { clientId: blockClientIds[0] }),
- !areSelectedBlocksHiddenOnViewport && showShuffleButton && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(ChangeDesign, { clientId: blockClientIds[0] }),
- !areSelectedBlocksHiddenOnViewport && showSwitchSectionStyleButton && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(switch_section_style_default, { clientId: blockClientIds[0] }),
- !areSelectedBlocksHiddenOnViewport && shouldShowVisualToolbar && /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(import_jsx_runtime315.Fragment, { children: [
- !isSectionContainer && /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(import_jsx_runtime315.Fragment, { children: [
- showSlots && /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(import_jsx_runtime315.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- block_controls_default.Slot,
- {
- group: "parent",
- className: "block-editor-block-toolbar__slot"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- block_controls_default.Slot,
+ title: (0, import_i18n60.__)("Insert external image"),
+ onRequestClose: onClose,
+ className: "block-editor-inserter-media-tab-media-preview-inserter-external-image-modal",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(import_components50.__experimentalVStack, { spacing: 3, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)("p", { children: (0, import_i18n60.__)(
+ "This image cannot be uploaded to your Media Library, but it can still be inserted as an external image."
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)("p", { children: (0, import_i18n60.__)(
+ "External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation."
+ ) })
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
+ import_components50.Flex,
+ {
+ className: "block-editor-block-lock-modal__actions",
+ justify: "flex-end",
+ expanded: false,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(import_components50.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ import_components50.Button,
{
- group: "block",
- className: "block-editor-block-toolbar__slot"
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0, import_i18n60.__)("Cancel")
}
- ),
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(block_controls_default.Slot, { className: "block-editor-block-toolbar__slot" }),
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- block_controls_default.Slot,
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(import_components50.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ import_components50.Button,
{
- group: "inline",
- className: "block-editor-block-toolbar__slot"
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ onClick: onSubmit,
+ children: (0, import_i18n60.__)("Insert")
}
- )
- ] }),
- showStyleStateSlot && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- block_controls_default.Slot,
- {
- group: "style-state",
- className: "block-editor-block-toolbar__slot"
- }
- )
- ] }),
- showSlots && /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(import_jsx_runtime315.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- block_controls_default.Slot,
- {
- group: "other",
- className: "block-editor-block-toolbar__slot"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(block_toolbar_last_item_default.Slot, {})
- ] })
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(BlockEditVisuallyButton, { clientIds: blockClientIds }),
- /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(block_settings_menu_default, { clientIds: blockClientIds })
- ] })
- },
- toolbarKey
+ ) })
+ ]
+ }
+ )
+ ]
+ }
);
}
- function BlockToolbar({ hideDragHandle, variant }) {
- return /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
- PrivateBlockToolbar,
- {
- hideDragHandle,
- variant,
- focusOnMount: void 0,
- __experimentalInitialIndex: void 0,
- __experimentalOnIndexChange: void 0
- }
+ function MediaPreview({ media, onClick, onDetach, category }) {
+ const [showExternalUploadModal, setShowExternalUploadModal] = (0, import_element131.useState)(false);
+ const [isHovered, setIsHovered] = (0, import_element131.useState)(false);
+ const [isInserting, setIsInserting] = (0, import_element131.useState)(false);
+ const [block, preview] = (0, import_element131.useMemo)(
+ () => getBlockAndPreviewFromMedia(media, category.mediaType),
+ [media, category.mediaType]
+ );
+ const { createErrorNotice, createSuccessNotice } = (0, import_data59.useDispatch)(import_notices6.store);
+ const { getSettings: getSettings8, getBlock: getBlock2 } = (0, import_data59.useSelect)(store);
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data59.useDispatch)(store);
+ const onMediaInsert = (0, import_element131.useCallback)(
+ (previewBlock) => {
+ if (isInserting) {
+ return;
+ }
+ const settings2 = getSettings8();
+ const clonedBlock = (0, import_blocks41.cloneBlock)(previewBlock);
+ const { id, url, caption } = clonedBlock.attributes;
+ if (!id && !settings2.mediaUpload) {
+ setShowExternalUploadModal(true);
+ return;
+ }
+ if (!!id) {
+ onClick(clonedBlock);
+ return;
+ }
+ setIsInserting(true);
+ window.fetch(url).then((response) => response.blob()).then((blob) => {
+ const fileName = (0, import_url2.getFilename)(url) || "image.jpg";
+ const file = new File([blob], fileName, {
+ type: blob.type
+ });
+ settings2.mediaUpload({
+ filesList: [file],
+ additionalData: { caption },
+ onFileChange([img]) {
+ if ((0, import_blob.isBlobURL)(img.url)) {
+ return;
+ }
+ if (!getBlock2(clonedBlock.clientId)) {
+ onClick({
+ ...clonedBlock,
+ attributes: {
+ ...clonedBlock.attributes,
+ id: img.id,
+ url: img.url
+ }
+ });
+ createSuccessNotice(
+ (0, import_i18n60.__)("Image uploaded and inserted."),
+ { type: "snackbar", id: "inserter-notice" }
+ );
+ } else {
+ updateBlockAttributes2(clonedBlock.clientId, {
+ ...clonedBlock.attributes,
+ id: img.id,
+ url: img.url
+ });
+ }
+ setIsInserting(false);
+ },
+ allowedTypes: ALLOWED_MEDIA_TYPES,
+ onError(message2) {
+ createErrorNotice(message2, {
+ type: "snackbar",
+ id: "inserter-notice"
+ });
+ setIsInserting(false);
+ }
+ });
+ }).catch(() => {
+ setShowExternalUploadModal(true);
+ setIsInserting(false);
+ });
+ },
+ [
+ isInserting,
+ getSettings8,
+ onClick,
+ createSuccessNotice,
+ updateBlockAttributes2,
+ createErrorNotice,
+ getBlock2
+ ]
);
+ const title = typeof media.title === "string" ? media.title : media.title?.rendered || (0, import_i18n60.__)("no title");
+ const onMouseEnter = (0, import_element131.useCallback)(() => setIsHovered(true), []);
+ const onMouseLeave = (0, import_element131.useCallback)(() => setIsHovered(false), []);
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(import_jsx_runtime257.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(inserter_draggable_blocks_default, { isEnabled: true, blocks: [block], children: ({ draggable, onDragStart, onDragEnd }) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ "div",
+ {
+ className: clsx_default(
+ "block-editor-inserter__media-list__list-item",
+ {
+ "is-hovered": isHovered
+ }
+ ),
+ draggable,
+ onDragStart,
+ onDragEnd,
+ children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
+ "div",
+ {
+ onMouseEnter,
+ onMouseLeave,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(tooltip_exports.Root, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ tooltip_exports.Trigger,
+ {
+ render: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ import_components50.Composite.Item,
+ {
+ render: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ "div",
+ {
+ "aria-label": title,
+ role: "option",
+ className: "block-editor-inserter__media-list__item"
+ }
+ ),
+ onClick: () => onMediaInsert(block),
+ children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)("div", { className: "block-editor-inserter__media-list__item-preview", children: [
+ preview,
+ isInserting && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)("div", { className: "block-editor-inserter__media-list__item-preview-spinner", children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(import_components50.Spinner, {}) })
+ ] })
+ }
+ )
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(tooltip_exports.Popup, { children: title })
+ ] }),
+ !isInserting && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ MediaPreviewOptions,
+ {
+ category,
+ media,
+ onDetach
+ }
+ )
+ ]
+ }
+ )
+ }
+ ) }),
+ showExternalUploadModal && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
+ InsertExternalImageModal,
+ {
+ onClose: () => setShowExternalUploadModal(false),
+ onSubmit: () => {
+ onClick((0, import_blocks41.cloneBlock)(block));
+ createSuccessNotice((0, import_i18n60.__)("Image inserted."), {
+ type: "snackbar",
+ id: "inserter-notice"
+ });
+ setShowExternalUploadModal(false);
+ }
+ }
+ )
+ ] });
}
- // packages/block-editor/build-module/components/block-tools/block-toolbar-popover.mjs
- var import_jsx_runtime316 = __toESM(require_jsx_runtime(), 1);
- function BlockToolbarPopover({
- clientId,
- isTyping: isTyping3,
- __unstableContentRef
+ // packages/block-editor/build-module/components/inserter/media-tab/media-list.mjs
+ var import_jsx_runtime258 = __toESM(require_jsx_runtime(), 1);
+ function MediaList({
+ mediaList,
+ category,
+ onClick,
+ onDetach,
+ label = (0, import_i18n61.__)("Media List")
}) {
- const { capturingClientId, isInsertionPointVisible, lastClientId } = useSelectedBlockToolProps(clientId);
- const initialToolbarItemIndexRef = (0, import_element178.useRef)();
- (0, import_element178.useEffect)(() => {
- initialToolbarItemIndexRef.current = void 0;
- }, [clientId]);
- const { stopTyping: stopTyping2 } = (0, import_data120.useDispatch)(store);
- const isToolbarForcedRef = (0, import_element178.useRef)(false);
- (0, import_keyboard_shortcuts9.useShortcut)("core/block-editor/focus-toolbar", () => {
- isToolbarForcedRef.current = true;
- stopTyping2(true);
- });
- (0, import_element178.useEffect)(() => {
- isToolbarForcedRef.current = false;
- });
- const clientIdToPositionOver = capturingClientId || clientId;
- const popoverProps3 = useBlockToolbarPopoverProps({
- contentElement: __unstableContentRef?.current,
- clientId: clientIdToPositionOver
- });
- return !isTyping3 && /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
- PrivateBlockPopover,
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
+ import_components51.Composite,
{
- clientId: clientIdToPositionOver,
- bottomClientId: lastClientId,
- className: clsx_default("block-editor-block-list__block-popover", {
- "is-insertion-point-visible": isInsertionPointVisible
- }),
- resize: false,
- ...popoverProps3,
- __unstableContentRef,
- children: /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
- PrivateBlockToolbar,
+ role: "listbox",
+ className: "block-editor-inserter__media-list",
+ "aria-label": label,
+ children: mediaList.map((media, index2) => /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
+ MediaPreview,
{
- focusOnMount: isToolbarForcedRef.current,
- __experimentalInitialIndex: initialToolbarItemIndexRef.current,
- __experimentalOnIndexChange: (index2) => {
- initialToolbarItemIndexRef.current = index2;
- },
- variant: "toolbar"
- }
- )
+ media,
+ category,
+ onClick,
+ onDetach
+ },
+ media.id || media.sourceId || index2
+ ))
}
);
}
+ var media_list_default = MediaList;
- // packages/block-editor/build-module/components/block-tools/zoom-out-mode-inserters.mjs
- var import_data121 = __toESM(require_data(), 1);
- var import_element179 = __toESM(require_element(), 1);
+ // packages/block-editor/build-module/components/media-upload/index.mjs
+ var import_components52 = __toESM(require_components(), 1);
+ var MediaUpload = () => null;
+ var media_upload_default = (0, import_components52.withFilters)("editor.MediaUpload")(MediaUpload);
- // packages/block-editor/build-module/components/block-tools/zoom-out-mode-inserter-button.mjs
- var import_components114 = __toESM(require_components(), 1);
- var import_i18n102 = __toESM(require_i18n(), 1);
- var import_jsx_runtime317 = __toESM(require_jsx_runtime(), 1);
- function ZoomOutModeInserterButton({ onClick }) {
- return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
- import_components114.Button,
- {
- variant: "primary",
- icon: plus_default,
- size: "compact",
- className: clsx_default(
- "block-editor-button-pattern-inserter__button",
- "block-editor-block-tools__zoom-out-mode-inserter-button"
- ),
- onClick,
- label: (0, import_i18n102._x)(
- "Add pattern",
- "Generic label for pattern inserter button"
- )
- }
- );
+ // packages/block-editor/build-module/components/media-upload/check.mjs
+ var import_data60 = __toESM(require_data(), 1);
+ function MediaUploadCheck({ fallback = null, children }) {
+ const hasUploadPermissions = (0, import_data60.useSelect)((select3) => {
+ const { getSettings: getSettings8 } = select3(store);
+ return !!getSettings8().mediaUpload;
+ }, []);
+ return hasUploadPermissions ? children : fallback;
}
- var zoom_out_mode_inserter_button_default = ZoomOutModeInserterButton;
+ var check_default2 = MediaUploadCheck;
- // packages/block-editor/build-module/components/block-tools/zoom-out-mode-inserters.mjs
- var import_jsx_runtime318 = __toESM(require_jsx_runtime(), 1);
- function ZoomOutModeInserters() {
- const [isReady, setIsReady] = (0, import_element179.useState)(false);
- const {
- hasSelection,
- blockOrder,
- setInserterIsOpened,
- sectionRootClientId,
- selectedBlockClientId,
- blockInsertionPoint,
- insertionPointVisible
- } = (0, import_data121.useSelect)((select3) => {
- const {
- getSettings: getSettings7,
- getBlockOrder: getBlockOrder2,
- getSelectionStart: getSelectionStart2,
- getSelectedBlockClientId: getSelectedBlockClientId2,
- getSectionRootClientId: getSectionRootClientId2,
- getBlockInsertionPoint: getBlockInsertionPoint2,
- isBlockInsertionPointVisible: isBlockInsertionPointVisible2
- } = unlock(select3(store));
- const root = getSectionRootClientId2();
- return {
- hasSelection: !!getSelectionStart2().clientId,
- blockOrder: getBlockOrder2(root),
- sectionRootClientId: root,
- setInserterIsOpened: getSettings7().__experimentalSetIsInserterOpened,
- selectedBlockClientId: getSelectedBlockClientId2(),
- blockInsertionPoint: getBlockInsertionPoint2(),
- insertionPointVisible: isBlockInsertionPointVisible2()
- };
- }, []);
- const { showInsertionPoint: showInsertionPoint2 } = unlock((0, import_data121.useDispatch)(store));
- (0, import_element179.useEffect)(() => {
- const timeout = setTimeout(() => {
- setIsReady(true);
- }, 500);
+ // packages/block-editor/build-module/components/inserter/media-tab/hooks.mjs
+ var import_element132 = __toESM(require_element(), 1);
+ var import_data61 = __toESM(require_data(), 1);
+ function normalizeFetchResult(result) {
+ if (Array.isArray(result)) {
+ return { mediaItems: result };
+ }
+ return {
+ mediaItems: result?.mediaItems ?? [],
+ totalItems: result?.totalItems,
+ totalPages: result?.totalPages
+ };
+ }
+ function useMediaResults(category, query = {}, refreshKey) {
+ const [mediaList, setMediaList] = (0, import_element132.useState)();
+ const [totals, setTotals] = (0, import_element132.useState)({});
+ const [isLoading, setIsLoading] = (0, import_element132.useState)(false);
+ const lastRequestRef = (0, import_element132.useRef)();
+ const lastQueryKeyRef = (0, import_element132.useRef)();
+ const lastFetchRef = (0, import_element132.useRef)();
+ const lastSourceRef = (0, import_element132.useRef)();
+ (0, import_element132.useEffect)(() => {
+ (async () => {
+ const key = JSON.stringify({
+ category: category.name,
+ ...query
+ });
+ const request = {};
+ lastRequestRef.current = request;
+ setIsLoading(true);
+ if (lastQueryKeyRef.current !== key || lastFetchRef.current !== category.fetch) {
+ setMediaList([]);
+ }
+ if (lastSourceRef.current !== category.name || lastFetchRef.current !== category.fetch) {
+ setTotals({});
+ }
+ lastQueryKeyRef.current = key;
+ lastFetchRef.current = category.fetch;
+ lastSourceRef.current = category.name;
+ const { page, ...queryWithoutPage } = query;
+ const fetchQuery = page > 1 ? query : queryWithoutPage;
+ const { mediaItems, totalItems, totalPages } = normalizeFetchResult(
+ await category.fetch?.(fetchQuery)
+ );
+ if (request === lastRequestRef.current) {
+ setMediaList(mediaItems);
+ setTotals({ totalItems, totalPages });
+ setIsLoading(false);
+ }
+ })();
+ }, [
+ category.name,
+ category.fetch,
+ ...Object.values(query),
+ refreshKey
+ ]);
+ return {
+ mediaList,
+ isLoading,
+ totalItems: totals.totalItems,
+ totalPages: totals.totalPages
+ };
+ }
+ function useDelayedLoading(isLoading, delay = 400) {
+ const [showLoading, setShowLoading] = (0, import_element132.useState)(false);
+ (0, import_element132.useEffect)(() => {
+ if (!isLoading) {
+ return void 0;
+ }
+ const timeout = setTimeout(() => setShowLoading(true), delay);
return () => {
clearTimeout(timeout);
+ setShowLoading(false);
};
- }, []);
- if (!isReady || !hasSelection) {
- return null;
- }
- const previousClientId = selectedBlockClientId;
- const index2 = blockOrder.findIndex(
- (clientId) => selectedBlockClientId === clientId
+ }, [isLoading, delay]);
+ return showLoading;
+ }
+ function useMediaCategories(rootClientId) {
+ const [categories, setCategories] = (0, import_element132.useState)([]);
+ const inserterMediaCategories = (0, import_data61.useSelect)(
+ (select3) => unlock(select3(store)).getInserterMediaCategories(),
+ []
);
- const insertionIndex = index2 + 1;
- const nextClientId = blockOrder[insertionIndex];
- if (insertionPointVisible && blockInsertionPoint?.index === insertionIndex) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
- inbetween_default,
+ const { canInsertImage, canInsertVideo, canInsertAudio } = (0, import_data61.useSelect)(
+ (select3) => {
+ const { canInsertBlockType: canInsertBlockType2 } = select3(store);
+ return {
+ canInsertImage: canInsertBlockType2(
+ "core/image",
+ rootClientId
+ ),
+ canInsertVideo: canInsertBlockType2(
+ "core/video",
+ rootClientId
+ ),
+ canInsertAudio: canInsertBlockType2(
+ "core/audio",
+ rootClientId
+ )
+ };
+ },
+ [rootClientId]
+ );
+ (0, import_element132.useEffect)(() => {
+ (async () => {
+ const _categories = [];
+ if (!inserterMediaCategories) {
+ return;
+ }
+ const categoriesHaveMedia = new Map(
+ await Promise.all(
+ inserterMediaCategories.map(async (category) => {
+ if (category.isExternalResource) {
+ return [category.name, true];
+ }
+ let results = [];
+ try {
+ const { mediaItems } = normalizeFetchResult(
+ await category.fetch({ per_page: 1 })
+ );
+ results = mediaItems;
+ } catch {
+ }
+ return [category.name, !!results.length];
+ })
+ )
+ );
+ const canInsertMediaType = {
+ image: canInsertImage,
+ video: canInsertVideo,
+ audio: canInsertAudio
+ };
+ inserterMediaCategories.forEach((category) => {
+ if (canInsertMediaType[category.mediaType] && (categoriesHaveMedia.get(category.name) || category.emptyMessage)) {
+ _categories.push(category);
+ }
+ });
+ if (!!_categories.length) {
+ setCategories(_categories);
+ }
+ })();
+ }, [
+ canInsertImage,
+ canInsertVideo,
+ canInsertAudio,
+ inserterMediaCategories
+ ]);
+ return categories;
+ }
+
+ // packages/block-editor/build-module/components/inserter/media-tab/media-panel.mjs
+ var import_jsx_runtime259 = __toESM(require_jsx_runtime(), 1);
+ var MEDIA_ITEMS_PER_PAGE = 20;
+ var ATTACH_ALLOWED_TYPES = ["image"];
+ function AttachImagesButton({ onSelect }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(check_default2, { children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
+ media_upload_default,
{
- previousClientId,
- nextClientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
- zoom_out_mode_inserter_button_default,
+ multiple: "add",
+ onSelect,
+ allowedTypes: ATTACH_ALLOWED_TYPES,
+ title: (0, import_i18n62.__)("Attach images"),
+ render: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
+ import_components53.Button,
{
- onClick: () => {
- setInserterIsOpened({
- rootClientId: sectionRootClientId,
- insertionIndex,
- tab: "patterns",
- category: "all"
- });
- showInsertionPoint2(sectionRootClientId, insertionIndex, {
- operation: "insert"
- });
- }
+ __next40pxDefaultSize: true,
+ className: "block-editor-inserter__media-panel-attach",
+ "data-unstable-ignore-focus-outside-for-relatedtarget": ".media-modal",
+ onClick: (event) => {
+ event.target.focus();
+ open();
+ },
+ variant: "secondary",
+ children: (0, import_i18n62.__)("Attach images")
}
)
}
- );
- }
- var zoom_out_mode_inserters_default = ZoomOutModeInserters;
-
- // packages/block-editor/build-module/components/block-tools/use-show-block-tools.mjs
- var import_data122 = __toESM(require_data(), 1);
- var import_blocks74 = __toESM(require_blocks(), 1);
- function useShowBlockTools() {
- return (0, import_data122.useSelect)((select3) => {
- const {
- getSelectedBlockClientId: getSelectedBlockClientId2,
- getFirstMultiSelectedBlockClientId: getFirstMultiSelectedBlockClientId2,
- getBlock: getBlock2,
- getBlockMode: getBlockMode2,
- getSettings: getSettings7,
- isTyping: isTyping3,
- isBlockInterfaceHidden: isBlockInterfaceHidden3
- } = unlock(select3(store));
- const clientId = getSelectedBlockClientId2() || getFirstMultiSelectedBlockClientId2();
- const block = getBlock2(clientId);
- const hasSelectedBlock2 = !!clientId && !!block;
- const isEmptyDefaultBlock = hasSelectedBlock2 && (0, import_blocks74.isUnmodifiedDefaultBlock)(block, "content") && getBlockMode2(clientId) !== "html";
- const _showEmptyBlockSideInserter = clientId && !isTyping3() && isEmptyDefaultBlock;
- const _showBlockToolbarPopover = !isBlockInterfaceHidden3() && !getSettings7().hasFixedToolbar && !_showEmptyBlockSideInserter && hasSelectedBlock2 && !isEmptyDefaultBlock;
- return {
- showEmptyBlockSideInserter: _showEmptyBlockSideInserter,
- showBlockToolbarPopover: _showBlockToolbarPopover
- };
- }, []);
- }
-
- // packages/block-editor/build-module/components/block-tools/index.mjs
- var import_jsx_runtime319 = __toESM(require_jsx_runtime(), 1);
- function selector2(select3) {
- const {
- getSelectedBlockClientId: getSelectedBlockClientId2,
- getFirstMultiSelectedBlockClientId: getFirstMultiSelectedBlockClientId2,
- getSettings: getSettings7,
- isTyping: isTyping3,
- isDragging: isDragging3,
- isZoomOut: isZoomOut2,
- getViewportModalClientIds: getViewportModalClientIds2
- } = unlock(select3(store));
- const clientId = getSelectedBlockClientId2() || getFirstMultiSelectedBlockClientId2();
- return {
- clientId,
- hasFixedToolbar: getSettings7().hasFixedToolbar,
- isTyping: isTyping3(),
- isZoomOutMode: isZoomOut2(),
- isDragging: isDragging3(),
- viewportModalClientIds: getViewportModalClientIds2(),
- blockVisibilitySetting: select3(store).getSettings().__experimentalFeatures?.blockVisibility?.allowEditing
- };
+ ) });
}
- function BlockTools({
- children,
- __unstableContentRef,
- ...props
- }) {
- const {
- clientId,
- hasFixedToolbar,
- isTyping: isTyping3,
- isZoomOutMode,
- isDragging: isDragging3,
- viewportModalClientIds: viewportModalClientIds2,
- blockVisibilitySetting
- } = (0, import_data123.useSelect)(selector2, []);
- const isMatch = (0, import_keyboard_shortcuts10.__unstableUseShortcutEventMatch)();
- const {
- getBlocksByClientId: getBlocksByClientId2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlockEditingMode: getBlockEditingMode2,
- getBlockName: getBlockName2,
- isGroupable: isGroupable2,
- getEditedContentOnlySection: getEditedContentOnlySection2,
- canEditBlock: canEditBlock2
- } = unlock((0, import_data123.useSelect)(store));
- const { getGroupingBlockName } = (0, import_data123.useSelect)(import_blocks75.store);
- const { showEmptyBlockSideInserter, showBlockToolbarPopover } = useShowBlockTools();
- const pasteStyles = usePasteStyles();
- const [renamingBlockClientId, setRenamingBlockClientId] = (0, import_element180.useState)(null);
- const { canRename } = useBlockRename(
- getBlockName2(getSelectedBlockClientIds2()[0])
+ function MediaCategoryPanel({ rootClientId, onInsert, category }) {
+ const [search, setSearch, debouncedSearch] = (0, import_compose46.useDebouncedInput)();
+ const [page, setPage] = (0, import_element133.useState)(1);
+ const previousCategory = (0, import_compose46.usePrevious)(category.name);
+ const previousSearch = (0, import_compose46.usePrevious)(debouncedSearch);
+ if ((previousCategory !== category.name || previousSearch !== debouncedSearch) && page !== 1) {
+ setPage(1);
+ }
+ const query = (0, import_element133.useMemo)(
+ () => ({
+ per_page: MEDIA_ITEMS_PER_PAGE,
+ page,
+ search: debouncedSearch
+ }),
+ [page, debouncedSearch]
);
- const {
- duplicateBlocks: duplicateBlocks2,
- removeBlocks: removeBlocks2,
- replaceBlocks: replaceBlocks2,
- insertAfterBlock: insertAfterBlock2,
- insertBeforeBlock: insertBeforeBlock2,
- selectBlock: selectBlock2,
- moveBlocksUp: moveBlocksUp2,
- moveBlocksDown: moveBlocksDown2,
- expandBlock: expandBlock2,
- stopEditingContentOnlySection: stopEditingContentOnlySection2,
- showViewportModal: showViewportModal2,
- hideViewportModal: hideViewportModal2
- } = unlock((0, import_data123.useDispatch)(store));
- function onKeyDown(event) {
- if (event.defaultPrevented) {
+ const [refreshKey, setRefreshKey] = (0, import_element133.useState)(0);
+ const { mediaList, isLoading, totalItems, totalPages } = useMediaResults(
+ category,
+ query,
+ refreshKey
+ );
+ const numPages = totalPages || 1;
+ if (typeof totalPages === "number" && page > numPages) {
+ setPage(numPages);
+ }
+ const supportsAttachments = !category.isExternalResource;
+ const attach = supportsAttachments ? category.attach : void 0;
+ const detach = supportsAttachments ? category.detach : void 0;
+ const subscribe = supportsAttachments ? category.subscribe : void 0;
+ const showPagination = numPages > 1;
+ const hasFooter = showPagination || !!attach;
+ const scrollContainerRef = (0, import_element133.useRef)();
+ const changePage = (0, import_element133.useCallback)((nextPage) => {
+ const scrollContainer = (0, import_dom53.getScrollContainer)(
+ scrollContainerRef.current
+ );
+ scrollContainer?.scrollTo(0, 0);
+ setPage(nextPage);
+ }, []);
+ const { createErrorNotice, createSuccessNotice, createWarningNotice } = (0, import_data62.useDispatch)(import_notices7.store);
+ const showRefreshing = useDelayedLoading(isLoading);
+ const refresh = (0, import_element133.useCallback)(() => {
+ if (supportsAttachments) {
+ category.invalidate?.(query);
+ }
+ setRefreshKey((key) => key + 1);
+ }, [category, query, supportsAttachments]);
+ (0, import_element133.useEffect)(() => {
+ if (!subscribe) {
return;
}
- if (isMatch("core/block-editor/move-up", event) || isMatch("core/block-editor/move-down", event)) {
- const clientIds = getSelectedBlockClientIds2();
- if (clientIds.length) {
- event.preventDefault();
- const rootClientId = getBlockRootClientId2(clientIds[0]);
- const direction = isMatch("core/block-editor/move-up", event) ? "up" : "down";
- if (direction === "up") {
- moveBlocksUp2(clientIds, rootClientId);
- } else {
- moveBlocksDown2(clientIds, rootClientId);
- }
- const blockLength = Array.isArray(clientIds) ? clientIds.length : 1;
- const message2 = (0, import_i18n103.sprintf)(
- // translators: %d: the name of the block that has been moved
- (0, import_i18n103._n)(
- "%d block moved.",
- "%d blocks moved.",
- clientIds.length
- ),
- blockLength
- );
- (0, import_a11y12.speak)(message2);
- }
- } else if (isMatch("core/block-editor/duplicate", event)) {
- const clientIds = getSelectedBlockClientIds2();
- if (clientIds.length) {
- event.preventDefault();
- duplicateBlocks2(clientIds);
- }
- } else if (isMatch("core/block-editor/remove", event)) {
- const clientIds = getSelectedBlockClientIds2();
- if (clientIds.length) {
- event.preventDefault();
- removeBlocks2(clientIds);
- }
- } else if (isMatch("core/block-editor/paste-styles", event)) {
- const clientIds = getSelectedBlockClientIds2();
- if (clientIds.length) {
- event.preventDefault();
- const blocks2 = getBlocksByClientId2(clientIds);
- pasteStyles(blocks2);
- }
- } else if (isMatch("core/block-editor/insert-after", event)) {
- const clientIds = getSelectedBlockClientIds2();
- if (clientIds.length) {
- event.preventDefault();
- insertAfterBlock2(clientIds[clientIds.length - 1]);
- }
- } else if (isMatch("core/block-editor/insert-before", event)) {
- const clientIds = getSelectedBlockClientIds2();
- if (clientIds.length) {
- event.preventDefault();
- insertBeforeBlock2(clientIds[0]);
- }
- } else if (isMatch("core/block-editor/unselect", event)) {
- if (event.target.closest("[role=toolbar]")) {
- return;
- }
- const clientIds = getSelectedBlockClientIds2();
- if (clientIds.length > 1) {
- event.preventDefault();
- selectBlock2(clientIds[0]);
- }
- } else if (isMatch("core/block-editor/collapse-list-view", event)) {
- if ((0, import_dom60.isTextField)(event.target) || (0, import_dom60.isTextField)(
- event.target?.contentWindow?.document?.activeElement
- )) {
- return;
- }
- event.preventDefault();
- expandBlock2(clientId);
- } else if (isMatch("core/block-editor/group", event)) {
- const clientIds = getSelectedBlockClientIds2();
- if (clientIds.length > 1 && isGroupable2(clientIds)) {
- event.preventDefault();
- const blocks2 = getBlocksByClientId2(clientIds);
- const groupingBlockName = getGroupingBlockName();
- const newBlocks = (0, import_blocks75.switchToBlockType)(
- blocks2,
- groupingBlockName
- );
- replaceBlocks2(clientIds, newBlocks);
- (0, import_a11y12.speak)((0, import_i18n103.__)("Selected blocks are grouped."));
- }
- } else if (isMatch("core/block-editor/rename", event)) {
- const clientIds = getSelectedBlockClientIds2();
- if (clientIds.length === 1) {
- const isContentOnly = getBlockEditingMode2(clientIds[0]) === "contentOnly";
- const canRenameBlock = canRename && !isContentOnly && canEditBlock2(clientIds[0]);
- if (canRenameBlock) {
- event.preventDefault();
- setRenamingBlockClientId(clientIds[0]);
- }
- }
- } else if (isMatch("core/block-editor/toggle-block-visibility", event)) {
- if (blockVisibilitySetting === false) {
- return;
- }
- const clientIds = getSelectedBlockClientIds2();
- if (clientIds.length) {
- event.preventDefault();
- const blocks2 = getBlocksByClientId2(clientIds);
- const supportsBlockVisibility = blocks2.every(
- (block) => (0, import_blocks75.hasBlockSupport)(block.name, "visibility", true)
- );
- if (!supportsBlockVisibility) {
- return;
- }
- if (clientIds.some(
- (id) => getBlockEditingMode2(id) !== "default" || !canEditBlock2(id)
- )) {
+ return subscribe(() => setRefreshKey((key) => key + 1), query);
+ }, [subscribe, query]);
+ const handleAttach = (0, import_element133.useCallback)(
+ async (selectedMedia) => {
+ try {
+ const attachedCount = await attach(selectedMedia);
+ if (!attachedCount) {
+ createWarningNotice((0, import_i18n62.__)("No images were attached."), {
+ type: "snackbar",
+ id: "inserter-notice"
+ });
return;
}
- showViewportModal2(clientIds);
- }
- }
- if (isMatch("core/block-editor/stop-editing-as-blocks", event)) {
- if (getEditedContentOnlySection2()) {
- stopEditingContentOnlySection2();
- }
- }
- }
- const blockToolbarRef = use_popover_scroll_default(__unstableContentRef);
- const blockToolbarAfterRef = use_popover_scroll_default(__unstableContentRef);
- return (
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions
- /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(
- "div",
- {
- ...props,
- onKeyDown,
- className: clsx_default(props.className, {
- "block-editor-block-tools--is-dragging": isDragging3
- }),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)(InsertionPointOpenRef.Provider, { value: (0, import_element180.useRef)(false), children: [
- !isTyping3 && !isZoomOutMode && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
- InsertionPoint,
- {
- __unstableContentRef
- }
- ),
- showEmptyBlockSideInserter && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
- EmptyBlockInserter,
- {
- __unstableContentRef,
- clientId
- }
- ),
- showBlockToolbarPopover && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
- BlockToolbarPopover,
- {
- __unstableContentRef,
- clientId,
- isTyping: isTyping3
- }
- ),
- !isZoomOutMode && !hasFixedToolbar && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
- import_components115.Popover.Slot,
- {
- name: "block-toolbar",
- ref: blockToolbarRef
- }
+ refresh();
+ createSuccessNotice(
+ category.postTypeLabel ? (0, import_i18n62.sprintf)(
+ /* translators: %1$d: Number of images attached. %2$s: Name of the post type e.g: "Page". */
+ (0, import_i18n62._n)(
+ "%1$d image attached to %2$s.",
+ "%1$d images attached to %2$s.",
+ attachedCount
),
- children,
- /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
- import_components115.Popover.Slot,
- {
- name: "__unstable-block-tools-after",
- ref: blockToolbarAfterRef
- }
+ attachedCount,
+ category.postTypeLabel
+ ) : (0, import_i18n62.sprintf)(
+ /* translators: %d: Number of images attached to the post. */
+ (0, import_i18n62._n)(
+ "%d image attached to post.",
+ "%d images attached to post.",
+ attachedCount
),
- isZoomOutMode && !isDragging3 && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
- zoom_out_mode_inserters_default,
- {
- __unstableContentRef
- }
- )
- ] }),
- renamingBlockClientId && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
- BlockRenameModal,
- {
- clientId: renamingBlockClientId,
- onClose: () => setRenamingBlockClientId(null)
- }
+ attachedCount
),
- viewportModalClientIds2 && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
- BlockVisibilityModal,
- {
- clientIds: viewportModalClientIds2,
- onClose: hideViewportModal2
- }
- )
- ]
+ { type: "snackbar", id: "inserter-notice" }
+ );
+ } catch {
+ createErrorNotice((0, import_i18n62.__)("Could not attach images."), {
+ type: "snackbar",
+ id: "inserter-notice"
+ });
}
- )
- );
- }
-
- // packages/block-editor/build-module/components/observe-typing/index.mjs
- var import_compose70 = __toESM(require_compose(), 1);
- var import_data124 = __toESM(require_data(), 1);
- var import_dom61 = __toESM(require_dom(), 1);
- var import_keycodes13 = __toESM(require_keycodes(), 1);
- var import_jsx_runtime320 = __toESM(require_jsx_runtime(), 1);
- var KEY_DOWN_ELIGIBLE_KEY_CODES = /* @__PURE__ */ new Set([
- import_keycodes13.UP,
- import_keycodes13.RIGHT,
- import_keycodes13.DOWN,
- import_keycodes13.LEFT,
- import_keycodes13.ENTER,
- import_keycodes13.BACKSPACE
- ]);
- function isKeyDownEligibleForStartTyping(event) {
- const { keyCode, shiftKey } = event;
- return !shiftKey && KEY_DOWN_ELIGIBLE_KEY_CODES.has(keyCode);
- }
- function useMouseMoveTypingReset() {
- const isTyping3 = (0, import_data124.useSelect)(
- (select3) => select3(store).isTyping(),
- []
+ },
+ [
+ attach,
+ category,
+ refresh,
+ createErrorNotice,
+ createSuccessNotice,
+ createWarningNotice
+ ]
);
- const { stopTyping: stopTyping2 } = (0, import_data124.useDispatch)(store);
- return (0, import_compose70.useRefEffect)(
- (node) => {
- if (!isTyping3) {
- return;
- }
- const { ownerDocument: ownerDocument2 } = node;
- let lastClientX;
- let lastClientY;
- function stopTypingOnMouseMove(event) {
- const { clientX, clientY } = event;
- if (lastClientX && lastClientY && (lastClientX !== clientX || lastClientY !== clientY)) {
- stopTyping2();
- }
- lastClientX = clientX;
- lastClientY = clientY;
- }
- ownerDocument2.addEventListener(
- "mousemove",
- stopTypingOnMouseMove
- );
- return () => {
- ownerDocument2.removeEventListener(
- "mousemove",
- stopTypingOnMouseMove
+ const handleDetach = (0, import_element133.useCallback)(
+ async (media) => {
+ try {
+ await detach(media);
+ refresh();
+ createSuccessNotice(
+ category.postTypeLabel ? (0, import_i18n62.sprintf)(
+ /* translators: %s: Name of the post type e.g: "Page". */
+ (0, import_i18n62.__)("Image detached from %s."),
+ category.postTypeLabel
+ ) : (0, import_i18n62.__)("Image detached from post."),
+ { type: "snackbar", id: "inserter-notice" }
);
- };
+ } catch {
+ createErrorNotice((0, import_i18n62.__)("Could not detach image."), {
+ type: "snackbar",
+ id: "inserter-notice"
+ });
+ }
},
- [isTyping3, stopTyping2]
- );
- }
- function useTypingObserver() {
- const isTyping3 = (0, import_data124.useSelect)(
- (select3) => select3(store).isTyping(),
- []
+ [detach, category, refresh, createErrorNotice, createSuccessNotice]
);
- const { startTyping: startTyping2, stopTyping: stopTyping2 } = (0, import_data124.useDispatch)(store);
- const ref1 = useMouseMoveTypingReset();
- const ref2 = (0, import_compose70.useRefEffect)(
- (node) => {
- if (isTyping3) {
- let stopTypingOnNonTextField2 = function(event) {
- const { target } = event;
- timerId = defaultView.setTimeout(() => {
- if (!(0, import_dom61.isTextField)(target)) {
- stopTyping2();
- }
- });
- }, stopTypingOnEscapeKey2 = function(event) {
- const { keyCode } = event;
- if (keyCode === import_keycodes13.ESCAPE || keyCode === import_keycodes13.TAB) {
- stopTyping2();
+ const [mediaPendingDetach, setMediaPendingDetach] = (0, import_element133.useState)();
+ const confirmDetach = (0, import_element133.useCallback)(() => {
+ const media = mediaPendingDetach;
+ setMediaPendingDetach(void 0);
+ handleDetach(media);
+ }, [handleDetach, mediaPendingDetach]);
+ const baseCssClass = "block-editor-inserter__media-panel";
+ const searchLabel = category.labels.search_items || (0, import_i18n62.__)("Search");
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
+ "div",
+ {
+ ref: scrollContainerRef,
+ className: clsx_default(baseCssClass, {
+ // The footer supplies the breathing room beneath the grid, so the
+ // list drops its own bottom padding (see styles).
+ "has-footer": hasFooter
+ }),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
+ import_components53.SearchControl,
+ {
+ className: `${baseCssClass}-search`,
+ onChange: setSearch,
+ value: search,
+ label: searchLabel,
+ placeholder: searchLabel
}
- }, stopTypingOnSelectionUncollapse2 = function() {
- const selection2 = defaultView.getSelection();
- if (!selection2.isCollapsed) {
- stopTyping2();
+ ),
+ isLoading && !mediaList?.length && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("div", { className: `${baseCssClass}-spinner`, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(import_components53.Spinner, {}) }),
+ !isLoading && !mediaList?.length && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(no_results_default, { children: category.emptyMessage && !debouncedSearch ? (
+ // For a source with a custom empty message (e.g.
+ // Attachments) and no active search, an empty result
+ // means nothing is attached yet — clearer than the
+ // generic "no results found".
+ category.emptyMessage
+ ) : (0, import_i18n62.__)("No results found.") }),
+ !!mediaList?.length && // Keep the existing items visible while a refetch is in flight,
+ // dimming (and gently pulsing) them rather than clearing the grid,
+ // so it doesn't flicker or pop.
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
+ "div",
+ {
+ className: clsx_default(`${baseCssClass}-results`, {
+ "is-loading": showRefreshing
+ }),
+ "aria-busy": showRefreshing,
+ children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
+ media_list_default,
+ {
+ rootClientId,
+ onClick: onInsert,
+ onDetach: detach ? setMediaPendingDetach : void 0,
+ mediaList,
+ category
+ }
+ )
}
- };
- var stopTypingOnNonTextField = stopTypingOnNonTextField2, stopTypingOnEscapeKey = stopTypingOnEscapeKey2, stopTypingOnSelectionUncollapse = stopTypingOnSelectionUncollapse2;
- let timerId;
- const { defaultView } = node.ownerDocument;
- node.addEventListener("focus", stopTypingOnNonTextField2);
- node.addEventListener("keydown", stopTypingOnEscapeKey2);
- node.ownerDocument.addEventListener(
- "selectionchange",
- stopTypingOnSelectionUncollapse2
- );
- return () => {
- defaultView.clearTimeout(timerId);
- node.removeEventListener(
- "focus",
- stopTypingOnNonTextField2
- );
- node.removeEventListener(
- "keydown",
- stopTypingOnEscapeKey2
- );
- node.ownerDocument.removeEventListener(
- "selectionchange",
- stopTypingOnSelectionUncollapse2
- );
- };
+ ),
+ hasFooter && // A single footer wrapper owns the top and horizontal breathing
+ // room, so the pager and attach button don't span the full width
+ // and sit clear of the grid above (see styles).
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
+ Stack,
+ {
+ direction: "column",
+ gap: "sm",
+ className: `${baseCssClass}-footer`,
+ children: [
+ showPagination && // Reuse the Patterns tab pager (presentational only); only
+ // rendered for multi-page sources (see `showPagination`).
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
+ Pagination,
+ {
+ currentPage: page,
+ numPages,
+ changePage,
+ totalItems
+ }
+ ),
+ attach && // Lines up with the "Open Media Library" button in the
+ // adjacent column.
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(AttachImagesButton, { onSelect: handleAttach })
+ ]
+ }
+ ),
+ mediaPendingDetach && // A plain `Modal` (not `ConfirmDialog`) so we can pass
+ // `overlayClassName` and stack it above the options dropdown that
+ // opened it (see the z-index entry in `_z-index.scss`).
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
+ import_components53.Modal,
+ {
+ title: (0, import_i18n62.__)("Detach image"),
+ onRequestClose: () => setMediaPendingDetach(void 0),
+ overlayClassName: `${baseCssClass}-detach-modal`,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("p", { children: category.postTypeLabel ? (0, import_i18n62.sprintf)(
+ /* translators: %s: Name of the post type e.g: "Page". */
+ (0, import_i18n62.__)(
+ "Detach this image from the current %s? The image will remain in the Media Library."
+ ),
+ category.postTypeLabel
+ ) : (0, import_i18n62.__)(
+ "Detach this image from the current post? The image will remain in the Media Library."
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { className: `${baseCssClass}-detach-actions`, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
+ import_components53.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: () => setMediaPendingDetach(void 0),
+ children: (0, import_i18n62.__)("Cancel")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
+ import_components53.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ onClick: confirmDetach,
+ children: (0, import_i18n62.__)("Detach")
+ }
+ )
+ ] })
+ ]
+ }
+ )
+ ]
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/inserter/media-tab/media-tab.mjs
+ var import_jsx_runtime260 = __toESM(require_jsx_runtime(), 1);
+ var ALLOWED_MEDIA_TYPES2 = ["image", "video", "audio"];
+ function MediaTab({
+ rootClientId,
+ selectedCategory,
+ onSelectCategory,
+ onInsert,
+ children
+ }) {
+ const mediaCategories = useMediaCategories(rootClientId);
+ const isMobile = (0, import_compose47.useViewportMatch)("medium", "<");
+ const baseCssClass = "block-editor-inserter__media-tabs";
+ const onSelectMedia = (0, import_element134.useCallback)(
+ (media) => {
+ if (!media?.url) {
+ return;
}
- function startTypingInTextField(event) {
- const { type, target } = event;
- if (!(0, import_dom61.isTextField)(target) || !node.contains(target)) {
- return;
+ const mediaType = window.__experimentalDataViewsMediaModal && media.mime_type ? media.mime_type.split("/")[0] : media.type;
+ const [block] = getBlockAndPreviewFromMedia(media, mediaType);
+ onInsert(block);
+ },
+ [onInsert]
+ );
+ const categories = (0, import_element134.useMemo)(
+ () => mediaCategories.map((mediaCategory) => ({
+ ...mediaCategory,
+ label: mediaCategory.labels.name
+ })),
+ [mediaCategories]
+ );
+ (0, import_element134.useEffect)(() => {
+ if (!selectedCategory) {
+ return;
+ }
+ const latestCategory = categories.find(
+ (category) => category.name === selectedCategory.name
+ );
+ if (latestCategory && latestCategory !== selectedCategory) {
+ onSelectCategory(latestCategory);
+ } else if (!latestCategory) {
+ onSelectCategory(null);
+ }
+ }, [categories, onSelectCategory, selectedCategory]);
+ if (!categories.length) {
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(no_results_default, {});
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(import_jsx_runtime260.Fragment, { children: [
+ !isMobile && /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)("div", { className: `${baseCssClass}-container`, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
+ category_tabs_default,
+ {
+ categories,
+ selectedCategory,
+ onSelectCategory,
+ children
}
- if (type === "keydown" && !isKeyDownEligibleForStartTyping(event)) {
- return;
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(check_default2, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
+ media_upload_default,
+ {
+ multiple: false,
+ onSelect: onSelectMedia,
+ allowedTypes: ALLOWED_MEDIA_TYPES2,
+ render: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
+ import_components54.Button,
+ {
+ __next40pxDefaultSize: true,
+ onClick: (event) => {
+ event.target.focus();
+ open();
+ },
+ className: "block-editor-inserter__media-library-button",
+ variant: "secondary",
+ "data-unstable-ignore-focus-outside-for-relatedtarget": ".media-modal",
+ children: (0, import_i18n63.__)("Open Media Library")
+ }
+ )
}
- startTyping2();
+ ) })
+ ] }),
+ isMobile && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
+ MobileTabNavigation,
+ {
+ categories,
+ screenClassName: "block-editor-inserter__media-mobile-screen",
+ children: (category) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
+ MediaCategoryPanel,
+ {
+ onInsert,
+ rootClientId,
+ category
+ }
+ )
}
- node.addEventListener("keypress", startTypingInTextField);
- node.addEventListener("keydown", startTypingInTextField);
- return () => {
- node.removeEventListener("keypress", startTypingInTextField);
- node.removeEventListener("keydown", startTypingInTextField);
- };
- },
- [isTyping3, startTyping2, stopTyping2]
- );
- return (0, import_compose70.useMergeRefs)([ref1, ref2]);
- }
- function ObserveTyping({ children }) {
- return /* @__PURE__ */ (0, import_jsx_runtime320.jsx)("div", { ref: useTypingObserver(), children });
+ )
+ ] });
}
- var observe_typing_default = ObserveTyping;
+ var media_tab_default = MediaTab;
- // packages/block-editor/build-module/components/use-block-commands/index.mjs
- var import_i18n104 = __toESM(require_i18n(), 1);
- var import_blocks76 = __toESM(require_blocks(), 1);
- var import_data125 = __toESM(require_data(), 1);
- var import_commands = __toESM(require_commands(), 1);
- var getTransformCommands = () => function useTransformCommands() {
- const { replaceBlocks: replaceBlocks2, multiSelect: multiSelect2 } = (0, import_data125.useDispatch)(store);
- const {
- blocks: blocks2,
- clientIds,
- canRemove,
- possibleBlockTransformations,
- invalidSelection
- } = (0, import_data125.useSelect)((select3) => {
- const {
- getBlockRootClientId: getBlockRootClientId2,
- getBlockTransformItems: getBlockTransformItems2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getBlocksByClientId: getBlocksByClientId2,
- canRemoveBlocks: canRemoveBlocks2
- } = select3(store);
- const selectedBlockClientIds = getSelectedBlockClientIds2();
- const selectedBlocks = getBlocksByClientId2(
- selectedBlockClientIds
- );
- if (selectedBlocks.filter((block) => !block).length > 0) {
+ // packages/block-editor/build-module/components/inserter/search-results.mjs
+ var import_element135 = __toESM(require_element(), 1);
+ var import_i18n64 = __toESM(require_i18n(), 1);
+ var import_compose48 = __toESM(require_compose(), 1);
+ var import_a11y10 = __toESM(require_a11y(), 1);
+ var import_data63 = __toESM(require_data(), 1);
+
+ // packages/block-editor/build-module/components/inserter-menu-extension/index.mjs
+ var import_components55 = __toESM(require_components(), 1);
+ var { Fill: __unstableInserterMenuExtension, Slot } = (0, import_components55.createSlotFill)(
+ "__unstableInserterMenuExtension"
+ );
+ __unstableInserterMenuExtension.Slot = Slot;
+ var inserter_menu_extension_default = __unstableInserterMenuExtension;
+
+ // packages/block-editor/build-module/components/inserter/search-results.mjs
+ var import_jsx_runtime261 = __toESM(require_jsx_runtime(), 1);
+ var INITIAL_INSERTER_RESULTS = 9;
+ var EMPTY_ARRAY7 = [];
+ function InserterSearchResults({
+ filterValue,
+ onSelect,
+ onHover,
+ onHoverPattern,
+ rootClientId,
+ clientId,
+ isAppender,
+ __experimentalInsertionIndex,
+ maxBlockPatterns,
+ maxBlockTypes,
+ showBlockDirectory = false,
+ isDraggable = true,
+ shouldFocusBlock = true,
+ prioritizePatterns,
+ selectBlockOnInsert,
+ isQuick
+ }) {
+ const debouncedSpeak = (0, import_compose48.useDebounce)(import_a11y10.speak, 500);
+ const { prioritizedBlocks } = (0, import_data63.useSelect)(
+ (select3) => {
+ const blockListSettings2 = select3(store).getBlockListSettings(rootClientId);
return {
- invalidSelection: true
+ prioritizedBlocks: blockListSettings2?.prioritizedInserterBlocks || EMPTY_ARRAY7
};
+ },
+ [rootClientId]
+ );
+ const [destinationRootClientId, onInsertBlocks] = use_insertion_point_default({
+ onSelect,
+ rootClientId,
+ clientId,
+ isAppender,
+ insertionIndex: __experimentalInsertionIndex,
+ shouldFocusBlock,
+ selectBlockOnInsert
+ });
+ const [
+ blockTypes,
+ blockTypeCategories,
+ blockTypeCollections,
+ onSelectBlockType
+ ] = use_block_types_state_default(destinationRootClientId, onInsertBlocks, isQuick);
+ const [patterns, , onClickPattern] = use_patterns_state_default(
+ onInsertBlocks,
+ destinationRootClientId,
+ void 0,
+ isQuick
+ );
+ const filteredBlockPatterns = (0, import_element135.useMemo)(() => {
+ if (maxBlockPatterns === 0) {
+ return [];
}
- const rootClientId = getBlockRootClientId2(
- selectedBlockClientIds[0]
- );
- return {
- blocks: selectedBlocks,
- clientIds: selectedBlockClientIds,
- possibleBlockTransformations: getBlockTransformItems2(
- selectedBlocks,
- rootClientId
- ),
- canRemove: canRemoveBlocks2(selectedBlockClientIds),
- invalidSelection: false
- };
- }, []);
- if (invalidSelection) {
- return {
- isLoading: false,
- commands: []
- };
+ const results = searchItems(patterns, filterValue);
+ return maxBlockPatterns !== void 0 ? results.slice(0, maxBlockPatterns) : results;
+ }, [filterValue, patterns, maxBlockPatterns]);
+ let maxBlockTypesToShow = maxBlockTypes;
+ if (prioritizePatterns && filteredBlockPatterns.length > 2) {
+ maxBlockTypesToShow = 0;
}
- const isTemplate = blocks2.length === 1 && (0, import_blocks76.isTemplatePart)(blocks2[0]);
- function selectForMultipleBlocks(insertedBlocks) {
- if (insertedBlocks.length > 1) {
- multiSelect2(
- insertedBlocks[0].clientId,
- insertedBlocks[insertedBlocks.length - 1].clientId
+ const filteredBlockTypes = (0, import_element135.useMemo)(() => {
+ if (maxBlockTypesToShow === 0) {
+ return [];
+ }
+ const nonPatternBlockTypes = blockTypes.filter(
+ (blockType) => blockType.name !== "core/block"
+ );
+ let orderedItems = orderBy(nonPatternBlockTypes, "frecency", "desc");
+ if (!filterValue && prioritizedBlocks.length) {
+ orderedItems = orderInserterBlockItems(
+ orderedItems,
+ prioritizedBlocks
);
}
- }
- function onBlockTransform(name, variationName) {
- const newBlocks = (0, import_blocks76.switchToBlockType)(blocks2, name, variationName);
- replaceBlocks2(clientIds, newBlocks);
- selectForMultipleBlocks(newBlocks);
- }
- const hasPossibleBlockTransformations = !!possibleBlockTransformations.length && canRemove && !isTemplate;
- if (!clientIds || clientIds.length < 1 || !hasPossibleBlockTransformations) {
- return { isLoading: false, commands: [] };
- }
- const commands = possibleBlockTransformations.map(
- (transformation) => {
- const { id, name, title, icon, variationName } = transformation;
- const blockIcon = !icon?.src || icon?.src === "block-default" ? {
- src: block_default_default
- } : icon;
- return {
- name: "core/block-editor/transform-to-" + (id || name).replace(/\//g, "-"),
- /* translators: %s: Block or block variation name. */
- label: (0, import_i18n104.sprintf)((0, import_i18n104.__)("Transform to %s"), title),
- icon: blockIcon?.src,
- category: "command",
- callback: ({ close }) => {
- onBlockTransform(name, variationName);
- close();
+ const results = searchBlockItems(
+ orderedItems,
+ blockTypeCategories,
+ blockTypeCollections,
+ filterValue
+ );
+ return maxBlockTypesToShow !== void 0 ? results.slice(0, maxBlockTypesToShow) : results;
+ }, [
+ filterValue,
+ blockTypes,
+ blockTypeCategories,
+ blockTypeCollections,
+ maxBlockTypesToShow,
+ prioritizedBlocks
+ ]);
+ (0, import_element135.useEffect)(() => {
+ if (!filterValue) {
+ return;
+ }
+ const count = filteredBlockTypes.length + filteredBlockPatterns.length;
+ const resultsFoundMessage = (0, import_i18n64.sprintf)(
+ /* translators: %d: number of results. */
+ (0, import_i18n64._n)("%d result found.", "%d results found.", count),
+ count
+ );
+ debouncedSpeak(resultsFoundMessage);
+ }, [
+ filterValue,
+ debouncedSpeak,
+ filteredBlockTypes,
+ filteredBlockPatterns
+ ]);
+ const currentShownBlockTypes = (0, import_compose48.useAsyncList)(filteredBlockTypes, {
+ step: INITIAL_INSERTER_RESULTS
+ });
+ const hasItems = filteredBlockTypes.length > 0 || filteredBlockPatterns.length > 0;
+ const blocksUI = !!filteredBlockTypes.length && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
+ panel_default,
+ {
+ title: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(VisuallyHidden, { children: (0, import_i18n64.__)("Blocks") }),
+ children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
+ block_types_list_default,
+ {
+ items: currentShownBlockTypes,
+ onSelect: onSelectBlockType,
+ onHover,
+ label: (0, import_i18n64.__)("Blocks"),
+ isDraggable
}
- };
+ )
}
);
- return { isLoading: false, commands };
- };
- var getQuickActionsCommands = () => function useQuickActionsCommands() {
- const {
- clientIds,
- isUngroupable: isUngroupable2,
- isGroupable: isGroupable2,
- blockVisibilitySetting
- } = (0, import_data125.useSelect)((select3) => {
- const {
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getSettings: getSettings7,
- isUngroupable: _isUngroupable,
- isGroupable: _isGroupable
- } = select3(store);
- const selectedBlockClientIds = getSelectedBlockClientIds2();
- return {
- clientIds: selectedBlockClientIds,
- isUngroupable: _isUngroupable(),
- isGroupable: _isGroupable(),
- blockVisibilitySetting: getSettings7().__experimentalFeatures?.blockVisibility?.allowEditing
- };
- }, []);
- const {
- canInsertBlockType: canInsertBlockType2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlocksByClientId: getBlocksByClientId2,
- canRemoveBlocks: canRemoveBlocks2,
- isBlockHiddenAnywhere: isBlockHiddenAnywhere2
- } = unlock((0, import_data125.useSelect)(store));
- const { getBlockEditingMode: getBlockEditingMode2 } = (0, import_data125.useSelect)(store);
- const { getDefaultBlockName: getDefaultBlockName8, getGroupingBlockName } = (0, import_data125.useSelect)(import_blocks76.store);
- const blocks2 = getBlocksByClientId2(clientIds);
- const blockEditorDispatch = (0, import_data125.useDispatch)(store);
- const {
- removeBlocks: removeBlocks2,
- replaceBlocks: replaceBlocks2,
- duplicateBlocks: duplicateBlocks2,
- insertAfterBlock: insertAfterBlock2,
- insertBeforeBlock: insertBeforeBlock2
- } = blockEditorDispatch;
- const onGroup = () => {
- if (!blocks2.length) {
- return;
- }
- const groupingBlockName = getGroupingBlockName();
- const newBlocks = (0, import_blocks76.switchToBlockType)(blocks2, groupingBlockName);
- if (!newBlocks) {
- return;
- }
- replaceBlocks2(clientIds, newBlocks);
- };
- const onUngroup = () => {
- if (!blocks2.length) {
- return;
- }
- const innerBlocks = blocks2[0].innerBlocks;
- if (!innerBlocks.length) {
- return;
+ const patternsUI = !!filteredBlockPatterns.length && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
+ panel_default,
+ {
+ title: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(VisuallyHidden, { children: (0, import_i18n64.__)("Patterns") }),
+ children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("div", { className: "block-editor-inserter__quick-inserter-patterns", children: /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
+ block_patterns_list_default,
+ {
+ blockPatterns: filteredBlockPatterns,
+ onClickPattern,
+ onHover: onHoverPattern,
+ isDraggable
+ }
+ ) })
}
- replaceBlocks2(clientIds, innerBlocks);
- };
- if (!clientIds || clientIds.length < 1) {
- return { isLoading: false, commands: [] };
- }
- const { showViewportModal: showViewportModal2 } = unlock(blockEditorDispatch);
- const rootClientId = getBlockRootClientId2(clientIds[0]);
- const canInsertDefaultBlock = canInsertBlockType2(
- getDefaultBlockName8(),
- rootClientId
);
- const canDuplicate = blocks2.every((block) => {
- return !!block && (0, import_blocks76.hasBlockSupport)(block.name, "multiple", true) && canInsertBlockType2(block.name, rootClientId);
- });
- const canRemove = canRemoveBlocks2(clientIds);
- const commands = [];
- if (canDuplicate) {
- commands.push({
- name: "duplicate",
- label: (0, import_i18n104.__)("Duplicate"),
- callback: () => duplicateBlocks2(clientIds, true),
- icon: copy_default
- });
- }
- if (canInsertDefaultBlock) {
- commands.push(
- {
- name: "add-before",
- label: (0, import_i18n104.__)("Add before"),
- callback: () => {
- const clientId = Array.isArray(clientIds) ? clientIds[0] : clientId;
- insertBeforeBlock2(clientId);
- },
- icon: plus_default
- },
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(inserter_listbox_default, { children: [
+ !showBlockDirectory && !hasItems && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(no_results_default, {}),
+ prioritizePatterns ? patternsUI : blocksUI,
+ !!filteredBlockTypes.length && !!filteredBlockPatterns.length && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("div", { className: "block-editor-inserter__quick-inserter-separator" }),
+ prioritizePatterns ? blocksUI : patternsUI,
+ showBlockDirectory && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
+ inserter_menu_extension_default.Slot,
{
- name: "add-after",
- label: (0, import_i18n104.__)("Add after"),
- callback: () => {
- const clientId = Array.isArray(clientIds) ? clientIds[clientIds.length - 1] : clientId;
- insertAfterBlock2(clientId);
+ fillProps: {
+ onSelect: onSelectBlockType,
+ onHover,
+ filterValue,
+ hasItems,
+ rootClientId: destinationRootClientId
},
- icon: plus_default
- }
- );
- }
- if (isGroupable2) {
- commands.push({
- name: "Group",
- label: (0, import_i18n104.__)("Group"),
- callback: onGroup,
- icon: group_default
- });
- }
- if (isUngroupable2) {
- commands.push({
- name: "ungroup",
- label: (0, import_i18n104.__)("Ungroup"),
- callback: onUngroup,
- icon: ungroup_default
- });
- }
- if (canRemove) {
- commands.push({
- name: "remove",
- label: (0, import_i18n104.__)("Delete"),
- callback: () => removeBlocks2(clientIds, true),
- icon: trash_default
- });
- }
- const supportsVisibility = blocks2.every(
- (block) => !!block && (0, import_blocks76.hasBlockSupport)(block.name, "visibility", true)
- );
- const allBlocksDefaultMode = clientIds.every(
- (id) => getBlockEditingMode2(id) === "default"
- );
- if (supportsVisibility && allBlocksDefaultMode && blockVisibilitySetting !== false) {
- const hasHiddenBlock = clientIds.some(
- (id) => isBlockHiddenAnywhere2(id)
- );
- commands.push({
- name: "toggle-visibility",
- label: hasHiddenBlock ? (0, import_i18n104.__)("Show") : (0, import_i18n104.__)("Hide"),
- callback: () => showViewportModal2(clientIds),
- icon: hasHiddenBlock ? seen_default : unseen_default
- });
- }
- return {
- isLoading: false,
- commands: commands.map((command) => ({
- ...command,
- name: "core/block-editor/action-" + command.name,
- category: "command",
- callback: ({ close }) => {
- command.callback();
- close();
+ children: (fills) => {
+ if (fills.length) {
+ return fills;
+ }
+ if (!hasItems) {
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(no_results_default, {});
+ }
+ return null;
+ }
}
- }))
- };
- };
- var useBlockCommands = () => {
- (0, import_commands.useCommandLoader)({
- name: "core/block-editor/blockTransforms",
- hook: getTransformCommands()
- });
- (0, import_commands.useCommandLoader)({
- name: "core/block-editor/blockQuickActions",
- hook: getQuickActionsCommands(),
- context: "block-selection-edit"
- });
- };
+ )
+ ] });
+ }
+ var search_results_default = InserterSearchResults;
- // packages/block-editor/build-module/components/block-canvas/index.mjs
- var import_jsx_runtime321 = __toESM(require_jsx_runtime(), 1);
- var BlockCanvasCover = (0, import_components116.createSlotFill)(/* @__PURE__ */ Symbol("BlockCanvasCover"));
- function BlockCanvasCoverWrapper({ children }) {
- return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
- "div",
+ // packages/block-editor/build-module/components/tabbed-sidebar/index.mjs
+ var import_components56 = __toESM(require_components(), 1);
+ var import_element136 = __toESM(require_element(), 1);
+ var import_jsx_runtime262 = __toESM(require_jsx_runtime(), 1);
+ var { Tabs: Tabs2 } = unlock(import_components56.privateApis);
+ function TabbedSidebar({ defaultTabId, onClose, onSelect, selectedTab, tabs, closeButtonLabel }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("div", { className: "block-editor-tabbed-sidebar", children: /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
+ Tabs2,
{
- className: "block-canvas-cover",
- style: {
- position: "absolute",
- top: 0,
- left: 0,
- width: "100%",
- height: "100%",
- pointerEvents: "none"
- },
- children
- }
- );
- }
- var EDITOR_STYLE_TRANSFORM_OPTIONS = {
- // Don't transform selectors that already specify `.editor-styles-wrapper`.
- ignoredSelectors: [/\.editor-styles-wrapper/gi]
- };
- function ExperimentalBlockCanvas({
- shouldIframe = true,
- height = "300px",
- children = /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(BlockList, {}),
- styles,
- contentRef: contentRefProp,
- iframeProps
- }) {
- useBlockCommands();
- const isTabletViewport = (0, import_compose71.useViewportMatch)("medium", "<");
- const resetTypingRef = useMouseMoveTypingReset();
- const clearerRef = useBlockSelectionClearer();
- const localRef = (0, import_element181.useRef)();
- const contentRef = (0, import_compose71.useMergeRefs)([
- contentRefProp,
- clearerRef,
- localRef,
- useTypingObserver()
- ]);
- const zoomLevel2 = (0, import_data126.useSelect)(
- (select3) => unlock(select3(store)).getZoomLevel(),
- []
- );
- const zoomOutIframeProps = zoomLevel2 !== 100 && !isTabletViewport ? {
- scale: zoomLevel2,
- frameSize: "40px"
- } : {};
- if (!shouldIframe) {
- return /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(
- BlockTools,
- {
- __unstableContentRef: localRef,
- style: { height, display: "flex" },
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(BlockCanvasCover.Slot, { fillProps: { containerRef: localRef }, children: (covers) => covers.map((cover, index2) => /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(BlockCanvasCoverWrapper, { children: cover }, index2)) }),
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
- editor_styles_default,
+ selectOnMove: false,
+ defaultTabId,
+ onSelect,
+ selectedTabId: selectedTab,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)("div", { className: "block-editor-tabbed-sidebar__tablist-and-close-button", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
+ import_components56.Button,
{
- styles,
- scope: ":where(.editor-styles-wrapper)",
- transformOptions: EDITOR_STYLE_TRANSFORM_OPTIONS
+ className: "block-editor-tabbed-sidebar__close-button",
+ icon: close_small_default,
+ label: closeButtonLabel,
+ onClick: () => onClose(),
+ size: "compact"
}
),
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
- writing_flow_default,
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
+ Tabs2.TabList,
{
- ref: contentRef,
- className: "editor-styles-wrapper",
- tabIndex: -1,
- style: {
- height: "100%",
- width: "100%",
- overflow: "auto"
- },
- children
+ className: "block-editor-tabbed-sidebar__tablist",
+ ref,
+ children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
+ Tabs2.Tab,
+ {
+ tabId: tab.name,
+ className: "block-editor-tabbed-sidebar__tab",
+ children: tab.title
+ },
+ tab.name
+ ))
}
)
- ]
- }
- );
- }
- return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
- BlockTools,
- {
- __unstableContentRef: localRef,
- style: { height, display: "flex" },
- children: /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(
- iframe_default,
- {
- ...iframeProps,
- ...zoomOutIframeProps,
- ref: resetTypingRef,
- contentRef,
- style: {
- ...iframeProps?.style
+ ] }),
+ tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
+ Tabs2.TabPanel,
+ {
+ tabId: tab.name,
+ focusable: false,
+ className: "block-editor-tabbed-sidebar__tabpanel",
+ ref: tab.panelRef,
+ children: tab.panel
},
- name: "editor-canvas",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(BlockCanvasCover.Slot, { fillProps: { containerRef: localRef }, children: (covers) => covers.map((cover, index2) => /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(BlockCanvasCoverWrapper, { children: cover }, index2)) }),
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(editor_styles_default, { styles }),
- children
- ]
- }
- )
+ tab.name
+ ))
+ ]
}
- );
- }
- function BlockCanvas({ children, height, styles }) {
- return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(ExperimentalBlockCanvas, { height, styles, children });
+ ) });
}
- var block_canvas_default = BlockCanvas;
+ var tabbed_sidebar_default = (0, import_element136.forwardRef)(TabbedSidebar);
- // packages/block-editor/build-module/components/color-style-selector/index.mjs
- var import_components117 = __toESM(require_components(), 1);
- var import_i18n105 = __toESM(require_i18n(), 1);
- var import_keycodes14 = __toESM(require_keycodes(), 1);
- var import_deprecated13 = __toESM(require_deprecated(), 1);
- var import_jsx_runtime322 = __toESM(require_jsx_runtime(), 1);
- var ColorSelectorSVGIcon = () => /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(import_components117.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", children: /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(import_components117.Path, { d: "M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z" }) });
- var ColorSelectorIcon = ({ style, className }) => {
- return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)("div", { className: "block-library-colors-selector__icon-container", children: /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
- "div",
- {
- className: `${className} block-library-colors-selector__state-selection`,
- style,
- children: /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(ColorSelectorSVGIcon, {})
- }
- ) });
- };
- var renderToggleComponent = ({ TextColor, BackgroundColor }) => function ToggleComponent({ onToggle, isOpen }) {
- const openOnArrowDown = (event) => {
- if (!isOpen && event.keyCode === import_keycodes14.DOWN) {
- event.preventDefault();
- onToggle();
- }
- };
- return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(import_components117.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
- import_components117.ToolbarButton,
- {
- className: "components-toolbar__control block-library-colors-selector__toggle",
- label: (0, import_i18n105.__)("Open Colors Selector"),
- onClick: onToggle,
- onKeyDown: openOnArrowDown,
- icon: /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(BackgroundColor, { children: /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(TextColor, { children: /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(ColorSelectorIcon, {}) }) })
- }
- ) });
- };
- var BlockColorsStyleSelector = ({ children, ...other }) => {
- (0, import_deprecated13.default)(`wp.blockEditor.BlockColorsStyleSelector`, {
- alternative: "block supports API",
- since: "6.1",
- version: "6.3"
- });
- return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
- import_components117.Dropdown,
- {
- popoverProps: { placement: "bottom-start" },
- className: "block-library-colors-selector",
- contentClassName: "block-library-colors-selector__popover",
- renderToggle: renderToggleComponent(other),
- renderContent: () => children
- }
+ // packages/block-editor/build-module/hooks/use-zoom-out.mjs
+ var import_data64 = __toESM(require_data(), 1);
+ var import_element137 = __toESM(require_element(), 1);
+ function useZoomOut(enabled = true) {
+ const { setZoomLevel: setZoomLevel2, resetZoomLevel: resetZoomLevel2 } = unlock(
+ (0, import_data64.useDispatch)(store)
);
- };
- var color_style_selector_default = BlockColorsStyleSelector;
-
- // packages/block-editor/build-module/components/block-navigation/dropdown.mjs
- var import_deprecated15 = __toESM(require_deprecated(), 1);
- var import_components124 = __toESM(require_components(), 1);
- var import_i18n114 = __toESM(require_i18n(), 1);
- var import_data138 = __toESM(require_data(), 1);
- var import_element199 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/list-view/index.mjs
- var import_compose77 = __toESM(require_compose(), 1);
- var import_components123 = __toESM(require_components(), 1);
- var import_data137 = __toESM(require_data(), 1);
- var import_deprecated14 = __toESM(require_deprecated(), 1);
- var import_element198 = __toESM(require_element(), 1);
- var import_i18n113 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/list-view/branch.mjs
- var import_components121 = __toESM(require_components(), 1);
- var import_element191 = __toESM(require_element(), 1);
- var import_data130 = __toESM(require_data(), 1);
-
- // packages/block-editor/build-module/components/list-view/appender.mjs
- var import_compose72 = __toESM(require_compose(), 1);
- var import_a11y13 = __toESM(require_a11y(), 1);
- var import_data127 = __toESM(require_data(), 1);
- var import_element184 = __toESM(require_element(), 1);
- var import_i18n106 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/list-view/context.mjs
- var import_element182 = __toESM(require_element(), 1);
- var ListViewContext = (0, import_element182.createContext)({});
- ListViewContext.displayName = "ListViewContext";
- var useListViewContext = () => (0, import_element182.useContext)(ListViewContext);
-
- // packages/block-editor/build-module/components/list-view/aria-referenced-text.mjs
- var import_element183 = __toESM(require_element(), 1);
- var import_jsx_runtime323 = __toESM(require_jsx_runtime(), 1);
- function AriaReferencedText({ children, ...props }) {
- const ref = (0, import_element183.useRef)();
- (0, import_element183.useEffect)(() => {
- if (ref.current) {
- ref.current.textContent = ref.current.textContent;
+ const { isZoomedOut, isZoomOut: isZoomOut2 } = (0, import_data64.useSelect)((select3) => {
+ const { isZoomOut: _isZoomOut } = unlock(select3(store));
+ return {
+ isZoomedOut: _isZoomOut(),
+ isZoomOut: _isZoomOut
+ };
+ }, []);
+ const controlZoomLevelRef = (0, import_element137.useRef)(false);
+ const isEnabledRef = (0, import_element137.useRef)(enabled);
+ (0, import_element137.useEffect)(() => {
+ if (isZoomedOut !== isEnabledRef.current) {
+ controlZoomLevelRef.current = false;
+ }
+ }, [isZoomedOut]);
+ (0, import_element137.useEffect)(() => {
+ isEnabledRef.current = enabled;
+ if (enabled !== isZoomOut2()) {
+ controlZoomLevelRef.current = true;
+ if (enabled) {
+ setZoomLevel2("auto-scaled");
+ } else {
+ resetZoomLevel2();
+ }
}
- }, [children]);
- return /* @__PURE__ */ (0, import_jsx_runtime323.jsx)("div", { hidden: true, ...props, ref, children });
+ return () => {
+ if (controlZoomLevelRef.current && isZoomOut2()) {
+ resetZoomLevel2();
+ }
+ };
+ }, [enabled, isZoomOut2, resetZoomLevel2, setZoomLevel2]);
}
- // packages/block-editor/build-module/components/list-view/appender.mjs
- var import_jsx_runtime324 = __toESM(require_jsx_runtime(), 1);
- var Appender = (0, import_element184.forwardRef)(
- ({ nestingLevel, blockCount, clientId, ...props }, ref) => {
- const { insertedBlock, setInsertedBlock } = useListViewContext();
- const instanceId = (0, import_compose72.useInstanceId)(Appender);
- const { directInsert, hideInserter } = (0, import_data127.useSelect)(
- (select3) => {
- const { getBlockListSettings: getBlockListSettings2, getTemplateLock: getTemplateLock2, isZoomOut: isZoomOut2 } = unlock(select3(store));
- const settings2 = getBlockListSettings2(clientId);
- const directInsertValue = settings2?.directInsert || false;
- const hideInserterValue = !!getTemplateLock2(clientId) || isZoomOut2();
- return {
- directInsert: directInsertValue,
- hideInserter: hideInserterValue
- };
- },
- [clientId]
+ // packages/block-editor/build-module/components/inserter/menu.mjs
+ var import_jsx_runtime263 = __toESM(require_jsx_runtime(), 1);
+ var NOOP2 = () => {
+ };
+ function InserterMenu({
+ rootClientId,
+ clientId,
+ isAppender,
+ __experimentalInsertionIndex,
+ onSelect,
+ showInserterHelpPanel,
+ showMostUsedBlocks,
+ __experimentalFilterValue = "",
+ shouldFocusBlock = true,
+ onPatternCategorySelection,
+ onClose,
+ __experimentalInitialTab,
+ __experimentalInitialCategory
+ }, ref) {
+ const { isZoomOutMode, hasSectionRootClientId } = (0, import_data65.useSelect)((select3) => {
+ const { isZoomOut: isZoomOut2, getSectionRootClientId: getSectionRootClientId2 } = unlock(
+ select3(store)
);
- const blockTitle = useBlockDisplayTitle({
- clientId,
- context: "list-view"
- });
- const insertedBlockTitle = useBlockDisplayTitle({
- clientId: insertedBlock?.clientId,
- context: "list-view"
- });
- (0, import_element184.useEffect)(() => {
- if (!insertedBlockTitle?.length) {
- return;
- }
- (0, import_a11y13.speak)(
- (0, import_i18n106.sprintf)(
- // translators: %s: name of block being inserted (i.e. Paragraph, Image, Group etc)
- (0, import_i18n106.__)("%s block inserted"),
- insertedBlockTitle
- ),
- "assertive"
- );
- }, [insertedBlockTitle]);
- if (hideInserter) {
- return null;
+ return {
+ isZoomOutMode: isZoomOut2(),
+ hasSectionRootClientId: !!getSectionRootClientId2()
+ };
+ }, []);
+ const [filterValue, setFilterValue, delayedFilterValue] = (0, import_compose49.useDebouncedInput)(__experimentalFilterValue);
+ const [hoveredItem, setHoveredItem] = (0, import_element138.useState)(null);
+ const [selectedPatternCategory, setSelectedPatternCategory] = (0, import_element138.useState)(
+ __experimentalInitialCategory
+ );
+ const [patternFilter, setPatternFilter] = (0, import_element138.useState)("all");
+ const [selectedMediaCategory, setSelectedMediaCategory] = (0, import_element138.useState)(null);
+ const isLargeViewport = (0, import_compose49.useViewportMatch)("large");
+ const isMobileViewport = (0, import_compose49.useViewportMatch)("medium", "<");
+ const maybeCloseInserter = isMobileViewport ? onClose : NOOP2;
+ function getInitialTab() {
+ if (__experimentalInitialTab) {
+ return __experimentalInitialTab;
}
- const descriptionId = `list-view-appender__${instanceId}`;
- const description = (0, import_i18n106.sprintf)(
- /* translators: 1: The name of the block. 2: The numerical position of the block. 3: The level of nesting for the block. */
- (0, import_i18n106.__)("Append to %1$s block at position %2$d, Level %3$d"),
- blockTitle,
- blockCount + 1,
- nestingLevel
- );
- return /* @__PURE__ */ (0, import_jsx_runtime324.jsxs)("div", { className: "list-view-appender", children: [
- /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
- inserter_default,
- {
- ref,
- rootClientId: clientId,
- position: "bottom right",
- isAppender: true,
- selectBlockOnInsert: false,
- shouldDirectInsert: directInsert,
- __experimentalIsQuick: true,
- ...props,
- toggleProps: { "aria-describedby": descriptionId },
- onSelectOrClose: (maybeInsertedBlock) => {
- if (maybeInsertedBlock?.clientId) {
- setInsertedBlock(maybeInsertedBlock);
- }
- }
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(AriaReferencedText, { id: descriptionId, children: description })
- ] });
+ if (isZoomOutMode) {
+ return "patterns";
+ }
+ return "blocks";
}
- );
-
- // packages/block-editor/build-module/components/list-view/block.mjs
- var import_blocks77 = __toESM(require_blocks(), 1);
- var import_components120 = __toESM(require_components(), 1);
- var import_compose74 = __toESM(require_compose(), 1);
- var import_element190 = __toESM(require_element(), 1);
- var import_data129 = __toESM(require_data(), 1);
- var import_i18n109 = __toESM(require_i18n(), 1);
- var import_keycodes16 = __toESM(require_keycodes(), 1);
- var import_is_shallow_equal2 = __toESM(require_is_shallow_equal(), 1);
- var import_keyboard_shortcuts11 = __toESM(require_keyboard_shortcuts(), 1);
- var import_a11y14 = __toESM(require_a11y(), 1);
-
- // packages/block-editor/build-module/components/list-view/leaf.mjs
- var import_components118 = __toESM(require_components(), 1);
- var import_compose73 = __toESM(require_compose(), 1);
- var import_element185 = __toESM(require_element(), 1);
- var import_jsx_runtime325 = __toESM(require_jsx_runtime(), 1);
- var AnimatedTreeGridRow = animated(import_components118.__experimentalTreeGridRow);
- var ListViewLeaf = (0, import_element185.forwardRef)(
- ({
- isDragged,
- isSelected,
- position,
- level,
- rowCount,
- children,
- className,
- path,
- ...props
- }, ref) => {
- const animationRef = use_moving_animation_default({
- clientId: props["data-block"],
- enableAnimation: true,
- triggerAnimationOnChange: path
- });
- const mergedRef = (0, import_compose73.useMergeRefs)([ref, animationRef]);
- return /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
- AnimatedTreeGridRow,
+ const [selectedTab, setSelectedTab] = (0, import_element138.useState)(getInitialTab());
+ const shouldUseZoomOut = hasSectionRootClientId && (selectedTab === "patterns" || selectedTab === "media");
+ useZoomOut(shouldUseZoomOut && isLargeViewport);
+ const [destinationRootClientId, onInsertBlocks, onToggleInsertionPoint] = use_insertion_point_default({
+ rootClientId,
+ clientId,
+ isAppender,
+ insertionIndex: __experimentalInsertionIndex,
+ shouldFocusBlock
+ });
+ const blockTypesTabRef = (0, import_element138.useRef)();
+ const onInsert = (0, import_element138.useCallback)(
+ (blocks2, meta, shouldForceFocusBlock, _rootClientId) => {
+ onInsertBlocks(
+ blocks2,
+ meta,
+ shouldForceFocusBlock,
+ _rootClientId
+ );
+ onSelect(blocks2);
+ maybeCloseInserter();
+ window.requestAnimationFrame(() => {
+ if (!shouldFocusBlock && !blockTypesTabRef.current?.contains(
+ ref.current.ownerDocument.activeElement
+ )) {
+ blockTypesTabRef.current?.querySelector("button").focus();
+ }
+ });
+ },
+ [onInsertBlocks, maybeCloseInserter, onSelect, ref, shouldFocusBlock]
+ );
+ const onInsertPattern = (0, import_element138.useCallback)(
+ (blocks2, patternName, ...args) => {
+ onToggleInsertionPoint(false);
+ onInsertBlocks(blocks2, { patternName }, ...args);
+ onSelect();
+ maybeCloseInserter();
+ },
+ [onInsertBlocks, maybeCloseInserter, onSelect, onToggleInsertionPoint]
+ );
+ const onHover = (0, import_element138.useCallback)(
+ (item) => {
+ onToggleInsertionPoint(item);
+ setHoveredItem(item);
+ },
+ [onToggleInsertionPoint, setHoveredItem]
+ );
+ const onClickPatternCategory = (0, import_element138.useCallback)(
+ (patternCategory, filter) => {
+ setSelectedPatternCategory(patternCategory);
+ setPatternFilter(filter);
+ onPatternCategorySelection?.();
+ },
+ [setSelectedPatternCategory, onPatternCategorySelection]
+ );
+ const showPatternPanel = selectedTab === "patterns" && !delayedFilterValue && !!selectedPatternCategory;
+ const showMediaPanel = selectedTab === "media" && !!selectedMediaCategory;
+ const [isScrolled, setIsScrolled] = (0, import_element138.useState)(false);
+ const blocksPanelRef = (0, import_element138.useRef)(null);
+ const patternsPanelRef = (0, import_element138.useRef)(null);
+ const mediaPanelRef = (0, import_element138.useRef)(null);
+ (0, import_element138.useEffect)(() => {
+ const handleScroll = (event) => {
+ setIsScrolled(event.currentTarget.scrollTop > 0);
+ };
+ const panels = [
+ blocksPanelRef.current,
+ patternsPanelRef.current,
+ mediaPanelRef.current
+ ].filter(Boolean);
+ panels.forEach(
+ (panel) => panel.addEventListener("scroll", handleScroll)
+ );
+ return () => {
+ panels.forEach(
+ (panel) => panel.removeEventListener("scroll", handleScroll)
+ );
+ };
+ }, []);
+ const inserterSearch = (0, import_element138.useMemo)(() => {
+ if (selectedTab === "media") {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_jsx_runtime263.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
+ import_components57.SearchControl,
+ {
+ className: clsx_default("block-editor-inserter__search", {
+ "is-scrolled": isScrolled
+ }),
+ onChange: (value) => {
+ if (hoveredItem) {
+ setHoveredItem(null);
+ }
+ setFilterValue(value);
+ },
+ value: filterValue,
+ label: (0, import_i18n65.__)("Search"),
+ placeholder: (0, import_i18n65.__)("Search")
+ }
+ ),
+ !!delayedFilterValue && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
+ search_results_default,
+ {
+ filterValue: delayedFilterValue,
+ onSelect,
+ onHover,
+ rootClientId,
+ clientId,
+ isAppender,
+ __experimentalInsertionIndex,
+ showBlockDirectory: true,
+ shouldFocusBlock,
+ prioritizePatterns: selectedTab === "patterns"
+ }
+ )
+ ] });
+ }, [
+ selectedTab,
+ hoveredItem,
+ setHoveredItem,
+ setFilterValue,
+ filterValue,
+ delayedFilterValue,
+ onSelect,
+ onHover,
+ shouldFocusBlock,
+ clientId,
+ rootClientId,
+ __experimentalInsertionIndex,
+ isAppender,
+ isScrolled
+ ]);
+ const blocksTab = (0, import_element138.useMemo)(() => {
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_jsx_runtime263.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("div", { className: "block-editor-inserter__block-list", children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
+ block_types_tab_default,
+ {
+ ref: blockTypesTabRef,
+ rootClientId: destinationRootClientId,
+ onInsert,
+ onHover,
+ showMostUsedBlocks
+ }
+ ) }),
+ showInserterHelpPanel && /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)("div", { className: "block-editor-inserter__tips", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("h2", {}), children: (0, import_i18n65.__)("A tip for using the block editor") }),
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(tips_default, {})
+ ] })
+ ] });
+ }, [
+ destinationRootClientId,
+ onInsert,
+ onHover,
+ showMostUsedBlocks,
+ showInserterHelpPanel
+ ]);
+ const patternsTab = (0, import_element138.useMemo)(() => {
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
+ block_patterns_tab_default,
{
- ref: mergedRef,
- className: clsx_default("block-editor-list-view-leaf", className),
- level,
- positionInSet: position,
- setSize: rowCount,
- isExpanded: void 0,
- ...props,
- children
+ rootClientId: destinationRootClientId,
+ onInsert: onInsertPattern,
+ onSelectCategory: onClickPatternCategory,
+ selectedCategory: selectedPatternCategory,
+ children: showPatternPanel && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
+ PatternCategoryPreviews,
+ {
+ rootClientId: destinationRootClientId,
+ onInsert: onInsertPattern,
+ category: selectedPatternCategory,
+ patternFilter,
+ showTitlesAsTooltip: true
+ }
+ )
}
);
- }
- );
- var leaf_default = ListViewLeaf;
-
- // packages/block-editor/build-module/components/list-view/use-list-view-scroll-into-view.mjs
- var import_dom62 = __toESM(require_dom(), 1);
- var import_element186 = __toESM(require_element(), 1);
- function useListViewScrollIntoView({
- isSelected,
- selectedClientIds,
- rowItemRef
- }) {
- const isSingleSelection = selectedClientIds.length === 1;
- (0, import_element186.useLayoutEffect)(() => {
- if (!isSelected || !isSingleSelection || !rowItemRef.current) {
- return;
+ }, [
+ destinationRootClientId,
+ onInsertPattern,
+ onClickPatternCategory,
+ patternFilter,
+ selectedPatternCategory,
+ showPatternPanel
+ ]);
+ const mediaTab = (0, import_element138.useMemo)(() => {
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
+ media_tab_default,
+ {
+ rootClientId: destinationRootClientId,
+ selectedCategory: selectedMediaCategory,
+ onSelectCategory: setSelectedMediaCategory,
+ onInsert,
+ children: showMediaPanel && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
+ MediaCategoryPanel,
+ {
+ rootClientId: destinationRootClientId,
+ onInsert,
+ category: selectedMediaCategory
+ }
+ )
+ }
+ );
+ }, [
+ destinationRootClientId,
+ onInsert,
+ selectedMediaCategory,
+ setSelectedMediaCategory,
+ showMediaPanel
+ ]);
+ const handleSetSelectedTab = (value) => {
+ if (value !== "patterns") {
+ setSelectedPatternCategory(null);
}
- const scrollContainer = (0, import_dom62.getScrollContainer)(rowItemRef.current);
- const { ownerDocument: ownerDocument2 } = rowItemRef.current;
- const windowScroll = scrollContainer === ownerDocument2.body || scrollContainer === ownerDocument2.documentElement;
- if (windowScroll || !scrollContainer) {
- return;
+ setSelectedTab(value);
+ };
+ const tabsRef = (0, import_element138.useRef)();
+ (0, import_element138.useLayoutEffect)(() => {
+ if (tabsRef.current) {
+ window.requestAnimationFrame(() => {
+ tabsRef.current.querySelector('[role="tab"][aria-selected="true"]')?.focus();
+ });
}
- const rowRect = rowItemRef.current.getBoundingClientRect();
- const scrollContainerRect = scrollContainer.getBoundingClientRect();
- if (rowRect.top < scrollContainerRect.top || rowRect.bottom > scrollContainerRect.bottom) {
- rowItemRef.current.scrollIntoView();
+ }, []);
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
+ "div",
+ {
+ className: clsx_default("block-editor-inserter__menu", {
+ "show-panel": showPatternPanel || showMediaPanel,
+ "is-zoom-out": isZoomOutMode
+ }),
+ ref,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("div", { className: "block-editor-inserter__main-area", children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
+ tabbed_sidebar_default,
+ {
+ ref: tabsRef,
+ onSelect: handleSetSelectedTab,
+ onClose,
+ selectedTab,
+ closeButtonLabel: (0, import_i18n65.__)("Close Block Inserter"),
+ tabs: [
+ {
+ name: "blocks",
+ title: (0, import_i18n65.__)("Blocks"),
+ panelRef: blocksPanelRef,
+ panel: /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_jsx_runtime263.Fragment, { children: [
+ inserterSearch,
+ selectedTab === "blocks" && !delayedFilterValue && blocksTab
+ ] })
+ },
+ {
+ name: "patterns",
+ title: (0, import_i18n65.__)("Patterns"),
+ panelRef: patternsPanelRef,
+ panel: /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_jsx_runtime263.Fragment, { children: [
+ inserterSearch,
+ selectedTab === "patterns" && !delayedFilterValue && patternsTab
+ ] })
+ },
+ {
+ name: "media",
+ title: (0, import_i18n65.__)("Media"),
+ panelRef: mediaPanelRef,
+ panel: /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_jsx_runtime263.Fragment, { children: [
+ inserterSearch,
+ mediaTab
+ ] })
+ }
+ ]
+ }
+ ) }),
+ showInserterHelpPanel && hoveredItem && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
+ import_components57.Popover,
+ {
+ className: "block-editor-inserter__preview-container__popover",
+ placement: "right-start",
+ offset: 16,
+ focusOnMount: false,
+ animate: false,
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(preview_panel_default, { item: hoveredItem })
+ }
+ )
+ ]
}
- }, [isSelected, isSingleSelection, rowItemRef]);
+ );
}
-
- // packages/block-editor/build-module/components/list-view/block-contents.mjs
- var import_element189 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/list-view/block-select-button.mjs
- var import_components119 = __toESM(require_components(), 1);
- var import_element188 = __toESM(require_element(), 1);
- var import_keycodes15 = __toESM(require_keycodes(), 1);
-
- // packages/block-editor/build-module/components/list-view/expander.mjs
- var import_i18n107 = __toESM(require_i18n(), 1);
- var import_jsx_runtime326 = __toESM(require_jsx_runtime(), 1);
- function ListViewExpander({ onClick }) {
- return (
- // Keyboard events are handled by TreeGrid see: components/src/tree-grid/index.js
- //
- // The expander component is implemented as a pseudo element in the w3 example
- // https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html
- //
- // We've mimicked this by adding an icon with aria-hidden set to true to hide this from the accessibility tree.
- // For the current tree grid implementation, please do not try to make this a button.
- /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
- "span",
- {
- className: "block-editor-list-view__expander",
- onClick: onClick ? (event) => onClick(event, { forceToggle: true }) : void 0,
- "aria-hidden": "true",
- "data-testid": "list-view-expander",
- children: /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(icon_default, { icon: (0, import_i18n107.isRTL)() ? chevron_left_small_default : chevron_right_small_default })
- }
- )
+ var PrivateInserterMenu = (0, import_element138.forwardRef)(InserterMenu);
+ function PublicInserterMenu(props, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
+ PrivateInserterMenu,
+ {
+ ...props,
+ onPatternCategorySelection: NOOP2,
+ ref
+ }
);
}
+ var menu_default = (0, import_element138.forwardRef)(PublicInserterMenu);
- // packages/block-editor/build-module/components/list-view/use-list-view-images.mjs
- var import_element187 = __toESM(require_element(), 1);
- var import_data128 = __toESM(require_data(), 1);
- var MAX_IMAGES = 3;
- var IMAGE_GETTERS = {
- "core/image": ({ clientId, attributes }) => {
- if (attributes.url) {
- return {
- url: attributes.url,
- alt: attributes.alt || "",
- clientId
- };
- }
- },
- "core/cover": ({ clientId, attributes }) => {
- if (attributes.backgroundType === "image" && attributes.url) {
- return {
- url: attributes.url,
- alt: attributes.alt || "",
- clientId
- };
- }
- },
- "core/media-text": ({ clientId, attributes }) => {
- if (attributes.mediaType === "image" && attributes.mediaUrl) {
+ // packages/block-editor/build-module/components/inserter/quick-inserter.mjs
+ var import_element139 = __toESM(require_element(), 1);
+ var import_i18n66 = __toESM(require_i18n(), 1);
+ var import_components58 = __toESM(require_components(), 1);
+ var import_data66 = __toESM(require_data(), 1);
+ var import_jsx_runtime264 = __toESM(require_jsx_runtime(), 1);
+ var SEARCH_THRESHOLD = 6;
+ var SHOWN_BLOCK_TYPES2 = 6;
+ var SHOWN_BLOCK_PATTERNS = 2;
+ function QuickInserter({
+ onSelect,
+ rootClientId,
+ clientId,
+ isAppender,
+ selectBlockOnInsert,
+ hasSearch = true
+ }) {
+ const [filterValue, setFilterValue] = (0, import_element139.useState)("");
+ const [destinationRootClientId, onInsertBlocks] = use_insertion_point_default({
+ onSelect,
+ rootClientId,
+ clientId,
+ isAppender,
+ selectBlockOnInsert
+ });
+ const [blockTypes] = use_block_types_state_default(
+ destinationRootClientId,
+ onInsertBlocks,
+ true
+ );
+ const { setInserterIsOpened, insertionIndex } = (0, import_data66.useSelect)(
+ (select3) => {
+ const { getSettings: getSettings8, getBlockIndex: getBlockIndex2, getBlockCount: getBlockCount2 } = select3(store);
+ const settings2 = getSettings8();
+ const index2 = getBlockIndex2(clientId);
+ const blockCount = getBlockCount2();
return {
- url: attributes.mediaUrl,
- alt: attributes.mediaAlt || "",
- clientId
+ setInserterIsOpened: settings2.__experimentalSetIsInserterOpened,
+ insertionIndex: index2 === -1 ? blockCount : index2
};
+ },
+ [clientId]
+ );
+ const showSearch = hasSearch && blockTypes.length > SEARCH_THRESHOLD;
+ (0, import_element139.useEffect)(() => {
+ if (setInserterIsOpened) {
+ setInserterIsOpened(false);
}
- },
- "core/gallery": ({ innerBlocks }) => {
- const images = [];
- const getValues = !!innerBlocks?.length ? IMAGE_GETTERS[innerBlocks[0].name] : void 0;
- if (!getValues) {
- return images;
- }
- for (const innerBlock of innerBlocks) {
- const img = getValues(innerBlock);
- if (img) {
- images.push(img);
- }
- if (images.length >= MAX_IMAGES) {
- return images;
- }
+ }, [setInserterIsOpened]);
+ const onBrowseAll = () => {
+ setInserterIsOpened({
+ filterValue,
+ onSelect,
+ rootClientId,
+ insertionIndex
+ });
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
+ "div",
+ {
+ className: clsx_default("block-editor-inserter__quick-inserter", {
+ "has-search": showSearch,
+ "has-expand": setInserterIsOpened
+ }),
+ children: [
+ showSearch && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
+ import_components58.SearchControl,
+ {
+ className: "block-editor-inserter__search",
+ value: filterValue,
+ onChange: (value) => {
+ setFilterValue(value);
+ },
+ label: (0, import_i18n66.__)("Search"),
+ placeholder: (0, import_i18n66.__)("Search")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime264.jsx)("div", { className: "block-editor-inserter__quick-inserter-results", children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
+ search_results_default,
+ {
+ filterValue,
+ onSelect,
+ rootClientId,
+ clientId,
+ isAppender,
+ maxBlockPatterns: !!filterValue ? SHOWN_BLOCK_PATTERNS : 0,
+ maxBlockTypes: SHOWN_BLOCK_TYPES2,
+ isDraggable: false,
+ selectBlockOnInsert,
+ isQuick: true
+ }
+ ) }),
+ setInserterIsOpened && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
+ import_components58.Button,
+ {
+ __next40pxDefaultSize: true,
+ className: "block-editor-inserter__quick-inserter-expand",
+ onClick: onBrowseAll,
+ "aria-label": (0, import_i18n66.__)(
+ "Browse all. This will open the main inserter panel in the editor toolbar."
+ ),
+ children: (0, import_i18n66.__)("Browse all")
+ }
+ )
+ ]
}
- return images;
- }
- };
- function getImagesFromBlock(block, isExpanded) {
- const getImages = IMAGE_GETTERS[block.name];
- const images = !!getImages ? getImages(block) : void 0;
- if (!images) {
- return [];
- }
- if (!Array.isArray(images)) {
- return [images];
- }
- return isExpanded ? [] : images;
+ );
}
- function useListViewImages({ clientId, isExpanded }) {
- const { block } = (0, import_data128.useSelect)(
- (select3) => {
- return { block: select3(store).getBlock(clientId) };
- },
- [clientId]
+
+ // packages/block-editor/build-module/components/inserter/get-appender-label.mjs
+ var MAX_APPENDER_LABEL_LENGTH = 50;
+ function getAppenderLabel(defaultBlock, defaultBlockType) {
+ if (!defaultBlock || !defaultBlock.attributes || !defaultBlockType?.__experimentalLabel) {
+ return null;
+ }
+ const result = defaultBlockType.__experimentalLabel(
+ defaultBlock.attributes,
+ { context: "appender" }
);
- const images = (0, import_element187.useMemo)(() => {
- return getImagesFromBlock(block, isExpanded);
- }, [block, isExpanded]);
- return images;
+ if (typeof result === "string" && result.length < MAX_APPENDER_LABEL_LENGTH && result.length > 0) {
+ return result;
+ }
+ return null;
}
- // packages/block-editor/build-module/components/list-view/block-select-button.mjs
- var import_jsx_runtime327 = __toESM(require_jsx_runtime(), 1);
- var { Badge: WCBadge3 } = unlock(import_components119.privateApis);
- function ListViewBlockSelectButton({
- className,
- block: { clientId },
- onClick,
- onContextMenu,
- onMouseDown,
- onToggleExpanded,
- tabIndex,
- onFocus,
- onDragStart,
- onDragEnd,
- draggable,
- isExpanded,
- ariaDescribedBy,
- visibilityLabel,
- isDisabled = false
- }, ref) {
- const blockInformation = useBlockDisplayInformation(clientId);
- const blockTitle = useBlockDisplayTitle({
- clientId,
- context: "list-view"
- });
- const { isLocked } = useBlockLock(clientId);
- const shouldShowLockIcon = isLocked;
- const isSticky = blockInformation?.positionType === "sticky";
- const images = useListViewImages({ clientId, isExpanded });
- const onDragStartHandler = (event) => {
- event.dataTransfer.clearData();
- onDragStart?.(event);
- };
- function onKeyDown(event) {
- if (event.keyCode === import_keycodes15.ENTER || event.keyCode === import_keycodes15.SPACE) {
- onClick(event);
- }
- }
- return (
- // Disabled list view items intentionally omit href so TreeGrid skips them.
- // eslint-disable-next-line jsx-a11y/anchor-is-valid
- /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
- "a",
- {
- className: clsx_default(
- "block-editor-list-view-block-select-button",
- className
- ),
- onClick,
- onContextMenu,
- onKeyDown,
- onMouseDown,
- ref,
- tabIndex,
- onFocus,
- onDragStart: onDragStartHandler,
- onDragEnd,
- draggable,
- href: isDisabled ? void 0 : `#block-${clientId}`,
- "aria-disabled": isDisabled ? true : void 0,
- "aria-describedby": ariaDescribedBy,
- "aria-expanded": isExpanded,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(ListViewExpander, { onClick: onToggleExpanded }),
- /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
- block_icon_default,
- {
- icon: blockInformation?.icon,
- showColors: true,
- context: "list-view"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
- import_components119.__experimentalHStack,
- {
- alignment: "center",
- className: "block-editor-list-view-block-select-button__label-wrapper",
- justify: "flex-start",
- spacing: 1,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime327.jsx)("span", { className: "block-editor-list-view-block-select-button__title", children: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(import_components119.__experimentalTruncate, { ellipsizeMode: "auto", children: blockTitle }) }),
- blockInformation?.anchor && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)("span", { className: "block-editor-list-view-block-select-button__anchor-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(WCBadge3, { className: "block-editor-list-view-block-select-button__anchor", children: blockInformation.anchor }) }),
- isSticky && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)("span", { className: "block-editor-list-view-block-select-button__sticky", children: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(icon_default, { icon: pin_small_default }) }),
- images.length ? /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
- "span",
- {
- className: "block-editor-list-view-block-select-button__images",
- "aria-hidden": true,
- children: images.map((image, index2) => /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
- "span",
- {
- className: "block-editor-list-view-block-select-button__image",
- style: {
- backgroundImage: `url(${image.url})`,
- zIndex: images.length - index2
- // Ensure the first image is on top, and subsequent images are behind.
- }
- },
- image.clientId
- ))
- }
- ) : null,
- !!visibilityLabel && // The tooltip below is a sighted-hover affordance for
- // the (decorative) visibility icon. The same
- // `visibilityLabel` is exposed to assistive technology
- // via the row's `aria-describedby`, which references the
- // hidden `AriaReferencedText` rendered by the parent
- // `ListViewBlock`.
- /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(tooltip_exports.Root, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
- tooltip_exports.Trigger,
- {
- render: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
- "span",
- {
- className: "block-editor-list-view-block-select-button__block-visibility",
- "aria-hidden": "true",
- children: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(icon_default, { icon: unseen_default })
- }
- )
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(tooltip_exports.Popup, { children: visibilityLabel })
- ] }),
- shouldShowLockIcon && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)("span", { className: "block-editor-list-view-block-select-button__lock", children: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(icon_default, { icon: lock_small_default }) })
- ]
- }
- )
- ]
- }
- )
- );
- }
- var block_select_button_default = (0, import_element188.forwardRef)(ListViewBlockSelectButton);
-
- // packages/block-editor/build-module/components/list-view/block-contents.mjs
- var import_jsx_runtime328 = __toESM(require_jsx_runtime(), 1);
- var ListViewBlockContents = (0, import_element189.forwardRef)(
- ({
+ // packages/block-editor/build-module/components/inserter/index.mjs
+ var import_jsx_runtime265 = __toESM(require_jsx_runtime(), 1);
+ var UnforwardedInserterToggle = ({
+ onToggle,
+ disabled: disabled2,
+ isOpen,
+ blockTitle,
+ hasSingleBlockType,
+ appenderLabel,
+ toggleProps = {}
+ }, ref) => {
+ const {
+ as: Wrapper = import_components59.Button,
+ label: labelProp,
onClick,
- onToggleExpanded,
- block,
- isSelected,
- position,
- siblingBlockCount,
- level,
- isExpanded,
- selectedClientIds,
- ...props
- }, ref) => {
- const { clientId } = block;
- const { AdditionalBlockContent, insertedBlock, setInsertedBlock } = useListViewContext();
- const draggableClientIds = selectedClientIds.includes(clientId) ? selectedClientIds : [clientId];
- return /* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(import_jsx_runtime328.Fragment, { children: [
- AdditionalBlockContent && /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
- AdditionalBlockContent,
- {
- block,
- insertedBlock,
- setInsertedBlock
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
- block_draggable_default,
- {
- appendToOwnerDocument: true,
- clientIds: draggableClientIds,
- cloneClassname: "block-editor-list-view-draggable-chip",
- children: ({ draggable, onDragStart, onDragEnd }) => /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
- block_select_button_default,
- {
- ref,
- className: "block-editor-list-view-block-contents",
- block,
- onClick,
- onToggleExpanded,
- isSelected,
- position,
- siblingBlockCount,
- level,
- draggable,
- onDragStart,
- onDragEnd,
- isExpanded,
- ...props
- }
- )
- }
- )
- ] });
- }
- );
- var block_contents_default = ListViewBlockContents;
-
- // packages/block-editor/build-module/components/list-view/utils.mjs
- var import_i18n108 = __toESM(require_i18n(), 1);
- var import_dom63 = __toESM(require_dom(), 1);
- var getBlockPositionDescription = (position, siblingCount, level) => (0, import_i18n108.sprintf)(
- /* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
- (0, import_i18n108.__)("Block %1$d of %2$d, Level %3$d."),
- position,
- siblingCount,
- level
- );
- var getBlockPropertiesDescription = (blockInformation, isLocked) => [
- blockInformation?.positionLabel ? `${(0, import_i18n108.sprintf)(
- // translators: %s: Position of selected block, e.g. "Sticky" or "Fixed".
- (0, import_i18n108.__)("Position: %s"),
- blockInformation.positionLabel
- )}.` : void 0,
- isLocked ? (0, import_i18n108.__)("This block is locked.") : void 0
- ].filter(Boolean).join(" ");
- var isClientIdSelected = (clientId, selectedBlockClientIds) => Array.isArray(selectedBlockClientIds) && selectedBlockClientIds.length ? selectedBlockClientIds.indexOf(clientId) !== -1 : selectedBlockClientIds === clientId;
- function getCommonDepthClientIds(startId, endId, startParents, endParents) {
- const startPath = [...startParents, startId];
- const endPath = [...endParents, endId];
- const depth = Math.min(startPath.length, endPath.length) - 1;
- const start2 = startPath[depth];
- const end = endPath[depth];
- return {
- start: start2,
- end
- };
- }
- function focusListItem(focusClientId, treeGridElement) {
- if (!treeGridElement) {
- return;
+ ...rest
+ } = toggleProps;
+ let label = labelProp;
+ if (!label && appenderLabel) {
+ label = appenderLabel;
+ } else if (!label && hasSingleBlockType) {
+ label = (0, import_i18n67.sprintf)(
+ // translators: %s: the name of the block when there is only one
+ (0, import_i18n67._x)("Add %s", "directly add the only allowed block"),
+ blockTitle.toLowerCase()
+ );
+ } else if (!label) {
+ label = (0, import_i18n67._x)("Add block", "Generic label for block inserter button");
}
- const selector3 = `[role=row][data-block="${focusClientId}"]`;
- return new Promise((resolve) => {
- if (treeGridElement.querySelector(selector3)) {
- return resolve(treeGridElement.querySelector(selector3));
- }
- let timer = null;
- const observer = new window.MutationObserver(() => {
- if (treeGridElement.querySelector(selector3)) {
- clearTimeout(timer);
- observer.disconnect();
- resolve(treeGridElement.querySelector(selector3));
- }
- });
- observer.observe(treeGridElement, {
- childList: true,
- subtree: true
- });
- timer = setTimeout(() => {
- observer.disconnect();
- resolve(null);
- }, 3e3);
- }).then((element) => {
- if (element && element.isConnected) {
- import_dom63.focus.focusable.find(element)?.[0]?.focus();
+ function handleClick(event) {
+ if (onToggle) {
+ onToggle(event);
}
- });
- }
- function getDragDisplacementValues({
- blockIndexes,
- blockDropTargetIndex,
- blockDropPosition,
- clientId,
- firstDraggedBlockIndex,
- isDragged
- }) {
- let displacement;
- let isNesting;
- let isAfterDraggedBlocks;
- if (!isDragged) {
- isNesting = false;
- const thisBlockIndex = blockIndexes[clientId];
- isAfterDraggedBlocks = thisBlockIndex > firstDraggedBlockIndex;
- if (blockDropTargetIndex !== void 0 && blockDropTargetIndex !== null && firstDraggedBlockIndex !== void 0) {
- if (thisBlockIndex !== void 0) {
- if (thisBlockIndex >= firstDraggedBlockIndex && thisBlockIndex < blockDropTargetIndex) {
- displacement = "up";
- } else if (thisBlockIndex < firstDraggedBlockIndex && thisBlockIndex >= blockDropTargetIndex) {
- displacement = "down";
- } else {
- displacement = "normal";
- }
- isNesting = typeof blockDropTargetIndex === "number" && blockDropTargetIndex - 1 === thisBlockIndex && blockDropPosition === "inside";
- }
- } else if (blockDropTargetIndex === null && firstDraggedBlockIndex !== void 0) {
- if (thisBlockIndex !== void 0 && thisBlockIndex >= firstDraggedBlockIndex) {
- displacement = "up";
- } else {
- displacement = "normal";
- }
- } else if (blockDropTargetIndex !== void 0 && blockDropTargetIndex !== null && firstDraggedBlockIndex === void 0) {
- if (thisBlockIndex !== void 0) {
- if (thisBlockIndex < blockDropTargetIndex) {
- displacement = "normal";
- } else {
- displacement = "down";
- }
- }
- } else if (blockDropTargetIndex === null) {
- displacement = "normal";
+ if (onClick) {
+ onClick(event);
}
}
- return {
- displacement,
- isNesting,
- isAfterDraggedBlocks
- };
- }
-
- // packages/block-editor/build-module/components/list-view/block.mjs
- var import_jsx_runtime329 = __toESM(require_jsx_runtime(), 1);
- function ListViewBlock({
- block: { clientId },
- displacement,
- isAfterDraggedBlocks,
- isDragged,
- isNesting,
- isSelected,
- isBranchSelected,
- selectBlock: selectBlock2,
- position,
- level,
- rowCount,
- siblingBlockCount,
- showBlockMovers,
- path,
- isExpanded,
- selectedClientIds,
- isSyncedBranch
- }) {
- const cellRef = (0, import_element190.useRef)(null);
- const rowRef = (0, import_element190.useRef)(null);
- const settingsRef = (0, import_element190.useRef)(null);
- const [isHovered, setIsHovered] = (0, import_element190.useState)(false);
- const [settingsAnchorRect, setSettingsAnchorRect] = (0, import_element190.useState)();
- const [isRenameModalOpen, setIsRenameModalOpen] = (0, import_element190.useState)(false);
- const { isLocked } = useBlockLock(clientId);
- const isFirstSelectedBlock = isSelected && selectedClientIds[0] === clientId;
- const isLastSelectedBlock = isSelected && selectedClientIds[selectedClientIds.length - 1] === clientId;
- const {
- toggleBlockHighlight: toggleBlockHighlight2,
- duplicateBlocks: duplicateBlocks2,
- multiSelect: multiSelect2,
- replaceBlocks: replaceBlocks2,
- removeBlocks: removeBlocks2,
- insertAfterBlock: insertAfterBlock2,
- insertBeforeBlock: insertBeforeBlock2,
- showViewportModal: showViewportModal2,
- stopEditingContentOnlySection: stopEditingContentOnlySection2
- } = unlock((0, import_data129.useDispatch)(store));
- const debouncedToggleBlockHighlight = (0, import_compose74.useDebounce)(
- toggleBlockHighlight2,
- 50
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
+ Wrapper,
+ {
+ ref,
+ __next40pxDefaultSize: toggleProps.as ? void 0 : true,
+ icon: plus_default,
+ label,
+ tooltipPosition: "bottom",
+ onClick: handleClick,
+ className: "block-editor-inserter__toggle",
+ "aria-haspopup": !hasSingleBlockType ? "true" : false,
+ "aria-expanded": !hasSingleBlockType ? isOpen : false,
+ isPressed: !hasSingleBlockType && isOpen,
+ disabled: disabled2,
+ ...rest
+ }
);
+ };
+ var InserterToggle = (0, import_element140.forwardRef)(UnforwardedInserterToggle);
+ var UnforwardedInserter = ({
+ clientId,
+ rootClientId,
+ disabled: disabled2,
+ isAppender,
+ position,
+ selectBlockOnInsert,
+ shouldDirectInsert = true,
+ showInserterHelpPanel,
+ // This prop is experimental to give some time for the quick inserter to mature
+ // Feel free to make them stable after a few releases.
+ __experimentalIsQuick: isQuick,
+ onSelectOrClose,
+ onToggle,
+ renderToggle: renderToggleProp,
+ toggleProps
+ }, ref) => {
const {
- canInsertBlockType: canInsertBlockType2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getPreviousBlockClientId: getPreviousBlockClientId2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlockOrder: getBlockOrder2,
- getBlockParents: getBlockParents2,
- getBlockEditingMode: getBlockEditingMode2,
- getBlocksByClientId: getBlocksByClientId2,
- canEditBlock: canEditBlock2,
- canMoveBlock: canMoveBlock2,
- canRemoveBlocks: canRemoveBlocks2,
- isGroupable: isGroupable2
- } = (0, import_data129.useSelect)(store);
- const { getGroupingBlockName } = (0, import_data129.useSelect)(import_blocks77.store);
- const blockInformation = useBlockDisplayInformation(clientId);
- const pasteStyles = usePasteStyles();
- const {
- block,
- blockName,
- blockEditingMode,
- allowRightClickOverrides,
- editedSection,
- viewportSettings,
- blockVisibilitySetting
- } = (0, import_data129.useSelect)(
+ hasItems,
+ hasSingleBlockType,
+ blockTitle,
+ allowedBlockType,
+ blockToInsert,
+ appenderLabel,
+ targetRootClientId
+ } = (0, import_data67.useSelect)(
(select3) => {
const {
- getBlock: getBlock2,
- getBlockName: getBlockName2,
- getBlockEditingMode: getBlockEditingModeForClientId,
- getSettings: getSettings7,
- getEditedContentOnlySection: getEditedContentOnlySection2
- } = unlock(select3(store));
- const settings2 = getSettings7();
+ getBlockRootClientId: getBlockRootClientId22,
+ hasInserterItems: hasInserterItems2,
+ getAllowedBlocks: getAllowedBlocks2,
+ getDirectInsertBlock: getDirectInsertBlock2,
+ getBlockListSettings: getBlockListSettings2
+ } = select3(store);
+ const { getBlockVariations: getBlockVariations2, getBlockType: getBlockType210 } = select3(import_blocks42.store);
+ const _targetRootClientId = rootClientId || getBlockRootClientId22(clientId) || void 0;
+ const allowedBlocks = getAllowedBlocks2(_targetRootClientId);
+ const directInsertBlock = shouldDirectInsert && getDirectInsertBlock2(_targetRootClientId);
+ const { defaultBlock } = getBlockListSettings2(_targetRootClientId) ?? {};
+ const _hasSingleBlockType = allowedBlocks?.length === 1 && getBlockVariations2(allowedBlocks[0].name, "inserter")?.length === 0;
+ const _allowedBlockType = _hasSingleBlockType ? allowedBlocks[0] : null;
+ let _blockToInsert = directInsertBlock || null;
+ if (!_blockToInsert && _hasSingleBlockType && defaultBlock?.name === _allowedBlockType.name) {
+ _blockToInsert = defaultBlock;
+ }
+ const defaultBlockType = directInsertBlock ? getBlockType210(directInsertBlock.name) : null;
return {
- block: getBlock2(clientId),
- blockName: getBlockName2(clientId),
- blockEditingMode: getBlockEditingModeForClientId(clientId),
- allowRightClickOverrides: settings2.allowRightClickOverrides,
- editedSection: getEditedContentOnlySection2(),
- viewportSettings: settings2.__experimentalFeatures?.viewport,
- blockVisibilitySetting: settings2.__experimentalFeatures?.blockVisibility?.allowEditing
+ hasItems: hasInserterItems2(_targetRootClientId),
+ hasSingleBlockType: _hasSingleBlockType,
+ blockTitle: _allowedBlockType ? _allowedBlockType.title : "",
+ allowedBlockType: _allowedBlockType,
+ blockToInsert: _blockToInsert,
+ appenderLabel: getAppenderLabel(
+ directInsertBlock,
+ defaultBlockType
+ ),
+ targetRootClientId: _targetRootClientId
};
},
- [clientId]
- );
- const isDisabled = blockEditingMode === "disabled";
- const { canRename } = useBlockRename(blockName);
- const showBlockActions = (
- // When a block hides its toolbar it also hides the block settings menu,
- // since that menu is part of the toolbar in the editor canvas.
- // List View respects this by also hiding the block settings menu.
- (0, import_blocks77.hasBlockSupport)(blockName, "__experimentalToolbar", true)
+ [rootClientId, clientId, shouldDirectInsert]
);
- const instanceId = (0, import_compose74.useInstanceId)(ListViewBlock);
- const descriptionId = `list-view-block-select-button__description-${instanceId}`;
+ const { insertBlock: insertBlock2 } = (0, import_data67.useDispatch)(store);
const {
- expand,
- collapse,
- collapseAll,
- BlockSettingsMenu: BlockSettingsMenu2,
- listViewInstanceId,
- expandedState,
- setInsertedBlock,
- treeGridElementRef,
- rootClientId
- } = useListViewContext();
- const isMatch = (0, import_keyboard_shortcuts11.__unstableUseShortcutEventMatch)();
- function getBlocksToUpdate() {
- const selectedBlockClientIds = getSelectedBlockClientIds2();
- const isUpdatingSelectedBlocks = selectedBlockClientIds.includes(clientId);
- const firstBlockClientId = isUpdatingSelectedBlocks ? selectedBlockClientIds[0] : clientId;
- const firstBlockRootClientId = getBlockRootClientId2(firstBlockClientId);
- const blocksToUpdate = isUpdatingSelectedBlocks ? selectedBlockClientIds : [clientId];
- return {
- blocksToUpdate,
- firstBlockClientId,
- firstBlockRootClientId,
- selectedBlockClientIds
- };
+ getBlock: getBlock2,
+ getBlockIndex: getBlockIndex2,
+ getBlockOrder: getBlockOrder2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockSelectionEnd: getBlockSelectionEnd2,
+ getPreviousBlockClientId: getPreviousBlockClientId2
+ } = (0, import_data67.useSelect)(store);
+ const { getActiveBlockVariation, getBlockType: getBlockType33 } = (0, import_data67.useSelect)(import_blocks42.store);
+ if (!hasItems && (isAppender || targetRootClientId || clientId)) {
+ return null;
}
- async function onKeyDown(event) {
- if (event.defaultPrevented) {
- return;
- }
- if (event.target.closest("[role=dialog]")) {
- return;
- }
- if (editedSection && isMatch("core/block-editor/unselect", event)) {
- event.stopPropagation();
- event.preventDefault();
- stopEditingContentOnlySection2();
- return;
- }
- const isDeleteKey = [import_keycodes16.BACKSPACE, import_keycodes16.DELETE].includes(event.keyCode);
- if (isMatch("core/block-editor/unselect", event) && selectedClientIds.length > 0) {
- event.stopPropagation();
- event.preventDefault();
- selectBlock2(event, void 0);
- } else if (isDeleteKey || isMatch("core/block-editor/remove", event)) {
- const {
- blocksToUpdate: blocksToDelete,
- firstBlockClientId,
- firstBlockRootClientId,
- selectedBlockClientIds
- } = getBlocksToUpdate();
- if (!canRemoveBlocks2(blocksToDelete)) {
- return;
- }
- let blockToFocus = getPreviousBlockClientId2(firstBlockClientId) ?? // If the previous block is not found (when the first block is deleted),
- // fallback to focus the parent block.
- firstBlockRootClientId;
- removeBlocks2(blocksToDelete, false);
- const shouldUpdateSelection = selectedBlockClientIds.length > 0 && getSelectedBlockClientIds2().length === 0;
- if (!blockToFocus) {
- blockToFocus = getBlockOrder2()[0];
- }
- updateFocusAndSelection(blockToFocus, shouldUpdateSelection);
- } else if (isMatch("core/block-editor/paste-styles", event)) {
- event.preventDefault();
- const { blocksToUpdate } = getBlocksToUpdate();
- const blocks2 = getBlocksByClientId2(blocksToUpdate);
- pasteStyles(blocks2);
- } else if (isMatch("core/block-editor/duplicate", event)) {
- event.preventDefault();
- const { blocksToUpdate, firstBlockRootClientId } = getBlocksToUpdate();
- const canDuplicate = getBlocksByClientId2(blocksToUpdate).every(
- (blockToUpdate) => {
- return !!blockToUpdate && (0, import_blocks77.hasBlockSupport)(
- blockToUpdate.name,
- "multiple",
- true
- ) && canInsertBlockType2(
- blockToUpdate.name,
- firstBlockRootClientId
- );
- }
- );
- if (canDuplicate) {
- const updatedBlocks = await duplicateBlocks2(
- blocksToUpdate,
- false
+ function insertOnlyAllowedBlock() {
+ const blockName = blockToInsert?.name ?? allowedBlockType.name;
+ function getAdjacentBlockAttributes() {
+ let adjacentAttributes;
+ if (clientId) {
+ const currentBlock = getBlock2(clientId);
+ const previousBlock = getBlock2(
+ getPreviousBlockClientId2(clientId)
);
- if (updatedBlocks?.length) {
- updateFocusAndSelection(updatedBlocks[0], false);
+ if (currentBlock?.name === previousBlock?.name) {
+ adjacentAttributes = previousBlock?.attributes;
+ }
+ } else if (targetRootClientId) {
+ const lastInnerBlock = getBlock2(targetRootClientId)?.innerBlocks?.at(-1);
+ if (lastInnerBlock?.name === blockName) {
+ adjacentAttributes = lastInnerBlock.attributes;
}
}
- } else if (isMatch("core/block-editor/insert-before", event)) {
- event.preventDefault();
- const { blocksToUpdate } = getBlocksToUpdate();
- await insertBeforeBlock2(blocksToUpdate[0]);
- const newlySelectedBlocks = getSelectedBlockClientIds2();
- updateFocusAndSelection(newlySelectedBlocks[0], false);
- } else if (isMatch("core/block-editor/insert-after", event)) {
- event.preventDefault();
- const { blocksToUpdate } = getBlocksToUpdate();
- await insertAfterBlock2(blocksToUpdate.at(-1));
- const newlySelectedBlocks = getSelectedBlockClientIds2();
- updateFocusAndSelection(newlySelectedBlocks[0], false);
- } else if (isMatch("core/block-editor/select-all", event)) {
- event.preventDefault();
- const { firstBlockRootClientId, selectedBlockClientIds } = getBlocksToUpdate();
- const blockClientIds = getBlockOrder2(firstBlockRootClientId);
- if (!blockClientIds.length) {
- return;
+ return getSiblingBlockAttributes(blockName, adjacentAttributes);
+ }
+ function getInsertionIndex() {
+ if (clientId) {
+ return getBlockIndex2(clientId);
}
- if ((0, import_is_shallow_equal2.isShallowEqual)(selectedBlockClientIds, blockClientIds)) {
- if (firstBlockRootClientId && firstBlockRootClientId !== rootClientId) {
- updateFocusAndSelection(firstBlockRootClientId, true);
- return;
- }
+ const end = getBlockSelectionEnd2();
+ if (!isAppender && end && getBlockRootClientId2(end) === targetRootClientId) {
+ return getBlockIndex2(end) + 1;
}
- multiSelect2(
- blockClientIds[0],
- blockClientIds[blockClientIds.length - 1],
- null
+ return getBlockOrder2(targetRootClientId).length;
+ }
+ const newAttributes = getAdjacentBlockAttributes();
+ const newBlock = (0, import_blocks42.createBlock)(blockName, {
+ ...blockToInsert?.attributes,
+ ...newAttributes
+ });
+ insertBlock2(
+ newBlock,
+ getInsertionIndex(),
+ targetRootClientId,
+ selectBlockOnInsert
+ );
+ onSelectOrClose?.(newBlock);
+ const blockTypeToInsert = getBlockType33(blockName);
+ let blockLabelToInsert;
+ if (blockTypeToInsert) {
+ blockLabelToInsert = (0, import_blocks42.__experimentalGetBlockLabel)(
+ blockTypeToInsert,
+ newBlock.attributes
);
- } else if (isMatch("core/block-editor/collapse-list-view", event)) {
- event.preventDefault();
- const { firstBlockClientId } = getBlocksToUpdate();
- const blockParents = getBlockParents2(firstBlockClientId, false);
- collapseAll();
- expand(blockParents);
- } else if (isMatch("core/block-editor/group", event)) {
- const { blocksToUpdate } = getBlocksToUpdate();
- if (blocksToUpdate.length > 1 && isGroupable2(blocksToUpdate)) {
- event.preventDefault();
- const blocks2 = getBlocksByClientId2(blocksToUpdate);
- const groupingBlockName = getGroupingBlockName();
- const newBlocks = (0, import_blocks77.switchToBlockType)(
- blocks2,
- groupingBlockName
- );
- replaceBlocks2(blocksToUpdate, newBlocks);
- (0, import_a11y14.speak)((0, import_i18n109.__)("Selected blocks are grouped."));
- const newlySelectedBlocks = getSelectedBlockClientIds2();
- updateFocusAndSelection(newlySelectedBlocks[0], false);
- }
- } else if (isMatch("core/block-editor/toggle-block-visibility", event)) {
- if (blockVisibilitySetting === false) {
- return;
+ if (blockLabelToInsert === blockTypeToInsert.title) {
+ blockLabelToInsert = getActiveBlockVariation(blockName, newBlock.attributes)?.title || blockLabelToInsert;
}
- event.preventDefault();
- const { blocksToUpdate } = getBlocksToUpdate();
- const blocks2 = getBlocksByClientId2(blocksToUpdate);
- const supportsBlockVisibility = blocks2.every(
- (_block) => (0, import_blocks77.hasBlockSupport)(_block.name, "visibility", true)
+ }
+ if (blockLabelToInsert) {
+ const message2 = (0, import_i18n67.sprintf)(
+ // translators: %s: the name of the block that has been added
+ (0, import_i18n67.__)("%s block added"),
+ blockLabelToInsert
);
- if (!supportsBlockVisibility) {
- return;
- }
- if (blocksToUpdate.some(
- (id) => getBlockEditingMode2(id) !== "default"
- )) {
- return;
- }
- showViewportModal2(blocksToUpdate);
- } else if (isMatch("core/block-editor/rename", event)) {
- const { blocksToUpdate } = getBlocksToUpdate();
- const isContentOnly = getBlockEditingMode2(blocksToUpdate[0]) === "contentOnly";
- if (blocksToUpdate.length === 1 && canRename && !isContentOnly) {
- event.preventDefault();
- setIsRenameModalOpen(true);
- }
+ (0, import_a11y11.speak)(message2);
}
}
- const onMouseEnter = (0, import_element190.useCallback)(() => {
- setIsHovered(true);
- debouncedToggleBlockHighlight(clientId, true);
- }, [clientId, setIsHovered, debouncedToggleBlockHighlight]);
- const onMouseLeave = (0, import_element190.useCallback)(() => {
- setIsHovered(false);
- debouncedToggleBlockHighlight(clientId, false);
- }, [clientId, setIsHovered, debouncedToggleBlockHighlight]);
- const selectEditorBlock = (0, import_element190.useCallback)(
- (event) => {
- const isKeyboardActivation = event?.detail === 0;
- selectBlock2(event, clientId, isKeyboardActivation ? -1 : null);
- event.preventDefault();
- },
- [clientId, selectBlock2]
- );
- const updateFocusAndSelection = (0, import_element190.useCallback)(
- (focusClientId, shouldSelectBlock) => {
- if (shouldSelectBlock) {
- selectBlock2(void 0, focusClientId, null, null);
- }
- focusListItem(focusClientId, treeGridElementRef?.current);
- },
- [selectBlock2, treeGridElementRef]
- );
- const toggleExpanded = (0, import_element190.useCallback)(
- (event) => {
- event.preventDefault();
- event.stopPropagation();
- if (isExpanded === true) {
- collapse(clientId);
- } else if (isExpanded === false) {
- expand(clientId);
- }
- },
- [clientId, expand, collapse, isExpanded]
- );
- const onContextMenu = (0, import_element190.useCallback)(
- (event) => {
- const { ownerDocument: ownerDocument2 } = settingsRef?.current || {};
- if (!ownerDocument2 || !ownerDocument2.hasFocus()) {
- return;
- }
- if (showBlockActions && allowRightClickOverrides) {
- settingsRef.current?.click();
- setSettingsAnchorRect(
- new window.DOMRect(event.clientX, event.clientY, 0, 0)
- );
- event.preventDefault();
- }
- },
- [allowRightClickOverrides, settingsRef, showBlockActions]
- );
- const onMouseDown = (0, import_element190.useCallback)(
- (event) => {
- if (allowRightClickOverrides && event.button === 2) {
- event.preventDefault();
- }
- },
- [allowRightClickOverrides]
- );
- const settingsPopoverAnchor = (0, import_element190.useMemo)(() => {
- const { ownerDocument: ownerDocument2 } = rowRef?.current || {};
- if (!settingsAnchorRect || !ownerDocument2) {
- return void 0;
+ function renderToggle3({ onToggle: dropdownOnToggle, isOpen }) {
+ const toggleArgs = {
+ onToggle: dropdownOnToggle,
+ isOpen,
+ disabled: disabled2 || !hasItems,
+ blockTitle,
+ hasSingleBlockType,
+ appenderLabel,
+ toggleProps
+ };
+ if (renderToggleProp) {
+ return renderToggleProp(toggleArgs);
}
- return {
- ownerDocument: ownerDocument2,
- getBoundingClientRect() {
- return settingsAnchorRect;
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(InserterToggle, { ref, ...toggleArgs });
+ }
+ function renderContent({ onClose }) {
+ if (isQuick) {
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
+ QuickInserter,
+ {
+ onSelect: (blocks2) => {
+ const firstBlock = Array.isArray(blocks2) && blocks2?.length ? blocks2[0] : blocks2;
+ if (onSelectOrClose && typeof onSelectOrClose === "function") {
+ onSelectOrClose(firstBlock);
+ }
+ onClose();
+ },
+ rootClientId: targetRootClientId,
+ clientId,
+ isAppender,
+ selectBlockOnInsert
+ }
+ );
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
+ menu_default,
+ {
+ onSelect: () => {
+ onClose();
+ },
+ onClose,
+ rootClientId: targetRootClientId,
+ clientId,
+ isAppender,
+ showInserterHelpPanel
}
- };
- }, [settingsAnchorRect]);
- const clearSettingsAnchorRect = (0, import_element190.useCallback)(() => {
- setSettingsAnchorRect(void 0);
- }, [setSettingsAnchorRect]);
- useListViewScrollIntoView({
- isSelected,
- rowItemRef: rowRef,
- selectedClientIds
- });
- if (!block) {
- return null;
+ );
}
- const blockPositionDescription = getBlockPositionDescription(
- position,
- siblingBlockCount,
- level
- );
- const blockPropertiesDescription = getBlockPropertiesDescription(
- blockInformation,
- isLocked
- );
- const blockVisibilityDescription = getBlockVisibilityLabel(
- block?.attributes?.metadata?.blockVisibility,
- viewportSettings
- );
- const hasSiblings = siblingBlockCount > 0;
- const canShowBlockActions = showBlockActions && !isDisabled;
- const hasRenderedMovers = showBlockMovers && hasSiblings && !isDisabled;
- const moverCellClassName = clsx_default(
- "block-editor-list-view-block__mover-cell",
- { "is-visible": isHovered || isSelected }
+ if (hasSingleBlockType || blockToInsert) {
+ return renderToggle3({ onToggle: insertOnlyAllowedBlock });
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
+ import_components59.Dropdown,
+ {
+ className: "block-editor-inserter",
+ contentClassName: clsx_default("block-editor-inserter__popover", {
+ "is-quick": isQuick
+ }),
+ popoverProps: { position, shift: true },
+ onToggle,
+ expandOnMobile: true,
+ headerTitle: (0, import_i18n67.__)("Add a block"),
+ renderToggle: renderToggle3,
+ renderContent,
+ onClose: onSelectOrClose
+ }
);
- const listViewBlockSettingsClassName = clsx_default(
- "block-editor-list-view-block__menu-cell",
- { "is-visible": isHovered || isFirstSelectedBlock }
+ };
+ var Inserter = (0, import_element140.forwardRef)(UnforwardedInserter);
+ var inserter_default = Inserter;
+
+ // packages/block-editor/build-module/components/default-block-appender/index.mjs
+ var import_jsx_runtime266 = __toESM(require_jsx_runtime(), 1);
+ var ZWNBSP = "\uFEFF";
+ function DefaultBlockAppender({ rootClientId }) {
+ const { showPrompt, isLocked, placeholder, isManualGrid } = (0, import_data68.useSelect)(
+ (select3) => {
+ const {
+ getBlockCount: getBlockCount2,
+ getSettings: getSettings8,
+ getTemplateLock: getTemplateLock2,
+ getBlockAttributes: getBlockAttributes3
+ } = select3(store);
+ const isEmpty4 = !getBlockCount2(rootClientId);
+ const { bodyPlaceholder } = getSettings8();
+ return {
+ showPrompt: isEmpty4,
+ isLocked: !!getTemplateLock2(rootClientId),
+ placeholder: bodyPlaceholder,
+ isManualGrid: getBlockAttributes3(rootClientId)?.layout?.isManualPlacement
+ };
+ },
+ [rootClientId]
);
- let colSpan;
- if (hasRenderedMovers) {
- colSpan = 2;
- } else if (!canShowBlockActions) {
- colSpan = 3;
+ const { insertDefaultBlock: insertDefaultBlock2, startTyping: startTyping2 } = (0, import_data68.useDispatch)(store);
+ if (isLocked || isManualGrid) {
+ return null;
}
- const classes = clsx_default({
- "is-selected": isSelected,
- "is-first-selected": isFirstSelectedBlock,
- "is-last-selected": isLastSelectedBlock,
- "is-branch-selected": isBranchSelected,
- "is-synced-branch": isSyncedBranch,
- "is-dragging": isDragged,
- "has-single-cell": !showBlockActions,
- "is-synced": blockInformation?.isSynced,
- "is-draggable": canMoveBlock2 && !isDisabled,
- "is-displacement-normal": displacement === "normal",
- "is-displacement-up": displacement === "up",
- "is-displacement-down": displacement === "down",
- "is-after-dragged-blocks": isAfterDraggedBlocks,
- "is-nesting": isNesting,
- "is-disabled": isDisabled
- });
- const dropdownClientIds = selectedClientIds.includes(clientId) ? selectedClientIds : [clientId];
- const getListViewBlockTabIndex = (rovingTabIndex) => {
- if (isDisabled) {
- return -1;
- }
- if (isSelected && selectedClientIds.length === 1) {
- return 0;
- }
- return rovingTabIndex;
+ const value = (0, import_html_entities.decodeEntities)(placeholder) || (0, import_i18n68.__)("Type / to choose a block");
+ const onAppend = () => {
+ insertDefaultBlock2(void 0, rootClientId);
+ startTyping2();
};
- return /* @__PURE__ */ (0, import_jsx_runtime329.jsxs)(
- leaf_default,
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
+ "div",
{
- className: classes,
- isDragged,
- onKeyDown,
- onMouseEnter: isDisabled ? void 0 : onMouseEnter,
- onMouseLeave: isDisabled ? void 0 : onMouseLeave,
- onFocus: isDisabled ? void 0 : onMouseEnter,
- onBlur: isDisabled ? void 0 : onMouseLeave,
- level,
- position,
- rowCount,
- path,
- id: `list-view-${listViewInstanceId}-block-${clientId}`,
- "data-block": clientId,
- "data-expanded": canEditBlock2 ? isExpanded : void 0,
- ref: rowRef,
+ "data-root-client-id": rootClientId || "",
+ className: clsx_default("block-editor-default-block-appender", {
+ "has-visible-prompt": showPrompt
+ }),
children: [
- /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
- import_components120.__experimentalTreeGridCell,
- {
- className: "block-editor-list-view-block__contents-cell",
- colSpan,
- ref: cellRef,
- "aria-selected": !!isSelected,
- children: ({ ref, tabIndex, onFocus }) => /* @__PURE__ */ (0, import_jsx_runtime329.jsxs)("div", { className: "block-editor-list-view-block__contents-container", children: [
- /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
- block_contents_default,
- {
- block,
- onClick: selectEditorBlock,
- onContextMenu: isDisabled ? void 0 : onContextMenu,
- onMouseDown,
- onToggleExpanded: isDisabled ? void 0 : toggleExpanded,
- isSelected,
- position,
- siblingBlockCount,
- level,
- ref,
- tabIndex: getListViewBlockTabIndex(tabIndex),
- onFocus,
- isExpanded: canEditBlock2 ? isExpanded : void 0,
- selectedClientIds,
- ariaDescribedBy: descriptionId,
- visibilityLabel: blockVisibilityDescription,
- isDisabled
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(AriaReferencedText, { id: descriptionId, children: [
- blockPositionDescription,
- blockPropertiesDescription,
- blockVisibilityDescription
- ].filter(Boolean).join(" ") })
- ] })
- }
- ),
- hasRenderedMovers && /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(import_jsx_runtime329.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime329.jsxs)(
- import_components120.__experimentalTreeGridCell,
- {
- className: moverCellClassName,
- withoutGridItem: true,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(import_components120.__experimentalTreeGridItem, { children: ({ ref, tabIndex, onFocus }) => /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
- BlockMoverUpButton,
- {
- orientation: "vertical",
- clientIds: [clientId],
- ref,
- tabIndex,
- onFocus
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(import_components120.__experimentalTreeGridItem, { children: ({ ref, tabIndex, onFocus }) => /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
- BlockMoverDownButton,
- {
- orientation: "vertical",
- clientIds: [clientId],
- ref,
- tabIndex,
- onFocus
- }
- ) })
- ]
- }
- ) }),
- canShowBlockActions && BlockSettingsMenu2 && /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
- import_components120.__experimentalTreeGridCell,
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
+ "p",
{
- className: listViewBlockSettingsClassName,
- "aria-selected": !!isSelected,
- ref: settingsRef,
- children: ({ ref, tabIndex, onFocus }) => /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
- BlockSettingsMenu2,
- {
- clientIds: dropdownClientIds,
- block,
- icon: more_vertical_default,
- label: (0, import_i18n109.__)("Options"),
- popoverProps: {
- anchor: settingsPopoverAnchor
- // Used to position the settings at the cursor on right-click.
- },
- toggleProps: {
- ref,
- className: "block-editor-list-view-block__menu",
- tabIndex,
- onClick: clearSettingsAnchorRect,
- onFocus,
- size: "small"
- },
- disableOpenOnArrowDown: true,
- expand,
- expandedState,
- setInsertedBlock,
- __experimentalSelectBlock: updateFocusAndSelection,
- isContentOnlyListView: !!rootClientId && getBlockEditingMode2(rootClientId) === "contentOnly"
+ tabIndex: "0",
+ role: "button",
+ "aria-label": (0, import_i18n68.__)("Add default block"),
+ className: "block-editor-default-block-appender__content",
+ onKeyDown: (event) => {
+ if (import_keycodes9.ENTER === event.keyCode || import_keycodes9.SPACE === event.keyCode) {
+ onAppend();
}
- )
+ },
+ onClick: () => onAppend(),
+ onFocus: () => {
+ if (showPrompt) {
+ onAppend();
+ }
+ },
+ children: showPrompt ? value : ZWNBSP
}
),
- isRenameModalOpen && /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
- BlockRenameModal,
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
+ inserter_default,
{
- clientId,
- onClose: () => setIsRenameModalOpen(false)
+ rootClientId,
+ position: "bottom right",
+ isAppender: true,
+ __experimentalIsQuick: true
}
)
]
}
);
}
- var block_default3 = (0, import_element190.memo)(ListViewBlock);
- // packages/block-editor/build-module/components/list-view/branch.mjs
- var import_jsx_runtime330 = __toESM(require_jsx_runtime(), 1);
- function countBlocks(block, expandedState, draggedClientIds, isExpandedByDefault) {
- const isDragged = draggedClientIds?.includes(block.clientId);
- if (isDragged) {
- return 0;
- }
- const isExpanded = expandedState[block.clientId] ?? isExpandedByDefault;
- if (isExpanded) {
- return 1 + block.innerBlocks.reduce(
- countReducer(
- expandedState,
- draggedClientIds,
- isExpandedByDefault
- ),
- 0
- );
- }
- return 1;
+ // packages/block-editor/build-module/components/button-block-appender/index.mjs
+ var import_components60 = __toESM(require_components(), 1);
+ var import_element141 = __toESM(require_element(), 1);
+ var import_i18n69 = __toESM(require_i18n(), 1);
+ var import_deprecated8 = __toESM(require_deprecated(), 1);
+ var import_jsx_runtime267 = __toESM(require_jsx_runtime(), 1);
+ function ButtonBlockAppender({ rootClientId, className: className2, onFocus, tabIndex, onSelect }, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
+ inserter_default,
+ {
+ position: "bottom center",
+ rootClientId,
+ __experimentalIsQuick: true,
+ onSelectOrClose: (...args) => {
+ if (onSelect && typeof onSelect === "function") {
+ onSelect(...args);
+ }
+ },
+ renderToggle: ({
+ onToggle,
+ disabled: disabled2,
+ isOpen,
+ blockTitle,
+ hasSingleBlockType,
+ appenderLabel
+ }) => {
+ const isToggleButton = !hasSingleBlockType;
+ let label;
+ if (appenderLabel) {
+ label = appenderLabel;
+ } else if (hasSingleBlockType) {
+ label = (0, import_i18n69.sprintf)(
+ // translators: %s: the name of the block when there is only one
+ (0, import_i18n69._x)("Add %s", "directly add the only allowed block"),
+ blockTitle.toLowerCase()
+ );
+ } else {
+ label = (0, import_i18n69._x)(
+ "Add block",
+ "Generic label for block inserter button"
+ );
+ }
+ return (
+ // Disable reason: There shouldn't be a case where this button is disabled but not visually hidden.
+ // eslint-disable-next-line @wordpress/components-no-unsafe-button-disabled
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
+ import_components60.Button,
+ {
+ __next40pxDefaultSize: true,
+ ref,
+ onFocus,
+ tabIndex,
+ className: clsx_default(
+ className2,
+ "block-editor-button-block-appender"
+ ),
+ onClick: onToggle,
+ "aria-haspopup": isToggleButton ? "true" : void 0,
+ "aria-expanded": isToggleButton ? isOpen : void 0,
+ disabled: disabled2,
+ label,
+ showTooltip: true,
+ children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(icon_default, { icon: plus_default })
+ }
+ )
+ );
+ },
+ isAppender: true
+ }
+ );
}
- var countReducer = (expandedState, draggedClientIds, isExpandedByDefault) => (count, block) => {
- const isDragged = draggedClientIds?.includes(block.clientId);
- if (isDragged) {
- return count;
- }
- const isExpanded = expandedState[block.clientId] ?? isExpandedByDefault;
- if (isExpanded && block.innerBlocks.length > 0) {
- return count + countBlocks(
- block,
- expandedState,
- draggedClientIds,
- isExpandedByDefault
- );
+ var ButtonBlockerAppender = (0, import_element141.forwardRef)((props, ref) => {
+ (0, import_deprecated8.default)(`wp.blockEditor.ButtonBlockerAppender`, {
+ alternative: "wp.blockEditor.ButtonBlockAppender",
+ since: "5.9"
+ });
+ return ButtonBlockAppender(props, ref);
+ });
+ var button_block_appender_default = (0, import_element141.forwardRef)(ButtonBlockAppender);
+
+ // packages/block-editor/build-module/components/block-list-appender/index.mjs
+ var import_jsx_runtime268 = __toESM(require_jsx_runtime(), 1);
+ function DefaultAppender({ rootClientId }) {
+ const canInsertDefaultBlock = (0, import_data69.useSelect)(
+ (select3) => select3(store).canInsertBlockType(
+ (0, import_blocks43.getDefaultBlockName)(),
+ rootClientId
+ )
+ );
+ if (canInsertDefaultBlock) {
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(DefaultBlockAppender, { rootClientId });
}
- return count + 1;
- };
- var noop13 = () => {
- };
- function ListViewBranch(props) {
- const {
- blocks: blocks2,
- selectBlock: selectBlock2 = noop13,
- showBlockMovers,
- selectedClientIds,
- level = 1,
- path = "",
- isBranchSelected = false,
- listPosition = 0,
- fixedListWindow,
- isExpanded,
- parentId,
- shouldShowInnerBlocks = true,
- isSyncedBranch = false,
- showAppender: showAppenderProp = true
- } = props;
- const parentBlockInformation = useBlockDisplayInformation(parentId);
- const syncedBranch = isSyncedBranch || !!parentBlockInformation?.isSynced;
- const canParentExpand = (0, import_data130.useSelect)(
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
+ button_block_appender_default,
+ {
+ rootClientId,
+ className: "block-list-appender__toggle"
+ }
+ );
+ }
+ function BlockListAppender({
+ rootClientId,
+ CustomAppender,
+ className: className2,
+ tagName: TagName = "div"
+ }) {
+ const isDragOver = (0, import_data69.useSelect)(
(select3) => {
- if (!parentId) {
- return true;
- }
- return select3(store).canEditBlock(parentId);
+ const {
+ getBlockInsertionPoint: getBlockInsertionPoint2,
+ isBlockInsertionPointVisible: isBlockInsertionPointVisible2,
+ getBlockCount: getBlockCount2
+ } = select3(store);
+ const insertionPoint2 = getBlockInsertionPoint2();
+ return isBlockInsertionPointVisible2() && rootClientId === insertionPoint2?.rootClientId && getBlockCount2(rootClientId) === 0;
},
- [parentId]
+ [rootClientId]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
+ TagName,
+ {
+ tabIndex: -1,
+ className: clsx_default("block-list-appender wp-block", className2, {
+ "is-drag-over": isDragOver
+ }),
+ contentEditable: false,
+ "data-block": true,
+ children: CustomAppender ? /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(CustomAppender, {}) : /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(DefaultAppender, { rootClientId })
+ }
);
- const {
- blockDropPosition,
- blockDropTargetIndex,
- firstDraggedBlockIndex,
- blockIndexes,
- expandedState,
- draggedClientIds
- } = useListViewContext();
- const nextPositionRef = (0, import_element191.useRef)();
- if (!canParentExpand) {
- return null;
- }
- const showAppender = showAppenderProp && level === 1;
- const filteredBlocks = blocks2.filter(Boolean);
- const blockCount = filteredBlocks.length;
- const rowCount = showAppender ? blockCount + 1 : blockCount;
- nextPositionRef.current = listPosition;
- return /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(import_jsx_runtime330.Fragment, { children: [
- filteredBlocks.map((block, index2) => {
- const { clientId, innerBlocks } = block;
- if (index2 > 0) {
- nextPositionRef.current += countBlocks(
- filteredBlocks[index2 - 1],
- expandedState,
- draggedClientIds,
- isExpanded
- );
- }
- const isDragged = !!draggedClientIds?.includes(clientId);
- const { displacement, isAfterDraggedBlocks, isNesting } = getDragDisplacementValues({
- blockIndexes,
- blockDropTargetIndex,
- blockDropPosition,
- clientId,
- firstDraggedBlockIndex,
- isDragged
- });
- const { itemInView } = fixedListWindow;
- const blockInView = itemInView(nextPositionRef.current);
- const position = index2 + 1;
- const updatedPath = path.length > 0 ? `${path}_${position}` : `${position}`;
- const hasNestedBlocks = !!innerBlocks?.length;
- const shouldExpand = hasNestedBlocks && shouldShowInnerBlocks ? expandedState[clientId] ?? isExpanded : void 0;
- const isSelected = isClientIdSelected(
- clientId,
- selectedClientIds
- );
- const isSelectedBranch = isBranchSelected || isSelected && hasNestedBlocks;
- const showBlock = isDragged || blockInView || isSelected && clientId === selectedClientIds[0] || index2 === 0 || index2 === blockCount - 1;
- return /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(import_data130.AsyncModeProvider, { value: !isSelected, children: [
- showBlock && /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
- block_default3,
- {
- block,
- selectBlock: selectBlock2,
- isSelected,
- isBranchSelected: isSelectedBranch,
- isDragged,
- level,
- position,
- rowCount,
- siblingBlockCount: blockCount,
- showBlockMovers,
- path: updatedPath,
- isExpanded: isDragged ? false : shouldExpand,
- listPosition: nextPositionRef.current,
- selectedClientIds,
- isSyncedBranch: syncedBranch,
- displacement,
- isAfterDraggedBlocks,
- isNesting
- }
- ),
- !showBlock && /* @__PURE__ */ (0, import_jsx_runtime330.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)("td", { className: "block-editor-list-view-placeholder" }) }),
- hasNestedBlocks && shouldExpand && !isDragged && /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
- ListViewBranch,
- {
- parentId: clientId,
- blocks: innerBlocks,
- selectBlock: selectBlock2,
- showBlockMovers,
- level: level + 1,
- path: updatedPath,
- listPosition: nextPositionRef.current + 1,
- fixedListWindow,
- isBranchSelected: isSelectedBranch,
- selectedClientIds,
- isExpanded,
- isSyncedBranch: syncedBranch
- }
- )
- ] }, clientId);
- }),
- showAppender && /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
- import_components121.__experimentalTreeGridRow,
- {
- level,
- setSize: rowCount,
- positionInSet: rowCount,
- isExpanded: true,
- children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(import_components121.__experimentalTreeGridCell, { children: (treeGridCellProps) => /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
- Appender,
- {
- clientId: parentId,
- nestingLevel: level,
- blockCount,
- ...treeGridCellProps
- }
- ) })
- }
- )
- ] });
}
- var branch_default = (0, import_element191.memo)(ListViewBranch);
- // packages/block-editor/build-module/components/list-view/drop-indicator.mjs
- var import_components122 = __toESM(require_components(), 1);
- var import_dom64 = __toESM(require_dom(), 1);
- var import_element192 = __toESM(require_element(), 1);
- var import_i18n110 = __toESM(require_i18n(), 1);
- var import_jsx_runtime331 = __toESM(require_jsx_runtime(), 1);
- function ListViewDropIndicatorPreview({
- draggedBlockClientId,
- listViewRef,
- blockDropTarget
- }) {
- const blockInformation = useBlockDisplayInformation(draggedBlockClientId);
- const blockTitle = useBlockDisplayTitle({
- clientId: draggedBlockClientId,
- context: "list-view"
- });
- const { rootClientId, clientId, dropPosition } = blockDropTarget || {};
- const [rootBlockElement, blockElement] = (0, import_element192.useMemo)(() => {
- if (!listViewRef.current) {
- return [];
- }
- const _rootBlockElement = rootClientId ? listViewRef.current.querySelector(
- `[data-block="${rootClientId}"]`
- ) : void 0;
- const _blockElement = clientId ? listViewRef.current.querySelector(
- `[data-block="${clientId}"]`
- ) : void 0;
- return [_rootBlockElement, _blockElement];
- }, [listViewRef, rootClientId, clientId]);
- const targetElement = blockElement || rootBlockElement;
- const rtl = (0, import_i18n110.isRTL)();
- const getDropIndicatorWidth = (0, import_element192.useCallback)(
- (targetElementRect, indent) => {
- if (!targetElement) {
- return 0;
- }
- let width = targetElement.offsetWidth;
- const scrollContainer = (0, import_dom64.getScrollContainer)(
- targetElement,
- "horizontal"
- );
- const ownerDocument2 = targetElement.ownerDocument;
- const windowScroll = scrollContainer === ownerDocument2.body || scrollContainer === ownerDocument2.documentElement;
- if (scrollContainer && !windowScroll) {
- const scrollContainerRect = scrollContainer.getBoundingClientRect();
- const distanceBetweenContainerAndTarget = (0, import_i18n110.isRTL)() ? scrollContainerRect.right - targetElementRect.right : targetElementRect.left - scrollContainerRect.left;
- const scrollContainerWidth = scrollContainer.clientWidth;
- if (scrollContainerWidth < width + distanceBetweenContainerAndTarget) {
- width = scrollContainerWidth - distanceBetweenContainerAndTarget;
- }
- if (!rtl && targetElementRect.left + indent < scrollContainerRect.left) {
- width -= scrollContainerRect.left - targetElementRect.left;
- return width;
+ // packages/block-editor/build-module/components/block-list/use-in-between-inserter.mjs
+ var import_compose54 = __toESM(require_compose(), 1);
+ var import_data73 = __toESM(require_data(), 1);
+ var import_element146 = __toESM(require_element(), 1);
+ var import_i18n71 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/block-tools/insertion-point.mjs
+ var import_data72 = __toESM(require_data(), 1);
+ var import_element145 = __toESM(require_element(), 1);
+ var import_components64 = __toESM(require_components(), 1);
+ var import_compose53 = __toESM(require_compose(), 1);
+
+ // packages/block-editor/build-module/components/block-popover/inbetween.mjs
+ var import_data70 = __toESM(require_data(), 1);
+ var import_element142 = __toESM(require_element(), 1);
+ var import_components61 = __toESM(require_components(), 1);
+ var import_i18n70 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/block-popover/use-popover-scroll.mjs
+ var import_compose50 = __toESM(require_compose(), 1);
+ var import_dom54 = __toESM(require_dom(), 1);
+ var scrollContainerCache = /* @__PURE__ */ new WeakMap();
+ function usePopoverScroll(contentRef) {
+ const effect = (0, import_compose50.useRefEffect)(
+ (node) => {
+ function onWheel(event) {
+ const { deltaX, deltaY, target } = event;
+ const contentEl = contentRef.current;
+ let scrollContainer = scrollContainerCache.get(contentEl);
+ if (!scrollContainer) {
+ scrollContainer = (0, import_dom54.getScrollContainer)(contentEl);
+ scrollContainerCache.set(contentEl, scrollContainer);
}
- if (rtl && targetElementRect.right - indent > scrollContainerRect.right) {
- width -= targetElementRect.right - scrollContainerRect.right;
- return width;
+ const eventScrollContainer = (0, import_dom54.getScrollContainer)(target);
+ if (!node.contains(eventScrollContainer)) {
+ scrollContainer.scrollBy(deltaX, deltaY);
}
}
- return width - indent;
+ const options = { passive: true };
+ node.addEventListener("wheel", onWheel, options);
+ return () => {
+ node.removeEventListener("wheel", onWheel, options);
+ };
},
- [rtl, targetElement]
+ [contentRef]
);
- const style = (0, import_element192.useMemo)(() => {
- if (!targetElement) {
- return {};
- }
- const targetElementRect = targetElement.getBoundingClientRect();
- return {
- width: getDropIndicatorWidth(targetElementRect, 0)
- };
- }, [getDropIndicatorWidth, targetElement]);
- const horizontalScrollOffsetStyle = (0, import_element192.useMemo)(() => {
- if (!targetElement) {
- return {};
- }
- const scrollContainer = (0, import_dom64.getScrollContainer)(targetElement);
- const ownerDocument2 = targetElement.ownerDocument;
- const windowScroll = scrollContainer === ownerDocument2.body || scrollContainer === ownerDocument2.documentElement;
- if (scrollContainer && !windowScroll) {
- const scrollContainerRect = scrollContainer.getBoundingClientRect();
- const targetElementRect = targetElement.getBoundingClientRect();
- const distanceBetweenContainerAndTarget = rtl ? scrollContainerRect.right - targetElementRect.right : targetElementRect.left - scrollContainerRect.left;
- if (!rtl && scrollContainerRect.left > targetElementRect.left) {
- return {
- transform: `translateX( ${distanceBetweenContainerAndTarget}px )`
- };
- }
- if (rtl && scrollContainerRect.right < targetElementRect.right) {
- return {
- transform: `translateX( ${distanceBetweenContainerAndTarget * -1}px )`
- };
- }
- }
- return {};
- }, [rtl, targetElement]);
- const ariaLevel = (0, import_element192.useMemo)(() => {
- if (!rootBlockElement) {
- return 1;
- }
- const _ariaLevel = parseInt(
- rootBlockElement.getAttribute("aria-level"),
- 10
- );
- return _ariaLevel ? _ariaLevel + 1 : 1;
- }, [rootBlockElement]);
- const hasAdjacentSelectedBranch = (0, import_element192.useMemo)(() => {
- if (!targetElement) {
- return false;
- }
- return targetElement.classList.contains("is-branch-selected");
- }, [targetElement]);
- const popoverAnchor = (0, import_element192.useMemo)(() => {
- const isValidDropPosition = dropPosition === "top" || dropPosition === "bottom" || dropPosition === "inside";
- if (!targetElement || !isValidDropPosition) {
+ return contentRef ? effect : null;
+ }
+ var use_popover_scroll_default = usePopoverScroll;
+
+ // packages/block-editor/build-module/components/block-popover/inbetween.mjs
+ var import_jsx_runtime269 = __toESM(require_jsx_runtime(), 1);
+ var MAX_POPOVER_RECOMPUTE_COUNTER = Number.MAX_SAFE_INTEGER;
+ function BlockPopoverInbetween({
+ previousClientId,
+ nextClientId,
+ children,
+ __unstablePopoverSlot,
+ __unstableContentRef,
+ operation = "insert",
+ nearestSide = "right",
+ ...props
+ }) {
+ const [popoverRecomputeCounter, forcePopoverRecompute] = (0, import_element142.useReducer)(
+ // Module is there to make sure that the counter doesn't overflow.
+ (s2) => (s2 + 1) % MAX_POPOVER_RECOMPUTE_COUNTER,
+ 0
+ );
+ const { orientation, rootClientId, isVisible } = (0, import_data70.useSelect)(
+ (select3) => {
+ const {
+ getBlockListSettings: getBlockListSettings2,
+ getBlockRootClientId: getBlockRootClientId2,
+ isBlockVisible: isBlockVisible2
+ } = select3(store);
+ const _rootClientId = getBlockRootClientId2(
+ previousClientId ?? nextClientId
+ );
+ return {
+ orientation: getBlockListSettings2(_rootClientId)?.orientation || "vertical",
+ rootClientId: _rootClientId,
+ isVisible: isBlockVisible2(previousClientId) && isBlockVisible2(nextClientId)
+ };
+ },
+ [previousClientId, nextClientId]
+ );
+ const previousElement = useBlockElement(previousClientId);
+ const nextElement = useBlockElement(nextClientId);
+ const isVertical = orientation === "vertical";
+ const popoverAnchor = (0, import_element142.useMemo)(() => {
+ if (
+ // popoverRecomputeCounter is by definition always equal or greater than 0.
+ // This check is only there to satisfy the correctness of the
+ // exhaustive-deps rule for the `useMemo` hook.
+ popoverRecomputeCounter < 0 || !previousElement && !nextElement || !isVisible
+ ) {
return void 0;
}
+ const contextElement = operation === "group" ? nextElement || previousElement : previousElement || nextElement;
return {
- contextElement: targetElement,
+ contextElement,
getBoundingClientRect() {
- const rect = targetElement.getBoundingClientRect();
- let left = rect.left;
+ const previousRect = previousElement ? previousElement.getBoundingClientRect() : null;
+ const nextRect = nextElement ? nextElement.getBoundingClientRect() : null;
+ let left = 0;
let top = 0;
- const scrollContainer = (0, import_dom64.getScrollContainer)(
- targetElement,
- "horizontal"
- );
- const doc = targetElement.ownerDocument;
- const windowScroll = scrollContainer === doc.body || scrollContainer === doc.documentElement;
- if (scrollContainer && !windowScroll) {
- const scrollContainerRect = scrollContainer.getBoundingClientRect();
- const scrollbarWidth = rtl ? scrollContainer.offsetWidth - scrollContainer.clientWidth : 0;
- if (left < scrollContainerRect.left + scrollbarWidth) {
- left = scrollContainerRect.left + scrollbarWidth;
- }
- }
- if (dropPosition === "top") {
- top = rect.top - rect.height * 2;
+ let width = 0;
+ let height = 0;
+ if (operation === "group") {
+ const targetRect = nextRect || previousRect;
+ top = targetRect.top;
+ width = 0;
+ height = targetRect.bottom - targetRect.top;
+ left = nearestSide === "left" ? targetRect.left - 2 : targetRect.right - 2;
+ } else if (isVertical) {
+ top = previousRect ? previousRect.bottom : nextRect.top;
+ width = previousRect ? previousRect.width : nextRect.width;
+ height = nextRect && previousRect ? nextRect.top - previousRect.bottom : 0;
+ left = previousRect ? previousRect.left : nextRect.left;
} else {
- top = rect.top;
+ top = previousRect ? previousRect.top : nextRect.top;
+ height = previousRect ? previousRect.height : nextRect.height;
+ if ((0, import_i18n70.isRTL)()) {
+ left = nextRect ? nextRect.right : previousRect.left;
+ width = previousRect && nextRect ? previousRect.left - nextRect.right : 0;
+ } else {
+ left = previousRect ? previousRect.right : nextRect.left;
+ width = previousRect && nextRect ? nextRect.left - previousRect.right : 0;
+ }
+ width = Math.max(width, 0);
}
- const width = getDropIndicatorWidth(rect, 0);
- const height = rect.height;
return new window.DOMRect(left, top, width, height);
}
};
- }, [targetElement, dropPosition, getDropIndicatorWidth, rtl]);
- if (!targetElement) {
+ }, [
+ previousElement,
+ nextElement,
+ popoverRecomputeCounter,
+ isVertical,
+ isVisible,
+ operation,
+ nearestSide
+ ]);
+ const popoverScrollRef = use_popover_scroll_default(__unstableContentRef);
+ (0, import_element142.useLayoutEffect)(() => {
+ if (!previousElement) {
+ return;
+ }
+ const observer = new window.MutationObserver(forcePopoverRecompute);
+ observer.observe(previousElement, { attributes: true });
+ return () => {
+ observer.disconnect();
+ };
+ }, [previousElement]);
+ (0, import_element142.useLayoutEffect)(() => {
+ if (!nextElement) {
+ return;
+ }
+ const observer = new window.MutationObserver(forcePopoverRecompute);
+ observer.observe(nextElement, { attributes: true });
+ return () => {
+ observer.disconnect();
+ };
+ }, [nextElement]);
+ (0, import_element142.useLayoutEffect)(() => {
+ if (!previousElement) {
+ return;
+ }
+ previousElement.ownerDocument.defaultView.addEventListener(
+ "resize",
+ forcePopoverRecompute
+ );
+ return () => {
+ previousElement.ownerDocument.defaultView?.removeEventListener(
+ "resize",
+ forcePopoverRecompute
+ );
+ };
+ }, [previousElement]);
+ if (!previousElement && !nextElement || !isVisible) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
- import_components122.Popover,
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
+ import_components61.Popover,
{
+ ref: popoverScrollRef,
animate: false,
anchor: popoverAnchor,
focusOnMount: false,
- className: "block-editor-list-view-drop-indicator--preview",
- variant: "unstyled",
+ __unstableSlotName: __unstablePopoverSlot,
+ inline: !__unstablePopoverSlot,
+ ...props,
+ className: clsx_default(
+ "block-editor-block-popover",
+ "block-editor-block-popover__inbetween",
+ props.className
+ ),
+ resize: false,
flip: false,
- resize: true,
- children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
- "div",
- {
- style,
- className: clsx_default(
- "block-editor-list-view-drop-indicator__line",
- {
- "block-editor-list-view-drop-indicator__line--darker": hasAdjacentSelectedBranch
- }
- ),
- children: /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(
- "div",
- {
- className: "block-editor-list-view-leaf",
- "aria-level": ariaLevel,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(
- "div",
- {
- className: clsx_default(
- "block-editor-list-view-block-select-button",
- "block-editor-list-view-block-contents"
- ),
- style: horizontalScrollOffsetStyle,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(ListViewExpander, { onClick: () => {
- } }),
- /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
- block_icon_default,
- {
- icon: blockInformation?.icon,
- showColors: true,
- context: "list-view"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
- import_components122.__experimentalHStack,
- {
- alignment: "center",
- className: "block-editor-list-view-block-select-button__label-wrapper",
- justify: "flex-start",
- spacing: 1,
- children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)("span", { className: "block-editor-list-view-block-select-button__title", children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(import_components122.__experimentalTruncate, { ellipsizeMode: "auto", children: blockTitle }) })
- }
- )
- ]
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime331.jsx)("div", { className: "block-editor-list-view-block__menu-cell" })
- ]
- }
- )
- }
- )
- }
+ placement: "overlay",
+ variant: "unstyled",
+ children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("div", { className: "block-editor-block-popover__inbetween-container", children })
+ },
+ nextClientId + "--" + rootClientId
);
}
+ var inbetween_default = BlockPopoverInbetween;
- // packages/block-editor/build-module/components/list-view/use-block-selection.mjs
- var import_a11y15 = __toESM(require_a11y(), 1);
- var import_i18n111 = __toESM(require_i18n(), 1);
- var import_data131 = __toESM(require_data(), 1);
- var import_element193 = __toESM(require_element(), 1);
- var import_keycodes17 = __toESM(require_keycodes(), 1);
- var import_blocks78 = __toESM(require_blocks(), 1);
- function useBlockSelection() {
- const { clearSelectedBlock: clearSelectedBlock2, multiSelect: multiSelect2, selectBlock: selectBlock2 } = (0, import_data131.useDispatch)(store);
- const {
- getBlockName: getBlockName2,
- getBlockParents: getBlockParents2,
- getBlockSelectionStart: getBlockSelectionStart2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- hasMultiSelection: hasMultiSelection2,
- hasSelectedBlock: hasSelectedBlock2
- } = (0, import_data131.useSelect)(store);
- const { getBlockType: getBlockType30 } = (0, import_data131.useSelect)(import_blocks78.store);
- const updateBlockSelection = (0, import_element193.useCallback)(
- async (event, clientId, destinationClientId, focusPosition) => {
- if (!event?.shiftKey && event?.keyCode !== import_keycodes17.ESCAPE) {
- selectBlock2(clientId, focusPosition);
- return;
- }
- event.preventDefault();
- const isOnlyDeselection = event.type === "keydown" && event.keyCode === import_keycodes17.ESCAPE;
- const isKeyPress = event.type === "keydown" && (event.keyCode === import_keycodes17.UP || event.keyCode === import_keycodes17.DOWN || event.keyCode === import_keycodes17.HOME || event.keyCode === import_keycodes17.END);
- if (!isKeyPress && !hasSelectedBlock2() && !hasMultiSelection2()) {
- selectBlock2(clientId, null);
- return;
- }
- const selectedBlocks = getSelectedBlockClientIds2();
- const clientIdWithParents = [
- ...getBlockParents2(clientId),
- clientId
- ];
- if (isOnlyDeselection || isKeyPress && !selectedBlocks.some(
- (blockId) => clientIdWithParents.includes(blockId)
- )) {
- await clearSelectedBlock2();
- }
- if (!isOnlyDeselection) {
- let startTarget = getBlockSelectionStart2();
- let endTarget = clientId;
- if (isKeyPress) {
- if (!hasSelectedBlock2() && !hasMultiSelection2()) {
- startTarget = clientId;
- }
- if (destinationClientId) {
- endTarget = destinationClientId;
- }
- }
- const startParents = getBlockParents2(startTarget);
- const endParents = getBlockParents2(endTarget);
- const { start: start2, end } = getCommonDepthClientIds(
- startTarget,
- endTarget,
- startParents,
- endParents
- );
- await multiSelect2(start2, end, null);
- }
- const updatedSelectedBlocks = getSelectedBlockClientIds2();
- if ((event.keyCode === import_keycodes17.HOME || event.keyCode === import_keycodes17.END) && updatedSelectedBlocks.length > 1) {
+ // packages/block-editor/build-module/components/block-popover/drop-zone.mjs
+ var import_data71 = __toESM(require_data(), 1);
+ var import_compose52 = __toESM(require_compose(), 1);
+ var import_components63 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/block-popover/cover.mjs
+ var import_element144 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/block-popover/index.mjs
+ var import_compose51 = __toESM(require_compose(), 1);
+ var import_components62 = __toESM(require_components(), 1);
+ var import_element143 = __toESM(require_element(), 1);
+ var import_jsx_runtime270 = __toESM(require_jsx_runtime(), 1);
+ var MAX_POPOVER_RECOMPUTE_COUNTER2 = Number.MAX_SAFE_INTEGER;
+ function BlockPopover({
+ clientId,
+ bottomClientId,
+ children,
+ __unstablePopoverSlot,
+ __unstableContentRef,
+ shift: shift4 = true,
+ ...props
+ }, ref) {
+ const selectedElement = useBlockElement(clientId);
+ const lastSelectedElement = useBlockElement(bottomClientId ?? clientId);
+ const mergedRefs = (0, import_compose51.useMergeRefs)([
+ ref,
+ use_popover_scroll_default(__unstableContentRef)
+ ]);
+ const [
+ popoverDimensionsRecomputeCounter,
+ forceRecomputePopoverDimensions
+ ] = (0, import_element143.useReducer)(
+ // Module is there to make sure that the counter doesn't overflow.
+ (s2) => (s2 + 1) % MAX_POPOVER_RECOMPUTE_COUNTER2,
+ 0
+ );
+ (0, import_element143.useLayoutEffect)(() => {
+ if (!selectedElement) {
+ return;
+ }
+ let rafId2;
+ const observer = new window.MutationObserver(() => {
+ if (rafId2) {
return;
}
- const selectionDiff = selectedBlocks.filter(
- (blockId) => !updatedSelectedBlocks.includes(blockId)
- );
- let label;
- if (selectionDiff.length === 1) {
- const title = getBlockType30(
- getBlockName2(selectionDiff[0])
- )?.title;
- if (title) {
- label = (0, import_i18n111.sprintf)(
- /* translators: %s: block name */
- (0, import_i18n111.__)("%s deselected."),
- title
- );
- }
- } else if (selectionDiff.length > 1) {
- label = (0, import_i18n111.sprintf)(
- /* translators: %s: number of deselected blocks */
- (0, import_i18n111.__)("%s blocks deselected."),
- selectionDiff.length
- );
- }
- if (label) {
- (0, import_a11y15.speak)(label, "assertive");
+ rafId2 = window.requestAnimationFrame(() => {
+ rafId2 = null;
+ forceRecomputePopoverDimensions();
+ });
+ });
+ observer.observe(selectedElement, { attributes: true });
+ return () => {
+ observer.disconnect();
+ if (rafId2) {
+ window.cancelAnimationFrame(rafId2);
}
- },
- [
- clearSelectedBlock2,
- getBlockName2,
- getBlockType30,
- getBlockParents2,
- getBlockSelectionStart2,
- getSelectedBlockClientIds2,
- hasMultiSelection2,
- hasSelectedBlock2,
- multiSelect2,
- selectBlock2
- ]
+ };
+ }, [selectedElement]);
+ const popoverAnchor = (0, import_element143.useMemo)(() => {
+ if (
+ // popoverDimensionsRecomputeCounter is by definition always equal or greater
+ // than 0. This check is only there to satisfy the correctness of the
+ // exhaustive-deps rule for the `useMemo` hook.
+ popoverDimensionsRecomputeCounter < 0 || !selectedElement || bottomClientId && !lastSelectedElement
+ ) {
+ return void 0;
+ }
+ return {
+ getBoundingClientRect() {
+ return lastSelectedElement ? rectUnion(
+ getElementBounds(selectedElement),
+ getElementBounds(lastSelectedElement)
+ ) : getElementBounds(selectedElement);
+ },
+ contextElement: selectedElement
+ };
+ }, [
+ popoverDimensionsRecomputeCounter,
+ selectedElement,
+ bottomClientId,
+ lastSelectedElement
+ ]);
+ if (!selectedElement || bottomClientId && !lastSelectedElement) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
+ import_components62.Popover,
+ {
+ ref: mergedRefs,
+ animate: false,
+ focusOnMount: false,
+ anchor: popoverAnchor,
+ __unstableSlotName: __unstablePopoverSlot,
+ inline: !__unstablePopoverSlot,
+ placement: "top-start",
+ resize: false,
+ flip: false,
+ shift: shift4,
+ ...props,
+ className: clsx_default("block-editor-block-popover", props.className),
+ variant: "unstyled",
+ children
+ }
);
- return {
- updateBlockSelection
- };
}
+ var PrivateBlockPopover = (0, import_element143.forwardRef)(BlockPopover);
+ var PublicBlockPopover = ({ clientId, bottomClientId, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
+ PrivateBlockPopover,
+ {
+ ...props,
+ bottomClientId,
+ clientId,
+ __unstableContentRef: void 0,
+ __unstablePopoverSlot: void 0,
+ ref,
+ children
+ }
+ );
+ var block_popover_default = (0, import_element143.forwardRef)(PublicBlockPopover);
- // packages/block-editor/build-module/components/list-view/use-list-view-block-indexes.mjs
- var import_element194 = __toESM(require_element(), 1);
- function useListViewBlockIndexes(blocks2) {
- const blockIndexes = (0, import_element194.useMemo)(() => {
- const indexes = {};
- let currentGlobalIndex = 0;
- const traverseBlocks = (blockList) => {
- blockList.forEach((block) => {
- indexes[block.clientId] = currentGlobalIndex;
- currentGlobalIndex++;
- if (block.innerBlocks.length > 0) {
- traverseBlocks(block.innerBlocks);
+ // packages/block-editor/build-module/components/block-popover/cover.mjs
+ var import_jsx_runtime271 = __toESM(require_jsx_runtime(), 1);
+ function BlockPopoverCover({
+ clientId,
+ bottomClientId,
+ children,
+ shift: shift4 = false,
+ additionalStyles,
+ ...props
+ }, ref) {
+ bottomClientId ??= clientId;
+ const selectedElement = useBlockElement(clientId);
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
+ PrivateBlockPopover,
+ {
+ ref,
+ clientId,
+ bottomClientId,
+ shift: shift4,
+ ...props,
+ children: selectedElement && clientId === bottomClientId ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
+ CoverContainer,
+ {
+ selectedElement,
+ additionalStyles,
+ children
}
- });
- };
- traverseBlocks(blocks2);
- return indexes;
- }, [blocks2]);
- return blockIndexes;
- }
-
- // packages/block-editor/build-module/components/list-view/use-list-view-client-ids.mjs
- var import_data132 = __toESM(require_data(), 1);
- function useListViewClientIds({ blocks: blocks2, rootClientId }) {
- return (0, import_data132.useSelect)(
- (select3) => {
- const {
- getDraggedBlockClientIds: getDraggedBlockClientIds2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getListViewClientIdsTree: getListViewClientIdsTree2
- } = unlock(select3(store));
- return {
- selectedClientIds: getSelectedBlockClientIds2(),
- draggedClientIds: getDraggedBlockClientIds2(),
- clientIdsTree: blocks2 ?? getListViewClientIdsTree2(rootClientId)
- };
- },
- [blocks2, rootClientId]
+ ) : children
+ }
);
}
+ function CoverContainer({
+ selectedElement,
+ additionalStyles = {},
+ children
+ }) {
+ const [width, setWidth] = (0, import_element144.useState)(selectedElement.offsetWidth);
+ const [height, setHeight] = (0, import_element144.useState)(selectedElement.offsetHeight);
+ (0, import_element144.useEffect)(() => {
+ const observer = new window.ResizeObserver(() => {
+ setWidth(selectedElement.offsetWidth);
+ setHeight(selectedElement.offsetHeight);
+ });
+ observer.observe(selectedElement, { box: "border-box" });
+ return () => observer.disconnect();
+ }, [selectedElement]);
+ const style = (0, import_element144.useMemo)(() => {
+ return {
+ position: "absolute",
+ width,
+ height,
+ ...additionalStyles
+ };
+ }, [width, height, additionalStyles]);
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("div", { style, children });
+ }
+ var cover_default = (0, import_element144.forwardRef)(BlockPopoverCover);
- // packages/block-editor/build-module/components/list-view/use-list-view-collapse-items.mjs
- var import_element195 = __toESM(require_element(), 1);
- var import_data133 = __toESM(require_data(), 1);
- function useListViewCollapseItems({ collapseAll, expand }) {
- const { expandedBlock: expandedBlock2, getBlockParents: getBlockParents2 } = (0, import_data133.useSelect)((select3) => {
- const { getBlockParents: _getBlockParents, getExpandedBlock: getExpandedBlock2 } = unlock(
- select3(store)
- );
+ // packages/block-editor/build-module/components/block-popover/drop-zone.mjs
+ var import_jsx_runtime272 = __toESM(require_jsx_runtime(), 1);
+ var animateVariants = {
+ hide: { opacity: 0, scaleY: 0.75 },
+ show: { opacity: 1, scaleY: 1 },
+ exit: { opacity: 0, scaleY: 0.9 }
+ };
+ function BlockDropZonePopover({
+ __unstablePopoverSlot,
+ __unstableContentRef
+ }) {
+ const { clientId } = (0, import_data71.useSelect)((select3) => {
+ const { getBlockOrder: getBlockOrder2, getBlockInsertionPoint: getBlockInsertionPoint2 } = select3(store);
+ const insertionPoint2 = getBlockInsertionPoint2();
+ const order = getBlockOrder2(insertionPoint2.rootClientId);
+ if (!order.length) {
+ return {};
+ }
return {
- expandedBlock: getExpandedBlock2(),
- getBlockParents: _getBlockParents
+ clientId: order[insertionPoint2.index]
};
}, []);
- (0, import_element195.useEffect)(() => {
- if (expandedBlock2) {
- const blockParents = getBlockParents2(expandedBlock2, false);
- collapseAll();
- expand(blockParents);
+ const reducedMotion = (0, import_compose52.useReducedMotion)();
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
+ cover_default,
+ {
+ clientId,
+ __unstablePopoverSlot,
+ __unstableContentRef,
+ className: "block-editor-block-popover__drop-zone",
+ children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
+ import_components63.__unstableMotion.div,
+ {
+ "data-testid": "block-popover-drop-zone",
+ initial: reducedMotion ? animateVariants.show : animateVariants.hide,
+ animate: animateVariants.show,
+ exit: reducedMotion ? animateVariants.show : animateVariants.exit,
+ className: "block-editor-block-popover__drop-zone-foreground"
+ }
+ )
}
- }, [collapseAll, expand, expandedBlock2, getBlockParents2]);
- }
-
- // packages/block-editor/build-module/components/list-view/use-list-view-drop-zone.mjs
- var import_data134 = __toESM(require_data(), 1);
- var import_element196 = __toESM(require_element(), 1);
- var import_compose75 = __toESM(require_compose(), 1);
- var import_i18n112 = __toESM(require_i18n(), 1);
- var NESTING_LEVEL_INDENTATION = 24;
- function isUpGesture(point, rect, nestingLevel = 1, rtl = false) {
- const blockIndentPosition = rtl ? rect.right - nestingLevel * NESTING_LEVEL_INDENTATION : rect.left + nestingLevel * NESTING_LEVEL_INDENTATION;
- return rtl ? point.x > blockIndentPosition : point.x < blockIndentPosition;
- }
- function getDesiredRelativeParentLevel(point, rect, nestingLevel = 1, rtl = false) {
- const blockIndentPosition = rtl ? rect.right - nestingLevel * NESTING_LEVEL_INDENTATION : rect.left + nestingLevel * NESTING_LEVEL_INDENTATION;
- const distanceBetweenPointAndBlockIndentPosition = rtl ? blockIndentPosition - point.x : point.x - blockIndentPosition;
- const desiredParentLevel = Math.round(
- distanceBetweenPointAndBlockIndentPosition / NESTING_LEVEL_INDENTATION
);
- return Math.abs(desiredParentLevel);
- }
- function getCandidateBlockParents(candidateBlockData, blocksData) {
- const candidateBlockParents = [];
- let currentBlockData = candidateBlockData;
- while (currentBlockData) {
- candidateBlockParents.push({ ...currentBlockData });
- currentBlockData = blocksData.find(
- (blockData) => blockData.clientId === currentBlockData.rootClientId
- );
- }
- return candidateBlockParents;
- }
- function getNextNonDraggedBlock(blocksData, index2) {
- const nextBlockData = blocksData[index2 + 1];
- if (nextBlockData && nextBlockData.isDraggedBlock) {
- return getNextNonDraggedBlock(blocksData, index2 + 1);
- }
- return nextBlockData;
- }
- function isNestingGesture(point, rect, nestingLevel = 1, rtl = false) {
- const blockIndentPosition = rtl ? rect.right - nestingLevel * NESTING_LEVEL_INDENTATION : rect.left + nestingLevel * NESTING_LEVEL_INDENTATION;
- const isNestingHorizontalGesture = rtl ? point.x < blockIndentPosition - NESTING_LEVEL_INDENTATION : point.x > blockIndentPosition + NESTING_LEVEL_INDENTATION;
- return isNestingHorizontalGesture && point.y < rect.bottom;
}
- var ALLOWED_DROP_EDGES = ["top", "bottom"];
- function getListViewDropTarget(blocksData, position, rtl = false) {
- let candidateEdge;
- let candidateBlockData;
- let candidateDistance;
- let candidateRect;
- let candidateBlockIndex;
- for (let i2 = 0; i2 < blocksData.length; i2++) {
- const blockData = blocksData[i2];
- if (blockData.isDraggedBlock) {
- continue;
+ var drop_zone_default = BlockDropZonePopover;
+
+ // packages/block-editor/build-module/components/block-tools/insertion-point.mjs
+ var import_jsx_runtime273 = __toESM(require_jsx_runtime(), 1);
+ var InsertionPointOpenRef = (0, import_element145.createContext)();
+ InsertionPointOpenRef.displayName = "InsertionPointOpenRefContext";
+ function InbetweenInsertionPointPopover({
+ __unstablePopoverSlot,
+ __unstableContentRef,
+ operation = "insert",
+ nearestSide = "right"
+ }) {
+ const { selectBlock: selectBlock2, hideInsertionPoint: hideInsertionPoint2 } = (0, import_data72.useDispatch)(store);
+ const openRef = (0, import_element145.useContext)(InsertionPointOpenRef);
+ const ref = (0, import_element145.useRef)();
+ const {
+ orientation,
+ previousClientId,
+ nextClientId,
+ rootClientId,
+ isInserterShown,
+ isDistractionFree,
+ isZoomOutMode
+ } = (0, import_data72.useSelect)((select3) => {
+ const {
+ getBlockOrder: getBlockOrder2,
+ getBlockListSettings: getBlockListSettings2,
+ getBlockInsertionPoint: getBlockInsertionPoint2,
+ isBlockBeingDragged: isBlockBeingDragged2,
+ getPreviousBlockClientId: getPreviousBlockClientId2,
+ getNextBlockClientId: getNextBlockClientId2,
+ getSettings: getSettings8,
+ isZoomOut: isZoomOut2
+ } = unlock(select3(store));
+ const insertionPoint2 = getBlockInsertionPoint2();
+ const order = getBlockOrder2(insertionPoint2.rootClientId);
+ if (!order.length) {
+ return {};
}
- const rect = blockData.element.getBoundingClientRect();
- const [distance, edge] = getDistanceToNearestEdge(
- position,
- rect,
- ALLOWED_DROP_EDGES
- );
- const isCursorWithinBlock = isPointContainedByRect(position, rect);
- if (candidateDistance === void 0 || distance < candidateDistance || isCursorWithinBlock) {
- candidateDistance = distance;
- const index2 = blocksData.indexOf(blockData);
- const previousBlockData = blocksData[index2 - 1];
- if (edge === "top" && previousBlockData && previousBlockData.rootClientId === blockData.rootClientId && !previousBlockData.isDraggedBlock) {
- candidateBlockData = previousBlockData;
- candidateEdge = "bottom";
- candidateRect = previousBlockData.element.getBoundingClientRect();
- candidateBlockIndex = index2 - 1;
- } else {
- candidateBlockData = blockData;
- candidateEdge = edge;
- candidateRect = rect;
- candidateBlockIndex = index2;
- }
- if (isCursorWithinBlock) {
- break;
- }
+ let _previousClientId = order[insertionPoint2.index - 1];
+ let _nextClientId = order[insertionPoint2.index];
+ while (isBlockBeingDragged2(_previousClientId)) {
+ _previousClientId = getPreviousBlockClientId2(_previousClientId);
}
- }
- if (!candidateBlockData) {
- return;
- }
- const candidateBlockParents = getCandidateBlockParents(
- candidateBlockData,
- blocksData
- );
- const isDraggingBelow = candidateEdge === "bottom";
- if (isDraggingBelow && candidateBlockData.canInsertDraggedBlocksAsChild && (candidateBlockData.innerBlockCount > 0 && candidateBlockData.isExpanded || isNestingGesture(
- position,
- candidateRect,
- candidateBlockParents.length,
- rtl
- ))) {
- const newBlockIndex = candidateBlockData.isExpanded ? 0 : candidateBlockData.innerBlockCount || 0;
+ while (isBlockBeingDragged2(_nextClientId)) {
+ _nextClientId = getNextBlockClientId2(_nextClientId);
+ }
+ const settings2 = getSettings8();
return {
- rootClientId: candidateBlockData.clientId,
- clientId: candidateBlockData.clientId,
- blockIndex: newBlockIndex,
- dropPosition: "inside"
+ previousClientId: _previousClientId,
+ nextClientId: _nextClientId,
+ orientation: getBlockListSettings2(insertionPoint2.rootClientId)?.orientation || "vertical",
+ rootClientId: insertionPoint2.rootClientId,
+ isDistractionFree: settings2.isDistractionFree,
+ isInserterShown: insertionPoint2?.__unstableWithInserter,
+ isZoomOutMode: isZoomOut2()
};
+ }, []);
+ const { getBlockEditingMode: getBlockEditingMode2 } = (0, import_data72.useSelect)(store);
+ const disableMotion = (0, import_compose53.useReducedMotion)();
+ function onClick(event) {
+ if (event.target === ref.current && nextClientId && getBlockEditingMode2(nextClientId) !== "disabled") {
+ selectBlock2(nextClientId, -1);
+ }
}
- if (isDraggingBelow && candidateBlockData.rootClientId && isUpGesture(
- position,
- candidateRect,
- candidateBlockParents.length,
- rtl
- )) {
- const nextBlock = getNextNonDraggedBlock(
- blocksData,
- candidateBlockIndex
- );
- const currentLevel = candidateBlockData.nestingLevel;
- const nextLevel = nextBlock ? nextBlock.nestingLevel : 1;
- if (currentLevel && nextLevel) {
- const desiredRelativeLevel = getDesiredRelativeParentLevel(
- position,
- candidateRect,
- candidateBlockParents.length,
- rtl
- );
- const targetParentIndex = Math.max(
- Math.min(desiredRelativeLevel, currentLevel - nextLevel),
- 0
- );
- if (candidateBlockParents[targetParentIndex]) {
- let newBlockIndex = candidateBlockData.blockIndex;
- if (candidateBlockParents[targetParentIndex].nestingLevel === nextBlock?.nestingLevel) {
- newBlockIndex = nextBlock?.blockIndex;
- } else {
- for (let i2 = candidateBlockIndex; i2 >= 0; i2--) {
- const blockData = blocksData[i2];
- if (blockData.rootClientId === candidateBlockParents[targetParentIndex].rootClientId) {
- newBlockIndex = blockData.blockIndex + 1;
- break;
- }
- }
- }
- return {
- rootClientId: candidateBlockParents[targetParentIndex].rootClientId,
- clientId: candidateBlockData.clientId,
- blockIndex: newBlockIndex,
- dropPosition: candidateEdge
- };
- }
+ function maybeHideInserterPoint(event) {
+ if (event.target === ref.current && !openRef.current) {
+ hideInsertionPoint2();
}
}
- if (!candidateBlockData.canInsertDraggedBlocksAsSibling) {
- return;
+ function onFocus(event) {
+ if (event.target !== ref.current) {
+ openRef.current = true;
+ }
}
- const offset4 = isDraggingBelow ? 1 : 0;
- return {
- rootClientId: candidateBlockData.rootClientId,
- clientId: candidateBlockData.clientId,
- blockIndex: candidateBlockData.blockIndex + offset4,
- dropPosition: candidateEdge
- };
- }
- var EXPAND_THROTTLE_OPTIONS = {
- leading: false,
- // Don't call the function immediately on the first call.
- trailing: true
- // Do call the function on the last call.
- };
- function useListViewDropZone({
- dropZoneElement,
- expandedState,
- setExpandedState
- }) {
- const {
- getBlockRootClientId: getBlockRootClientId2,
- getBlockIndex: getBlockIndex2,
- getBlockCount: getBlockCount2,
- getDraggedBlockClientIds: getDraggedBlockClientIds2,
- canInsertBlocks: canInsertBlocks2
- } = (0, import_data134.useSelect)(store);
- const [target, setTarget] = (0, import_element196.useState)();
- const { rootClientId: targetRootClientId, blockIndex: targetBlockIndex } = target || {};
- const onBlockDrop2 = useOnBlockDrop(targetRootClientId, targetBlockIndex);
- const rtl = (0, import_i18n112.isRTL)();
- const previousRootClientId = (0, import_compose75.usePrevious)(targetRootClientId);
- const maybeExpandBlock = (0, import_element196.useCallback)(
- (_expandedState, _target) => {
- const { rootClientId } = _target || {};
- if (!rootClientId) {
- return;
- }
- if (_target?.dropPosition === "inside" && !_expandedState[rootClientId]) {
- setExpandedState({
- type: "expand",
- clientIds: [rootClientId]
- });
+ const maybeResetOpenRef = (0, import_element145.useCallback)(
+ (node) => {
+ if (!node && openRef.current) {
+ openRef.current = false;
}
},
- [setExpandedState]
- );
- const throttledMaybeExpandBlock = (0, import_compose75.useThrottle)(
- maybeExpandBlock,
- 500,
- EXPAND_THROTTLE_OPTIONS
+ [openRef]
);
- (0, import_element196.useEffect)(() => {
- if (target?.dropPosition !== "inside" || previousRootClientId !== target?.rootClientId) {
- throttledMaybeExpandBlock.cancel();
- return;
- }
- throttledMaybeExpandBlock(expandedState, target);
- }, [
- expandedState,
- previousRootClientId,
- target,
- throttledMaybeExpandBlock
- ]);
- const draggedBlockClientIds = getDraggedBlockClientIds2();
- const throttled = (0, import_compose75.useThrottle)(
- (0, import_element196.useCallback)(
- (event, currentTarget) => {
- const position = { x: event.clientX, y: event.clientY };
- const isBlockDrag = !!draggedBlockClientIds?.length;
- const blockElements = Array.from(
- currentTarget.querySelectorAll("[data-block]")
- );
- const blocksData = blockElements.map((blockElement) => {
- const clientId = blockElement.dataset.block;
- const isExpanded = blockElement.dataset.expanded === "true";
- const isDraggedBlock = blockElement.classList.contains("is-dragging");
- const nestingLevel = parseInt(
- blockElement.getAttribute("aria-level"),
- 10
- );
- const rootClientId = getBlockRootClientId2(clientId);
- return {
- clientId,
- isExpanded,
- rootClientId,
- blockIndex: getBlockIndex2(clientId),
- element: blockElement,
- nestingLevel: nestingLevel || void 0,
- isDraggedBlock: isBlockDrag ? isDraggedBlock : false,
- innerBlockCount: getBlockCount2(clientId),
- canInsertDraggedBlocksAsSibling: isBlockDrag ? canInsertBlocks2(
- draggedBlockClientIds,
- rootClientId
- ) : true,
- canInsertDraggedBlocksAsChild: isBlockDrag ? canInsertBlocks2(draggedBlockClientIds, clientId) : true
- };
- });
- const newTarget = getListViewDropTarget(
- blocksData,
- position,
- rtl
- );
- if (newTarget) {
- setTarget(newTarget);
- }
- },
- [
- canInsertBlocks2,
- draggedBlockClientIds,
- getBlockCount2,
- getBlockIndex2,
- getBlockRootClientId2,
- rtl
- ]
- ),
- 50
- );
- const ref = (0, import_compose75.__experimentalUseDropZone)({
- dropZoneElement,
- onDrop(event) {
- throttled.cancel();
- if (target) {
- onBlockDrop2(event);
- }
- setTarget(void 0);
+ const lineVariants = {
+ // Initial position starts from the center and invisible.
+ start: {
+ opacity: 0,
+ scale: 0
},
- onDragLeave() {
- throttled.cancel();
- setTarget(null);
+ // The line expands to fill the container. If the inserter is visible it
+ // is delayed so it appears orchestrated.
+ rest: {
+ opacity: 1,
+ scale: 1,
+ transition: { delay: isInserterShown ? 0.5 : 0, type: "tween" }
},
- onDragOver(event) {
- throttled(event, event.currentTarget);
+ hover: {
+ opacity: 1,
+ scale: 1,
+ transition: { delay: 0.5, type: "tween" }
+ }
+ };
+ const inserterVariants = {
+ start: {
+ scale: disableMotion ? 1 : 0
},
- onDragEnd() {
- throttled.cancel();
- setTarget(void 0);
+ rest: {
+ scale: 1,
+ transition: { delay: 0.4, type: "tween" }
}
- });
- return { ref, target };
+ };
+ if (isDistractionFree) {
+ return null;
+ }
+ if (isZoomOutMode && operation !== "insert") {
+ return null;
+ }
+ const orientationClassname = orientation === "horizontal" || operation === "group" ? "is-horizontal" : "is-vertical";
+ const className2 = clsx_default(
+ "block-editor-block-list__insertion-point",
+ orientationClassname
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
+ inbetween_default,
+ {
+ previousClientId,
+ nextClientId,
+ __unstablePopoverSlot,
+ __unstableContentRef,
+ operation,
+ nearestSide,
+ children: /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(
+ import_components64.__unstableMotion.div,
+ {
+ layout: !disableMotion,
+ initial: disableMotion ? "rest" : "start",
+ animate: "rest",
+ whileHover: "hover",
+ whileTap: "pressed",
+ exit: "start",
+ ref,
+ tabIndex: -1,
+ onClick,
+ onFocus,
+ className: clsx_default(className2, {
+ "is-with-inserter": isInserterShown
+ }),
+ onHoverEnd: maybeHideInserterPoint,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
+ import_components64.__unstableMotion.div,
+ {
+ variants: lineVariants,
+ className: "block-editor-block-list__insertion-point-indicator",
+ "data-testid": "block-list-insertion-point-indicator"
+ }
+ ),
+ isInserterShown && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
+ import_components64.__unstableMotion.div,
+ {
+ variants: inserterVariants,
+ className: clsx_default(
+ "block-editor-block-list__insertion-point-inserter"
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
+ inserter_default,
+ {
+ ref: maybeResetOpenRef,
+ position: "bottom center",
+ clientId: nextClientId,
+ rootClientId,
+ __experimentalIsQuick: true,
+ onToggle: (isOpen) => {
+ openRef.current = isOpen;
+ },
+ onSelectOrClose: () => {
+ openRef.current = false;
+ }
+ }
+ )
+ }
+ )
+ ]
+ }
+ )
+ }
+ );
}
-
- // packages/block-editor/build-module/components/list-view/use-list-view-expand-selected-item.mjs
- var import_element197 = __toESM(require_element(), 1);
- var import_data135 = __toESM(require_data(), 1);
- function useListViewExpandSelectedItem({
- firstSelectedBlockClientId,
- setExpandedState
- }) {
- const [selectedTreeId, setSelectedTreeId] = (0, import_element197.useState)(null);
- const { selectedBlockParentClientIds } = (0, import_data135.useSelect)(
+ function InsertionPoint(props) {
+ const { insertionPoint: insertionPoint2, isVisible, isBlockListEmpty } = (0, import_data72.useSelect)(
(select3) => {
- const { getBlockParents: getBlockParents2 } = select3(store);
+ const {
+ getBlockInsertionPoint: getBlockInsertionPoint2,
+ isBlockInsertionPointVisible: isBlockInsertionPointVisible2,
+ getBlockCount: getBlockCount2
+ } = select3(store);
+ const blockInsertionPoint = getBlockInsertionPoint2();
return {
- selectedBlockParentClientIds: getBlockParents2(
- firstSelectedBlockClientId,
- false
- )
+ insertionPoint: blockInsertionPoint,
+ isVisible: isBlockInsertionPointVisible2(),
+ isBlockListEmpty: getBlockCount2(blockInsertionPoint?.rootClientId) === 0
};
},
- [firstSelectedBlockClientId]
+ []
);
- (0, import_element197.useEffect)(() => {
- if (selectedTreeId === firstSelectedBlockClientId) {
- return;
- }
- if (selectedBlockParentClientIds?.length) {
- setExpandedState({
- type: "expand",
- clientIds: selectedBlockParentClientIds
- });
+ if (!isVisible || // Don't render the insertion point if the block list is empty.
+ // The insertion point will be represented by the appender instead.
+ isBlockListEmpty) {
+ return null;
+ }
+ return insertionPoint2.operation === "replace" ? /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
+ drop_zone_default,
+ {
+ ...props
+ },
+ `${insertionPoint2.rootClientId}-${insertionPoint2.index}`
+ ) : /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
+ InbetweenInsertionPointPopover,
+ {
+ operation: insertionPoint2.operation,
+ nearestSide: insertionPoint2.nearestSide,
+ ...props
}
- }, [
- firstSelectedBlockClientId,
- selectedBlockParentClientIds,
- selectedTreeId,
- setExpandedState
- ]);
- return {
- setSelectedTreeId
- };
+ );
}
- // packages/block-editor/build-module/components/list-view/use-clipboard-handler.mjs
- var import_data136 = __toESM(require_data(), 1);
- var import_compose76 = __toESM(require_compose(), 1);
- function useClipboardHandler2({ selectBlock: selectBlock2 }) {
- const registry = (0, import_data136.useRegistry)();
+ // packages/block-editor/build-module/components/block-list/use-in-between-inserter.mjs
+ function useInBetweenInserter() {
+ const openRef = (0, import_element146.useContext)(InsertionPointOpenRef);
+ const isInBetweenInserterDisabled = (0, import_data73.useSelect)((select3) => {
+ const settings2 = select3(store).getSettings();
+ return settings2.isDistractionFree || settings2.isPreviewMode || unlock(select3(store)).isZoomOut();
+ }, []);
const {
- getBlockOrder: getBlockOrder2,
- getBlockRootClientId: getBlockRootClientId2,
- getBlocksByClientId: getBlocksByClientId2,
- getPreviousBlockClientId: getPreviousBlockClientId2,
+ getBlockListSettings: getBlockListSettings2,
+ getBlockIndex: getBlockIndex2,
+ isMultiSelecting: isMultiSelecting3,
getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getSettings: getSettings7,
- canInsertBlockType: canInsertBlockType2,
- canRemoveBlocks: canRemoveBlocks2
- } = (0, import_data136.useSelect)(store);
- const { flashBlock: flashBlock2, removeBlocks: removeBlocks2, replaceBlocks: replaceBlocks2, insertBlocks: insertBlocks2 } = (0, import_data136.useDispatch)(store);
- const notifyCopy = useNotifyCopy();
- return (0, import_compose76.useRefEffect)((node) => {
- function updateFocusAndSelection(focusClientId, shouldSelectBlock) {
- if (shouldSelectBlock) {
- selectBlock2(void 0, focusClientId, null, null);
- }
- focusListItem(focusClientId, node);
- }
- function getBlocksToUpdate(clientId) {
- const selectedBlockClientIds = getSelectedBlockClientIds2();
- const isUpdatingSelectedBlocks = selectedBlockClientIds.includes(clientId);
- const firstBlockClientId = isUpdatingSelectedBlocks ? selectedBlockClientIds[0] : clientId;
- const firstBlockRootClientId = getBlockRootClientId2(firstBlockClientId);
- const blocksToUpdate = isUpdatingSelectedBlocks ? selectedBlockClientIds : [clientId];
- return {
- blocksToUpdate,
- firstBlockClientId,
- firstBlockRootClientId,
- originallySelectedBlockClientIds: selectedBlockClientIds
- };
- }
- function handler(event) {
- if (event.defaultPrevented) {
- return;
- }
- if (!node.contains(event.target.ownerDocument.activeElement)) {
- return;
- }
- const listViewRow = event.target.ownerDocument.activeElement?.closest(
- "[role=row]"
- );
- const clientId = listViewRow?.dataset?.block;
- if (!clientId) {
- return;
- }
- const {
- blocksToUpdate: selectedBlockClientIds,
- firstBlockClientId,
- firstBlockRootClientId,
- originallySelectedBlockClientIds
- } = getBlocksToUpdate(clientId);
- if (selectedBlockClientIds.length === 0) {
+ getSettings: getSettings8,
+ getTemplateLock: getTemplateLock2,
+ __unstableIsWithinBlockOverlay: __unstableIsWithinBlockOverlay2,
+ getBlockEditingMode: getBlockEditingMode2,
+ getBlockName: getBlockName2,
+ getBlockAttributes: getBlockAttributes3,
+ getParentSectionBlock: getParentSectionBlock2
+ } = unlock((0, import_data73.useSelect)(store));
+ const { showInsertionPoint: showInsertionPoint2, hideInsertionPoint: hideInsertionPoint2 } = (0, import_data73.useDispatch)(store);
+ return (0, import_compose54.useRefEffect)(
+ (node) => {
+ if (isInBetweenInserterDisabled) {
return;
}
- event.preventDefault();
- if (event.type === "copy" || event.type === "cut") {
- if (selectedBlockClientIds.length === 1) {
- flashBlock2(selectedBlockClientIds[0]);
+ function onMouseMove(event) {
+ if (openRef === void 0 || openRef.current) {
+ return;
}
- notifyCopy(event.type, selectedBlockClientIds);
- const blocks2 = getBlocksByClientId2(selectedBlockClientIds);
- setClipboardBlocks(event, blocks2, registry);
- }
- if (event.type === "cut") {
- if (!canRemoveBlocks2(selectedBlockClientIds)) {
+ if (event.target.nodeType === event.target.TEXT_NODE) {
return;
}
- let blockToFocus = getPreviousBlockClientId2(firstBlockClientId) ?? // If the previous block is not found (when the first block is deleted),
- // fallback to focus the parent block.
- firstBlockRootClientId;
- removeBlocks2(selectedBlockClientIds, false);
- const shouldUpdateSelection = originallySelectedBlockClientIds.length > 0 && getSelectedBlockClientIds2().length === 0;
- if (!blockToFocus) {
- blockToFocus = getBlockOrder2()[0];
+ if (isMultiSelecting3()) {
+ return;
}
- updateFocusAndSelection(blockToFocus, shouldUpdateSelection);
- } else if (event.type === "paste") {
- const {
- __experimentalCanUserUseUnfilteredHTML: canUserUseUnfilteredHTML
- } = getSettings7();
- const blocks2 = getPasteBlocks(
- event,
- canUserUseUnfilteredHTML
- );
- if (selectedBlockClientIds.length === 1) {
- const [selectedBlockClientId] = selectedBlockClientIds;
- if (blocks2.every(
- (block) => canInsertBlockType2(
- block.name,
- selectedBlockClientId
- )
- )) {
- insertBlocks2(
- blocks2,
- void 0,
- selectedBlockClientId
- );
- updateFocusAndSelection(blocks2[0]?.clientId, false);
+ if (!event.target.classList.contains(
+ "block-editor-block-list__layout"
+ )) {
+ hideInsertionPoint2();
+ return;
+ }
+ let rootClientId;
+ if (!event.target.classList.contains("is-root-container")) {
+ const blockElement = !!event.target.getAttribute(
+ "data-block"
+ ) ? event.target : event.target.closest("[data-block]");
+ rootClientId = blockElement.getAttribute("data-block");
+ }
+ if (getTemplateLock2(rootClientId) || getBlockEditingMode2(rootClientId) === "disabled" || getBlockName2(rootClientId) === "core/block" || rootClientId && getBlockAttributes3(rootClientId).layout?.isManualPlacement) {
+ return;
+ }
+ const blockListSettings2 = getBlockListSettings2(rootClientId);
+ const orientation = blockListSettings2?.orientation || "vertical";
+ const captureToolbars = !!blockListSettings2?.__experimentalCaptureToolbars;
+ const offsetTop = event.clientY;
+ const offsetLeft = event.clientX;
+ const children = Array.from(event.target.children);
+ let element = children.find((blockEl) => {
+ const blockElRect = blockEl.getBoundingClientRect();
+ return blockEl.classList.contains("wp-block") && orientation === "vertical" && blockElRect.top > offsetTop || blockEl.classList.contains("wp-block") && orientation === "horizontal" && ((0, import_i18n71.isRTL)() ? blockElRect.right < offsetLeft : blockElRect.left > offsetLeft);
+ });
+ if (!element) {
+ hideInsertionPoint2();
+ return;
+ }
+ if (!element.id) {
+ element = element.firstElementChild;
+ if (!element) {
+ hideInsertionPoint2();
return;
}
}
- replaceBlocks2(
- selectedBlockClientIds,
- blocks2,
- blocks2.length - 1,
- -1
- );
- updateFocusAndSelection(blocks2[0]?.clientId, false);
- }
- }
- node.ownerDocument.addEventListener("copy", handler);
- node.ownerDocument.addEventListener("cut", handler);
- node.ownerDocument.addEventListener("paste", handler);
- return () => {
- node.ownerDocument.removeEventListener("copy", handler);
- node.ownerDocument.removeEventListener("cut", handler);
- node.ownerDocument.removeEventListener("paste", handler);
- };
- }, []);
- }
-
- // packages/block-editor/build-module/components/list-view/index.mjs
- var import_jsx_runtime332 = __toESM(require_jsx_runtime(), 1);
- var expanded = (state, action) => {
- if (action.type === "clear") {
- return {};
- }
- if (Array.isArray(action.clientIds)) {
- return {
- ...state,
- ...action.clientIds.reduce(
- (newState, id) => ({
- ...newState,
- [id]: action.type === "expand"
- }),
- {}
- )
- };
- }
- return state;
- };
- var BLOCK_LIST_ITEM_HEIGHT = 32;
- function ListViewComponent({
- id,
- blocks: blocks2,
- dropZoneElement,
- showBlockMovers = false,
- isExpanded = false,
- showAppender = false,
- blockSettingsMenu: BlockSettingsMenu2 = BlockSettingsDropdown,
- rootClientId,
- description,
- onSelect,
- additionalBlockContent: AdditionalBlockContent
- }, ref) {
- if (blocks2) {
- (0, import_deprecated14.default)(
- "`blocks` property in `wp.blockEditor.__experimentalListView`",
- {
- since: "6.3",
- alternative: "`rootClientId` property"
+ const clientId = element.id.slice("block-".length);
+ if (!clientId || __unstableIsWithinBlockOverlay2(clientId) || !!getParentSectionBlock2(clientId)) {
+ return;
+ }
+ if (getSelectedBlockClientIds2().includes(clientId) && orientation === "vertical" && !captureToolbars && !getSettings8().hasFixedToolbar) {
+ return;
+ }
+ const elementRect = element.getBoundingClientRect();
+ if (orientation === "horizontal" && (event.clientY > elementRect.bottom || event.clientY < elementRect.top) || orientation === "vertical" && (event.clientX > elementRect.right || event.clientX < elementRect.left)) {
+ hideInsertionPoint2();
+ return;
+ }
+ const index2 = getBlockIndex2(clientId);
+ if (index2 === 0) {
+ hideInsertionPoint2();
+ return;
+ }
+ showInsertionPoint2(rootClientId, index2, {
+ __unstableWithInserter: true
+ });
}
- );
- }
- const instanceId = (0, import_compose77.useInstanceId)(ListViewComponent);
- const { clientIdsTree, draggedClientIds, selectedClientIds } = useListViewClientIds({ blocks: blocks2, rootClientId });
- const blockIndexes = useListViewBlockIndexes(clientIdsTree);
- const { getBlock: getBlock2, getSelectedBlockClientIds: getSelectedBlockClientIds2 } = (0, import_data137.useSelect)(store);
- const { visibleBlockCount } = (0, import_data137.useSelect)(
- (select3) => {
- const { getGlobalBlockCount: getGlobalBlockCount2, getClientIdsOfDescendants: getClientIdsOfDescendants2 } = select3(store);
- const draggedBlockCount = draggedClientIds?.length > 0 ? getClientIdsOfDescendants2(draggedClientIds).length + 1 : 0;
- return {
- visibleBlockCount: getGlobalBlockCount2() - draggedBlockCount
+ node.addEventListener("mousemove", onMouseMove);
+ return () => {
+ node.removeEventListener("mousemove", onMouseMove);
};
},
- [draggedClientIds]
- );
- const { updateBlockSelection } = useBlockSelection();
- const [expandedState, setExpandedState] = (0, import_element198.useReducer)(expanded, {});
- const [insertedBlock, setInsertedBlock] = (0, import_element198.useState)(null);
- const { setSelectedTreeId } = useListViewExpandSelectedItem({
- firstSelectedBlockClientId: selectedClientIds[0],
- setExpandedState
- });
- const selectEditorBlock = (0, import_element198.useCallback)(
- /**
- * @param {MouseEvent | KeyboardEvent | undefined} event
- * @param {string} blockClientId
- * @param {null | undefined | -1 | 1} focusPosition
- */
- (event, blockClientId, focusPosition) => {
- updateBlockSelection(event, blockClientId, null, focusPosition);
- setSelectedTreeId(blockClientId);
- if (onSelect) {
- onSelect(getBlock2(blockClientId));
- }
- },
- [setSelectedTreeId, updateBlockSelection, onSelect, getBlock2]
+ [
+ openRef,
+ getBlockListSettings2,
+ getBlockIndex2,
+ isMultiSelecting3,
+ showInsertionPoint2,
+ hideInsertionPoint2,
+ getSelectedBlockClientIds2,
+ isInBetweenInserterDisabled
+ ]
);
- const { ref: dropZoneRef, target: blockDropTarget } = useListViewDropZone({
- dropZoneElement,
- expandedState,
- setExpandedState
- });
- const elementRef = (0, import_element198.useRef)();
- const clipBoardRef = useClipboardHandler2({
- selectBlock: selectEditorBlock
- });
- const focusSelectedBlock = (0, import_element198.useCallback)(
+ }
+
+ // packages/block-editor/build-module/components/block-selection-clearer/index.mjs
+ var import_data74 = __toESM(require_data(), 1);
+ var import_compose55 = __toESM(require_compose(), 1);
+ var import_jsx_runtime274 = __toESM(require_jsx_runtime(), 1);
+ function useBlockSelectionClearer() {
+ const { getSettings: getSettings8, hasSelectedBlock: hasSelectedBlock2, hasMultiSelection: hasMultiSelection2 } = (0, import_data74.useSelect)(store);
+ const { clearSelectedBlock: clearSelectedBlock2 } = (0, import_data74.useDispatch)(store);
+ const { clearBlockSelection: isEnabled } = getSettings8();
+ return (0, import_compose55.useRefEffect)(
(node) => {
- const [firstSelectedClientId] = getSelectedBlockClientIds2();
- if (firstSelectedClientId && node) {
- focusListItem(firstSelectedClientId, node);
+ if (!isEnabled) {
+ return;
+ }
+ function onMouseDown(event) {
+ if (!hasSelectedBlock2() && !hasMultiSelection2()) {
+ return;
+ }
+ if (event.target !== node) {
+ return;
+ }
+ clearSelectedBlock2();
}
+ node.addEventListener("mousedown", onMouseDown);
+ return () => {
+ node.removeEventListener("mousedown", onMouseDown);
+ };
},
- [getSelectedBlockClientIds2]
+ [hasSelectedBlock2, hasMultiSelection2, clearSelectedBlock2, isEnabled]
);
- const treeGridRef = (0, import_compose77.useMergeRefs)([
- clipBoardRef,
- focusSelectedBlock,
- elementRef,
- dropZoneRef,
- ref
- ]);
- const expand = (0, import_element198.useCallback)(
- (clientId) => {
- if (!clientId) {
- return;
- }
- const clientIds = Array.isArray(clientId) ? clientId : [clientId];
- setExpandedState({ type: "expand", clientIds });
- },
- [setExpandedState]
- );
- const collapse = (0, import_element198.useCallback)(
- (clientId) => {
- if (!clientId) {
- return;
- }
- setExpandedState({ type: "collapse", clientIds: [clientId] });
- },
- [setExpandedState]
- );
- const collapseAll = (0, import_element198.useCallback)(() => {
- setExpandedState({ type: "clear" });
- }, [setExpandedState]);
- const expandRow = (0, import_element198.useCallback)(
- (row) => {
- expand(row?.dataset?.block);
- },
- [expand]
- );
- const collapseRow = (0, import_element198.useCallback)(
- (row) => {
- collapse(row?.dataset?.block);
- },
- [collapse]
+ }
+ function BlockSelectionClearer(props) {
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("div", { ref: useBlockSelectionClearer(), ...props });
+ }
+
+ // packages/block-editor/build-module/components/inner-blocks/index.mjs
+ var import_compose57 = __toESM(require_compose(), 1);
+ var import_element151 = __toESM(require_element(), 1);
+ var import_data80 = __toESM(require_data(), 1);
+ var import_blocks48 = __toESM(require_blocks(), 1);
+
+ // packages/block-editor/build-module/components/inner-blocks/button-block-appender.mjs
+ var import_jsx_runtime275 = __toESM(require_jsx_runtime(), 1);
+ function ButtonBlockAppender2({
+ showSeparator,
+ isFloating,
+ onAddBlock,
+ isToggle
+ }) {
+ const { clientId } = useBlockEditContext();
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
+ button_block_appender_default,
+ {
+ className: clsx_default({
+ "block-list-appender__toggle": isToggle
+ }),
+ rootClientId: clientId,
+ showSeparator,
+ isFloating,
+ onAddBlock
+ }
);
- const focusRow = (0, import_element198.useCallback)(
- (event, startRow, endRow) => {
- if (event.shiftKey) {
- updateBlockSelection(
- event,
- startRow?.dataset?.block,
- endRow?.dataset?.block
- );
- }
- },
- [updateBlockSelection]
+ }
+
+ // packages/block-editor/build-module/components/inner-blocks/default-block-appender.mjs
+ var import_jsx_runtime276 = __toESM(require_jsx_runtime(), 1);
+ function DefaultBlockAppender2() {
+ const { clientId } = useBlockEditContext();
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(DefaultBlockAppender, { rootClientId: clientId });
+ }
+
+ // packages/block-editor/build-module/components/inner-blocks/use-nested-settings-update.mjs
+ var import_element147 = __toESM(require_element(), 1);
+ var import_data75 = __toESM(require_data(), 1);
+ var import_deprecated9 = __toESM(require_deprecated(), 1);
+ var import_is_shallow_equal = __toESM(require_is_shallow_equal(), 1);
+ var pendingSettingsUpdates = /* @__PURE__ */ new WeakMap();
+ function createShallowMemo() {
+ let value;
+ return (newValue) => {
+ if (value === void 0 || !(0, import_is_shallow_equal.isShallowEqual)(value, newValue)) {
+ value = newValue;
+ }
+ return value;
+ };
+ }
+ function useShallowMemo(value) {
+ const [memo15] = (0, import_element147.useState)(createShallowMemo);
+ return memo15(value);
+ }
+ function useNestedSettingsUpdate(clientId, parentLock, allowedBlocks, prioritizedInserterBlocks, defaultBlock, directInsert, __experimentalDefaultBlock, __experimentalDirectInsert, templateLock, captureToolbars, orientation, layout) {
+ const registry = (0, import_data75.useRegistry)();
+ const _allowedBlocks = useShallowMemo(allowedBlocks);
+ const _prioritizedInserterBlocks = useShallowMemo(
+ prioritizedInserterBlocks
);
- useListViewCollapseItems({
- collapseAll,
- expand
- });
- const firstDraggedBlockClientId = draggedClientIds?.[0];
- const { blockDropTargetIndex, blockDropPosition, firstDraggedBlockIndex } = (0, import_element198.useMemo)(() => {
- let _blockDropTargetIndex, _firstDraggedBlockIndex;
- if (blockDropTarget?.clientId) {
- const foundBlockIndex = blockIndexes[blockDropTarget.clientId];
- _blockDropTargetIndex = foundBlockIndex === void 0 || blockDropTarget?.dropPosition === "top" ? foundBlockIndex : foundBlockIndex + 1;
- } else if (blockDropTarget === null) {
- _blockDropTargetIndex = null;
+ const _templateLock = templateLock === void 0 || parentLock === "contentOnly" ? parentLock : templateLock;
+ (0, import_element147.useLayoutEffect)(() => {
+ const newSettings = {
+ allowedBlocks: _allowedBlocks,
+ prioritizedInserterBlocks: _prioritizedInserterBlocks,
+ templateLock: _templateLock
+ };
+ if (captureToolbars !== void 0) {
+ newSettings.__experimentalCaptureToolbars = captureToolbars;
}
- if (firstDraggedBlockClientId) {
- const foundBlockIndex = blockIndexes[firstDraggedBlockClientId];
- _firstDraggedBlockIndex = foundBlockIndex === void 0 || blockDropTarget?.dropPosition === "top" ? foundBlockIndex : foundBlockIndex + 1;
+ if (orientation !== void 0) {
+ newSettings.orientation = orientation;
+ } else {
+ const layoutType = getLayoutType(layout?.type);
+ newSettings.orientation = layoutType.getOrientation(layout);
}
- return {
- blockDropTargetIndex: _blockDropTargetIndex,
- blockDropPosition: blockDropTarget?.dropPosition,
- firstDraggedBlockIndex: _firstDraggedBlockIndex
- };
- }, [blockDropTarget, blockIndexes, firstDraggedBlockClientId]);
- const contextValue = (0, import_element198.useMemo)(
- () => ({
- blockDropPosition,
- blockDropTargetIndex,
- blockIndexes,
- draggedClientIds,
- expandedState,
- expand,
- firstDraggedBlockIndex,
- collapse,
- collapseAll,
- BlockSettingsMenu: BlockSettingsMenu2,
- listViewInstanceId: instanceId,
- AdditionalBlockContent,
- insertedBlock,
- setInsertedBlock,
- treeGridElementRef: elementRef,
- rootClientId
- }),
- [
- blockDropPosition,
- blockDropTargetIndex,
- blockIndexes,
- draggedClientIds,
- expandedState,
- expand,
- firstDraggedBlockIndex,
- collapse,
- collapseAll,
- BlockSettingsMenu2,
- instanceId,
- AdditionalBlockContent,
- insertedBlock,
- setInsertedBlock,
- rootClientId
- ]
- );
- const [fixedListWindow] = (0, import_compose77.__experimentalUseFixedWindowList)(
- elementRef,
- BLOCK_LIST_ITEM_HEIGHT,
- visibleBlockCount,
- {
- // Ensure that the windowing logic is recalculated when the expanded state changes.
- // This is necessary because expanding a collapsed block in a short list view can
- // switch the list view to a tall list view with a scrollbar, and vice versa.
- // When this happens, the windowing logic needs to be recalculated to ensure that
- // the correct number of blocks are rendered, by rechecking for a scroll container.
- expandedState,
- useWindowing: true,
- windowOverscan: 40
+ if (__experimentalDefaultBlock !== void 0) {
+ (0, import_deprecated9.default)("__experimentalDefaultBlock", {
+ alternative: "defaultBlock",
+ since: "6.3",
+ version: "6.4"
+ });
+ newSettings.defaultBlock = __experimentalDefaultBlock;
}
- );
- if (!clientIdsTree.length && !showAppender) {
- return null;
- }
- const describedById = description && `block-editor-list-view-description-${instanceId}`;
- return /* @__PURE__ */ (0, import_jsx_runtime332.jsxs)(import_data137.AsyncModeProvider, { value: true, children: [
- /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(
- ListViewDropIndicatorPreview,
+ if (defaultBlock !== void 0) {
+ newSettings.defaultBlock = defaultBlock;
+ }
+ if (__experimentalDirectInsert !== void 0) {
+ (0, import_deprecated9.default)("__experimentalDirectInsert", {
+ alternative: "directInsert",
+ since: "6.3",
+ version: "6.4"
+ });
+ newSettings.directInsert = __experimentalDirectInsert;
+ }
+ if (directInsert !== void 0) {
+ newSettings.directInsert = directInsert;
+ }
+ if (newSettings.directInsert !== void 0 && typeof newSettings.directInsert !== "boolean") {
+ (0, import_deprecated9.default)("Using `Function` as a `directInsert` argument", {
+ alternative: "`boolean` values",
+ since: "6.5"
+ });
+ }
+ if (!pendingSettingsUpdates.get(registry)) {
+ pendingSettingsUpdates.set(registry, {});
+ }
+ pendingSettingsUpdates.get(registry)[clientId] = newSettings;
+ window.queueMicrotask(() => {
+ const settings2 = pendingSettingsUpdates.get(registry);
+ if (Object.keys(settings2).length) {
+ const { updateBlockListSettings: updateBlockListSettings2 } = registry.dispatch(store);
+ updateBlockListSettings2(settings2);
+ pendingSettingsUpdates.set(registry, {});
+ }
+ });
+ }, [
+ clientId,
+ _allowedBlocks,
+ _prioritizedInserterBlocks,
+ _templateLock,
+ defaultBlock,
+ directInsert,
+ __experimentalDefaultBlock,
+ __experimentalDirectInsert,
+ captureToolbars,
+ orientation,
+ layout,
+ registry
+ ]);
+ }
+
+ // packages/block-editor/build-module/components/inner-blocks/use-inner-block-template-sync.mjs
+ var import_es64 = __toESM(require_es6(), 1);
+ var import_element148 = __toESM(require_element(), 1);
+ var import_data76 = __toESM(require_data(), 1);
+ var import_blocks44 = __toESM(require_blocks(), 1);
+ var import_deprecated10 = __toESM(require_deprecated(), 1);
+ function useInnerBlockTemplateSync(clientId, template2, templateLock, templateInsertUpdatesSelection) {
+ if (template2 !== void 0) {
+ (0, import_deprecated10.default)(
+ "The template prop of InnerBlocks and useInnerBlocksProps",
{
- draggedBlockClientId: firstDraggedBlockClientId,
- listViewRef: elementRef,
- blockDropTarget
+ since: "7.2",
+ alternative: "a `template` declared in the block type settings"
}
- ),
- description && /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(VisuallyHidden, { id: describedById, children: description }),
- /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(
- import_components123.__experimentalTreeGrid,
+ );
+ }
+ if (templateInsertUpdatesSelection !== void 0) {
+ (0, import_deprecated10.default)(
+ "The templateInsertUpdatesSelection prop of InnerBlocks and useInnerBlocksProps",
{
- id,
- className: clsx_default("block-editor-list-view-tree", {
- "is-dragging": draggedClientIds?.length > 0 && blockDropTargetIndex !== void 0
- }),
- "aria-label": (0, import_i18n113.__)("Block navigation structure"),
- ref: treeGridRef,
- onCollapseRow: collapseRow,
- onExpandRow: expandRow,
- onFocusRow: focusRow,
- applicationAriaLabel: (0, import_i18n113.__)("Block navigation structure"),
- "aria-describedby": describedById,
- style: {
- "--wp-admin--list-view-dragged-items-height": draggedClientIds?.length ? `${BLOCK_LIST_ITEM_HEIGHT * (draggedClientIds.length - 1)}px` : null
- },
- children: /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(ListViewContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(
- branch_default,
- {
- blocks: clientIdsTree,
- parentId: rootClientId,
- selectBlock: selectEditorBlock,
- showBlockMovers,
- fixedListWindow,
- selectedClientIds,
- isExpanded,
- showAppender
- }
- ) })
+ since: "7.2",
+ alternative: "`templateInsertUpdatesSelection` declared in the block type settings"
}
- )
- ] });
+ );
+ }
+ const registry = (0, import_data76.useRegistry)();
+ const existingTemplateRef = (0, import_element148.useRef)(null);
+ (0, import_element148.useLayoutEffect)(() => {
+ let isCancelled = false;
+ const {
+ getBlockName: getBlockName2,
+ getBlocks: getBlocks2,
+ getSelectedBlocksInitialCaretPosition: getSelectedBlocksInitialCaretPosition2,
+ isBlockSelected: isBlockSelected2
+ } = registry.select(store);
+ const { replaceInnerBlocks: replaceInnerBlocks2, __unstableMarkNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent2 } = registry.dispatch(store);
+ window.queueMicrotask(() => {
+ if (isCancelled) {
+ return;
+ }
+ let resolvedTemplate = template2;
+ let resolvedUpdatesSelection = templateInsertUpdatesSelection;
+ if (template2 === void 0) {
+ const blockType = (0, import_blocks44.getBlockType)(getBlockName2(clientId));
+ resolvedTemplate = blockType?.template;
+ resolvedUpdatesSelection = blockType?.templateInsertUpdatesSelection;
+ }
+ const currentInnerBlocks = getBlocks2(clientId);
+ const hasAppliedTemplate = (0, import_es64.default)(
+ resolvedTemplate,
+ existingTemplateRef.current
+ );
+ const shouldApplyTemplate = currentInnerBlocks.length === 0 || templateLock === "all" || templateLock === "contentOnly";
+ if (!shouldApplyTemplate || hasAppliedTemplate) {
+ return;
+ }
+ existingTemplateRef.current = resolvedTemplate;
+ const nextBlocks = (0, import_blocks44.synchronizeBlocksWithTemplate)(
+ currentInnerBlocks,
+ resolvedTemplate
+ );
+ if (!(0, import_es64.default)(nextBlocks, currentInnerBlocks)) {
+ __unstableMarkNextChangeAsNotPersistent2({
+ history: "ignore"
+ });
+ replaceInnerBlocks2(
+ clientId,
+ nextBlocks,
+ currentInnerBlocks.length === 0 && resolvedUpdatesSelection && nextBlocks.length !== 0 && isBlockSelected2(clientId),
+ // This ensures the "initialPosition" doesn't change when applying the template
+ // If we're supposed to focus the block, we'll focus the first inner block
+ // otherwise, we won't apply any auto-focus.
+ // This ensures for instance that the focus stays in the inserter when inserting the "buttons" block.
+ getSelectedBlocksInitialCaretPosition2()
+ );
+ }
+ });
+ return () => {
+ isCancelled = true;
+ };
+ }, [
+ template2,
+ templateLock,
+ clientId,
+ registry,
+ templateInsertUpdatesSelection
+ ]);
}
- var PrivateListView = (0, import_element198.forwardRef)(ListViewComponent);
- var list_view_default2 = (0, import_element198.forwardRef)((props, ref) => {
- return /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(
- PrivateListView,
- {
- ref,
- ...props,
- showAppender: false,
- rootClientId: null,
- onSelect: null,
- additionalBlockContent: null,
- blockSettingsMenu: void 0
- }
- );
- });
- // packages/block-editor/build-module/components/block-navigation/dropdown.mjs
- var import_jsx_runtime333 = __toESM(require_jsx_runtime(), 1);
- function BlockNavigationDropdownToggle({
- isEnabled,
- onToggle,
- isOpen,
- innerRef,
- ...props
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime333.jsx)(
- import_components124.Button,
- {
- __next40pxDefaultSize: true,
- ...props,
- ref: innerRef,
- icon: list_view_default,
- "aria-expanded": isOpen,
- "aria-haspopup": "true",
- onClick: isEnabled ? onToggle : void 0,
- label: (0, import_i18n114.__)("List view"),
- className: "block-editor-block-navigation",
- "aria-disabled": !isEnabled
- }
- );
- }
- function BlockNavigationDropdown({ isDisabled, ...props }, ref) {
- (0, import_deprecated15.default)("wp.blockEditor.BlockNavigationDropdown", {
- since: "6.1",
- alternative: "wp.components.Dropdown and wp.blockEditor.ListView"
- });
- const hasBlocks = (0, import_data138.useSelect)(
- (select3) => !!select3(store).getBlockCount(),
- []
- );
- const isEnabled = hasBlocks && !isDisabled;
- return /* @__PURE__ */ (0, import_jsx_runtime333.jsx)(
- import_components124.Dropdown,
- {
- contentClassName: "block-editor-block-navigation__popover",
- popoverProps: { placement: "bottom-start" },
- renderToggle: ({ isOpen, onToggle }) => /* @__PURE__ */ (0, import_jsx_runtime333.jsx)(
- BlockNavigationDropdownToggle,
- {
- ...props,
- innerRef: ref,
- isOpen,
- onToggle,
- isEnabled
- }
- ),
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime333.jsxs)("div", { className: "block-editor-block-navigation__container", children: [
- /* @__PURE__ */ (0, import_jsx_runtime333.jsx)("p", { className: "block-editor-block-navigation__label", children: (0, import_i18n114.__)("List view") }),
- /* @__PURE__ */ (0, import_jsx_runtime333.jsx)(list_view_default2, {})
- ] })
- }
+ // packages/block-editor/build-module/components/inner-blocks/use-block-context.mjs
+ var import_blocks45 = __toESM(require_blocks(), 1);
+ var import_data77 = __toESM(require_data(), 1);
+ function useBlockContext(clientId) {
+ return (0, import_data77.useSelect)(
+ (select3) => {
+ const block = select3(store).getBlock(clientId);
+ if (!block) {
+ return void 0;
+ }
+ const blockType = select3(import_blocks45.store).getBlockType(block.name);
+ if (!blockType) {
+ return void 0;
+ }
+ if (Object.keys(blockType.providesContext).length === 0) {
+ return void 0;
+ }
+ return Object.fromEntries(
+ Object.entries(blockType.providesContext).map(
+ ([contextName, attributeName]) => [
+ contextName,
+ block.attributes[attributeName]
+ ]
+ )
+ );
+ },
+ [clientId]
);
}
- var dropdown_default = (0, import_element199.forwardRef)(BlockNavigationDropdown);
- // packages/block-editor/build-module/components/block-styles/index.mjs
- var import_element200 = __toESM(require_element(), 1);
- var import_data139 = __toESM(require_data(), 1);
- var import_compose78 = __toESM(require_compose(), 1);
- var import_components125 = __toESM(require_components(), 1);
- var import_i18n115 = __toESM(require_i18n(), 1);
- var import_jsx_runtime334 = __toESM(require_jsx_runtime(), 1);
- var noop14 = () => {
- };
- function BlockStyles({ clientId, onSwitch = noop14, onHoverClassName = noop14 }) {
- const canEdit = (0, import_data139.useSelect)(
- (select3) => select3(store).canEditBlock(clientId),
- [clientId]
- );
- const {
- onSelect,
- stylesToRender,
- activeStyle,
- genericPreviewBlock,
- className
- } = useStylesForBlocks({
- clientId,
- onSwitch
- });
- const [hoveredStyle, setHoveredStyle] = (0, import_element200.useState)(null);
- const [blockStylesAnchor, setBlockStylesAnchor] = (0, import_element200.useState)(null);
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- const previewBlocks = (0, import_element200.useMemo)(() => {
- if (!hoveredStyle || !genericPreviewBlock) {
- return null;
- }
- const previewClassName = replaceActiveStyle(
- className,
- activeStyle,
- hoveredStyle
+ // packages/block-editor/build-module/components/use-block-drop-zone/index.mjs
+ var import_data79 = __toESM(require_data(), 1);
+ var import_element150 = __toESM(require_element(), 1);
+ var import_compose56 = __toESM(require_compose(), 1);
+ var import_i18n72 = __toESM(require_i18n(), 1);
+ var import_blocks47 = __toESM(require_blocks(), 1);
+
+ // packages/block-editor/build-module/components/use-on-block-drop/index.mjs
+ var import_element149 = __toESM(require_element(), 1);
+ var import_blocks46 = __toESM(require_blocks(), 1);
+ var import_data78 = __toESM(require_data(), 1);
+ var import_dom56 = __toESM(require_dom(), 1);
+ function parseDropEvent(event) {
+ let result = {
+ srcRootClientId: null,
+ srcClientIds: null,
+ srcIndex: null,
+ type: null,
+ blocks: null
+ };
+ if (!event.dataTransfer) {
+ return result;
+ }
+ try {
+ result = Object.assign(
+ result,
+ JSON.parse(event.dataTransfer.getData("wp-blocks"))
);
- return [
- {
- ...genericPreviewBlock,
- attributes: {
- ...genericPreviewBlock.attributes || {},
- className: previewClassName
- }
- }
- ];
- }, [hoveredStyle, genericPreviewBlock, className, activeStyle]);
- if (!canEdit || !stylesToRender || stylesToRender.length === 0) {
- return null;
+ } catch {
+ return result;
}
- const debouncedSetHoveredStyle = (0, import_compose78.debounce)(setHoveredStyle, 250);
- const onSelectStylePreview = (style) => {
- onSelect(style);
- onHoverClassName(null);
- setHoveredStyle(null);
- debouncedSetHoveredStyle.cancel();
+ return result;
+ }
+ function onBlockDrop(targetRootClientId, targetBlockIndex, getBlockIndex2, getClientIdsOfDescendants2, moveBlocks, insertOrReplaceBlocks, clearSelectedBlock2, operation, getBlock2) {
+ return (event) => {
+ const {
+ srcRootClientId: sourceRootClientId,
+ srcClientIds: sourceClientIds,
+ type: dropType,
+ blocks: blocks2
+ } = parseDropEvent(event);
+ if (dropType === "inserter") {
+ clearSelectedBlock2();
+ const blocksToInsert = blocks2.map(
+ (block) => (0, import_blocks46.cloneBlock)(block)
+ );
+ insertOrReplaceBlocks(blocksToInsert, true, null);
+ }
+ if (dropType === "block") {
+ const sourceBlockIndex = getBlockIndex2(sourceClientIds[0]);
+ if (sourceRootClientId === targetRootClientId && sourceBlockIndex === targetBlockIndex) {
+ return;
+ }
+ if (sourceClientIds.includes(targetRootClientId) || getClientIdsOfDescendants2(sourceClientIds).some(
+ (id) => id === targetRootClientId
+ )) {
+ return;
+ }
+ if (operation === "group") {
+ const blocksToInsert = sourceClientIds.map(
+ (clientId) => getBlock2(clientId)
+ );
+ insertOrReplaceBlocks(
+ blocksToInsert,
+ true,
+ null,
+ sourceClientIds
+ );
+ return;
+ }
+ const isAtSameLevel = sourceRootClientId === targetRootClientId;
+ const draggedBlockCount = sourceClientIds.length;
+ const insertIndex = isAtSameLevel && sourceBlockIndex < targetBlockIndex ? targetBlockIndex - draggedBlockCount : targetBlockIndex;
+ moveBlocks(sourceClientIds, sourceRootClientId, insertIndex);
+ }
};
- const styleItemHandler = (item) => {
- if (hoveredStyle === item) {
- debouncedSetHoveredStyle.cancel();
+ }
+ function onFilesDrop(targetRootClientId, getSettings8, updateBlockAttributes2, canInsertBlockType2, insertOrReplaceBlocks) {
+ return (files) => {
+ if (!getSettings8().mediaUpload) {
return;
}
- debouncedSetHoveredStyle(item);
- onHoverClassName(item?.name ?? null);
+ const transformation = (0, import_blocks46.findTransform)(
+ (0, import_blocks46.getBlockTransforms)("from"),
+ (transform) => transform.type === "files" && canInsertBlockType2(transform.blockName, targetRootClientId) && transform.isMatch(files)
+ );
+ if (transformation) {
+ const blocks2 = transformation.transform(
+ files,
+ updateBlockAttributes2
+ );
+ insertOrReplaceBlocks(blocks2);
+ }
};
- const defaultStyle = getDefaultStyle(stylesToRender);
- const hasValue3 = () => {
- return activeStyle?.name !== defaultStyle?.name;
- };
- const onDeselect = () => {
- onSelectStylePreview(defaultStyle);
- };
- return /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
- import_components125.__experimentalToolsPanel,
- {
- label: (0, import_i18n115.__)("Styles"),
- resetAll: onDeselect,
- panelId: clientId,
- hasInnerWrapper: true,
- dropdownMenuProps,
- children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
- import_components125.__experimentalToolsPanelItem,
- {
- hasValue: hasValue3,
- label: (0, import_i18n115.__)("Variation"),
- onDeselect,
- isShownByDefault: true,
- panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(
- "div",
- {
- ref: setBlockStylesAnchor,
- className: "block-editor-block-styles",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { className: "block-editor-block-styles__variants", children: stylesToRender.map((style) => {
- const buttonText = style.label || style.name;
- return /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
- import_components125.Button,
- {
- __next40pxDefaultSize: true,
- className: clsx_default(
- "block-editor-block-styles__item",
- {
- "is-active": activeStyle.name === style.name
- }
- ),
- variant: "secondary",
- label: buttonText,
- onMouseEnter: () => styleItemHandler(style),
- onFocus: () => styleItemHandler(style),
- onMouseLeave: () => styleItemHandler(null),
- onBlur: () => styleItemHandler(null),
- onClick: () => onSelectStylePreview(style),
- "aria-current": activeStyle.name === style.name,
- children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
- import_components125.__experimentalTruncate,
- {
- numberOfLines: 1,
- className: "block-editor-block-styles__item-text",
- children: buttonText
- }
- )
- },
- style.name
- );
- }) }),
- previewBlocks && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
- PreviewBlockPopover,
- {
- blocks: previewBlocks,
- placement: "left-start",
- offset: 34,
- anchor: blockStylesAnchor
- }
- )
- ]
- }
- )
- }
- )
- }
- );
- }
- var block_styles_default = BlockStyles;
-
- // packages/block-editor/build-module/components/block-heading-level-dropdown/index.mjs
- var import_components127 = __toESM(require_components(), 1);
- var import_i18n116 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/block-heading-level-dropdown/heading-level-icon.mjs
- var import_components126 = __toESM(require_components(), 1);
- var import_jsx_runtime335 = __toESM(require_jsx_runtime(), 1);
- var LEVEL_TO_PATH = {
- 0: paragraph_default,
- 1: heading_level_1_default,
- 2: heading_level_2_default,
- 3: heading_level_3_default,
- 4: heading_level_4_default,
- 5: heading_level_5_default,
- 6: heading_level_6_default
- };
- function HeadingLevelIcon({ level }) {
- if (LEVEL_TO_PATH[level]) {
- return /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(import_components126.Icon, { icon: LEVEL_TO_PATH[level] });
- }
- return null;
- }
-
- // packages/block-editor/build-module/components/block-heading-level-dropdown/index.mjs
- var import_jsx_runtime336 = __toESM(require_jsx_runtime(), 1);
- var HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
- var POPOVER_PROPS6 = {
- className: "block-library-heading-level-dropdown"
- };
- function HeadingLevelDropdown({
- options = HEADING_LEVELS,
- value,
- onChange
- }) {
- const validOptions = options.filter(
- (option) => option === 0 || HEADING_LEVELS.includes(option)
- ).sort((a2, b2) => a2 - b2);
- return /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
- import_components127.ToolbarDropdownMenu,
- {
- popoverProps: POPOVER_PROPS6,
- icon: /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(HeadingLevelIcon, { level: value }),
- label: (0, import_i18n116.__)("Change level"),
- controls: validOptions.map((targetLevel) => {
- const isActive = targetLevel === value;
- return {
- icon: /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(HeadingLevelIcon, { level: targetLevel }),
- title: targetLevel === 0 ? (0, import_i18n116.__)("Paragraph") : (0, import_i18n116.sprintf)(
- // translators: %d: heading level e.g: "1", "2", "3"
- (0, import_i18n116.__)("Heading %d"),
- targetLevel
- ),
- isActive,
- onClick() {
- onChange(targetLevel);
- },
- role: "menuitemradio"
- };
- })
- }
- );
}
-
- // packages/block-editor/build-module/components/block-variation-picker/index.mjs
- var import_i18n117 = __toESM(require_i18n(), 1);
- var import_components128 = __toESM(require_components(), 1);
- var import_jsx_runtime337 = __toESM(require_jsx_runtime(), 1);
- function BlockVariationPicker({
- icon = layout_default,
- label = (0, import_i18n117.__)("Choose variation"),
- instructions = (0, import_i18n117.__)("Select a variation to start with:"),
- variations,
- onSelect,
- allowSkip
- }) {
- const classes = clsx_default("block-editor-block-variation-picker", {
- "has-many-variations": variations.length > 4
- });
- return /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
- import_components128.Placeholder,
- {
- icon,
- label,
- instructions,
- className: classes,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
- "ul",
- {
- className: "block-editor-block-variation-picker__variations",
- role: "list",
- "aria-label": (0, import_i18n117.__)("Block variations"),
- children: variations.map((variation) => /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)("li", { children: [
- /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
- import_components128.Button,
- {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- icon: variation.icon && variation.icon.src ? variation.icon.src : variation.icon,
- iconSize: 48,
- onClick: () => onSelect(variation),
- className: "block-editor-block-variation-picker__variation",
- label: variation.description || variation.title
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("span", { className: "block-editor-block-variation-picker__variation-label", children: variation.title })
- ] }, variation.name))
- }
- ),
- allowSkip && /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("div", { className: "block-editor-block-variation-picker__skip", children: /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
- import_components128.Button,
- {
- __next40pxDefaultSize: true,
- variant: "link",
- onClick: () => onSelect(),
- children: (0, import_i18n117.__)("Skip")
- }
- ) })
- ]
+ function onHTMLDrop(insertOrReplaceBlocks) {
+ return (HTML) => {
+ const blocks2 = (0, import_blocks46.pasteHandler)({ HTML, mode: "BLOCKS" });
+ if (blocks2.length) {
+ insertOrReplaceBlocks(blocks2);
}
- );
+ };
}
- var block_variation_picker_default = BlockVariationPicker;
-
- // packages/block-editor/build-module/components/block-pattern-setup/index.mjs
- var import_data141 = __toESM(require_data(), 1);
- var import_blocks79 = __toESM(require_blocks(), 1);
- var import_components130 = __toESM(require_components(), 1);
- var import_element201 = __toESM(require_element(), 1);
- var import_compose79 = __toESM(require_compose(), 1);
- var import_i18n119 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/block-pattern-setup/setup-toolbar.mjs
- var import_i18n118 = __toESM(require_i18n(), 1);
- var import_components129 = __toESM(require_components(), 1);
-
- // packages/block-editor/build-module/components/block-pattern-setup/constants.mjs
- var VIEWMODES = {
- carousel: "carousel",
- grid: "grid"
- };
-
- // packages/block-editor/build-module/components/block-pattern-setup/setup-toolbar.mjs
- var import_jsx_runtime338 = __toESM(require_jsx_runtime(), 1);
- var Actions = ({ onBlockPatternSelect }) => /* @__PURE__ */ (0, import_jsx_runtime338.jsx)("div", { className: "block-editor-block-pattern-setup__actions", children: /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
- import_components129.Button,
- {
- __next40pxDefaultSize: true,
- variant: "primary",
- onClick: onBlockPatternSelect,
- children: (0, import_i18n118.__)("Choose")
- }
- ) });
- var CarouselNavigation = ({
- handlePrevious,
- handleNext,
- activeSlide,
- totalSlides
- }) => /* @__PURE__ */ (0, import_jsx_runtime338.jsxs)("div", { className: "block-editor-block-pattern-setup__navigation", children: [
- /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
- import_components129.Button,
- {
- size: "compact",
- icon: (0, import_i18n118.isRTL)() ? chevron_right_default : chevron_left_default,
- label: (0, import_i18n118.__)("Previous pattern"),
- onClick: handlePrevious,
- disabled: activeSlide === 0,
- accessibleWhenDisabled: true
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
- import_components129.Button,
- {
- size: "compact",
- icon: (0, import_i18n118.isRTL)() ? chevron_left_default : chevron_right_default,
- label: (0, import_i18n118.__)("Next pattern"),
- onClick: handleNext,
- disabled: activeSlide === totalSlides - 1,
- accessibleWhenDisabled: true
- }
- )
- ] });
- var SetupToolbar = ({
- viewMode,
- setViewMode,
- handlePrevious,
- handleNext,
- activeSlide,
- totalSlides,
- onBlockPatternSelect
- }) => {
- const isCarouselView = viewMode === VIEWMODES.carousel;
- const displayControls = /* @__PURE__ */ (0, import_jsx_runtime338.jsxs)("div", { className: "block-editor-block-pattern-setup__display-controls", children: [
- /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
- import_components129.Button,
- {
- size: "compact",
- icon: stretch_full_width_default,
- label: (0, import_i18n118.__)("Carousel view"),
- onClick: () => setViewMode(VIEWMODES.carousel),
- isPressed: isCarouselView
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
- import_components129.Button,
- {
- size: "compact",
- icon: grid_default,
- label: (0, import_i18n118.__)("Grid view"),
- onClick: () => setViewMode(VIEWMODES.grid),
- isPressed: viewMode === VIEWMODES.grid
+ function useOnBlockDrop(targetRootClientId, targetBlockIndex, options = {}) {
+ const { operation = "insert", nearestSide = "right" } = options;
+ const {
+ canInsertBlockType: canInsertBlockType2,
+ getBlockIndex: getBlockIndex2,
+ getClientIdsOfDescendants: getClientIdsOfDescendants2,
+ getBlockOrder: getBlockOrder2,
+ getBlocksByClientId: getBlocksByClientId2,
+ getSettings: getSettings8,
+ getBlock: getBlock2
+ } = (0, import_data78.useSelect)(store);
+ const { getGroupingBlockName } = (0, import_data78.useSelect)(import_blocks46.store);
+ const {
+ insertBlocks: insertBlocks2,
+ moveBlocksToPosition: moveBlocksToPosition2,
+ updateBlockAttributes: updateBlockAttributes2,
+ clearSelectedBlock: clearSelectedBlock2,
+ replaceBlocks: replaceBlocks2,
+ removeBlocks: removeBlocks2
+ } = (0, import_data78.useDispatch)(store);
+ const registry = (0, import_data78.useRegistry)();
+ const insertOrReplaceBlocks = (0, import_element149.useCallback)(
+ (blocks2, updateSelection = true, initialPosition2 = 0, clientIdsToReplace = []) => {
+ if (!Array.isArray(blocks2)) {
+ blocks2 = [blocks2];
}
- )
- ] });
- return /* @__PURE__ */ (0, import_jsx_runtime338.jsxs)("div", { className: "block-editor-block-pattern-setup__toolbar", children: [
- isCarouselView && /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
- CarouselNavigation,
- {
- handlePrevious,
- handleNext,
- activeSlide,
- totalSlides
+ const clientIds = getBlockOrder2(targetRootClientId);
+ const clientId = clientIds[targetBlockIndex];
+ if (operation === "replace") {
+ replaceBlocks2(clientId, blocks2, void 0, initialPosition2);
+ } else if (operation === "group") {
+ const targetBlock = getBlock2(clientId);
+ if (nearestSide === "left") {
+ blocks2.push(targetBlock);
+ } else {
+ blocks2.unshift(targetBlock);
+ }
+ const groupInnerBlocks = blocks2.map(
+ (block) => (0, import_blocks46.cloneSanitizedBlock)(block)
+ );
+ const areAllImages = blocks2.every((block) => {
+ return block.name === "core/image";
+ });
+ const galleryBlock = canInsertBlockType2(
+ "core/gallery",
+ targetRootClientId
+ );
+ const wrappedBlocks = (0, import_blocks46.createBlock)(
+ areAllImages && galleryBlock ? "core/gallery" : getGroupingBlockName(),
+ {
+ layout: {
+ type: "flex",
+ flexWrap: areAllImages && galleryBlock ? null : "nowrap"
+ }
+ },
+ groupInnerBlocks
+ );
+ replaceBlocks2(
+ [clientId, ...clientIdsToReplace],
+ wrappedBlocks,
+ void 0,
+ initialPosition2
+ );
+ } else {
+ insertBlocks2(
+ blocks2,
+ targetBlockIndex,
+ targetRootClientId,
+ updateSelection,
+ initialPosition2
+ );
}
- ),
- displayControls,
- isCarouselView && /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(Actions, { onBlockPatternSelect })
- ] });
- };
- var setup_toolbar_default = SetupToolbar;
-
- // packages/block-editor/build-module/components/block-pattern-setup/use-patterns-setup.mjs
- var import_data140 = __toESM(require_data(), 1);
- function usePatternsSetup(clientId, blockName, filterPatternsFn) {
- return (0, import_data140.useSelect)(
- (select3) => {
- const {
- getBlockRootClientId: getBlockRootClientId2,
- getPatternsByBlockTypes: getPatternsByBlockTypes2,
- __experimentalGetAllowedPatterns: __experimentalGetAllowedPatterns2
- } = select3(store);
- const rootClientId = getBlockRootClientId2(clientId);
- if (filterPatternsFn) {
- return __experimentalGetAllowedPatterns2(rootClientId).filter(
- filterPatternsFn
+ },
+ [
+ getBlockOrder2,
+ targetRootClientId,
+ targetBlockIndex,
+ operation,
+ replaceBlocks2,
+ getBlock2,
+ nearestSide,
+ canInsertBlockType2,
+ getGroupingBlockName,
+ insertBlocks2
+ ]
+ );
+ const moveBlocks = (0, import_element149.useCallback)(
+ (sourceClientIds, sourceRootClientId, insertIndex) => {
+ if (operation === "replace") {
+ const sourceBlocks = getBlocksByClientId2(sourceClientIds);
+ const targetBlockClientIds = getBlockOrder2(targetRootClientId);
+ const targetBlockClientId = targetBlockClientIds[targetBlockIndex];
+ registry.batch(() => {
+ removeBlocks2(sourceClientIds, false);
+ replaceBlocks2(
+ targetBlockClientId,
+ sourceBlocks,
+ void 0,
+ 0
+ );
+ });
+ } else {
+ moveBlocksToPosition2(
+ sourceClientIds,
+ sourceRootClientId,
+ targetRootClientId,
+ insertIndex
);
}
- return getPatternsByBlockTypes2(blockName, rootClientId);
},
- [clientId, blockName, filterPatternsFn]
+ [
+ operation,
+ getBlockOrder2,
+ getBlocksByClientId2,
+ moveBlocksToPosition2,
+ registry,
+ removeBlocks2,
+ replaceBlocks2,
+ targetBlockIndex,
+ targetRootClientId
+ ]
+ );
+ const _onDrop = onBlockDrop(
+ targetRootClientId,
+ targetBlockIndex,
+ getBlockIndex2,
+ getClientIdsOfDescendants2,
+ moveBlocks,
+ insertOrReplaceBlocks,
+ clearSelectedBlock2,
+ operation,
+ getBlock2
+ );
+ const _onFilesDrop = onFilesDrop(
+ targetRootClientId,
+ getSettings8,
+ updateBlockAttributes2,
+ canInsertBlockType2,
+ insertOrReplaceBlocks
);
+ const _onHTMLDrop = onHTMLDrop(insertOrReplaceBlocks);
+ return (event) => {
+ const files = (0, import_dom56.getFilesFromDataTransfer)(event.dataTransfer);
+ const html = event.dataTransfer.getData("text/html");
+ if (html) {
+ _onHTMLDrop(html);
+ } else if (files.length) {
+ _onFilesDrop(files);
+ } else {
+ _onDrop(event);
+ }
+ };
}
- var use_patterns_setup_default = usePatternsSetup;
- // packages/block-editor/build-module/components/block-pattern-setup/index.mjs
- var import_jsx_runtime339 = __toESM(require_jsx_runtime(), 1);
- var SetupContent = ({
- viewMode,
- activeSlide,
- patterns,
- onBlockPatternSelect,
- showTitles
- }) => {
- const containerClass = "block-editor-block-pattern-setup__container";
- if (viewMode === VIEWMODES.carousel) {
- const slideClass = /* @__PURE__ */ new Map([
- [activeSlide, "active-slide"],
- [activeSlide - 1, "previous-slide"],
- [activeSlide + 1, "next-slide"]
- ]);
- return /* @__PURE__ */ (0, import_jsx_runtime339.jsx)("div", { className: "block-editor-block-pattern-setup__carousel", children: /* @__PURE__ */ (0, import_jsx_runtime339.jsx)("div", { className: containerClass, children: /* @__PURE__ */ (0, import_jsx_runtime339.jsx)("div", { className: "carousel-container", children: patterns.map((pattern, index2) => /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
- BlockPatternSlide,
- {
- active: index2 === activeSlide,
- className: slideClass.get(index2) || "",
- pattern
- },
- pattern.name
- )) }) }) });
+ // packages/block-editor/build-module/utils/math.mjs
+ function getDistanceFromPointToEdge(point, rect, edge) {
+ const isHorizontal = edge === "top" || edge === "bottom";
+ const { x: x2, y: y2 } = point;
+ const pointLateralPosition = isHorizontal ? x2 : y2;
+ const pointForwardPosition = isHorizontal ? y2 : x2;
+ const edgeStart = isHorizontal ? rect.left : rect.top;
+ const edgeEnd = isHorizontal ? rect.right : rect.bottom;
+ const edgeForwardPosition = rect[edge];
+ let edgeLateralPosition;
+ if (pointLateralPosition >= edgeStart && pointLateralPosition <= edgeEnd) {
+ edgeLateralPosition = pointLateralPosition;
+ } else if (pointLateralPosition < edgeEnd) {
+ edgeLateralPosition = edgeStart;
+ } else {
+ edgeLateralPosition = edgeEnd;
}
- return /* @__PURE__ */ (0, import_jsx_runtime339.jsx)("div", { className: "block-editor-block-pattern-setup__grid", children: /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
- import_components130.Composite,
- {
- role: "listbox",
- className: containerClass,
- "aria-label": (0, import_i18n119.__)("Patterns list"),
- children: patterns.map((pattern) => /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
- BlockPattern3,
- {
- pattern,
- onSelect: onBlockPatternSelect,
- showTitles
- },
- pattern.name
- ))
- }
- ) });
- };
- function BlockPattern3({ pattern, onSelect, showTitles }) {
- const baseClassName = "block-editor-block-pattern-setup-list";
- const { blocks: blocks2, description, viewportWidth = 700 } = pattern;
- const descriptionId = (0, import_compose79.useInstanceId)(
- BlockPattern3,
- `${baseClassName}__item-description`
+ return Math.sqrt(
+ (pointLateralPosition - edgeLateralPosition) ** 2 + (pointForwardPosition - edgeForwardPosition) ** 2
);
- return /* @__PURE__ */ (0, import_jsx_runtime339.jsx)("div", { className: `${baseClassName}__list-item`, children: /* @__PURE__ */ (0, import_jsx_runtime339.jsxs)(
- import_components130.Composite.Item,
- {
- render: /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
- "div",
- {
- "aria-describedby": description ? descriptionId : void 0,
- "aria-label": pattern.title,
- className: `${baseClassName}__item`
- }
- ),
- id: `${baseClassName}__pattern__${pattern.name}`,
- role: "option",
- onClick: () => onSelect(blocks2),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
- block_preview_default,
- {
- blocks: blocks2,
- viewportWidth
- }
- ),
- showTitles && /* @__PURE__ */ (0, import_jsx_runtime339.jsx)("div", { className: `${baseClassName}__item-title`, children: pattern.title }),
- !!description && /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(VisuallyHidden, { id: descriptionId, children: description })
- ]
- }
- ) });
}
- function BlockPatternSlide({ active, className, pattern, minHeight }) {
- const { blocks: blocks2, title, description } = pattern;
- const descriptionId = (0, import_compose79.useInstanceId)(
- BlockPatternSlide,
- "block-editor-block-pattern-setup-list__item-description"
- );
- return /* @__PURE__ */ (0, import_jsx_runtime339.jsxs)(
- "div",
- {
- "aria-hidden": !active,
- role: "img",
- className: `pattern-slide ${className}`,
- "aria-label": title,
- "aria-describedby": description ? descriptionId : void 0,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(block_preview_default, { blocks: blocks2, minHeight }),
- !!description && /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(VisuallyHidden, { id: descriptionId, children: description })
- ]
+ function getDistanceToNearestEdge(point, rect, allowedEdges = ["top", "bottom", "left", "right"]) {
+ let candidateDistance;
+ let candidateEdge;
+ allowedEdges.forEach((edge) => {
+ const distance = getDistanceFromPointToEdge(point, rect, edge);
+ if (candidateDistance === void 0 || distance < candidateDistance) {
+ candidateDistance = distance;
+ candidateEdge = edge;
}
- );
+ });
+ return [candidateDistance, candidateEdge];
}
- var BlockPatternSetup = ({
- clientId,
- blockName,
- filterPatternsFn,
- onBlockPatternSelect,
- initialViewMode = VIEWMODES.carousel,
- showTitles = false
- }) => {
- const [viewMode, setViewMode] = (0, import_element201.useState)(initialViewMode);
- const [activeSlide, setActiveSlide] = (0, import_element201.useState)(0);
- const { replaceBlock: replaceBlock2 } = (0, import_data141.useDispatch)(store);
- const patterns = use_patterns_setup_default(clientId, blockName, filterPatternsFn);
- if (!patterns?.length) {
- return null;
- }
- const onBlockPatternSelectDefault = (blocks2) => {
- const clonedBlocks = blocks2.map((block) => (0, import_blocks79.cloneBlock)(block));
- replaceBlock2(clientId, clonedBlocks);
- };
- const onPatternSelectCallback = onBlockPatternSelect || onBlockPatternSelectDefault;
- return /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(import_jsx_runtime339.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime339.jsxs)(
- "div",
- {
- className: `block-editor-block-pattern-setup view-mode-${viewMode}`,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
- SetupContent,
- {
- viewMode,
- activeSlide,
- patterns,
- onBlockPatternSelect: onPatternSelectCallback,
- showTitles
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
- setup_toolbar_default,
- {
- viewMode,
- setViewMode,
- activeSlide,
- totalSlides: patterns.length,
- handleNext: () => {
- setActiveSlide(
- (active) => Math.min(active + 1, patterns.length - 1)
- );
- },
- handlePrevious: () => {
- setActiveSlide(
- (active) => Math.max(active - 1, 0)
- );
- },
- onBlockPatternSelect: () => {
- onPatternSelectCallback(
- patterns[activeSlide].blocks
- );
- }
- }
- )
- ]
- }
- ) });
- };
- var block_pattern_setup_default = BlockPatternSetup;
-
- // packages/block-editor/build-module/components/block-variation-transforms/index.mjs
- var import_blocks80 = __toESM(require_blocks(), 1);
- var import_i18n120 = __toESM(require_i18n(), 1);
- var import_components131 = __toESM(require_components(), 1);
- var import_data142 = __toESM(require_data(), 1);
- var import_element202 = __toESM(require_element(), 1);
- var import_jsx_runtime340 = __toESM(require_jsx_runtime(), 1);
- var { Menu: Menu3 } = unlock(import_components131.privateApis);
- function VariationsButtons({
- className,
- onSelectVariation,
- selectedValue,
- variations
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)("fieldset", { className, children: [
- /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime340.jsx)("legend", {}), children: (0, import_i18n120.__)("Transform to variation") }),
- variations.map((variation) => /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
- import_components131.Button,
- {
- __next40pxDefaultSize: true,
- size: "compact",
- icon: /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(block_icon_default, { icon: variation.icon, showColors: true }),
- isPressed: selectedValue === variation.name,
- label: selectedValue === variation.name ? variation.title : (0, import_i18n120.sprintf)(
- /* translators: %s: Block or block variation name. */
- (0, import_i18n120.__)("Transform to %s"),
- variation.title
- ),
- onClick: () => onSelectVariation(variation.name),
- "aria-label": variation.title,
- showTooltip: true
- },
- variation.name
- ))
- ] });
- }
- function VariationsDropdown({
- className,
- onSelectVariation,
- selectedValue,
- variations
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime340.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(Menu3, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
- Menu3.TriggerButton,
- {
- render: /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
- import_components131.Button,
- {
- className: "block-editor-block-variation-transforms__button",
- __next40pxDefaultSize: true,
- variant: "secondary",
- children: (0, import_i18n120.__)("Transform to variation")
- }
- )
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(Menu3.Popover, { position: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(Menu3.Group, { children: variations.map((variation) => /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
- Menu3.RadioItem,
- {
- value: variation.name,
- checked: selectedValue === variation.name,
- onChange: () => onSelectVariation(variation.name),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(Menu3.ItemLabel, { children: variation.title }),
- variation.description && /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(Menu3.ItemHelpText, { children: variation.description })
- ]
- },
- variation.name
- )) }) })
- ] }) });
+ function isPointContainedByRect(point, rect) {
+ return rect.left <= point.x && rect.right >= point.x && rect.top <= point.y && rect.bottom >= point.y;
}
- function VariationsToggleGroupControl({
- className,
- onSelectVariation,
- selectedValue,
- variations
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime340.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
- import_components131.__experimentalToggleGroupControl,
- {
- label: (0, import_i18n120.__)("Transform to variation"),
- value: selectedValue,
- hideLabelFromVision: true,
- onChange: onSelectVariation,
- children: variations.map((variation) => /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
- import_components131.__experimentalToggleGroupControlOptionIcon,
- {
- icon: /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(block_icon_default, { icon: variation.icon, showColors: true }),
- value: variation.name,
- label: selectedValue === variation.name ? variation.title : (0, import_i18n120.sprintf)(
- /* translators: %s: Block or block variation name. */
- (0, import_i18n120.__)("Transform to %s"),
- variation.title
- )
- },
- variation.name
- ))
- }
- ) });
+ function isPointWithinTopAndBottomBoundariesOfRect(point, rect) {
+ return rect.top <= point.y && rect.bottom >= point.y;
}
- function BlockVariationTransforms({ blockClientId }) {
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data142.useDispatch)(store);
+
+ // packages/block-editor/build-module/components/use-block-drop-zone/index.mjs
+ var THRESHOLD_DISTANCE = 30;
+ var MINIMUM_HEIGHT_FOR_THRESHOLD = 120;
+ var MINIMUM_WIDTH_FOR_THRESHOLD = 120;
+ function getDropTargetPosition(blocksData, position, orientation = "vertical", options = {}) {
+ const allowedEdges = orientation === "horizontal" ? ["left", "right"] : ["top", "bottom"];
+ let nearestIndex = 0;
+ let insertPosition = "before";
+ let minDistance = Infinity;
+ let targetBlockIndex = null;
+ let nearestSide = "right";
const {
- activeBlockVariation,
- variations,
- canEdit,
- isContentOnly,
- isSection
- } = (0, import_data142.useSelect)(
- (select3) => {
- const { getActiveBlockVariation, getBlockVariations: getBlockVariations2 } = select3(import_blocks80.store);
- const {
- getBlockName: getBlockName2,
- getBlockAttributes: getBlockAttributes3,
- getBlockEditingMode: getBlockEditingMode2,
- isSectionBlock: isSectionBlock2
- } = unlock(select3(store));
- const { canEditBlock: canEditBlock2 } = select3(store);
- const name = blockClientId && getBlockName2(blockClientId);
- const { hasContentRoleAttribute } = unlock(select3(import_blocks80.store));
- const isContentBlock4 = hasContentRoleAttribute(name);
- return {
- activeBlockVariation: getActiveBlockVariation(
- name,
- getBlockAttributes3(blockClientId),
- "transform"
- ),
- variations: name && getBlockVariations2(name, "transform"),
- canEdit: canEditBlock2(blockClientId),
- isContentOnly: getBlockEditingMode2(blockClientId) === "contentOnly" && !isContentBlock4,
- isSection: isSectionBlock2(blockClientId)
- };
- },
- [blockClientId]
- );
- const selectedValue = activeBlockVariation?.name;
- const hasUniqueIcons = (0, import_element202.useMemo)(() => {
- const variationIcons = /* @__PURE__ */ new Set();
- if (!variations) {
- return false;
+ dropZoneElement,
+ parentBlockOrientation,
+ rootBlockIndex = 0
+ } = options;
+ if (dropZoneElement && parentBlockOrientation !== "horizontal") {
+ const rect = dropZoneElement.getBoundingClientRect();
+ const [distance, edge] = getDistanceToNearestEdge(position, rect, [
+ "top",
+ "bottom"
+ ]);
+ if (rect.height > MINIMUM_HEIGHT_FOR_THRESHOLD && distance < THRESHOLD_DISTANCE) {
+ if (edge === "top") {
+ return [rootBlockIndex, "before"];
+ }
+ if (edge === "bottom") {
+ return [rootBlockIndex + 1, "after"];
+ }
}
- variations.forEach((variation) => {
- if (variation.icon) {
- variationIcons.add(variation.icon?.src || variation.icon);
+ }
+ const isRightToLeft = (0, import_i18n72.isRTL)();
+ if (dropZoneElement && parentBlockOrientation === "horizontal") {
+ const rect = dropZoneElement.getBoundingClientRect();
+ const [distance, edge] = getDistanceToNearestEdge(position, rect, [
+ "left",
+ "right"
+ ]);
+ if (rect.width > MINIMUM_WIDTH_FOR_THRESHOLD && distance < THRESHOLD_DISTANCE) {
+ if (isRightToLeft && edge === "right" || !isRightToLeft && edge === "left") {
+ return [rootBlockIndex, "before"];
}
- });
- return variationIcons.size === variations.length;
- }, [variations]);
- const onSelectVariation = (variationName) => {
- updateBlockAttributes2(blockClientId, {
- ...variations.find(({ name }) => name === variationName).attributes
- });
- };
- if (!variations?.length || !canEdit || isContentOnly || isSection) {
- return null;
+ if (isRightToLeft && edge === "left" || !isRightToLeft && edge === "right") {
+ return [rootBlockIndex + 1, "after"];
+ }
+ }
}
- const baseClass = "block-editor-block-variation-transforms";
- const showButtons = variations.length > 6;
- const ButtonComponent = showButtons ? VariationsButtons : VariationsToggleGroupControl;
- const Component5 = hasUniqueIcons ? ButtonComponent : VariationsDropdown;
- return /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
- Component5,
- {
- className: baseClass,
- onSelectVariation,
- selectedValue,
- variations
+ blocksData.forEach(
+ ({
+ isUnmodifiedDefaultBlock: isUnmodifiedDefaultBlock5,
+ getBoundingClientRect: getBoundingClientRect2,
+ blockIndex,
+ blockOrientation
+ }) => {
+ const rect = getBoundingClientRect2();
+ if (!rect) {
+ return;
+ }
+ let [distance, edge] = getDistanceToNearestEdge(
+ position,
+ rect,
+ allowedEdges
+ );
+ const [sideDistance, sideEdge] = getDistanceToNearestEdge(
+ position,
+ rect,
+ ["left", "right"]
+ );
+ const isPointInsideRect = isPointContainedByRect(position, rect);
+ if (isUnmodifiedDefaultBlock5 && isPointInsideRect) {
+ distance = 0;
+ } else if (orientation === "vertical" && blockOrientation !== "horizontal" && (isPointInsideRect && sideDistance < THRESHOLD_DISTANCE || !isPointInsideRect && isPointWithinTopAndBottomBoundariesOfRect(
+ position,
+ rect
+ ))) {
+ targetBlockIndex = blockIndex;
+ nearestSide = sideEdge;
+ }
+ if (distance < minDistance) {
+ insertPosition = edge === "bottom" || !isRightToLeft && edge === "right" || isRightToLeft && edge === "left" ? "after" : "before";
+ minDistance = distance;
+ nearestIndex = blockIndex;
+ }
}
);
- }
- var block_variation_transforms_default = BlockVariationTransforms;
-
- // packages/block-editor/build-module/components/block-vertical-alignment-control/ui.mjs
- var import_i18n121 = __toESM(require_i18n(), 1);
- var import_components132 = __toESM(require_components(), 1);
- var import_jsx_runtime341 = __toESM(require_jsx_runtime(), 1);
- var BLOCK_ALIGNMENTS_CONTROLS2 = {
- top: {
- icon: justify_top_default,
- title: (0, import_i18n121._x)("Align top", "Block vertical alignment setting")
- },
- center: {
- icon: justify_center_vertical_default,
- title: (0, import_i18n121._x)("Align middle", "Block vertical alignment setting")
- },
- bottom: {
- icon: justify_bottom_default,
- title: (0, import_i18n121._x)("Align bottom", "Block vertical alignment setting")
- },
- stretch: {
- icon: justify_stretch_vertical_default,
- title: (0, import_i18n121._x)("Stretch to fill", "Block vertical alignment setting")
- },
- "space-between": {
- icon: justify_space_between_vertical_default,
- title: (0, import_i18n121._x)("Space between", "Block vertical alignment setting")
+ const adjacentIndex = nearestIndex + (insertPosition === "after" ? 1 : -1);
+ const isNearestBlockUnmodifiedDefaultBlock = !!blocksData[nearestIndex]?.isUnmodifiedDefaultBlock;
+ const isAdjacentBlockUnmodifiedDefaultBlock = !!blocksData[adjacentIndex]?.isUnmodifiedDefaultBlock;
+ if (targetBlockIndex !== null) {
+ return [targetBlockIndex, "group", nearestSide];
}
- };
- var DEFAULT_CONTROLS2 = ["top", "center", "bottom"];
- var DEFAULT_CONTROL2 = "top";
- function BlockVerticalAlignmentUI({
- value,
- onChange,
- controls = DEFAULT_CONTROLS2,
- isCollapsed: isCollapsed3 = true,
- isToolbar,
- label = (0, import_i18n121.__)("Align content vertically")
- }) {
- function applyOrUnset(align) {
- return () => onChange(value === align ? void 0 : align);
+ if (!isNearestBlockUnmodifiedDefaultBlock && !isAdjacentBlockUnmodifiedDefaultBlock) {
+ const insertionIndex = insertPosition === "after" ? nearestIndex + 1 : nearestIndex;
+ return [insertionIndex, "insert"];
}
- const activeAlignment = BLOCK_ALIGNMENTS_CONTROLS2[value];
- const defaultAlignmentControl = BLOCK_ALIGNMENTS_CONTROLS2[DEFAULT_CONTROL2];
- const UIComponent = isToolbar ? import_components132.ToolbarGroup : import_components132.ToolbarDropdownMenu;
- const extraProps = isToolbar ? { isCollapsed: isCollapsed3 } : {};
- return /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
- UIComponent,
- {
- icon: activeAlignment ? activeAlignment.icon : defaultAlignmentControl.icon,
- label,
- controls: controls.map((control) => {
- return {
- ...BLOCK_ALIGNMENTS_CONTROLS2[control],
- isActive: value === control,
- role: isCollapsed3 ? "menuitemradio" : void 0,
- onClick: applyOrUnset(control)
- };
- }),
- ...extraProps
- }
- );
- }
- var ui_default3 = BlockVerticalAlignmentUI;
-
- // packages/block-editor/build-module/components/block-vertical-alignment-control/index.mjs
- var import_jsx_runtime342 = __toESM(require_jsx_runtime(), 1);
- var BlockVerticalAlignmentControl = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(ui_default3, { ...props, isToolbar: false });
- };
- var BlockVerticalAlignmentToolbar = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(ui_default3, { ...props, isToolbar: true });
- };
-
- // packages/block-editor/build-module/components/border-radius-control/index.mjs
- var import_components137 = __toESM(require_components(), 1);
- var import_element204 = __toESM(require_element(), 1);
- var import_i18n125 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/border-radius-control/linked-button.mjs
- var import_components133 = __toESM(require_components(), 1);
- var import_i18n122 = __toESM(require_i18n(), 1);
- var import_jsx_runtime343 = __toESM(require_jsx_runtime(), 1);
- function LinkedButton({ isLinked, ...props }) {
- const label = isLinked ? (0, import_i18n122.__)("Unlink radii") : (0, import_i18n122.__)("Link radii");
- return /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(
- import_components133.Button,
- {
- ...props,
- className: "components-border-radius-control__linked-button",
- size: "small",
- icon: isLinked ? link_default : link_off_default,
- iconSize: 24,
- label
- }
- );
- }
-
- // packages/block-editor/build-module/components/border-radius-control/utils.mjs
- var import_components134 = __toESM(require_components(), 1);
- function mode(inputArray) {
- const arr = [...inputArray];
- return arr.sort(
- (a2, b2) => inputArray.filter((v2) => v2 === b2).length - inputArray.filter((v2) => v2 === a2).length
- ).shift();
+ return [
+ isNearestBlockUnmodifiedDefaultBlock ? nearestIndex : adjacentIndex,
+ "replace"
+ ];
}
- function getAllValue(values = {}) {
- if (typeof values === "string") {
- return values;
+ function isDropTargetValid(getBlockType33, allowedBlocks, draggedBlockNames, targetBlockName) {
+ let areBlocksAllowed = true;
+ if (allowedBlocks) {
+ const allowedBlockNames = allowedBlocks?.map(({ name }) => name);
+ areBlocksAllowed = draggedBlockNames.every(
+ (name) => allowedBlockNames?.includes(name)
+ );
}
- const parsedQuantitiesAndUnits = Object.values(values).map((value2) => {
- const newValue = (0, import_components134.__experimentalParseQuantityAndUnitFromRawValue)(value2);
- if (typeof value2 === "string" && newValue[0] === void 0) {
- return [value2, ""];
+ const draggedBlockTypes = draggedBlockNames.map(
+ (name) => getBlockType33(name)
+ );
+ const targetMatchesDraggedBlockParents = draggedBlockTypes.every(
+ (block) => {
+ const [allowedParentName] = block?.parent || [];
+ if (!allowedParentName) {
+ return true;
+ }
+ return allowedParentName === targetBlockName;
}
- return newValue;
- });
- const allValues = parsedQuantitiesAndUnits.map(
- (value2) => value2[0] ?? ""
);
- const allUnits = parsedQuantitiesAndUnits.map((value2) => value2[1]);
- const value = allValues.every((v2) => v2 === allValues[0]) ? allValues[0] : "";
- const unit = mode(allUnits);
- const allValue = value === 0 || value ? `${value}${unit || ""}` : void 0;
- return allValue;
+ return areBlocksAllowed && targetMatchesDraggedBlockParents;
}
- function hasMixedValues(values = {}) {
- if (typeof values === "string") {
- return false;
- }
- if (!values || typeof values !== "object") {
- return false;
- }
- const cornerValues = Object.values(values);
- if (cornerValues.length === 0) {
- return false;
- }
- const firstValue = cornerValues[0];
- const allSame = cornerValues.every((value) => value === firstValue);
- return !allSame;
+ function isInsertionPoint(targetToCheck, ownerDocument2) {
+ const { defaultView } = ownerDocument2;
+ return !!(defaultView && targetToCheck instanceof defaultView.HTMLElement && targetToCheck.closest("[data-is-insertion-point]"));
}
- function hasDefinedValues(values) {
- if (!values) {
- return false;
- }
- if (typeof values === "string") {
- return true;
- }
- const filteredValues = Object.values(values).filter((value) => {
- return !!value || value === 0;
+ function useBlockDropZone({
+ dropZoneElement,
+ // An undefined value represents a top-level block. Default to an empty
+ // string for this so that `targetRootClientId` can be easily compared to
+ // values returned by the `getRootBlockClientId` selector, which also uses
+ // an empty string to represent top-level blocks.
+ rootClientId: targetRootClientId = "",
+ parentClientId: parentBlockClientId = "",
+ isDisabled = false
+ } = {}) {
+ const registry = (0, import_data79.useRegistry)();
+ const [dropTarget, setDropTarget] = (0, import_element150.useState)({
+ index: null,
+ operation: "insert"
});
- return !!filteredValues.length;
- }
-
- // packages/block-editor/build-module/components/preset-input-control/index.mjs
- var import_components136 = __toESM(require_components(), 1);
- var import_compose80 = __toESM(require_compose(), 1);
- var import_i18n123 = __toESM(require_i18n(), 1);
- var import_element203 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/preset-input-control/constants.mjs
- var ICON_SIZE = 24;
- var RANGE_CONTROL_MAX_SIZE2 = 8;
- var CUSTOM_VALUE_SETTINGS = {
- px: { max: 300, steps: 1 },
- "%": { max: 100, steps: 1 },
- vw: { max: 100, steps: 1 },
- vh: { max: 100, steps: 1 },
- em: { max: 10, steps: 0.1 },
- rem: { max: 10, steps: 0.1 },
- svw: { max: 100, steps: 1 },
- lvw: { max: 100, steps: 1 },
- dvw: { max: 100, steps: 1 },
- svh: { max: 100, steps: 1 },
- lvh: { max: 100, steps: 1 },
- dvh: { max: 100, steps: 1 },
- vi: { max: 100, steps: 1 },
- svi: { max: 100, steps: 1 },
- lvi: { max: 100, steps: 1 },
- dvi: { max: 100, steps: 1 },
- vb: { max: 100, steps: 1 },
- svb: { max: 100, steps: 1 },
- lvb: { max: 100, steps: 1 },
- dvb: { max: 100, steps: 1 },
- vmin: { max: 100, steps: 1 },
- svmin: { max: 100, steps: 1 },
- lvmin: { max: 100, steps: 1 },
- dvmin: { max: 100, steps: 1 },
- vmax: { max: 100, steps: 1 },
- svmax: { max: 100, steps: 1 },
- lvmax: { max: 100, steps: 1 },
- dvmax: { max: 100, steps: 1 }
- };
-
- // packages/block-editor/build-module/components/preset-input-control/custom-value-controls.mjs
- var import_components135 = __toESM(require_components(), 1);
- var import_jsx_runtime344 = __toESM(require_jsx_runtime(), 1);
- function CustomValueControls({
- allowNegativeOnDrag,
- ariaLabel,
- allPlaceholder,
- minValue,
- parsedQuantity,
- computedUnit,
- units: units2,
- isMixed,
- step,
- max: max2,
- showTooltip,
- value,
- minimumCustomValue,
- onCustomValueChange,
- onCustomValueSliderChange,
- onUnitChange,
- onMouseOut,
- onMouseOver,
- setMinValue
- }) {
- const unitControl = /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(
- import_components135.__experimentalUnitControl,
- {
- className: "preset-input-control__unit-control",
- disableUnits: isMixed,
- hideLabelFromVision: true,
- label: ariaLabel,
- min: minValue,
- onChange: onCustomValueChange,
- onUnitChange,
- onBlur: onMouseOut,
- onFocus: onMouseOver,
- onMouseOut,
- onMouseOver,
- units: units2,
- value: [parsedQuantity, computedUnit].join(""),
- placeholder: allPlaceholder,
- onDragStart: () => {
- if (allowNegativeOnDrag && value?.charAt(0) === "-") {
- setMinValue(0);
+ const { getBlockType: getBlockType33, getBlockVariations: getBlockVariations2, getGroupingBlockName } = (0, import_data79.useSelect)(import_blocks47.store);
+ const {
+ canInsertBlockType: canInsertBlockType2,
+ getBlockListSettings: getBlockListSettings2,
+ getBlocks: getBlocks2,
+ getBlockIndex: getBlockIndex2,
+ getDraggedBlockClientIds: getDraggedBlockClientIds2,
+ getBlockNamesByClientId: getBlockNamesByClientId2,
+ getAllowedBlocks: getAllowedBlocks2,
+ isDragging: isDragging3,
+ isGroupable: isGroupable2,
+ isZoomOut: isZoomOut2,
+ getSectionRootClientId: getSectionRootClientId2,
+ getBlockParents: getBlockParents2
+ } = unlock((0, import_data79.useSelect)(store));
+ const {
+ showInsertionPoint: showInsertionPoint2,
+ hideInsertionPoint: hideInsertionPoint2,
+ startDragging: startDragging2,
+ stopDragging: stopDragging2
+ } = unlock((0, import_data79.useDispatch)(store));
+ const onBlockDrop2 = useOnBlockDrop(
+ dropTarget.operation === "before" || dropTarget.operation === "after" ? parentBlockClientId : targetRootClientId,
+ dropTarget.index,
+ {
+ operation: dropTarget.operation,
+ nearestSide: dropTarget.nearestSide
+ }
+ );
+ const throttled = (0, import_compose56.useThrottle)(
+ (0, import_element150.useCallback)(
+ (event, ownerDocument2) => {
+ if (!isDragging3()) {
+ startDragging2();
}
- },
- onDrag: () => {
- if (allowNegativeOnDrag && value?.charAt(0) === "-") {
- setMinValue(0);
+ const draggedBlockClientIds = getDraggedBlockClientIds2();
+ const targetParents = [
+ targetRootClientId,
+ ...getBlockParents2(targetRootClientId, true)
+ ];
+ const isTargetWithinDraggedBlocks = draggedBlockClientIds.some(
+ (clientId) => targetParents.includes(clientId)
+ );
+ if (isTargetWithinDraggedBlocks) {
+ return;
}
- },
- onDragEnd: () => {
- if (allowNegativeOnDrag) {
- setMinValue(minimumCustomValue);
+ const allowedBlocks = getAllowedBlocks2(targetRootClientId);
+ const targetBlockName = getBlockNamesByClientId2([
+ targetRootClientId
+ ])[0];
+ const draggedBlockNames = getBlockNamesByClientId2(
+ draggedBlockClientIds
+ );
+ const isBlockDroppingAllowed = isDropTargetValid(
+ getBlockType33,
+ allowedBlocks,
+ draggedBlockNames,
+ targetBlockName
+ );
+ if (!isBlockDroppingAllowed) {
+ return;
}
- }
- }
- );
- const wrappedUnitControl = showTooltip ? /* @__PURE__ */ (0, import_jsx_runtime344.jsxs)(tooltip_exports.Root, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(
- tooltip_exports.Trigger,
- {
- render: /* @__PURE__ */ (0, import_jsx_runtime344.jsx)("div", { className: "preset-input-control__tooltip-wrapper", children: unitControl })
- }
+ const sectionRootClientId = getSectionRootClientId2();
+ if (isZoomOut2() && sectionRootClientId !== targetRootClientId) {
+ return;
+ }
+ const blocks2 = getBlocks2(targetRootClientId).filter((block) => {
+ return !((0, import_blocks47.hasBlockSupport)(block.name, "visibility", true) && block.attributes?.metadata?.blockVisibility === false);
+ });
+ if (blocks2.length === 0) {
+ registry.batch(() => {
+ setDropTarget({
+ index: 0,
+ operation: "insert"
+ });
+ showInsertionPoint2(targetRootClientId, 0, {
+ operation: "insert"
+ });
+ });
+ return;
+ }
+ const blocksData = blocks2.map((block) => {
+ const clientId = block.clientId;
+ return {
+ isUnmodifiedDefaultBlock: (0, import_blocks47.isUnmodifiedDefaultBlock)(block),
+ getBoundingClientRect: () => {
+ const blockElement = ownerDocument2.getElementById(
+ `block-${clientId}`
+ );
+ return blockElement ? blockElement.getBoundingClientRect() : null;
+ },
+ blockIndex: getBlockIndex2(clientId),
+ blockOrientation: getBlockListSettings2(clientId)?.orientation
+ };
+ });
+ const dropTargetPosition = getDropTargetPosition(
+ blocksData,
+ { x: event.clientX, y: event.clientY },
+ getBlockListSettings2(targetRootClientId)?.orientation,
+ {
+ dropZoneElement,
+ parentBlockClientId,
+ parentBlockOrientation: parentBlockClientId ? getBlockListSettings2(parentBlockClientId)?.orientation : void 0,
+ rootBlockIndex: getBlockIndex2(targetRootClientId)
+ }
+ );
+ const [targetIndex, operation, nearestSide] = dropTargetPosition;
+ const isTargetIndexEmptyDefaultBlock = blocksData[targetIndex]?.isUnmodifiedDefaultBlock;
+ if (isZoomOut2() && !isTargetIndexEmptyDefaultBlock && operation !== "insert") {
+ return;
+ }
+ if (operation === "group") {
+ const targetBlock = blocks2[targetIndex];
+ const areAllImages = [
+ targetBlock.name,
+ ...draggedBlockNames
+ ].every((name) => name === "core/image");
+ const canInsertGalleryBlock = canInsertBlockType2(
+ "core/gallery",
+ targetRootClientId
+ );
+ const areGroupableBlocks = isGroupable2([
+ targetBlock.clientId,
+ getDraggedBlockClientIds2()
+ ]);
+ const groupBlockVariations = getBlockVariations2(
+ getGroupingBlockName(),
+ "block"
+ );
+ const canInsertRow = groupBlockVariations && groupBlockVariations.find(
+ ({ name }) => name === "group-row"
+ );
+ if (areAllImages && !canInsertGalleryBlock && (!areGroupableBlocks || !canInsertRow)) {
+ return;
+ }
+ if (!areAllImages && (!areGroupableBlocks || !canInsertRow)) {
+ return;
+ }
+ }
+ registry.batch(() => {
+ setDropTarget({
+ index: targetIndex,
+ operation,
+ nearestSide
+ });
+ const insertionPointClientId = [
+ "before",
+ "after"
+ ].includes(operation) ? parentBlockClientId : targetRootClientId;
+ showInsertionPoint2(insertionPointClientId, targetIndex, {
+ operation,
+ nearestSide
+ });
+ });
+ },
+ [
+ isDragging3,
+ getAllowedBlocks2,
+ targetRootClientId,
+ getBlockNamesByClientId2,
+ getDraggedBlockClientIds2,
+ getBlockType33,
+ getSectionRootClientId2,
+ isZoomOut2,
+ getBlocks2,
+ getBlockListSettings2,
+ dropZoneElement,
+ parentBlockClientId,
+ getBlockIndex2,
+ registry,
+ startDragging2,
+ showInsertionPoint2,
+ canInsertBlockType2,
+ isGroupable2,
+ getBlockVariations2,
+ getGroupingBlockName
+ ]
),
- /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(tooltip_exports.Popup, { children: ariaLabel })
- ] }) : unitControl;
- return /* @__PURE__ */ (0, import_jsx_runtime344.jsxs)(import_jsx_runtime344.Fragment, { children: [
- wrappedUnitControl,
- /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(
- import_components135.RangeControl,
- {
- className: "preset-input-control__custom-value-range",
- hideLabelFromVision: true,
- initialPosition: 0,
- label: ariaLabel,
- max: max2,
- min: 0,
- onBlur: onMouseOut,
- onChange: onCustomValueSliderChange,
- onFocus: onMouseOver,
- onMouseOut,
- onMouseOver,
- step,
- value: parsedQuantity,
- withInputField: false
+ 200
+ );
+ return (0, import_compose56.__experimentalUseDropZone)({
+ dropZoneElement,
+ isDisabled,
+ onDrop: onBlockDrop2,
+ onDragOver(event) {
+ throttled(event, event.currentTarget.ownerDocument);
+ },
+ onDragLeave(event) {
+ const { ownerDocument: ownerDocument2 } = event.currentTarget;
+ if (isInsertionPoint(event.relatedTarget, ownerDocument2) || isInsertionPoint(event.target, ownerDocument2)) {
+ return;
}
- )
- ] });
+ throttled.cancel();
+ hideInsertionPoint2();
+ },
+ onDragEnd() {
+ throttled.cancel();
+ stopDragging2();
+ hideInsertionPoint2();
+ }
+ });
}
- // packages/block-editor/build-module/components/preset-input-control/index.mjs
- var import_jsx_runtime345 = __toESM(require_jsx_runtime(), 1);
- function PresetInputControl({
- allowNegativeOnDrag = false,
- ariaLabel,
- className: classNameProp,
- customValueSettings = CUSTOM_VALUE_SETTINGS,
- disableCustomValues,
- icon,
- isMixed,
- value: valueProp,
- minimumCustomValue,
- onChange,
- onMouseOut,
- onMouseOver,
- onUnitChange,
- placeholder,
- presets = [],
- presetType,
- selectedUnit,
- showTooltip,
- units: units2
- }) {
- const value = (0, import_element203.useMemo)(
- () => getPresetValueFromCustomValue(valueProp, presets, presetType),
- [valueProp, presets, presetType]
+ // packages/block-editor/build-module/components/inner-blocks/index.mjs
+ var import_jsx_runtime277 = __toESM(require_jsx_runtime(), 1);
+ var EMPTY_OBJECT2 = {};
+ function BlockContext({ children, clientId }) {
+ const context = useBlockContext(clientId);
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(BlockContextProvider, { value: context, children });
+ }
+ var BlockListItemsMemo = (0, import_element151.memo)(BlockListItems);
+ function UncontrolledInnerBlocks(props) {
+ const {
+ clientId,
+ allowedBlocks,
+ prioritizedInserterBlocks,
+ defaultBlock,
+ directInsert,
+ __experimentalDefaultBlock,
+ __experimentalDirectInsert,
+ template: template2,
+ templateLock,
+ wrapperRef,
+ templateInsertUpdatesSelection,
+ __experimentalCaptureToolbars: captureToolbars,
+ __experimentalAppenderTagName,
+ renderAppender,
+ orientation,
+ placeholder,
+ layout,
+ name,
+ blockType,
+ parentLock,
+ defaultLayout: defaultLayout2
+ } = props;
+ useNestedSettingsUpdate(
+ clientId,
+ parentLock,
+ allowedBlocks,
+ prioritizedInserterBlocks,
+ defaultBlock,
+ directInsert,
+ __experimentalDefaultBlock,
+ __experimentalDirectInsert,
+ templateLock,
+ captureToolbars,
+ orientation,
+ layout
);
- const className = classNameProp ?? "preset-input-control";
- const marks = presets.slice(1, presets.length - 1).map((_newValue, index2) => ({
- value: index2 + 1,
- label: void 0
- }));
- const hasPresets = marks.length > 0;
- const showRangeControl = presets.length <= RANGE_CONTROL_MAX_SIZE2;
- const allPlaceholder = isMixed ? (0, import_i18n123.__)("Mixed") : placeholder ?? null;
- const [minValue, setMinValue] = (0, import_element203.useState)(minimumCustomValue);
- const [showCustomValueControl, setShowCustomValueControl] = (0, import_element203.useState)(
- !disableCustomValues && value !== void 0 && !isValuePreset(value, presetType)
+ useInnerBlockTemplateSync(
+ clientId,
+ template2,
+ templateLock,
+ templateInsertUpdatesSelection
);
- let currentValue = null;
- const previousValue = (0, import_compose80.usePrevious)(value);
- (0, import_element203.useEffect)(() => {
- if (!!value && previousValue !== value && !isValuePreset(value, presetType) && showCustomValueControl !== true) {
- setShowCustomValueControl(true);
- }
- }, [value, previousValue, presetType, showCustomValueControl]);
- const showCustomValueInSelectList = !showRangeControl && !showCustomValueControl && value !== void 0 && (!isValuePreset(value, presetType) || isValuePreset(value, presetType) && isMixed);
- let selectListOptions = presets;
- if (showCustomValueInSelectList) {
- selectListOptions = [
- ...presets,
- {
- name: !isMixed ? (
- // translators: %s: A custom measurement, e.g. a number followed by a unit like 12px.
- (0, import_i18n123.sprintf)((0, import_i18n123.__)("Custom (%s)"), value)
- ) : (0, import_i18n123.__)("Mixed"),
- slug: "custom",
- size: value
- }
- ];
- currentValue = selectListOptions.length - 1;
- } else if (!isMixed) {
- currentValue = !showCustomValueControl ? getSliderValueFromPreset(value, presets, presetType) : getCustomValueFromPreset(value, presets, presetType);
- }
- const options = selectListOptions.map((size4, index2) => ({
- key: index2,
- name: size4.name
- }));
- const resolvedPresetValue = isValuePreset(value, presetType) ? getCustomValueFromPreset(value, presets, presetType) : value;
- const [parsedQuantity, parsedUnit] = (0, import_components136.__experimentalParseQuantityAndUnitFromRawValue)(resolvedPresetValue);
- const computedUnit = parsedUnit || selectedUnit || "px";
- const unitConfig = units2?.find((item) => item.value === computedUnit);
- const step = unitConfig?.step ?? customValueSettings[computedUnit]?.steps ?? 0.1;
- const max2 = unitConfig?.max ?? customValueSettings[computedUnit]?.max ?? 10;
- const handleCustomValueChange = (newValue) => {
- if (newValue === void 0 || newValue === "") {
- onChange(void 0);
- return;
- }
- if (isNaN(parseFloat(newValue))) {
- return;
- }
- onChange(newValue);
- };
- const handleCustomValueSliderChange = (next) => {
- onChange([next, computedUnit].join(""));
- };
- const customTooltipContent = (newValue) => value === void 0 ? void 0 : presets[newValue]?.name;
- const getNewPresetValue = (next, controlType) => {
- const newValue = parseInt(next, 10);
- if (controlType === "selectList") {
- if (newValue === 0 && presets[0]?.slug === "0") {
- return "0";
- }
- if (newValue === 0) {
- return void 0;
+ const defaultLayoutBlockSupport = (0, import_blocks48.getBlockSupport)(name, "layout") || (0, import_blocks48.getBlockSupport)(name, "__experimentalLayout") || EMPTY_OBJECT2;
+ const { allowSizingOnChildren = false } = defaultLayoutBlockSupport;
+ const usedLayout = layout || defaultLayoutBlockSupport;
+ const memoedLayout = (0, import_element151.useMemo)(
+ () => ({
+ // Default layout will know about any content/wide size defined by the theme.
+ ...defaultLayout2,
+ ...usedLayout,
+ ...allowSizingOnChildren && {
+ allowSizingOnChildren: true
}
- } else if (newValue === 0) {
- return "0";
- }
- return `var:preset|${presetType}|${presets[next]?.slug}`;
- };
- return /* @__PURE__ */ (0, import_jsx_runtime345.jsxs)(
- import_components136.__experimentalHStack,
+ }),
+ [defaultLayout2, usedLayout, allowSizingOnChildren]
+ );
+ const items = /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
+ BlockListItemsMemo,
{
- className: `preset-input-control__wrapper ${className}__wrapper`,
- children: [
- icon && /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
- import_components136.Icon,
- {
- className: "preset-input-control__icon",
- icon,
- size: ICON_SIZE
- }
- ),
- (!hasPresets || showCustomValueControl) && /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
- CustomValueControls,
- {
- allowNegativeOnDrag,
- ariaLabel,
- allPlaceholder,
- minValue,
- parsedQuantity,
- computedUnit,
- units: units2,
- isMixed,
- step,
- max: max2,
- showTooltip,
- value,
- minimumCustomValue,
- onCustomValueChange: handleCustomValueChange,
- onCustomValueSliderChange: handleCustomValueSliderChange,
- onUnitChange,
- onMouseOut,
- onMouseOver,
- setMinValue
- }
- ),
- hasPresets && showRangeControl && !showCustomValueControl && /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
- import_components136.RangeControl,
- {
- "aria-valuenow": currentValue,
- "aria-valuetext": presets[currentValue]?.name,
- className: "preset-input-control__preset-range",
- hideLabelFromVision: true,
- initialPosition: 0,
- label: ariaLabel,
- max: presets.length - 1,
- marks,
- min: 0,
- onBlur: onMouseOut,
- onChange: (newValue) => onChange(getNewPresetValue(newValue)),
- onFocus: onMouseOver,
- onMouseDown: (event) => {
- const nearStart = event?.nativeEvent?.offsetX < 35;
- if (nearStart && value === void 0) {
- onChange("0");
- }
- },
- onMouseOut,
- onMouseOver,
- renderTooltipContent: customTooltipContent,
- step: 1,
- value: currentValue,
- withInputField: false
- }
- ),
- hasPresets && !showRangeControl && !showCustomValueControl && /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
- import_components136.CustomSelectControl,
- {
- className: "preset-input-control__custom-select-control",
- hideLabelFromVision: true,
- label: ariaLabel,
- onBlur: onMouseOut,
- onChange: (selection2) => {
- if (showCustomValueInSelectList && selection2.selectedItem.key === options.length - 1) {
- setShowCustomValueControl(true);
- } else {
- onChange(
- getNewPresetValue(
- selection2.selectedItem.key,
- "selectList"
- )
- );
- }
- },
- onFocus: onMouseOver,
- onMouseOut,
- onMouseOver,
- options,
- value: (
- // passing empty string as a fallback to continue using the
- // component in controlled mode
- options.find(
- (option) => option.key === currentValue
- ) || ""
- )
- }
- ),
- hasPresets && !disableCustomValues && /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
- import_components136.Button,
- {
- className: "preset-input-control__custom-toggle",
- icon: settings_default,
- iconSize: ICON_SIZE,
- isPressed: showCustomValueControl,
- label: showCustomValueControl ? (0, import_i18n123.__)("Use preset") : (0, import_i18n123.__)("Set custom value"),
- onClick: () => {
- setShowCustomValueControl(!showCustomValueControl);
- },
- size: "small"
- }
- )
- ]
+ rootClientId: clientId,
+ renderAppender,
+ __experimentalAppenderTagName,
+ layout: memoedLayout,
+ wrapperRef,
+ placeholder
}
);
+ if (!blockType?.providesContext || Object.keys(blockType.providesContext).length === 0) {
+ return items;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(BlockContext, { clientId, children: items });
}
-
- // packages/block-editor/build-module/components/border-radius-control/constants.mjs
- var import_i18n124 = __toESM(require_i18n(), 1);
- var RANGE_CONTROL_MAX_SIZE3 = 8;
- var EMPTY_ARRAY10 = [];
- var CORNERS = {
- all: (0, import_i18n124.__)("Border radius"),
- topLeft: (0, import_i18n124.__)("Top left"),
- topRight: (0, import_i18n124.__)("Top right"),
- bottomLeft: (0, import_i18n124.__)("Bottom left"),
- bottomRight: (0, import_i18n124.__)("Bottom right")
- };
- var ICONS2 = {
- all: corner_all_default,
- topLeft: corner_top_left_default,
- topRight: corner_top_right_default,
- bottomLeft: corner_bottom_left_default,
- bottomRight: corner_bottom_right_default
- };
- var MIN_BORDER_RADIUS_VALUE = 0;
-
- // packages/block-editor/build-module/components/border-radius-control/index.mjs
- var import_jsx_runtime346 = __toESM(require_jsx_runtime(), 1);
- function useBorderRadiusSizes(presets) {
- const defaultSizes = presets?.default ?? EMPTY_ARRAY10;
- const customSizes = presets?.custom ?? EMPTY_ARRAY10;
- const themeSizes = presets?.theme ?? EMPTY_ARRAY10;
- return (0, import_element204.useMemo)(() => {
- const sizes = [
- { name: (0, import_i18n125.__)("None"), slug: "0", size: 0 },
- ...customSizes,
- ...themeSizes,
- ...defaultSizes
- ];
- return sizes.length > RANGE_CONTROL_MAX_SIZE3 ? [
- {
- name: (0, import_i18n125.__)("Default"),
- slug: "default",
- size: void 0
- },
- ...sizes
- ] : sizes;
- }, [customSizes, themeSizes, defaultSizes]);
+ function ControlledInnerBlocks(props) {
+ useBlockSync(props);
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(UncontrolledInnerBlocks, { ...props });
}
- function getCornerValue(values, corner) {
- if (corner === "all") {
- return getAllValue(values);
+ var ForwardedInnerBlocks = (0, import_element151.forwardRef)((props, ref) => {
+ const innerBlocksProps = useInnerBlocksProps({ ref }, props);
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("div", { className: "block-editor-inner-blocks", children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("div", { ...innerBlocksProps }) });
+ });
+ function useInnerBlocksProps(props = {}, options = {}) {
+ const {
+ __unstableDisableLayoutClassNames,
+ __unstableDisableDropZone,
+ dropZoneElement
+ } = options;
+ const {
+ clientId,
+ layout = null,
+ __unstableLayoutClassNames: layoutClassNames = ""
+ } = useBlockEditContext();
+ const selected = (0, import_data80.useSelect)(
+ (select3) => {
+ const {
+ getBlockName: getBlockName2,
+ isZoomOut: isZoomOut2,
+ getTemplateLock: getTemplateLock2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockEditingMode: getBlockEditingMode2,
+ getBlockSettings: getBlockSettings2,
+ getSectionRootClientId: getSectionRootClientId2
+ } = unlock(select3(store));
+ if (!clientId) {
+ const sectionRootClientId = getSectionRootClientId2();
+ return {
+ isDropZoneDisabled: isZoomOut2() && sectionRootClientId !== ""
+ };
+ }
+ const { hasBlockSupport: hasBlockSupport46, getBlockType: getBlockType33 } = select3(import_blocks48.store);
+ const blockName = getBlockName2(clientId);
+ const blockEditingMode = getBlockEditingMode2(clientId);
+ const parentClientId2 = getBlockRootClientId2(clientId);
+ const [defaultLayout22] = getBlockSettings2(clientId, "layout");
+ let _isDropZoneDisabled = blockEditingMode === "disabled";
+ if (isZoomOut2()) {
+ const sectionRootClientId = getSectionRootClientId2();
+ _isDropZoneDisabled = clientId !== sectionRootClientId;
+ }
+ return {
+ __experimentalCaptureToolbars: hasBlockSupport46(
+ blockName,
+ "__experimentalExposeControlsToChildren",
+ false
+ ),
+ name: blockName,
+ blockType: getBlockType33(blockName),
+ parentLock: getTemplateLock2(parentClientId2),
+ parentClientId: parentClientId2,
+ isDropZoneDisabled: _isDropZoneDisabled,
+ defaultLayout: defaultLayout22
+ };
+ },
+ [clientId]
+ );
+ const {
+ __experimentalCaptureToolbars,
+ name,
+ blockType,
+ parentLock,
+ parentClientId,
+ isDropZoneDisabled,
+ defaultLayout: defaultLayout2
+ } = selected;
+ const blockDropZoneRef = useBlockDropZone({
+ dropZoneElement,
+ rootClientId: clientId,
+ parentClientId
+ });
+ const ref = (0, import_compose57.useMergeRefs)([
+ props.ref,
+ __unstableDisableDropZone || isDropZoneDisabled || layout?.isManualPlacement && window.__experimentalEnableGridInteractivity ? null : blockDropZoneRef
+ ]);
+ const innerBlocksProps = {
+ __experimentalCaptureToolbars,
+ layout,
+ name,
+ blockType,
+ parentLock,
+ defaultLayout: defaultLayout2,
+ ...options
+ };
+ const InnerBlocks = innerBlocksProps.value && innerBlocksProps.onChange ? ControlledInnerBlocks : UncontrolledInnerBlocks;
+ return {
+ ...props,
+ ref,
+ className: clsx_default(
+ props.className,
+ "block-editor-block-list__layout",
+ __unstableDisableLayoutClassNames ? "" : layoutClassNames
+ ),
+ children: clientId ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(InnerBlocks, { ...innerBlocksProps, clientId }) : /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(BlockListItems, { ...options })
+ };
+ }
+ useInnerBlocksProps.save = import_blocks48.__unstableGetInnerBlocksProps;
+ ForwardedInnerBlocks.DefaultBlockAppender = DefaultBlockAppender2;
+ ForwardedInnerBlocks.ButtonBlockAppender = ButtonBlockAppender2;
+ ForwardedInnerBlocks.Content = () => useInnerBlocksProps.save().children;
+ var inner_blocks_default = ForwardedInnerBlocks;
+
+ // packages/block-editor/build-module/components/block-list/zoom-out-separator.mjs
+ var import_components65 = __toESM(require_components(), 1);
+ var import_compose58 = __toESM(require_compose(), 1);
+ var import_data81 = __toESM(require_data(), 1);
+ var import_element152 = __toESM(require_element(), 1);
+ var import_i18n73 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime278 = __toESM(require_jsx_runtime(), 1);
+ function ZoomOutSeparator({
+ clientId,
+ rootClientId = "",
+ position = "top"
+ }) {
+ const [isDraggedOver, setIsDraggedOver] = (0, import_element152.useState)(false);
+ const {
+ sectionRootClientId,
+ sectionClientIds,
+ insertionPoint: insertionPoint2,
+ blockInsertionPointVisible,
+ blockInsertionPoint,
+ blocksBeingDragged
+ } = (0, import_data81.useSelect)((select3) => {
+ const {
+ getInsertionPoint: getInsertionPoint2,
+ getBlockOrder: getBlockOrder2,
+ getSectionRootClientId: getSectionRootClientId2,
+ isBlockInsertionPointVisible: isBlockInsertionPointVisible2,
+ getBlockInsertionPoint: getBlockInsertionPoint2,
+ getDraggedBlockClientIds: getDraggedBlockClientIds2
+ } = unlock(select3(store));
+ const root = getSectionRootClientId2();
+ const sectionRootClientIds = getBlockOrder2(root);
+ return {
+ sectionRootClientId: root,
+ sectionClientIds: sectionRootClientIds,
+ insertionPoint: getInsertionPoint2(),
+ blockInsertionPoint: getBlockInsertionPoint2(),
+ blockInsertionPointVisible: isBlockInsertionPointVisible2(),
+ blocksBeingDragged: getDraggedBlockClientIds2()
+ };
+ }, []);
+ const isReducedMotion = (0, import_compose58.useReducedMotion)();
+ if (!clientId) {
+ return;
}
- if (typeof values === "string") {
- return values;
+ let isVisible = false;
+ const isSectionBlock2 = rootClientId === sectionRootClientId && sectionClientIds && sectionClientIds.includes(clientId);
+ if (!isSectionBlock2) {
+ return null;
}
- return values?.[corner];
- }
- function getCornerUnit(selectedUnits, corner) {
- if (corner === "all") {
- return selectedUnits.flat;
+ const hasTopInsertionPoint = insertionPoint2?.index === 0 && clientId === sectionClientIds[insertionPoint2.index];
+ const hasBottomInsertionPoint = insertionPoint2 && insertionPoint2.hasOwnProperty("index") && clientId === sectionClientIds[insertionPoint2.index - 1];
+ if (position === "top") {
+ isVisible = hasTopInsertionPoint || blockInsertionPointVisible && blockInsertionPoint.index === 0 && clientId === sectionClientIds[blockInsertionPoint.index];
}
- return selectedUnits[corner];
+ if (position === "bottom") {
+ isVisible = hasBottomInsertionPoint || blockInsertionPointVisible && clientId === sectionClientIds[blockInsertionPoint.index - 1];
+ }
+ const blockBeingDraggedClientId = blocksBeingDragged[0];
+ const isCurrentBlockBeingDragged = blocksBeingDragged.includes(clientId);
+ const blockBeingDraggedIndex = sectionClientIds.indexOf(
+ blockBeingDraggedClientId
+ );
+ const blockBeingDraggedPreviousSiblingClientId = blockBeingDraggedIndex > 0 ? sectionClientIds[blockBeingDraggedIndex - 1] : null;
+ const isCurrentBlockPreviousSiblingOfBlockBeingDragged = blockBeingDraggedPreviousSiblingClientId === clientId;
+ if (isCurrentBlockBeingDragged || isCurrentBlockPreviousSiblingOfBlockBeingDragged) {
+ isVisible = false;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(import_components65.__unstableAnimatePresence, { children: isVisible && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
+ import_components65.__unstableMotion.div,
+ {
+ initial: { height: 0 },
+ animate: {
+ // Use a height equal to that of the zoom out frame size.
+ height: "calc(1 * var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)"
+ },
+ exit: { height: 0 },
+ transition: {
+ type: "tween",
+ duration: isReducedMotion ? 0 : 0.2,
+ ease: [0.6, 0, 0.4, 1]
+ },
+ className: clsx_default(
+ "block-editor-block-list__zoom-out-separator",
+ {
+ "is-dragged-over": isDraggedOver
+ }
+ ),
+ "data-is-insertion-point": "true",
+ onDragOver: () => setIsDraggedOver(true),
+ onDragLeave: () => setIsDraggedOver(false),
+ children: /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
+ import_components65.__unstableMotion.div,
+ {
+ initial: { opacity: 0 },
+ animate: { opacity: 1 },
+ exit: { opacity: 0, transition: { delay: -0.125 } },
+ transition: {
+ ease: "linear",
+ duration: 0.1,
+ delay: 0.125
+ },
+ children: (0, import_i18n73.__)("Drop pattern.")
+ }
+ )
+ }
+ ) });
}
- function createCornerChangeHandler(corner, values, onChange) {
- return (newValue) => {
- if (corner === "all") {
- onChange({
- topLeft: newValue,
- topRight: newValue,
- bottomLeft: newValue,
- bottomRight: newValue
- });
- } else {
- const currentValues = typeof values !== "string" ? values || {} : {
- topLeft: values,
- topRight: values,
- bottomLeft: values,
- bottomRight: values
- };
- onChange({
- ...currentValues,
- [corner]: newValue
+
+ // packages/block-editor/build-module/components/block-list/index.mjs
+ var import_jsx_runtime279 = __toESM(require_jsx_runtime(), 1);
+ var IntersectionObserver2 = (0, import_element153.createContext)();
+ IntersectionObserver2.displayName = "IntersectionObserverContext";
+ var pendingBlockVisibilityUpdatesPerRegistry = /* @__PURE__ */ new WeakMap();
+ var delayedBlockVisibilityDebounceOptions = {
+ trailing: true
+ };
+ function Root8({ className: className2, ...settings2 }) {
+ const {
+ isOutlineMode,
+ isFocusMode,
+ isPreviewMode,
+ editedContentOnlySection: editedContentOnlySection2
+ } = (0, import_data82.useSelect)((select3) => {
+ const {
+ getSettings: getSettings8,
+ isTyping: isTyping3,
+ hasBlockSpotlight: hasBlockSpotlight3,
+ getEditedContentOnlySection: getEditedContentOnlySection2
+ } = unlock(select3(store));
+ const {
+ outlineMode,
+ focusMode,
+ isPreviewMode: _isPreviewMode
+ } = getSettings8();
+ return {
+ isOutlineMode: outlineMode && !isTyping3(),
+ isFocusMode: focusMode || hasBlockSpotlight3(),
+ isPreviewMode: _isPreviewMode,
+ editedContentOnlySection: getEditedContentOnlySection2()
+ };
+ }, []);
+ const registry = (0, import_data82.useRegistry)();
+ const { setBlockVisibility: setBlockVisibility2 } = (0, import_data82.useDispatch)(store);
+ const delayedBlockVisibilityUpdates = (0, import_compose59.useDebounce)(
+ (0, import_element153.useCallback)(() => {
+ const updates = {};
+ pendingBlockVisibilityUpdatesPerRegistry.get(registry).forEach(([id, isIntersecting]) => {
+ updates[id] = isIntersecting;
});
+ setBlockVisibility2(updates);
+ }, [registry]),
+ 300,
+ delayedBlockVisibilityDebounceOptions
+ );
+ const intersectionObserver = (0, import_element153.useMemo)(() => {
+ const { IntersectionObserver: Observer } = window;
+ if (!Observer) {
+ return;
}
- };
+ return new Observer((entries) => {
+ if (!pendingBlockVisibilityUpdatesPerRegistry.get(registry)) {
+ pendingBlockVisibilityUpdatesPerRegistry.set(registry, []);
+ }
+ for (const entry of entries) {
+ const clientId = entry.target.getAttribute("data-block");
+ pendingBlockVisibilityUpdatesPerRegistry.get(registry).push([clientId, entry.isIntersecting]);
+ }
+ delayedBlockVisibilityUpdates();
+ });
+ }, []);
+ const innerBlocksProps = useInnerBlocksProps(
+ {
+ ref: (0, import_compose59.useMergeRefs)([
+ useBlockSelectionClearer(),
+ useInBetweenInserter()
+ ]),
+ className: clsx_default("is-root-container", className2, {
+ "is-outline-mode": isOutlineMode,
+ "is-focus-mode": isFocusMode,
+ "is-preview-mode": isPreviewMode
+ })
+ },
+ settings2
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(IntersectionObserver2.Provider, { value: intersectionObserver, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("div", { ...innerBlocksProps }),
+ !!editedContentOnlySection2 && /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
+ StopEditingContentOnlySectionOnOutsideSelect,
+ {
+ clientId: editedContentOnlySection2
+ }
+ )
+ ] });
}
- function createCornerUnitChangeHandler(corner, selectedUnits, setSelectedUnits) {
- return (newUnit) => {
- const newUnits = { ...selectedUnits };
- if (corner === "all") {
- newUnits.flat = newUnit;
- newUnits.topLeft = newUnit;
- newUnits.topRight = newUnit;
- newUnits.bottomLeft = newUnit;
- newUnits.bottomRight = newUnit;
- } else {
- newUnits[corner] = newUnit;
+ function StopEditingContentOnlySectionOnOutsideSelect({ clientId }) {
+ const { stopEditingContentOnlySection: stopEditingContentOnlySection2 } = unlock(
+ (0, import_data82.useDispatch)(store)
+ );
+ const isBlockOrDescendantSelected = (0, import_data82.useSelect)(
+ (select3) => {
+ const {
+ isBlockSelected: isBlockSelected2,
+ hasSelectedInnerBlock: hasSelectedInnerBlock2,
+ getBlockSelectionStart: getBlockSelectionStart2
+ } = select3(store);
+ return !getBlockSelectionStart2() || isBlockSelected2(clientId) || hasSelectedInnerBlock2(clientId, true);
+ },
+ [clientId]
+ );
+ (0, import_element153.useEffect)(() => {
+ if (!isBlockOrDescendantSelected) {
+ stopEditingContentOnlySection2();
}
- setSelectedUnits(newUnits);
- };
+ }, [isBlockOrDescendantSelected, stopEditingContentOnlySection2]);
+ return null;
}
- function BorderRadiusControl({ onChange, values, presets }) {
- const [isLinked, setIsLinked] = (0, import_element204.useState)(
- !hasDefinedValues(values) || !hasMixedValues(values)
- );
- const options = useBorderRadiusSizes(presets);
- const [selectedUnits, setSelectedUnits] = (0, import_element204.useState)({
- flat: typeof values === "string" ? (0, import_components137.__experimentalParseQuantityAndUnitFromRawValue)(values)[1] : void 0,
- topLeft: (0, import_components137.__experimentalParseQuantityAndUnitFromRawValue)(values?.topLeft)[1],
- topRight: (0, import_components137.__experimentalParseQuantityAndUnitFromRawValue)(values?.topRight)[1],
- bottomLeft: (0, import_components137.__experimentalParseQuantityAndUnitFromRawValue)(values?.bottomLeft)[1],
- bottomRight: (0, import_components137.__experimentalParseQuantityAndUnitFromRawValue)(
- values?.bottomRight
- )[1]
- });
- const [availableUnits] = useSettings("spacing.units");
- const units2 = (0, import_components137.__experimentalUseCustomUnits)({
- availableUnits: availableUnits || ["px", "em", "rem"]
- });
- const toggleLinked = () => setIsLinked(!isLinked);
- return /* @__PURE__ */ (0, import_jsx_runtime346.jsxs)("fieldset", { className: "components-border-radius-control", children: [
- /* @__PURE__ */ (0, import_jsx_runtime346.jsxs)(import_components137.__experimentalHStack, { className: "components-border-radius-control__header", children: [
- /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(import_components137.BaseControl.VisualLabel, { as: "legend", children: (0, import_i18n125.__)("Radius") }),
- /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(LinkedButton, { onClick: toggleLinked, isLinked })
- ] }),
- isLinked ? /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(
- PresetInputControl,
- {
- ariaLabel: CORNERS.all,
- className: "components-border-radius-control",
- icon: ICONS2.all,
- minimumCustomValue: MIN_BORDER_RADIUS_VALUE,
- onChange: createCornerChangeHandler(
- "all",
- values,
- onChange
- ),
- onUnitChange: createCornerUnitChangeHandler(
- "all",
- selectedUnits,
- setSelectedUnits
- ),
- presets: options,
- presetType: "border-radius",
- selectedUnit: getCornerUnit(selectedUnits, "all"),
- showTooltip: true,
- units: units2,
- value: getCornerValue(values, "all")
+ function BlockList(settings2) {
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(Provider, { value: DEFAULT_BLOCK_EDIT_CONTEXT, children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(Root8, { ...settings2 }) });
+ }
+ var EMPTY_ARRAY8 = [];
+ var EMPTY_SET2 = /* @__PURE__ */ new Set();
+ function Items({
+ placeholder,
+ rootClientId,
+ renderAppender: CustomAppender,
+ __experimentalAppenderTagName,
+ layout = defaultLayout
+ }) {
+ const hasAppender = CustomAppender !== false;
+ const hasCustomAppender = !!CustomAppender;
+ const {
+ order,
+ isZoomOut: isZoomOut2,
+ selectedBlocks,
+ visibleBlocks,
+ ghostBlockName,
+ ghostBlockAttributes,
+ shouldRenderAppender
+ } = (0, import_data82.useSelect)(
+ (select3) => {
+ const {
+ getSettings: getSettings8,
+ getBlockOrder: getBlockOrder2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ __unstableGetVisibleBlocks: __unstableGetVisibleBlocks2,
+ getTemplateLock: getTemplateLock2,
+ getBlockEditingMode: getBlockEditingMode2,
+ isSectionBlock: isSectionBlock2,
+ isContainerInsertableToInContentOnlyMode: isContainerInsertableToInContentOnlyMode2,
+ getBlockName: getBlockName2,
+ getBlockListSettings: getBlockListSettings2,
+ isZoomOut: _isZoomOut,
+ canInsertBlockType: canInsertBlockType2
+ } = unlock(select3(store));
+ const _order = getBlockOrder2(rootClientId);
+ if (getSettings8().isPreviewMode) {
+ return {
+ order: _order,
+ selectedBlocks: EMPTY_ARRAY8,
+ visibleBlocks: EMPTY_SET2
+ };
}
- ) : /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(import_components137.__experimentalVStack, { children: [
- "topLeft",
- "topRight",
- "bottomLeft",
- "bottomRight"
- ].map((corner) => /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(
- PresetInputControl,
+ let _ghostBlockName;
+ let _ghostBlockAttributes;
+ if (hasAppender && !hasCustomAppender && !_order.length) {
+ const defaultBlock = (rootClientId ? getBlockListSettings2(rootClientId)?.defaultBlock : void 0) ?? { name: (0, import_blocks49.getDefaultBlockName)() };
+ if (defaultBlock.name && canInsertBlockType2(defaultBlock.name, rootClientId)) {
+ _ghostBlockName = defaultBlock.name;
+ _ghostBlockAttributes = defaultBlock.attributes;
+ }
+ }
+ const selectedBlockClientIds = getSelectedBlockClientIds2();
+ const selectedBlockClientId = selectedBlockClientIds[0];
+ const showRootAppender = !rootClientId && !selectedBlockClientId && (!_order.length || !canInsertBlockType2(
+ (0, import_blocks49.getDefaultBlockName)(),
+ rootClientId
+ ));
+ const hasSelectedRoot = !!(rootClientId && selectedBlockClientId && rootClientId === selectedBlockClientId);
+ const templateLock = getTemplateLock2(rootClientId);
+ const appenderAllowed = (!isSectionBlock2(rootClientId) || isContainerInsertableToInContentOnlyMode2(
+ getBlockName2(selectedBlockClientId),
+ rootClientId
+ )) && getBlockEditingMode2(rootClientId) !== "disabled" && (!templateLock || templateLock === "contentOnly") && hasAppender && !_isZoomOut();
+ return {
+ order: _order,
+ selectedBlocks: selectedBlockClientIds,
+ visibleBlocks: __unstableGetVisibleBlocks2(),
+ isZoomOut: _isZoomOut(),
+ // The ghost is the block list's empty state: it renders
+ // whether or not the block is selected.
+ ghostBlockName: appenderAllowed ? _ghostBlockName : void 0,
+ ghostBlockAttributes: _ghostBlockAttributes,
+ shouldRenderAppender: appenderAllowed && (hasCustomAppender || hasSelectedRoot || showRootAppender)
+ };
+ },
+ [rootClientId, hasAppender, hasCustomAppender]
+ );
+ const ghostBlock = (0, import_element153.useMemo)(
+ () => ghostBlockName ? (0, import_blocks49.createBlock)(ghostBlockName, ghostBlockAttributes) : null,
+ [ghostBlockName, ghostBlockAttributes]
+ );
+ const showGhost = !!ghostBlock;
+ const items = showGhost ? [...order, ghostBlock.clientId] : order;
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(LayoutProvider, { value: layout, children: [
+ items.map((clientId) => /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(
+ import_data82.AsyncModeProvider,
{
- ariaLabel: CORNERS[corner],
- className: "components-border-radius-control",
- icon: ICONS2[corner],
- minimumCustomValue: MIN_BORDER_RADIUS_VALUE,
- onChange: createCornerChangeHandler(
- corner,
- values,
- onChange
- ),
- onUnitChange: createCornerUnitChangeHandler(
- corner,
- selectedUnits,
- setSelectedUnits
- ),
- presets: options,
- presetType: "border-radius",
- selectedUnit: getCornerUnit(
- selectedUnits,
- corner
+ value: (
+ // Only provide data asynchronously if the block is
+ // not visible, not selected, and not the ghost.
+ clientId !== ghostBlock?.clientId && !visibleBlocks.has(clientId) && !selectedBlocks.includes(clientId)
),
- showTooltip: true,
- units: units2,
- value: getCornerValue(values, corner)
+ children: [
+ isZoomOut2 && /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
+ ZoomOutSeparator,
+ {
+ clientId,
+ rootClientId,
+ position: "top"
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
+ block_default2,
+ {
+ rootClientId,
+ clientId,
+ ghostBlock: clientId === ghostBlock?.clientId ? ghostBlock : void 0
+ }
+ ),
+ isZoomOut2 && /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
+ ZoomOutSeparator,
+ {
+ clientId,
+ rootClientId,
+ position: "bottom"
+ }
+ )
+ ]
},
- corner
- )) })
+ clientId
+ )),
+ order.length < 1 && placeholder,
+ shouldRenderAppender && !showGhost && /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
+ BlockListAppender,
+ {
+ tagName: __experimentalAppenderTagName,
+ rootClientId,
+ CustomAppender
+ }
+ )
] });
}
+ function BlockListItems(props) {
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(import_data82.AsyncModeProvider, { value: false, children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(Items, { ...props }) });
+ }
- // packages/block-editor/build-module/components/color-palette/index.mjs
- var import_components138 = __toESM(require_components(), 1);
+ // packages/block-editor/build-module/components/block-tools/index.mjs
+ var import_data124 = __toESM(require_data(), 1);
+ var import_dom61 = __toESM(require_dom(), 1);
+ var import_components113 = __toESM(require_components(), 1);
+ var import_keyboard_shortcuts10 = __toESM(require_keyboard_shortcuts(), 1);
+ var import_element188 = __toESM(require_element(), 1);
+ var import_blocks78 = __toESM(require_blocks(), 1);
+ var import_a11y13 = __toESM(require_a11y(), 1);
+ var import_i18n106 = __toESM(require_i18n(), 1);
- // packages/block-editor/build-module/components/color-palette/with-color-context.mjs
- var import_compose81 = __toESM(require_compose(), 1);
- var import_jsx_runtime347 = __toESM(require_jsx_runtime(), 1);
- var with_color_context_default = (0, import_compose81.createHigherOrderComponent)((WrappedComponent) => {
- return function WithColorContext(props) {
- const [
- defaultColors,
- themeColors,
- customColors,
- enableCustomColors,
- enableDefaultColors
- ] = useSettings(
- "color.palette.default",
- "color.palette.theme",
- "color.palette.custom",
- "color.custom",
- "color.defaultPalette"
- );
- const _colors = enableDefaultColors ? [
- ...themeColors || [],
- ...defaultColors || [],
- ...customColors || []
- ] : [...themeColors || [], ...customColors || []];
- const { colors: colors2 = _colors, disableCustomColors = !enableCustomColors } = props;
- const hasColorsToChoose = colors2 && colors2.length > 0 || !disableCustomColors;
- return /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
- WrappedComponent,
- {
- ...{
- ...props,
- colors: colors2,
- disableCustomColors,
- hasColorsToChoose
- }
- }
- );
- };
- }, "withColorContext");
+ // packages/block-editor/build-module/components/block-tools/use-block-toolbar-popover-props.mjs
+ var import_compose63 = __toESM(require_compose(), 1);
+ var import_data87 = __toESM(require_data(), 1);
+ var import_dom57 = __toESM(require_dom(), 1);
+ var import_element161 = __toESM(require_element(), 1);
- // packages/block-editor/build-module/components/color-palette/index.mjs
- var color_palette_default = with_color_context_default(import_components138.ColorPalette);
+ // packages/block-editor/build-module/hooks/position.mjs
+ var import_i18n75 = __toESM(require_i18n(), 1);
+ var import_blocks51 = __toESM(require_blocks(), 1);
+ var import_compose62 = __toESM(require_compose(), 1);
+ var import_data86 = __toESM(require_data(), 1);
+ var import_element160 = __toESM(require_element(), 1);
- // packages/block-editor/build-module/components/colors-gradients/control.mjs
- var import_i18n126 = __toESM(require_i18n(), 1);
- var import_components139 = __toESM(require_components(), 1);
- var import_jsx_runtime348 = __toESM(require_jsx_runtime(), 1);
- var { Tabs: Tabs3 } = unlock(import_components139.privateApis);
- var colorsAndGradientKeys = [
- "colors",
- "disableCustomColors",
- "gradients",
- "disableCustomGradients"
- ];
- var TAB_IDS = { color: "color", gradient: "gradient" };
- function ColorGradientControlInner({
- colors: colors2,
- gradients,
- disableCustomColors,
- disableCustomGradients,
- __experimentalIsRenderedInSidebar,
- className,
- label,
- onColorChange,
- onGradientChange,
- colorValue,
- colorSlug,
- gradientValue,
- gradientSlug,
- clearable,
- showTitle = true,
- enableAlpha,
- headingLevel,
- noticeProps
- }) {
- const canChooseAColor = onColorChange && (colors2 && colors2.length > 0 || !disableCustomColors);
- const canChooseAGradient = onGradientChange && (gradients && gradients.length > 0 || !disableCustomGradients);
- if (!canChooseAColor && !canChooseAGradient) {
- return null;
+ // packages/block-editor/build-module/components/inspector-controls/fill.mjs
+ var import_components68 = __toESM(require_components(), 1);
+ var import_warning5 = __toESM(require_warning(), 1);
+ var import_deprecated11 = __toESM(require_deprecated(), 1);
+ var import_element156 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/inspector-controls/groups.mjs
+ var import_components66 = __toESM(require_components(), 1);
+ var InspectorControlsDefault = (0, import_components66.createSlotFill)("InspectorControls");
+ var InspectorControlsAdvanced = (0, import_components66.createSlotFill)("InspectorAdvancedControls");
+ var InspectorControlsBindings = (0, import_components66.createSlotFill)("InspectorControlsBindings");
+ var InspectorControlsBackground = (0, import_components66.createSlotFill)(
+ "InspectorControlsBackground"
+ );
+ var InspectorControlsBorder = (0, import_components66.createSlotFill)("InspectorControlsBorder");
+ var InspectorControlsColor = (0, import_components66.createSlotFill)("InspectorControlsColor");
+ var InspectorControlsFilter = (0, import_components66.createSlotFill)("InspectorControlsFilter");
+ var InspectorControlsDimensions = (0, import_components66.createSlotFill)(
+ "InspectorControlsDimensions"
+ );
+ var InspectorControlsLayout = (0, import_components66.createSlotFill)("InspectorControlsLayout");
+ var InspectorControlsElements = (0, import_components66.createSlotFill)("InspectorControlsElements");
+ var InspectorControlsPosition = (0, import_components66.createSlotFill)("InspectorControlsPosition");
+ var InspectorControlsTypography = (0, import_components66.createSlotFill)(
+ "InspectorControlsTypography"
+ );
+ var InspectorControlsListView = (0, import_components66.createSlotFill)("InspectorControlsListView");
+ var InspectorControlsStyles = (0, import_components66.createSlotFill)("InspectorControlsStyles");
+ var InspectorControlsEffects = (0, import_components66.createSlotFill)("InspectorControlsEffects");
+ var InspectorControlsContent = (0, import_components66.createSlotFill)("InspectorControlsContent");
+ var groups = {
+ default: InspectorControlsDefault,
+ advanced: InspectorControlsAdvanced,
+ background: InspectorControlsBackground,
+ bindings: InspectorControlsBindings,
+ border: InspectorControlsBorder,
+ color: InspectorControlsColor,
+ content: InspectorControlsContent,
+ dimensions: InspectorControlsDimensions,
+ effects: InspectorControlsEffects,
+ elements: InspectorControlsElements,
+ filter: InspectorControlsFilter,
+ layout: InspectorControlsLayout,
+ list: InspectorControlsListView,
+ position: InspectorControlsPosition,
+ settings: InspectorControlsDefault,
+ // Alias for default.
+ styles: InspectorControlsStyles,
+ typography: InspectorControlsTypography
+ };
+ var groups_default = groups;
+ var PrivateInspectorControlsAllowedBlocks = (0, import_components66.createSlotFill)(
+ /* @__PURE__ */ Symbol("PrivateInspectorControlsAllowedBlocks")
+ );
+
+ // packages/block-editor/build-module/hooks/block-style-state.mjs
+ var import_element154 = __toESM(require_element(), 1);
+ var DEFAULT_STATE_VALUE2 = "default";
+ var DEFAULT_BLOCK_STYLE_STATE2 = {
+ viewport: DEFAULT_STATE_VALUE2,
+ pseudo: DEFAULT_STATE_VALUE2
+ };
+ var BlockStyleStateContext = (0, import_element154.createContext)(DEFAULT_BLOCK_STYLE_STATE2);
+ var BlockStyleStateProvider = BlockStyleStateContext.Provider;
+ function useBlockStyleState() {
+ return (0, import_element154.useContext)(BlockStyleStateContext);
+ }
+ function hasViewportBlockStyleState(selectedState) {
+ return !!selectedState?.viewport && selectedState.viewport !== DEFAULT_STATE_VALUE2;
+ }
+ function hasPseudoBlockStyleState(selectedState) {
+ return !!selectedState?.pseudo && selectedState.pseudo !== DEFAULT_STATE_VALUE2;
+ }
+ function isDefaultBlockStyleState2(selectedState) {
+ return !hasViewportBlockStyleState(selectedState) && !hasPseudoBlockStyleState(selectedState);
+ }
+ function getStyleStatePath2(selectedState) {
+ if (isDefaultBlockStyleState2(selectedState)) {
+ return [];
}
- const colorPaletteOnChange = canChooseAGradient ? (newColor, _index, newSlug) => {
- onColorChange(newColor, newSlug);
- onGradientChange();
- } : (newColor, _index, newSlug) => onColorChange(newColor, newSlug);
- const colorPalette = /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(
- import_components139.ColorPalette,
- {
- value: colorValue,
- selectedSlug: colorSlug,
- onChange: colorPaletteOnChange,
- ...{ colors: colors2, disableCustomColors },
- __experimentalIsRenderedInSidebar,
- clearable,
- enableAlpha,
- headingLevel
- }
+ return [selectedState.viewport, selectedState.pseudo].filter(
+ (state) => state && state !== DEFAULT_STATE_VALUE2
);
- const tabPanels = {
- // The `ColorPalette` must stay at a stable position in the tree whether
- // or not a notice is present. Wrapping it in a `VStack` only when a
- // notice appears remounts it, which resets the custom color picker back
- // to the swatch view mid-edit. Keep `ColorPalette` first and toggle only
- // the trailing notice after it, so the palette holds a stable index and
- // the notice sits at the bottom of the popover.
- [TAB_IDS.color]: /* @__PURE__ */ (0, import_jsx_runtime348.jsxs)(import_jsx_runtime348.Fragment, { children: [
- colorPalette,
- noticeProps && /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(import_components139.Notice, { isDismissible: false, ...noticeProps })
- ] }),
- [TAB_IDS.gradient]: /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(
- import_components139.GradientPicker,
- {
- value: gradientValue,
- selectedSlug: gradientSlug,
- onChange: canChooseAColor ? (newGradient, _index, newSlug) => {
- onGradientChange(newGradient, newSlug);
- onColorChange();
- } : (newGradient, _index, newSlug) => onGradientChange(newGradient, newSlug),
- ...{ gradients, disableCustomGradients },
- __experimentalIsRenderedInSidebar,
- clearable,
- headingLevel
- }
- )
+ }
+ function getStyleForState2(style, selectedState) {
+ const path = getStyleStatePath2(selectedState);
+ if (!path.length) {
+ return style;
+ }
+ return getValueFromObjectPath2(style, path);
+ }
+ function setStyleForState(style, selectedState, newStyle) {
+ const path = getStyleStatePath2(selectedState);
+ if (!path.length) {
+ return cleanEmptyObject(newStyle);
+ }
+ return cleanEmptyObject(setImmutably2(style, path, newStyle));
+ }
+ function scopeResetAllFilterToState(selectedState, resetAllFilter) {
+ if (!resetAllFilter || isDefaultBlockStyleState2(selectedState)) {
+ return resetAllFilter;
+ }
+ return (attributes) => {
+ const existingStateStyle = getStyleForState2(attributes?.style, selectedState) || {};
+ const updatedStateAttributes = resetAllFilter({
+ style: existingStateStyle
+ });
+ const updatedStateStyle = updatedStateAttributes && typeof updatedStateAttributes === "object" && !Array.isArray(updatedStateAttributes) && Object.prototype.hasOwnProperty.call(
+ updatedStateAttributes,
+ "style"
+ ) ? updatedStateAttributes.style : updatedStateAttributes;
+ return {
+ style: setStyleForState(
+ attributes?.style,
+ selectedState,
+ updatedStateStyle
+ )
+ };
};
- const renderPanelType = (type) => /* @__PURE__ */ (0, import_jsx_runtime348.jsx)("div", { className: "block-editor-color-gradient-control__panel", children: tabPanels[type] });
- return /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(
- import_components139.BaseControl,
- {
- className: clsx_default(
- "block-editor-color-gradient-control",
- className
- ),
- children: /* @__PURE__ */ (0, import_jsx_runtime348.jsx)("fieldset", { className: "block-editor-color-gradient-control__fieldset", children: /* @__PURE__ */ (0, import_jsx_runtime348.jsxs)(import_components139.__experimentalVStack, { spacing: 1, children: [
- showTitle && /* @__PURE__ */ (0, import_jsx_runtime348.jsx)("legend", { children: /* @__PURE__ */ (0, import_jsx_runtime348.jsx)("div", { className: "block-editor-color-gradient-control__color-indicator", children: /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(import_components139.BaseControl.VisualLabel, { children: label }) }) }),
- canChooseAColor && canChooseAGradient && /* @__PURE__ */ (0, import_jsx_runtime348.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime348.jsxs)(
- Tabs3,
- {
- defaultTabId: gradientValue ? TAB_IDS.gradient : !!canChooseAColor && TAB_IDS.color,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime348.jsxs)(Tabs3.TabList, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(Tabs3.Tab, { tabId: TAB_IDS.color, children: (0, import_i18n126.__)("Color") }),
- /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(Tabs3.Tab, { tabId: TAB_IDS.gradient, children: (0, import_i18n126.__)("Gradient") })
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(
- Tabs3.TabPanel,
- {
- tabId: TAB_IDS.color,
- className: "block-editor-color-gradient-control__panel",
- focusable: false,
- children: tabPanels.color
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(
- Tabs3.TabPanel,
- {
- tabId: TAB_IDS.gradient,
- className: "block-editor-color-gradient-control__panel",
- focusable: false,
- children: tabPanels.gradient
- }
- )
- ]
- }
- ) }),
- !canChooseAGradient && renderPanelType(TAB_IDS.color),
- !canChooseAColor && renderPanelType(TAB_IDS.gradient)
- ] }) })
+ }
+
+ // packages/block-editor/build-module/components/inspector-controls/list-view-content-popover.mjs
+ var import_components67 = __toESM(require_components(), 1);
+ var import_element155 = __toESM(require_element(), 1);
+ var import_compose60 = __toESM(require_compose(), 1);
+ var import_data83 = __toESM(require_data(), 1);
+ var import_jsx_runtime280 = __toESM(require_jsx_runtime(), 1);
+ var LIST_VIEW_CONTENT_PANEL_SLOT = /* @__PURE__ */ Symbol("ListViewContentPopover");
+ var { Fill, Slot: Slot2 } = (0, import_components67.createSlotFill)(LIST_VIEW_CONTENT_PANEL_SLOT);
+ function useInspectorPopoverPlacement() {
+ const isMobile = (0, import_compose60.useViewportMatch)("medium", "<");
+ return !isMobile ? {
+ popoverProps: {
+ placement: "left-start",
+ offset: 35,
+ resize: false
}
- );
+ } : {};
}
- function ColorGradientControlSelect(props) {
- const [colors2, gradients, customColors, customGradients] = useSettings(
- "color.palette",
- "color.gradients",
- "color.custom",
- "color.customGradient"
- );
- return /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(
- ColorGradientControlInner,
- {
- colors: colors2,
- gradients,
- disableCustomColors: !customColors,
- disableCustomGradients: !customGradients,
- ...props
+ function ListViewContentPopover({ listViewRef }) {
+ const { popoverProps: popoverProps3 } = useInspectorPopoverPlacement();
+ const fills = (0, import_components67.__experimentalUseSlotFills)(LIST_VIEW_CONTENT_PANEL_SLOT);
+ const hasFills = Boolean(fills && fills.length);
+ const { selectedClientId, isOpen } = (0, import_data83.useSelect)((select3) => {
+ const { getSelectedBlockClientId: getSelectedBlockClientId2 } = select3(store);
+ const privateSelectors = unlock(select3(store));
+ return {
+ selectedClientId: getSelectedBlockClientId2(),
+ isOpen: privateSelectors.isListViewContentPanelOpen()
+ };
+ }, []);
+ const [anchorElement, setAnchorElement] = (0, import_element155.useState)(null);
+ (0, import_element155.useLayoutEffect)(() => {
+ if (!selectedClientId || !listViewRef?.current) {
+ setAnchorElement(null);
+ return;
}
+ const element = listViewRef.current.querySelector(
+ `[data-block="${selectedClientId}"]`
+ );
+ setAnchorElement(element);
+ }, [selectedClientId, listViewRef]);
+ const { closeListViewContentPanel: closeListViewContentPanel2 } = unlock(
+ (0, import_data83.useDispatch)(store)
);
- }
- function ColorGradientControl(props) {
- if (colorsAndGradientKeys.every((key) => props.hasOwnProperty(key))) {
- return /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(ColorGradientControlInner, { ...props });
+ if (!isOpen || !hasFills || !anchorElement) {
+ return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(ColorGradientControlSelect, { ...props });
- }
- var control_default = ColorGradientControl;
-
- // packages/block-editor/build-module/components/color-palette/control.mjs
- var import_jsx_runtime349 = __toESM(require_jsx_runtime(), 1);
- function ColorPaletteControl({
- onChange,
- value,
- ...otherProps
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime349.jsx)(
- control_default,
+ return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
+ import_components67.Popover,
{
- ...otherProps,
- onColorChange: onChange,
- colorValue: value,
- gradients: [],
- disableCustomGradients: true
+ ...popoverProps3 ?? {},
+ className: "block-editor-inspector-list-view-content-popover",
+ anchor: anchorElement,
+ onClose: closeListViewContentPanel2,
+ children: /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("div", { style: { width: "280px" }, children: /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(Slot2, {}) })
}
);
}
- // packages/block-editor/build-module/components/contrast-checker/index.mjs
- var import_i18n127 = __toESM(require_i18n(), 1);
- var import_components140 = __toESM(require_components(), 1);
- var import_a11y17 = __toESM(require_a11y(), 1);
- var import_jsx_runtime350 = __toESM(require_jsx_runtime(), 1);
- k([names_default, a11y_default]);
- function getContrastWarning({
- backgroundColor,
- fallbackBackgroundColor,
- fallbackTextColor,
- fallbackLinkColor,
- fontSize,
- // Font size value in pixels.
- isLargeText,
- textColor,
- linkColor,
- messageOverride,
- enableAlphaChecker = false
+ // packages/block-editor/build-module/components/inspector-controls/fill.mjs
+ var import_jsx_runtime281 = __toESM(require_jsx_runtime(), 1);
+ var PATTERN_EDITING_GROUPS = ["content", "list"];
+ function InspectorControlsFill({
+ children,
+ group = "default",
+ __experimentalGroup,
+ resetAllFilter
}) {
- const currentBackgroundColor = backgroundColor || fallbackBackgroundColor;
- if (!currentBackgroundColor) {
- return null;
+ if (__experimentalGroup) {
+ (0, import_deprecated11.default)(
+ "`__experimentalGroup` property in `InspectorControlsFill`",
+ {
+ since: "6.2",
+ version: "6.4",
+ alternative: "`group`"
+ }
+ );
+ group = __experimentalGroup;
}
- const currentTextColor = textColor || fallbackTextColor;
- const currentLinkColor = linkColor || fallbackLinkColor;
- if (!currentTextColor && !currentLinkColor) {
+ const context = useBlockEditContext();
+ const isSelectedBlock = context[mayDisplayControlsKey];
+ const isPatternEditing = context[mayDisplayPatternEditingControlsKey];
+ const isInListViewTree = context[isInListViewBlockSupportTreeKey];
+ const Fill5 = groups_default[group]?.Fill;
+ if (!Fill5) {
+ (0, import_warning5.default)(`Unknown InspectorControls group "${group}" provided.`);
return null;
}
- const textColors = [
- {
- color: currentTextColor,
- description: (0, import_i18n127.__)("text color")
- },
- {
- color: currentLinkColor,
- description: (0, import_i18n127.__)("link color")
- }
- ];
- const colordBackgroundColor = w(currentBackgroundColor);
- const backgroundColorHasTransparency = colordBackgroundColor.alpha() < 1;
- const backgroundColorBrightness = colordBackgroundColor.brightness();
- const isReadableOptions = {
- level: "AA",
- size: isLargeText || isLargeText !== false && fontSize >= 24 ? "large" : "small"
- };
- let message2 = "";
- let speakMessage = "";
- for (const item of textColors) {
- if (!item.color) {
- continue;
- }
- const colordTextColor = w(item.color);
- const isColordTextReadable = colordTextColor.isReadable(
- colordBackgroundColor,
- isReadableOptions
- );
- const textHasTransparency = colordTextColor.alpha() < 1;
- if (!isColordTextReadable) {
- if (backgroundColorHasTransparency || textHasTransparency) {
- continue;
- }
- if (messageOverride) {
- message2 = messageOverride;
- speakMessage = messageOverride;
- break;
- }
- message2 = backgroundColorBrightness < colordTextColor.brightness() ? (0, import_i18n127.sprintf)(
- // translators: %s is a type of text color, e.g., "text color" or "link color".
- (0, import_i18n127.__)(
- "This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."
- ),
- item.description
- ) : (0, import_i18n127.sprintf)(
- // translators: %s is a type of text color, e.g., "text color" or "link color".
- (0, import_i18n127.__)(
- "This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."
- ),
- item.description
- );
- speakMessage = (0, import_i18n127.__)(
- "This color combination may be hard for people to read."
- );
- break;
- }
- if (textHasTransparency && enableAlphaChecker) {
- message2 = (0, import_i18n127.__)("Transparent text may be hard for people to read.");
- speakMessage = (0, import_i18n127.__)(
- "Transparent text may be hard for people to read."
- );
+ if (isPatternEditing) {
+ const isTemplatePart9 = context.name === "core/template-part";
+ const isPatternEditingGroup = PATTERN_EDITING_GROUPS.includes(group);
+ const canShowGroup = isTemplatePart9 || isPatternEditingGroup;
+ if (!canShowGroup) {
+ return null;
}
- }
- if (!message2) {
+ } else if (!isSelectedBlock) {
return null;
}
- return { message: message2, speakMessage };
- }
- function ContrastChecker(props) {
- const warning6 = getContrastWarning(props);
- if (!warning6) {
+ const rendersInListView = group === "content" && isPatternEditing && isInListViewTree;
+ if (rendersInListView && !isSelectedBlock) {
return null;
}
- (0, import_a11y17.speak)(warning6.speakMessage);
- return /* @__PURE__ */ (0, import_jsx_runtime350.jsx)("div", { className: "block-editor-contrast-checker", children: /* @__PURE__ */ (0, import_jsx_runtime350.jsx)(
- import_components140.Notice,
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(import_components68.__experimentalStyleProvider, { document, children: rendersInListView ? /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Fill, { children }) : /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Fill5, { children: (fillProps) => /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
+ ToolsPanelInspectorControl,
{
- spokenMessage: null,
- status: "warning",
- isDismissible: false,
- children: warning6.message
+ fillProps,
+ resetAllFilter,
+ children
}
- ) });
- }
- var contrast_checker_default = ContrastChecker;
-
- // packages/block-editor/build-module/components/date-format-picker/index.mjs
- var import_i18n128 = __toESM(require_i18n(), 1);
- var import_date = __toESM(require_date(), 1);
- var import_element205 = __toESM(require_element(), 1);
- var import_components141 = __toESM(require_components(), 1);
- var import_jsx_runtime351 = __toESM(require_jsx_runtime(), 1);
- var exampleDate = /* @__PURE__ */ new Date();
- exampleDate.setDate(20);
- exampleDate.setMonth(exampleDate.getMonth() - 3);
- if (exampleDate.getMonth() === 4) {
- exampleDate.setMonth(3);
+ ) }) });
}
- function DateFormatPicker({
- format: format6,
- defaultFormat,
- onChange
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime351.jsxs)(
- import_components141.__experimentalVStack,
- {
- as: "fieldset",
- spacing: 4,
- className: "block-editor-date-format-picker",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime351.jsx)("legend", {}), children: (0, import_i18n128.__)("Date format") }),
- /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
- import_components141.ToggleControl,
- {
- label: (0, import_i18n128.__)("Default format"),
- help: `${(0, import_i18n128.__)("Example:")} ${(0, import_date.dateI18n)(
- defaultFormat,
- exampleDate
- )}`,
- checked: !format6,
- onChange: (checked) => onChange(checked ? null : defaultFormat)
- }
- ),
- format6 && /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(NonDefaultControls, { format: format6, onChange })
- ]
- }
+ function RegisterResetAll({ resetAllFilter, children }) {
+ const { registerResetAllFilter, deregisterResetAllFilter } = (0, import_element156.useContext)(import_components68.__experimentalToolsPanelContext);
+ const selectedState = useBlockStyleState();
+ const scopedResetAllFilter = (0, import_element156.useMemo)(
+ () => scopeResetAllFilterToState(selectedState, resetAllFilter),
+ [resetAllFilter, selectedState]
);
- }
- function NonDefaultControls({ format: format6, onChange }) {
- const suggestedFormats = [
- .../* @__PURE__ */ new Set([
- /* translators: See https://www.php.net/manual/datetime.format.php */
- "Y-m-d",
- /* translators: See https://www.php.net/manual/datetime.format.php */
- (0, import_i18n128._x)("n/j/Y", "short date format"),
- /* translators: See https://www.php.net/manual/datetime.format.php */
- (0, import_i18n128._x)("n/j/Y g:i A", "short date format with time"),
- /* translators: See https://www.php.net/manual/datetime.format.php */
- (0, import_i18n128._x)("M j, Y", "medium date format"),
- /* translators: See https://www.php.net/manual/datetime.format.php */
- (0, import_i18n128._x)("M j, Y g:i A", "medium date format with time"),
- /* translators: See https://www.php.net/manual/datetime.format.php */
- (0, import_i18n128._x)("F j, Y", "long date format"),
- /* translators: See https://www.php.net/manual/datetime.format.php */
- (0, import_i18n128._x)("M j", "short date format without the year")
- ])
- ];
- const suggestedOptions = [
- ...suggestedFormats.map((suggestedFormat, index2) => ({
- key: `suggested-${index2}`,
- name: (0, import_date.dateI18n)(suggestedFormat, exampleDate),
- format: suggestedFormat
- })),
- {
- key: "human-diff",
- name: (0, import_date.humanTimeDiff)(exampleDate),
- format: "human-diff"
+ (0, import_element156.useEffect)(() => {
+ if (scopedResetAllFilter && registerResetAllFilter && deregisterResetAllFilter) {
+ registerResetAllFilter(scopedResetAllFilter);
+ return () => {
+ deregisterResetAllFilter(scopedResetAllFilter);
+ };
}
- ];
- const customOption = {
- key: "custom",
- name: (0, import_i18n128.__)("Custom"),
- className: "block-editor-date-format-picker__custom-format-select-control__custom-option",
- hint: (0, import_i18n128.__)("Enter your own date format")
- };
- const [isCustom, setIsCustom] = (0, import_element205.useState)(
- () => !!format6 && !suggestedOptions.some((option) => option.format === format6)
+ }, [
+ scopedResetAllFilter,
+ registerResetAllFilter,
+ deregisterResetAllFilter
+ ]);
+ return children;
+ }
+ function ToolsPanelInspectorControl({ children, resetAllFilter, fillProps }) {
+ const { forwardedContext = [] } = fillProps;
+ const innerMarkup = /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(RegisterResetAll, { resetAllFilter, children });
+ return forwardedContext.reduce(
+ (inner, [Provider3, props]) => /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Provider3, { ...props, children: inner }),
+ innerMarkup
);
- return /* @__PURE__ */ (0, import_jsx_runtime351.jsxs)(import_components141.__experimentalVStack, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
- import_components141.CustomSelectControl,
- {
- label: (0, import_i18n128.__)("Choose a format"),
- options: [...suggestedOptions, customOption],
- value: isCustom ? customOption : suggestedOptions.find(
- (option) => option.format === format6
- ) ?? customOption,
- onChange: ({ selectedItem }) => {
- if (selectedItem === customOption) {
- setIsCustom(true);
- } else {
- setIsCustom(false);
- onChange(selectedItem.format);
- }
- }
- }
- ),
- isCustom && /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
- import_components141.TextControl,
- {
- label: (0, import_i18n128.__)("Custom format"),
- hideLabelFromVision: true,
- help: (0, import_element205.createInterpolateElement)(
- (0, import_i18n128.__)(
- "Enter a date or time <Link>format string</Link>."
- ),
- {
- Link: /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
- import_components141.ExternalLink,
- {
- href: (0, import_i18n128.__)(
- "https://wordpress.org/documentation/article/customize-date-and-time-format/"
- )
- }
- )
- }
- ),
- value: format6,
- onChange: (value) => onChange(value)
- }
- )
- ] });
}
- // packages/block-editor/build-module/components/duotone-control/index.mjs
- var import_components142 = __toESM(require_components(), 1);
- var import_i18n129 = __toESM(require_i18n(), 1);
- var import_keycodes18 = __toESM(require_keycodes(), 1);
- var import_compose82 = __toESM(require_compose(), 1);
- var import_jsx_runtime352 = __toESM(require_jsx_runtime(), 1);
- function DuotoneControl({
- id: idProp,
- colorPalette,
- duotonePalette,
- disableCustomColors,
- disableCustomDuotone,
- value,
- onChange
- }) {
- let toolbarIcon;
- if (value === "unset") {
- toolbarIcon = /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(import_components142.ColorIndicator, { className: "block-editor-duotone-control__unset-indicator" });
- } else if (value) {
- toolbarIcon = /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(import_components142.DuotoneSwatch, { values: value });
- } else {
- toolbarIcon = /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(icon_default, { icon: filter_default });
+ // packages/block-editor/build-module/components/inspector-controls/slot.mjs
+ var import_components71 = __toESM(require_components(), 1);
+ var import_element159 = __toESM(require_element(), 1);
+ var import_warning6 = __toESM(require_warning(), 1);
+ var import_deprecated12 = __toESM(require_deprecated(), 1);
+
+ // packages/block-editor/build-module/components/inspector-controls/block-support-tools-panel.mjs
+ var import_components69 = __toESM(require_components(), 1);
+ var import_data84 = __toESM(require_data(), 1);
+ var import_element157 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/global-styles/utils.mjs
+ var import_compose61 = __toESM(require_compose(), 1);
+ function useToolsPanelDropdownMenuProps() {
+ const isMobile = (0, import_compose61.useViewportMatch)("medium", "<");
+ return !isMobile ? {
+ popoverProps: {
+ placement: "left-start",
+ // For non-mobile, inner sidebar width (248px) - button width (24px) - border (1px) + padding (16px) + spacing (20px)
+ offset: 259
+ }
+ } : {};
+ }
+ function scopeSelector2(scope, selector3) {
+ if (!scope || !selector3) {
+ return selector3;
}
- const actionLabel = (0, import_i18n129.__)("Apply duotone filter");
- const id = (0, import_compose82.useInstanceId)(DuotoneControl, "duotone-control", idProp);
- const descriptionId = `${id}__description`;
- return /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
- import_components142.Dropdown,
- {
- popoverProps: {
- className: "block-editor-duotone-control__popover",
- headerTitle: (0, import_i18n129.__)("Duotone")
- },
- renderToggle: ({ isOpen, onToggle }) => {
- const openOnArrowDown = (event) => {
- if (!isOpen && event.keyCode === import_keycodes18.DOWN) {
- event.preventDefault();
- onToggle();
- }
+ const scopes = scope.split(",");
+ const selectors4 = selector3.split(",");
+ const selectorsScoped = [];
+ scopes.forEach((outer) => {
+ selectors4.forEach((inner) => {
+ selectorsScoped.push(`${outer.trim()} ${inner.trim()}`);
+ });
+ });
+ return selectorsScoped.join(", ");
+ }
+
+ // packages/block-editor/build-module/components/inspector-controls/block-support-tools-panel.mjs
+ var import_jsx_runtime282 = __toESM(require_jsx_runtime(), 1);
+ function BlockSupportToolsPanel({ children, group, label }) {
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data84.useDispatch)(store);
+ const {
+ getBlockAttributes: getBlockAttributes3,
+ getBlockName: getBlockName2,
+ getMultiSelectedBlockClientIds: getMultiSelectedBlockClientIds2,
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ hasMultiSelection: hasMultiSelection2
+ } = (0, import_data84.useSelect)(store);
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const panelId = getSelectedBlockClientId2();
+ const resetAll = (0, import_element157.useCallback)(
+ (resetFilters = []) => {
+ const newAttributes = {};
+ const clientIds = hasMultiSelection2() ? getMultiSelectedBlockClientIds2() : [panelId];
+ clientIds.forEach((clientId) => {
+ const blockAttributes = getBlockAttributes3(clientId) || {};
+ const { style } = blockAttributes;
+ let newBlockAttributes = { style };
+ const resetContext = {
+ attributes: blockAttributes,
+ clientId,
+ name: getBlockName2(clientId)
};
- return /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
- import_components142.ToolbarButton,
- {
- showTooltip: true,
- onClick: onToggle,
- "aria-haspopup": "true",
- "aria-expanded": isOpen,
- onKeyDown: openOnArrowDown,
- label: actionLabel,
- icon: toolbarIcon
- }
- );
- },
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime352.jsxs)(import_components142.MenuGroup, { label: (0, import_i18n129.__)("Duotone"), children: [
- /* @__PURE__ */ (0, import_jsx_runtime352.jsx)("p", { children: (0, import_i18n129.__)(
- "Create a two-tone color effect without losing your original image."
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
- import_components142.DuotonePicker,
- {
- "aria-label": actionLabel,
- "aria-describedby": descriptionId,
- colorPalette,
- duotonePalette,
- disableCustomColors,
- disableCustomDuotone,
- value,
- onChange
- }
- )
- ] })
- }
+ resetFilters.forEach((resetFilter) => {
+ newBlockAttributes = {
+ ...newBlockAttributes,
+ ...resetFilter(newBlockAttributes, resetContext)
+ };
+ });
+ newBlockAttributes = {
+ ...newBlockAttributes,
+ style: cleanEmptyObject(newBlockAttributes.style)
+ };
+ newAttributes[clientId] = newBlockAttributes;
+ });
+ updateBlockAttributes2(clientIds, newAttributes, true);
+ },
+ [
+ getBlockAttributes3,
+ getBlockName2,
+ getMultiSelectedBlockClientIds2,
+ hasMultiSelection2,
+ panelId,
+ updateBlockAttributes2
+ ]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
+ import_components69.__experimentalToolsPanel,
+ {
+ className: `${group}-block-support-panel`,
+ label,
+ resetAll,
+ panelId,
+ hasInnerWrapper: true,
+ shouldRenderPlaceholderItems: true,
+ __experimentalFirstVisibleItemClass: "first",
+ __experimentalLastVisibleItemClass: "last",
+ dropdownMenuProps,
+ children
+ },
+ panelId
);
}
- var duotone_control_default = DuotoneControl;
-
- // packages/block-editor/build-module/components/font-appearance-control/index.mjs
- var import_components143 = __toESM(require_components(), 1);
- var import_element206 = __toESM(require_element(), 1);
- var import_i18n133 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/utils/get-font-styles-and-weights.mjs
- var import_i18n132 = __toESM(require_i18n(), 1);
- // packages/block-editor/build-module/utils/format-font-style.mjs
- var import_i18n130 = __toESM(require_i18n(), 1);
- function formatFontStyle(fontStyle) {
- if (!fontStyle) {
- return {};
- }
- if (typeof fontStyle === "object") {
- return fontStyle;
- }
- let name;
- switch (fontStyle) {
- case "normal":
- name = (0, import_i18n130._x)("Regular", "font style");
- break;
- case "italic":
- name = (0, import_i18n130._x)("Italic", "font style");
- break;
- case "oblique":
- name = (0, import_i18n130._x)("Oblique", "font style");
- break;
- default:
- name = fontStyle;
- break;
- }
- return { name, value: fontStyle };
+ // packages/block-editor/build-module/components/inspector-controls/block-support-slot-container.mjs
+ var import_components70 = __toESM(require_components(), 1);
+ var import_element158 = __toESM(require_element(), 1);
+ var import_jsx_runtime283 = __toESM(require_jsx_runtime(), 1);
+ function BlockSupportSlotContainer({
+ Slot: Slot10,
+ fillProps,
+ ...props
+ }) {
+ const toolsPanelContext = (0, import_element158.useContext)(import_components70.__experimentalToolsPanelContext);
+ const computedFillProps = (0, import_element158.useMemo)(
+ () => ({
+ ...fillProps ?? {},
+ forwardedContext: [
+ ...fillProps?.forwardedContext ?? [],
+ [import_components70.__experimentalToolsPanelContext.Provider, { value: toolsPanelContext }]
+ ]
+ }),
+ [toolsPanelContext, fillProps]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(Slot10, { ...props, fillProps: computedFillProps, bubblesVirtually: true });
}
- // packages/block-editor/build-module/utils/format-font-weight.mjs
- var import_i18n131 = __toESM(require_i18n(), 1);
- function formatFontWeight(fontWeight) {
- if (!fontWeight) {
- return {};
+ // packages/block-editor/build-module/components/inspector-controls/slot.mjs
+ var import_jsx_runtime284 = __toESM(require_jsx_runtime(), 1);
+ function InspectorControlsSlot({ __experimentalGroup, group = "default", label, fillProps, ...props }, ref) {
+ if (__experimentalGroup) {
+ (0, import_deprecated12.default)(
+ "`__experimentalGroup` property in `InspectorControlsSlot`",
+ {
+ since: "6.2",
+ version: "6.4",
+ alternative: "`group`"
+ }
+ );
+ group = __experimentalGroup;
}
- if (typeof fontWeight === "object") {
- return fontWeight;
+ const slotFill = groups_default[group];
+ const fills = (0, import_components71.__experimentalUseSlotFills)(slotFill?.name);
+ if (!slotFill) {
+ (0, import_warning6.default)(`Unknown InspectorControls group "${group}" provided.`);
+ return null;
}
- let name;
- switch (fontWeight) {
- case "normal":
- case "400":
- name = (0, import_i18n131._x)("Regular", "font weight");
- break;
- case "bold":
- case "700":
- name = (0, import_i18n131._x)("Bold", "font weight");
- break;
- case "100":
- name = (0, import_i18n131._x)("Thin", "font weight");
- break;
- case "200":
- name = (0, import_i18n131._x)("Extra Light", "font weight");
- break;
- case "300":
- name = (0, import_i18n131._x)("Light", "font weight");
- break;
- case "500":
- name = (0, import_i18n131._x)("Medium", "font weight");
- break;
- case "600":
- name = (0, import_i18n131._x)("Semi Bold", "font weight");
- break;
- case "800":
- name = (0, import_i18n131._x)("Extra Bold", "font weight");
- break;
- case "900":
- name = (0, import_i18n131._x)("Black", "font weight");
- break;
- case "1000":
- name = (0, import_i18n131._x)("Extra Black", "font weight");
- break;
- default:
- name = fontWeight;
- break;
+ if (!fills?.length) {
+ return null;
}
- return { name, value: fontWeight };
+ const { Slot: Slot10 } = slotFill;
+ if (label) {
+ return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(BlockSupportToolsPanel, { group, label, children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
+ BlockSupportSlotContainer,
+ {
+ ...props,
+ fillProps,
+ Slot: Slot10
+ }
+ ) });
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
+ Slot10,
+ {
+ ...props,
+ ref,
+ fillProps,
+ bubblesVirtually: true
+ }
+ );
}
+ var slot_default = (0, import_element159.forwardRef)(InspectorControlsSlot);
- // packages/block-editor/build-module/utils/get-font-styles-and-weights.mjs
- var FONT_STYLES = [
- {
- name: (0, import_i18n132._x)("Regular", "font style"),
- value: "normal"
- },
- {
- name: (0, import_i18n132._x)("Italic", "font style"),
- value: "italic"
+ // packages/block-editor/build-module/components/inspector-controls/index.mjs
+ var import_jsx_runtime285 = __toESM(require_jsx_runtime(), 1);
+ var InspectorControls = InspectorControlsFill;
+ InspectorControls.Slot = slot_default;
+ var InspectorAdvancedControls = (props) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(InspectorControlsFill, { ...props, group: "advanced" });
+ };
+ InspectorAdvancedControls.Slot = function Slot3(props) {
+ return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(slot_default, { ...props, group: "advanced" });
+ };
+ InspectorAdvancedControls.slotName = "InspectorAdvancedControls";
+ var inspector_controls_default = InspectorControls;
+
+ // packages/block-editor/build-module/components/use-block-display-information/index.mjs
+ var import_data85 = __toESM(require_data(), 1);
+ var import_blocks50 = __toESM(require_blocks(), 1);
+ var import_i18n74 = __toESM(require_i18n(), 1);
+ function getPositionTypeLabel(attributes) {
+ const positionType = attributes?.style?.position?.type;
+ if (positionType === "sticky") {
+ return (0, import_i18n74.__)("Sticky");
}
- ];
- var FONT_WEIGHTS = [
- {
- name: (0, import_i18n132._x)("Thin", "font weight"),
- value: "100"
- },
- {
- name: (0, import_i18n132._x)("Extra Light", "font weight"),
- value: "200"
- },
- {
- name: (0, import_i18n132._x)("Light", "font weight"),
- value: "300"
- },
- {
- name: (0, import_i18n132._x)("Regular", "font weight"),
- value: "400"
- },
- {
- name: (0, import_i18n132._x)("Medium", "font weight"),
- value: "500"
- },
- {
- name: (0, import_i18n132._x)("Semi Bold", "font weight"),
- value: "600"
- },
- {
- name: (0, import_i18n132._x)("Bold", "font weight"),
- value: "700"
- },
- {
- name: (0, import_i18n132._x)("Extra Bold", "font weight"),
- value: "800"
- },
- {
- name: (0, import_i18n132._x)("Black", "font weight"),
- value: "900"
- },
- {
- name: (0, import_i18n132._x)("Extra Black", "font weight"),
- value: "1000"
+ if (positionType === "fixed") {
+ return (0, import_i18n74.__)("Fixed");
}
- ];
- function getFontStylesAndWeights(fontFamilyFaces) {
- let fontStyles = [];
- let fontWeights = [];
- const combinedStyleAndWeightOptions = [];
- const isSystemFont = !fontFamilyFaces || fontFamilyFaces?.length === 0;
- let isVariableFont = false;
- fontFamilyFaces?.forEach((face) => {
- if ("string" === typeof face.fontWeight && /\s/.test(face.fontWeight.trim())) {
- isVariableFont = true;
- const [startStr, endStr] = face.fontWeight.split(" ");
- const startValue = parseInt(startStr.slice(0, 1));
- const endValue = endStr === "1000" ? 10 : parseInt(endStr.slice(0, 1));
- for (let i2 = startValue; i2 <= endValue; i2++) {
- const fontWeightValue = `${i2.toString()}00`;
- if (!fontWeights.some(
- (weight) => weight.value === fontWeightValue
- )) {
- fontWeights.push(formatFontWeight(fontWeightValue));
- }
+ return null;
+ }
+ function useBlockDisplayInformation(clientId) {
+ return (0, import_data85.useSelect)(
+ (select3) => {
+ if (!clientId) {
+ return null;
}
- }
- const fontWeight = formatFontWeight(
- "number" === typeof face.fontWeight ? face.fontWeight.toString() : face.fontWeight
- );
- const fontStyle = formatFontStyle(face.fontStyle);
- if (fontStyle && Object.keys(fontStyle).length) {
- if (!fontStyles.some(
- (style) => style.value === fontStyle.value
- )) {
- fontStyles.push(fontStyle);
+ const blockEditorSelect = select3(store);
+ const {
+ getBlockName: getBlockName2,
+ getBlockAttributes: getBlockAttributes3,
+ getBlock: getBlock2,
+ __experimentalGetParsedPattern: __experimentalGetParsedPattern2
+ } = blockEditorSelect;
+ const { getBlockType: getBlockType33, getActiveBlockVariation } = select3(import_blocks50.store);
+ const blockName = getBlockName2(clientId);
+ const blockType = getBlockType33(blockName);
+ if (!blockType) {
+ return null;
}
- }
- if (fontWeight && Object.keys(fontWeight).length) {
- if (!fontWeights.some(
- (weight) => weight.value === fontWeight.value
- )) {
- if (!isVariableFont) {
- fontWeights.push(fontWeight);
- }
+ const attributes = getBlockAttributes3(clientId);
+ const { isSectionBlock: isSectionBlock2 } = unlock(blockEditorSelect);
+ const patternName = attributes?.metadata?.patternName;
+ if (patternName && isSectionBlock2(clientId)) {
+ const pattern = __experimentalGetParsedPattern2(patternName);
+ const positionLabel2 = getPositionTypeLabel(attributes);
+ return {
+ isSynced: false,
+ title: (0, import_i18n74.__)("Pattern"),
+ icon: symbol_default,
+ description: pattern?.description || (0, import_i18n74.__)("A block pattern."),
+ anchor: attributes?.anchor,
+ positionLabel: positionLabel2,
+ positionType: attributes?.style?.position?.type,
+ name: pattern?.title || attributes?.metadata?.name
+ };
}
- }
- });
- if (!fontWeights.some((weight) => (weight.value ?? "") >= "600")) {
- fontWeights.push({
- name: (0, import_i18n132._x)("Bold", "font weight"),
- value: "700"
- });
- }
- if (!fontStyles.some((style) => style.value === "italic")) {
- fontStyles.push({
- name: (0, import_i18n132._x)("Italic", "font style"),
- value: "italic"
- });
- }
- if (isSystemFont) {
- fontStyles = FONT_STYLES;
- fontWeights = FONT_WEIGHTS;
- }
- fontStyles = fontStyles.length === 0 ? FONT_STYLES : fontStyles;
- fontWeights = fontWeights.length === 0 ? FONT_WEIGHTS : fontWeights;
- fontStyles.forEach(({ name: styleName, value: styleValue }) => {
- fontWeights.forEach(({ name: weightName, value: weightValue }) => {
- const optionName = styleValue === "normal" ? weightName : (0, import_i18n132.sprintf)(
- /* translators: 1: Font weight name. 2: Font style name. */
- (0, import_i18n132._x)("%1$s %2$s", "font"),
- weightName ?? "",
- styleName ?? ""
+ const match2 = getActiveBlockVariation(
+ blockName,
+ attributes,
+ void 0,
+ getBlock2?.(clientId)?.innerContent
);
- combinedStyleAndWeightOptions.push({
- key: `${styleValue}-${weightValue}`,
- name: optionName ?? "",
- style: {
- fontStyle: styleValue,
- fontWeight: weightValue
- }
- });
- });
- });
- return {
- fontStyles,
- fontWeights,
- combinedStyleAndWeightOptions,
- isSystemFont,
- isVariableFont
- };
+ const isSynced = (0, import_blocks50.isReusableBlock)(blockType) || (0, import_blocks50.isTemplatePart)(blockType);
+ const syncedTitle = isSynced ? (0, import_blocks50.__experimentalGetBlockLabel)(blockType, attributes) : void 0;
+ const title = syncedTitle || blockType.title;
+ const positionLabel = getPositionTypeLabel(attributes);
+ const blockTypeInfo = {
+ isSynced,
+ title,
+ icon: blockType.icon,
+ description: blockType.description,
+ anchor: attributes?.anchor,
+ positionLabel,
+ positionType: attributes?.style?.position?.type,
+ name: attributes?.metadata?.name
+ };
+ if (!match2) {
+ return blockTypeInfo;
+ }
+ return {
+ isSynced,
+ title: match2.title || blockType.title,
+ icon: match2.icon || blockType.icon,
+ description: match2.description || blockType.description,
+ anchor: attributes?.anchor,
+ positionLabel,
+ positionType: attributes?.style?.position?.type,
+ name: attributes?.metadata?.name
+ };
+ },
+ [clientId]
+ );
}
- // packages/block-editor/build-module/components/font-appearance-control/index.mjs
- var import_jsx_runtime353 = __toESM(require_jsx_runtime(), 1);
- var getFontAppearanceLabel = (hasFontStyles, hasFontWeights) => {
- if (!hasFontStyles) {
- return (0, import_i18n133.__)("Font weight");
- }
- if (!hasFontWeights) {
- return (0, import_i18n133.__)("Font style");
- }
- return (0, import_i18n133.__)("Appearance");
+ // packages/block-editor/build-module/hooks/position.mjs
+ var import_jsx_runtime286 = __toESM(require_jsx_runtime(), 1);
+ var POSITION_SUPPORT_KEY = "position";
+ var DEFAULT_OPTION = {
+ key: "default",
+ value: "",
+ label: (0, import_i18n75.__)("Default")
};
- function FontAppearanceControl(props) {
- const {
- /**
- * Start opting into the larger default height that will become the default size in a future version.
- *
- * @deprecated Default behavior since WordPress 7.1. Prop can be safely removed.
- */
- __next40pxDefaultSize: _next40pxDefaultSize,
- onChange,
- hasFontStyles = true,
- hasFontWeights = true,
- fontFamilyFaces,
- value: { fontStyle, fontWeight },
- ...otherProps
- } = props;
- const hasStylesOrWeights = hasFontStyles || hasFontWeights;
- const label = getFontAppearanceLabel(hasFontStyles, hasFontWeights);
- const defaultOption = {
- key: "default",
- name: (0, import_i18n133.__)("Default"),
- style: { fontStyle: void 0, fontWeight: void 0 }
- };
- const { fontStyles, fontWeights, combinedStyleAndWeightOptions } = getFontStylesAndWeights(fontFamilyFaces);
- const combineOptions = () => {
- const combinedOptions = [defaultOption];
- if (combinedStyleAndWeightOptions) {
- combinedOptions.push(...combinedStyleAndWeightOptions);
- }
- return combinedOptions;
- };
- const styleOptions = () => {
- const combinedOptions = [defaultOption];
- fontStyles.forEach(({ name, value }) => {
- combinedOptions.push({
- key: value,
- name,
- style: { fontStyle: value, fontWeight: void 0 }
- });
- });
- return combinedOptions;
- };
- const weightOptions = () => {
- const combinedOptions = [defaultOption];
- fontWeights.forEach(({ name, value }) => {
- combinedOptions.push({
- key: value,
- name,
- style: { fontStyle: void 0, fontWeight: value }
- });
- });
- return combinedOptions;
- };
- const selectOptions = (0, import_element206.useMemo)(() => {
- if (hasFontStyles && hasFontWeights) {
- return combineOptions();
- }
- return hasFontStyles ? styleOptions() : weightOptions();
- }, [
- props.options,
- fontStyles,
- fontWeights,
- combinedStyleAndWeightOptions
- ]);
- const currentSelection = selectOptions.find(
- (option) => option.style.fontStyle === fontStyle && option.style.fontWeight === fontWeight
- ) || selectOptions[0];
- const getDescribedBy = () => {
- if (!currentSelection) {
- return (0, import_i18n133.__)("No selected font appearance");
+ var STICKY_OPTION = {
+ key: "sticky",
+ value: "sticky",
+ label: (0, import_i18n75._x)("Sticky", "Name for the value of the CSS position property"),
+ hint: (0, import_i18n75.__)(
+ "The block will stick to the top of the window instead of scrolling."
+ )
+ };
+ var FIXED_OPTION = {
+ key: "fixed",
+ value: "fixed",
+ label: (0, import_i18n75._x)("Fixed", "Name for the value of the CSS position property"),
+ hint: (0, import_i18n75.__)("The block will not move when the page is scrolled.")
+ };
+ var POSITION_SIDES = ["top", "right", "bottom", "left"];
+ var VALID_POSITION_TYPES = ["sticky", "fixed"];
+ function getPositionCSS({ selector: selector3, style }) {
+ let output = "";
+ const { type: positionType } = style?.position || {};
+ if (!VALID_POSITION_TYPES.includes(positionType)) {
+ return output;
+ }
+ output += `${selector3} {`;
+ output += `position: ${positionType};`;
+ POSITION_SIDES.forEach((side) => {
+ if (style?.position?.[side] !== void 0) {
+ output += `${side}: ${style.position[side]};`;
}
- if (!hasFontStyles) {
- return (0, import_i18n133.sprintf)(
- // translators: %s: Currently selected font weight.
- (0, import_i18n133.__)("Currently selected font weight: %s"),
- currentSelection.name
- );
+ });
+ if (positionType === "sticky" || positionType === "fixed") {
+ output += `z-index: 10`;
+ }
+ output += `}`;
+ return output;
+ }
+ function hasStickyPositionSupport(blockType) {
+ const support = (0, import_blocks51.getBlockSupport)(blockType, POSITION_SUPPORT_KEY);
+ return !!(true === support || support?.sticky);
+ }
+ function hasFixedPositionSupport(blockType) {
+ const support = (0, import_blocks51.getBlockSupport)(blockType, POSITION_SUPPORT_KEY);
+ return !!(true === support || support?.fixed);
+ }
+ function hasPositionSupport(blockType) {
+ const support = (0, import_blocks51.getBlockSupport)(blockType, POSITION_SUPPORT_KEY);
+ return !!support;
+ }
+ function hasStickyOrFixedPositionValue(attributes) {
+ const positionType = attributes?.style?.position?.type;
+ return positionType === "sticky" || positionType === "fixed";
+ }
+ function useIsPositionDisabled({ name: blockName } = {}) {
+ const [allowFixed, allowSticky] = useSettings(
+ "position.fixed",
+ "position.sticky"
+ );
+ const isDisabled = !allowFixed && !allowSticky;
+ return !hasPositionSupport(blockName) || isDisabled;
+ }
+ function PositionPanelPure({
+ style = {},
+ clientId,
+ name: blockName,
+ setAttributes
+ }) {
+ const allowFixed = hasFixedPositionSupport(blockName);
+ const allowSticky = hasStickyPositionSupport(blockName);
+ const value = style?.position?.type;
+ const { firstParentClientId } = (0, import_data86.useSelect)(
+ (select3) => {
+ const { getBlockParents: getBlockParents2 } = select3(store);
+ const parents = getBlockParents2(clientId);
+ return { firstParentClientId: parents[parents.length - 1] };
+ },
+ [clientId]
+ );
+ const blockInformation = useBlockDisplayInformation(firstParentClientId);
+ const stickyHelpText = allowSticky && value === STICKY_OPTION.value && blockInformation ? (0, import_i18n75.sprintf)(
+ /* translators: %s: the name of the parent block. */
+ (0, import_i18n75.__)(
+ "The block will stick to the scrollable area of the parent %s block."
+ ),
+ blockInformation.title
+ ) : null;
+ const options = (0, import_element160.useMemo)(() => {
+ const availableOptions = [DEFAULT_OPTION];
+ if (allowSticky || value === STICKY_OPTION.value) {
+ availableOptions.push(STICKY_OPTION);
}
- if (!hasFontWeights) {
- return (0, import_i18n133.sprintf)(
- // translators: %s: Currently selected font style.
- (0, import_i18n133.__)("Currently selected font style: %s"),
- currentSelection.name
- );
+ if (allowFixed || value === FIXED_OPTION.value) {
+ availableOptions.push(FIXED_OPTION);
}
- return (0, import_i18n133.sprintf)(
- // translators: %s: Currently selected font appearance.
- (0, import_i18n133.__)("Currently selected font appearance: %s"),
- currentSelection.name
- );
+ return availableOptions;
+ }, [allowFixed, allowSticky, value]);
+ const onChangeType = (next) => {
+ const placementValue = "0px";
+ const newStyle = {
+ ...style,
+ position: {
+ ...style?.position,
+ type: next,
+ top: next === "sticky" || next === "fixed" ? placementValue : void 0
+ }
+ };
+ setAttributes({
+ style: cleanEmptyObject(newStyle)
+ });
};
- return hasStylesOrWeights && /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(
- import_components143.CustomSelectControl,
+ const selectedOption = value ? options.find((option) => option.value === value) || DEFAULT_OPTION : DEFAULT_OPTION;
+ const hintIdPrefix = (0, import_element160.useId)();
+ return options.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(inspector_controls_default, { group: "position", children: /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
+ SelectControl3,
{
- ...otherProps,
- className: "components-font-appearance-control",
- label,
- describedBy: getDescribedBy(),
- options: selectOptions,
- value: currentSelection,
- onChange: ({ selectedItem }) => onChange(selectedItem.style)
+ label: (0, import_i18n75.__)("Position"),
+ hideLabelFromVision: true,
+ description: stickyHelpText,
+ items: options,
+ value: selectedOption,
+ onValueChange: (selectedItem) => {
+ onChangeType(selectedItem.value);
+ },
+ children: options.map((option) => {
+ const hintId = option.hint ? `${hintIdPrefix}-${option.key}` : void 0;
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsxs)(
+ SelectControl3.Item,
+ {
+ value: option,
+ label: option.label,
+ className: "block-editor-hooks__position-control-item",
+ "aria-describedby": hintId,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime286.jsx)("div", { children: option.label }),
+ option.hint && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
+ "div",
+ {
+ id: hintId,
+ className: "block-editor-hooks__position-control-item-hint",
+ "aria-hidden": "true",
+ children: option.hint
+ }
+ )
+ ]
+ },
+ option.key
+ );
+ })
+ }
+ ) }) : null;
+ }
+ var position_default = {
+ edit: function Edit2(props) {
+ const isPositionDisabled = useIsPositionDisabled(props);
+ if (isPositionDisabled) {
+ return null;
}
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(PositionPanelPure, { ...props });
+ },
+ useBlockProps: useBlockProps2,
+ attributeKeys: ["style"],
+ hasSupport(name) {
+ return (0, import_blocks51.hasBlockSupport)(name, POSITION_SUPPORT_KEY);
+ }
+ };
+ var POSITION_BLOCK_PROPS_REFERENCE = {};
+ function useBlockProps2({ name, style }) {
+ const hasPositionBlockSupport = (0, import_blocks51.hasBlockSupport)(
+ name,
+ POSITION_SUPPORT_KEY
);
+ const isPositionDisabled = useIsPositionDisabled({ name });
+ const allowPositionStyles = hasPositionBlockSupport && !isPositionDisabled;
+ const id = (0, import_compose62.useInstanceId)(POSITION_BLOCK_PROPS_REFERENCE);
+ const positionSelector = `.wp-container-${id}.wp-container-${id}`;
+ let css;
+ if (allowPositionStyles) {
+ css = getPositionCSS({
+ selector: positionSelector,
+ style
+ }) || "";
+ }
+ const className2 = clsx_default({
+ [`wp-container-${id}`]: allowPositionStyles && !!css,
+ // Only attach a container class if there is generated CSS to be attached.
+ [`is-position-${style?.position?.type}`]: allowPositionStyles && !!css && !!style?.position?.type
+ });
+ useStyleOverride({ css });
+ return { className: className2 };
}
- // packages/block-editor/build-module/components/font-family/index.mjs
- var import_components144 = __toESM(require_components(), 1);
- var import_i18n134 = __toESM(require_i18n(), 1);
- var import_jsx_runtime354 = __toESM(require_jsx_runtime(), 1);
- function FontFamilyControl({
- /**
- * Start opting into the larger default height that will become the default size in a future version.
- *
- * @deprecated Default behavior since WordPress 7.1. Prop can be safely removed.
- */
- __next40pxDefaultSize: _next40pxDefaultSize,
- value = "",
- onChange,
- fontFamilies,
- className,
- ...props
- }) {
- const [blockLevelFontFamilies] = useSettings("typography.fontFamilies");
- if (!fontFamilies) {
- fontFamilies = blockLevelFontFamilies;
+ // packages/block-editor/build-module/components/block-tools/use-block-toolbar-popover-props.mjs
+ var COMMON_PROPS2 = {
+ placement: "top-start"
+ };
+ var DEFAULT_PROPS2 = {
+ ...COMMON_PROPS2,
+ flip: false,
+ shift: true
+ };
+ var RESTRICTED_HEIGHT_PROPS = {
+ ...COMMON_PROPS2,
+ flip: true,
+ shift: false
+ };
+ function getProps(contentElement, selectedBlockElement, scrollContainer, toolbarHeight, isSticky) {
+ if (!contentElement || !selectedBlockElement) {
+ return DEFAULT_PROPS2;
}
- if (!fontFamilies || fontFamilies.length === 0) {
- return null;
+ const scrollTop = scrollContainer?.scrollTop || 0;
+ const blockRect = getElementBounds(selectedBlockElement);
+ const contentRect = contentElement.getBoundingClientRect();
+ const topOfContentElementInViewport = scrollTop + contentRect.top;
+ const viewportHeight = contentElement.ownerDocument.documentElement.clientHeight;
+ const restrictedTopArea = topOfContentElementInViewport + toolbarHeight;
+ const hasSpaceForToolbarAbove = blockRect.top > restrictedTopArea;
+ const isBlockTallerThanViewport = blockRect.height > viewportHeight - toolbarHeight;
+ if (!isSticky && (hasSpaceForToolbarAbove || isBlockTallerThanViewport)) {
+ return DEFAULT_PROPS2;
}
- const options = [
- {
- key: "",
- name: (0, import_i18n134.__)("Default")
+ return RESTRICTED_HEIGHT_PROPS;
+ }
+ function useBlockToolbarPopoverProps({
+ contentElement,
+ clientId
+ }) {
+ const selectedBlockElement = useBlockElement(clientId);
+ const [toolbarHeight, setToolbarHeight] = (0, import_element161.useState)(0);
+ const { blockIndex, isSticky } = (0, import_data87.useSelect)(
+ (select3) => {
+ const { getBlockIndex: getBlockIndex2, getBlockAttributes: getBlockAttributes3 } = select3(store);
+ return {
+ blockIndex: getBlockIndex2(clientId),
+ isSticky: hasStickyOrFixedPositionValue(
+ getBlockAttributes3(clientId)
+ )
+ };
},
- ...fontFamilies.map(({ fontFamily, name }) => ({
- key: fontFamily,
- name: name || fontFamily,
- style: { fontFamily }
- }))
- ];
- const selectedValue = options.find((option) => option.key === value) ?? "";
- return /* @__PURE__ */ (0, import_jsx_runtime354.jsx)(
- import_components144.CustomSelectControl,
- {
- label: (0, import_i18n134.__)("Font"),
- value: selectedValue,
- onChange: ({ selectedItem }) => onChange(selectedItem.key),
- options,
- className: clsx_default("block-editor-font-family-control", className),
- ...props
+ [clientId]
+ );
+ const scrollContainer = (0, import_element161.useMemo)(() => {
+ if (!contentElement) {
+ return;
}
+ return (0, import_dom57.getScrollContainer)(contentElement);
+ }, [contentElement]);
+ const [props, setProps] = (0, import_element161.useState)(
+ () => getProps(
+ contentElement,
+ selectedBlockElement,
+ scrollContainer,
+ toolbarHeight,
+ isSticky
+ )
+ );
+ const popoverRef = (0, import_compose63.useRefEffect)((popoverNode) => {
+ setToolbarHeight(popoverNode.offsetHeight);
+ }, []);
+ const updateProps = (0, import_element161.useCallback)(
+ () => setProps(
+ getProps(
+ contentElement,
+ selectedBlockElement,
+ scrollContainer,
+ toolbarHeight,
+ isSticky
+ )
+ ),
+ [
+ contentElement,
+ selectedBlockElement,
+ scrollContainer,
+ toolbarHeight,
+ isSticky
+ ]
);
+ (0, import_element161.useLayoutEffect)(updateProps, [blockIndex, updateProps]);
+ (0, import_element161.useLayoutEffect)(() => {
+ if (!contentElement || !selectedBlockElement) {
+ return;
+ }
+ const contentView = contentElement?.ownerDocument?.defaultView;
+ contentView?.addEventListener?.("resize", updateProps);
+ let resizeObserver;
+ const blockView = selectedBlockElement?.ownerDocument?.defaultView;
+ if (blockView?.ResizeObserver) {
+ resizeObserver = new blockView.ResizeObserver(updateProps);
+ resizeObserver.observe(selectedBlockElement);
+ }
+ return () => {
+ contentView?.removeEventListener?.("resize", updateProps);
+ if (resizeObserver) {
+ resizeObserver.disconnect();
+ }
+ };
+ }, [updateProps, contentElement, selectedBlockElement]);
+ return {
+ ...props,
+ ref: popoverRef
+ };
}
- // packages/block-editor/build-module/components/letter-spacing-control/index.mjs
- var import_components145 = __toESM(require_components(), 1);
- var import_i18n135 = __toESM(require_i18n(), 1);
- var import_jsx_runtime355 = __toESM(require_jsx_runtime(), 1);
- function LetterSpacingControl({
- value,
- onChange,
- __unstableInputWidth = "60px",
- ...otherProps
- }) {
- const [availableUnits] = useSettings("spacing.units");
- const units2 = (0, import_components145.__experimentalUseCustomUnits)({
- availableUnits: availableUnits || ["px", "em", "rem"],
- defaultValues: { px: 2, em: 0.2, rem: 0.2 }
- });
- return /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
- import_components145.__experimentalUnitControl,
- {
- ...otherProps,
- label: (0, import_i18n135.__)("Letter spacing"),
- value,
- __unstableInputWidth,
- units: units2,
- onChange
- }
+ // packages/block-editor/build-module/components/block-tools/use-selected-block-tool-props.mjs
+ var import_data88 = __toESM(require_data(), 1);
+ function useSelectedBlockToolProps(clientId) {
+ const selectedBlockProps = (0, import_data88.useSelect)(
+ (select3) => {
+ const {
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockParents: getBlockParents2,
+ __experimentalGetBlockListSettingsForBlocks: __experimentalGetBlockListSettingsForBlocks2,
+ isBlockInsertionPointVisible: isBlockInsertionPointVisible2,
+ getBlockInsertionPoint: getBlockInsertionPoint2,
+ getBlockOrder: getBlockOrder2,
+ hasMultiSelection: hasMultiSelection2,
+ getLastMultiSelectedBlockClientId: getLastMultiSelectedBlockClientId2
+ } = select3(store);
+ const blockParentsClientIds = getBlockParents2(clientId);
+ const parentBlockListSettings = __experimentalGetBlockListSettingsForBlocks2(
+ blockParentsClientIds
+ );
+ const capturingClientId = blockParentsClientIds.find(
+ (parentClientId) => parentBlockListSettings[parentClientId]?.__experimentalCaptureToolbars
+ );
+ let isInsertionPointVisible = false;
+ if (isBlockInsertionPointVisible2()) {
+ const insertionPoint2 = getBlockInsertionPoint2();
+ const order = getBlockOrder2(insertionPoint2.rootClientId);
+ isInsertionPointVisible = order[insertionPoint2.index] === clientId;
+ }
+ return {
+ capturingClientId,
+ isInsertionPointVisible,
+ lastClientId: hasMultiSelection2() ? getLastMultiSelectedBlockClientId2() : null,
+ rootClientId: getBlockRootClientId2(clientId)
+ };
+ },
+ [clientId]
);
+ return selectedBlockProps;
}
- // packages/block-editor/build-module/components/text-decoration-control/index.mjs
- var import_i18n136 = __toESM(require_i18n(), 1);
- var import_components146 = __toESM(require_components(), 1);
- var import_jsx_runtime356 = __toESM(require_jsx_runtime(), 1);
- var TEXT_DECORATIONS = [
- {
- label: (0, import_i18n136.__)("None"),
- value: "none",
- icon: reset_default
- },
- {
- label: (0, import_i18n136.__)("Underline"),
- value: "underline",
- icon: format_underline_default
- },
- {
- label: (0, import_i18n136.__)("Strikethrough"),
- value: "line-through",
- icon: format_strikethrough_default
- }
- ];
- function TextDecorationControl({
- value,
- onChange,
- className
+ // packages/block-editor/build-module/components/block-tools/empty-block-inserter.mjs
+ var import_jsx_runtime287 = __toESM(require_jsx_runtime(), 1);
+ function EmptyBlockInserter({
+ clientId,
+ __unstableContentRef
}) {
- return /* @__PURE__ */ (0, import_jsx_runtime356.jsx)(
- import_components146.__experimentalToggleGroupControl,
+ const { isInsertionPointVisible, lastClientId, rootClientId } = useSelectedBlockToolProps(clientId);
+ const popoverProps3 = useBlockToolbarPopoverProps({
+ contentElement: __unstableContentRef?.current,
+ clientId
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
+ cover_default,
{
- isDeselectable: true,
- label: (0, import_i18n136.__)("Decoration"),
+ clientId,
+ bottomClientId: lastClientId,
className: clsx_default(
- "block-editor-text-decoration-control",
- className
+ "block-editor-block-list__block-side-inserter-popover",
+ {
+ "is-insertion-point-visible": isInsertionPointVisible
+ }
),
- value,
- onChange: (newValue) => {
- onChange(newValue === value ? void 0 : newValue);
- },
- children: TEXT_DECORATIONS.map((option) => {
- return /* @__PURE__ */ (0, import_jsx_runtime356.jsx)(
- import_components146.__experimentalToggleGroupControlOptionIcon,
- {
- value: option.value,
- icon: option.icon,
- label: option.label
- },
- option.value
- );
- })
+ __unstableContentRef,
+ ...popoverProps3,
+ children: /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("div", { className: "block-editor-block-list__empty-block-inserter", children: /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
+ inserter_default,
+ {
+ position: "bottom right",
+ rootClientId,
+ clientId,
+ __experimentalIsQuick: true
+ }
+ ) })
}
);
}
- // packages/block-editor/build-module/components/text-transform-control/index.mjs
- var import_i18n137 = __toESM(require_i18n(), 1);
- var import_components147 = __toESM(require_components(), 1);
- var import_jsx_runtime357 = __toESM(require_jsx_runtime(), 1);
- var TEXT_TRANSFORMS = [
- {
- label: (0, import_i18n137.__)("None"),
- value: "none",
- icon: reset_default
- },
- {
- label: (0, import_i18n137.__)("Uppercase"),
- value: "uppercase",
- icon: format_uppercase_default
- },
- {
- label: (0, import_i18n137.__)("Lowercase"),
- value: "lowercase",
- icon: format_lowercase_default
- },
- {
- label: (0, import_i18n137.__)("Capitalize"),
- value: "capitalize",
- icon: format_capitalize_default
- }
- ];
- function TextTransformControl({ className, value, onChange }) {
- return /* @__PURE__ */ (0, import_jsx_runtime357.jsx)(
- import_components147.__experimentalToggleGroupControl,
- {
- isDeselectable: true,
- label: (0, import_i18n137.__)("Letter case"),
- className: clsx_default(
- "block-editor-text-transform-control",
- className
- ),
- value,
- onChange: (newValue) => {
- onChange(newValue === value ? void 0 : newValue);
- },
- children: TEXT_TRANSFORMS.map((option) => {
- return /* @__PURE__ */ (0, import_jsx_runtime357.jsx)(
- import_components147.__experimentalToggleGroupControlOptionIcon,
- {
- value: option.value,
- icon: option.icon,
- label: option.label
- },
- option.value
- );
- })
- }
- );
- }
+ // packages/block-editor/build-module/components/block-tools/block-toolbar-popover.mjs
+ var import_data121 = __toESM(require_data(), 1);
+ var import_element186 = __toESM(require_element(), 1);
+ var import_keyboard_shortcuts9 = __toESM(require_keyboard_shortcuts(), 1);
- // packages/block-editor/build-module/components/writing-mode-control/index.mjs
- var import_i18n138 = __toESM(require_i18n(), 1);
- var import_components148 = __toESM(require_components(), 1);
- var import_jsx_runtime358 = __toESM(require_jsx_runtime(), 1);
- var WRITING_MODES = [
- {
- label: (0, import_i18n138.__)("Horizontal"),
- value: "horizontal-tb",
- icon: text_horizontal_default
- },
- {
- label: (0, import_i18n138.__)("Vertical"),
- value: (0, import_i18n138.isRTL)() ? "vertical-lr" : "vertical-rl",
- icon: text_vertical_default
- }
- ];
- function WritingModeControl({ className, value, onChange }) {
- return /* @__PURE__ */ (0, import_jsx_runtime358.jsx)(
- import_components148.__experimentalToggleGroupControl,
- {
- isDeselectable: true,
- label: (0, import_i18n138.__)("Orientation"),
- className: clsx_default("block-editor-writing-mode-control", className),
- value,
- onChange: (newValue) => {
- onChange(newValue === value ? void 0 : newValue);
- },
- children: WRITING_MODES.map((option) => {
- return /* @__PURE__ */ (0, import_jsx_runtime358.jsx)(
- import_components148.__experimentalToggleGroupControlOptionIcon,
- {
- value: option.value,
- icon: option.icon,
- label: option.label
- },
- option.value
- );
- })
- }
- );
- }
+ // packages/block-editor/build-module/components/block-toolbar/index.mjs
+ var import_i18n104 = __toESM(require_i18n(), 1);
+ var import_data120 = __toESM(require_data(), 1);
+ var import_element185 = __toESM(require_element(), 1);
+ var import_compose70 = __toESM(require_compose(), 1);
+ var import_blocks76 = __toESM(require_blocks(), 1);
+ var import_components111 = __toESM(require_components(), 1);
- // packages/block-editor/build-module/components/colors-gradients/dropdown.mjs
- var import_components149 = __toESM(require_components(), 1);
- var import_element207 = __toESM(require_element(), 1);
- var import_i18n139 = __toESM(require_i18n(), 1);
- var import_jsx_runtime359 = __toESM(require_jsx_runtime(), 1);
- var WithToolsPanelItem = ({ setting, children, panelId, ...props }) => {
- const clearValue = () => {
- if (setting.colorValue) {
- setting.onColorChange();
- } else if (setting.gradientValue) {
- setting.onGradientChange();
- }
- };
- return /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
- import_components149.__experimentalToolsPanelItem,
- {
- hasValue: () => {
- return !!setting.colorValue || !!setting.gradientValue;
- },
- label: setting.label,
- onDeselect: clearValue,
- isShownByDefault: setting.isShownByDefault !== void 0 ? setting.isShownByDefault : true,
- ...props,
- className: clsx_default(
- "block-editor-color-gradient-item",
- "block-editor-tools-panel-color-gradient-settings__item"
- ),
- panelId,
- resetAllFilter: setting.resetAllFilter,
- children
- }
+ // packages/block-editor/build-module/components/block-mover/index.mjs
+ var import_components74 = __toESM(require_components(), 1);
+ var import_data91 = __toESM(require_data(), 1);
+ var import_i18n78 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/block-draggable/index.mjs
+ var import_blocks52 = __toESM(require_blocks(), 1);
+ var import_components72 = __toESM(require_components(), 1);
+ var import_data89 = __toESM(require_data(), 1);
+ var import_element163 = __toESM(require_element(), 1);
+ var import_compose64 = __toESM(require_compose(), 1);
+
+ // packages/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.mjs
+ var import_dom59 = __toESM(require_dom(), 1);
+ var import_element162 = __toESM(require_element(), 1);
+ var SCROLL_INACTIVE_DISTANCE_PX = 50;
+ var SCROLL_INTERVAL_MS = 25;
+ var PIXELS_PER_SECOND_PER_PERCENTAGE = 1e3;
+ var VELOCITY_MULTIPLIER = PIXELS_PER_SECOND_PER_PERCENTAGE * (SCROLL_INTERVAL_MS / 1e3);
+ function useScrollWhenDragging() {
+ const dragStartYRef = (0, import_element162.useRef)(null);
+ const velocityYRef = (0, import_element162.useRef)(null);
+ const scrollParentYRef = (0, import_element162.useRef)(null);
+ const scrollEditorIntervalRef = (0, import_element162.useRef)(null);
+ (0, import_element162.useEffect)(
+ () => () => {
+ if (scrollEditorIntervalRef.current) {
+ clearInterval(scrollEditorIntervalRef.current);
+ scrollEditorIntervalRef.current = null;
+ }
+ },
+ []
);
- };
- var LabeledColorIndicator = ({ colorValue, label }) => /* @__PURE__ */ (0, import_jsx_runtime359.jsxs)(import_components149.__experimentalHStack, { justify: "flex-start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
- import_components149.ColorIndicator,
- {
- className: "block-editor-panel-color-gradient-settings__color-indicator",
- colorValue
+ const startScrolling = (0, import_element162.useCallback)((event) => {
+ dragStartYRef.current = event.clientY;
+ scrollParentYRef.current = (0, import_dom59.getScrollContainer)(event.target);
+ scrollEditorIntervalRef.current = setInterval(() => {
+ if (scrollParentYRef.current && velocityYRef.current) {
+ const newTop = scrollParentYRef.current.scrollTop + velocityYRef.current;
+ scrollParentYRef.current.scroll({
+ top: newTop
+ });
+ }
+ }, SCROLL_INTERVAL_MS);
+ }, []);
+ const scrollOnDragOver = (0, import_element162.useCallback)((event) => {
+ if (!scrollParentYRef.current) {
+ return;
}
- ),
- /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
- import_components149.FlexItem,
- {
- className: "block-editor-panel-color-gradient-settings__color-name",
- title: label,
- children: label
+ const scrollParentHeight = scrollParentYRef.current.offsetHeight;
+ const offsetDragStartPosition = dragStartYRef.current - scrollParentYRef.current.offsetTop;
+ const offsetDragPosition = event.clientY - scrollParentYRef.current.offsetTop;
+ if (event.clientY > offsetDragStartPosition) {
+ const moveableDistance = Math.max(
+ scrollParentHeight - offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX,
+ 0
+ );
+ const dragDistance = Math.max(
+ offsetDragPosition - offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX,
+ 0
+ );
+ const distancePercentage = moveableDistance === 0 || dragDistance === 0 ? 0 : dragDistance / moveableDistance;
+ velocityYRef.current = VELOCITY_MULTIPLIER * distancePercentage;
+ } else if (event.clientY < offsetDragStartPosition) {
+ const moveableDistance = Math.max(
+ offsetDragStartPosition - SCROLL_INACTIVE_DISTANCE_PX,
+ 0
+ );
+ const dragDistance = Math.max(
+ offsetDragStartPosition - offsetDragPosition - SCROLL_INACTIVE_DISTANCE_PX,
+ 0
+ );
+ const distancePercentage = moveableDistance === 0 || dragDistance === 0 ? 0 : dragDistance / moveableDistance;
+ velocityYRef.current = -VELOCITY_MULTIPLIER * distancePercentage;
+ } else {
+ velocityYRef.current = 0;
}
- )
- ] });
- var renderToggle = (settings2) => function Toggle2({ onToggle, isOpen }) {
- const {
- clearable,
- colorValue,
- gradientValue,
- onColorChange,
- onGradientChange,
- label
- } = settings2;
- const colorButtonRef = (0, import_element207.useRef)(void 0);
- const toggleProps = {
- onClick: onToggle,
- className: clsx_default(
- "block-editor-panel-color-gradient-settings__dropdown",
- { "is-open": isOpen }
- ),
- "aria-expanded": isOpen,
- ref: colorButtonRef
- };
- const clearValue = () => {
- if (colorValue) {
- onColorChange();
- } else if (gradientValue) {
- onGradientChange();
+ }, []);
+ const stopScrolling = () => {
+ dragStartYRef.current = null;
+ scrollParentYRef.current = null;
+ if (scrollEditorIntervalRef.current) {
+ clearInterval(scrollEditorIntervalRef.current);
+ scrollEditorIntervalRef.current = null;
}
};
- const value = colorValue ?? gradientValue;
- return /* @__PURE__ */ (0, import_jsx_runtime359.jsxs)(import_jsx_runtime359.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(import_components149.Button, { __next40pxDefaultSize: true, ...toggleProps, children: /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
- LabeledColorIndicator,
- {
- colorValue: value,
- label
- }
- ) }),
- clearable && value && /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
- import_components149.Button,
- {
- __next40pxDefaultSize: true,
- label: (0, import_i18n139.__)("Reset"),
- className: "block-editor-panel-color-gradient-settings__reset",
- size: "small",
- icon: reset_default,
- onClick: () => {
- clearValue();
- if (isOpen) {
- onToggle();
- }
- colorButtonRef.current?.focus();
- }
+ return [startScrolling, scrollOnDragOver, stopScrolling];
+ }
+
+ // packages/block-editor/build-module/components/block-draggable/index.mjs
+ var import_jsx_runtime288 = __toESM(require_jsx_runtime(), 1);
+ var BlockDraggable = ({
+ appendToOwnerDocument,
+ children,
+ clientIds,
+ cloneClassname,
+ elementId,
+ onDragStart,
+ onDragEnd,
+ fadeWhenDisabled = false,
+ dragComponent
+ }) => {
+ const {
+ srcRootClientId,
+ isDraggable,
+ icon,
+ visibleInserter,
+ getBlockType: getBlockType33
+ } = (0, import_data89.useSelect)(
+ (select3) => {
+ const {
+ canMoveBlocks: canMoveBlocks2,
+ getBlockRootClientId: getBlockRootClientId22,
+ getBlockName: getBlockName2,
+ getBlockAttributes: getBlockAttributes3,
+ isBlockInsertionPointVisible: isBlockInsertionPointVisible2
+ } = select3(store);
+ const { getBlockType: _getBlockType, getActiveBlockVariation } = select3(import_blocks52.store);
+ const rootClientId = getBlockRootClientId22(clientIds[0]);
+ const blockName = getBlockName2(clientIds[0]);
+ const variation = getActiveBlockVariation(
+ blockName,
+ getBlockAttributes3(clientIds[0])
+ );
+ return {
+ srcRootClientId: rootClientId,
+ isDraggable: canMoveBlocks2(clientIds),
+ icon: variation?.icon || _getBlockType(blockName)?.icon,
+ visibleInserter: isBlockInsertionPointVisible2(),
+ getBlockType: _getBlockType
+ };
+ },
+ [clientIds]
+ );
+ const isDraggingRef = (0, import_element163.useRef)(false);
+ const [startScrolling, scrollOnDragOver, stopScrolling] = useScrollWhenDragging();
+ const { getAllowedBlocks: getAllowedBlocks2, getBlockNamesByClientId: getBlockNamesByClientId2, getBlockRootClientId: getBlockRootClientId2 } = (0, import_data89.useSelect)(store);
+ const { startDraggingBlocks: startDraggingBlocks2, stopDraggingBlocks: stopDraggingBlocks2 } = (0, import_data89.useDispatch)(store);
+ (0, import_element163.useEffect)(() => {
+ return () => {
+ if (isDraggingRef.current) {
+ stopDraggingBlocks2();
}
- )
- ] });
- };
- function ColorGradientSettingsDropdown({
- colors: colors2,
- disableCustomColors,
- disableCustomGradients,
- enableAlpha,
- gradients,
- settings: settings2,
- __experimentalIsRenderedInSidebar,
- ...props
- }) {
- let popoverProps3;
- if (__experimentalIsRenderedInSidebar) {
- popoverProps3 = {
- placement: "left-start",
- offset: 36,
- shift: true
};
- }
- return /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(import_jsx_runtime359.Fragment, { children: settings2.map((setting, index2) => {
- const controlProps = {
- clearable: false,
- colorValue: setting.colorValue,
- colors: colors2,
- disableCustomColors,
- disableCustomGradients,
- enableAlpha,
- gradientValue: setting.gradientValue,
- gradients,
- label: setting.label,
- onColorChange: setting.onColorChange,
- onGradientChange: setting.onGradientChange,
- showTitle: false,
- __experimentalIsRenderedInSidebar,
- ...setting
+ }, []);
+ const blockEl = useBlockElement(clientIds[0]);
+ const editorRoot = blockEl?.closest("body");
+ (0, import_element163.useEffect)(() => {
+ if (!editorRoot || !fadeWhenDisabled) {
+ return;
+ }
+ const onDragOver = (event) => {
+ if (!event.target.closest("[data-block]")) {
+ return;
+ }
+ const draggedBlockNames = getBlockNamesByClientId2(clientIds);
+ const targetClientId = event.target.closest("[data-block]").getAttribute("data-block");
+ const allowedBlocks = getAllowedBlocks2(targetClientId);
+ const targetBlockName = getBlockNamesByClientId2([
+ targetClientId
+ ])[0];
+ let dropTargetValid;
+ if (allowedBlocks?.length === 0) {
+ const targetRootClientId = getBlockRootClientId2(targetClientId);
+ const targetRootBlockName = getBlockNamesByClientId2([
+ targetRootClientId
+ ])[0];
+ const rootAllowedBlocks = getAllowedBlocks2(targetRootClientId);
+ dropTargetValid = isDropTargetValid(
+ getBlockType33,
+ rootAllowedBlocks,
+ draggedBlockNames,
+ targetRootBlockName
+ );
+ } else {
+ dropTargetValid = isDropTargetValid(
+ getBlockType33,
+ allowedBlocks,
+ draggedBlockNames,
+ targetBlockName
+ );
+ }
+ if (!dropTargetValid && !visibleInserter) {
+ window?.document?.body?.classList?.add(
+ "block-draggable-invalid-drag-token"
+ );
+ } else {
+ window?.document?.body?.classList?.remove(
+ "block-draggable-invalid-drag-token"
+ );
+ }
};
- const toggleSettings = {
- clearable: setting.clearable,
- label: setting.label,
- colorValue: setting.colorValue,
- gradientValue: setting.gradientValue,
- onColorChange: setting.onColorChange,
- onGradientChange: setting.onGradientChange
+ const throttledOnDragOver = (0, import_compose64.throttle)(onDragOver, 200);
+ editorRoot.addEventListener("dragover", throttledOnDragOver);
+ return () => {
+ editorRoot.removeEventListener("dragover", throttledOnDragOver);
};
- return setting && // If not in an `ItemGroup` wrap the dropdown in a
- // `ToolsPanelItem`
- /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
- WithToolsPanelItem,
- {
- setting,
- ...props,
- children: /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
- import_components149.Dropdown,
+ }, [
+ clientIds,
+ editorRoot,
+ fadeWhenDisabled,
+ getAllowedBlocks2,
+ getBlockNamesByClientId2,
+ getBlockRootClientId2,
+ getBlockType33,
+ visibleInserter
+ ]);
+ if (!isDraggable) {
+ return children({ draggable: false });
+ }
+ const transferData = {
+ type: "block",
+ srcClientIds: clientIds,
+ srcRootClientId
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
+ import_components72.Draggable,
+ {
+ appendToOwnerDocument,
+ cloneClassname,
+ __experimentalTransferDataType: "wp-blocks",
+ transferData,
+ onDragStart: (event) => {
+ window.requestAnimationFrame(() => {
+ startDraggingBlocks2(clientIds);
+ isDraggingRef.current = true;
+ startScrolling(event);
+ if (onDragStart) {
+ onDragStart();
+ }
+ });
+ },
+ onDragOver: scrollOnDragOver,
+ onDragEnd: () => {
+ stopDraggingBlocks2();
+ isDraggingRef.current = false;
+ stopScrolling();
+ if (onDragEnd) {
+ onDragEnd();
+ }
+ },
+ __experimentalDragComponent: (
+ // Check against `undefined` so that `null` can be used to disable
+ // the default drag component.
+ dragComponent !== void 0 ? dragComponent : /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
+ BlockDraggableChip,
{
- popoverProps: popoverProps3,
- className: "block-editor-tools-panel-color-gradient-settings__dropdown",
- renderToggle: renderToggle(toggleSettings),
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(import_components149.__experimentalDropdownContentWrapper, { paddingSize: "none", children: /* @__PURE__ */ (0, import_jsx_runtime359.jsx)("div", { className: "block-editor-panel-color-gradient-settings__dropdown-content", children: /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
- control_default,
- {
- ...controlProps
- }
- ) }) })
+ count: clientIds.length,
+ icon,
+ fadeWhenDisabled: true
}
)
- },
- index2
- );
- }) });
- }
+ ),
+ elementId,
+ children: ({ onDraggableStart, onDraggableEnd }) => {
+ return children({
+ draggable: true,
+ onDragStart: onDraggableStart,
+ onDragEnd: onDraggableEnd
+ });
+ }
+ }
+ );
+ };
+ var block_draggable_default = BlockDraggable;
- // packages/block-editor/build-module/components/colors-gradients/panel-color-gradient-settings.mjs
- var import_components150 = __toESM(require_components(), 1);
- var import_data143 = __toESM(require_data(), 1);
- var import_compose83 = __toESM(require_compose(), 1);
+ // packages/block-editor/build-module/components/block-mover/button.mjs
+ var import_blocks53 = __toESM(require_blocks(), 1);
+ var import_components73 = __toESM(require_components(), 1);
+ var import_compose65 = __toESM(require_compose(), 1);
+ var import_data90 = __toESM(require_data(), 1);
+ var import_element164 = __toESM(require_element(), 1);
+ var import_i18n77 = __toESM(require_i18n(), 1);
+ var import_keycodes10 = __toESM(require_keycodes(), 1);
- // packages/block-editor/build-module/components/colors-gradients/use-multiple-origin-colors-and-gradients.mjs
- var import_element208 = __toESM(require_element(), 1);
- var import_i18n140 = __toESM(require_i18n(), 1);
- function useMultipleOriginColorsAndGradients() {
- const [
- enableCustomColors,
- customColors,
- themeColors,
- defaultColors,
- shouldDisplayDefaultColors,
- enableCustomGradients,
- customGradients,
- themeGradients,
- defaultGradients,
- shouldDisplayDefaultGradients
- ] = useSettings(
- "color.custom",
- "color.palette.custom",
- "color.palette.theme",
- "color.palette.default",
- "color.defaultPalette",
- "color.customGradient",
- "color.gradients.custom",
- "color.gradients.theme",
- "color.gradients.default",
- "color.defaultGradients"
- );
- const colorGradientSettings = {
- disableCustomColors: !enableCustomColors,
- disableCustomGradients: !enableCustomGradients
- };
- colorGradientSettings.colors = (0, import_element208.useMemo)(() => {
- const result = [];
- if (themeColors && themeColors.length) {
- result.push({
- name: (0, import_i18n140._x)(
- "Theme",
- "Indicates this palette comes from the theme."
- ),
- slug: "theme",
- colors: themeColors
- });
+ // packages/block-editor/build-module/components/block-mover/mover-description.mjs
+ var import_i18n76 = __toESM(require_i18n(), 1);
+ var getMovementDirection = (moveDirection, orientation) => {
+ if (moveDirection === "up") {
+ if (orientation === "horizontal") {
+ return (0, import_i18n76.isRTL)() ? "right" : "left";
}
- if (shouldDisplayDefaultColors && defaultColors && defaultColors.length) {
- result.push({
- name: (0, import_i18n140._x)(
- "Default",
- "Indicates this palette comes from WordPress."
- ),
- slug: "default",
- colors: defaultColors
- });
+ return "up";
+ } else if (moveDirection === "down") {
+ if (orientation === "horizontal") {
+ return (0, import_i18n76.isRTL)() ? "left" : "right";
}
- if (customColors && customColors.length) {
- result.push({
- name: (0, import_i18n140._x)(
- "Custom",
- "Indicates this palette is created by the user."
+ return "down";
+ }
+ return null;
+ };
+ function getBlockMoverDescription(selectedCount, type, firstIndex, isFirst, isLast, dir, orientation) {
+ const position = firstIndex + 1;
+ if (selectedCount > 1) {
+ return getMultiBlockMoverDescription(
+ selectedCount,
+ firstIndex,
+ isFirst,
+ isLast,
+ dir,
+ orientation
+ );
+ }
+ if (isFirst && isLast) {
+ return (0, import_i18n76.sprintf)(
+ // translators: %s: Type of block (i.e. Text, Image etc)
+ (0, import_i18n76.__)("Block %s is the only block, and cannot be moved"),
+ type
+ );
+ }
+ if (dir > 0 && !isLast) {
+ const movementDirection = getMovementDirection("down", orientation);
+ if (movementDirection === "down") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
+ (0, import_i18n76.__)(
+ "Move %1$s block from position %2$d down to position %3$d"
),
- slug: "custom",
- colors: customColors
- });
+ type,
+ position,
+ position + 1
+ );
}
- return result;
- }, [
- customColors,
- themeColors,
- defaultColors,
- shouldDisplayDefaultColors
- ]);
- colorGradientSettings.gradients = (0, import_element208.useMemo)(() => {
- const result = [];
- if (themeGradients && themeGradients.length) {
- result.push({
- name: (0, import_i18n140._x)(
- "Theme",
- "Indicates this palette comes from the theme."
+ if (movementDirection === "left") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
+ (0, import_i18n76.__)(
+ "Move %1$s block from position %2$d left to position %3$d"
),
- slug: "theme",
- gradients: themeGradients
- });
+ type,
+ position,
+ position + 1
+ );
}
- if (shouldDisplayDefaultGradients && defaultGradients && defaultGradients.length) {
- result.push({
- name: (0, import_i18n140._x)(
- "Default",
- "Indicates this palette comes from WordPress."
+ if (movementDirection === "right") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
+ (0, import_i18n76.__)(
+ "Move %1$s block from position %2$d right to position %3$d"
),
- slug: "default",
- gradients: defaultGradients
- });
+ type,
+ position,
+ position + 1
+ );
}
- if (customGradients && customGradients.length) {
- result.push({
- name: (0, import_i18n140._x)(
- "Custom",
- "Indicates this palette is created by the user."
+ }
+ if (dir > 0 && isLast) {
+ const movementDirection = getMovementDirection("down", orientation);
+ if (movementDirection === "down") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc)
+ (0, import_i18n76.__)(
+ "Block %1$s is at the end of the content and can\u2019t be moved down"
),
- slug: "custom",
- gradients: customGradients
- });
+ type
+ );
}
- return result;
- }, [
- customGradients,
- themeGradients,
- defaultGradients,
- shouldDisplayDefaultGradients
- ]);
- colorGradientSettings.hasColorsOrGradients = !!colorGradientSettings.colors.length || !!colorGradientSettings.gradients.length;
- return colorGradientSettings;
+ if (movementDirection === "left") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc)
+ (0, import_i18n76.__)(
+ "Block %1$s is at the end of the content and can\u2019t be moved left"
+ ),
+ type
+ );
+ }
+ if (movementDirection === "right") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc)
+ (0, import_i18n76.__)(
+ "Block %1$s is at the end of the content and can\u2019t be moved right"
+ ),
+ type
+ );
+ }
+ }
+ if (dir < 0 && !isFirst) {
+ const movementDirection = getMovementDirection("up", orientation);
+ if (movementDirection === "up") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
+ (0, import_i18n76.__)("Move %1$s block from position %2$d up to position %3$d"),
+ type,
+ position,
+ position - 1
+ );
+ }
+ if (movementDirection === "left") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
+ (0, import_i18n76.__)(
+ "Move %1$s block from position %2$d left to position %3$d"
+ ),
+ type,
+ position,
+ position - 1
+ );
+ }
+ if (movementDirection === "right") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
+ (0, import_i18n76.__)(
+ "Move %1$s block from position %2$d right to position %3$d"
+ ),
+ type,
+ position,
+ position - 1
+ );
+ }
+ }
+ if (dir < 0 && isFirst) {
+ const movementDirection = getMovementDirection("up", orientation);
+ if (movementDirection === "up") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc)
+ (0, import_i18n76.__)(
+ "Block %1$s is at the beginning of the content and can\u2019t be moved up"
+ ),
+ type
+ );
+ }
+ if (movementDirection === "left") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc)
+ (0, import_i18n76.__)(
+ "Block %1$s is at the beginning of the content and can\u2019t be moved left"
+ ),
+ type
+ );
+ }
+ if (movementDirection === "right") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Type of block (i.e. Text, Image etc)
+ (0, import_i18n76.__)(
+ "Block %1$s is at the beginning of the content and can\u2019t be moved right"
+ ),
+ type
+ );
+ }
+ }
+ }
+ function getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir, orientation) {
+ const position = firstIndex + 1;
+ if (isFirst && isLast) {
+ return (0, import_i18n76.__)("All blocks are selected, and cannot be moved");
+ }
+ if (dir > 0 && !isLast) {
+ const movementDirection = getMovementDirection("down", orientation);
+ if (movementDirection === "down") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Number of selected blocks, 2: Position of selected blocks
+ (0, import_i18n76.__)("Move %1$d blocks from position %2$d down by one place"),
+ selectedCount,
+ position
+ );
+ }
+ if (movementDirection === "left") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Number of selected blocks, 2: Position of selected blocks
+ (0, import_i18n76.__)("Move %1$d blocks from position %2$d left by one place"),
+ selectedCount,
+ position
+ );
+ }
+ if (movementDirection === "right") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Number of selected blocks, 2: Position of selected blocks
+ (0, import_i18n76.__)("Move %1$d blocks from position %2$d right by one place"),
+ selectedCount,
+ position
+ );
+ }
+ }
+ if (dir > 0 && isLast) {
+ const movementDirection = getMovementDirection("down", orientation);
+ if (movementDirection === "down") {
+ return (0, import_i18n76.__)(
+ "Blocks cannot be moved down as they are already at the bottom"
+ );
+ }
+ if (movementDirection === "left") {
+ return (0, import_i18n76.__)(
+ "Blocks cannot be moved left as they are already are at the leftmost position"
+ );
+ }
+ if (movementDirection === "right") {
+ return (0, import_i18n76.__)(
+ "Blocks cannot be moved right as they are already are at the rightmost position"
+ );
+ }
+ }
+ if (dir < 0 && !isFirst) {
+ const movementDirection = getMovementDirection("up", orientation);
+ if (movementDirection === "up") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Number of selected blocks, 2: Position of selected blocks
+ (0, import_i18n76.__)("Move %1$d blocks from position %2$d up by one place"),
+ selectedCount,
+ position
+ );
+ }
+ if (movementDirection === "left") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Number of selected blocks, 2: Position of selected blocks
+ (0, import_i18n76.__)("Move %1$d blocks from position %2$d left by one place"),
+ selectedCount,
+ position
+ );
+ }
+ if (movementDirection === "right") {
+ return (0, import_i18n76.sprintf)(
+ // translators: 1: Number of selected blocks, 2: Position of selected blocks
+ (0, import_i18n76.__)("Move %1$d blocks from position %2$d right by one place"),
+ selectedCount,
+ position
+ );
+ }
+ }
+ if (dir < 0 && isFirst) {
+ const movementDirection = getMovementDirection("up", orientation);
+ if (movementDirection === "up") {
+ return (0, import_i18n76.__)(
+ "Blocks cannot be moved up as they are already at the top"
+ );
+ }
+ if (movementDirection === "left") {
+ return (0, import_i18n76.__)(
+ "Blocks cannot be moved left as they are already are at the leftmost position"
+ );
+ }
+ if (movementDirection === "right") {
+ return (0, import_i18n76.__)(
+ "Blocks cannot be moved right as they are already are at the rightmost position"
+ );
+ }
+ }
}
- // packages/block-editor/build-module/components/colors-gradients/panel-color-gradient-settings.mjs
- var import_jsx_runtime360 = __toESM(require_jsx_runtime(), 1);
- var colorsAndGradientKeys2 = [
- "colors",
- "disableCustomColors",
- "gradients",
- "disableCustomGradients"
- ];
- var PanelColorGradientSettingsInner = ({
- className,
- colors: colors2,
- gradients,
- disableCustomColors,
- disableCustomGradients,
- children,
- settings: settings2,
- title,
- showTitle = true,
- __experimentalIsRenderedInSidebar,
- enableAlpha
- }) => {
- const panelId = (0, import_compose83.useInstanceId)(PanelColorGradientSettingsInner);
- const { batch } = (0, import_data143.useRegistry)();
- if ((!colors2 || colors2.length === 0) && (!gradients || gradients.length === 0) && disableCustomColors && disableCustomGradients && settings2?.every(
- (setting) => (!setting.colors || setting.colors.length === 0) && (!setting.gradients || setting.gradients.length === 0) && (setting.disableCustomColors === void 0 || setting.disableCustomColors) && (setting.disableCustomGradients === void 0 || setting.disableCustomGradients)
- )) {
+ // packages/block-editor/build-module/components/block-mover/button.mjs
+ var import_jsx_runtime289 = __toESM(require_jsx_runtime(), 1);
+ var getArrowIcon = (direction, orientation) => {
+ if (direction === "up") {
+ if (orientation === "horizontal") {
+ return (0, import_i18n77.isRTL)() ? chevron_right_default : chevron_left_default;
+ }
+ return chevron_up_default;
+ } else if (direction === "down") {
+ if (orientation === "horizontal") {
+ return (0, import_i18n77.isRTL)() ? chevron_left_default : chevron_right_default;
+ }
+ return chevron_down_default;
+ }
+ return null;
+ };
+ var getMovementDirectionLabel = (moveDirection, orientation) => {
+ if (moveDirection === "up") {
+ if (orientation === "horizontal") {
+ return (0, import_i18n77.isRTL)() ? (0, import_i18n77.__)("Move right") : (0, import_i18n77.__)("Move left");
+ }
+ return (0, import_i18n77.__)("Move up");
+ } else if (moveDirection === "down") {
+ if (orientation === "horizontal") {
+ return (0, import_i18n77.isRTL)() ? (0, import_i18n77.__)("Move left") : (0, import_i18n77.__)("Move right");
+ }
+ return (0, import_i18n77.__)("Move down");
+ }
+ return null;
+ };
+ var BlockMoverButton = (0, import_element164.forwardRef)(
+ ({ clientIds, direction, orientation: moverOrientation, ...props }, ref) => {
+ const instanceId = (0, import_compose65.useInstanceId)(BlockMoverButton);
+ const normalizedClientIds = (0, import_element164.useMemo)(
+ () => Array.isArray(clientIds) ? clientIds : [clientIds],
+ [clientIds]
+ );
+ const blocksCount = normalizedClientIds.length;
+ const isMobileViewport = (0, import_compose65.useViewportMatch)("small", "<");
+ const {
+ blockType,
+ isDisabled,
+ rootClientId,
+ isFirst,
+ isLast,
+ firstIndex,
+ orientation = "vertical"
+ } = (0, import_data90.useSelect)(
+ (select3) => {
+ const {
+ getBlockIndex: getBlockIndex2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockOrder: getBlockOrder2,
+ getBlock: getBlock2,
+ getBlockListSettings: getBlockListSettings2
+ } = select3(store);
+ const firstClientId = normalizedClientIds[0];
+ const blockRootClientId = getBlockRootClientId2(firstClientId);
+ const firstBlockIndex = getBlockIndex2(firstClientId);
+ const lastBlockIndex = getBlockIndex2(
+ normalizedClientIds[normalizedClientIds.length - 1]
+ );
+ const blockOrder = getBlockOrder2(blockRootClientId);
+ const block = getBlock2(firstClientId);
+ const isFirstBlock = firstBlockIndex === 0;
+ const isLastBlock = lastBlockIndex === blockOrder.length - 1;
+ const { orientation: blockListOrientation } = getBlockListSettings2(blockRootClientId) || {};
+ return {
+ blockType: block ? (0, import_blocks53.getBlockType)(block.name) : null,
+ isDisabled: direction === "up" ? isFirstBlock : isLastBlock,
+ rootClientId: blockRootClientId,
+ firstIndex: firstBlockIndex,
+ isFirst: isFirstBlock,
+ isLast: isLastBlock,
+ orientation: moverOrientation || blockListOrientation
+ };
+ },
+ [direction, moverOrientation, normalizedClientIds]
+ );
+ const { moveBlocksDown: moveBlocksDown2, moveBlocksUp: moveBlocksUp2 } = (0, import_data90.useDispatch)(store);
+ const moverFunction = direction === "up" ? moveBlocksUp2 : moveBlocksDown2;
+ const onClick = (event) => {
+ moverFunction(clientIds, rootClientId);
+ if (props.onClick) {
+ props.onClick(event);
+ }
+ };
+ const descriptionId = `block-editor-block-mover-button__description-${instanceId}`;
+ const keyCharacter = direction === "up" ? "t" : "y";
+ return /* @__PURE__ */ (0, import_jsx_runtime289.jsxs)(import_jsx_runtime289.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
+ import_components73.Button,
+ {
+ __next40pxDefaultSize: true,
+ ref,
+ className: clsx_default(
+ "block-editor-block-mover-button",
+ `is-${direction}-button`
+ ),
+ icon: getArrowIcon(direction, orientation),
+ label: getMovementDirectionLabel(
+ direction,
+ orientation
+ ),
+ tooltipPosition: !isMobileViewport && direction === "down" && orientation === "vertical" ? "bottom" : "top",
+ "aria-describedby": descriptionId,
+ ...props,
+ onClick: isDisabled ? null : onClick,
+ disabled: isDisabled,
+ accessibleWhenDisabled: true,
+ shortcut: import_keycodes10.displayShortcut.secondary(keyCharacter)
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(VisuallyHidden, { id: descriptionId, children: (0, import_i18n77.sprintf)(
+ // translators: 1: Description of the block movement. 2: Keyboard shortcut.
+ (0, import_i18n77.__)("%1$s (%2$s)"),
+ getBlockMoverDescription(
+ blocksCount,
+ blockType && blockType.title,
+ firstIndex,
+ isFirst,
+ isLast,
+ direction === "up" ? -1 : 1,
+ orientation
+ ),
+ import_keycodes10.shortcutAriaLabel.secondary(keyCharacter)
+ ) })
+ ] });
+ }
+ );
+ var BlockMoverUpButton = (0, import_element164.forwardRef)((props, ref) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(BlockMoverButton, { direction: "up", ref, ...props });
+ });
+ var BlockMoverDownButton = (0, import_element164.forwardRef)((props, ref) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(BlockMoverButton, { direction: "down", ref, ...props });
+ });
+
+ // packages/block-editor/build-module/components/block-mover/index.mjs
+ var import_jsx_runtime290 = __toESM(require_jsx_runtime(), 1);
+ function BlockMover({ clientIds, hideDragHandle }) {
+ const {
+ canMove,
+ rootClientId,
+ isFirst,
+ isLast,
+ orientation,
+ isManualGrid
+ } = (0, import_data91.useSelect)(
+ (select3) => {
+ const {
+ getBlockIndex: getBlockIndex2,
+ getBlockListSettings: getBlockListSettings2,
+ canMoveBlocks: canMoveBlocks2,
+ getBlockOrder: getBlockOrder2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockAttributes: getBlockAttributes3
+ } = select3(store);
+ const normalizedClientIds = Array.isArray(clientIds) ? clientIds : [clientIds];
+ const firstClientId = normalizedClientIds[0];
+ const _rootClientId = getBlockRootClientId2(firstClientId);
+ const firstIndex = getBlockIndex2(firstClientId);
+ const lastIndex = getBlockIndex2(
+ normalizedClientIds[normalizedClientIds.length - 1]
+ );
+ const blockOrder = getBlockOrder2(_rootClientId);
+ const { layout = {} } = getBlockAttributes3(_rootClientId) ?? {};
+ return {
+ canMove: canMoveBlocks2(clientIds),
+ rootClientId: _rootClientId,
+ isFirst: firstIndex === 0,
+ isLast: lastIndex === blockOrder.length - 1,
+ orientation: getBlockListSettings2(_rootClientId)?.orientation,
+ isManualGrid: layout.type === "grid" && layout.isManualPlacement && window.__experimentalEnableGridInteractivity
+ };
+ },
+ [clientIds]
+ );
+ if (!canMove || isFirst && isLast && !rootClientId || hideDragHandle && isManualGrid) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime360.jsxs)(
- import_components150.__experimentalToolsPanel,
+ return /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)(
+ import_components74.ToolbarGroup,
{
- className: clsx_default(
- "block-editor-panel-color-gradient-settings",
- className
- ),
- label: showTitle ? title : void 0,
- resetAll: () => {
- batch(() => {
- settings2.forEach(
- ({
- colorValue,
- gradientValue,
- onColorChange,
- onGradientChange
- }) => {
- if (colorValue) {
- onColorChange();
- } else if (gradientValue) {
- onGradientChange();
- }
- }
- );
- });
- },
- panelId,
- __experimentalFirstVisibleItemClass: "first",
- __experimentalLastVisibleItemClass: "last",
+ className: clsx_default("block-editor-block-mover", {
+ "is-horizontal": orientation === "horizontal"
+ }),
children: [
- /* @__PURE__ */ (0, import_jsx_runtime360.jsx)(
- ColorGradientSettingsDropdown,
+ !hideDragHandle && /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(block_draggable_default, { clientIds, fadeWhenDisabled: true, children: (draggableProps) => /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
+ import_components74.Button,
{
- settings: settings2,
- panelId,
- ...{
- colors: colors2,
- gradients,
- disableCustomColors,
- disableCustomGradients,
- __experimentalIsRenderedInSidebar,
- enableAlpha
- }
+ __next40pxDefaultSize: true,
+ icon: drag_handle_default,
+ className: "block-editor-block-mover__drag-handle",
+ label: (0, import_i18n78.__)("Drag"),
+ tabIndex: "-1",
+ ...draggableProps
}
- ),
- !!children && /* @__PURE__ */ (0, import_jsx_runtime360.jsxs)(import_jsx_runtime360.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime360.jsx)(import_components150.__experimentalSpacer, { marginY: 4 }),
- " ",
- children
+ ) }),
+ !isManualGrid && /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)("div", { className: "block-editor-block-mover__move-button-container", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(import_components74.ToolbarItem, { children: (itemProps) => /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
+ BlockMoverUpButton,
+ {
+ clientIds,
+ ...itemProps
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(import_components74.ToolbarItem, { children: (itemProps) => /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
+ BlockMoverDownButton,
+ {
+ clientIds,
+ ...itemProps
+ }
+ ) })
] })
]
}
);
- };
- var PanelColorGradientSettingsSelect = (props) => {
- const colorGradientSettings = useMultipleOriginColorsAndGradients();
- return /* @__PURE__ */ (0, import_jsx_runtime360.jsx)(
- PanelColorGradientSettingsInner,
- {
- ...{ ...colorGradientSettings, ...props }
- }
- );
- };
- var PanelColorGradientSettings = (props) => {
- if (colorsAndGradientKeys2.every((key) => props.hasOwnProperty(key))) {
- return /* @__PURE__ */ (0, import_jsx_runtime360.jsx)(PanelColorGradientSettingsInner, { ...props });
- }
- return /* @__PURE__ */ (0, import_jsx_runtime360.jsx)(PanelColorGradientSettingsSelect, { ...props });
- };
- var panel_color_gradient_settings_default = PanelColorGradientSettings;
-
- // packages/block-editor/build-module/components/dimension-control/index.mjs
- var import_element209 = __toESM(require_element(), 1);
- var import_components151 = __toESM(require_components(), 1);
- var import_i18n141 = __toESM(require_i18n(), 1);
- var import_jsx_runtime361 = __toESM(require_jsx_runtime(), 1);
- var EMPTY_ARRAY11 = [];
- var DIMENSION_CUSTOM_VALUE_SETTINGS = {
- ...CUSTOM_VALUE_SETTINGS,
- px: { max: 1e3, steps: 1 },
- em: { max: 50, steps: 0.1 },
- rem: { max: 50, steps: 0.1 }
- };
- function useDimensionSizes(presets) {
- const defaultSizes = presets?.default ?? EMPTY_ARRAY11;
- const customSizes = presets?.custom ?? EMPTY_ARRAY11;
- const themeSizes = presets?.theme ?? EMPTY_ARRAY11;
- return (0, import_element209.useMemo)(() => {
- const sizes = [
- { name: (0, import_i18n141.__)("None"), slug: "0", size: 0 },
- ...customSizes,
- ...themeSizes,
- ...defaultSizes
- ];
- return sizes;
- }, [customSizes, themeSizes, defaultSizes]);
}
- function DimensionControl({
- label = (0, import_i18n141.__)("Dimension"),
- onChange,
- value,
- placeholder,
- className,
- dimensionSizes: dimensionSizesProp
- }) {
- const [dimensionSizesFromSettings, availableUnits] = useSettings(
- "dimensions.dimensionSizes",
- "spacing.units"
+ var block_mover_default = BlockMover;
+
+ // packages/block-editor/build-module/components/block-parent-selector/index.mjs
+ var import_components75 = __toESM(require_components(), 1);
+ var import_data93 = __toESM(require_data(), 1);
+ var import_i18n79 = __toESM(require_i18n(), 1);
+ var import_element166 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/block-toolbar/utils.mjs
+ var import_data92 = __toESM(require_data(), 1);
+ var import_element165 = __toESM(require_element(), 1);
+ var { clearTimeout: clearTimeout2, setTimeout: setTimeout2 } = window;
+ var DEBOUNCE_TIMEOUT = 200;
+ function useDebouncedShowGestures({
+ ref,
+ isFocused,
+ highlightParent,
+ debounceTimeout = DEBOUNCE_TIMEOUT
+ }) {
+ const { getSelectedBlockClientId: getSelectedBlockClientId2, getBlockRootClientId: getBlockRootClientId2 } = (0, import_data92.useSelect)(store);
+ const { toggleBlockHighlight: toggleBlockHighlight2 } = (0, import_data92.useDispatch)(store);
+ const timeoutRef = (0, import_element165.useRef)();
+ const isDistractionFree = (0, import_data92.useSelect)(
+ (select3) => select3(store).getSettings().isDistractionFree,
+ []
);
- const dimensionSizes = dimensionSizesProp ?? dimensionSizesFromSettings;
- const units2 = (0, import_components151.__experimentalUseCustomUnits)({
- availableUnits: availableUnits || [
- "%",
- "px",
- "em",
- "rem",
- "vh",
- "vw"
- ]
- });
- const options = useDimensionSizes(dimensionSizes);
- const [selectedUnit, setSelectedUnit] = (0, import_element209.useState)(() => {
- const [, unit] = (0, import_components151.__experimentalParseQuantityAndUnitFromRawValue)(value);
- return unit || units2[0]?.value || "px";
- });
- const handleUnitChange = (newUnit) => {
- const [currentValue, currentUnit] = (0, import_components151.__experimentalParseQuantityAndUnitFromRawValue)(value);
- if (["em", "rem"].includes(newUnit) && currentUnit === "px") {
- onChange((currentValue / 16).toFixed(2) + newUnit);
- } else if (["em", "rem"].includes(currentUnit) && newUnit === "px") {
- onChange(Math.round(currentValue * 16) + newUnit);
- } else if ([
- "%",
- "vw",
- "svw",
- "lvw",
- "dvw",
- "vh",
- "svh",
- "lvh",
- "dvh",
- "vi",
- "svi",
- "lvi",
- "dvi",
- "vb",
- "svb",
- "lvb",
- "dvb",
- "vmin",
- "svmin",
- "lvmin",
- "dvmin",
- "vmax",
- "svmax",
- "lvmax",
- "dvmax"
- ].includes(newUnit) && currentValue > 100) {
- onChange(100 + newUnit);
+ const handleOnChange = (nextIsFocused) => {
+ if (nextIsFocused && isDistractionFree) {
+ return;
}
- setSelectedUnit(newUnit);
+ const selectedBlockClientId = getSelectedBlockClientId2();
+ const clientId = highlightParent ? getBlockRootClientId2(selectedBlockClientId) : selectedBlockClientId;
+ toggleBlockHighlight2(clientId, nextIsFocused);
};
- return /* @__PURE__ */ (0, import_jsx_runtime361.jsxs)(
- "fieldset",
- {
- className: clsx_default("block-editor-dimension-control", className),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime361.jsx)(import_components151.BaseControl.VisualLabel, { as: "legend", children: label }),
- /* @__PURE__ */ (0, import_jsx_runtime361.jsx)(
- PresetInputControl,
- {
- ariaLabel: label,
- className: "block-editor-dimension-control",
- customValueSettings: DIMENSION_CUSTOM_VALUE_SETTINGS,
- minimumCustomValue: 0,
- onChange,
- onUnitChange: handleUnitChange,
- placeholder,
- presets: options,
- presetType: "dimension",
- selectedUnit,
- showTooltip: true,
- units: units2,
- value
- }
- )
- ]
+ const getIsHovered = () => {
+ return ref?.current && ref.current.matches(":hover");
+ };
+ const shouldHideGestures = () => {
+ const isHovered = getIsHovered();
+ return !isFocused && !isHovered;
+ };
+ const clearTimeoutRef = () => {
+ const timeout = timeoutRef.current;
+ if (timeout && clearTimeout2) {
+ clearTimeout2(timeout);
+ }
+ };
+ const debouncedShowGestures = (event) => {
+ if (event) {
+ event.stopPropagation();
+ }
+ clearTimeoutRef();
+ handleOnChange(true);
+ };
+ const debouncedHideGestures = (event) => {
+ if (event) {
+ event.stopPropagation();
}
+ clearTimeoutRef();
+ timeoutRef.current = setTimeout2(() => {
+ if (shouldHideGestures()) {
+ handleOnChange(false);
+ }
+ }, debounceTimeout);
+ };
+ (0, import_element165.useEffect)(
+ () => () => {
+ handleOnChange(false);
+ clearTimeoutRef();
+ },
+ []
);
+ return {
+ debouncedShowGestures,
+ debouncedHideGestures
+ };
}
-
- // packages/block-editor/build-module/components/height-control/index.mjs
- var import_element210 = __toESM(require_element(), 1);
- var import_components152 = __toESM(require_components(), 1);
- var import_i18n142 = __toESM(require_i18n(), 1);
- var import_deprecated16 = __toESM(require_deprecated(), 1);
- var import_jsx_runtime362 = __toESM(require_jsx_runtime(), 1);
- var RANGE_CONTROL_CUSTOM_SETTINGS = {
- px: { max: 1e3, step: 1 },
- "%": { max: 100, step: 1 },
- vw: { max: 100, step: 1 },
- vh: { max: 100, step: 1 },
- em: { max: 50, step: 0.1 },
- rem: { max: 50, step: 0.1 },
- svw: { max: 100, step: 1 },
- lvw: { max: 100, step: 1 },
- dvw: { max: 100, step: 1 },
- svh: { max: 100, step: 1 },
- lvh: { max: 100, step: 1 },
- dvh: { max: 100, step: 1 },
- vi: { max: 100, step: 1 },
- svi: { max: 100, step: 1 },
- lvi: { max: 100, step: 1 },
- dvi: { max: 100, step: 1 },
- vb: { max: 100, step: 1 },
- svb: { max: 100, step: 1 },
- lvb: { max: 100, step: 1 },
- dvb: { max: 100, step: 1 },
- vmin: { max: 100, step: 1 },
- svmin: { max: 100, step: 1 },
- lvmin: { max: 100, step: 1 },
- dvmin: { max: 100, step: 1 },
- vmax: { max: 100, step: 1 },
- svmax: { max: 100, step: 1 },
- lvmax: { max: 100, step: 1 },
- dvmax: { max: 100, step: 1 }
- };
- function HeightControl({
- label = (0, import_i18n142.__)("Height"),
- onChange,
- value
+ function useShowHoveredOrFocusedGestures({
+ ref,
+ highlightParent = false,
+ debounceTimeout = DEBOUNCE_TIMEOUT
}) {
- (0, import_deprecated16.default)("wp.blockEditor.HeightControl", {
- since: "7.0",
- version: "7.2",
- alternative: "wp.blockEditor.DimensionControl"
- });
- const customRangeValue = parseFloat(value);
- const [availableUnits] = useSettings("spacing.units");
- const units2 = (0, import_components152.__experimentalUseCustomUnits)({
- availableUnits: availableUnits || [
- "%",
- "px",
- "em",
- "rem",
- "vh",
- "vw"
- ]
+ const [isFocused, setIsFocused] = (0, import_element165.useState)(false);
+ const { debouncedShowGestures, debouncedHideGestures } = useDebouncedShowGestures({
+ ref,
+ debounceTimeout,
+ isFocused,
+ highlightParent
});
- const selectedUnit = (0, import_element210.useMemo)(
- () => (0, import_components152.__experimentalParseQuantityAndUnitFromRawValue)(value),
- [value]
- )[1] || units2[0]?.value || "px";
- const handleSliderChange = (next) => {
- onChange([next, selectedUnit].join(""));
+ const registerRef = (0, import_element165.useRef)(false);
+ const isFocusedWithin = () => {
+ return ref?.current && ref.current.contains(ref.current.ownerDocument.activeElement);
};
- const handleUnitChange = (newUnit) => {
- const [currentValue, currentUnit] = (0, import_components152.__experimentalParseQuantityAndUnitFromRawValue)(value);
- if (["em", "rem"].includes(newUnit) && currentUnit === "px") {
- onChange((currentValue / 16).toFixed(2) + newUnit);
- } else if (["em", "rem"].includes(currentUnit) && newUnit === "px") {
- onChange(Math.round(currentValue * 16) + newUnit);
- } else if ([
- "%",
- "vw",
- "svw",
- "lvw",
- "dvw",
- "vh",
- "svh",
- "lvh",
- "dvh",
- "vi",
- "svi",
- "lvi",
- "dvi",
- "vb",
- "svb",
- "lvb",
- "dvb",
- "vmin",
- "svmin",
- "lvmin",
- "dvmin",
- "vmax",
- "svmax",
- "lvmax",
- "dvmax"
- ].includes(newUnit) && currentValue > 100) {
- onChange(100 + newUnit);
+ (0, import_element165.useEffect)(() => {
+ const node = ref.current;
+ const handleOnFocus = () => {
+ if (isFocusedWithin()) {
+ setIsFocused(true);
+ debouncedShowGestures();
+ }
+ };
+ const handleOnBlur = () => {
+ if (!isFocusedWithin()) {
+ setIsFocused(false);
+ debouncedHideGestures();
+ }
+ };
+ if (node && !registerRef.current) {
+ node.addEventListener("focus", handleOnFocus, true);
+ node.addEventListener("blur", handleOnBlur, true);
+ registerRef.current = true;
}
+ return () => {
+ if (node) {
+ node.removeEventListener("focus", handleOnFocus);
+ node.removeEventListener("blur", handleOnBlur);
+ }
+ };
+ }, [
+ ref,
+ registerRef,
+ setIsFocused,
+ debouncedShowGestures,
+ debouncedHideGestures
+ ]);
+ return {
+ onMouseMove: debouncedShowGestures,
+ onMouseLeave: debouncedHideGestures
};
- return /* @__PURE__ */ (0, import_jsx_runtime362.jsxs)("fieldset", { className: "block-editor-height-control", children: [
- /* @__PURE__ */ (0, import_jsx_runtime362.jsx)(import_components152.BaseControl.VisualLabel, { as: "legend", children: label }),
- /* @__PURE__ */ (0, import_jsx_runtime362.jsxs)(import_components152.Flex, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime362.jsx)(import_components152.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime362.jsx)(
- import_components152.__experimentalUnitControl,
- {
- value,
- units: units2,
- onChange,
- onUnitChange: handleUnitChange,
- min: 0,
- label,
- hideLabelFromVision: true
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime362.jsx)(import_components152.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime362.jsx)(import_components152.__experimentalSpacer, { marginX: 2, marginBottom: 0, children: /* @__PURE__ */ (0, import_jsx_runtime362.jsx)(
- import_components152.RangeControl,
+ }
+
+ // packages/block-editor/build-module/components/block-parent-selector/index.mjs
+ var import_jsx_runtime291 = __toESM(require_jsx_runtime(), 1);
+ function BlockParentSelector() {
+ const { selectBlock: selectBlock2 } = (0, import_data93.useDispatch)(store);
+ const { parentClientId } = (0, import_data93.useSelect)((select3) => {
+ const {
+ getBlockParents: getBlockParents2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ getParentSectionBlock: getParentSectionBlock2
+ } = unlock(select3(store));
+ const [selectedBlockClientId] = getSelectedBlockClientIds2();
+ const parentSection = getParentSectionBlock2(selectedBlockClientId);
+ const parents = getBlockParents2(selectedBlockClientId);
+ const _parentClientId = parentSection ?? parents[parents.length - 1];
+ return {
+ parentClientId: _parentClientId
+ };
+ }, []);
+ const blockInformation = useBlockDisplayInformation(parentClientId);
+ const nodeRef = (0, import_element166.useRef)();
+ const showHoveredOrFocusedGestures = useShowHoveredOrFocusedGestures({
+ ref: nodeRef,
+ highlightParent: true
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
+ "div",
+ {
+ className: "block-editor-block-parent-selector",
+ ref: nodeRef,
+ ...showHoveredOrFocusedGestures,
+ children: /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
+ import_components75.ToolbarButton,
{
- value: customRangeValue,
- min: 0,
- max: RANGE_CONTROL_CUSTOM_SETTINGS[selectedUnit]?.max ?? 100,
- step: RANGE_CONTROL_CUSTOM_SETTINGS[selectedUnit]?.step ?? 0.1,
- withInputField: false,
- onChange: handleSliderChange,
- label,
- hideLabelFromVision: true
+ className: "block-editor-block-parent-selector__button",
+ onClick: () => selectBlock2(parentClientId),
+ label: (0, import_i18n79.sprintf)(
+ /* translators: %s: Name of the block's parent. */
+ (0, import_i18n79.__)("Select parent block: %s"),
+ blockInformation?.title
+ ),
+ showTooltip: true,
+ icon: /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(block_icon_default, { icon: blockInformation?.icon })
}
- ) }) })
- ] })
- ] });
+ )
+ },
+ parentClientId
+ );
}
- // packages/block-editor/build-module/components/image-editor/index.mjs
- var import_components158 = __toESM(require_components(), 1);
- var import_deprecated17 = __toESM(require_deprecated(), 1);
+ // packages/block-editor/build-module/components/block-controls/fill.mjs
+ var import_components77 = __toESM(require_components(), 1);
- // node_modules/react-easy-crop/index.module.js
- var React117 = __toESM(require_react());
- var import_normalize_wheel = __toESM(require_normalize_wheel());
- function getCropSize(mediaWidth, mediaHeight, containerWidth, containerHeight, aspect, rotation) {
- if (rotation === void 0) {
- rotation = 0;
+ // packages/block-editor/build-module/components/block-controls/groups.mjs
+ var import_components76 = __toESM(require_components(), 1);
+ var BlockControlsDefault = (0, import_components76.createSlotFill)("BlockControls");
+ var BlockControlsBlock = (0, import_components76.createSlotFill)("BlockControlsBlock");
+ var BlockControlsInline = (0, import_components76.createSlotFill)("BlockFormatControls");
+ var BlockControlsOther = (0, import_components76.createSlotFill)("BlockControlsOther");
+ var BlockControlsParent = (0, import_components76.createSlotFill)("BlockControlsParent");
+ var BlockControlsStyleState = (0, import_components76.createSlotFill)("BlockControlsStyleState");
+ var groups2 = {
+ default: BlockControlsDefault,
+ block: BlockControlsBlock,
+ inline: BlockControlsInline,
+ other: BlockControlsOther,
+ parent: BlockControlsParent,
+ "style-state": BlockControlsStyleState
+ };
+ var groups_default2 = groups2;
+
+ // packages/block-editor/build-module/components/block-controls/hook.mjs
+ function useBlockControlsFill(group, shareWithChildBlocks) {
+ const context = useBlockEditContext();
+ if (context[mayDisplayControlsKey]) {
+ return groups_default2[group]?.Fill;
}
- var _a = rotateSize(mediaWidth, mediaHeight, rotation), width = _a.width, height = _a.height;
- var fittingWidth = Math.min(width, containerWidth);
- var fittingHeight = Math.min(height, containerHeight);
- if (fittingWidth > fittingHeight * aspect) {
- return {
- width: fittingHeight * aspect,
- height: fittingHeight
- };
+ if (context[mayDisplayParentControlsKey] && shareWithChildBlocks) {
+ return groups_default2.parent.Fill;
}
- return {
- width: fittingWidth,
- height: fittingWidth / aspect
- };
- }
- function getMediaZoom(mediaSize) {
- return mediaSize.width > mediaSize.height ? mediaSize.width / mediaSize.naturalWidth : mediaSize.height / mediaSize.naturalHeight;
+ return null;
}
- function restrictPosition(position, mediaSize, cropSize, zoom, rotation) {
- if (rotation === void 0) {
- rotation = 0;
+
+ // packages/block-editor/build-module/components/block-controls/fill.mjs
+ var import_jsx_runtime292 = __toESM(require_jsx_runtime(), 1);
+ function BlockControlsFill({
+ group = "default",
+ controls,
+ children,
+ __experimentalShareWithChildBlocks = false
+ }) {
+ const Fill5 = useBlockControlsFill(
+ group,
+ __experimentalShareWithChildBlocks
+ );
+ if (!Fill5) {
+ return null;
}
- var _a = rotateSize(mediaSize.width, mediaSize.height, rotation), width = _a.width, height = _a.height;
- return {
- x: restrictPositionCoord(position.x, width, cropSize.width, zoom),
- y: restrictPositionCoord(position.y, height, cropSize.height, zoom)
- };
- }
- function restrictPositionCoord(position, mediaSize, cropSize, zoom) {
- var maxPosition = mediaSize * zoom / 2 - cropSize / 2;
- return clamp3(position, -maxPosition, maxPosition);
- }
- function getDistanceBetweenPoints(pointA, pointB) {
- return Math.sqrt(Math.pow(pointA.y - pointB.y, 2) + Math.pow(pointA.x - pointB.x, 2));
- }
- function getRotationBetweenPoints(pointA, pointB) {
- return Math.atan2(pointB.y - pointA.y, pointB.x - pointA.x) * 180 / Math.PI;
+ const innerMarkup = /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(import_jsx_runtime292.Fragment, { children: [
+ group === "default" && /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(import_components77.ToolbarGroup, { controls }),
+ children
+ ] });
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(import_components77.__experimentalStyleProvider, { document, children: /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(Fill5, { children: (fillProps) => {
+ const { forwardedContext = [] } = fillProps;
+ return forwardedContext.reduce(
+ (inner, [Provider3, props]) => /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(Provider3, { ...props, children: inner }),
+ innerMarkup
+ );
+ } }) });
}
- function computeCroppedArea(crop, mediaSize, cropSize, aspect, zoom, rotation, restrictPosition2) {
- if (rotation === void 0) {
- rotation = 0;
+
+ // packages/block-editor/build-module/components/block-controls/slot.mjs
+ var import_element167 = __toESM(require_element(), 1);
+ var import_components78 = __toESM(require_components(), 1);
+ var import_warning7 = __toESM(require_warning(), 1);
+ var import_jsx_runtime293 = __toESM(require_jsx_runtime(), 1);
+ var { ComponentsContext } = unlock(import_components78.privateApis);
+ function BlockControlsSlot({ group = "default", ...props }) {
+ const toolbarState = (0, import_element167.useContext)(import_components78.__experimentalToolbarContext);
+ const contextState = (0, import_element167.useContext)(ComponentsContext);
+ const fillProps = (0, import_element167.useMemo)(
+ () => ({
+ forwardedContext: [
+ [import_components78.__experimentalToolbarContext.Provider, { value: toolbarState }],
+ [ComponentsContext.Provider, { value: contextState }]
+ ]
+ }),
+ [toolbarState, contextState]
+ );
+ const slotFill = groups_default2[group];
+ const fills = (0, import_components78.__experimentalUseSlotFills)(slotFill.name);
+ if (!slotFill) {
+ (0, import_warning7.default)(`Unknown BlockControls group "${group}" provided.`);
+ return null;
}
- if (restrictPosition2 === void 0) {
- restrictPosition2 = true;
+ if (!fills?.length) {
+ return null;
}
- var limitAreaFn = restrictPosition2 ? limitArea : noOp;
- var mediaBBoxSize = rotateSize(mediaSize.width, mediaSize.height, rotation);
- var mediaNaturalBBoxSize = rotateSize(mediaSize.naturalWidth, mediaSize.naturalHeight, rotation);
- var croppedAreaPercentages = {
- x: limitAreaFn(100, ((mediaBBoxSize.width - cropSize.width / zoom) / 2 - crop.x / zoom) / mediaBBoxSize.width * 100),
- y: limitAreaFn(100, ((mediaBBoxSize.height - cropSize.height / zoom) / 2 - crop.y / zoom) / mediaBBoxSize.height * 100),
- width: limitAreaFn(100, cropSize.width / mediaBBoxSize.width * 100 / zoom),
- height: limitAreaFn(100, cropSize.height / mediaBBoxSize.height * 100 / zoom)
- };
- var widthInPixels = Math.round(limitAreaFn(mediaNaturalBBoxSize.width, croppedAreaPercentages.width * mediaNaturalBBoxSize.width / 100));
- var heightInPixels = Math.round(limitAreaFn(mediaNaturalBBoxSize.height, croppedAreaPercentages.height * mediaNaturalBBoxSize.height / 100));
- var isImgWiderThanHigh = mediaNaturalBBoxSize.width >= mediaNaturalBBoxSize.height * aspect;
- var sizePixels = isImgWiderThanHigh ? {
- width: Math.round(heightInPixels * aspect),
- height: heightInPixels
- } : {
- width: widthInPixels,
- height: Math.round(widthInPixels / aspect)
- };
- var croppedAreaPixels = __assign(__assign({}, sizePixels), {
- x: Math.round(limitAreaFn(mediaNaturalBBoxSize.width - sizePixels.width, croppedAreaPercentages.x * mediaNaturalBBoxSize.width / 100)),
- y: Math.round(limitAreaFn(mediaNaturalBBoxSize.height - sizePixels.height, croppedAreaPercentages.y * mediaNaturalBBoxSize.height / 100))
- });
- return {
- croppedAreaPercentages,
- croppedAreaPixels
- };
- }
- function limitArea(max2, value) {
- return Math.min(max2, Math.max(0, value));
- }
- function noOp(_max, value) {
- return value;
- }
- function getInitialCropFromCroppedAreaPercentages(croppedAreaPercentages, mediaSize, rotation, cropSize, minZoom, maxZoom) {
- var mediaBBoxSize = rotateSize(mediaSize.width, mediaSize.height, rotation);
- var zoom = clamp3(cropSize.width / mediaBBoxSize.width * (100 / croppedAreaPercentages.width), minZoom, maxZoom);
- var crop = {
- x: zoom * mediaBBoxSize.width / 2 - cropSize.width / 2 - mediaBBoxSize.width * zoom * (croppedAreaPercentages.x / 100),
- y: zoom * mediaBBoxSize.height / 2 - cropSize.height / 2 - mediaBBoxSize.height * zoom * (croppedAreaPercentages.y / 100)
- };
- return {
- crop,
- zoom
- };
- }
- function getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize) {
- var mediaZoom = getMediaZoom(mediaSize);
- return cropSize.height > cropSize.width ? cropSize.height / (croppedAreaPixels.height * mediaZoom) : cropSize.width / (croppedAreaPixels.width * mediaZoom);
- }
- function getInitialCropFromCroppedAreaPixels(croppedAreaPixels, mediaSize, rotation, cropSize, minZoom, maxZoom) {
- if (rotation === void 0) {
- rotation = 0;
+ const { Slot: Slot10 } = slotFill;
+ const slot = /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(Slot10, { ...props, bubblesVirtually: true, fillProps });
+ if (group === "default") {
+ return slot;
}
- var mediaNaturalBBoxSize = rotateSize(mediaSize.naturalWidth, mediaSize.naturalHeight, rotation);
- var zoom = clamp3(getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize), minZoom, maxZoom);
- var cropZoom = cropSize.height > cropSize.width ? cropSize.height / croppedAreaPixels.height : cropSize.width / croppedAreaPixels.width;
- var crop = {
- x: ((mediaNaturalBBoxSize.width - croppedAreaPixels.width) / 2 - croppedAreaPixels.x) * cropZoom,
- y: ((mediaNaturalBBoxSize.height - croppedAreaPixels.height) / 2 - croppedAreaPixels.y) * cropZoom
- };
- return {
- crop,
- zoom
- };
- }
- function getCenter(a2, b2) {
- return {
- x: (b2.x + a2.x) / 2,
- y: (b2.y + a2.y) / 2
- };
- }
- function getRadianAngle(degreeValue) {
- return degreeValue * Math.PI / 180;
+ return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(import_components78.ToolbarGroup, { children: slot });
}
- function rotateSize(width, height, rotation) {
- var rotRad = getRadianAngle(rotation);
- return {
- width: Math.abs(Math.cos(rotRad) * width) + Math.abs(Math.sin(rotRad) * height),
- height: Math.abs(Math.sin(rotRad) * width) + Math.abs(Math.cos(rotRad) * height)
- };
- }
- function clamp3(value, min2, max2) {
- return Math.min(Math.max(value, min2), max2);
- }
- function classNames() {
- var args = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- args[_i] = arguments[_i];
+
+ // packages/block-editor/build-module/components/block-controls/index.mjs
+ var import_jsx_runtime294 = __toESM(require_jsx_runtime(), 1);
+ var BlockControls = BlockControlsFill;
+ BlockControls.Slot = BlockControlsSlot;
+ var BlockFormatControls = (props) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(BlockControlsFill, { group: "inline", ...props });
+ };
+ BlockFormatControls.Slot = function Slot4(props) {
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(BlockControlsSlot, { group: "inline", ...props });
+ };
+ var block_controls_default = BlockControls;
+
+ // packages/block-editor/build-module/components/block-toolbar/block-toolbar-last-item.mjs
+ var import_components79 = __toESM(require_components(), 1);
+ var { Fill: __unstableBlockToolbarLastItem, Slot: Slot5 } = (0, import_components79.createSlotFill)(
+ "__unstableBlockToolbarLastItem"
+ );
+ __unstableBlockToolbarLastItem.Slot = Slot5;
+ var block_toolbar_last_item_default = __unstableBlockToolbarLastItem;
+
+ // packages/block-editor/build-module/components/block-settings-menu/index.mjs
+ var import_components95 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.mjs
+ var import_blocks65 = __toESM(require_blocks(), 1);
+ var import_components93 = __toESM(require_components(), 1);
+ var import_data107 = __toESM(require_data(), 1);
+ var import_element175 = __toESM(require_element(), 1);
+ var import_i18n91 = __toESM(require_i18n(), 1);
+ var import_keyboard_shortcuts7 = __toESM(require_keyboard_shortcuts(), 1);
+ var import_compose67 = __toESM(require_compose(), 1);
+
+ // packages/block-editor/build-module/components/block-actions/index.mjs
+ var import_data95 = __toESM(require_data(), 1);
+ var import_blocks57 = __toESM(require_blocks(), 1);
+
+ // packages/block-editor/build-module/components/use-paste-styles/index.mjs
+ var import_element168 = __toESM(require_element(), 1);
+ var import_blocks55 = __toESM(require_blocks(), 1);
+ var import_data94 = __toESM(require_data(), 1);
+ var import_notices8 = __toESM(require_notices(), 1);
+ var import_i18n80 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/hooks/supports.mjs
+ var import_blocks54 = __toESM(require_blocks(), 1);
+ var ALIGN_SUPPORT_KEY = "align";
+ var BORDER_SUPPORT_KEY = "__experimentalBorder";
+ var COLOR_SUPPORT_KEY = "color";
+ var CUSTOM_CLASS_NAME_SUPPORT_KEY = "customClassName";
+ var FONT_FAMILY_SUPPORT_KEY = "typography.__experimentalFontFamily";
+ var FONT_SIZE_SUPPORT_KEY = "typography.fontSize";
+ var LINE_HEIGHT_SUPPORT_KEY = "typography.lineHeight";
+ var FONT_STYLE_SUPPORT_KEY = "typography.__experimentalFontStyle";
+ var FONT_WEIGHT_SUPPORT_KEY = "typography.__experimentalFontWeight";
+ var TEXT_ALIGN_SUPPORT_KEY = "typography.textAlign";
+ var TEXT_COLUMNS_SUPPORT_KEY = "typography.textColumns";
+ var TEXT_DECORATION_SUPPORT_KEY = "typography.__experimentalTextDecoration";
+ var WRITING_MODE_SUPPORT_KEY = "typography.__experimentalWritingMode";
+ var TEXT_TRANSFORM_SUPPORT_KEY = "typography.__experimentalTextTransform";
+ var LETTER_SPACING_SUPPORT_KEY = "typography.__experimentalLetterSpacing";
+ var LAYOUT_SUPPORT_KEY = "layout";
+ var TYPOGRAPHY_SUPPORT_KEYS = [
+ LINE_HEIGHT_SUPPORT_KEY,
+ FONT_SIZE_SUPPORT_KEY,
+ FONT_STYLE_SUPPORT_KEY,
+ FONT_WEIGHT_SUPPORT_KEY,
+ FONT_FAMILY_SUPPORT_KEY,
+ TEXT_ALIGN_SUPPORT_KEY,
+ TEXT_COLUMNS_SUPPORT_KEY,
+ TEXT_DECORATION_SUPPORT_KEY,
+ TEXT_TRANSFORM_SUPPORT_KEY,
+ WRITING_MODE_SUPPORT_KEY,
+ LETTER_SPACING_SUPPORT_KEY
+ ];
+ var EFFECTS_SUPPORT_KEYS = ["shadow"];
+ var SPACING_SUPPORT_KEY = "spacing";
+ var styleSupportKeys = [
+ ...EFFECTS_SUPPORT_KEYS,
+ ...TYPOGRAPHY_SUPPORT_KEYS,
+ BORDER_SUPPORT_KEY,
+ COLOR_SUPPORT_KEY,
+ SPACING_SUPPORT_KEY
+ ];
+ var hasAlignSupport = (nameOrType) => (0, import_blocks54.hasBlockSupport)(nameOrType, ALIGN_SUPPORT_KEY);
+ function hasBorderSupport(nameOrType, feature = "any") {
+ const support = (0, import_blocks54.getBlockSupport)(nameOrType, BORDER_SUPPORT_KEY);
+ if (support === true) {
+ return true;
}
- return args.filter(function(value) {
- if (typeof value === "string" && value.length > 0) {
- return true;
+ if (feature === "any") {
+ return !!(support?.color || support?.radius || support?.width || support?.style);
+ }
+ return !!support?.[feature];
+ }
+ var hasGradientSupport = (nameOrType) => {
+ const colorSupport = (0, import_blocks54.getBlockSupport)(nameOrType, COLOR_SUPPORT_KEY);
+ return colorSupport !== null && typeof colorSupport === "object" && !!colorSupport.gradients;
+ };
+ var hasBackgroundColorSupport = (nameOrType) => {
+ const colorSupport = (0, import_blocks54.getBlockSupport)(nameOrType, COLOR_SUPPORT_KEY);
+ return colorSupport && colorSupport.background !== false;
+ };
+ var hasTextAlignSupport = (nameOrType) => (0, import_blocks54.hasBlockSupport)(nameOrType, TEXT_ALIGN_SUPPORT_KEY);
+ var hasTextColorSupport = (nameOrType) => {
+ const colorSupport = (0, import_blocks54.getBlockSupport)(nameOrType, COLOR_SUPPORT_KEY);
+ return colorSupport && colorSupport.text !== false;
+ };
+ var hasCustomClassNameSupport = (nameOrType) => (0, import_blocks54.hasBlockSupport)(nameOrType, CUSTOM_CLASS_NAME_SUPPORT_KEY, true);
+ var hasFontFamilySupport = (nameOrType) => (0, import_blocks54.hasBlockSupport)(nameOrType, FONT_FAMILY_SUPPORT_KEY);
+ var hasFontSizeSupport = (nameOrType) => (0, import_blocks54.hasBlockSupport)(nameOrType, FONT_SIZE_SUPPORT_KEY);
+ var hasLayoutSupport = (nameOrType) => (0, import_blocks54.hasBlockSupport)(nameOrType, LAYOUT_SUPPORT_KEY);
+ var hasStyleSupport = (nameOrType) => styleSupportKeys.some((key) => (0, import_blocks54.hasBlockSupport)(nameOrType, key));
+
+ // packages/block-editor/build-module/components/use-paste-styles/index.mjs
+ function hasSerializedBlocks(text) {
+ try {
+ const blocks2 = (0, import_blocks55.parse)(text, {
+ __unstableSkipMigrationLogs: true,
+ __unstableSkipAutop: true
+ });
+ if (blocks2.length === 1 && blocks2[0].name === "core/freeform") {
+ return false;
}
+ return true;
+ } catch {
return false;
- }).join(" ").trim();
+ }
}
- var css_248z = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n";
- var MIN_ZOOM = 1;
- var MAX_ZOOM = 3;
- var KEYBOARD_STEP = 1;
- var Cropper = (
- /** @class */
- (function(_super) {
- __extends(Cropper2, _super);
- function Cropper2() {
- var _this = _super !== null && _super.apply(this, arguments) || this;
- _this.cropperRef = React117.createRef();
- _this.imageRef = React117.createRef();
- _this.videoRef = React117.createRef();
- _this.containerPosition = {
- x: 0,
- y: 0
- };
- _this.containerRef = null;
- _this.styleRef = null;
- _this.containerRect = null;
- _this.mediaSize = {
- width: 0,
- height: 0,
- naturalWidth: 0,
- naturalHeight: 0
- };
- _this.dragStartPosition = {
- x: 0,
- y: 0
- };
- _this.dragStartCrop = {
- x: 0,
- y: 0
- };
- _this.gestureZoomStart = 0;
- _this.gestureRotationStart = 0;
- _this.isTouching = false;
- _this.lastPinchDistance = 0;
- _this.lastPinchRotation = 0;
- _this.rafDragTimeout = null;
- _this.rafPinchTimeout = null;
- _this.wheelTimer = null;
- _this.currentDoc = typeof document !== "undefined" ? document : null;
- _this.currentWindow = typeof window !== "undefined" ? window : null;
- _this.resizeObserver = null;
- _this.previousCropSize = null;
- _this.isInitialized = false;
- _this.state = {
- cropSize: null,
- hasWheelJustStarted: false,
- mediaObjectFit: void 0
- };
- _this.initResizeObserver = function() {
- if (typeof window.ResizeObserver === "undefined" || !_this.containerRef) {
+ var STYLE_ATTRIBUTES = {
+ align: hasAlignSupport,
+ borderColor: (nameOrType) => hasBorderSupport(nameOrType, "color"),
+ backgroundColor: hasBackgroundColorSupport,
+ textAlign: hasTextAlignSupport,
+ textColor: hasTextColorSupport,
+ gradient: hasGradientSupport,
+ className: hasCustomClassNameSupport,
+ fontFamily: hasFontFamilySupport,
+ fontSize: hasFontSizeSupport,
+ layout: hasLayoutSupport,
+ style: hasStyleSupport
+ };
+ function getStyleAttributes(sourceBlock, targetBlock) {
+ return Object.entries(STYLE_ATTRIBUTES).reduce(
+ (attributes, [attributeKey, hasSupport]) => {
+ if (hasSupport(sourceBlock.name) && hasSupport(targetBlock.name)) {
+ attributes[attributeKey] = sourceBlock.attributes[attributeKey];
+ }
+ return attributes;
+ },
+ {}
+ );
+ }
+ function recursivelyUpdateBlockAttributes(targetBlocks, sourceBlocks, updateBlockAttributes2) {
+ for (let index2 = 0; index2 < Math.min(sourceBlocks.length, targetBlocks.length); index2 += 1) {
+ updateBlockAttributes2(
+ targetBlocks[index2].clientId,
+ getStyleAttributes(sourceBlocks[index2], targetBlocks[index2])
+ );
+ recursivelyUpdateBlockAttributes(
+ targetBlocks[index2].innerBlocks,
+ sourceBlocks[index2].innerBlocks,
+ updateBlockAttributes2
+ );
+ }
+ }
+ function usePasteStyles() {
+ const registry = (0, import_data94.useRegistry)();
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data94.useDispatch)(store);
+ const { createSuccessNotice, createWarningNotice, createErrorNotice } = (0, import_data94.useDispatch)(import_notices8.store);
+ return (0, import_element168.useCallback)(
+ async (targetBlocks) => {
+ let html = "";
+ try {
+ if (!window.navigator.clipboard) {
+ createErrorNotice(
+ (0, import_i18n80.__)(
+ "Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."
+ ),
+ { type: "snackbar" }
+ );
return;
}
- var isFirstResize = true;
- _this.resizeObserver = new window.ResizeObserver(function(entries) {
- if (isFirstResize) {
- isFirstResize = false;
- return;
- }
- _this.computeSizes();
- });
- _this.resizeObserver.observe(_this.containerRef);
- };
- _this.preventZoomSafari = function(e2) {
- return e2.preventDefault();
- };
- _this.cleanEvents = function() {
- if (!_this.currentDoc) return;
- _this.currentDoc.removeEventListener("mousemove", _this.onMouseMove);
- _this.currentDoc.removeEventListener("mouseup", _this.onDragStopped);
- _this.currentDoc.removeEventListener("touchmove", _this.onTouchMove);
- _this.currentDoc.removeEventListener("touchend", _this.onDragStopped);
- _this.currentDoc.removeEventListener("gesturechange", _this.onGestureChange);
- _this.currentDoc.removeEventListener("gestureend", _this.onGestureEnd);
- _this.currentDoc.removeEventListener("scroll", _this.onScroll);
- };
- _this.clearScrollEvent = function() {
- if (_this.containerRef) _this.containerRef.removeEventListener("wheel", _this.onWheel);
- if (_this.wheelTimer) {
- clearTimeout(_this.wheelTimer);
- }
- };
- _this.onMediaLoad = function() {
- var cropSize = _this.computeSizes();
- if (cropSize) {
- _this.previousCropSize = cropSize;
- _this.emitCropData();
- _this.setInitialCrop(cropSize);
- _this.isInitialized = true;
- }
- if (_this.props.onMediaLoaded) {
- _this.props.onMediaLoaded(_this.mediaSize);
- }
- };
- _this.setInitialCrop = function(cropSize) {
- if (_this.props.initialCroppedAreaPercentages) {
- var _a = getInitialCropFromCroppedAreaPercentages(_this.props.initialCroppedAreaPercentages, _this.mediaSize, _this.props.rotation, cropSize, _this.props.minZoom, _this.props.maxZoom), crop = _a.crop, zoom = _a.zoom;
- _this.props.onCropChange(crop);
- _this.props.onZoomChange && _this.props.onZoomChange(zoom);
- } else if (_this.props.initialCroppedAreaPixels) {
- var _b = getInitialCropFromCroppedAreaPixels(_this.props.initialCroppedAreaPixels, _this.mediaSize, _this.props.rotation, cropSize, _this.props.minZoom, _this.props.maxZoom), crop = _b.crop, zoom = _b.zoom;
- _this.props.onCropChange(crop);
- _this.props.onZoomChange && _this.props.onZoomChange(zoom);
- }
- };
- _this.computeSizes = function() {
- var _a, _b, _c, _d, _e, _f;
- var mediaRef = _this.imageRef.current || _this.videoRef.current;
- if (mediaRef && _this.containerRef) {
- _this.containerRect = _this.containerRef.getBoundingClientRect();
- _this.saveContainerPosition();
- var containerAspect = _this.containerRect.width / _this.containerRect.height;
- var naturalWidth = ((_a = _this.imageRef.current) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = _this.videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0;
- var naturalHeight = ((_c = _this.imageRef.current) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = _this.videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0;
- var isMediaScaledDown = mediaRef.offsetWidth < naturalWidth || mediaRef.offsetHeight < naturalHeight;
- var mediaAspect = naturalWidth / naturalHeight;
- var renderedMediaSize = void 0;
- if (isMediaScaledDown) {
- switch (_this.state.mediaObjectFit) {
- default:
- case "contain":
- renderedMediaSize = containerAspect > mediaAspect ? {
- width: _this.containerRect.height * mediaAspect,
- height: _this.containerRect.height
- } : {
- width: _this.containerRect.width,
- height: _this.containerRect.width / mediaAspect
- };
- break;
- case "horizontal-cover":
- renderedMediaSize = {
- width: _this.containerRect.width,
- height: _this.containerRect.width / mediaAspect
- };
- break;
- case "vertical-cover":
- renderedMediaSize = {
- width: _this.containerRect.height * mediaAspect,
- height: _this.containerRect.height
- };
- break;
- }
- } else {
- renderedMediaSize = {
- width: mediaRef.offsetWidth,
- height: mediaRef.offsetHeight
- };
- }
- _this.mediaSize = __assign(__assign({}, renderedMediaSize), {
- naturalWidth,
- naturalHeight
- });
- if (_this.props.setMediaSize) {
- _this.props.setMediaSize(_this.mediaSize);
- }
- var cropSize = _this.props.cropSize ? _this.props.cropSize : getCropSize(_this.mediaSize.width, _this.mediaSize.height, _this.containerRect.width, _this.containerRect.height, _this.props.aspect, _this.props.rotation);
- if (((_e = _this.state.cropSize) === null || _e === void 0 ? void 0 : _e.height) !== cropSize.height || ((_f = _this.state.cropSize) === null || _f === void 0 ? void 0 : _f.width) !== cropSize.width) {
- _this.props.onCropSizeChange && _this.props.onCropSizeChange(cropSize);
+ html = await window.navigator.clipboard.readText();
+ } catch {
+ createErrorNotice(
+ (0, import_i18n80.__)(
+ "Unable to paste styles. Please allow browser clipboard permissions before continuing."
+ ),
+ {
+ type: "snackbar"
}
- _this.setState({
- cropSize
- }, _this.recomputeCropPosition);
- if (_this.props.setCropSize) {
- _this.props.setCropSize(cropSize);
+ );
+ return;
+ }
+ if (!html || !hasSerializedBlocks(html)) {
+ createWarningNotice(
+ (0, import_i18n80.__)(
+ "Unable to paste styles. Block styles couldn't be found within the copied content."
+ ),
+ {
+ type: "snackbar"
}
- return cropSize;
- }
- };
- _this.saveContainerPosition = function() {
- if (_this.containerRef) {
- var bounds = _this.containerRef.getBoundingClientRect();
- _this.containerPosition = {
- x: bounds.left,
- y: bounds.top
- };
- }
- };
- _this.onMouseDown = function(e2) {
- if (!_this.currentDoc) return;
- e2.preventDefault();
- _this.currentDoc.addEventListener("mousemove", _this.onMouseMove);
- _this.currentDoc.addEventListener("mouseup", _this.onDragStopped);
- _this.saveContainerPosition();
- _this.onDragStart(Cropper2.getMousePoint(e2));
- };
- _this.onMouseMove = function(e2) {
- return _this.onDrag(Cropper2.getMousePoint(e2));
- };
- _this.onScroll = function(e2) {
- if (!_this.currentDoc) return;
- e2.preventDefault();
- _this.saveContainerPosition();
- };
- _this.onTouchStart = function(e2) {
- if (!_this.currentDoc) return;
- _this.isTouching = true;
- if (_this.props.onTouchRequest && !_this.props.onTouchRequest(e2)) {
- return;
- }
- _this.currentDoc.addEventListener("touchmove", _this.onTouchMove, {
- passive: false
+ );
+ return;
+ }
+ const copiedBlocks = (0, import_blocks55.parse)(html);
+ if (copiedBlocks.length === 1) {
+ registry.batch(() => {
+ recursivelyUpdateBlockAttributes(
+ targetBlocks,
+ targetBlocks.map(() => copiedBlocks[0]),
+ updateBlockAttributes2
+ );
});
- _this.currentDoc.addEventListener("touchend", _this.onDragStopped);
- _this.saveContainerPosition();
- if (e2.touches.length === 2) {
- _this.onPinchStart(e2);
- } else if (e2.touches.length === 1) {
- _this.onDragStart(Cropper2.getTouchPoint(e2.touches[0]));
- }
- };
- _this.onTouchMove = function(e2) {
- e2.preventDefault();
- if (e2.touches.length === 2) {
- _this.onPinchMove(e2);
- } else if (e2.touches.length === 1) {
- _this.onDrag(Cropper2.getTouchPoint(e2.touches[0]));
- }
- };
- _this.onGestureStart = function(e2) {
- if (!_this.currentDoc) return;
- e2.preventDefault();
- _this.currentDoc.addEventListener("gesturechange", _this.onGestureChange);
- _this.currentDoc.addEventListener("gestureend", _this.onGestureEnd);
- _this.gestureZoomStart = _this.props.zoom;
- _this.gestureRotationStart = _this.props.rotation;
- };
- _this.onGestureChange = function(e2) {
- e2.preventDefault();
- if (_this.isTouching) {
- return;
- }
- var point = Cropper2.getMousePoint(e2);
- var newZoom = _this.gestureZoomStart - 1 + e2.scale;
- _this.setNewZoom(newZoom, point, {
- shouldUpdatePosition: true
+ } else {
+ registry.batch(() => {
+ recursivelyUpdateBlockAttributes(
+ targetBlocks,
+ copiedBlocks,
+ updateBlockAttributes2
+ );
});
- if (_this.props.onRotationChange) {
- var newRotation = _this.gestureRotationStart + e2.rotation;
- _this.props.onRotationChange(newRotation);
- }
- };
- _this.onGestureEnd = function(e2) {
- _this.cleanEvents();
+ }
+ if (targetBlocks.length === 1) {
+ const title = (0, import_blocks55.getBlockType)(targetBlocks[0].name)?.title;
+ createSuccessNotice(
+ (0, import_i18n80.sprintf)(
+ // Translators: %s: Name of the block being pasted, e.g. "Paragraph".
+ (0, import_i18n80.__)("Pasted styles to %s."),
+ title
+ ),
+ { type: "snackbar" }
+ );
+ } else {
+ createSuccessNotice(
+ (0, import_i18n80.sprintf)(
+ // Translators: %d: The number of the blocks.
+ (0, import_i18n80.__)("Pasted styles to %d blocks."),
+ targetBlocks.length
+ ),
+ { type: "snackbar" }
+ );
+ }
+ },
+ [
+ registry.batch,
+ updateBlockAttributes2,
+ createSuccessNotice,
+ createWarningNotice,
+ createErrorNotice
+ ]
+ );
+ }
+
+ // packages/block-editor/build-module/utils/group-blocks.mjs
+ var import_blocks56 = __toESM(require_blocks(), 1);
+ function groupBlocks(blocks2, groupingBlockName) {
+ const groupingBlockTransform = (0, import_blocks56.findTransform)(
+ (0, import_blocks56.getBlockTransforms)("from", groupingBlockName),
+ (transform) => transform.type === "block" && transform.isMultiBlock && transform.blocks.includes("*")
+ );
+ if (groupingBlockTransform?.__experimentalConvert) {
+ const result = groupingBlockTransform.__experimentalConvert(blocks2);
+ return Array.isArray(result) ? result : [result];
+ }
+ return (0, import_blocks56.switchToBlockType)(blocks2, groupingBlockName);
+ }
+
+ // packages/block-editor/build-module/components/block-actions/index.mjs
+ function BlockActions({
+ clientIds,
+ children,
+ __experimentalUpdateSelection: updateSelection
+ }) {
+ const { getDefaultBlockName: getDefaultBlockName8, getGroupingBlockName } = (0, import_data95.useSelect)(import_blocks57.store);
+ const selected = (0, import_data95.useSelect)(
+ (select3) => {
+ const {
+ canInsertBlockType: canInsertBlockType2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlocksByClientId: getBlocksByClientId22,
+ getDirectInsertBlock: getDirectInsertBlock2,
+ canRemoveBlocks: canRemoveBlocks2
+ } = select3(store);
+ const blocks2 = getBlocksByClientId22(clientIds);
+ const rootClientId = getBlockRootClientId2(clientIds[0]);
+ const canInsertDefaultBlock = canInsertBlockType2(
+ getDefaultBlockName8(),
+ rootClientId
+ );
+ const directInsertBlock = rootClientId ? getDirectInsertBlock2(rootClientId) : null;
+ return {
+ canRemove: canRemoveBlocks2(clientIds),
+ canInsertBlock: blocks2.every((block) => {
+ return (canInsertDefaultBlock || !!directInsertBlock) && canInsertBlockType2(block.name, rootClientId);
+ }),
+ canCopyStyles: blocks2.every((block) => {
+ return !!block && ((0, import_blocks57.hasBlockSupport)(block.name, "color") || (0, import_blocks57.hasBlockSupport)(block.name, "typography"));
+ }),
+ canDuplicate: blocks2.every((block) => {
+ return !!block && (0, import_blocks57.hasBlockSupport)(block.name, "multiple", true) && canInsertBlockType2(block.name, rootClientId);
+ })
};
- _this.onDragStart = function(_a) {
- var _b, _c;
- var x2 = _a.x, y2 = _a.y;
- _this.dragStartPosition = {
- x: x2,
- y: y2
- };
- _this.dragStartCrop = __assign({}, _this.props.crop);
- (_c = (_b = _this.props).onInteractionStart) === null || _c === void 0 ? void 0 : _c.call(_b);
- };
- _this.onDrag = function(_a) {
- var x2 = _a.x, y2 = _a.y;
- if (!_this.currentWindow) return;
- if (_this.rafDragTimeout) _this.currentWindow.cancelAnimationFrame(_this.rafDragTimeout);
- _this.rafDragTimeout = _this.currentWindow.requestAnimationFrame(function() {
- if (!_this.state.cropSize) return;
- if (x2 === void 0 || y2 === void 0) return;
- var offsetX = x2 - _this.dragStartPosition.x;
- var offsetY = y2 - _this.dragStartPosition.y;
- var requestedPosition = {
- x: _this.dragStartCrop.x + offsetX,
- y: _this.dragStartCrop.y + offsetY
- };
- var newPosition = _this.props.restrictPosition ? restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : requestedPosition;
- _this.props.onCropChange(newPosition);
- });
- };
- _this.onDragStopped = function() {
- var _a, _b;
- _this.isTouching = false;
- _this.cleanEvents();
- _this.emitCropData();
- (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
- };
- _this.onWheel = function(e2) {
- if (!_this.currentWindow) return;
- if (_this.props.onWheelRequest && !_this.props.onWheelRequest(e2)) {
- return;
- }
- e2.preventDefault();
- var point = Cropper2.getMousePoint(e2);
- var pixelY = (0, import_normalize_wheel.default)(e2).pixelY;
- var newZoom = _this.props.zoom - pixelY * _this.props.zoomSpeed / 200;
- _this.setNewZoom(newZoom, point, {
- shouldUpdatePosition: true
- });
- if (!_this.state.hasWheelJustStarted) {
- _this.setState({
- hasWheelJustStarted: true
- }, function() {
- var _a, _b;
- return (_b = (_a = _this.props).onInteractionStart) === null || _b === void 0 ? void 0 : _b.call(_a);
- });
- }
- if (_this.wheelTimer) {
- clearTimeout(_this.wheelTimer);
- }
- _this.wheelTimer = _this.currentWindow.setTimeout(function() {
- return _this.setState({
- hasWheelJustStarted: false
- }, function() {
- var _a, _b;
- return (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
- });
- }, 250);
- };
- _this.getPointOnContainer = function(_a, containerTopLeft) {
- var x2 = _a.x, y2 = _a.y;
- if (!_this.containerRect) {
- throw new Error("The Cropper is not mounted");
- }
- return {
- x: _this.containerRect.width / 2 - (x2 - containerTopLeft.x),
- y: _this.containerRect.height / 2 - (y2 - containerTopLeft.y)
- };
- };
- _this.getPointOnMedia = function(_a) {
- var x2 = _a.x, y2 = _a.y;
- var _b = _this.props, crop = _b.crop, zoom = _b.zoom;
- return {
- x: (x2 + crop.x) / zoom,
- y: (y2 + crop.y) / zoom
- };
- };
- _this.setNewZoom = function(zoom, point, _a) {
- var _b = _a === void 0 ? {} : _a, _c = _b.shouldUpdatePosition, shouldUpdatePosition = _c === void 0 ? true : _c;
- if (!_this.state.cropSize || !_this.props.onZoomChange) return;
- var newZoom = clamp3(zoom, _this.props.minZoom, _this.props.maxZoom);
- if (shouldUpdatePosition) {
- var zoomPoint = _this.getPointOnContainer(point, _this.containerPosition);
- var zoomTarget = _this.getPointOnMedia(zoomPoint);
- var requestedPosition = {
- x: zoomTarget.x * newZoom - zoomPoint.x,
- y: zoomTarget.y * newZoom - zoomPoint.y
- };
- var newPosition = _this.props.restrictPosition ? restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, newZoom, _this.props.rotation) : requestedPosition;
- _this.props.onCropChange(newPosition);
- }
- _this.props.onZoomChange(newZoom);
- };
- _this.getCropData = function() {
- if (!_this.state.cropSize) {
- return null;
- }
- var restrictedPosition = _this.props.restrictPosition ? restrictPosition(_this.props.crop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : _this.props.crop;
- return computeCroppedArea(restrictedPosition, _this.mediaSize, _this.state.cropSize, _this.getAspect(), _this.props.zoom, _this.props.rotation, _this.props.restrictPosition);
- };
- _this.emitCropData = function() {
- var cropData = _this.getCropData();
- if (!cropData) return;
- var croppedAreaPercentages = cropData.croppedAreaPercentages, croppedAreaPixels = cropData.croppedAreaPixels;
- if (_this.props.onCropComplete) {
- _this.props.onCropComplete(croppedAreaPercentages, croppedAreaPixels);
- }
- if (_this.props.onCropAreaChange) {
- _this.props.onCropAreaChange(croppedAreaPercentages, croppedAreaPixels);
- }
- };
- _this.emitCropAreaChange = function() {
- var cropData = _this.getCropData();
- if (!cropData) return;
- var croppedAreaPercentages = cropData.croppedAreaPercentages, croppedAreaPixels = cropData.croppedAreaPixels;
- if (_this.props.onCropAreaChange) {
- _this.props.onCropAreaChange(croppedAreaPercentages, croppedAreaPixels);
- }
- };
- _this.recomputeCropPosition = function() {
- if (!_this.state.cropSize) return;
- var adjustedCrop = _this.props.crop;
- if (_this.isInitialized && _this.previousCropSize) {
- var sizeChanged = Math.abs(_this.previousCropSize.width - _this.state.cropSize.width) > 1e-6 || Math.abs(_this.previousCropSize.height - _this.state.cropSize.height) > 1e-6;
- if (sizeChanged) {
- var scaleX = _this.state.cropSize.width / _this.previousCropSize.width;
- var scaleY = _this.state.cropSize.height / _this.previousCropSize.height;
- adjustedCrop = {
- x: _this.props.crop.x * scaleX,
- y: _this.props.crop.y * scaleY
- };
- }
- }
- var newPosition = _this.props.restrictPosition ? restrictPosition(adjustedCrop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : adjustedCrop;
- _this.previousCropSize = _this.state.cropSize;
- _this.props.onCropChange(newPosition);
- _this.emitCropData();
- };
- _this.onKeyDown = function(event) {
- var _a, _b;
- var _c = _this.props, crop = _c.crop, onCropChange = _c.onCropChange, keyboardStep = _c.keyboardStep, zoom = _c.zoom, rotation = _c.rotation;
- var step = keyboardStep;
- if (!_this.state.cropSize) return;
- if (event.shiftKey) {
- step *= 0.2;
- }
- var newCrop = __assign({}, crop);
- switch (event.key) {
- case "ArrowUp":
- newCrop.y -= step;
- event.preventDefault();
- break;
- case "ArrowDown":
- newCrop.y += step;
- event.preventDefault();
- break;
- case "ArrowLeft":
- newCrop.x -= step;
- event.preventDefault();
- break;
- case "ArrowRight":
- newCrop.x += step;
- event.preventDefault();
- break;
- default:
- return;
- }
- if (_this.props.restrictPosition) {
- newCrop = restrictPosition(newCrop, _this.mediaSize, _this.state.cropSize, zoom, rotation);
- }
- if (!event.repeat) {
- (_b = (_a = _this.props).onInteractionStart) === null || _b === void 0 ? void 0 : _b.call(_a);
- }
- onCropChange(newCrop);
- };
- _this.onKeyUp = function(event) {
- var _a, _b;
- switch (event.key) {
- case "ArrowUp":
- case "ArrowDown":
- case "ArrowLeft":
- case "ArrowRight":
- event.preventDefault();
- break;
- default:
- return;
- }
- _this.emitCropData();
- (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
- };
- return _this;
- }
- Cropper2.prototype.componentDidMount = function() {
- if (!this.currentDoc || !this.currentWindow) return;
- if (this.containerRef) {
- if (this.containerRef.ownerDocument) {
- this.currentDoc = this.containerRef.ownerDocument;
- }
- if (this.currentDoc.defaultView) {
- this.currentWindow = this.currentDoc.defaultView;
- }
- this.initResizeObserver();
- if (typeof window.ResizeObserver === "undefined") {
- this.currentWindow.addEventListener("resize", this.computeSizes);
- }
- this.props.zoomWithScroll && this.containerRef.addEventListener("wheel", this.onWheel, {
- passive: false
- });
- this.containerRef.addEventListener("gesturestart", this.onGestureStart);
- }
- this.currentDoc.addEventListener("scroll", this.onScroll);
- if (!this.props.disableAutomaticStylesInjection) {
- this.styleRef = this.currentDoc.createElement("style");
- this.styleRef.setAttribute("type", "text/css");
- if (this.props.nonce) {
- this.styleRef.setAttribute("nonce", this.props.nonce);
- }
- this.styleRef.innerHTML = css_248z;
- this.currentDoc.head.appendChild(this.styleRef);
+ },
+ [clientIds, getDefaultBlockName8]
+ );
+ const { getBlocksByClientId: getBlocksByClientId2, getBlocks: getBlocks2 } = (0, import_data95.useSelect)(store);
+ const { canRemove, canInsertBlock, canCopyStyles, canDuplicate } = selected;
+ const {
+ removeBlocks: removeBlocks2,
+ replaceBlocks: replaceBlocks2,
+ duplicateBlocks: duplicateBlocks2,
+ insertAfterBlock: insertAfterBlock2,
+ insertBeforeBlock: insertBeforeBlock2,
+ flashBlock: flashBlock2
+ } = (0, import_data95.useDispatch)(store);
+ const pasteStyles = usePasteStyles();
+ return children({
+ canCopyStyles,
+ canDuplicate,
+ canInsertBlock,
+ canRemove,
+ onDuplicate() {
+ return duplicateBlocks2(clientIds, updateSelection);
+ },
+ onRemove() {
+ return removeBlocks2(clientIds, updateSelection);
+ },
+ onInsertBefore() {
+ insertBeforeBlock2(clientIds[0]);
+ },
+ onInsertAfter() {
+ insertAfterBlock2(clientIds[clientIds.length - 1]);
+ },
+ onGroup() {
+ if (!clientIds.length) {
+ return;
}
- if (this.imageRef.current && this.imageRef.current.complete) {
- this.onMediaLoad();
+ const groupingBlockName = getGroupingBlockName();
+ const newBlocks = groupBlocks(
+ getBlocksByClientId2(clientIds),
+ groupingBlockName
+ );
+ if (!newBlocks) {
+ return;
}
- if (this.props.setImageRef) {
- this.props.setImageRef(this.imageRef);
+ replaceBlocks2(clientIds, newBlocks);
+ },
+ onUngroup() {
+ if (!clientIds.length) {
+ return;
}
- if (this.props.setVideoRef) {
- this.props.setVideoRef(this.videoRef);
+ const innerBlocks = getBlocks2(clientIds[0]);
+ if (!innerBlocks.length) {
+ return;
}
- if (this.props.setCropperRef) {
- this.props.setCropperRef(this.cropperRef);
+ replaceBlocks2(clientIds, innerBlocks);
+ },
+ onCopy() {
+ if (clientIds.length === 1) {
+ flashBlock2(clientIds[0]);
}
- };
- Cropper2.prototype.componentWillUnmount = function() {
- var _a, _b;
- if (!this.currentDoc || !this.currentWindow) return;
- if (typeof window.ResizeObserver === "undefined") {
- this.currentWindow.removeEventListener("resize", this.computeSizes);
+ },
+ async onPasteStyles() {
+ await pasteStyles(getBlocksByClientId2(clientIds));
+ }
+ });
+ }
+
+ // packages/block-editor/build-module/components/collab/note-icon-slot.mjs
+ var import_components80 = __toESM(require_components(), 1);
+ var NoteIconSlotFill = (0, import_components80.createSlotFill)(/* @__PURE__ */ Symbol("NoteIconSlotFill"));
+ var note_icon_slot_default = NoteIconSlotFill;
+
+ // packages/block-editor/build-module/components/block-settings-menu/block-html-convert-button.mjs
+ var import_i18n81 = __toESM(require_i18n(), 1);
+ var import_components81 = __toESM(require_components(), 1);
+ var import_blocks58 = __toESM(require_blocks(), 1);
+ var import_data96 = __toESM(require_data(), 1);
+ var import_jsx_runtime295 = __toESM(require_jsx_runtime(), 1);
+ function BlockHTMLConvertButton({ clientId }) {
+ const block = (0, import_data96.useSelect)(
+ (select3) => select3(store).getBlock(clientId),
+ [clientId]
+ );
+ const { replaceBlocks: replaceBlocks2 } = (0, import_data96.useDispatch)(store);
+ if (!block || block.name !== "core/html") {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
+ import_components81.MenuItem,
+ {
+ onClick: () => replaceBlocks2(
+ clientId,
+ (0, import_blocks58.rawHandler)({ HTML: (0, import_blocks58.getBlockContent)(block) })
+ ),
+ children: (0, import_i18n81.__)("Convert to Blocks")
+ }
+ );
+ }
+ var block_html_convert_button_default = BlockHTMLConvertButton;
+
+ // packages/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.mjs
+ var import_components82 = __toESM(require_components(), 1);
+ var { Fill: __unstableBlockSettingsMenuFirstItem, Slot: Slot6 } = (0, import_components82.createSlotFill)(
+ "__unstableBlockSettingsMenuFirstItem"
+ );
+ __unstableBlockSettingsMenuFirstItem.Slot = Slot6;
+ var block_settings_menu_first_item_default = __unstableBlockSettingsMenuFirstItem;
+
+ // packages/block-editor/build-module/components/block-settings-menu-controls/index.mjs
+ var import_components91 = __toESM(require_components(), 1);
+ var import_blocks64 = __toESM(require_blocks(), 1);
+ var import_data105 = __toESM(require_data(), 1);
+
+ // packages/block-editor/build-module/components/convert-to-group-buttons/index.mjs
+ var import_components84 = __toESM(require_components(), 1);
+ var import_i18n83 = __toESM(require_i18n(), 1);
+ var import_data99 = __toESM(require_data(), 1);
+ var import_keycodes11 = __toESM(require_keycodes(), 1);
+
+ // packages/block-editor/build-module/components/convert-to-group-buttons/use-convert-to-group-button-props.mjs
+ var import_blocks59 = __toESM(require_blocks(), 1);
+ var import_data97 = __toESM(require_data(), 1);
+ function useConvertToGroupButtonProps(selectedClientIds) {
+ return (0, import_data97.useSelect)(
+ (select3) => {
+ const {
+ getBlocksByClientId: getBlocksByClientId2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ isUngroupable: isUngroupable2,
+ isGroupable: isGroupable2
+ } = select3(store);
+ const { getGroupingBlockName, getBlockType: getBlockType33 } = select3(import_blocks59.store);
+ const clientIds = selectedClientIds?.length ? selectedClientIds : getSelectedBlockClientIds2();
+ const blocksSelection = getBlocksByClientId2(clientIds);
+ const [firstSelectedBlock] = blocksSelection;
+ const _isUngroupable = clientIds.length === 1 && isUngroupable2(clientIds[0]);
+ return {
+ clientIds,
+ isGroupable: isGroupable2(clientIds),
+ isUngroupable: _isUngroupable,
+ blocksSelection,
+ groupingBlockName: getGroupingBlockName(),
+ onUngroup: _isUngroupable && getBlockType33(firstSelectedBlock.name)?.transforms?.ungroup
+ };
+ },
+ [selectedClientIds]
+ );
+ }
+
+ // packages/block-editor/build-module/components/convert-to-group-buttons/toolbar.mjs
+ var import_data98 = __toESM(require_data(), 1);
+ var import_blocks60 = __toESM(require_blocks(), 1);
+ var import_components83 = __toESM(require_components(), 1);
+ var import_i18n82 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime296 = __toESM(require_jsx_runtime(), 1);
+ var layouts = {
+ group: { type: "constrained" },
+ row: { type: "flex", flexWrap: "nowrap" },
+ stack: { type: "flex", orientation: "vertical" },
+ grid: { type: "grid" }
+ };
+ function BlockGroupToolbar() {
+ const { blocksSelection, clientIds, groupingBlockName, isGroupable: isGroupable2 } = useConvertToGroupButtonProps();
+ const { replaceBlocks: replaceBlocks2 } = (0, import_data98.useDispatch)(store);
+ const { canRemove, variations } = (0, import_data98.useSelect)(
+ (select3) => {
+ const { canRemoveBlocks: canRemoveBlocks2 } = select3(store);
+ const { getBlockVariations: getBlockVariations2 } = select3(import_blocks60.store);
+ return {
+ canRemove: canRemoveBlocks2(clientIds),
+ variations: getBlockVariations2(
+ groupingBlockName,
+ "transform"
+ )
+ };
+ },
+ [clientIds, groupingBlockName]
+ );
+ const onConvertToGroup = (layout) => {
+ const newBlocks = groupBlocks(blocksSelection, groupingBlockName);
+ if (typeof layout !== "string") {
+ layout = "group";
+ }
+ if (newBlocks && newBlocks.length > 0) {
+ newBlocks[0].attributes.layout = layouts[layout];
+ replaceBlocks2(clientIds, newBlocks);
+ }
+ };
+ const onConvertToRow = () => onConvertToGroup("row");
+ const onConvertToStack = () => onConvertToGroup("stack");
+ const onConvertToGrid = () => onConvertToGroup("grid");
+ if (!isGroupable2 || !canRemove) {
+ return null;
+ }
+ const canInsertRow = !!variations.find(
+ ({ name }) => name === "group-row"
+ );
+ const canInsertStack = !!variations.find(
+ ({ name }) => name === "group-stack"
+ );
+ const canInsertGrid = !!variations.find(
+ ({ name }) => name === "group-grid"
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(import_components83.ToolbarGroup, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
+ import_components83.ToolbarButton,
+ {
+ icon: group_default,
+ label: (0, import_i18n82._x)("Group", "action: convert blocks to group"),
+ onClick: onConvertToGroup
}
- (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
- if (this.containerRef) {
- this.containerRef.removeEventListener("gesturestart", this.preventZoomSafari);
+ ),
+ canInsertRow && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
+ import_components83.ToolbarButton,
+ {
+ icon: row_default,
+ label: (0, import_i18n82._x)("Row", "action: convert blocks to row"),
+ onClick: onConvertToRow
}
- if (this.styleRef) {
- (_b = this.styleRef.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(this.styleRef);
+ ),
+ canInsertStack && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
+ import_components83.ToolbarButton,
+ {
+ icon: stack_default,
+ label: (0, import_i18n82._x)("Stack", "action: convert blocks to stack"),
+ onClick: onConvertToStack
}
- this.cleanEvents();
- this.props.zoomWithScroll && this.clearScrollEvent();
- };
- Cropper2.prototype.componentDidUpdate = function(prevProps) {
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
- if (prevProps.rotation !== this.props.rotation) {
- this.computeSizes();
- this.recomputeCropPosition();
- } else if (prevProps.aspect !== this.props.aspect) {
- this.computeSizes();
- } else if (prevProps.objectFit !== this.props.objectFit) {
- this.computeSizes();
- } else if (prevProps.zoom !== this.props.zoom) {
- this.recomputeCropPosition();
- } else if (((_a = prevProps.cropSize) === null || _a === void 0 ? void 0 : _a.height) !== ((_b = this.props.cropSize) === null || _b === void 0 ? void 0 : _b.height) || ((_c = prevProps.cropSize) === null || _c === void 0 ? void 0 : _c.width) !== ((_d = this.props.cropSize) === null || _d === void 0 ? void 0 : _d.width)) {
- this.computeSizes();
- } else if (((_e = prevProps.crop) === null || _e === void 0 ? void 0 : _e.x) !== ((_f = this.props.crop) === null || _f === void 0 ? void 0 : _f.x) || ((_g = prevProps.crop) === null || _g === void 0 ? void 0 : _g.y) !== ((_h = this.props.crop) === null || _h === void 0 ? void 0 : _h.y)) {
- this.emitCropAreaChange();
+ ),
+ canInsertGrid && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
+ import_components83.ToolbarButton,
+ {
+ icon: grid_default,
+ label: (0, import_i18n82._x)("Grid", "action: convert blocks to grid"),
+ onClick: onConvertToGrid
}
- if (prevProps.zoomWithScroll !== this.props.zoomWithScroll && this.containerRef) {
- this.props.zoomWithScroll ? this.containerRef.addEventListener("wheel", this.onWheel, {
- passive: false
- }) : this.clearScrollEvent();
+ )
+ ] });
+ }
+ var toolbar_default = BlockGroupToolbar;
+
+ // packages/block-editor/build-module/components/convert-to-group-buttons/index.mjs
+ var import_jsx_runtime297 = __toESM(require_jsx_runtime(), 1);
+ function ConvertToGroupButton({
+ clientIds,
+ isGroupable: isGroupable2,
+ isUngroupable: isUngroupable2,
+ onUngroup,
+ blocksSelection,
+ groupingBlockName,
+ onClose = () => {
+ }
+ }) {
+ const { getSelectedBlockClientIds: getSelectedBlockClientIds2 } = (0, import_data99.useSelect)(store);
+ const { replaceBlocks: replaceBlocks2 } = (0, import_data99.useDispatch)(store);
+ const onConvertToGroup = () => {
+ const newBlocks = groupBlocks(blocksSelection, groupingBlockName);
+ if (newBlocks) {
+ replaceBlocks2(clientIds, newBlocks);
+ }
+ };
+ const onConvertFromGroup = () => {
+ let innerBlocks = blocksSelection[0].innerBlocks;
+ if (!innerBlocks.length) {
+ return;
+ }
+ if (onUngroup) {
+ innerBlocks = onUngroup(
+ blocksSelection[0].attributes,
+ blocksSelection[0].innerBlocks
+ );
+ }
+ replaceBlocks2(clientIds, innerBlocks);
+ };
+ if (!isGroupable2 && !isUngroupable2) {
+ return null;
+ }
+ const selectedBlockClientIds = getSelectedBlockClientIds2();
+ return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(import_jsx_runtime297.Fragment, { children: [
+ isGroupable2 && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
+ import_components84.MenuItem,
+ {
+ shortcut: selectedBlockClientIds.length > 1 ? import_keycodes11.displayShortcut.primary("g") : void 0,
+ onClick: () => {
+ onConvertToGroup();
+ onClose();
+ },
+ children: (0, import_i18n83._x)("Group", "verb")
}
- if (prevProps.video !== this.props.video) {
- (_j = this.videoRef.current) === null || _j === void 0 ? void 0 : _j.load();
+ ),
+ isUngroupable2 && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
+ import_components84.MenuItem,
+ {
+ onClick: () => {
+ onConvertFromGroup();
+ onClose();
+ },
+ children: (0, import_i18n83._x)(
+ "Ungroup",
+ "Ungrouping blocks from within a grouping block back into individual blocks within the Editor"
+ )
}
- var objectFit = this.getObjectFit();
- if (objectFit !== this.state.mediaObjectFit) {
- this.setState({
- mediaObjectFit: objectFit
- }, this.computeSizes);
- }
- };
- Cropper2.prototype.getAspect = function() {
- var _a = this.props, cropSize = _a.cropSize, aspect = _a.aspect;
- if (cropSize) {
- return cropSize.width / cropSize.height;
- }
- return aspect;
- };
- Cropper2.prototype.getObjectFit = function() {
- var _a, _b, _c, _d;
- if (this.props.objectFit === "cover") {
- var mediaRef = this.imageRef.current || this.videoRef.current;
- if (mediaRef && this.containerRef) {
- this.containerRect = this.containerRef.getBoundingClientRect();
- var containerAspect = this.containerRect.width / this.containerRect.height;
- var naturalWidth = ((_a = this.imageRef.current) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = this.videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0;
- var naturalHeight = ((_c = this.imageRef.current) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = this.videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0;
- var mediaAspect = naturalWidth / naturalHeight;
- return mediaAspect < containerAspect ? "horizontal-cover" : "vertical-cover";
- }
- return "horizontal-cover";
- }
- return this.props.objectFit;
- };
- Cropper2.prototype.onPinchStart = function(e2) {
- var pointA = Cropper2.getTouchPoint(e2.touches[0]);
- var pointB = Cropper2.getTouchPoint(e2.touches[1]);
- this.lastPinchDistance = getDistanceBetweenPoints(pointA, pointB);
- this.lastPinchRotation = getRotationBetweenPoints(pointA, pointB);
- this.onDragStart(getCenter(pointA, pointB));
- };
- Cropper2.prototype.onPinchMove = function(e2) {
- var _this = this;
- if (!this.currentDoc || !this.currentWindow) return;
- var pointA = Cropper2.getTouchPoint(e2.touches[0]);
- var pointB = Cropper2.getTouchPoint(e2.touches[1]);
- var center = getCenter(pointA, pointB);
- this.onDrag(center);
- if (this.rafPinchTimeout) this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout);
- this.rafPinchTimeout = this.currentWindow.requestAnimationFrame(function() {
- var distance = getDistanceBetweenPoints(pointA, pointB);
- var newZoom = _this.props.zoom * (distance / _this.lastPinchDistance);
- _this.setNewZoom(newZoom, center, {
- shouldUpdatePosition: false
- });
- _this.lastPinchDistance = distance;
- var rotation = getRotationBetweenPoints(pointA, pointB);
- var newRotation = _this.props.rotation + (rotation - _this.lastPinchRotation);
- _this.props.onRotationChange && _this.props.onRotationChange(newRotation);
- _this.lastPinchRotation = rotation;
- });
- };
- Cropper2.prototype.render = function() {
- var _this = this;
- var _a;
- var _b = this.props, image = _b.image, video = _b.video, mediaProps = _b.mediaProps, cropperProps = _b.cropperProps, transform = _b.transform, _c = _b.crop, x2 = _c.x, y2 = _c.y, rotation = _b.rotation, zoom = _b.zoom, cropShape = _b.cropShape, showGrid = _b.showGrid, roundCropAreaPixels = _b.roundCropAreaPixels, _d = _b.style, containerStyle = _d.containerStyle, cropAreaStyle = _d.cropAreaStyle, mediaStyle = _d.mediaStyle, _e = _b.classes, containerClassName = _e.containerClassName, cropAreaClassName = _e.cropAreaClassName, mediaClassName = _e.mediaClassName;
- var objectFit = (_a = this.state.mediaObjectFit) !== null && _a !== void 0 ? _a : this.getObjectFit();
- return React117.createElement("div", {
- onMouseDown: this.onMouseDown,
- onTouchStart: this.onTouchStart,
- ref: function ref(el) {
- return _this.containerRef = el;
- },
- "data-testid": "container",
- style: containerStyle,
- className: classNames("reactEasyCrop_Container", containerClassName)
- }, image ? React117.createElement("img", __assign({
- alt: "",
- className: classNames("reactEasyCrop_Image", objectFit === "contain" && "reactEasyCrop_Contain", objectFit === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", objectFit === "vertical-cover" && "reactEasyCrop_Cover_Vertical", mediaClassName)
- }, mediaProps, {
- src: image,
- ref: this.imageRef,
- style: __assign(__assign({}, mediaStyle), {
- transform: transform || "translate(".concat(x2, "px, ").concat(y2, "px) rotate(").concat(rotation, "deg) scale(").concat(zoom, ")")
- }),
- onLoad: this.onMediaLoad
- })) : video && React117.createElement("video", __assign({
- autoPlay: true,
- playsInline: true,
- loop: true,
- muted: true,
- className: classNames("reactEasyCrop_Video", objectFit === "contain" && "reactEasyCrop_Contain", objectFit === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", objectFit === "vertical-cover" && "reactEasyCrop_Cover_Vertical", mediaClassName)
- }, mediaProps, {
- ref: this.videoRef,
- onLoadedMetadata: this.onMediaLoad,
- style: __assign(__assign({}, mediaStyle), {
- transform: transform || "translate(".concat(x2, "px, ").concat(y2, "px) rotate(").concat(rotation, "deg) scale(").concat(zoom, ")")
- }),
- controls: false
- }), (Array.isArray(video) ? video : [{
- src: video
- }]).map(function(item) {
- return React117.createElement("source", __assign({
- key: item.src
- }, item));
- })), this.state.cropSize && React117.createElement("div", __assign({
- ref: this.cropperRef,
- style: __assign(__assign({}, cropAreaStyle), {
- width: roundCropAreaPixels ? Math.round(this.state.cropSize.width) : this.state.cropSize.width,
- height: roundCropAreaPixels ? Math.round(this.state.cropSize.height) : this.state.cropSize.height
- }),
- tabIndex: 0,
- onKeyDown: this.onKeyDown,
- onKeyUp: this.onKeyUp,
- "data-testid": "cropper",
- className: classNames("reactEasyCrop_CropArea", cropShape === "round" && "reactEasyCrop_CropAreaRound", showGrid && "reactEasyCrop_CropAreaGrid", cropAreaClassName)
- }, cropperProps)));
- };
- Cropper2.defaultProps = {
- zoom: 1,
- rotation: 0,
- aspect: 4 / 3,
- maxZoom: MAX_ZOOM,
- minZoom: MIN_ZOOM,
- cropShape: "rect",
- objectFit: "contain",
- showGrid: true,
- style: {},
- classes: {},
- mediaProps: {},
- cropperProps: {},
- zoomSpeed: 1,
- restrictPosition: true,
- zoomWithScroll: true,
- keyboardStep: KEYBOARD_STEP
- };
- Cropper2.getMousePoint = function(e2) {
- return {
- x: Number(e2.clientX),
- y: Number(e2.clientY)
- };
- };
- Cropper2.getTouchPoint = function(touch) {
- return {
- x: Number(touch.clientX),
- y: Number(touch.clientY)
- };
- };
- return Cropper2;
- })(React117.Component)
- );
+ )
+ ] });
+ }
- // packages/image-cropper/build-module/components/image-cropper/index.mjs
- var import_element213 = __toESM(require_element(), 1);
+ // packages/block-editor/build-module/components/block-lock/menu-item.mjs
+ var import_i18n85 = __toESM(require_i18n(), 1);
+ var import_element170 = __toESM(require_element(), 1);
+ var import_components86 = __toESM(require_components(), 1);
- // packages/image-cropper/build-module/provider/index.mjs
- var import_element212 = __toESM(require_element(), 1);
+ // packages/block-editor/build-module/components/block-lock/use-block-lock.mjs
+ var import_data100 = __toESM(require_data(), 1);
+ function useBlockLock(clientId) {
+ return (0, import_data100.useSelect)(
+ (select3) => {
+ const {
+ canLockBlockType: canLockBlockType2,
+ getBlockName: getBlockName2,
+ isEditLockedBlock: isEditLockedBlock2,
+ isMoveLockedBlock: isMoveLockedBlock2,
+ isRemoveLockedBlock: isRemoveLockedBlock2,
+ isLockedBlock: isLockedBlock2
+ } = unlock(select3(store));
+ return {
+ isEditLocked: isEditLockedBlock2(clientId),
+ isMoveLocked: isMoveLockedBlock2(clientId),
+ isRemoveLocked: isRemoveLockedBlock2(clientId),
+ canLock: canLockBlockType2(getBlockName2(clientId)),
+ isLocked: isLockedBlock2(clientId)
+ };
+ },
+ [clientId]
+ );
+ }
- // node_modules/dequal/dist/index.mjs
- var has = Object.prototype.hasOwnProperty;
- function find(iter, tar, key) {
- for (key of iter.keys()) {
- if (dequal(key, tar)) return key;
+ // packages/block-editor/build-module/components/block-lock/modal.mjs
+ var import_i18n84 = __toESM(require_i18n(), 1);
+ var import_element169 = __toESM(require_element(), 1);
+ var import_components85 = __toESM(require_components(), 1);
+ var import_data101 = __toESM(require_data(), 1);
+ var import_blocks61 = __toESM(require_blocks(), 1);
+ var import_jsx_runtime298 = __toESM(require_jsx_runtime(), 1);
+ var ALLOWS_EDIT_LOCKING = ["core/navigation"];
+ function getTemplateLockValue(lock5) {
+ if (lock5.remove && lock5.move) {
+ return "all";
+ }
+ if (lock5.remove && !lock5.move) {
+ return "insert";
}
+ return false;
}
- function dequal(foo, bar) {
- var ctor, len, tmp;
- if (foo === bar) return true;
- if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
- if (ctor === Date) return foo.getTime() === bar.getTime();
- if (ctor === RegExp) return foo.toString() === bar.toString();
- if (ctor === Array) {
- if ((len = foo.length) === bar.length) {
- while (len-- && dequal(foo[len], bar[len])) ;
- }
- return len === -1;
- }
- if (ctor === Set) {
- if (foo.size !== bar.size) {
- return false;
- }
- for (len of foo) {
- tmp = len;
- if (tmp && typeof tmp === "object") {
- tmp = find(bar, tmp);
- if (!tmp) return false;
- }
- if (!bar.has(tmp)) return false;
- }
- return true;
- }
- if (ctor === Map) {
- if (foo.size !== bar.size) {
- return false;
- }
- for (len of foo) {
- tmp = len[0];
- if (tmp && typeof tmp === "object") {
- tmp = find(bar, tmp);
- if (!tmp) return false;
- }
- if (!dequal(len[1], bar.get(tmp))) {
- return false;
+ function BlockLockModal({ clientId, onClose }) {
+ const [lock5, setLock] = (0, import_element169.useState)({ move: false, remove: false });
+ const { isEditLocked, isMoveLocked, isRemoveLocked } = useBlockLock(clientId);
+ const { allowsEditLocking, templateLock, hasTemplateLock } = (0, import_data101.useSelect)(
+ (select3) => {
+ const { getBlockName: getBlockName2, getBlockAttributes: getBlockAttributes3 } = select3(store);
+ const blockName = getBlockName2(clientId);
+ const blockType = (0, import_blocks61.getBlockType)(blockName);
+ return {
+ allowsEditLocking: ALLOWS_EDIT_LOCKING.includes(blockName),
+ templateLock: getBlockAttributes3(clientId)?.templateLock,
+ hasTemplateLock: !!blockType?.attributes?.templateLock
+ };
+ },
+ [clientId]
+ );
+ const [applyTemplateLock, setApplyTemplateLock] = (0, import_element169.useState)(
+ !!templateLock
+ );
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data101.useDispatch)(store);
+ const blockInformation = useBlockDisplayInformation(clientId);
+ (0, import_element169.useEffect)(() => {
+ setLock({
+ move: isMoveLocked,
+ remove: isRemoveLocked,
+ ...allowsEditLocking ? { edit: isEditLocked } : {}
+ });
+ }, [isEditLocked, isMoveLocked, isRemoveLocked, allowsEditLocking]);
+ const isAllChecked = Object.values(lock5).every(Boolean);
+ const isMixed = Object.values(lock5).some(Boolean) && !isAllChecked;
+ const isDirty = lock5.move !== isMoveLocked || lock5.remove !== isRemoveLocked || allowsEditLocking && lock5.edit !== isEditLocked || hasTemplateLock && applyTemplateLock !== !!templateLock;
+ return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.Modal,
+ {
+ title: (0, import_i18n84.sprintf)(
+ /* translators: %s: Name of the block. */
+ (0, import_i18n84.__)("Lock %s"),
+ blockInformation.title
+ ),
+ overlayClassName: "block-editor-block-lock-modal",
+ onRequestClose: onClose,
+ size: "small",
+ children: /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(
+ "form",
+ {
+ onSubmit: (event) => {
+ event.preventDefault();
+ if (!isDirty) {
+ return;
+ }
+ updateBlockAttributes2([clientId], {
+ lock: lock5,
+ templateLock: applyTemplateLock ? getTemplateLockValue(lock5) : void 0
+ });
+ onClose();
+ },
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)("fieldset", { className: "block-editor-block-lock-modal__options", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)("legend", { children: (0, import_i18n84.__)("Select the features you want to lock") }),
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ "ul",
+ {
+ role: "list",
+ className: "block-editor-block-lock-modal__checklist",
+ children: /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)("li", { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.CheckboxControl,
+ {
+ className: "block-editor-block-lock-modal__options-all",
+ label: (0, import_i18n84.__)("Lock all"),
+ checked: isAllChecked,
+ indeterminate: isMixed,
+ onChange: (newValue) => setLock({
+ move: newValue,
+ remove: newValue,
+ ...allowsEditLocking ? { edit: newValue } : {}
+ })
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(
+ "ul",
+ {
+ role: "list",
+ className: "block-editor-block-lock-modal__checklist",
+ children: [
+ allowsEditLocking && /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)("li", { className: "block-editor-block-lock-modal__checklist-item", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.CheckboxControl,
+ {
+ label: (0, import_i18n84.__)("Lock editing"),
+ checked: !!lock5.edit,
+ onChange: (edit) => setLock((prevLock) => ({
+ ...prevLock,
+ edit
+ }))
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.Icon,
+ {
+ className: "block-editor-block-lock-modal__lock-icon",
+ icon: lock5.edit ? lock_default : unlock_default
+ }
+ )
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)("li", { className: "block-editor-block-lock-modal__checklist-item", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.CheckboxControl,
+ {
+ label: (0, import_i18n84.__)("Lock movement"),
+ checked: lock5.move,
+ onChange: (move) => setLock((prevLock) => ({
+ ...prevLock,
+ move
+ }))
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.Icon,
+ {
+ className: "block-editor-block-lock-modal__lock-icon",
+ icon: lock5.move ? lock_default : unlock_default
+ }
+ )
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)("li", { className: "block-editor-block-lock-modal__checklist-item", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.CheckboxControl,
+ {
+ label: (0, import_i18n84.__)("Lock removal"),
+ checked: lock5.remove,
+ onChange: (remove5) => setLock((prevLock) => ({
+ ...prevLock,
+ remove: remove5
+ }))
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.Icon,
+ {
+ className: "block-editor-block-lock-modal__lock-icon",
+ icon: lock5.remove ? lock_default : unlock_default
+ }
+ )
+ ] })
+ ]
+ }
+ )
+ ] })
+ }
+ ),
+ hasTemplateLock && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.ToggleControl,
+ {
+ className: "block-editor-block-lock-modal__template-lock",
+ label: (0, import_i18n84.__)("Apply to all blocks inside"),
+ checked: applyTemplateLock,
+ disabled: lock5.move && !lock5.remove,
+ onChange: () => setApplyTemplateLock(!applyTemplateLock)
+ }
+ )
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(
+ import_components85.Flex,
+ {
+ className: "block-editor-block-lock-modal__actions",
+ justify: "flex-end",
+ expanded: false,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(import_components85.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.Button,
+ {
+ variant: "tertiary",
+ onClick: onClose,
+ __next40pxDefaultSize: true,
+ children: (0, import_i18n84.__)("Cancel")
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(import_components85.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
+ import_components85.Button,
+ {
+ variant: "primary",
+ type: "submit",
+ disabled: !isDirty,
+ accessibleWhenDisabled: true,
+ __next40pxDefaultSize: true,
+ children: (0, import_i18n84.__)("Apply")
+ }
+ ) })
+ ]
+ }
+ )
+ ]
}
- }
- return true;
- }
- if (ctor === ArrayBuffer) {
- foo = new Uint8Array(foo);
- bar = new Uint8Array(bar);
- } else if (ctor === DataView) {
- if ((len = foo.byteLength) === bar.byteLength) {
- while (len-- && foo.getInt8(len) === bar.getInt8(len)) ;
- }
- return len === -1;
+ )
}
- if (ArrayBuffer.isView(foo)) {
- if ((len = foo.byteLength) === bar.byteLength) {
- while (len-- && foo[len] === bar[len]) ;
+ );
+ }
+
+ // packages/block-editor/build-module/components/block-lock/menu-item.mjs
+ var import_jsx_runtime299 = __toESM(require_jsx_runtime(), 1);
+ function BlockLockMenuItem({ clientId }) {
+ const { canLock, isLocked } = useBlockLock(clientId);
+ const [isModalOpen, toggleModal] = (0, import_element170.useReducer)(
+ (isActive) => !isActive,
+ false
+ );
+ if (!canLock) {
+ return null;
+ }
+ const label = isLocked ? (0, import_i18n85.__)("Unlock") : (0, import_i18n85.__)("Lock");
+ return /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)(import_jsx_runtime299.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
+ import_components86.MenuItem,
+ {
+ icon: isLocked ? unlock_default : lock_outline_default,
+ onClick: toggleModal,
+ "aria-expanded": isModalOpen,
+ "aria-haspopup": "dialog",
+ children: label
}
- return len === -1;
+ ),
+ isModalOpen && /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(BlockLockModal, { clientId, onClose: toggleModal })
+ ] });
+ }
+
+ // packages/block-editor/build-module/components/block-lock/toolbar.mjs
+ var import_i18n86 = __toESM(require_i18n(), 1);
+ var import_components87 = __toESM(require_components(), 1);
+ var import_element171 = __toESM(require_element(), 1);
+ var import_jsx_runtime300 = __toESM(require_jsx_runtime(), 1);
+ function BlockLockToolbar({ clientId }) {
+ const { canLock, isLocked } = useBlockLock(clientId);
+ const [isModalOpen, toggleModal] = (0, import_element171.useReducer)(
+ (isActive) => !isActive,
+ false
+ );
+ const hasLockButtonShownRef = (0, import_element171.useRef)(false);
+ (0, import_element171.useEffect)(() => {
+ if (isLocked) {
+ hasLockButtonShownRef.current = true;
}
- if (!ctor || typeof foo === "object") {
- len = 0;
- for (ctor in foo) {
- if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
- if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;
+ }, [isLocked]);
+ if (!isLocked && !hasLockButtonShownRef.current) {
+ return null;
+ }
+ let label = isLocked ? (0, import_i18n86.__)("Unlock") : (0, import_i18n86.__)("Lock");
+ if (!canLock && isLocked) {
+ label = (0, import_i18n86.__)("Locked");
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(import_jsx_runtime300.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(import_components87.ToolbarGroup, { className: "block-editor-block-lock-toolbar", children: /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
+ import_components87.ToolbarButton,
+ {
+ disabled: !canLock,
+ icon: isLocked ? lock_default : unlock_default,
+ label,
+ onClick: toggleModal,
+ "aria-expanded": isModalOpen,
+ "aria-haspopup": "dialog"
}
- return Object.keys(bar).length === len;
- }
+ ) }),
+ isModalOpen && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(BlockLockModal, { clientId, onClose: toggleModal })
+ ] });
+ }
+
+ // packages/block-editor/build-module/components/block-settings-menu/block-mode-toggle.mjs
+ var import_i18n87 = __toESM(require_i18n(), 1);
+ var import_components88 = __toESM(require_components(), 1);
+ var import_blocks62 = __toESM(require_blocks(), 1);
+ var import_data102 = __toESM(require_data(), 1);
+ var import_jsx_runtime301 = __toESM(require_jsx_runtime(), 1);
+ var noop11 = () => {
+ };
+ function BlockModeToggle({ clientId, onToggle = noop11 }) {
+ const { blockType, mode: mode2, enabled } = (0, import_data102.useSelect)(
+ (select3) => {
+ const { getBlock: getBlock2, getBlockMode: getBlockMode2, getSettings: getSettings8 } = select3(store);
+ const block = getBlock2(clientId);
+ return {
+ mode: getBlockMode2(clientId),
+ blockType: block ? (0, import_blocks62.getBlockType)(block.name) : null,
+ enabled: getSettings8().codeEditingEnabled && !!block?.isValid
+ };
+ },
+ [clientId]
+ );
+ const { toggleBlockMode: toggleBlockMode2 } = (0, import_data102.useDispatch)(store);
+ if (!blockType || !(0, import_blocks62.hasBlockSupport)(blockType, "html", true) || !enabled) {
+ return null;
}
- return foo !== foo && bar !== bar;
+ const label = mode2 === "visual" ? (0, import_i18n87.__)("Edit as HTML") : (0, import_i18n87.__)("Edit visually");
+ return /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
+ import_components88.MenuItem,
+ {
+ onClick: () => {
+ toggleBlockMode2(clientId);
+ onToggle();
+ },
+ children: label
+ }
+ );
}
- // packages/image-cropper/build-module/provider/use-image-cropper.mjs
- var import_element211 = __toESM(require_element(), 1);
+ // packages/block-editor/build-module/components/block-rename/rename-control.mjs
+ var import_components90 = __toESM(require_components(), 1);
+ var import_i18n89 = __toESM(require_i18n(), 1);
+ var import_element173 = __toESM(require_element(), 1);
+ var import_data104 = __toESM(require_data(), 1);
+ var import_keyboard_shortcuts6 = __toESM(require_keyboard_shortcuts(), 1);
- // packages/image-cropper/build-module/constants.mjs
- var MIN_ZOOM2 = 1;
- var MAX_ZOOM2 = 5;
+ // packages/block-editor/build-module/components/block-rename/modal.mjs
+ var import_components89 = __toESM(require_components(), 1);
+ var import_i18n88 = __toESM(require_i18n(), 1);
+ var import_element172 = __toESM(require_element(), 1);
+ var import_a11y12 = __toESM(require_a11y(), 1);
+ var import_data103 = __toESM(require_data(), 1);
- // packages/image-cropper/build-module/utils.mjs
- var normalizeRotation = (rotation) => {
- if (rotation >= 0) {
- return rotation % 360;
- }
- return (360 + rotation % 360) % 360;
- };
- var createImage = (url) => new Promise((resolve, reject) => {
- const image = new Image();
- image.addEventListener("load", () => resolve(image));
- image.addEventListener("error", (error2) => reject(error2));
- image.setAttribute("crossOrigin", "anonymous");
- image.src = url;
- });
- function getRadianAngle2(degreeValue) {
- return degreeValue * Math.PI / 180;
- }
- function rotateSize2(width, height, rotation) {
- const rotRad = getRadianAngle2(rotation);
- return {
- width: Math.abs(Math.cos(rotRad) * width) + Math.abs(Math.sin(rotRad) * height),
- height: Math.abs(Math.sin(rotRad) * width) + Math.abs(Math.cos(rotRad) * height)
- };
+ // packages/block-editor/build-module/components/block-rename/is-empty-string.mjs
+ function isEmptyString(testString) {
+ return testString?.trim()?.length === 0;
}
- async function getCroppedImage(imageSrc, pixelCrop, rotation = 0, flip4 = { horizontal: false, vertical: false }) {
- try {
- const image = await createImage(imageSrc);
- const canvas = document.createElement("canvas");
- const ctx2 = canvas.getContext("2d");
- if (!ctx2) {
- return null;
- }
- const rotRad = getRadianAngle2(rotation);
- const { width: boundingBoxWidth, height: boundingBoxHeight } = rotateSize2(image.width, image.height, rotation);
- canvas.width = boundingBoxWidth;
- canvas.height = boundingBoxHeight;
- ctx2.translate(boundingBoxWidth / 2, boundingBoxHeight / 2);
- ctx2.rotate(rotRad);
- ctx2.scale(flip4.horizontal ? -1 : 1, flip4.vertical ? -1 : 1);
- ctx2.translate(-image.width / 2, -image.height / 2);
- ctx2.drawImage(image, 0, 0);
- const croppedCanvas = document.createElement("canvas");
- const croppedCtx = croppedCanvas.getContext("2d");
- if (!croppedCtx) {
- return null;
- }
- croppedCanvas.width = pixelCrop.width;
- croppedCanvas.height = pixelCrop.height;
- croppedCtx.drawImage(
- canvas,
- pixelCrop.x,
- pixelCrop.y,
- pixelCrop.width,
- pixelCrop.height,
- 0,
- 0,
- pixelCrop.width,
- pixelCrop.height
+
+ // packages/block-editor/build-module/components/block-rename/modal.mjs
+ var import_jsx_runtime302 = __toESM(require_jsx_runtime(), 1);
+ function BlockRenameModal({ clientId, onClose }) {
+ const [editedBlockName, setEditedBlockName] = (0, import_element172.useState)();
+ const blockInformation = useBlockDisplayInformation(clientId);
+ const { metadata } = (0, import_data103.useSelect)(
+ (select3) => {
+ const { getBlockAttributes: getBlockAttributes3 } = select3(store);
+ return {
+ metadata: getBlockAttributes3(clientId)?.metadata
+ };
+ },
+ [clientId]
+ );
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data103.useDispatch)(store);
+ const blockName = metadata?.name || "";
+ const originalBlockName = blockInformation?.title;
+ const hasOverridesWarning = !!blockName && !!metadata?.bindings && Object.values(metadata.bindings).some(
+ (binding) => binding.source === "core/pattern-overrides"
+ );
+ const nameHasChanged = editedBlockName !== void 0 && editedBlockName !== blockName;
+ const nameIsOriginal = editedBlockName === originalBlockName;
+ const nameIsEmpty = isEmptyString(editedBlockName);
+ const isNameValid = nameHasChanged || nameIsOriginal;
+ const autoSelectInputText = (event) => event.target.select();
+ const handleSubmit = () => {
+ const newName = nameIsOriginal || nameIsEmpty ? void 0 : editedBlockName;
+ const message2 = nameIsOriginal || nameIsEmpty ? (0, import_i18n88.sprintf)(
+ /* translators: %s: new name/label for the block */
+ (0, import_i18n88.__)('Block name reset to: "%s".'),
+ editedBlockName
+ ) : (0, import_i18n88.sprintf)(
+ /* translators: %s: new name/label for the block */
+ (0, import_i18n88.__)('Block name changed to: "%s".'),
+ editedBlockName
);
- return new Promise((resolve) => {
- croppedCanvas.toBlob((file) => {
- if (file) {
- resolve(URL.createObjectURL(file));
- }
- }, "image/jpeg");
+ (0, import_a11y12.speak)(message2, "assertive");
+ updateBlockAttributes2([clientId], {
+ metadata: cleanEmptyObject({
+ ...metadata,
+ name: newName
+ })
});
- } catch {
- return null;
- }
+ onClose();
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
+ import_components89.Modal,
+ {
+ title: (0, import_i18n88.__)("Rename"),
+ onRequestClose: onClose,
+ overlayClassName: "block-editor-block-rename-modal",
+ focusOnMount: "firstContentElement",
+ size: "small",
+ children: /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
+ "form",
+ {
+ onSubmit: (e2) => {
+ e2.preventDefault();
+ if (!isNameValid) {
+ return;
+ }
+ handleSubmit();
+ },
+ children: /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)(import_components89.__experimentalVStack, { spacing: "3", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
+ import_components89.TextControl,
+ {
+ value: editedBlockName ?? blockName,
+ label: (0, import_i18n88.__)("Name"),
+ help: hasOverridesWarning ? (0, import_i18n88.__)(
+ "This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern."
+ ) : void 0,
+ placeholder: originalBlockName,
+ onChange: setEditedBlockName,
+ onFocus: autoSelectInputText
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)(import_components89.__experimentalHStack, { justify: "right", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
+ import_components89.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: onClose,
+ children: (0, import_i18n88.__)("Cancel")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
+ import_components89.Button,
+ {
+ __next40pxDefaultSize: true,
+ accessibleWhenDisabled: true,
+ disabled: !isNameValid,
+ variant: "primary",
+ type: "submit",
+ children: (0, import_i18n88.__)("Save")
+ }
+ )
+ ] })
+ ] })
+ }
+ )
+ }
+ );
}
- // packages/image-cropper/build-module/provider/use-image-cropper.mjs
- var DEFAULT_INITIAL_STATE = {
- crop: {
- x: 0,
- y: 0,
- width: 100,
- height: 100
- },
- zoom: MIN_ZOOM2,
- rotation: 0,
- aspectRatio: 1,
- flip: {
- horizontal: false,
- vertical: false
- }
- };
- var DEFAULT_CROP_MEDIA_POSITION = {
- x: 0,
- y: 0
- };
- var DEFAULT_CROPPER_STATE = {
- crop: DEFAULT_CROP_MEDIA_POSITION,
- croppedArea: DEFAULT_INITIAL_STATE.crop,
- croppedAreaPixels: null,
- zoom: DEFAULT_INITIAL_STATE.zoom,
- rotation: DEFAULT_INITIAL_STATE.rotation,
- flip: DEFAULT_INITIAL_STATE.flip,
- aspectRatio: DEFAULT_INITIAL_STATE.aspectRatio,
- mediaSize: null
- };
- function useCropper() {
- const [cropperState, setInternalCropperState] = (0, import_element211.useState)(
- DEFAULT_CROPPER_STATE
- );
- const [resetState, setInternalResetState] = (0, import_element211.useState)(null);
- const setCropperState = (0, import_element211.useCallback)(
- (newState) => {
- setInternalCropperState((prev) => {
- const updates = typeof newState === "function" ? newState(prev) : newState;
- const normalizedUpdates = { ...updates };
- if ("rotation" in normalizedUpdates && normalizedUpdates.rotation !== void 0) {
- normalizedUpdates.rotation = normalizeRotation(
- normalizedUpdates.rotation
- );
- }
- return { ...prev, ...normalizedUpdates };
- });
- },
+ // packages/block-editor/build-module/components/block-rename/rename-control.mjs
+ var import_jsx_runtime303 = __toESM(require_jsx_runtime(), 1);
+ function BlockRenameControl({ clientId }) {
+ const [renamingBlock, setRenamingBlock] = (0, import_element173.useState)(false);
+ const shortcut = (0, import_data104.useSelect)(
+ (select3) => select3(import_keyboard_shortcuts6.store).getShortcutRepresentation(
+ "core/block-editor/rename"
+ ),
[]
);
- const setResetState = (0, import_element211.useCallback)(
- (newResetState = null) => {
- if (!newResetState) {
- setInternalResetState(null);
- setCropperState(DEFAULT_CROPPER_STATE);
- return;
+ return /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)(import_jsx_runtime303.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
+ import_components90.MenuItem,
+ {
+ onClick: () => {
+ setRenamingBlock(true);
+ },
+ "aria-expanded": renamingBlock,
+ "aria-haspopup": "dialog",
+ shortcut,
+ children: (0, import_i18n89.__)("Rename")
}
- if (typeof newResetState === "object") {
- const initialState = {
- ...DEFAULT_INITIAL_STATE,
- ...newResetState
- };
- setInternalResetState(initialState);
- setCropperState(initialState);
+ ),
+ renamingBlock && /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
+ BlockRenameModal,
+ {
+ clientId,
+ onClose: () => setRenamingBlock(false)
}
+ )
+ ] });
+ }
+
+ // packages/block-editor/build-module/components/block-rename/use-block-rename.mjs
+ var import_blocks63 = __toESM(require_blocks(), 1);
+ function useBlockRename(name) {
+ return {
+ canRename: !!name && (0, import_blocks63.getBlockSupport)(name, "renaming", true)
+ };
+ }
+
+ // packages/block-editor/build-module/components/block-settings-menu-controls/index.mjs
+ var import_jsx_runtime304 = __toESM(require_jsx_runtime(), 1);
+ var { Fill: Fill2, Slot: Slot7 } = (0, import_components91.createSlotFill)("BlockSettingsMenuControls");
+ var BlockSettingsMenuControlsSlot = ({ fillProps, clientIds = null }) => {
+ const {
+ selectedBlocks,
+ selectedClientIds,
+ isContentOnly,
+ canToggleSelectedBlocksVisibility,
+ canEdit
+ } = (0, import_data105.useSelect)(
+ (select3) => {
+ const {
+ getBlocksByClientId: getBlocksByClientId2,
+ getBlockNamesByClientId: getBlockNamesByClientId2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ getBlockEditingMode: getBlockEditingMode2,
+ canEditBlock: canEditBlock2
+ } = select3(store);
+ const ids = clientIds !== null ? clientIds : getSelectedBlockClientIds2();
+ return {
+ selectedBlocks: getBlockNamesByClientId2(ids),
+ selectedClientIds: ids,
+ isContentOnly: getBlockEditingMode2(ids[0]) === "contentOnly",
+ canToggleSelectedBlocksVisibility: getBlocksByClientId2(
+ ids
+ ).every(
+ (block) => (0, import_blocks64.hasBlockSupport)(block.name, "visibility", true)
+ ),
+ canEdit: canEditBlock2(ids[0])
+ };
},
- [setCropperState, setInternalResetState]
+ [clientIds]
);
- const reset = (0, import_element211.useCallback)(() => {
- if (resetState) {
- const resetUpdates = {
- // Reset media position to center
- crop: { x: 0, y: 0 },
- // Reset cropped area pixels (will be recalculated)
- croppedAreaPixels: null
- };
- if (resetState.crop) {
- resetUpdates.croppedArea = resetState.crop;
- }
- if (resetState.zoom !== void 0) {
- resetUpdates.zoom = resetState.zoom;
- }
- if (resetState.rotation !== void 0) {
- resetUpdates.rotation = resetState.rotation;
- }
- if (resetState.aspectRatio !== void 0) {
- resetUpdates.aspectRatio = resetState.aspectRatio;
- }
- if (resetState.flip !== void 0) {
- resetUpdates.flip = resetState.flip;
+ const { canLock } = useBlockLock(selectedClientIds[0]);
+ const { canRename } = useBlockRename(selectedBlocks[0]);
+ const showLockButton = selectedClientIds.length === 1 && canLock && !isContentOnly;
+ const showRenameButton = selectedClientIds.length === 1 && canRename && !isContentOnly;
+ const showVisibilityButton = canToggleSelectedBlocksVisibility && !isContentOnly;
+ const convertToGroupButtonProps = useConvertToGroupButtonProps(selectedClientIds);
+ const { isGroupable: isGroupable2, isUngroupable: isUngroupable2 } = convertToGroupButtonProps;
+ const showConvertToGroupButton = (isGroupable2 || isUngroupable2) && !isContentOnly;
+ return /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
+ Slot7,
+ {
+ fillProps: {
+ ...fillProps,
+ canEdit,
+ selectedBlocks,
+ selectedClientIds
+ },
+ children: (fills) => {
+ if (!fills?.length > 0 && !showConvertToGroupButton && !showLockButton) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime304.jsxs)(import_components91.MenuGroup, { children: [
+ showConvertToGroupButton && /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
+ ConvertToGroupButton,
+ {
+ ...convertToGroupButtonProps,
+ onClose: fillProps?.onClose
+ }
+ ),
+ canEdit && showLockButton && /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
+ BlockLockMenuItem,
+ {
+ clientId: selectedClientIds[0]
+ }
+ ),
+ canEdit && showRenameButton && /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
+ BlockRenameControl,
+ {
+ clientId: selectedClientIds[0]
+ }
+ ),
+ canEdit && showVisibilityButton && /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
+ BlockVisibilityViewportMenuItem,
+ {
+ clientIds: selectedClientIds
+ }
+ ),
+ fills,
+ canEdit && fillProps?.count === 1 && !isContentOnly && /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
+ BlockModeToggle,
+ {
+ clientId: fillProps?.firstBlockClientId,
+ onToggle: fillProps?.onClose
+ }
+ )
+ ] });
}
- setCropperState(resetUpdates);
- } else {
- setCropperState({ ...DEFAULT_CROPPER_STATE });
- }
- }, [resetState, setCropperState]);
- const isDirty = (0, import_element211.useMemo)(() => {
- if (resetState) {
- const currentState2 = {
- crop: cropperState.croppedAreaPixels || cropperState.croppedArea,
- zoom: cropperState.zoom,
- rotation: normalizeRotation(cropperState.rotation),
- aspectRatio: cropperState.aspectRatio,
- flip: cropperState.flip
- };
- return false === dequal(currentState2, resetState);
}
- const currentState = {
- crop: cropperState.croppedArea,
- zoom: cropperState.zoom,
- rotation: normalizeRotation(cropperState.rotation),
- aspectRatio: cropperState.aspectRatio,
- flip: cropperState.flip
- };
- return false === dequal(currentState, DEFAULT_INITIAL_STATE);
- }, [cropperState, resetState]);
- const getCroppedImage2 = (0, import_element211.useCallback)(
- async (src) => {
- if (!cropperState.croppedAreaPixels) {
- return null;
- }
- return getCroppedImage(
- src,
- cropperState.croppedAreaPixels,
- cropperState.rotation,
- cropperState.flip
- );
- },
- [
- cropperState.croppedAreaPixels,
- cropperState.rotation,
- cropperState.flip
- ]
- );
- return (0, import_element211.useMemo)(
- () => ({
- cropperState,
- setCropperState,
- resetState,
- setResetState,
- isDirty,
- reset,
- getCroppedImage: getCroppedImage2
- }),
- [
- cropperState,
- setCropperState,
- resetState,
- setResetState,
- isDirty,
- reset,
- getCroppedImage2
- ]
);
+ };
+ function BlockSettingsMenuControls({ ...props }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(import_components91.__experimentalStyleProvider, { document, children: /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(Fill2, { ...props }) });
}
+ BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
+ var block_settings_menu_controls_default = BlockSettingsMenuControls;
- // packages/image-cropper/build-module/provider/index.mjs
- var import_jsx_runtime363 = __toESM(require_jsx_runtime(), 1);
- var ImageCropperContext = (0, import_element212.createContext)({
- cropperState: {
- crop: { x: 0, y: 0 },
- croppedArea: { x: 0, y: 0, width: 100, height: 100 },
- croppedAreaPixels: null,
- zoom: MIN_ZOOM2,
- rotation: 0,
- aspectRatio: 1,
- flip: { horizontal: false, vertical: false },
- mediaSize: null
- },
- setCropperState: () => {
- },
- resetState: null,
- setResetState: () => {
- },
- isDirty: false,
- reset: () => {
- },
- getCroppedImage: () => Promise.resolve(null)
- });
- function ImageCropperProvider({
- children
+ // packages/block-editor/build-module/components/block-settings-menu/block-parent-selector-menu-item.mjs
+ var import_element174 = __toESM(require_element(), 1);
+ var import_components92 = __toESM(require_components(), 1);
+ var import_compose66 = __toESM(require_compose(), 1);
+ var import_data106 = __toESM(require_data(), 1);
+ var import_i18n90 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime305 = __toESM(require_jsx_runtime(), 1);
+ function BlockParentSelectorMenuItem({
+ parentClientId,
+ parentBlockType
}) {
- const cropperApi = useCropper();
- const contextValue = (0, import_element212.useMemo)(() => {
- return {
- ...cropperApi
- };
- }, [cropperApi]);
- return /* @__PURE__ */ (0, import_jsx_runtime363.jsx)(ImageCropperContext.Provider, { value: contextValue, children });
- }
- var useImageCropper = () => {
- const context = (0, import_element212.useContext)(ImageCropperContext);
- if (!context) {
- throw new Error("Missing ImageCropperContext");
+ const isSmallViewport = (0, import_compose66.useViewportMatch)("medium", "<");
+ const { selectBlock: selectBlock2 } = (0, import_data106.useDispatch)(store);
+ const menuItemRef = (0, import_element174.useRef)();
+ const gesturesProps = useShowHoveredOrFocusedGestures({
+ ref: menuItemRef,
+ highlightParent: true
+ });
+ if (!isSmallViewport) {
+ return null;
}
- return context;
- };
-
- // packages/image-cropper/build-module/components/image-cropper/index.mjs
- var import_jsx_runtime364 = __toESM(require_jsx_runtime(), 1);
- function ImageCropper({
- src,
- onLoad,
- minZoom = MIN_ZOOM2,
- maxZoom = MAX_ZOOM2,
- ...props
- }) {
- const { cropperState, setCropperState } = useImageCropper();
- const { crop, zoom, rotation, aspectRatio, flip: flip4 } = cropperState;
- const setCrop = (newCrop) => setCropperState({ crop: newCrop });
- const setZoom = (newZoom) => setCropperState({ zoom: newZoom });
- const setRotation = (newRotation) => setCropperState({ rotation: newRotation });
- const setMediaSize = (newMediaSize) => setCropperState({ mediaSize: newMediaSize });
- const onCropComplete = (0, import_element213.useCallback)(
- (areaPercentage, areaPixels) => {
- setCropperState({
- croppedArea: areaPercentage,
- croppedAreaPixels: areaPixels
- });
- },
- [setCropperState]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime364.jsx)(
- Cropper,
+ return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
+ import_components92.MenuItem,
{
- classes: {
- containerClassName: "image-cropper__container",
- cropAreaClassName: "image-cropper__crop-area",
- mediaClassName: "image-cropper__image"
- },
- minZoom,
- maxZoom,
- rotation,
- image: src,
- setMediaSize,
- crop,
- zoom,
- aspect: aspectRatio,
- onCropChange: setCrop,
- onZoomChange: setZoom,
- onCropComplete,
- onMediaLoaded: (loadedMediaSize) => {
- onLoad?.(loadedMediaSize);
- },
- onRotationChange: setRotation,
- transform: [
- `translate(${crop.x}px, ${crop.y}px)`,
- `rotateZ(${rotation}deg)`,
- `rotateY(${flip4.horizontal ? 180 : 0}deg)`,
- `rotateX(${flip4.vertical ? 180 : 0}deg)`,
- `scale(${zoom})`
- ].join(" "),
- ...props
+ ...gesturesProps,
+ ref: menuItemRef,
+ icon: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(block_icon_default, { icon: parentBlockType.icon }),
+ onClick: () => selectBlock2(parentClientId),
+ children: (0, import_i18n90.sprintf)(
+ /* translators: %s: Name of the block's parent. */
+ (0, import_i18n90.__)("Select parent block (%s)"),
+ parentBlockType.title
+ )
}
);
}
- // packages/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.mjs
- var import_components153 = __toESM(require_components(), 1);
- var import_i18n144 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/image-editor/constants.mjs
- var MIN_ZOOM3 = 100;
- var MAX_ZOOM3 = 300;
- var POPOVER_PROPS7 = {
+ // packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.mjs
+ var import_jsx_runtime306 = __toESM(require_jsx_runtime(), 1);
+ var POPOVER_PROPS4 = {
+ className: "block-editor-block-settings-menu__popover",
placement: "bottom-start"
};
-
- // packages/block-editor/build-module/components/image-editor/context.mjs
- var import_element216 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/image-editor/use-save-image.mjs
- var import_data144 = __toESM(require_data(), 1);
- var import_element214 = __toESM(require_element(), 1);
- var import_i18n143 = __toESM(require_i18n(), 1);
- var import_notices9 = __toESM(require_notices(), 1);
- var import_dom65 = __toESM(require_dom(), 1);
- var messages = {
- crop: (0, import_i18n143.__)("Image cropped."),
- rotate: (0, import_i18n143.__)("Image rotated."),
- cropAndRotate: (0, import_i18n143.__)("Image cropped and rotated.")
- };
- function useSaveImage({
- crop,
- rotation,
- url,
- id,
- onSaveImage,
- onFinishEditing
+ function CopyMenuItem({
+ clientIds,
+ onCopy,
+ label,
+ shortcut,
+ eventType = "copy",
+ __experimentalUpdateSelection: updateSelection = false
}) {
- const { createErrorNotice, createSuccessNotice } = (0, import_data144.useDispatch)(import_notices9.store);
- const [isInProgress, setIsInProgress] = (0, import_element214.useState)(false);
- const { editMediaEntity } = (0, import_data144.useSelect)((select3) => {
- const settings2 = select3(store).getSettings();
+ const { getBlocksByClientId: getBlocksByClientId2 } = (0, import_data107.useSelect)(store);
+ const { removeBlocks: removeBlocks2 } = (0, import_data107.useDispatch)(store);
+ const notifyCopy = useNotifyCopy();
+ const ref = (0, import_compose67.useCopyToClipboard)(
+ () => (0, import_blocks65.serialize)(getBlocksByClientId2(clientIds)),
+ () => {
+ switch (eventType) {
+ case "copy":
+ case "copyStyles":
+ onCopy();
+ notifyCopy(eventType, clientIds);
+ break;
+ case "cut":
+ notifyCopy(eventType, clientIds);
+ removeBlocks2(clientIds, updateSelection);
+ break;
+ default:
+ break;
+ }
+ }
+ );
+ const copyMenuItemLabel = label ? label : (0, import_i18n91.__)("Copy");
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(import_components93.MenuItem, { ref, shortcut, children: copyMenuItemLabel });
+ }
+ function BlockSettingsDropdown({
+ clientId,
+ clientIds,
+ children,
+ __experimentalSelectBlock,
+ isContentOnlyListView,
+ ...props
+ }) {
+ const count = clientIds.length;
+ const firstBlockClientId = clientIds[0];
+ const {
+ firstParentClientId,
+ parentBlockType,
+ previousBlockClientId,
+ selectedBlockClientIds,
+ isContentOnly,
+ isZoomOut: isZoomOut2,
+ canEdit,
+ canMove,
+ isFirst,
+ isLast
+ } = (0, import_data107.useSelect)(
+ (select3) => {
+ const {
+ getBlockName: getBlockName2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getPreviousBlockClientId: getPreviousBlockClientId2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds22,
+ getBlockAttributes: getBlockAttributes3,
+ getBlockEditingMode: getBlockEditingMode2,
+ isZoomOut: _isZoomOut,
+ canEditBlock: canEditBlock2,
+ canMoveBlocks: canMoveBlocks2,
+ getBlockIndex: getBlockIndex2,
+ getBlockCount: getBlockCount2
+ } = unlock(select3(store));
+ const { getActiveBlockVariation } = select3(import_blocks65.store);
+ const _firstParentClientId = getBlockRootClientId2(firstBlockClientId);
+ const parentBlockName = _firstParentClientId && getBlockName2(_firstParentClientId);
+ return {
+ firstParentClientId: _firstParentClientId,
+ parentBlockType: _firstParentClientId && (getActiveBlockVariation(
+ parentBlockName,
+ getBlockAttributes3(_firstParentClientId)
+ ) || (0, import_blocks65.getBlockType)(parentBlockName)),
+ previousBlockClientId: getPreviousBlockClientId2(firstBlockClientId),
+ selectedBlockClientIds: getSelectedBlockClientIds22(),
+ isContentOnly: getBlockEditingMode2(firstBlockClientId) === "contentOnly",
+ isZoomOut: _isZoomOut(),
+ canEdit: canEditBlock2(firstBlockClientId),
+ canMove: canMoveBlocks2(clientIds),
+ isFirst: getBlockIndex2(firstBlockClientId) === 0,
+ isLast: getBlockIndex2(firstBlockClientId) === getBlockCount2(_firstParentClientId) - 1
+ };
+ },
+ [firstBlockClientId, clientIds]
+ );
+ const { getBlockOrder: getBlockOrder2, getSelectedBlockClientIds: getSelectedBlockClientIds2 } = (0, import_data107.useSelect)(store);
+ const { moveBlocksDown: moveBlocksDown2, moveBlocksUp: moveBlocksUp2 } = (0, import_data107.useDispatch)(store);
+ const shortcuts = (0, import_data107.useSelect)((select3) => {
+ const { getShortcutRepresentation } = select3(import_keyboard_shortcuts7.store);
return {
- editMediaEntity: settings2?.[mediaEditKey]
+ copy: getShortcutRepresentation("core/block-editor/copy"),
+ cut: getShortcutRepresentation("core/block-editor/cut"),
+ duplicate: getShortcutRepresentation(
+ "core/block-editor/duplicate"
+ ),
+ remove: getShortcutRepresentation("core/block-editor/remove"),
+ insertAfter: getShortcutRepresentation(
+ "core/block-editor/insert-after"
+ ),
+ insertBefore: getShortcutRepresentation(
+ "core/block-editor/insert-before"
+ )
};
}, []);
- const cancel = (0, import_element214.useCallback)(() => {
- setIsInProgress(false);
- onFinishEditing();
- }, [onFinishEditing]);
- const apply = (0, import_element214.useCallback)(async () => {
- if (!editMediaEntity) {
- onFinishEditing();
- createErrorNotice(
- (0, import_i18n143.__)("Sorry, you are not allowed to edit images on this site."),
- {
- id: "image-editing-error",
- type: "snackbar"
- }
- );
+ const hasSelectedBlocks = selectedBlockClientIds.length > 0;
+ async function updateSelectionAfterDuplicate(clientIdsPromise) {
+ if (!__experimentalSelectBlock) {
return;
}
- setIsInProgress(true);
- const modifiers = [];
- if (rotation > 0) {
- modifiers.push({
- type: "rotate",
- args: {
- angle: rotation
- }
- });
- }
- if (crop.width < 99.9 || crop.height < 99.9) {
- modifiers.push({
- type: "crop",
- args: {
- left: crop.x,
- top: crop.y,
- width: crop.width,
- height: crop.height
- }
- });
+ const ids = await clientIdsPromise;
+ if (ids && ids[0]) {
+ __experimentalSelectBlock(ids[0], false);
}
- if (modifiers.length === 0) {
- setIsInProgress(false);
- onFinishEditing();
+ }
+ function updateSelectionAfterRemove() {
+ if (!__experimentalSelectBlock) {
return;
}
- const modifierType = modifiers.length === 1 ? modifiers[0].type : "cropAndRotate";
- try {
- const savedImage = await editMediaEntity(
- id,
- {
- src: url,
- modifiers
- },
- { throwOnError: true }
- );
- if (savedImage) {
- onSaveImage({
- id: savedImage.id,
- url: savedImage.source_url
- });
- createSuccessNotice(messages[modifierType], {
- type: "snackbar",
- actions: [
- {
- label: (0, import_i18n143.__)("Undo"),
- onClick: () => {
- onSaveImage({
- id,
- url
- });
- }
- }
- ]
- });
- }
- } catch (error2) {
- createErrorNotice(
- (0, import_i18n143.sprintf)(
- /* translators: %s: Error message. */
- (0, import_i18n143.__)("Could not edit image. %s"),
- (0, import_dom65.__unstableStripHTML)(error2.message)
- ),
- {
- id: "image-editing-error",
- type: "snackbar"
+ let blockToFocus = previousBlockClientId || firstParentClientId;
+ if (!blockToFocus) {
+ blockToFocus = getBlockOrder2()[0];
+ }
+ const shouldUpdateSelection = hasSelectedBlocks && getSelectedBlockClientIds2().length === 0;
+ __experimentalSelectBlock(blockToFocus, shouldUpdateSelection);
+ }
+ const parentBlockIsSelected = selectedBlockClientIds?.includes(firstParentClientId);
+ const shouldShowBlockParentMenuItem = !parentBlockIsSelected && !!firstParentClientId;
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ BlockActions,
+ {
+ clientIds,
+ __experimentalUpdateSelection: !__experimentalSelectBlock,
+ children: ({
+ canCopyStyles,
+ canDuplicate,
+ canInsertBlock,
+ canRemove,
+ onDuplicate,
+ onInsertAfter,
+ onInsertBefore,
+ onRemove,
+ onCopy,
+ onPasteStyles
+ }) => {
+ const isEmpty4 = !canRemove && !canDuplicate && !canInsertBlock && isContentOnly;
+ if (isEmpty4) {
+ return null;
}
- );
- } finally {
- setIsInProgress(false);
- onFinishEditing();
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ import_components93.DropdownMenu,
+ {
+ icon: more_vertical_default,
+ label: (0, import_i18n91.__)("Options"),
+ className: "block-editor-block-settings-menu",
+ popoverProps: POPOVER_PROPS4,
+ noIcons: true,
+ ...props,
+ children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(import_jsx_runtime306.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(import_components93.MenuGroup, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ block_settings_menu_first_item_default.Slot,
+ {
+ fillProps: { onClose }
+ }
+ ),
+ shouldShowBlockParentMenuItem && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ BlockParentSelectorMenuItem,
+ {
+ parentClientId: firstParentClientId,
+ parentBlockType
+ }
+ ),
+ canMove && isContentOnlyListView && /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(import_jsx_runtime306.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ import_components93.MenuItem,
+ {
+ icon: chevron_up_default,
+ disabled: isFirst,
+ accessibleWhenDisabled: true,
+ onClick: (0, import_compose67.pipe)(onClose, () => {
+ moveBlocksUp2(
+ clientIds,
+ firstParentClientId
+ );
+ }),
+ children: (0, import_i18n91.__)("Move up")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ import_components93.MenuItem,
+ {
+ icon: chevron_down_default,
+ disabled: isLast,
+ accessibleWhenDisabled: true,
+ onClick: (0, import_compose67.pipe)(onClose, () => {
+ moveBlocksDown2(
+ clientIds,
+ firstParentClientId
+ );
+ }),
+ children: (0, import_i18n91.__)("Move down")
+ }
+ )
+ ] }),
+ canEdit && count === 1 && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ block_html_convert_button_default,
+ {
+ clientId: firstBlockClientId
+ }
+ ),
+ !isContentOnly && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ CopyMenuItem,
+ {
+ clientIds,
+ onCopy,
+ shortcut: shortcuts.copy
+ }
+ ),
+ canRemove && !isContentOnly && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ CopyMenuItem,
+ {
+ clientIds,
+ label: (0, import_i18n91.__)("Cut"),
+ eventType: "cut",
+ shortcut: shortcuts.cut,
+ __experimentalUpdateSelection: !__experimentalSelectBlock
+ }
+ ),
+ canDuplicate && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ import_components93.MenuItem,
+ {
+ onClick: (0, import_compose67.pipe)(
+ onClose,
+ onDuplicate,
+ updateSelectionAfterDuplicate
+ ),
+ shortcut: shortcuts.duplicate,
+ children: (0, import_i18n91.__)("Duplicate")
+ }
+ ),
+ canInsertBlock && !isZoomOut2 && /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(import_jsx_runtime306.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ import_components93.MenuItem,
+ {
+ onClick: (0, import_compose67.pipe)(
+ onClose,
+ onInsertBefore
+ ),
+ shortcut: shortcuts.insertBefore,
+ children: (0, import_i18n91.__)("Add before")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ import_components93.MenuItem,
+ {
+ onClick: (0, import_compose67.pipe)(
+ onClose,
+ onInsertAfter
+ ),
+ shortcut: shortcuts.insertAfter,
+ children: (0, import_i18n91.__)("Add after")
+ }
+ )
+ ] }),
+ canEdit && count === 1 && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ note_icon_slot_default.Slot,
+ {
+ fillProps: {
+ clientId: firstBlockClientId,
+ onClose
+ }
+ }
+ )
+ ] }),
+ canCopyStyles && !isContentOnly && /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(import_components93.MenuGroup, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ CopyMenuItem,
+ {
+ clientIds,
+ onCopy,
+ label: (0, import_i18n91.__)("Copy styles"),
+ eventType: "copyStyles"
+ }
+ ),
+ canEdit && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(import_components93.MenuItem, { onClick: onPasteStyles, children: (0, import_i18n91.__)("Paste styles") })
+ ] }),
+ !isContentOnly && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ block_settings_menu_controls_default.Slot,
+ {
+ fillProps: {
+ onClose,
+ count,
+ firstBlockClientId
+ },
+ clientIds
+ }
+ ),
+ typeof children === "function" ? children({ onClose }) : import_element175.Children.map(
+ (child) => (0, import_element175.cloneElement)(child, { onClose })
+ ),
+ canRemove && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(import_components93.MenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
+ import_components93.MenuItem,
+ {
+ onClick: (0, import_compose67.pipe)(
+ onClose,
+ onRemove,
+ updateSelectionAfterRemove
+ ),
+ shortcut: shortcuts.remove,
+ children: (0, import_i18n91.__)("Delete")
+ }
+ ) })
+ ] })
+ }
+ );
+ }
}
- }, [
- crop,
- rotation,
- id,
- url,
- onSaveImage,
- createErrorNotice,
- createSuccessNotice,
- onFinishEditing,
- editMediaEntity
- ]);
- return (0, import_element214.useMemo)(
- () => ({
- isInProgress,
- apply,
- cancel
- }),
- [isInProgress, apply, cancel]
);
}
+ var block_settings_dropdown_default = BlockSettingsDropdown;
- // packages/block-editor/build-module/components/image-editor/use-transform-image.mjs
- var import_element215 = __toESM(require_element(), 1);
- var import_hooks6 = __toESM(require_hooks(), 1);
- function useTransformImage({
- url,
- naturalWidth,
- naturalHeight
- }) {
- const [editedUrl, setEditedUrl] = (0, import_element215.useState)();
- const { cropperState, setCropperState } = useImageCropper();
- const { zoom, aspectRatio, crop, croppedArea } = cropperState;
- const setZoom = (0, import_element215.useCallback)(
- (newZoom) => {
- setCropperState({ zoom: newZoom });
- },
- [setCropperState]
- );
- const setAspectRatio = (0, import_element215.useCallback)(
- (newAspect) => {
- setCropperState({ aspectRatio: newAspect });
- },
- [setCropperState]
+ // packages/block-editor/build-module/components/collab/note-icon-toolbar-slot.mjs
+ var import_components94 = __toESM(require_components(), 1);
+ var NoteIconToolbarSlotFill = (0, import_components94.createSlotFill)(
+ /* @__PURE__ */ Symbol("NoteIconToolbarSlotFill")
+ );
+ var note_icon_toolbar_slot_default = NoteIconToolbarSlotFill;
+
+ // packages/block-editor/build-module/components/block-settings-menu/index.mjs
+ var import_jsx_runtime307 = __toESM(require_jsx_runtime(), 1);
+ function BlockSettingsMenu({ clientIds, ...props }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(import_components95.ToolbarGroup, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(note_icon_toolbar_slot_default.Slot, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_components95.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
+ block_settings_dropdown_default,
+ {
+ clientIds,
+ toggleProps,
+ ...props
+ }
+ ) })
+ ] });
+ }
+ var block_settings_menu_default = BlockSettingsMenu;
+
+ // packages/block-editor/build-module/components/block-edit-visually-button/index.mjs
+ var import_components96 = __toESM(require_components(), 1);
+ var import_i18n92 = __toESM(require_i18n(), 1);
+ var import_data108 = __toESM(require_data(), 1);
+ var import_jsx_runtime308 = __toESM(require_jsx_runtime(), 1);
+ function BlockEditVisuallyButton({ clientIds }) {
+ const clientId = clientIds.length === 1 ? clientIds[0] : void 0;
+ const canEditVisually = (0, import_data108.useSelect)(
+ (select3) => !!clientId && select3(store).getBlockMode(clientId) === "html",
+ [clientId]
);
- const defaultAspect = naturalWidth / naturalHeight;
- const rotatedAspect = naturalHeight / naturalWidth;
- (0, import_element215.useEffect)(() => {
- setAspectRatio(defaultAspect);
- }, []);
- const [internalRotation, setInternalRotation] = (0, import_element215.useState)(0);
- const rotateClockwise = (0, import_element215.useCallback)(() => {
- const angle = (internalRotation + 90) % 360;
- let naturalAspectRatio = defaultAspect;
- const isDefaultAspect = defaultAspect === aspectRatio || rotatedAspect === aspectRatio;
- const shouldResetAspect = zoom !== 1 || !isDefaultAspect;
- if (internalRotation % 180 === 90) {
- naturalAspectRatio = 1 / defaultAspect;
+ const { toggleBlockMode: toggleBlockMode2 } = (0, import_data108.useDispatch)(store);
+ if (!canEditVisually) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_components96.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
+ import_components96.ToolbarButton,
+ {
+ onClick: () => {
+ toggleBlockMode2(clientId);
+ },
+ children: (0, import_i18n92.__)("Edit visually")
}
- if (angle === 0) {
- setEditedUrl();
- setInternalRotation(angle);
- const newAspectRatio = shouldResetAspect ? aspectRatio : defaultAspect;
- setCropperState({
- aspectRatio: newAspectRatio,
- crop: {
- x: -(crop.y * naturalAspectRatio),
- y: crop.x * naturalAspectRatio
- }
+ ) });
+ }
+
+ // packages/block-editor/build-module/components/navigable-toolbar/index.mjs
+ var import_components97 = __toESM(require_components(), 1);
+ var import_element176 = __toESM(require_element(), 1);
+ var import_data109 = __toESM(require_data(), 1);
+ var import_deprecated13 = __toESM(require_deprecated(), 1);
+ var import_dom60 = __toESM(require_dom(), 1);
+ var import_keyboard_shortcuts8 = __toESM(require_keyboard_shortcuts(), 1);
+ var import_keycodes12 = __toESM(require_keycodes(), 1);
+ var import_jsx_runtime309 = __toESM(require_jsx_runtime(), 1);
+ function hasOnlyToolbarItem(elements) {
+ const dataProp = "toolbarItem";
+ return !elements.some((element) => !(dataProp in element.dataset));
+ }
+ function getAllFocusableToolbarItemsIn(container) {
+ return Array.from(
+ container.querySelectorAll("[data-toolbar-item]:not([disabled])")
+ );
+ }
+ function hasFocusWithin(container) {
+ return container.contains(container.ownerDocument.activeElement);
+ }
+ function focusFirstTabbableIn(container) {
+ const [firstTabbable] = import_dom60.focus.tabbable.find(container);
+ if (firstTabbable) {
+ firstTabbable.focus({
+ // When focusing newly mounted toolbars,
+ // the position of the popover is often not right on the first render
+ // This prevents the layout shifts when focusing the dialogs.
+ preventScroll: true
+ });
+ }
+ }
+ function useIsAccessibleToolbar(toolbarRef) {
+ const initialAccessibleToolbarState = true;
+ const [isAccessibleToolbar, setIsAccessibleToolbar] = (0, import_element176.useState)(
+ initialAccessibleToolbarState
+ );
+ const determineIsAccessibleToolbar = (0, import_element176.useCallback)(() => {
+ const tabbables = import_dom60.focus.tabbable.find(toolbarRef.current);
+ const onlyToolbarItem = hasOnlyToolbarItem(tabbables);
+ if (!onlyToolbarItem) {
+ (0, import_deprecated13.default)("Using custom components as toolbar controls", {
+ since: "5.6",
+ alternative: "ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",
+ link: "https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"
});
- return;
}
- function editImage(event) {
- const canvas = document.createElement("canvas");
- let translateX = 0;
- let translateY = 0;
- if (angle % 180) {
- canvas.width = event.target.height;
- canvas.height = event.target.width;
- } else {
- canvas.width = event.target.width;
- canvas.height = event.target.height;
- }
- if (angle === 90 || angle === 180) {
- translateX = canvas.width;
- }
- if (angle === 270 || angle === 180) {
- translateY = canvas.height;
- }
- const context = canvas.getContext("2d");
- context.translate(translateX, translateY);
- context.rotate(angle * Math.PI / 180);
- context.drawImage(event.target, 0, 0);
- canvas.toBlob((blob) => {
- setEditedUrl(URL.createObjectURL(blob));
- setInternalRotation(angle);
- const newAspectRatio = shouldResetAspect ? aspectRatio : canvas.width / canvas.height;
- setCropperState({
- aspectRatio: newAspectRatio,
- crop: {
- x: -(crop.y * naturalAspectRatio),
- y: crop.x * naturalAspectRatio
- }
- });
- });
- }
- const el = new window.Image();
- el.src = url;
- el.onload = editImage;
- const imgCrossOrigin = (0, import_hooks6.applyFilters)(
- "media.crossOrigin",
- void 0,
- url
+ setIsAccessibleToolbar(onlyToolbarItem);
+ }, [toolbarRef]);
+ (0, import_element176.useLayoutEffect)(() => {
+ const observer = new window.MutationObserver(
+ determineIsAccessibleToolbar
);
- if (typeof imgCrossOrigin === "string") {
- el.crossOrigin = imgCrossOrigin;
+ observer.observe(toolbarRef.current, {
+ childList: true,
+ subtree: true
+ });
+ return () => observer.disconnect();
+ }, [determineIsAccessibleToolbar, isAccessibleToolbar, toolbarRef]);
+ return isAccessibleToolbar;
+ }
+ function useToolbarFocus({
+ toolbarRef,
+ focusOnMount,
+ isAccessibleToolbar,
+ defaultIndex,
+ onIndexChange,
+ shouldUseKeyboardFocusShortcut,
+ focusEditorOnEscape
+ }) {
+ const [initialFocusOnMount] = (0, import_element176.useState)(focusOnMount);
+ const [initialIndex] = (0, import_element176.useState)(defaultIndex);
+ const { getLastFocus: getLastFocus2, getSelectedBlockClientId: getSelectedBlockClientId2 } = unlock(
+ (0, import_data109.useSelect)(store)
+ );
+ const { refsMap } = (0, import_element176.useContext)(BlockRefs);
+ const focusToolbar = (0, import_element176.useCallback)(() => {
+ focusFirstTabbableIn(toolbarRef.current);
+ }, [toolbarRef]);
+ const focusToolbarViaShortcut = () => {
+ if (shouldUseKeyboardFocusShortcut) {
+ focusToolbar();
+ }
+ };
+ (0, import_keyboard_shortcuts8.useShortcut)("core/block-editor/focus-toolbar", focusToolbarViaShortcut);
+ (0, import_element176.useEffect)(() => {
+ if (initialFocusOnMount) {
+ focusToolbar();
+ }
+ }, [isAccessibleToolbar, initialFocusOnMount, focusToolbar]);
+ (0, import_element176.useEffect)(() => {
+ const navigableToolbarRef = toolbarRef.current;
+ let raf2 = 0;
+ if (!initialFocusOnMount && !hasFocusWithin(navigableToolbarRef)) {
+ raf2 = window.requestAnimationFrame(() => {
+ const items = getAllFocusableToolbarItemsIn(navigableToolbarRef);
+ const index2 = initialIndex || 0;
+ if (items[index2] && hasFocusWithin(navigableToolbarRef)) {
+ items[index2].focus({
+ // When focusing newly mounted toolbars,
+ // the position of the popover is often not right on the first render
+ // This prevents the layout shifts when focusing the dialogs.
+ preventScroll: true
+ });
+ }
+ });
+ }
+ return () => {
+ window.cancelAnimationFrame(raf2);
+ if (!onIndexChange || !navigableToolbarRef) {
+ return;
+ }
+ const items = getAllFocusableToolbarItemsIn(navigableToolbarRef);
+ const index2 = items.findIndex((item) => item.tabIndex === 0);
+ onIndexChange(index2);
+ };
+ }, [initialIndex, initialFocusOnMount, onIndexChange, toolbarRef]);
+ (0, import_element176.useEffect)(() => {
+ if (!focusEditorOnEscape) {
+ return;
}
+ const navigableToolbar = toolbarRef.current;
+ const handleKeyDown = (event) => {
+ if (event.keyCode !== import_keycodes12.ESCAPE) {
+ return;
+ }
+ const target = getLastFocus2()?.current ?? refsMap.get(getSelectedBlockClientId2());
+ if (target) {
+ event.preventDefault();
+ target.focus();
+ }
+ };
+ navigableToolbar.addEventListener("keydown", handleKeyDown);
+ return () => {
+ navigableToolbar.removeEventListener("keydown", handleKeyDown);
+ };
}, [
- internalRotation,
- defaultAspect,
- url,
- setCropperState,
- crop,
- zoom,
- aspectRatio,
- rotatedAspect,
- setInternalRotation
+ focusEditorOnEscape,
+ getLastFocus2,
+ getSelectedBlockClientId2,
+ refsMap,
+ toolbarRef
]);
- return (0, import_element215.useMemo)(
- () => ({
- editedUrl,
- setEditedUrl,
- crop: croppedArea,
- zoom,
- setZoom,
- rotation: internalRotation,
- rotateClockwise,
- aspect: aspectRatio,
- setAspect: setAspectRatio,
- defaultAspect
- }),
- [
- editedUrl,
- croppedArea,
- zoom,
- setZoom,
- internalRotation,
- rotateClockwise,
- aspectRatio,
- setAspectRatio,
- defaultAspect
- ]
- );
}
-
- // packages/block-editor/build-module/components/image-editor/context.mjs
- var import_jsx_runtime365 = __toESM(require_jsx_runtime(), 1);
- var ImageEditingContext = (0, import_element216.createContext)({});
- ImageEditingContext.displayName = "ImageEditingContext";
- var useImageEditingContext = () => (0, import_element216.useContext)(ImageEditingContext);
- function ImageEditingProvider({
- id,
- url,
- naturalWidth,
- naturalHeight,
- onFinishEditing,
- onSaveImage,
- children
+ function NavigableToolbar({
+ children,
+ focusOnMount,
+ focusEditorOnEscape = false,
+ shouldUseKeyboardFocusShortcut = true,
+ __experimentalInitialIndex: initialIndex,
+ __experimentalOnIndexChange: onIndexChange,
+ orientation = "horizontal",
+ ...props
}) {
- const transformImage = useTransformImage({
- url,
- naturalWidth,
- naturalHeight
- });
- const saveImage = useSaveImage({
- id,
- url,
- onSaveImage,
- onFinishEditing,
- ...transformImage
+ const toolbarRef = (0, import_element176.useRef)();
+ const isAccessibleToolbar = useIsAccessibleToolbar(toolbarRef);
+ useToolbarFocus({
+ toolbarRef,
+ focusOnMount,
+ defaultIndex: initialIndex,
+ onIndexChange,
+ isAccessibleToolbar,
+ shouldUseKeyboardFocusShortcut,
+ focusEditorOnEscape
});
- const providerValue = (0, import_element216.useMemo)(
- () => ({
- ...transformImage,
- ...saveImage
- }),
- [transformImage, saveImage]
+ if (isAccessibleToolbar) {
+ return /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
+ import_components97.Toolbar,
+ {
+ label: props["aria-label"],
+ ref: toolbarRef,
+ orientation,
+ ...props,
+ children
+ }
+ );
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
+ import_components97.NavigableMenu,
+ {
+ orientation,
+ role: "toolbar",
+ ref: toolbarRef,
+ ...props,
+ children
+ }
);
- return /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(ImageEditingContext.Provider, { value: providerValue, children });
}
- // packages/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.mjs
- var import_jsx_runtime366 = __toESM(require_jsx_runtime(), 1);
- function AspectRatioGroup({
- aspectRatios,
- isDisabled,
- label,
- onClick,
- value
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(import_components153.MenuGroup, { label, children: aspectRatios.map(({ name, slug, ratio }) => /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
- import_components153.MenuItem,
- {
- disabled: isDisabled,
- onClick: () => {
- onClick(ratio);
- },
- role: "menuitemradio",
- isSelected: ratio === value,
- icon: ratio === value ? check_default : void 0,
- children: name
- },
- slug
- )) });
+ // packages/block-editor/build-module/components/block-toolbar/use-has-block-toolbar.mjs
+ var import_data110 = __toESM(require_data(), 1);
+ var import_blocks66 = __toESM(require_blocks(), 1);
+ function useHasBlockToolbar() {
+ const enabled = (0, import_data110.useSelect)((select3) => {
+ const { getBlockEditingMode: getBlockEditingMode2, getBlockName: getBlockName2, getBlockSelectionStart: getBlockSelectionStart2 } = select3(store);
+ const selectedBlockClientId = getBlockSelectionStart2();
+ const blockType = selectedBlockClientId && (0, import_blocks66.getBlockType)(getBlockName2(selectedBlockClientId));
+ return blockType && (0, import_blocks66.hasBlockSupport)(blockType, "__experimentalToolbar", true) && getBlockEditingMode2(selectedBlockClientId) !== "disabled";
+ }, []);
+ return enabled;
}
- function ratioToNumber(str) {
- const [a2, b2, ...rest] = str.split("/").map(Number);
- if (a2 <= 0 || b2 <= 0 || Number.isNaN(a2) || Number.isNaN(b2) || rest.length) {
- return NaN;
+
+ // packages/block-editor/build-module/components/block-toolbar/change-design.mjs
+ var import_components98 = __toESM(require_components(), 1);
+ var import_i18n93 = __toESM(require_i18n(), 1);
+ var import_blocks67 = __toESM(require_blocks(), 1);
+ var import_element177 = __toESM(require_element(), 1);
+ var import_data111 = __toESM(require_data(), 1);
+ var import_jsx_runtime310 = __toESM(require_jsx_runtime(), 1);
+ var EMPTY_ARRAY9 = [];
+ var MAX_PATTERNS_TO_SHOW = 6;
+ var POPOVER_PROPS5 = {
+ placement: "bottom-start"
+ };
+ function ChangeDesign({ clientId }) {
+ const { categories, currentPatternName, patterns } = (0, import_data111.useSelect)(
+ (select3) => {
+ const {
+ getBlockAttributes: getBlockAttributes3,
+ getBlockRootClientId: getBlockRootClientId2,
+ __experimentalGetAllowedPatterns: __experimentalGetAllowedPatterns2
+ } = select3(store);
+ const attributes = getBlockAttributes3(clientId);
+ const _categories = attributes?.metadata?.categories || EMPTY_ARRAY9;
+ const rootBlock = getBlockRootClientId2(clientId);
+ const _patterns = _categories.length > 0 ? __experimentalGetAllowedPatterns2(rootBlock) : EMPTY_ARRAY9;
+ return {
+ categories: _categories,
+ currentPatternName: attributes?.metadata?.patternName,
+ patterns: _patterns
+ };
+ },
+ [clientId]
+ );
+ const { replaceBlocks: replaceBlocks2 } = (0, import_data111.useDispatch)(store);
+ const sameCategoryPatternsWithSingleWrapper = (0, import_element177.useMemo)(() => {
+ if (categories.length === 0 || !patterns || patterns.length === 0) {
+ return EMPTY_ARRAY9;
+ }
+ return patterns.filter((pattern) => {
+ const isCorePattern = pattern.source === "core" || pattern.source?.startsWith("pattern-directory") && pattern.source !== "pattern-directory/theme";
+ return (
+ // Check if the pattern has only one top level block,
+ // otherwise we may switch to a pattern that doesn't have replacement suggestions.
+ pattern.blocks.length === 1 && // We exclude the core patterns and pattern directory patterns that are not theme patterns.
+ !isCorePattern && // Exclude current pattern.
+ currentPatternName !== pattern.name && pattern.categories?.some((category) => {
+ return categories.includes(category);
+ }) && // Check if the pattern is not a synced pattern.
+ (pattern.syncStatus === "unsynced" || !pattern.id)
+ );
+ }).slice(0, MAX_PATTERNS_TO_SHOW);
+ }, [categories, currentPatternName, patterns]);
+ if (sameCategoryPatternsWithSingleWrapper.length < 2) {
+ return null;
}
- return b2 ? a2 / b2 : a2;
- }
- function presetRatioAsNumber({ ratio, ...rest }) {
- return {
- ratio: ratioToNumber(ratio),
- ...rest
+ const onClickPattern = (pattern) => {
+ const newBlocks = (pattern.blocks ?? []).map((block) => {
+ return (0, import_blocks67.cloneBlock)(block);
+ });
+ newBlocks[0].attributes.metadata = {
+ ...newBlocks[0].attributes.metadata,
+ categories
+ };
+ replaceBlocks2(clientId, newBlocks);
};
- }
- function AspectRatioDropdown({ toggleProps }) {
- const { isInProgress, aspect, setAspect, defaultAspect } = useImageEditingContext();
- const [defaultRatios, themeRatios, showDefaultRatios] = useSettings(
- "dimensions.aspectRatios.default",
- "dimensions.aspectRatios.theme",
- "dimensions.defaultAspectRatios"
- );
- return /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
- import_components153.DropdownMenu,
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
+ import_components98.Dropdown,
{
- icon: aspect_ratio_default,
- label: (0, import_i18n144.__)("Aspect Ratio"),
- popoverProps: POPOVER_PROPS7,
- toggleProps,
- children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime366.jsxs)(import_jsx_runtime366.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
- AspectRatioGroup,
- {
- isDisabled: isInProgress,
- onClick: (newAspect) => {
- setAspect(newAspect);
- onClose();
- },
- value: aspect,
- aspectRatios: [
- // All ratios should be mirrored in AspectRatioTool in @wordpress/block-editor.
- {
- slug: "original",
- name: (0, import_i18n144.__)("Original"),
- ratio: defaultAspect
- },
- ...showDefaultRatios ? defaultRatios.map(presetRatioAsNumber).filter(({ ratio }) => ratio === 1) : []
- ]
- }
- ),
- themeRatios?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
- AspectRatioGroup,
- {
- label: (0, import_i18n144.__)("Theme"),
- isDisabled: isInProgress,
- onClick: (newAspect) => {
- setAspect(newAspect);
- onClose();
- },
- value: aspect,
- aspectRatios: themeRatios
- }
- ),
- showDefaultRatios && /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
- AspectRatioGroup,
- {
- label: (0, import_i18n144.__)("Landscape"),
- isDisabled: isInProgress,
- onClick: (newAspect) => {
- setAspect(newAspect);
- onClose();
- },
- value: aspect,
- aspectRatios: defaultRatios.map(presetRatioAsNumber).filter(({ ratio }) => ratio > 1)
- }
- ),
- showDefaultRatios && /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
- AspectRatioGroup,
+ popoverProps: POPOVER_PROPS5,
+ renderToggle: ({ onToggle, isOpen }) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(import_components98.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
+ import_components98.ToolbarButton,
{
- label: (0, import_i18n144.__)("Portrait"),
- isDisabled: isInProgress,
- onClick: (newAspect) => {
- setAspect(newAspect);
- onClose();
- },
- value: aspect,
- aspectRatios: defaultRatios.map(presetRatioAsNumber).filter(({ ratio }) => ratio < 1)
+ onClick: () => onToggle(!isOpen),
+ "aria-expanded": isOpen,
+ children: (0, import_i18n93.__)("Change design")
}
- )
- ] })
- }
- );
- }
-
- // packages/block-editor/build-module/components/image-editor/cropper.mjs
- var import_components154 = __toESM(require_components(), 1);
- var import_compose84 = __toESM(require_compose(), 1);
- var import_jsx_runtime367 = __toESM(require_jsx_runtime(), 1);
- function ImageCropper2({
- url,
- width,
- height,
- naturalHeight,
- naturalWidth,
- borderProps
- }) {
- const { isInProgress, editedUrl, rotation } = useImageEditingContext();
- const [contentResizeListener, { width: clientWidth }] = (0, import_compose84.useResizeObserver)();
- let editedHeight = height || clientWidth * naturalHeight / naturalWidth;
- if (rotation % 180 === 90) {
- editedHeight = clientWidth * naturalWidth / naturalHeight;
- }
- const area = /* @__PURE__ */ (0, import_jsx_runtime367.jsxs)(
- "div",
- {
- className: clsx_default(
- "wp-block-image__crop-area",
- borderProps?.className,
+ ) });
+ },
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
+ import_components98.__experimentalDropdownContentWrapper,
{
- "is-applying": isInProgress
+ className: "block-editor-block-toolbar-change-design-content-wrapper",
+ paddingSize: "none",
+ children: /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
+ block_patterns_list_default,
+ {
+ blockPatterns: sameCategoryPatternsWithSingleWrapper,
+ onClickPattern,
+ showTitlesAsTooltip: true
+ }
+ )
}
- ),
- style: {
- ...borderProps?.style,
- width: width || clientWidth,
- height: editedHeight
- },
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime367.jsx)(ImageCropper, { src: editedUrl || url }),
- isInProgress && /* @__PURE__ */ (0, import_jsx_runtime367.jsx)(import_components154.Spinner, {})
- ]
+ )
}
);
- return /* @__PURE__ */ (0, import_jsx_runtime367.jsxs)(import_jsx_runtime367.Fragment, { children: [
- contentResizeListener,
- area
- ] });
}
- // packages/block-editor/build-module/components/image-editor/zoom-dropdown.mjs
- var import_components155 = __toESM(require_components(), 1);
- var import_i18n145 = __toESM(require_i18n(), 1);
- var import_jsx_runtime368 = __toESM(require_jsx_runtime(), 1);
- function ZoomDropdown() {
- const { isInProgress, zoom, setZoom } = useImageEditingContext();
- return /* @__PURE__ */ (0, import_jsx_runtime368.jsx)(
- import_components155.Dropdown,
- {
- contentClassName: "wp-block-image__zoom",
- popoverProps: POPOVER_PROPS7,
- renderToggle: ({ isOpen, onToggle }) => /* @__PURE__ */ (0, import_jsx_runtime368.jsx)(
- import_components155.ToolbarButton,
- {
- icon: search_default,
- label: (0, import_i18n145.__)("Zoom"),
- onClick: onToggle,
- "aria-expanded": isOpen,
- disabled: isInProgress
- }
- ),
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime368.jsx)(import_components155.__experimentalDropdownContentWrapper, { paddingSize: "medium", children: /* @__PURE__ */ (0, import_jsx_runtime368.jsx)(
- import_components155.RangeControl,
- {
- label: (0, import_i18n145.__)("Zoom"),
- min: MIN_ZOOM3,
- max: MAX_ZOOM3,
- value: Math.round(zoom * 100),
- onChange: (newZoom) => setZoom(newZoom / 100)
- }
- ) })
+ // packages/block-editor/build-module/components/block-toolbar/switch-section-style.mjs
+ var import_components99 = __toESM(require_components(), 1);
+ var import_i18n95 = __toESM(require_i18n(), 1);
+ var import_data113 = __toESM(require_data(), 1);
+
+ // packages/block-editor/build-module/components/block-styles/use-styles-for-block.mjs
+ var import_data112 = __toESM(require_data(), 1);
+ var import_blocks68 = __toESM(require_blocks(), 1);
+ var import_element178 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/block-styles/utils.mjs
+ var import_token_list = __toESM(require_token_list(), 1);
+ var import_i18n94 = __toESM(require_i18n(), 1);
+ function getActiveStyle(styles, className2) {
+ for (const style of new import_token_list.default(className2).values()) {
+ if (style.indexOf("is-style-") === -1) {
+ continue;
}
- );
+ const potentialStyleName = style.substring(9);
+ const activeStyle = styles?.find(
+ ({ name }) => name === potentialStyleName
+ );
+ if (activeStyle) {
+ return activeStyle;
+ }
+ }
+ return getDefaultStyle(styles);
}
-
- // packages/block-editor/build-module/components/image-editor/rotation-button.mjs
- var import_components156 = __toESM(require_components(), 1);
- var import_i18n146 = __toESM(require_i18n(), 1);
- var import_jsx_runtime369 = __toESM(require_jsx_runtime(), 1);
- function RotationButton() {
- const { isInProgress, rotateClockwise } = useImageEditingContext();
- return /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(
- import_components156.ToolbarButton,
+ function replaceActiveStyle(className2, activeStyle, newStyle) {
+ const list = new import_token_list.default(className2);
+ if (activeStyle) {
+ list.remove("is-style-" + activeStyle.name);
+ }
+ list.add("is-style-" + newStyle.name);
+ return list.value;
+ }
+ function getRenderedStyles(styles) {
+ if (!styles || styles.length === 0) {
+ return [];
+ }
+ return getDefaultStyle(styles) ? styles : [
{
- icon: rotate_right_default,
- label: (0, import_i18n146.__)("Rotate"),
- onClick: rotateClockwise,
- disabled: isInProgress
- }
- );
+ name: "default",
+ label: (0, import_i18n94._x)("Default", "block style"),
+ isDefault: true
+ },
+ ...styles
+ ];
}
-
- // packages/block-editor/build-module/components/image-editor/form-controls.mjs
- var import_components157 = __toESM(require_components(), 1);
- var import_i18n147 = __toESM(require_i18n(), 1);
- var import_jsx_runtime370 = __toESM(require_jsx_runtime(), 1);
- function FormControls() {
- const { isInProgress, apply, cancel } = useImageEditingContext();
- return /* @__PURE__ */ (0, import_jsx_runtime370.jsxs)(import_jsx_runtime370.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime370.jsx)(import_components157.ToolbarButton, { onClick: apply, disabled: isInProgress, children: (0, import_i18n147.__)("Apply") }),
- /* @__PURE__ */ (0, import_jsx_runtime370.jsx)(import_components157.ToolbarButton, { onClick: cancel, children: (0, import_i18n147.__)("Cancel") })
- ] });
+ function getDefaultStyle(styles) {
+ return styles?.find((style) => style.isDefault);
}
- // packages/block-editor/build-module/components/image-editor/index.mjs
- var import_jsx_runtime371 = __toESM(require_jsx_runtime(), 1);
- function ImageEditor({
- id,
- url,
- width,
- height,
- naturalHeight,
- naturalWidth,
- onSaveImage,
- onFinishEditing,
- borderProps
- }) {
- (0, import_deprecated17.default)("wp.blockEditor.__experimentalImageEditor", {
- since: "7.1",
- hint: "The Media Editor modal is now the default crop experience for core blocks. This component will be removed in a future major release."
- });
- return /* @__PURE__ */ (0, import_jsx_runtime371.jsx)(ImageCropperProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime371.jsxs)(
- ImageEditingProvider,
- {
- id,
- url,
- naturalWidth,
- naturalHeight,
- onSaveImage,
- onFinishEditing,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime371.jsx)(
- ImageCropper2,
- {
- borderProps,
- url,
- width,
- height,
- naturalHeight,
- naturalWidth
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime371.jsxs)(block_controls_default, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime371.jsxs)(import_components158.ToolbarGroup, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime371.jsx)(ZoomDropdown, {}),
- /* @__PURE__ */ (0, import_jsx_runtime371.jsx)(import_components158.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime371.jsx)(
- AspectRatioDropdown,
- {
- toggleProps
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime371.jsx)(RotationButton, {})
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime371.jsx)(import_components158.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime371.jsx)(FormControls, {}) })
- ] })
- ]
- }
- ) });
- }
-
- // packages/block-editor/build-module/components/image-size-control/index.mjs
- var import_components159 = __toESM(require_components(), 1);
- var import_i18n148 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/image-size-control/use-dimension-handler.mjs
- var import_element217 = __toESM(require_element(), 1);
- function useDimensionHandler(customHeight, customWidth, defaultHeight, defaultWidth, onChange) {
- const [currentWidth, setCurrentWidth] = (0, import_element217.useState)(
- customWidth ?? defaultWidth ?? ""
- );
- const [currentHeight, setCurrentHeight] = (0, import_element217.useState)(
- customHeight ?? defaultHeight ?? ""
- );
- (0, import_element217.useEffect)(() => {
- if (customWidth === void 0 && defaultWidth !== void 0) {
- setCurrentWidth(defaultWidth);
- }
- if (customHeight === void 0 && defaultHeight !== void 0) {
- setCurrentHeight(defaultHeight);
- }
- }, [defaultWidth, defaultHeight]);
- (0, import_element217.useEffect)(() => {
- if (customWidth !== void 0 && Number.parseInt(customWidth) !== Number.parseInt(currentWidth)) {
- setCurrentWidth(customWidth);
+ // packages/block-editor/build-module/components/block-styles/use-styles-for-block.mjs
+ function useGenericPreviewBlock(block, type) {
+ return (0, import_element178.useMemo)(() => {
+ const example = type?.example;
+ const blockName = type?.name;
+ if (example && blockName) {
+ return (0, import_blocks68.getBlockFromExample)(blockName, {
+ attributes: example.attributes,
+ innerBlocks: example.innerBlocks,
+ innerContent: example.innerContent
+ });
}
- if (customHeight !== void 0 && Number.parseInt(customHeight) !== Number.parseInt(currentHeight)) {
- setCurrentHeight(customHeight);
+ if (block) {
+ return (0, import_blocks68.cloneBlock)(block);
}
- }, [customWidth, customHeight]);
- const updateDimension = (dimension, value) => {
- const parsedValue = value === "" ? void 0 : parseInt(value, 10);
- if (dimension === "width") {
- setCurrentWidth(parsedValue);
- } else {
- setCurrentHeight(parsedValue);
+ }, [block, type?.example, type?.name]);
+ }
+ function useStylesForBlocks({ clientId, onSwitch }) {
+ const selector3 = (select3) => {
+ const { getBlock: getBlock2 } = select3(store);
+ const block2 = getBlock2(clientId);
+ if (!block2) {
+ return {};
}
- onChange({
- [dimension]: parsedValue
- });
+ const blockType2 = (0, import_blocks68.getBlockType)(block2.name);
+ const { getBlockStyles: getBlockStyles2 } = select3(import_blocks68.store);
+ return {
+ block: !blockType2?.example ? block2 : null,
+ blockType: blockType2,
+ styles: getBlockStyles2(block2.name),
+ className: block2.attributes.className || ""
+ };
};
- const updateDimensions = (nextHeight, nextWidth) => {
- setCurrentHeight(nextHeight ?? defaultHeight);
- setCurrentWidth(nextWidth ?? defaultWidth);
- onChange({ height: nextHeight, width: nextWidth });
+ const { styles, block, blockType, className: className2 } = (0, import_data112.useSelect)(selector3, [
+ clientId
+ ]);
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data112.useDispatch)(store);
+ const stylesToRender = getRenderedStyles(styles);
+ const activeStyle = getActiveStyle(stylesToRender, className2);
+ const genericPreviewBlock = useGenericPreviewBlock(block, blockType);
+ const onSelect = (style) => {
+ const styleClassName = replaceActiveStyle(
+ className2,
+ activeStyle,
+ style
+ );
+ updateBlockAttributes2(clientId, {
+ className: styleClassName
+ });
+ onSwitch();
};
return {
- currentHeight,
- currentWidth,
- updateDimension,
- updateDimensions
+ onSelect,
+ stylesToRender,
+ activeStyle,
+ genericPreviewBlock,
+ className: className2
};
}
- // packages/block-editor/build-module/components/image-size-control/index.mjs
- var import_jsx_runtime372 = __toESM(require_jsx_runtime(), 1);
- var IMAGE_SIZE_PRESETS = [25, 50, 75, 100];
- var noop15 = () => {
- };
- function getScaledWidthAndHeight(scale, imageWidth, imageHeight) {
- const scaledWidth = Math.round(imageWidth * (scale / 100));
- const scaledHeight = Math.round(imageHeight * (scale / 100));
- return {
- scaledWidth,
- scaledHeight
- };
- }
- function ImageSizeControl({
- imageSizeHelp,
- imageWidth,
- imageHeight,
- imageSizeOptions = [],
- isResizable = true,
- slug,
- width,
- height,
- onChange,
- onChangeImage = noop15
- }) {
- const { currentHeight, currentWidth, updateDimension, updateDimensions } = useDimensionHandler(height, width, imageHeight, imageWidth, onChange);
- const handleUpdateDimensions = (scale) => {
- if (void 0 === scale) {
- updateDimensions();
- return;
- }
- const { scaledWidth, scaledHeight } = getScaledWidthAndHeight(
- scale,
- imageWidth,
- imageHeight
- );
- updateDimensions(scaledHeight, scaledWidth);
- };
- const selectedValue = IMAGE_SIZE_PRESETS.find((scale) => {
- const { scaledWidth, scaledHeight } = getScaledWidthAndHeight(
- scale,
- imageWidth,
- imageHeight
- );
- return currentWidth === scaledWidth && currentHeight === scaledHeight;
- });
- return /* @__PURE__ */ (0, import_jsx_runtime372.jsxs)(import_components159.__experimentalVStack, { className: "block-editor-image-size-control", spacing: "4", children: [
- imageSizeOptions && imageSizeOptions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime372.jsx)(
- import_components159.SelectControl,
- {
- label: (0, import_i18n148.__)("Resolution"),
- value: slug,
- options: imageSizeOptions,
- onChange: onChangeImage,
- help: imageSizeHelp
- }
- ),
- isResizable && /* @__PURE__ */ (0, import_jsx_runtime372.jsxs)(import_jsx_runtime372.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime372.jsxs)(import_components159.__experimentalHStack, { align: "baseline", spacing: "4", children: [
- /* @__PURE__ */ (0, import_jsx_runtime372.jsx)(
- import_components159.__experimentalNumberControl,
- {
- label: (0, import_i18n148.__)("Width"),
- value: currentWidth,
- min: 1,
- onChange: (value) => updateDimension("width", value)
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime372.jsx)(
- import_components159.__experimentalNumberControl,
- {
- label: (0, import_i18n148.__)("Height"),
- value: currentHeight,
- min: 1,
- onChange: (value) => updateDimension("height", value)
- }
- )
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime372.jsx)(
- import_components159.__experimentalToggleGroupControl,
+ // packages/block-editor/build-module/components/block-toolbar/switch-section-style.mjs
+ var import_jsx_runtime311 = __toESM(require_jsx_runtime(), 1);
+ var { getVariationStyle: getVariationStyle2 } = unlock(privateApis);
+ var styleIcon = /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)(
+ import_components99.SVG,
+ {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: "24",
+ height: "24",
+ "aria-hidden": "true",
+ focusable: "false",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(import_components99.Path, { d: "M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z" }),
+ /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
+ import_components99.Path,
{
- label: (0, import_i18n148.__)("Image size presets"),
- hideLabelFromVision: true,
- onChange: handleUpdateDimensions,
- value: selectedValue,
- isBlock: true,
- children: IMAGE_SIZE_PRESETS.map((scale) => {
- return /* @__PURE__ */ (0, import_jsx_runtime372.jsx)(
- import_components159.__experimentalToggleGroupControlOption,
- {
- value: scale,
- label: (0, import_i18n148.sprintf)(
- /* translators: %d: Percentage value. */
- (0, import_i18n148.__)("%d%%"),
- scale
- )
- },
- scale
- );
- })
+ stroke: "currentColor",
+ strokeWidth: "1.5",
+ d: "M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z"
}
)
- ] })
- ] });
- }
-
- // packages/block-editor/build-module/components/justify-content-control/ui.mjs
- var import_components160 = __toESM(require_components(), 1);
- var import_i18n149 = __toESM(require_i18n(), 1);
- var import_jsx_runtime373 = __toESM(require_jsx_runtime(), 1);
- var icons = {
- left: justify_left_default,
- center: justify_center_default,
- right: justify_right_default,
- "space-between": justify_space_between_default,
- stretch: justify_stretch_default
- };
- function JustifyContentUI({
- allowedControls = ["left", "center", "right", "space-between"],
- isCollapsed: isCollapsed3 = true,
- onChange,
- value,
- popoverProps: popoverProps3,
- isToolbar
- }) {
- const handleClick = (next) => {
- if (next === value) {
- onChange(void 0);
- } else {
- onChange(next);
- }
- };
- const icon = value ? icons[value] : icons.left;
- const allControls = [
- {
- name: "left",
- icon: justify_left_default,
- title: (0, import_i18n149.__)("Justify items left"),
- isActive: "left" === value,
- onClick: () => handleClick("left")
- },
- {
- name: "center",
- icon: justify_center_default,
- title: (0, import_i18n149.__)("Justify items center"),
- isActive: "center" === value,
- onClick: () => handleClick("center")
- },
- {
- name: "right",
- icon: justify_right_default,
- title: (0, import_i18n149.__)("Justify items right"),
- isActive: "right" === value,
- onClick: () => handleClick("right")
+ ]
+ }
+ );
+ function SwitchSectionStyle({ clientId }) {
+ const { stylesToRender, activeStyle, className: className2 } = useStylesForBlocks({
+ clientId
+ });
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data113.useDispatch)(store);
+ const { globalSettings, globalStyles, blockName } = (0, import_data113.useSelect)(
+ (select3) => {
+ const settings2 = select3(store).getSettings();
+ return {
+ globalSettings: settings2.__experimentalFeatures,
+ globalStyles: settings2[globalStylesDataKey],
+ blockName: select3(store).getBlockName(clientId)
+ };
},
+ [clientId]
+ );
+ const activeStyleBackground = activeStyle?.name ? getVariationStyle2(
{
- name: "space-between",
- icon: justify_space_between_default,
- title: (0, import_i18n149.__)("Space between items"),
- isActive: "space-between" === value,
- onClick: () => handleClick("space-between")
+ settings: globalSettings,
+ styles: globalStyles
},
+ blockName,
+ activeStyle.name
+ )?.color?.background : void 0;
+ if (!stylesToRender || stylesToRender.length === 0) {
+ return null;
+ }
+ const handleStyleSwitch = () => {
+ const currentIndex = stylesToRender.findIndex(
+ (style) => style.name === activeStyle.name
+ );
+ const nextIndex = (currentIndex + 1) % stylesToRender.length;
+ const nextStyle = stylesToRender[nextIndex];
+ const styleClassName = replaceActiveStyle(
+ className2,
+ activeStyle,
+ nextStyle
+ );
+ updateBlockAttributes2(clientId, {
+ className: styleClassName
+ });
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(import_components99.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
+ import_components99.ToolbarButton,
{
- name: "stretch",
- icon: justify_stretch_default,
- title: (0, import_i18n149.__)("Stretch items"),
- isActive: "stretch" === value,
- onClick: () => handleClick("stretch")
- }
- ];
- const UIComponent = isToolbar ? import_components160.ToolbarGroup : import_components160.ToolbarDropdownMenu;
- const extraProps = isToolbar ? { isCollapsed: isCollapsed3 } : {};
- return /* @__PURE__ */ (0, import_jsx_runtime373.jsx)(
- UIComponent,
- {
- icon,
- popoverProps: popoverProps3,
- label: (0, import_i18n149.__)("Change items justification"),
- controls: allControls.filter(
- (elem) => allowedControls.includes(elem.name)
- ),
- ...extraProps
+ onClick: handleStyleSwitch,
+ label: (0, import_i18n95.__)("Shuffle styles"),
+ children: /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
+ import_components99.Icon,
+ {
+ icon: styleIcon,
+ style: {
+ fill: activeStyleBackground || "transparent"
+ }
+ }
+ )
}
- );
+ ) });
}
- var ui_default4 = JustifyContentUI;
+ var switch_section_style_default = SwitchSectionStyle;
- // packages/block-editor/build-module/components/justify-content-control/index.mjs
- var import_jsx_runtime374 = __toESM(require_jsx_runtime(), 1);
- var JustifyContentControl = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime374.jsx)(ui_default4, { ...props, isToolbar: false });
- };
- var JustifyToolbar = (props) => {
- return /* @__PURE__ */ (0, import_jsx_runtime374.jsx)(ui_default4, { ...props, isToolbar: true });
- };
+ // packages/block-editor/build-module/components/block-toolbar/edit-section-button.mjs
+ var import_components100 = __toESM(require_components(), 1);
+ var import_i18n96 = __toESM(require_i18n(), 1);
+ var import_data115 = __toESM(require_data(), 1);
+ var import_blocks69 = __toESM(require_blocks(), 1);
- // packages/block-editor/build-module/components/link-control/index.mjs
- var import_components168 = __toESM(require_components(), 1);
- var import_i18n159 = __toESM(require_i18n(), 1);
- var import_element225 = __toESM(require_element(), 1);
- var import_compose88 = __toESM(require_compose(), 1);
- var import_dom68 = __toESM(require_dom(), 1);
- var import_keycodes19 = __toESM(require_keycodes(), 1);
- var import_is_shallow_equal3 = __toESM(require_is_shallow_equal(), 1);
- var import_data148 = __toESM(require_data(), 1);
- var import_preferences4 = __toESM(require_preferences(), 1);
- var import_deprecated21 = __toESM(require_deprecated(), 1);
- var import_url6 = __toESM(require_url(), 1);
+ // packages/block-editor/build-module/hooks/use-content-only-section-edit.mjs
+ var import_data114 = __toESM(require_data(), 1);
+ function useContentOnlySectionEdit(clientId) {
+ const {
+ isSectionBlock: isSectionBlock2,
+ isWithinSection,
+ isWithinEditedSection,
+ isEditingContentOnlySection,
+ editedContentOnlySection: editedContentOnlySection2
+ } = (0, import_data114.useSelect)(
+ (select3) => {
+ const {
+ isSectionBlock: _isSectionBlock,
+ getParentSectionBlock: getParentSectionBlock2,
+ getEditedContentOnlySection: getEditedContentOnlySection2,
+ isWithinEditedContentOnlySection: isWithinEditedContentOnlySection2
+ } = unlock(select3(store));
+ const editedSection = getEditedContentOnlySection2();
+ return {
+ isSectionBlock: _isSectionBlock(clientId),
+ isWithinSection: _isSectionBlock(clientId) || !!getParentSectionBlock2(clientId),
+ isWithinEditedSection: isWithinEditedContentOnlySection2(clientId),
+ isEditingContentOnlySection: editedSection === clientId,
+ editedContentOnlySection: editedSection
+ };
+ },
+ [clientId]
+ );
+ const blockEditorActions = (0, import_data114.useDispatch)(store);
+ const { editContentOnlySection: editContentOnlySection2, stopEditingContentOnlySection: stopEditingContentOnlySection2 } = unlock(blockEditorActions);
+ return {
+ isSectionBlock: isSectionBlock2,
+ isWithinSection,
+ isWithinEditedSection,
+ isEditingContentOnlySection,
+ editedContentOnlySection: editedContentOnlySection2,
+ editContentOnlySection: editContentOnlySection2,
+ stopEditingContentOnlySection: stopEditingContentOnlySection2
+ };
+ }
- // packages/block-editor/build-module/components/link-control/settings-drawer.mjs
- var import_components161 = __toESM(require_components(), 1);
- var import_compose85 = __toESM(require_compose(), 1);
- var import_i18n150 = __toESM(require_i18n(), 1);
- var import_element218 = __toESM(require_element(), 1);
- var import_jsx_runtime375 = __toESM(require_jsx_runtime(), 1);
- function LinkSettingsDrawer({ children, settingsOpen, setSettingsOpen }) {
- const prefersReducedMotion = (0, import_compose85.useReducedMotion)();
- const MaybeAnimatePresence = prefersReducedMotion ? import_element218.Fragment : import_components161.__unstableAnimatePresence;
- const MaybeMotionDiv = prefersReducedMotion ? "div" : import_components161.__unstableMotion.div;
- const id = (0, import_compose85.useInstanceId)(LinkSettingsDrawer);
- const settingsDrawerId = `link-control-settings-drawer-${id}`;
- return /* @__PURE__ */ (0, import_jsx_runtime375.jsxs)(import_jsx_runtime375.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(
- import_components161.Button,
- {
- __next40pxDefaultSize: true,
- className: "block-editor-link-control__drawer-toggle",
- "aria-expanded": settingsOpen,
- onClick: () => setSettingsOpen(!settingsOpen),
- icon: (0, import_i18n150.isRTL)() ? chevron_left_small_default : chevron_right_small_default,
- "aria-controls": settingsDrawerId,
- children: (0, import_i18n150._x)("Advanced", "Additional link settings")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(MaybeAnimatePresence, { children: settingsOpen && /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(
- MaybeMotionDiv,
- {
- className: "block-editor-link-control__drawer",
- hidden: !settingsOpen,
- id: settingsDrawerId,
- initial: "collapsed",
- animate: "open",
- exit: "collapsed",
- variants: {
- open: { opacity: 1, height: "auto" },
- collapsed: { opacity: 0, height: 0 }
- },
- transition: {
- duration: 0.1
- },
- children: /* @__PURE__ */ (0, import_jsx_runtime375.jsx)("div", { className: "block-editor-link-control__drawer-inner", children })
+ // packages/block-editor/build-module/components/block-toolbar/edit-section-button.mjs
+ var import_jsx_runtime312 = __toESM(require_jsx_runtime(), 1);
+ function EditSectionButton({ clientId }) {
+ const {
+ isSectionBlock: isSectionBlock2,
+ isEditingContentOnlySection,
+ editContentOnlySection: editContentOnlySection2,
+ stopEditingContentOnlySection: stopEditingContentOnlySection2
+ } = useContentOnlySectionEdit(clientId);
+ const blockType = (0, import_data115.useSelect)(
+ (select3) => {
+ if (!clientId) {
+ return null;
}
- ) })
- ] });
+ const { getBlockName: getBlockName2 } = select3(store);
+ const blockName = getBlockName2(clientId);
+ return blockName ? { name: blockName } : null;
+ },
+ [clientId]
+ );
+ if (!clientId || !isSectionBlock2 && !isEditingContentOnlySection || (0, import_blocks69.isReusableBlock)(blockType) || (0, import_blocks69.isTemplatePart)(blockType)) {
+ return null;
+ }
+ const isEditing = isEditingContentOnlySection;
+ const handleClick = () => {
+ if (isEditing) {
+ stopEditingContentOnlySection2();
+ } else {
+ editContentOnlySection2(clientId);
+ }
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(import_components100.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(import_components100.ToolbarButton, { onClick: handleClick, children: isEditing ? (
+ /* translators: Button label to leave pattern editing mode. */
+ (0, import_i18n96.__)("Exit pattern")
+ ) : (
+ /* translators: Button label to enter pattern editing mode. */
+ (0, import_i18n96.__)("Edit pattern")
+ ) }) });
}
- var settings_drawer_default = LinkSettingsDrawer;
- // packages/block-editor/build-module/components/link-control/search-input.mjs
- var import_element221 = __toESM(require_element(), 1);
- var import_i18n155 = __toESM(require_i18n(), 1);
- var import_deprecated20 = __toESM(require_deprecated(), 1);
+ // packages/block-editor/build-module/components/block-toolbar/block-toolbar-icon.mjs
+ var import_components110 = __toESM(require_components(), 1);
+ var import_i18n103 = __toESM(require_i18n(), 1);
+ var import_data119 = __toESM(require_data(), 1);
+ var import_blocks75 = __toESM(require_blocks(), 1);
+ var import_preferences2 = __toESM(require_preferences(), 1);
- // packages/block-editor/build-module/components/link-control/search-results.mjs
- var import_i18n154 = __toESM(require_i18n(), 1);
- var import_components164 = __toESM(require_components(), 1);
+ // packages/block-editor/build-module/components/block-switcher/index.mjs
+ var import_i18n100 = __toESM(require_i18n(), 1);
+ var import_components107 = __toESM(require_components(), 1);
+ var import_blocks74 = __toESM(require_blocks(), 1);
+ var import_data117 = __toESM(require_data(), 1);
- // packages/block-editor/build-module/components/link-control/search-create-button.mjs
- var import_i18n151 = __toESM(require_i18n(), 1);
- var import_components162 = __toESM(require_components(), 1);
- var import_element219 = __toESM(require_element(), 1);
- var import_jsx_runtime376 = __toESM(require_jsx_runtime(), 1);
- var LinkControlSearchCreate = ({
- searchTerm,
- onClick,
- itemProps,
- buttonText
- }) => {
- if (!searchTerm) {
+ // packages/block-editor/build-module/components/block-switcher/block-transformations-menu.mjs
+ var import_i18n97 = __toESM(require_i18n(), 1);
+ var import_components103 = __toESM(require_components(), 1);
+ var import_blocks71 = __toESM(require_blocks(), 1);
+ var import_element180 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/block-switcher/preview-block-popover.mjs
+ var import_components101 = __toESM(require_components(), 1);
+ var import_compose68 = __toESM(require_compose(), 1);
+ var import_jsx_runtime313 = __toESM(require_jsx_runtime(), 1);
+ function PreviewBlockPopover({
+ blocks: blocks2,
+ placement = "right-start",
+ offset: offset4 = 16,
+ anchor
+ }) {
+ const isMobile = (0, import_compose68.useViewportMatch)("medium", "<");
+ if (isMobile) {
return null;
}
- let text;
- if (buttonText) {
- text = typeof buttonText === "function" ? buttonText(searchTerm) : buttonText;
- } else {
- text = (0, import_element219.createInterpolateElement)(
- (0, import_i18n151.sprintf)(
- /* translators: %s: search term. */
- (0, import_i18n151.__)("Create: <mark>%s</mark>"),
- searchTerm
- ),
- { mark: /* @__PURE__ */ (0, import_jsx_runtime376.jsx)("mark", {}) }
- );
- }
- return /* @__PURE__ */ (0, import_jsx_runtime376.jsx)(
- import_components162.MenuItem,
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)("div", { className: "block-editor-block-switcher__popover-preview-container", children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
+ import_components101.Popover,
{
- ...itemProps,
- iconPosition: "left",
- icon: plus_default,
- className: "block-editor-link-control__search-item",
- onClick,
- children: text
+ className: "block-editor-block-switcher__popover-preview",
+ placement,
+ focusOnMount: false,
+ offset: offset4,
+ anchor,
+ children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)("div", { className: "block-editor-block-switcher__preview", children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(block_preview_default, { viewportWidth: 601, blocks: blocks2 }) })
}
- );
- };
- var search_create_button_default = LinkControlSearchCreate;
+ ) });
+ }
- // packages/block-editor/build-module/components/link-control/search-item.mjs
- var import_i18n152 = __toESM(require_i18n(), 1);
- var import_components163 = __toESM(require_components(), 1);
- var import_dom66 = __toESM(require_dom(), 1);
- var import_url3 = __toESM(require_url(), 1);
- var import_compose86 = __toESM(require_compose(), 1);
- var import_deprecated18 = __toESM(require_deprecated(), 1);
- var import_jsx_runtime377 = __toESM(require_jsx_runtime(), 1);
- var TYPES = {
- post: {
- icon: post_list_default,
- label: (0, import_i18n152.__)("Post")
- },
- page: {
- icon: page_default,
- label: (0, import_i18n152.__)("Page")
- },
- post_tag: {
- icon: tag_default,
- label: (0, import_i18n152.__)("Tag")
- },
- category: {
- icon: category_default,
- label: (0, import_i18n152.__)("Category")
- },
- attachment: {
- icon: file_default,
- label: (0, import_i18n152.__)("Attachment")
- }
- };
- function SearchItemIcon({ isURL: isURL4, suggestion }) {
- let icon = null;
- if (isURL4) {
- icon = globe_default;
- } else if (suggestion.type in TYPES) {
- icon = TYPES[suggestion.type].icon;
- if (suggestion.type === "page") {
- if (suggestion.isFrontPage) {
- icon = home_default;
- }
- if (suggestion.isBlogHome) {
- icon = verse_default;
- }
- }
- }
- if (icon) {
- return /* @__PURE__ */ (0, import_jsx_runtime377.jsx)(
- icon_default,
- {
- className: "block-editor-link-control__search-item-icon",
- icon
+ // packages/block-editor/build-module/components/block-switcher/block-variation-transformations.mjs
+ var import_components102 = __toESM(require_components(), 1);
+ var import_blocks70 = __toESM(require_blocks(), 1);
+ var import_data116 = __toESM(require_data(), 1);
+ var import_element179 = __toESM(require_element(), 1);
+ var import_jsx_runtime314 = __toESM(require_jsx_runtime(), 1);
+ var EMPTY_OBJECT3 = {};
+ function useBlockVariationTransforms({ clientIds, blocks: blocks2 }) {
+ const { activeBlockVariation, blockVariationTransformations } = (0, import_data116.useSelect)(
+ (select3) => {
+ const { getBlockAttributes: getBlockAttributes3, canRemoveBlocks: canRemoveBlocks2 } = select3(store);
+ const { getActiveBlockVariation, getBlockVariations: getBlockVariations2 } = select3(import_blocks70.store);
+ const canRemove = canRemoveBlocks2(clientIds);
+ if (blocks2.length !== 1 || !canRemove) {
+ return EMPTY_OBJECT3;
}
+ const [firstBlock] = blocks2;
+ return {
+ blockVariationTransformations: getBlockVariations2(
+ firstBlock.name,
+ "transform"
+ ),
+ activeBlockVariation: getActiveBlockVariation(
+ firstBlock.name,
+ getBlockAttributes3(firstBlock.clientId)
+ )
+ };
+ },
+ [clientIds, blocks2]
+ );
+ const transformations = (0, import_element179.useMemo)(() => {
+ return blockVariationTransformations?.filter(
+ ({ name }) => name !== activeBlockVariation?.name
);
- }
- return null;
- }
- function addLeadingSlash(url) {
- const trimmedURL = url?.trim();
- if (!trimmedURL?.length) {
- return url;
- }
- return url?.replace(/^\/?/, "/");
- }
- function removeTrailingSlash(url) {
- const trimmedURL = url?.trim();
- if (!trimmedURL?.length) {
- return url;
- }
- return url?.replace(/\/$/, "");
+ }, [blockVariationTransformations, activeBlockVariation]);
+ return transformations;
}
- var partialRight = (fn, ...partialArgs) => (...args) => fn(...args, ...partialArgs);
- var defaultTo = (d2) => (v2) => {
- return v2 === null || v2 === void 0 || v2 !== v2 ? d2 : v2;
+ var BlockVariationTransformations = ({
+ transformations,
+ onSelect,
+ blocks: blocks2
+ }) => {
+ const [hoveredTransformItemName, setHoveredTransformItemName] = (0, import_element179.useState)();
+ return /* @__PURE__ */ (0, import_jsx_runtime314.jsxs)(import_jsx_runtime314.Fragment, { children: [
+ hoveredTransformItemName && /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
+ PreviewBlockPopover,
+ {
+ blocks: (0, import_blocks70.cloneBlock)(
+ blocks2[0],
+ transformations.find(
+ ({ name }) => name === hoveredTransformItemName
+ ).attributes
+ )
+ }
+ ),
+ transformations?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
+ BlockVariationTransformationItem,
+ {
+ item,
+ onSelect,
+ setHoveredTransformItemName
+ },
+ item.name
+ ))
+ ] });
};
- function getURLForDisplay(url) {
- if (!url) {
- return url;
- }
- return (0, import_compose86.pipe)(
- import_url3.safeDecodeURI,
- import_url3.getPath,
- defaultTo(""),
- partialRight(import_url3.filterURLForDisplay, 24),
- removeTrailingSlash,
- addLeadingSlash
- )(url);
+ function BlockVariationTransformationItem({
+ item,
+ onSelect,
+ setHoveredTransformItemName
+ }) {
+ const { name, icon, title } = item;
+ return /* @__PURE__ */ (0, import_jsx_runtime314.jsxs)(
+ import_components102.MenuItem,
+ {
+ className: (0, import_blocks70.getBlockMenuDefaultClassName)(name),
+ onClick: (event) => {
+ event.preventDefault();
+ onSelect(name);
+ },
+ onMouseLeave: () => setHoveredTransformItemName(null),
+ onMouseEnter: () => setHoveredTransformItemName(name),
+ onFocus: () => setHoveredTransformItemName(name),
+ onBlur: () => setHoveredTransformItemName(null),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(block_icon_default, { icon, showColors: true }),
+ title
+ ]
+ }
+ );
}
- var LinkControlSearchItem = ({
- itemProps,
- suggestion,
- searchTerm,
- onClick,
- isURL: isURL4 = false,
- shouldShowType = false
+ var block_variation_transformations_default = BlockVariationTransformations;
+
+ // packages/block-editor/build-module/components/block-switcher/block-transformations-menu.mjs
+ var import_jsx_runtime315 = __toESM(require_jsx_runtime(), 1);
+ function useGroupedTransforms(possibleBlockTransformations) {
+ const priorityContentTransformationBlocks = {
+ "core/paragraph": 1,
+ "core/heading": 2,
+ "core/list": 3,
+ "core/quote": 4
+ };
+ const transformations = (0, import_element180.useMemo)(() => {
+ const priorityTextTransformsNames = Object.keys(
+ priorityContentTransformationBlocks
+ );
+ const groupedPossibleTransforms = possibleBlockTransformations.reduce(
+ (accumulator, item) => {
+ const { name } = item;
+ if (priorityTextTransformsNames.includes(name)) {
+ accumulator.priorityTextTransformations.push(item);
+ } else {
+ accumulator.restTransformations.push(item);
+ }
+ return accumulator;
+ },
+ { priorityTextTransformations: [], restTransformations: [] }
+ );
+ if (groupedPossibleTransforms.priorityTextTransformations.length === 1 && groupedPossibleTransforms.priorityTextTransformations[0].name === "core/quote") {
+ const singleQuote = groupedPossibleTransforms.priorityTextTransformations.pop();
+ groupedPossibleTransforms.restTransformations.push(singleQuote);
+ }
+ return groupedPossibleTransforms;
+ }, [possibleBlockTransformations]);
+ transformations.priorityTextTransformations.sort(
+ ({ name: currentName }, { name: nextName }) => {
+ return priorityContentTransformationBlocks[currentName] < priorityContentTransformationBlocks[nextName] ? -1 : 1;
+ }
+ );
+ return transformations;
+ }
+ var BlockTransformationsMenu = ({
+ className: className2,
+ possibleBlockTransformations,
+ possibleBlockVariationTransformations,
+ onSelect,
+ onSelectVariation,
+ blocks: blocks2
}) => {
- const info = isURL4 ? (0, import_i18n152.__)("Press ENTER to add this link") : getURLForDisplay(suggestion.url);
- return /* @__PURE__ */ (0, import_jsx_runtime377.jsx)(
- import_components163.MenuItem,
+ const [hoveredTransformItem, setHoveredTransformItem] = (0, import_element180.useState)();
+ const { priorityTextTransformations, restTransformations } = useGroupedTransforms(possibleBlockTransformations);
+ const hasBothContentTransformations = priorityTextTransformations.length && restTransformations.length;
+ const restTransformItems = !!restTransformations.length && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
+ RestTransformationItems,
{
- ...itemProps,
- info,
- iconPosition: "left",
- icon: /* @__PURE__ */ (0, import_jsx_runtime377.jsx)(SearchItemIcon, { suggestion, isURL: isURL4 }),
- onClick,
- shortcut: shouldShowType && getVisualTypeName(suggestion),
- className: "block-editor-link-control__search-item",
- children: /* @__PURE__ */ (0, import_jsx_runtime377.jsx)(
- import_components163.TextHighlight,
+ restTransformations,
+ onSelect,
+ setHoveredTransformItem
+ }
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(import_jsx_runtime315.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(import_components103.MenuGroup, { label: (0, import_i18n97.__)("Transform to"), className: className2, children: [
+ hoveredTransformItem && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
+ PreviewBlockPopover,
{
- text: (0, import_dom66.__unstableStripHTML)(suggestion.title),
- highlight: searchTerm
+ blocks: (0, import_blocks71.switchToBlockType)(
+ blocks2,
+ hoveredTransformItem.name,
+ hoveredTransformItem.variationName
+ )
}
- )
+ ),
+ !!possibleBlockVariationTransformations?.length && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
+ block_variation_transformations_default,
+ {
+ transformations: possibleBlockVariationTransformations,
+ blocks: blocks2,
+ onSelect: onSelectVariation
+ }
+ ),
+ priorityTextTransformations.map((item) => /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
+ BlockTransformationItem,
+ {
+ item,
+ onSelect,
+ setHoveredTransformItem
+ },
+ item.id || item.name
+ )),
+ !hasBothContentTransformations && restTransformItems
+ ] }),
+ !!hasBothContentTransformations && /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(import_components103.MenuGroup, { className: className2, children: restTransformItems })
+ ] });
+ };
+ function RestTransformationItems({
+ restTransformations,
+ onSelect,
+ setHoveredTransformItem
+ }) {
+ return restTransformations.map((item) => /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
+ BlockTransformationItem,
+ {
+ item,
+ onSelect,
+ setHoveredTransformItem
+ },
+ item.id || item.name
+ ));
+ }
+ function BlockTransformationItem({
+ item,
+ onSelect,
+ setHoveredTransformItem
+ }) {
+ const { name, icon, title, isDisabled } = item;
+ return /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(
+ import_components103.MenuItem,
+ {
+ className: (0, import_blocks71.getBlockMenuDefaultClassName)(name),
+ onClick: (event) => {
+ event.preventDefault();
+ onSelect(name, item.variationName);
+ },
+ disabled: isDisabled,
+ onMouseLeave: () => setHoveredTransformItem(null),
+ onMouseEnter: () => setHoveredTransformItem(item),
+ onFocus: () => setHoveredTransformItem(item),
+ onBlur: () => setHoveredTransformItem(null),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(block_icon_default, { icon, showColors: true }),
+ title
+ ]
}
);
- };
- function getVisualTypeName(suggestion) {
- if (suggestion.isFrontPage) {
- return (0, import_i18n152.__)("Front page");
- }
- if (suggestion.isBlogHome) {
- return (0, import_i18n152.__)("Blog home");
- }
- if (suggestion.type in TYPES) {
- return TYPES[suggestion.type].label;
- }
- return suggestion.type;
}
- var search_item_default = LinkControlSearchItem;
- var __experimentalLinkControlSearchItem = (props) => {
- (0, import_deprecated18.default)("wp.blockEditor.__experimentalLinkControlSearchItem", {
- since: "6.8"
- });
- return /* @__PURE__ */ (0, import_jsx_runtime377.jsx)(LinkControlSearchItem, { ...props });
- };
+ var block_transformations_menu_default = BlockTransformationsMenu;
- // packages/block-editor/build-module/components/link-control/constants.mjs
- var import_i18n153 = __toESM(require_i18n(), 1);
- var CREATE_TYPE = "__CREATE__";
- var TEL_TYPE = "tel";
- var URL_TYPE = "link";
- var MAILTO_TYPE = "mailto";
- var INTERNAL_TYPE = "internal";
- var LINK_ENTRY_TYPES = [
- URL_TYPE,
- MAILTO_TYPE,
- TEL_TYPE,
- INTERNAL_TYPE
- ];
- var DEFAULT_LINK_SETTINGS = [
- {
- id: "opensInNewTab",
- title: (0, import_i18n153.__)("Open in new tab")
- }
- ];
+ // packages/block-editor/build-module/components/block-switcher/block-styles-menu.mjs
+ var import_i18n98 = __toESM(require_i18n(), 1);
+ var import_components105 = __toESM(require_components(), 1);
+ var import_element181 = __toESM(require_element(), 1);
- // packages/block-editor/build-module/components/link-control/search-results.mjs
- var import_deprecated19 = __toESM(require_deprecated(), 1);
- var import_jsx_runtime378 = __toESM(require_jsx_runtime(), 1);
- function LinkControlSearchResults({
- withCreateSuggestion,
- currentInputValue,
- handleSuggestionClick,
- suggestionsListProps,
- buildSuggestionItemProps,
- suggestions,
- selectedSuggestion,
- isLoading,
- isInitialSuggestions,
- createSuggestionButtonText,
- suggestionsQuery
+ // packages/block-editor/build-module/components/block-styles/menu-items.mjs
+ var import_components104 = __toESM(require_components(), 1);
+ var import_jsx_runtime316 = __toESM(require_jsx_runtime(), 1);
+ var noop12 = () => {
+ };
+ function BlockStylesMenuItems({
+ stylesToRender,
+ activeStyle,
+ onSelect = noop12,
+ onHoverStyle = noop12
}) {
- const resultsListClasses = clsx_default(
- "block-editor-link-control__search-results",
- {
- "is-loading": isLoading
+ if (!stylesToRender || stylesToRender.length === 0) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(import_jsx_runtime316.Fragment, { children: stylesToRender.map((style) => {
+ const menuItemText = style.label || style.name;
+ return /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
+ import_components104.MenuItem,
+ {
+ icon: activeStyle.name === style.name ? check_default : null,
+ onClick: () => onSelect(style),
+ onFocus: () => onHoverStyle(style),
+ onBlur: () => onHoverStyle(null),
+ onMouseEnter: () => onHoverStyle(style),
+ onMouseLeave: () => onHoverStyle(null),
+ children: /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
+ import_components104.__experimentalText,
+ {
+ as: "span",
+ limit: 18,
+ ellipsizeMode: "tail",
+ truncate: true,
+ children: menuItemText
+ }
+ )
+ },
+ style.name
+ );
+ }) });
+ }
+
+ // packages/block-editor/build-module/components/block-switcher/block-styles-menu.mjs
+ var import_jsx_runtime317 = __toESM(require_jsx_runtime(), 1);
+ function BlockStylesMenu({ hoveredBlock, onSwitch }) {
+ const { clientId } = hoveredBlock;
+ const [hoveredStyle, setHoveredStyle] = (0, import_element181.useState)(null);
+ const {
+ onSelect,
+ stylesToRender,
+ activeStyle,
+ genericPreviewBlock,
+ className: className2
+ } = useStylesForBlocks({
+ clientId,
+ onSwitch
+ });
+ const previewBlocks = (0, import_element181.useMemo)(() => {
+ if (!hoveredStyle || !genericPreviewBlock) {
+ return null;
}
- );
- const isSingleDirectEntryResult = suggestions.length === 1 && LINK_ENTRY_TYPES.includes(suggestions[0].type);
- const shouldShowCreateSuggestion = withCreateSuggestion && !isSingleDirectEntryResult && !isInitialSuggestions;
- const shouldShowSuggestionsTypes = !suggestionsQuery?.type;
- const labelText = isInitialSuggestions ? (0, import_i18n154.__)("Suggestions") : (0, import_i18n154.sprintf)(
- /* translators: %s: search term. */
- (0, import_i18n154.__)('Search results for "%s"'),
- currentInputValue
- );
- return /* @__PURE__ */ (0, import_jsx_runtime378.jsx)("div", { className: "block-editor-link-control__search-results-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(
- "div",
- {
- ...suggestionsListProps,
- className: resultsListClasses,
- "aria-label": labelText,
- children: /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(import_components164.MenuGroup, { children: suggestions.map((suggestion, index2) => {
- if (shouldShowCreateSuggestion && CREATE_TYPE === suggestion.type) {
- return /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(
- search_create_button_default,
- {
- searchTerm: currentInputValue,
- buttonText: createSuggestionButtonText,
- onClick: () => handleSuggestionClick(suggestion),
- itemProps: buildSuggestionItemProps(
- suggestion,
- index2
- ),
- isSelected: index2 === selectedSuggestion
- },
- suggestion.type
- );
- }
- if (CREATE_TYPE === suggestion.type) {
- return null;
+ const previewClassName = replaceActiveStyle(
+ className2,
+ activeStyle,
+ hoveredStyle
+ );
+ return [
+ {
+ ...genericPreviewBlock,
+ attributes: {
+ ...genericPreviewBlock.attributes || {},
+ className: previewClassName
}
- return /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(
- search_item_default,
+ }
+ ];
+ }, [hoveredStyle, genericPreviewBlock, className2, activeStyle]);
+ if (!stylesToRender || stylesToRender.length === 0) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)(
+ import_components105.MenuGroup,
+ {
+ label: (0, import_i18n98.__)("Styles"),
+ className: "block-editor-block-switcher__styles__menugroup",
+ children: [
+ previewBlocks && /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(PreviewBlockPopover, { blocks: previewBlocks }),
+ /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
+ BlockStylesMenuItems,
{
- itemProps: buildSuggestionItemProps(
- suggestion,
- index2
- ),
- suggestion,
- index: index2,
- onClick: () => {
- handleSuggestionClick(suggestion);
- },
- isSelected: index2 === selectedSuggestion,
- isURL: LINK_ENTRY_TYPES.includes(
- suggestion.type
- ),
- searchTerm: currentInputValue,
- shouldShowType: shouldShowSuggestionsTypes,
- isFrontPage: suggestion?.isFrontPage,
- isBlogHome: suggestion?.isBlogHome
- },
- `${suggestion.id}-${suggestion.type}`
- );
- }) })
+ stylesToRender,
+ activeStyle,
+ onSelect,
+ onHoverStyle: setHoveredStyle
+ }
+ )
+ ]
}
- ) });
+ );
}
- var search_results_default2 = LinkControlSearchResults;
- var __experimentalLinkControlSearchResults = (props) => {
- (0, import_deprecated19.default)("wp.blockEditor.__experimentalLinkControlSearchResults", {
- since: "6.8"
- });
- return /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(LinkControlSearchResults, { ...props });
- };
- // packages/block-editor/build-module/components/link-control/use-search-handler.mjs
- var import_element220 = __toESM(require_element(), 1);
- var import_data145 = __toESM(require_data(), 1);
+ // packages/block-editor/build-module/components/block-switcher/pattern-transformations-menu.mjs
+ var import_i18n99 = __toESM(require_i18n(), 1);
+ var import_element183 = __toESM(require_element(), 1);
+ var import_compose69 = __toESM(require_compose(), 1);
+ var import_components106 = __toESM(require_components(), 1);
- // packages/block-editor/build-module/components/link-control/normalize-url.mjs
- var import_url4 = __toESM(require_url(), 1);
- function normalizeUrl(url) {
- const trimmedUrl = url?.trim();
- if (!trimmedUrl) {
- return { url: trimmedUrl, type: URL_TYPE };
+ // packages/block-editor/build-module/components/block-switcher/use-transformed-patterns.mjs
+ var import_element182 = __toESM(require_element(), 1);
+ var import_blocks73 = __toESM(require_blocks(), 1);
+
+ // packages/block-editor/build-module/components/block-switcher/utils.mjs
+ var import_blocks72 = __toESM(require_blocks(), 1);
+ var getMatchingBlockByName = (block, selectedBlockName, consumedBlocks = /* @__PURE__ */ new Set()) => {
+ const { clientId, name, innerBlocks = [] } = block;
+ if (consumedBlocks.has(clientId)) {
+ return;
}
- let type = URL_TYPE;
- const protocol = (0, import_url4.getProtocol)(trimmedUrl) || "";
- if (protocol.includes("mailto")) {
- type = MAILTO_TYPE;
- } else if (protocol.includes("tel")) {
- type = TEL_TYPE;
- } else if (trimmedUrl?.startsWith("#")) {
- type = INTERNAL_TYPE;
+ if (name === selectedBlockName) {
+ return block;
}
- if (isHashLink(trimmedUrl) || isRelativePath(trimmedUrl) || trimmedUrl.startsWith("?") || protocol) {
- return { url: trimmedUrl, type };
+ for (const innerBlock of innerBlocks) {
+ const match2 = getMatchingBlockByName(
+ innerBlock,
+ selectedBlockName,
+ consumedBlocks
+ );
+ if (match2) {
+ return match2;
+ }
}
- return { url: (0, import_url4.prependHTTPS)(trimmedUrl), type };
- }
-
- // packages/block-editor/build-module/components/link-control/use-search-handler.mjs
- var handleNoop = () => Promise.resolve([]);
- var handleDirectEntry = (val) => {
- const { url, type } = normalizeUrl(val);
- return Promise.resolve([
- {
- id: val,
- title: val,
- url,
- type
+ };
+ var getRetainedBlockAttributes = (name, attributes) => {
+ const contentAttributes = (0, import_blocks72.getBlockAttributesNamesByRole)(name, "content");
+ if (!contentAttributes?.length) {
+ return attributes;
+ }
+ return contentAttributes.reduce((_accumulator, attribute) => {
+ if (attributes[attribute]) {
+ _accumulator[attribute] = attributes[attribute];
}
- ]);
+ return _accumulator;
+ }, {});
};
- var handleEntitySearch = async (val, suggestionsQuery, fetchSearchSuggestions, withCreateSuggestion, pageOnFront, pageForPosts) => {
- const { isInitialSuggestions } = suggestionsQuery;
- const results = await fetchSearchSuggestions(val, suggestionsQuery);
- results.map((result) => {
- if (Number(result.id) === pageOnFront) {
- result.isFrontPage = true;
- return result;
- } else if (Number(result.id) === pageForPosts) {
- result.isBlogHome = true;
- return result;
+
+ // packages/block-editor/build-module/components/block-switcher/use-transformed-patterns.mjs
+ var transformMatchingBlock = (match2, selectedBlock) => {
+ const retainedBlockAttributes = getRetainedBlockAttributes(
+ selectedBlock.name,
+ selectedBlock.attributes
+ );
+ match2.attributes = {
+ ...match2.attributes,
+ ...retainedBlockAttributes
+ };
+ };
+ var getPatternTransformedBlocks = (selectedBlocks, patternBlocks) => {
+ const _patternBlocks = patternBlocks.map(
+ (block) => (0, import_blocks73.cloneBlock)(block)
+ );
+ const consumedBlocks = /* @__PURE__ */ new Set();
+ for (const selectedBlock of selectedBlocks) {
+ let isMatch = false;
+ for (const patternBlock of _patternBlocks) {
+ const match2 = getMatchingBlockByName(
+ patternBlock,
+ selectedBlock.name,
+ consumedBlocks
+ );
+ if (!match2) {
+ continue;
+ }
+ isMatch = true;
+ consumedBlocks.add(match2.clientId);
+ transformMatchingBlock(match2, selectedBlock);
+ break;
+ }
+ if (!isMatch) {
+ return;
}
- return result;
- });
- if (isInitialSuggestions) {
- return results;
}
- return isURLLike(val) || !withCreateSuggestion ? results : results.concat({
- // the `id` prop is intentionally omitted here because it
- // is never exposed as part of the component's public API.
- // see: https://github.com/WordPress/gutenberg/pull/19775#discussion_r378931316.
- title: val,
- // Must match the existing `<input>`s text value.
- url: val,
- // Must match the existing `<input>`s text value.
- type: CREATE_TYPE
- });
+ return _patternBlocks;
};
- function useSearchHandler(suggestionsQuery, allowDirectEntry, withCreateSuggestion) {
- const { fetchSearchSuggestions, pageOnFront, pageForPosts } = (0, import_data145.useSelect)(
+ var useTransformedPatterns = (patterns, selectedBlocks) => {
+ return (0, import_element182.useMemo)(
+ () => patterns.reduce((accumulator, _pattern) => {
+ const transformedBlocks = getPatternTransformedBlocks(
+ selectedBlocks,
+ _pattern.blocks
+ );
+ if (transformedBlocks) {
+ accumulator.push({
+ ..._pattern,
+ transformedBlocks
+ });
+ }
+ return accumulator;
+ }, []),
+ [patterns, selectedBlocks]
+ );
+ };
+ var use_transformed_patterns_default = useTransformedPatterns;
+
+ // packages/block-editor/build-module/components/block-switcher/pattern-transformations-menu.mjs
+ var import_jsx_runtime318 = __toESM(require_jsx_runtime(), 1);
+ function PatternTransformationsMenu({
+ blocks: blocks2,
+ patterns: statePatterns,
+ onSelect
+ }) {
+ const [showTransforms, setShowTransforms] = (0, import_element183.useState)(false);
+ const patterns = use_transformed_patterns_default(statePatterns, blocks2);
+ if (!patterns.length) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)(import_components106.MenuGroup, { className: "block-editor-block-switcher__pattern__transforms__menugroup", children: [
+ showTransforms && /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
+ PreviewPatternsPopover,
+ {
+ patterns,
+ onSelect
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
+ import_components106.MenuItem,
+ {
+ onClick: (event) => {
+ event.preventDefault();
+ setShowTransforms(!showTransforms);
+ },
+ icon: chevron_right_default,
+ children: (0, import_i18n99.__)("Patterns")
+ }
+ )
+ ] });
+ }
+ function PreviewPatternsPopover({ patterns, onSelect }) {
+ const isMobile = (0, import_compose69.useViewportMatch)("medium", "<");
+ return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)("div", { className: "block-editor-block-switcher__popover-preview-container", children: /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
+ import_components106.Popover,
+ {
+ className: "block-editor-block-switcher__popover-preview",
+ placement: isMobile ? "bottom" : "right-start",
+ offset: 16,
+ children: /* @__PURE__ */ (0, import_jsx_runtime318.jsx)("div", { className: "block-editor-block-switcher__preview is-pattern-list-preview", children: /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
+ BlockPatternsList2,
+ {
+ patterns,
+ onSelect
+ }
+ ) })
+ }
+ ) });
+ }
+ function BlockPatternsList2({ patterns, onSelect }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
+ import_components106.Composite,
+ {
+ role: "listbox",
+ className: "block-editor-block-switcher__preview-patterns-container",
+ "aria-label": (0, import_i18n99.__)("Patterns list"),
+ children: patterns.map((pattern) => /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
+ BlockPattern2,
+ {
+ pattern,
+ onSelect
+ },
+ pattern.name
+ ))
+ }
+ );
+ }
+ function BlockPattern2({ pattern, onSelect }) {
+ const baseClassName = "block-editor-block-switcher__preview-patterns-container";
+ const descriptionId = (0, import_compose69.useInstanceId)(
+ BlockPattern2,
+ `${baseClassName}-list__item-description`
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)("div", { className: `${baseClassName}-list__list-item`, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)(
+ import_components106.Composite.Item,
+ {
+ render: /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
+ "div",
+ {
+ role: "option",
+ "aria-label": pattern.title,
+ "aria-describedby": pattern.description ? descriptionId : void 0,
+ className: `${baseClassName}-list__item`
+ }
+ ),
+ onClick: () => onSelect(pattern.transformedBlocks),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
+ block_preview_default,
+ {
+ blocks: pattern.transformedBlocks,
+ viewportWidth: pattern.viewportWidth || 500
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)("div", { className: `${baseClassName}-list__item-title`, children: pattern.title })
+ ]
+ }
+ ),
+ !!pattern.description && /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(VisuallyHidden, { id: descriptionId, children: pattern.description })
+ ] });
+ }
+ var pattern_transformations_menu_default = PatternTransformationsMenu;
+
+ // packages/block-editor/build-module/components/block-switcher/index.mjs
+ var import_jsx_runtime319 = __toESM(require_jsx_runtime(), 1);
+ function BlockSwitcherDropdownMenuContents({ onClose, clientIds }) {
+ const { replaceBlocks: replaceBlocks2, multiSelect: multiSelect2, updateBlockAttributes: updateBlockAttributes2 } = (0, import_data117.useDispatch)(store);
+ const {
+ possibleBlockTransformations,
+ patterns,
+ blocks: blocks2,
+ isUsingBindings,
+ canRemove,
+ hasBlockStyles
+ } = (0, import_data117.useSelect)(
(select3) => {
- const { getSettings: getSettings7 } = select3(store);
+ const {
+ getBlockAttributes: getBlockAttributes3,
+ getBlocksByClientId: getBlocksByClientId2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockTransformItems: getBlockTransformItems2,
+ __experimentalGetPatternTransformItems: __experimentalGetPatternTransformItems2,
+ canRemoveBlocks: canRemoveBlocks2,
+ getBlockName: getBlockName2
+ } = select3(store);
+ const { getBlockStyles: getBlockStyles2 } = select3(import_blocks74.store);
+ const rootClientId = getBlockRootClientId2(clientIds[0]);
+ const _blocks = getBlocksByClientId2(clientIds);
+ const _isSingleBlock = clientIds.length === 1;
+ const _blockName = _isSingleBlock && getBlockName2(clientIds[0]);
+ const _hasBlockStyles = _isSingleBlock && !!getBlockStyles2(_blockName)?.length;
return {
- pageOnFront: getSettings7().pageOnFront,
- pageForPosts: getSettings7().pageForPosts,
- fetchSearchSuggestions: getSettings7().__experimentalFetchLinkSuggestions
+ blocks: _blocks,
+ possibleBlockTransformations: getBlockTransformItems2(
+ _blocks,
+ rootClientId
+ ),
+ patterns: __experimentalGetPatternTransformItems2(
+ _blocks,
+ rootClientId
+ ),
+ isUsingBindings: clientIds.every(
+ (clientId) => !!getBlockAttributes3(clientId)?.metadata?.bindings
+ ),
+ canRemove: canRemoveBlocks2(clientIds),
+ hasBlockStyles: _hasBlockStyles
};
},
- []
+ [clientIds]
);
- const directEntryHandler = allowDirectEntry ? handleDirectEntry : handleNoop;
- return (0, import_element220.useCallback)(
- (val, { isInitialSuggestions }) => {
- return isURLLike(val) ? directEntryHandler(val, { isInitialSuggestions }) : handleEntitySearch(
- val,
- { ...suggestionsQuery, isInitialSuggestions },
- fetchSearchSuggestions,
- withCreateSuggestion,
- pageOnFront,
- pageForPosts
+ const blockVariationTransformations = useBlockVariationTransforms({
+ clientIds,
+ blocks: blocks2
+ });
+ function selectForMultipleBlocks(insertedBlocks) {
+ if (insertedBlocks.length > 1) {
+ multiSelect2(
+ insertedBlocks[0].clientId,
+ insertedBlocks[insertedBlocks.length - 1].clientId
);
- },
- [
- directEntryHandler,
- fetchSearchSuggestions,
- pageOnFront,
- pageForPosts,
- suggestionsQuery,
- withCreateSuggestion
- ]
+ }
+ }
+ function onBlockTransform(name, variationName) {
+ const newBlocks = (0, import_blocks74.switchToBlockType)(blocks2, name, variationName);
+ replaceBlocks2(clientIds, newBlocks);
+ selectForMultipleBlocks(newBlocks);
+ }
+ function onBlockVariationTransform(name) {
+ updateBlockAttributes2(blocks2[0].clientId, {
+ ...blockVariationTransformations.find(
+ ({ name: variationName }) => variationName === name
+ ).attributes
+ });
+ }
+ function onPatternTransform(transformedBlocks) {
+ replaceBlocks2(clientIds, transformedBlocks);
+ selectForMultipleBlocks(transformedBlocks);
+ }
+ const isSingleBlock = blocks2.length === 1;
+ const isSynced = isSingleBlock && ((0, import_blocks74.isTemplatePart)(blocks2[0]) || (0, import_blocks74.isReusableBlock)(blocks2[0]));
+ const hasPossibleBlockTransformations = !!possibleBlockTransformations?.length && canRemove && !isSynced;
+ const hasPossibleBlockVariationTransformations = !!blockVariationTransformations?.length;
+ const hasPatternTransformation = !!patterns?.length && canRemove;
+ const hasBlockOrBlockVariationTransforms = hasPossibleBlockTransformations || hasPossibleBlockVariationTransformations;
+ const hasContents = hasBlockStyles || hasBlockOrBlockVariationTransforms || hasPatternTransformation;
+ if (!hasContents) {
+ return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)("p", { className: "block-editor-block-switcher__no-transforms", children: (0, import_i18n100.__)("No transforms.") });
+ }
+ const connectedBlockDescription = isSingleBlock ? (0, import_i18n100._x)(
+ "This block is connected.",
+ "block toolbar button label and description"
+ ) : (0, import_i18n100._x)(
+ "These blocks are connected.",
+ "block toolbar button label and description"
);
- }
-
- // packages/block-editor/build-module/components/link-control/search-input.mjs
- var import_jsx_runtime379 = __toESM(require_jsx_runtime(), 1);
- var noopSearchHandler = () => Promise.resolve([]);
- var noop16 = () => {
- };
- var LinkControlSearchInput = (0, import_element221.forwardRef)(
- ({
- value,
- children,
- currentLink = {},
- className = null,
- placeholder = null,
- withCreateSuggestion = false,
- onCreateSuggestion = noop16,
- onChange = noop16,
- onSelect = noop16,
- showSuggestions = true,
- renderSuggestions = (props) => /* @__PURE__ */ (0, import_jsx_runtime379.jsx)(search_results_default2, { ...props }),
- fetchSuggestions = null,
- allowDirectEntry = true,
- showInitialSuggestions = false,
- suggestionsQuery = {},
- withURLSuggestion = true,
- createSuggestionButtonText,
- hideLabelFromVision = false,
- suffix,
- isEntity = false,
- customValidity: customValidityProp
- }, ref) => {
- const genericSearchHandler = useSearchHandler(
- suggestionsQuery,
- allowDirectEntry,
- withCreateSuggestion,
- withURLSuggestion
- );
- const searchHandler = showSuggestions ? fetchSuggestions || genericSearchHandler : noopSearchHandler;
- const [focusedSuggestion, setFocusedSuggestion] = (0, import_element221.useState)();
- const onInputChange = (selection2, suggestion) => {
- onChange(selection2);
- setFocusedSuggestion(suggestion);
- };
- const handleRenderSuggestions = (props) => renderSuggestions({
- ...props,
- withCreateSuggestion,
- createSuggestionButtonText,
- suggestionsQuery,
- handleSuggestionClick: (suggestion) => {
- if (props.handleSuggestionClick) {
- props.handleSuggestionClick(suggestion);
+ return /* @__PURE__ */ (0, import_jsx_runtime319.jsxs)("div", { className: "block-editor-block-switcher__container", children: [
+ hasPatternTransformation && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
+ pattern_transformations_menu_default,
+ {
+ blocks: blocks2,
+ patterns,
+ onSelect: (transformedBlocks) => {
+ onPatternTransform(transformedBlocks);
+ onClose();
}
- onSuggestionSelected(suggestion);
}
- });
- const onSuggestionSelected = async (selectedSuggestion) => {
- let suggestion = selectedSuggestion;
- if (CREATE_TYPE === selectedSuggestion.type) {
- try {
- suggestion = await onCreateSuggestion(
- selectedSuggestion.title
- );
- if (suggestion?.url) {
- onSelect(suggestion);
- }
- } catch {
+ ),
+ hasBlockOrBlockVariationTransforms && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
+ block_transformations_menu_default,
+ {
+ className: "block-editor-block-switcher__transforms__menugroup",
+ possibleBlockTransformations,
+ possibleBlockVariationTransformations: blockVariationTransformations,
+ blocks: blocks2,
+ onSelect: (name, variationName) => {
+ onBlockTransform(name, variationName);
+ onClose();
+ },
+ onSelectVariation: (name) => {
+ onBlockVariationTransform(name);
+ onClose();
}
- return;
}
- if (allowDirectEntry || suggestion && Object.keys(suggestion).length >= 1) {
- const { id, url, kind, type, ...restLinkProps } = currentLink ?? {};
- onSelect(
- // Some direct entries don't have types or IDs, and we still need to clear the previous ones.
- { ...restLinkProps, ...suggestion },
- suggestion
- );
+ ),
+ hasBlockStyles && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
+ BlockStylesMenu,
+ {
+ hoveredBlock: blocks2[0],
+ onSwitch: onClose
}
- };
- const _placeholder = placeholder ?? (0, import_i18n155.__)("Search or type URL");
- const label = hideLabelFromVision && placeholder !== "" ? _placeholder : (0, import_i18n155.__)("Link");
- return /* @__PURE__ */ (0, import_jsx_runtime379.jsxs)("div", { className: "block-editor-link-control__search-input-container", children: [
- /* @__PURE__ */ (0, import_jsx_runtime379.jsx)(
- URLInput,
+ ),
+ isUsingBindings && /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(import_components107.MenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(import_components107.__experimentalText, { className: "block-editor-block-switcher__binding-indicator", children: connectedBlockDescription }) })
+ ] });
+ }
+ var BlockSwitcher = ({ children, clientIds, label, text }) => {
+ const isSingleBlock = clientIds.length === 1;
+ const blockSwitcherDescription = isSingleBlock ? (0, import_i18n100.__)("Change block type or style") : (0, import_i18n100.sprintf)(
+ /* translators: %d: number of blocks. */
+ (0, import_i18n100._n)(
+ "Change type of %d block",
+ "Change type of %d blocks",
+ clientIds.length
+ ),
+ clientIds.length
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(import_components107.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(import_components107.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
+ import_components107.DropdownMenu,
+ {
+ className: "block-editor-block-switcher",
+ label,
+ popoverProps: {
+ placement: "bottom-start",
+ className: "block-editor-block-switcher__popover"
+ },
+ icon: children,
+ text,
+ toggleProps: {
+ description: blockSwitcherDescription,
+ ...toggleProps
+ },
+ menuProps: { orientation: "both" },
+ children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
+ BlockSwitcherDropdownMenuContents,
{
- disableSuggestions: currentLink?.url === value,
- label,
- hideLabelFromVision,
- className,
- value,
- onChange: onInputChange,
- placeholder: _placeholder,
- __experimentalRenderSuggestions: showSuggestions ? handleRenderSuggestions : null,
- __experimentalFetchLinkSuggestions: searchHandler,
- __experimentalHandleURLSuggestions: true,
- __experimentalShowInitialSuggestions: showInitialSuggestions,
- customValidity: customValidityProp,
- required: false,
- onSubmit: (suggestion, event) => {
- const hasSuggestion = suggestion || focusedSuggestion;
- if (!hasSuggestion && !value?.trim()?.length) {
- event.preventDefault();
- } else {
- onSuggestionSelected(
- hasSuggestion || { url: value }
- );
- }
- },
- inputRef: ref,
- suffix,
- disabled: isEntity
+ onClose,
+ clientIds
}
- ),
- children
- ] });
- }
- );
- var search_input_default = LinkControlSearchInput;
- var __experimentalLinkControlSearchInput = (props) => {
- (0, import_deprecated20.default)("wp.blockEditor.__experimentalLinkControlSearchInput", {
- since: "6.8"
- });
- return /* @__PURE__ */ (0, import_jsx_runtime379.jsx)(LinkControlSearchInput, { ...props });
+ )
+ }
+ ) }) });
};
+ var block_switcher_default = BlockSwitcher;
- // packages/block-editor/build-module/components/link-control/link-preview.mjs
- var import_i18n156 = __toESM(require_i18n(), 1);
- var import_components166 = __toESM(require_components(), 1);
- var import_compose87 = __toESM(require_compose(), 1);
- var import_url5 = __toESM(require_url(), 1);
- var import_dom67 = __toESM(require_dom(), 1);
- var import_data147 = __toESM(require_data(), 1);
- var import_notices10 = __toESM(require_notices(), 1);
- var import_preferences3 = __toESM(require_preferences(), 1);
-
- // packages/block-editor/build-module/components/link-control/viewer-slot.mjs
- var import_components165 = __toESM(require_components(), 1);
- var { Slot: ViewerSlot, Fill: ViewerFill } = (0, import_components165.createSlotFill)(
- "BlockEditorLinkControlViewer"
- );
+ // packages/block-editor/build-module/components/block-toolbar/block-styles-dropdown.mjs
+ var import_i18n101 = __toESM(require_i18n(), 1);
+ var import_components108 = __toESM(require_components(), 1);
+ var import_jsx_runtime320 = __toESM(require_jsx_runtime(), 1);
+ function BlockStylesDropdown({
+ clientIds,
+ children,
+ label,
+ text
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(import_components108.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(import_components108.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
+ import_components108.DropdownMenu,
+ {
+ className: "block-editor-block-switcher",
+ label,
+ popoverProps: {
+ placement: "bottom-start",
+ className: "block-editor-block-switcher__popover"
+ },
+ icon: children,
+ text,
+ toggleProps: {
+ description: (0, import_i18n101.__)("Change block style"),
+ ...toggleProps
+ },
+ menuProps: { orientation: "both" },
+ children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime320.jsx)("div", { className: "block-editor-block-switcher__container", children: /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
+ BlockStylesMenu,
+ {
+ hoveredBlock: {
+ clientId: clientIds[0]
+ },
+ onSwitch: onClose
+ }
+ ) })
+ }
+ ) }) });
+ }
- // packages/block-editor/build-module/components/link-control/use-rich-url-data.mjs
- var import_data146 = __toESM(require_data(), 1);
- var import_element222 = __toESM(require_element(), 1);
- function reducer(state, action) {
- switch (action.type) {
- case "RESOLVED":
- return {
- ...state,
- isFetching: false,
- richData: action.richData
- };
- case "ERROR":
- return {
- ...state,
- isFetching: false,
- richData: null
- };
- case "LOADING":
- return {
- ...state,
- isFetching: true
- };
- default:
- throw new Error(`Unexpected action type ${action.type}`);
+ // packages/block-editor/build-module/components/block-toolbar/pattern-overrides-dropdown.mjs
+ var import_components109 = __toESM(require_components(), 1);
+ var import_i18n102 = __toESM(require_i18n(), 1);
+ var import_element184 = __toESM(require_element(), 1);
+ var import_data118 = __toESM(require_data(), 1);
+ var import_jsx_runtime321 = __toESM(require_jsx_runtime(), 1);
+ function PatternOverridesPopoverContent({ clientIds, blockTitle }) {
+ const blockMetaName = (0, import_data118.useSelect)(
+ (select3) => {
+ const { getBlockAttributes: getBlockAttributes3 } = select3(store);
+ return getBlockAttributes3(clientIds?.[0])?.metadata?.name;
+ },
+ [clientIds]
+ );
+ const isSingleBlock = clientIds.length === 1;
+ let description;
+ if (isSingleBlock && blockMetaName) {
+ description = (0, import_i18n102.sprintf)(
+ /* translators: 1: The block type's name. 2: The block's user-provided name (the same as the override name). */
+ (0, import_i18n102.__)('This %1$s is editable using the "%2$s" override.'),
+ blockTitle.toLowerCase(),
+ blockMetaName
+ );
+ } else {
+ description = (0, import_i18n102.__)("These blocks are editable using overrides.");
}
+ return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(import_components109.__experimentalText, { children: description });
}
- function useRemoteUrlData(url) {
- const [state, dispatch] = (0, import_element222.useReducer)(reducer, {
- richData: null,
- isFetching: false
- });
- const { fetchRichUrlData } = (0, import_data146.useSelect)((select3) => {
- const { getSettings: getSettings7 } = select3(store);
- return {
- fetchRichUrlData: getSettings7().__experimentalFetchRichUrlData
- };
- }, []);
- (0, import_element222.useEffect)(() => {
- if (url?.length && fetchRichUrlData && typeof AbortController !== "undefined") {
- dispatch({
- type: "LOADING"
- });
- const controller = new window.AbortController();
- const signal = controller.signal;
- fetchRichUrlData(url, {
- signal
- }).then((urlData) => {
- dispatch({
- type: "RESOLVED",
- richData: urlData
- });
- }).catch(() => {
- if (!signal.aborted) {
- dispatch({
- type: "ERROR"
- });
- }
- });
- return () => {
- controller.abort();
+ function PatternOverridesDropdown({
+ icon,
+ clientIds,
+ blockTitle,
+ label
+ }) {
+ const [isOpen, setIsOpen] = (0, import_element184.useState)(false);
+ const anchorRef = (0, import_element184.useRef)();
+ return /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(import_jsx_runtime321.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
+ import_components109.ToolbarButton,
+ {
+ ref: anchorRef,
+ className: "block-editor-block-toolbar__pattern-overrides-indicator",
+ icon,
+ label,
+ onClick: () => setIsOpen(!isOpen),
+ "aria-expanded": isOpen
+ }
+ ),
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
+ import_components109.Popover,
+ {
+ anchor: anchorRef.current,
+ onClose: () => setIsOpen(false),
+ placement: "bottom-start",
+ offset: 16,
+ className: "block-editor-block-toolbar__pattern-overrides-popover",
+ children: /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
+ PatternOverridesPopoverContent,
+ {
+ clientIds,
+ blockTitle
+ }
+ )
+ }
+ )
+ ] });
+ }
+
+ // packages/block-editor/build-module/components/block-toolbar/block-toolbar-icon.mjs
+ var import_jsx_runtime322 = __toESM(require_jsx_runtime(), 1);
+ function getBlockIconVariant({ select: select3, clientIds }) {
+ const {
+ getBlockName: getBlockName2,
+ getBlockAttributes: getBlockAttributes3,
+ getBlockParentsByBlockName: getBlockParentsByBlockName2,
+ canRemoveBlocks: canRemoveBlocks2,
+ getTemplateLock: getTemplateLock2,
+ getBlockEditingMode: getBlockEditingMode2,
+ canEditBlock: canEditBlock2,
+ isSectionBlock: isSectionBlock2
+ } = unlock(select3(store));
+ const { getBlockStyles: getBlockStyles2 } = select3(import_blocks75.store);
+ const hasTemplateLock = clientIds.some(
+ (id) => getTemplateLock2(id) === "contentOnly"
+ );
+ const isSingleBlock = clientIds.length === 1;
+ const blockName = isSingleBlock && getBlockName2(clientIds[0]);
+ const hasBlockStyles = isSingleBlock && !!getBlockStyles2(blockName)?.length;
+ const hasPatternNameInSelection = clientIds.some(
+ (id) => !!getBlockAttributes3(id)?.metadata?.patternName && isSectionBlock2(id)
+ );
+ const hasPatternOverrides = clientIds.every(
+ (clientId) => hasPatternOverridesDefaultBinding(
+ getBlockAttributes3(clientId)?.metadata?.bindings
+ )
+ );
+ const hasParentPattern = clientIds.every(
+ (clientId) => getBlockParentsByBlockName2(clientId, "core/block", true).length > 0
+ );
+ const canRemove = canRemoveBlocks2(clientIds);
+ const canEdit = clientIds.every((clientId) => canEditBlock2(clientId));
+ const editingMode = getBlockEditingMode2(clientIds[0]);
+ const isDefaultEditingMode = editingMode === "default";
+ const isContentOnlyMode = editingMode === "contentOnly";
+ const _hideTransformsForSections = hasPatternNameInSelection;
+ const _showBlockSwitcher = !_hideTransformsForSections && isDefaultEditingMode && (hasBlockStyles || canRemove) && !hasTemplateLock && canEdit;
+ const _showPatternOverrides = hasPatternOverrides && hasParentPattern;
+ if (_showBlockSwitcher) {
+ return "switcher";
+ } else if (isContentOnlyMode && hasBlockStyles && !hasPatternOverrides && canEdit) {
+ return "styles-only";
+ } else if (_showPatternOverrides) {
+ return "pattern-overrides";
+ }
+ return "default";
+ }
+ function getBlockIcon({ select: select3, clientIds }) {
+ const { getBlockName: getBlockName2, getBlockAttributes: getBlockAttributes3, getBlock: getBlock2, isSectionBlock: isSectionBlock2 } = unlock(select3(store));
+ const _isSingleBlock = clientIds.length === 1;
+ const firstClientId = clientIds[0];
+ const blockAttributes = getBlockAttributes3(firstClientId);
+ if (_isSingleBlock && blockAttributes?.metadata?.patternName && isSectionBlock2(firstClientId)) {
+ return symbol_default;
+ }
+ const blockName = getBlockName2(firstClientId);
+ const blockType = (0, import_blocks75.getBlockType)(blockName);
+ if (_isSingleBlock) {
+ const { getActiveBlockVariation } = select3(import_blocks75.store);
+ const match2 = getActiveBlockVariation(
+ blockName,
+ blockAttributes,
+ void 0,
+ getBlock2?.(firstClientId)?.innerContent
+ );
+ return match2?.icon || blockType?.icon;
+ }
+ const blockNames = clientIds.map((id) => getBlockName2(id));
+ const isSelectionOfSameType = new Set(blockNames).size === 1;
+ return isSelectionOfSameType ? blockType?.icon : copy_default;
+ }
+ function BlockToolbarIcon({ clientIds, isSynced }) {
+ const { icon, showIconLabels, variant } = (0, import_data119.useSelect)(
+ (select3) => {
+ return {
+ icon: getBlockIcon({ select: select3, clientIds }),
+ showIconLabels: select3(import_preferences2.store).get(
+ "core",
+ "showIconLabels"
+ ),
+ variant: getBlockIconVariant({
+ select: select3,
+ clientIds
+ })
};
+ },
+ [clientIds]
+ );
+ const blockTitle = useBlockDisplayTitle({
+ clientId: clientIds?.[0],
+ maximumLength: 35
+ });
+ const isSingleBlock = clientIds.length === 1;
+ const showBlockTitle = isSingleBlock && isSynced && !showIconLabels;
+ const label = isSingleBlock ? blockTitle : (0, import_i18n103.__)("Multiple blocks selected");
+ const text = showBlockTitle && blockTitle ? blockTitle : void 0;
+ const BlockIconElement = /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
+ block_icon_default,
+ {
+ className: "block-editor-block-toolbar__block-icon",
+ icon
}
- }, [url]);
- return state;
+ );
+ if (variant === "switcher") {
+ return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
+ block_switcher_default,
+ {
+ clientIds,
+ label,
+ text,
+ children: BlockIconElement
+ }
+ );
+ }
+ if (variant === "styles-only") {
+ return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
+ BlockStylesDropdown,
+ {
+ clientIds,
+ label,
+ text,
+ children: BlockIconElement
+ }
+ );
+ }
+ if (variant === "pattern-overrides") {
+ return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
+ PatternOverridesDropdown,
+ {
+ icon: BlockIconElement,
+ clientIds,
+ blockTitle,
+ label
+ }
+ );
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
+ import_components110.ToolbarButton,
+ {
+ disabled: true,
+ className: "block-editor-block-toolbar__block-icon-button",
+ title: label,
+ icon: BlockIconElement,
+ text
+ }
+ );
}
- var use_rich_url_data_default = useRemoteUrlData;
- // packages/block-editor/build-module/components/link-control/link-preview.mjs
- var import_jsx_runtime380 = __toESM(require_jsx_runtime(), 1);
- var { Badge: WCBadge4 } = unlock(import_components166.privateApis);
- function LinkPreview({
- value,
- onEditClick,
- hasRichPreviews = false,
- hasUnlinkControl = false,
- onRemove
+ // packages/block-editor/build-module/components/block-toolbar/index.mjs
+ var import_jsx_runtime323 = __toESM(require_jsx_runtime(), 1);
+ function PrivateBlockToolbar({
+ hideDragHandle,
+ focusOnMount,
+ __experimentalInitialIndex,
+ __experimentalOnIndexChange,
+ variant = "unstyled"
}) {
- const showIconLabels = (0, import_data147.useSelect)(
- (select3) => select3(import_preferences3.store).get("core", "showIconLabels"),
- []
- );
- const showRichPreviews = hasRichPreviews ? value?.url : null;
- const { richData, isFetching } = use_rich_url_data_default(showRichPreviews);
- const hasRichData = richData && Object.keys(richData).length;
- const displayURL = value && (0, import_url5.filterURLForDisplay)((0, import_url5.safeDecodeURI)(value.url), 24) || "";
- const isEmptyURL = !value?.url?.length;
- const displayTitle = !isEmptyURL && (0, import_dom67.__unstableStripHTML)(
- value?.entityTitle || richData?.title || value?.title || displayURL
- );
- let icon;
- if (richData?.icon) {
- icon = /* @__PURE__ */ (0, import_jsx_runtime380.jsx)("img", { src: richData?.icon, alt: "" });
- } else if (isEmptyURL) {
- icon = /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(icon_default, { icon: info_default, size: 32 });
- } else {
- icon = /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(icon_default, { icon: globe_default });
+ const {
+ blockClientId,
+ blockClientIds,
+ isDefaultEditingMode,
+ blockType,
+ toolbarKey,
+ shouldShowVisualToolbar,
+ showParentSelector,
+ isUsingBindings,
+ isSectionContainer,
+ hasContentOnlyLocking,
+ showShuffleButton,
+ showSlots,
+ showGroupButtons,
+ showLockButtons,
+ showBlockVisibilityButton,
+ showSwitchSectionStyleButton,
+ areSelectedBlocksHiddenOnViewport,
+ showStyleStateSlot,
+ canEdit
+ } = (0, import_data120.useSelect)((select3) => {
+ const { canEditBlock: canEditBlock2 } = select3(store);
+ const {
+ getBlockName: getBlockName2,
+ getBlockMode: getBlockMode2,
+ getBlockParents: getBlockParents2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ isBlockValid: isBlockValid2,
+ getBlockEditingMode: getBlockEditingMode2,
+ getBlockAttributes: getBlockAttributes3,
+ getSettings: getSettings8,
+ getTemplateLock: getTemplateLock2,
+ getParentSectionBlock: getParentSectionBlock2,
+ isZoomOut: isZoomOut2,
+ isSectionBlock: isSectionBlock2,
+ isBlockHiddenAtViewport: isBlockHiddenAtViewport2,
+ getSelectedBlockStyleState: getSelectedBlockStyleState2,
+ isResponsiveEditing: isResponsiveEditing3
+ } = unlock(select3(store));
+ const selectedBlockClientIds = getSelectedBlockClientIds2();
+ const selectedBlockClientId = selectedBlockClientIds[0];
+ const parents = getBlockParents2(selectedBlockClientId);
+ const parentSection = getParentSectionBlock2(selectedBlockClientId);
+ const parentClientId = parentSection ?? parents[parents.length - 1];
+ const parentBlockName = getBlockName2(parentClientId);
+ const parentBlockType = (0, import_blocks76.getBlockType)(parentBlockName);
+ const editingMode = getBlockEditingMode2(selectedBlockClientId);
+ const _isDefaultEditingMode = editingMode === "default";
+ const _blockName = getBlockName2(selectedBlockClientId);
+ const isValid2 = selectedBlockClientIds.every(
+ (id) => isBlockValid2(id)
+ );
+ const isVisual = selectedBlockClientIds.every(
+ (id) => getBlockMode2(id) === "visual"
+ );
+ const _isUsingBindings = selectedBlockClientIds.every(
+ (clientId) => !!getBlockAttributes3(clientId)?.metadata?.bindings
+ );
+ const _hasTemplateLock = selectedBlockClientIds.some(
+ (id) => getTemplateLock2(id) === "contentOnly"
+ );
+ const _isZoomOut = isZoomOut2();
+ const _isSectionBlock = isSectionBlock2(selectedBlockClientId);
+ const _canEditBlock = canEditBlock2(selectedBlockClientId);
+ const _showSwitchSectionStyleButton = _canEditBlock && (_isZoomOut || _isSectionBlock);
+ const _currentDeviceType = getSettings8()?.[deviceTypeKey]?.toLowerCase() || "desktop";
+ const _areSelectedBlocksHiddenOnViewport = selectedBlockClientIds.length > 0 && selectedBlockClientIds.every(
+ (id) => isBlockHiddenAtViewport2(id, _currentDeviceType)
+ );
+ const _isEditingResponsiveStyleState = isResponsiveEditing3() && hasViewportBlockStyleState(
+ getSelectedBlockStyleState2(selectedBlockClientId)
+ );
+ return {
+ blockClientId: selectedBlockClientId,
+ blockClientIds: selectedBlockClientIds,
+ isDefaultEditingMode: _isDefaultEditingMode,
+ blockType: selectedBlockClientId && (0, import_blocks76.getBlockType)(_blockName),
+ shouldShowVisualToolbar: isValid2 && isVisual,
+ toolbarKey: `${selectedBlockClientId}${parentClientId}`,
+ showParentSelector: !_isZoomOut && parentBlockType && editingMode !== "contentOnly" && getBlockEditingMode2(parentClientId) !== "disabled" && (0, import_blocks76.hasBlockSupport)(
+ parentBlockType,
+ "__experimentalParentSelector",
+ true
+ ) && selectedBlockClientIds.length === 1,
+ isUsingBindings: _isUsingBindings,
+ isSectionContainer: _isSectionBlock,
+ hasContentOnlyLocking: _hasTemplateLock,
+ showShuffleButton: _isZoomOut,
+ showSlots: !_isZoomOut && !_isEditingResponsiveStyleState,
+ showStyleStateSlot: !_isZoomOut && _isEditingResponsiveStyleState,
+ showGroupButtons: !_isZoomOut,
+ showLockButtons: !_isZoomOut,
+ showBlockVisibilityButton: !_isZoomOut,
+ showSwitchSectionStyleButton: _showSwitchSectionStyleButton,
+ areSelectedBlocksHiddenOnViewport: _areSelectedBlocksHiddenOnViewport,
+ canEdit: _canEditBlock
+ };
+ }, []);
+ const toolbarWrapperRef = (0, import_element185.useRef)(null);
+ const nodeRef = (0, import_element185.useRef)();
+ const showHoveredOrFocusedGestures = useShowHoveredOrFocusedGestures({
+ ref: nodeRef
+ });
+ const isLargeViewport = !(0, import_compose70.useViewportMatch)("medium", "<");
+ const hasBlockToolbar = useHasBlockToolbar();
+ if (!hasBlockToolbar) {
+ return null;
}
- const { createNotice } = (0, import_data147.useDispatch)(import_notices10.store);
- const ref = (0, import_compose87.useCopyToClipboard)(value.url, () => {
- createNotice("info", (0, import_i18n156.__)("Link copied to clipboard."), {
- isDismissible: true,
- type: "snackbar"
- });
+ const isMultiToolbar = blockClientIds.length > 1;
+ const isSynced = (0, import_blocks76.isReusableBlock)(blockType) || (0, import_blocks76.isTemplatePart)(blockType);
+ const classes = clsx_default("block-editor-block-contextual-toolbar", {
+ "has-parent": showParentSelector
});
- return /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
- import_components166.Flex,
+ const innerClasses = clsx_default("block-editor-block-toolbar", {
+ "is-synced": isSynced,
+ "is-connected": isUsingBindings
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ NavigableToolbar,
{
- role: "group",
- "aria-label": (0, import_i18n156.__)("Manage link"),
- className: clsx_default("block-editor-link-control__preview", {
- "is-current": true,
- "is-rich": hasRichData,
- "is-fetching": !!isFetching,
- "is-preview": true,
- "is-error": isEmptyURL,
- "is-url-title": displayTitle === displayURL
- }),
- children: /* @__PURE__ */ (0, import_jsx_runtime380.jsxs)(import_components166.Flex, { gap: 0, align: "flex-start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime380.jsxs)(
- import_components166.Flex,
- {
- className: "block-editor-link-control__link-information",
- role: "figure",
- "aria-label": (
- /* translators: Accessibility text for the link preview when editing a link. */
- (0, import_i18n156.__)("Link information")
- ),
- justify: "start",
- align: "flex-start",
- children: [
- value?.image ? /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
- import_components166.Flex,
+ focusEditorOnEscape: true,
+ className: classes,
+ "aria-label": (0, import_i18n104.__)("Block tools"),
+ variant: variant === "toolbar" ? void 0 : variant,
+ focusOnMount,
+ __experimentalInitialIndex,
+ __experimentalOnIndexChange,
+ children: /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)("div", { ref: toolbarWrapperRef, className: innerClasses, children: [
+ showParentSelector && !isMultiToolbar && isLargeViewport && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(BlockParentSelector, {}),
+ (shouldShowVisualToolbar || isMultiToolbar) && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)("div", { ref: nodeRef, ...showHoveredOrFocusedGestures, children: /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(import_components111.ToolbarGroup, { className: "block-editor-block-toolbar__block-controls", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ BlockToolbarIcon,
+ {
+ clientIds: blockClientIds,
+ isSynced
+ }
+ ),
+ isDefaultEditingMode && showBlockVisibilityButton && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ BlockVisibilityViewportToolbar,
+ {
+ clientIds: blockClientIds
+ }
+ ),
+ !isMultiToolbar && isDefaultEditingMode && showLockButtons && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ BlockLockToolbar,
+ {
+ clientId: blockClientId
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ block_mover_default,
+ {
+ clientIds: blockClientIds,
+ hideDragHandle
+ }
+ )
+ ] }) }),
+ !areSelectedBlocksHiddenOnViewport && !hasContentOnlyLocking && shouldShowVisualToolbar && isMultiToolbar && showGroupButtons && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(toolbar_default, {}),
+ !isMultiToolbar && canEdit && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(EditSectionButton, { clientId: blockClientIds[0] }),
+ !areSelectedBlocksHiddenOnViewport && showShuffleButton && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(ChangeDesign, { clientId: blockClientIds[0] }),
+ !areSelectedBlocksHiddenOnViewport && showSwitchSectionStyleButton && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(switch_section_style_default, { clientId: blockClientIds[0] }),
+ !areSelectedBlocksHiddenOnViewport && shouldShowVisualToolbar && /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(import_jsx_runtime323.Fragment, { children: [
+ !isSectionContainer && /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(import_jsx_runtime323.Fragment, { children: [
+ showSlots && /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(import_jsx_runtime323.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ block_controls_default.Slot,
{
- className: "block-editor-link-control__preview-image",
- justify: "center",
- children: /* @__PURE__ */ (0, import_jsx_runtime380.jsx)("img", { src: value?.image, alt: "" })
+ group: "parent",
+ className: "block-editor-block-toolbar__slot"
}
- ) : /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
- import_components166.Flex,
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ block_controls_default.Slot,
{
- className: clsx_default(
- "block-editor-link-control__preview-icon",
- {
- "is-image": richData?.icon
- }
- ),
- justify: "center",
- children: icon
+ group: "block",
+ className: "block-editor-block-toolbar__slot"
}
),
- /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
- import_components166.Flex,
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(block_controls_default.Slot, { className: "block-editor-block-toolbar__slot" }),
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ block_controls_default.Slot,
{
- className: "block-editor-link-control__preview-details",
- direction: "column",
- gap: 2,
- children: !isEmptyURL ? /* @__PURE__ */ (0, import_jsx_runtime380.jsxs)(import_jsx_runtime380.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
- import_components166.ExternalLink,
- {
- className: "block-editor-link-control__preview-title",
- href: value.url,
- children: /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(import_components166.__experimentalTruncate, { numberOfLines: 1, children: displayTitle })
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime380.jsx)("span", { className: "block-editor-link-control__preview-info", children: /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(import_components166.__experimentalTruncate, { numberOfLines: 1, children: displayURL }) }),
- value?.badges?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
- import_components166.__experimentalHStack,
- {
- className: "block-editor-link-control__preview-badges",
- alignment: "left",
- gap: 1,
- children: value.badges.map(
- (badge, index2) => /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
- WCBadge4,
- {
- intent: badge.intent,
- children: badge.label
- },
- `${badge.label}|${badge.intent}|${index2}`
- )
- )
- }
- )
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime380.jsx)("span", { className: "block-editor-link-control__preview-error-notice", children: (0, import_i18n156.__)("Link is empty") })
+ group: "inline",
+ className: "block-editor-block-toolbar__slot"
}
)
- ]
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
- import_components166.Button,
- {
- icon: pencil_default,
- label: (0, import_i18n156.__)("Edit link"),
- onClick: onEditClick,
- size: "compact",
- showTooltip: !showIconLabels
- }
- ),
- hasUnlinkControl && /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
- import_components166.Button,
- {
- icon: link_off_default,
- label: (0, import_i18n156.__)("Remove link"),
- onClick: onRemove,
- size: "compact",
- showTooltip: !showIconLabels
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
- import_components166.Button,
- {
- icon: copy_small_default,
- label: (0, import_i18n156.__)("Copy link"),
- ref,
- accessibleWhenDisabled: true,
- disabled: isEmptyURL,
- size: "compact",
- showTooltip: !showIconLabels
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(ViewerSlot, { fillProps: value })
+ ] }),
+ showStyleStateSlot && /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ block_controls_default.Slot,
+ {
+ group: "style-state",
+ className: "block-editor-block-toolbar__slot"
+ }
+ )
+ ] }),
+ showSlots && /* @__PURE__ */ (0, import_jsx_runtime323.jsxs)(import_jsx_runtime323.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ block_controls_default.Slot,
+ {
+ group: "other",
+ className: "block-editor-block-toolbar__slot"
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(block_toolbar_last_item_default.Slot, {})
+ ] })
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(BlockEditVisuallyButton, { clientIds: blockClientIds }),
+ /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(block_settings_menu_default, { clientIds: blockClientIds })
] })
+ },
+ toolbarKey
+ );
+ }
+ function BlockToolbar({ hideDragHandle, variant }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(
+ PrivateBlockToolbar,
+ {
+ hideDragHandle,
+ variant,
+ focusOnMount: void 0,
+ __experimentalInitialIndex: void 0,
+ __experimentalOnIndexChange: void 0
}
);
}
- // packages/block-editor/build-module/components/link-control/settings.mjs
- var import_i18n157 = __toESM(require_i18n(), 1);
- var import_components167 = __toESM(require_components(), 1);
- var import_jsx_runtime381 = __toESM(require_jsx_runtime(), 1);
- var noop17 = () => {
- };
- var LinkControlSettings = ({ value, onChange = noop17, settings: settings2 }) => {
- if (!settings2 || !settings2.length) {
- return null;
- }
- const handleSettingChange = (setting) => (newValue) => {
- onChange({
- ...value,
- [setting.id]: newValue
- });
- };
- const theSettings = settings2.map((setting) => {
- if ("render" in setting) {
- if (typeof setting.render === "function") {
- const renderedContent = setting.render(
- setting,
- value,
- onChange
- );
- return /* @__PURE__ */ (0, import_jsx_runtime381.jsx)(
- "div",
- {
- className: "block-editor-link-control__setting",
- children: renderedContent
+ // packages/block-editor/build-module/components/block-tools/block-toolbar-popover.mjs
+ var import_jsx_runtime324 = __toESM(require_jsx_runtime(), 1);
+ function BlockToolbarPopover({
+ clientId,
+ isTyping: isTyping3,
+ __unstableContentRef
+ }) {
+ const { capturingClientId, isInsertionPointVisible, lastClientId } = useSelectedBlockToolProps(clientId);
+ const initialToolbarItemIndexRef = (0, import_element186.useRef)();
+ (0, import_element186.useEffect)(() => {
+ initialToolbarItemIndexRef.current = void 0;
+ }, [clientId]);
+ const { stopTyping: stopTyping2 } = (0, import_data121.useDispatch)(store);
+ const isToolbarForcedRef = (0, import_element186.useRef)(false);
+ (0, import_keyboard_shortcuts9.useShortcut)("core/block-editor/focus-toolbar", () => {
+ isToolbarForcedRef.current = true;
+ stopTyping2(true);
+ });
+ (0, import_element186.useEffect)(() => {
+ isToolbarForcedRef.current = false;
+ });
+ const clientIdToPositionOver = capturingClientId || clientId;
+ const popoverProps3 = useBlockToolbarPopoverProps({
+ contentElement: __unstableContentRef?.current,
+ clientId: clientIdToPositionOver
+ });
+ return !isTyping3 && /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
+ PrivateBlockPopover,
+ {
+ clientId: clientIdToPositionOver,
+ bottomClientId: lastClientId,
+ className: clsx_default("block-editor-block-list__block-popover", {
+ "is-insertion-point-visible": isInsertionPointVisible
+ }),
+ resize: false,
+ ...popoverProps3,
+ __unstableContentRef,
+ children: /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
+ PrivateBlockToolbar,
+ {
+ focusOnMount: isToolbarForcedRef.current,
+ __experimentalInitialIndex: initialToolbarItemIndexRef.current,
+ __experimentalOnIndexChange: (index2) => {
+ initialToolbarItemIndexRef.current = index2;
},
- setting.id
- );
- }
- return null;
+ variant: "toolbar"
+ }
+ )
}
- return /* @__PURE__ */ (0, import_jsx_runtime381.jsx)(
- import_components167.CheckboxControl,
- {
- className: "block-editor-link-control__setting",
- label: setting.title,
- onChange: handleSettingChange(setting),
- checked: value ? !!value[setting.id] : false,
- help: setting?.help
- },
- setting.id
- );
- }).filter(Boolean);
- return /* @__PURE__ */ (0, import_jsx_runtime381.jsxs)("fieldset", { className: "block-editor-link-control__settings", children: [
- /* @__PURE__ */ (0, import_jsx_runtime381.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime381.jsx)("legend", {}), children: (0, import_i18n157.__)("Currently selected link settings") }),
- theSettings
- ] });
- };
- var settings_default2 = LinkControlSettings;
+ );
+ }
- // packages/block-editor/build-module/components/link-control/use-create-page.mjs
- var import_i18n158 = __toESM(require_i18n(), 1);
- var import_element223 = __toESM(require_element(), 1);
- function useCreatePage(handleCreatePage) {
- const cancelableCreateSuggestion = (0, import_element223.useRef)();
- const [isCreatingPage, setIsCreatingPage] = (0, import_element223.useState)(false);
- const [errorMessage, setErrorMessage] = (0, import_element223.useState)(null);
- const createPage = async function(suggestionTitle) {
- setIsCreatingPage(true);
- setErrorMessage(null);
- try {
- cancelableCreateSuggestion.current = makeCancelable(
- // Using Promise.resolve to allow createSuggestion to return a
- // non-Promise based value.
- Promise.resolve(handleCreatePage(suggestionTitle))
- );
- return await cancelableCreateSuggestion.current.promise;
- } catch (error2) {
- if (error2 && error2.isCanceled) {
- return;
- }
- setErrorMessage(
- error2.message || (0, import_i18n158.__)(
- "An unknown error occurred during creation. Please try again."
- )
- );
- throw error2;
- } finally {
- setIsCreatingPage(false);
+ // packages/block-editor/build-module/components/block-tools/zoom-out-mode-inserters.mjs
+ var import_data122 = __toESM(require_data(), 1);
+ var import_element187 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/block-tools/zoom-out-mode-inserter-button.mjs
+ var import_components112 = __toESM(require_components(), 1);
+ var import_i18n105 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime325 = __toESM(require_jsx_runtime(), 1);
+ function ZoomOutModeInserterButton({ onClick }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
+ import_components112.Button,
+ {
+ variant: "primary",
+ icon: plus_default,
+ size: "compact",
+ className: clsx_default(
+ "block-editor-button-pattern-inserter__button",
+ "block-editor-block-tools__zoom-out-mode-inserter-button"
+ ),
+ onClick,
+ label: (0, import_i18n105._x)(
+ "Add pattern",
+ "Generic label for pattern inserter button"
+ )
}
- };
- (0, import_element223.useEffect)(() => {
+ );
+ }
+ var zoom_out_mode_inserter_button_default = ZoomOutModeInserterButton;
+
+ // packages/block-editor/build-module/components/block-tools/zoom-out-mode-inserters.mjs
+ var import_jsx_runtime326 = __toESM(require_jsx_runtime(), 1);
+ function ZoomOutModeInserters() {
+ const [isReady, setIsReady] = (0, import_element187.useState)(false);
+ const {
+ hasSelection,
+ blockOrder,
+ setInserterIsOpened,
+ sectionRootClientId,
+ selectedBlockClientId,
+ blockInsertionPoint,
+ insertionPointVisible
+ } = (0, import_data122.useSelect)((select3) => {
+ const {
+ getSettings: getSettings8,
+ getBlockOrder: getBlockOrder2,
+ getSelectionStart: getSelectionStart2,
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ getSectionRootClientId: getSectionRootClientId2,
+ getBlockInsertionPoint: getBlockInsertionPoint2,
+ isBlockInsertionPointVisible: isBlockInsertionPointVisible2
+ } = unlock(select3(store));
+ const root = getSectionRootClientId2();
+ return {
+ hasSelection: !!getSelectionStart2().clientId,
+ blockOrder: getBlockOrder2(root),
+ sectionRootClientId: root,
+ setInserterIsOpened: getSettings8().__experimentalSetIsInserterOpened,
+ selectedBlockClientId: getSelectedBlockClientId2(),
+ blockInsertionPoint: getBlockInsertionPoint2(),
+ insertionPointVisible: isBlockInsertionPointVisible2()
+ };
+ }, []);
+ const { showInsertionPoint: showInsertionPoint2 } = unlock((0, import_data122.useDispatch)(store));
+ (0, import_element187.useEffect)(() => {
+ const timeout = setTimeout(() => {
+ setIsReady(true);
+ }, 500);
return () => {
- if (cancelableCreateSuggestion.current) {
- cancelableCreateSuggestion.current.cancel();
- }
+ clearTimeout(timeout);
};
}, []);
- return {
- createPage,
- isCreatingPage,
- errorMessage
- };
- }
- var makeCancelable = (promise) => {
- let hasCanceled_ = false;
- const wrappedPromise = new Promise((resolve, reject) => {
- promise.then(
- (val) => hasCanceled_ ? reject({ isCanceled: true }) : resolve(val),
- (error2) => hasCanceled_ ? reject({ isCanceled: true }) : reject(error2)
- );
- });
- return {
- promise: wrappedPromise,
- cancel() {
- hasCanceled_ = true;
- }
- };
- };
-
- // packages/block-editor/build-module/components/link-control/use-internal-value.mjs
- var import_element224 = __toESM(require_element(), 1);
- var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
- function useInternalValue(value) {
- const [internalValue, setInternalValue] = (0, import_element224.useState)(value || {});
- const [previousValue, setPreviousValue] = (0, import_element224.useState)(value);
- if (!(0, import_fast_deep_equal.default)(value, previousValue)) {
- setPreviousValue(value);
- setInternalValue(value);
+ if (!isReady || !hasSelection) {
+ return null;
}
- const setInternalURLInputValue = (nextValue) => {
- setInternalValue({
- ...internalValue,
- url: nextValue
- });
- };
- const setInternalTextInputValue = (nextValue) => {
- setInternalValue({
- ...internalValue,
- title: nextValue
- });
- };
- const createSetInternalSettingValueHandler = (settingsKeys) => (nextValue) => {
- const settingsUpdates = Object.keys(nextValue).reduce(
- (acc, key) => {
- if (settingsKeys.includes(key)) {
- acc[key] = nextValue[key];
+ const previousClientId = selectedBlockClientId;
+ const index2 = blockOrder.findIndex(
+ (clientId) => selectedBlockClientId === clientId
+ );
+ const insertionIndex = index2 + 1;
+ const nextClientId = blockOrder[insertionIndex];
+ if (insertionPointVisible && blockInsertionPoint?.index === insertionIndex) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
+ inbetween_default,
+ {
+ previousClientId,
+ nextClientId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
+ zoom_out_mode_inserter_button_default,
+ {
+ onClick: () => {
+ setInserterIsOpened({
+ rootClientId: sectionRootClientId,
+ insertionIndex,
+ tab: "patterns",
+ category: "all"
+ });
+ showInsertionPoint2(sectionRootClientId, insertionIndex, {
+ operation: "insert"
+ });
+ }
}
- return acc;
- },
- {}
- );
- setInternalValue({
- ...internalValue,
- ...settingsUpdates
- });
- };
- return [
- internalValue,
- setInternalValue,
- setInternalURLInputValue,
- setInternalTextInputValue,
- createSetInternalSettingValueHandler
- ];
+ )
+ }
+ );
}
+ var zoom_out_mode_inserters_default = ZoomOutModeInserters;
- // packages/block-editor/build-module/components/link-control/index.mjs
- var import_jsx_runtime382 = __toESM(require_jsx_runtime(), 1);
- var noop18 = () => {
- };
- var PREFERENCE_SCOPE = "core/block-editor";
- var PREFERENCE_KEY = "linkControlSettingsDrawer";
- function LinkControl({
- searchInputPlaceholder,
- value,
- settings: settings2 = DEFAULT_LINK_SETTINGS,
- onChange = noop18,
- onInputChange,
- onRemove,
- onCancel,
- noDirectEntry = false,
- showSuggestions = true,
- showInitialSuggestions,
- forceIsEditingLink,
- createSuggestion,
- withCreateSuggestion,
- inputValue: propInputValue = "",
- suggestionsQuery = {},
- noURLSuggestion = false,
- createSuggestionButtonText,
- hasRichPreviews = false,
- hasTextControl = false,
- renderControlBottom = null,
- handleEntities = false
- }) {
- if (withCreateSuggestion === void 0 && createSuggestion) {
- withCreateSuggestion = true;
- }
- const [settingsOpen, setSettingsOpen] = (0, import_element225.useState)(false);
- const [customValidity, setCustomValidity] = (0, import_element225.useState)(void 0);
- const { advancedSettingsPreference } = (0, import_data148.useSelect)((select3) => {
- const prefsStore = select3(import_preferences4.store);
+ // packages/block-editor/build-module/components/block-tools/use-show-block-tools.mjs
+ var import_data123 = __toESM(require_data(), 1);
+ var import_blocks77 = __toESM(require_blocks(), 1);
+ function useShowBlockTools() {
+ return (0, import_data123.useSelect)((select3) => {
+ const {
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ getFirstMultiSelectedBlockClientId: getFirstMultiSelectedBlockClientId2,
+ getBlock: getBlock2,
+ getBlockMode: getBlockMode2,
+ getSettings: getSettings8,
+ isTyping: isTyping3,
+ isBlockInterfaceHidden: isBlockInterfaceHidden3
+ } = unlock(select3(store));
+ const clientId = getSelectedBlockClientId2() || getFirstMultiSelectedBlockClientId2();
+ const block = getBlock2(clientId);
+ const hasSelectedBlock2 = !!clientId && !!block;
+ const isEmptyDefaultBlock = hasSelectedBlock2 && (0, import_blocks77.isUnmodifiedDefaultBlock)(block, "content") && getBlockMode2(clientId) !== "html";
+ const _showEmptyBlockSideInserter = clientId && !isTyping3() && isEmptyDefaultBlock;
+ const _showBlockToolbarPopover = !isBlockInterfaceHidden3() && !getSettings8().hasFixedToolbar && !_showEmptyBlockSideInserter && hasSelectedBlock2 && !isEmptyDefaultBlock;
return {
- advancedSettingsPreference: prefsStore.get(PREFERENCE_SCOPE, PREFERENCE_KEY) ?? false
+ showEmptyBlockSideInserter: _showEmptyBlockSideInserter,
+ showBlockToolbarPopover: _showBlockToolbarPopover
};
}, []);
- const { set: setPreference } = (0, import_data148.useDispatch)(import_preferences4.store);
- const setSettingsOpenWithPreference = (prefVal) => {
- if (setPreference) {
- setPreference(PREFERENCE_SCOPE, PREFERENCE_KEY, prefVal);
- }
- setSettingsOpen(prefVal);
- };
- const isSettingsOpen = advancedSettingsPreference || settingsOpen;
- const isMountingRef = (0, import_element225.useRef)(true);
- const wrapperNode = (0, import_element225.useRef)();
- const wrapperRef = (0, import_compose88.useMergeRefs)([wrapperNode, useNativeUndo()]);
- const textInputRef = (0, import_element225.useRef)();
- const searchInputRef = (0, import_element225.useRef)();
- const entityUrlFallbackRef = (0, import_element225.useRef)();
- const settingsKeys = settings2.map(({ id }) => id);
- const [
- internalControlValue,
- setInternalControlValue,
- setInternalURLInputValue,
- setInternalTextInputValue,
- createSetInternalSettingValueHandler
- ] = useInternalValue(value);
- const handleInputChange = (newValue) => {
- setInternalURLInputValue(newValue);
- onInputChange?.(newValue);
+ }
+
+ // packages/block-editor/build-module/components/block-tools/index.mjs
+ var import_jsx_runtime327 = __toESM(require_jsx_runtime(), 1);
+ function selector2(select3) {
+ const {
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ getFirstMultiSelectedBlockClientId: getFirstMultiSelectedBlockClientId2,
+ getSettings: getSettings8,
+ isTyping: isTyping3,
+ isDragging: isDragging3,
+ isZoomOut: isZoomOut2,
+ getViewportModalClientIds: getViewportModalClientIds2
+ } = unlock(select3(store));
+ const clientId = getSelectedBlockClientId2() || getFirstMultiSelectedBlockClientId2();
+ return {
+ clientId,
+ hasFixedToolbar: getSettings8().hasFixedToolbar,
+ isTyping: isTyping3(),
+ isZoomOutMode: isZoomOut2(),
+ isDragging: isDragging3(),
+ viewportModalClientIds: getViewportModalClientIds2(),
+ blockVisibilitySetting: select3(store).getSettings().__experimentalFeatures?.blockVisibility?.allowEditing
};
- const isEntity = handleEntities && !!internalControlValue?.id;
- const baseId = (0, import_compose88.useInstanceId)(LinkControl, "link-control");
- const helpTextId = isEntity ? `${baseId}__help` : null;
- const valueHasChanges = value && !(0, import_is_shallow_equal3.isShallowEqualObjects)(internalControlValue, value);
- const [isEditingLink, setIsEditingLink] = (0, import_element225.useState)(
- forceIsEditingLink !== void 0 ? forceIsEditingLink : !value || !value.url
+ }
+ function BlockTools({
+ children,
+ __unstableContentRef,
+ ...props
+ }) {
+ const {
+ clientId,
+ hasFixedToolbar,
+ isTyping: isTyping3,
+ isZoomOutMode,
+ isDragging: isDragging3,
+ viewportModalClientIds: viewportModalClientIds2,
+ blockVisibilitySetting
+ } = (0, import_data124.useSelect)(selector2, []);
+ const isMatch = (0, import_keyboard_shortcuts10.__unstableUseShortcutEventMatch)();
+ const {
+ getBlocksByClientId: getBlocksByClientId2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockEditingMode: getBlockEditingMode2,
+ getBlockName: getBlockName2,
+ isGroupable: isGroupable2,
+ getEditedContentOnlySection: getEditedContentOnlySection2,
+ canEditBlock: canEditBlock2
+ } = unlock((0, import_data124.useSelect)(store));
+ const { getGroupingBlockName } = (0, import_data124.useSelect)(import_blocks78.store);
+ const { showEmptyBlockSideInserter, showBlockToolbarPopover } = useShowBlockTools();
+ const pasteStyles = usePasteStyles();
+ const [renamingBlockClientId, setRenamingBlockClientId] = (0, import_element188.useState)(null);
+ const { canRename } = useBlockRename(
+ getBlockName2(getSelectedBlockClientIds2()[0])
);
- const { createPage, isCreatingPage, errorMessage } = useCreatePage(createSuggestion);
- (0, import_element225.useEffect)(() => {
- if (forceIsEditingLink === void 0) {
- return;
- }
- setIsEditingLink(forceIsEditingLink);
- }, [forceIsEditingLink]);
- (0, import_element225.useEffect)(() => {
- if (isMountingRef.current) {
- return;
- }
- const nextFocusTarget = import_dom68.focus.focusable.find(wrapperNode.current)[0] || wrapperNode.current;
- nextFocusTarget.focus();
- }, [isEditingLink, isCreatingPage]);
- (0, import_element225.useEffect)(() => {
- isMountingRef.current = false;
- return () => {
- isMountingRef.current = true;
- };
- }, []);
- const prevInputValueRef = (0, import_element225.useRef)();
- (0, import_element225.useEffect)(() => {
- if (prevInputValueRef.current === void 0) {
- prevInputValueRef.current = propInputValue;
+ const {
+ duplicateBlocks: duplicateBlocks2,
+ removeBlocks: removeBlocks2,
+ replaceBlocks: replaceBlocks2,
+ insertAfterBlock: insertAfterBlock2,
+ insertBeforeBlock: insertBeforeBlock2,
+ selectBlock: selectBlock2,
+ moveBlocksUp: moveBlocksUp2,
+ moveBlocksDown: moveBlocksDown2,
+ expandBlock: expandBlock2,
+ stopEditingContentOnlySection: stopEditingContentOnlySection2,
+ showViewportModal: showViewportModal2,
+ hideViewportModal: hideViewportModal2
+ } = unlock((0, import_data124.useDispatch)(store));
+ function onKeyDown(event) {
+ if (event.defaultPrevented) {
return;
}
- if (prevInputValueRef.current !== propInputValue) {
- console.warn(
- "LinkControl: The inputValue prop is uncontrolled and only sets the initial value. onInputChange is an observer for the input value. Changes to inputValue from the parent will not update the search input."
- );
- prevInputValueRef.current = propInputValue;
- }
- }, [propInputValue]);
- (0, import_element225.useEffect)(() => {
- if (customValidity?.type === "invalid") {
- const inputElement = searchInputRef.current;
- if (inputElement && typeof inputElement.reportValidity === "function") {
- inputElement.reportValidity();
+ if (isMatch("core/block-editor/move-up", event) || isMatch("core/block-editor/move-down", event)) {
+ const clientIds = getSelectedBlockClientIds2();
+ if (clientIds.length) {
+ event.preventDefault();
+ const rootClientId = getBlockRootClientId2(clientIds[0]);
+ const direction = isMatch("core/block-editor/move-up", event) ? "up" : "down";
+ if (direction === "up") {
+ moveBlocksUp2(clientIds, rootClientId);
+ } else {
+ moveBlocksDown2(clientIds, rootClientId);
+ }
+ const blockLength = Array.isArray(clientIds) ? clientIds.length : 1;
+ const message2 = (0, import_i18n106.sprintf)(
+ // translators: %d: the name of the block that has been moved
+ (0, import_i18n106._n)(
+ "%d block moved.",
+ "%d blocks moved.",
+ clientIds.length
+ ),
+ blockLength
+ );
+ (0, import_a11y13.speak)(message2);
}
- }
- }, [customValidity]);
- const hasLinkValue = value?.url?.trim()?.length > 0;
- const stopEditing = () => {
- setIsEditingLink(false);
- };
- const validateUrl = (urlToValidate) => {
- const invalidResult = {
- type: "invalid",
- message: (0, import_i18n159.__)("Please enter a valid URL.")
- };
- const validResult = {
- type: "valid"
- };
- const trimmedValue = urlToValidate?.trim();
- if (!trimmedValue?.length || !isURLLike(trimmedValue)) {
- return invalidResult;
- }
- if (isHashLink(trimmedValue) || isRelativePath(trimmedValue)) {
- return validResult;
- }
- const urlToCheck = (0, import_url6.prependHTTPS)(trimmedValue);
- return (0, import_url6.isURL)(urlToCheck) ? validResult : invalidResult;
- };
- const handleSelectSuggestion = (updatedValue) => {
- const isEntitySuggestion = updatedValue && updatedValue.id && updatedValue.type && !LINK_ENTRY_TYPES.includes(updatedValue.type);
- if (!isEntitySuggestion) {
- const urlToValidate = updatedValue?.url || currentUrlInputValue;
- const validation = validateUrl(urlToValidate);
- if (validation.type === "invalid") {
- setCustomValidity(validation);
+ } else if (isMatch("core/block-editor/duplicate", event)) {
+ const clientIds = getSelectedBlockClientIds2();
+ if (clientIds.length) {
+ event.preventDefault();
+ duplicateBlocks2(clientIds);
+ }
+ } else if (isMatch("core/block-editor/remove", event)) {
+ const clientIds = getSelectedBlockClientIds2();
+ if (clientIds.length) {
+ event.preventDefault();
+ removeBlocks2(clientIds);
+ }
+ } else if (isMatch("core/block-editor/paste-styles", event)) {
+ const clientIds = getSelectedBlockClientIds2();
+ if (clientIds.length) {
+ event.preventDefault();
+ const blocks2 = getBlocksByClientId2(clientIds);
+ pasteStyles(blocks2);
+ }
+ } else if (isMatch("core/block-editor/insert-after", event)) {
+ const clientIds = getSelectedBlockClientIds2();
+ if (clientIds.length) {
+ event.preventDefault();
+ insertAfterBlock2(clientIds[clientIds.length - 1]);
+ }
+ } else if (isMatch("core/block-editor/insert-before", event)) {
+ const clientIds = getSelectedBlockClientIds2();
+ if (clientIds.length) {
+ event.preventDefault();
+ insertBeforeBlock2(clientIds[0]);
+ }
+ } else if (isMatch("core/block-editor/unselect", event)) {
+ if (event.target.closest("[role=toolbar]")) {
+ return;
+ }
+ const clientIds = getSelectedBlockClientIds2();
+ if (clientIds.length > 1) {
+ event.preventDefault();
+ selectBlock2(clientIds[0]);
+ }
+ } else if (isMatch("core/block-editor/collapse-list-view", event)) {
+ if ((0, import_dom61.isTextField)(event.target) || (0, import_dom61.isTextField)(
+ event.target?.contentWindow?.document?.activeElement
+ )) {
return;
}
- const { url: normalizedUrl } = normalizeUrl(urlToValidate);
- updatedValue = {
- ...updatedValue,
- url: normalizedUrl
- };
- }
- if (updatedValue?.kind === "taxonomy" && updatedValue?.url) {
- entityUrlFallbackRef.current = updatedValue.url;
- }
- const nonSettingsChanges = Object.keys(updatedValue).reduce(
- (acc, key) => {
- if (!settingsKeys.includes(key)) {
- acc[key] = updatedValue[key];
- }
- return acc;
- },
- {}
- );
- onChange({
- ...internalControlValue,
- ...nonSettingsChanges,
- // As title is not a setting, it must be manually applied
- // in such a way as to preserve the users changes over
- // any "title" value provided by the "suggestion".
- title: internalControlValue?.title || updatedValue?.title
- });
- setCustomValidity(void 0);
- stopEditing();
- };
- const validateAndSetValidity = () => {
- if (currentInputIsEmpty) {
- return false;
- }
- const trimmedValue = currentUrlInputValue.trim();
- const isEntityLink = internalControlValue && internalControlValue.id && internalControlValue.type && !LINK_ENTRY_TYPES.includes(internalControlValue.type);
- const urlUnchanged = value?.url === trimmedValue;
- if (isEntityLink && urlUnchanged) {
- setCustomValidity(void 0);
- return true;
- }
- const validation = validateUrl(currentUrlInputValue);
- if (validation.type === "invalid") {
- setCustomValidity(validation);
- return false;
- }
- setCustomValidity(void 0);
- return true;
- };
- const submitUrlValue = () => {
- if (valueHasChanges) {
- onChange({
- ...value,
- ...internalControlValue,
- url: normalizeUrl(currentUrlInputValue).url
- });
- }
- stopEditing();
- setCustomValidity(void 0);
- };
- const handleSubmit = () => {
- if (!validateAndSetValidity()) {
- return;
- }
- submitUrlValue();
- };
- const handleSubmitWithEnter = (event) => {
- const { keyCode } = event;
- if (keyCode === import_keycodes19.ENTER && !currentInputIsEmpty) {
event.preventDefault();
- handleSubmit();
- }
- };
- const resetInternalValues = () => {
- setInternalControlValue(value);
- };
- const handleCancel = (event) => {
- event.preventDefault();
- event.stopPropagation();
- resetInternalValues();
- setCustomValidity(void 0);
- if (hasLinkValue) {
- stopEditing();
- } else {
- onRemove?.();
- }
- onCancel?.();
- };
- const [shouldFocusSearchInput, setShouldFocusSearchInput] = (0, import_element225.useState)(false);
- const handleUnlink = () => {
- const { id, kind, type, ...restValue } = internalControlValue;
- setInternalControlValue({
- ...restValue,
- id: void 0,
- kind: void 0,
- type: void 0,
- url: void 0
- });
- setShouldFocusSearchInput(true);
- };
- (0, import_element225.useEffect)(() => {
- if (shouldFocusSearchInput) {
- searchInputRef.current?.focus();
- setShouldFocusSearchInput(false);
+ expandBlock2(clientId);
+ } else if (isMatch("core/block-editor/group", event)) {
+ const clientIds = getSelectedBlockClientIds2();
+ if (clientIds.length > 1 && isGroupable2(clientIds)) {
+ event.preventDefault();
+ const blocks2 = getBlocksByClientId2(clientIds);
+ const groupingBlockName = getGroupingBlockName();
+ const newBlocks = groupBlocks(blocks2, groupingBlockName);
+ replaceBlocks2(clientIds, newBlocks);
+ (0, import_a11y13.speak)((0, import_i18n106.__)("Selected blocks are grouped."));
+ }
+ } else if (isMatch("core/block-editor/rename", event)) {
+ const clientIds = getSelectedBlockClientIds2();
+ if (clientIds.length === 1) {
+ const isContentOnly = getBlockEditingMode2(clientIds[0]) === "contentOnly";
+ const canRenameBlock = canRename && !isContentOnly && canEditBlock2(clientIds[0]);
+ if (canRenameBlock) {
+ event.preventDefault();
+ setRenamingBlockClientId(clientIds[0]);
+ }
+ }
+ } else if (isMatch("core/block-editor/toggle-block-visibility", event)) {
+ if (blockVisibilitySetting === false) {
+ return;
+ }
+ const clientIds = getSelectedBlockClientIds2();
+ if (clientIds.length) {
+ event.preventDefault();
+ const blocks2 = getBlocksByClientId2(clientIds);
+ const supportsBlockVisibility = blocks2.every(
+ (block) => (0, import_blocks78.hasBlockSupport)(block.name, "visibility", true)
+ );
+ if (!supportsBlockVisibility) {
+ return;
+ }
+ if (clientIds.some(
+ (id) => getBlockEditingMode2(id) !== "default" || !canEditBlock2(id)
+ )) {
+ return;
+ }
+ showViewportModal2(clientIds);
+ }
}
- }, [shouldFocusSearchInput]);
- const currentUrlInputValue = internalControlValue?.url !== void 0 ? internalControlValue.url : propInputValue || "";
- const currentInputIsEmpty = !currentUrlInputValue?.trim()?.length;
- (0, import_element225.useEffect)(() => {
- setCustomValidity(void 0);
- }, [currentUrlInputValue]);
- const isUrlValid = !customValidity;
- const shownUnlinkControl = onRemove && value && !isEditingLink && !isCreatingPage;
- const showActions = isEditingLink && hasLinkValue;
- const showTextControl = hasLinkValue && hasTextControl;
- const isEditing = (isEditingLink || !value) && !isCreatingPage;
- const isDisabled = currentInputIsEmpty || !isUrlValid || value && !valueHasChanges;
- const showSettings = !!settings2?.length && isEditingLink && hasLinkValue;
- const previewValue = (0, import_element225.useMemo)(() => {
- if (value?.kind === "taxonomy" && !value?.url && entityUrlFallbackRef.current) {
- return {
- ...value,
- url: entityUrlFallbackRef.current
- };
+ if (isMatch("core/block-editor/stop-editing-as-blocks", event)) {
+ if (getEditedContentOnlySection2()) {
+ stopEditingContentOnlySection2();
+ }
}
- return value;
- }, [value]);
- return /* @__PURE__ */ (0, import_jsx_runtime382.jsxs)(
- "div",
- {
- tabIndex: -1,
- ref: wrapperRef,
- className: "block-editor-link-control",
- children: [
- isCreatingPage && /* @__PURE__ */ (0, import_jsx_runtime382.jsxs)("div", { className: "block-editor-link-control__loading", children: [
- /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(import_components168.Spinner, {}),
- " ",
- (0, import_i18n159.__)("Creating"),
- "\u2026"
- ] }),
- isEditing && /* @__PURE__ */ (0, import_jsx_runtime382.jsxs)(import_jsx_runtime382.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime382.jsxs)(
- "div",
+ }
+ const blockToolbarRef = use_popover_scroll_default(__unstableContentRef);
+ const blockToolbarAfterRef = use_popover_scroll_default(__unstableContentRef);
+ return (
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
+ /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
+ "div",
+ {
+ ...props,
+ onKeyDown,
+ className: clsx_default(props.className, {
+ "block-editor-block-tools--is-dragging": isDragging3
+ }),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(InsertionPointOpenRef.Provider, { value: (0, import_element188.useRef)(false), children: [
+ !isTyping3 && !isZoomOutMode && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
+ InsertionPoint,
+ {
+ __unstableContentRef
+ }
+ ),
+ showEmptyBlockSideInserter && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
+ EmptyBlockInserter,
+ {
+ __unstableContentRef,
+ clientId
+ }
+ ),
+ showBlockToolbarPopover && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
+ BlockToolbarPopover,
+ {
+ __unstableContentRef,
+ clientId,
+ isTyping: isTyping3
+ }
+ ),
+ !isZoomOutMode && !hasFixedToolbar && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
+ import_components113.Popover.Slot,
+ {
+ name: "block-toolbar",
+ ref: blockToolbarRef
+ }
+ ),
+ children,
+ /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
+ import_components113.Popover.Slot,
+ {
+ name: "__unstable-block-tools-after",
+ ref: blockToolbarAfterRef
+ }
+ ),
+ isZoomOutMode && !isDragging3 && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
+ zoom_out_mode_inserters_default,
+ {
+ __unstableContentRef
+ }
+ )
+ ] }),
+ renamingBlockClientId && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
+ BlockRenameModal,
{
- className: clsx_default({
- "block-editor-link-control__search-input-wrapper": true,
- "has-text-control": showTextControl,
- "has-actions": showActions
- }),
- children: [
- showTextControl && /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- import_components168.TextControl,
- {
- ref: textInputRef,
- className: "block-editor-link-control__field block-editor-link-control__text-content",
- label: (0, import_i18n159.__)("Text"),
- value: internalControlValue?.title,
- onChange: setInternalTextInputValue,
- onKeyDown: handleSubmitWithEnter
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- search_input_default,
- {
- ref: searchInputRef,
- currentLink: value,
- className: "block-editor-link-control__field block-editor-link-control__search-input",
- placeholder: searchInputPlaceholder,
- value: currentUrlInputValue,
- withCreateSuggestion,
- onCreateSuggestion: createPage,
- onChange: handleInputChange,
- onSelect: handleSelectSuggestion,
- showInitialSuggestions,
- allowDirectEntry: !noDirectEntry,
- showSuggestions,
- suggestionsQuery,
- withURLSuggestion: !noURLSuggestion,
- createSuggestionButtonText,
- hideLabelFromVision: !showTextControl,
- isEntity,
- customValidity,
- suffix: /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- SearchSuffixControl,
- {
- isEntity,
- showActions,
- isDisabled,
- onUnlink: handleUnlink,
- onSubmit: handleSubmit,
- helpTextId
- }
- )
- }
- ),
- isEntity && helpTextId && /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- "p",
- {
- id: helpTextId,
- className: "block-editor-link-control__help",
- children: (0, import_i18n159.sprintf)(
- /* translators: %s: entity type (e.g., page, post) */
- (0, import_i18n159.__)("Synced with the selected %s."),
- internalControlValue?.type || "item"
- )
- }
- )
- ]
+ clientId: renamingBlockClientId,
+ onClose: () => setRenamingBlockClientId(null)
}
),
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- import_components168.Notice,
+ viewportModalClientIds2 && /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
+ BlockVisibilityModal,
{
- className: "block-editor-link-control__search-error",
- status: "error",
- isDismissible: false,
- children: errorMessage
+ clientIds: viewportModalClientIds2,
+ onClose: hideViewportModal2
}
)
- ] }),
- value && !isEditingLink && !isCreatingPage && /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- LinkPreview,
- {
- value: previewValue,
- onEditClick: () => setIsEditingLink(true),
- hasRichPreviews,
- hasUnlinkControl: shownUnlinkControl,
- onRemove: () => {
- onRemove();
- setIsEditingLink(true);
+ ]
+ }
+ )
+ );
+ }
+
+ // packages/block-editor/build-module/components/observe-typing/index.mjs
+ var import_compose71 = __toESM(require_compose(), 1);
+ var import_data125 = __toESM(require_data(), 1);
+ var import_dom62 = __toESM(require_dom(), 1);
+ var import_keycodes13 = __toESM(require_keycodes(), 1);
+ var import_jsx_runtime328 = __toESM(require_jsx_runtime(), 1);
+ var KEY_DOWN_ELIGIBLE_KEY_CODES = /* @__PURE__ */ new Set([
+ import_keycodes13.UP,
+ import_keycodes13.RIGHT,
+ import_keycodes13.DOWN,
+ import_keycodes13.LEFT,
+ import_keycodes13.ENTER,
+ import_keycodes13.BACKSPACE
+ ]);
+ function isKeyDownEligibleForStartTyping(event) {
+ const { keyCode, shiftKey } = event;
+ return !shiftKey && KEY_DOWN_ELIGIBLE_KEY_CODES.has(keyCode);
+ }
+ function useMouseMoveTypingReset() {
+ const isTyping3 = (0, import_data125.useSelect)(
+ (select3) => select3(store).isTyping(),
+ []
+ );
+ const { stopTyping: stopTyping2 } = (0, import_data125.useDispatch)(store);
+ return (0, import_compose71.useRefEffect)(
+ (node) => {
+ if (!isTyping3) {
+ return;
+ }
+ const { ownerDocument: ownerDocument2 } = node;
+ let lastClientX;
+ let lastClientY;
+ function stopTypingOnMouseMove(event) {
+ const { clientX, clientY } = event;
+ if (lastClientX && lastClientY && (lastClientX !== clientX || lastClientY !== clientY)) {
+ stopTyping2();
+ }
+ lastClientX = clientX;
+ lastClientY = clientY;
+ }
+ ownerDocument2.addEventListener(
+ "mousemove",
+ stopTypingOnMouseMove
+ );
+ return () => {
+ ownerDocument2.removeEventListener(
+ "mousemove",
+ stopTypingOnMouseMove
+ );
+ };
+ },
+ [isTyping3, stopTyping2]
+ );
+ }
+ function useTypingObserver() {
+ const isTyping3 = (0, import_data125.useSelect)(
+ (select3) => select3(store).isTyping(),
+ []
+ );
+ const { startTyping: startTyping2, stopTyping: stopTyping2 } = (0, import_data125.useDispatch)(store);
+ const ref1 = useMouseMoveTypingReset();
+ const ref2 = (0, import_compose71.useRefEffect)(
+ (node) => {
+ if (isTyping3) {
+ let stopTypingOnNonTextField2 = function(event) {
+ const { target } = event;
+ timerId = defaultView.setTimeout(() => {
+ if (!(0, import_dom62.isTextField)(target)) {
+ stopTyping2();
}
- },
- previewValue?.url
- ),
- showSettings && /* @__PURE__ */ (0, import_jsx_runtime382.jsx)("div", { className: "block-editor-link-control__tools", children: !currentInputIsEmpty && /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- settings_drawer_default,
- {
- settingsOpen: isSettingsOpen,
- setSettingsOpen: setSettingsOpenWithPreference,
- children: /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- settings_default2,
- {
- value: internalControlValue,
- settings: settings2,
- onChange: createSetInternalSettingValueHandler(
- settingsKeys
- )
- }
- )
+ });
+ }, stopTypingOnEscapeKey2 = function(event) {
+ const { keyCode } = event;
+ if (keyCode === import_keycodes13.ESCAPE || keyCode === import_keycodes13.TAB) {
+ stopTyping2();
}
- ) }),
- showActions && /* @__PURE__ */ (0, import_jsx_runtime382.jsxs)(
- import_components168.__experimentalHStack,
- {
- justify: "right",
- className: "block-editor-link-control__search-actions",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- import_components168.Button,
- {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: handleCancel,
- children: (0, import_i18n159.__)("Cancel")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- import_components168.Button,
- {
- __next40pxDefaultSize: true,
- variant: "primary",
- onClick: isDisabled ? noop18 : handleSubmit,
- className: "block-editor-link-control__search-submit",
- "aria-disabled": isDisabled,
- children: (0, import_i18n159.__)("Apply")
- }
- )
- ]
+ }, stopTypingOnSelectionUncollapse2 = function() {
+ const selection2 = defaultView.getSelection();
+ if (!selection2.isCollapsed) {
+ stopTyping2();
}
- ),
- !isCreatingPage && renderControlBottom && renderControlBottom()
- ]
- }
+ };
+ var stopTypingOnNonTextField = stopTypingOnNonTextField2, stopTypingOnEscapeKey = stopTypingOnEscapeKey2, stopTypingOnSelectionUncollapse = stopTypingOnSelectionUncollapse2;
+ let timerId;
+ const { defaultView } = node.ownerDocument;
+ node.addEventListener("focus", stopTypingOnNonTextField2);
+ node.addEventListener("keydown", stopTypingOnEscapeKey2);
+ node.ownerDocument.addEventListener(
+ "selectionchange",
+ stopTypingOnSelectionUncollapse2
+ );
+ return () => {
+ defaultView.clearTimeout(timerId);
+ node.removeEventListener(
+ "focus",
+ stopTypingOnNonTextField2
+ );
+ node.removeEventListener(
+ "keydown",
+ stopTypingOnEscapeKey2
+ );
+ node.ownerDocument.removeEventListener(
+ "selectionchange",
+ stopTypingOnSelectionUncollapse2
+ );
+ };
+ }
+ function startTypingInTextField(event) {
+ const { type, target } = event;
+ if (!(0, import_dom62.isTextField)(target) || !node.contains(target)) {
+ return;
+ }
+ if (type === "keydown" && !isKeyDownEligibleForStartTyping(event)) {
+ return;
+ }
+ startTyping2();
+ }
+ node.addEventListener("keypress", startTypingInTextField);
+ node.addEventListener("keydown", startTypingInTextField);
+ return () => {
+ node.removeEventListener("keypress", startTypingInTextField);
+ node.removeEventListener("keydown", startTypingInTextField);
+ };
+ },
+ [isTyping3, startTyping2, stopTyping2]
);
+ return (0, import_compose71.useMergeRefs)([ref1, ref2]);
}
- function SearchSuffixControl({
- isEntity,
- showActions,
- isDisabled,
- onUnlink,
- onSubmit,
- helpTextId
- }) {
- if (isEntity) {
- return /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- import_components168.Button,
- {
- icon: link_off_default,
- onClick: onUnlink,
- "aria-describedby": helpTextId,
- showTooltip: true,
- label: (0, import_i18n159.__)("Unsync and edit"),
- __next40pxDefaultSize: true
- }
- );
- }
- if (showActions) {
- return void 0;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(import_components168.__experimentalInputControlSuffixWrapper, { variant: "control", children: /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
- import_components168.Button,
- {
- onClick: isDisabled ? noop18 : onSubmit,
- label: (0, import_i18n159.__)("Submit"),
- icon: keyboard_return_default,
- className: "block-editor-link-control__search-submit",
- "aria-disabled": isDisabled,
- size: "small"
- }
- ) });
+ function ObserveTyping({ children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)("div", { ref: useTypingObserver(), children });
}
- LinkControl.ViewerFill = ViewerFill;
- LinkControl.DEFAULT_LINK_SETTINGS = DEFAULT_LINK_SETTINGS;
- var DeprecatedExperimentalLinkControl = (props) => {
- (0, import_deprecated21.default)("wp.blockEditor.__experimentalLinkControl", {
- since: "6.8",
- alternative: "wp.blockEditor.LinkControl"
- });
- return /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(LinkControl, { ...props });
- };
- DeprecatedExperimentalLinkControl.ViewerFill = LinkControl.ViewerFill;
- DeprecatedExperimentalLinkControl.DEFAULT_LINK_SETTINGS = LinkControl.DEFAULT_LINK_SETTINGS;
- var link_control_default = LinkControl;
-
- // packages/block-editor/build-module/components/line-height-control/index.mjs
- var import_i18n160 = __toESM(require_i18n(), 1);
- var import_components169 = __toESM(require_components(), 1);
+ var observe_typing_default = ObserveTyping;
- // packages/block-editor/build-module/components/line-height-control/utils.mjs
- var BASE_DEFAULT_VALUE = 1.5;
- var STEP = 0.01;
- var SPIN_FACTOR = 10;
- var RESET_VALUE = "";
- function isLineHeightDefined(lineHeight) {
- return lineHeight !== void 0 && lineHeight !== RESET_VALUE;
- }
-
- // packages/block-editor/build-module/components/line-height-control/index.mjs
- var import_jsx_runtime383 = __toESM(require_jsx_runtime(), 1);
- var LineHeightControl = ({
- /**
- * Start opting into the larger default height that will become the default size in a future version.
- *
- * @deprecated Default behavior since WordPress 7.1. Prop can be safely removed.
- */
- __next40pxDefaultSize: _next40pxDefaultSize,
- value: lineHeight,
- onChange,
- __unstableInputWidth = "60px",
- ...otherProps
- }) => {
- const isDefined = isLineHeightDefined(lineHeight);
- const adjustNextValue = (nextValue, wasTypedOrPasted) => {
- if (isDefined) {
- return nextValue;
+ // packages/block-editor/build-module/components/use-block-commands/index.mjs
+ var import_i18n107 = __toESM(require_i18n(), 1);
+ var import_blocks79 = __toESM(require_blocks(), 1);
+ var import_data126 = __toESM(require_data(), 1);
+ var import_commands = __toESM(require_commands(), 1);
+ var getTransformCommands = () => function useTransformCommands() {
+ const { replaceBlocks: replaceBlocks2, multiSelect: multiSelect2 } = (0, import_data126.useDispatch)(store);
+ const {
+ blocks: blocks2,
+ clientIds,
+ canRemove,
+ possibleBlockTransformations,
+ invalidSelection
+ } = (0, import_data126.useSelect)((select3) => {
+ const {
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockTransformItems: getBlockTransformItems2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ getBlocksByClientId: getBlocksByClientId2,
+ canRemoveBlocks: canRemoveBlocks2
+ } = select3(store);
+ const selectedBlockClientIds = getSelectedBlockClientIds2();
+ const selectedBlocks = getBlocksByClientId2(
+ selectedBlockClientIds
+ );
+ if (selectedBlocks.filter((block) => !block).length > 0) {
+ return {
+ invalidSelection: true
+ };
}
- const spin = STEP * SPIN_FACTOR;
- switch (`${nextValue}`) {
- case `${spin}`:
- return BASE_DEFAULT_VALUE + spin;
- case "0": {
- if (wasTypedOrPasted) {
- return nextValue;
+ const rootClientId = getBlockRootClientId2(
+ selectedBlockClientIds[0]
+ );
+ return {
+ blocks: selectedBlocks,
+ clientIds: selectedBlockClientIds,
+ possibleBlockTransformations: getBlockTransformItems2(
+ selectedBlocks,
+ rootClientId
+ ),
+ canRemove: canRemoveBlocks2(selectedBlockClientIds),
+ invalidSelection: false
+ };
+ }, []);
+ if (invalidSelection) {
+ return {
+ isLoading: false,
+ commands: []
+ };
+ }
+ const isTemplate = blocks2.length === 1 && (0, import_blocks79.isTemplatePart)(blocks2[0]);
+ function selectForMultipleBlocks(insertedBlocks) {
+ if (insertedBlocks.length > 1) {
+ multiSelect2(
+ insertedBlocks[0].clientId,
+ insertedBlocks[insertedBlocks.length - 1].clientId
+ );
+ }
+ }
+ function onBlockTransform(name, variationName) {
+ const newBlocks = (0, import_blocks79.switchToBlockType)(blocks2, name, variationName);
+ replaceBlocks2(clientIds, newBlocks);
+ selectForMultipleBlocks(newBlocks);
+ }
+ const hasPossibleBlockTransformations = !!possibleBlockTransformations.length && canRemove && !isTemplate;
+ if (!clientIds || clientIds.length < 1 || !hasPossibleBlockTransformations) {
+ return { isLoading: false, commands: [] };
+ }
+ const commands = possibleBlockTransformations.map(
+ (transformation) => {
+ const { id, name, title, icon, variationName } = transformation;
+ const blockIcon = !icon?.src || icon?.src === "block-default" ? {
+ src: block_default_default
+ } : icon;
+ return {
+ name: "core/block-editor/transform-to-" + (id || name).replace(/\//g, "-"),
+ /* translators: %s: Block or block variation name. */
+ label: (0, import_i18n107.sprintf)((0, import_i18n107.__)("Transform to %s"), title),
+ icon: blockIcon?.src,
+ category: "command",
+ callback: ({ close }) => {
+ onBlockTransform(name, variationName);
+ close();
}
- return BASE_DEFAULT_VALUE - spin;
- }
- case "":
- return BASE_DEFAULT_VALUE;
- default:
- return nextValue;
+ };
}
- };
- const stateReducer = (state, action) => {
- const wasTypedOrPasted = ["insertText", "insertFromPaste"].includes(
- action.payload.event.nativeEvent?.inputType
- );
- const value2 = adjustNextValue(state.value, wasTypedOrPasted);
- return { ...state, value: value2 };
- };
- const value = isDefined ? lineHeight : RESET_VALUE;
- const handleOnChange = (nextValue, { event }) => {
- if (nextValue === "") {
- onChange();
+ );
+ return { isLoading: false, commands };
+ };
+ var getQuickActionsCommands = () => function useQuickActionsCommands() {
+ const {
+ clientIds,
+ isUngroupable: isUngroupable2,
+ isGroupable: isGroupable2,
+ blockVisibilitySetting
+ } = (0, import_data126.useSelect)((select3) => {
+ const {
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ getSettings: getSettings8,
+ isUngroupable: _isUngroupable,
+ isGroupable: _isGroupable
+ } = select3(store);
+ const selectedBlockClientIds = getSelectedBlockClientIds2();
+ return {
+ clientIds: selectedBlockClientIds,
+ isUngroupable: _isUngroupable(),
+ isGroupable: _isGroupable(),
+ blockVisibilitySetting: getSettings8().__experimentalFeatures?.blockVisibility?.allowEditing
+ };
+ }, []);
+ const {
+ canInsertBlockType: canInsertBlockType2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlocksByClientId: getBlocksByClientId2,
+ canRemoveBlocks: canRemoveBlocks2,
+ isBlockHiddenAnywhere: isBlockHiddenAnywhere2
+ } = unlock((0, import_data126.useSelect)(store));
+ const { getBlockEditingMode: getBlockEditingMode2 } = (0, import_data126.useSelect)(store);
+ const { getDefaultBlockName: getDefaultBlockName8, getGroupingBlockName } = (0, import_data126.useSelect)(import_blocks79.store);
+ const blocks2 = getBlocksByClientId2(clientIds);
+ const blockEditorDispatch = (0, import_data126.useDispatch)(store);
+ const {
+ removeBlocks: removeBlocks2,
+ replaceBlocks: replaceBlocks2,
+ duplicateBlocks: duplicateBlocks2,
+ insertAfterBlock: insertAfterBlock2,
+ insertBeforeBlock: insertBeforeBlock2
+ } = blockEditorDispatch;
+ const onGroup = () => {
+ if (!blocks2.length) {
return;
}
- if (event.type === "click") {
- onChange(adjustNextValue(`${nextValue}`, false));
+ const groupingBlockName = getGroupingBlockName();
+ const newBlocks = groupBlocks(blocks2, groupingBlockName);
+ if (!newBlocks) {
return;
}
- onChange(`${nextValue}`);
+ replaceBlocks2(clientIds, newBlocks);
};
- return /* @__PURE__ */ (0, import_jsx_runtime383.jsx)("div", { className: "block-editor-line-height-control", children: /* @__PURE__ */ (0, import_jsx_runtime383.jsx)(
- import_components169.__experimentalNumberControl,
- {
- placeholder: BASE_DEFAULT_VALUE,
- ...otherProps,
- __unstableInputWidth,
- __unstableStateReducer: stateReducer,
- onChange: handleOnChange,
- label: (0, import_i18n160.__)("Line height"),
- step: STEP,
- spinFactor: SPIN_FACTOR,
- value,
- min: 0,
- spinControls: "custom"
+ const onUngroup = () => {
+ if (!blocks2.length) {
+ return;
}
- ) });
- };
- var line_height_control_default = LineHeightControl;
-
- // packages/block-editor/build-module/components/media-replace-flow/index.mjs
- var import_i18n161 = __toESM(require_i18n(), 1);
- var import_a11y18 = __toESM(require_a11y(), 1);
- var import_components170 = __toESM(require_components(), 1);
- var import_data149 = __toESM(require_data(), 1);
- var import_keycodes20 = __toESM(require_keycodes(), 1);
- var import_compose89 = __toESM(require_compose(), 1);
- var import_dom69 = __toESM(require_dom(), 1);
- var import_notices11 = __toESM(require_notices(), 1);
- var import_element226 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/media-placeholder/utils.mjs
- function getComputedAcceptAttribute(allowedTypes, allowedMimeTypes, accept) {
- if (accept) {
- return accept;
- }
- if (!allowedMimeTypes || typeof allowedMimeTypes !== "object" || Object.keys(allowedMimeTypes).length === 0) {
- if (allowedTypes && allowedTypes.length > 0) {
- return allowedTypes.map((type) => `${type}/*`).join(",");
+ const innerBlocks = blocks2[0].innerBlocks;
+ if (!innerBlocks.length) {
+ return;
}
- return void 0;
+ replaceBlocks2(clientIds, innerBlocks);
+ };
+ if (!clientIds || clientIds.length < 1) {
+ return { isLoading: false, commands: [] };
}
- if (!allowedTypes || allowedTypes.length === 0) {
- return void 0;
+ const { showViewportModal: showViewportModal2 } = unlock(blockEditorDispatch);
+ const rootClientId = getBlockRootClientId2(clientIds[0]);
+ const canInsertDefaultBlock = canInsertBlockType2(
+ getDefaultBlockName8(),
+ rootClientId
+ );
+ const canDuplicate = blocks2.every((block) => {
+ return !!block && (0, import_blocks79.hasBlockSupport)(block.name, "multiple", true) && canInsertBlockType2(block.name, rootClientId);
+ });
+ const canRemove = canRemoveBlocks2(clientIds);
+ const commands = [];
+ if (canDuplicate) {
+ commands.push({
+ name: "duplicate",
+ label: (0, import_i18n107.__)("Duplicate"),
+ callback: () => duplicateBlocks2(clientIds, true),
+ icon: copy_default
+ });
}
- const acceptedMimeTypes = [];
- for (const [, mimeType] of Object.entries(allowedMimeTypes)) {
- const isAllowed = allowedTypes.some((allowedType) => {
- if (allowedType.includes("/")) {
- return mimeType === allowedType;
+ if (canInsertDefaultBlock) {
+ commands.push(
+ {
+ name: "add-before",
+ label: (0, import_i18n107.__)("Add before"),
+ callback: () => {
+ const clientId = Array.isArray(clientIds) ? clientIds[0] : clientId;
+ insertBeforeBlock2(clientId);
+ },
+ icon: plus_default
+ },
+ {
+ name: "add-after",
+ label: (0, import_i18n107.__)("Add after"),
+ callback: () => {
+ const clientId = Array.isArray(clientIds) ? clientIds[clientIds.length - 1] : clientId;
+ insertAfterBlock2(clientId);
+ },
+ icon: plus_default
}
- return mimeType.startsWith(`${allowedType}/`);
+ );
+ }
+ if (isGroupable2) {
+ commands.push({
+ name: "Group",
+ label: (0, import_i18n107.__)("Group"),
+ callback: onGroup,
+ icon: group_default
});
- if (isAllowed) {
- acceptedMimeTypes.push(mimeType);
- }
}
- if (acceptedMimeTypes.length > 0) {
- return acceptedMimeTypes.join(",");
+ if (isUngroupable2) {
+ commands.push({
+ name: "ungroup",
+ label: (0, import_i18n107.__)("Ungroup"),
+ callback: onUngroup,
+ icon: ungroup_default
+ });
}
- return allowedTypes.map((type) => `${type}/*`).join(",");
- }
+ if (canRemove) {
+ commands.push({
+ name: "remove",
+ label: (0, import_i18n107.__)("Delete"),
+ callback: () => removeBlocks2(clientIds, true),
+ icon: trash_default
+ });
+ }
+ const supportsVisibility = blocks2.every(
+ (block) => !!block && (0, import_blocks79.hasBlockSupport)(block.name, "visibility", true)
+ );
+ const allBlocksDefaultMode = clientIds.every(
+ (id) => getBlockEditingMode2(id) === "default"
+ );
+ if (supportsVisibility && allBlocksDefaultMode && blockVisibilitySetting !== false) {
+ const hasHiddenBlock = clientIds.some(
+ (id) => isBlockHiddenAnywhere2(id)
+ );
+ commands.push({
+ name: "toggle-visibility",
+ label: hasHiddenBlock ? (0, import_i18n107.__)("Show") : (0, import_i18n107.__)("Hide"),
+ callback: () => showViewportModal2(clientIds),
+ icon: hasHiddenBlock ? seen_default : unseen_default
+ });
+ }
+ return {
+ isLoading: false,
+ commands: commands.map((command) => ({
+ ...command,
+ name: "core/block-editor/action-" + command.name,
+ category: "command",
+ callback: ({ close }) => {
+ command.callback();
+ close();
+ }
+ }))
+ };
+ };
+ var useBlockCommands = () => {
+ (0, import_commands.useCommandLoader)({
+ name: "core/block-editor/blockTransforms",
+ hook: getTransformCommands()
+ });
+ (0, import_commands.useCommandLoader)({
+ name: "core/block-editor/blockQuickActions",
+ hook: getQuickActionsCommands(),
+ context: "block-selection-edit"
+ });
+ };
- // packages/block-editor/build-module/components/media-replace-flow/index.mjs
- var import_jsx_runtime384 = __toESM(require_jsx_runtime(), 1);
- var noop19 = () => {
+ // packages/block-editor/build-module/components/block-canvas/index.mjs
+ var import_jsx_runtime329 = __toESM(require_jsx_runtime(), 1);
+ var BlockCanvasCover = (0, import_components114.createSlotFill)(/* @__PURE__ */ Symbol("BlockCanvasCover"));
+ function BlockCanvasCoverWrapper({ children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
+ "div",
+ {
+ className: "block-canvas-cover",
+ style: {
+ position: "absolute",
+ top: 0,
+ left: 0,
+ width: "100%",
+ height: "100%",
+ pointerEvents: "none"
+ },
+ children
+ }
+ );
+ }
+ var EDITOR_STYLE_TRANSFORM_OPTIONS = {
+ // Don't transform selectors that already specify `.editor-styles-wrapper`.
+ ignoredSelectors: [/\.editor-styles-wrapper/gi]
};
- var uniqueId = 0;
- var MediaReplaceFlow = ({
- mediaURL,
- mediaId,
- mediaIds,
- allowedTypes,
- accept,
- onError,
- onSelect,
- onSelectURL,
- onReset,
- onToggleFeaturedImage,
- useFeaturedImage,
- onFilesUpload = noop19,
- name = (0, import_i18n161.__)("Replace"),
- createNotice,
- removeNotice,
- children,
- multiple = false,
- addToGallery,
- handleUpload = true,
- variant,
- popoverProps: popoverProps3,
- renderToggle: renderToggle3,
- className
- }) => {
- const { mediaUpload: mediaUpload2, allowedMimeTypes } = (0, import_data149.useSelect)((select3) => {
- const { getSettings: getSettings7 } = select3(store);
- const settings2 = getSettings7();
- return {
- mediaUpload: settings2.mediaUpload,
- allowedMimeTypes: settings2.allowedMimeTypes
- };
- }, []);
- const errorNoticeID = `block-editor/media-replace-flow/error-notice/${++uniqueId}`;
- const computedAccept = (0, import_element226.useMemo)(
- () => getComputedAcceptAttribute(
- allowedTypes,
- allowedMimeTypes,
- accept
- ),
- [allowedTypes, allowedMimeTypes, accept]
+ function ExperimentalBlockCanvas({
+ shouldIframe = true,
+ height = "300px",
+ children = /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(BlockList, {}),
+ styles,
+ contentRef: contentRefProp,
+ iframeProps
+ }) {
+ useBlockCommands();
+ const isTabletViewport = (0, import_compose72.useViewportMatch)("medium", "<");
+ const resetTypingRef = useMouseMoveTypingReset();
+ const clearerRef = useBlockSelectionClearer();
+ const localRef = (0, import_element189.useRef)();
+ const contentRef = (0, import_compose72.useMergeRefs)([
+ contentRefProp,
+ clearerRef,
+ localRef,
+ useTypingObserver()
+ ]);
+ const zoomLevel2 = (0, import_data127.useSelect)(
+ (select3) => unlock(select3(store)).getZoomLevel(),
+ []
);
- const onUploadError = (message2) => {
- const safeMessage = (0, import_dom69.__unstableStripHTML)(message2);
- if (onError) {
- onError(safeMessage);
- return;
- }
- setTimeout(() => {
- createNotice("error", safeMessage, {
- speak: true,
- id: errorNoticeID,
- isDismissible: true
- });
- }, 1e3);
- };
- const selectMedia = (media, closeMenu) => {
- if (useFeaturedImage && onToggleFeaturedImage) {
- onToggleFeaturedImage();
+ const zoomOutIframeProps = zoomLevel2 !== 100 && !isTabletViewport ? {
+ scale: zoomLevel2,
+ frameSize: "40px"
+ } : {};
+ if (!shouldIframe) {
+ return /* @__PURE__ */ (0, import_jsx_runtime329.jsxs)(
+ BlockTools,
+ {
+ __unstableContentRef: localRef,
+ style: { height, display: "flex" },
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(BlockCanvasCover.Slot, { fillProps: { containerRef: localRef }, children: (covers) => covers.map((cover, index2) => /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(BlockCanvasCoverWrapper, { children: cover }, index2)) }),
+ /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
+ editor_styles_default,
+ {
+ styles,
+ scope: ":where(.editor-styles-wrapper)",
+ transformOptions: EDITOR_STYLE_TRANSFORM_OPTIONS
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
+ writing_flow_default,
+ {
+ ref: contentRef,
+ className: "editor-styles-wrapper",
+ tabIndex: -1,
+ style: {
+ height: "100%",
+ width: "100%",
+ overflow: "auto"
+ },
+ children
+ }
+ )
+ ]
+ }
+ );
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
+ BlockTools,
+ {
+ __unstableContentRef: localRef,
+ style: { height, display: "flex" },
+ children: /* @__PURE__ */ (0, import_jsx_runtime329.jsxs)(
+ iframe_default,
+ {
+ ...iframeProps,
+ ...zoomOutIframeProps,
+ ref: resetTypingRef,
+ contentRef,
+ style: {
+ ...iframeProps?.style
+ },
+ name: "editor-canvas",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(BlockCanvasCover.Slot, { fillProps: { containerRef: localRef }, children: (covers) => covers.map((cover, index2) => /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(BlockCanvasCoverWrapper, { children: cover }, index2)) }),
+ /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(editor_styles_default, { styles }),
+ children
+ ]
+ }
+ )
}
- closeMenu();
- onSelect(media);
- (0, import_a11y18.speak)((0, import_i18n161.__)("The media file has been replaced"));
- removeNotice(errorNoticeID);
- };
- const uploadFiles = (event, closeMenu) => {
- const files = event.target.files;
- if (!handleUpload) {
- closeMenu();
- return onSelect(files);
+ );
+ }
+ function BlockCanvas({ children, height, styles }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(ExperimentalBlockCanvas, { height, styles, children });
+ }
+ var block_canvas_default = BlockCanvas;
+
+ // packages/block-editor/build-module/components/color-style-selector/index.mjs
+ var import_components115 = __toESM(require_components(), 1);
+ var import_i18n108 = __toESM(require_i18n(), 1);
+ var import_keycodes14 = __toESM(require_keycodes(), 1);
+ var import_deprecated14 = __toESM(require_deprecated(), 1);
+ var import_jsx_runtime330 = __toESM(require_jsx_runtime(), 1);
+ var ColorSelectorSVGIcon = () => /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(import_components115.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(import_components115.Path, { d: "M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z" }) });
+ var ColorSelectorIcon = ({ style, className: className2 }) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime330.jsx)("div", { className: "block-library-colors-selector__icon-container", children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
+ "div",
+ {
+ className: `${className2} block-library-colors-selector__state-selection`,
+ style,
+ children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(ColorSelectorSVGIcon, {})
}
- onFilesUpload(files);
- mediaUpload2({
- allowedTypes,
- filesList: files,
- onFileChange: ([media]) => {
- selectMedia(media, closeMenu);
- },
- onError: onUploadError
- });
- };
+ ) });
+ };
+ var renderToggleComponent = ({ TextColor, BackgroundColor }) => function ToggleComponent({ onToggle, isOpen }) {
const openOnArrowDown = (event) => {
- if (event.keyCode === import_keycodes20.DOWN) {
+ if (!isOpen && event.keyCode === import_keycodes14.DOWN) {
event.preventDefault();
- event.target.click();
+ onToggle();
}
};
- const onlyAllowsImages = () => {
- if (!allowedTypes || allowedTypes.length === 0) {
- return false;
+ return /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(import_components115.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
+ import_components115.ToolbarButton,
+ {
+ className: "components-toolbar__control block-library-colors-selector__toggle",
+ label: (0, import_i18n108.__)("Open Colors Selector"),
+ onClick: onToggle,
+ onKeyDown: openOnArrowDown,
+ icon: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(BackgroundColor, { children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(TextColor, { children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(ColorSelectorIcon, {}) }) })
}
- return allowedTypes.every(
- (allowedType) => allowedType === "image" || allowedType.startsWith("image/")
- );
- };
- const gallery = multiple && onlyAllowsImages();
- const mergedPopoverProps = {
- ...popoverProps3,
- variant
- };
- return /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
- import_components170.Dropdown,
+ ) });
+ };
+ var BlockColorsStyleSelector = ({ children, ...other }) => {
+ (0, import_deprecated14.default)(`wp.blockEditor.BlockColorsStyleSelector`, {
+ alternative: "block supports API",
+ since: "6.1",
+ version: "6.3"
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
+ import_components115.Dropdown,
{
- popoverProps: mergedPopoverProps,
- className,
- contentClassName: clsx_default(
- "block-editor-media-replace-flow__options",
- variant && `is-variant-${variant}`
- ),
- renderToggle: ({ isOpen, onToggle }) => {
- if (renderToggle3) {
- return renderToggle3({
- "aria-expanded": isOpen,
- "aria-haspopup": "true",
- onClick: onToggle,
- onKeyDown: openOnArrowDown,
- children: name
- });
- }
- return /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
- import_components170.ToolbarButton,
- {
- "aria-expanded": isOpen,
- "aria-haspopup": "true",
- onClick: onToggle,
- onKeyDown: openOnArrowDown,
- children: name
- }
- );
- },
- renderContent: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime384.jsxs)(import_jsx_runtime384.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime384.jsxs)(import_components170.NavigableMenu, { className: "block-editor-media-replace-flow__media-upload-menu", children: [
- /* @__PURE__ */ (0, import_jsx_runtime384.jsxs)(check_default2, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
- media_upload_default,
- {
- gallery,
- addToGallery,
- multiple,
- value: multiple ? mediaIds : mediaId,
- onSelect: (media) => selectMedia(media, onClose),
- allowedTypes,
- render: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
- import_components170.MenuItem,
- {
- icon: media_default,
- onClick: open,
- children: (0, import_i18n161.__)("Open Media Library")
- }
- )
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
- import_components170.FormFileUpload,
- {
- onChange: (event) => {
- uploadFiles(event, onClose);
- },
- accept: computedAccept,
- multiple: !!multiple,
- render: ({ openFileDialog }) => {
- return /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
- import_components170.MenuItem,
- {
- icon: upload_default,
- onClick: () => {
- openFileDialog();
- },
- children: (0, import_i18n161._x)("Upload", "verb")
- }
- );
- }
- }
- )
- ] }),
- onToggleFeaturedImage && /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
- import_components170.MenuItem,
- {
- icon: post_featured_image_default,
- onClick: onToggleFeaturedImage,
- isPressed: useFeaturedImage,
- children: (0, import_i18n161.__)("Use featured image")
- }
- ),
- typeof children === "function" ? children({ onClose }) : children,
- mediaURL && onReset && /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
- import_components170.MenuItem,
- {
- onClick: () => {
- onReset();
- onClose();
- },
- children: (0, import_i18n161.__)("Reset")
- }
- )
- ] }),
- onSelectURL && /* @__PURE__ */ (0, import_jsx_runtime384.jsxs)("form", { className: "block-editor-media-flow__url-input", children: [
- /* @__PURE__ */ (0, import_jsx_runtime384.jsx)("span", { className: "block-editor-media-replace-flow__image-url-label", children: (0, import_i18n161.__)("Current media URL:") }),
- /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
- link_control_default,
- {
- value: { url: mediaURL },
- settings: [],
- showSuggestions: false,
- onChange: ({ url }) => {
- onSelectURL(url);
- },
- searchInputPlaceholder: (0, import_i18n161.__)(
- "Paste or type URL"
- )
- }
- )
- ] })
- ] })
+ popoverProps: { placement: "bottom-start" },
+ className: "block-library-colors-selector",
+ contentClassName: "block-library-colors-selector__popover",
+ renderToggle: renderToggleComponent(other),
+ renderContent: () => children
}
);
};
- var media_replace_flow_default = (0, import_compose89.compose)([
- (0, import_data149.withDispatch)((dispatch) => {
- const { createNotice, removeNotice } = dispatch(import_notices11.store);
- return {
- createNotice,
- removeNotice
- };
- }),
- (0, import_components170.withFilters)("editor.MediaReplaceFlow")
- ])(MediaReplaceFlow);
+ var color_style_selector_default = BlockColorsStyleSelector;
- // packages/block-editor/build-module/components/media-placeholder/index.mjs
- var import_components176 = __toESM(require_components(), 1);
- var import_i18n166 = __toESM(require_i18n(), 1);
- var import_element229 = __toESM(require_element(), 1);
- var import_data151 = __toESM(require_data(), 1);
- var import_deprecated23 = __toESM(require_deprecated(), 1);
+ // packages/block-editor/build-module/components/block-navigation/dropdown.mjs
+ var import_deprecated16 = __toESM(require_deprecated(), 1);
+ var import_components122 = __toESM(require_components(), 1);
+ var import_i18n117 = __toESM(require_i18n(), 1);
+ var import_data140 = __toESM(require_data(), 1);
+ var import_element206 = __toESM(require_element(), 1);
- // packages/block-editor/build-module/components/url-popover/index.mjs
- var import_i18n165 = __toESM(require_i18n(), 1);
- var import_element228 = __toESM(require_element(), 1);
- var import_components175 = __toESM(require_components(), 1);
- var import_deprecated22 = __toESM(require_deprecated(), 1);
+ // packages/block-editor/build-module/components/list-view/index.mjs
+ var import_compose78 = __toESM(require_compose(), 1);
+ var import_is_shallow_equal3 = __toESM(require_is_shallow_equal(), 1);
+ var import_components121 = __toESM(require_components(), 1);
+ var import_data139 = __toESM(require_data(), 1);
+ var import_deprecated15 = __toESM(require_deprecated(), 1);
+ var import_element205 = __toESM(require_element(), 1);
+ var import_i18n116 = __toESM(require_i18n(), 1);
- // packages/block-editor/build-module/components/url-popover/link-viewer.mjs
- var import_i18n162 = __toESM(require_i18n(), 1);
- var import_components172 = __toESM(require_components(), 1);
+ // packages/block-editor/build-module/components/list-view/branch.mjs
+ var import_components119 = __toESM(require_components(), 1);
+ var import_element198 = __toESM(require_element(), 1);
+ var import_data132 = __toESM(require_data(), 1);
- // packages/block-editor/build-module/components/url-popover/link-viewer-url.mjs
- var import_components171 = __toESM(require_components(), 1);
- var import_url7 = __toESM(require_url(), 1);
- var import_jsx_runtime385 = __toESM(require_jsx_runtime(), 1);
- function LinkViewerURL({ url, urlLabel, className }) {
- const linkClassName = clsx_default(
- className,
- "block-editor-url-popover__link-viewer-url"
- );
- if (!url) {
- return /* @__PURE__ */ (0, import_jsx_runtime385.jsx)("span", { className: linkClassName });
- }
- return /* @__PURE__ */ (0, import_jsx_runtime385.jsx)(import_components171.ExternalLink, { className: linkClassName, href: url, children: urlLabel || (0, import_url7.filterURLForDisplay)((0, import_url7.safeDecodeURI)(url)) });
+ // packages/block-editor/build-module/components/list-view/appender.mjs
+ var import_compose73 = __toESM(require_compose(), 1);
+ var import_a11y14 = __toESM(require_a11y(), 1);
+ var import_data128 = __toESM(require_data(), 1);
+ var import_element191 = __toESM(require_element(), 1);
+ var import_i18n109 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/list-view/context.mjs
+ var import_element190 = __toESM(require_element(), 1);
+ var ListViewContext = (0, import_element190.createContext)({});
+ ListViewContext.displayName = "ListViewContext";
+ var useListViewContext = () => (0, import_element190.useContext)(ListViewContext);
+ var ListViewTreeStateContext = (0, import_element190.createContext)({});
+ ListViewTreeStateContext.displayName = "ListViewTreeStateContext";
+ var useListViewTreeState = () => (0, import_element190.useContext)(ListViewTreeStateContext);
+ var ListViewInsertedBlockContext = (0, import_element190.createContext)(null);
+ ListViewInsertedBlockContext.displayName = "ListViewInsertedBlockContext";
+ var useInsertedBlockClientId = () => (0, import_element190.useContext)(ListViewInsertedBlockContext);
+
+ // packages/block-editor/build-module/components/list-view/aria-referenced-text.mjs
+ var import_react49 = __toESM(require_react(), 1);
+ function AriaReferencedText({ children, ...props }) {
+ return /* @__PURE__ */ (0, import_react49.createElement)("div", { hidden: true, ...props, key: children }, children);
}
- // packages/block-editor/build-module/components/url-popover/link-viewer.mjs
- var import_jsx_runtime386 = __toESM(require_jsx_runtime(), 1);
- function LinkViewer({
- className,
- linkClassName,
- onEditLinkClick,
- url,
- urlLabel,
- ...props
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime386.jsxs)(
- "div",
- {
- className: clsx_default(
- "block-editor-url-popover__link-viewer",
- className
- ),
- ...props,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime386.jsx)(
- LinkViewerURL,
- {
- url,
- urlLabel,
- className: linkClassName
- }
+ // packages/block-editor/build-module/components/list-view/appender.mjs
+ var import_jsx_runtime331 = __toESM(require_jsx_runtime(), 1);
+ var Appender = (0, import_element191.forwardRef)(
+ ({ nestingLevel, blockCount, clientId, ...props }, ref) => {
+ const { setInsertedBlockClientId } = useListViewContext();
+ const insertedBlockClientId = useInsertedBlockClientId();
+ const instanceId = (0, import_compose73.useInstanceId)(Appender);
+ const { directInsert, hideInserter } = (0, import_data128.useSelect)(
+ (select3) => {
+ const { getBlockListSettings: getBlockListSettings2, getTemplateLock: getTemplateLock2, isZoomOut: isZoomOut2 } = unlock(select3(store));
+ const settings2 = getBlockListSettings2(clientId);
+ const directInsertValue = settings2?.directInsert || false;
+ const hideInserterValue = !!getTemplateLock2(clientId) || isZoomOut2();
+ return {
+ directInsert: directInsertValue,
+ hideInserter: hideInserterValue
+ };
+ },
+ [clientId]
+ );
+ const blockTitle = useBlockDisplayTitle({
+ clientId,
+ context: "list-view"
+ });
+ const insertedBlockTitle = useBlockDisplayTitle({
+ clientId: insertedBlockClientId,
+ context: "list-view"
+ });
+ (0, import_element191.useEffect)(() => {
+ if (!insertedBlockTitle?.length) {
+ return;
+ }
+ (0, import_a11y14.speak)(
+ (0, import_i18n109.sprintf)(
+ // translators: %s: name of block being inserted (i.e. Paragraph, Image, Group etc)
+ (0, import_i18n109.__)("%s block inserted"),
+ insertedBlockTitle
),
- onEditLinkClick && /* @__PURE__ */ (0, import_jsx_runtime386.jsx)(
- import_components172.Button,
- {
- icon: pencil_default,
- label: (0, import_i18n162.__)("Edit"),
- onClick: onEditLinkClick,
- size: "compact"
- }
- )
- ]
+ "assertive"
+ );
+ }, [insertedBlockTitle]);
+ if (hideInserter) {
+ return null;
}
- );
- }
+ const descriptionId = `list-view-appender__${instanceId}`;
+ const description = (0, import_i18n109.sprintf)(
+ /* translators: 1: The name of the block. 2: The numerical position of the block. 3: The level of nesting for the block. */
+ (0, import_i18n109.__)("Append to %1$s block at position %2$d, Level %3$d"),
+ blockTitle,
+ blockCount + 1,
+ nestingLevel
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)("div", { className: "list-view-appender", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
+ inserter_default,
+ {
+ ref,
+ rootClientId: clientId,
+ position: "bottom right",
+ isAppender: true,
+ selectBlockOnInsert: false,
+ shouldDirectInsert: directInsert,
+ __experimentalIsQuick: true,
+ ...props,
+ toggleProps: { "aria-describedby": descriptionId },
+ onSelectOrClose: (maybeInsertedBlock) => {
+ if (maybeInsertedBlock?.clientId) {
+ setInsertedBlockClientId(
+ maybeInsertedBlock.clientId
+ );
+ }
+ }
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(AriaReferencedText, { id: descriptionId, children: description })
+ ] });
+ }
+ );
- // packages/block-editor/build-module/components/url-popover/link-editor.mjs
- var import_i18n164 = __toESM(require_i18n(), 1);
- var import_components174 = __toESM(require_components(), 1);
+ // packages/block-editor/build-module/components/list-view/block.mjs
+ var import_blocks81 = __toESM(require_blocks(), 1);
+ var import_components118 = __toESM(require_components(), 1);
+ var import_compose75 = __toESM(require_compose(), 1);
+ var import_element197 = __toESM(require_element(), 1);
+ var import_data131 = __toESM(require_data(), 1);
+ var import_i18n112 = __toESM(require_i18n(), 1);
+ var import_keycodes16 = __toESM(require_keycodes(), 1);
+ var import_is_shallow_equal2 = __toESM(require_is_shallow_equal(), 1);
+ var import_keyboard_shortcuts11 = __toESM(require_keyboard_shortcuts(), 1);
+ var import_a11y15 = __toESM(require_a11y(), 1);
- // packages/block-editor/build-module/components/url-input/index.mjs
- var import_a11y19 = __toESM(require_a11y(), 1);
- var import_i18n163 = __toESM(require_i18n(), 1);
- var import_element227 = __toESM(require_element(), 1);
- var import_keycodes21 = __toESM(require_keycodes(), 1);
- var import_components173 = __toESM(require_components(), 1);
- var import_compose90 = __toESM(require_compose(), 1);
- var import_data150 = __toESM(require_data(), 1);
- var import_url8 = __toESM(require_url(), 1);
- var import_jsx_runtime387 = __toESM(require_jsx_runtime(), 1);
- var import_react15 = __toESM(require_react(), 1);
- var { ValidatedInputControl } = unlock(import_components173.privateApis);
- var noop20 = () => {
- };
- function isFunction(maybeFunc) {
- return typeof maybeFunc === "function";
- }
- function URLInput(props) {
- const {
- __experimentalFetchLinkSuggestions: fetchLinkSuggestionsProp,
- __experimentalHandleURLSuggestions: handleURLSuggestions,
- __experimentalRenderControl: renderControl,
- __experimentalRenderSuggestions: renderSuggestions,
- __experimentalShowInitialSuggestions: showInitialSuggestions = false,
- autocompleteRef,
- className,
- customValidity,
- disableSuggestions,
- disabled: disabled2 = false,
- help = null,
- hideLabelFromVision = false,
- inputRef,
- isFullWidth,
- label = null,
- markWhenOptional,
- onChange,
- onKeyDown,
- onSubmit,
- placeholder = (0, import_i18n163.__)("Paste URL or type to search"),
- required = true,
- suffix,
- value = ""
- } = props;
- const instanceId = (0, import_compose90.useInstanceId)(URLInput);
- const { getSettings: getSettings7 } = (0, import_data150.useSelect)(store);
- const debouncedSpeak = (0, import_compose90.useDebounce)(import_a11y19.speak, 500);
- const [suggestions, setSuggestions] = (0, import_element227.useState)([]);
- const [suggestionsValue, setSuggestionsValue] = (0, import_element227.useState)(null);
- const [selectedSuggestion, setSelectedSuggestion] = (0, import_element227.useState)(null);
- const [isSuggestionsListOpen, setIsSuggestionsListOpen] = (0, import_element227.useState)(false);
- const [isLoading, setIsLoading] = (0, import_element227.useState)(false);
- const fallbackInputRef = (0, import_element227.useRef)();
- const suggestionNodesRef = (0, import_element227.useRef)([]);
- const suggestionsRequestRef = (0, import_element227.useRef)(null);
- const controlInputRef = inputRef ?? fallbackInputRef;
- const inputId = `url-input-control-${instanceId}`;
- const suggestionsListboxId = `block-editor-url-input-suggestions-${instanceId}`;
- const suggestionOptionIdPrefix = `block-editor-url-input-suggestion-${instanceId}`;
- const showSuggestions = isSuggestionsListOpen && disableSuggestions !== true && (showInitialSuggestions || !!value.length);
- const updateSuggestions = (0, import_compose90.useEvent)((searchValue = "") => {
- const fetchLinkSuggestions = isFunction(fetchLinkSuggestionsProp) ? fetchLinkSuggestionsProp : getSettings7().__experimentalFetchLinkSuggestions;
- if (!fetchLinkSuggestions) {
+ // packages/block-editor/build-module/components/list-view/leaf.mjs
+ var import_components116 = __toESM(require_components(), 1);
+ var import_compose74 = __toESM(require_compose(), 1);
+ var import_element192 = __toESM(require_element(), 1);
+ var import_jsx_runtime332 = __toESM(require_jsx_runtime(), 1);
+ var AnimatedTreeGridRow = animated(import_components116.__experimentalTreeGridRow);
+ var ListViewLeaf = (0, import_element192.forwardRef)(
+ ({
+ isDragged,
+ isSelected,
+ position,
+ level,
+ rowCount,
+ children,
+ className: className2,
+ path,
+ ...props
+ }, ref) => {
+ const animationRef = use_moving_animation_default({
+ clientId: props["data-block"],
+ enableAnimation: true,
+ triggerAnimationOnChange: path
+ });
+ const mergedRef = (0, import_compose74.useMergeRefs)([ref, animationRef]);
+ return /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(
+ AnimatedTreeGridRow,
+ {
+ ref: mergedRef,
+ className: clsx_default("block-editor-list-view-leaf", className2),
+ level,
+ positionInSet: position,
+ setSize: rowCount,
+ isExpanded: void 0,
+ ...props,
+ children
+ }
+ );
+ }
+ );
+ var leaf_default = ListViewLeaf;
+
+ // packages/block-editor/build-module/components/list-view/use-list-view-scroll-into-view.mjs
+ var import_dom63 = __toESM(require_dom(), 1);
+ var import_element193 = __toESM(require_element(), 1);
+ function useListViewScrollIntoView({
+ isSelected,
+ selectedClientIds,
+ rowItemRef
+ }) {
+ const isSingleSelection = selectedClientIds.length === 1;
+ (0, import_element193.useLayoutEffect)(() => {
+ if (!isSelected || !isSingleSelection || !rowItemRef.current) {
return;
}
- const isInitialSuggestions = !searchValue?.length;
- const search = searchValue.trim();
- if (!isInitialSuggestions && (search.length < 2 || !handleURLSuggestions && (0, import_url8.isURL)(search))) {
- suggestionsRequestRef.current?.cancel?.();
- suggestionsRequestRef.current = null;
- setSuggestions([]);
- setIsSuggestionsListOpen(false);
- setSuggestionsValue(search);
- setSelectedSuggestion(null);
- setIsLoading(false);
+ const scrollContainer = (0, import_dom63.getScrollContainer)(rowItemRef.current);
+ const { ownerDocument: ownerDocument2 } = rowItemRef.current;
+ const windowScroll = scrollContainer === ownerDocument2.body || scrollContainer === ownerDocument2.documentElement;
+ if (windowScroll || !scrollContainer) {
return;
}
- setSelectedSuggestion(null);
- setIsLoading(true);
- const request = fetchLinkSuggestions(search, {
- isInitialSuggestions
- });
- suggestionsRequestRef.current = request;
- request.then((nextSuggestions) => {
- if (suggestionsRequestRef.current !== request) {
- return;
- }
- setSuggestions(nextSuggestions);
- setSuggestionsValue(search);
- setIsLoading(false);
- setIsSuggestionsListOpen(!!nextSuggestions.length);
- if (nextSuggestions.length) {
- debouncedSpeak(
- (0, import_i18n163.sprintf)(
- /* translators: %d: number of results. */
- (0, import_i18n163._n)(
- "%d result found, use up and down arrow keys to navigate.",
- "%d results found, use up and down arrow keys to navigate.",
- nextSuggestions.length
- ),
- nextSuggestions.length
- ),
- "assertive"
- );
- } else {
- debouncedSpeak((0, import_i18n163.__)("No results."), "assertive");
- }
- }).catch(() => {
- if (suggestionsRequestRef.current !== request) {
- return;
- }
- setIsLoading(false);
- }).finally(() => {
- if (suggestionsRequestRef.current === request) {
- suggestionsRequestRef.current = null;
+ const rowRect = rowItemRef.current.getBoundingClientRect();
+ const scrollContainerRect = scrollContainer.getBoundingClientRect();
+ if (rowRect.top < scrollContainerRect.top || rowRect.bottom > scrollContainerRect.bottom) {
+ rowItemRef.current.scrollIntoView();
+ }
+ }, [isSelected, isSingleSelection, rowItemRef]);
+ }
+
+ // packages/block-editor/build-module/components/list-view/block-contents.mjs
+ var import_element196 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/list-view/block-select-button.mjs
+ var import_components117 = __toESM(require_components(), 1);
+ var import_element195 = __toESM(require_element(), 1);
+ var import_data130 = __toESM(require_data(), 1);
+ var import_blocks80 = __toESM(require_blocks(), 1);
+ var import_keycodes15 = __toESM(require_keycodes(), 1);
+
+ // packages/block-editor/build-module/components/list-view/expander.mjs
+ var import_i18n110 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime333 = __toESM(require_jsx_runtime(), 1);
+ function ListViewExpander({ onClick }) {
+ return (
+ // Keyboard events are handled by TreeGrid see: components/src/tree-grid/index.js
+ //
+ // The expander component is implemented as a pseudo element in the w3 example
+ // https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html
+ //
+ // We've mimicked this by adding an icon with aria-hidden set to true to hide this from the accessibility tree.
+ // For the current tree grid implementation, please do not try to make this a button.
+ /* @__PURE__ */ (0, import_jsx_runtime333.jsx)(
+ "span",
+ {
+ className: "block-editor-list-view__expander",
+ onClick: onClick ? (event) => onClick(event, { forceToggle: true }) : void 0,
+ "aria-hidden": "true",
+ "data-testid": "list-view-expander",
+ children: /* @__PURE__ */ (0, import_jsx_runtime333.jsx)(icon_default, { icon: (0, import_i18n110.isRTL)() ? chevron_left_small_default : chevron_right_small_default })
}
- });
- });
- const debouncedUpdateSuggestions = (0, import_compose90.useDebounce)(updateSuggestions, 200);
- (0, import_element227.useEffect)(() => {
- if (!disableSuggestions && (value.length || showInitialSuggestions)) {
- debouncedUpdateSuggestions(value);
+ )
+ );
+ }
+
+ // packages/block-editor/build-module/components/list-view/use-list-view-images.mjs
+ var import_element194 = __toESM(require_element(), 1);
+ var import_data129 = __toESM(require_data(), 1);
+ var MAX_IMAGES = 3;
+ var IMAGE_GETTERS = {
+ "core/image": ({ clientId, attributes }) => {
+ if (attributes.url) {
+ return {
+ url: attributes.url,
+ alt: attributes.alt || "",
+ clientId
+ };
}
- }, [
- value,
- disableSuggestions,
- showInitialSuggestions,
- debouncedUpdateSuggestions
- ]);
- (0, import_element227.useEffect)(() => {
- if (!showSuggestions) {
- setIsSuggestionsListOpen(false);
+ },
+ "core/cover": ({ clientId, attributes }) => {
+ if (attributes.backgroundType === "image" && attributes.url) {
+ return {
+ url: attributes.url,
+ alt: attributes.alt || "",
+ clientId
+ };
}
- }, [showSuggestions]);
- (0, import_element227.useEffect)(() => {
- if (showSuggestions && selectedSuggestion !== null) {
- suggestionNodesRef.current[selectedSuggestion]?.scrollIntoView({
- behavior: "instant",
- block: "nearest",
- inline: "nearest"
- });
+ },
+ "core/media-text": ({ clientId, attributes }) => {
+ if (attributes.mediaType === "image" && attributes.mediaUrl) {
+ return {
+ url: attributes.mediaUrl,
+ alt: attributes.mediaAlt || "",
+ clientId
+ };
}
- }, [showSuggestions, selectedSuggestion]);
- (0, import_element227.useEffect)(() => {
- return () => {
- suggestionsRequestRef.current?.cancel?.();
- suggestionsRequestRef.current = null;
- };
- }, []);
- function selectLink(suggestion) {
- onChange(suggestion.url, suggestion);
- setSelectedSuggestion(null);
- setIsSuggestionsListOpen(false);
- }
- function handleSuggestionClick(suggestion) {
- selectLink(suggestion);
- controlInputRef.current.focus();
- }
- function handleChange(newValue) {
- onChange(newValue);
- }
- function handleFocus() {
- if (value && !disableSuggestions && !suggestions.length && suggestionsRequestRef.current === null) {
- debouncedUpdateSuggestions(value);
- }
- }
- function handleKeyDown(event) {
- onKeyDown?.(event);
- if (!showSuggestions || !suggestions.length || isLoading) {
- switch (event.keyCode) {
- // When UP is pressed, if the caret is at the start of the text, move it to the 0
- // position.
- case import_keycodes21.UP: {
- if (0 !== event.target.selectionStart) {
- event.preventDefault();
- event.target.setSelectionRange(0, 0);
- }
- break;
- }
- // When DOWN is pressed, if the caret is not at the end of the text, move it to the
- // last position.
- case import_keycodes21.DOWN: {
- if (value.length !== event.target.selectionStart) {
- event.preventDefault();
- event.target.setSelectionRange(
- value.length,
- value.length
- );
- }
- break;
- }
- // Submitting while loading should trigger onSubmit.
- case import_keycodes21.ENTER: {
- if (onSubmit) {
- event.preventDefault();
- onSubmit(null, event);
- }
- break;
- }
- }
- return;
+ },
+ "core/gallery": ({ innerBlocks }) => {
+ const images = [];
+ const getValues = !!innerBlocks?.length ? IMAGE_GETTERS[innerBlocks[0].name] : void 0;
+ if (!getValues) {
+ return images;
}
- const suggestion = suggestions[selectedSuggestion];
- switch (event.keyCode) {
- case import_keycodes21.UP: {
- event.preventDefault();
- setSelectedSuggestion(
- !selectedSuggestion ? suggestions.length - 1 : selectedSuggestion - 1
- );
- break;
- }
- case import_keycodes21.DOWN: {
- event.preventDefault();
- setSelectedSuggestion(
- selectedSuggestion === null || selectedSuggestion === suggestions.length - 1 ? 0 : selectedSuggestion + 1
- );
- break;
- }
- case import_keycodes21.TAB: {
- if (selectedSuggestion !== null) {
- selectLink(suggestion);
- (0, import_a11y19.speak)((0, import_i18n163.__)("Link selected."));
- }
- break;
+ for (const innerBlock of innerBlocks) {
+ const img = getValues(innerBlock);
+ if (img) {
+ images.push(img);
}
- case import_keycodes21.ENTER: {
- event.preventDefault();
- if (selectedSuggestion !== null) {
- selectLink(suggestion);
- if (onSubmit) {
- onSubmit(suggestion, event);
- }
- } else if (onSubmit) {
- onSubmit(null, event);
- }
- break;
+ if (images.length >= MAX_IMAGES) {
+ return images;
}
}
+ return images;
}
- const controlProps = {
- id: inputId,
- // Passes attribute to label for the for attribute
- label,
- className: clsx_default("block-editor-url-input", className, {
- "is-full-width": isFullWidth
- }),
- hideLabelFromVision
- };
- const inputProps = {
- id: inputId,
- value,
- required,
- type: "text",
- name: inputId,
- autoComplete: "off",
- onChange: disabled2 ? noop20 : handleChange,
- onFocus: disabled2 ? noop20 : handleFocus,
- onKeyDown: disabled2 ? noop20 : handleKeyDown,
- placeholder,
- role: "combobox",
- "aria-label": label ? void 0 : (0, import_i18n163.__)("URL"),
- // Ensure input always has an accessible label
- "aria-expanded": showSuggestions,
- "aria-autocomplete": "list",
- "aria-owns": suggestionsListboxId,
- "aria-activedescendant": selectedSuggestion !== null ? `${suggestionOptionIdPrefix}-${selectedSuggestion}` : void 0,
- ref: controlInputRef,
- disabled: disabled2,
- suffix,
- help
- };
- return /* @__PURE__ */ (0, import_jsx_runtime387.jsxs)(import_jsx_runtime387.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
- Control3,
- {
- controlProps,
- inputProps,
- isLoading,
- customValidity,
- markWhenOptional,
- renderControl
- }
- ),
- showSuggestions && suggestions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
- Suggestions,
- {
- autocompleteRef,
- className,
- handleSuggestionClick,
- isLoading,
- renderSuggestions,
- selectedSuggestion,
- suggestionNodesRef,
- suggestionOptionIdPrefix,
- suggestions,
- suggestionsListboxId,
- suggestionsValue
- }
- )
- ] });
- }
- function Control3({
- controlProps,
- inputProps,
- isLoading,
- customValidity,
- markWhenOptional,
- renderControl
- }) {
- const [isValidated, setIsValidated] = (0, import_element227.useState)(
- customValidity !== void 0
- );
- if (customValidity !== void 0 && !isValidated) {
- setIsValidated(true);
+ };
+ function getImagesFromBlock(block, isExpanded) {
+ const images = block ? IMAGE_GETTERS[block.name](block) : void 0;
+ if (!images) {
+ return [];
}
- if (renderControl) {
- return renderControl(controlProps, inputProps, isLoading);
+ if (!Array.isArray(images)) {
+ return [images];
}
- const MaybeValidatedInputControl = isValidated ? ValidatedInputControl : import_components173.__experimentalInputControl;
- return /* @__PURE__ */ (0, import_jsx_runtime387.jsxs)(import_components173.BaseControl, { ...controlProps, children: [
- /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
- MaybeValidatedInputControl,
- {
- ...inputProps,
- ...isValidated && {
- customValidity,
- // Suppress the "(Required)" indicator in the label.
- // The field is still required for validation, but the indicator
- // can be hidden when markWhenOptional is set to true.
- ...markWhenOptional !== void 0 && {
- markWhenOptional
- }
- }
- }
- ),
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(import_components173.Spinner, {})
- ] });
+ return isExpanded ? [] : images;
}
- function Suggestions({
- autocompleteRef,
- className,
- handleSuggestionClick,
- isLoading,
- renderSuggestions,
- selectedSuggestion,
- suggestionNodesRef,
- suggestionOptionIdPrefix,
- suggestions,
- suggestionsListboxId,
- suggestionsValue
- }) {
- const suggestionsListProps = {
- id: suggestionsListboxId,
- ref: autocompleteRef,
- role: "listbox"
- };
- const buildSuggestionItemProps = (suggestion, index2) => {
- return {
- role: "option",
- tabIndex: "-1",
- id: `${suggestionOptionIdPrefix}-${index2}`,
- ref: (node) => {
- suggestionNodesRef.current[index2] = node;
- },
- "aria-selected": index2 === selectedSuggestion ? true : void 0
- };
+ function useListViewImages({ clientId, isExpanded }) {
+ const { block } = (0, import_data129.useSelect)(
+ (select3) => {
+ const { getBlockName: getBlockName2, getBlock: getBlock2 } = select3(store);
+ const hasImages = !!IMAGE_GETTERS[getBlockName2(clientId)];
+ return { block: hasImages ? getBlock2(clientId) : void 0 };
+ },
+ [clientId]
+ );
+ const images = (0, import_element194.useMemo)(() => {
+ return getImagesFromBlock(block, isExpanded);
+ }, [block, isExpanded]);
+ return images;
+ }
+
+ // packages/block-editor/build-module/components/list-view/block-select-button.mjs
+ var import_jsx_runtime334 = __toESM(require_jsx_runtime(), 1);
+ function ListViewBlockSelectButton({
+ className: className2,
+ clientId,
+ onClick,
+ onContextMenu,
+ onMouseDown,
+ onToggleExpanded,
+ tabIndex,
+ onFocus,
+ onDragStart,
+ onDragEnd,
+ draggable,
+ isExpanded,
+ ariaDescribedBy,
+ visibilityLabel,
+ isDisabled = false
+ }, ref) {
+ const blockTitle = useBlockDisplayTitle({
+ clientId,
+ context: "list-view"
+ });
+ const { icon, anchor, isSticky, isLocked } = (0, import_data130.useSelect)(
+ (select3) => {
+ const {
+ getBlockName: getBlockName2,
+ getBlockAttributes: getBlockAttributes3,
+ getBlock: getBlock2,
+ isSectionBlock: isSectionBlock2,
+ isLockedBlock: isLockedBlock2
+ } = unlock(select3(store));
+ const { getBlockType: getBlockType33, getActiveBlockVariation } = select3(import_blocks80.store);
+ const attributes = getBlockAttributes3(clientId);
+ const blockName = getBlockName2(clientId);
+ let blockIcon = symbol_default;
+ if (!attributes?.metadata?.patternName || !isSectionBlock2(clientId)) {
+ const match2 = getActiveBlockVariation(
+ blockName,
+ attributes,
+ void 0,
+ getBlock2(clientId)?.innerContent
+ );
+ blockIcon = match2?.icon || getBlockType33(blockName)?.icon;
+ }
+ return {
+ icon: blockIcon,
+ anchor: attributes?.anchor,
+ isSticky: attributes?.style?.position?.type === "sticky",
+ isLocked: isLockedBlock2(clientId)
+ };
+ },
+ [clientId]
+ );
+ const shouldShowLockIcon = isLocked;
+ const images = useListViewImages({ clientId, isExpanded });
+ const onDragStartHandler = (event) => {
+ event.dataTransfer.clearData();
+ onDragStart?.(event);
};
- if (isFunction(renderSuggestions)) {
- return renderSuggestions({
- suggestions,
- selectedSuggestion,
- suggestionsListProps,
- buildSuggestionItemProps,
- isLoading,
- handleSuggestionClick,
- isInitialSuggestions: !suggestionsValue?.length,
- currentInputValue: suggestionsValue
- });
+ function onKeyDown(event) {
+ if (event.keyCode === import_keycodes15.ENTER || event.keyCode === import_keycodes15.SPACE) {
+ onClick(event);
+ }
}
- return /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(import_components173.Popover, { placement: "bottom", focusOnMount: false, children: /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
- "div",
- {
- ...suggestionsListProps,
- className: clsx_default("block-editor-url-input__suggestions", {
- [`${className}__suggestions`]: className
- }),
- children: suggestions.map((suggestion, index2) => /* @__PURE__ */ (0, import_react15.createElement)(
- import_components173.Button,
- {
- __next40pxDefaultSize: true,
- ...buildSuggestionItemProps(suggestion, index2),
- key: suggestion.id,
- className: clsx_default(
- "block-editor-url-input__suggestion",
+ return (
+ // Disabled list view items intentionally omit href so TreeGrid skips them.
+ // eslint-disable-next-line jsx-a11y/anchor-is-valid
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(
+ "a",
+ {
+ className: clsx_default(
+ "block-editor-list-view-block-select-button",
+ className2
+ ),
+ onClick,
+ onContextMenu,
+ onKeyDown,
+ onMouseDown,
+ ref,
+ tabIndex,
+ onFocus,
+ onDragStart: onDragStartHandler,
+ onDragEnd,
+ draggable,
+ href: isDisabled ? void 0 : `#block-${clientId}`,
+ "aria-disabled": isDisabled ? true : void 0,
+ "aria-describedby": ariaDescribedBy,
+ "aria-expanded": isExpanded,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(ListViewExpander, { onClick: onToggleExpanded }),
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(block_icon_default, { icon, showColors: true, context: "list-view" }),
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(
+ Stack,
{
- "is-selected": index2 === selectedSuggestion
+ align: "center",
+ className: "block-editor-list-view-block-select-button__label-wrapper",
+ justify: "flex-start",
+ gap: "xs",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("span", { className: "block-editor-list-view-block-select-button__title", children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(import_components117.__experimentalTruncate, { ellipsizeMode: "auto", children: blockTitle }) }),
+ !!anchor && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("span", { className: "block-editor-list-view-block-select-button__anchor-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("span", { className: "block-editor-list-view-block-select-button__anchor", children: anchor }) }),
+ isSticky && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("span", { className: "block-editor-list-view-block-select-button__sticky", children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(icon_default, { icon: pin_small_default }) }),
+ images.length ? /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
+ "span",
+ {
+ className: "block-editor-list-view-block-select-button__images",
+ "aria-hidden": true,
+ children: images.map((image, index2) => /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
+ "span",
+ {
+ className: "block-editor-list-view-block-select-button__image",
+ style: {
+ backgroundImage: `url(${image.url})`,
+ zIndex: images.length - index2
+ // Ensure the first image is on top, and subsequent images are behind.
+ }
+ },
+ image.clientId
+ ))
+ }
+ ) : null,
+ !!visibilityLabel && // The tooltip below is a sighted-hover affordance for
+ // the (decorative) visibility icon. The same
+ // `visibilityLabel` is exposed to assistive technology
+ // via the row's `aria-describedby`, which references the
+ // hidden `AriaReferencedText` rendered by the parent
+ // `ListViewBlock`.
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(tooltip_exports.Root, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
+ tooltip_exports.Trigger,
+ {
+ render: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
+ "span",
+ {
+ className: "block-editor-list-view-block-select-button__block-visibility",
+ "aria-hidden": "true",
+ children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(icon_default, { icon: unseen_default })
+ }
+ )
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(tooltip_exports.Popup, { children: visibilityLabel })
+ ] }),
+ shouldShowLockIcon && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("span", { className: "block-editor-list-view-block-select-button__lock", children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(icon_default, { icon: lock_small_default }) })
+ ]
}
- ),
- onClick: () => handleSuggestionClick(suggestion)
- },
- suggestion.title
- ))
- }
- ) });
+ )
+ ]
+ }
+ )
+ );
}
+ var block_select_button_default = (0, import_element195.forwardRef)(ListViewBlockSelectButton);
- // packages/block-editor/build-module/components/url-popover/link-editor.mjs
- var import_jsx_runtime388 = __toESM(require_jsx_runtime(), 1);
- function LinkEditor({
- autocompleteRef,
- className,
- onChangeInputValue,
- value,
- ...props
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime388.jsxs)(
- "form",
+ // packages/block-editor/build-module/components/list-view/block-contents.mjs
+ var import_jsx_runtime335 = __toESM(require_jsx_runtime(), 1);
+ function InsertedBlockContent({ clientId }) {
+ const { AdditionalBlockContent, setInsertedBlockClientId } = useListViewContext();
+ const insertedBlockClientId = useInsertedBlockClientId();
+ if (!AdditionalBlockContent || insertedBlockClientId !== clientId) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
+ AdditionalBlockContent,
{
- className: clsx_default(
- "block-editor-url-popover__link-editor",
- className
- ),
- ...props,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime388.jsx)(
- URLInput,
- {
- value,
- onChange: onChangeInputValue,
- autocompleteRef
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime388.jsx)(
- import_components174.Button,
- {
- icon: keyboard_return_default,
- label: (0, import_i18n164.__)("Apply"),
- type: "submit",
- size: "compact"
- }
- )
- ]
+ insertedBlockClientId,
+ setInsertedBlockClientId
}
);
}
-
- // packages/block-editor/build-module/components/url-popover/index.mjs
- var import_jsx_runtime389 = __toESM(require_jsx_runtime(), 1);
- var { __experimentalPopoverLegacyPositionToPlacement } = unlock(
- import_components175.privateApis
- );
- var DEFAULT_PLACEMENT = "bottom";
- var URLPopover = (0, import_element228.forwardRef)(
+ var ListViewBlockContents = (0, import_element196.forwardRef)(
({
- additionalControls,
- children,
- renderSettings,
- // The DEFAULT_PLACEMENT value is assigned inside the function's body
- placement,
- focusOnMount = "firstElement",
- // Deprecated
- position,
- // Rest
- ...popoverProps3
+ onClick,
+ onToggleExpanded,
+ clientId,
+ isExpanded,
+ selectedClientIds,
+ ...props
}, ref) => {
- if (position !== void 0) {
- (0, import_deprecated22.default)("`position` prop in wp.blockEditor.URLPopover", {
- since: "6.2",
- alternative: "`placement` prop"
- });
- }
- let computedPlacement;
- if (placement !== void 0) {
- computedPlacement = placement;
- } else if (position !== void 0) {
- computedPlacement = __experimentalPopoverLegacyPositionToPlacement(position);
- }
- computedPlacement = computedPlacement || DEFAULT_PLACEMENT;
- const [isSettingsExpanded, setIsSettingsExpanded] = (0, import_element228.useState)(false);
- const showSettings = !!renderSettings && isSettingsExpanded;
- const toggleSettingsVisibility = () => {
- setIsSettingsExpanded(!isSettingsExpanded);
- };
- return /* @__PURE__ */ (0, import_jsx_runtime389.jsxs)(
- import_components175.Popover,
- {
- ref,
- role: "dialog",
- "aria-modal": "true",
- "aria-label": (0, import_i18n165.__)("Edit URL"),
- className: "block-editor-url-popover",
- focusOnMount,
- placement: computedPlacement,
- shift: true,
- variant: "toolbar",
- ...popoverProps3,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime389.jsx)("div", { className: "block-editor-url-popover__input-container", children: /* @__PURE__ */ (0, import_jsx_runtime389.jsxs)("div", { className: "block-editor-url-popover__row", children: [
- children,
- !!renderSettings && /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
- import_components175.Button,
- {
- className: "block-editor-url-popover__settings-toggle",
- icon: chevron_down_default,
- label: (0, import_i18n165.__)("Link settings"),
- onClick: toggleSettingsVisibility,
- "aria-expanded": isSettingsExpanded,
- size: "compact"
- }
- )
- ] }) }),
- showSettings && /* @__PURE__ */ (0, import_jsx_runtime389.jsx)("div", { className: "block-editor-url-popover__settings", children: renderSettings() }),
- additionalControls && !showSettings && /* @__PURE__ */ (0, import_jsx_runtime389.jsx)("div", { className: "block-editor-url-popover__additional-controls", children: additionalControls })
- ]
- }
- );
+ const draggableClientIds = selectedClientIds.includes(clientId) ? selectedClientIds : [clientId];
+ return /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)(import_jsx_runtime335.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(InsertedBlockContent, { clientId }),
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
+ block_draggable_default,
+ {
+ appendToOwnerDocument: true,
+ clientIds: draggableClientIds,
+ cloneClassname: "block-editor-list-view-draggable-chip",
+ children: ({ draggable, onDragStart, onDragEnd }) => /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
+ block_select_button_default,
+ {
+ ref,
+ className: "block-editor-list-view-block-contents",
+ clientId,
+ onClick,
+ onToggleExpanded,
+ draggable,
+ onDragStart,
+ onDragEnd,
+ isExpanded,
+ ...props
+ }
+ )
+ }
+ )
+ ] });
}
);
- URLPopover.LinkEditor = LinkEditor;
- URLPopover.LinkViewer = LinkViewer;
- var url_popover_default = URLPopover;
+ var block_contents_default = ListViewBlockContents;
- // packages/block-editor/build-module/components/media-placeholder/index.mjs
- var import_jsx_runtime390 = __toESM(require_jsx_runtime(), 1);
- var noop21 = () => {
- };
- var InsertFromURLPopover = ({
- src,
- onChange,
- onSubmit,
- onClose,
- popoverAnchor
- }) => /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(url_popover_default, { anchor: popoverAnchor, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- "form",
- {
- className: "block-editor-media-placeholder__url-input-form",
- onSubmit,
- children: /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.__experimentalInputControl,
- {
- label: (0, import_i18n166.__)("URL"),
- type: "text",
- hideLabelFromVision: true,
- placeholder: (0, import_i18n166.__)("Paste or type URL"),
- onChange,
- value: src,
- suffix: /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(import_components176.__experimentalInputControlSuffixWrapper, { variant: "control", children: /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.Button,
- {
- size: "small",
- icon: keyboard_return_default,
- label: (0, import_i18n166.__)("Apply"),
- type: "submit"
- }
- ) })
- }
- )
- }
- ) });
- var URLSelectionUI = ({ src, onChangeSrc, onSelectURL }) => {
- const [popoverAnchor, setPopoverAnchor] = (0, import_element229.useState)(null);
- const [isURLInputVisible, setIsURLInputVisible] = (0, import_element229.useState)(false);
- const openURLInput = () => {
- setIsURLInputVisible(true);
- };
- const closeURLInput = () => {
- setIsURLInputVisible(false);
- popoverAnchor?.focus();
- };
- const onSubmitSrc = (event) => {
- event.preventDefault();
- if (src && onSelectURL) {
- onSelectURL(src);
- closeURLInput();
- }
+ // packages/block-editor/build-module/components/list-view/utils.mjs
+ var import_i18n111 = __toESM(require_i18n(), 1);
+ var import_dom64 = __toESM(require_dom(), 1);
+ var BLOCK_LIST_ITEM_HEIGHT = 32;
+ var getBlockPositionDescription = (position, siblingCount, level) => (0, import_i18n111.sprintf)(
+ /* translators: 1: The numerical position of the block. 2: The total number of blocks. 3. The level of nesting for the block. */
+ (0, import_i18n111.__)("Block %1$d of %2$d, Level %3$d."),
+ position,
+ siblingCount,
+ level
+ );
+ var getBlockPropertiesDescription = (positionLabel, isLocked) => [
+ positionLabel ? `${(0, import_i18n111.sprintf)(
+ // translators: %s: Position of selected block, e.g. "Sticky" or "Fixed".
+ (0, import_i18n111.__)("Position: %s"),
+ positionLabel
+ )}.` : void 0,
+ isLocked ? (0, import_i18n111.__)("This block is locked.") : void 0
+ ].filter(Boolean).join(" ");
+ var isClientIdSelected = (clientId, selectedBlockClientIds) => Array.isArray(selectedBlockClientIds) && selectedBlockClientIds.length ? selectedBlockClientIds.indexOf(clientId) !== -1 : selectedBlockClientIds === clientId;
+ function getCommonDepthClientIds(startId, endId, startParents, endParents) {
+ const startPath = [...startParents, startId];
+ const endPath = [...endParents, endId];
+ const depth = Math.min(startPath.length, endPath.length) - 1;
+ const start2 = startPath[depth];
+ const end = endPath[depth];
+ return {
+ start: start2,
+ end
};
- return /* @__PURE__ */ (0, import_jsx_runtime390.jsxs)("div", { className: "block-editor-media-placeholder__url-input-container", children: [
- /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.Button,
- {
- __next40pxDefaultSize: true,
- className: "block-editor-media-placeholder__button",
- onClick: openURLInput,
- isPressed: isURLInputVisible,
- variant: "secondary",
- "aria-haspopup": "dialog",
- ref: setPopoverAnchor,
- children: (0, import_i18n166.__)("Insert from URL")
- }
- ),
- isURLInputVisible && /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- InsertFromURLPopover,
- {
- src,
- onChange: onChangeSrc,
- onSubmit: onSubmitSrc,
- onClose: closeURLInput,
- popoverAnchor
- }
- )
- ] });
- };
- function MediaPlaceholder({
- value = {},
- allowedTypes,
- className,
- icon,
- labels = {},
- mediaPreview,
- notices,
- isAppender,
- accept,
- addToGallery,
- multiple = false,
- handleUpload = true,
- disableDropZone,
- disableMediaButtons,
- onError,
- onSelect,
- onCancel,
- onSelectURL,
- onToggleFeaturedImage,
- onDoubleClick,
- onFilesPreUpload = noop21,
- onHTMLDrop: deprecatedOnHTMLDrop,
- children,
- mediaLibraryButton,
- placeholder,
- style
- }) {
- if (deprecatedOnHTMLDrop) {
- (0, import_deprecated23.default)("wp.blockEditor.MediaPlaceholder onHTMLDrop prop", {
- since: "6.2",
- version: "6.4"
- });
+ }
+ function focusListItem(focusClientId, treeGridElement) {
+ if (!treeGridElement) {
+ return;
}
- const { mediaUpload: mediaUpload2, allowedMimeTypes } = (0, import_data151.useSelect)((select3) => {
- const { getSettings: getSettings7 } = select3(store);
- const settings2 = getSettings7();
- return {
- mediaUpload: settings2.mediaUpload,
- allowedMimeTypes: settings2.allowedMimeTypes
- };
- }, []);
- const [src, setSrc] = (0, import_element229.useState)("");
- (0, import_element229.useEffect)(() => {
- setSrc(value?.src ?? "");
- }, [value?.src]);
- const computedAccept = (0, import_element229.useMemo)(
- () => getComputedAcceptAttribute(
- allowedTypes,
- allowedMimeTypes,
- accept
- ),
- [allowedTypes, allowedMimeTypes, accept]
- );
- const onlyAllowsImages = () => {
- if (!allowedTypes || allowedTypes.length === 0) {
- return false;
+ const selector3 = `[role=row][data-block="${focusClientId}"]`;
+ return new Promise((resolve) => {
+ if (treeGridElement.querySelector(selector3)) {
+ return resolve(treeGridElement.querySelector(selector3));
}
- return allowedTypes.every(
- (allowedType) => allowedType === "image" || allowedType.startsWith("image/")
- );
- };
- const onFilesUpload = (files) => {
- if (!handleUpload || typeof handleUpload === "function" && !handleUpload(files)) {
- return onSelect(files);
+ let timer = null;
+ const observer = new window.MutationObserver(() => {
+ if (treeGridElement.querySelector(selector3)) {
+ clearTimeout(timer);
+ observer.disconnect();
+ resolve(treeGridElement.querySelector(selector3));
+ }
+ });
+ observer.observe(treeGridElement, {
+ childList: true,
+ subtree: true
+ });
+ timer = setTimeout(() => {
+ observer.disconnect();
+ resolve(null);
+ }, 3e3);
+ }).then((element) => {
+ if (element && element.isConnected) {
+ import_dom64.focus.focusable.find(element)?.[0]?.focus();
}
- onFilesPreUpload(files);
- let setMedia;
- if (multiple) {
- if (addToGallery) {
- let lastMediaPassed = [];
- setMedia = (newMedia) => {
- const filteredMedia = (value ?? []).filter((item) => {
- if (item.id) {
- return !lastMediaPassed.some(
- // Be sure to convert to number for comparison.
- ({ id }) => Number(id) === Number(item.id)
- );
- }
- return !lastMediaPassed.some(
- ({ urlSlug }) => item.url.includes(urlSlug)
- );
- });
- onSelect(filteredMedia.concat(newMedia));
- lastMediaPassed = newMedia.map((media) => {
- const cutOffIndex = media.url.lastIndexOf(".");
- const urlSlug = media.url.slice(0, cutOffIndex);
- return { id: media.id, urlSlug };
- });
- };
+ });
+ }
+ function getDragDisplacementValues({
+ blockIndexes,
+ blockDropTargetIndex,
+ blockDropPosition,
+ clientId,
+ firstDraggedBlockIndex,
+ isDragged
+ }) {
+ let displacement;
+ let isNesting;
+ let isAfterDraggedBlocks;
+ if (!isDragged) {
+ isNesting = false;
+ const thisBlockIndex = blockIndexes[clientId];
+ isAfterDraggedBlocks = thisBlockIndex > firstDraggedBlockIndex;
+ if (blockDropTargetIndex !== void 0 && blockDropTargetIndex !== null && firstDraggedBlockIndex !== void 0) {
+ if (thisBlockIndex !== void 0) {
+ if (thisBlockIndex >= firstDraggedBlockIndex && thisBlockIndex < blockDropTargetIndex) {
+ displacement = "up";
+ } else if (thisBlockIndex < firstDraggedBlockIndex && thisBlockIndex >= blockDropTargetIndex) {
+ displacement = "down";
+ } else {
+ displacement = "normal";
+ }
+ isNesting = typeof blockDropTargetIndex === "number" && blockDropTargetIndex - 1 === thisBlockIndex && blockDropPosition === "inside";
+ }
+ } else if (blockDropTargetIndex === null && firstDraggedBlockIndex !== void 0) {
+ if (thisBlockIndex !== void 0 && thisBlockIndex >= firstDraggedBlockIndex) {
+ displacement = "up";
} else {
- setMedia = onSelect;
+ displacement = "normal";
}
- } else {
- setMedia = ([media]) => onSelect(media);
+ } else if (blockDropTargetIndex !== void 0 && blockDropTargetIndex !== null && firstDraggedBlockIndex === void 0) {
+ if (thisBlockIndex !== void 0) {
+ if (thisBlockIndex < blockDropTargetIndex) {
+ displacement = "normal";
+ } else {
+ displacement = "down";
+ }
+ }
+ } else if (blockDropTargetIndex === null) {
+ displacement = "normal";
}
- mediaUpload2({
- allowedTypes,
- filesList: files,
- onFileChange: setMedia,
- onError,
- multiple
- });
+ }
+ return {
+ displacement,
+ isNesting,
+ isAfterDraggedBlocks
};
- async function handleBlocksDrop(event) {
- const { blocks: blocks2 } = parseDropEvent(event);
- if (!blocks2?.length) {
+ }
+
+ // packages/block-editor/build-module/components/list-view/block.mjs
+ var import_jsx_runtime336 = __toESM(require_jsx_runtime(), 1);
+ function ListViewBlock({
+ clientId,
+ displacement,
+ isAfterDraggedBlocks,
+ isDragged,
+ isNesting,
+ isSelected,
+ isBranchSelected,
+ selectBlock: selectBlock2,
+ position,
+ level,
+ rowCount,
+ siblingBlockCount,
+ showBlockMovers,
+ path,
+ isExpanded,
+ selectedClientIds,
+ isSyncedBranch
+ }) {
+ const cellRef = (0, import_element197.useRef)(null);
+ const rowRef = (0, import_element197.useRef)(null);
+ const settingsRef = (0, import_element197.useRef)(null);
+ const [isHovered, setIsHovered] = (0, import_element197.useState)(false);
+ const [settingsAnchorRect, setSettingsAnchorRect] = (0, import_element197.useState)();
+ const [isRenameModalOpen, setIsRenameModalOpen] = (0, import_element197.useState)(false);
+ const isFirstSelectedBlock = isSelected && selectedClientIds[0] === clientId;
+ const isLastSelectedBlock = isSelected && selectedClientIds[selectedClientIds.length - 1] === clientId;
+ const {
+ toggleBlockHighlight: toggleBlockHighlight2,
+ duplicateBlocks: duplicateBlocks2,
+ multiSelect: multiSelect2,
+ replaceBlocks: replaceBlocks2,
+ removeBlocks: removeBlocks2,
+ insertAfterBlock: insertAfterBlock2,
+ insertBeforeBlock: insertBeforeBlock2,
+ showViewportModal: showViewportModal2,
+ stopEditingContentOnlySection: stopEditingContentOnlySection2
+ } = unlock((0, import_data131.useDispatch)(store));
+ const debouncedToggleBlockHighlight = (0, import_compose75.useDebounce)(
+ toggleBlockHighlight2,
+ 50
+ );
+ const {
+ canInsertBlockType: canInsertBlockType2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ getPreviousBlockClientId: getPreviousBlockClientId2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockOrder: getBlockOrder2,
+ getBlockParents: getBlockParents2,
+ getBlockEditingMode: getBlockEditingMode2,
+ getBlocksByClientId: getBlocksByClientId2,
+ canEditBlock: canEditBlock2,
+ canMoveBlock: canMoveBlock2,
+ canRemoveBlocks: canRemoveBlocks2,
+ isGroupable: isGroupable2
+ } = (0, import_data131.useSelect)(store);
+ const { getGroupingBlockName } = (0, import_data131.useSelect)(import_blocks81.store);
+ const pasteStyles = usePasteStyles();
+ const {
+ blockName,
+ blockVisibility: blockVisibility2,
+ blockEditingMode,
+ allowRightClickOverrides,
+ editedSection,
+ viewportSettings,
+ blockVisibilitySetting,
+ positionLabel,
+ isSynced,
+ isLocked
+ } = (0, import_data131.useSelect)(
+ (select3) => {
+ const {
+ getBlockName: getBlockName2,
+ getBlockAttributes: getBlockAttributes3,
+ getBlockEditingMode: getBlockEditingModeForClientId,
+ getSettings: getSettings8,
+ getEditedContentOnlySection: getEditedContentOnlySection2,
+ isSyncedBlock: isSyncedBlock2,
+ isLockedBlock: isLockedBlock2
+ } = unlock(select3(store));
+ const settings2 = getSettings8();
+ const attributes = getBlockAttributes3(clientId);
+ return {
+ blockName: getBlockName2(clientId),
+ blockVisibility: attributes?.metadata?.blockVisibility,
+ blockEditingMode: getBlockEditingModeForClientId(clientId),
+ allowRightClickOverrides: settings2.allowRightClickOverrides,
+ editedSection: getEditedContentOnlySection2(),
+ viewportSettings: settings2.__experimentalFeatures?.viewport,
+ blockVisibilitySetting: settings2.__experimentalFeatures?.blockVisibility?.allowEditing,
+ positionLabel: getPositionTypeLabel(attributes),
+ isSynced: isSyncedBlock2(clientId),
+ isLocked: isLockedBlock2(clientId)
+ };
+ },
+ [clientId]
+ );
+ const isDisabled = blockEditingMode === "disabled";
+ const canRename = !!blockName && (0, import_blocks81.hasBlockSupport)(blockName, "renaming", true);
+ const showBlockActions = (
+ // When a block hides its toolbar it also hides the block settings menu,
+ // since that menu is part of the toolbar in the editor canvas.
+ // List View respects this by also hiding the block settings menu.
+ (0, import_blocks81.hasBlockSupport)(blockName, "__experimentalToolbar", true)
+ );
+ const instanceId = (0, import_compose75.useInstanceId)(ListViewBlock);
+ const descriptionId = `list-view-block-select-button__description-${instanceId}`;
+ const {
+ BlockSettingsMenu: BlockSettingsMenu2,
+ listViewInstanceId,
+ updateExpansion,
+ setInsertedBlockClientId,
+ treeGridElementRef,
+ rootClientId
+ } = useListViewContext();
+ const isMatch = (0, import_keyboard_shortcuts11.__unstableUseShortcutEventMatch)();
+ function getBlocksToUpdate() {
+ const selectedBlockClientIds = getSelectedBlockClientIds2();
+ const isUpdatingSelectedBlocks = selectedBlockClientIds.includes(clientId);
+ const firstBlockClientId = isUpdatingSelectedBlocks ? selectedBlockClientIds[0] : clientId;
+ const firstBlockRootClientId = getBlockRootClientId2(firstBlockClientId);
+ const blocksToUpdate = isUpdatingSelectedBlocks ? selectedBlockClientIds : [clientId];
+ return {
+ blocksToUpdate,
+ firstBlockClientId,
+ firstBlockRootClientId,
+ selectedBlockClientIds
+ };
+ }
+ async function onKeyDown(event) {
+ if (event.defaultPrevented) {
return;
}
- const uploadedMediaList = await Promise.all(
- blocks2.map((block) => {
- const blockType = block.name.split("/")[1];
- if (block.attributes.id) {
- block.attributes.type = blockType;
- return block.attributes;
- }
- return new Promise((resolve, reject) => {
- window.fetch(block.attributes.url).then((response) => response.blob()).then(
- (blob) => mediaUpload2({
- filesList: [blob],
- additionalData: {
- title: block.attributes.title,
- alt_text: block.attributes.alt,
- caption: block.attributes.caption,
- type: blockType
- },
- onFileChange: ([media]) => {
- if (media.id) {
- resolve(media);
- }
- },
- allowedTypes,
- onError: reject
- })
- ).catch(() => resolve(block.attributes.url));
- });
- })
- ).catch((err) => onError(err));
- if (!uploadedMediaList?.length) {
+ if (event.target.closest("[role=dialog]")) {
return;
}
- onSelect(multiple ? uploadedMediaList : uploadedMediaList[0]);
- }
- const onUpload = (event) => {
- onFilesUpload(event.target.files);
- };
- const defaultRenderPlaceholder = (content) => {
- let { instructions, title } = labels;
- if (!mediaUpload2 && !onSelectURL) {
- instructions = (0, import_i18n166.__)(
- "To edit this block, you need permission to upload media."
- );
+ if (editedSection && isMatch("core/block-editor/unselect", event)) {
+ event.stopPropagation();
+ event.preventDefault();
+ stopEditingContentOnlySection2();
+ return;
}
- if (instructions === void 0 || title === void 0) {
- const typesAllowed = allowedTypes ?? [];
- const [firstAllowedType] = typesAllowed;
- const isOneType = 1 === typesAllowed.length;
- const isAudio = isOneType && "audio" === firstAllowedType;
- const isImage = isOneType && "image" === firstAllowedType;
- const isVideo = isOneType && "video" === firstAllowedType;
- if (instructions === void 0 && mediaUpload2) {
- instructions = (0, import_i18n166.__)(
- "Drag and drop an image or video, upload, or choose from your library."
- );
- if (isAudio) {
- instructions = (0, import_i18n166.__)(
- "Drag and drop an audio file, upload, or choose from your library."
- );
- } else if (isImage) {
- instructions = (0, import_i18n166.__)(
- "Drag and drop an image, upload, or choose from your library."
- );
- } else if (isVideo) {
- instructions = (0, import_i18n166.__)(
- "Drag and drop a video, upload, or choose from your library."
+ const isDeleteKey = [import_keycodes16.BACKSPACE, import_keycodes16.DELETE].includes(event.keyCode);
+ if (isMatch("core/block-editor/unselect", event) && selectedClientIds.length > 0) {
+ event.stopPropagation();
+ event.preventDefault();
+ selectBlock2(event, void 0);
+ } else if (isDeleteKey || isMatch("core/block-editor/remove", event)) {
+ const {
+ blocksToUpdate: blocksToDelete,
+ firstBlockClientId,
+ firstBlockRootClientId,
+ selectedBlockClientIds
+ } = getBlocksToUpdate();
+ if (!canRemoveBlocks2(blocksToDelete)) {
+ return;
+ }
+ let blockToFocus = getPreviousBlockClientId2(firstBlockClientId) ?? // If the previous block is not found (when the first block is deleted),
+ // fallback to focus the parent block.
+ firstBlockRootClientId;
+ removeBlocks2(blocksToDelete, false);
+ const shouldUpdateSelection = selectedBlockClientIds.length > 0 && getSelectedBlockClientIds2().length === 0;
+ if (!blockToFocus) {
+ blockToFocus = getBlockOrder2()[0];
+ }
+ updateFocusAndSelection(blockToFocus, shouldUpdateSelection);
+ } else if (isMatch("core/block-editor/paste-styles", event)) {
+ event.preventDefault();
+ const { blocksToUpdate } = getBlocksToUpdate();
+ const blocks2 = getBlocksByClientId2(blocksToUpdate);
+ pasteStyles(blocks2);
+ } else if (isMatch("core/block-editor/duplicate", event)) {
+ event.preventDefault();
+ const { blocksToUpdate, firstBlockRootClientId } = getBlocksToUpdate();
+ const canDuplicate = getBlocksByClientId2(blocksToUpdate).every(
+ (blockToUpdate) => {
+ return !!blockToUpdate && (0, import_blocks81.hasBlockSupport)(
+ blockToUpdate.name,
+ "multiple",
+ true
+ ) && canInsertBlockType2(
+ blockToUpdate.name,
+ firstBlockRootClientId
);
}
- }
- if (title === void 0) {
- title = (0, import_i18n166.__)("Media");
- if (isAudio) {
- title = (0, import_i18n166.__)("Audio");
- } else if (isImage) {
- title = (0, import_i18n166.__)("Image");
- } else if (isVideo) {
- title = (0, import_i18n166.__)("Video");
+ );
+ if (canDuplicate) {
+ const updatedBlocks = await duplicateBlocks2(
+ blocksToUpdate,
+ false
+ );
+ if (updatedBlocks?.length) {
+ updateFocusAndSelection(updatedBlocks[0], false);
}
}
- }
- const placeholderClassName = clsx_default(
- "block-editor-media-placeholder",
- className,
- {
- "is-appender": isAppender
- }
- );
- return /* @__PURE__ */ (0, import_jsx_runtime390.jsxs)(
- import_components176.Placeholder,
- {
- icon,
- label: title,
- instructions,
- className: placeholderClassName,
- notices,
- onDoubleClick,
- preview: mediaPreview,
- style,
- children: [
- content,
- children
- ]
+ } else if (isMatch("core/block-editor/insert-before", event)) {
+ event.preventDefault();
+ const { blocksToUpdate } = getBlocksToUpdate();
+ await insertBeforeBlock2(blocksToUpdate[0]);
+ const newlySelectedBlocks = getSelectedBlockClientIds2();
+ updateFocusAndSelection(newlySelectedBlocks[0], false);
+ } else if (isMatch("core/block-editor/insert-after", event)) {
+ event.preventDefault();
+ const { blocksToUpdate } = getBlocksToUpdate();
+ await insertAfterBlock2(blocksToUpdate.at(-1));
+ const newlySelectedBlocks = getSelectedBlockClientIds2();
+ updateFocusAndSelection(newlySelectedBlocks[0], false);
+ } else if (isMatch("core/block-editor/select-all", event)) {
+ event.preventDefault();
+ const { firstBlockRootClientId, selectedBlockClientIds } = getBlocksToUpdate();
+ const blockClientIds = getBlockOrder2(firstBlockRootClientId);
+ if (!blockClientIds.length) {
+ return;
}
- );
- };
- const renderPlaceholder = placeholder ?? defaultRenderPlaceholder;
- const renderDropZone = () => {
- if (disableDropZone) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.DropZone,
- {
- onFilesDrop: onFilesUpload,
- onDrop: handleBlocksDrop,
- isEligible: (dataTransfer) => {
- const prefix2 = "wp-block:core/";
- const types = [];
- for (const type of dataTransfer.types) {
- if (type.startsWith(prefix2)) {
- types.push(type.slice(prefix2.length));
- }
- }
- return types.every(
- (type) => allowedTypes.includes(type)
- ) && (multiple ? true : types.length === 1);
+ if ((0, import_is_shallow_equal2.isShallowEqual)(selectedBlockClientIds, blockClientIds)) {
+ if (firstBlockRootClientId && firstBlockRootClientId !== rootClientId) {
+ updateFocusAndSelection(firstBlockRootClientId, true);
+ return;
}
}
- );
- };
- const renderCancelLink = () => {
- return onCancel && /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.Button,
- {
- __next40pxDefaultSize: true,
- className: "block-editor-media-placeholder__cancel-button",
- title: (0, import_i18n166.__)("Cancel"),
- variant: "link",
- onClick: onCancel,
- children: (0, import_i18n166.__)("Cancel")
- }
- );
- };
- const renderUrlSelectionUI = () => {
- return onSelectURL && /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- URLSelectionUI,
- {
- src,
- onChangeSrc: setSrc,
- onSelectURL
+ multiSelect2(
+ blockClientIds[0],
+ blockClientIds[blockClientIds.length - 1],
+ null
+ );
+ } else if (isMatch("core/block-editor/collapse-list-view", event)) {
+ event.preventDefault();
+ const { firstBlockClientId } = getBlocksToUpdate();
+ const blockParents = getBlockParents2(firstBlockClientId, false);
+ updateExpansion({ type: "replace", clientIds: blockParents });
+ } else if (isMatch("core/block-editor/group", event)) {
+ const { blocksToUpdate } = getBlocksToUpdate();
+ if (blocksToUpdate.length > 1 && isGroupable2(blocksToUpdate)) {
+ event.preventDefault();
+ const blocks2 = getBlocksByClientId2(blocksToUpdate);
+ const groupingBlockName = getGroupingBlockName();
+ const newBlocks = groupBlocks(blocks2, groupingBlockName);
+ replaceBlocks2(blocksToUpdate, newBlocks);
+ (0, import_a11y15.speak)((0, import_i18n112.__)("Selected blocks are grouped."));
+ const newlySelectedBlocks = getSelectedBlockClientIds2();
+ updateFocusAndSelection(newlySelectedBlocks[0], false);
}
- );
- };
- const renderFeaturedImageToggle = () => {
- return onToggleFeaturedImage && /* @__PURE__ */ (0, import_jsx_runtime390.jsx)("div", { className: "block-editor-media-placeholder__url-input-container", children: /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.Button,
- {
- __next40pxDefaultSize: true,
- className: "block-editor-media-placeholder__button",
- onClick: onToggleFeaturedImage,
- variant: "secondary",
- children: (0, import_i18n166.__)("Use featured image")
+ } else if (isMatch("core/block-editor/toggle-block-visibility", event)) {
+ if (blockVisibilitySetting === false) {
+ return;
}
- ) });
- };
- const renderMediaUploadChecked = () => {
- const defaultButton = ({ open }) => {
- return /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.Button,
- {
- __next40pxDefaultSize: true,
- variant: "secondary",
- onClick: () => {
- open();
- },
- children: (0, import_i18n166.__)("Media Library")
- }
+ event.preventDefault();
+ const { blocksToUpdate } = getBlocksToUpdate();
+ const blocks2 = getBlocksByClientId2(blocksToUpdate);
+ const supportsBlockVisibility = blocks2.every(
+ (_block) => (0, import_blocks81.hasBlockSupport)(_block.name, "visibility", true)
);
- };
- const libraryButton = mediaLibraryButton ?? defaultButton;
- const uploadMediaLibraryButton = /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- media_upload_default,
- {
- addToGallery,
- gallery: multiple && onlyAllowsImages(),
- multiple,
- onSelect,
- allowedTypes,
- mode: "browse",
- value: Array.isArray(value) ? value.map(({ id }) => id) : value.id,
- render: libraryButton
+ if (!supportsBlockVisibility) {
+ return;
}
- );
- if (mediaUpload2 && isAppender) {
- return /* @__PURE__ */ (0, import_jsx_runtime390.jsxs)(import_jsx_runtime390.Fragment, { children: [
- renderDropZone(),
- /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.FormFileUpload,
+ if (blocksToUpdate.some(
+ (id) => getBlockEditingMode2(id) !== "default"
+ )) {
+ return;
+ }
+ showViewportModal2(blocksToUpdate);
+ } else if (isMatch("core/block-editor/rename", event)) {
+ const { blocksToUpdate } = getBlocksToUpdate();
+ const isContentOnly = getBlockEditingMode2(blocksToUpdate[0]) === "contentOnly";
+ if (blocksToUpdate.length === 1 && canRename && !isContentOnly) {
+ event.preventDefault();
+ setIsRenameModalOpen(true);
+ }
+ }
+ }
+ const onMouseEnter = (0, import_element197.useCallback)(() => {
+ setIsHovered(true);
+ debouncedToggleBlockHighlight(clientId, true);
+ }, [clientId, setIsHovered, debouncedToggleBlockHighlight]);
+ const onMouseLeave = (0, import_element197.useCallback)(() => {
+ setIsHovered(false);
+ debouncedToggleBlockHighlight(clientId, false);
+ }, [clientId, setIsHovered, debouncedToggleBlockHighlight]);
+ const selectEditorBlock = (0, import_element197.useCallback)(
+ (event) => {
+ const isKeyboardActivation = event?.detail === 0;
+ selectBlock2(event, clientId, isKeyboardActivation ? -1 : null);
+ event.preventDefault();
+ },
+ [clientId, selectBlock2]
+ );
+ const updateFocusAndSelection = (0, import_element197.useCallback)(
+ (focusClientId, shouldSelectBlock) => {
+ if (shouldSelectBlock) {
+ selectBlock2(void 0, focusClientId, null, null);
+ }
+ focusListItem(focusClientId, treeGridElementRef?.current);
+ },
+ [selectBlock2, treeGridElementRef]
+ );
+ const toggleExpanded = (0, import_element197.useCallback)(
+ (event) => {
+ event.preventDefault();
+ event.stopPropagation();
+ if (isExpanded === void 0) {
+ return;
+ }
+ updateExpansion({
+ type: isExpanded ? "collapse" : "expand",
+ clientIds: [clientId]
+ });
+ },
+ [clientId, updateExpansion, isExpanded]
+ );
+ const onContextMenu = (0, import_element197.useCallback)(
+ (event) => {
+ const { ownerDocument: ownerDocument2 } = settingsRef?.current || {};
+ if (!ownerDocument2 || !ownerDocument2.hasFocus()) {
+ return;
+ }
+ if (showBlockActions && allowRightClickOverrides) {
+ settingsRef.current?.click();
+ setSettingsAnchorRect(
+ new window.DOMRect(event.clientX, event.clientY, 0, 0)
+ );
+ event.preventDefault();
+ }
+ },
+ [allowRightClickOverrides, settingsRef, showBlockActions]
+ );
+ const onMouseDown = (0, import_element197.useCallback)(
+ (event) => {
+ if (allowRightClickOverrides && event.button === 2) {
+ event.preventDefault();
+ }
+ },
+ [allowRightClickOverrides]
+ );
+ const settingsPopoverAnchor = (0, import_element197.useMemo)(() => {
+ const { ownerDocument: ownerDocument2 } = rowRef?.current || {};
+ if (!settingsAnchorRect || !ownerDocument2) {
+ return void 0;
+ }
+ return {
+ ownerDocument: ownerDocument2,
+ getBoundingClientRect() {
+ return settingsAnchorRect;
+ }
+ };
+ }, [settingsAnchorRect]);
+ const clearSettingsAnchorRect = (0, import_element197.useCallback)(() => {
+ setSettingsAnchorRect(void 0);
+ }, [setSettingsAnchorRect]);
+ useListViewScrollIntoView({
+ isSelected,
+ rowItemRef: rowRef,
+ selectedClientIds
+ });
+ if (!blockName) {
+ return null;
+ }
+ const blockPositionDescription = getBlockPositionDescription(
+ position,
+ siblingBlockCount,
+ level
+ );
+ const blockPropertiesDescription = getBlockPropertiesDescription(
+ positionLabel,
+ isLocked
+ );
+ const blockVisibilityDescription = getBlockVisibilityLabel(
+ blockVisibility2,
+ viewportSettings
+ );
+ const hasSiblings = siblingBlockCount > 0;
+ const canShowBlockActions = showBlockActions && !isDisabled;
+ const hasRenderedMovers = showBlockMovers && hasSiblings && !isDisabled;
+ const moverCellClassName = clsx_default(
+ "block-editor-list-view-block__mover-cell",
+ { "is-visible": isHovered || isSelected }
+ );
+ const listViewBlockSettingsClassName = clsx_default(
+ "block-editor-list-view-block__menu-cell",
+ { "is-visible": isHovered || isFirstSelectedBlock }
+ );
+ let colSpan;
+ if (hasRenderedMovers) {
+ colSpan = 2;
+ } else if (!canShowBlockActions) {
+ colSpan = 3;
+ }
+ const classes = clsx_default({
+ "is-selected": isSelected,
+ "is-first-selected": isFirstSelectedBlock,
+ "is-last-selected": isLastSelectedBlock,
+ "is-branch-selected": isBranchSelected,
+ "is-synced-branch": isSyncedBranch,
+ "is-dragging": isDragged,
+ "has-single-cell": !showBlockActions,
+ "is-synced": isSynced,
+ "is-draggable": canMoveBlock2 && !isDisabled,
+ "is-displacement-normal": displacement === "normal",
+ "is-displacement-up": displacement === "up",
+ "is-displacement-down": displacement === "down",
+ "is-after-dragged-blocks": isAfterDraggedBlocks,
+ "is-nesting": isNesting,
+ "is-disabled": isDisabled
+ });
+ const dropdownClientIds = selectedClientIds.includes(clientId) ? selectedClientIds : [clientId];
+ const getListViewBlockTabIndex = (rovingTabIndex) => {
+ if (isDisabled) {
+ return -1;
+ }
+ if (isSelected && selectedClientIds.length === 1) {
+ return 0;
+ }
+ return rovingTabIndex;
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
+ leaf_default,
+ {
+ className: classes,
+ isDragged,
+ onKeyDown,
+ onMouseEnter: isDisabled ? void 0 : onMouseEnter,
+ onMouseLeave: isDisabled ? void 0 : onMouseLeave,
+ onFocus: isDisabled ? void 0 : onMouseEnter,
+ onBlur: isDisabled ? void 0 : onMouseLeave,
+ level,
+ position,
+ rowCount,
+ path,
+ id: `list-view-${listViewInstanceId}-block-${clientId}`,
+ "data-block": clientId,
+ "data-expanded": canEditBlock2 ? isExpanded : void 0,
+ ref: rowRef,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
+ import_components118.__experimentalTreeGridCell,
{
- onChange: onUpload,
- accept: computedAccept,
- multiple: !!multiple,
- render: ({ openFileDialog }) => {
- const content = /* @__PURE__ */ (0, import_jsx_runtime390.jsxs)(import_jsx_runtime390.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.Button,
- {
- __next40pxDefaultSize: true,
- variant: "primary",
- className: clsx_default(
- "block-editor-media-placeholder__button",
- "block-editor-media-placeholder__upload-button"
- ),
- onClick: openFileDialog,
- children: (0, import_i18n166._x)("Upload", "verb")
- }
- ),
- uploadMediaLibraryButton,
- renderUrlSelectionUI(),
- renderFeaturedImageToggle(),
- renderCancelLink()
- ] });
- return renderPlaceholder(content);
- }
+ className: "block-editor-list-view-block__contents-cell",
+ colSpan,
+ ref: cellRef,
+ "aria-selected": !!isSelected,
+ children: ({ ref, tabIndex, onFocus }) => /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)("div", { className: "block-editor-list-view-block__contents-container", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
+ block_contents_default,
+ {
+ clientId,
+ onClick: selectEditorBlock,
+ onContextMenu: isDisabled ? void 0 : onContextMenu,
+ onMouseDown,
+ onToggleExpanded: isDisabled ? void 0 : toggleExpanded,
+ ref,
+ tabIndex: getListViewBlockTabIndex(tabIndex),
+ onFocus,
+ isExpanded: canEditBlock2 ? isExpanded : void 0,
+ selectedClientIds,
+ ariaDescribedBy: descriptionId,
+ visibilityLabel: blockVisibilityDescription,
+ isDisabled
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(AriaReferencedText, { id: descriptionId, children: [
+ blockPositionDescription,
+ blockPropertiesDescription,
+ blockVisibilityDescription
+ ].filter(Boolean).join(" ") })
+ ] })
}
- )
- ] });
- }
- if (mediaUpload2) {
- const content = /* @__PURE__ */ (0, import_jsx_runtime390.jsxs)(import_jsx_runtime390.Fragment, { children: [
- renderDropZone(),
- /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.FormFileUpload,
+ ),
+ hasRenderedMovers && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(import_jsx_runtime336.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
+ import_components118.__experimentalTreeGridCell,
+ {
+ className: moverCellClassName,
+ withoutGridItem: true,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(import_components118.__experimentalTreeGridItem, { children: ({ ref, tabIndex, onFocus }) => /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
+ BlockMoverUpButton,
+ {
+ orientation: "vertical",
+ clientIds: [clientId],
+ ref,
+ tabIndex,
+ onFocus
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(import_components118.__experimentalTreeGridItem, { children: ({ ref, tabIndex, onFocus }) => /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
+ BlockMoverDownButton,
+ {
+ orientation: "vertical",
+ clientIds: [clientId],
+ ref,
+ tabIndex,
+ onFocus
+ }
+ ) })
+ ]
+ }
+ ) }),
+ canShowBlockActions && BlockSettingsMenu2 && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
+ import_components118.__experimentalTreeGridCell,
{
- render: ({ openFileDialog }) => /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- import_components176.Button,
+ className: listViewBlockSettingsClassName,
+ "aria-selected": !!isSelected,
+ ref: settingsRef,
+ children: ({ ref, tabIndex, onFocus }) => /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
+ BlockSettingsMenu2,
{
- __next40pxDefaultSize: true,
- onClick: openFileDialog,
- variant: "primary",
- className: clsx_default(
- "block-editor-media-placeholder__button",
- "block-editor-media-placeholder__upload-button"
- ),
- children: (0, import_i18n166._x)("Upload", "verb")
+ clientId,
+ clientIds: dropdownClientIds,
+ icon: more_vertical_default,
+ label: (0, import_i18n112.__)("Options"),
+ popoverProps: {
+ anchor: settingsPopoverAnchor
+ // Used to position the settings at the cursor on right-click.
+ },
+ toggleProps: {
+ ref,
+ className: "block-editor-list-view-block__menu",
+ tabIndex,
+ onClick: clearSettingsAnchorRect,
+ onFocus,
+ size: "small"
+ },
+ disableOpenOnArrowDown: true,
+ updateExpansion,
+ setInsertedBlockClientId,
+ __experimentalSelectBlock: updateFocusAndSelection,
+ isContentOnlyListView: !!rootClientId && getBlockEditingMode2(rootClientId) === "contentOnly"
}
- ),
- onChange: onUpload,
- accept: computedAccept,
- multiple: !!multiple
+ )
}
),
- uploadMediaLibraryButton,
- renderUrlSelectionUI(),
- renderFeaturedImageToggle(),
- renderCancelLink()
- ] });
- return renderPlaceholder(content);
- }
- return renderPlaceholder(uploadMediaLibraryButton);
- };
- if (disableMediaButtons) {
- return /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(check_default2, { children: renderDropZone() });
- }
- return /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
- check_default2,
- {
- fallback: renderPlaceholder(renderUrlSelectionUI()),
- children: renderMediaUploadChecked()
+ isRenameModalOpen && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
+ BlockRenameModal,
+ {
+ clientId,
+ onClose: () => setIsRenameModalOpen(false)
+ }
+ )
+ ]
}
);
}
- var media_placeholder_default = (0, import_components176.withFilters)("editor.MediaPlaceholder")(MediaPlaceholder);
+ var block_default3 = (0, import_element197.memo)(ListViewBlock);
- // packages/block-editor/build-module/components/panel-color-settings/index.mjs
- var import_jsx_runtime391 = __toESM(require_jsx_runtime(), 1);
- var PanelColorSettings = ({ colorSettings, ...props }) => {
- const settings2 = colorSettings.map((setting) => {
- if (!setting) {
- return setting;
- }
- const { value, onChange, ...otherSettings } = setting;
- return {
- ...otherSettings,
- colorValue: value,
- onColorChange: onChange
- };
- });
- return /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
- panel_color_gradient_settings_default,
- {
- settings: settings2,
- gradients: [],
- disableCustomGradients: true,
- ...props
- }
+ // packages/block-editor/build-module/components/list-view/branch.mjs
+ var import_jsx_runtime337 = __toESM(require_jsx_runtime(), 1);
+ function countBlocks(block, expansionState, draggedClientIds, isExpandedByDefault) {
+ const isDragged = draggedClientIds?.includes(block.clientId);
+ if (isDragged) {
+ return 0;
+ }
+ const isExpanded = expansionState[block.clientId] ?? isExpandedByDefault;
+ if (!isExpanded) {
+ return 1;
+ }
+ return block.innerBlocks.reduce(
+ (count, innerBlock) => count + countBlocks(
+ innerBlock,
+ expansionState,
+ draggedClientIds,
+ isExpandedByDefault
+ ),
+ 1
);
+ }
+ var noop13 = () => {
};
- var panel_color_settings_default = PanelColorSettings;
-
- // packages/block-editor/build-module/components/plain-text/index.mjs
- var import_react_autosize_textarea2 = __toESM(require_lib(), 1);
- var import_element239 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/editable-text/index.mjs
- var import_element238 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/rich-text/index.mjs
- var import_es65 = __toESM(require_es6(), 1);
- var import_element237 = __toESM(require_element(), 1);
- var import_data154 = __toESM(require_data(), 1);
- var import_compose94 = __toESM(require_compose(), 1);
- var import_rich_text19 = __toESM(require_rich_text(), 1);
- var import_components180 = __toESM(require_components(), 1);
- var import_blocks86 = __toESM(require_blocks(), 1);
- var import_deprecated27 = __toESM(require_deprecated(), 1);
- var import_i18n169 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/rich-text/format-toolbar-container.mjs
- var import_i18n168 = __toESM(require_i18n(), 1);
- var import_components178 = __toESM(require_components(), 1);
-
- // packages/block-editor/build-module/components/rich-text/format-toolbar/index.mjs
- var import_i18n167 = __toESM(require_i18n(), 1);
- var import_components177 = __toESM(require_components(), 1);
- var import_jsx_runtime392 = __toESM(require_jsx_runtime(), 1);
- var POPOVER_PROPS8 = {
- placement: "bottom-start"
- };
- var FormatToolbar = () => {
- return /* @__PURE__ */ (0, import_jsx_runtime392.jsxs)(import_jsx_runtime392.Fragment, { children: [
- ["bold", "italic", "link", "unknown"].map((format6) => /* @__PURE__ */ (0, import_jsx_runtime392.jsx)(
- import_components177.Slot,
- {
- name: `RichText.ToolbarControls.${format6}`
- },
- format6
- )),
- /* @__PURE__ */ (0, import_jsx_runtime392.jsx)(import_components177.Slot, { name: "RichText.ToolbarControls", children: (fills) => {
- if (!fills.length) {
- return null;
+ function ListViewBranch(props) {
+ const {
+ blocks: blocks2,
+ selectBlock: selectBlock2 = noop13,
+ showBlockMovers,
+ selectedClientIds,
+ level = 1,
+ path = "",
+ isBranchSelected = false,
+ listPosition = 0,
+ fixedListWindow,
+ isExpanded,
+ parentId,
+ isSyncedBranch = false,
+ showAppender: showAppenderProp = true
+ } = props;
+ const { canParentExpand, isParentSynced } = (0, import_data132.useSelect)(
+ (select3) => {
+ if (!parentId) {
+ return { canParentExpand: true, isParentSynced: false };
}
- const allProps = fills.map(([{ props }]) => props);
- const hasActive = allProps.some(
- ({ isActive }) => isActive
+ const { canEditBlock: canEditBlock2, isSyncedBlock: isSyncedBlock2 } = unlock(
+ select3(store)
);
- return /* @__PURE__ */ (0, import_jsx_runtime392.jsx)(import_components177.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime392.jsx)(
- import_components177.DropdownMenu,
- {
- icon: chevron_down_default,
- label: (0, import_i18n167.__)("More"),
- toggleProps: {
- ...toggleProps,
- className: clsx_default(
- toggleProps.className,
- { "is-pressed": hasActive }
- ),
- description: (0, import_i18n167.__)(
- "Displays more block tools"
- )
- },
- controls: orderBy(
- fills.map(([{ props }]) => props),
- "title"
- ),
- popoverProps: POPOVER_PROPS8
- }
- ) });
- } })
- ] });
- };
- var format_toolbar_default = FormatToolbar;
-
- // packages/block-editor/build-module/components/rich-text/format-toolbar-container.mjs
- var import_jsx_runtime393 = __toESM(require_jsx_runtime(), 1);
- function InlineToolbar({ popoverAnchor }) {
- return /* @__PURE__ */ (0, import_jsx_runtime393.jsx)(
- import_components178.Popover,
- {
- placement: "top",
- focusOnMount: false,
- anchor: popoverAnchor,
- className: "block-editor-rich-text__inline-format-toolbar",
- __unstableSlotName: "block-toolbar",
- children: /* @__PURE__ */ (0, import_jsx_runtime393.jsx)(
- NavigableToolbar,
- {
- className: "block-editor-rich-text__inline-format-toolbar-group",
- "aria-label": (0, import_i18n168.__)("Format tools"),
- children: /* @__PURE__ */ (0, import_jsx_runtime393.jsx)(import_components178.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime393.jsx)(format_toolbar_default, {}) })
- }
- )
- }
+ return {
+ canParentExpand: canEditBlock2(parentId),
+ isParentSynced: isSyncedBlock2(parentId)
+ };
+ },
+ [parentId]
);
- }
- var FormatToolbarContainer = ({ inline: inline4, editableContentElement }) => {
- if (inline4) {
- return /* @__PURE__ */ (0, import_jsx_runtime393.jsx)(InlineToolbar, { popoverAnchor: editableContentElement });
+ const syncedBranch = isSyncedBranch || isParentSynced;
+ const {
+ blockDropPosition,
+ blockDropTargetIndex,
+ firstDraggedBlockIndex,
+ blockIndexes,
+ expansionState,
+ draggedClientIds
+ } = useListViewTreeState();
+ if (!canParentExpand) {
+ return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime393.jsx)(block_controls_default, { group: "inline", children: /* @__PURE__ */ (0, import_jsx_runtime393.jsx)(format_toolbar_default, {}) });
- };
- var format_toolbar_container_default = FormatToolbarContainer;
-
- // packages/block-editor/build-module/components/rich-text/use-mark-persistent.mjs
- var import_element230 = __toESM(require_element(), 1);
- var import_data152 = __toESM(require_data(), 1);
- function useMarkPersistent({ html, value }) {
- const previousTextRef = (0, import_element230.useRef)();
- const hasActiveFormats = !!value.activeFormats?.length;
- const { __unstableMarkLastChangeAsPersistent: __unstableMarkLastChangeAsPersistent2 } = (0, import_data152.useDispatch)(store);
- (0, import_element230.useLayoutEffect)(() => {
- if (!previousTextRef.current) {
- previousTextRef.current = value.text;
- return;
- }
- if (previousTextRef.current !== value.text) {
- const timeout = window.setTimeout(() => {
- __unstableMarkLastChangeAsPersistent2();
- }, 1e3);
- previousTextRef.current = value.text;
- return () => {
- window.clearTimeout(timeout);
- };
- }
- __unstableMarkLastChangeAsPersistent2();
- }, [html, hasActiveFormats]);
- }
-
- // packages/block-editor/build-module/components/rich-text/event-listeners/index.mjs
- var import_element232 = __toESM(require_element(), 1);
- var import_compose93 = __toESM(require_compose(), 1);
-
- // packages/block-editor/build-module/components/rich-text/event-listeners/before-input-rules.mjs
- var import_rich_text5 = __toESM(require_rich_text(), 1);
- var import_hooks7 = __toESM(require_hooks(), 1);
- var { subscribeOwnedListener } = unlock(import_rich_text5.privateApis);
- var wrapSelectionSettings = ["`", '"', "'", "\u201C\u201D", "\u2018\u2019"];
- var before_input_rules_default = (props) => (element) => {
- function onInput(event) {
- const { inputType, data } = event;
- const { value, onChange, registry } = props.current;
- if (inputType !== "insertText") {
- return;
- }
- if ((0, import_rich_text5.isCollapsed)(value)) {
+ const showAppender = showAppenderProp && level === 1;
+ const filteredBlocks = blocks2.filter(Boolean);
+ const blockCount = filteredBlocks.length;
+ const rowCount = showAppender ? blockCount + 1 : blockCount;
+ let nextPosition = listPosition;
+ const rows = [];
+ let placeholderRows = 0;
+ let placeholderKey;
+ const pushPlaceholderRow = () => {
+ if (!placeholderRows) {
return;
}
- const pair = (0, import_hooks7.applyFilters)(
- "blockEditor.wrapSelectionSettings",
- wrapSelectionSettings
- ).find(
- ([startChar2, endChar2]) => startChar2 === data || endChar2 === data
+ rows.push(
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
+ "td",
+ {
+ className: "block-editor-list-view-placeholder",
+ style: {
+ height: placeholderRows * BLOCK_LIST_ITEM_HEIGHT
+ }
+ }
+ ) }, `placeholder-${placeholderKey}`)
);
- if (!pair) {
- return;
- }
- const [startChar, endChar = startChar] = pair;
- const start2 = value.start;
- const end = value.end + startChar.length;
- let newValue = (0, import_rich_text5.insert)(value, startChar, start2, start2);
- newValue = (0, import_rich_text5.insert)(newValue, endChar, end, end);
- const {
- __unstableMarkLastChangeAsPersistent: __unstableMarkLastChangeAsPersistent2,
- __unstableMarkAutomaticChange: __unstableMarkAutomaticChange2
- } = registry.dispatch(store);
- __unstableMarkLastChangeAsPersistent2();
- onChange(newValue);
- __unstableMarkAutomaticChange2();
- const init = {};
- for (const key in event) {
- init[key] = event[key];
+ placeholderRows = 0;
+ placeholderKey = void 0;
+ };
+ filteredBlocks.forEach((block, index2) => {
+ const { clientId, innerBlocks } = block;
+ const blockListPosition = nextPosition;
+ nextPosition += countBlocks(
+ block,
+ expansionState,
+ draggedClientIds,
+ isExpanded
+ );
+ const isDragged = !!draggedClientIds?.includes(clientId);
+ const { itemInView } = fixedListWindow;
+ const blockInView = itemInView(blockListPosition);
+ const position = index2 + 1;
+ const updatedPath = path.length > 0 ? `${path}_${position}` : `${position}`;
+ const hasNestedBlocks = !!innerBlocks?.length;
+ const shouldExpand = hasNestedBlocks ? expansionState[clientId] ?? isExpanded : void 0;
+ const isSelected = isClientIdSelected(clientId, selectedClientIds);
+ const isSelectedBranch = isBranchSelected || isSelected && hasNestedBlocks;
+ const showBlock = isDragged || blockInView || isSelected && clientId === selectedClientIds[0] || index2 === 0 || index2 === blockCount - 1;
+ const showNestedBlocks = hasNestedBlocks && shouldExpand && !isDragged;
+ if (!showBlock) {
+ placeholderRows += 1;
+ placeholderKey ??= clientId;
+ if (!showNestedBlocks) {
+ return;
+ }
}
- init.data = endChar;
- const { ownerDocument: ownerDocument2 } = element;
- const { defaultView } = ownerDocument2;
- const newEvent = new defaultView.InputEvent("input", init);
- window.queueMicrotask(() => {
- element.dispatchEvent(newEvent);
+ pushPlaceholderRow();
+ const { displacement, isAfterDraggedBlocks, isNesting } = getDragDisplacementValues({
+ blockIndexes,
+ blockDropTargetIndex,
+ blockDropPosition,
+ clientId,
+ firstDraggedBlockIndex,
+ isDragged
});
- event.preventDefault();
- }
- return subscribeOwnedListener(element, "beforeinput", onInput, true);
- };
-
- // packages/block-editor/build-module/components/rich-text/event-listeners/input-rules.mjs
- var import_rich_text7 = __toESM(require_rich_text(), 1);
- var import_blocks81 = __toESM(require_blocks(), 1);
-
- // packages/block-editor/build-module/components/rich-text/prevent-event-discovery.mjs
- var import_rich_text6 = __toESM(require_rich_text(), 1);
- function preventEventDiscovery(value) {
- const searchText = "tales of gutenberg";
- const addText = " \u{1F421}\u{1F422}\u{1F980}\u{1F424}\u{1F98B}\u{1F418}\u{1F427}\u{1F439}\u{1F981}\u{1F984}\u{1F98D}\u{1F43C}\u{1F43F}\u{1F383}\u{1F434}\u{1F41D}\u{1F406}\u{1F995}\u{1F994}\u{1F331}\u{1F347}\u03C0\u{1F34C}\u{1F409}\u{1F4A7}\u{1F968}\u{1F30C}\u{1F342}\u{1F360}\u{1F966}\u{1F95A}\u{1F95D}\u{1F39F}\u{1F965}\u{1F952}\u{1F6F5}\u{1F956}\u{1F352}\u{1F36F}\u{1F3BE}\u{1F3B2}\u{1F43A}\u{1F41A}\u{1F42E}\u231B\uFE0F";
- const { start: start2, text } = value;
- if (start2 < searchText.length) {
- return value;
- }
- const charactersBefore = text.slice(start2 - searchText.length, start2);
- if (charactersBefore.toLowerCase() !== searchText) {
- return value;
- }
- return (0, import_rich_text6.insert)(value, addText);
+ rows.push(
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(import_data132.AsyncModeProvider, { value: !isSelected, children: [
+ showBlock && /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
+ block_default3,
+ {
+ clientId,
+ selectBlock: selectBlock2,
+ isSelected,
+ isBranchSelected: isSelectedBranch,
+ isDragged,
+ level,
+ position,
+ rowCount,
+ siblingBlockCount: blockCount,
+ showBlockMovers,
+ path: updatedPath,
+ isExpanded: isDragged ? false : shouldExpand,
+ selectedClientIds,
+ isSyncedBranch: syncedBranch,
+ displacement,
+ isAfterDraggedBlocks,
+ isNesting
+ }
+ ),
+ showNestedBlocks && /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
+ ListViewBranch,
+ {
+ parentId: clientId,
+ blocks: innerBlocks,
+ selectBlock: selectBlock2,
+ showBlockMovers,
+ level: level + 1,
+ path: updatedPath,
+ listPosition: blockListPosition + 1,
+ fixedListWindow,
+ isBranchSelected: isSelectedBranch,
+ selectedClientIds,
+ isExpanded,
+ isSyncedBranch: syncedBranch
+ }
+ )
+ ] }, clientId)
+ );
+ });
+ pushPlaceholderRow();
+ return /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(import_jsx_runtime337.Fragment, { children: [
+ rows,
+ showAppender && /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
+ import_components119.__experimentalTreeGridRow,
+ {
+ level,
+ setSize: rowCount,
+ positionInSet: rowCount,
+ isExpanded: true,
+ children: /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(import_components119.__experimentalTreeGridCell, { children: (treeGridCellProps) => /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
+ Appender,
+ {
+ clientId: parentId,
+ nestingLevel: level,
+ blockCount,
+ ...treeGridCellProps
+ }
+ ) })
+ }
+ )
+ ] });
}
+ var branch_default = (0, import_element198.memo)(ListViewBranch);
- // packages/block-editor/build-module/components/rich-text/event-listeners/input-rules.mjs
- var { subscribeOwnedListener: subscribeOwnedListener2 } = unlock(import_rich_text7.privateApis);
- function findSelection(blocks2) {
- let i2 = blocks2.length;
- while (i2--) {
- const attributeKey = retrieveSelectedAttribute(
- blocks2[i2].attributes
- );
- if (attributeKey) {
- blocks2[i2].attributes[attributeKey] = blocks2[i2].attributes[attributeKey].toString().replace(START_OF_SELECTED_AREA, "");
- return [blocks2[i2].clientId, attributeKey, 0, 0];
- }
- const nestedSelection = findSelection(blocks2[i2].innerBlocks);
- if (nestedSelection) {
- return nestedSelection;
+ // packages/block-editor/build-module/components/list-view/drop-indicator.mjs
+ var import_components120 = __toESM(require_components(), 1);
+ var import_dom65 = __toESM(require_dom(), 1);
+ var import_element199 = __toESM(require_element(), 1);
+ var import_i18n113 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime338 = __toESM(require_jsx_runtime(), 1);
+ function ListViewDropIndicatorPreview({
+ draggedBlockClientId,
+ listViewRef,
+ blockDropTarget
+ }) {
+ const blockInformation = useBlockDisplayInformation(draggedBlockClientId);
+ const blockTitle = useBlockDisplayTitle({
+ clientId: draggedBlockClientId,
+ context: "list-view"
+ });
+ const { rootClientId, clientId, dropPosition } = blockDropTarget || {};
+ const [rootBlockElement, blockElement] = (0, import_element199.useMemo)(() => {
+ if (!listViewRef.current) {
+ return [];
}
- }
- return [];
- }
- var input_rules_default = (props) => (element) => {
- function inputRule() {
- const { getValue, onReplace, selectionChange: selectionChange2, registry } = props.current;
- if (!onReplace) {
- return;
+ const _rootBlockElement = rootClientId ? listViewRef.current.querySelector(
+ `[data-block="${rootClientId}"]`
+ ) : void 0;
+ const _blockElement = clientId ? listViewRef.current.querySelector(
+ `[data-block="${clientId}"]`
+ ) : void 0;
+ return [_rootBlockElement, _blockElement];
+ }, [listViewRef, rootClientId, clientId]);
+ const targetElement = blockElement || rootBlockElement;
+ const rtl = (0, import_i18n113.isRTL)();
+ const getDropIndicatorWidth = (0, import_element199.useCallback)(
+ (targetElementRect, indent) => {
+ if (!targetElement) {
+ return 0;
+ }
+ let width = targetElement.offsetWidth;
+ const scrollContainer = (0, import_dom65.getScrollContainer)(
+ targetElement,
+ "horizontal"
+ );
+ const ownerDocument2 = targetElement.ownerDocument;
+ const windowScroll = scrollContainer === ownerDocument2.body || scrollContainer === ownerDocument2.documentElement;
+ if (scrollContainer && !windowScroll) {
+ const scrollContainerRect = scrollContainer.getBoundingClientRect();
+ const distanceBetweenContainerAndTarget = (0, import_i18n113.isRTL)() ? scrollContainerRect.right - targetElementRect.right : targetElementRect.left - scrollContainerRect.left;
+ const scrollContainerWidth = scrollContainer.clientWidth;
+ if (scrollContainerWidth < width + distanceBetweenContainerAndTarget) {
+ width = scrollContainerWidth - distanceBetweenContainerAndTarget;
+ }
+ if (!rtl && targetElementRect.left + indent < scrollContainerRect.left) {
+ width -= scrollContainerRect.left - targetElementRect.left;
+ return width;
+ }
+ if (rtl && targetElementRect.right - indent > scrollContainerRect.right) {
+ width -= targetElementRect.right - scrollContainerRect.right;
+ return width;
+ }
+ }
+ return width - indent;
+ },
+ [rtl, targetElement]
+ );
+ const style = (0, import_element199.useMemo)(() => {
+ if (!targetElement) {
+ return {};
}
- const value = getValue();
- const { start: start2, text } = value;
- const characterBefore = text.slice(start2 - 1, start2);
- if (characterBefore !== " ") {
- return;
+ const targetElementRect = targetElement.getBoundingClientRect();
+ return {
+ width: getDropIndicatorWidth(targetElementRect, 0)
+ };
+ }, [getDropIndicatorWidth, targetElement]);
+ const horizontalScrollOffsetStyle = (0, import_element199.useMemo)(() => {
+ if (!targetElement) {
+ return {};
}
- const trimmedTextBefore = text.slice(0, start2).trim();
- const prefixTransforms = (0, import_blocks81.getBlockTransforms)("from").filter(
- ({ type }) => type === "prefix"
- );
- const transformation = (0, import_blocks81.findTransform)(
- prefixTransforms,
- ({ prefix: prefix2 }) => {
- return trimmedTextBefore === prefix2;
+ const scrollContainer = (0, import_dom65.getScrollContainer)(targetElement);
+ const ownerDocument2 = targetElement.ownerDocument;
+ const windowScroll = scrollContainer === ownerDocument2.body || scrollContainer === ownerDocument2.documentElement;
+ if (scrollContainer && !windowScroll) {
+ const scrollContainerRect = scrollContainer.getBoundingClientRect();
+ const targetElementRect = targetElement.getBoundingClientRect();
+ const distanceBetweenContainerAndTarget = rtl ? scrollContainerRect.right - targetElementRect.right : targetElementRect.left - scrollContainerRect.left;
+ if (!rtl && scrollContainerRect.left > targetElementRect.left) {
+ return {
+ transform: `translateX( ${distanceBetweenContainerAndTarget}px )`
+ };
+ }
+ if (rtl && scrollContainerRect.right < targetElementRect.right) {
+ return {
+ transform: `translateX( ${distanceBetweenContainerAndTarget * -1}px )`
+ };
}
- );
- if (!transformation) {
- return;
- }
- const content = (0, import_rich_text7.toHTMLString)({
- value: (0, import_rich_text7.insert)(value, START_OF_SELECTED_AREA, 0, start2)
- });
- const block = transformation.transform(content);
- selectionChange2(...findSelection([block]));
- onReplace([block]);
- registry.dispatch(store).__unstableMarkAutomaticChange();
- return true;
- }
- function onInput(event) {
- const { inputType, type } = event;
- const {
- getValue,
- onChange,
- __unstableAllowPrefixTransformations,
- formatTypes,
- registry,
- onReplace
- } = props.current;
- if (inputType !== "insertText" && type !== "compositionend") {
- return;
}
- if (__unstableAllowPrefixTransformations && inputRule()) {
- return;
+ return {};
+ }, [rtl, targetElement]);
+ const ariaLevel = (0, import_element199.useMemo)(() => {
+ if (!rootBlockElement) {
+ return 1;
}
- const value = getValue();
- const transforms = (0, import_blocks81.getBlockTransforms)("from").filter(
- (transform) => transform.type === "input"
+ const _ariaLevel = parseInt(
+ rootBlockElement.getAttribute("aria-level"),
+ 10
);
- const transformation = (0, import_blocks81.findTransform)(transforms, (item) => {
- return item.regExp.test(value.text);
- });
- if (transformation) {
- onReplace(transformation.transform());
- registry.dispatch(store).__unstableMarkAutomaticChange();
- return;
+ return _ariaLevel ? _ariaLevel + 1 : 1;
+ }, [rootBlockElement]);
+ const hasAdjacentSelectedBranch = (0, import_element199.useMemo)(() => {
+ if (!targetElement) {
+ return false;
}
- const transformed = formatTypes.reduce(
- (accumulator, { __unstableInputRule }) => {
- if (__unstableInputRule) {
- accumulator = __unstableInputRule(accumulator);
- }
- return accumulator;
- },
- preventEventDiscovery(value)
- );
- const {
- __unstableMarkLastChangeAsPersistent: __unstableMarkLastChangeAsPersistent2,
- __unstableMarkAutomaticChange: __unstableMarkAutomaticChange2
- } = registry.dispatch(store);
- if (transformed !== value) {
- __unstableMarkLastChangeAsPersistent2();
- onChange({
- ...transformed,
- activeFormats: value.activeFormats
- });
- __unstableMarkAutomaticChange2();
+ return targetElement.classList.contains("is-branch-selected");
+ }, [targetElement]);
+ const popoverAnchor = (0, import_element199.useMemo)(() => {
+ const isValidDropPosition = dropPosition === "top" || dropPosition === "bottom" || dropPosition === "inside";
+ if (!targetElement || !isValidDropPosition) {
+ return void 0;
}
+ return {
+ contextElement: targetElement,
+ getBoundingClientRect() {
+ const rect = targetElement.getBoundingClientRect();
+ let left = rect.left;
+ let top = 0;
+ const scrollContainer = (0, import_dom65.getScrollContainer)(
+ targetElement,
+ "horizontal"
+ );
+ const doc = targetElement.ownerDocument;
+ const windowScroll = scrollContainer === doc.body || scrollContainer === doc.documentElement;
+ if (scrollContainer && !windowScroll) {
+ const scrollContainerRect = scrollContainer.getBoundingClientRect();
+ const scrollbarWidth = rtl ? scrollContainer.offsetWidth - scrollContainer.clientWidth : 0;
+ if (left < scrollContainerRect.left + scrollbarWidth) {
+ left = scrollContainerRect.left + scrollbarWidth;
+ }
+ }
+ if (dropPosition === "top") {
+ top = rect.top - rect.height * 2;
+ } else {
+ top = rect.top;
+ }
+ const width = getDropIndicatorWidth(rect, 0);
+ const height = rect.height;
+ return new window.DOMRect(left, top, width, height);
+ }
+ };
+ }, [targetElement, dropPosition, getDropIndicatorWidth, rtl]);
+ if (!targetElement) {
+ return null;
}
- const unsubscribeInput = subscribeOwnedListener2(
- element,
- "input",
- onInput,
- true
- );
- const unsubscribeCompositionEnd = subscribeOwnedListener2(
- element,
- "compositionend",
- onInput,
- true
- );
- return () => {
- unsubscribeInput();
- unsubscribeCompositionEnd();
- };
- };
-
- // packages/block-editor/build-module/components/rich-text/event-listeners/insert-replacement-text.mjs
- var import_rich_text8 = __toESM(require_rich_text(), 1);
- var { subscribeOwnedListener: subscribeOwnedListener3 } = unlock(import_rich_text8.privateApis);
- var insert_replacement_text_default = (props) => (element) => {
- function onInput(event) {
- if (event.inputType !== "insertReplacementText") {
- return;
+ return /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
+ import_components120.Popover,
+ {
+ animate: false,
+ anchor: popoverAnchor,
+ focusOnMount: false,
+ className: "block-editor-list-view-drop-indicator--preview",
+ variant: "unstyled",
+ flip: false,
+ resize: true,
+ children: /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
+ "div",
+ {
+ style,
+ className: clsx_default(
+ "block-editor-list-view-drop-indicator__line",
+ {
+ "block-editor-list-view-drop-indicator__line--darker": hasAdjacentSelectedBranch
+ }
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime338.jsxs)(
+ "div",
+ {
+ className: "block-editor-list-view-leaf",
+ "aria-level": ariaLevel,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime338.jsxs)(
+ "div",
+ {
+ className: clsx_default(
+ "block-editor-list-view-block-select-button",
+ "block-editor-list-view-block-contents"
+ ),
+ style: horizontalScrollOffsetStyle,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(ListViewExpander, { onClick: () => {
+ } }),
+ /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
+ block_icon_default,
+ {
+ icon: blockInformation?.icon,
+ showColors: true,
+ context: "list-view"
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
+ Stack,
+ {
+ align: "center",
+ className: "block-editor-list-view-block-select-button__label-wrapper",
+ justify: "flex-start",
+ gap: "xs",
+ children: /* @__PURE__ */ (0, import_jsx_runtime338.jsx)("span", { className: "block-editor-list-view-block-select-button__title", children: /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(import_components120.__experimentalTruncate, { ellipsizeMode: "auto", children: blockTitle }) })
+ }
+ )
+ ]
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime338.jsx)("div", { className: "block-editor-list-view-block__menu-cell" })
+ ]
+ }
+ )
+ }
+ )
}
- const { registry } = props.current;
- registry.dispatch(store).__unstableMarkLastChangeAsPersistent();
- }
- return subscribeOwnedListener3(element, "beforeinput", onInput);
- };
+ );
+ }
- // packages/block-editor/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.mjs
- var import_keycodes22 = __toESM(require_keycodes(), 1);
- var import_rich_text9 = __toESM(require_rich_text(), 1);
- var { subscribeOwnedListener: subscribeOwnedListener4 } = unlock(import_rich_text9.privateApis);
- var remove_browser_shortcuts_default = () => (node) => {
- function onKeydown(event) {
- if (import_keycodes22.isKeyboardEvent.primary(event, "z") || import_keycodes22.isKeyboardEvent.primary(event, "y") || import_keycodes22.isKeyboardEvent.primaryShift(event, "z")) {
+ // packages/block-editor/build-module/components/list-view/use-block-selection.mjs
+ var import_a11y16 = __toESM(require_a11y(), 1);
+ var import_i18n114 = __toESM(require_i18n(), 1);
+ var import_data133 = __toESM(require_data(), 1);
+ var import_element200 = __toESM(require_element(), 1);
+ var import_keycodes17 = __toESM(require_keycodes(), 1);
+ var import_blocks82 = __toESM(require_blocks(), 1);
+ function useBlockSelection() {
+ const { clearSelectedBlock: clearSelectedBlock2, multiSelect: multiSelect2, selectBlock: selectBlock2 } = (0, import_data133.useDispatch)(store);
+ const {
+ getBlockName: getBlockName2,
+ getBlockParents: getBlockParents2,
+ getBlockSelectionStart: getBlockSelectionStart2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ hasMultiSelection: hasMultiSelection2,
+ hasSelectedBlock: hasSelectedBlock2
+ } = (0, import_data133.useSelect)(store);
+ const { getBlockType: getBlockType33 } = (0, import_data133.useSelect)(import_blocks82.store);
+ const updateBlockSelection = (0, import_element200.useCallback)(
+ async (event, clientId, destinationClientId, focusPosition) => {
+ if (!event?.shiftKey && event?.keyCode !== import_keycodes17.ESCAPE) {
+ selectBlock2(clientId, focusPosition);
+ return;
+ }
event.preventDefault();
- }
- }
- return subscribeOwnedListener4(node, "keydown", onKeydown, true);
- };
-
- // packages/block-editor/build-module/components/rich-text/event-listeners/shortcuts.mjs
- var import_rich_text10 = __toESM(require_rich_text(), 1);
- var { subscribeOwnedListener: subscribeOwnedListener5 } = unlock(import_rich_text10.privateApis);
- var shortcuts_default = (props) => (element) => {
- const { keyboardShortcuts } = props.current;
- function onKeyDown(event) {
- for (const keyboardShortcut of keyboardShortcuts.current) {
- keyboardShortcut(event);
- }
- }
- return subscribeOwnedListener5(element, "keydown", onKeyDown, true);
- };
-
- // packages/block-editor/build-module/components/rich-text/event-listeners/input-events.mjs
- var import_rich_text11 = __toESM(require_rich_text(), 1);
- var { subscribeOwnedListener: subscribeOwnedListener6 } = unlock(import_rich_text11.privateApis);
- var input_events_default = (props) => (element) => {
- const { inputEvents } = props.current;
- function onInput(event) {
- for (const keyboardShortcut of inputEvents.current) {
- keyboardShortcut(event);
- }
- }
- return subscribeOwnedListener6(element, "input", onInput);
- };
+ const isOnlyDeselection = event.type === "keydown" && event.keyCode === import_keycodes17.ESCAPE;
+ const isKeyPress = event.type === "keydown" && (event.keyCode === import_keycodes17.UP || event.keyCode === import_keycodes17.DOWN || event.keyCode === import_keycodes17.HOME || event.keyCode === import_keycodes17.END);
+ if (!isKeyPress && !hasSelectedBlock2() && !hasMultiSelection2()) {
+ selectBlock2(clientId, null);
+ return;
+ }
+ const selectedBlocks = getSelectedBlockClientIds2();
+ const clientIdWithParents = [
+ ...getBlockParents2(clientId),
+ clientId
+ ];
+ if (isOnlyDeselection || isKeyPress && !selectedBlocks.some(
+ (blockId) => clientIdWithParents.includes(blockId)
+ )) {
+ await clearSelectedBlock2();
+ }
+ if (!isOnlyDeselection) {
+ let startTarget = getBlockSelectionStart2();
+ let endTarget = clientId;
+ if (isKeyPress) {
+ if (!hasSelectedBlock2() && !hasMultiSelection2()) {
+ startTarget = clientId;
+ }
+ if (destinationClientId) {
+ endTarget = destinationClientId;
+ }
+ }
+ const startParents = getBlockParents2(startTarget);
+ const endParents = getBlockParents2(endTarget);
+ const { start: start2, end } = getCommonDepthClientIds(
+ startTarget,
+ endTarget,
+ startParents,
+ endParents
+ );
+ await multiSelect2(start2, end, null);
+ }
+ const updatedSelectedBlocks = getSelectedBlockClientIds2();
+ if ((event.keyCode === import_keycodes17.HOME || event.keyCode === import_keycodes17.END) && updatedSelectedBlocks.length > 1) {
+ return;
+ }
+ const selectionDiff = selectedBlocks.filter(
+ (blockId) => !updatedSelectedBlocks.includes(blockId)
+ );
+ let label;
+ if (selectionDiff.length === 1) {
+ const title = getBlockType33(
+ getBlockName2(selectionDiff[0])
+ )?.title;
+ if (title) {
+ label = (0, import_i18n114.sprintf)(
+ /* translators: %s: block name */
+ (0, import_i18n114.__)("%s deselected."),
+ title
+ );
+ }
+ } else if (selectionDiff.length > 1) {
+ label = (0, import_i18n114.sprintf)(
+ /* translators: %s: number of deselected blocks */
+ (0, import_i18n114.__)("%s blocks deselected."),
+ selectionDiff.length
+ );
+ }
+ if (label) {
+ (0, import_a11y16.speak)(label, "assertive");
+ }
+ },
+ [
+ clearSelectedBlock2,
+ getBlockName2,
+ getBlockType33,
+ getBlockParents2,
+ getBlockSelectionStart2,
+ getSelectedBlockClientIds2,
+ hasMultiSelection2,
+ hasSelectedBlock2,
+ multiSelect2,
+ selectBlock2
+ ]
+ );
+ return {
+ updateBlockSelection
+ };
+ }
- // packages/block-editor/build-module/components/rich-text/event-listeners/undo-automatic-change.mjs
- var import_keycodes23 = __toESM(require_keycodes(), 1);
- var import_rich_text12 = __toESM(require_rich_text(), 1);
- var { subscribeOwnedListener: subscribeOwnedListener7 } = unlock(import_rich_text12.privateApis);
- var undo_automatic_change_default = (props) => (element) => {
- function onKeyDown(event) {
- const { keyCode } = event;
- if (event.defaultPrevented) {
- return;
- }
- if (keyCode !== import_keycodes23.BACKSPACE && keyCode !== import_keycodes23.ESCAPE) {
- return;
- }
- const { registry } = props.current;
- const { didAutomaticChange: didAutomaticChange2, getSettings: getSettings7 } = registry.select(store);
- const { __experimentalUndo } = getSettings7();
- if (!__experimentalUndo) {
- return;
- }
- if (!didAutomaticChange2()) {
- return;
- }
- event.preventDefault();
- __experimentalUndo();
- }
- return subscribeOwnedListener7(element, "keydown", onKeyDown);
- };
+ // packages/block-editor/build-module/components/list-view/use-list-view-block-indexes.mjs
+ var import_element201 = __toESM(require_element(), 1);
+ function useListViewBlockIndexes(blocks2) {
+ const blockIndexes = (0, import_element201.useMemo)(() => {
+ const indexes = {};
+ let currentGlobalIndex = 0;
+ const traverseBlocks = (blockList) => {
+ blockList.forEach((block) => {
+ indexes[block.clientId] = currentGlobalIndex;
+ currentGlobalIndex++;
+ if (block.innerBlocks.length > 0) {
+ traverseBlocks(block.innerBlocks);
+ }
+ });
+ };
+ traverseBlocks(blocks2);
+ return indexes;
+ }, [blocks2]);
+ return blockIndexes;
+ }
- // packages/block-editor/build-module/components/rich-text/event-listeners/paste-handler.mjs
- var import_blocks83 = __toESM(require_blocks(), 1);
- var import_rich_text13 = __toESM(require_rich_text(), 1);
- var import_url9 = __toESM(require_url(), 1);
- var import_compose91 = __toESM(require_compose(), 1);
+ // packages/block-editor/build-module/components/list-view/use-list-view-client-ids.mjs
+ var import_data134 = __toESM(require_data(), 1);
+ function useListViewClientIds({ blocks: blocks2, rootClientId }) {
+ return (0, import_data134.useSelect)(
+ (select3) => {
+ const {
+ getDraggedBlockClientIds: getDraggedBlockClientIds2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ getListViewClientIdsTree: getListViewClientIdsTree2
+ } = unlock(select3(store));
+ return {
+ selectedClientIds: getSelectedBlockClientIds2(),
+ draggedClientIds: getDraggedBlockClientIds2(),
+ clientIdsTree: blocks2 ?? getListViewClientIdsTree2(rootClientId)
+ };
+ },
+ [blocks2, rootClientId]
+ );
+ }
- // packages/block-editor/build-module/components/rich-text/utils.mjs
- var import_element231 = __toESM(require_element(), 1);
- var import_blocks82 = __toESM(require_blocks(), 1);
- var import_jsx_runtime394 = __toESM(require_jsx_runtime(), 1);
- function addActiveFormats(value, activeFormats) {
- if (activeFormats?.length) {
- let index2 = value.formats.length;
- while (index2--) {
- value.formats[index2] = [
- ...activeFormats,
- ...value.formats[index2] || []
- ];
+ // packages/block-editor/build-module/components/list-view/use-list-view-collapse-items.mjs
+ var import_element202 = __toESM(require_element(), 1);
+ var import_data135 = __toESM(require_data(), 1);
+ function useListViewCollapseItems({ updateExpansion }) {
+ const { expandedBlock: expandedBlock2, getBlockParents: getBlockParents2 } = (0, import_data135.useSelect)((select3) => {
+ const { getBlockParents: _getBlockParents, getExpandedBlock: getExpandedBlock2 } = unlock(
+ select3(store)
+ );
+ return {
+ expandedBlock: getExpandedBlock2(),
+ getBlockParents: _getBlockParents
+ };
+ }, []);
+ (0, import_element202.useEffect)(() => {
+ if (expandedBlock2) {
+ const blockParents = getBlockParents2(expandedBlock2, false);
+ updateExpansion({ type: "replace", clientIds: blockParents });
}
- }
+ }, [updateExpansion, expandedBlock2, getBlockParents2]);
}
- function getMultilineTag(multiline) {
- if (multiline !== true && multiline !== "p" && multiline !== "li") {
- return;
+
+ // packages/block-editor/build-module/components/list-view/use-list-view-drop-zone.mjs
+ var import_data136 = __toESM(require_data(), 1);
+ var import_element203 = __toESM(require_element(), 1);
+ var import_compose76 = __toESM(require_compose(), 1);
+ var import_i18n115 = __toESM(require_i18n(), 1);
+ var NESTING_LEVEL_INDENTATION = 24;
+ function isUpGesture(point, rect, nestingLevel = 1, rtl = false) {
+ const blockIndentPosition = rtl ? rect.right - nestingLevel * NESTING_LEVEL_INDENTATION : rect.left + nestingLevel * NESTING_LEVEL_INDENTATION;
+ return rtl ? point.x > blockIndentPosition : point.x < blockIndentPosition;
+ }
+ function getDesiredRelativeParentLevel(point, rect, nestingLevel = 1, rtl = false) {
+ const blockIndentPosition = rtl ? rect.right - nestingLevel * NESTING_LEVEL_INDENTATION : rect.left + nestingLevel * NESTING_LEVEL_INDENTATION;
+ const distanceBetweenPointAndBlockIndentPosition = rtl ? blockIndentPosition - point.x : point.x - blockIndentPosition;
+ const desiredParentLevel = Math.round(
+ distanceBetweenPointAndBlockIndentPosition / NESTING_LEVEL_INDENTATION
+ );
+ return Math.abs(desiredParentLevel);
+ }
+ function getCandidateBlockParents(candidateBlockData, blocksData) {
+ const candidateBlockParents = [];
+ let currentBlockData = candidateBlockData;
+ while (currentBlockData) {
+ candidateBlockParents.push({ ...currentBlockData });
+ currentBlockData = blocksData.find(
+ (blockData) => blockData.clientId === currentBlockData.rootClientId
+ );
}
- return multiline === true ? "p" : multiline;
+ return candidateBlockParents;
}
- function getAllowedFormats({ allowedFormats, disableFormats }) {
- if (disableFormats) {
- return getAllowedFormats.EMPTY_ARRAY;
+ function getNextNonDraggedBlock(blocksData, index2) {
+ const nextBlockData = blocksData[index2 + 1];
+ if (nextBlockData && nextBlockData.isDraggedBlock) {
+ return getNextNonDraggedBlock(blocksData, index2 + 1);
}
- return allowedFormats;
+ return nextBlockData;
}
- getAllowedFormats.EMPTY_ARRAY = [];
-
- // packages/block-editor/build-module/components/rich-text/event-listeners/paste-handler.mjs
- var { subscribeDelegatedListener: subscribeDelegatedListener3 } = unlock(import_compose91.privateApis);
- var { ownsSelection: ownsSelection2 } = unlock(import_rich_text13.privateApis);
- var paste_handler_default = (props) => (element) => {
- function _onPaste(event) {
- const {
- disableFormats,
- onChange,
- value,
- formatTypes,
- tagName,
- onReplace,
- __unstableEmbedURLOnPaste,
- preserveWhiteSpace,
- pastePlainText,
- registry
- } = props.current;
- if (!element.contains(event.target) && !ownsSelection2(element)) {
- return;
- }
- if (event.defaultPrevented) {
- return;
- }
- const { plainText, html } = getPasteEventData(event);
- event.preventDefault();
- window.console.log("Received HTML (RichText):\n\n", html);
- window.console.log("Received plain text (RichText):\n\n", plainText);
- if (disableFormats) {
- onChange((0, import_rich_text13.insert)(value, plainText));
- return;
+ function isNestingGesture(point, rect, nestingLevel = 1, rtl = false) {
+ const blockIndentPosition = rtl ? rect.right - nestingLevel * NESTING_LEVEL_INDENTATION : rect.left + nestingLevel * NESTING_LEVEL_INDENTATION;
+ const isNestingHorizontalGesture = rtl ? point.x < blockIndentPosition - NESTING_LEVEL_INDENTATION : point.x > blockIndentPosition + NESTING_LEVEL_INDENTATION;
+ return isNestingHorizontalGesture && point.y < rect.bottom;
+ }
+ var ALLOWED_DROP_EDGES = ["top", "bottom"];
+ function getListViewDropTarget(blocksData, position, rtl = false) {
+ let candidateEdge;
+ let candidateBlockData;
+ let candidateDistance;
+ let candidateRect;
+ let candidateBlockIndex;
+ for (let i2 = 0; i2 < blocksData.length; i2++) {
+ const blockData = blocksData[i2];
+ if (blockData.isDraggedBlock) {
+ continue;
}
- const isInternal = event.clipboardData.getData("rich-text") === "true";
- function pasteInline(content2) {
- const transformed = formatTypes.reduce(
- (accumulator, { __unstablePasteRule }) => {
- if (__unstablePasteRule && accumulator === value) {
- accumulator = __unstablePasteRule(value, {
- html,
- plainText
- });
- }
- return accumulator;
- },
- value
- );
- if (transformed !== value) {
- onChange(transformed);
+ const rect = blockData.element.getBoundingClientRect();
+ const [distance, edge] = getDistanceToNearestEdge(
+ position,
+ rect,
+ ALLOWED_DROP_EDGES
+ );
+ const isCursorWithinBlock = isPointContainedByRect(position, rect);
+ if (candidateDistance === void 0 || distance < candidateDistance || isCursorWithinBlock) {
+ candidateDistance = distance;
+ const index2 = blocksData.indexOf(blockData);
+ const previousBlockData = blocksData[index2 - 1];
+ if (edge === "top" && previousBlockData && previousBlockData.rootClientId === blockData.rootClientId && !previousBlockData.isDraggedBlock) {
+ candidateBlockData = previousBlockData;
+ candidateEdge = "bottom";
+ candidateRect = previousBlockData.element.getBoundingClientRect();
+ candidateBlockIndex = index2 - 1;
} else {
- const valueToInsert = (0, import_rich_text13.create)({ html: content2 });
- addActiveFormats(valueToInsert, value.activeFormats);
- onChange((0, import_rich_text13.insert)(value, valueToInsert));
+ candidateBlockData = blockData;
+ candidateEdge = edge;
+ candidateRect = rect;
+ candidateBlockIndex = index2;
+ }
+ if (isCursorWithinBlock) {
+ break;
}
}
- if (isInternal) {
- pasteInline(html);
- return;
- }
- if (pastePlainText) {
- onChange((0, import_rich_text13.insert)(value, (0, import_rich_text13.create)({ text: plainText })));
- return;
- }
- let mode2 = "INLINE";
- const trimmedPlainText = plainText.trim();
- if (__unstableEmbedURLOnPaste && (0, import_rich_text13.isEmpty)(value) && (0, import_url9.isURL)(trimmedPlainText) && // For the link pasting feature, allow only http(s) protocols.
- /^https?:/.test(trimmedPlainText)) {
- mode2 = "BLOCKS";
- }
- const content = (0, import_blocks83.pasteHandler)({
- HTML: html,
- plainText,
- mode: mode2,
- tagName,
- preserveWhiteSpace
- });
- if (typeof content === "string") {
- pasteInline(content);
- return;
- }
- if (!content.length || !onReplace || !(0, import_rich_text13.isEmpty)(value)) {
- return;
- }
- if (mode2 === "BLOCKS") {
- pasteInline(html);
- registry.dispatch(store).__unstableMarkLastChangeAsPersistent();
+ }
+ if (!candidateBlockData) {
+ return;
+ }
+ const candidateBlockParents = getCandidateBlockParents(
+ candidateBlockData,
+ blocksData
+ );
+ const isDraggingBelow = candidateEdge === "bottom";
+ if (isDraggingBelow && candidateBlockData.canInsertDraggedBlocksAsChild && (candidateBlockData.innerBlockCount > 0 && candidateBlockData.isExpanded || isNestingGesture(
+ position,
+ candidateRect,
+ candidateBlockParents.length,
+ rtl
+ ))) {
+ const newBlockIndex = candidateBlockData.isExpanded ? 0 : candidateBlockData.innerBlockCount || 0;
+ return {
+ rootClientId: candidateBlockData.clientId,
+ clientId: candidateBlockData.clientId,
+ blockIndex: newBlockIndex,
+ dropPosition: "inside"
+ };
+ }
+ if (isDraggingBelow && candidateBlockData.rootClientId && isUpGesture(
+ position,
+ candidateRect,
+ candidateBlockParents.length,
+ rtl
+ )) {
+ const nextBlock = getNextNonDraggedBlock(
+ blocksData,
+ candidateBlockIndex
+ );
+ const currentLevel = candidateBlockData.nestingLevel;
+ const nextLevel = nextBlock ? nextBlock.nestingLevel : 1;
+ if (currentLevel && nextLevel) {
+ const desiredRelativeLevel = getDesiredRelativeParentLevel(
+ position,
+ candidateRect,
+ candidateBlockParents.length,
+ rtl
+ );
+ const targetParentIndex = Math.max(
+ Math.min(desiredRelativeLevel, currentLevel - nextLevel),
+ 0
+ );
+ if (candidateBlockParents[targetParentIndex]) {
+ let newBlockIndex = candidateBlockData.blockIndex;
+ if (candidateBlockParents[targetParentIndex].nestingLevel === nextBlock?.nestingLevel) {
+ newBlockIndex = nextBlock?.blockIndex;
+ } else {
+ for (let i2 = candidateBlockIndex; i2 >= 0; i2--) {
+ const blockData = blocksData[i2];
+ if (blockData.rootClientId === candidateBlockParents[targetParentIndex].rootClientId) {
+ newBlockIndex = blockData.blockIndex + 1;
+ break;
+ }
+ }
+ }
+ return {
+ rootClientId: candidateBlockParents[targetParentIndex].rootClientId,
+ clientId: candidateBlockData.clientId,
+ blockIndex: newBlockIndex,
+ dropPosition: candidateEdge
+ };
+ }
}
- onReplace(content, content.length - 1, -1);
}
- const { defaultView } = element.ownerDocument;
- return subscribeDelegatedListener3(defaultView, "paste", _onPaste);
+ if (!candidateBlockData.canInsertDraggedBlocksAsSibling) {
+ return;
+ }
+ const offset4 = isDraggingBelow ? 1 : 0;
+ return {
+ rootClientId: candidateBlockData.rootClientId,
+ clientId: candidateBlockData.clientId,
+ blockIndex: candidateBlockData.blockIndex + offset4,
+ dropPosition: candidateEdge
+ };
+ }
+ var EXPAND_THROTTLE_OPTIONS = {
+ leading: false,
+ // Don't call the function immediately on the first call.
+ trailing: true
+ // Do call the function on the last call.
};
-
- // packages/block-editor/build-module/components/rich-text/event-listeners/delete.mjs
- var import_keycodes24 = __toESM(require_keycodes(), 1);
- var import_rich_text14 = __toESM(require_rich_text(), 1);
- var { subscribeOwnedListener: subscribeOwnedListener8 } = unlock(import_rich_text14.privateApis);
- var delete_default = (props) => (element) => {
- function onKeyDown(event) {
- const { keyCode } = event;
- if (event.defaultPrevented) {
- return;
- }
- const { value, onMerge, onRemove } = props.current;
- if (keyCode === import_keycodes24.DELETE || keyCode === import_keycodes24.BACKSPACE) {
- const { start: start2, end, text } = value;
- const isReverse = keyCode === import_keycodes24.BACKSPACE;
- const hasActiveFormats = value.activeFormats && !!value.activeFormats.length;
- if (!(0, import_rich_text14.isCollapsed)(value) || hasActiveFormats || isReverse && start2 !== 0 || !isReverse && end !== text.length) {
+ function useListViewDropZone({
+ dropZoneElement,
+ updateExpansion
+ }) {
+ const {
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlockIndex: getBlockIndex2,
+ getBlockCount: getBlockCount2,
+ getDraggedBlockClientIds: getDraggedBlockClientIds2,
+ canInsertBlocks: canInsertBlocks2
+ } = (0, import_data136.useSelect)(store);
+ const [target, setTarget] = (0, import_element203.useState)();
+ const { rootClientId: targetRootClientId, blockIndex: targetBlockIndex } = target || {};
+ const onBlockDrop2 = useOnBlockDrop(targetRootClientId, targetBlockIndex);
+ const rtl = (0, import_i18n115.isRTL)();
+ const previousRootClientId = (0, import_compose76.usePrevious)(targetRootClientId);
+ const maybeExpandBlock = (0, import_element203.useCallback)(
+ (_target) => {
+ const { rootClientId } = _target || {};
+ if (!rootClientId) {
return;
}
- if (onMerge) {
- onMerge(!isReverse);
- } else if (onRemove && (0, import_rich_text14.isEmpty)(value) && isReverse) {
- onRemove(!isReverse);
+ if (_target?.dropPosition === "inside") {
+ updateExpansion({
+ type: "expand",
+ clientIds: [rootClientId]
+ });
}
- event.preventDefault();
- }
- }
- return subscribeOwnedListener8(element, "keydown", onKeyDown);
- };
-
- // packages/block-editor/build-module/components/rich-text/event-listeners/enter.mjs
- var import_keycodes25 = __toESM(require_keycodes(), 1);
- var import_rich_text15 = __toESM(require_rich_text(), 1);
- var import_compose92 = __toESM(require_compose(), 1);
- var { subscribeOwnedListener: subscribeOwnedListener9, ownsSelection: ownsSelection3 } = unlock(import_rich_text15.privateApis);
- var { subscribeDelegatedListener: subscribeDelegatedListener4 } = unlock(import_compose92.privateApis);
- var enter_default = (props) => (element) => {
- function onKeyDownDeprecated(event) {
- if (event.keyCode !== import_keycodes25.ENTER) {
- return;
- }
- const { onReplace, onSplit } = props.current;
- if (onReplace && onSplit) {
- event.__deprecatedOnSplit = true;
- }
- }
- function onKeyDown(event) {
- if (event.defaultPrevented) {
- return;
- }
- if (event.target !== element && !ownsSelection3(element)) {
- return;
- }
- if (event.keyCode !== import_keycodes25.ENTER) {
+ },
+ [updateExpansion]
+ );
+ const throttledMaybeExpandBlock = (0, import_compose76.useThrottle)(
+ maybeExpandBlock,
+ 500,
+ EXPAND_THROTTLE_OPTIONS
+ );
+ (0, import_element203.useEffect)(() => {
+ if (target?.dropPosition !== "inside" || previousRootClientId !== target?.rootClientId) {
+ throttledMaybeExpandBlock.cancel();
return;
}
- const {
- value,
- onChange,
- disableLineBreaks,
- onSplitAtEnd,
- onSplitAtDoubleLineEnd,
- registry
- } = props.current;
- event.preventDefault();
- const { text, start: start2, end } = value;
- if (event.shiftKey) {
- if (!disableLineBreaks) {
- onChange((0, import_rich_text15.insert)(value, "\n"));
- }
- } else if (onSplitAtEnd && start2 === end && end === text.length) {
- onSplitAtEnd();
- } else if (
- // For some blocks it's desirable to split at the end of the
- // block when there are two line breaks at the end of the
- // block, so triple Enter exits the block.
- onSplitAtDoubleLineEnd && start2 === end && end === text.length && text.slice(-2) === "\n\n"
- ) {
- registry.batch(() => {
- const _value = { ...value };
- _value.start = _value.end - 2;
- onChange((0, import_rich_text15.remove)(_value));
- onSplitAtDoubleLineEnd();
- });
- } else if (!disableLineBreaks) {
- onChange((0, import_rich_text15.insert)(value, "\n"));
- }
- }
- const { defaultView } = element.ownerDocument;
- const unsubscribeKeyDown = subscribeDelegatedListener4(
- defaultView,
- "keydown",
- onKeyDown
- );
- const unsubscribeKeyDownDeprecated = subscribeOwnedListener9(
- element,
- "keydown",
- onKeyDownDeprecated,
- true
+ throttledMaybeExpandBlock(target);
+ }, [previousRootClientId, target, throttledMaybeExpandBlock]);
+ const draggedBlockClientIds = getDraggedBlockClientIds2();
+ const throttled = (0, import_compose76.useThrottle)(
+ (0, import_element203.useCallback)(
+ (event, currentTarget) => {
+ const position = { x: event.clientX, y: event.clientY };
+ const isBlockDrag = !!draggedBlockClientIds?.length;
+ const blockElements = Array.from(
+ currentTarget.querySelectorAll("[data-block]")
+ );
+ const blocksData = blockElements.map((blockElement) => {
+ const clientId = blockElement.dataset.block;
+ const isExpanded = blockElement.dataset.expanded === "true";
+ const isDraggedBlock = blockElement.classList.contains("is-dragging");
+ const nestingLevel = parseInt(
+ blockElement.getAttribute("aria-level"),
+ 10
+ );
+ const rootClientId = getBlockRootClientId2(clientId);
+ return {
+ clientId,
+ isExpanded,
+ rootClientId,
+ blockIndex: getBlockIndex2(clientId),
+ element: blockElement,
+ nestingLevel: nestingLevel || void 0,
+ isDraggedBlock: isBlockDrag ? isDraggedBlock : false,
+ innerBlockCount: getBlockCount2(clientId),
+ canInsertDraggedBlocksAsSibling: isBlockDrag ? canInsertBlocks2(
+ draggedBlockClientIds,
+ rootClientId
+ ) : true,
+ canInsertDraggedBlocksAsChild: isBlockDrag ? canInsertBlocks2(draggedBlockClientIds, clientId) : true
+ };
+ });
+ const newTarget = getListViewDropTarget(
+ blocksData,
+ position,
+ rtl
+ );
+ if (newTarget) {
+ setTarget(newTarget);
+ }
+ },
+ [
+ canInsertBlocks2,
+ draggedBlockClientIds,
+ getBlockCount2,
+ getBlockIndex2,
+ getBlockRootClientId2,
+ rtl
+ ]
+ ),
+ 50
);
- return () => {
- unsubscribeKeyDown();
- unsubscribeKeyDownDeprecated();
- };
- };
+ const ref = (0, import_compose76.__experimentalUseDropZone)({
+ dropZoneElement,
+ onDrop(event) {
+ throttled.cancel();
+ if (target) {
+ onBlockDrop2(event);
+ }
+ setTarget(void 0);
+ },
+ onDragLeave() {
+ throttled.cancel();
+ setTarget(null);
+ },
+ onDragOver(event) {
+ throttled(event, event.currentTarget);
+ },
+ onDragEnd() {
+ throttled.cancel();
+ setTarget(void 0);
+ }
+ });
+ return { ref, target };
+ }
- // packages/block-editor/build-module/components/rich-text/event-listeners/firefox-compat.mjs
- var firefox_compat_default = (props) => (element) => {
- function onFocus() {
- const { registry } = props.current;
- if (!registry.select(store).isMultiSelecting()) {
+ // packages/block-editor/build-module/components/list-view/use-list-view-expand-selected-item.mjs
+ var import_element204 = __toESM(require_element(), 1);
+ var import_data137 = __toESM(require_data(), 1);
+ function useListViewExpandSelectedItem({
+ firstSelectedBlockClientId,
+ updateExpansion
+ }) {
+ const [selectedTreeId, setSelectedTreeId] = (0, import_element204.useState)(null);
+ const { selectedBlockParentClientIds } = (0, import_data137.useSelect)(
+ (select3) => {
+ const { getBlockParents: getBlockParents2 } = select3(store);
+ return {
+ selectedBlockParentClientIds: getBlockParents2(
+ firstSelectedBlockClientId,
+ false
+ )
+ };
+ },
+ [firstSelectedBlockClientId]
+ );
+ (0, import_element204.useEffect)(() => {
+ if (selectedTreeId === firstSelectedBlockClientId) {
return;
}
- const parentEditable = element.parentElement.closest(
- '[contenteditable="true"]'
- );
- if (parentEditable) {
- parentEditable.focus();
+ if (selectedBlockParentClientIds?.length) {
+ updateExpansion({
+ type: "expand",
+ clientIds: selectedBlockParentClientIds
+ });
}
- }
- element.addEventListener("focus", onFocus);
- return () => {
- element.removeEventListener("focus", onFocus);
+ }, [
+ firstSelectedBlockClientId,
+ selectedBlockParentClientIds,
+ selectedTreeId,
+ updateExpansion
+ ]);
+ return {
+ setSelectedTreeId
};
- };
+ }
- // packages/block-editor/build-module/components/rich-text/event-listeners/index.mjs
- var allEventListeners = [
- before_input_rules_default,
- input_rules_default,
- insert_replacement_text_default,
- remove_browser_shortcuts_default,
- shortcuts_default,
- input_events_default,
- undo_automatic_change_default,
- paste_handler_default,
- delete_default,
- enter_default,
- firefox_compat_default
- ];
- function useEventListeners(props) {
- const propsRef = (0, import_element232.useRef)(props);
- (0, import_element232.useInsertionEffect)(() => {
- propsRef.current = props;
- });
- const refEffects = (0, import_element232.useMemo)(
- () => allEventListeners.map((refEffect) => refEffect(propsRef)),
- [propsRef]
- );
- return (0, import_compose93.useRefEffect)(
- (element) => {
- if (!props.isSelected) {
- return;
+ // packages/block-editor/build-module/components/list-view/use-clipboard-handler.mjs
+ var import_data138 = __toESM(require_data(), 1);
+ var import_compose77 = __toESM(require_compose(), 1);
+ function useClipboardHandler2({ selectBlock: selectBlock2 }) {
+ const registry = (0, import_data138.useRegistry)();
+ const {
+ getBlockOrder: getBlockOrder2,
+ getBlockRootClientId: getBlockRootClientId2,
+ getBlocksByClientId: getBlocksByClientId2,
+ getPreviousBlockClientId: getPreviousBlockClientId2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ getSettings: getSettings8,
+ canInsertBlockType: canInsertBlockType2,
+ canRemoveBlocks: canRemoveBlocks2
+ } = (0, import_data138.useSelect)(store);
+ const { flashBlock: flashBlock2, removeBlocks: removeBlocks2, replaceBlocks: replaceBlocks2, insertBlocks: insertBlocks2 } = (0, import_data138.useDispatch)(store);
+ const notifyCopy = useNotifyCopy();
+ return (0, import_compose77.useRefEffect)((node) => {
+ function updateFocusAndSelection(focusClientId, shouldSelectBlock) {
+ if (shouldSelectBlock) {
+ selectBlock2(void 0, focusClientId, null, null);
}
- const cleanups = refEffects.map((effect) => effect(element));
- return () => {
- cleanups.forEach((cleanup) => cleanup());
+ focusListItem(focusClientId, node);
+ }
+ function getBlocksToUpdate(clientId) {
+ const selectedBlockClientIds = getSelectedBlockClientIds2();
+ const isUpdatingSelectedBlocks = selectedBlockClientIds.includes(clientId);
+ const firstBlockClientId = isUpdatingSelectedBlocks ? selectedBlockClientIds[0] : clientId;
+ const firstBlockRootClientId = getBlockRootClientId2(firstBlockClientId);
+ const blocksToUpdate = isUpdatingSelectedBlocks ? selectedBlockClientIds : [clientId];
+ return {
+ blocksToUpdate,
+ firstBlockClientId,
+ firstBlockRootClientId,
+ originallySelectedBlockClientIds: selectedBlockClientIds
};
- },
- [refEffects, props.isSelected]
- );
+ }
+ function handler(event) {
+ if (event.defaultPrevented) {
+ return;
+ }
+ if (!node.contains(event.target.ownerDocument.activeElement)) {
+ return;
+ }
+ const listViewRow = event.target.ownerDocument.activeElement?.closest(
+ "[role=row]"
+ );
+ const clientId = listViewRow?.dataset?.block;
+ if (!clientId) {
+ return;
+ }
+ const {
+ blocksToUpdate: selectedBlockClientIds,
+ firstBlockClientId,
+ firstBlockRootClientId,
+ originallySelectedBlockClientIds
+ } = getBlocksToUpdate(clientId);
+ if (selectedBlockClientIds.length === 0) {
+ return;
+ }
+ event.preventDefault();
+ if (event.type === "copy" || event.type === "cut") {
+ if (selectedBlockClientIds.length === 1) {
+ flashBlock2(selectedBlockClientIds[0]);
+ }
+ notifyCopy(event.type, selectedBlockClientIds);
+ const blocks2 = getBlocksByClientId2(selectedBlockClientIds);
+ setClipboardBlocks(event, blocks2, registry);
+ }
+ if (event.type === "cut") {
+ if (!canRemoveBlocks2(selectedBlockClientIds)) {
+ return;
+ }
+ let blockToFocus = getPreviousBlockClientId2(firstBlockClientId) ?? // If the previous block is not found (when the first block is deleted),
+ // fallback to focus the parent block.
+ firstBlockRootClientId;
+ removeBlocks2(selectedBlockClientIds, false);
+ const shouldUpdateSelection = originallySelectedBlockClientIds.length > 0 && getSelectedBlockClientIds2().length === 0;
+ if (!blockToFocus) {
+ blockToFocus = getBlockOrder2()[0];
+ }
+ updateFocusAndSelection(blockToFocus, shouldUpdateSelection);
+ } else if (event.type === "paste") {
+ const {
+ __experimentalCanUserUseUnfilteredHTML: canUserUseUnfilteredHTML
+ } = getSettings8();
+ const blocks2 = getPasteBlocks(
+ event,
+ canUserUseUnfilteredHTML
+ );
+ if (selectedBlockClientIds.length === 1) {
+ const [selectedBlockClientId] = selectedBlockClientIds;
+ if (blocks2.every(
+ (block) => canInsertBlockType2(
+ block.name,
+ selectedBlockClientId
+ )
+ )) {
+ insertBlocks2(
+ blocks2,
+ void 0,
+ selectedBlockClientId
+ );
+ updateFocusAndSelection(blocks2[0]?.clientId, false);
+ return;
+ }
+ }
+ replaceBlocks2(
+ selectedBlockClientIds,
+ blocks2,
+ blocks2.length - 1,
+ -1
+ );
+ updateFocusAndSelection(blocks2[0]?.clientId, false);
+ }
+ }
+ node.ownerDocument.addEventListener("copy", handler);
+ node.ownerDocument.addEventListener("cut", handler);
+ node.ownerDocument.addEventListener("paste", handler);
+ return () => {
+ node.ownerDocument.removeEventListener("copy", handler);
+ node.ownerDocument.removeEventListener("cut", handler);
+ node.ownerDocument.removeEventListener("paste", handler);
+ };
+ }, []);
}
- // packages/block-editor/build-module/components/rich-text/format-edit.mjs
- var import_rich_text16 = __toESM(require_rich_text(), 1);
- var import_element233 = __toESM(require_element(), 1);
- var import_jsx_runtime395 = __toESM(require_jsx_runtime(), 1);
- var import_react16 = __toESM(require_react(), 1);
- var DEFAULT_BLOCK_CONTEXT = {};
- var usesContextKey = /* @__PURE__ */ Symbol("usesContext");
- function Edit3({
- onChange,
- onFocus,
- value,
- forwardedRef,
- settings: settings2,
- isVisible
- }) {
- const {
- name,
- edit: EditFunction,
- [usesContextKey]: usesContext
- } = settings2;
- const blockContext = (0, import_element233.useContext)(block_context_default);
- const context = (0, import_element233.useMemo)(() => {
- return usesContext ? Object.fromEntries(
- Object.entries(blockContext).filter(
- ([key]) => usesContext.includes(key)
- )
- ) : DEFAULT_BLOCK_CONTEXT;
- }, [usesContext, blockContext]);
- if (!EditFunction) {
- return null;
+ // packages/block-editor/build-module/components/list-view/index.mjs
+ var import_jsx_runtime339 = __toESM(require_jsx_runtime(), 1);
+ var expansion = (state, action) => {
+ const { type, clientIds } = action;
+ if (type === "replace") {
+ const next = Object.fromEntries(
+ clientIds.map((id) => [id, true])
+ );
+ return (0, import_is_shallow_equal3.isShallowEqual)(state, next) ? state : next;
}
- const activeFormat = (0, import_rich_text16.getActiveFormat)(value, name);
- const isActive = activeFormat !== void 0;
- const activeObject = (0, import_rich_text16.getActiveObject)(value);
- const isObjectActive = activeObject !== void 0 && activeObject.type === name;
- return /* @__PURE__ */ (0, import_jsx_runtime395.jsx)(
- EditFunction,
- {
- isActive,
- isVisible,
- activeAttributes: isActive ? activeFormat.attributes || {} : {},
- isObjectActive,
- activeObjectAttributes: isObjectActive ? activeObject.attributes || {} : {},
- value,
- onChange,
- onFocus,
- contentRef: forwardedRef,
- context
- },
- name
- );
- }
- function FormatEdit({ formatTypes, ...props }) {
- return formatTypes.map((settings2) => /* @__PURE__ */ (0, import_react16.createElement)(Edit3, { settings: settings2, ...props, key: settings2.name }));
- }
-
- // packages/block-editor/build-module/components/rich-text/content.mjs
- var import_element234 = __toESM(require_element(), 1);
- var import_blocks84 = __toESM(require_blocks(), 1);
- var import_deprecated24 = __toESM(require_deprecated(), 1);
- var import_jsx_runtime396 = __toESM(require_jsx_runtime(), 1);
- function valueToHTMLString(value, multiline) {
- if (rich_text_default.isEmpty(value)) {
- const multilineTag = getMultilineTag(multiline);
- return multilineTag ? `<${multilineTag}></${multilineTag}>` : "";
+ if (type !== "expand" && type !== "collapse") {
+ return state;
}
- if (Array.isArray(value)) {
- (0, import_deprecated24.default)("wp.blockEditor.RichText value prop as children type", {
- since: "6.1",
- version: "6.3",
- alternative: "value prop as string",
- link: "https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"
- });
- return import_blocks84.children.toHTML(value);
+ const isExpand = type === "expand";
+ const changed = clientIds.filter((id) => state[id] !== isExpand);
+ if (!changed.length) {
+ return state;
}
- if (typeof value === "string") {
- return value;
+ return {
+ ...state,
+ ...Object.fromEntries(changed.map((id) => [id, isExpand]))
+ };
+ };
+ function ListViewComponent({
+ id,
+ blocks: blocks2,
+ dropZoneElement,
+ showBlockMovers = false,
+ isExpanded = false,
+ showAppender = false,
+ blockSettingsMenu: BlockSettingsMenu2 = BlockSettingsDropdown,
+ rootClientId,
+ description,
+ onSelect,
+ additionalBlockContent: AdditionalBlockContent
+ }, ref) {
+ if (blocks2) {
+ (0, import_deprecated15.default)(
+ "`blocks` property in `wp.blockEditor.__experimentalListView`",
+ {
+ since: "6.3",
+ alternative: "`rootClientId` property"
+ }
+ );
}
- return value.toHTMLString();
- }
- function Content3({
- value,
- tagName: Tag,
- multiline,
- format: format6,
- ...props
- }) {
- value = /* @__PURE__ */ (0, import_jsx_runtime396.jsx)(import_element234.RawHTML, { children: valueToHTMLString(value, multiline) });
- return Tag ? /* @__PURE__ */ (0, import_jsx_runtime396.jsx)(Tag, { ...props, children: value }) : value;
- }
-
- // packages/block-editor/build-module/components/rich-text/with-deprecations.mjs
- var import_element236 = __toESM(require_element(), 1);
- var import_blocks85 = __toESM(require_blocks(), 1);
- var import_rich_text18 = __toESM(require_rich_text(), 1);
- var import_deprecated26 = __toESM(require_deprecated(), 1);
-
- // packages/block-editor/build-module/components/rich-text/multiline.mjs
- var import_element235 = __toESM(require_element(), 1);
- var import_deprecated25 = __toESM(require_deprecated(), 1);
- var import_data153 = __toESM(require_data(), 1);
- var import_keycodes26 = __toESM(require_keycodes(), 1);
- var import_rich_text17 = __toESM(require_rich_text(), 1);
- var import_jsx_runtime397 = __toESM(require_jsx_runtime(), 1);
- function RichTextMultiline({
- children,
- identifier,
- tagName: TagName = "div",
- value = "",
- onChange,
- multiline,
- ...props
- }, forwardedRef) {
- (0, import_deprecated25.default)("wp.blockEditor.RichText multiline prop", {
- since: "6.1",
- version: "6.3",
- alternative: "nested blocks (InnerBlocks)",
- link: "https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"
+ const instanceId = (0, import_compose78.useInstanceId)(ListViewComponent);
+ const { clientIdsTree, draggedClientIds, selectedClientIds } = useListViewClientIds({ blocks: blocks2, rootClientId });
+ const blockIndexes = useListViewBlockIndexes(clientIdsTree);
+ const { getBlock: getBlock2, getSelectedBlockClientIds: getSelectedBlockClientIds2 } = (0, import_data139.useSelect)(store);
+ const { visibleBlockCount } = (0, import_data139.useSelect)(
+ (select3) => {
+ const { getGlobalBlockCount: getGlobalBlockCount2, getClientIdsOfDescendants: getClientIdsOfDescendants2 } = select3(store);
+ const draggedBlockCount = draggedClientIds?.length > 0 ? getClientIdsOfDescendants2(draggedClientIds).length + 1 : 0;
+ return {
+ visibleBlockCount: getGlobalBlockCount2() - draggedBlockCount
+ };
+ },
+ [draggedClientIds]
+ );
+ const { updateBlockSelection } = useBlockSelection();
+ const [expansionState, updateExpansion] = (0, import_element205.useReducer)(expansion, {});
+ const [insertedBlockClientId, setInsertedBlockClientId] = (0, import_element205.useState)(null);
+ const { setSelectedTreeId } = useListViewExpandSelectedItem({
+ firstSelectedBlockClientId: selectedClientIds[0],
+ updateExpansion
});
- const { clientId } = useBlockEditContext();
- const { getSelectionStart: getSelectionStart2, getSelectionEnd: getSelectionEnd2 } = (0, import_data153.useSelect)(store);
- const { selectionChange: selectionChange2 } = (0, import_data153.useDispatch)(store);
- const multilineTagName = getMultilineTag(multiline);
- value = value || `<${multilineTagName}></${multilineTagName}>`;
- const padded = `</${multilineTagName}>${value}<${multilineTagName}>`;
- const values = padded.split(
- `</${multilineTagName}><${multilineTagName}>`
+ const selectEditorBlock = (0, import_element205.useCallback)(
+ /**
+ * @param {MouseEvent | KeyboardEvent | undefined} event
+ * @param {string} blockClientId
+ * @param {null | undefined | -1 | 1} focusPosition
+ */
+ (event, blockClientId, focusPosition) => {
+ updateBlockSelection(event, blockClientId, null, focusPosition);
+ setSelectedTreeId(blockClientId);
+ if (onSelect) {
+ onSelect(getBlock2(blockClientId));
+ }
+ },
+ [setSelectedTreeId, updateBlockSelection, onSelect, getBlock2]
);
- values.shift();
- values.pop();
- function _onChange(newValues) {
- onChange(
- `<${multilineTagName}>${newValues.join(
- `</${multilineTagName}><${multilineTagName}>`
- )}</${multilineTagName}>`
- );
- }
- return /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(TagName, { ref: forwardedRef, children: values.map((_value, index2) => {
- return /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
- RichTextWrapper,
- {
- identifier: `${identifier}-${index2}`,
- tagName: multilineTagName,
- value: _value,
- onChange: (newValue) => {
- const newValues = values.slice();
- newValues[index2] = newValue;
- _onChange(newValues);
- },
- isSelected: void 0,
- onKeyDown: (event) => {
- if (event.keyCode !== import_keycodes26.ENTER) {
- return;
- }
- event.preventDefault();
- const { offset: start2 } = getSelectionStart2();
- const { offset: end } = getSelectionEnd2();
- if (typeof start2 !== "number" || typeof end !== "number") {
- return;
- }
- const richTextValue = (0, import_rich_text17.create)({ html: _value });
- richTextValue.start = start2;
- richTextValue.end = end;
- const array = (0, import_rich_text17.split)(richTextValue).map(
- (v2) => (0, import_rich_text17.toHTMLString)({ value: v2 })
- );
- const newValues = values.slice();
- newValues.splice(index2, 1, ...array);
- _onChange(newValues);
- selectionChange2(
- clientId,
- `${identifier}-${index2 + 1}`,
- 0,
- 0
- );
- },
- onMerge: (forward) => {
- const newValues = values.slice();
- let offset4 = 0;
- if (forward) {
- if (!newValues[index2 + 1]) {
- return;
- }
- newValues.splice(
- index2,
- 2,
- newValues[index2] + newValues[index2 + 1]
- );
- offset4 = newValues[index2].length - 1;
- } else {
- if (!newValues[index2 - 1]) {
- return;
- }
- newValues.splice(
- index2 - 1,
- 2,
- newValues[index2 - 1] + newValues[index2]
- );
- offset4 = newValues[index2 - 1].length - 1;
- }
- _onChange(newValues);
- selectionChange2(
- clientId,
- `${identifier}-${index2 - (forward ? 0 : 1)}`,
- offset4,
- offset4
- );
- },
- ...props
- },
- index2
- );
- }) });
- }
- var multiline_default = (0, import_element235.forwardRef)(RichTextMultiline);
-
- // packages/block-editor/build-module/components/rich-text/with-deprecations.mjs
- var import_jsx_runtime398 = __toESM(require_jsx_runtime(), 1);
- function withDeprecations(Component5) {
- return (0, import_element236.forwardRef)((props, ref) => {
- let value = props.value;
- let onChange = props.onChange;
- if (Array.isArray(value)) {
- (0, import_deprecated26.default)("wp.blockEditor.RichText value prop as children type", {
- since: "6.1",
- version: "6.3",
- alternative: "value prop as string",
- link: "https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"
- });
- value = import_blocks85.children.toHTML(props.value);
- onChange = (newValue) => props.onChange(
- import_blocks85.children.fromDOM(
- (0, import_rich_text18.__unstableCreateElement)(document, newValue).childNodes
- )
- );
+ const { ref: dropZoneRef, target: blockDropTarget } = useListViewDropZone({
+ dropZoneElement,
+ updateExpansion
+ });
+ const elementRef = (0, import_element205.useRef)();
+ const clipBoardRef = useClipboardHandler2({
+ selectBlock: selectEditorBlock
+ });
+ const focusSelectedBlock = (0, import_element205.useCallback)(
+ (node) => {
+ const [firstSelectedClientId] = getSelectedBlockClientIds2();
+ if (firstSelectedClientId && node) {
+ focusListItem(firstSelectedClientId, node);
+ }
+ },
+ [getSelectedBlockClientIds2]
+ );
+ const treeGridRef = (0, import_compose78.useMergeRefs)([
+ clipBoardRef,
+ focusSelectedBlock,
+ elementRef,
+ dropZoneRef,
+ ref
+ ]);
+ const expandRow = (0, import_element205.useCallback)((row) => {
+ const clientId = row?.dataset?.block;
+ if (clientId) {
+ updateExpansion({ type: "expand", clientIds: [clientId] });
}
- const NewComponent = props.multiline ? multiline_default : Component5;
- return /* @__PURE__ */ (0, import_jsx_runtime398.jsx)(
- NewComponent,
- {
- ...props,
- value,
- onChange,
- ref
+ }, []);
+ const collapseRow = (0, import_element205.useCallback)((row) => {
+ const clientId = row?.dataset?.block;
+ if (clientId) {
+ updateExpansion({ type: "collapse", clientIds: [clientId] });
+ }
+ }, []);
+ const focusRow = (0, import_element205.useCallback)(
+ (event, startRow, endRow) => {
+ if (event.shiftKey) {
+ updateBlockSelection(
+ event,
+ startRow?.dataset?.block,
+ endRow?.dataset?.block
+ );
}
- );
- });
- }
-
- // packages/block-editor/build-module/components/rich-text/toolbar-button.mjs
- var import_components179 = __toESM(require_components(), 1);
- var import_keycodes27 = __toESM(require_keycodes(), 1);
- var import_jsx_runtime399 = __toESM(require_jsx_runtime(), 1);
- function RichTextToolbarButton({
- name,
- shortcutType,
- shortcutCharacter,
- ...props
- }) {
- let shortcut;
- let fillName = "RichText.ToolbarControls";
- if (name) {
- fillName += `.${name}`;
- }
- if (shortcutType && shortcutCharacter) {
- shortcut = import_keycodes27.displayShortcut[shortcutType](shortcutCharacter);
- }
- return /* @__PURE__ */ (0, import_jsx_runtime399.jsx)(import_components179.Fill, { name: fillName, children: /* @__PURE__ */ (0, import_jsx_runtime399.jsx)(import_components179.ToolbarButton, { ...props, shortcut }) });
- }
-
- // packages/block-editor/build-module/components/rich-text/index.mjs
- var import_jsx_runtime400 = __toESM(require_jsx_runtime(), 1);
- var {
- useRichText,
- KeyboardShortcutContext,
- InputEventContext,
- RichTextShortcut,
- RichTextInputEvent
- } = unlock(import_rich_text19.privateApis);
- var instanceIdKey = /* @__PURE__ */ Symbol("instanceId");
- function RichTextWrapper({
- children,
- tagName = "div",
- value: adjustedValue = "",
- onChange: adjustedOnChange,
- isSelected: originalIsSelected,
- multiline,
- inlineToolbar,
- wrapperClassName,
- autocompleters,
- onReplace,
- placeholder,
- allowedFormats,
- withoutInteractiveFormatting,
- onRemove,
- onMerge,
- onSplit,
- __unstableOnSplitAtEnd: onSplitAtEnd,
- __unstableOnSplitAtDoubleLineEnd: onSplitAtDoubleLineEnd,
- identifier,
- preserveWhiteSpace,
- __unstablePastePlainText: pastePlainText,
- __unstableEmbedURLOnPaste,
- __unstableDisableFormats: disableFormats,
- disableLineBreaks,
- __unstableAllowPrefixTransformations,
- readOnly,
- ...props
- }, forwardedRef) {
- if (onSplit) {
- (0, import_deprecated27.default)("wp.blockEditor.RichText onSplit prop", {
- since: "6.4",
- alternative: 'block.json support key: "splitting"'
- });
- }
- const instanceId = (0, import_compose94.useInstanceId)(RichTextWrapper);
- const anchorRef = (0, import_element237.useRef)();
- const [anchorElement, setAnchorElement] = (0, import_element237.useState)(null);
- const context = useBlockEditContext();
- const { clientId, isSelected: isBlockSelected2, name: blockName } = context;
- const blockBindings = context[blockBindingsKey];
- const hasDefaultEditingMode = context[blockEditingModeKey] === "default";
- const blockContext = (0, import_element237.useContext)(block_context_default);
- const registry = (0, import_data154.useRegistry)();
- const selector3 = (select3) => {
- if (!isBlockSelected2) {
- return { isSelected: false };
+ },
+ [updateBlockSelection]
+ );
+ useListViewCollapseItems({ updateExpansion });
+ const firstDraggedBlockClientId = draggedClientIds?.[0];
+ const { blockDropTargetIndex, blockDropPosition, firstDraggedBlockIndex } = (0, import_element205.useMemo)(() => {
+ let _blockDropTargetIndex, _firstDraggedBlockIndex;
+ if (blockDropTarget?.clientId) {
+ const foundBlockIndex = blockIndexes[blockDropTarget.clientId];
+ _blockDropTargetIndex = foundBlockIndex === void 0 || blockDropTarget?.dropPosition === "top" ? foundBlockIndex : foundBlockIndex + 1;
+ } else if (blockDropTarget === null) {
+ _blockDropTargetIndex = null;
}
- const { getSelectionStart: getSelectionStart22, getSelectionEnd: getSelectionEnd22 } = select3(store);
- const selectionStart2 = getSelectionStart22();
- const selectionEnd2 = getSelectionEnd22();
- let isSelected2;
- if (originalIsSelected === void 0) {
- isSelected2 = selectionStart2.clientId === clientId && selectionEnd2.clientId === clientId && (identifier ? selectionStart2.attributeKey === identifier : selectionStart2[instanceIdKey] === instanceId);
- } else if (originalIsSelected) {
- isSelected2 = selectionStart2.clientId === clientId;
+ if (firstDraggedBlockClientId) {
+ const foundBlockIndex = blockIndexes[firstDraggedBlockClientId];
+ _firstDraggedBlockIndex = foundBlockIndex === void 0 || blockDropTarget?.dropPosition === "top" ? foundBlockIndex : foundBlockIndex + 1;
}
return {
- selectionStart: isSelected2 ? selectionStart2.offset : void 0,
- selectionEnd: isSelected2 ? selectionEnd2.offset : void 0,
- isSelected: isSelected2
+ blockDropTargetIndex: _blockDropTargetIndex,
+ blockDropPosition: blockDropTarget?.dropPosition,
+ firstDraggedBlockIndex: _firstDraggedBlockIndex
};
- };
- const { selectionStart, selectionEnd, isSelected } = (0, import_data154.useSelect)(selector3, [
- clientId,
- identifier,
- instanceId,
- originalIsSelected,
- isBlockSelected2
- ]);
- const { disableBoundBlock, bindingsPlaceholder, bindingsLabel } = (0, import_data154.useSelect)(
- (select3) => {
- if (!blockBindings?.[identifier]) {
- return {};
- }
- const { __experimentalBlockBindingsSupportedAttributes } = select3(store).getSettings();
- const bindableAttributes = __experimentalBlockBindingsSupportedAttributes?.[blockName];
- if (!bindableAttributes) {
- return {};
- }
- const relatedBinding = blockBindings[identifier];
- const blockBindingsSource = (0, import_blocks86.getBlockBindingsSource)(
- relatedBinding.source
- );
- const blockBindingsContext = {};
- if (blockBindingsSource?.usesContext?.length) {
- for (const key of blockBindingsSource.usesContext) {
- blockBindingsContext[key] = blockContext[key];
- }
- }
- const _disableBoundBlock = !blockBindingsSource?.canUserEditValue?.({
- select: select3,
- context: blockBindingsContext,
- args: relatedBinding.args
- });
- if (adjustedValue.length > 0) {
- return {
- disableBoundBlock: _disableBoundBlock,
- // Null values will make them fall back to the default behavior.
- bindingsPlaceholder: null,
- bindingsLabel: null
- };
- }
- const { getBlockAttributes: getBlockAttributes3 } = select3(store);
- const blockAttributes = getBlockAttributes3(clientId);
- let clientSideFieldLabel = null;
- if (blockBindingsSource?.getFieldsList) {
- const fieldsItems = blockBindingsSource.getFieldsList({
- select: select3,
- context: blockBindingsContext
- });
- clientSideFieldLabel = fieldsItems?.find(
- (item) => (0, import_es65.default)(item.args, relatedBinding?.args)
- )?.label;
- }
- const bindingKey = clientSideFieldLabel ?? blockBindingsSource?.label;
- const _bindingsPlaceholder = _disableBoundBlock ? bindingKey : (0, import_i18n169.sprintf)(
- /* translators: %s: connected field label or source label */
- (0, import_i18n169.__)("Add %s"),
- bindingKey
- );
- const _bindingsLabel = _disableBoundBlock ? relatedBinding?.args?.key || blockBindingsSource?.label : (0, import_i18n169.sprintf)(
- /* translators: %s: source label or key */
- (0, import_i18n169.__)("Empty %s; start writing to edit its value"),
- relatedBinding?.args?.key || blockBindingsSource?.label
- );
- return {
- disableBoundBlock: _disableBoundBlock,
- bindingsPlaceholder: blockAttributes?.placeholder || _bindingsPlaceholder,
- bindingsLabel: _bindingsLabel
- };
- },
+ }, [blockDropTarget, blockIndexes, firstDraggedBlockClientId]);
+ const contextValue = (0, import_element205.useMemo)(
+ () => ({
+ AdditionalBlockContent,
+ BlockSettingsMenu: BlockSettingsMenu2,
+ listViewInstanceId: instanceId,
+ rootClientId,
+ setInsertedBlockClientId,
+ treeGridElementRef: elementRef,
+ updateExpansion
+ }),
[
- blockBindings,
- identifier,
- blockName,
- adjustedValue,
- clientId,
- blockContext
+ AdditionalBlockContent,
+ BlockSettingsMenu2,
+ instanceId,
+ rootClientId,
+ setInsertedBlockClientId,
+ updateExpansion
]
);
- const isInsidePatternOverrides = !!blockContext?.["pattern/overrides"];
- const hasOverrideEnabled = blockBindings?.__default?.source === "core/pattern-overrides";
- const shouldDisableForPattern = isInsidePatternOverrides && !hasOverrideEnabled;
- const shouldDisableEditing = readOnly || disableBoundBlock || shouldDisableForPattern;
- const isEditingHost = (0, import_data154.useSelect)(
- (select3) => {
- if (shouldDisableEditing || !hasDefaultEditingMode || !isBlockSelected2) {
- return false;
- }
- const { getSelectedBlockClientId: getSelectedBlockClientId2, canHostEditableRoot: canHostEditableRoot2 } = unlock(
- select3(store)
- );
- return canHostEditableRoot2(getSelectedBlockClientId2());
- },
- [shouldDisableEditing, hasDefaultEditingMode, isBlockSelected2]
- );
- const { getSelectionStart: getSelectionStart2, getSelectionEnd: getSelectionEnd2, getBlockRootClientId: getBlockRootClientId2 } = (0, import_data154.useSelect)(store);
- const { selectionChange: selectionChange2 } = (0, import_data154.useDispatch)(store);
- const adjustedAllowedFormats = getAllowedFormats({
- allowedFormats,
- disableFormats
- });
- const hasFormats = !adjustedAllowedFormats || adjustedAllowedFormats.length > 0;
- const onSelectionChange = (0, import_element237.useCallback)(
- (start2, end) => {
- const selection2 = {};
- const unset = start2 === void 0 && end === void 0;
- const baseSelection = {
- clientId,
- [identifier ? "attributeKey" : instanceIdKey]: identifier ? identifier : instanceId
- };
- if (typeof start2 === "number" || unset) {
- if (end === void 0 && getBlockRootClientId2(clientId) !== getBlockRootClientId2(getSelectionEnd2().clientId)) {
- return;
- }
- selection2.start = {
- ...baseSelection,
- offset: start2
- };
- }
- if (typeof end === "number" || unset) {
- if (start2 === void 0 && getBlockRootClientId2(clientId) !== getBlockRootClientId2(getSelectionStart2().clientId)) {
- return;
- }
- selection2.end = {
- ...baseSelection,
- offset: end
- };
- }
- selectionChange2(selection2);
- },
+ const treeStateContextValue = (0, import_element205.useMemo)(
+ () => ({
+ blockDropPosition,
+ blockDropTargetIndex,
+ blockIndexes,
+ draggedClientIds,
+ expansionState,
+ firstDraggedBlockIndex
+ }),
[
- clientId,
- getBlockRootClientId2,
- getSelectionEnd2,
- getSelectionStart2,
- identifier,
- instanceId,
- selectionChange2
+ blockDropPosition,
+ blockDropTargetIndex,
+ blockIndexes,
+ draggedClientIds,
+ expansionState,
+ firstDraggedBlockIndex
]
);
- const {
- value,
- getValue,
- onChange,
- ref: richTextRef,
- formatTypes
- } = useRichText({
- value: adjustedValue,
- onChange: adjustedOnChange,
- selectionStart,
- selectionEnd,
- onSelectionChange,
- placeholder: bindingsPlaceholder || placeholder,
- __unstableIsSelected: isSelected,
- __unstableDisableFormats: disableFormats,
- preserveWhiteSpace,
- __unstableDependencies: [tagName],
- allowedFormats: adjustedAllowedFormats,
- withoutInteractiveFormatting,
- __unstableFormatTypeHandlerContext: (0, import_element237.useMemo)(
- () => ({
- richTextIdentifier: identifier,
- blockClientId: clientId
- }),
- [identifier, clientId]
- )
- });
- const autocompleteProps = useBlockEditorAutocompleteProps({
- onReplace,
- completers: autocompleters,
- record: value,
- onChange
- });
- const {
- "aria-autocomplete": ariaAutocomplete,
- "aria-haspopup": ariaHasPopup,
- "aria-controls": ariaControls,
- "aria-owns": ariaOwns,
- "aria-activedescendant": ariaActiveDescendant
- } = autocompleteProps;
- (0, import_element237.useEffect)(() => {
- if (!isSelected) {
- return;
- }
- const host2 = anchorRef.current?.parentElement?.closest(
- '[contenteditable="true"]'
- );
- if (!host2) {
- return;
- }
- const attributes = {
- "aria-autocomplete": ariaAutocomplete,
- "aria-haspopup": ariaHasPopup,
- "aria-controls": ariaControls,
- "aria-owns": ariaOwns,
- "aria-activedescendant": ariaActiveDescendant
- };
- for (const [key, value_] of Object.entries(attributes)) {
- if (value_ === void 0) {
- host2.removeAttribute(key);
- } else {
- host2.setAttribute(key, value_);
- }
+ const [fixedListWindow] = (0, import_compose78.__experimentalUseFixedWindowList)(
+ elementRef,
+ BLOCK_LIST_ITEM_HEIGHT,
+ visibleBlockCount,
+ {
+ // Ensure that the windowing logic is recalculated when the expanded state changes.
+ // This is necessary because expanding a collapsed block in a short list view can
+ // switch the list view to a tall list view with a scrollbar, and vice versa.
+ // When this happens, the windowing logic needs to be recalculated to ensure that
+ // the correct number of blocks are rendered, by rechecking for a scroll container.
+ expandedState: expansionState,
+ useWindowing: true,
+ windowOverscan: 40
}
- return () => {
- for (const key of Object.keys(attributes)) {
- host2.removeAttribute(key);
- }
- };
- }, [
- isSelected,
- ariaAutocomplete,
- ariaHasPopup,
- ariaControls,
- ariaOwns,
- ariaActiveDescendant
- ]);
- useMarkPersistent({ html: adjustedValue, value });
- const keyboardShortcuts = (0, import_element237.useRef)(/* @__PURE__ */ new Set());
- const inputEvents = (0, import_element237.useRef)(/* @__PURE__ */ new Set());
- function onFocus() {
- anchorRef.current?.focus();
- }
- let tabIndex = props.tabIndex;
- if (isEditingHost) {
- tabIndex = props.tabIndex ?? 0;
- } else if (!shouldDisableEditing && props.tabIndex === 0) {
- tabIndex = null;
+ );
+ if (!clientIdsTree.length && !showAppender) {
+ return null;
}
- const TagName = tagName;
- return /* @__PURE__ */ (0, import_jsx_runtime400.jsxs)(import_jsx_runtime400.Fragment, { children: [
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(KeyboardShortcutContext.Provider, { value: keyboardShortcuts, children: /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(InputEventContext.Provider, { value: inputEvents, children: /* @__PURE__ */ (0, import_jsx_runtime400.jsxs)(import_components180.Popover.__unstableSlotNameProvider, { value: "__unstable-block-tools-after", children: [
- children && children({ value, onChange, onFocus }),
- /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(
- FormatEdit,
- {
- value,
- onChange,
- onFocus,
- formatTypes,
- forwardedRef: anchorRef
- }
- )
- ] }) }) }),
- isSelected && hasFormats && /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(
- format_toolbar_container_default,
+ const describedById = description && `block-editor-list-view-description-${instanceId}`;
+ return /* @__PURE__ */ (0, import_jsx_runtime339.jsxs)(import_data139.AsyncModeProvider, { value: true, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
+ ListViewDropIndicatorPreview,
{
- inline: inlineToolbar,
- editableContentElement: anchorElement
+ draggedBlockClientId: firstDraggedBlockClientId,
+ listViewRef: elementRef,
+ blockDropTarget
}
),
- /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(
- TagName,
+ description && /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(VisuallyHidden, { id: describedById, children: description }),
+ /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
+ import_components121.__experimentalTreeGrid,
{
- role: "textbox",
- "aria-multiline": !disableLineBreaks,
- "aria-readonly": shouldDisableEditing,
- ...props,
- draggable: void 0,
- "aria-label": bindingsLabel || props["aria-label"] || placeholder,
- ...autocompleteProps,
- ref: (0, import_compose94.useMergeRefs)([
- // Rich text ref must be first because its focus listener
- // must be set up before any other ref calls .focus() on
- // mount.
- richTextRef,
- forwardedRef,
- autocompleteProps.ref,
- props.ref,
- useEventListeners({
- registry,
- getValue,
- onChange,
- __unstableAllowPrefixTransformations,
- formatTypes,
- onReplace,
- selectionChange: selectionChange2,
- isSelected,
- disableFormats,
- value,
- tagName,
- onSplit,
- __unstableEmbedURLOnPaste,
- pastePlainText,
- onMerge,
- onRemove,
- disableLineBreaks,
- onSplitAtEnd,
- onSplitAtDoubleLineEnd,
- keyboardShortcuts,
- inputEvents
- }),
- anchorRef,
- setAnchorElement
- ]),
- contentEditable: !shouldDisableEditing,
- suppressContentEditableWarning: true,
- className: clsx_default(
- "block-editor-rich-text__editable",
- props.className,
- "rich-text"
- ),
- tabIndex,
- "data-wp-block-attribute-key": identifier
- }
- )
- ] });
- }
- var PrivateRichText = withDeprecations(
- (0, import_element237.forwardRef)(RichTextWrapper)
- );
- PrivateRichText.Content = Content3;
- PrivateRichText.isEmpty = (value) => {
- return !value || value.length === 0;
- };
- var PublicForwardedRichTextContainer = (0, import_element237.forwardRef)((props, ref) => {
- const context = useBlockEditContext();
- const isPreviewMode = context[isPreviewModeKey];
- if (isPreviewMode) {
- const {
- children,
- tagName: Tag = "div",
- value,
- onChange,
- isSelected,
- multiline,
- inlineToolbar,
- wrapperClassName,
- autocompleters,
- onReplace,
- placeholder,
- allowedFormats,
- withoutInteractiveFormatting,
- onRemove,
- onMerge,
- onSplit,
- __unstableOnSplitAtEnd,
- __unstableOnSplitAtDoubleLineEnd,
- identifier,
- preserveWhiteSpace,
- __unstablePastePlainText,
- __unstableEmbedURLOnPaste,
- __unstableDisableFormats,
- disableLineBreaks,
- __unstableAllowPrefixTransformations,
- readOnly,
- ...contentProps
- } = props;
- return /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(
- Tag,
- {
- ref,
- ...contentProps,
- dangerouslySetInnerHTML: {
- __html: valueToHTMLString(value, multiline) || "<br>"
- }
+ id,
+ className: clsx_default("block-editor-list-view-tree", {
+ "is-dragging": draggedClientIds?.length > 0 && blockDropTargetIndex !== void 0
+ }),
+ "aria-label": (0, import_i18n116.__)("Block navigation structure"),
+ ref: treeGridRef,
+ onCollapseRow: collapseRow,
+ onExpandRow: expandRow,
+ onFocusRow: focusRow,
+ applicationAriaLabel: (0, import_i18n116.__)("Block navigation structure"),
+ "aria-describedby": describedById,
+ style: {
+ "--wp-admin--list-view-dragged-items-height": draggedClientIds?.length ? `${BLOCK_LIST_ITEM_HEIGHT * (draggedClientIds.length - 1)}px` : null
+ },
+ children: /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(ListViewContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
+ ListViewInsertedBlockContext.Provider,
+ {
+ value: insertedBlockClientId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
+ ListViewTreeStateContext.Provider,
+ {
+ value: treeStateContextValue,
+ children: /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
+ branch_default,
+ {
+ blocks: clientIdsTree,
+ parentId: rootClientId,
+ selectBlock: selectEditorBlock,
+ showBlockMovers,
+ fixedListWindow,
+ selectedClientIds,
+ isExpanded,
+ showAppender
+ }
+ )
+ }
+ )
+ }
+ ) })
}
- );
- }
- return /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(PrivateRichText, { ref, ...props, readOnly: false });
- });
- PublicForwardedRichTextContainer.Content = Content3;
- PublicForwardedRichTextContainer.isEmpty = (value) => {
- return !value || value.length === 0;
- };
- var rich_text_default = PublicForwardedRichTextContainer;
-
- // packages/block-editor/build-module/components/editable-text/index.mjs
- var import_jsx_runtime401 = __toESM(require_jsx_runtime(), 1);
- var EditableText = (0, import_element238.forwardRef)((props, ref) => {
- return /* @__PURE__ */ (0, import_jsx_runtime401.jsx)(rich_text_default, { ref, ...props, __unstableDisableFormats: true });
- });
- EditableText.Content = function Content4({
- value = "",
- tagName: Tag = "div",
- ...props
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime401.jsx)(Tag, { ...props, children: value });
- };
- var editable_text_default = EditableText;
-
- // packages/block-editor/build-module/components/plain-text/index.mjs
- var import_jsx_runtime402 = __toESM(require_jsx_runtime(), 1);
- var PlainText = (0, import_element239.forwardRef)(({ __experimentalVersion, ...props }, ref) => {
- if (__experimentalVersion === 2) {
- return /* @__PURE__ */ (0, import_jsx_runtime402.jsx)(editable_text_default, { ref, ...props });
- }
- const { className, onChange, ...remainingProps } = props;
- return /* @__PURE__ */ (0, import_jsx_runtime402.jsx)(
- import_react_autosize_textarea2.default,
+ )
+ ] });
+ }
+ var PrivateListView = (0, import_element205.forwardRef)(ListViewComponent);
+ var list_view_default2 = (0, import_element205.forwardRef)((props, ref) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(
+ PrivateListView,
{
ref,
- className: clsx_default("block-editor-plain-text", className),
- onChange: (event) => onChange(event.target.value),
- ...remainingProps
+ ...props,
+ showAppender: false,
+ rootClientId: null,
+ onSelect: null,
+ additionalBlockContent: null,
+ blockSettingsMenu: void 0
}
);
});
- var plain_text_default = PlainText;
-
- // packages/block-editor/build-module/components/responsive-block-control/index.mjs
- var import_i18n171 = __toESM(require_i18n(), 1);
- var import_element240 = __toESM(require_element(), 1);
- var import_components181 = __toESM(require_components(), 1);
- // packages/block-editor/build-module/components/responsive-block-control/label.mjs
- var import_compose95 = __toESM(require_compose(), 1);
- var import_i18n170 = __toESM(require_i18n(), 1);
- var import_jsx_runtime403 = __toESM(require_jsx_runtime(), 1);
- function ResponsiveBlockControlLabel({
- property,
- viewport,
- desc
+ // packages/block-editor/build-module/components/block-navigation/dropdown.mjs
+ var import_jsx_runtime340 = __toESM(require_jsx_runtime(), 1);
+ function BlockNavigationDropdownToggle({
+ isEnabled,
+ onToggle,
+ isOpen,
+ innerRef,
+ ...props
}) {
- const instanceId = (0, import_compose95.useInstanceId)(ResponsiveBlockControlLabel);
- const accessibleLabel = desc || (0, import_i18n170.sprintf)(
- /* translators: 1: property name. 2: viewport name. */
- (0, import_i18n170._x)(
- "Controls the %1$s property for %2$s viewports.",
- "Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."
- ),
- property,
- viewport.label
+ return /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
+ import_components122.Button,
+ {
+ __next40pxDefaultSize: true,
+ ...props,
+ ref: innerRef,
+ icon: list_view_default,
+ "aria-expanded": isOpen,
+ "aria-haspopup": "true",
+ onClick: isEnabled ? onToggle : void 0,
+ label: (0, import_i18n117.__)("List view"),
+ className: "block-editor-block-navigation",
+ "aria-disabled": !isEnabled
+ }
+ );
+ }
+ function BlockNavigationDropdown({ isDisabled, ...props }, ref) {
+ (0, import_deprecated16.default)("wp.blockEditor.BlockNavigationDropdown", {
+ since: "6.1",
+ alternative: "wp.components.Dropdown and wp.blockEditor.ListView"
+ });
+ const hasBlocks = (0, import_data140.useSelect)(
+ (select3) => !!select3(store).getBlockCount(),
+ []
+ );
+ const isEnabled = hasBlocks && !isDisabled;
+ return /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
+ import_components122.Dropdown,
+ {
+ contentClassName: "block-editor-block-navigation__popover",
+ popoverProps: { placement: "bottom-start" },
+ renderToggle: ({ isOpen, onToggle }) => /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
+ BlockNavigationDropdownToggle,
+ {
+ ...props,
+ innerRef: ref,
+ isOpen,
+ onToggle,
+ isEnabled
+ }
+ ),
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)("div", { className: "block-editor-block-navigation__container", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime340.jsx)("p", { className: "block-editor-block-navigation__label", children: (0, import_i18n117.__)("List view") }),
+ /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(list_view_default2, {})
+ ] })
+ }
);
- return /* @__PURE__ */ (0, import_jsx_runtime403.jsxs)(import_jsx_runtime403.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime403.jsx)("span", { "aria-describedby": `rbc-desc-${instanceId}`, children: viewport.label }),
- /* @__PURE__ */ (0, import_jsx_runtime403.jsx)(
- VisuallyHidden,
- {
- id: `rbc-desc-${instanceId}`,
- render: /* @__PURE__ */ (0, import_jsx_runtime403.jsx)("span", {}),
- children: accessibleLabel
- }
- )
- ] });
}
+ var dropdown_default = (0, import_element206.forwardRef)(BlockNavigationDropdown);
- // packages/block-editor/build-module/components/responsive-block-control/index.mjs
- var import_jsx_runtime404 = __toESM(require_jsx_runtime(), 1);
- function ResponsiveBlockControl(props) {
+ // packages/block-editor/build-module/components/block-styles/index.mjs
+ var import_element207 = __toESM(require_element(), 1);
+ var import_data141 = __toESM(require_data(), 1);
+ var import_compose79 = __toESM(require_compose(), 1);
+ var import_components123 = __toESM(require_components(), 1);
+ var import_i18n118 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime341 = __toESM(require_jsx_runtime(), 1);
+ var noop14 = () => {
+ };
+ function BlockStyles({ clientId, onSwitch = noop14, onHoverClassName = noop14 }) {
+ const canEdit = (0, import_data141.useSelect)(
+ (select3) => select3(store).canEditBlock(clientId),
+ [clientId]
+ );
const {
- title,
- property,
- toggleLabel,
- onIsResponsiveChange,
- renderDefaultControl,
- renderResponsiveControls,
- isResponsive = false,
- defaultLabel = {
- id: "all",
- label: (0, import_i18n171._x)("All", "screen sizes")
- },
- viewports = [
- {
- id: "small",
- label: (0, import_i18n171.__)("Small screens")
- },
- {
- id: "medium",
- label: (0, import_i18n171.__)("Medium screens")
- },
+ onSelect,
+ stylesToRender,
+ activeStyle,
+ genericPreviewBlock,
+ className: className2
+ } = useStylesForBlocks({
+ clientId,
+ onSwitch
+ });
+ const [hoveredStyle, setHoveredStyle] = (0, import_element207.useState)(null);
+ const [blockStylesAnchor, setBlockStylesAnchor] = (0, import_element207.useState)(null);
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const previewBlocks = (0, import_element207.useMemo)(() => {
+ if (!hoveredStyle || !genericPreviewBlock) {
+ return null;
+ }
+ const previewClassName = replaceActiveStyle(
+ className2,
+ activeStyle,
+ hoveredStyle
+ );
+ return [
{
- id: "large",
- label: (0, import_i18n171.__)("Large screens")
+ ...genericPreviewBlock,
+ attributes: {
+ ...genericPreviewBlock.attributes || {},
+ className: previewClassName
+ }
}
- ]
- } = props;
- if (!title || !property || !renderDefaultControl) {
+ ];
+ }, [hoveredStyle, genericPreviewBlock, className2, activeStyle]);
+ if (!canEdit || !stylesToRender || stylesToRender.length === 0) {
return null;
}
- const toggleControlLabel = toggleLabel || (0, import_i18n171.sprintf)(
- /* translators: %s: Property value for the control (eg: margin, padding, etc.). */
- (0, import_i18n171.__)("Use the same %s on all screen sizes."),
- property
- );
- const toggleHelpText = (0, import_i18n171.__)(
- "Choose whether to use the same value for all screen sizes or a unique value for each screen size."
- );
- const defaultControl = renderDefaultControl(
- /* @__PURE__ */ (0, import_jsx_runtime404.jsx)(
- ResponsiveBlockControlLabel,
- {
- property,
- viewport: defaultLabel
- }
- ),
- defaultLabel
- );
- const defaultResponsiveControls = () => {
- return viewports.map((viewport) => /* @__PURE__ */ (0, import_jsx_runtime404.jsx)(import_element240.Fragment, { children: renderDefaultControl(
- /* @__PURE__ */ (0, import_jsx_runtime404.jsx)(
- ResponsiveBlockControlLabel,
- {
- property,
- viewport
- }
- ),
- viewport
- ) }, viewport.id));
+ const debouncedSetHoveredStyle = (0, import_compose79.debounce)(setHoveredStyle, 250);
+ const onSelectStylePreview = (style) => {
+ onSelect(style);
+ onHoverClassName(null);
+ setHoveredStyle(null);
+ debouncedSetHoveredStyle.cancel();
};
- return /* @__PURE__ */ (0, import_jsx_runtime404.jsxs)("fieldset", { className: "block-editor-responsive-block-control", children: [
- /* @__PURE__ */ (0, import_jsx_runtime404.jsx)("legend", { className: "block-editor-responsive-block-control__title", children: title }),
- /* @__PURE__ */ (0, import_jsx_runtime404.jsxs)("div", { className: "block-editor-responsive-block-control__inner", children: [
- /* @__PURE__ */ (0, import_jsx_runtime404.jsx)(
- import_components181.ToggleControl,
- {
- className: "block-editor-responsive-block-control__toggle",
- label: toggleControlLabel,
- checked: !isResponsive,
- onChange: onIsResponsiveChange,
- help: toggleHelpText
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime404.jsxs)(
- "div",
+ const styleItemHandler = (item) => {
+ if (hoveredStyle === item) {
+ debouncedSetHoveredStyle.cancel();
+ return;
+ }
+ debouncedSetHoveredStyle(item);
+ onHoverClassName(item?.name ?? null);
+ };
+ const defaultStyle = getDefaultStyle(stylesToRender);
+ const hasValue3 = () => {
+ return activeStyle?.name !== defaultStyle?.name;
+ };
+ const onDeselect = () => {
+ onSelectStylePreview(defaultStyle);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
+ import_components123.__experimentalToolsPanel,
+ {
+ label: (0, import_i18n118.__)("Styles"),
+ resetAll: onDeselect,
+ panelId: clientId,
+ hasInnerWrapper: true,
+ dropdownMenuProps,
+ children: /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
+ import_components123.__experimentalToolsPanelItem,
{
- className: clsx_default(
- "block-editor-responsive-block-control__group",
+ hasValue: hasValue3,
+ label: (0, import_i18n118.__)("Variation"),
+ onDeselect,
+ isShownByDefault: true,
+ panelId: clientId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
+ "div",
{
- "is-responsive": isResponsive
+ ref: setBlockStylesAnchor,
+ className: "block-editor-block-styles",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime341.jsx)("div", { className: "block-editor-block-styles__variants", children: stylesToRender.map((style) => {
+ const buttonText = style.label || style.name;
+ return /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
+ import_components123.Button,
+ {
+ __next40pxDefaultSize: true,
+ className: clsx_default(
+ "block-editor-block-styles__item",
+ {
+ "is-active": activeStyle.name === style.name
+ }
+ ),
+ variant: "secondary",
+ label: buttonText,
+ onMouseEnter: () => styleItemHandler(style),
+ onFocus: () => styleItemHandler(style),
+ onMouseLeave: () => styleItemHandler(null),
+ onBlur: () => styleItemHandler(null),
+ onClick: () => onSelectStylePreview(style),
+ "aria-current": activeStyle.name === style.name,
+ children: /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
+ import_components123.__experimentalTruncate,
+ {
+ numberOfLines: 1,
+ className: "block-editor-block-styles__item-text",
+ children: buttonText
+ }
+ )
+ },
+ style.name
+ );
+ }) }),
+ previewBlocks && /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
+ PreviewBlockPopover,
+ {
+ blocks: previewBlocks,
+ placement: "left-start",
+ offset: 34,
+ anchor: blockStylesAnchor
+ }
+ )
+ ]
}
- ),
- children: [
- !isResponsive && defaultControl,
- isResponsive && (renderResponsiveControls ? renderResponsiveControls(viewports) : defaultResponsiveControls())
- ]
+ )
}
)
- ] })
- ] });
+ }
+ );
}
- var responsive_block_control_default = ResponsiveBlockControl;
+ var block_styles_default = BlockStyles;
- // packages/block-editor/build-module/components/unit-control/index.mjs
- var import_components182 = __toESM(require_components(), 1);
- var import_jsx_runtime405 = __toESM(require_jsx_runtime(), 1);
- function UnitControl6({ units: unitsProp, ...props }) {
- const [availableUnits] = useSettings("spacing.units");
- const units2 = (0, import_components182.__experimentalUseCustomUnits)({
- availableUnits: availableUnits || ["%", "px", "em", "rem", "vw"],
- units: unitsProp
- });
- return /* @__PURE__ */ (0, import_jsx_runtime405.jsx)(import_components182.__experimentalUnitControl, { units: units2, ...props });
+ // packages/block-editor/build-module/components/block-heading-level-dropdown/index.mjs
+ var import_components125 = __toESM(require_components(), 1);
+ var import_i18n119 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/block-heading-level-dropdown/heading-level-icon.mjs
+ var import_components124 = __toESM(require_components(), 1);
+ var import_jsx_runtime342 = __toESM(require_jsx_runtime(), 1);
+ var LEVEL_TO_PATH = {
+ 0: paragraph_default,
+ 1: heading_level_1_default,
+ 2: heading_level_2_default,
+ 3: heading_level_3_default,
+ 4: heading_level_4_default,
+ 5: heading_level_5_default,
+ 6: heading_level_6_default
+ };
+ function HeadingLevelIcon({ level }) {
+ if (LEVEL_TO_PATH[level]) {
+ return /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(import_components124.Icon, { icon: LEVEL_TO_PATH[level] });
+ }
+ return null;
}
- // packages/block-editor/build-module/components/url-input/button.mjs
- var import_i18n172 = __toESM(require_i18n(), 1);
- var import_element241 = __toESM(require_element(), 1);
- var import_components183 = __toESM(require_components(), 1);
- var import_jsx_runtime406 = __toESM(require_jsx_runtime(), 1);
- function URLInputButton({ url, onChange }) {
- const [expanded2, toggleExpanded] = (0, import_element241.useReducer)(
- (isExpanded) => !isExpanded,
- false
- );
- const submitLink = (event) => {
- event.preventDefault();
- toggleExpanded();
- };
- return /* @__PURE__ */ (0, import_jsx_runtime406.jsxs)("div", { className: "block-editor-url-input__button", children: [
- /* @__PURE__ */ (0, import_jsx_runtime406.jsx)(
- import_components183.Button,
- {
- size: "compact",
- icon: link_default,
- label: url ? (0, import_i18n172.__)("Edit link") : (0, import_i18n172.__)("Insert link"),
- onClick: toggleExpanded,
- className: "components-toolbar__control",
- isPressed: !!url
- }
- ),
- expanded2 && /* @__PURE__ */ (0, import_jsx_runtime406.jsx)(
- "form",
- {
- className: "block-editor-url-input__button-modal",
- onSubmit: submitLink,
- children: /* @__PURE__ */ (0, import_jsx_runtime406.jsxs)("div", { className: "block-editor-url-input__button-modal-line", children: [
- /* @__PURE__ */ (0, import_jsx_runtime406.jsx)(
- import_components183.Button,
- {
- __next40pxDefaultSize: true,
- className: "block-editor-url-input__back",
- icon: arrow_left_default,
- label: (0, import_i18n172.__)("Close"),
- onClick: toggleExpanded
- }
+ // packages/block-editor/build-module/components/block-heading-level-dropdown/index.mjs
+ var import_jsx_runtime343 = __toESM(require_jsx_runtime(), 1);
+ var HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
+ var POPOVER_PROPS6 = {
+ className: "block-library-heading-level-dropdown"
+ };
+ function HeadingLevelDropdown({
+ options = HEADING_LEVELS,
+ value,
+ onChange
+ }) {
+ const validOptions = options.filter(
+ (option) => option === 0 || HEADING_LEVELS.includes(option)
+ ).sort((a2, b2) => a2 - b2);
+ return /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(
+ import_components125.ToolbarDropdownMenu,
+ {
+ popoverProps: POPOVER_PROPS6,
+ icon: /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(HeadingLevelIcon, { level: value }),
+ label: (0, import_i18n119.__)("Change level"),
+ controls: validOptions.map((targetLevel) => {
+ const isActive = targetLevel === value;
+ return {
+ icon: /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(HeadingLevelIcon, { level: targetLevel }),
+ title: targetLevel === 0 ? (0, import_i18n119.__)("Paragraph") : (0, import_i18n119.sprintf)(
+ // translators: %d: heading level e.g: "1", "2", "3"
+ (0, import_i18n119.__)("Heading %d"),
+ targetLevel
),
- /* @__PURE__ */ (0, import_jsx_runtime406.jsx)(
- URLInput,
- {
- value: url || "",
- onChange,
- suffix: /* @__PURE__ */ (0, import_jsx_runtime406.jsx)(import_components183.__experimentalInputControlSuffixWrapper, { variant: "control", children: /* @__PURE__ */ (0, import_jsx_runtime406.jsx)(
- import_components183.Button,
+ isActive,
+ onClick() {
+ onChange(targetLevel);
+ },
+ role: "menuitemradio"
+ };
+ })
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/block-variation-picker/index.mjs
+ var import_i18n120 = __toESM(require_i18n(), 1);
+ var import_components126 = __toESM(require_components(), 1);
+ var import_jsx_runtime344 = __toESM(require_jsx_runtime(), 1);
+ function BlockVariationPicker({
+ icon = layout_default,
+ label = (0, import_i18n120.__)("Choose variation"),
+ instructions = (0, import_i18n120.__)("Select a variation to start with:"),
+ variations,
+ onSelect,
+ allowSkip
+ }) {
+ const classes = clsx_default("block-editor-block-variation-picker", {
+ "has-many-variations": variations.length > 4
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime344.jsxs)(
+ import_components126.Placeholder,
+ {
+ icon,
+ label,
+ instructions,
+ className: classes,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(
+ "ul",
+ {
+ className: "block-editor-block-variation-picker__variations",
+ role: "list",
+ "aria-label": (0, import_i18n120.__)("Block variations"),
+ children: variations.map((variation) => /* @__PURE__ */ (0, import_jsx_runtime344.jsxs)("li", { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(
+ import_components126.Button,
{
- size: "small",
- icon: keyboard_return_default,
- label: (0, import_i18n172.__)("Submit"),
- type: "submit"
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ icon: variation.icon && variation.icon.src ? variation.icon.src : variation.icon,
+ iconSize: 48,
+ onClick: () => onSelect(variation),
+ className: "block-editor-block-variation-picker__variation",
+ label: variation.description || variation.title
}
- ) })
- }
- )
- ] })
- }
- )
- ] });
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime344.jsx)("span", { className: "block-editor-block-variation-picker__variation-label", children: variation.title })
+ ] }, variation.name))
+ }
+ ),
+ allowSkip && /* @__PURE__ */ (0, import_jsx_runtime344.jsx)("div", { className: "block-editor-block-variation-picker__skip", children: /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(
+ import_components126.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "link",
+ onClick: () => onSelect(),
+ children: (0, import_i18n120.__)("Skip")
+ }
+ ) })
+ ]
+ }
+ );
}
- var button_default = URLInputButton;
+ var block_variation_picker_default = BlockVariationPicker;
- // packages/block-editor/build-module/components/url-popover/image-url-input-ui.mjs
- var import_i18n173 = __toESM(require_i18n(), 1);
- var import_element242 = __toESM(require_element(), 1);
- var import_dom70 = __toESM(require_dom(), 1);
- var import_components184 = __toESM(require_components(), 1);
- var import_url10 = __toESM(require_url(), 1);
- var import_jsx_runtime407 = __toESM(require_jsx_runtime(), 1);
- var LINK_DESTINATION_NONE = "none";
- var LINK_DESTINATION_CUSTOM = "custom";
- var LINK_DESTINATION_MEDIA = "media";
- var LINK_DESTINATION_ATTACHMENT = "attachment";
- var NEW_TAB_REL = ["noopener"];
- var ImageURLInputUI = ({
- linkDestination,
- onChangeUrl,
- url,
- mediaType = "image",
- mediaUrl,
- mediaLink,
- linkTarget,
- linkClass,
- rel,
- showLightboxSetting,
- lightboxEnabled,
- onSetLightbox,
- resetLightbox
- }) => {
- const [isOpen, setIsOpen] = (0, import_element242.useState)(false);
- const [popoverAnchor, setPopoverAnchor] = (0, import_element242.useState)(null);
- const openLinkUI = () => {
- setIsOpen(true);
- };
- const [isEditingLink, setIsEditingLink] = (0, import_element242.useState)(false);
- const [urlInput, setUrlInput] = (0, import_element242.useState)(null);
- const autocompleteRef = (0, import_element242.useRef)(null);
- const wrapperRef = (0, import_element242.useRef)();
- (0, import_element242.useEffect)(() => {
- if (!wrapperRef.current) {
- return;
- }
- const nextFocusTarget = import_dom70.focus.focusable.find(wrapperRef.current)[0] || wrapperRef.current;
- nextFocusTarget.focus();
- }, [isEditingLink, url, lightboxEnabled]);
- const startEditLink = () => {
- if (linkDestination === LINK_DESTINATION_MEDIA || linkDestination === LINK_DESTINATION_ATTACHMENT) {
- setUrlInput("");
- }
- setIsEditingLink(true);
- };
- const stopEditLink = () => {
- setIsEditingLink(false);
- };
- const closeLinkUI = () => {
- setUrlInput(null);
- stopEditLink();
- setIsOpen(false);
- };
- const getUpdatedLinkTargetSettings = (value) => {
- const newLinkTarget = value ? "_blank" : void 0;
- let updatedRel;
- if (newLinkTarget) {
- const rels = (rel ?? "").split(" ");
- NEW_TAB_REL.forEach((relVal) => {
- if (!rels.includes(relVal)) {
- rels.push(relVal);
- }
- });
- updatedRel = rels.join(" ");
- } else {
- const rels = (rel ?? "").split(" ").filter(
- (relVal) => NEW_TAB_REL.includes(relVal) === false
- );
- updatedRel = rels.length ? rels.join(" ") : void 0;
- }
- return {
- linkTarget: newLinkTarget,
- rel: updatedRel
- };
- };
- const onFocusOutside = () => {
- return (event) => {
- const autocompleteElement = autocompleteRef.current;
- if (autocompleteElement && autocompleteElement.contains(event.target)) {
- return;
- }
- setIsOpen(false);
- setUrlInput(null);
- stopEditLink();
- };
- };
- const onSubmitLinkChange = () => {
- return (event) => {
- if (urlInput) {
- const selectedDestination = getLinkDestinations().find(
- (destination) => destination.url === urlInput
- )?.linkDestination || LINK_DESTINATION_CUSTOM;
- onChangeUrl({
- href: (0, import_url10.prependHTTPS)(urlInput),
- linkDestination: selectedDestination,
- lightbox: { enabled: false }
- });
- }
- stopEditLink();
- setUrlInput(null);
- event.preventDefault();
- };
- };
- const onLinkRemove = () => {
- onChangeUrl({
- linkDestination: LINK_DESTINATION_NONE,
- href: ""
- });
- };
- const getLinkDestinations = () => {
- const linkDestinations = [
- {
- linkDestination: LINK_DESTINATION_MEDIA,
- title: (0, import_i18n173.__)("Link to image file"),
- url: mediaType === "image" ? mediaUrl : void 0,
- icon: image_default
- }
- ];
- if (mediaType === "image" && mediaLink) {
- linkDestinations.push({
- linkDestination: LINK_DESTINATION_ATTACHMENT,
- title: (0, import_i18n173.__)("Link to attachment page"),
- url: mediaType === "image" ? mediaLink : void 0,
- icon: page_default
- });
+ // packages/block-editor/build-module/components/block-pattern-setup/index.mjs
+ var import_data143 = __toESM(require_data(), 1);
+ var import_blocks83 = __toESM(require_blocks(), 1);
+ var import_components128 = __toESM(require_components(), 1);
+ var import_element208 = __toESM(require_element(), 1);
+ var import_compose80 = __toESM(require_compose(), 1);
+ var import_i18n122 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/block-pattern-setup/setup-toolbar.mjs
+ var import_i18n121 = __toESM(require_i18n(), 1);
+ var import_components127 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/block-pattern-setup/constants.mjs
+ var VIEWMODES = {
+ carousel: "carousel",
+ grid: "grid"
+ };
+
+ // packages/block-editor/build-module/components/block-pattern-setup/setup-toolbar.mjs
+ var import_jsx_runtime345 = __toESM(require_jsx_runtime(), 1);
+ var Actions = ({ onBlockPatternSelect }) => /* @__PURE__ */ (0, import_jsx_runtime345.jsx)("div", { className: "block-editor-block-pattern-setup__actions", children: /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
+ import_components127.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ onClick: onBlockPatternSelect,
+ children: (0, import_i18n121.__)("Choose")
+ }
+ ) });
+ var CarouselNavigation = ({
+ handlePrevious,
+ handleNext,
+ activeSlide,
+ totalSlides
+ }) => /* @__PURE__ */ (0, import_jsx_runtime345.jsxs)("div", { className: "block-editor-block-pattern-setup__navigation", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
+ import_components127.Button,
+ {
+ size: "compact",
+ icon: (0, import_i18n121.isRTL)() ? chevron_right_default : chevron_left_default,
+ label: (0, import_i18n121.__)("Previous pattern"),
+ onClick: handlePrevious,
+ disabled: activeSlide === 0,
+ accessibleWhenDisabled: true
}
- return linkDestinations;
- };
- const onSetHref = (value) => {
- const linkDestinations = getLinkDestinations();
- let linkDestinationInput;
- if (!value) {
- linkDestinationInput = LINK_DESTINATION_NONE;
- } else {
- linkDestinationInput = (linkDestinations.find((destination) => {
- return destination.url === value;
- }) || { linkDestination: LINK_DESTINATION_CUSTOM }).linkDestination;
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
+ import_components127.Button,
+ {
+ size: "compact",
+ icon: (0, import_i18n121.isRTL)() ? chevron_left_default : chevron_right_default,
+ label: (0, import_i18n121.__)("Next pattern"),
+ onClick: handleNext,
+ disabled: activeSlide === totalSlides - 1,
+ accessibleWhenDisabled: true
}
- onChangeUrl({
- linkDestination: linkDestinationInput,
- href: value
- });
- };
- const onSetNewTab = (value) => {
- const updatedLinkTarget = getUpdatedLinkTargetSettings(value);
- onChangeUrl(updatedLinkTarget);
- };
- const onSetLinkRel = (value) => {
- onChangeUrl({ rel: value });
- };
- const onSetLinkClass = (value) => {
- onChangeUrl({ linkClass: value });
- };
- const advancedOptions = /* @__PURE__ */ (0, import_jsx_runtime407.jsxs)(import_components184.__experimentalVStack, { spacing: "3", children: [
- /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- import_components184.ToggleControl,
+ )
+ ] });
+ var SetupToolbar = ({
+ viewMode,
+ setViewMode,
+ handlePrevious,
+ handleNext,
+ activeSlide,
+ totalSlides,
+ onBlockPatternSelect
+ }) => {
+ const isCarouselView = viewMode === VIEWMODES.carousel;
+ const displayControls = /* @__PURE__ */ (0, import_jsx_runtime345.jsxs)("div", { className: "block-editor-block-pattern-setup__display-controls", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
+ import_components127.Button,
{
- label: (0, import_i18n173.__)("Open in new tab"),
- onChange: onSetNewTab,
- checked: linkTarget === "_blank"
+ size: "compact",
+ icon: stretch_full_width_default,
+ label: (0, import_i18n121.__)("Carousel view"),
+ onClick: () => setViewMode(VIEWMODES.carousel),
+ isPressed: isCarouselView
}
),
- /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- import_components184.TextControl,
+ /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
+ import_components127.Button,
{
- label: (0, import_i18n173.__)("Link relation"),
- value: rel ?? "",
- onChange: onSetLinkRel,
- help: (0, import_element242.createInterpolateElement)(
- (0, import_i18n173.__)(
- "The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."
- ),
- {
- a: /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(import_components184.ExternalLink, { href: "https://developer.mozilla.org/docs/Web/HTML/Attributes/rel" })
- }
- )
+ size: "compact",
+ icon: grid_default,
+ label: (0, import_i18n121.__)("Grid view"),
+ onClick: () => setViewMode(VIEWMODES.grid),
+ isPressed: viewMode === VIEWMODES.grid
}
- ),
- /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- import_components184.TextControl,
+ )
+ ] });
+ return /* @__PURE__ */ (0, import_jsx_runtime345.jsxs)("div", { className: "block-editor-block-pattern-setup__toolbar", children: [
+ isCarouselView && /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(
+ CarouselNavigation,
{
- label: (0, import_i18n173.__)("Link CSS class"),
- value: linkClass || "",
- onChange: onSetLinkClass
+ handlePrevious,
+ handleNext,
+ activeSlide,
+ totalSlides
}
- )
+ ),
+ displayControls,
+ isCarouselView && /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(Actions, { onBlockPatternSelect })
] });
- const linkEditorValue = urlInput !== null ? urlInput : url;
- const hideLightboxPanel = !lightboxEnabled || lightboxEnabled && !showLightboxSetting;
- const showLinkEditor = !linkEditorValue && hideLightboxPanel;
- const urlLabel = (getLinkDestinations().find(
- (destination) => destination.linkDestination === linkDestination
- ) || {}).title;
- const PopoverChildren = () => {
- if (lightboxEnabled && showLightboxSetting && !url && !isEditingLink) {
- return /* @__PURE__ */ (0, import_jsx_runtime407.jsxs)("div", { className: "block-editor-url-popover__expand-on-click", children: [
- /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(icon_default, { icon: fullscreen_default }),
- /* @__PURE__ */ (0, import_jsx_runtime407.jsxs)("div", { className: "text", children: [
- /* @__PURE__ */ (0, import_jsx_runtime407.jsx)("p", { children: (0, import_i18n173.__)("Enlarge on click") }),
- /* @__PURE__ */ (0, import_jsx_runtime407.jsx)("p", { className: "description", children: (0, import_i18n173.__)("Scales the image with a lightbox effect") })
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- import_components184.Button,
- {
- icon: link_off_default,
- label: (0, import_i18n173.__)("Disable enlarge on click"),
- onClick: () => {
- onSetLightbox?.(false);
- },
- size: "compact"
- }
- )
- ] });
- } else if (!url || isEditingLink) {
- return /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- url_popover_default.LinkEditor,
+ };
+ var setup_toolbar_default = SetupToolbar;
+
+ // packages/block-editor/build-module/components/block-pattern-setup/use-patterns-setup.mjs
+ var import_data142 = __toESM(require_data(), 1);
+ function usePatternsSetup(clientId, blockName, filterPatternsFn) {
+ return (0, import_data142.useSelect)(
+ (select3) => {
+ const {
+ getBlockRootClientId: getBlockRootClientId2,
+ getPatternsByBlockTypes: getPatternsByBlockTypes2,
+ __experimentalGetAllowedPatterns: __experimentalGetAllowedPatterns2
+ } = select3(store);
+ const rootClientId = getBlockRootClientId2(clientId);
+ if (filterPatternsFn) {
+ return __experimentalGetAllowedPatterns2(rootClientId).filter(
+ filterPatternsFn
+ );
+ }
+ return getPatternsByBlockTypes2(blockName, rootClientId);
+ },
+ [clientId, blockName, filterPatternsFn]
+ );
+ }
+ var use_patterns_setup_default = usePatternsSetup;
+
+ // packages/block-editor/build-module/components/block-pattern-setup/index.mjs
+ var import_jsx_runtime346 = __toESM(require_jsx_runtime(), 1);
+ var SetupContent = ({
+ viewMode,
+ activeSlide,
+ patterns,
+ onBlockPatternSelect,
+ showTitles
+ }) => {
+ const containerClass = "block-editor-block-pattern-setup__container";
+ if (viewMode === VIEWMODES.carousel) {
+ const slideClass = /* @__PURE__ */ new Map([
+ [activeSlide, "active-slide"],
+ [activeSlide - 1, "previous-slide"],
+ [activeSlide + 1, "next-slide"]
+ ]);
+ return /* @__PURE__ */ (0, import_jsx_runtime346.jsx)("div", { className: "block-editor-block-pattern-setup__carousel", children: /* @__PURE__ */ (0, import_jsx_runtime346.jsx)("div", { className: containerClass, children: /* @__PURE__ */ (0, import_jsx_runtime346.jsx)("div", { className: "carousel-container", children: patterns.map((pattern, index2) => /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(
+ BlockPatternSlide,
+ {
+ active: index2 === activeSlide,
+ className: slideClass.get(index2) || "",
+ pattern
+ },
+ pattern.name
+ )) }) }) });
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime346.jsx)("div", { className: "block-editor-block-pattern-setup__grid", children: /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(
+ import_components128.Composite,
+ {
+ role: "listbox",
+ className: containerClass,
+ "aria-label": (0, import_i18n122.__)("Patterns list"),
+ children: patterns.map((pattern) => /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(
+ BlockPattern3,
{
- className: "block-editor-format-toolbar__link-container-content",
- value: linkEditorValue,
- onChangeInputValue: setUrlInput,
- onSubmit: onSubmitLinkChange(),
- autocompleteRef
+ pattern,
+ onSelect: onBlockPatternSelect,
+ showTitles
+ },
+ pattern.name
+ ))
+ }
+ ) });
+ };
+ function BlockPattern3({ pattern, onSelect, showTitles }) {
+ const baseClassName = "block-editor-block-pattern-setup-list";
+ const { blocks: blocks2, description, viewportWidth = 700 } = pattern;
+ const descriptionId = (0, import_compose80.useInstanceId)(
+ BlockPattern3,
+ `${baseClassName}__item-description`
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime346.jsx)("div", { className: `${baseClassName}__list-item`, children: /* @__PURE__ */ (0, import_jsx_runtime346.jsxs)(
+ import_components128.Composite.Item,
+ {
+ render: /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(
+ "div",
+ {
+ "aria-describedby": description ? descriptionId : void 0,
+ "aria-label": pattern.title,
+ className: `${baseClassName}__item`
}
- );
- } else if (url && !isEditingLink) {
- return /* @__PURE__ */ (0, import_jsx_runtime407.jsxs)(import_jsx_runtime407.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- url_popover_default.LinkViewer,
+ ),
+ id: `${baseClassName}__pattern__${pattern.name}`,
+ role: "option",
+ onClick: () => onSelect(blocks2),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(
+ block_preview_default,
{
- className: "block-editor-format-toolbar__link-container-content",
- url,
- onEditLinkClick: startEditLink,
- urlLabel
+ blocks: blocks2,
+ viewportWidth
+ }
+ ),
+ showTitles && /* @__PURE__ */ (0, import_jsx_runtime346.jsx)("div", { className: `${baseClassName}__item-title`, children: pattern.title }),
+ !!description && /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(VisuallyHidden, { id: descriptionId, children: description })
+ ]
+ }
+ ) });
+ }
+ function BlockPatternSlide({ active, className: className2, pattern, minHeight }) {
+ const { blocks: blocks2, title, description } = pattern;
+ const descriptionId = (0, import_compose80.useInstanceId)(
+ BlockPatternSlide,
+ "block-editor-block-pattern-setup-list__item-description"
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime346.jsxs)(
+ "div",
+ {
+ "aria-hidden": !active,
+ role: "img",
+ className: `pattern-slide ${className2}`,
+ "aria-label": title,
+ "aria-describedby": description ? descriptionId : void 0,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(block_preview_default, { blocks: blocks2, minHeight }),
+ !!description && /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(VisuallyHidden, { id: descriptionId, children: description })
+ ]
+ }
+ );
+ }
+ var BlockPatternSetup = ({
+ clientId,
+ blockName,
+ filterPatternsFn,
+ onBlockPatternSelect,
+ initialViewMode = VIEWMODES.carousel,
+ showTitles = false
+ }) => {
+ const [viewMode, setViewMode] = (0, import_element208.useState)(initialViewMode);
+ const [activeSlide, setActiveSlide] = (0, import_element208.useState)(0);
+ const { replaceBlock: replaceBlock2 } = (0, import_data143.useDispatch)(store);
+ const patterns = use_patterns_setup_default(clientId, blockName, filterPatternsFn);
+ if (!patterns?.length) {
+ return null;
+ }
+ const onBlockPatternSelectDefault = (blocks2) => {
+ const clonedBlocks = blocks2.map((block) => (0, import_blocks83.cloneBlock)(block));
+ replaceBlock2(clientId, clonedBlocks);
+ };
+ const onPatternSelectCallback = onBlockPatternSelect || onBlockPatternSelectDefault;
+ return /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(import_jsx_runtime346.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime346.jsxs)(
+ "div",
+ {
+ className: `block-editor-block-pattern-setup view-mode-${viewMode}`,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(
+ SetupContent,
+ {
+ viewMode,
+ activeSlide,
+ patterns,
+ onBlockPatternSelect: onPatternSelectCallback,
+ showTitles
}
),
- /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- import_components184.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime346.jsx)(
+ setup_toolbar_default,
{
- icon: link_off_default,
- label: (0, import_i18n173.__)("Remove link"),
- onClick: () => {
- onLinkRemove();
- resetLightbox?.();
+ viewMode,
+ setViewMode,
+ activeSlide,
+ totalSlides: patterns.length,
+ handleNext: () => {
+ setActiveSlide(
+ (active) => Math.min(active + 1, patterns.length - 1)
+ );
},
- size: "compact"
+ handlePrevious: () => {
+ setActiveSlide(
+ (active) => Math.max(active - 1, 0)
+ );
+ },
+ onBlockPatternSelect: () => {
+ onPatternSelectCallback(
+ patterns[activeSlide].blocks
+ );
+ }
}
)
- ] });
+ ]
}
- };
- return /* @__PURE__ */ (0, import_jsx_runtime407.jsxs)(import_jsx_runtime407.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- import_components184.ToolbarButton,
+ ) });
+ };
+ var block_pattern_setup_default = BlockPatternSetup;
+
+ // packages/block-editor/build-module/components/block-variation-transforms/index.mjs
+ var import_blocks84 = __toESM(require_blocks(), 1);
+ var import_i18n123 = __toESM(require_i18n(), 1);
+ var import_components129 = __toESM(require_components(), 1);
+ var import_data144 = __toESM(require_data(), 1);
+ var import_element209 = __toESM(require_element(), 1);
+ var import_jsx_runtime347 = __toESM(require_jsx_runtime(), 1);
+ var { Menu: Menu3 } = unlock(import_components129.privateApis);
+ function VariationsButtons({
+ className: className2,
+ onSelectVariation,
+ selectedValue,
+ variations
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime347.jsxs)("fieldset", { className: className2, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime347.jsx)("legend", {}), children: (0, import_i18n123.__)("Transform to variation") }),
+ variations.map((variation) => /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
+ import_components129.Button,
{
- icon: link_default,
- className: "components-toolbar__control",
- label: (0, import_i18n173.__)("Link"),
- "aria-expanded": isOpen,
- onClick: openLinkUI,
- ref: setPopoverAnchor,
- isActive: !!url || lightboxEnabled && showLightboxSetting
+ __next40pxDefaultSize: true,
+ size: "compact",
+ icon: /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(block_icon_default, { icon: variation.icon, showColors: true }),
+ isPressed: selectedValue === variation.name,
+ label: selectedValue === variation.name ? variation.title : (0, import_i18n123.sprintf)(
+ /* translators: %s: Block or block variation name. */
+ (0, import_i18n123.__)("Transform to %s"),
+ variation.title
+ ),
+ onClick: () => onSelectVariation(variation.name),
+ "aria-label": variation.title,
+ showTooltip: true
+ },
+ variation.name
+ ))
+ ] });
+ }
+ function VariationsDropdown({
+ className: className2,
+ onSelectVariation,
+ selectedValue,
+ variations
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime347.jsx)("div", { className: className2, children: /* @__PURE__ */ (0, import_jsx_runtime347.jsxs)(Menu3, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
+ Menu3.TriggerButton,
+ {
+ render: /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
+ import_components129.Button,
+ {
+ className: "block-editor-block-variation-transforms__button",
+ __next40pxDefaultSize: true,
+ variant: "secondary",
+ children: (0, import_i18n123.__)("Transform to variation")
+ }
+ )
}
),
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- url_popover_default,
+ /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(Menu3.Popover, { position: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(Menu3.Group, { children: variations.map((variation) => /* @__PURE__ */ (0, import_jsx_runtime347.jsxs)(
+ Menu3.RadioItem,
{
- ref: wrapperRef,
- anchor: popoverAnchor,
- onFocusOutside: onFocusOutside(),
- onClose: closeLinkUI,
- renderSettings: hideLightboxPanel ? () => advancedOptions : null,
- additionalControls: showLinkEditor && /* @__PURE__ */ (0, import_jsx_runtime407.jsxs)(import_components184.NavigableMenu, { children: [
- getLinkDestinations().map((link) => /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- import_components184.MenuItem,
- {
- icon: link.icon,
- iconPosition: "left",
- onClick: () => {
- setUrlInput(null);
- onSetHref(link.url);
- stopEditLink();
- },
- children: link.title
- },
- link.linkDestination
- )),
- showLightboxSetting && /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
- import_components184.MenuItem,
- {
- className: "block-editor-url-popover__expand-on-click",
- icon: fullscreen_default,
- info: (0, import_i18n173.__)(
- "Scale the image with a lightbox effect."
- ),
- iconPosition: "left",
- onClick: () => {
- setUrlInput(null);
- onChangeUrl({
- linkDestination: LINK_DESTINATION_NONE,
- href: ""
- });
- onSetLightbox?.(true);
- stopEditLink();
- },
- children: (0, import_i18n173.__)("Enlarge on click")
- },
- "expand-on-click"
- )
- ] }),
- offset: 13,
- children: PopoverChildren()
- }
- )
- ] });
- };
-
- // packages/block-editor/build-module/components/spacing-sizes-control/index.mjs
- var import_components187 = __toESM(require_components(), 1);
- var import_element245 = __toESM(require_element(), 1);
- var import_i18n177 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/spacing-sizes-control/hooks/use-spacing-sizes.mjs
- var import_element243 = __toESM(require_element(), 1);
- var import_i18n174 = __toESM(require_i18n(), 1);
- var EMPTY_ARRAY12 = [];
- var compare = new Intl.Collator("und", { numeric: true }).compare;
- function useSpacingSizes() {
- const [
- customSpacingSizes,
- themeSpacingSizes,
- defaultSpacingSizes,
- defaultSpacingSizesEnabled
- ] = useSettings(
- "spacing.spacingSizes.custom",
- "spacing.spacingSizes.theme",
- "spacing.spacingSizes.default",
- "spacing.defaultSpacingSizes"
+ value: variation.name,
+ checked: selectedValue === variation.name,
+ onChange: () => onSelectVariation(variation.name),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(Menu3.ItemLabel, { children: variation.title }),
+ variation.description && /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(Menu3.ItemHelpText, { children: variation.description })
+ ]
+ },
+ variation.name
+ )) }) })
+ ] }) });
+ }
+ function VariationsToggleGroupControl({
+ className: className2,
+ onSelectVariation,
+ selectedValue,
+ variations
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime347.jsx)("div", { className: className2, children: /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
+ import_components129.__experimentalToggleGroupControl,
+ {
+ label: (0, import_i18n123.__)("Transform to variation"),
+ value: selectedValue,
+ hideLabelFromVision: true,
+ onChange: onSelectVariation,
+ children: variations.map((variation) => /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
+ import_components129.__experimentalToggleGroupControlOptionIcon,
+ {
+ icon: /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(block_icon_default, { icon: variation.icon, showColors: true }),
+ value: variation.name,
+ label: selectedValue === variation.name ? variation.title : (0, import_i18n123.sprintf)(
+ /* translators: %s: Block or block variation name. */
+ (0, import_i18n123.__)("Transform to %s"),
+ variation.title
+ )
+ },
+ variation.name
+ ))
+ }
+ ) });
+ }
+ function BlockVariationTransforms({ blockClientId }) {
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data144.useDispatch)(store);
+ const {
+ activeBlockVariation,
+ variations,
+ canEdit,
+ isContentOnly,
+ isSection
+ } = (0, import_data144.useSelect)(
+ (select3) => {
+ const { getActiveBlockVariation, getBlockVariations: getBlockVariations2 } = select3(import_blocks84.store);
+ const {
+ getBlockName: getBlockName2,
+ getBlockAttributes: getBlockAttributes3,
+ getBlockEditingMode: getBlockEditingMode2,
+ isSectionBlock: isSectionBlock2
+ } = unlock(select3(store));
+ const { canEditBlock: canEditBlock2 } = select3(store);
+ const name = blockClientId && getBlockName2(blockClientId);
+ const { hasContentRoleAttribute } = unlock(select3(import_blocks84.store));
+ const isContentBlock4 = hasContentRoleAttribute(name);
+ return {
+ activeBlockVariation: getActiveBlockVariation(
+ name,
+ getBlockAttributes3(blockClientId),
+ "transform"
+ ),
+ variations: name && getBlockVariations2(name, "transform"),
+ canEdit: canEditBlock2(blockClientId),
+ isContentOnly: getBlockEditingMode2(blockClientId) === "contentOnly" && !isContentBlock4,
+ isSection: isSectionBlock2(blockClientId)
+ };
+ },
+ [blockClientId]
);
- const customSizes = customSpacingSizes ?? EMPTY_ARRAY12;
- const themeSizes = themeSpacingSizes ?? EMPTY_ARRAY12;
- const defaultSizes = defaultSpacingSizes && defaultSpacingSizesEnabled !== false ? defaultSpacingSizes : EMPTY_ARRAY12;
- return (0, import_element243.useMemo)(() => {
- const sizes = [
- { name: (0, import_i18n174.__)("None"), slug: "0", size: 0 },
- ...customSizes,
- ...themeSizes,
- ...defaultSizes
- ];
- if (sizes.every(({ slug }) => /^[0-9]/.test(slug))) {
- sizes.sort((a2, b2) => compare(a2.slug, b2.slug));
+ const selectedValue = activeBlockVariation?.name;
+ const hasUniqueIcons = (0, import_element209.useMemo)(() => {
+ const variationIcons = /* @__PURE__ */ new Set();
+ if (!variations) {
+ return false;
}
- return sizes.length > RANGE_CONTROL_MAX_SIZE ? [
- {
- name: (0, import_i18n174.__)("Default"),
- slug: "default",
- size: void 0
- },
- ...sizes
- ] : sizes;
- }, [customSizes, themeSizes, defaultSizes]);
+ variations.forEach((variation) => {
+ if (variation.icon) {
+ variationIcons.add(variation.icon?.src || variation.icon);
+ }
+ });
+ return variationIcons.size === variations.length;
+ }, [variations]);
+ const onSelectVariation = (variationName) => {
+ updateBlockAttributes2(blockClientId, {
+ ...variations.find(({ name }) => name === variationName).attributes
+ });
+ };
+ if (!variations?.length || !canEdit || isContentOnly || isSection) {
+ return null;
+ }
+ const baseClass = "block-editor-block-variation-transforms";
+ const showButtons = variations.length > 6;
+ const ButtonComponent = showButtons ? VariationsButtons : VariationsToggleGroupControl;
+ const Component5 = hasUniqueIcons ? ButtonComponent : VariationsDropdown;
+ return /* @__PURE__ */ (0, import_jsx_runtime347.jsx)(
+ Component5,
+ {
+ className: baseClass,
+ onSelectVariation,
+ selectedValue,
+ variations
+ }
+ );
}
+ var block_variation_transforms_default = BlockVariationTransforms;
- // packages/block-editor/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.mjs
- var import_element244 = __toESM(require_element(), 1);
- var import_data155 = __toESM(require_data(), 1);
- var import_i18n175 = __toESM(require_i18n(), 1);
- var import_components185 = __toESM(require_components(), 1);
- var import_jsx_runtime408 = __toESM(require_jsx_runtime(), 1);
- var CUSTOM_VALUE_SETTINGS2 = {
+ // packages/block-editor/build-module/components/block-vertical-alignment-control/ui.mjs
+ var import_i18n124 = __toESM(require_i18n(), 1);
+ var import_components130 = __toESM(require_components(), 1);
+ var import_jsx_runtime348 = __toESM(require_jsx_runtime(), 1);
+ var BLOCK_ALIGNMENTS_CONTROLS2 = {
+ top: {
+ icon: justify_top_default,
+ title: (0, import_i18n124._x)("Align top", "Block vertical alignment setting")
+ },
+ center: {
+ icon: justify_center_vertical_default,
+ title: (0, import_i18n124._x)("Align middle", "Block vertical alignment setting")
+ },
+ bottom: {
+ icon: justify_bottom_default,
+ title: (0, import_i18n124._x)("Align bottom", "Block vertical alignment setting")
+ },
+ stretch: {
+ icon: justify_stretch_vertical_default,
+ title: (0, import_i18n124._x)("Stretch to fill", "Block vertical alignment setting")
+ },
+ "space-between": {
+ icon: justify_space_between_vertical_default,
+ title: (0, import_i18n124._x)("Space between", "Block vertical alignment setting")
+ }
+ };
+ var DEFAULT_CONTROLS2 = ["top", "center", "bottom"];
+ var DEFAULT_CONTROL2 = "top";
+ function BlockVerticalAlignmentUI({
+ value,
+ onChange,
+ controls = DEFAULT_CONTROLS2,
+ isCollapsed: isCollapsed3 = true,
+ isToolbar,
+ label = (0, import_i18n124.__)("Align content vertically")
+ }) {
+ function applyOrUnset(align) {
+ return () => onChange(value === align ? void 0 : align);
+ }
+ const activeAlignment = BLOCK_ALIGNMENTS_CONTROLS2[value];
+ const defaultAlignmentControl = BLOCK_ALIGNMENTS_CONTROLS2[DEFAULT_CONTROL2];
+ const UIComponent = isToolbar ? import_components130.ToolbarGroup : import_components130.ToolbarDropdownMenu;
+ const extraProps = isToolbar ? { isCollapsed: isCollapsed3 } : {};
+ return /* @__PURE__ */ (0, import_jsx_runtime348.jsx)(
+ UIComponent,
+ {
+ icon: activeAlignment ? activeAlignment.icon : defaultAlignmentControl.icon,
+ label,
+ controls: controls.map((control) => {
+ return {
+ ...BLOCK_ALIGNMENTS_CONTROLS2[control],
+ isActive: value === control,
+ role: isCollapsed3 ? "menuitemradio" : void 0,
+ onClick: applyOrUnset(control)
+ };
+ }),
+ ...extraProps
+ }
+ );
+ }
+ var ui_default3 = BlockVerticalAlignmentUI;
+
+ // packages/block-editor/build-module/components/block-vertical-alignment-control/index.mjs
+ var import_jsx_runtime349 = __toESM(require_jsx_runtime(), 1);
+ var BlockVerticalAlignmentControl = (props) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime349.jsx)(ui_default3, { ...props, isToolbar: false });
+ };
+ var BlockVerticalAlignmentToolbar = (props) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime349.jsx)(ui_default3, { ...props, isToolbar: true });
+ };
+
+ // packages/block-editor/build-module/components/border-radius-control/index.mjs
+ var import_components135 = __toESM(require_components(), 1);
+ var import_element211 = __toESM(require_element(), 1);
+ var import_i18n128 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/border-radius-control/linked-button.mjs
+ var import_components131 = __toESM(require_components(), 1);
+ var import_i18n125 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime350 = __toESM(require_jsx_runtime(), 1);
+ function LinkedButton({ isLinked, ...props }) {
+ const label = isLinked ? (0, import_i18n125.__)("Unlink radii") : (0, import_i18n125.__)("Link radii");
+ return /* @__PURE__ */ (0, import_jsx_runtime350.jsx)(
+ import_components131.Button,
+ {
+ ...props,
+ className: "components-border-radius-control__linked-button",
+ size: "small",
+ icon: isLinked ? link_default : link_off_default,
+ iconSize: 24,
+ label
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/border-radius-control/utils.mjs
+ var import_components132 = __toESM(require_components(), 1);
+ function mode(inputArray) {
+ const arr = [...inputArray];
+ return arr.sort(
+ (a2, b2) => inputArray.filter((v2) => v2 === b2).length - inputArray.filter((v2) => v2 === a2).length
+ ).shift();
+ }
+ function getAllValue(values = {}) {
+ if (typeof values === "string") {
+ return values;
+ }
+ const parsedQuantitiesAndUnits = Object.values(values).map((value2) => {
+ const newValue = (0, import_components132.__experimentalParseQuantityAndUnitFromRawValue)(value2);
+ if (typeof value2 === "string" && newValue[0] === void 0) {
+ return [value2, ""];
+ }
+ return newValue;
+ });
+ const allValues = parsedQuantitiesAndUnits.map(
+ (value2) => value2[0] ?? ""
+ );
+ const allUnits = parsedQuantitiesAndUnits.map((value2) => value2[1]);
+ const value = allValues.every((v2) => v2 === allValues[0]) ? allValues[0] : "";
+ const unit = mode(allUnits);
+ const allValue = value === 0 || value ? `${value}${unit || ""}` : void 0;
+ return allValue;
+ }
+ function hasMixedValues(values = {}) {
+ if (typeof values === "string") {
+ return false;
+ }
+ if (!values || typeof values !== "object") {
+ return false;
+ }
+ const cornerValues = Object.values(values);
+ if (cornerValues.length === 0) {
+ return false;
+ }
+ const firstValue = cornerValues[0];
+ const allSame = cornerValues.every((value) => value === firstValue);
+ return !allSame;
+ }
+ function hasDefinedValues(values) {
+ if (!values) {
+ return false;
+ }
+ if (typeof values === "string") {
+ return true;
+ }
+ const filteredValues = Object.values(values).filter((value) => {
+ return !!value || value === 0;
+ });
+ return !!filteredValues.length;
+ }
+
+ // packages/block-editor/build-module/components/preset-input-control/index.mjs
+ var import_components134 = __toESM(require_components(), 1);
+ var import_compose81 = __toESM(require_compose(), 1);
+ var import_i18n126 = __toESM(require_i18n(), 1);
+ var import_element210 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/preset-input-control/constants.mjs
+ var ICON_SIZE = 24;
+ var RANGE_CONTROL_MAX_SIZE2 = 8;
+ var CUSTOM_VALUE_SETTINGS = {
px: { max: 300, steps: 1 },
"%": { max: 100, steps: 1 },
vw: { max: 100, steps: 1 },
vh: { max: 100, steps: 1 },
em: { max: 10, steps: 0.1 },
- rm: { max: 10, steps: 0.1 },
+ rem: { max: 10, steps: 0.1 },
svw: { max: 100, steps: 1 },
lvw: { max: 100, steps: 1 },
dvw: { max: 100, steps: 1 },
@@ -74668,13054 +72979,20756 @@ var wp;
lvmax: { max: 100, steps: 1 },
dvmax: { max: 100, steps: 1 }
};
- function SpacingInputControl({
- icon,
- isMixed = false,
+
+ // packages/block-editor/build-module/components/preset-input-control/custom-value-controls.mjs
+ var import_components133 = __toESM(require_components(), 1);
+ var import_jsx_runtime351 = __toESM(require_jsx_runtime(), 1);
+ function CustomValueControls({
+ allowNegativeOnDrag,
+ ariaLabel,
+ allPlaceholder,
+ minValue,
+ parsedQuantity,
+ computedUnit,
+ units: units2,
+ isMixed,
+ step,
+ max: max3,
+ showTooltip,
+ value,
minimumCustomValue,
- onChange,
+ onCustomValueChange,
+ onCustomValueSliderChange,
+ onUnitChange,
onMouseOut,
onMouseOver,
- showSideInLabel = true,
- side,
- spacingSizes,
- type,
- value,
- ...restProps
+ setMinValue
}) {
- const disableCustomSpacingSizes = (0, import_data155.useSelect)((select3) => {
- const editorSettings = select3(store).getSettings();
- return editorSettings?.disableCustomSpacingSizes;
- });
- const [availableUnits] = useSettings("spacing.units");
- const units2 = (0, import_components185.__experimentalUseCustomUnits)({
- availableUnits: availableUnits || ["px", "em", "rem"]
- });
- const presets = (0, import_element244.useMemo)(() => {
- return spacingSizes?.map((preset) => ({
- name: preset.name,
- slug: preset.slug,
- size: preset.size
- })) || [];
- }, [spacingSizes]);
- const sideLabel = (ALL_SIDES.includes(side) || ["vertical", "horizontal"].includes(side)) && showSideInLabel ? LABELS[side] : "";
- const typeLabel = showSideInLabel ? type?.toLowerCase() : type;
- const ariaLabel = (0, import_i18n175.sprintf)(
- // translators: 1: The side of the block being modified (top, bottom, left etc.). 2. Type of spacing being modified (padding, margin, etc).
- (0, import_i18n175._x)("%1$s %2$s", "spacing"),
- sideLabel,
- typeLabel
- ).trim();
- const selectedUnit = units2[0]?.value || "px";
- return /* @__PURE__ */ (0, import_jsx_runtime408.jsx)(
- PresetInputControl,
+ const unitControl = /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
+ import_components133.__experimentalUnitControl,
{
- allowNegativeOnDrag: minimumCustomValue < 0,
- ariaLabel,
- className: "spacing-sizes-control",
- customValueSettings: CUSTOM_VALUE_SETTINGS2,
- disableCustomValues: disableCustomSpacingSizes,
- icon,
- isMixed,
- minimumCustomValue,
- onChange,
+ className: "preset-input-control__unit-control",
+ disableUnits: isMixed,
+ hideLabelFromVision: true,
+ label: ariaLabel,
+ min: minValue,
+ onChange: onCustomValueChange,
+ onUnitChange,
+ onBlur: onMouseOut,
+ onFocus: onMouseOver,
onMouseOut,
onMouseOver,
- presets,
- presetType: "spacing",
- selectedUnit,
units: units2,
- value,
- ...restProps
+ value: [parsedQuantity, computedUnit].join(""),
+ placeholder: allPlaceholder,
+ onDragStart: () => {
+ if (allowNegativeOnDrag && value?.charAt(0) === "-") {
+ setMinValue(0);
+ }
+ },
+ onDrag: () => {
+ if (allowNegativeOnDrag && value?.charAt(0) === "-") {
+ setMinValue(0);
+ }
+ },
+ onDragEnd: () => {
+ if (allowNegativeOnDrag) {
+ setMinValue(minimumCustomValue);
+ }
+ }
}
);
- }
-
- // packages/block-editor/build-module/components/spacing-sizes-control/input-controls/axial.mjs
- var import_jsx_runtime409 = __toESM(require_jsx_runtime(), 1);
- var groupedSides = ["vertical", "horizontal"];
- function AxialInputControls({
- minimumCustomValue,
- onChange,
- onMouseOut,
- onMouseOver,
- sides: sides2,
- spacingSizes,
- type,
- values
- }) {
- const createHandleOnChange = (side) => (next) => {
- if (!onChange) {
- return;
- }
- const nextValues = {
- ...Object.keys(values).reduce((acc, key) => {
- acc[key] = getPresetValueFromCustomValue2(
- values[key],
- spacingSizes
- );
- return acc;
- }, {})
- };
- if (side === "vertical") {
- nextValues.top = next;
- nextValues.bottom = next;
- }
- if (side === "horizontal") {
- nextValues.left = next;
- nextValues.right = next;
- }
- onChange(nextValues);
- };
- const filteredSides = sides2?.length ? groupedSides.filter((side) => hasAxisSupport(sides2, side)) : groupedSides;
- return /* @__PURE__ */ (0, import_jsx_runtime409.jsx)(import_jsx_runtime409.Fragment, { children: filteredSides.map((side) => {
- const axisValue = side === "vertical" ? values.top : values.left;
- return /* @__PURE__ */ (0, import_jsx_runtime409.jsx)(
- SpacingInputControl,
+ const wrappedUnitControl = showTooltip ? /* @__PURE__ */ (0, import_jsx_runtime351.jsxs)(tooltip_exports.Root, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
+ tooltip_exports.Trigger,
{
- icon: ICONS[side],
- label: LABELS[side],
- minimumCustomValue,
- onChange: createHandleOnChange(side),
- onMouseOut,
- onMouseOver,
- side,
- spacingSizes,
- type,
- value: axisValue,
- withInputField: false
- },
- `spacing-sizes-control-${side}`
- );
- }) });
- }
-
- // packages/block-editor/build-module/components/spacing-sizes-control/input-controls/separated.mjs
- var import_jsx_runtime410 = __toESM(require_jsx_runtime(), 1);
- function SeparatedInputControls({
- minimumCustomValue,
- onChange,
- onMouseOut,
- onMouseOver,
- sides: sides2,
- spacingSizes,
- type,
- values
- }) {
- const filteredSides = sides2?.length ? ALL_SIDES.filter((side) => sides2.includes(side)) : ALL_SIDES;
- const createHandleOnChange = (side) => (next) => {
- const nextValues = {
- ...Object.keys(values).reduce((acc, key) => {
- acc[key] = getPresetValueFromCustomValue2(
- values[key],
- spacingSizes
- );
- return acc;
- }, {})
- };
- nextValues[side] = next;
- onChange(nextValues);
- };
- return /* @__PURE__ */ (0, import_jsx_runtime410.jsx)(import_jsx_runtime410.Fragment, { children: filteredSides.map((side) => {
- return /* @__PURE__ */ (0, import_jsx_runtime410.jsx)(
- SpacingInputControl,
+ render: /* @__PURE__ */ (0, import_jsx_runtime351.jsx)("div", { className: "preset-input-control__tooltip-wrapper", children: unitControl })
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(tooltip_exports.Popup, { children: ariaLabel })
+ ] }) : unitControl;
+ return /* @__PURE__ */ (0, import_jsx_runtime351.jsxs)(import_jsx_runtime351.Fragment, { children: [
+ wrappedUnitControl,
+ /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
+ import_components133.RangeControl,
{
- icon: ICONS[side],
- label: LABELS[side],
- minimumCustomValue,
- onChange: createHandleOnChange(side),
+ className: "preset-input-control__custom-value-range",
+ hideLabelFromVision: true,
+ initialPosition: 0,
+ label: ariaLabel,
+ max: max3,
+ min: 0,
+ onBlur: onMouseOut,
+ onChange: onCustomValueSliderChange,
+ onFocus: onMouseOver,
onMouseOut,
onMouseOver,
- side,
- spacingSizes,
- type,
- value: values[side],
+ step,
+ value: parsedQuantity,
withInputField: false
- },
- `spacing-sizes-control-${side}`
- );
- }) });
+ }
+ )
+ ] });
}
- // packages/block-editor/build-module/components/spacing-sizes-control/input-controls/single.mjs
- var import_jsx_runtime411 = __toESM(require_jsx_runtime(), 1);
- function SingleInputControl({
+ // packages/block-editor/build-module/components/preset-input-control/index.mjs
+ var import_jsx_runtime352 = __toESM(require_jsx_runtime(), 1);
+ function PresetInputControl({
+ allowNegativeOnDrag = false,
+ ariaLabel,
+ className: classNameProp,
+ customValueSettings = CUSTOM_VALUE_SETTINGS,
+ disableCustomValues,
+ icon,
+ isMixed,
+ value: valueProp,
minimumCustomValue,
onChange,
onMouseOut,
onMouseOver,
- showSideInLabel,
- side,
- spacingSizes,
- type,
- values
+ onUnitChange,
+ placeholder,
+ presets = [],
+ presetType,
+ selectedUnit,
+ showTooltip,
+ units: units2
}) {
- const createHandleOnChange = (currentSide) => (next) => {
- const nextValues = {
- ...Object.keys(values).reduce((acc, key) => {
- acc[key] = getPresetValueFromCustomValue2(
- values[key],
- spacingSizes
- );
- return acc;
- }, {})
- };
- nextValues[currentSide] = next;
- onChange(nextValues);
+ const value = (0, import_element210.useMemo)(
+ () => getPresetValueFromCustomValue(valueProp, presets, presetType),
+ [valueProp, presets, presetType]
+ );
+ const className2 = classNameProp ?? "preset-input-control";
+ const marks = presets.slice(1, presets.length - 1).map((_newValue, index2) => ({
+ value: index2 + 1,
+ label: void 0
+ }));
+ const hasPresets = marks.length > 0;
+ const showRangeControl = presets.length <= RANGE_CONTROL_MAX_SIZE2;
+ const allPlaceholder = isMixed ? (0, import_i18n126.__)("Mixed") : placeholder ?? null;
+ const [minValue, setMinValue] = (0, import_element210.useState)(minimumCustomValue);
+ const [showCustomValueControl, setShowCustomValueControl] = (0, import_element210.useState)(
+ !disableCustomValues && value !== void 0 && !isValuePreset(value, presetType)
+ );
+ let currentValue = null;
+ const previousValue = (0, import_compose81.usePrevious)(value);
+ (0, import_element210.useEffect)(() => {
+ if (!!value && previousValue !== value && !isValuePreset(value, presetType) && showCustomValueControl !== true) {
+ setShowCustomValueControl(true);
+ }
+ }, [value, previousValue, presetType, showCustomValueControl]);
+ const showCustomValueInSelectList = !showRangeControl && !showCustomValueControl && value !== void 0 && (!isValuePreset(value, presetType) || isValuePreset(value, presetType) && isMixed);
+ let selectListOptions = presets;
+ if (showCustomValueInSelectList) {
+ selectListOptions = [
+ ...presets,
+ {
+ name: !isMixed ? (
+ // translators: %s: A custom measurement, e.g. a number followed by a unit like 12px.
+ (0, import_i18n126.sprintf)((0, import_i18n126.__)("Custom (%s)"), value)
+ ) : (0, import_i18n126.__)("Mixed"),
+ slug: "custom",
+ size: value
+ }
+ ];
+ currentValue = selectListOptions.length - 1;
+ } else if (!isMixed) {
+ currentValue = !showCustomValueControl ? getSliderValueFromPreset(value, presets, presetType) : getCustomValueFromPreset(value, presets, presetType);
+ }
+ const options = selectListOptions.map((size4, index2) => ({
+ key: index2,
+ name: size4.name
+ }));
+ const resolvedPresetValue = isValuePreset(value, presetType) ? getCustomValueFromPreset(value, presets, presetType) : value;
+ const [parsedQuantity, parsedUnit] = (0, import_components134.__experimentalParseQuantityAndUnitFromRawValue)(resolvedPresetValue);
+ const computedUnit = parsedUnit || selectedUnit || "px";
+ const unitConfig = units2?.find((item) => item.value === computedUnit);
+ const step = unitConfig?.step ?? customValueSettings[computedUnit]?.steps ?? 0.1;
+ const max3 = unitConfig?.max ?? customValueSettings[computedUnit]?.max ?? 10;
+ const handleCustomValueChange = (newValue) => {
+ if (newValue === void 0 || newValue === "") {
+ onChange(void 0);
+ return;
+ }
+ if (isNaN(parseFloat(newValue))) {
+ return;
+ }
+ onChange(newValue);
};
- return /* @__PURE__ */ (0, import_jsx_runtime411.jsx)(
- SpacingInputControl,
- {
- label: LABELS[side],
- minimumCustomValue,
- onChange: createHandleOnChange(side),
- onMouseOut,
- onMouseOver,
- showSideInLabel,
- side,
- spacingSizes,
- type,
- value: values[side],
- withInputField: false
+ const handleCustomValueSliderChange = (next) => {
+ onChange([next, computedUnit].join(""));
+ };
+ const customTooltipContent = (newValue) => value === void 0 ? void 0 : presets[newValue]?.name;
+ const getNewPresetValue = (next, controlType) => {
+ const newValue = parseInt(next, 10);
+ if (controlType === "selectList") {
+ if (newValue === 0 && presets[0]?.slug === "0") {
+ return "0";
+ }
+ if (newValue === 0) {
+ return void 0;
+ }
+ } else if (newValue === 0) {
+ return "0";
}
- );
- }
-
- // packages/block-editor/build-module/components/spacing-sizes-control/linked-button.mjs
- var import_components186 = __toESM(require_components(), 1);
- var import_i18n176 = __toESM(require_i18n(), 1);
- var import_jsx_runtime412 = __toESM(require_jsx_runtime(), 1);
- function LinkedButton2({ isLinked, ...props }) {
- const label = isLinked ? (0, import_i18n176.__)("Unlink sides") : (0, import_i18n176.__)("Link sides");
- return /* @__PURE__ */ (0, import_jsx_runtime412.jsx)(
- import_components186.Button,
+ return `var:preset|${presetType}|${presets[next]?.slug}`;
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime352.jsxs)(
+ import_components134.__experimentalHStack,
{
- ...props,
- size: "small",
- icon: isLinked ? link_default : link_off_default,
- iconSize: 24,
- label
+ className: `preset-input-control__wrapper ${className2}__wrapper`,
+ children: [
+ icon && /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
+ import_components134.Icon,
+ {
+ className: "preset-input-control__icon",
+ icon,
+ size: ICON_SIZE
+ }
+ ),
+ (!hasPresets || showCustomValueControl) && /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
+ CustomValueControls,
+ {
+ allowNegativeOnDrag,
+ ariaLabel,
+ allPlaceholder,
+ minValue,
+ parsedQuantity,
+ computedUnit,
+ units: units2,
+ isMixed,
+ step,
+ max: max3,
+ showTooltip,
+ value,
+ minimumCustomValue,
+ onCustomValueChange: handleCustomValueChange,
+ onCustomValueSliderChange: handleCustomValueSliderChange,
+ onUnitChange,
+ onMouseOut,
+ onMouseOver,
+ setMinValue
+ }
+ ),
+ hasPresets && showRangeControl && !showCustomValueControl && /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
+ import_components134.RangeControl,
+ {
+ "aria-valuenow": currentValue,
+ "aria-valuetext": presets[currentValue]?.name,
+ className: "preset-input-control__preset-range",
+ hideLabelFromVision: true,
+ initialPosition: 0,
+ label: ariaLabel,
+ max: presets.length - 1,
+ marks,
+ min: 0,
+ onBlur: onMouseOut,
+ onChange: (newValue) => onChange(getNewPresetValue(newValue)),
+ onFocus: onMouseOver,
+ onMouseDown: (event) => {
+ const nearStart = event?.nativeEvent?.offsetX < 35;
+ if (nearStart && value === void 0) {
+ onChange("0");
+ }
+ },
+ onMouseOut,
+ onMouseOver,
+ renderTooltipContent: customTooltipContent,
+ step: 1,
+ value: currentValue,
+ withInputField: false
+ }
+ ),
+ hasPresets && !showRangeControl && !showCustomValueControl && /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
+ import_components134.CustomSelectControl,
+ {
+ className: "preset-input-control__custom-select-control",
+ hideLabelFromVision: true,
+ label: ariaLabel,
+ onBlur: onMouseOut,
+ onChange: (selection2) => {
+ if (showCustomValueInSelectList && selection2.selectedItem.key === options.length - 1) {
+ setShowCustomValueControl(true);
+ } else {
+ onChange(
+ getNewPresetValue(
+ selection2.selectedItem.key,
+ "selectList"
+ )
+ );
+ }
+ },
+ onFocus: onMouseOver,
+ onMouseOut,
+ onMouseOver,
+ options,
+ value: (
+ // passing empty string as a fallback to continue using the
+ // component in controlled mode
+ options.find(
+ (option) => option.key === currentValue
+ ) || ""
+ )
+ }
+ ),
+ hasPresets && !disableCustomValues && /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
+ import_components134.Button,
+ {
+ className: "preset-input-control__custom-toggle",
+ icon: settings_default,
+ iconSize: ICON_SIZE,
+ isPressed: showCustomValueControl,
+ label: showCustomValueControl ? (0, import_i18n126.__)("Use preset") : (0, import_i18n126.__)("Set custom value"),
+ onClick: () => {
+ setShowCustomValueControl(!showCustomValueControl);
+ },
+ size: "small"
+ }
+ )
+ ]
}
);
}
- // packages/block-editor/build-module/components/spacing-sizes-control/index.mjs
- var import_jsx_runtime413 = __toESM(require_jsx_runtime(), 1);
- function SpacingSizesControl({
- inputProps,
- label: labelProp,
- minimumCustomValue = 0,
- onChange,
- onMouseOut,
- onMouseOver,
- showSideInLabel = true,
- sides: sides2 = ALL_SIDES,
- useSelect: useSelect182,
- values
- }) {
- const spacingSizes = useSpacingSizes();
- const inputValues = values || DEFAULT_VALUES;
- const hasOneSide = sides2?.length === 1;
- const hasOnlyAxialSides = sides2?.includes("horizontal") && sides2?.includes("vertical") && sides2?.length === 2;
- const [view, setView] = (0, import_element245.useState)(getInitialView(inputValues, sides2));
- const toggleLinked = () => {
- setView(view === VIEWS.axial ? VIEWS.custom : VIEWS.axial);
- };
- const handleOnChange = (nextValue) => {
- const newValues = { ...values, ...nextValue };
- onChange(newValues);
- };
- const inputControlProps = {
- ...inputProps,
- minimumCustomValue,
- onChange: handleOnChange,
- onMouseOut,
- onMouseOver,
- sides: sides2,
- spacingSizes,
- type: labelProp,
- useSelect: useSelect182,
- values: inputValues
- };
- const renderControls = () => {
- if (view === VIEWS.axial) {
- return /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(AxialInputControls, { ...inputControlProps });
- }
- if (view === VIEWS.custom) {
- return /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(SeparatedInputControls, { ...inputControlProps });
- }
- return /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(
- SingleInputControl,
+ // packages/block-editor/build-module/components/border-radius-control/constants.mjs
+ var import_i18n127 = __toESM(require_i18n(), 1);
+ var RANGE_CONTROL_MAX_SIZE3 = 8;
+ var EMPTY_ARRAY10 = [];
+ var CORNERS = {
+ all: (0, import_i18n127.__)("Border radius"),
+ topLeft: (0, import_i18n127.__)("Top left"),
+ topRight: (0, import_i18n127.__)("Top right"),
+ bottomLeft: (0, import_i18n127.__)("Bottom left"),
+ bottomRight: (0, import_i18n127.__)("Bottom right")
+ };
+ var ICONS2 = {
+ all: corner_all_default,
+ topLeft: corner_top_left_default,
+ topRight: corner_top_right_default,
+ bottomLeft: corner_bottom_left_default,
+ bottomRight: corner_bottom_right_default
+ };
+ var MIN_BORDER_RADIUS_VALUE = 0;
+
+ // packages/block-editor/build-module/components/border-radius-control/index.mjs
+ var import_jsx_runtime353 = __toESM(require_jsx_runtime(), 1);
+ function useBorderRadiusSizes(presets) {
+ const defaultSizes = presets?.default ?? EMPTY_ARRAY10;
+ const customSizes = presets?.custom ?? EMPTY_ARRAY10;
+ const themeSizes = presets?.theme ?? EMPTY_ARRAY10;
+ return (0, import_element211.useMemo)(() => {
+ const sizes = [
+ { name: (0, import_i18n128.__)("None"), slug: "0", size: 0 },
+ ...customSizes,
+ ...themeSizes,
+ ...defaultSizes
+ ];
+ return sizes.length > RANGE_CONTROL_MAX_SIZE3 ? [
{
- side: view,
- ...inputControlProps,
- showSideInLabel
- }
- );
- };
- const sideLabel = ALL_SIDES.includes(view) && showSideInLabel ? LABELS[view] : "";
- const label = (0, import_i18n177.sprintf)(
- // translators: 1: The side of the block being modified (top, bottom, left etc.). 2. Type of spacing being modified (padding, margin, etc).
- (0, import_i18n177._x)("%1$s %2$s", "spacing"),
- labelProp,
- sideLabel
- ).trim();
- return /* @__PURE__ */ (0, import_jsx_runtime413.jsxs)("fieldset", { className: "spacing-sizes-control", children: [
- /* @__PURE__ */ (0, import_jsx_runtime413.jsxs)(import_components187.__experimentalHStack, { className: "spacing-sizes-control__header", children: [
- /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(
- import_components187.BaseControl.VisualLabel,
- {
- as: "legend",
- className: "spacing-sizes-control__label",
- children: label
- }
- ),
- !hasOneSide && !hasOnlyAxialSides && /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(
- LinkedButton2,
- {
- label: labelProp,
- onClick: toggleLinked,
- isLinked: view === VIEWS.axial
- }
- )
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(import_components187.__experimentalVStack, { spacing: 0.5, children: renderControls() })
- ] });
+ name: (0, import_i18n128.__)("Default"),
+ slug: "default",
+ size: void 0
+ },
+ ...sizes
+ ] : sizes;
+ }, [customSizes, themeSizes, defaultSizes]);
}
-
- // packages/block-editor/build-module/components/preview-options/index.mjs
- var import_deprecated28 = __toESM(require_deprecated(), 1);
- function PreviewOptions() {
- (0, import_deprecated28.default)("wp.blockEditor.PreviewOptions", {
- version: "6.5"
- });
- return null;
+ function getCornerValue(values, corner) {
+ if (corner === "all") {
+ return getAllValue(values);
+ }
+ if (typeof values === "string") {
+ return values;
+ }
+ return values?.[corner];
}
-
- // packages/block-editor/build-module/components/use-resize-canvas/index.mjs
- var import_deprecated29 = __toESM(require_deprecated(), 1);
- function useResizeCanvas() {
- (0, import_deprecated29.default)("wp.blockEditor.useResizeCanvas", {
- since: "7.1",
- hint: "Device preview is now handled by the editor canvas. This hook no longer does anything."
- });
+ function getCornerUnit(selectedUnits, corner) {
+ if (corner === "all") {
+ return selectedUnits.flat;
+ }
+ return selectedUnits[corner];
}
-
- // packages/block-editor/build-module/components/block-inspector/index.mjs
- var import_i18n213 = __toESM(require_i18n(), 1);
- var import_blocks103 = __toESM(require_blocks(), 1);
- var import_components223 = __toESM(require_components(), 1);
- var import_data179 = __toESM(require_data(), 1);
- var import_element273 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/block-inspector/edit-contents.mjs
- var import_components188 = __toESM(require_components(), 1);
- var import_i18n178 = __toESM(require_i18n(), 1);
- var import_data156 = __toESM(require_data(), 1);
- var import_blocks87 = __toESM(require_blocks(), 1);
- var import_jsx_runtime414 = __toESM(require_jsx_runtime(), 1);
- function IsolatedEditButton({
- block,
- onNavigateToEntityRecord,
- isSyncedPattern,
- isTemplatePartBlock
- }) {
- const blockAttributes = block?.attributes || {};
- const handleClick = () => {
- if (isSyncedPattern) {
- onNavigateToEntityRecord({
- postId: blockAttributes.ref,
- postType: "wp_block"
+ function createCornerChangeHandler(corner, values, onChange) {
+ return (newValue) => {
+ if (corner === "all") {
+ onChange({
+ topLeft: newValue,
+ topRight: newValue,
+ bottomLeft: newValue,
+ bottomRight: newValue
+ });
+ } else {
+ const currentValues = typeof values !== "string" ? values || {} : {
+ topLeft: values,
+ topRight: values,
+ bottomLeft: values,
+ bottomRight: values
+ };
+ onChange({
+ ...currentValues,
+ [corner]: newValue
});
- } else if (isTemplatePartBlock) {
- const { theme: theme2, slug } = blockAttributes;
- const templatePartId = theme2 && slug ? `${theme2}//${slug}` : null;
- if (templatePartId) {
- onNavigateToEntityRecord({
- postId: templatePartId,
- postType: "wp_template_part"
- });
- }
}
};
- return /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(import_components188.__experimentalVStack, { className: "block-editor-block-inspector-edit-contents", expanded: true, children: /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
- import_components188.Button,
- {
- className: "block-editor-block-inspector-edit-contents__button",
- __next40pxDefaultSize: true,
- variant: "secondary",
- onClick: handleClick,
- children: (0, import_i18n178.__)("Edit original")
- }
- ) });
}
- function InlineEditButton({
- clientId,
- editedContentOnlySection: editedContentOnlySection2,
- editContentOnlySection: editContentOnlySection2,
- stopEditingContentOnlySection: stopEditingContentOnlySection2
- }) {
- const { selectBlock: selectBlock2 } = (0, import_data156.useDispatch)(store);
- const handleClick = () => {
- if (!editedContentOnlySection2) {
- editContentOnlySection2(clientId);
- selectBlock2(clientId);
+ function createCornerUnitChangeHandler(corner, selectedUnits, setSelectedUnits) {
+ return (newUnit) => {
+ const newUnits = { ...selectedUnits };
+ if (corner === "all") {
+ newUnits.flat = newUnit;
+ newUnits.topLeft = newUnit;
+ newUnits.topRight = newUnit;
+ newUnits.bottomLeft = newUnit;
+ newUnits.bottomRight = newUnit;
} else {
- stopEditingContentOnlySection2();
- selectBlock2(clientId);
+ newUnits[corner] = newUnit;
}
+ setSelectedUnits(newUnits);
};
- return /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(import_components188.__experimentalVStack, { className: "block-editor-block-inspector-edit-contents", expanded: true, children: /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
- import_components188.Button,
- {
- className: "block-editor-block-inspector-edit-contents__button",
- __next40pxDefaultSize: true,
- variant: "secondary",
- onClick: handleClick,
- children: editedContentOnlySection2 ? (
- /* translators: Button label to leave pattern editing mode. */
- (0, import_i18n178.__)("Exit pattern")
- ) : (
- /* translators: Button label to enter pattern editing mode. */
- (0, import_i18n178.__)("Edit pattern")
- )
- }
- ) });
}
- function EditContents({ clientId }) {
- const {
- isWithinSection,
- isWithinEditedSection,
- editedContentOnlySection: editedContentOnlySection2,
- editContentOnlySection: editContentOnlySection2,
- stopEditingContentOnlySection: stopEditingContentOnlySection2
- } = useContentOnlySectionEdit(clientId);
- const { block, onNavigateToEntityRecord, canEdit } = (0, import_data156.useSelect)(
- (select3) => {
- const { getBlock: getBlock2, getSettings: getSettings7, canEditBlock: canEditBlock2 } = select3(store);
- return {
- block: getBlock2(clientId),
- onNavigateToEntityRecord: getSettings7().onNavigateToEntityRecord,
- canEdit: canEditBlock2(clientId)
- };
- },
- [clientId]
+ function BorderRadiusControl({ onChange, values, presets }) {
+ const [isLinked, setIsLinked] = (0, import_element211.useState)(
+ !hasDefinedValues(values) || !hasMixedValues(values)
);
- if (!canEdit || !isWithinSection && !isWithinEditedSection) {
- return null;
- }
- const isSyncedPattern = (0, import_blocks87.isReusableBlock)(block);
- const isTemplatePartBlock = (0, import_blocks87.isTemplatePart)(block);
- const shouldUseIsolatedEditor = (isSyncedPattern || isTemplatePartBlock) && onNavigateToEntityRecord;
- if (shouldUseIsolatedEditor) {
- return /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
- IsolatedEditButton,
+ const options = useBorderRadiusSizes(presets);
+ const [selectedUnits, setSelectedUnits] = (0, import_element211.useState)({
+ flat: typeof values === "string" ? (0, import_components135.__experimentalParseQuantityAndUnitFromRawValue)(values)[1] : void 0,
+ topLeft: (0, import_components135.__experimentalParseQuantityAndUnitFromRawValue)(values?.topLeft)[1],
+ topRight: (0, import_components135.__experimentalParseQuantityAndUnitFromRawValue)(values?.topRight)[1],
+ bottomLeft: (0, import_components135.__experimentalParseQuantityAndUnitFromRawValue)(values?.bottomLeft)[1],
+ bottomRight: (0, import_components135.__experimentalParseQuantityAndUnitFromRawValue)(
+ values?.bottomRight
+ )[1]
+ });
+ const [availableUnits] = useSettings("spacing.units");
+ const units2 = (0, import_components135.__experimentalUseCustomUnits)({
+ availableUnits: availableUnits || ["px", "em", "rem"]
+ });
+ const toggleLinked = () => setIsLinked(!isLinked);
+ return /* @__PURE__ */ (0, import_jsx_runtime353.jsxs)("fieldset", { className: "components-border-radius-control", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime353.jsxs)(import_components135.__experimentalHStack, { className: "components-border-radius-control__header", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(import_components135.BaseControl.VisualLabel, { as: "legend", children: (0, import_i18n128.__)("Radius") }),
+ /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(LinkedButton, { onClick: toggleLinked, isLinked })
+ ] }),
+ isLinked ? /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(
+ PresetInputControl,
{
- block,
- onNavigateToEntityRecord,
- isSyncedPattern,
- isTemplatePartBlock
+ ariaLabel: CORNERS.all,
+ className: "components-border-radius-control",
+ icon: ICONS2.all,
+ minimumCustomValue: MIN_BORDER_RADIUS_VALUE,
+ onChange: createCornerChangeHandler(
+ "all",
+ values,
+ onChange
+ ),
+ onUnitChange: createCornerUnitChangeHandler(
+ "all",
+ selectedUnits,
+ setSelectedUnits
+ ),
+ presets: options,
+ presetType: "border-radius",
+ selectedUnit: getCornerUnit(selectedUnits, "all"),
+ showTooltip: true,
+ units: units2,
+ value: getCornerValue(values, "all")
}
- );
- }
- return /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
- InlineEditButton,
- {
- clientId,
- editedContentOnlySection: editedContentOnlySection2,
- editContentOnlySection: editContentOnlySection2,
- stopEditingContentOnlySection: stopEditingContentOnlySection2
- }
- );
+ ) : /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(import_components135.__experimentalVStack, { children: [
+ "topLeft",
+ "topRight",
+ "bottomLeft",
+ "bottomRight"
+ ].map((corner) => /* @__PURE__ */ (0, import_jsx_runtime353.jsx)(
+ PresetInputControl,
+ {
+ ariaLabel: CORNERS[corner],
+ className: "components-border-radius-control",
+ icon: ICONS2[corner],
+ minimumCustomValue: MIN_BORDER_RADIUS_VALUE,
+ onChange: createCornerChangeHandler(
+ corner,
+ values,
+ onChange
+ ),
+ onUnitChange: createCornerUnitChangeHandler(
+ corner,
+ selectedUnits,
+ setSelectedUnits
+ ),
+ presets: options,
+ presetType: "border-radius",
+ selectedUnit: getCornerUnit(
+ selectedUnits,
+ corner
+ ),
+ showTooltip: true,
+ units: units2,
+ value: getCornerValue(values, corner)
+ },
+ corner
+ )) })
+ ] });
}
- // packages/block-editor/build-module/components/skip-to-selected-block/index.mjs
- var import_data157 = __toESM(require_data(), 1);
- var import_i18n179 = __toESM(require_i18n(), 1);
- var import_components189 = __toESM(require_components(), 1);
- var import_element246 = __toESM(require_element(), 1);
- var import_jsx_runtime415 = __toESM(require_jsx_runtime(), 1);
- function SkipToSelectedBlock() {
- const selectedBlockClientId = (0, import_data157.useSelect)(
- (select3) => select3(store).getBlockSelectionStart(),
- []
- );
- const ref = (0, import_element246.useRef)();
- useBlockElementRef(selectedBlockClientId, ref);
- const onClick = () => {
- ref.current?.focus();
+ // packages/block-editor/build-module/components/color-palette/index.mjs
+ var import_components136 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/color-palette/with-color-context.mjs
+ var import_compose82 = __toESM(require_compose(), 1);
+ var import_jsx_runtime354 = __toESM(require_jsx_runtime(), 1);
+ var with_color_context_default = (0, import_compose82.createHigherOrderComponent)((WrappedComponent) => {
+ return function WithColorContext(props) {
+ const [
+ defaultColors,
+ themeColors,
+ customColors,
+ enableCustomColors,
+ enableDefaultColors
+ ] = useSettings(
+ "color.palette.default",
+ "color.palette.theme",
+ "color.palette.custom",
+ "color.custom",
+ "color.defaultPalette"
+ );
+ const _colors = enableDefaultColors ? [
+ ...themeColors || [],
+ ...defaultColors || [],
+ ...customColors || []
+ ] : [...themeColors || [], ...customColors || []];
+ const { colors: colors2 = _colors, disableCustomColors = !enableCustomColors } = props;
+ const hasColorsToChoose = colors2 && colors2.length > 0 || !disableCustomColors;
+ return /* @__PURE__ */ (0, import_jsx_runtime354.jsx)(
+ WrappedComponent,
+ {
+ ...{
+ ...props,
+ colors: colors2,
+ disableCustomColors,
+ hasColorsToChoose
+ }
+ }
+ );
};
- return selectedBlockClientId ? /* @__PURE__ */ (0, import_jsx_runtime415.jsx)(
- import_components189.Button,
+ }, "withColorContext");
+
+ // packages/block-editor/build-module/components/color-palette/index.mjs
+ var color_palette_default = with_color_context_default(import_components136.ColorPalette);
+
+ // packages/block-editor/build-module/components/colors-gradients/control.mjs
+ var import_i18n129 = __toESM(require_i18n(), 1);
+ var import_components137 = __toESM(require_components(), 1);
+ var import_jsx_runtime355 = __toESM(require_jsx_runtime(), 1);
+ var { Tabs: Tabs3 } = unlock(import_components137.privateApis);
+ var colorsAndGradientKeys = [
+ "colors",
+ "disableCustomColors",
+ "gradients",
+ "disableCustomGradients"
+ ];
+ var TAB_IDS = { color: "color", gradient: "gradient" };
+ function ColorGradientControlInner({
+ colors: colors2,
+ gradients,
+ disableCustomColors,
+ disableCustomGradients,
+ __experimentalIsRenderedInSidebar,
+ className: className2,
+ label,
+ onColorChange,
+ onGradientChange,
+ colorValue,
+ colorSlug,
+ gradientValue,
+ gradientSlug,
+ clearable,
+ showTitle = true,
+ enableAlpha,
+ headingLevel,
+ noticeProps
+ }) {
+ const canChooseAColor = onColorChange && (colors2 && colors2.length > 0 || !disableCustomColors);
+ const canChooseAGradient = onGradientChange && (gradients && gradients.length > 0 || !disableCustomGradients);
+ if (!canChooseAColor && !canChooseAGradient) {
+ return null;
+ }
+ const colorPaletteOnChange = canChooseAGradient ? (newColor, _index, newSlug) => {
+ onColorChange(newColor, newSlug);
+ onGradientChange();
+ } : (newColor, _index, newSlug) => onColorChange(newColor, newSlug);
+ const colorPalette = /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
+ import_components137.ColorPalette,
{
- __next40pxDefaultSize: true,
- variant: "secondary",
- className: "block-editor-skip-to-selected-block",
- onClick,
- children: (0, import_i18n179.__)("Skip to the selected block")
+ value: colorValue,
+ selectedSlug: colorSlug,
+ onChange: colorPaletteOnChange,
+ ...{ colors: colors2, disableCustomColors },
+ __experimentalIsRenderedInSidebar,
+ clearable,
+ enableAlpha,
+ headingLevel
}
- ) : null;
- }
-
- // packages/block-editor/build-module/components/multi-selection-inspector/index.mjs
- var import_i18n180 = __toESM(require_i18n(), 1);
- var import_data158 = __toESM(require_data(), 1);
- var import_components190 = __toESM(require_components(), 1);
- var import_jsx_runtime416 = __toESM(require_jsx_runtime(), 1);
- function MultiSelectionInspector() {
- const selectedBlockCount = (0, import_data158.useSelect)(
- (select3) => select3(store).getSelectedBlockCount(),
- []
);
- return /* @__PURE__ */ (0, import_jsx_runtime416.jsxs)(
- import_components190.__experimentalHStack,
+ const tabPanels = {
+ // The `ColorPalette` must stay at a stable position in the tree whether
+ // or not a notice is present. Wrapping it in a `VStack` only when a
+ // notice appears remounts it, which resets the custom color picker back
+ // to the swatch view mid-edit. Keep `ColorPalette` first and toggle only
+ // the trailing notice after it, so the palette holds a stable index and
+ // the notice sits at the bottom of the popover.
+ [TAB_IDS.color]: /* @__PURE__ */ (0, import_jsx_runtime355.jsxs)(import_jsx_runtime355.Fragment, { children: [
+ colorPalette,
+ noticeProps && /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(import_components137.Notice, { isDismissible: false, ...noticeProps })
+ ] }),
+ [TAB_IDS.gradient]: /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
+ import_components137.GradientPicker,
+ {
+ value: gradientValue,
+ selectedSlug: gradientSlug,
+ onChange: canChooseAColor ? (newGradient, _index, newSlug) => {
+ onGradientChange(newGradient, newSlug);
+ onColorChange();
+ } : (newGradient, _index, newSlug) => onGradientChange(newGradient, newSlug),
+ ...{ gradients, disableCustomGradients },
+ __experimentalIsRenderedInSidebar,
+ clearable,
+ headingLevel
+ }
+ )
+ };
+ const renderPanelType = (type) => /* @__PURE__ */ (0, import_jsx_runtime355.jsx)("div", { className: "block-editor-color-gradient-control__panel", children: tabPanels[type] });
+ return /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
+ import_components137.BaseControl,
{
- justify: "flex-start",
- spacing: 2,
- className: "block-editor-multi-selection-inspector__card",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime416.jsx)(block_icon_default, { icon: copy_default, showColors: true }),
- /* @__PURE__ */ (0, import_jsx_runtime416.jsx)("div", { className: "block-editor-multi-selection-inspector__card-title", children: (0, import_i18n180.sprintf)(
- /* translators: %d: number of blocks */
- (0, import_i18n180._n)("%d Block", "%d Blocks", selectedBlockCount),
- selectedBlockCount
- ) })
- ]
+ className: clsx_default(
+ "block-editor-color-gradient-control",
+ className2
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime355.jsx)("fieldset", { className: "block-editor-color-gradient-control__fieldset", children: /* @__PURE__ */ (0, import_jsx_runtime355.jsxs)(import_components137.__experimentalVStack, { spacing: 1, children: [
+ showTitle && /* @__PURE__ */ (0, import_jsx_runtime355.jsx)("legend", { children: /* @__PURE__ */ (0, import_jsx_runtime355.jsx)("div", { className: "block-editor-color-gradient-control__color-indicator", children: /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(import_components137.BaseControl.VisualLabel, { children: label }) }) }),
+ canChooseAColor && canChooseAGradient && /* @__PURE__ */ (0, import_jsx_runtime355.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime355.jsxs)(
+ Tabs3,
+ {
+ defaultTabId: gradientValue ? TAB_IDS.gradient : !!canChooseAColor && TAB_IDS.color,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime355.jsxs)(Tabs3.TabList, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(Tabs3.Tab, { tabId: TAB_IDS.color, children: (0, import_i18n129.__)("Color") }),
+ /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(Tabs3.Tab, { tabId: TAB_IDS.gradient, children: (0, import_i18n129.__)("Gradient") })
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
+ Tabs3.TabPanel,
+ {
+ tabId: TAB_IDS.color,
+ className: "block-editor-color-gradient-control__panel",
+ focusable: false,
+ children: tabPanels.color
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
+ Tabs3.TabPanel,
+ {
+ tabId: TAB_IDS.gradient,
+ className: "block-editor-color-gradient-control__panel",
+ focusable: false,
+ children: tabPanels.gradient
+ }
+ )
+ ]
+ }
+ ) }),
+ !canChooseAGradient && renderPanelType(TAB_IDS.color),
+ !canChooseAColor && renderPanelType(TAB_IDS.gradient)
+ ] }) })
}
);
}
-
- // packages/block-editor/build-module/components/block-inspector/inspector-pre-tabs-slot-fill.mjs
- var import_components191 = __toESM(require_components(), 1);
- var BlockInspectorPreTabsKey = /* @__PURE__ */ Symbol("BlockInspectorPreTabs");
- var {
- Fill: BlockInspectorPreTabsFill,
- Slot: BlockInspectorPreTabsSlot
- } = (0, import_components191.createSlotFill)(BlockInspectorPreTabsKey);
-
- // packages/block-editor/build-module/components/inspector-controls-tabs/index.mjs
- var import_components220 = __toESM(require_components(), 1);
- var import_element271 = __toESM(require_element(), 1);
- var import_preferences5 = __toESM(require_preferences(), 1);
- var import_data176 = __toESM(require_data(), 1);
-
- // packages/block-editor/build-module/components/inspector-controls-tabs/utils.mjs
- var import_i18n181 = __toESM(require_i18n(), 1);
- var TAB_SETTINGS = {
- name: "settings",
- title: (0, import_i18n181.__)("Settings"),
- value: "settings",
- icon: cog_default
- };
- var TAB_STYLES = {
- name: "styles",
- title: (0, import_i18n181.__)("Styles"),
- value: "styles",
- icon: styles_default
- };
- var TAB_CONTENT = {
- name: "content",
- title: (0, import_i18n181.__)("Content"),
- value: "content",
- icon: page_default
- };
- var TAB_LIST_VIEW = {
- name: "list",
- title: (0, import_i18n181.__)("List View"),
- value: "list-view",
- icon: list_view_default
- };
-
- // packages/block-editor/build-module/components/inspector-controls-tabs/settings-tab.mjs
- var import_components193 = __toESM(require_components(), 1);
-
- // packages/block-editor/build-module/components/inspector-controls-tabs/advanced-controls-panel.mjs
- var import_components192 = __toESM(require_components(), 1);
- var import_i18n182 = __toESM(require_i18n(), 1);
- var import_jsx_runtime417 = __toESM(require_jsx_runtime(), 1);
- var AdvancedControls = ({ initialOpen = false }) => {
- const fills = (0, import_components192.__experimentalUseSlotFills)(InspectorAdvancedControls.slotName);
- const privateFills = (0, import_components192.__experimentalUseSlotFills)(
- PrivateInspectorControlsAllowedBlocks.name
+ function ColorGradientControlSelect(props) {
+ const [colors2, gradients, customColors, customGradients] = useSettings(
+ "color.palette",
+ "color.gradients",
+ "color.custom",
+ "color.customGradient"
);
- const hasFills = Boolean(fills && fills.length);
- const hasPrivateFills = Boolean(privateFills && privateFills.length);
- if (!hasFills && !hasPrivateFills) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime417.jsxs)(
- import_components192.PanelBody,
+ return /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(
+ ColorGradientControlInner,
{
- className: "block-editor-block-inspector__advanced",
- title: (0, import_i18n182.__)("Advanced"),
- initialOpen,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime417.jsx)(inspector_controls_default.Slot, { group: "advanced" }),
- /* @__PURE__ */ (0, import_jsx_runtime417.jsx)(PrivateInspectorControlsAllowedBlocks.Slot, {})
- ]
+ colors: colors2,
+ gradients,
+ disableCustomColors: !customColors,
+ disableCustomGradients: !customGradients,
+ ...props
}
);
- };
- var advanced_controls_panel_default = AdvancedControls;
-
- // packages/block-editor/build-module/components/inspector-controls-tabs/settings-tab.mjs
- var import_jsx_runtime418 = __toESM(require_jsx_runtime(), 1);
- var SettingsTab = ({ showAdvancedControls = false }) => {
- const defaultFills = (0, import_components193.__experimentalUseSlotFills)(groups_default.default.name);
- const bindingsFills = (0, import_components193.__experimentalUseSlotFills)(groups_default.bindings.name);
- const hasOtherFills = !!defaultFills?.length || !!bindingsFills?.length;
- return /* @__PURE__ */ (0, import_jsx_runtime418.jsxs)(import_jsx_runtime418.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime418.jsx)(inspector_controls_default.Slot, {}),
- /* @__PURE__ */ (0, import_jsx_runtime418.jsx)(inspector_controls_default.Slot, { group: "bindings" }),
- showAdvancedControls && /* @__PURE__ */ (0, import_jsx_runtime418.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime418.jsx)(advanced_controls_panel_default, { initialOpen: !hasOtherFills }) })
- ] });
- };
- var settings_tab_default = SettingsTab;
-
- // packages/block-editor/build-module/components/inspector-controls-tabs/styles-tab.mjs
- var import_i18n210 = __toESM(require_i18n(), 1);
- var import_data174 = __toESM(require_data(), 1);
- var import_element270 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/inspector-controls-tabs/position-controls-panel.mjs
- var import_components194 = __toESM(require_components(), 1);
- var import_data159 = __toESM(require_data(), 1);
- var import_i18n183 = __toESM(require_i18n(), 1);
- var import_jsx_runtime419 = __toESM(require_jsx_runtime(), 1);
- var PositionControlsPanel = () => {
- const { selectedClientIds, selectedBlocks, hasPositionAttribute } = (0, import_data159.useSelect)((select3) => {
- const { getBlocksByClientId: getBlocksByClientId2, getSelectedBlockClientIds: getSelectedBlockClientIds2 } = select3(store);
- const selectedBlockClientIds = getSelectedBlockClientIds2();
- const _selectedBlocks = getBlocksByClientId2(
- selectedBlockClientIds
- );
- return {
- selectedClientIds: selectedBlockClientIds,
- selectedBlocks: _selectedBlocks,
- hasPositionAttribute: _selectedBlocks?.some(
- ({ attributes }) => !!attributes?.style?.position?.type
- )
- };
- }, []);
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data159.useDispatch)(store);
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- function resetPosition() {
- if (!selectedClientIds?.length || !selectedBlocks?.length) {
- return;
- }
- const attributesByClientId = Object.fromEntries(
- selectedBlocks?.map(({ clientId, attributes }) => [
- clientId,
- {
- style: cleanEmptyObject({
- ...attributes?.style,
- position: {
- ...attributes?.style?.position,
- type: void 0,
- top: void 0,
- right: void 0,
- bottom: void 0,
- left: void 0
- }
- })
- }
- ])
- );
- updateBlockAttributes2(selectedClientIds, attributesByClientId, true);
+ }
+ function ColorGradientControl(props) {
+ if (colorsAndGradientKeys.every((key) => props.hasOwnProperty(key))) {
+ return /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(ColorGradientControlInner, { ...props });
}
- return /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(
- import_components194.__experimentalToolsPanel,
+ return /* @__PURE__ */ (0, import_jsx_runtime355.jsx)(ColorGradientControlSelect, { ...props });
+ }
+ var control_default = ColorGradientControl;
+
+ // packages/block-editor/build-module/components/color-palette/control.mjs
+ var import_jsx_runtime356 = __toESM(require_jsx_runtime(), 1);
+ function ColorPaletteControl({
+ onChange,
+ value,
+ ...otherProps
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime356.jsx)(
+ control_default,
{
- className: "block-editor-block-inspector__position",
- label: (0, import_i18n183.__)("Position"),
- resetAll: resetPosition,
- dropdownMenuProps,
- children: /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(
- import_components194.__experimentalToolsPanelItem,
- {
- isShownByDefault: hasPositionAttribute,
- label: (0, import_i18n183.__)("Position"),
- hasValue: () => hasPositionAttribute,
- onDeselect: resetPosition,
- children: /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(inspector_controls_default.Slot, { group: "position" })
- }
- )
+ ...otherProps,
+ onColorChange: onChange,
+ colorValue: value,
+ gradients: [],
+ disableCustomGradients: true
}
);
- };
- var PositionControls = () => {
- const fills = (0, import_components194.__experimentalUseSlotFills)(groups_default.position.name);
- const hasFills = Boolean(fills && fills.length);
- if (!hasFills) {
+ }
+
+ // packages/block-editor/build-module/components/contrast-checker/index.mjs
+ var import_i18n130 = __toESM(require_i18n(), 1);
+ var import_components138 = __toESM(require_components(), 1);
+ var import_a11y18 = __toESM(require_a11y(), 1);
+ var import_jsx_runtime357 = __toESM(require_jsx_runtime(), 1);
+ k([names_default, a11y_default]);
+ function getContrastWarning({
+ backgroundColor,
+ fallbackBackgroundColor,
+ fallbackTextColor,
+ fallbackLinkColor,
+ fontSize,
+ // Font size value in pixels.
+ isLargeText,
+ textColor,
+ linkColor,
+ messageOverride,
+ enableAlphaChecker = false
+ }) {
+ const currentBackgroundColor = backgroundColor || fallbackBackgroundColor;
+ if (!currentBackgroundColor) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(PositionControlsPanel, {});
- };
- var position_controls_panel_default = PositionControls;
-
- // packages/block-editor/build-module/hooks/border.mjs
- var import_blocks91 = __toESM(require_blocks(), 1);
- var import_components213 = __toESM(require_components(), 1);
- var import_element262 = __toESM(require_element(), 1);
- var import_hooks13 = __toESM(require_hooks(), 1);
- var import_data166 = __toESM(require_data(), 1);
- var import_i18n203 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/global-styles/index.mjs
- var global_styles_exports = {};
- __export(global_styles_exports, {
- AdvancedPanel: () => AdvancedPanel,
- BackgroundPanel: () => BackgroundImagePanel2,
- BorderPanel: () => BorderPanel,
- ColorPanel: () => ColorPanel,
- DimensionsPanel: () => DimensionsPanel,
- FiltersPanel: () => FiltersPanel,
- ImageSettingsPanel: () => ImageSettingsPanel,
- StateControl: () => StateControl,
- StateControlBadges: () => StateControlBadges,
- TypographyPanel: () => TypographyPanel,
- useHasBackgroundPanel: () => useHasBackgroundPanel,
- useHasBorderPanel: () => useHasBorderPanel,
- useHasBorderPanelControls: () => useHasBorderPanelControls,
- useHasColorPanel: () => useHasColorPanel,
- useHasDimensionsPanel: () => useHasDimensionsPanel,
- useHasFiltersPanel: () => useHasFiltersPanel,
- useHasImageSettingsPanel: () => useHasImageSettingsPanel,
- useHasTypographyPanel: () => useHasTypographyPanel,
- useSettingsForBlockElement: () => useSettingsForBlockElement
- });
-
- // packages/block-editor/build-module/components/global-styles/hooks.mjs
- var import_element247 = __toESM(require_element(), 1);
- var import_data160 = __toESM(require_data(), 1);
- var import_blocks88 = __toESM(require_blocks(), 1);
- var import_i18n184 = __toESM(require_i18n(), 1);
- function useSettingsForBlockElement(parentSettings, blockName, element) {
- const { supportedStyles, supports } = (0, import_data160.useSelect)(
- (select3) => {
- return {
- supportedStyles: unlock(
- select3(import_blocks88.store)
- ).getSupportedStyles(blockName, element),
- supports: select3(import_blocks88.store).getBlockType(blockName)?.supports
- };
+ const currentTextColor = textColor || fallbackTextColor;
+ const currentLinkColor = linkColor || fallbackLinkColor;
+ if (!currentTextColor && !currentLinkColor) {
+ return null;
+ }
+ const textColors = [
+ {
+ color: currentTextColor,
+ description: (0, import_i18n130.__)("text color")
},
- [blockName, element]
- );
- return (0, import_element247.useMemo)(() => {
- const updatedSettings = { ...parentSettings };
- if (!supportedStyles.includes("fontSize")) {
- updatedSettings.typography = {
- ...updatedSettings.typography,
- fontSizes: {},
- customFontSize: false,
- defaultFontSizes: false
- };
- }
- if (!supportedStyles.includes("fontFamily")) {
- updatedSettings.typography = {
- ...updatedSettings.typography,
- fontFamilies: {}
- };
- }
- updatedSettings.color = {
- ...updatedSettings.color,
- text: updatedSettings.color?.text && supportedStyles.includes("color"),
- background: updatedSettings.color?.background && (supportedStyles.includes("background") || supportedStyles.includes("backgroundColor")),
- button: updatedSettings.color?.button && supportedStyles.includes("buttonColor"),
- heading: updatedSettings.color?.heading && supportedStyles.includes("headingColor"),
- link: updatedSettings.color?.link && supportedStyles.includes("linkColor"),
- caption: updatedSettings.color?.caption && supportedStyles.includes("captionColor")
- };
- if (!supportedStyles.includes("background") && !supportedStyles.includes("backgroundGradient")) {
- updatedSettings.color.gradients = [];
- updatedSettings.color.customGradient = false;
+ {
+ color: currentLinkColor,
+ description: (0, import_i18n130.__)("link color")
}
- if (!supportedStyles.includes("filter")) {
- updatedSettings.color.defaultDuotone = false;
- updatedSettings.color.customDuotone = false;
+ ];
+ const colordBackgroundColor = w(currentBackgroundColor);
+ const backgroundColorHasTransparency = colordBackgroundColor.alpha() < 1;
+ const backgroundColorBrightness = colordBackgroundColor.brightness();
+ const isReadableOptions = {
+ level: "AA",
+ size: isLargeText || isLargeText !== false && fontSize >= 24 ? "large" : "small"
+ };
+ let message2 = "";
+ let speakMessage = "";
+ for (const item of textColors) {
+ if (!item.color) {
+ continue;
}
- [
- "lineHeight",
- "fontStyle",
- "fontWeight",
- "letterSpacing",
- "textAlign",
- "textTransform",
- "textDecoration",
- "textIndent",
- "writingMode"
- ].forEach((key) => {
- if (!supportedStyles.includes(key)) {
- updatedSettings.typography = {
- ...updatedSettings.typography,
- [key]: false
- };
+ const colordTextColor = w(item.color);
+ const isColordTextReadable = colordTextColor.isReadable(
+ colordBackgroundColor,
+ isReadableOptions
+ );
+ const textHasTransparency = colordTextColor.alpha() < 1;
+ if (!isColordTextReadable) {
+ if (backgroundColorHasTransparency || textHasTransparency) {
+ continue;
}
- });
- if (supportedStyles.includes("textIndent")) {
- updatedSettings.typography = {
- ...updatedSettings.typography,
- textIndent: updatedSettings.typography?.textIndent ?? "subsequent"
- };
+ if (messageOverride) {
+ message2 = messageOverride;
+ speakMessage = messageOverride;
+ break;
+ }
+ message2 = backgroundColorBrightness < colordTextColor.brightness() ? (0, import_i18n130.sprintf)(
+ // translators: %s is a type of text color, e.g., "text color" or "link color".
+ (0, import_i18n130.__)(
+ "This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."
+ ),
+ item.description
+ ) : (0, import_i18n130.sprintf)(
+ // translators: %s is a type of text color, e.g., "text color" or "link color".
+ (0, import_i18n130.__)(
+ "This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."
+ ),
+ item.description
+ );
+ speakMessage = (0, import_i18n130.__)(
+ "This color combination may be hard for people to read."
+ );
+ break;
}
- if (!supportedStyles.includes("columnCount")) {
- updatedSettings.typography = {
- ...updatedSettings.typography,
- textColumns: false
- };
+ if (textHasTransparency && enableAlphaChecker) {
+ message2 = (0, import_i18n130.__)("Transparent text may be hard for people to read.");
+ speakMessage = (0, import_i18n130.__)(
+ "Transparent text may be hard for people to read."
+ );
}
- ["contentSize", "wideSize"].forEach((key) => {
- if (!supportedStyles.includes(key)) {
- updatedSettings.layout = {
- ...updatedSettings.layout,
- [key]: false
- };
- }
- });
- ["padding", "margin", "blockGap"].forEach((key) => {
- if (!supportedStyles.includes(key)) {
- updatedSettings.spacing = {
- ...updatedSettings.spacing,
- [key]: false
- };
- }
- const sides2 = Array.isArray(supports?.spacing?.[key]) ? supports?.spacing?.[key] : supports?.spacing?.[key]?.sides;
- if (sides2?.length && updatedSettings.spacing?.[key]) {
- updatedSettings.spacing = {
- ...updatedSettings.spacing,
- [key]: {
- ...updatedSettings.spacing?.[key],
- sides: sides2
- }
- };
- }
- });
- ["aspectRatio", "height", "minHeight", "minWidth", "width"].forEach(
- (key) => {
- if (!supportedStyles.includes(key)) {
- updatedSettings.dimensions = {
- ...updatedSettings.dimensions,
- [key]: false
- };
- }
- }
- );
- ["radius", "color", "style", "width"].forEach((key) => {
- if (!supportedStyles.includes(
- "border" + key.charAt(0).toUpperCase() + key.slice(1)
- )) {
- updatedSettings.border = {
- ...updatedSettings.border,
- [key]: false
- };
- }
- });
- [
- ["backgroundImage", "backgroundImage"],
- ["backgroundSize", "backgroundSize"],
- ["backgroundGradient", "gradient"]
- ].forEach(([styleKey, settingKey]) => {
- if (!supportedStyles.includes(styleKey)) {
- updatedSettings.background = {
- ...updatedSettings.background,
- [settingKey]: false
- };
- }
- });
- updatedSettings.shadow = supportedStyles.includes("shadow") ? updatedSettings.shadow : false;
- return updatedSettings;
- }, [parentSettings, supportedStyles, supports]);
+ }
+ if (!message2) {
+ return null;
+ }
+ return { message: message2, speakMessage };
}
- function useColorsPerOrigin(settings2) {
- const customColors = settings2?.color?.palette?.custom;
- const themeColors = settings2?.color?.palette?.theme;
- const defaultColors = settings2?.color?.palette?.default;
- const shouldDisplayDefaultColors = settings2?.color?.defaultPalette;
- return (0, import_element247.useMemo)(() => {
- const result = [];
- if (themeColors && themeColors.length) {
- result.push({
- name: (0, import_i18n184._x)(
- "Theme",
- "Indicates this palette comes from the theme."
- ),
- colors: themeColors
- });
- }
- if (shouldDisplayDefaultColors && defaultColors && defaultColors.length) {
- result.push({
- name: (0, import_i18n184._x)(
- "Default",
- "Indicates this palette comes from WordPress."
- ),
- colors: defaultColors
- });
- }
- if (customColors && customColors.length) {
- result.push({
- name: (0, import_i18n184._x)(
- "Custom",
- "Indicates this palette is created by the user."
- ),
- colors: customColors
- });
+ function ContrastChecker(props) {
+ const warning6 = getContrastWarning(props);
+ if (!warning6) {
+ return null;
+ }
+ (0, import_a11y18.speak)(warning6.speakMessage);
+ return /* @__PURE__ */ (0, import_jsx_runtime357.jsx)("div", { className: "block-editor-contrast-checker", children: /* @__PURE__ */ (0, import_jsx_runtime357.jsx)(
+ import_components138.Notice,
+ {
+ spokenMessage: null,
+ status: "warning",
+ isDismissible: false,
+ children: warning6.message
}
- return result;
- }, [
- customColors,
- themeColors,
- defaultColors,
- shouldDisplayDefaultColors
- ]);
+ ) });
}
- function useGradientsPerOrigin(settings2) {
- const customGradients = settings2?.color?.gradients?.custom;
- const themeGradients = settings2?.color?.gradients?.theme;
- const defaultGradients = settings2?.color?.gradients?.default;
- const shouldDisplayDefaultGradients = settings2?.color?.defaultGradients;
- return (0, import_element247.useMemo)(() => {
- const result = [];
- if (themeGradients && themeGradients.length) {
- result.push({
- name: (0, import_i18n184._x)(
- "Theme",
- "Indicates this palette comes from the theme."
- ),
- gradients: themeGradients
- });
- }
- if (shouldDisplayDefaultGradients && defaultGradients && defaultGradients.length) {
- result.push({
- name: (0, import_i18n184._x)(
- "Default",
- "Indicates this palette comes from WordPress."
- ),
- gradients: defaultGradients
- });
- }
- if (customGradients && customGradients.length) {
- result.push({
- name: (0, import_i18n184._x)(
- "Custom",
- "Indicates this palette is created by the user."
+ var contrast_checker_default = ContrastChecker;
+
+ // packages/block-editor/build-module/components/date-format-picker/index.mjs
+ var import_i18n131 = __toESM(require_i18n(), 1);
+ var import_date2 = __toESM(require_date(), 1);
+ var import_element212 = __toESM(require_element(), 1);
+ var import_components139 = __toESM(require_components(), 1);
+ var import_jsx_runtime358 = __toESM(require_jsx_runtime(), 1);
+ var exampleDate = /* @__PURE__ */ new Date();
+ exampleDate.setDate(20);
+ exampleDate.setMonth(exampleDate.getMonth() - 3);
+ if (exampleDate.getMonth() === 4) {
+ exampleDate.setMonth(3);
+ }
+ function DateFormatPicker({
+ format: format7,
+ defaultFormat,
+ onChange
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime358.jsxs)(
+ import_components139.__experimentalVStack,
+ {
+ as: "fieldset",
+ spacing: 4,
+ className: "block-editor-date-format-picker",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime358.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime358.jsx)("legend", {}), children: (0, import_i18n131.__)("Date format") }),
+ /* @__PURE__ */ (0, import_jsx_runtime358.jsx)(
+ import_components139.ToggleControl,
+ {
+ label: (0, import_i18n131.__)("Default format"),
+ help: `${(0, import_i18n131.__)("Example:")} ${(0, import_date2.dateI18n)(
+ defaultFormat,
+ exampleDate
+ )}`,
+ checked: !format7,
+ onChange: (checked) => onChange(checked ? null : defaultFormat)
+ }
),
- gradients: customGradients
- });
+ format7 && /* @__PURE__ */ (0, import_jsx_runtime358.jsx)(NonDefaultControls, { format: format7, onChange })
+ ]
}
- return result;
- }, [
- customGradients,
- themeGradients,
- defaultGradients,
- shouldDisplayDefaultGradients
- ]);
- }
- function useColorGradientSettings(settings2) {
- const colors2 = useColorsPerOrigin(settings2);
- const gradients = useGradientsPerOrigin(settings2);
- const areCustomSolidsEnabled = settings2?.color?.custom;
- const areCustomGradientsEnabled = settings2?.color?.customGradient;
- const allColors = (0, import_element247.useMemo)(
- () => colors2.flatMap(({ colors: originColors }) => originColors),
- [colors2]
);
- const decodeValue = (rawValue) => getValueFromVariable({ settings: settings2 }, "", rawValue);
- const encodeGradientValue = (gradientValue, slug) => {
- if (slug) {
- return "var:preset|gradient|" + slug;
+ }
+ function NonDefaultControls({ format: format7, onChange }) {
+ const suggestedFormats = [
+ .../* @__PURE__ */ new Set([
+ /* translators: See https://www.php.net/manual/datetime.format.php */
+ "Y-m-d",
+ /* translators: See https://www.php.net/manual/datetime.format.php */
+ (0, import_i18n131._x)("n/j/Y", "short date format"),
+ /* translators: See https://www.php.net/manual/datetime.format.php */
+ (0, import_i18n131._x)("n/j/Y g:i A", "short date format with time"),
+ /* translators: See https://www.php.net/manual/datetime.format.php */
+ (0, import_i18n131._x)("M j, Y", "medium date format"),
+ /* translators: See https://www.php.net/manual/datetime.format.php */
+ (0, import_i18n131._x)("M j, Y g:i A", "medium date format with time"),
+ /* translators: See https://www.php.net/manual/datetime.format.php */
+ (0, import_i18n131._x)("F j, Y", "long date format"),
+ /* translators: See https://www.php.net/manual/datetime.format.php */
+ (0, import_i18n131._x)("M j", "short date format without the year")
+ ])
+ ];
+ const suggestedOptions = [
+ ...suggestedFormats.map((suggestedFormat, index2) => ({
+ key: `suggested-${index2}`,
+ name: (0, import_date2.dateI18n)(suggestedFormat, exampleDate),
+ format: suggestedFormat
+ })),
+ {
+ key: "human-diff",
+ name: (0, import_date2.humanTimeDiff)(exampleDate),
+ format: "human-diff"
}
- const allGradients = gradients.flatMap(
- ({ gradients: originGradients }) => originGradients
- );
- const gradientObject = allGradients.find(
- ({ gradient }) => gradient === gradientValue
- );
- return gradientObject ? "var:preset|gradient|" + gradientObject.slug : gradientValue;
- };
- return {
- colors: colors2,
- gradients,
- allColors,
- areCustomSolidsEnabled,
- areCustomGradientsEnabled,
- hasSolidColors: colors2.length > 0 || areCustomSolidsEnabled,
- hasGradientColors: gradients.length > 0 || areCustomGradientsEnabled,
- decodeValue,
- encodeGradientValue
+ ];
+ const customOption = {
+ key: "custom",
+ name: (0, import_i18n131.__)("Custom"),
+ className: "block-editor-date-format-picker__custom-format-select-control__custom-option",
+ hint: (0, import_i18n131.__)("Enter your own date format")
};
+ const [isCustom, setIsCustom] = (0, import_element212.useState)(
+ () => !!format7 && !suggestedOptions.some((option) => option.format === format7)
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime358.jsxs)(import_components139.__experimentalVStack, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime358.jsx)(
+ import_components139.CustomSelectControl,
+ {
+ label: (0, import_i18n131.__)("Choose a format"),
+ options: [...suggestedOptions, customOption],
+ value: isCustom ? customOption : suggestedOptions.find(
+ (option) => option.format === format7
+ ) ?? customOption,
+ onChange: ({ selectedItem }) => {
+ if (selectedItem === customOption) {
+ setIsCustom(true);
+ } else {
+ setIsCustom(false);
+ onChange(selectedItem.format);
+ }
+ }
+ }
+ ),
+ isCustom && /* @__PURE__ */ (0, import_jsx_runtime358.jsx)(
+ import_components139.TextControl,
+ {
+ label: (0, import_i18n131.__)("Custom format"),
+ hideLabelFromVision: true,
+ help: (0, import_element212.createInterpolateElement)(
+ (0, import_i18n131.__)(
+ "Enter a date or time <Link>format string</Link>."
+ ),
+ {
+ Link: /* @__PURE__ */ (0, import_jsx_runtime358.jsx)(
+ import_components139.ExternalLink,
+ {
+ href: (0, import_i18n131.__)(
+ "https://wordpress.org/documentation/article/customize-date-and-time-format/"
+ )
+ }
+ )
+ }
+ ),
+ value: format7,
+ onChange: (value) => onChange(value)
+ }
+ )
+ ] });
}
- // packages/block-editor/build-module/components/global-styles/typography-panel.mjs
- var import_components200 = __toESM(require_components(), 1);
- var import_i18n190 = __toESM(require_i18n(), 1);
- var import_element251 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/text-alignment-control/index.mjs
- var import_i18n185 = __toESM(require_i18n(), 1);
- var import_element248 = __toESM(require_element(), 1);
- var import_components195 = __toESM(require_components(), 1);
- var import_jsx_runtime420 = __toESM(require_jsx_runtime(), 1);
- var TEXT_ALIGNMENT_OPTIONS = [
- {
- label: (0, import_i18n185.__)("Align text left"),
- value: "left",
- icon: align_left_default
- },
- {
- label: (0, import_i18n185.__)("Align text center"),
- value: "center",
- icon: align_center_default
- },
- {
- label: (0, import_i18n185.__)("Align text right"),
- value: "right",
- icon: align_right_default
- },
- {
- label: (0, import_i18n185.__)("Justify text"),
- value: "justify",
- icon: align_justify_default
- }
- ];
- var DEFAULT_OPTIONS = ["left", "center", "right"];
- function TextAlignmentControl({
- className,
+ // packages/block-editor/build-module/components/duotone-control/index.mjs
+ var import_components140 = __toESM(require_components(), 1);
+ var import_i18n132 = __toESM(require_i18n(), 1);
+ var import_keycodes18 = __toESM(require_keycodes(), 1);
+ var import_compose83 = __toESM(require_compose(), 1);
+ var import_jsx_runtime359 = __toESM(require_jsx_runtime(), 1);
+ function DuotoneControl({
+ id: idProp,
+ colorPalette,
+ duotonePalette,
+ disableCustomColors,
+ disableCustomDuotone,
value,
- onChange,
- options = DEFAULT_OPTIONS
+ onChange
}) {
- const validOptions = (0, import_element248.useMemo)(
- () => TEXT_ALIGNMENT_OPTIONS.filter(
- (option) => options.includes(option.value)
- ),
- [options]
- );
- if (!validOptions.length) {
- return null;
+ let toolbarIcon;
+ if (value === "unset") {
+ toolbarIcon = /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(import_components140.ColorIndicator, { className: "block-editor-duotone-control__unset-indicator" });
+ } else if (value) {
+ toolbarIcon = /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(import_components140.DuotoneSwatch, { values: value });
+ } else {
+ toolbarIcon = /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(icon_default, { icon: filter_default });
}
- return /* @__PURE__ */ (0, import_jsx_runtime420.jsx)(
- import_components195.__experimentalToggleGroupControl,
+ const actionLabel = (0, import_i18n132.__)("Apply duotone filter");
+ const id = (0, import_compose83.useInstanceId)(DuotoneControl, "duotone-control", idProp);
+ const descriptionId = `${id}__description`;
+ return /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
+ import_components140.Dropdown,
{
- isDeselectable: true,
- label: (0, import_i18n185.__)("Text alignment"),
- className: clsx_default(
- "block-editor-text-alignment-control",
- className
- ),
- value,
- onChange: (newValue) => {
- onChange(newValue === value ? void 0 : newValue);
+ popoverProps: {
+ className: "block-editor-duotone-control__popover",
+ headerTitle: (0, import_i18n132.__)("Duotone")
},
- children: validOptions.map((option) => {
- return /* @__PURE__ */ (0, import_jsx_runtime420.jsx)(
- import_components195.__experimentalToggleGroupControlOptionIcon,
+ renderToggle: ({ isOpen, onToggle }) => {
+ const openOnArrowDown = (event) => {
+ if (!isOpen && event.keyCode === import_keycodes18.DOWN) {
+ event.preventDefault();
+ onToggle();
+ }
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
+ import_components140.ToolbarButton,
{
- value: option.value,
- icon: option.icon,
- label: option.label
- },
- option.value
+ showTooltip: true,
+ onClick: onToggle,
+ "aria-haspopup": "true",
+ "aria-expanded": isOpen,
+ onKeyDown: openOnArrowDown,
+ label: actionLabel,
+ icon: toolbarIcon
+ }
);
- })
+ },
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime359.jsxs)(import_components140.MenuGroup, { label: (0, import_i18n132.__)("Duotone"), children: [
+ /* @__PURE__ */ (0, import_jsx_runtime359.jsx)("p", { children: (0, import_i18n132.__)(
+ "Create a two-tone color effect without losing your original image."
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime359.jsx)(
+ import_components140.DuotonePicker,
+ {
+ "aria-label": actionLabel,
+ "aria-describedby": descriptionId,
+ colorPalette,
+ duotonePalette,
+ disableCustomColors,
+ disableCustomDuotone,
+ value,
+ onChange
+ }
+ )
+ ] })
}
);
}
+ var duotone_control_default = DuotoneControl;
- // packages/block-editor/build-module/components/text-indent-control/index.mjs
- var import_components196 = __toESM(require_components(), 1);
- var import_i18n186 = __toESM(require_i18n(), 1);
- var import_jsx_runtime421 = __toESM(require_jsx_runtime(), 1);
- function TextIndentControl({
- value,
- onChange,
- __unstableInputWidth = "60px",
- withSlider = false,
- hasBottomMargin = false,
- help,
- className,
- placeholder,
- ...otherProps
- }) {
- const [availableUnits] = useSettings("spacing.units");
- const units2 = (0, import_components196.__experimentalUseCustomUnits)({
- availableUnits: availableUnits || [
- "px",
- "em",
- "rem",
- "ch",
- "%",
- "vw",
- "vh"
- ],
- defaultValues: { px: 16, em: 2, rem: 2, ch: 2 }
- });
- const [valueQuantity, valueUnit] = (0, import_components196.__experimentalParseQuantityAndUnitFromRawValue)(
- value,
- units2
- );
- const isValueUnitRelative = !!valueUnit && ["em", "rem", "%", "ch", "vw", "vh"].includes(valueUnit);
- if (!withSlider) {
- return /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(
- import_components196.__experimentalUnitControl,
- {
- ...otherProps,
- label: (0, import_i18n186.__)("Line indent"),
- value,
- __unstableInputWidth,
- units: units2,
- onChange,
- help,
- className,
- placeholder
- }
- );
+ // packages/block-editor/build-module/components/font-appearance-control/index.mjs
+ var import_components141 = __toESM(require_components(), 1);
+ var import_element213 = __toESM(require_element(), 1);
+ var import_i18n136 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/utils/get-font-styles-and-weights.mjs
+ var import_i18n135 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/utils/format-font-style.mjs
+ var import_i18n133 = __toESM(require_i18n(), 1);
+ function formatFontStyle(fontStyle) {
+ if (!fontStyle) {
+ return {};
}
- return /* @__PURE__ */ (0, import_jsx_runtime421.jsxs)(import_components196.__experimentalView, { style: hasBottomMargin ? { marginBottom: 12 } : void 0, children: [
- /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(import_components196.BaseControl.VisualLabel, { children: (0, import_i18n186.__)("Line indent") }),
- /* @__PURE__ */ (0, import_jsx_runtime421.jsxs)(import_components196.Flex, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(import_components196.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(
- import_components196.__experimentalUnitControl,
- {
- label: (0, import_i18n186.__)("Line indent"),
- labelPosition: "top",
- hideLabelFromVision: true,
- value,
- onChange,
- units: units2,
- __unstableInputWidth,
- min: 0,
- className,
- placeholder
- }
- ) }),
- withSlider && /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(import_components196.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(import_components196.__experimentalSpacer, { marginX: 2, marginBottom: 0, children: /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(
- import_components196.RangeControl,
- {
- label: (0, import_i18n186.__)("Line indent"),
- hideLabelFromVision: true,
- value: valueQuantity,
- withInputField: false,
- onChange: (newValue) => {
- if (newValue === void 0) {
- onChange?.(void 0);
- } else {
- onChange?.(
- newValue + (valueUnit ?? "px")
- );
- }
- },
- min: 0,
- max: isValueUnitRelative ? 10 : 100,
- step: isValueUnitRelative ? 0.1 : 1,
- initialPosition: 0
- }
- ) }) })
- ] }),
- help && /* @__PURE__ */ (0, import_jsx_runtime421.jsx)("p", { className: "components-base-control__help", children: help })
- ] });
+ if (typeof fontStyle === "object") {
+ return fontStyle;
+ }
+ let name;
+ switch (fontStyle) {
+ case "normal":
+ name = (0, import_i18n133._x)("Regular", "font style");
+ break;
+ case "italic":
+ name = (0, import_i18n133._x)("Italic", "font style");
+ break;
+ case "oblique":
+ name = (0, import_i18n133._x)("Oblique", "font style");
+ break;
+ default:
+ name = fontStyle;
+ break;
+ }
+ return { name, value: fontStyle };
}
- // packages/block-editor/build-module/components/global-styles/color-gradient-dropdown-item.mjs
- var import_components198 = __toESM(require_components(), 1);
- var import_element249 = __toESM(require_element(), 1);
- var import_i18n188 = __toESM(require_i18n(), 1);
+ // packages/block-editor/build-module/utils/format-font-weight.mjs
+ var import_i18n134 = __toESM(require_i18n(), 1);
+ function formatFontWeight(fontWeight) {
+ if (!fontWeight) {
+ return {};
+ }
+ if (typeof fontWeight === "object") {
+ return fontWeight;
+ }
+ let name;
+ switch (fontWeight) {
+ case "normal":
+ case "400":
+ name = (0, import_i18n134._x)("Regular", "font weight");
+ break;
+ case "bold":
+ case "700":
+ name = (0, import_i18n134._x)("Bold", "font weight");
+ break;
+ case "100":
+ name = (0, import_i18n134._x)("Thin", "font weight");
+ break;
+ case "200":
+ name = (0, import_i18n134._x)("Extra Light", "font weight");
+ break;
+ case "300":
+ name = (0, import_i18n134._x)("Light", "font weight");
+ break;
+ case "500":
+ name = (0, import_i18n134._x)("Medium", "font weight");
+ break;
+ case "600":
+ name = (0, import_i18n134._x)("Semi Bold", "font weight");
+ break;
+ case "800":
+ name = (0, import_i18n134._x)("Extra Bold", "font weight");
+ break;
+ case "900":
+ name = (0, import_i18n134._x)("Black", "font weight");
+ break;
+ case "1000":
+ name = (0, import_i18n134._x)("Extra Black", "font weight");
+ break;
+ default:
+ name = fontWeight;
+ break;
+ }
+ return { name, value: fontWeight };
+ }
- // packages/block-editor/build-module/components/global-styles/inheritance/index.mjs
- var import_components197 = __toESM(require_components(), 1);
- var import_i18n187 = __toESM(require_i18n(), 1);
- var import_jsx_runtime422 = __toESM(require_jsx_runtime(), 1);
- var isGlobalStylesInheritanceEnabled = () => !!window.__experimentalGlobalStylesInheritanceUI;
- function getInheritanceProps(isInherited, hasLocalOverride, baseClassName) {
- const inheritedOnly = !!isInherited && !hasLocalOverride;
- const className = clsx_default(baseClassName, {
- "is-inherited-from-global-styles": inheritedOnly,
- "has-local-override-from-global-styles": !!hasLocalOverride
+ // packages/block-editor/build-module/utils/get-font-styles-and-weights.mjs
+ var FONT_STYLES = [
+ {
+ name: (0, import_i18n135._x)("Regular", "font style"),
+ value: "normal"
+ },
+ {
+ name: (0, import_i18n135._x)("Italic", "font style"),
+ value: "italic"
+ }
+ ];
+ var FONT_WEIGHTS = [
+ {
+ name: (0, import_i18n135._x)("Thin", "font weight"),
+ value: "100"
+ },
+ {
+ name: (0, import_i18n135._x)("Extra Light", "font weight"),
+ value: "200"
+ },
+ {
+ name: (0, import_i18n135._x)("Light", "font weight"),
+ value: "300"
+ },
+ {
+ name: (0, import_i18n135._x)("Regular", "font weight"),
+ value: "400"
+ },
+ {
+ name: (0, import_i18n135._x)("Medium", "font weight"),
+ value: "500"
+ },
+ {
+ name: (0, import_i18n135._x)("Semi Bold", "font weight"),
+ value: "600"
+ },
+ {
+ name: (0, import_i18n135._x)("Bold", "font weight"),
+ value: "700"
+ },
+ {
+ name: (0, import_i18n135._x)("Extra Bold", "font weight"),
+ value: "800"
+ },
+ {
+ name: (0, import_i18n135._x)("Black", "font weight"),
+ value: "900"
+ },
+ {
+ name: (0, import_i18n135._x)("Extra Black", "font weight"),
+ value: "1000"
+ }
+ ];
+ function getFontStylesAndWeights(fontFamilyFaces) {
+ let fontStyles = [];
+ let fontWeights = [];
+ const combinedStyleAndWeightOptions = [];
+ const isSystemFont = !fontFamilyFaces || fontFamilyFaces?.length === 0;
+ let isVariableFont = false;
+ fontFamilyFaces?.forEach((face) => {
+ if ("string" === typeof face.fontWeight && /\s/.test(face.fontWeight.trim())) {
+ isVariableFont = true;
+ const [startStr, endStr] = face.fontWeight.split(" ");
+ const startValue = parseInt(startStr.slice(0, 1));
+ const endValue = endStr === "1000" ? 10 : parseInt(endStr.slice(0, 1));
+ for (let i2 = startValue; i2 <= endValue; i2++) {
+ const fontWeightValue = `${i2.toString()}00`;
+ if (!fontWeights.some(
+ (weight) => weight.value === fontWeightValue
+ )) {
+ fontWeights.push(formatFontWeight(fontWeightValue));
+ }
+ }
+ }
+ const fontWeight = formatFontWeight(
+ "number" === typeof face.fontWeight ? face.fontWeight.toString() : face.fontWeight
+ );
+ const fontStyle = formatFontStyle(face.fontStyle);
+ if (fontStyle && Object.keys(fontStyle).length) {
+ if (!fontStyles.some(
+ (style) => style.value === fontStyle.value
+ )) {
+ fontStyles.push(fontStyle);
+ }
+ }
+ if (fontWeight && Object.keys(fontWeight).length) {
+ if (!fontWeights.some(
+ (weight) => weight.value === fontWeight.value
+ )) {
+ if (!isVariableFont) {
+ fontWeights.push(fontWeight);
+ }
+ }
+ }
+ });
+ if (!fontWeights.some((weight) => (weight.value ?? "") >= "600")) {
+ fontWeights.push({
+ name: (0, import_i18n135._x)("Bold", "font weight"),
+ value: "700"
+ });
+ }
+ if (!fontStyles.some((style) => style.value === "italic")) {
+ fontStyles.push({
+ name: (0, import_i18n135._x)("Italic", "font style"),
+ value: "italic"
+ });
+ }
+ if (isSystemFont) {
+ fontStyles = FONT_STYLES;
+ fontWeights = FONT_WEIGHTS;
+ }
+ fontStyles = fontStyles.length === 0 ? FONT_STYLES : fontStyles;
+ fontWeights = fontWeights.length === 0 ? FONT_WEIGHTS : fontWeights;
+ fontStyles.forEach(({ name: styleName, value: styleValue }) => {
+ fontWeights.forEach(({ name: weightName, value: weightValue }) => {
+ const optionName = styleValue === "normal" ? weightName : (0, import_i18n135.sprintf)(
+ /* translators: 1: Font weight name. 2: Font style name. */
+ (0, import_i18n135._x)("%1$s %2$s", "font"),
+ weightName ?? "",
+ styleName ?? ""
+ );
+ combinedStyleAndWeightOptions.push({
+ key: `${styleValue}-${weightValue}`,
+ name: optionName ?? "",
+ style: {
+ fontStyle: styleValue,
+ fontWeight: weightValue
+ }
+ });
+ });
});
return {
- ...className ? { className } : {},
- isInherited: inheritedOnly,
- hasLocalOverride: !!hasLocalOverride
+ fontStyles,
+ fontWeights,
+ combinedStyleAndWeightOptions,
+ isSystemFont,
+ isVariableFont
};
}
- function InheritanceResetButton({ onResetToInherited, className }) {
- return (
- // Intentionally small (14×14) circular control; exempt from the
- // 40px default-size enforcement rule.
- // eslint-disable-next-line @wordpress/components-no-missing-40px-size-prop
- /* @__PURE__ */ (0, import_jsx_runtime422.jsxs)(
- import_components197.Button,
- {
- __next40pxDefaultSize: false,
- label: (0, import_i18n187.__)("Reset to inherited value"),
- showTooltip: true,
- className: clsx_default(
- "has-local-override-from-global-styles__reset",
- className
- ),
- onClick: (event) => {
- event.preventDefault();
- event.stopPropagation();
- onResetToInherited?.();
- },
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime422.jsx)(
- "span",
- {
- "aria-hidden": "true",
- className: "has-local-override-from-global-styles__dot"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime422.jsx)(
- import_components197.Icon,
- {
- className: "has-local-override-from-global-styles__reset-icon",
- icon: reset_default
- }
- )
- ]
- }
- )
+
+ // packages/block-editor/build-module/components/font-appearance-control/index.mjs
+ var import_jsx_runtime360 = __toESM(require_jsx_runtime(), 1);
+ var getFontAppearanceLabel = (hasFontStyles, hasFontWeights) => {
+ if (!hasFontStyles) {
+ return (0, import_i18n136.__)("Font weight");
+ }
+ if (!hasFontWeights) {
+ return (0, import_i18n136.__)("Font style");
+ }
+ return (0, import_i18n136.__)("Appearance");
+ };
+ function FontAppearanceControl(props) {
+ const {
+ /**
+ * Start opting into the larger default height that will become the default size in a future version.
+ *
+ * @deprecated Default behavior since WordPress 7.1. Prop can be safely removed.
+ */
+ __next40pxDefaultSize: _next40pxDefaultSize,
+ onChange,
+ hasFontStyles = true,
+ hasFontWeights = true,
+ fontFamilyFaces,
+ value: { fontStyle, fontWeight },
+ ...otherProps
+ } = props;
+ const hasStylesOrWeights = hasFontStyles || hasFontWeights;
+ const label = getFontAppearanceLabel(hasFontStyles, hasFontWeights);
+ const defaultOption = {
+ key: "default",
+ name: (0, import_i18n136.__)("Default"),
+ style: { fontStyle: void 0, fontWeight: void 0 }
+ };
+ const { fontStyles, fontWeights, combinedStyleAndWeightOptions } = getFontStylesAndWeights(fontFamilyFaces);
+ const combineOptions = () => {
+ const combinedOptions = [defaultOption];
+ if (combinedStyleAndWeightOptions) {
+ combinedOptions.push(...combinedStyleAndWeightOptions);
+ }
+ return combinedOptions;
+ };
+ const styleOptions = () => {
+ const combinedOptions = [defaultOption];
+ fontStyles.forEach(({ name, value }) => {
+ combinedOptions.push({
+ key: value,
+ name,
+ style: { fontStyle: value, fontWeight: void 0 }
+ });
+ });
+ return combinedOptions;
+ };
+ const weightOptions = () => {
+ const combinedOptions = [defaultOption];
+ fontWeights.forEach(({ name, value }) => {
+ combinedOptions.push({
+ key: value,
+ name,
+ style: { fontStyle: void 0, fontWeight: value }
+ });
+ });
+ return combinedOptions;
+ };
+ const selectOptions = (0, import_element213.useMemo)(() => {
+ if (hasFontStyles && hasFontWeights) {
+ return combineOptions();
+ }
+ return hasFontStyles ? styleOptions() : weightOptions();
+ }, [
+ props.options,
+ fontStyles,
+ fontWeights,
+ combinedStyleAndWeightOptions
+ ]);
+ const currentSelection = selectOptions.find(
+ (option) => option.style.fontStyle === fontStyle && option.style.fontWeight === fontWeight
+ ) || selectOptions[0];
+ const getDescribedBy = () => {
+ if (!currentSelection) {
+ return (0, import_i18n136.__)("No selected font appearance");
+ }
+ if (!hasFontStyles) {
+ return (0, import_i18n136.sprintf)(
+ // translators: %s: Currently selected font weight.
+ (0, import_i18n136.__)("Currently selected font weight: %s"),
+ currentSelection.name
+ );
+ }
+ if (!hasFontWeights) {
+ return (0, import_i18n136.sprintf)(
+ // translators: %s: Currently selected font style.
+ (0, import_i18n136.__)("Currently selected font style: %s"),
+ currentSelection.name
+ );
+ }
+ return (0, import_i18n136.sprintf)(
+ // translators: %s: Currently selected font appearance.
+ (0, import_i18n136.__)("Currently selected font appearance: %s"),
+ currentSelection.name
+ );
+ };
+ return hasStylesOrWeights && /* @__PURE__ */ (0, import_jsx_runtime360.jsx)(
+ import_components141.CustomSelectControl,
+ {
+ ...otherProps,
+ className: "components-font-appearance-control",
+ label,
+ describedBy: getDescribedBy(),
+ options: selectOptions,
+ value: currentSelection,
+ onChange: ({ selectedItem }) => onChange(selectedItem.style)
+ }
);
}
- function InheritanceToolsPanelItem({
- className,
- // Destructured (and unused) so the `getInheritanceProps` spread does not
- // leak `isInherited` onto the underlying `ToolsPanelItem`. The inherited
- // treatment is applied purely via `className`
- // (`is-inherited-from-global-styles`).
- isInherited,
- hasLocalOverride,
- label,
- onDeselect,
- showLocalOverrideActionsInLabel = true,
- hasInlineEndToggle = false,
- children,
- ...rest
+
+ // packages/block-editor/build-module/components/font-family/index.mjs
+ var import_components142 = __toESM(require_components(), 1);
+ var import_i18n137 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime361 = __toESM(require_jsx_runtime(), 1);
+ function FontFamilyControl({
+ /**
+ * Start opting into the larger default height that will become the default size in a future version.
+ *
+ * @deprecated Default behavior since WordPress 7.1. Prop can be safely removed.
+ */
+ __next40pxDefaultSize: _next40pxDefaultSize,
+ value = "",
+ onChange,
+ fontFamilies,
+ className: className2,
+ ...props
}) {
- const showResetAffordance = hasLocalOverride && showLocalOverrideActionsInLabel;
- return /* @__PURE__ */ (0, import_jsx_runtime422.jsxs)(
- import_components197.__experimentalToolsPanelItem,
+ const [blockLevelFontFamilies] = useSettings("typography.fontFamilies");
+ if (!fontFamilies) {
+ fontFamilies = blockLevelFontFamilies;
+ }
+ if (!fontFamilies || fontFamilies.length === 0) {
+ return null;
+ }
+ const options = [
{
- className,
- label,
- onDeselect,
- ...rest,
- children: [
- children,
- showResetAffordance && /* @__PURE__ */ (0, import_jsx_runtime422.jsx)(
- "div",
- {
- className: clsx_default("global-styles-inheritance-affordance", {
- "global-styles-inheritance-affordance--offset-toggle": hasInlineEndToggle
- }),
- children: /* @__PURE__ */ (0, import_jsx_runtime422.jsx)(InheritanceResetButton, { onResetToInherited: onDeselect })
- }
- )
- ]
+ key: "",
+ name: (0, import_i18n137.__)("Default")
+ },
+ ...fontFamilies.map(({ fontFamily, name }) => ({
+ key: fontFamily,
+ name: name || fontFamily,
+ style: { fontFamily }
+ }))
+ ];
+ const selectedValue = options.find((option) => option.key === value) ?? "";
+ return /* @__PURE__ */ (0, import_jsx_runtime361.jsx)(
+ import_components142.CustomSelectControl,
+ {
+ label: (0, import_i18n137.__)("Font"),
+ value: selectedValue,
+ onChange: ({ selectedItem }) => onChange(selectedItem.key),
+ options,
+ className: clsx_default("block-editor-font-family-control", className2),
+ ...props
}
);
}
- // packages/block-editor/build-module/components/global-styles/color-gradient-dropdown-item.mjs
- var import_jsx_runtime423 = __toESM(require_jsx_runtime(), 1);
- var { Tabs: Tabs4 } = unlock(import_components198.privateApis);
- function DropdownContent({
- tabs,
- colorGradientControlSettings,
- contrastWarning
+ // packages/block-editor/build-module/components/letter-spacing-control/index.mjs
+ var import_components143 = __toESM(require_components(), 1);
+ var import_i18n138 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime362 = __toESM(require_jsx_runtime(), 1);
+ function LetterSpacingControl({
+ value,
+ onChange,
+ __unstableInputWidth = "60px",
+ ...otherProps
}) {
- const { key: firstTabKey, ...firstTab } = tabs[0] ?? {};
- const defaultTabId = (tabs.find((tab) => tab.userValue !== void 0) ?? tabs.find(
- (tab) => tab.isPlaceholder || tab.inheritedValue !== void 0
- ))?.key;
- return /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(import_components198.__experimentalDropdownContentWrapper, { paddingSize: "none", children: /* @__PURE__ */ (0, import_jsx_runtime423.jsxs)("div", { className: "block-editor-panel-color-gradient-settings__dropdown-content", children: [
- tabs.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- ColorGradientTab,
- {
- ...firstTab,
- colorGradientControlSettings,
- contrastWarning
+ const [availableUnits] = useSettings("spacing.units");
+ const units2 = (0, import_components143.__experimentalUseCustomUnits)({
+ availableUnits: availableUnits || ["px", "em", "rem"],
+ defaultValues: { px: 2, em: 0.2, rem: 0.2 }
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime362.jsx)(
+ import_components143.__experimentalUnitControl,
+ {
+ ...otherProps,
+ label: (0, import_i18n138.__)("Letter spacing"),
+ value,
+ __unstableInputWidth,
+ units: units2,
+ onChange
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/text-decoration-control/index.mjs
+ var import_i18n139 = __toESM(require_i18n(), 1);
+ var import_components144 = __toESM(require_components(), 1);
+ var import_jsx_runtime363 = __toESM(require_jsx_runtime(), 1);
+ var TEXT_DECORATIONS = [
+ {
+ label: (0, import_i18n139.__)("None"),
+ value: "none",
+ icon: reset_default
+ },
+ {
+ label: (0, import_i18n139.__)("Underline"),
+ value: "underline",
+ icon: format_underline_default
+ },
+ {
+ label: (0, import_i18n139.__)("Strikethrough"),
+ value: "line-through",
+ icon: format_strikethrough_default
+ }
+ ];
+ function TextDecorationControl({
+ value,
+ onChange,
+ className: className2
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime363.jsx)(
+ import_components144.__experimentalToggleGroupControl,
+ {
+ isDeselectable: true,
+ label: (0, import_i18n139.__)("Decoration"),
+ className: clsx_default(
+ "block-editor-text-decoration-control",
+ className2
+ ),
+ value,
+ onChange: (newValue) => {
+ onChange(newValue === value ? void 0 : newValue);
},
- firstTabKey
- ),
- tabs.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime423.jsxs)(Tabs4, { defaultTabId, children: [
- /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(Tabs4.TabList, { children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(Tabs4.Tab, { tabId: tab.key, children: tab.label }, tab.key)) }),
- tabs.map((tab) => {
- const { key: tabKey, ...restTabProps } = tab;
- return /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- Tabs4.TabPanel,
+ children: TEXT_DECORATIONS.map((option) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime363.jsx)(
+ import_components144.__experimentalToggleGroupControlOptionIcon,
{
- tabId: tabKey,
- focusable: false,
- children: /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- ColorGradientTab,
- {
- ...restTabProps,
- colorGradientControlSettings,
- contrastWarning
- },
- tabKey
- )
+ value: option.value,
+ icon: option.icon,
+ label: option.label
},
- tabKey
+ option.value
);
})
- ] })
- ] }) });
- }
- var popoverProps = {
- placement: "left-start",
- offset: 36,
- shift: true
- };
- var LabeledColorIndicators = ({ indicators, label }) => /* @__PURE__ */ (0, import_jsx_runtime423.jsxs)(import_components198.__experimentalHStack, { justify: "flex-start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(import_components198.__experimentalZStack, { isLayered: false, offset: -8, children: indicators.map((indicator, index2) => /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(import_components198.Flex, { expanded: false, children: /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(import_components198.ColorIndicator, { colorValue: indicator }) }, index2)) }),
- /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(import_components198.FlexItem, { className: "block-editor-panel-color-gradient-settings__color-name", children: label })
- ] });
- function ColorGradientTab({
- isGradient,
- inheritedValue,
- inheritedSlug,
- userSlug,
- userValue,
- setValue,
- isPlaceholder,
- colorGradientControlSettings,
- contrastWarning
- }) {
- const displayed = userValue ?? inheritedValue;
- const displayedSlug = userValue !== void 0 ? userSlug : inheritedSlug;
- const onChange = (newValue, newSlug) => {
- if (isPlaceholder && newValue === void 0) {
- setValue(inheritedValue, inheritedSlug);
- return;
}
- setValue(newValue, newSlug);
- };
- return /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- control_default,
+ );
+ }
+
+ // packages/block-editor/build-module/components/text-transform-control/index.mjs
+ var import_i18n140 = __toESM(require_i18n(), 1);
+ var import_components145 = __toESM(require_components(), 1);
+ var import_jsx_runtime364 = __toESM(require_jsx_runtime(), 1);
+ var TEXT_TRANSFORMS = [
+ {
+ label: (0, import_i18n140.__)("None"),
+ value: "none",
+ icon: reset_default
+ },
+ {
+ label: (0, import_i18n140.__)("Uppercase"),
+ value: "uppercase",
+ icon: format_uppercase_default
+ },
+ {
+ label: (0, import_i18n140.__)("Lowercase"),
+ value: "lowercase",
+ icon: format_lowercase_default
+ },
+ {
+ label: (0, import_i18n140.__)("Capitalize"),
+ value: "capitalize",
+ icon: format_capitalize_default
+ }
+ ];
+ function TextTransformControl({ className: className2, value, onChange }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime364.jsx)(
+ import_components145.__experimentalToggleGroupControl,
{
- ...colorGradientControlSettings,
- showTitle: false,
- enableAlpha: true,
- __experimentalIsRenderedInSidebar: true,
- colorValue: isGradient ? void 0 : displayed,
- colorSlug: isGradient ? void 0 : displayedSlug,
- gradientValue: isGradient ? displayed : void 0,
- gradientSlug: isGradient ? displayedSlug : void 0,
- onColorChange: isGradient ? void 0 : onChange,
- onGradientChange: isGradient ? onChange : void 0,
- clearable: userValue !== void 0,
- headingLevel: 3,
- noticeProps: !isGradient && contrastWarning ? {
- children: contrastWarning,
- status: "warning",
- spokenMessage: null,
- className: "block-editor-panel-color-gradient-settings__contrast-notice"
- } : void 0
+ isDeselectable: true,
+ label: (0, import_i18n140.__)("Letter case"),
+ className: clsx_default(
+ "block-editor-text-transform-control",
+ className2
+ ),
+ value,
+ onChange: (newValue) => {
+ onChange(newValue === value ? void 0 : newValue);
+ },
+ children: TEXT_TRANSFORMS.map((option) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime364.jsx)(
+ import_components145.__experimentalToggleGroupControlOptionIcon,
+ {
+ value: option.value,
+ icon: option.icon,
+ label: option.label
+ },
+ option.value
+ );
+ })
}
);
}
- function ColorGradientDropdownItem({
- label,
- hasValue: hasValue3,
- resetValue,
- isShownByDefault,
- indicators,
- tabs,
- colorGradientControlSettings,
- panelId,
- contrastWarning,
- className = "block-editor-tools-panel-color-gradient-settings__item",
- isPlaceholder = false,
- hasInheritedValue = false,
- showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
- }) {
- const colorGradientDropdownButtonRef = (0, import_element249.useRef)(void 0);
- const itemClassName = clsx_default("block-editor-color-gradient-item", className);
- const hasLocalOverride = showInheritanceLabelIndicators && hasValue3() && hasInheritedValue;
- const inheritanceProps = showInheritanceLabelIndicators ? getInheritanceProps(isPlaceholder, hasLocalOverride, itemClassName) : { className: itemClassName };
- return /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- InheritanceToolsPanelItem,
+
+ // packages/block-editor/build-module/components/writing-mode-control/index.mjs
+ var import_i18n141 = __toESM(require_i18n(), 1);
+ var import_components146 = __toESM(require_components(), 1);
+ var import_jsx_runtime365 = __toESM(require_jsx_runtime(), 1);
+ var WRITING_MODES = [
+ {
+ label: (0, import_i18n141.__)("Horizontal"),
+ value: "horizontal-tb",
+ icon: text_horizontal_default
+ },
+ {
+ label: (0, import_i18n141.__)("Vertical"),
+ value: (0, import_i18n141.isRTL)() ? "vertical-lr" : "vertical-rl",
+ icon: text_vertical_default
+ }
+ ];
+ function WritingModeControl({ className: className2, value, onChange }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(
+ import_components146.__experimentalToggleGroupControl,
{
- ...inheritanceProps,
- showLocalOverrideActionsInLabel: false,
- hasValue: hasValue3,
- label,
- onDeselect: resetValue,
- isShownByDefault,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- import_components198.Dropdown,
- {
- popoverProps,
- className: "block-editor-tools-panel-color-gradient-settings__dropdown",
- renderToggle: ({ onToggle, isOpen }) => {
- const toggleProps = {
- onClick: onToggle,
- className: clsx_default(
- "block-editor-panel-color-gradient-settings__dropdown",
- {
- "is-open": isOpen,
- "has-contrast-warning": !!contrastWarning
- }
- ),
- "aria-expanded": isOpen,
- ref: colorGradientDropdownButtonRef
- };
- return /* @__PURE__ */ (0, import_jsx_runtime423.jsxs)(import_jsx_runtime423.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(import_components198.Button, { ...toggleProps, __next40pxDefaultSize: true, children: /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- LabeledColorIndicators,
- {
- indicators,
- label
- }
- ) }),
- hasValue3() && (hasLocalOverride ? /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- InheritanceResetButton,
- {
- className: "block-editor-panel-color-gradient-settings__reset",
- onResetToInherited: () => {
- resetValue();
- if (isOpen) {
- onToggle();
- }
- colorGradientDropdownButtonRef.current?.focus();
- }
- }
- ) : /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- import_components198.Button,
- {
- __next40pxDefaultSize: true,
- label: (0, import_i18n188.__)("Reset"),
- className: "block-editor-panel-color-gradient-settings__reset",
- size: "small",
- icon: reset_default,
- onClick: () => {
- resetValue();
- if (isOpen) {
- onToggle();
- }
- colorGradientDropdownButtonRef.current?.focus();
- }
- }
- )),
- contrastWarning && // An icon-only warning that stays visible while a
- // contrast warning is in effect. It is not a menu;
- // activating it opens the color picker popover where
- // the full warning notice is shown, so the indicator
- // doubles as a shortcut to where the issue is fixed.
- /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- import_components198.Button,
- {
- __next40pxDefaultSize: true,
- size: "small",
- icon: caution_default,
- label: (0, import_i18n188.__)("Low contrast"),
- className: "block-editor-panel-color-gradient-settings__contrast-warning",
- "aria-expanded": isOpen,
- onClick: onToggle
- }
- )
- ] });
+ isDeselectable: true,
+ label: (0, import_i18n141.__)("Orientation"),
+ className: clsx_default("block-editor-writing-mode-control", className2),
+ value,
+ onChange: (newValue) => {
+ onChange(newValue === value ? void 0 : newValue);
+ },
+ children: WRITING_MODES.map((option) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime365.jsx)(
+ import_components146.__experimentalToggleGroupControlOptionIcon,
+ {
+ value: option.value,
+ icon: option.icon,
+ label: option.label
},
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(
- DropdownContent,
- {
- tabs,
- colorGradientControlSettings,
- contrastWarning
- }
- )
- }
- )
+ option.value
+ );
+ })
}
);
}
- // packages/block-editor/build-module/components/global-styles/color-panel.mjs
- var import_components199 = __toESM(require_components(), 1);
- var import_element250 = __toESM(require_element(), 1);
- var import_i18n189 = __toESM(require_i18n(), 1);
- var import_style_engine4 = __toESM(require_style_engine(), 1);
-
- // packages/block-editor/build-module/utils/color-values.mjs
- function extractPresetSlug(rawValue, type) {
- if (typeof rawValue !== "string") {
- return void 0;
- }
- const userPrefix = `var:preset|${type}|`;
- if (rawValue.startsWith(userPrefix)) {
- return rawValue.slice(userPrefix.length);
- }
- const cssVarPrefix = `--wp--preset--${type}--`;
- const themeFormatMatch = rawValue.match(
- new RegExp(`^var\\(${cssVarPrefix}([^)]+)\\)$`)
- );
- return themeFormatMatch?.[1];
- }
- function encodeColorValueWithPalette(allColors, colorValue, slug) {
- if (slug) {
- return "var:preset|color|" + slug;
- }
- const colorObject = allColors.find(({ color }) => color === colorValue);
- return colorObject ? "var:preset|color|" + colorObject.slug : colorValue;
- }
-
- // packages/block-editor/build-module/components/global-styles/color-panel.mjs
- var import_jsx_runtime424 = __toESM(require_jsx_runtime(), 1);
- function useHasColorPanel(settings2) {
- const hasLinkPanel = useHasLinkPanel(settings2);
- const hasHeadingPanel = useHasHeadingPanel(settings2);
- const hasButtonPanel = useHasButtonPanel(settings2);
- const hasCaptionPanel = useHasCaptionPanel(settings2);
- return hasLinkPanel || hasHeadingPanel || hasButtonPanel || hasCaptionPanel;
- }
- function useHasTextPanel(settings2) {
- const colors2 = useColorsPerOrigin(settings2);
- return settings2?.color?.text && (colors2?.length > 0 || settings2?.color?.custom);
- }
- function useHasLinkPanel(settings2) {
- const colors2 = useColorsPerOrigin(settings2);
- return settings2?.color?.link && (colors2?.length > 0 || settings2?.color?.custom);
- }
- function useHasCaptionPanel(settings2) {
- const colors2 = useColorsPerOrigin(settings2);
- return settings2?.color?.caption && (colors2?.length > 0 || settings2?.color?.custom);
- }
- function useHasHeadingPanel(settings2) {
- const colors2 = useColorsPerOrigin(settings2);
- const gradients = useGradientsPerOrigin(settings2);
- return settings2?.color?.heading && (colors2?.length > 0 || settings2?.color?.custom || gradients?.length > 0 || settings2?.color?.customGradient);
- }
- function useHasButtonPanel(settings2) {
- const colors2 = useColorsPerOrigin(settings2);
- const gradients = useGradientsPerOrigin(settings2);
- return settings2?.color?.button && (colors2?.length > 0 || settings2?.color?.custom || gradients?.length > 0 || settings2?.color?.customGradient);
- }
- function useHasBackgroundColorPanel(settings2) {
- const colors2 = useColorsPerOrigin(settings2);
- const gradients = useGradientsPerOrigin(settings2);
- return settings2?.color?.background && (colors2?.length > 0 || settings2?.color?.custom || gradients?.length > 0 || settings2?.color?.customGradient);
- }
- function ColorToolsPanel({
- resetAllFilter,
- onChange,
- value,
- panelId,
- children,
- label
- }) {
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- const resetAll = () => {
- const updatedValue = resetAllFilter(value);
- onChange(updatedValue);
+ // packages/block-editor/build-module/components/colors-gradients/dropdown.mjs
+ var import_components147 = __toESM(require_components(), 1);
+ var import_element214 = __toESM(require_element(), 1);
+ var import_i18n142 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime366 = __toESM(require_jsx_runtime(), 1);
+ var WithToolsPanelItem = ({ setting, children, panelId, ...props }) => {
+ const clearValue = () => {
+ if (setting.colorValue) {
+ setting.onColorChange();
+ } else if (setting.gradientValue) {
+ setting.onGradientChange();
+ }
};
- return /* @__PURE__ */ (0, import_jsx_runtime424.jsx)(
- import_components199.__experimentalToolsPanel,
+ return /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
+ import_components147.__experimentalToolsPanelItem,
{
- label: label || (0, import_i18n189.__)("Elements"),
- resetAll,
+ hasValue: () => {
+ return !!setting.colorValue || !!setting.gradientValue;
+ },
+ label: setting.label,
+ onDeselect: clearValue,
+ isShownByDefault: setting.isShownByDefault !== void 0 ? setting.isShownByDefault : true,
+ ...props,
+ className: clsx_default(
+ "block-editor-color-gradient-item",
+ "block-editor-tools-panel-color-gradient-settings__item"
+ ),
panelId,
- hasInnerWrapper: true,
- headingLevel: 3,
- className: "color-block-support-panel",
- __experimentalFirstVisibleItemClass: "first",
- __experimentalLastVisibleItemClass: "last",
- dropdownMenuProps,
- children: /* @__PURE__ */ (0, import_jsx_runtime424.jsx)("div", { className: "color-block-support-panel__inner-wrapper", children })
+ resetAllFilter: setting.resetAllFilter,
+ children
}
);
- }
- var DEFAULT_CONTROLS3 = {
- link: true,
- heading: true,
- button: true,
- caption: true
};
- function ColorPanel({
- as: Wrapper = ColorToolsPanel,
- value,
- onChange,
- inheritedValue = value,
- settings: settings2,
- panelId,
- defaultControls = DEFAULT_CONTROLS3,
- label,
- children,
- contrastWarning,
- showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
- }) {
+ var LabeledColorIndicator = ({ colorValue, label }) => /* @__PURE__ */ (0, import_jsx_runtime366.jsxs)(import_components147.__experimentalHStack, { justify: "flex-start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
+ import_components147.ColorIndicator,
+ {
+ className: "block-editor-panel-color-gradient-settings__color-indicator",
+ colorValue
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
+ import_components147.FlexItem,
+ {
+ className: "block-editor-panel-color-gradient-settings__color-name",
+ title: label,
+ children: label
+ }
+ )
+ ] });
+ var renderToggle = (settings2) => function Toggle2({ onToggle, isOpen }) {
const {
- colors: colors2,
- gradients,
- areCustomSolidsEnabled,
- areCustomGradientsEnabled,
- hasSolidColors,
- hasGradientColors,
- allColors,
- decodeValue,
- encodeGradientValue
- } = useColorGradientSettings(settings2);
- const decodeInheritedColor = (rawValue) => (0, import_style_engine4.getCSSValueFromRawStyle)(decodeValue(rawValue));
- const showLinkPanel = useHasLinkPanel(settings2);
- const linkColor = decodeInheritedColor(
- inheritedValue?.elements?.link?.color?.text
- );
- const userLinkColor = decodeValue(value?.elements?.link?.color?.text);
- const setLinkColor = (newColor, newSlug) => {
- onChange(
- setImmutably2(
- value,
- ["elements", "link", "color", "text"],
- encodeColorValueWithPalette(allColors, newColor, newSlug)
- )
- );
- };
- const hoverLinkColor = decodeInheritedColor(
- inheritedValue?.elements?.link?.[":hover"]?.color?.text
- );
- const userHoverLinkColor = decodeValue(
- value?.elements?.link?.[":hover"]?.color?.text
- );
- const setHoverLinkColor = (newColor, newSlug) => {
- onChange(
- setImmutably2(
- value,
- ["elements", "link", ":hover", "color", "text"],
- encodeColorValueWithPalette(allColors, newColor, newSlug)
- )
- );
+ clearable,
+ colorValue,
+ gradientValue,
+ onColorChange,
+ onGradientChange,
+ label
+ } = settings2;
+ const colorButtonRef = (0, import_element214.useRef)(void 0);
+ const toggleProps = {
+ onClick: onToggle,
+ className: clsx_default(
+ "block-editor-panel-color-gradient-settings__dropdown",
+ { "is-open": isOpen }
+ ),
+ "aria-expanded": isOpen,
+ ref: colorButtonRef
};
- const hasLink = () => !!userLinkColor || !!userHoverLinkColor;
- const resetLink = () => {
- let newValue = setImmutably2(
- value,
- ["elements", "link", ":hover", "color", "text"],
- void 0
- );
- newValue = setImmutably2(
- newValue,
- ["elements", "link", "color", "text"],
- void 0
- );
- onChange(newValue);
+ const clearValue = () => {
+ if (colorValue) {
+ onColorChange();
+ } else if (gradientValue) {
+ onGradientChange();
+ }
};
- const showCaptionPanel = useHasCaptionPanel(settings2);
- const showButtonPanel = useHasButtonPanel(settings2);
- const showHeadingPanel = useHasHeadingPanel(settings2);
- const elements = (0, import_element250.useMemo)(
- () => [
- {
- name: "caption",
- label: (0, import_i18n189.__)("Captions"),
- showPanel: showCaptionPanel
- },
- {
- name: "button",
- label: (0, import_i18n189.__)("Button"),
- showPanel: showButtonPanel
- },
- {
- name: "heading",
- label: (0, import_i18n189.__)("Heading"),
- showPanel: showHeadingPanel
- },
- {
- name: "h1",
- label: (0, import_i18n189.__)("H1"),
- showPanel: showHeadingPanel
- },
- {
- name: "h2",
- label: (0, import_i18n189.__)("H2"),
- showPanel: showHeadingPanel
- },
- {
- name: "h3",
- label: (0, import_i18n189.__)("H3"),
- showPanel: showHeadingPanel
- },
- {
- name: "h4",
- label: (0, import_i18n189.__)("H4"),
- showPanel: showHeadingPanel
- },
+ const value = colorValue ?? gradientValue;
+ return /* @__PURE__ */ (0, import_jsx_runtime366.jsxs)(import_jsx_runtime366.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(import_components147.Button, { __next40pxDefaultSize: true, ...toggleProps, children: /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
+ LabeledColorIndicator,
{
- name: "h5",
- label: (0, import_i18n189.__)("H5"),
- showPanel: showHeadingPanel
- },
+ colorValue: value,
+ label
+ }
+ ) }),
+ clearable && value && /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
+ import_components147.Button,
{
- name: "h6",
- label: (0, import_i18n189.__)("H6"),
- showPanel: showHeadingPanel
+ __next40pxDefaultSize: true,
+ label: (0, import_i18n142.__)("Reset"),
+ className: "block-editor-panel-color-gradient-settings__reset",
+ size: "small",
+ icon: reset_default,
+ onClick: () => {
+ clearValue();
+ if (isOpen) {
+ onToggle();
+ }
+ colorButtonRef.current?.focus();
+ }
}
- ],
- [showCaptionPanel, showButtonPanel, showHeadingPanel]
- );
- const resetAllFilter = (0, import_element250.useCallback)(
- (previousValue) => {
- return {
- ...previousValue,
- elements: {
- ...previousValue?.elements,
- link: {
- ...previousValue?.elements?.link,
- color: void 0,
- ":hover": {
- color: void 0
- }
- },
- ...elements.reduce((acc, element) => {
- return {
- ...acc,
- [element.name]: {
- ...previousValue?.elements?.[element.name],
- color: void 0
+ )
+ ] });
+ };
+ function ColorGradientSettingsDropdown({
+ colors: colors2,
+ disableCustomColors,
+ disableCustomGradients,
+ enableAlpha,
+ gradients,
+ settings: settings2,
+ __experimentalIsRenderedInSidebar,
+ ...props
+ }) {
+ let popoverProps3;
+ if (__experimentalIsRenderedInSidebar) {
+ popoverProps3 = {
+ placement: "left-start",
+ offset: 36,
+ shift: true
+ };
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(import_jsx_runtime366.Fragment, { children: settings2.map((setting, index2) => {
+ const controlProps = {
+ clearable: false,
+ colorValue: setting.colorValue,
+ colors: colors2,
+ disableCustomColors,
+ disableCustomGradients,
+ enableAlpha,
+ gradientValue: setting.gradientValue,
+ gradients,
+ label: setting.label,
+ onColorChange: setting.onColorChange,
+ onGradientChange: setting.onGradientChange,
+ showTitle: false,
+ __experimentalIsRenderedInSidebar,
+ ...setting
+ };
+ const toggleSettings = {
+ clearable: setting.clearable,
+ label: setting.label,
+ colorValue: setting.colorValue,
+ gradientValue: setting.gradientValue,
+ onColorChange: setting.onColorChange,
+ onGradientChange: setting.onGradientChange
+ };
+ return setting && // If not in an `ItemGroup` wrap the dropdown in a
+ // `ToolsPanelItem`
+ /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
+ WithToolsPanelItem,
+ {
+ setting,
+ ...props,
+ children: /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
+ import_components147.Dropdown,
+ {
+ popoverProps: popoverProps3,
+ className: "block-editor-tools-panel-color-gradient-settings__dropdown",
+ renderToggle: renderToggle(toggleSettings),
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(import_components147.__experimentalDropdownContentWrapper, { paddingSize: "none", children: /* @__PURE__ */ (0, import_jsx_runtime366.jsx)("div", { className: "block-editor-panel-color-gradient-settings__dropdown-content", children: /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
+ control_default,
+ {
+ ...controlProps
}
- };
- }, {})
- }
- };
- },
- [elements]
+ ) }) })
+ }
+ )
+ },
+ index2
+ );
+ }) });
+ }
+
+ // packages/block-editor/build-module/components/colors-gradients/panel-color-gradient-settings.mjs
+ var import_components148 = __toESM(require_components(), 1);
+ var import_data145 = __toESM(require_data(), 1);
+ var import_compose84 = __toESM(require_compose(), 1);
+
+ // packages/block-editor/build-module/components/colors-gradients/use-multiple-origin-colors-and-gradients.mjs
+ var import_element215 = __toESM(require_element(), 1);
+ var import_i18n143 = __toESM(require_i18n(), 1);
+ function useMultipleOriginColorsAndGradients() {
+ const [
+ enableCustomColors,
+ customColors,
+ themeColors,
+ defaultColors,
+ shouldDisplayDefaultColors,
+ enableCustomGradients,
+ customGradients,
+ themeGradients,
+ defaultGradients,
+ shouldDisplayDefaultGradients
+ ] = useSettings(
+ "color.custom",
+ "color.palette.custom",
+ "color.palette.theme",
+ "color.palette.default",
+ "color.defaultPalette",
+ "color.customGradient",
+ "color.gradients.custom",
+ "color.gradients.theme",
+ "color.gradients.default",
+ "color.defaultGradients"
);
- const items = [
- showLinkPanel && {
- key: "link",
- label: (0, import_i18n189.__)("Link"),
- hasValue: hasLink,
- resetValue: resetLink,
- isShownByDefault: defaultControls.link,
- indicators: [
- userLinkColor ?? linkColor,
- userHoverLinkColor ?? hoverLinkColor
- ],
- isPlaceholder: userLinkColor === void 0 && userHoverLinkColor === void 0 && (linkColor !== void 0 || hoverLinkColor !== void 0),
- hasInheritedValue: linkColor !== void 0 || hoverLinkColor !== void 0,
- contrastWarning,
- tabs: [
- {
- key: "link",
- label: (0, import_i18n189.__)("Default"),
- inheritedValue: linkColor,
- inheritedSlug: extractPresetSlug(
- inheritedValue?.elements?.link?.color?.text,
- "color"
- ),
- userSlug: extractPresetSlug(
- value?.elements?.link?.color?.text,
- "color"
- ),
- setValue: setLinkColor,
- userValue: userLinkColor,
- isPlaceholder: userLinkColor === void 0 && linkColor !== void 0
- },
- {
- key: "hover",
- label: (0, import_i18n189.__)("Hover"),
- inheritedValue: hoverLinkColor,
- inheritedSlug: extractPresetSlug(
- inheritedValue?.elements?.link?.[":hover"]?.color?.text,
- "color"
- ),
- userSlug: extractPresetSlug(
- value?.elements?.link?.[":hover"]?.color?.text,
- "color"
- ),
- setValue: setHoverLinkColor,
- userValue: userHoverLinkColor,
- isPlaceholder: userHoverLinkColor === void 0 && hoverLinkColor !== void 0
- }
- ]
+ const colorGradientSettings = {
+ disableCustomColors: !enableCustomColors,
+ disableCustomGradients: !enableCustomGradients
+ };
+ colorGradientSettings.colors = (0, import_element215.useMemo)(() => {
+ const result = [];
+ if (themeColors && themeColors.length) {
+ result.push({
+ name: (0, import_i18n143._x)(
+ "Theme",
+ "Indicates this palette comes from the theme."
+ ),
+ slug: "theme",
+ colors: themeColors
+ });
}
- ].filter(Boolean);
- elements.forEach(({ name, label: elementLabel, showPanel }) => {
- if (!showPanel) {
- return;
+ if (shouldDisplayDefaultColors && defaultColors && defaultColors.length) {
+ result.push({
+ name: (0, import_i18n143._x)(
+ "Default",
+ "Indicates this palette comes from WordPress."
+ ),
+ slug: "default",
+ colors: defaultColors
+ });
}
- const elementBackgroundColor = decodeInheritedColor(
- inheritedValue?.elements?.[name]?.color?.background
- );
- const elementGradient = decodeInheritedColor(
- inheritedValue?.elements?.[name]?.color?.gradient
- );
- const elementTextColor = decodeInheritedColor(
- inheritedValue?.elements?.[name]?.color?.text
- );
- const elementBackgroundUserColor = decodeValue(
- value?.elements?.[name]?.color?.background
- );
- const elementGradientUserColor = decodeValue(
- value?.elements?.[name]?.color?.gradient
- );
- const elementTextUserColor = decodeValue(
- value?.elements?.[name]?.color?.text
- );
- const hasElement = () => !!(elementTextUserColor || elementBackgroundUserColor || elementGradientUserColor);
- const resetElement = () => {
- const newValue = setImmutably2(
- value,
- ["elements", name, "color", "background"],
- void 0
- );
- newValue.elements[name].color.gradient = void 0;
- newValue.elements[name].color.text = void 0;
- onChange(newValue);
- };
- const setElementTextColor = (newTextColor, newSlug) => {
- onChange(
- setImmutably2(
- value,
- ["elements", name, "color", "text"],
- encodeColorValueWithPalette(
- allColors,
- newTextColor,
- newSlug
- )
- )
- );
- };
- const setElementBackgroundColor = (newBackgroundColor, newSlug) => {
- const newValue = setImmutably2(
- value,
- ["elements", name, "color", "background"],
- encodeColorValueWithPalette(
- allColors,
- newBackgroundColor,
- newSlug
- )
- );
- newValue.elements[name].color.gradient = void 0;
- onChange(newValue);
- };
- const setElementGradient = (newGradient, newSlug) => {
- const newValue = setImmutably2(
- value,
- ["elements", name, "color", "gradient"],
- encodeGradientValue(newGradient, newSlug)
- );
- newValue.elements[name].color.background = void 0;
- onChange(newValue);
- };
- const supportsBackground = name !== "caption";
- const isElementTextPlaceholder = elementTextUserColor === void 0 && elementTextColor !== void 0;
- const isElementBackgroundPlaceholder = elementBackgroundUserColor === void 0 && elementBackgroundColor !== void 0;
- const isElementGradientPlaceholder = elementGradientUserColor === void 0 && elementGradient !== void 0;
- const isElementPlaceholder = elementTextUserColor === void 0 && elementBackgroundUserColor === void 0 && elementGradientUserColor === void 0 && (elementTextColor !== void 0 || elementBackgroundColor !== void 0 || elementGradient !== void 0);
- const hasElementInheritedValue = elementTextColor !== void 0 || elementBackgroundColor !== void 0 || elementGradient !== void 0;
- items.push({
- key: name,
- label: elementLabel,
- hasValue: hasElement,
- resetValue: resetElement,
- isShownByDefault: defaultControls[name],
- indicators: supportsBackground ? [
- elementTextUserColor ?? elementTextColor,
- elementGradientUserColor ?? elementGradient ?? elementBackgroundUserColor ?? elementBackgroundColor
- ] : [elementTextUserColor ?? elementTextColor],
- isPlaceholder: isElementPlaceholder,
- hasInheritedValue: hasElementInheritedValue,
- tabs: [
- hasSolidColors && {
- key: "text",
- label: (0, import_i18n189.__)("Text"),
- inheritedValue: elementTextColor,
- inheritedSlug: extractPresetSlug(
- inheritedValue?.elements?.[name]?.color?.text,
- "color"
- ),
- userSlug: extractPresetSlug(
- value?.elements?.[name]?.color?.text,
- "color"
- ),
- setValue: setElementTextColor,
- userValue: elementTextUserColor,
- isPlaceholder: isElementTextPlaceholder
- },
- hasSolidColors && supportsBackground && {
- key: "background",
- label: (0, import_i18n189.__)("Background"),
- inheritedValue: elementBackgroundColor,
- inheritedSlug: extractPresetSlug(
- inheritedValue?.elements?.[name]?.color?.background,
- "color"
- ),
- userSlug: extractPresetSlug(
- value?.elements?.[name]?.color?.background,
- "color"
- ),
- setValue: setElementBackgroundColor,
- userValue: elementBackgroundUserColor,
- isPlaceholder: isElementBackgroundPlaceholder
- },
- hasGradientColors && supportsBackground && {
- key: "gradient",
- label: (0, import_i18n189.__)("Gradient"),
- inheritedValue: elementGradient,
- inheritedSlug: extractPresetSlug(
- inheritedValue?.elements?.[name]?.color?.gradient,
- "gradient"
- ),
- userSlug: extractPresetSlug(
- value?.elements?.[name]?.color?.gradient,
- "gradient"
- ),
- setValue: setElementGradient,
- userValue: elementGradientUserColor,
- isGradient: true,
- isPlaceholder: isElementGradientPlaceholder
- }
- ].filter(Boolean)
- });
- });
- return /* @__PURE__ */ (0, import_jsx_runtime424.jsxs)(
- Wrapper,
- {
- resetAllFilter,
- value,
- onChange,
- panelId,
- label,
- children: [
- items.map((item) => {
- const { key, ...restItem } = item;
- return /* @__PURE__ */ (0, import_jsx_runtime424.jsx)(
- ColorGradientDropdownItem,
- {
- ...restItem,
- showInheritanceLabelIndicators,
- colorGradientControlSettings: {
- colors: colors2,
- disableCustomColors: !areCustomSolidsEnabled,
- gradients,
- disableCustomGradients: !areCustomGradientsEnabled
- },
- panelId
- },
- key
- );
- }),
- children
- ]
+ if (customColors && customColors.length) {
+ result.push({
+ name: (0, import_i18n143._x)(
+ "Custom",
+ "Indicates this palette is created by the user."
+ ),
+ slug: "custom",
+ colors: customColors
+ });
}
- );
+ return result;
+ }, [
+ customColors,
+ themeColors,
+ defaultColors,
+ shouldDisplayDefaultColors
+ ]);
+ colorGradientSettings.gradients = (0, import_element215.useMemo)(() => {
+ const result = [];
+ if (themeGradients && themeGradients.length) {
+ result.push({
+ name: (0, import_i18n143._x)(
+ "Theme",
+ "Indicates this palette comes from the theme."
+ ),
+ slug: "theme",
+ gradients: themeGradients
+ });
+ }
+ if (shouldDisplayDefaultGradients && defaultGradients && defaultGradients.length) {
+ result.push({
+ name: (0, import_i18n143._x)(
+ "Default",
+ "Indicates this palette comes from WordPress."
+ ),
+ slug: "default",
+ gradients: defaultGradients
+ });
+ }
+ if (customGradients && customGradients.length) {
+ result.push({
+ name: (0, import_i18n143._x)(
+ "Custom",
+ "Indicates this palette is created by the user."
+ ),
+ slug: "custom",
+ gradients: customGradients
+ });
+ }
+ return result;
+ }, [
+ customGradients,
+ themeGradients,
+ defaultGradients,
+ shouldDisplayDefaultGradients
+ ]);
+ colorGradientSettings.hasColorsOrGradients = !!colorGradientSettings.colors.length || !!colorGradientSettings.gradients.length;
+ return colorGradientSettings;
}
- // packages/block-editor/build-module/components/global-styles/typography-utils.mjs
- function getMergedFontFamiliesAndFontFamilyFaces(settings2, selectedFontFamily) {
- const fontFamiliesFromSettings = settings2?.typography?.fontFamilies;
- const fontFamilies = ["default", "theme", "custom"].flatMap(
- (key) => fontFamiliesFromSettings?.[key] ?? []
- );
- const fontFamilyFaces = fontFamilies.find(
- (family) => family.fontFamily === selectedFontFamily
- )?.fontFace ?? [];
- return { fontFamilies, fontFamilyFaces };
- }
- function findNearestFontWeight(availableFontWeights, newFontWeightValue) {
- newFontWeightValue = "number" === typeof newFontWeightValue ? newFontWeightValue.toString() : newFontWeightValue;
- if (!newFontWeightValue || typeof newFontWeightValue !== "string") {
- return "";
- }
- if (!availableFontWeights || availableFontWeights.length === 0) {
- return newFontWeightValue;
- }
- const nearestFontWeight = availableFontWeights?.reduce(
- (nearest, { value: fw }) => {
- const currentDiff = Math.abs(
- parseInt(fw) - parseInt(newFontWeightValue)
- );
- const nearestDiff = Math.abs(
- parseInt(nearest) - parseInt(newFontWeightValue)
- );
- return currentDiff < nearestDiff ? fw : nearest;
- },
- availableFontWeights[0]?.value
- );
- return nearestFontWeight;
- }
- function findNearestFontStyle(availableFontStyles, newFontStyleValue) {
- if (typeof newFontStyleValue !== "string" || !newFontStyleValue) {
- return "";
- }
- const validStyles = ["normal", "italic", "oblique"];
- if (!validStyles.includes(newFontStyleValue)) {
- return "";
- }
- if (!availableFontStyles || availableFontStyles.length === 0 || availableFontStyles.find(
- (style) => style.value === newFontStyleValue
+ // packages/block-editor/build-module/components/colors-gradients/panel-color-gradient-settings.mjs
+ var import_jsx_runtime367 = __toESM(require_jsx_runtime(), 1);
+ var colorsAndGradientKeys2 = [
+ "colors",
+ "disableCustomColors",
+ "gradients",
+ "disableCustomGradients"
+ ];
+ var PanelColorGradientSettingsInner = ({
+ className: className2,
+ colors: colors2,
+ gradients,
+ disableCustomColors,
+ disableCustomGradients,
+ children,
+ settings: settings2,
+ title,
+ showTitle = true,
+ __experimentalIsRenderedInSidebar,
+ enableAlpha
+ }) => {
+ const panelId = (0, import_compose84.useInstanceId)(PanelColorGradientSettingsInner);
+ const { batch } = (0, import_data145.useRegistry)();
+ if ((!colors2 || colors2.length === 0) && (!gradients || gradients.length === 0) && disableCustomColors && disableCustomGradients && settings2?.every(
+ (setting) => (!setting.colors || setting.colors.length === 0) && (!setting.gradients || setting.gradients.length === 0) && (setting.disableCustomColors === void 0 || setting.disableCustomColors) && (setting.disableCustomGradients === void 0 || setting.disableCustomGradients)
)) {
- return newFontStyleValue;
- }
- if (newFontStyleValue === "oblique" && !availableFontStyles.find((style) => style.value === "oblique")) {
- return "italic";
+ return null;
}
- return "";
- }
- function findNearestStyleAndWeight(fontFamilyFaces, fontStyle, fontWeight) {
- let nearestFontStyle = fontStyle;
- let nearestFontWeight = fontWeight;
- const { fontStyles, fontWeights, combinedStyleAndWeightOptions } = getFontStylesAndWeights(fontFamilyFaces);
- const hasFontStyle = fontStyles?.some(
- ({ value: fs }) => fs === fontStyle
+ return /* @__PURE__ */ (0, import_jsx_runtime367.jsx)(
+ import_components148.__experimentalToolsPanel,
+ {
+ className: clsx_default(
+ "block-editor-panel-color-gradient-settings",
+ className2
+ ),
+ hasInnerWrapper: true,
+ label: showTitle ? title : void 0,
+ resetAll: () => {
+ batch(() => {
+ settings2.forEach(
+ ({
+ colorValue,
+ gradientValue,
+ onColorChange,
+ onGradientChange
+ }) => {
+ if (colorValue) {
+ onColorChange();
+ } else if (gradientValue) {
+ onGradientChange();
+ }
+ }
+ );
+ });
+ },
+ panelId,
+ __experimentalFirstVisibleItemClass: "first",
+ __experimentalLastVisibleItemClass: "last",
+ children: /* @__PURE__ */ (0, import_jsx_runtime367.jsxs)("div", { className: "block-editor-panel-color-gradient-settings__inner-wrapper", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime367.jsx)(
+ ColorGradientSettingsDropdown,
+ {
+ settings: settings2,
+ panelId,
+ ...{
+ colors: colors2,
+ gradients,
+ disableCustomColors,
+ disableCustomGradients,
+ __experimentalIsRenderedInSidebar,
+ enableAlpha
+ }
+ }
+ ),
+ !!children && /* @__PURE__ */ (0, import_jsx_runtime367.jsxs)(import_jsx_runtime367.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime367.jsx)(import_components148.__experimentalSpacer, { marginTop: 4, marginBottom: 0 }),
+ children
+ ] })
+ ] })
+ }
);
- const hasFontWeight = fontWeights?.some(
- ({ value: fw }) => fw?.toString() === fontWeight?.toString()
+ };
+ var PanelColorGradientSettingsSelect = (props) => {
+ const colorGradientSettings = useMultipleOriginColorsAndGradients();
+ return /* @__PURE__ */ (0, import_jsx_runtime367.jsx)(
+ PanelColorGradientSettingsInner,
+ {
+ ...{ ...colorGradientSettings, ...props }
+ }
);
- if (!hasFontStyle) {
- nearestFontStyle = fontStyle ? findNearestFontStyle(fontStyles, fontStyle) : combinedStyleAndWeightOptions?.find(
- (option) => option.style.fontWeight === findNearestFontWeight(fontWeights, fontWeight)
- )?.style?.fontStyle;
- }
- if (!hasFontWeight) {
- nearestFontWeight = fontWeight ? findNearestFontWeight(fontWeights, fontWeight) : combinedStyleAndWeightOptions?.find(
- (option) => option.style.fontStyle === (nearestFontStyle || fontStyle)
- )?.style?.fontWeight;
+ };
+ var PanelColorGradientSettings = (props) => {
+ if (colorsAndGradientKeys2.every((key) => props.hasOwnProperty(key))) {
+ return /* @__PURE__ */ (0, import_jsx_runtime367.jsx)(PanelColorGradientSettingsInner, { ...props });
}
- return { nearestFontStyle, nearestFontWeight };
- }
+ return /* @__PURE__ */ (0, import_jsx_runtime367.jsx)(PanelColorGradientSettingsSelect, { ...props });
+ };
+ var panel_color_gradient_settings_default = PanelColorGradientSettings;
- // packages/block-editor/build-module/components/global-styles/typography-panel.mjs
- var import_jsx_runtime425 = __toESM(require_jsx_runtime(), 1);
- var MIN_TEXT_COLUMNS = 1;
- var MAX_TEXT_COLUMNS = 6;
- function shouldSyncLinkColor(value, inheritedValue) {
- const localLinkColor = value?.elements?.link?.color?.text;
- if (localLinkColor !== void 0) {
- return localLinkColor === value?.color?.text;
- }
- const inheritedLinkColor = inheritedValue?.elements?.link?.color?.text;
- return inheritedLinkColor === void 0 || inheritedValue?.color?.text === inheritedLinkColor;
- }
- function useHasTypographyPanel(settings2) {
- const hasFontFamily = useHasFontFamilyControl(settings2);
- const hasLineHeight = useHasLineHeightControl(settings2);
- const hasFontAppearance = useHasAppearanceControl(settings2);
- const hasLetterSpacing = useHasLetterSpacingControl(settings2);
- const hasTextAlign = useHasTextAlignmentControl(settings2);
- const hasTextTransform = useHasTextTransformControl(settings2);
- const hasTextDecoration = useHasTextDecorationControl(settings2);
- const hasTextIndent = useHasTextIndentControl(settings2);
- const hasWritingMode = useHasWritingModeControl(settings2);
- const hasTextColumns = useHasTextColumnsControl(settings2);
- const hasFontSize = useHasFontSizeControl(settings2);
- const hasTextColor = useHasTextPanel(settings2);
- return hasFontFamily || hasLineHeight || hasFontAppearance || hasLetterSpacing || hasTextAlign || hasTextTransform || hasFontSize || hasTextDecoration || hasTextIndent || hasWritingMode || hasTextColumns || hasTextColor;
- }
- function useHasFontSizeControl(settings2) {
- return settings2?.typography?.defaultFontSizes !== false && settings2?.typography?.fontSizes?.default?.length || settings2?.typography?.fontSizes?.theme?.length || settings2?.typography?.fontSizes?.custom?.length || settings2?.typography?.customFontSize;
+ // packages/block-editor/build-module/components/dimension-control/index.mjs
+ var import_element216 = __toESM(require_element(), 1);
+ var import_components149 = __toESM(require_components(), 1);
+ var import_i18n144 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime368 = __toESM(require_jsx_runtime(), 1);
+ var EMPTY_ARRAY11 = [];
+ var DIMENSION_CUSTOM_VALUE_SETTINGS = {
+ ...CUSTOM_VALUE_SETTINGS,
+ px: { max: 1e3, steps: 1 },
+ em: { max: 50, steps: 0.1 },
+ rem: { max: 50, steps: 0.1 }
+ };
+ function useDimensionSizes(presets) {
+ const defaultSizes = presets?.default ?? EMPTY_ARRAY11;
+ const customSizes = presets?.custom ?? EMPTY_ARRAY11;
+ const themeSizes = presets?.theme ?? EMPTY_ARRAY11;
+ return (0, import_element216.useMemo)(() => {
+ const sizes = [
+ { name: (0, import_i18n144.__)("None"), slug: "0", size: 0 },
+ ...customSizes,
+ ...themeSizes,
+ ...defaultSizes
+ ];
+ return sizes;
+ }, [customSizes, themeSizes, defaultSizes]);
}
- function useHasFontFamilyControl(settings2) {
- return ["default", "theme", "custom"].some(
- (key) => settings2?.typography?.fontFamilies?.[key]?.length
+ function DimensionControl({
+ label = (0, import_i18n144.__)("Dimension"),
+ onChange,
+ value,
+ placeholder,
+ className: className2,
+ dimensionSizes: dimensionSizesProp
+ }) {
+ const [dimensionSizesFromSettings, availableUnits] = useSettings(
+ "dimensions.dimensionSizes",
+ "spacing.units"
+ );
+ const dimensionSizes = dimensionSizesProp ?? dimensionSizesFromSettings;
+ const units2 = (0, import_components149.__experimentalUseCustomUnits)({
+ availableUnits: availableUnits || [
+ "%",
+ "px",
+ "em",
+ "rem",
+ "vh",
+ "vw"
+ ]
+ });
+ const options = useDimensionSizes(dimensionSizes);
+ const [selectedUnit, setSelectedUnit] = (0, import_element216.useState)(() => {
+ const [, unit] = (0, import_components149.__experimentalParseQuantityAndUnitFromRawValue)(value);
+ return unit || units2[0]?.value || "px";
+ });
+ const handleUnitChange = (newUnit) => {
+ const [currentValue, currentUnit] = (0, import_components149.__experimentalParseQuantityAndUnitFromRawValue)(value);
+ if (["em", "rem"].includes(newUnit) && currentUnit === "px") {
+ onChange((currentValue / 16).toFixed(2) + newUnit);
+ } else if (["em", "rem"].includes(currentUnit) && newUnit === "px") {
+ onChange(Math.round(currentValue * 16) + newUnit);
+ } else if ([
+ "%",
+ "vw",
+ "svw",
+ "lvw",
+ "dvw",
+ "vh",
+ "svh",
+ "lvh",
+ "dvh",
+ "vi",
+ "svi",
+ "lvi",
+ "dvi",
+ "vb",
+ "svb",
+ "lvb",
+ "dvb",
+ "vmin",
+ "svmin",
+ "lvmin",
+ "dvmin",
+ "vmax",
+ "svmax",
+ "lvmax",
+ "dvmax"
+ ].includes(newUnit) && currentValue > 100) {
+ onChange(100 + newUnit);
+ }
+ setSelectedUnit(newUnit);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime368.jsxs)(
+ "fieldset",
+ {
+ className: clsx_default("block-editor-dimension-control", className2),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime368.jsx)(import_components149.BaseControl.VisualLabel, { as: "legend", children: label }),
+ /* @__PURE__ */ (0, import_jsx_runtime368.jsx)(
+ PresetInputControl,
+ {
+ ariaLabel: label,
+ className: "block-editor-dimension-control",
+ customValueSettings: DIMENSION_CUSTOM_VALUE_SETTINGS,
+ minimumCustomValue: 0,
+ onChange,
+ onUnitChange: handleUnitChange,
+ placeholder,
+ presets: options,
+ presetType: "dimension",
+ selectedUnit,
+ showTooltip: true,
+ units: units2,
+ value
+ }
+ )
+ ]
+ }
);
}
- function useHasLineHeightControl(settings2) {
- return settings2?.typography?.lineHeight;
- }
- function useHasAppearanceControl(settings2) {
- return settings2?.typography?.fontStyle || settings2?.typography?.fontWeight;
- }
- function useAppearanceControlLabel(settings2) {
- if (!settings2?.typography?.fontStyle) {
- return (0, import_i18n190.__)("Font weight");
- }
- if (!settings2?.typography?.fontWeight) {
- return (0, import_i18n190.__)("Font style");
- }
- return (0, import_i18n190.__)("Appearance");
- }
- function useHasLetterSpacingControl(settings2) {
- return settings2?.typography?.letterSpacing;
- }
- function useHasTextTransformControl(settings2) {
- return settings2?.typography?.textTransform;
- }
- function useHasTextAlignmentControl(settings2) {
- return settings2?.typography?.textAlign;
- }
- function useHasTextDecorationControl(settings2) {
- return settings2?.typography?.textDecoration;
+
+ // packages/block-editor/build-module/components/height-control/index.mjs
+ var import_element217 = __toESM(require_element(), 1);
+ var import_components150 = __toESM(require_components(), 1);
+ var import_i18n145 = __toESM(require_i18n(), 1);
+ var import_deprecated17 = __toESM(require_deprecated(), 1);
+ var import_jsx_runtime369 = __toESM(require_jsx_runtime(), 1);
+ var RANGE_CONTROL_CUSTOM_SETTINGS = {
+ px: { max: 1e3, step: 1 },
+ "%": { max: 100, step: 1 },
+ vw: { max: 100, step: 1 },
+ vh: { max: 100, step: 1 },
+ em: { max: 50, step: 0.1 },
+ rem: { max: 50, step: 0.1 },
+ svw: { max: 100, step: 1 },
+ lvw: { max: 100, step: 1 },
+ dvw: { max: 100, step: 1 },
+ svh: { max: 100, step: 1 },
+ lvh: { max: 100, step: 1 },
+ dvh: { max: 100, step: 1 },
+ vi: { max: 100, step: 1 },
+ svi: { max: 100, step: 1 },
+ lvi: { max: 100, step: 1 },
+ dvi: { max: 100, step: 1 },
+ vb: { max: 100, step: 1 },
+ svb: { max: 100, step: 1 },
+ lvb: { max: 100, step: 1 },
+ dvb: { max: 100, step: 1 },
+ vmin: { max: 100, step: 1 },
+ svmin: { max: 100, step: 1 },
+ lvmin: { max: 100, step: 1 },
+ dvmin: { max: 100, step: 1 },
+ vmax: { max: 100, step: 1 },
+ svmax: { max: 100, step: 1 },
+ lvmax: { max: 100, step: 1 },
+ dvmax: { max: 100, step: 1 }
+ };
+ function HeightControl({
+ label = (0, import_i18n145.__)("Height"),
+ onChange,
+ value
+ }) {
+ (0, import_deprecated17.default)("wp.blockEditor.HeightControl", {
+ since: "7.0",
+ version: "7.2",
+ alternative: "wp.blockEditor.DimensionControl"
+ });
+ const customRangeValue = parseFloat(value);
+ const [availableUnits] = useSettings("spacing.units");
+ const units2 = (0, import_components150.__experimentalUseCustomUnits)({
+ availableUnits: availableUnits || [
+ "%",
+ "px",
+ "em",
+ "rem",
+ "vh",
+ "vw"
+ ]
+ });
+ const selectedUnit = (0, import_element217.useMemo)(
+ () => (0, import_components150.__experimentalParseQuantityAndUnitFromRawValue)(value),
+ [value]
+ )[1] || units2[0]?.value || "px";
+ const handleSliderChange = (next) => {
+ onChange([next, selectedUnit].join(""));
+ };
+ const handleUnitChange = (newUnit) => {
+ const [currentValue, currentUnit] = (0, import_components150.__experimentalParseQuantityAndUnitFromRawValue)(value);
+ if (["em", "rem"].includes(newUnit) && currentUnit === "px") {
+ onChange((currentValue / 16).toFixed(2) + newUnit);
+ } else if (["em", "rem"].includes(currentUnit) && newUnit === "px") {
+ onChange(Math.round(currentValue * 16) + newUnit);
+ } else if ([
+ "%",
+ "vw",
+ "svw",
+ "lvw",
+ "dvw",
+ "vh",
+ "svh",
+ "lvh",
+ "dvh",
+ "vi",
+ "svi",
+ "lvi",
+ "dvi",
+ "vb",
+ "svb",
+ "lvb",
+ "dvb",
+ "vmin",
+ "svmin",
+ "lvmin",
+ "dvmin",
+ "vmax",
+ "svmax",
+ "lvmax",
+ "dvmax"
+ ].includes(newUnit) && currentValue > 100) {
+ onChange(100 + newUnit);
+ }
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime369.jsxs)("fieldset", { className: "block-editor-height-control", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(import_components150.BaseControl.VisualLabel, { as: "legend", children: label }),
+ /* @__PURE__ */ (0, import_jsx_runtime369.jsxs)(import_components150.Flex, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(import_components150.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(
+ import_components150.__experimentalUnitControl,
+ {
+ value,
+ units: units2,
+ onChange,
+ onUnitChange: handleUnitChange,
+ min: 0,
+ label,
+ hideLabelFromVision: true
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(import_components150.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(import_components150.__experimentalSpacer, { marginX: 2, marginBottom: 0, children: /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(
+ import_components150.RangeControl,
+ {
+ value: customRangeValue,
+ min: 0,
+ max: RANGE_CONTROL_CUSTOM_SETTINGS[selectedUnit]?.max ?? 100,
+ step: RANGE_CONTROL_CUSTOM_SETTINGS[selectedUnit]?.step ?? 0.1,
+ withInputField: false,
+ onChange: handleSliderChange,
+ label,
+ hideLabelFromVision: true
+ }
+ ) }) })
+ ] })
+ ] });
}
- function useHasWritingModeControl(settings2) {
- return settings2?.typography?.writingMode;
+
+ // packages/block-editor/build-module/components/image-editor/index.mjs
+ var import_components156 = __toESM(require_components(), 1);
+ var import_deprecated18 = __toESM(require_deprecated(), 1);
+
+ // node_modules/react-easy-crop/index.module.js
+ var React145 = __toESM(require_react());
+ var import_normalize_wheel = __toESM(require_normalize_wheel());
+ function getCropSize(mediaWidth, mediaHeight, containerWidth, containerHeight, aspect, rotation) {
+ if (rotation === void 0) {
+ rotation = 0;
+ }
+ var _a = rotateSize(mediaWidth, mediaHeight, rotation), width = _a.width, height = _a.height;
+ var fittingWidth = Math.min(width, containerWidth);
+ var fittingHeight = Math.min(height, containerHeight);
+ if (fittingWidth > fittingHeight * aspect) {
+ return {
+ width: fittingHeight * aspect,
+ height: fittingHeight
+ };
+ }
+ return {
+ width: fittingWidth,
+ height: fittingWidth / aspect
+ };
}
- function useHasTextColumnsControl(settings2) {
- return settings2?.typography?.textColumns;
+ function getMediaZoom(mediaSize) {
+ return mediaSize.width > mediaSize.height ? mediaSize.width / mediaSize.naturalWidth : mediaSize.height / mediaSize.naturalHeight;
}
- function useHasTextIndentControl(settings2) {
- return settings2?.typography?.textIndent;
+ function restrictPosition(position, mediaSize, cropSize, zoom, rotation) {
+ if (rotation === void 0) {
+ rotation = 0;
+ }
+ var _a = rotateSize(mediaSize.width, mediaSize.height, rotation), width = _a.width, height = _a.height;
+ return {
+ x: restrictPositionCoord(position.x, width, cropSize.width, zoom),
+ y: restrictPositionCoord(position.y, height, cropSize.height, zoom)
+ };
}
- function getMergedFontSizes(settings2) {
- const fontSizes = settings2?.typography?.fontSizes;
- const defaultFontSizesEnabled = !!settings2?.typography?.defaultFontSizes;
- return [
- ...fontSizes?.custom ?? [],
- ...fontSizes?.theme ?? [],
- ...defaultFontSizesEnabled ? fontSizes?.default ?? [] : []
- ];
+ function restrictPositionCoord(position, mediaSize, cropSize, zoom) {
+ var maxPosition = mediaSize * zoom / 2 - cropSize / 2;
+ return clamp3(position, -maxPosition, maxPosition);
}
- function TypographyToolsPanel({
- resetAllFilter,
- onChange,
- value,
- panelId,
- children
- }) {
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- const resetAll = () => {
- const updatedValue = resetAllFilter(value);
- onChange(updatedValue);
- };
- return /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- import_components200.__experimentalToolsPanel,
- {
- label: (0, import_i18n190.__)("Typography"),
- resetAll,
- panelId,
- __experimentalFirstVisibleItemClass: "first",
- dropdownMenuProps,
- children
- }
- );
+ function getDistanceBetweenPoints(pointA, pointB) {
+ return Math.sqrt(Math.pow(pointA.y - pointB.y, 2) + Math.pow(pointA.x - pointB.x, 2));
}
- var DEFAULT_CONTROLS4 = {
- textColor: true,
- fontFamily: true,
- fontSize: true,
- fontAppearance: true,
- lineHeight: true,
- letterSpacing: true,
- textAlign: true,
- textTransform: true,
- textDecoration: true,
- textIndent: true,
- writingMode: true,
- textColumns: true
- };
- var EMPTY_VALUES = [void 0, null, ""];
- function hasValue(value) {
- return !EMPTY_VALUES.includes(value);
+ function getRotationBetweenPoints(pointA, pointB) {
+ return Math.atan2(pointB.y - pointA.y, pointB.x - pointA.x) * 180 / Math.PI;
}
- function getNumericPlaceholder(rawValue) {
- if (!hasValue(rawValue)) {
- return void 0;
+ function computeCroppedArea(crop, mediaSize, cropSize, aspect, zoom, rotation, restrictPosition2) {
+ if (rotation === void 0) {
+ rotation = 0;
}
- const [quantity] = (0, import_components200.__experimentalParseQuantityAndUnitFromRawValue)(rawValue);
- return quantity;
+ if (restrictPosition2 === void 0) {
+ restrictPosition2 = true;
+ }
+ var limitAreaFn = restrictPosition2 ? limitArea : noOp;
+ var mediaBBoxSize = rotateSize(mediaSize.width, mediaSize.height, rotation);
+ var mediaNaturalBBoxSize = rotateSize(mediaSize.naturalWidth, mediaSize.naturalHeight, rotation);
+ var croppedAreaPercentages = {
+ x: limitAreaFn(100, ((mediaBBoxSize.width - cropSize.width / zoom) / 2 - crop.x / zoom) / mediaBBoxSize.width * 100),
+ y: limitAreaFn(100, ((mediaBBoxSize.height - cropSize.height / zoom) / 2 - crop.y / zoom) / mediaBBoxSize.height * 100),
+ width: limitAreaFn(100, cropSize.width / mediaBBoxSize.width * 100 / zoom),
+ height: limitAreaFn(100, cropSize.height / mediaBBoxSize.height * 100 / zoom)
+ };
+ var widthInPixels = Math.round(limitAreaFn(mediaNaturalBBoxSize.width, croppedAreaPercentages.width * mediaNaturalBBoxSize.width / 100));
+ var heightInPixels = Math.round(limitAreaFn(mediaNaturalBBoxSize.height, croppedAreaPercentages.height * mediaNaturalBBoxSize.height / 100));
+ var isImgWiderThanHigh = mediaNaturalBBoxSize.width >= mediaNaturalBBoxSize.height * aspect;
+ var sizePixels = isImgWiderThanHigh ? {
+ width: Math.round(heightInPixels * aspect),
+ height: heightInPixels
+ } : {
+ width: widthInPixels,
+ height: Math.round(widthInPixels / aspect)
+ };
+ var croppedAreaPixels = __assign(__assign({}, sizePixels), {
+ x: Math.round(limitAreaFn(mediaNaturalBBoxSize.width - sizePixels.width, croppedAreaPercentages.x * mediaNaturalBBoxSize.width / 100)),
+ y: Math.round(limitAreaFn(mediaNaturalBBoxSize.height - sizePixels.height, croppedAreaPercentages.y * mediaNaturalBBoxSize.height / 100))
+ });
+ return {
+ croppedAreaPercentages,
+ croppedAreaPixels
+ };
}
- function TypographyPanel({
- as: Wrapper = TypographyToolsPanel,
- value,
- onChange,
- inheritedValue = value,
- settings: settings2,
- panelId,
- defaultControls = DEFAULT_CONTROLS4,
- isGlobalStyles = false,
- showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled(),
- contrastWarning
- }) {
- const { colors: colors2, allColors, areCustomSolidsEnabled, decodeValue } = useColorGradientSettings(settings2);
- const inheritanceProps = (isInherited, hasLocalOverride, className) => getInheritanceProps(
- showInheritanceLabelIndicators && isInherited,
- showInheritanceLabelIndicators && hasLocalOverride,
- className
- );
- const hasTextColorEnabled = useHasTextPanel(settings2);
- const textColor = decodeValue(inheritedValue?.color?.text);
- const userTextColor = decodeValue(value?.color?.text);
- const hasTextColorValue = () => !!value?.color?.text;
- const setTextColor = (newColor, newSlug) => {
- const encoded = encodeColorValueWithPalette(
- allColors,
- newColor,
- newSlug
- );
- let changedObject = setImmutably2(value, ["color", "text"], encoded);
- const syncLinkColor = isGlobalStylesInheritanceEnabled() ? shouldSyncLinkColor(value, inheritedValue) : inheritedValue?.color?.text === inheritedValue?.elements?.link?.color?.text;
- if (syncLinkColor) {
- changedObject = setImmutably2(
- changedObject,
- ["elements", "link", "color", "text"],
- encoded
- );
- }
- onChange(changedObject);
+ function limitArea(max3, value) {
+ return Math.min(max3, Math.max(0, value));
+ }
+ function noOp(_max, value) {
+ return value;
+ }
+ function getInitialCropFromCroppedAreaPercentages(croppedAreaPercentages, mediaSize, rotation, cropSize, minZoom, maxZoom) {
+ var mediaBBoxSize = rotateSize(mediaSize.width, mediaSize.height, rotation);
+ var zoom = clamp3(cropSize.width / mediaBBoxSize.width * (100 / croppedAreaPercentages.width), minZoom, maxZoom);
+ var crop = {
+ x: zoom * mediaBBoxSize.width / 2 - cropSize.width / 2 - mediaBBoxSize.width * zoom * (croppedAreaPercentages.x / 100),
+ y: zoom * mediaBBoxSize.height / 2 - cropSize.height / 2 - mediaBBoxSize.height * zoom * (croppedAreaPercentages.y / 100)
};
- const resetTextColor = () => setTextColor(void 0);
- const hasFontFamilyEnabled = useHasFontFamilyControl(settings2);
- const inheritedFontFamily = decodeValue(
- inheritedValue?.typography?.fontFamily
- );
- const fontFamily = decodeValue(value?.typography?.fontFamily) ?? inheritedFontFamily;
- const isFontFamilyPlaceholder = !hasValue(value?.typography?.fontFamily) && hasValue(inheritedFontFamily);
- const { fontFamilies, fontFamilyFaces } = (0, import_element251.useMemo)(() => {
- return getMergedFontFamiliesAndFontFamilyFaces(settings2, fontFamily);
- }, [settings2, fontFamily]);
- const setFontFamily = (newValue) => {
- const slug = fontFamilies?.find(
- ({ fontFamily: f2 }) => f2 === newValue
- )?.slug;
- const nextFontFamily = slug ? `var:preset|font-family|${slug}` : newValue;
- let updatedValue = setImmutably2(
- value,
- ["typography", "fontFamily"],
- hasValue(nextFontFamily) ? nextFontFamily : void 0
- );
- const newFontFamilyFaces = fontFamilies?.find(({ fontFamily: f2 }) => f2 === newValue)?.fontFace ?? [];
- const { fontStyles, fontWeights } = getFontStylesAndWeights(newFontFamilyFaces);
- const hasFontStyle = fontStyles?.some(
- ({ value: fs }) => fs === fontStyle
- );
- const hasFontWeight = fontWeights?.some(
- ({ value: fw }) => fw?.toString() === fontWeight?.toString()
- );
- if (!hasFontStyle || !hasFontWeight) {
- const { nearestFontStyle, nearestFontWeight } = findNearestStyleAndWeight(
- newFontFamilyFaces,
- fontStyle,
- fontWeight
- );
- if (nearestFontStyle || nearestFontWeight) {
- updatedValue = {
- ...updatedValue,
- typography: {
- ...updatedValue?.typography,
- fontStyle: hasValue(nearestFontStyle) ? nearestFontStyle : void 0,
- fontWeight: hasValue(nearestFontWeight) ? nearestFontWeight : void 0
- }
- };
- } else if (fontStyle || fontWeight) {
- updatedValue = {
- ...updatedValue,
- typography: {
- ...updatedValue?.typography,
- fontStyle: void 0,
- fontWeight: void 0
- }
- };
- }
- }
- onChange(updatedValue);
+ return {
+ crop,
+ zoom
};
- const hasFontFamily = () => hasValue(value?.typography?.fontFamily);
- const resetFontFamily = () => setFontFamily(void 0);
- const hasFontSizeEnabled = useHasFontSizeControl(settings2);
- const disableCustomFontSizes = !settings2?.typography?.customFontSize;
- const mergedFontSizes = getMergedFontSizes(settings2);
- const rawLocalFontSize = value?.typography?.fontSize;
- const rawInheritedFontSize = inheritedValue?.typography?.fontSize;
- const rawFontSizeForDisplay = rawLocalFontSize ?? rawInheritedFontSize;
- const fontSize = decodeValue(rawFontSizeForDisplay);
- const inheritedFontSizeDecoded = decodeValue(rawInheritedFontSize);
- const isFontSizePlaceholder = !hasValue(rawLocalFontSize) && hasValue(rawInheritedFontSize);
- const extractSlug = (rawValue) => {
- if (!rawValue || typeof rawValue !== "string") {
- return void 0;
- }
- if (rawValue.startsWith("var:preset|font-size|")) {
- return rawValue.replace("var:preset|font-size|", "");
- }
- const cssVarMatch = rawValue.match(
- /^var\(--wp--preset--font-size--([^)]+)\)$/
- );
- if (cssVarMatch) {
- return cssVarMatch[1];
- }
- return void 0;
+ }
+ function getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize) {
+ var mediaZoom = getMediaZoom(mediaSize);
+ return cropSize.height > cropSize.width ? cropSize.height / (croppedAreaPixels.height * mediaZoom) : cropSize.width / (croppedAreaPixels.width * mediaZoom);
+ }
+ function getInitialCropFromCroppedAreaPixels(croppedAreaPixels, mediaSize, rotation, cropSize, minZoom, maxZoom) {
+ if (rotation === void 0) {
+ rotation = 0;
+ }
+ var mediaNaturalBBoxSize = rotateSize(mediaSize.naturalWidth, mediaSize.naturalHeight, rotation);
+ var zoom = clamp3(getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize), minZoom, maxZoom);
+ var cropZoom = cropSize.height > cropSize.width ? cropSize.height / croppedAreaPixels.height : cropSize.width / croppedAreaPixels.width;
+ var crop = {
+ x: ((mediaNaturalBBoxSize.width - croppedAreaPixels.width) / 2 - croppedAreaPixels.x) * cropZoom,
+ y: ((mediaNaturalBBoxSize.height - croppedAreaPixels.height) / 2 - croppedAreaPixels.y) * cropZoom
};
- const currentFontSizeSlug = extractSlug(rawFontSizeForDisplay);
- const inheritedFontSizeSlug = extractSlug(rawInheritedFontSize);
- const setFontSize = (newValue, metadata) => {
- const actualValue = !!metadata?.slug ? `var:preset|font-size|${metadata?.slug}` : newValue;
- onChange(
- setImmutably2(
- value,
- ["typography", "fontSize"],
- hasValue(actualValue) ? actualValue : void 0
- )
- );
+ return {
+ crop,
+ zoom
};
- const setFontSizeWithInheritedCommit = (newValue, metadata) => {
- if (isFontSizePlaceholder && newValue === void 0 && !metadata) {
- if (inheritedFontSizeSlug) {
- setFontSize(void 0, { slug: inheritedFontSizeSlug });
- } else {
- setFontSize(inheritedFontSizeDecoded);
- }
- return;
- }
- setFontSize(newValue, metadata);
+ }
+ function getCenter(a2, b2) {
+ return {
+ x: (b2.x + a2.x) / 2,
+ y: (b2.y + a2.y) / 2
};
- const hasFontSize = () => hasValue(value?.typography?.fontSize);
- const resetFontSize = () => setFontSize(void 0);
- const hasAppearanceControl = useHasAppearanceControl(settings2);
- const appearanceControlLabel = useAppearanceControlLabel(settings2);
- const hasFontStyles = settings2?.typography?.fontStyle;
- const hasFontWeights = settings2?.typography?.fontWeight;
- const inheritedFontStyle = decodeValue(
- inheritedValue?.typography?.fontStyle
- );
- const inheritedFontWeight = decodeValue(
- inheritedValue?.typography?.fontWeight
- );
- const fontStyle = decodeValue(value?.typography?.fontStyle) ?? inheritedFontStyle;
- const fontWeight = decodeValue(value?.typography?.fontWeight) ?? inheritedFontWeight;
- const isFontAppearancePlaceholder = !hasValue(value?.typography?.fontStyle) && !hasValue(value?.typography?.fontWeight) && (hasValue(inheritedFontStyle) || hasValue(inheritedFontWeight));
- const setFontAppearance = (0, import_element251.useCallback)(
- ({ fontStyle: newFontStyle, fontWeight: newFontWeight }) => {
- if (newFontStyle !== fontStyle || newFontWeight !== fontWeight) {
- onChange({
- ...value,
- typography: {
- ...value?.typography,
- fontStyle: hasValue(newFontStyle) ? newFontStyle : void 0,
- fontWeight: hasValue(newFontWeight) ? newFontWeight : void 0
- }
- });
- }
- },
- [fontStyle, fontWeight, onChange, value]
- );
- const setFontAppearanceWithInheritedCommit = (0, import_element251.useCallback)(
- (next) => {
- if (isFontAppearancePlaceholder && next.fontStyle === fontStyle && next.fontWeight === fontWeight) {
- onChange({
- ...value,
- typography: {
- ...value?.typography,
- fontStyle: hasValue(fontStyle) ? fontStyle : void 0,
- fontWeight: hasValue(fontWeight) ? fontWeight : void 0
+ }
+ function getRadianAngle(degreeValue) {
+ return degreeValue * Math.PI / 180;
+ }
+ function rotateSize(width, height, rotation) {
+ var rotRad = getRadianAngle(rotation);
+ return {
+ width: Math.abs(Math.cos(rotRad) * width) + Math.abs(Math.sin(rotRad) * height),
+ height: Math.abs(Math.sin(rotRad) * width) + Math.abs(Math.cos(rotRad) * height)
+ };
+ }
+ function clamp3(value, min3, max3) {
+ return Math.min(Math.max(value, min3), max3);
+ }
+ function classNames() {
+ var args = [];
+ for (var _i = 0; _i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ return args.filter(function(value) {
+ if (typeof value === "string" && value.length > 0) {
+ return true;
+ }
+ return false;
+ }).join(" ").trim();
+ }
+ var css_248z = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n";
+ var MIN_ZOOM = 1;
+ var MAX_ZOOM = 3;
+ var KEYBOARD_STEP = 1;
+ var Cropper = (
+ /** @class */
+ (function(_super) {
+ __extends(Cropper2, _super);
+ function Cropper2() {
+ var _this = _super !== null && _super.apply(this, arguments) || this;
+ _this.cropperRef = React145.createRef();
+ _this.imageRef = React145.createRef();
+ _this.videoRef = React145.createRef();
+ _this.containerPosition = {
+ x: 0,
+ y: 0
+ };
+ _this.containerRef = null;
+ _this.styleRef = null;
+ _this.containerRect = null;
+ _this.mediaSize = {
+ width: 0,
+ height: 0,
+ naturalWidth: 0,
+ naturalHeight: 0
+ };
+ _this.dragStartPosition = {
+ x: 0,
+ y: 0
+ };
+ _this.dragStartCrop = {
+ x: 0,
+ y: 0
+ };
+ _this.gestureZoomStart = 0;
+ _this.gestureRotationStart = 0;
+ _this.isTouching = false;
+ _this.lastPinchDistance = 0;
+ _this.lastPinchRotation = 0;
+ _this.rafDragTimeout = null;
+ _this.rafPinchTimeout = null;
+ _this.wheelTimer = null;
+ _this.currentDoc = typeof document !== "undefined" ? document : null;
+ _this.currentWindow = typeof window !== "undefined" ? window : null;
+ _this.resizeObserver = null;
+ _this.previousCropSize = null;
+ _this.isInitialized = false;
+ _this.state = {
+ cropSize: null,
+ hasWheelJustStarted: false,
+ mediaObjectFit: void 0
+ };
+ _this.initResizeObserver = function() {
+ if (typeof window.ResizeObserver === "undefined" || !_this.containerRef) {
+ return;
+ }
+ var isFirstResize = true;
+ _this.resizeObserver = new window.ResizeObserver(function(entries) {
+ if (isFirstResize) {
+ isFirstResize = false;
+ return;
}
+ _this.computeSizes();
});
- return;
- }
- setFontAppearance(next);
- },
- [
- isFontAppearancePlaceholder,
- fontStyle,
- fontWeight,
- onChange,
- value,
- setFontAppearance
- ]
- );
- const hasFontAppearance = () => hasValue(value?.typography?.fontStyle) || hasValue(value?.typography?.fontWeight);
- const resetFontAppearance = (0, import_element251.useCallback)(() => {
- setFontAppearance({});
- }, [setFontAppearance]);
- const hasLineHeightEnabled = useHasLineHeightControl(settings2);
- const localLineHeight = decodeValue(value?.typography?.lineHeight);
- const inheritedLineHeight = decodeValue(
- inheritedValue?.typography?.lineHeight
- );
- const isLineHeightPlaceholder = !hasValue(value?.typography?.lineHeight) && hasValue(inheritedLineHeight);
- const setLineHeight = (newValue) => {
- onChange(
- setImmutably2(
- value,
- ["typography", "lineHeight"],
- hasValue(newValue) ? newValue : void 0
- )
- );
- };
- const hasLineHeight = () => hasValue(value?.typography?.lineHeight);
- const resetLineHeight = () => setLineHeight(void 0);
- const hasLetterSpacingControl = useHasLetterSpacingControl(settings2);
- const localLetterSpacing = decodeValue(value?.typography?.letterSpacing);
- const inheritedLetterSpacing = decodeValue(
- inheritedValue?.typography?.letterSpacing
- );
- const isLetterSpacingPlaceholder = !hasValue(value?.typography?.letterSpacing) && hasValue(inheritedLetterSpacing);
- const setLetterSpacing = (newValue) => {
- onChange(
- setImmutably2(
- value,
- ["typography", "letterSpacing"],
- hasValue(newValue) ? newValue : void 0
- )
- );
- };
- const hasLetterSpacing = () => hasValue(value?.typography?.letterSpacing);
- const resetLetterSpacing = () => setLetterSpacing(void 0);
- const hasTextIndentControl = useHasTextIndentControl(settings2);
- const localTextIndent = decodeValue(value?.typography?.textIndent);
- const inheritedTextIndent = decodeValue(
- inheritedValue?.typography?.textIndent
- );
- const isTextIndentPlaceholder = !hasValue(value?.typography?.textIndent) && hasValue(inheritedTextIndent);
- const textIndentSetting = settings2?.typography?.textIndent ?? "subsequent";
- const isTextIndentAll = textIndentSetting === "all";
- const setTextIndentValue = (newValue) => {
- onChange(
- setImmutably2(
- value,
- ["typography", "textIndent"],
- hasValue(newValue) ? newValue : void 0
- )
- );
- };
- const onToggleTextIndentAll = (newValue) => {
- onChange({
- ...value,
- settings: {
- typography: {
- textIndent: newValue ? "all" : "subsequent"
+ _this.resizeObserver.observe(_this.containerRef);
+ };
+ _this.preventZoomSafari = function(e2) {
+ return e2.preventDefault();
+ };
+ _this.cleanEvents = function() {
+ if (!_this.currentDoc) return;
+ _this.currentDoc.removeEventListener("mousemove", _this.onMouseMove);
+ _this.currentDoc.removeEventListener("mouseup", _this.onDragStopped);
+ _this.currentDoc.removeEventListener("touchmove", _this.onTouchMove);
+ _this.currentDoc.removeEventListener("touchend", _this.onDragStopped);
+ _this.currentDoc.removeEventListener("gesturechange", _this.onGestureChange);
+ _this.currentDoc.removeEventListener("gestureend", _this.onGestureEnd);
+ _this.currentDoc.removeEventListener("scroll", _this.onScroll);
+ };
+ _this.clearScrollEvent = function() {
+ if (_this.containerRef) _this.containerRef.removeEventListener("wheel", _this.onWheel);
+ if (_this.wheelTimer) {
+ clearTimeout(_this.wheelTimer);
}
- }
- });
- };
- const hasTextIndent = () => hasValue(value?.typography?.textIndent);
- const resetTextIndent = () => {
- onChange(
- setImmutably2(value, ["typography", "textIndent"], void 0)
- );
- };
- const textIndentHelp = isTextIndentAll ? (0, import_i18n190.__)("Indents the first line of all paragraphs.") : (0, import_i18n190.__)("Indents the first line of each paragraph after the first one.");
- const hasTextColumnsControl = useHasTextColumnsControl(settings2);
- const localTextColumns = decodeValue(value?.typography?.textColumns);
- const inheritedTextColumns = decodeValue(
- inheritedValue?.typography?.textColumns
- );
- const isTextColumnsPlaceholder = !hasValue(value?.typography?.textColumns) && hasValue(inheritedTextColumns);
- const setTextColumns = (newValue) => {
- onChange(
- setImmutably2(
- value,
- ["typography", "textColumns"],
- hasValue(newValue) ? newValue : void 0
- )
- );
- };
- const hasTextColumns = () => hasValue(value?.typography?.textColumns);
- const resetTextColumns = () => setTextColumns(void 0);
- const hasTextTransformControl = useHasTextTransformControl(settings2);
- const inheritedTextTransform = decodeValue(
- inheritedValue?.typography?.textTransform
- );
- const textTransform = decodeValue(value?.typography?.textTransform) ?? inheritedTextTransform;
- const isTextTransformPlaceholder = !hasValue(value?.typography?.textTransform) && hasValue(inheritedTextTransform);
- const setTextTransform = (newValue) => {
- onChange(
- setImmutably2(
- value,
- ["typography", "textTransform"],
- hasValue(newValue) ? newValue : void 0
- )
- );
- };
- const setTextTransformWithInheritedCommit = (newValue) => {
- if (isTextTransformPlaceholder && newValue === void 0) {
- setTextTransform(inheritedTextTransform);
- return;
- }
- setTextTransform(newValue);
- };
- const hasTextTransform = () => hasValue(value?.typography?.textTransform);
- const resetTextTransform = () => setTextTransform(void 0);
- const hasTextDecorationControl = useHasTextDecorationControl(settings2);
- const inheritedTextDecoration = decodeValue(
- inheritedValue?.typography?.textDecoration
- );
- const textDecoration = decodeValue(value?.typography?.textDecoration) ?? inheritedTextDecoration;
- const isTextDecorationPlaceholder = !hasValue(value?.typography?.textDecoration) && hasValue(inheritedTextDecoration);
- const setTextDecoration = (newValue) => {
- onChange(
- setImmutably2(
- value,
- ["typography", "textDecoration"],
- hasValue(newValue) ? newValue : void 0
- )
- );
- };
- const setTextDecorationWithInheritedCommit = (newValue) => {
- if (isTextDecorationPlaceholder && newValue === void 0) {
- setTextDecoration(inheritedTextDecoration);
- return;
- }
- setTextDecoration(newValue);
- };
- const hasTextDecoration = () => hasValue(value?.typography?.textDecoration);
- const resetTextDecoration = () => setTextDecoration(void 0);
- const hasWritingModeControl = useHasWritingModeControl(settings2);
- const inheritedWritingMode = decodeValue(
- inheritedValue?.typography?.writingMode
- );
- const writingMode = decodeValue(value?.typography?.writingMode) ?? inheritedWritingMode;
- const isWritingModePlaceholder = !hasValue(value?.typography?.writingMode) && hasValue(inheritedWritingMode);
- const setWritingMode = (newValue) => {
- onChange(
- setImmutably2(
- value,
- ["typography", "writingMode"],
- hasValue(newValue) ? newValue : void 0
- )
- );
- };
- const setWritingModeWithInheritedCommit = (newValue) => {
- if (isWritingModePlaceholder && newValue === void 0) {
- setWritingMode(inheritedWritingMode);
- return;
- }
- setWritingMode(newValue);
- };
- const hasWritingMode = () => hasValue(value?.typography?.writingMode);
- const resetWritingMode = () => setWritingMode(void 0);
- const hasTextAlignmentControl = useHasTextAlignmentControl(settings2);
- const inheritedTextAlign = decodeValue(
- inheritedValue?.typography?.textAlign
- );
- const textAlign = decodeValue(value?.typography?.textAlign) ?? inheritedTextAlign;
- const isTextAlignPlaceholder = !hasValue(value?.typography?.textAlign) && hasValue(inheritedTextAlign);
- const setTextAlign = (newValue) => {
- onChange(
- setImmutably2(
- value,
- ["typography", "textAlign"],
- hasValue(newValue) ? newValue : void 0
- )
- );
- };
- const setTextAlignWithInheritedCommit = (newValue) => {
- if (isTextAlignPlaceholder && newValue === void 0) {
- setTextAlign(inheritedTextAlign);
- return;
- }
- setTextAlign(newValue);
- };
- const hasTextAlign = () => hasValue(value?.typography?.textAlign);
- const resetTextAlign = () => setTextAlign(void 0);
- const resetAllFilter = (0, import_element251.useCallback)(
- (previousValue) => {
- if (!hasTextColorEnabled) {
- return {
- ...previousValue,
- typography: {}
- };
- }
- return {
- ...previousValue,
- typography: {},
- color: {
- ...previousValue?.color,
- text: void 0
+ };
+ _this.onMediaLoad = function() {
+ var cropSize = _this.computeSizes();
+ if (cropSize) {
+ _this.previousCropSize = cropSize;
+ _this.emitCropData();
+ _this.setInitialCrop(cropSize);
+ _this.isInitialized = true;
+ }
+ if (_this.props.onMediaLoaded) {
+ _this.props.onMediaLoaded(_this.mediaSize);
}
};
- },
- [hasTextColorEnabled]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime425.jsxs)(
- Wrapper,
- {
- resetAllFilter,
- value,
- onChange,
- panelId,
- children: [
- hasTextColorEnabled && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- ColorGradientDropdownItem,
- {
- label: (0, import_i18n190.__)("Color"),
- hasValue: hasTextColorValue,
- resetValue: resetTextColor,
- isShownByDefault: defaultControls.textColor,
- indicators: [userTextColor ?? textColor],
- contrastWarning,
- showInheritanceLabelIndicators,
- isPlaceholder: userTextColor === void 0 && textColor !== void 0,
- hasInheritedValue: textColor !== void 0,
- tabs: [
- {
- key: "text",
- label: (0, import_i18n190.__)("Color"),
- inheritedValue: textColor,
- inheritedSlug: extractPresetSlug(
- inheritedValue?.color?.text,
- "color"
- ),
- userSlug: extractPresetSlug(
- value?.color?.text,
- "color"
- ),
- setValue: setTextColor,
- userValue: userTextColor,
- isPlaceholder: userTextColor === void 0 && textColor !== void 0
- }
- ],
- colorGradientControlSettings: {
- colors: colors2,
- disableCustomColors: !areCustomSolidsEnabled
- },
- panelId
- }
- ),
- hasFontFamilyEnabled && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isFontFamilyPlaceholder,
- hasFontFamily() && inheritedFontFamily !== void 0
- ),
- label: (0, import_i18n190.__)("Font"),
- hasValue: hasFontFamily,
- onDeselect: resetFontFamily,
- isShownByDefault: defaultControls.fontFamily,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- FontFamilyControl,
- {
- fontFamilies,
- value: fontFamily,
- onChange: setFontFamily
- }
- )
+ _this.setInitialCrop = function(cropSize) {
+ if (_this.props.initialCroppedAreaPercentages) {
+ var _a = getInitialCropFromCroppedAreaPercentages(_this.props.initialCroppedAreaPercentages, _this.mediaSize, _this.props.rotation, cropSize, _this.props.minZoom, _this.props.maxZoom), crop = _a.crop, zoom = _a.zoom;
+ _this.props.onCropChange(crop);
+ _this.props.onZoomChange && _this.props.onZoomChange(zoom);
+ } else if (_this.props.initialCroppedAreaPixels) {
+ var _b = getInitialCropFromCroppedAreaPixels(_this.props.initialCroppedAreaPixels, _this.mediaSize, _this.props.rotation, cropSize, _this.props.minZoom, _this.props.maxZoom), crop = _b.crop, zoom = _b.zoom;
+ _this.props.onCropChange(crop);
+ _this.props.onZoomChange && _this.props.onZoomChange(zoom);
+ }
+ };
+ _this.computeSizes = function() {
+ var _a, _b, _c, _d, _e, _f;
+ var mediaRef = _this.imageRef.current || _this.videoRef.current;
+ if (mediaRef && _this.containerRef) {
+ _this.containerRect = _this.containerRef.getBoundingClientRect();
+ _this.saveContainerPosition();
+ var containerAspect = _this.containerRect.width / _this.containerRect.height;
+ var naturalWidth = ((_a = _this.imageRef.current) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = _this.videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0;
+ var naturalHeight = ((_c = _this.imageRef.current) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = _this.videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0;
+ var isMediaScaledDown = mediaRef.offsetWidth < naturalWidth || mediaRef.offsetHeight < naturalHeight;
+ var mediaAspect = naturalWidth / naturalHeight;
+ var renderedMediaSize = void 0;
+ if (isMediaScaledDown) {
+ switch (_this.state.mediaObjectFit) {
+ default:
+ case "contain":
+ renderedMediaSize = containerAspect > mediaAspect ? {
+ width: _this.containerRect.height * mediaAspect,
+ height: _this.containerRect.height
+ } : {
+ width: _this.containerRect.width,
+ height: _this.containerRect.width / mediaAspect
+ };
+ break;
+ case "horizontal-cover":
+ renderedMediaSize = {
+ width: _this.containerRect.width,
+ height: _this.containerRect.width / mediaAspect
+ };
+ break;
+ case "vertical-cover":
+ renderedMediaSize = {
+ width: _this.containerRect.height * mediaAspect,
+ height: _this.containerRect.height
+ };
+ break;
+ }
+ } else {
+ renderedMediaSize = {
+ width: mediaRef.offsetWidth,
+ height: mediaRef.offsetHeight
+ };
}
- ),
- hasFontSizeEnabled && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isFontSizePlaceholder,
- hasFontSize() && rawInheritedFontSize !== void 0
- ),
- label: (0, import_i18n190.__)("Size"),
- hasValue: hasFontSize,
- hasInlineEndToggle: true,
- onDeselect: resetFontSize,
- isShownByDefault: defaultControls.fontSize,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- import_components200.FontSizePicker,
- {
- value: currentFontSizeSlug || fontSize,
- valueMode: currentFontSizeSlug ? "slug" : "literal",
- onChange: setFontSizeWithInheritedCommit,
- fontSizes: mergedFontSizes,
- disableCustomFontSizes,
- withReset: false,
- withSlider: true
- }
- )
+ _this.mediaSize = __assign(__assign({}, renderedMediaSize), {
+ naturalWidth,
+ naturalHeight
+ });
+ if (_this.props.setMediaSize) {
+ _this.props.setMediaSize(_this.mediaSize);
}
- ),
- hasAppearanceControl && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isFontAppearancePlaceholder,
- hasFontAppearance() && (inheritedFontStyle !== void 0 || inheritedFontWeight !== void 0)
- ),
- label: appearanceControlLabel,
- hasValue: hasFontAppearance,
- onDeselect: resetFontAppearance,
- isShownByDefault: defaultControls.fontAppearance,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- FontAppearanceControl,
- {
- value: {
- fontStyle,
- fontWeight
- },
- onChange: setFontAppearanceWithInheritedCommit,
- hasFontStyles,
- hasFontWeights,
- fontFamilyFaces
- }
- )
+ var cropSize = _this.props.cropSize ? _this.props.cropSize : getCropSize(_this.mediaSize.width, _this.mediaSize.height, _this.containerRect.width, _this.containerRect.height, _this.props.aspect, _this.props.rotation);
+ if (((_e = _this.state.cropSize) === null || _e === void 0 ? void 0 : _e.height) !== cropSize.height || ((_f = _this.state.cropSize) === null || _f === void 0 ? void 0 : _f.width) !== cropSize.width) {
+ _this.props.onCropSizeChange && _this.props.onCropSizeChange(cropSize);
}
- ),
- hasLineHeightEnabled && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isLineHeightPlaceholder,
- hasLineHeight() && inheritedLineHeight !== void 0,
- "single-column"
- ),
- label: (0, import_i18n190.__)("Line height"),
- hasValue: hasLineHeight,
- onDeselect: resetLineHeight,
- isShownByDefault: defaultControls.lineHeight,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- line_height_control_default,
- {
- __unstableInputWidth: "auto",
- value: localLineHeight ?? inheritedLineHeight,
- onChange: setLineHeight,
- ...isLineHeightPlaceholder ? {
- placeholder: getNumericPlaceholder(
- inheritedLineHeight
- )
- } : {}
- }
- )
- }
- ),
- hasLetterSpacingControl && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isLetterSpacingPlaceholder,
- hasLetterSpacing() && inheritedLetterSpacing !== void 0,
- "single-column"
- ),
- label: (0, import_i18n190.__)("Letter spacing"),
- hasValue: hasLetterSpacing,
- onDeselect: resetLetterSpacing,
- isShownByDefault: defaultControls.letterSpacing,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- LetterSpacingControl,
- {
- value: localLetterSpacing ?? inheritedLetterSpacing,
- onChange: setLetterSpacing,
- __unstableInputWidth: "auto",
- placeholder: isLetterSpacingPlaceholder ? getNumericPlaceholder(
- inheritedLetterSpacing
- ) : void 0
- }
- )
- }
- ),
- hasTextIndentControl && /* @__PURE__ */ (0, import_jsx_runtime425.jsxs)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isTextIndentPlaceholder,
- hasTextIndent() && inheritedTextIndent !== void 0
- ),
- label: (0, import_i18n190.__)("Line indent"),
- hasValue: hasTextIndent,
- onDeselect: resetTextIndent,
- isShownByDefault: defaultControls.textIndent,
- panelId,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- TextIndentControl,
- {
- value: localTextIndent ?? inheritedTextIndent,
- onChange: setTextIndentValue,
- __unstableInputWidth: "auto",
- withSlider: true,
- hasBottomMargin: isGlobalStyles,
- placeholder: isTextIndentPlaceholder ? getNumericPlaceholder(inheritedTextIndent) : void 0
- }
- ),
- isGlobalStyles && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- import_components200.ToggleControl,
- {
- label: (0, import_i18n190.__)("Indent all paragraphs"),
- checked: isTextIndentAll,
- onChange: onToggleTextIndentAll,
- help: textIndentHelp
- }
- )
- ]
- }
- ),
- hasTextColumnsControl && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isTextColumnsPlaceholder,
- hasTextColumns() && inheritedTextColumns !== void 0,
- "single-column"
- ),
- label: (0, import_i18n190.__)("Columns"),
- hasValue: hasTextColumns,
- onDeselect: resetTextColumns,
- isShownByDefault: defaultControls.textColumns,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- import_components200.__experimentalNumberControl,
- {
- label: (0, import_i18n190.__)("Columns"),
- max: MAX_TEXT_COLUMNS,
- min: MIN_TEXT_COLUMNS,
- onChange: setTextColumns,
- placeholder: isTextColumnsPlaceholder ? inheritedTextColumns : void 0,
- spinControls: "custom",
- value: localTextColumns,
- initialPosition: 1
- }
- )
- }
- ),
- hasTextDecorationControl && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isTextDecorationPlaceholder,
- hasTextDecoration() && inheritedTextDecoration !== void 0,
- "single-column"
- ),
- label: (0, import_i18n190.__)("Decoration"),
- hasValue: hasTextDecoration,
- onDeselect: resetTextDecoration,
- isShownByDefault: defaultControls.textDecoration,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- TextDecorationControl,
- {
- value: textDecoration,
- onChange: setTextDecorationWithInheritedCommit,
- __unstableInputWidth: "auto"
- }
- )
- }
- ),
- hasWritingModeControl && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isWritingModePlaceholder,
- hasWritingMode() && inheritedWritingMode !== void 0,
- "single-column"
- ),
- label: (0, import_i18n190.__)("Orientation"),
- hasValue: hasWritingMode,
- onDeselect: resetWritingMode,
- isShownByDefault: defaultControls.writingMode,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- WritingModeControl,
- {
- value: writingMode,
- onChange: setWritingModeWithInheritedCommit
- }
- )
- }
- ),
- hasTextTransformControl && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isTextTransformPlaceholder,
- hasTextTransform() && inheritedTextTransform !== void 0
- ),
- label: (0, import_i18n190.__)("Letter case"),
- hasValue: hasTextTransform,
- onDeselect: resetTextTransform,
- isShownByDefault: defaultControls.textTransform,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- TextTransformControl,
- {
- value: textTransform,
- onChange: setTextTransformWithInheritedCommit,
- showNone: true,
- isBlock: true
- }
- )
+ _this.setState({
+ cropSize
+ }, _this.recomputeCropPosition);
+ if (_this.props.setCropSize) {
+ _this.props.setCropSize(cropSize);
}
- ),
- hasTextAlignmentControl && /* @__PURE__ */ (0, import_jsx_runtime425.jsxs)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isTextAlignPlaceholder,
- hasTextAlign() && inheritedTextAlign !== void 0
- ),
- label: (0, import_i18n190.__)("Text alignment"),
- hasValue: hasTextAlign,
- onDeselect: resetTextAlign,
- isShownByDefault: defaultControls.textAlign,
- panelId,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(
- TextAlignmentControl,
- {
- value: textAlign,
- onChange: setTextAlignWithInheritedCommit,
- options: ["left", "center", "right", "justify"]
- }
- ),
- textAlign === "justify" && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(import_components200.Notice, { status: "warning", isDismissible: false, children: (0, import_i18n190.__)(
- "Justified text can reduce readability. For better accessibility, use left-aligned text instead."
- ) }) })
- ]
+ return cropSize;
+ }
+ };
+ _this.saveContainerPosition = function() {
+ if (_this.containerRef) {
+ var bounds = _this.containerRef.getBoundingClientRect();
+ _this.containerPosition = {
+ x: bounds.left,
+ y: bounds.top
+ };
+ }
+ };
+ _this.onMouseDown = function(e2) {
+ if (!_this.currentDoc) return;
+ e2.preventDefault();
+ _this.currentDoc.addEventListener("mousemove", _this.onMouseMove);
+ _this.currentDoc.addEventListener("mouseup", _this.onDragStopped);
+ _this.saveContainerPosition();
+ _this.onDragStart(Cropper2.getMousePoint(e2));
+ };
+ _this.onMouseMove = function(e2) {
+ return _this.onDrag(Cropper2.getMousePoint(e2));
+ };
+ _this.onScroll = function(e2) {
+ if (!_this.currentDoc) return;
+ e2.preventDefault();
+ _this.saveContainerPosition();
+ };
+ _this.onTouchStart = function(e2) {
+ if (!_this.currentDoc) return;
+ _this.isTouching = true;
+ if (_this.props.onTouchRequest && !_this.props.onTouchRequest(e2)) {
+ return;
+ }
+ _this.currentDoc.addEventListener("touchmove", _this.onTouchMove, {
+ passive: false
+ });
+ _this.currentDoc.addEventListener("touchend", _this.onDragStopped);
+ _this.saveContainerPosition();
+ if (e2.touches.length === 2) {
+ _this.onPinchStart(e2);
+ } else if (e2.touches.length === 1) {
+ _this.onDragStart(Cropper2.getTouchPoint(e2.touches[0]));
+ }
+ };
+ _this.onTouchMove = function(e2) {
+ e2.preventDefault();
+ if (e2.touches.length === 2) {
+ _this.onPinchMove(e2);
+ } else if (e2.touches.length === 1) {
+ _this.onDrag(Cropper2.getTouchPoint(e2.touches[0]));
+ }
+ };
+ _this.onGestureStart = function(e2) {
+ if (!_this.currentDoc) return;
+ e2.preventDefault();
+ _this.currentDoc.addEventListener("gesturechange", _this.onGestureChange);
+ _this.currentDoc.addEventListener("gestureend", _this.onGestureEnd);
+ _this.gestureZoomStart = _this.props.zoom;
+ _this.gestureRotationStart = _this.props.rotation;
+ };
+ _this.onGestureChange = function(e2) {
+ e2.preventDefault();
+ if (_this.isTouching) {
+ return;
+ }
+ var point = Cropper2.getMousePoint(e2);
+ var newZoom = _this.gestureZoomStart - 1 + e2.scale;
+ _this.setNewZoom(newZoom, point, {
+ shouldUpdatePosition: true
+ });
+ if (_this.props.onRotationChange) {
+ var newRotation = _this.gestureRotationStart + e2.rotation;
+ _this.props.onRotationChange(newRotation);
+ }
+ };
+ _this.onGestureEnd = function(e2) {
+ _this.cleanEvents();
+ };
+ _this.onDragStart = function(_a) {
+ var _b, _c;
+ var x2 = _a.x, y2 = _a.y;
+ _this.dragStartPosition = {
+ x: x2,
+ y: y2
+ };
+ _this.dragStartCrop = __assign({}, _this.props.crop);
+ (_c = (_b = _this.props).onInteractionStart) === null || _c === void 0 ? void 0 : _c.call(_b);
+ };
+ _this.onDrag = function(_a) {
+ var x2 = _a.x, y2 = _a.y;
+ if (!_this.currentWindow) return;
+ if (_this.rafDragTimeout) _this.currentWindow.cancelAnimationFrame(_this.rafDragTimeout);
+ _this.rafDragTimeout = _this.currentWindow.requestAnimationFrame(function() {
+ if (!_this.state.cropSize) return;
+ if (x2 === void 0 || y2 === void 0) return;
+ var offsetX = x2 - _this.dragStartPosition.x;
+ var offsetY = y2 - _this.dragStartPosition.y;
+ var requestedPosition = {
+ x: _this.dragStartCrop.x + offsetX,
+ y: _this.dragStartCrop.y + offsetY
+ };
+ var newPosition = _this.props.restrictPosition ? restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : requestedPosition;
+ _this.props.onCropChange(newPosition);
+ });
+ };
+ _this.onDragStopped = function() {
+ var _a, _b;
+ _this.isTouching = false;
+ _this.cleanEvents();
+ _this.emitCropData();
+ (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
+ };
+ _this.onWheel = function(e2) {
+ if (!_this.currentWindow) return;
+ if (_this.props.onWheelRequest && !_this.props.onWheelRequest(e2)) {
+ return;
+ }
+ e2.preventDefault();
+ var point = Cropper2.getMousePoint(e2);
+ var pixelY = (0, import_normalize_wheel.default)(e2).pixelY;
+ var newZoom = _this.props.zoom - pixelY * _this.props.zoomSpeed / 200;
+ _this.setNewZoom(newZoom, point, {
+ shouldUpdatePosition: true
+ });
+ if (!_this.state.hasWheelJustStarted) {
+ _this.setState({
+ hasWheelJustStarted: true
+ }, function() {
+ var _a, _b;
+ return (_b = (_a = _this.props).onInteractionStart) === null || _b === void 0 ? void 0 : _b.call(_a);
+ });
+ }
+ if (_this.wheelTimer) {
+ clearTimeout(_this.wheelTimer);
+ }
+ _this.wheelTimer = _this.currentWindow.setTimeout(function() {
+ return _this.setState({
+ hasWheelJustStarted: false
+ }, function() {
+ var _a, _b;
+ return (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
+ });
+ }, 250);
+ };
+ _this.getPointOnContainer = function(_a, containerTopLeft) {
+ var x2 = _a.x, y2 = _a.y;
+ if (!_this.containerRect) {
+ throw new Error("The Cropper is not mounted");
+ }
+ return {
+ x: _this.containerRect.width / 2 - (x2 - containerTopLeft.x),
+ y: _this.containerRect.height / 2 - (y2 - containerTopLeft.y)
+ };
+ };
+ _this.getPointOnMedia = function(_a) {
+ var x2 = _a.x, y2 = _a.y;
+ var _b = _this.props, crop = _b.crop, zoom = _b.zoom;
+ return {
+ x: (x2 + crop.x) / zoom,
+ y: (y2 + crop.y) / zoom
+ };
+ };
+ _this.setNewZoom = function(zoom, point, _a) {
+ var _b = _a === void 0 ? {} : _a, _c = _b.shouldUpdatePosition, shouldUpdatePosition = _c === void 0 ? true : _c;
+ if (!_this.state.cropSize || !_this.props.onZoomChange) return;
+ var newZoom = clamp3(zoom, _this.props.minZoom, _this.props.maxZoom);
+ if (shouldUpdatePosition) {
+ var zoomPoint = _this.getPointOnContainer(point, _this.containerPosition);
+ var zoomTarget = _this.getPointOnMedia(zoomPoint);
+ var requestedPosition = {
+ x: zoomTarget.x * newZoom - zoomPoint.x,
+ y: zoomTarget.y * newZoom - zoomPoint.y
+ };
+ var newPosition = _this.props.restrictPosition ? restrictPosition(requestedPosition, _this.mediaSize, _this.state.cropSize, newZoom, _this.props.rotation) : requestedPosition;
+ _this.props.onCropChange(newPosition);
+ }
+ _this.props.onZoomChange(newZoom);
+ };
+ _this.getCropData = function() {
+ if (!_this.state.cropSize) {
+ return null;
+ }
+ var restrictedPosition = _this.props.restrictPosition ? restrictPosition(_this.props.crop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : _this.props.crop;
+ return computeCroppedArea(restrictedPosition, _this.mediaSize, _this.state.cropSize, _this.getAspect(), _this.props.zoom, _this.props.rotation, _this.props.restrictPosition);
+ };
+ _this.emitCropData = function() {
+ var cropData = _this.getCropData();
+ if (!cropData) return;
+ var croppedAreaPercentages = cropData.croppedAreaPercentages, croppedAreaPixels = cropData.croppedAreaPixels;
+ if (_this.props.onCropComplete) {
+ _this.props.onCropComplete(croppedAreaPercentages, croppedAreaPixels);
+ }
+ if (_this.props.onCropAreaChange) {
+ _this.props.onCropAreaChange(croppedAreaPercentages, croppedAreaPixels);
+ }
+ };
+ _this.emitCropAreaChange = function() {
+ var cropData = _this.getCropData();
+ if (!cropData) return;
+ var croppedAreaPercentages = cropData.croppedAreaPercentages, croppedAreaPixels = cropData.croppedAreaPixels;
+ if (_this.props.onCropAreaChange) {
+ _this.props.onCropAreaChange(croppedAreaPercentages, croppedAreaPixels);
+ }
+ };
+ _this.recomputeCropPosition = function() {
+ if (!_this.state.cropSize) return;
+ var adjustedCrop = _this.props.crop;
+ if (_this.isInitialized && _this.previousCropSize) {
+ var sizeChanged = Math.abs(_this.previousCropSize.width - _this.state.cropSize.width) > 1e-6 || Math.abs(_this.previousCropSize.height - _this.state.cropSize.height) > 1e-6;
+ if (sizeChanged) {
+ var scaleX = _this.state.cropSize.width / _this.previousCropSize.width;
+ var scaleY = _this.state.cropSize.height / _this.previousCropSize.height;
+ adjustedCrop = {
+ x: _this.props.crop.x * scaleX,
+ y: _this.props.crop.y * scaleY
+ };
}
- )
- ]
+ }
+ var newPosition = _this.props.restrictPosition ? restrictPosition(adjustedCrop, _this.mediaSize, _this.state.cropSize, _this.props.zoom, _this.props.rotation) : adjustedCrop;
+ _this.previousCropSize = _this.state.cropSize;
+ _this.props.onCropChange(newPosition);
+ _this.emitCropData();
+ };
+ _this.onKeyDown = function(event) {
+ var _a, _b;
+ var _c = _this.props, crop = _c.crop, onCropChange = _c.onCropChange, keyboardStep = _c.keyboardStep, zoom = _c.zoom, rotation = _c.rotation;
+ var step = keyboardStep;
+ if (!_this.state.cropSize) return;
+ if (event.shiftKey) {
+ step *= 0.2;
+ }
+ var newCrop = __assign({}, crop);
+ switch (event.key) {
+ case "ArrowUp":
+ newCrop.y -= step;
+ event.preventDefault();
+ break;
+ case "ArrowDown":
+ newCrop.y += step;
+ event.preventDefault();
+ break;
+ case "ArrowLeft":
+ newCrop.x -= step;
+ event.preventDefault();
+ break;
+ case "ArrowRight":
+ newCrop.x += step;
+ event.preventDefault();
+ break;
+ default:
+ return;
+ }
+ if (_this.props.restrictPosition) {
+ newCrop = restrictPosition(newCrop, _this.mediaSize, _this.state.cropSize, zoom, rotation);
+ }
+ if (!event.repeat) {
+ (_b = (_a = _this.props).onInteractionStart) === null || _b === void 0 ? void 0 : _b.call(_a);
+ }
+ onCropChange(newCrop);
+ };
+ _this.onKeyUp = function(event) {
+ var _a, _b;
+ switch (event.key) {
+ case "ArrowUp":
+ case "ArrowDown":
+ case "ArrowLeft":
+ case "ArrowRight":
+ event.preventDefault();
+ break;
+ default:
+ return;
+ }
+ _this.emitCropData();
+ (_b = (_a = _this.props).onInteractionEnd) === null || _b === void 0 ? void 0 : _b.call(_a);
+ };
+ return _this;
}
- );
- }
-
- // packages/block-editor/build-module/components/global-styles/dimensions-panel.mjs
- var import_i18n193 = __toESM(require_i18n(), 1);
- var import_components203 = __toESM(require_components(), 1);
- var import_element253 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/components/child-layout-control/index.mjs
- var import_components201 = __toESM(require_components(), 1);
- var import_i18n191 = __toESM(require_i18n(), 1);
- var import_element252 = __toESM(require_element(), 1);
- var import_data162 = __toESM(require_data(), 1);
-
- // packages/block-editor/build-module/components/grid/use-get-number-of-blocks-before-cell.mjs
- var import_data161 = __toESM(require_data(), 1);
- function useGetNumberOfBlocksBeforeCell(gridClientId, numColumns) {
- const { getBlockOrder: getBlockOrder2, getBlockAttributes: getBlockAttributes3 } = (0, import_data161.useSelect)(store);
- const getNumberOfBlocksBeforeCell = (column, row) => {
- const targetIndex = (row - 1) * numColumns + column - 1;
- let count = 0;
- for (const clientId of getBlockOrder2(gridClientId)) {
- const { columnStart, rowStart } = getBlockAttributes3(clientId).style?.layout ?? {};
- const cellIndex = (rowStart - 1) * numColumns + columnStart - 1;
- if (cellIndex < targetIndex) {
- count++;
+ Cropper2.prototype.componentDidMount = function() {
+ if (!this.currentDoc || !this.currentWindow) return;
+ if (this.containerRef) {
+ if (this.containerRef.ownerDocument) {
+ this.currentDoc = this.containerRef.ownerDocument;
+ }
+ if (this.currentDoc.defaultView) {
+ this.currentWindow = this.currentDoc.defaultView;
+ }
+ this.initResizeObserver();
+ if (typeof window.ResizeObserver === "undefined") {
+ this.currentWindow.addEventListener("resize", this.computeSizes);
+ }
+ this.props.zoomWithScroll && this.containerRef.addEventListener("wheel", this.onWheel, {
+ passive: false
+ });
+ this.containerRef.addEventListener("gesturestart", this.onGestureStart);
}
- }
- return count;
- };
- return getNumberOfBlocksBeforeCell;
- }
-
- // packages/block-editor/build-module/components/child-layout-control/index.mjs
- var import_jsx_runtime426 = __toESM(require_jsx_runtime(), 1);
- var FLEX_CHILD_LAYOUT_VALUES = {
- fit: "fit",
- grow: "fill",
- max: "fixed",
- fixed: "fixedNoShrink"
- };
- var FLEX_SIZE_VALUES = [
- FLEX_CHILD_LAYOUT_VALUES.max,
- FLEX_CHILD_LAYOUT_VALUES.fixed
- ];
- function isFlexSizeValue(value) {
- return FLEX_SIZE_VALUES.includes(value);
- }
- function maxSizeLabel(parentLayout) {
- const { orientation = "horizontal" } = parentLayout ?? {};
- return orientation === "horizontal" ? (0, import_i18n191._x)("Max", "Block with maximum width in flex layout") : (0, import_i18n191._x)("Max", "Block with maximum height in flex layout");
- }
- function helpText(flexControlValue, parentLayout) {
- const { orientation = "horizontal" } = parentLayout ?? {};
- if (flexControlValue === FLEX_CHILD_LAYOUT_VALUES.grow) {
- return (0, import_i18n191.__)("Stretch to fill available space.");
- }
- if (flexControlValue === FLEX_CHILD_LAYOUT_VALUES.max && orientation === "horizontal") {
- return (0, import_i18n191.__)("Specify a maximum width.");
- } else if (flexControlValue === FLEX_CHILD_LAYOUT_VALUES.max) {
- return (0, import_i18n191.__)("Specify a maximum height.");
- }
- if (flexControlValue === FLEX_CHILD_LAYOUT_VALUES.fixed && orientation === "horizontal") {
- return (0, import_i18n191.__)("Specify a fixed width.");
- } else if (flexControlValue === FLEX_CHILD_LAYOUT_VALUES.fixed) {
- return (0, import_i18n191.__)("Specify a fixed height.");
- }
- return (0, import_i18n191.__)("Fit contents.");
- }
- function ChildLayoutControl({
- value: childLayout = {},
- onChange,
- parentLayout,
- isShownByDefault,
- panelId,
- showGridSpanDefaults = true
- }) {
- const {
- type: parentType,
- default: { type: defaultParentType = "default" } = {}
- } = parentLayout ?? {};
- const parentLayoutType = parentType || defaultParentType;
- if (parentLayoutType === "flex") {
- return /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- FlexControls,
- {
- childLayout,
- onChange,
- parentLayout,
- isShownByDefault,
- panelId
+ this.currentDoc.addEventListener("scroll", this.onScroll);
+ if (!this.props.disableAutomaticStylesInjection) {
+ this.styleRef = this.currentDoc.createElement("style");
+ this.styleRef.setAttribute("type", "text/css");
+ if (this.props.nonce) {
+ this.styleRef.setAttribute("nonce", this.props.nonce);
+ }
+ this.styleRef.innerHTML = css_248z;
+ this.currentDoc.head.appendChild(this.styleRef);
}
- );
- } else if (parentLayoutType === "grid") {
- return /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- GridControls,
- {
- childLayout,
- onChange,
- parentLayout,
- isShownByDefault,
- panelId,
- showGridSpanDefaults
+ if (this.imageRef.current && this.imageRef.current.complete) {
+ this.onMediaLoad();
}
- );
+ if (this.props.setImageRef) {
+ this.props.setImageRef(this.imageRef);
+ }
+ if (this.props.setVideoRef) {
+ this.props.setVideoRef(this.videoRef);
+ }
+ if (this.props.setCropperRef) {
+ this.props.setCropperRef(this.cropperRef);
+ }
+ };
+ Cropper2.prototype.componentWillUnmount = function() {
+ var _a, _b;
+ if (!this.currentDoc || !this.currentWindow) return;
+ if (typeof window.ResizeObserver === "undefined") {
+ this.currentWindow.removeEventListener("resize", this.computeSizes);
+ }
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
+ if (this.containerRef) {
+ this.containerRef.removeEventListener("gesturestart", this.preventZoomSafari);
+ }
+ if (this.styleRef) {
+ (_b = this.styleRef.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(this.styleRef);
+ }
+ this.cleanEvents();
+ this.props.zoomWithScroll && this.clearScrollEvent();
+ };
+ Cropper2.prototype.componentDidUpdate = function(prevProps) {
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
+ if (prevProps.rotation !== this.props.rotation) {
+ this.computeSizes();
+ this.recomputeCropPosition();
+ } else if (prevProps.aspect !== this.props.aspect) {
+ this.computeSizes();
+ } else if (prevProps.objectFit !== this.props.objectFit) {
+ this.computeSizes();
+ } else if (prevProps.zoom !== this.props.zoom) {
+ this.recomputeCropPosition();
+ } else if (((_a = prevProps.cropSize) === null || _a === void 0 ? void 0 : _a.height) !== ((_b = this.props.cropSize) === null || _b === void 0 ? void 0 : _b.height) || ((_c = prevProps.cropSize) === null || _c === void 0 ? void 0 : _c.width) !== ((_d = this.props.cropSize) === null || _d === void 0 ? void 0 : _d.width)) {
+ this.computeSizes();
+ } else if (((_e = prevProps.crop) === null || _e === void 0 ? void 0 : _e.x) !== ((_f = this.props.crop) === null || _f === void 0 ? void 0 : _f.x) || ((_g = prevProps.crop) === null || _g === void 0 ? void 0 : _g.y) !== ((_h = this.props.crop) === null || _h === void 0 ? void 0 : _h.y)) {
+ this.emitCropAreaChange();
+ }
+ if (prevProps.zoomWithScroll !== this.props.zoomWithScroll && this.containerRef) {
+ this.props.zoomWithScroll ? this.containerRef.addEventListener("wheel", this.onWheel, {
+ passive: false
+ }) : this.clearScrollEvent();
+ }
+ if (prevProps.video !== this.props.video) {
+ (_j = this.videoRef.current) === null || _j === void 0 ? void 0 : _j.load();
+ }
+ var objectFit = this.getObjectFit();
+ if (objectFit !== this.state.mediaObjectFit) {
+ this.setState({
+ mediaObjectFit: objectFit
+ }, this.computeSizes);
+ }
+ };
+ Cropper2.prototype.getAspect = function() {
+ var _a = this.props, cropSize = _a.cropSize, aspect = _a.aspect;
+ if (cropSize) {
+ return cropSize.width / cropSize.height;
+ }
+ return aspect;
+ };
+ Cropper2.prototype.getObjectFit = function() {
+ var _a, _b, _c, _d;
+ if (this.props.objectFit === "cover") {
+ var mediaRef = this.imageRef.current || this.videoRef.current;
+ if (mediaRef && this.containerRef) {
+ this.containerRect = this.containerRef.getBoundingClientRect();
+ var containerAspect = this.containerRect.width / this.containerRect.height;
+ var naturalWidth = ((_a = this.imageRef.current) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = this.videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0;
+ var naturalHeight = ((_c = this.imageRef.current) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = this.videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0;
+ var mediaAspect = naturalWidth / naturalHeight;
+ return mediaAspect < containerAspect ? "horizontal-cover" : "vertical-cover";
+ }
+ return "horizontal-cover";
+ }
+ return this.props.objectFit;
+ };
+ Cropper2.prototype.onPinchStart = function(e2) {
+ var pointA = Cropper2.getTouchPoint(e2.touches[0]);
+ var pointB = Cropper2.getTouchPoint(e2.touches[1]);
+ this.lastPinchDistance = getDistanceBetweenPoints(pointA, pointB);
+ this.lastPinchRotation = getRotationBetweenPoints(pointA, pointB);
+ this.onDragStart(getCenter(pointA, pointB));
+ };
+ Cropper2.prototype.onPinchMove = function(e2) {
+ var _this = this;
+ if (!this.currentDoc || !this.currentWindow) return;
+ var pointA = Cropper2.getTouchPoint(e2.touches[0]);
+ var pointB = Cropper2.getTouchPoint(e2.touches[1]);
+ var center = getCenter(pointA, pointB);
+ this.onDrag(center);
+ if (this.rafPinchTimeout) this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout);
+ this.rafPinchTimeout = this.currentWindow.requestAnimationFrame(function() {
+ var distance = getDistanceBetweenPoints(pointA, pointB);
+ var newZoom = _this.props.zoom * (distance / _this.lastPinchDistance);
+ _this.setNewZoom(newZoom, center, {
+ shouldUpdatePosition: false
+ });
+ _this.lastPinchDistance = distance;
+ var rotation = getRotationBetweenPoints(pointA, pointB);
+ var newRotation = _this.props.rotation + (rotation - _this.lastPinchRotation);
+ _this.props.onRotationChange && _this.props.onRotationChange(newRotation);
+ _this.lastPinchRotation = rotation;
+ });
+ };
+ Cropper2.prototype.render = function() {
+ var _this = this;
+ var _a;
+ var _b = this.props, image = _b.image, video = _b.video, mediaProps = _b.mediaProps, cropperProps = _b.cropperProps, transform = _b.transform, _c = _b.crop, x2 = _c.x, y2 = _c.y, rotation = _b.rotation, zoom = _b.zoom, cropShape = _b.cropShape, showGrid = _b.showGrid, roundCropAreaPixels = _b.roundCropAreaPixels, _d = _b.style, containerStyle = _d.containerStyle, cropAreaStyle = _d.cropAreaStyle, mediaStyle = _d.mediaStyle, _e = _b.classes, containerClassName = _e.containerClassName, cropAreaClassName = _e.cropAreaClassName, mediaClassName = _e.mediaClassName;
+ var objectFit = (_a = this.state.mediaObjectFit) !== null && _a !== void 0 ? _a : this.getObjectFit();
+ return React145.createElement("div", {
+ onMouseDown: this.onMouseDown,
+ onTouchStart: this.onTouchStart,
+ ref: function ref(el) {
+ return _this.containerRef = el;
+ },
+ "data-testid": "container",
+ style: containerStyle,
+ className: classNames("reactEasyCrop_Container", containerClassName)
+ }, image ? React145.createElement("img", __assign({
+ alt: "",
+ className: classNames("reactEasyCrop_Image", objectFit === "contain" && "reactEasyCrop_Contain", objectFit === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", objectFit === "vertical-cover" && "reactEasyCrop_Cover_Vertical", mediaClassName)
+ }, mediaProps, {
+ src: image,
+ ref: this.imageRef,
+ style: __assign(__assign({}, mediaStyle), {
+ transform: transform || "translate(".concat(x2, "px, ").concat(y2, "px) rotate(").concat(rotation, "deg) scale(").concat(zoom, ")")
+ }),
+ onLoad: this.onMediaLoad
+ })) : video && React145.createElement("video", __assign({
+ autoPlay: true,
+ playsInline: true,
+ loop: true,
+ muted: true,
+ className: classNames("reactEasyCrop_Video", objectFit === "contain" && "reactEasyCrop_Contain", objectFit === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", objectFit === "vertical-cover" && "reactEasyCrop_Cover_Vertical", mediaClassName)
+ }, mediaProps, {
+ ref: this.videoRef,
+ onLoadedMetadata: this.onMediaLoad,
+ style: __assign(__assign({}, mediaStyle), {
+ transform: transform || "translate(".concat(x2, "px, ").concat(y2, "px) rotate(").concat(rotation, "deg) scale(").concat(zoom, ")")
+ }),
+ controls: false
+ }), (Array.isArray(video) ? video : [{
+ src: video
+ }]).map(function(item) {
+ return React145.createElement("source", __assign({
+ key: item.src
+ }, item));
+ })), this.state.cropSize && React145.createElement("div", __assign({
+ ref: this.cropperRef,
+ style: __assign(__assign({}, cropAreaStyle), {
+ width: roundCropAreaPixels ? Math.round(this.state.cropSize.width) : this.state.cropSize.width,
+ height: roundCropAreaPixels ? Math.round(this.state.cropSize.height) : this.state.cropSize.height
+ }),
+ tabIndex: 0,
+ onKeyDown: this.onKeyDown,
+ onKeyUp: this.onKeyUp,
+ "data-testid": "cropper",
+ className: classNames("reactEasyCrop_CropArea", cropShape === "round" && "reactEasyCrop_CropAreaRound", showGrid && "reactEasyCrop_CropAreaGrid", cropAreaClassName)
+ }, cropperProps)));
+ };
+ Cropper2.defaultProps = {
+ zoom: 1,
+ rotation: 0,
+ aspect: 4 / 3,
+ maxZoom: MAX_ZOOM,
+ minZoom: MIN_ZOOM,
+ cropShape: "rect",
+ objectFit: "contain",
+ showGrid: true,
+ style: {},
+ classes: {},
+ mediaProps: {},
+ cropperProps: {},
+ zoomSpeed: 1,
+ restrictPosition: true,
+ zoomWithScroll: true,
+ keyboardStep: KEYBOARD_STEP
+ };
+ Cropper2.getMousePoint = function(e2) {
+ return {
+ x: Number(e2.clientX),
+ y: Number(e2.clientY)
+ };
+ };
+ Cropper2.getTouchPoint = function(touch) {
+ return {
+ x: Number(touch.clientX),
+ y: Number(touch.clientY)
+ };
+ };
+ return Cropper2;
+ })(React145.Component)
+ );
+
+ // packages/image-cropper/build-module/components/image-cropper/index.mjs
+ var import_element220 = __toESM(require_element(), 1);
+
+ // packages/image-cropper/build-module/provider/index.mjs
+ var import_element219 = __toESM(require_element(), 1);
+
+ // node_modules/dequal/dist/index.mjs
+ var has = Object.prototype.hasOwnProperty;
+ function find(iter, tar, key) {
+ for (key of iter.keys()) {
+ if (dequal(key, tar)) return key;
}
- return null;
}
- function FlexControls({
- childLayout,
- onChange,
- parentLayout,
- isShownByDefault,
- panelId
- }) {
- const { selfStretch, flexSize } = childLayout;
- const { orientation = "horizontal" } = parentLayout ?? {};
- const flexControlValue = selfStretch || FLEX_CHILD_LAYOUT_VALUES.fit;
- const hasFlexSizeValue = isFlexSizeValue(flexControlValue);
- const hasFlexValue = () => !!selfStretch;
- const flexResetLabel = orientation === "horizontal" ? (0, import_i18n191.__)("Width") : (0, import_i18n191.__)("Height");
- const [availableUnits] = useSettings("spacing.units");
- const units2 = (0, import_components201.__experimentalUseCustomUnits)({
- availableUnits: availableUnits || [
- "%",
- "px",
- "em",
- "rem",
- "vh",
- "vw"
- ]
- });
- const resetFlex = () => {
- onChange({
- selfStretch: void 0,
- flexSize: void 0
- });
- };
- (0, import_element252.useEffect)(() => {
- if (isFlexSizeValue(selfStretch) && !flexSize) {
- onChange({
- ...childLayout,
- selfStretch: FLEX_CHILD_LAYOUT_VALUES.fit
- });
+ function dequal(foo, bar) {
+ var ctor, len, tmp;
+ if (foo === bar) return true;
+ if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
+ if (ctor === Date) return foo.getTime() === bar.getTime();
+ if (ctor === RegExp) return foo.toString() === bar.toString();
+ if (ctor === Array) {
+ if ((len = foo.length) === bar.length) {
+ while (len-- && dequal(foo[len], bar[len])) ;
+ }
+ return len === -1;
}
- }, []);
- return /* @__PURE__ */ (0, import_jsx_runtime426.jsxs)(
- import_components201.__experimentalVStack,
- {
- as: import_components201.__experimentalToolsPanelItem,
- spacing: 2,
- hasValue: hasFlexValue,
- label: flexResetLabel,
- onDeselect: resetFlex,
- isShownByDefault,
- panelId,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime426.jsxs)(
- import_components201.__experimentalToggleGroupControl,
- {
- label: childLayoutOrientation(parentLayout),
- value: flexControlValue,
- help: helpText(flexControlValue, parentLayout),
- onChange: (value) => {
- const newFlexSize = isFlexSizeValue(value) ? flexSize : null;
- onChange({
- selfStretch: value,
- flexSize: newFlexSize
- });
- },
- isBlock: true,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- import_components201.__experimentalToggleGroupControlOption,
- {
- value: FLEX_CHILD_LAYOUT_VALUES.fit,
- label: (0, import_i18n191._x)(
- "Fit",
- "Intrinsic block width in flex layout"
- )
- },
- FLEX_CHILD_LAYOUT_VALUES.fit
- ),
- /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- import_components201.__experimentalToggleGroupControlOption,
- {
- value: FLEX_CHILD_LAYOUT_VALUES.grow,
- label: (0, import_i18n191._x)(
- "Grow",
- "Block with expanding width in flex layout"
- )
- },
- FLEX_CHILD_LAYOUT_VALUES.grow
- ),
- /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- import_components201.__experimentalToggleGroupControlOption,
- {
- value: FLEX_CHILD_LAYOUT_VALUES.max,
- label: maxSizeLabel(parentLayout)
- },
- FLEX_CHILD_LAYOUT_VALUES.max
- ),
- /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- import_components201.__experimentalToggleGroupControlOption,
- {
- value: FLEX_CHILD_LAYOUT_VALUES.fixed,
- label: (0, import_i18n191._x)(
- "Fixed",
- "Block with fixed width in flex layout"
- )
- },
- FLEX_CHILD_LAYOUT_VALUES.fixed
- )
- ]
- }
- ),
- hasFlexSizeValue && /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- import_components201.__experimentalUnitControl,
- {
- units: units2,
- onChange: (value) => {
- onChange({
- selfStretch: flexControlValue,
- flexSize: value
- });
- },
- value: flexSize,
- min: 0,
- label: flexResetLabel,
- hideLabelFromVision: true
- }
- )
- ]
+ if (ctor === Set) {
+ if (foo.size !== bar.size) {
+ return false;
+ }
+ for (len of foo) {
+ tmp = len;
+ if (tmp && typeof tmp === "object") {
+ tmp = find(bar, tmp);
+ if (!tmp) return false;
+ }
+ if (!bar.has(tmp)) return false;
+ }
+ return true;
}
- );
+ if (ctor === Map) {
+ if (foo.size !== bar.size) {
+ return false;
+ }
+ for (len of foo) {
+ tmp = len[0];
+ if (tmp && typeof tmp === "object") {
+ tmp = find(bar, tmp);
+ if (!tmp) return false;
+ }
+ if (!dequal(len[1], bar.get(tmp))) {
+ return false;
+ }
+ }
+ return true;
+ }
+ if (ctor === ArrayBuffer) {
+ foo = new Uint8Array(foo);
+ bar = new Uint8Array(bar);
+ } else if (ctor === DataView) {
+ if ((len = foo.byteLength) === bar.byteLength) {
+ while (len-- && foo.getInt8(len) === bar.getInt8(len)) ;
+ }
+ return len === -1;
+ }
+ if (ArrayBuffer.isView(foo)) {
+ if ((len = foo.byteLength) === bar.byteLength) {
+ while (len-- && foo[len] === bar[len]) ;
+ }
+ return len === -1;
+ }
+ if (!ctor || typeof foo === "object") {
+ len = 0;
+ for (ctor in foo) {
+ if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
+ if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;
+ }
+ return Object.keys(bar).length === len;
+ }
+ }
+ return foo !== foo && bar !== bar;
}
- function childLayoutOrientation(parentLayout) {
- const { orientation = "horizontal" } = parentLayout ?? {};
- return orientation === "horizontal" ? (0, import_i18n191.__)("Width") : (0, import_i18n191.__)("Height");
+
+ // packages/image-cropper/build-module/provider/use-image-cropper.mjs
+ var import_element218 = __toESM(require_element(), 1);
+
+ // packages/image-cropper/build-module/constants.mjs
+ var MIN_ZOOM2 = 1;
+ var MAX_ZOOM2 = 5;
+
+ // packages/image-cropper/build-module/utils.mjs
+ var normalizeRotation = (rotation) => {
+ if (rotation >= 0) {
+ return rotation % 360;
+ }
+ return (360 + rotation % 360) % 360;
+ };
+ var createImage = (url) => new Promise((resolve, reject) => {
+ const image = new Image();
+ image.addEventListener("load", () => resolve(image));
+ image.addEventListener("error", (error2) => reject(error2));
+ image.setAttribute("crossOrigin", "anonymous");
+ image.src = url;
+ });
+ function getRadianAngle2(degreeValue) {
+ return degreeValue * Math.PI / 180;
}
- function GridControls({
- childLayout,
- onChange,
- parentLayout,
- isShownByDefault,
- panelId,
- showGridSpanDefaults
- }) {
- const { columnStart, rowStart, columnSpan, rowSpan } = childLayout;
- const { columnCount, rowCount } = parentLayout ?? {};
- const rootClientId = (0, import_data162.useSelect)(
- (select3) => select3(store).getBlockRootClientId(panelId)
- );
- const { moveBlocksToPosition: moveBlocksToPosition2, __unstableMarkNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent2 } = (0, import_data162.useDispatch)(store);
- const getNumberOfBlocksBeforeCell = useGetNumberOfBlocksBeforeCell(
- rootClientId,
- columnCount || 3
- );
- const hasStartValue = () => !!columnStart || !!rowStart;
- const hasSpanValue = () => !!columnSpan || !!rowSpan;
- const resetGridStarts = () => {
- onChange({
- columnStart: void 0,
- rowStart: void 0
- });
- };
- const resetGridSpans = () => {
- onChange({
- columnSpan: void 0,
- rowSpan: void 0
- });
+ function rotateSize2(width, height, rotation) {
+ const rotRad = getRadianAngle2(rotation);
+ return {
+ width: Math.abs(Math.cos(rotRad) * width) + Math.abs(Math.sin(rotRad) * height),
+ height: Math.abs(Math.sin(rotRad) * width) + Math.abs(Math.cos(rotRad) * height)
};
- const maxColumnSpan = columnCount ? columnCount - (columnStart ?? 1) + 1 : void 0;
- const maxRowSpan = window.__experimentalEnableGridInteractivity && rowCount ? rowCount - (rowStart ?? 1) + 1 : void 0;
- const columnSpanValue = columnSpan ?? (showGridSpanDefaults ? 1 : void 0);
- const rowSpanValue = rowSpan ?? (showGridSpanDefaults ? 1 : void 0);
- return /* @__PURE__ */ (0, import_jsx_runtime426.jsxs)(import_jsx_runtime426.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime426.jsxs)(
- import_components201.Flex,
- {
- as: import_components201.__experimentalToolsPanelItem,
- hasValue: hasSpanValue,
- label: (0, import_i18n191.__)("Grid span"),
- onDeselect: resetGridSpans,
- isShownByDefault,
- panelId,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(import_components201.FlexItem, { style: { width: "50%" }, children: /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- import_components201.__experimentalInputControl,
- {
- label: (0, import_i18n191.__)("Column span"),
- type: "number",
- onChange: (value) => {
- const newColumnSpan = value === "" ? 1 : parseInt(value, 10);
- const constrainedValue = maxColumnSpan ? Math.min(newColumnSpan, maxColumnSpan) : newColumnSpan;
- onChange({
- columnStart,
- rowStart,
- rowSpan,
- columnSpan: constrainedValue
- });
- },
- value: columnSpanValue,
- min: 1,
- max: maxColumnSpan
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(import_components201.FlexItem, { style: { width: "50%" }, children: /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- import_components201.__experimentalInputControl,
- {
- label: (0, import_i18n191.__)("Row span"),
- type: "number",
- onChange: (value) => {
- const newRowSpan = value === "" ? 1 : parseInt(value, 10);
- const constrainedValue = maxRowSpan ? Math.min(newRowSpan, maxRowSpan) : newRowSpan;
- onChange({
- columnStart,
- rowStart,
- columnSpan,
- rowSpan: constrainedValue
- });
- },
- value: rowSpanValue,
- min: 1,
- max: maxRowSpan
- }
- ) })
- ]
- }
- ),
- window.__experimentalEnableGridInteractivity && // Use Flex with an explicit width on the FlexItem instead of HStack to
- // work around an issue in webkit where inputs with a max attribute are
- // sized incorrectly.
- /* @__PURE__ */ (0, import_jsx_runtime426.jsxs)(
- import_components201.Flex,
- {
- as: import_components201.__experimentalToolsPanelItem,
- hasValue: hasStartValue,
- label: (0, import_i18n191.__)("Grid placement"),
- onDeselect: resetGridStarts,
- isShownByDefault: false,
- panelId,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(import_components201.FlexItem, { style: { width: "50%" }, children: /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- import_components201.__experimentalInputControl,
- {
- label: (0, import_i18n191.__)("Column"),
- type: "number",
- onChange: (value) => {
- const newColumnStart = value === "" ? 1 : parseInt(value, 10);
- onChange({
- columnStart: newColumnStart,
- rowStart,
- columnSpan,
- rowSpan
- });
- __unstableMarkNextChangeAsNotPersistent2();
- moveBlocksToPosition2(
- [panelId],
- rootClientId,
- rootClientId,
- getNumberOfBlocksBeforeCell(
- newColumnStart,
- rowStart
- )
- );
- },
- value: columnStart ?? 1,
- min: 1,
- max: columnCount ? columnCount - (columnSpan ?? 1) + 1 : void 0
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(import_components201.FlexItem, { style: { width: "50%" }, children: /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
- import_components201.__experimentalInputControl,
- {
- label: (0, import_i18n191.__)("Row"),
- type: "number",
- onChange: (value) => {
- const newRowStart = value === "" ? 1 : parseInt(value, 10);
- onChange({
- columnStart,
- rowStart: newRowStart,
- columnSpan,
- rowSpan
- });
- __unstableMarkNextChangeAsNotPersistent2();
- moveBlocksToPosition2(
- [panelId],
- rootClientId,
- rootClientId,
- getNumberOfBlocksBeforeCell(
- columnStart,
- newRowStart
- )
- );
- },
- value: rowStart ?? 1,
- min: 1,
- max: rowCount ? rowCount - (rowSpan ?? 1) + 1 : void 0
- }
- ) })
- ]
- }
- )
- ] });
+ }
+ async function getCroppedImage(imageSrc, pixelCrop, rotation = 0, flip4 = { horizontal: false, vertical: false }) {
+ try {
+ const image = await createImage(imageSrc);
+ const canvas = document.createElement("canvas");
+ const ctx2 = canvas.getContext("2d");
+ if (!ctx2) {
+ return null;
+ }
+ const rotRad = getRadianAngle2(rotation);
+ const { width: boundingBoxWidth, height: boundingBoxHeight } = rotateSize2(image.width, image.height, rotation);
+ canvas.width = boundingBoxWidth;
+ canvas.height = boundingBoxHeight;
+ ctx2.translate(boundingBoxWidth / 2, boundingBoxHeight / 2);
+ ctx2.rotate(rotRad);
+ ctx2.scale(flip4.horizontal ? -1 : 1, flip4.vertical ? -1 : 1);
+ ctx2.translate(-image.width / 2, -image.height / 2);
+ ctx2.drawImage(image, 0, 0);
+ const croppedCanvas = document.createElement("canvas");
+ const croppedCtx = croppedCanvas.getContext("2d");
+ if (!croppedCtx) {
+ return null;
+ }
+ croppedCanvas.width = pixelCrop.width;
+ croppedCanvas.height = pixelCrop.height;
+ croppedCtx.drawImage(
+ canvas,
+ pixelCrop.x,
+ pixelCrop.y,
+ pixelCrop.width,
+ pixelCrop.height,
+ 0,
+ 0,
+ pixelCrop.width,
+ pixelCrop.height
+ );
+ return new Promise((resolve) => {
+ croppedCanvas.toBlob((file) => {
+ if (file) {
+ resolve(URL.createObjectURL(file));
+ }
+ }, "image/jpeg");
+ });
+ } catch {
+ return null;
+ }
}
- // packages/block-editor/build-module/components/dimensions-tool/aspect-ratio-tool.mjs
- var import_components202 = __toESM(require_components(), 1);
- var import_i18n192 = __toESM(require_i18n(), 1);
- var import_jsx_runtime427 = __toESM(require_jsx_runtime(), 1);
- function AspectRatioTool({
- panelId,
- value,
- onChange = () => {
+ // packages/image-cropper/build-module/provider/use-image-cropper.mjs
+ var DEFAULT_INITIAL_STATE = {
+ crop: {
+ x: 0,
+ y: 0,
+ width: 100,
+ height: 100
},
- options,
- defaultValue = "auto",
- hasValue: hasValue3,
- isShownByDefault = true,
- className,
- isInherited,
- hasLocalOverride
- }) {
- const displayValue = value ?? "auto";
- const [defaultRatios, themeRatios, showDefaultRatios] = useSettings(
- "dimensions.aspectRatios.default",
- "dimensions.aspectRatios.theme",
- "dimensions.defaultAspectRatios"
+ zoom: MIN_ZOOM2,
+ rotation: 0,
+ aspectRatio: 1,
+ flip: {
+ horizontal: false,
+ vertical: false
+ }
+ };
+ var DEFAULT_CROP_MEDIA_POSITION = {
+ x: 0,
+ y: 0
+ };
+ var DEFAULT_CROPPER_STATE = {
+ crop: DEFAULT_CROP_MEDIA_POSITION,
+ croppedArea: DEFAULT_INITIAL_STATE.crop,
+ croppedAreaPixels: null,
+ zoom: DEFAULT_INITIAL_STATE.zoom,
+ rotation: DEFAULT_INITIAL_STATE.rotation,
+ flip: DEFAULT_INITIAL_STATE.flip,
+ aspectRatio: DEFAULT_INITIAL_STATE.aspectRatio,
+ mediaSize: null
+ };
+ function useCropper() {
+ const [cropperState, setInternalCropperState] = (0, import_element218.useState)(
+ DEFAULT_CROPPER_STATE
);
- const themeOptions = themeRatios?.map(({ name, ratio }) => ({
- label: name,
- value: ratio
- }));
- const defaultOptions2 = defaultRatios?.map(({ name, ratio }) => ({
- label: name,
- value: ratio
- }));
- const aspectRatioOptions = [
- {
- label: (0, import_i18n192._x)(
- "Original",
- "Aspect ratio option for dimensions control"
- ),
- value: "auto"
+ const [resetState, setInternalResetState] = (0, import_element218.useState)(null);
+ const setCropperState = (0, import_element218.useCallback)(
+ (newState) => {
+ setInternalCropperState((prev) => {
+ const updates = typeof newState === "function" ? newState(prev) : newState;
+ const normalizedUpdates = { ...updates };
+ if ("rotation" in normalizedUpdates && normalizedUpdates.rotation !== void 0) {
+ normalizedUpdates.rotation = normalizeRotation(
+ normalizedUpdates.rotation
+ );
+ }
+ return { ...prev, ...normalizedUpdates };
+ });
},
- ...showDefaultRatios ? defaultOptions2 : [],
- ...themeOptions ? themeOptions : [],
- {
- label: (0, import_i18n192._x)("Custom", "Aspect ratio option for dimensions control"),
- value: "custom",
- disabled: true,
- hidden: true
+ []
+ );
+ const setResetState = (0, import_element218.useCallback)(
+ (newResetState = null) => {
+ if (!newResetState) {
+ setInternalResetState(null);
+ setCropperState(DEFAULT_CROPPER_STATE);
+ return;
+ }
+ if (typeof newResetState === "object") {
+ const initialState = {
+ ...DEFAULT_INITIAL_STATE,
+ ...newResetState
+ };
+ setInternalResetState(initialState);
+ setCropperState(initialState);
+ }
+ },
+ [setCropperState, setInternalResetState]
+ );
+ const reset = (0, import_element218.useCallback)(() => {
+ if (resetState) {
+ const resetUpdates = {
+ // Reset media position to center
+ crop: { x: 0, y: 0 },
+ // Reset cropped area pixels (will be recalculated)
+ croppedAreaPixels: null
+ };
+ if (resetState.crop) {
+ resetUpdates.croppedArea = resetState.crop;
+ }
+ if (resetState.zoom !== void 0) {
+ resetUpdates.zoom = resetState.zoom;
+ }
+ if (resetState.rotation !== void 0) {
+ resetUpdates.rotation = resetState.rotation;
+ }
+ if (resetState.aspectRatio !== void 0) {
+ resetUpdates.aspectRatio = resetState.aspectRatio;
+ }
+ if (resetState.flip !== void 0) {
+ resetUpdates.flip = resetState.flip;
+ }
+ setCropperState(resetUpdates);
+ } else {
+ setCropperState({ ...DEFAULT_CROPPER_STATE });
}
- ];
- return /* @__PURE__ */ (0, import_jsx_runtime427.jsx)(
- InheritanceToolsPanelItem,
- {
- className,
- isInherited,
- hasLocalOverride,
- hasValue: hasValue3 ? hasValue3 : () => displayValue !== defaultValue,
- label: (0, import_i18n192.__)("Aspect ratio"),
- onDeselect: () => onChange(void 0),
- isShownByDefault,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime427.jsx)(
- import_components202.SelectControl,
- {
- label: (0, import_i18n192.__)("Aspect ratio"),
- value: displayValue,
- options: options ?? aspectRatioOptions,
- onChange
- }
- )
+ }, [resetState, setCropperState]);
+ const isDirty = (0, import_element218.useMemo)(() => {
+ if (resetState) {
+ const currentState2 = {
+ crop: cropperState.croppedAreaPixels || cropperState.croppedArea,
+ zoom: cropperState.zoom,
+ rotation: normalizeRotation(cropperState.rotation),
+ aspectRatio: cropperState.aspectRatio,
+ flip: cropperState.flip
+ };
+ return false === dequal(currentState2, resetState);
}
+ const currentState = {
+ crop: cropperState.croppedArea,
+ zoom: cropperState.zoom,
+ rotation: normalizeRotation(cropperState.rotation),
+ aspectRatio: cropperState.aspectRatio,
+ flip: cropperState.flip
+ };
+ return false === dequal(currentState, DEFAULT_INITIAL_STATE);
+ }, [cropperState, resetState]);
+ const getCroppedImage2 = (0, import_element218.useCallback)(
+ async (src) => {
+ if (!cropperState.croppedAreaPixels) {
+ return null;
+ }
+ return getCroppedImage(
+ src,
+ cropperState.croppedAreaPixels,
+ cropperState.rotation,
+ cropperState.flip
+ );
+ },
+ [
+ cropperState.croppedAreaPixels,
+ cropperState.rotation,
+ cropperState.flip
+ ]
+ );
+ return (0, import_element218.useMemo)(
+ () => ({
+ cropperState,
+ setCropperState,
+ resetState,
+ setResetState,
+ isDirty,
+ reset,
+ getCroppedImage: getCroppedImage2
+ }),
+ [
+ cropperState,
+ setCropperState,
+ resetState,
+ setResetState,
+ isDirty,
+ reset,
+ getCroppedImage2
+ ]
);
}
- // packages/block-editor/build-module/components/global-styles/dimensions-panel.mjs
- var import_jsx_runtime428 = __toESM(require_jsx_runtime(), 1);
- var AXIAL_SIDES = ["horizontal", "vertical"];
- function hasSpacingToggle(sides2, isPresetsControl) {
- if (sides2?.length === 1) {
- return false;
- }
- if (isPresetsControl) {
- const hasOnlyAxialSides = sides2?.includes("horizontal") && sides2?.includes("vertical") && sides2?.length === 2;
- return !hasOnlyAxialSides;
- }
- return true;
- }
- function useHasDimensionsPanel(settings2, styleState = DEFAULT_BLOCK_STYLE_STATE2) {
- return hasContentSize(settings2) || hasWideSize(settings2) || hasPadding(settings2) || hasMargin(settings2) || hasGap(settings2) || hasHeight(settings2) || hasMinHeight(settings2) || hasMinWidth(settings2) || hasWidth(settings2) || hasAspectRatio(settings2, styleState) || hasChildLayout(settings2, styleState);
- }
- function hasContentSize(settings2) {
- return settings2?.layout?.contentSize;
- }
- function hasWideSize(settings2) {
- return settings2?.layout?.wideSize;
- }
- function hasPadding(settings2) {
- return settings2?.spacing?.padding;
- }
- function hasMargin(settings2) {
- return settings2?.spacing?.margin;
- }
- function hasGap(settings2) {
- return settings2?.spacing?.blockGap;
- }
- function hasHeight(settings2) {
- return settings2?.dimensions?.height;
- }
- function hasMinHeight(settings2) {
- return settings2?.dimensions?.minHeight;
- }
- function hasMinWidth(settings2) {
- return settings2?.dimensions?.minWidth;
- }
- function hasWidth(settings2) {
- return settings2?.dimensions?.width;
- }
- function hasAspectRatio(settings2, styleState = DEFAULT_BLOCK_STYLE_STATE2) {
- return !hasPseudoBlockStyleState(styleState) && settings2?.dimensions?.aspectRatio;
- }
- function hasChildLayout(settings2, styleState = DEFAULT_BLOCK_STYLE_STATE2) {
- if (hasPseudoBlockStyleState(styleState)) {
- return false;
- }
- const {
- type: parentLayoutType = "default",
- default: { type: defaultParentLayoutType = "default" } = {},
- allowSizingOnChildren = false
- } = settings2?.parentLayout ?? {};
- const support = (defaultParentLayoutType === "flex" || parentLayoutType === "flex" || defaultParentLayoutType === "grid" || parentLayoutType === "grid") && allowSizingOnChildren;
- return !!settings2?.layout && support;
- }
- function hasSpacingPresets(settings2) {
- const { defaultSpacingSizes, spacingSizes } = settings2?.spacing || {};
- return defaultSpacingSizes !== false && spacingSizes?.default?.length > 0 || spacingSizes?.theme?.length > 0 || spacingSizes?.custom?.length > 0;
- }
- function filterValuesBySides(values, sides2) {
- if (!sides2 || !values) {
- return values;
- }
- const filteredValues = {};
- sides2.forEach((side) => {
- if (side === "vertical") {
- filteredValues.top = values.top;
- filteredValues.bottom = values.bottom;
- }
- if (side === "horizontal") {
- filteredValues.left = values.left;
- filteredValues.right = values.right;
- }
- filteredValues[side] = values?.[side];
- });
- return filteredValues;
- }
- var EMPTY_VALUES2 = [void 0, null, ""];
- function hasValue2(value) {
- return !EMPTY_VALUES2.includes(value);
- }
- function getNumericPlaceholder2(rawValue) {
- if (!hasValue2(rawValue)) {
- return void 0;
- }
- const [quantity] = (0, import_components203.__experimentalParseQuantityAndUnitFromRawValue)(rawValue);
- return quantity;
- }
- function splitStyleValue(value) {
- if (hasValue2(value) && typeof value === "string") {
+ // packages/image-cropper/build-module/provider/index.mjs
+ var import_jsx_runtime370 = __toESM(require_jsx_runtime(), 1);
+ var ImageCropperContext = (0, import_element219.createContext)({
+ cropperState: {
+ crop: { x: 0, y: 0 },
+ croppedArea: { x: 0, y: 0, width: 100, height: 100 },
+ croppedAreaPixels: null,
+ zoom: MIN_ZOOM2,
+ rotation: 0,
+ aspectRatio: 1,
+ flip: { horizontal: false, vertical: false },
+ mediaSize: null
+ },
+ setCropperState: () => {
+ },
+ resetState: null,
+ setResetState: () => {
+ },
+ isDirty: false,
+ reset: () => {
+ },
+ getCroppedImage: () => Promise.resolve(null)
+ });
+ function ImageCropperProvider({
+ children
+ }) {
+ const cropperApi = useCropper();
+ const contextValue = (0, import_element219.useMemo)(() => {
return {
- top: value,
- right: value,
- bottom: value,
- left: value
+ ...cropperApi
};
- }
- return value;
- }
- function getCommonSidesValue(sidesValue) {
- if (!hasValue2(sidesValue)) {
- return void 0;
- }
- if (typeof sidesValue === "string") {
- return sidesValue !== "" ? sidesValue : void 0;
- }
- if (typeof sidesValue !== "object") {
- return void 0;
- }
- const sideKeys = ["top", "right", "bottom", "left"];
- const values = sideKeys.map((k2) => sidesValue[k2]);
- const allDefined = values.every(hasValue2);
- if (!allDefined) {
- return void 0;
- }
- const first = values[0];
- return values.every((v2) => v2 === first) ? first : void 0;
- }
- function hasAnySideValue(sidesValue) {
- if (!hasValue2(sidesValue)) {
- return false;
- }
- if (typeof sidesValue === "string") {
- return sidesValue !== "";
- }
- if (typeof sidesValue !== "object") {
- return false;
- }
- return ["top", "right", "bottom", "left"].some(
- (side) => hasValue2(sidesValue[side])
- );
+ }, [cropperApi]);
+ return /* @__PURE__ */ (0, import_jsx_runtime370.jsx)(ImageCropperContext.Provider, { value: contextValue, children });
}
- function splitGapValue(value, isAxialGap) {
- if (!hasValue2(value)) {
- return value;
+ var useImageCropper = () => {
+ const context = (0, import_element219.useContext)(ImageCropperContext);
+ if (!context) {
+ throw new Error("Missing ImageCropperContext");
}
- if (typeof value === "string") {
- return isAxialGap ? { top: value, right: value, bottom: value, left: value } : { top: value };
- }
- return {
- ...value,
- right: value?.left,
- bottom: value?.top
- };
- }
- function DimensionsToolsPanel({
- resetAllFilter,
- onChange,
- value,
- panelId,
- children
+ return context;
+ };
+
+ // packages/image-cropper/build-module/components/image-cropper/index.mjs
+ var import_jsx_runtime371 = __toESM(require_jsx_runtime(), 1);
+ function ImageCropper({
+ src,
+ onLoad,
+ minZoom = MIN_ZOOM2,
+ maxZoom = MAX_ZOOM2,
+ ...props
}) {
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- const resetAll = () => {
- const updatedValue = resetAllFilter(value);
- onChange(updatedValue);
- };
- return /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- import_components203.__experimentalToolsPanel,
+ const { cropperState, setCropperState } = useImageCropper();
+ const { crop, zoom, rotation, aspectRatio, flip: flip4 } = cropperState;
+ const setCrop = (newCrop) => setCropperState({ crop: newCrop });
+ const setZoom = (newZoom) => setCropperState({ zoom: newZoom });
+ const setRotation = (newRotation) => setCropperState({ rotation: newRotation });
+ const setMediaSize = (newMediaSize) => setCropperState({ mediaSize: newMediaSize });
+ const onCropComplete = (0, import_element220.useCallback)(
+ (areaPercentage, areaPixels) => {
+ setCropperState({
+ croppedArea: areaPercentage,
+ croppedAreaPixels: areaPixels
+ });
+ },
+ [setCropperState]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime371.jsx)(
+ Cropper,
{
- label: (0, import_i18n193.__)("Dimensions"),
- resetAll,
- panelId,
- dropdownMenuProps,
- children
+ classes: {
+ containerClassName: "image-cropper__container",
+ cropAreaClassName: "image-cropper__crop-area",
+ mediaClassName: "image-cropper__image"
+ },
+ minZoom,
+ maxZoom,
+ rotation,
+ image: src,
+ setMediaSize,
+ crop,
+ zoom,
+ aspect: aspectRatio,
+ onCropChange: setCrop,
+ onZoomChange: setZoom,
+ onCropComplete,
+ onMediaLoaded: (loadedMediaSize) => {
+ onLoad?.(loadedMediaSize);
+ },
+ onRotationChange: setRotation,
+ transform: [
+ `translate(${crop.x}px, ${crop.y}px)`,
+ `rotateZ(${rotation}deg)`,
+ `rotateY(${flip4.horizontal ? 180 : 0}deg)`,
+ `rotateX(${flip4.vertical ? 180 : 0}deg)`,
+ `scale(${zoom})`
+ ].join(" "),
+ ...props
}
);
}
- var DEFAULT_CONTROLS5 = {
- contentSize: true,
- wideSize: true,
- padding: true,
- margin: true,
- blockGap: true,
- height: true,
- minHeight: true,
- minWidth: true,
- width: true,
- aspectRatio: true,
- childLayout: true
+
+ // packages/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.mjs
+ var import_components151 = __toESM(require_components(), 1);
+ var import_i18n147 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/image-editor/constants.mjs
+ var MIN_ZOOM3 = 100;
+ var MAX_ZOOM3 = 300;
+ var POPOVER_PROPS7 = {
+ placement: "bottom-start"
};
- function DimensionsPanel({
- as: Wrapper = DimensionsToolsPanel,
- value,
- onChange,
- inheritedValue = value,
- settings: settings2,
- panelId,
- defaultControls = DEFAULT_CONTROLS5,
- onVisualize = () => {
- },
- // Special case because the layout controls are not part of the dimensions panel
- // in global styles but not in block inspector.
- includeLayoutControls = false,
- styleState = DEFAULT_BLOCK_STYLE_STATE2,
- showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
+
+ // packages/block-editor/build-module/components/image-editor/context.mjs
+ var import_element223 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/image-editor/use-save-image.mjs
+ var import_data146 = __toESM(require_data(), 1);
+ var import_element221 = __toESM(require_element(), 1);
+ var import_i18n146 = __toESM(require_i18n(), 1);
+ var import_notices9 = __toESM(require_notices(), 1);
+ var import_dom66 = __toESM(require_dom(), 1);
+ var messages = {
+ crop: (0, import_i18n146.__)("Image cropped."),
+ rotate: (0, import_i18n146.__)("Image rotated."),
+ cropAndRotate: (0, import_i18n146.__)("Image cropped and rotated.")
+ };
+ function useSaveImage({
+ crop,
+ rotation,
+ url,
+ id,
+ onSaveImage,
+ onFinishEditing
}) {
- const { dimensions, spacing } = settings2;
- const decodeValue = (rawValue) => {
- if (rawValue && typeof rawValue === "object") {
- return Object.keys(rawValue).reduce((acc, key) => {
- acc[key] = getValueFromVariable(
- { settings: { dimensions, spacing } },
- "",
- rawValue[key]
- );
- return acc;
- }, {});
- }
- return getValueFromVariable(
- { settings: { dimensions, spacing } },
- "",
- rawValue
- );
- };
- const inheritanceProps = (isInherited, hasLocalOverride, className) => getInheritanceProps(
- showInheritanceLabelIndicators && isInherited,
- showInheritanceLabelIndicators && hasLocalOverride,
- className
- );
- const showSpacingPresetsControl = hasSpacingPresets(settings2);
- const units2 = (0, import_components203.__experimentalUseCustomUnits)({
- availableUnits: settings2?.spacing?.units || [
- "%",
- "px",
- "em",
- "rem",
- "vw"
- ]
- });
- const minimumMargin = -Infinity;
- const [minMarginValue, setMinMarginValue] = (0, import_element253.useState)(minimumMargin);
- const resetAllFilter = (0, import_element253.useCallback)((previousValue) => {
+ const { createErrorNotice, createSuccessNotice } = (0, import_data146.useDispatch)(import_notices9.store);
+ const [isInProgress, setIsInProgress] = (0, import_element221.useState)(false);
+ const { editMediaEntity } = (0, import_data146.useSelect)((select3) => {
+ const settings2 = select3(store).getSettings();
return {
- ...previousValue,
- layout: cleanEmptyObject({
- ...previousValue?.layout,
- contentSize: void 0,
- wideSize: void 0,
- selfStretch: void 0,
- flexSize: void 0,
- columnStart: void 0,
- rowStart: void 0,
- columnSpan: void 0,
- rowSpan: void 0
- }),
- spacing: {
- ...previousValue?.spacing,
- padding: void 0,
- margin: void 0,
- blockGap: void 0
- },
- dimensions: {
- ...previousValue?.dimensions,
- height: void 0,
- minHeight: void 0,
- minWidth: void 0,
- aspectRatio: void 0,
- width: void 0
- }
+ editMediaEntity: settings2?.[mediaEditKey]
};
}, []);
- const showContentSizeControl = hasContentSize(settings2) && includeLayoutControls;
- const localContentSizeValue = decodeValue(value?.layout?.contentSize);
- const inheritedContentSizeValue = decodeValue(
- inheritedValue?.layout?.contentSize
- );
- const isContentSizePlaceholder = !hasValue2(value?.layout?.contentSize) && hasValue2(inheritedContentSizeValue);
- const setContentSizeValue = (newValue) => {
- onChange(
- setImmutably2(
- value,
- ["layout", "contentSize"],
- hasValue2(newValue) ? newValue : void 0
- )
- );
- };
- const hasUserSetContentSizeValue = () => hasValue2(value?.layout?.contentSize);
- const resetContentSizeValue = () => setContentSizeValue(void 0);
- const showWideSizeControl = hasWideSize(settings2) && includeLayoutControls;
- const localWideSizeValue = decodeValue(value?.layout?.wideSize);
- const inheritedWideSizeValue = decodeValue(
- inheritedValue?.layout?.wideSize
- );
- const isWideSizePlaceholder = !hasValue2(value?.layout?.wideSize) && hasValue2(inheritedWideSizeValue);
- const setWideSizeValue = (newValue) => {
- onChange(
- setImmutably2(
- value,
- ["layout", "wideSize"],
- hasValue2(newValue) ? newValue : void 0
- )
- );
- };
- const hasUserSetWideSizeValue = () => hasValue2(value?.layout?.wideSize);
- const resetWideSizeValue = () => setWideSizeValue(void 0);
- const showPaddingControl = hasPadding(settings2);
- const inheritedPaddingValues = splitStyleValue(
- decodeValue(inheritedValue?.spacing?.padding)
- );
- const localPaddingValues = splitStyleValue(
- decodeValue(value?.spacing?.padding)
- );
- const paddingValues = hasValue2(value?.spacing?.padding) ? localPaddingValues : inheritedPaddingValues;
- const inheritedPaddingPlaceholder = getCommonSidesValue(
- inheritedPaddingValues
- );
- const isPaddingPlaceholder = !hasValue2(value?.spacing?.padding) && inheritedPaddingPlaceholder !== void 0;
- const hasInheritedPadding = hasAnySideValue(inheritedPaddingValues);
- const isPaddingInherited = !hasValue2(value?.spacing?.padding) && hasInheritedPadding;
- const paddingSides = Array.isArray(settings2?.spacing?.padding) ? settings2?.spacing?.padding : settings2?.spacing?.padding?.sides;
- const isAxialPadding = paddingSides && paddingSides.some((side) => AXIAL_SIDES.includes(side));
- const setPaddingValues = (newPaddingValues) => {
- const padding = filterValuesBySides(newPaddingValues, paddingSides);
- onChange(setImmutably2(value, ["spacing", "padding"], padding));
- };
- const hasPaddingValue = () => hasValue2(value?.spacing?.padding) && Object.keys(value?.spacing?.padding).length;
- const resetPaddingValue = () => setPaddingValues(void 0);
- const onMouseOverPadding = () => onVisualize("padding");
- const showMarginControl = hasMargin(settings2);
- const inheritedMarginValues = splitStyleValue(
- decodeValue(inheritedValue?.spacing?.margin)
+ const cancel = (0, import_element221.useCallback)(() => {
+ setIsInProgress(false);
+ onFinishEditing();
+ }, [onFinishEditing]);
+ const apply = (0, import_element221.useCallback)(async () => {
+ if (!editMediaEntity) {
+ onFinishEditing();
+ createErrorNotice(
+ (0, import_i18n146.__)("Sorry, you are not allowed to edit images on this site."),
+ {
+ id: "image-editing-error",
+ type: "snackbar"
+ }
+ );
+ return;
+ }
+ setIsInProgress(true);
+ const modifiers = [];
+ if (rotation > 0) {
+ modifiers.push({
+ type: "rotate",
+ args: {
+ angle: rotation
+ }
+ });
+ }
+ if (crop.width < 99.9 || crop.height < 99.9) {
+ modifiers.push({
+ type: "crop",
+ args: {
+ left: crop.x,
+ top: crop.y,
+ width: crop.width,
+ height: crop.height
+ }
+ });
+ }
+ if (modifiers.length === 0) {
+ setIsInProgress(false);
+ onFinishEditing();
+ return;
+ }
+ const modifierType = modifiers.length === 1 ? modifiers[0].type : "cropAndRotate";
+ try {
+ const savedImage = await editMediaEntity(
+ id,
+ {
+ src: url,
+ modifiers
+ },
+ { throwOnError: true }
+ );
+ if (savedImage) {
+ onSaveImage({
+ id: savedImage.id,
+ url: savedImage.source_url
+ });
+ createSuccessNotice(messages[modifierType], {
+ type: "snackbar",
+ actions: [
+ {
+ label: (0, import_i18n146.__)("Undo"),
+ onClick: () => {
+ onSaveImage({
+ id,
+ url
+ });
+ }
+ }
+ ]
+ });
+ }
+ } catch (error2) {
+ createErrorNotice(
+ (0, import_i18n146.sprintf)(
+ /* translators: %s: Error message. */
+ (0, import_i18n146.__)("Could not edit image. %s"),
+ (0, import_dom66.__unstableStripHTML)(error2.message)
+ ),
+ {
+ id: "image-editing-error",
+ type: "snackbar"
+ }
+ );
+ } finally {
+ setIsInProgress(false);
+ onFinishEditing();
+ }
+ }, [
+ crop,
+ rotation,
+ id,
+ url,
+ onSaveImage,
+ createErrorNotice,
+ createSuccessNotice,
+ onFinishEditing,
+ editMediaEntity
+ ]);
+ return (0, import_element221.useMemo)(
+ () => ({
+ isInProgress,
+ apply,
+ cancel
+ }),
+ [isInProgress, apply, cancel]
);
- const localMarginValues = splitStyleValue(
- decodeValue(value?.spacing?.margin)
+ }
+
+ // packages/block-editor/build-module/components/image-editor/use-transform-image.mjs
+ var import_element222 = __toESM(require_element(), 1);
+ var import_hooks6 = __toESM(require_hooks(), 1);
+ function useTransformImage({
+ url,
+ naturalWidth,
+ naturalHeight
+ }) {
+ const [editedUrl, setEditedUrl] = (0, import_element222.useState)();
+ const { cropperState, setCropperState } = useImageCropper();
+ const { zoom, aspectRatio, crop, croppedArea } = cropperState;
+ const setZoom = (0, import_element222.useCallback)(
+ (newZoom) => {
+ setCropperState({ zoom: newZoom });
+ },
+ [setCropperState]
);
- const marginValues = hasValue2(value?.spacing?.margin) ? localMarginValues : inheritedMarginValues;
- const inheritedMarginPlaceholder = getCommonSidesValue(
- inheritedMarginValues
+ const setAspectRatio = (0, import_element222.useCallback)(
+ (newAspect) => {
+ setCropperState({ aspectRatio: newAspect });
+ },
+ [setCropperState]
);
- const isMarginPlaceholder = !hasValue2(value?.spacing?.margin) && inheritedMarginPlaceholder !== void 0;
- const hasInheritedMargin = hasAnySideValue(inheritedMarginValues);
- const isMarginInherited = !hasValue2(value?.spacing?.margin) && hasInheritedMargin;
- const marginSides = Array.isArray(settings2?.spacing?.margin) ? settings2?.spacing?.margin : settings2?.spacing?.margin?.sides;
- const isAxialMargin = marginSides && marginSides.some((side) => AXIAL_SIDES.includes(side));
- const setMarginValues = (newMarginValues) => {
- const margin = filterValuesBySides(newMarginValues, marginSides);
- onChange(setImmutably2(value, ["spacing", "margin"], margin));
- };
- const hasMarginValue = () => hasValue2(value?.spacing?.margin) && Object.keys(value?.spacing?.margin).length;
- const resetMarginValue = () => setMarginValues(void 0);
- const onMouseOverMargin = () => onVisualize("margin");
- const showGapControl = hasGap(settings2);
- const gapSides = Array.isArray(settings2?.spacing?.blockGap) ? settings2?.spacing?.blockGap : settings2?.spacing?.blockGap?.sides;
- const isAxialGap = gapSides && gapSides.some((side) => AXIAL_SIDES.includes(side));
- const localGapRaw = decodeValue(value?.spacing?.blockGap);
- const inheritedGapRaw = decodeValue(inheritedValue?.spacing?.blockGap);
- const gapRawForDisplay = hasValue2(value?.spacing?.blockGap) ? localGapRaw : inheritedGapRaw;
- const gapValues = splitGapValue(gapRawForDisplay, isAxialGap);
- const isGapPlaceholder = !hasValue2(value?.spacing?.blockGap) && typeof inheritedGapRaw === "string" && inheritedGapRaw !== "";
- const setGapValue = (newGapValue) => {
- onChange(
- setImmutably2(value, ["spacing", "blockGap"], newGapValue)
- );
- };
- const setGapValues = (nextBoxGapValue) => {
- if (!hasValue2(nextBoxGapValue)) {
- setGapValue(null);
+ const defaultAspect = naturalWidth / naturalHeight;
+ const rotatedAspect = naturalHeight / naturalWidth;
+ (0, import_element222.useEffect)(() => {
+ setAspectRatio(defaultAspect);
+ }, []);
+ const [internalRotation, setInternalRotation] = (0, import_element222.useState)(0);
+ const rotateClockwise = (0, import_element222.useCallback)(() => {
+ const angle = (internalRotation + 90) % 360;
+ let naturalAspectRatio = defaultAspect;
+ const isDefaultAspect = defaultAspect === aspectRatio || rotatedAspect === aspectRatio;
+ const shouldResetAspect = zoom !== 1 || !isDefaultAspect;
+ if (internalRotation % 180 === 90) {
+ naturalAspectRatio = 1 / defaultAspect;
}
- if (!isAxialGap && nextBoxGapValue?.hasOwnProperty("top")) {
- setGapValue(nextBoxGapValue.top);
- } else {
- setGapValue({
- top: nextBoxGapValue?.top,
- left: nextBoxGapValue?.left
+ if (angle === 0) {
+ setEditedUrl();
+ setInternalRotation(angle);
+ const newAspectRatio = shouldResetAspect ? aspectRatio : defaultAspect;
+ setCropperState({
+ aspectRatio: newAspectRatio,
+ crop: {
+ x: -(crop.y * naturalAspectRatio),
+ y: crop.x * naturalAspectRatio
+ }
});
+ return;
}
- };
- const resetGapValue = () => setGapValue(void 0);
- const hasGapValue = () => hasValue2(value?.spacing?.blockGap);
- const showMinHeightControl = hasMinHeight(settings2);
- const localMinHeightValue = decodeValue(value?.dimensions?.minHeight);
- const inheritedMinHeightValue = decodeValue(
- inheritedValue?.dimensions?.minHeight
- );
- const isMinHeightPlaceholder = !hasValue2(value?.dimensions?.minHeight) && hasValue2(inheritedMinHeightValue);
- const setMinHeightValue = (newValue) => {
- const tempValue = setImmutably2(
- value,
- ["dimensions", "minHeight"],
- newValue
- );
- onChange(
- setImmutably2(
- tempValue,
- ["dimensions", "aspectRatio"],
- void 0
- )
- );
- };
- const resetMinHeightValue = () => {
- setMinHeightValue(void 0);
- };
- const hasMinHeightValue = () => hasValue2(value?.dimensions?.minHeight);
- const showHeightControl = hasHeight(settings2);
- const localHeightValue = decodeValue(value?.dimensions?.height);
- const inheritedHeightValue = decodeValue(
- inheritedValue?.dimensions?.height
- );
- const isHeightPlaceholder = !hasValue2(value?.dimensions?.height) && hasValue2(inheritedHeightValue);
- const setHeightValue = (newValue) => {
- const tempValue = setImmutably2(
- value,
- ["dimensions", "height"],
- newValue
+ function editImage(event) {
+ const canvas = document.createElement("canvas");
+ let translateX = 0;
+ let translateY = 0;
+ if (angle % 180) {
+ canvas.width = event.target.height;
+ canvas.height = event.target.width;
+ } else {
+ canvas.width = event.target.width;
+ canvas.height = event.target.height;
+ }
+ if (angle === 90 || angle === 180) {
+ translateX = canvas.width;
+ }
+ if (angle === 270 || angle === 180) {
+ translateY = canvas.height;
+ }
+ const context = canvas.getContext("2d");
+ context.translate(translateX, translateY);
+ context.rotate(angle * Math.PI / 180);
+ context.drawImage(event.target, 0, 0);
+ canvas.toBlob((blob) => {
+ setEditedUrl(URL.createObjectURL(blob));
+ setInternalRotation(angle);
+ const newAspectRatio = shouldResetAspect ? aspectRatio : canvas.width / canvas.height;
+ setCropperState({
+ aspectRatio: newAspectRatio,
+ crop: {
+ x: -(crop.y * naturalAspectRatio),
+ y: crop.x * naturalAspectRatio
+ }
+ });
+ });
+ }
+ const el = new window.Image();
+ el.src = url;
+ el.onload = editImage;
+ const imgCrossOrigin = (0, import_hooks6.applyFilters)(
+ "media.crossOrigin",
+ void 0,
+ url
);
- onChange(
- setImmutably2(
- tempValue,
- ["dimensions", "aspectRatio"],
- void 0
- )
- );
- };
- const resetHeightValue = () => {
- setHeightValue(void 0);
- };
- const hasHeightValue = () => hasValue2(value?.dimensions?.height);
- const showMinWidthControl = hasMinWidth(settings2);
- const localMinWidthValue = decodeValue(value?.dimensions?.minWidth);
- const inheritedMinWidthValue = decodeValue(
- inheritedValue?.dimensions?.minWidth
+ if (typeof imgCrossOrigin === "string") {
+ el.crossOrigin = imgCrossOrigin;
+ }
+ }, [
+ internalRotation,
+ defaultAspect,
+ url,
+ setCropperState,
+ crop,
+ zoom,
+ aspectRatio,
+ rotatedAspect,
+ setInternalRotation
+ ]);
+ return (0, import_element222.useMemo)(
+ () => ({
+ editedUrl,
+ setEditedUrl,
+ crop: croppedArea,
+ zoom,
+ setZoom,
+ rotation: internalRotation,
+ rotateClockwise,
+ aspect: aspectRatio,
+ setAspect: setAspectRatio,
+ defaultAspect
+ }),
+ [
+ editedUrl,
+ croppedArea,
+ zoom,
+ setZoom,
+ internalRotation,
+ rotateClockwise,
+ aspectRatio,
+ setAspectRatio,
+ defaultAspect
+ ]
);
- const isMinWidthPlaceholder = !hasValue2(value?.dimensions?.minWidth) && hasValue2(inheritedMinWidthValue);
- const setMinWidthValue = (newValue) => {
- onChange(
- setImmutably2(value, ["dimensions", "minWidth"], newValue)
- );
- };
- const resetMinWidthValue = () => {
- setMinWidthValue(void 0);
- };
- const hasMinWidthValue = () => hasValue2(value?.dimensions?.minWidth);
- const showWidthControl = hasWidth(settings2);
- const localWidthValue = decodeValue(value?.dimensions?.width);
- const inheritedWidthValue = decodeValue(
- inheritedValue?.dimensions?.width
+ }
+
+ // packages/block-editor/build-module/components/image-editor/context.mjs
+ var import_jsx_runtime372 = __toESM(require_jsx_runtime(), 1);
+ var ImageEditingContext = (0, import_element223.createContext)({});
+ ImageEditingContext.displayName = "ImageEditingContext";
+ var useImageEditingContext = () => (0, import_element223.useContext)(ImageEditingContext);
+ function ImageEditingProvider({
+ id,
+ url,
+ naturalWidth,
+ naturalHeight,
+ onFinishEditing,
+ onSaveImage,
+ children
+ }) {
+ const transformImage = useTransformImage({
+ url,
+ naturalWidth,
+ naturalHeight
+ });
+ const saveImage = useSaveImage({
+ id,
+ url,
+ onSaveImage,
+ onFinishEditing,
+ ...transformImage
+ });
+ const providerValue = (0, import_element223.useMemo)(
+ () => ({
+ ...transformImage,
+ ...saveImage
+ }),
+ [transformImage, saveImage]
);
- const isWidthPlaceholder = !hasValue2(value?.dimensions?.width) && hasValue2(inheritedWidthValue);
- const setWidthValue = (newValue) => {
- onChange(setImmutably2(value, ["dimensions", "width"], newValue));
- };
- const resetWidthValue = () => {
- setWidthValue(void 0);
+ return /* @__PURE__ */ (0, import_jsx_runtime372.jsx)(ImageEditingContext.Provider, { value: providerValue, children });
+ }
+
+ // packages/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.mjs
+ var import_jsx_runtime373 = __toESM(require_jsx_runtime(), 1);
+ function AspectRatioGroup({
+ aspectRatios,
+ isDisabled,
+ label,
+ onClick,
+ value
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime373.jsx)(import_components151.MenuGroup, { label, children: aspectRatios.map(({ name, slug, ratio }) => /* @__PURE__ */ (0, import_jsx_runtime373.jsx)(
+ import_components151.MenuItem,
+ {
+ disabled: isDisabled,
+ onClick: () => {
+ onClick(ratio);
+ },
+ role: "menuitemradio",
+ isSelected: ratio === value,
+ icon: ratio === value ? check_default : void 0,
+ children: name
+ },
+ slug
+ )) });
+ }
+ function ratioToNumber(str) {
+ const [a2, b2, ...rest] = str.split("/").map(Number);
+ if (a2 <= 0 || b2 <= 0 || Number.isNaN(a2) || Number.isNaN(b2) || rest.length) {
+ return NaN;
+ }
+ return b2 ? a2 / b2 : a2;
+ }
+ function presetRatioAsNumber({ ratio, ...rest }) {
+ return {
+ ratio: ratioToNumber(ratio),
+ ...rest
};
- const hasWidthValue = () => hasValue2(value?.dimensions?.width);
- const showAspectRatioControl = hasAspectRatio(settings2, styleState);
- const localAspectRatioValue = decodeValue(value?.dimensions?.aspectRatio);
- const inheritedAspectRatioValue = decodeValue(
- inheritedValue?.dimensions?.aspectRatio
+ }
+ function AspectRatioDropdown({ toggleProps }) {
+ const { isInProgress, aspect, setAspect, defaultAspect } = useImageEditingContext();
+ const [defaultRatios, themeRatios, showDefaultRatios] = useSettings(
+ "dimensions.aspectRatios.default",
+ "dimensions.aspectRatios.theme",
+ "dimensions.defaultAspectRatios"
);
- const aspectRatioValue = localAspectRatioValue ?? inheritedAspectRatioValue;
- const isAspectRatioPlaceholder = !hasValue2(value?.dimensions?.aspectRatio) && hasValue2(inheritedAspectRatioValue);
- const setAspectRatioValue = (newValue) => {
- const tempValue = setImmutably2(
- value,
- ["dimensions", "aspectRatio"],
- newValue
- );
- onChange(
- setImmutably2(tempValue, ["dimensions", "minHeight"], void 0)
- );
- };
- const hasAspectRatioValue = () => hasValue2(value?.dimensions?.aspectRatio);
- const showChildLayoutControl = hasChildLayout(settings2, styleState);
- const childLayout = value?.layout;
- const setChildLayout = (newChildLayout) => {
- onChange({
- ...value,
- layout: {
- ...value?.layout,
- ...newChildLayout
- }
- });
- };
- const onMouseLeaveControls = () => onVisualize(false);
- return /* @__PURE__ */ (0, import_jsx_runtime428.jsxs)(
- Wrapper,
+ return /* @__PURE__ */ (0, import_jsx_runtime373.jsx)(
+ import_components151.DropdownMenu,
{
- resetAllFilter,
- value,
- onChange,
- panelId,
- children: [
- (showContentSizeControl || showWideSizeControl) && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)("span", { className: "span-columns", children: (0, import_i18n193.__)("Set the width of the main content area.") }),
- showContentSizeControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- InheritanceToolsPanelItem,
+ icon: aspect_ratio_default,
+ label: (0, import_i18n147.__)("Aspect Ratio"),
+ popoverProps: POPOVER_PROPS7,
+ toggleProps,
+ children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime373.jsxs)(import_jsx_runtime373.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime373.jsx)(
+ AspectRatioGroup,
{
- ...inheritanceProps(
- isContentSizePlaceholder,
- hasUserSetContentSizeValue() && inheritedContentSizeValue !== void 0
- ),
- label: (0, import_i18n193.__)("Content width"),
- hasValue: hasUserSetContentSizeValue,
- onDeselect: resetContentSizeValue,
- isShownByDefault: defaultControls.contentSize ?? DEFAULT_CONTROLS5.contentSize,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- import_components203.__experimentalUnitControl,
+ isDisabled: isInProgress,
+ onClick: (newAspect) => {
+ setAspect(newAspect);
+ onClose();
+ },
+ value: aspect,
+ aspectRatios: [
+ // All ratios should be mirrored in AspectRatioTool in @wordpress/block-editor.
{
- label: (0, import_i18n193.__)("Content width"),
- labelPosition: "top",
- value: localContentSizeValue ?? inheritedContentSizeValue,
- placeholder: isContentSizePlaceholder ? getNumericPlaceholder2(
- inheritedContentSizeValue
- ) : void 0,
- onChange: (nextContentSize) => {
- setContentSizeValue(nextContentSize);
- },
- units: units2,
- prefix: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(import_components203.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(icon_default, { icon: align_none_default }) })
- }
- )
+ slug: "original",
+ name: (0, import_i18n147.__)("Original"),
+ ratio: defaultAspect
+ },
+ ...showDefaultRatios ? defaultRatios.map(presetRatioAsNumber).filter(({ ratio }) => ratio === 1) : []
+ ]
}
),
- showWideSizeControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- InheritanceToolsPanelItem,
+ themeRatios?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime373.jsx)(
+ AspectRatioGroup,
{
- ...inheritanceProps(
- isWideSizePlaceholder,
- hasUserSetWideSizeValue() && inheritedWideSizeValue !== void 0
- ),
- label: (0, import_i18n193.__)("Wide width"),
- hasValue: hasUserSetWideSizeValue,
- onDeselect: resetWideSizeValue,
- isShownByDefault: defaultControls.wideSize ?? DEFAULT_CONTROLS5.wideSize,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- import_components203.__experimentalUnitControl,
- {
- label: (0, import_i18n193.__)("Wide width"),
- labelPosition: "top",
- value: localWideSizeValue ?? inheritedWideSizeValue,
- placeholder: isWideSizePlaceholder ? getNumericPlaceholder2(
- inheritedWideSizeValue
- ) : void 0,
- onChange: (nextWideSize) => {
- setWideSizeValue(nextWideSize);
- },
- units: units2,
- prefix: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(import_components203.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(icon_default, { icon: stretch_wide_default }) })
- }
- )
+ label: (0, import_i18n147.__)("Theme"),
+ isDisabled: isInProgress,
+ onClick: (newAspect) => {
+ setAspect(newAspect);
+ onClose();
+ },
+ value: aspect,
+ aspectRatios: themeRatios
}
),
- showPaddingControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsxs)(
- InheritanceToolsPanelItem,
+ showDefaultRatios && /* @__PURE__ */ (0, import_jsx_runtime373.jsx)(
+ AspectRatioGroup,
{
- hasValue: hasPaddingValue,
- label: (0, import_i18n193.__)("Padding"),
- hasInlineEndToggle: hasSpacingToggle(
- paddingSides,
- showSpacingPresetsControl
- ),
- onDeselect: resetPaddingValue,
- isShownByDefault: defaultControls.padding ?? DEFAULT_CONTROLS5.padding,
- ...inheritanceProps(
- isPaddingInherited,
- hasPaddingValue() && hasInheritedPadding,
- {
- "tools-panel-item-spacing": showSpacingPresetsControl
- }
- ),
- panelId,
- children: [
- !showSpacingPresetsControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- import_components203.BoxControl,
- {
- values: localPaddingValues,
- onChange: setPaddingValues,
- label: (0, import_i18n193.__)("Padding"),
- sides: paddingSides,
- units: units2,
- allowReset: false,
- splitOnAxis: isAxialPadding,
- inputProps: {
- onMouseOver: onMouseOverPadding,
- onMouseOut: onMouseLeaveControls,
- placeholder: isPaddingPlaceholder ? inheritedPaddingPlaceholder : void 0
- }
- }
- ),
- showSpacingPresetsControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- SpacingSizesControl,
- {
- values: paddingValues,
- onChange: setPaddingValues,
- label: (0, import_i18n193.__)("Padding"),
- sides: paddingSides,
- units: units2,
- allowReset: false,
- onMouseOver: onMouseOverPadding,
- onMouseOut: onMouseLeaveControls
- }
- )
- ]
+ label: (0, import_i18n147.__)("Landscape"),
+ isDisabled: isInProgress,
+ onClick: (newAspect) => {
+ setAspect(newAspect);
+ onClose();
+ },
+ value: aspect,
+ aspectRatios: defaultRatios.map(presetRatioAsNumber).filter(({ ratio }) => ratio > 1)
}
),
- showMarginControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsxs)(
- InheritanceToolsPanelItem,
+ showDefaultRatios && /* @__PURE__ */ (0, import_jsx_runtime373.jsx)(
+ AspectRatioGroup,
{
- hasValue: hasMarginValue,
- label: (0, import_i18n193.__)("Margin"),
- hasInlineEndToggle: hasSpacingToggle(
- marginSides,
- showSpacingPresetsControl
- ),
- onDeselect: resetMarginValue,
- isShownByDefault: defaultControls.margin ?? DEFAULT_CONTROLS5.margin,
- ...inheritanceProps(
- isMarginInherited,
- hasMarginValue() && hasInheritedMargin,
- {
- "tools-panel-item-spacing": showSpacingPresetsControl
- }
- ),
- panelId,
- children: [
- !showSpacingPresetsControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- import_components203.BoxControl,
- {
- values: localMarginValues,
- onChange: setMarginValues,
- inputProps: {
- min: minMarginValue,
- onDragStart: () => {
- setMinMarginValue(0);
- },
- onDragEnd: () => {
- setMinMarginValue(minimumMargin);
- },
- onMouseOver: onMouseOverMargin,
- onMouseOut: onMouseLeaveControls,
- placeholder: isMarginPlaceholder ? inheritedMarginPlaceholder : void 0
- },
- label: (0, import_i18n193.__)("Margin"),
- sides: marginSides,
- units: units2,
- allowReset: false,
- splitOnAxis: isAxialMargin
- }
- ),
- showSpacingPresetsControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- SpacingSizesControl,
- {
- values: marginValues,
- onChange: setMarginValues,
- minimumCustomValue: -Infinity,
- label: (0, import_i18n193.__)("Margin"),
- sides: marginSides,
- units: units2,
- allowReset: false,
- onMouseOver: onMouseOverMargin,
- onMouseOut: onMouseLeaveControls
- }
- )
- ]
+ label: (0, import_i18n147.__)("Portrait"),
+ isDisabled: isInProgress,
+ onClick: (newAspect) => {
+ setAspect(newAspect);
+ onClose();
+ },
+ value: aspect,
+ aspectRatios: defaultRatios.map(presetRatioAsNumber).filter(({ ratio }) => ratio < 1)
}
- ),
- showGapControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsxs)(
- InheritanceToolsPanelItem,
+ )
+ ] })
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/image-editor/cropper.mjs
+ var import_components152 = __toESM(require_components(), 1);
+ var import_compose85 = __toESM(require_compose(), 1);
+ var import_jsx_runtime374 = __toESM(require_jsx_runtime(), 1);
+ function ImageCropper2({
+ url,
+ width,
+ height,
+ naturalHeight,
+ naturalWidth,
+ borderProps
+ }) {
+ const { isInProgress, editedUrl, rotation } = useImageEditingContext();
+ const [contentResizeListener, { width: clientWidth }] = (0, import_compose85.useResizeObserver)();
+ let editedHeight = height || clientWidth * naturalHeight / naturalWidth;
+ if (rotation % 180 === 90) {
+ editedHeight = clientWidth * naturalWidth / naturalHeight;
+ }
+ const area = /* @__PURE__ */ (0, import_jsx_runtime374.jsxs)(
+ "div",
+ {
+ className: clsx_default(
+ "wp-block-image__crop-area",
+ borderProps?.className,
+ {
+ "is-applying": isInProgress
+ }
+ ),
+ style: {
+ ...borderProps?.style,
+ width: width || clientWidth,
+ height: editedHeight
+ },
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime374.jsx)(ImageCropper, { src: editedUrl || url }),
+ isInProgress && /* @__PURE__ */ (0, import_jsx_runtime374.jsx)(import_components152.Spinner, {})
+ ]
+ }
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime374.jsxs)(import_jsx_runtime374.Fragment, { children: [
+ contentResizeListener,
+ area
+ ] });
+ }
+
+ // packages/block-editor/build-module/components/image-editor/zoom-dropdown.mjs
+ var import_components153 = __toESM(require_components(), 1);
+ var import_i18n148 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime375 = __toESM(require_jsx_runtime(), 1);
+ function ZoomDropdown() {
+ const { isInProgress, zoom, setZoom } = useImageEditingContext();
+ return /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(
+ import_components153.Dropdown,
+ {
+ contentClassName: "wp-block-image__zoom",
+ popoverProps: POPOVER_PROPS7,
+ renderToggle: ({ isOpen, onToggle }) => /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(
+ import_components153.ToolbarButton,
+ {
+ icon: search_default,
+ label: (0, import_i18n148.__)("Zoom"),
+ onClick: onToggle,
+ "aria-expanded": isOpen,
+ disabled: isInProgress
+ }
+ ),
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(import_components153.__experimentalDropdownContentWrapper, { paddingSize: "medium", children: /* @__PURE__ */ (0, import_jsx_runtime375.jsx)(
+ import_components153.RangeControl,
+ {
+ label: (0, import_i18n148.__)("Zoom"),
+ min: MIN_ZOOM3,
+ max: MAX_ZOOM3,
+ value: Math.round(zoom * 100),
+ onChange: (newZoom) => setZoom(newZoom / 100)
+ }
+ ) })
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/image-editor/rotation-button.mjs
+ var import_components154 = __toESM(require_components(), 1);
+ var import_i18n149 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime376 = __toESM(require_jsx_runtime(), 1);
+ function RotationButton() {
+ const { isInProgress, rotateClockwise } = useImageEditingContext();
+ return /* @__PURE__ */ (0, import_jsx_runtime376.jsx)(
+ import_components154.ToolbarButton,
+ {
+ icon: rotate_right_default,
+ label: (0, import_i18n149.__)("Rotate"),
+ onClick: rotateClockwise,
+ disabled: isInProgress
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/image-editor/form-controls.mjs
+ var import_components155 = __toESM(require_components(), 1);
+ var import_i18n150 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime377 = __toESM(require_jsx_runtime(), 1);
+ function FormControls() {
+ const { isInProgress, apply, cancel } = useImageEditingContext();
+ return /* @__PURE__ */ (0, import_jsx_runtime377.jsxs)(import_jsx_runtime377.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime377.jsx)(import_components155.ToolbarButton, { onClick: apply, disabled: isInProgress, children: (0, import_i18n150.__)("Apply") }),
+ /* @__PURE__ */ (0, import_jsx_runtime377.jsx)(import_components155.ToolbarButton, { onClick: cancel, children: (0, import_i18n150.__)("Cancel") })
+ ] });
+ }
+
+ // packages/block-editor/build-module/components/image-editor/index.mjs
+ var import_jsx_runtime378 = __toESM(require_jsx_runtime(), 1);
+ function ImageEditor({
+ id,
+ url,
+ width,
+ height,
+ naturalHeight,
+ naturalWidth,
+ onSaveImage,
+ onFinishEditing,
+ borderProps
+ }) {
+ (0, import_deprecated18.default)("wp.blockEditor.__experimentalImageEditor", {
+ since: "7.1",
+ hint: "The Media Editor modal is now the default crop experience for core blocks. This component will be removed in a future major release."
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(ImageCropperProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime378.jsxs)(
+ ImageEditingProvider,
+ {
+ id,
+ url,
+ naturalWidth,
+ naturalHeight,
+ onSaveImage,
+ onFinishEditing,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(
+ ImageCropper2,
{
- hasValue: hasGapValue,
- label: (0, import_i18n193.__)("Block spacing"),
- hasInlineEndToggle: isAxialGap,
- onDeselect: resetGapValue,
- isShownByDefault: defaultControls.blockGap ?? DEFAULT_CONTROLS5.blockGap,
- ...inheritanceProps(
- isGapPlaceholder,
- hasGapValue() && inheritedGapRaw !== void 0,
+ borderProps,
+ url,
+ width,
+ height,
+ naturalHeight,
+ naturalWidth
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime378.jsxs)(block_controls_default, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime378.jsxs)(import_components156.ToolbarGroup, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(ZoomDropdown, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(import_components156.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(
+ AspectRatioDropdown,
{
- "tools-panel-item-spacing": showSpacingPresetsControl,
- "single-column": (
- // If UnitControl is used, should be single-column.
- !showSpacingPresetsControl && !isAxialGap
- )
+ toggleProps
}
- ),
- panelId,
- children: [
- !showSpacingPresetsControl && (isAxialGap ? /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- import_components203.BoxControl,
- {
- label: (0, import_i18n193.__)("Block spacing"),
- min: 0,
- onChange: setGapValues,
- units: units2,
- sides: gapSides,
- values: gapValues,
- allowReset: false,
- splitOnAxis: isAxialGap
- }
- ) : /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- import_components203.__experimentalUnitControl,
- {
- label: (0, import_i18n193.__)("Block spacing"),
- min: 0,
- onChange: setGapValue,
- units: units2,
- value: localGapRaw ?? void 0,
- placeholder: isGapPlaceholder ? inheritedGapRaw : void 0
- }
- )),
- showSpacingPresetsControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- SpacingSizesControl,
- {
- label: (0, import_i18n193.__)("Block spacing"),
- min: 0,
- onChange: setGapValues,
- showSideInLabel: false,
- sides: isAxialGap ? gapSides : ["top"],
- values: gapValues,
- allowReset: false
- }
- )
- ]
- }
- ),
- showChildLayoutControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- ChildLayoutControl,
- {
- value: childLayout,
- onChange: setChildLayout,
- parentLayout: settings2?.parentLayout,
- panelId,
- showGridSpanDefaults: !hasViewportBlockStyleState(styleState),
- isShownByDefault: defaultControls.childLayout ?? DEFAULT_CONTROLS5.childLayout
- }
- ),
- showMinHeightControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isMinHeightPlaceholder,
- hasMinHeightValue() && inheritedMinHeightValue !== void 0
- ),
- hasValue: hasMinHeightValue,
- label: (0, import_i18n193.__)("Minimum height"),
- onDeselect: resetMinHeightValue,
- isShownByDefault: defaultControls.minHeight ?? DEFAULT_CONTROLS5.minHeight,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- DimensionControl,
- {
- label: (0, import_i18n193.__)("Minimum height"),
- value: localMinHeightValue ?? inheritedMinHeightValue,
- onChange: setMinHeightValue,
- placeholder: isMinHeightPlaceholder ? getNumericPlaceholder2(
- inheritedMinHeightValue
- ) : void 0,
- dimensionSizes: dimensions?.dimensionSizes
- }
- )
- }
- ),
- showMinWidthControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isMinWidthPlaceholder,
- hasMinWidthValue() && inheritedMinWidthValue !== void 0
- ),
- hasValue: hasMinWidthValue,
- label: (0, import_i18n193.__)("Minimum width"),
- onDeselect: resetMinWidthValue,
- isShownByDefault: defaultControls.minWidth ?? DEFAULT_CONTROLS5.minWidth,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- DimensionControl,
- {
- label: (0, import_i18n193.__)("Minimum width"),
- value: localMinWidthValue ?? inheritedMinWidthValue,
- onChange: setMinWidthValue,
- placeholder: isMinWidthPlaceholder ? getNumericPlaceholder2(
- inheritedMinWidthValue
- ) : void 0,
- dimensionSizes: dimensions?.dimensionSizes
- }
- )
- }
- ),
- showHeightControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isHeightPlaceholder,
- hasHeightValue() && inheritedHeightValue !== void 0
- ),
- hasValue: hasHeightValue,
- label: (0, import_i18n193.__)("Height"),
- onDeselect: resetHeightValue,
- isShownByDefault: defaultControls.height ?? DEFAULT_CONTROLS5.height,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- DimensionControl,
- {
- label: (0, import_i18n193.__)("Height"),
- value: localHeightValue,
- onChange: setHeightValue,
- placeholder: isHeightPlaceholder ? inheritedHeightValue : void 0,
- dimensionSizes: dimensions?.dimensionSizes
- }
- )
- }
- ),
- showWidthControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isWidthPlaceholder,
- hasWidthValue() && inheritedWidthValue !== void 0
- ),
- hasValue: hasWidthValue,
- label: (0, import_i18n193.__)("Width"),
- onDeselect: resetWidthValue,
- isShownByDefault: defaultControls.width ?? DEFAULT_CONTROLS5.width,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- DimensionControl,
- {
- label: (0, import_i18n193.__)("Width"),
- value: localWidthValue,
- onChange: setWidthValue,
- placeholder: isWidthPlaceholder ? inheritedWidthValue : void 0,
- dimensionSizes: dimensions?.dimensionSizes
- }
- )
- }
- ),
- showAspectRatioControl && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
- AspectRatioTool,
- {
- hasValue: hasAspectRatioValue,
- value: aspectRatioValue,
- onChange: setAspectRatioValue,
- panelId,
- ...inheritanceProps(
- isAspectRatioPlaceholder,
- hasAspectRatioValue() && inheritedAspectRatioValue !== void 0
- ),
- isShownByDefault: defaultControls.aspectRatio ?? DEFAULT_CONTROLS5.aspectRatio
- }
- )
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(RotationButton, {})
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(import_components156.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime378.jsx)(FormControls, {}) })
+ ] })
]
}
- );
+ ) });
}
- // packages/block-editor/build-module/components/global-styles/border-panel.mjs
- var import_components205 = __toESM(require_components(), 1);
- var import_element255 = __toESM(require_element(), 1);
- var import_i18n195 = __toESM(require_i18n(), 1);
+ // packages/block-editor/build-module/components/image-size-control/index.mjs
+ var import_components157 = __toESM(require_components(), 1);
+ var import_i18n151 = __toESM(require_i18n(), 1);
- // packages/block-editor/build-module/components/global-styles/shadow-panel-components.mjs
- var import_i18n194 = __toESM(require_i18n(), 1);
- var import_components204 = __toESM(require_components(), 1);
- var import_element254 = __toESM(require_element(), 1);
- var import_jsx_runtime429 = __toESM(require_jsx_runtime(), 1);
- var EMPTY_ARRAY13 = [];
- function ShadowPopoverContainer({ shadow, onShadowChange, settings: settings2 }) {
- const shadows = useShadowPresets(settings2);
- return /* @__PURE__ */ (0, import_jsx_runtime429.jsx)("div", { className: "block-editor-global-styles__shadow-popover-container", children: /* @__PURE__ */ (0, import_jsx_runtime429.jsxs)(import_components204.__experimentalVStack, { spacing: 4, children: [
- /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(import_components204.__experimentalHeading, { level: 5, children: (0, import_i18n194.__)("Drop shadow") }),
- /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- ShadowPresets,
- {
- presets: shadows,
- activeShadow: shadow,
- onSelect: onShadowChange
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime429.jsx)("div", { className: "block-editor-global-styles__clear-shadow", children: /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- import_components204.Button,
- {
- __next40pxDefaultSize: true,
- variant: "tertiary",
- onClick: () => onShadowChange(void 0),
- disabled: !shadow,
- accessibleWhenDisabled: true,
- children: (0, import_i18n194.__)("Clear")
- }
- ) })
- ] }) });
- }
- function ShadowPresets({ presets, activeShadow, onSelect }) {
- return !presets ? null : /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- import_components204.Composite,
- {
- role: "listbox",
- className: "block-editor-global-styles__shadow__list",
- "aria-label": (0, import_i18n194.__)("Drop shadows"),
- children: presets.map(({ name, slug, shadow }) => /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- ShadowIndicator,
- {
- label: name,
- isActive: shadow === activeShadow,
- type: slug === "unset" ? "unset" : "preset",
- onSelect: () => onSelect(shadow === activeShadow ? void 0 : shadow),
- shadow
- },
- slug
- ))
- }
+ // packages/block-editor/build-module/components/image-size-control/use-dimension-handler.mjs
+ var import_element224 = __toESM(require_element(), 1);
+ function useDimensionHandler(customHeight, customWidth, defaultHeight, defaultWidth, onChange) {
+ const [currentWidth, setCurrentWidth] = (0, import_element224.useState)(
+ customWidth ?? defaultWidth ?? ""
+ );
+ const [currentHeight, setCurrentHeight] = (0, import_element224.useState)(
+ customHeight ?? defaultHeight ?? ""
);
+ (0, import_element224.useEffect)(() => {
+ if (customWidth === void 0 && defaultWidth !== void 0) {
+ setCurrentWidth(defaultWidth);
+ }
+ if (customHeight === void 0 && defaultHeight !== void 0) {
+ setCurrentHeight(defaultHeight);
+ }
+ }, [defaultWidth, defaultHeight]);
+ (0, import_element224.useEffect)(() => {
+ if (customWidth !== void 0 && Number.parseInt(customWidth) !== Number.parseInt(currentWidth)) {
+ setCurrentWidth(customWidth);
+ }
+ if (customHeight !== void 0 && Number.parseInt(customHeight) !== Number.parseInt(currentHeight)) {
+ setCurrentHeight(customHeight);
+ }
+ }, [customWidth, customHeight]);
+ const updateDimension = (dimension, value) => {
+ const parsedValue = value === "" ? void 0 : parseInt(value, 10);
+ if (dimension === "width") {
+ setCurrentWidth(parsedValue);
+ } else {
+ setCurrentHeight(parsedValue);
+ }
+ onChange({
+ [dimension]: parsedValue
+ });
+ };
+ const updateDimensions = (nextHeight, nextWidth) => {
+ setCurrentHeight(nextHeight ?? defaultHeight);
+ setCurrentWidth(nextWidth ?? defaultWidth);
+ onChange({ height: nextHeight, width: nextWidth });
+ };
+ return {
+ currentHeight,
+ currentWidth,
+ updateDimension,
+ updateDimensions
+ };
}
- function ShadowIndicator({ type, label, isActive, onSelect, shadow }) {
- return /* @__PURE__ */ (0, import_jsx_runtime429.jsxs)(tooltip_exports.Root, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- tooltip_exports.Trigger,
- {
- render: /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- import_components204.Composite.Item,
- {
- role: "option",
- "aria-label": label,
- "aria-selected": isActive,
- className: clsx_default(
- "block-editor-global-styles__shadow__item",
- {
- "is-active": isActive
- }
- ),
- render: /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- "button",
- {
- className: clsx_default(
- "block-editor-global-styles__shadow-indicator",
- {
- unset: type === "unset"
- }
- ),
- onClick: onSelect,
- style: { boxShadow: shadow },
- "aria-label": label,
- children: isActive && /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(icon_default, { icon: check_default })
- }
- )
- }
- )
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(tooltip_exports.Popup, { children: label })
- ] });
+
+ // packages/block-editor/build-module/components/image-size-control/index.mjs
+ var import_jsx_runtime379 = __toESM(require_jsx_runtime(), 1);
+ var IMAGE_SIZE_PRESETS = [25, 50, 75, 100];
+ var noop15 = () => {
+ };
+ function getScaledWidthAndHeight(scale, imageWidth, imageHeight) {
+ const scaledWidth = Math.round(imageWidth * (scale / 100));
+ const scaledHeight = Math.round(imageHeight * (scale / 100));
+ return {
+ scaledWidth,
+ scaledHeight
+ };
}
- function ShadowPopover({
- shadow,
- onShadowChange,
- settings: settings2,
- className,
- hasLocalValue = !!shadow,
- hasLocalOverride = false,
- onReset
+ function ImageSizeControl({
+ imageSizeHelp,
+ imageWidth,
+ imageHeight,
+ imageSizeOptions = [],
+ isResizable = true,
+ slug,
+ width,
+ height,
+ onChange,
+ onChangeImage = noop15
}) {
- const popoverProps3 = {
- placement: "left-start",
- offset: 36,
- shift: true
- };
- return /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- import_components204.Dropdown,
- {
- popoverProps: popoverProps3,
- className: clsx_default(
- "block-editor-global-styles__shadow-dropdown",
- className
- ),
- renderToggle: renderShadowToggle(shadow, onShadowChange, {
- hasLocalValue,
- hasLocalOverride,
- onReset: onReset ?? (() => onShadowChange(void 0))
- }),
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(import_components204.__experimentalDropdownContentWrapper, { paddingSize: "medium", children: /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- ShadowPopoverContainer,
- {
- shadow,
- onShadowChange,
- settings: settings2
- }
- ) })
+ const { currentHeight, currentWidth, updateDimension, updateDimensions } = useDimensionHandler(height, width, imageHeight, imageWidth, onChange);
+ const handleUpdateDimensions = (scale) => {
+ if (void 0 === scale) {
+ updateDimensions();
+ return;
}
- );
- }
- function renderShadowToggle(shadow, onShadowChange, resetConfig) {
- const { hasLocalValue, hasLocalOverride, onReset } = resetConfig;
- return function ShadowToggle({ onToggle, isOpen }) {
- const shadowButtonRef = (0, import_element254.useRef)(void 0);
- const toggleProps = {
- onClick: onToggle,
- className: clsx_default(
- "block-editor-global-styles__shadow-dropdown-toggle",
- { "is-open": isOpen }
- ),
- "aria-expanded": isOpen,
- ref: shadowButtonRef
- };
- const handleReset = () => {
- if (isOpen) {
- onToggle();
+ const { scaledWidth, scaledHeight } = getScaledWidthAndHeight(
+ scale,
+ imageWidth,
+ imageHeight
+ );
+ updateDimensions(scaledHeight, scaledWidth);
+ };
+ const selectedValue = IMAGE_SIZE_PRESETS.find((scale) => {
+ const { scaledWidth, scaledHeight } = getScaledWidthAndHeight(
+ scale,
+ imageWidth,
+ imageHeight
+ );
+ return currentWidth === scaledWidth && currentHeight === scaledHeight;
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime379.jsxs)(import_components157.__experimentalVStack, { className: "block-editor-image-size-control", spacing: "4", children: [
+ imageSizeOptions && imageSizeOptions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime379.jsx)(
+ import_components157.SelectControl,
+ {
+ label: (0, import_i18n151.__)("Resolution"),
+ value: slug,
+ options: imageSizeOptions,
+ onChange: onChangeImage,
+ help: imageSizeHelp
}
- onReset();
- shadowButtonRef.current?.focus();
- };
- return /* @__PURE__ */ (0, import_jsx_runtime429.jsxs)(import_jsx_runtime429.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(import_components204.Button, { __next40pxDefaultSize: true, ...toggleProps, children: /* @__PURE__ */ (0, import_jsx_runtime429.jsxs)(import_components204.__experimentalHStack, { justify: "flex-start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- icon_default,
+ ),
+ isResizable && /* @__PURE__ */ (0, import_jsx_runtime379.jsxs)(import_jsx_runtime379.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime379.jsxs)(import_components157.__experimentalHStack, { align: "baseline", spacing: "4", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime379.jsx)(
+ import_components157.__experimentalNumberControl,
{
- className: "block-editor-global-styles__toggle-icon",
- icon: shadow_default,
- size: 24
+ label: (0, import_i18n151.__)("Width"),
+ value: currentWidth,
+ min: 1,
+ onChange: (value) => updateDimension("width", value)
}
),
- /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(import_components204.FlexItem, { children: (0, import_i18n194.__)("Drop shadow") })
- ] }) }),
- hasLocalValue && (hasLocalOverride ? /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- InheritanceResetButton,
- {
- className: "block-editor-global-styles__shadow-editor__remove-button",
- onResetToInherited: handleReset
- }
- ) : /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
- import_components204.Button,
+ /* @__PURE__ */ (0, import_jsx_runtime379.jsx)(
+ import_components157.__experimentalNumberControl,
+ {
+ label: (0, import_i18n151.__)("Height"),
+ value: currentHeight,
+ min: 1,
+ onChange: (value) => updateDimension("height", value)
+ }
+ )
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime379.jsx)(
+ import_components157.__experimentalToggleGroupControl,
{
- __next40pxDefaultSize: true,
- size: "small",
- icon: reset_default,
- label: (0, import_i18n194.__)("Remove"),
- className: "block-editor-global-styles__shadow-editor__remove-button",
- onClick: handleReset
+ label: (0, import_i18n151.__)("Image size presets"),
+ hideLabelFromVision: true,
+ onChange: handleUpdateDimensions,
+ value: selectedValue,
+ isBlock: true,
+ children: IMAGE_SIZE_PRESETS.map((scale) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime379.jsx)(
+ import_components157.__experimentalToggleGroupControlOption,
+ {
+ value: scale,
+ label: (0, import_i18n151.sprintf)(
+ /* translators: %d: Percentage value. */
+ (0, import_i18n151.__)("%d%%"),
+ scale
+ )
+ },
+ scale
+ );
+ })
}
- ))
- ] });
- };
- }
- function useShadowPresets(settings2) {
- return (0, import_element254.useMemo)(() => {
- if (!settings2?.shadow) {
- return EMPTY_ARRAY13;
- }
- const defaultPresetsEnabled = settings2?.shadow?.defaultPresets;
- const {
- default: defaultShadows,
- theme: themeShadows,
- custom: customShadows
- } = settings2?.shadow?.presets ?? {};
- const unsetShadow = {
- name: (0, import_i18n194.__)("Unset"),
- slug: "unset",
- shadow: "none"
- };
- const shadowPresets = [
- ...defaultPresetsEnabled && defaultShadows || EMPTY_ARRAY13,
- ...themeShadows || EMPTY_ARRAY13,
- ...customShadows || EMPTY_ARRAY13
- ];
- if (shadowPresets.length) {
- shadowPresets.unshift(unsetShadow);
- }
- return shadowPresets;
- }, [settings2]);
+ )
+ ] })
+ ] });
}
- // packages/block-editor/build-module/components/global-styles/border-panel.mjs
- var import_jsx_runtime430 = __toESM(require_jsx_runtime(), 1);
- function useHasBorderPanel(settings2) {
- const controls = Object.values(useHasBorderPanelControls(settings2));
- return controls.some(Boolean);
- }
- function useHasBorderPanelControls(settings2) {
- const controls = {
- hasBorderColor: useHasBorderColorControl(settings2),
- hasBorderRadius: useHasBorderRadiusControl(settings2),
- hasBorderStyle: useHasBorderStyleControl(settings2),
- hasBorderWidth: useHasBorderWidthControl(settings2),
- hasShadow: useHasShadowControl(settings2)
- };
- return controls;
- }
- function useHasBorderColorControl(settings2) {
- return settings2?.border?.color;
- }
- function useHasBorderRadiusControl(settings2) {
- return settings2?.border?.radius;
- }
- function useHasBorderStyleControl(settings2) {
- return settings2?.border?.style;
- }
- function useHasBorderWidthControl(settings2) {
- return settings2?.border?.width;
- }
- function useHasShadowControl(settings2) {
- const shadows = useShadowPresets(settings2);
- return !!settings2?.shadow && shadows.length > 0;
- }
- function BorderToolsPanel({
- resetAllFilter,
+ // packages/block-editor/build-module/components/justify-content-control/ui.mjs
+ var import_components158 = __toESM(require_components(), 1);
+ var import_i18n152 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime380 = __toESM(require_jsx_runtime(), 1);
+ var icons = {
+ left: justify_left_default,
+ center: justify_center_default,
+ right: justify_right_default,
+ "space-between": justify_space_between_default,
+ stretch: justify_stretch_default
+ };
+ function JustifyContentUI({
+ allowedControls = ["left", "center", "right", "space-between"],
+ isCollapsed: isCollapsed3 = true,
onChange,
value,
- panelId,
- children,
- label
+ popoverProps: popoverProps3,
+ isToolbar
}) {
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- const resetAll = () => {
- const updatedValue = resetAllFilter(value);
- onChange(updatedValue);
+ const handleClick = (next) => {
+ if (next === value) {
+ onChange(void 0);
+ } else {
+ onChange(next);
+ }
};
- return /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
- import_components205.__experimentalToolsPanel,
+ const icon = value ? icons[value] : icons.left;
+ const allControls = [
{
- label,
- resetAll,
- panelId,
- dropdownMenuProps,
- children
- }
- );
- }
- var DEFAULT_CONTROLS6 = {
- radius: true,
- color: true,
- width: true,
- shadow: true
- };
- function BorderPanel({
- as: Wrapper = BorderToolsPanel,
- value,
- onChange,
- inheritedValue = value,
- settings: settings2,
- panelId,
- name,
- defaultControls = DEFAULT_CONTROLS6,
- showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
- }) {
- const colors2 = useColorsPerOrigin(settings2);
- const areCustomSolidsEnabled = settings2?.color?.custom;
- const decodeValue = (0, import_element255.useCallback)(
- (rawValue) => getValueFromVariable({ settings: settings2 }, "", rawValue),
- [settings2]
- );
- const inheritanceProps = (isInherited, hasLocalOverride, className) => getInheritanceProps(
- showInheritanceLabelIndicators && isInherited,
- showInheritanceLabelIndicators && hasLocalOverride,
- className
- );
- const encodeColorValue = (colorValue) => {
- const allColors = colors2.flatMap(
- ({ colors: originColors }) => originColors
- );
- const colorObject = allColors.find(
- ({ color }) => color === colorValue
- );
- return colorObject ? "var:preset|color|" + colorObject.slug : colorValue;
- };
- const decodeBorder = (0, import_element255.useCallback)(
- (source) => {
- if (!source) {
- return void 0;
- }
- if ((0, import_components205.__experimentalHasSplitBorders)(source)) {
- const out = { ...source };
- ["top", "right", "bottom", "left"].forEach((side) => {
- out[side] = {
- ...out[side],
- color: decodeValue(out[side]?.color)
- };
- });
- return out;
- }
- return {
- ...source,
- color: source.color ? decodeValue(source.color) : void 0
- };
+ name: "left",
+ icon: justify_left_default,
+ title: (0, import_i18n152.__)("Justify items left"),
+ isActive: "left" === value,
+ onClick: () => handleClick("left")
},
- [decodeValue]
- );
- const localBorder = (0, import_element255.useMemo)(
- () => decodeBorder(value?.border),
- [value?.border, decodeBorder]
- );
- const inheritedBorder = (0, import_element255.useMemo)(
- () => decodeBorder(inheritedValue?.border),
- [inheritedValue?.border, decodeBorder]
- );
- const isBorderPlaceholder = !(0, import_components205.__experimentalIsDefinedBorder)(value?.border) && !!inheritedBorder && (0, import_components205.__experimentalIsDefinedBorder)(inheritedBorder);
- const border = isBorderPlaceholder ? inheritedBorder : localBorder;
- const setBorder = (newBorder) => onChange({ ...value, border: newBorder });
- const showBorderColor = useHasBorderColorControl(settings2);
- const showBorderStyle = useHasBorderStyleControl(settings2);
- const showBorderWidth = useHasBorderWidthControl(settings2);
- const showBorderRadius = useHasBorderRadiusControl(settings2);
- const localBorderRadius = (0, import_element255.useMemo)(() => {
- if (typeof value?.border?.radius !== "object") {
- return decodeValue(value?.border?.radius);
- }
- return {
- topLeft: decodeValue(value?.border?.radius?.topLeft),
- topRight: decodeValue(value?.border?.radius?.topRight),
- bottomLeft: decodeValue(value?.border?.radius?.bottomLeft),
- bottomRight: decodeValue(value?.border?.radius?.bottomRight)
- };
- }, [value?.border?.radius, decodeValue]);
- const inheritedBorderRadius = (0, import_element255.useMemo)(() => {
- const rawRadius = inheritedValue?.border?.radius;
- if (typeof rawRadius !== "object") {
- return decodeValue(rawRadius);
- }
- return {
- topLeft: decodeValue(rawRadius?.topLeft),
- topRight: decodeValue(rawRadius?.topRight),
- bottomLeft: decodeValue(rawRadius?.bottomLeft),
- bottomRight: decodeValue(rawRadius?.bottomRight)
- };
- }, [inheritedValue?.border?.radius, decodeValue]);
- const setBorderRadius = (newBorderRadius) => setBorder({ ...value?.border, radius: newBorderRadius });
- const hasBorderRadius = () => {
- const borderValues = value?.border?.radius;
- if (typeof borderValues === "object") {
- return Object.entries(borderValues).some(([, v2]) => !!v2);
- }
- return !!borderValues;
- };
- const isBorderRadiusPlaceholder = !hasBorderRadius() && inheritedBorderRadius !== void 0 && inheritedBorderRadius !== "";
- const borderRadius = (0, import_element255.useMemo)(() => {
- if (!isBorderRadiusPlaceholder) {
- return localBorderRadius;
- }
- if (typeof inheritedBorderRadius === "string") {
- return inheritedBorderRadius;
- }
- const obj = inheritedBorderRadius;
- if (!obj) {
- return localBorderRadius;
- }
- const all = obj.topLeft && obj.topLeft === obj.topRight && obj.topLeft === obj.bottomLeft && obj.topLeft === obj.bottomRight ? obj.topLeft : void 0;
- return { all, ...obj };
- }, [
- isBorderRadiusPlaceholder,
- localBorderRadius,
- inheritedBorderRadius
- ]);
- const hasShadowControl = useHasShadowControl(settings2);
- const localShadow = decodeValue(value?.shadow);
- const inheritedShadow = decodeValue(inheritedValue?.shadow);
- const isShadowPlaceholder = localShadow === void 0 && inheritedShadow !== void 0 && inheritedShadow !== "";
- const shadow = isShadowPlaceholder ? inheritedShadow : localShadow;
- const shadowPresets = settings2?.shadow?.presets ?? {};
- const mergedShadowPresets = shadowPresets.custom ?? shadowPresets.theme ?? shadowPresets.default ?? [];
- const setShadow = (newValue) => {
- const slug = mergedShadowPresets?.find(
- ({ shadow: shadowName }) => shadowName === newValue
- )?.slug;
- onChange(
- setImmutably2(
- value,
- ["shadow"],
- slug ? `var:preset|shadow|${slug}` : newValue || void 0
- )
- );
- };
- const setShadowWithInheritedCommit = (newValue) => {
- if (isShadowPlaceholder && newValue === void 0) {
- setShadow(inheritedShadow);
- return;
- }
- setShadow(newValue);
- };
- const hasShadow = () => !!value?.shadow;
- const resetShadow = () => setShadow(void 0);
- const hasShadowLocalOverride = showInheritanceLabelIndicators && hasShadow() && inheritedShadow !== void 0;
- const resetBorder = () => {
- if (hasBorderRadius()) {
- return setBorder({ radius: value?.border?.radius });
- }
- setBorder(void 0);
- };
- const onBorderChange = (newBorder) => {
- const updatedBorder = { ...newBorder };
- if ((0, import_components205.__experimentalHasSplitBorders)(updatedBorder)) {
- ["top", "right", "bottom", "left"].forEach((side) => {
- if (updatedBorder[side]) {
- updatedBorder[side] = {
- ...updatedBorder[side],
- color: encodeColorValue(updatedBorder[side]?.color)
- };
- }
- });
- } else if (updatedBorder) {
- updatedBorder.color = encodeColorValue(updatedBorder.color);
- }
- setBorder({
- ...updatedBorder,
- radius: value?.border?.radius
- });
- };
- const resetAllFilter = (0, import_element255.useCallback)((previousValue) => {
- return {
- ...previousValue,
- border: void 0,
- shadow: void 0
- };
- }, []);
- const showBorderByDefault = defaultControls?.color || defaultControls?.width;
- const hasBorderControl = showBorderColor || showBorderStyle || showBorderWidth || showBorderRadius;
- const label = useBorderPanelLabel({
- blockName: name,
- hasShadowControl,
- hasBorderControl
- });
- return /* @__PURE__ */ (0, import_jsx_runtime430.jsxs)(
- Wrapper,
{
- resetAllFilter,
- value,
- onChange,
- panelId,
- label,
- children: [
- (showBorderWidth || showBorderColor) && /* @__PURE__ */ (0, import_jsx_runtime430.jsxs)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isBorderPlaceholder,
- (0, import_components205.__experimentalIsDefinedBorder)(value?.border) && !!inheritedBorder && (0, import_components205.__experimentalIsDefinedBorder)(inheritedBorder)
- ),
- hasValue: () => (0, import_components205.__experimentalIsDefinedBorder)(value?.border),
- label: (0, import_i18n195.__)("Border"),
- onDeselect: () => resetBorder(),
- isShownByDefault: showBorderByDefault,
- panelId,
- children: [
- (showInheritanceLabelIndicators || hasShadowControl) && // Render the visible label as `BaseControl.VisualLabel`
- // (which produces `.components-base-control__label`)
- // rather than passing `label` to `BorderBoxControl`,
- // whose internal `<StyledLabel>` carries no stable
- // className. The inheritance treatment and the
- // local-override reset affordance both target
- // `.components-base-control__label`, so the visible
- // "Border" label has to be a `BaseControl` label to
- // receive them.
- //
- // Render it whenever a Shadow control is also present so
- // the two controls stay disambiguated (mirrors the
- // Shadow label's `hasBorderControl` guard below, and
- // trunk's `hideLabelFromVision={ ! hasShadowControl }`),
- // even when inheritance indicators are off (e.g. in
- // Global Styles).
- /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(import_components205.BaseControl.VisualLabel, { as: "legend", children: (0, import_i18n195.__)("Border") }),
- /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
- import_components205.BorderBoxControl,
- {
- colors: colors2,
- disableCustomColors: !areCustomSolidsEnabled,
- enableAlpha: true,
- enableStyle: showBorderStyle,
- onChange: onBorderChange,
- popoverOffset: 40,
- popoverPlacement: "left-start",
- value: border,
- __experimentalIsRenderedInSidebar: true
- }
- )
- ]
- }
- ),
- showBorderRadius && /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isBorderRadiusPlaceholder,
- hasBorderRadius() && inheritedBorderRadius !== void 0
- ),
- hasValue: hasBorderRadius,
- label: (0, import_i18n195.__)("Radius"),
- hasInlineEndToggle: true,
- onDeselect: () => setBorderRadius(void 0),
- isShownByDefault: defaultControls.radius,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
- BorderRadiusControl,
- {
- presets: settings2?.border?.radiusSizes,
- values: borderRadius,
- onChange: (newValue) => {
- setBorderRadius(newValue || void 0);
- }
- }
- )
- }
- ),
- hasShadowControl && /* @__PURE__ */ (0, import_jsx_runtime430.jsxs)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- isShadowPlaceholder,
- hasShadow() && inheritedShadow !== void 0
- ),
- label: (0, import_i18n195.__)("Shadow"),
- hasValue: hasShadow,
- onDeselect: resetShadow,
- isShownByDefault: defaultControls.shadow,
- showLocalOverrideActionsInLabel: false,
- panelId,
- children: [
- hasBorderControl ? /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(import_components205.BaseControl.VisualLabel, { as: "legend", children: (0, import_i18n195.__)("Shadow") }) : null,
- /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
- ShadowPopover,
- {
- shadow,
- onShadowChange: setShadowWithInheritedCommit,
- settings: settings2,
- hasLocalValue: hasShadow(),
- hasLocalOverride: hasShadowLocalOverride,
- onReset: resetShadow
- }
- )
- ]
- }
- )
- ]
+ name: "center",
+ icon: justify_center_default,
+ title: (0, import_i18n152.__)("Justify items center"),
+ isActive: "center" === value,
+ onClick: () => handleClick("center")
+ },
+ {
+ name: "right",
+ icon: justify_right_default,
+ title: (0, import_i18n152.__)("Justify items right"),
+ isActive: "right" === value,
+ onClick: () => handleClick("right")
+ },
+ {
+ name: "space-between",
+ icon: justify_space_between_default,
+ title: (0, import_i18n152.__)("Space between items"),
+ isActive: "space-between" === value,
+ onClick: () => handleClick("space-between")
+ },
+ {
+ name: "stretch",
+ icon: justify_stretch_default,
+ title: (0, import_i18n152.__)("Stretch items"),
+ isActive: "stretch" === value,
+ onClick: () => handleClick("stretch")
}
- );
- }
-
- // packages/block-editor/build-module/components/global-styles/filters-panel.mjs
- var import_components206 = __toESM(require_components(), 1);
- var import_i18n196 = __toESM(require_i18n(), 1);
- var import_element256 = __toESM(require_element(), 1);
- var import_jsx_runtime431 = __toESM(require_jsx_runtime(), 1);
- var EMPTY_ARRAY14 = [];
- function useMultiOriginColorPresets(settings2, { presetSetting, defaultSetting }) {
- const disableDefault = !settings2?.color?.[defaultSetting];
- const userPresets = settings2?.color?.[presetSetting]?.custom || EMPTY_ARRAY14;
- const themePresets = settings2?.color?.[presetSetting]?.theme || EMPTY_ARRAY14;
- const defaultPresets = settings2?.color?.[presetSetting]?.default || EMPTY_ARRAY14;
- return (0, import_element256.useMemo)(
- () => [
- ...userPresets,
- ...themePresets,
- ...disableDefault ? EMPTY_ARRAY14 : defaultPresets
- ],
- [disableDefault, userPresets, themePresets, defaultPresets]
- );
- }
- function useHasFiltersPanel(settings2) {
- return useHasDuotoneControl(settings2);
- }
- function useHasDuotoneControl(settings2) {
- return settings2.color.customDuotone || settings2.color.defaultDuotone || settings2.color.duotone.length > 0;
- }
- function FiltersToolsPanel({
- resetAllFilter,
- onChange,
- value,
- panelId,
- children
- }) {
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- const resetAll = () => {
- const updatedValue = resetAllFilter(value);
- onChange(updatedValue);
- };
- return /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
- import_components206.__experimentalToolsPanel,
+ ];
+ const UIComponent = isToolbar ? import_components158.ToolbarGroup : import_components158.ToolbarDropdownMenu;
+ const extraProps = isToolbar ? { isCollapsed: isCollapsed3 } : {};
+ return /* @__PURE__ */ (0, import_jsx_runtime380.jsx)(
+ UIComponent,
{
- label: (0, import_i18n196._x)("Filters", "Name for applying graphical effects"),
- resetAll,
- panelId,
- dropdownMenuProps,
- children
+ icon,
+ popoverProps: popoverProps3,
+ label: (0, import_i18n152.__)("Change items justification"),
+ controls: allControls.filter(
+ (elem) => allowedControls.includes(elem.name)
+ ),
+ ...extraProps
}
);
}
- var DEFAULT_CONTROLS7 = {
- duotone: true
+ var ui_default4 = JustifyContentUI;
+
+ // packages/block-editor/build-module/components/justify-content-control/index.mjs
+ var import_jsx_runtime381 = __toESM(require_jsx_runtime(), 1);
+ var JustifyContentControl = (props) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime381.jsx)(ui_default4, { ...props, isToolbar: false });
};
- var popoverProps2 = {
- placement: "left-start",
- offset: 36,
- shift: true,
- className: "block-editor-duotone-control__popover",
- headerTitle: (0, import_i18n196.__)("Duotone")
+ var JustifyToolbar = (props) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime381.jsx)(ui_default4, { ...props, isToolbar: true });
};
- var LabeledColorIndicator2 = ({ indicator, label }) => /* @__PURE__ */ (0, import_jsx_runtime431.jsxs)(import_components206.__experimentalHStack, { justify: "flex-start", children: [
- /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(import_components206.__experimentalZStack, { isLayered: false, offset: -8, children: /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(import_components206.Flex, { expanded: false, children: indicator === "unset" || !indicator ? /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(import_components206.ColorIndicator, { className: "block-editor-duotone-control__unset-indicator" }) : /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(import_components206.DuotoneSwatch, { values: indicator }) }) }),
- /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
- import_components206.FlexItem,
- {
- className: "block-editor-panel-duotone-settings__label",
- title: label,
- children: label
- }
- )
- ] });
- var renderToggle2 = (duotone, resetConfig) => function Toggle2({ onToggle, isOpen }) {
- const { hasLocalValue, hasLocalOverride, onReset } = resetConfig;
- const duotoneButtonRef = (0, import_element256.useRef)(void 0);
- const toggleProps = {
- onClick: onToggle,
- className: clsx_default(
- "block-editor-global-styles-filters-panel__dropdown-toggle",
- { "is-open": isOpen }
- ),
- "aria-expanded": isOpen,
- ref: duotoneButtonRef
- };
- const handleReset = () => {
- if (isOpen) {
- onToggle();
- }
- onReset();
- duotoneButtonRef.current?.focus();
- };
- return /* @__PURE__ */ (0, import_jsx_runtime431.jsxs)(import_jsx_runtime431.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(import_components206.Button, { __next40pxDefaultSize: true, ...toggleProps, children: /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
- LabeledColorIndicator2,
- {
- indicator: duotone,
- label: (0, import_i18n196.__)("Duotone")
- }
- ) }),
- hasLocalValue && (hasLocalOverride ? /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
- InheritanceResetButton,
+
+ // packages/block-editor/build-module/components/link-control/index.mjs
+ var import_components166 = __toESM(require_components(), 1);
+ var import_i18n162 = __toESM(require_i18n(), 1);
+ var import_element232 = __toESM(require_element(), 1);
+ var import_compose89 = __toESM(require_compose(), 1);
+ var import_dom69 = __toESM(require_dom(), 1);
+ var import_keycodes19 = __toESM(require_keycodes(), 1);
+ var import_is_shallow_equal4 = __toESM(require_is_shallow_equal(), 1);
+ var import_data150 = __toESM(require_data(), 1);
+ var import_preferences4 = __toESM(require_preferences(), 1);
+ var import_deprecated22 = __toESM(require_deprecated(), 1);
+ var import_url6 = __toESM(require_url(), 1);
+
+ // packages/block-editor/build-module/components/link-control/settings-drawer.mjs
+ var import_components159 = __toESM(require_components(), 1);
+ var import_compose86 = __toESM(require_compose(), 1);
+ var import_i18n153 = __toESM(require_i18n(), 1);
+ var import_element225 = __toESM(require_element(), 1);
+ var import_jsx_runtime382 = __toESM(require_jsx_runtime(), 1);
+ function LinkSettingsDrawer({ children, settingsOpen, setSettingsOpen }) {
+ const prefersReducedMotion = (0, import_compose86.useReducedMotion)();
+ const MaybeAnimatePresence = prefersReducedMotion ? import_element225.Fragment : import_components159.__unstableAnimatePresence;
+ const MaybeMotionDiv = prefersReducedMotion ? "div" : import_components159.__unstableMotion.div;
+ const id = (0, import_compose86.useInstanceId)(LinkSettingsDrawer);
+ const settingsDrawerId = `link-control-settings-drawer-${id}`;
+ return /* @__PURE__ */ (0, import_jsx_runtime382.jsxs)(import_jsx_runtime382.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
+ import_components159.Button,
{
- className: "block-editor-panel-duotone-settings__reset",
- onResetToInherited: handleReset
+ __next40pxDefaultSize: true,
+ className: "block-editor-link-control__drawer-toggle",
+ "aria-expanded": settingsOpen,
+ onClick: () => setSettingsOpen(!settingsOpen),
+ icon: (0, import_i18n153.isRTL)() ? chevron_left_small_default : chevron_right_small_default,
+ "aria-controls": settingsDrawerId,
+ children: (0, import_i18n153._x)("Advanced", "Additional link settings")
}
- ) : /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
- import_components206.Button,
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(MaybeAnimatePresence, { children: settingsOpen && /* @__PURE__ */ (0, import_jsx_runtime382.jsx)(
+ MaybeMotionDiv,
{
- size: "small",
- icon: reset_default,
- label: (0, import_i18n196.__)("Reset"),
- className: "block-editor-panel-duotone-settings__reset",
- onClick: handleReset
+ className: "block-editor-link-control__drawer",
+ hidden: !settingsOpen,
+ id: settingsDrawerId,
+ initial: "collapsed",
+ animate: "open",
+ exit: "collapsed",
+ variants: {
+ open: { opacity: 1, height: "auto" },
+ collapsed: { opacity: 0, height: 0 }
+ },
+ transition: {
+ duration: 0.1
+ },
+ children: /* @__PURE__ */ (0, import_jsx_runtime382.jsx)("div", { className: "block-editor-link-control__drawer-inner", children })
}
- ))
+ ) })
] });
- };
- function FiltersPanel({
- as: Wrapper = FiltersToolsPanel,
- value,
- onChange,
- inheritedValue = value,
- settings: settings2,
- panelId,
- defaultControls = DEFAULT_CONTROLS7,
- showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
- }) {
- const decodeValue = (rawValue) => getValueFromVariable({ settings: settings2 }, "", rawValue);
- const inheritanceProps = (isInherited, hasLocalOverride, className) => getInheritanceProps(
- showInheritanceLabelIndicators && isInherited,
- showInheritanceLabelIndicators && hasLocalOverride,
- className
- );
- const hasDuotoneEnabled = useHasDuotoneControl(settings2);
- const duotonePalette = useMultiOriginColorPresets(settings2, {
- presetSetting: "duotone",
- defaultSetting: "defaultDuotone"
- });
- const colorPalette = useMultiOriginColorPresets(settings2, {
- presetSetting: "palette",
- defaultSetting: "defaultPalette"
- });
- const localDuotone = decodeValue(value?.filter?.duotone);
- const inheritedDuotone = decodeValue(inheritedValue?.filter?.duotone);
- const duotone = localDuotone ?? inheritedDuotone;
- const isDuotonePlaceholder = localDuotone === void 0 && inheritedDuotone !== void 0;
- const setDuotone = (newValue) => {
- const duotonePreset = duotonePalette.find(({ colors: colors2 }) => {
- return colors2 === newValue;
- });
- const duotoneValue = duotonePreset ? `var:preset|duotone|${duotonePreset.slug}` : newValue;
- onChange(
- setImmutably2(value, ["filter", "duotone"], duotoneValue)
+ }
+ var settings_drawer_default = LinkSettingsDrawer;
+
+ // packages/block-editor/build-module/components/link-control/search-input.mjs
+ var import_element228 = __toESM(require_element(), 1);
+ var import_i18n158 = __toESM(require_i18n(), 1);
+ var import_deprecated21 = __toESM(require_deprecated(), 1);
+
+ // packages/block-editor/build-module/components/link-control/search-results.mjs
+ var import_i18n157 = __toESM(require_i18n(), 1);
+ var import_components162 = __toESM(require_components(), 1);
+ var import_deprecated20 = __toESM(require_deprecated(), 1);
+
+ // packages/block-editor/build-module/components/link-control/search-create-button.mjs
+ var import_i18n154 = __toESM(require_i18n(), 1);
+ var import_components160 = __toESM(require_components(), 1);
+ var import_element226 = __toESM(require_element(), 1);
+ var import_jsx_runtime383 = __toESM(require_jsx_runtime(), 1);
+ var LinkControlSearchCreate = ({
+ searchTerm,
+ onClick,
+ itemProps,
+ buttonText
+ }) => {
+ if (!searchTerm) {
+ return null;
+ }
+ let text;
+ if (buttonText) {
+ text = typeof buttonText === "function" ? buttonText(searchTerm) : buttonText;
+ } else {
+ text = (0, import_element226.createInterpolateElement)(
+ (0, import_i18n154.sprintf)(
+ /* translators: %s: search term. */
+ (0, import_i18n154.__)("Create: <mark>%s</mark>"),
+ searchTerm
+ ),
+ { mark: /* @__PURE__ */ (0, import_jsx_runtime383.jsx)("mark", {}) }
);
- };
- const setDuotoneWithInheritedCommit = (newValue) => {
- if (newValue === void 0 && isDuotonePlaceholder && inheritedDuotone !== void 0) {
- setDuotone(inheritedDuotone);
- return;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime383.jsx)(
+ import_components160.MenuItem,
+ {
+ ...itemProps,
+ iconPosition: "left",
+ icon: plus_default,
+ className: "block-editor-link-control__search-item",
+ onClick,
+ children: text
}
- setDuotone(newValue);
- };
- const hasDuotone = () => !!value?.filter?.duotone;
- const resetDuotone = () => setDuotone(void 0);
- const hasDuotoneLocalOverride = showInheritanceLabelIndicators && hasDuotone() && inheritedDuotone !== void 0;
- const resetAllFilter = (0, import_element256.useCallback)((previousValue) => {
- return {
- ...previousValue,
- filter: {
- ...previousValue.filter,
- duotone: void 0
+ );
+ };
+ var search_create_button_default = LinkControlSearchCreate;
+
+ // packages/block-editor/build-module/components/link-control/search-item.mjs
+ var import_i18n155 = __toESM(require_i18n(), 1);
+ var import_components161 = __toESM(require_components(), 1);
+ var import_dom67 = __toESM(require_dom(), 1);
+ var import_url3 = __toESM(require_url(), 1);
+ var import_compose87 = __toESM(require_compose(), 1);
+ var import_deprecated19 = __toESM(require_deprecated(), 1);
+ var import_jsx_runtime384 = __toESM(require_jsx_runtime(), 1);
+ var TYPES = {
+ post: {
+ icon: post_list_default,
+ label: (0, import_i18n155.__)("Post")
+ },
+ page: {
+ icon: page_default,
+ label: (0, import_i18n155.__)("Page")
+ },
+ post_tag: {
+ icon: tag_default,
+ label: (0, import_i18n155.__)("Tag")
+ },
+ category: {
+ icon: category_default,
+ label: (0, import_i18n155.__)("Category")
+ },
+ attachment: {
+ icon: file_default,
+ label: (0, import_i18n155.__)("Attachment")
+ }
+ };
+ function SearchItemIcon({ isURL: isURL4, suggestion }) {
+ let icon = null;
+ if (isURL4) {
+ icon = globe_default;
+ } else if (suggestion.type in TYPES) {
+ icon = TYPES[suggestion.type].icon;
+ if (suggestion.type === "page") {
+ if (suggestion.isFrontPage) {
+ icon = home_default;
}
- };
- }, []);
- return /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
- Wrapper,
+ if (suggestion.isBlogHome) {
+ icon = verse_default;
+ }
+ }
+ }
+ if (icon) {
+ return /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
+ icon_default,
+ {
+ className: "block-editor-link-control__search-item-icon",
+ icon
+ }
+ );
+ }
+ return null;
+ }
+ function addLeadingSlash(url) {
+ const trimmedURL = url?.trim();
+ if (!trimmedURL?.length) {
+ return url;
+ }
+ return url?.replace(/^\/?/, "/");
+ }
+ function removeTrailingSlash(url) {
+ const trimmedURL = url?.trim();
+ if (!trimmedURL?.length) {
+ return url;
+ }
+ return url?.replace(/\/$/, "");
+ }
+ var partialRight = (fn, ...partialArgs) => (...args) => fn(...args, ...partialArgs);
+ var defaultTo = (d2) => (v2) => {
+ return v2 === null || v2 === void 0 || v2 !== v2 ? d2 : v2;
+ };
+ function getURLForDisplay(url) {
+ if (!url) {
+ return url;
+ }
+ return (0, import_compose87.pipe)(
+ import_url3.safeDecodeURI,
+ import_url3.getPath,
+ defaultTo(""),
+ partialRight(import_url3.filterURLForDisplay, 24),
+ removeTrailingSlash,
+ addLeadingSlash
+ )(url);
+ }
+ var LinkControlSearchItem = ({
+ itemProps,
+ suggestion,
+ searchTerm,
+ onClick,
+ isURL: isURL4 = false,
+ shouldShowType = false
+ }) => {
+ const info = isURL4 ? (0, import_i18n155.__)("Press ENTER to add this link") : getURLForDisplay(suggestion.url);
+ return /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
+ import_components161.MenuItem,
{
- resetAllFilter,
- value,
- onChange,
- panelId,
- children: hasDuotoneEnabled && /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
- InheritanceToolsPanelItem,
+ ...itemProps,
+ info,
+ iconPosition: "left",
+ icon: /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(SearchItemIcon, { suggestion, isURL: isURL4 }),
+ onClick,
+ shortcut: shouldShowType && getVisualTypeName(suggestion),
+ className: "block-editor-link-control__search-item",
+ children: /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(
+ import_components161.TextHighlight,
{
- ...inheritanceProps(
- isDuotonePlaceholder,
- localDuotone !== void 0 && inheritedDuotone !== void 0
- ),
- label: (0, import_i18n196.__)("Duotone"),
- hasValue: hasDuotone,
- onDeselect: resetDuotone,
- isShownByDefault: defaultControls.duotone,
- showLocalOverrideActionsInLabel: false,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
- import_components206.Dropdown,
- {
- popoverProps: popoverProps2,
- className: "block-editor-global-styles-filters-panel__dropdown",
- renderToggle: renderToggle2(duotone, {
- hasLocalValue: hasDuotone(),
- hasLocalOverride: hasDuotoneLocalOverride,
- onReset: resetDuotone
- }),
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(import_components206.__experimentalDropdownContentWrapper, { paddingSize: "small", children: /* @__PURE__ */ (0, import_jsx_runtime431.jsxs)(import_components206.MenuGroup, { label: (0, import_i18n196.__)("Duotone"), children: [
- /* @__PURE__ */ (0, import_jsx_runtime431.jsx)("p", { children: (0, import_i18n196.__)(
- "Create a two-tone color effect without losing your original image."
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
- import_components206.DuotonePicker,
- {
- colorPalette,
- duotonePalette,
- disableCustomColors: true,
- disableCustomDuotone: true,
- value: duotone,
- onChange: setDuotoneWithInheritedCommit
- }
- )
- ] }) })
- }
- )
+ text: (0, import_dom67.__unstableStripHTML)(suggestion.title),
+ highlight: searchTerm
}
)
}
);
+ };
+ function getVisualTypeName(suggestion) {
+ if (suggestion.isFrontPage) {
+ return (0, import_i18n155.__)("Front page");
+ }
+ if (suggestion.isBlogHome) {
+ return (0, import_i18n155.__)("Blog home");
+ }
+ if (suggestion.type in TYPES) {
+ return TYPES[suggestion.type].label;
+ }
+ return suggestion.type;
}
+ var search_item_default = LinkControlSearchItem;
+ var __experimentalLinkControlSearchItem = (props) => {
+ (0, import_deprecated19.default)("wp.blockEditor.__experimentalLinkControlSearchItem", {
+ since: "6.8"
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime384.jsx)(LinkControlSearchItem, { ...props });
+ };
- // packages/block-editor/build-module/components/global-styles/image-settings-panel.mjs
- var import_components207 = __toESM(require_components(), 1);
- var import_i18n197 = __toESM(require_i18n(), 1);
- var import_jsx_runtime432 = __toESM(require_jsx_runtime(), 1);
- function useHasImageSettingsPanel(name, value, inheritedValue) {
- return name === "core/image" && inheritedValue?.lightbox?.allowEditing || !!value?.lightbox;
- }
- function ImageSettingsPanel({
- onChange,
- value,
- inheritedValue,
- panelId
- }) {
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- const resetLightbox = () => {
- onChange(void 0);
- };
- const onChangeLightbox = (newSetting) => {
- onChange({
- enabled: newSetting
- });
- };
- let lightboxChecked = false;
- if (inheritedValue?.lightbox?.enabled) {
- lightboxChecked = inheritedValue.lightbox.enabled;
+ // packages/block-editor/build-module/components/link-control/constants.mjs
+ var import_i18n156 = __toESM(require_i18n(), 1);
+ var CREATE_TYPE = "__CREATE__";
+ var TEL_TYPE = "tel";
+ var URL_TYPE = "link";
+ var MAILTO_TYPE = "mailto";
+ var INTERNAL_TYPE = "internal";
+ var LINK_ENTRY_TYPES = [
+ URL_TYPE,
+ MAILTO_TYPE,
+ TEL_TYPE,
+ INTERNAL_TYPE
+ ];
+ var DEFAULT_LINK_SETTINGS = [
+ {
+ id: "opensInNewTab",
+ title: (0, import_i18n156.__)("Open in new tab")
}
- return /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(import_jsx_runtime432.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
- import_components207.__experimentalToolsPanel,
+ ];
+
+ // packages/block-editor/build-module/components/link-control/search-results.mjs
+ var import_jsx_runtime385 = __toESM(require_jsx_runtime(), 1);
+ function LinkControlSearchResults({
+ withCreateSuggestion,
+ currentInputValue,
+ handleSuggestionClick,
+ suggestionsListProps,
+ buildSuggestionItemProps,
+ suggestions,
+ selectedSuggestion,
+ isLoading,
+ isInitialSuggestions,
+ createSuggestionButtonText,
+ suggestionsQuery
+ }) {
+ const resultsListClasses = clsx_default(
+ "block-editor-link-control__search-results",
{
- label: (0, import_i18n197._x)("Settings", "Image settings"),
- resetAll: resetLightbox,
- panelId,
- dropdownMenuProps,
- children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
- import_components207.__experimentalToolsPanelItem,
- {
- hasValue: () => !!value?.lightbox,
- label: (0, import_i18n197.__)("Enlarge on click"),
- onDeselect: resetLightbox,
- isShownByDefault: true,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
- import_components207.ToggleControl,
+ "is-loading": isLoading
+ }
+ );
+ const isSingleDirectEntryResult = suggestions.length === 1 && LINK_ENTRY_TYPES.includes(suggestions[0].type);
+ const shouldShowCreateSuggestion = withCreateSuggestion && !isSingleDirectEntryResult && !isInitialSuggestions;
+ const shouldShowSuggestionsTypes = !suggestionsQuery?.type;
+ const labelText = isInitialSuggestions ? (0, import_i18n157.__)("Suggestions") : (0, import_i18n157.sprintf)(
+ /* translators: %s: search term. */
+ (0, import_i18n157.__)('Search results for "%s"'),
+ currentInputValue
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime385.jsx)("div", { className: "block-editor-link-control__search-results-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime385.jsx)(
+ "div",
+ {
+ ...suggestionsListProps,
+ className: resultsListClasses,
+ "aria-label": labelText,
+ children: /* @__PURE__ */ (0, import_jsx_runtime385.jsx)(import_components162.MenuGroup, { children: suggestions.map((suggestion, index2) => {
+ if (shouldShowCreateSuggestion && CREATE_TYPE === suggestion.type) {
+ return /* @__PURE__ */ (0, import_jsx_runtime385.jsx)(
+ search_create_button_default,
{
- label: (0, import_i18n197.__)("Enlarge on click"),
- checked: lightboxChecked,
- onChange: onChangeLightbox
- }
- )
+ searchTerm: currentInputValue,
+ buttonText: createSuggestionButtonText,
+ onClick: () => handleSuggestionClick(suggestion),
+ itemProps: buildSuggestionItemProps(
+ suggestion,
+ index2
+ ),
+ isSelected: index2 === selectedSuggestion
+ },
+ suggestion.type
+ );
}
- )
+ if (CREATE_TYPE === suggestion.type) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime385.jsx)(
+ search_item_default,
+ {
+ itemProps: buildSuggestionItemProps(
+ suggestion,
+ index2
+ ),
+ suggestion,
+ index: index2,
+ onClick: () => {
+ handleSuggestionClick(suggestion);
+ },
+ isSelected: index2 === selectedSuggestion,
+ isURL: LINK_ENTRY_TYPES.includes(
+ suggestion.type
+ ),
+ searchTerm: currentInputValue,
+ shouldShowType: shouldShowSuggestionsTypes,
+ isFrontPage: suggestion?.isFrontPage,
+ isBlogHome: suggestion?.isBlogHome
+ },
+ `${suggestion.id}-${suggestion.type}`
+ );
+ }) })
}
) });
}
+ var search_results_default2 = LinkControlSearchResults;
+ var __experimentalLinkControlSearchResults = (props) => {
+ (0, import_deprecated20.default)("wp.blockEditor.__experimentalLinkControlSearchResults", {
+ since: "6.8"
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime385.jsx)(LinkControlSearchResults, { ...props });
+ };
- // packages/block-editor/build-module/components/global-styles/advanced-panel.mjs
- var import_components208 = __toESM(require_components(), 1);
- var import_element257 = __toESM(require_element(), 1);
- var import_i18n198 = __toESM(require_i18n(), 1);
- var import_jsx_runtime433 = __toESM(require_jsx_runtime(), 1);
- function validateCSS(css) {
- if (typeof css === "string" && /<\/?\w/.test(css)) {
- return false;
+ // packages/block-editor/build-module/components/link-control/use-search-handler.mjs
+ var import_element227 = __toESM(require_element(), 1);
+ var import_data147 = __toESM(require_data(), 1);
+
+ // packages/block-editor/build-module/components/link-control/normalize-url.mjs
+ var import_url4 = __toESM(require_url(), 1);
+ function normalizeUrl(url) {
+ const trimmedUrl = url?.trim();
+ if (!trimmedUrl) {
+ return { url: trimmedUrl, type: URL_TYPE };
}
- return true;
- }
- function getMarkupValidationError(css) {
- return validateCSS(css) ? null : (0, import_i18n198.__)("The custom CSS is invalid. Do not use <> markup.");
- }
- function getCSSValidationError(css) {
- if (!css) {
- return null;
+ let type = URL_TYPE;
+ const protocol = (0, import_url4.getProtocol)(trimmedUrl) || "";
+ if (protocol.includes("mailto")) {
+ type = MAILTO_TYPE;
+ } else if (protocol.includes("tel")) {
+ type = TEL_TYPE;
+ } else if (trimmedUrl?.startsWith("#")) {
+ type = INTERNAL_TYPE;
}
- const markupError = getMarkupValidationError(css);
- if (markupError) {
- return markupError;
+ if (isHashLink(trimmedUrl) || isRelativePath(trimmedUrl) || trimmedUrl.startsWith("?") || protocol) {
+ return { url: trimmedUrl, type };
}
- const [transformed] = transform_styles_default(
- [{ css }],
- ".for-validation-only"
- );
- return transformed === null ? (0, import_i18n198.__)("There is an error with your CSS structure.") : null;
+ return { url: (0, import_url4.prependHTTPS)(trimmedUrl), type };
}
- function AdvancedPanel({
- value,
- onChange,
- inheritedValue = value,
- help
- }) {
- const customCSS = inheritedValue?.css;
- const [cssError, setCSSError] = (0, import_element257.useState)(
- () => getCSSValidationError(customCSS)
- );
- function handleOnChange(newValue) {
- onChange({
- ...value,
- css: newValue
- });
- setCSSError(getMarkupValidationError(newValue));
- }
- function handleOnBlur(event) {
- setCSSError(getCSSValidationError(event?.target?.value));
- }
- return /* @__PURE__ */ (0, import_jsx_runtime433.jsxs)(
- Stack,
+
+ // packages/block-editor/build-module/components/link-control/use-search-handler.mjs
+ var handleNoop = () => Promise.resolve([]);
+ var handleDirectEntry = (val) => {
+ const { url, type } = normalizeUrl(val);
+ return Promise.resolve([
{
- direction: "column",
- gap: "md",
- className: "block-editor-global-styles-advanced-panel",
- children: [
- cssError && /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(import_components208.Notice, { status: "error", onRemove: () => setCSSError(null), children: cssError }),
- /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
- import_components208.TextareaControl,
- {
- label: (0, import_i18n198.__)("Additional CSS"),
- value: customCSS,
- onChange: (newValue) => handleOnChange(newValue),
- onBlur: handleOnBlur,
- className: "block-editor-global-styles-advanced-panel__custom-css-input",
- spellCheck: false,
- help
- }
- )
- ]
+ id: val,
+ title: val,
+ url,
+ type
}
- );
- }
-
- // packages/block-editor/build-module/components/global-styles/background-panel.mjs
- var import_components210 = __toESM(require_components(), 1);
- var import_element259 = __toESM(require_element(), 1);
- var import_i18n200 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/components/background-image-control/index.mjs
- var import_components209 = __toESM(require_components(), 1);
- var import_i18n199 = __toESM(require_i18n(), 1);
- var import_notices12 = __toESM(require_notices(), 1);
- var import_url11 = __toESM(require_url(), 1);
- var import_element258 = __toESM(require_element(), 1);
- var import_data163 = __toESM(require_data(), 1);
- var import_dom71 = __toESM(require_dom(), 1);
- var import_blob2 = __toESM(require_blob(), 1);
- var import_jsx_runtime434 = __toESM(require_jsx_runtime(), 1);
- var IMAGE_BACKGROUND_TYPE = "image";
- var BACKGROUND_POPOVER_PROPS = {
- placement: "left-start",
- offset: 36,
- shift: true,
- className: "block-editor-global-styles-background-panel__popover"
- };
- var noop22 = () => {
+ ]);
};
- var focusToggleButton = (containerRef) => {
- window.requestAnimationFrame(() => {
- const [toggleButton] = import_dom71.focus.tabbable.find(containerRef?.current);
- if (!toggleButton) {
- return;
+ var handleEntitySearch = async (val, suggestionsQuery, fetchSearchSuggestions, withCreateSuggestion, pageOnFront, pageForPosts) => {
+ const { isInitialSuggestions } = suggestionsQuery;
+ const results = await fetchSearchSuggestions(val, suggestionsQuery);
+ results.map((result) => {
+ if (Number(result.id) === pageOnFront) {
+ result.isFrontPage = true;
+ return result;
+ } else if (Number(result.id) === pageForPosts) {
+ result.isBlogHome = true;
+ return result;
}
- toggleButton.focus();
+ return result;
});
- };
- function backgroundSizeHelpText(value) {
- if (value === "cover" || value === void 0) {
- return (0, import_i18n199.__)("Image covers the space evenly.");
- }
- if (value === "contain") {
- return (0, import_i18n199.__)("Image is contained without distortion.");
- }
- return (0, import_i18n199.__)("Image has a fixed width.");
- }
- var coordsToBackgroundPosition = (value) => {
- if (!value || isNaN(value.x) && isNaN(value.y)) {
- return void 0;
+ if (isInitialSuggestions) {
+ return results;
}
- const x2 = isNaN(value.x) ? 0.5 : value.x;
- const y2 = isNaN(value.y) ? 0.5 : value.y;
- return `${x2 * 100}% ${y2 * 100}%`;
+ return isURLLike(val) || !withCreateSuggestion ? results : results.concat({
+ // the `id` prop is intentionally omitted here because it
+ // is never exposed as part of the component's public API.
+ // see: https://github.com/WordPress/gutenberg/pull/19775#discussion_r378931316.
+ title: val,
+ // Must match the existing `<input>`s text value.
+ url: val,
+ // Must match the existing `<input>`s text value.
+ type: CREATE_TYPE
+ });
};
- var backgroundPositionToCoords = (value) => {
- if (!value) {
- return { x: void 0, y: void 0 };
- }
- let [x2, y2] = value.split(" ").map((v2) => parseFloat(v2) / 100);
- x2 = isNaN(x2) ? void 0 : x2;
- y2 = isNaN(y2) ? x2 : y2;
- return { x: x2, y: y2 };
+ function useSearchHandler(suggestionsQuery, allowDirectEntry, withCreateSuggestion) {
+ const { fetchSearchSuggestions, pageOnFront, pageForPosts } = (0, import_data147.useSelect)(
+ (select3) => {
+ const { getSettings: getSettings8 } = select3(store);
+ return {
+ pageOnFront: getSettings8().pageOnFront,
+ pageForPosts: getSettings8().pageForPosts,
+ fetchSearchSuggestions: getSettings8().__experimentalFetchLinkSuggestions
+ };
+ },
+ []
+ );
+ const directEntryHandler = allowDirectEntry ? handleDirectEntry : handleNoop;
+ return (0, import_element227.useCallback)(
+ (val, { isInitialSuggestions }) => {
+ return isURLLike(val) ? directEntryHandler(val, { isInitialSuggestions }) : handleEntitySearch(
+ val,
+ { ...suggestionsQuery, isInitialSuggestions },
+ fetchSearchSuggestions,
+ withCreateSuggestion,
+ pageOnFront,
+ pageForPosts
+ );
+ },
+ [
+ directEntryHandler,
+ fetchSearchSuggestions,
+ pageOnFront,
+ pageForPosts,
+ suggestionsQuery,
+ withCreateSuggestion
+ ]
+ );
+ }
+
+ // packages/block-editor/build-module/components/link-control/search-input.mjs
+ var import_jsx_runtime386 = __toESM(require_jsx_runtime(), 1);
+ var noopSearchHandler = () => Promise.resolve([]);
+ var noop16 = () => {
};
- function InspectorImagePreviewItem({
- as = "span",
- imgUrl,
- toggleProps = {},
- filename,
- label,
- onToggleCallback = noop22
- }) {
- const { isOpen, ...restToggleProps } = toggleProps;
- (0, import_element258.useEffect)(() => {
- if (typeof isOpen !== "undefined") {
- onToggleCallback(isOpen);
- }
- }, [isOpen, onToggleCallback]);
- const renderPreviewContent = () => {
- return /* @__PURE__ */ (0, import_jsx_runtime434.jsxs)(import_components209.__experimentalHStack, { className: "block-editor-global-styles-background-panel__inspector-preview-inner", children: [
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- "span",
- {
- className: "block-editor-global-styles-background-panel__inspector-image-indicator",
- style: {
- backgroundImage: imgUrl ? `url(${imgUrl})` : void 0
+ var LinkControlSearchInput = (0, import_element228.forwardRef)(
+ ({
+ value,
+ children,
+ currentLink = {},
+ className: className2 = null,
+ placeholder = null,
+ withCreateSuggestion = false,
+ onCreateSuggestion = noop16,
+ onChange = noop16,
+ onSelect = noop16,
+ showSuggestions = true,
+ renderSuggestions = (props) => /* @__PURE__ */ (0, import_jsx_runtime386.jsx)(search_results_default2, { ...props }),
+ fetchSuggestions = null,
+ allowDirectEntry = true,
+ showInitialSuggestions = false,
+ suggestionsQuery = {},
+ withURLSuggestion = true,
+ createSuggestionButtonText,
+ hideLabelFromVision = false,
+ suffix,
+ isEntity = false,
+ customValidity: customValidityProp
+ }, ref) => {
+ const genericSearchHandler = useSearchHandler(
+ suggestionsQuery,
+ allowDirectEntry,
+ withCreateSuggestion,
+ withURLSuggestion
+ );
+ const searchHandler = showSuggestions ? fetchSuggestions || genericSearchHandler : noopSearchHandler;
+ const [focusedSuggestion, setFocusedSuggestion] = (0, import_element228.useState)();
+ const onInputChange = (selection2, suggestion) => {
+ onChange(selection2);
+ setFocusedSuggestion(suggestion);
+ };
+ const handleRenderSuggestions = (props) => renderSuggestions({
+ ...props,
+ withCreateSuggestion,
+ createSuggestionButtonText,
+ suggestionsQuery,
+ handleSuggestionClick: (suggestion) => {
+ if (props.handleSuggestionClick) {
+ props.handleSuggestionClick(suggestion);
+ }
+ onSuggestionSelected(suggestion);
+ }
+ });
+ const onSuggestionSelected = async (selectedSuggestion) => {
+ let suggestion = selectedSuggestion;
+ if (CREATE_TYPE === selectedSuggestion.type) {
+ try {
+ suggestion = await onCreateSuggestion(
+ selectedSuggestion.title
+ );
+ if (suggestion?.url) {
+ onSelect(suggestion);
}
+ } catch {
+ }
+ return;
+ }
+ if (allowDirectEntry || suggestion && Object.keys(suggestion).length >= 1) {
+ const { id, url, kind, type, ...restLinkProps } = currentLink ?? {};
+ onSelect(
+ // Some direct entries don't have types or IDs, and we still need to clear the previous ones.
+ { ...restLinkProps, ...suggestion },
+ suggestion
+ );
+ }
+ };
+ const _placeholder = placeholder ?? (0, import_i18n158.__)("Search or type URL");
+ const label = hideLabelFromVision && placeholder !== "" ? _placeholder : (0, import_i18n158.__)("Link");
+ return /* @__PURE__ */ (0, import_jsx_runtime386.jsxs)("div", { className: "block-editor-link-control__search-input-container", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime386.jsx)(
+ URLInput,
+ {
+ disableSuggestions: currentLink?.url === value,
+ label,
+ hideLabelFromVision,
+ className: className2,
+ value,
+ onChange: onInputChange,
+ placeholder: _placeholder,
+ __experimentalRenderSuggestions: showSuggestions ? handleRenderSuggestions : null,
+ __experimentalFetchLinkSuggestions: searchHandler,
+ __experimentalHandleURLSuggestions: true,
+ __experimentalShowInitialSuggestions: showInitialSuggestions,
+ customValidity: customValidityProp,
+ required: false,
+ onSubmit: (suggestion, event) => {
+ const hasSuggestion = suggestion || focusedSuggestion;
+ if (!hasSuggestion && !value?.trim()?.length) {
+ event.preventDefault();
+ } else {
+ onSuggestionSelected(
+ hasSuggestion || { url: value }
+ );
+ }
+ },
+ inputRef: ref,
+ suffix,
+ disabled: isEntity
}
),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsxs)(import_components209.FlexBlock, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.__experimentalTruncate,
- {
- numberOfLines: 1,
- className: "block-editor-global-styles-background-panel__inspector-media-replace-title",
- children: label
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime434.jsx)("span", {}), children: imgUrl ? (0, import_i18n199.sprintf)(
- /* translators: %s: file name */
- (0, import_i18n199.__)("Background image: %s"),
- filename || label
- ) : (0, import_i18n199.__)("No background image selected") })
- ] })
+ children
] });
- };
- return as === "button" ? /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(import_components209.Button, { __next40pxDefaultSize: true, ...restToggleProps, children: renderPreviewContent() }) : renderPreviewContent();
+ }
+ );
+ var search_input_default = LinkControlSearchInput;
+ var __experimentalLinkControlSearchInput = (props) => {
+ (0, import_deprecated21.default)("wp.blockEditor.__experimentalLinkControlSearchInput", {
+ since: "6.8"
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime386.jsx)(LinkControlSearchInput, { ...props });
+ };
+
+ // packages/block-editor/build-module/components/link-control/link-preview.mjs
+ var import_i18n159 = __toESM(require_i18n(), 1);
+ var import_components164 = __toESM(require_components(), 1);
+ var import_compose88 = __toESM(require_compose(), 1);
+ var import_url5 = __toESM(require_url(), 1);
+ var import_dom68 = __toESM(require_dom(), 1);
+ var import_data149 = __toESM(require_data(), 1);
+ var import_notices10 = __toESM(require_notices(), 1);
+ var import_preferences3 = __toESM(require_preferences(), 1);
+
+ // packages/block-editor/build-module/components/link-control/viewer-slot.mjs
+ var import_components163 = __toESM(require_components(), 1);
+ var { Slot: ViewerSlot, Fill: ViewerFill } = (0, import_components163.createSlotFill)(
+ "BlockEditorLinkControlViewer"
+ );
+
+ // packages/block-editor/build-module/components/link-control/use-rich-url-data.mjs
+ var import_data148 = __toESM(require_data(), 1);
+ var import_element229 = __toESM(require_element(), 1);
+ function reducer(state, action) {
+ switch (action.type) {
+ case "RESOLVED":
+ return {
+ ...state,
+ isFetching: false,
+ richData: action.richData
+ };
+ case "ERROR":
+ return {
+ ...state,
+ isFetching: false,
+ richData: null
+ };
+ case "LOADING":
+ return {
+ ...state,
+ isFetching: true
+ };
+ default:
+ throw new Error(`Unexpected action type ${action.type}`);
+ }
}
- function BackgroundControlsPanel({
- label,
- filename,
- url: imgUrl,
- children,
- onToggle: onToggleCallback = noop22,
- hasImageValue,
- onReset,
- hasLocalOverride,
- containerRef
+ function useRemoteUrlData(url) {
+ const [state, dispatch] = (0, import_element229.useReducer)(reducer, {
+ richData: null,
+ isFetching: false
+ });
+ const { fetchRichUrlData } = (0, import_data148.useSelect)((select3) => {
+ const { getSettings: getSettings8 } = select3(store);
+ return {
+ fetchRichUrlData: getSettings8().__experimentalFetchRichUrlData
+ };
+ }, []);
+ (0, import_element229.useEffect)(() => {
+ if (url?.length && fetchRichUrlData && typeof AbortController !== "undefined") {
+ dispatch({
+ type: "LOADING"
+ });
+ const controller = new window.AbortController();
+ const signal = controller.signal;
+ fetchRichUrlData(url, {
+ signal
+ }).then((urlData) => {
+ dispatch({
+ type: "RESOLVED",
+ richData: urlData
+ });
+ }).catch(() => {
+ if (!signal.aborted) {
+ dispatch({
+ type: "ERROR"
+ });
+ }
+ });
+ return () => {
+ controller.abort();
+ };
+ }
+ }, [url]);
+ return state;
+ }
+ var use_rich_url_data_default = useRemoteUrlData;
+
+ // packages/block-editor/build-module/components/link-control/link-preview.mjs
+ var import_jsx_runtime387 = __toESM(require_jsx_runtime(), 1);
+ var { Badge: WCBadge3 } = unlock(import_components164.privateApis);
+ function LinkPreview({
+ value,
+ onEditClick,
+ hasRichPreviews = false,
+ hasUnlinkControl = false,
+ onRemove
}) {
- if (!hasImageValue) {
- return;
+ const showIconLabels = (0, import_data149.useSelect)(
+ (select3) => select3(import_preferences3.store).get("core", "showIconLabels"),
+ []
+ );
+ const showRichPreviews = hasRichPreviews ? value?.url : null;
+ const { richData, isFetching } = use_rich_url_data_default(showRichPreviews);
+ const hasRichData = richData && Object.keys(richData).length;
+ const displayURL = value && (0, import_url5.filterURLForDisplay)((0, import_url5.safeDecodeURI)(value.url), 24) || "";
+ const isEmptyURL = !value?.url?.length;
+ const displayTitle = !isEmptyURL && (0, import_dom68.__unstableStripHTML)(
+ value?.entityTitle || richData?.title || value?.title || displayURL
+ );
+ let icon;
+ if (richData?.icon) {
+ icon = /* @__PURE__ */ (0, import_jsx_runtime387.jsx)("img", { src: richData?.icon, alt: "" });
+ } else if (isEmptyURL) {
+ icon = /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(icon_default, { icon: info_default, size: 32 });
+ } else {
+ icon = /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(icon_default, { icon: globe_default });
}
- const imgLabel = label || (0, import_url11.getFilename)(imgUrl) || (0, import_i18n199.__)("Image");
- return /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.Dropdown,
+ const { createNotice } = (0, import_data149.useDispatch)(import_notices10.store);
+ const ref = (0, import_compose88.useCopyToClipboard)(value.url, () => {
+ createNotice("info", (0, import_i18n159.__)("Link copied to clipboard."), {
+ isDismissible: true,
+ type: "snackbar"
+ });
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
+ import_components164.Flex,
{
- popoverProps: BACKGROUND_POPOVER_PROPS,
- renderToggle: ({ onToggle, isOpen }) => {
- const toggleProps = {
- onClick: onToggle,
- className: "block-editor-global-styles-background-panel__dropdown-toggle",
- "aria-expanded": isOpen,
- "aria-label": (0, import_i18n199.__)(
- "Background size, position and repeat options."
- ),
- isOpen
- };
- return /* @__PURE__ */ (0, import_jsx_runtime434.jsxs)(import_jsx_runtime434.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- InspectorImagePreviewItem,
- {
- imgUrl,
- filename,
- label: imgLabel,
- toggleProps,
- as: "button",
- onToggleCallback
- }
- ),
- onReset && (hasLocalOverride ? /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- InheritanceResetButton,
- {
- className: "block-editor-global-styles-background-panel__reset",
- onResetToInherited: () => {
- onReset();
- if (isOpen) {
- onToggle();
+ role: "group",
+ "aria-label": (0, import_i18n159.__)("Manage link"),
+ className: clsx_default("block-editor-link-control__preview", {
+ "is-current": true,
+ "is-rich": hasRichData,
+ "is-fetching": !!isFetching,
+ "is-preview": true,
+ "is-error": isEmptyURL,
+ "is-url-title": displayTitle === displayURL
+ }),
+ children: /* @__PURE__ */ (0, import_jsx_runtime387.jsxs)(import_components164.Flex, { gap: 0, align: "flex-start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime387.jsxs)(
+ import_components164.Flex,
+ {
+ className: "block-editor-link-control__link-information",
+ role: "figure",
+ "aria-label": (
+ /* translators: Accessibility text for the link preview when editing a link. */
+ (0, import_i18n159.__)("Link information")
+ ),
+ justify: "start",
+ align: "flex-start",
+ children: [
+ value?.image ? /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
+ import_components164.Flex,
+ {
+ className: "block-editor-link-control__preview-image",
+ justify: "center",
+ children: /* @__PURE__ */ (0, import_jsx_runtime387.jsx)("img", { src: value?.image, alt: "" })
}
- focusToggleButton(containerRef);
- }
- }
- ) : /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.Button,
- {
- __next40pxDefaultSize: true,
- label: (0, import_i18n199.__)("Reset"),
- className: "block-editor-global-styles-background-panel__reset",
- size: "small",
- icon: reset_default,
- onClick: () => {
- onReset();
- if (isOpen) {
- onToggle();
+ ) : /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
+ import_components164.Flex,
+ {
+ className: clsx_default(
+ "block-editor-link-control__preview-icon",
+ {
+ "is-image": richData?.icon
+ }
+ ),
+ justify: "center",
+ children: icon
}
- focusToggleButton(containerRef);
- }
- }
- ))
- ] });
- },
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.__experimentalDropdownContentWrapper,
- {
- className: "block-editor-global-styles-background-panel__dropdown-content-wrapper",
- paddingSize: "medium",
- children
- }
- )
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
+ import_components164.Flex,
+ {
+ className: "block-editor-link-control__preview-details",
+ direction: "column",
+ gap: 2,
+ children: !isEmptyURL ? /* @__PURE__ */ (0, import_jsx_runtime387.jsxs)(import_jsx_runtime387.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
+ import_components164.ExternalLink,
+ {
+ className: "block-editor-link-control__preview-title",
+ href: value.url,
+ children: /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(import_components164.__experimentalTruncate, { numberOfLines: 1, children: displayTitle })
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime387.jsx)("span", { className: "block-editor-link-control__preview-info", children: /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(import_components164.__experimentalTruncate, { numberOfLines: 1, children: displayURL }) }),
+ value?.badges?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
+ import_components164.__experimentalHStack,
+ {
+ className: "block-editor-link-control__preview-badges",
+ alignment: "left",
+ gap: 1,
+ children: value.badges.map(
+ (badge, index2) => /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
+ WCBadge3,
+ {
+ intent: badge.intent,
+ children: badge.label
+ },
+ `${badge.label}|${badge.intent}|${index2}`
+ )
+ )
+ }
+ )
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime387.jsx)("span", { className: "block-editor-link-control__preview-error-notice", children: (0, import_i18n159.__)("Link is empty") })
+ }
+ )
+ ]
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
+ import_components164.Button,
+ {
+ icon: pencil_default,
+ label: (0, import_i18n159.__)("Edit link"),
+ onClick: onEditClick,
+ size: "compact",
+ showTooltip: !showIconLabels
+ }
+ ),
+ hasUnlinkControl && /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
+ import_components164.Button,
+ {
+ icon: link_off_default,
+ label: (0, import_i18n159.__)("Remove link"),
+ onClick: onRemove,
+ size: "compact",
+ showTooltip: !showIconLabels
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(
+ import_components164.Button,
+ {
+ icon: copy_small_default,
+ label: (0, import_i18n159.__)("Copy link"),
+ ref,
+ accessibleWhenDisabled: true,
+ disabled: isEmptyURL,
+ size: "compact",
+ showTooltip: !showIconLabels
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime387.jsx)(ViewerSlot, { fillProps: value })
+ ] })
}
);
}
- function LoadingSpinner() {
- return /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(import_components209.Placeholder, { className: "block-editor-global-styles-background-panel__loading", children: /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(import_components209.Spinner, {}) });
- }
- function BackgroundImageControls({
- onChange,
- style,
- inheritedValue,
- onRemoveImage = noop22,
- onResetImage = noop22,
- displayInPanel,
- defaultValues,
- containerRef
- }) {
- const [isUploading, setIsUploading] = (0, import_element258.useState)(false);
- const { getSettings: getSettings7 } = (0, import_data163.useSelect)(store);
- const { id, title, url } = style?.background?.backgroundImage || {
- ...inheritedValue?.background?.backgroundImage
- };
- const { createErrorNotice } = (0, import_data163.useDispatch)(import_notices12.store);
- const onUploadError = (message2) => {
- createErrorNotice(message2, { type: "snackbar" });
- setIsUploading(false);
+
+ // packages/block-editor/build-module/components/link-control/settings.mjs
+ var import_i18n160 = __toESM(require_i18n(), 1);
+ var import_components165 = __toESM(require_components(), 1);
+ var import_jsx_runtime388 = __toESM(require_jsx_runtime(), 1);
+ var noop17 = () => {
+ };
+ var LinkControlSettings = ({ value, onChange = noop17, settings: settings2 }) => {
+ if (!settings2 || !settings2.length) {
+ return null;
+ }
+ const handleSettingChange = (setting) => (newValue) => {
+ onChange({
+ ...value,
+ [setting.id]: newValue
+ });
};
- const resetBackgroundImage = () => onChange(
- setImmutably2(
- style,
- ["background", "backgroundImage"],
- void 0
- )
- );
- const onSelectMedia = (media) => {
- if (!media || !media.url) {
- resetBackgroundImage();
- setIsUploading(false);
- return;
- }
- if ((0, import_blob2.isBlobURL)(media.url)) {
- setIsUploading(true);
- return;
+ const theSettings = settings2.map((setting) => {
+ if ("render" in setting) {
+ if (typeof setting.render === "function") {
+ const renderedContent = setting.render(
+ setting,
+ value,
+ onChange
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime388.jsx)(
+ "div",
+ {
+ className: "block-editor-link-control__setting",
+ children: renderedContent
+ },
+ setting.id
+ );
+ }
+ return null;
}
- if (media.media_type && media.media_type !== IMAGE_BACKGROUND_TYPE || !media.media_type && media.type && media.type !== IMAGE_BACKGROUND_TYPE) {
- onUploadError(
- (0, import_i18n199.__)("Only images can be used as a background image.")
+ return /* @__PURE__ */ (0, import_jsx_runtime388.jsx)(
+ import_components165.CheckboxControl,
+ {
+ className: "block-editor-link-control__setting",
+ label: setting.title,
+ onChange: handleSettingChange(setting),
+ checked: value ? !!value[setting.id] : false,
+ help: setting?.help
+ },
+ setting.id
+ );
+ }).filter(Boolean);
+ return /* @__PURE__ */ (0, import_jsx_runtime388.jsxs)("fieldset", { className: "block-editor-link-control__settings", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime388.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime388.jsx)("legend", {}), children: (0, import_i18n160.__)("Currently selected link settings") }),
+ theSettings
+ ] });
+ };
+ var settings_default2 = LinkControlSettings;
+
+ // packages/block-editor/build-module/components/link-control/use-create-page.mjs
+ var import_i18n161 = __toESM(require_i18n(), 1);
+ var import_element230 = __toESM(require_element(), 1);
+ function useCreatePage(handleCreatePage) {
+ const cancelableCreateSuggestion = (0, import_element230.useRef)();
+ const [isCreatingPage, setIsCreatingPage] = (0, import_element230.useState)(false);
+ const [errorMessage, setErrorMessage] = (0, import_element230.useState)(null);
+ const createPage = async function(suggestionTitle) {
+ setIsCreatingPage(true);
+ setErrorMessage(null);
+ try {
+ cancelableCreateSuggestion.current = makeCancelable(
+ // Using Promise.resolve to allow createSuggestion to return a
+ // non-Promise based value.
+ Promise.resolve(handleCreatePage(suggestionTitle))
);
- return;
+ return await cancelableCreateSuggestion.current.promise;
+ } catch (error2) {
+ if (error2 && error2.isCanceled) {
+ return;
+ }
+ setErrorMessage(
+ error2.message || (0, import_i18n161.__)(
+ "An unknown error occurred during creation. Please try again."
+ )
+ );
+ throw error2;
+ } finally {
+ setIsCreatingPage(false);
}
- const sizeValue = style?.background?.backgroundSize || defaultValues?.backgroundSize;
- const positionValue = style?.background?.backgroundPosition;
- onChange(
- setImmutably2(style, ["background"], {
- ...style?.background,
- backgroundImage: {
- url: media.url,
- id: media.id,
- source: "file",
- title: media.title || void 0
- },
- backgroundPosition: (
- /*
- * A background image uploaded and set in the editor receives a default background position of '50% 0',
- * when the background image size is the equivalent of "Tile".
- * This is to increase the chance that the image's focus point is visible.
- * This is in-editor only to assist with the user experience.
- */
- !positionValue && ("auto" === sizeValue || !sizeValue) ? "50% 0" : positionValue
- ),
- backgroundSize: sizeValue
- })
- );
- setIsUploading(false);
- focusToggleButton(containerRef);
};
- const onFilesDrop2 = (filesList) => {
- getSettings7().mediaUpload({
- allowedTypes: [IMAGE_BACKGROUND_TYPE],
- filesList,
- onFileChange([image]) {
- onSelectMedia(image);
- },
- onError: onUploadError,
- multiple: false
- });
- };
- const hasValue3 = hasBackgroundImageValue(style);
- const onRemove = () => onChange(
- setImmutably2(style, ["background"], {
- backgroundImage: "none"
- })
- );
- const canRemove = !hasValue3 && hasBackgroundImageValue(inheritedValue);
- const imgLabel = title || (0, import_url11.getFilename)(url) || (0, import_i18n199.__)("Image");
- return /* @__PURE__ */ (0, import_jsx_runtime434.jsxs)("div", { className: "block-editor-global-styles-background-panel__image-tools-panel-item", children: [
- isUploading && /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(LoadingSpinner, {}),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- media_replace_flow_default,
- {
- mediaId: id,
- mediaURL: url,
- allowedTypes: [IMAGE_BACKGROUND_TYPE],
- accept: "image/*",
- onSelect: onSelectMedia,
- popoverProps: {
- className: clsx_default({
- "block-editor-global-styles-background-panel__media-replace-popover": displayInPanel
- })
- },
- name: /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- InspectorImagePreviewItem,
- {
- imgUrl: url,
- filename: title,
- label: imgLabel
- }
- ),
- renderToggle: (props) => /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(import_components209.Button, { ...props, __next40pxDefaultSize: true }),
- onError: onUploadError,
- onReset: () => {
- focusToggleButton(containerRef);
- onResetImage();
- },
- children: canRemove && /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.MenuItem,
- {
- onClick: () => {
- focusToggleButton(containerRef);
- onRemove();
- onRemoveImage();
- },
- children: (0, import_i18n199.__)("Remove")
- }
- )
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.DropZone,
- {
- onFilesDrop: onFilesDrop2,
- label: (0, import_i18n199.__)("Drop to upload")
+ (0, import_element230.useEffect)(() => {
+ return () => {
+ if (cancelableCreateSuggestion.current) {
+ cancelableCreateSuggestion.current.cancel();
}
- )
- ] });
+ };
+ }, []);
+ return {
+ createPage,
+ isCreatingPage,
+ errorMessage
+ };
}
- function BackgroundSizeControls({
- onChange,
- style,
- inheritedValue,
- defaultValues
- }) {
- const localSizeValue = style?.background?.backgroundSize;
- const localRepeatValue = style?.background?.backgroundRepeat;
- const localPositionValue = style?.background?.backgroundPosition;
- const localAttachmentValue = style?.background?.backgroundAttachment;
- const inheritedSizeValue = inheritedValue?.background?.backgroundSize;
- const inheritedRepeatValue = inheritedValue?.background?.backgroundRepeat;
- const inheritedPositionValue = inheritedValue?.background?.backgroundPosition;
- const inheritedAttachmentValue = inheritedValue?.background?.backgroundAttachment;
- const sizeValue = localSizeValue || inheritedSizeValue;
- const repeatValue = localRepeatValue || inheritedRepeatValue;
- const imageValue = style?.background?.backgroundImage?.url || inheritedValue?.background?.backgroundImage?.url;
- const isUploadedImage = style?.background?.backgroundImage?.id;
- const positionValue = localPositionValue || inheritedPositionValue;
- const attachmentValue = localAttachmentValue || inheritedAttachmentValue;
- let currentValueForToggle = !sizeValue && isUploadedImage ? defaultValues?.backgroundSize : sizeValue || "auto";
- currentValueForToggle = !["cover", "contain", "auto"].includes(
- currentValueForToggle
- ) ? "auto" : currentValueForToggle;
- const repeatCheckedValue = !(repeatValue === "no-repeat" || currentValueForToggle === "cover" && repeatValue === void 0);
- const updateBackgroundSize = (next) => {
- let nextRepeat = repeatValue;
- let nextPosition = positionValue;
- if (next === "contain") {
- nextRepeat = "no-repeat";
- nextPosition = void 0;
- }
- if (next === "cover") {
- nextRepeat = void 0;
- nextPosition = void 0;
- }
- if ((currentValueForToggle === "cover" || currentValueForToggle === "contain") && next === "auto") {
- nextRepeat = void 0;
- if (!!style?.background?.backgroundImage?.id) {
- nextPosition = "50% 0";
- }
- }
- if (!next && currentValueForToggle === "auto") {
- next = "auto";
- }
- onChange(
- setImmutably2(style, ["background"], {
- ...style?.background,
- backgroundPosition: nextPosition,
- backgroundRepeat: nextRepeat,
- backgroundSize: next
- })
+ var makeCancelable = (promise) => {
+ let hasCanceled_ = false;
+ const wrappedPromise = new Promise((resolve, reject) => {
+ promise.then(
+ (val) => hasCanceled_ ? reject({ isCanceled: true }) : resolve(val),
+ (error2) => hasCanceled_ ? reject({ isCanceled: true }) : reject(error2)
);
+ });
+ return {
+ promise: wrappedPromise,
+ cancel() {
+ hasCanceled_ = true;
+ }
};
- const updateBackgroundPosition = (next) => {
- onChange(
- setImmutably2(
- style,
- ["background", "backgroundPosition"],
- coordsToBackgroundPosition(next)
- )
- );
+ };
+
+ // packages/block-editor/build-module/components/link-control/use-internal-value.mjs
+ var import_element231 = __toESM(require_element(), 1);
+ var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
+ function useInternalValue(value) {
+ const [internalValue, setInternalValue] = (0, import_element231.useState)(value || {});
+ const [previousValue, setPreviousValue] = (0, import_element231.useState)(value);
+ if (!(0, import_fast_deep_equal.default)(value, previousValue)) {
+ setPreviousValue(value);
+ setInternalValue(value);
+ }
+ const setInternalURLInputValue = (nextValue) => {
+ setInternalValue({
+ ...internalValue,
+ url: nextValue
+ });
};
- const toggleIsRepeated = () => onChange(
- setImmutably2(
- style,
- ["background", "backgroundRepeat"],
- repeatCheckedValue === true ? "no-repeat" : "repeat"
- )
- );
- const toggleScrollWithPage = () => onChange(
- setImmutably2(
- style,
- ["background", "backgroundAttachment"],
- attachmentValue === "fixed" ? "scroll" : "fixed"
- )
- );
- const backgroundPositionValue = !positionValue && isUploadedImage && "contain" === sizeValue ? defaultValues?.backgroundPosition : positionValue;
- return /* @__PURE__ */ (0, import_jsx_runtime434.jsxs)(import_components209.__experimentalVStack, { spacing: 3, className: "single-column", children: [
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.FocalPointPicker,
- {
- label: (0, import_i18n199.__)("Focal point"),
- url: imageValue,
- value: backgroundPositionToCoords(backgroundPositionValue),
- onChange: updateBackgroundPosition
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.ToggleControl,
- {
- label: (0, import_i18n199.__)("Fixed background"),
- checked: attachmentValue === "fixed",
- onChange: toggleScrollWithPage
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsxs)(
- import_components209.__experimentalToggleGroupControl,
- {
- label: (0, import_i18n199.__)("Size"),
- value: currentValueForToggle,
- onChange: updateBackgroundSize,
- isBlock: true,
- help: backgroundSizeHelpText(
- sizeValue || defaultValues?.backgroundSize
- ),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.__experimentalToggleGroupControlOption,
- {
- value: "cover",
- label: (0, import_i18n199._x)(
- "Cover",
- "Size option for background image control"
- )
- },
- "cover"
- ),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.__experimentalToggleGroupControlOption,
- {
- value: "contain",
- label: (0, import_i18n199._x)(
- "Contain",
- "Size option for background image control"
- )
- },
- "contain"
- ),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.__experimentalToggleGroupControlOption,
- {
- value: "auto",
- label: (0, import_i18n199._x)(
- "Tile",
- "Size option for background image control"
- )
- },
- "tile"
- )
- ]
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsxs)(import_components209.__experimentalHStack, { justify: "flex-start", spacing: 2, as: "span", children: [
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.__experimentalUnitControl,
- {
- "aria-label": (0, import_i18n199.__)("Background image width"),
- onChange: updateBackgroundSize,
- value: sizeValue,
- __unstableInputWidth: "100px",
- min: 0,
- placeholder: (0, import_i18n199.__)("Auto"),
- disabled: currentValueForToggle !== "auto" || currentValueForToggle === void 0
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- import_components209.ToggleControl,
- {
- label: (0, import_i18n199.__)("Repeat"),
- checked: repeatCheckedValue,
- onChange: toggleIsRepeated,
- disabled: currentValueForToggle === "cover"
+ const setInternalTextInputValue = (nextValue) => {
+ setInternalValue({
+ ...internalValue,
+ title: nextValue
+ });
+ };
+ const createSetInternalSettingValueHandler = (settingsKeys) => (nextValue) => {
+ const settingsUpdates = Object.keys(nextValue).reduce(
+ (acc, key) => {
+ if (settingsKeys.includes(key)) {
+ acc[key] = nextValue[key];
}
- )
- ] })
- ] });
+ return acc;
+ },
+ {}
+ );
+ setInternalValue({
+ ...internalValue,
+ ...settingsUpdates
+ });
+ };
+ return [
+ internalValue,
+ setInternalValue,
+ setInternalURLInputValue,
+ setInternalTextInputValue,
+ createSetInternalSettingValueHandler
+ ];
}
- function BackgroundImagePanel({
+
+ // packages/block-editor/build-module/components/link-control/index.mjs
+ var import_jsx_runtime389 = __toESM(require_jsx_runtime(), 1);
+ var noop18 = () => {
+ };
+ var PREFERENCE_SCOPE = "core/block-editor";
+ var PREFERENCE_KEY = "linkControlSettingsDrawer";
+ function LinkControl({
+ searchInputPlaceholder,
value,
- onChange,
- inheritedValue = value,
- settings: settings2,
- defaultValues = {},
- showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
+ settings: settings2 = DEFAULT_LINK_SETTINGS,
+ onChange = noop18,
+ onInputChange,
+ onRemove,
+ onCancel,
+ noDirectEntry = false,
+ showSuggestions = true,
+ showInitialSuggestions,
+ forceIsEditingLink,
+ createSuggestion,
+ withCreateSuggestion,
+ inputValue: propInputValue = "",
+ suggestionsQuery = {},
+ noURLSuggestion = false,
+ createSuggestionButtonText,
+ hasRichPreviews = false,
+ hasTextControl = false,
+ renderControlBottom = null,
+ handleEntities = false
}) {
- const { globalStyles, _links } = (0, import_data163.useSelect)((select3) => {
- const { getSettings: getSettings7 } = select3(store);
- const _settings = getSettings7();
+ if (withCreateSuggestion === void 0 && createSuggestion) {
+ withCreateSuggestion = true;
+ }
+ const [settingsOpen, setSettingsOpen] = (0, import_element232.useState)(false);
+ const [customValidity, setCustomValidity] = (0, import_element232.useState)(void 0);
+ const { advancedSettingsPreference } = (0, import_data150.useSelect)((select3) => {
+ const prefsStore = select3(import_preferences4.store);
return {
- globalStyles: _settings[globalStylesDataKey],
- _links: _settings[globalStylesLinksDataKey]
+ advancedSettingsPreference: prefsStore.get(PREFERENCE_SCOPE, PREFERENCE_KEY) ?? false
};
}, []);
- const resolvedInheritedValue = (0, import_element258.useMemo)(() => {
- const resolvedValues = {
- background: {}
+ const { set: setPreference } = (0, import_data150.useDispatch)(import_preferences4.store);
+ const setSettingsOpenWithPreference = (prefVal) => {
+ if (setPreference) {
+ setPreference(PREFERENCE_SCOPE, PREFERENCE_KEY, prefVal);
+ }
+ setSettingsOpen(prefVal);
+ };
+ const isSettingsOpen = advancedSettingsPreference || settingsOpen;
+ const isMountingRef = (0, import_element232.useRef)(true);
+ const wrapperNode = (0, import_element232.useRef)();
+ const wrapperRef = (0, import_compose89.useMergeRefs)([wrapperNode, useNativeUndo()]);
+ const textInputRef = (0, import_element232.useRef)();
+ const searchInputRef = (0, import_element232.useRef)();
+ const entityUrlFallbackRef = (0, import_element232.useRef)();
+ const settingsKeys = settings2.map(({ id }) => id);
+ const [
+ internalControlValue,
+ setInternalControlValue,
+ setInternalURLInputValue,
+ setInternalTextInputValue,
+ createSetInternalSettingValueHandler
+ ] = useInternalValue(value);
+ const handleInputChange = (newValue) => {
+ setInternalURLInputValue(newValue);
+ onInputChange?.(newValue);
+ };
+ const isEntity = handleEntities && !!internalControlValue?.id;
+ const baseId = (0, import_compose89.useInstanceId)(LinkControl, "link-control");
+ const helpTextId = isEntity ? `${baseId}__help` : null;
+ const valueHasChanges = value && !(0, import_is_shallow_equal4.isShallowEqualObjects)(internalControlValue, value);
+ const [isEditingLink, setIsEditingLink] = (0, import_element232.useState)(
+ forceIsEditingLink !== void 0 ? forceIsEditingLink : !value || !value.url
+ );
+ const { createPage, isCreatingPage, errorMessage } = useCreatePage(createSuggestion);
+ (0, import_element232.useEffect)(() => {
+ if (forceIsEditingLink === void 0) {
+ return;
+ }
+ setIsEditingLink(forceIsEditingLink);
+ }, [forceIsEditingLink]);
+ (0, import_element232.useEffect)(() => {
+ if (isMountingRef.current) {
+ return;
+ }
+ const nextFocusTarget = import_dom69.focus.focusable.find(wrapperNode.current)[0] || wrapperNode.current;
+ nextFocusTarget.focus();
+ }, [isEditingLink, isCreatingPage]);
+ (0, import_element232.useEffect)(() => {
+ isMountingRef.current = false;
+ return () => {
+ isMountingRef.current = true;
};
- if (!inheritedValue?.background) {
- return inheritedValue;
+ }, []);
+ const prevInputValueRef = (0, import_element232.useRef)();
+ (0, import_element232.useEffect)(() => {
+ if (prevInputValueRef.current === void 0) {
+ prevInputValueRef.current = propInputValue;
+ return;
}
- Object.entries(inheritedValue?.background).forEach(
- ([key, backgroundValue]) => {
- resolvedValues.background[key] = getResolvedValue(
- backgroundValue,
- {
- styles: globalStyles,
- _links
- }
- );
+ if (prevInputValueRef.current !== propInputValue) {
+ console.warn(
+ "LinkControl: The inputValue prop is uncontrolled and only sets the initial value. onInputChange is an observer for the input value. Changes to inputValue from the parent will not update the search input."
+ );
+ prevInputValueRef.current = propInputValue;
+ }
+ }, [propInputValue]);
+ (0, import_element232.useEffect)(() => {
+ if (customValidity?.type === "invalid") {
+ const inputElement = searchInputRef.current;
+ if (inputElement && typeof inputElement.reportValidity === "function") {
+ inputElement.reportValidity();
}
- );
- return resolvedValues;
- }, [globalStyles, _links, inheritedValue]);
- const resetBackground = () => onChange(
- setImmutably2(value, ["background"], {
- gradient: value?.background?.gradient
- })
- );
- const { title, url } = value?.background?.backgroundImage || {
- ...resolvedInheritedValue?.background?.backgroundImage
- };
- const localHasImageValue = hasBackgroundImageValue(value);
- const hasImageValue = localHasImageValue || hasBackgroundImageValue(resolvedInheritedValue);
- const hasLocalOverride = showInheritanceLabelIndicators && localHasImageValue && hasBackgroundImageValue(resolvedInheritedValue);
- const imageValue = value?.background?.backgroundImage || inheritedValue?.background?.backgroundImage;
- const shouldShowBackgroundImageControls = hasImageValue && "none" !== imageValue && (settings2?.background?.backgroundSize || settings2?.background?.backgroundPosition || settings2?.background?.backgroundRepeat);
- const [isDropDownOpen, setIsDropDownOpen] = (0, import_element258.useState)(false);
- const containerRef = (0, import_element258.useRef)();
- return /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- "div",
- {
- ref: containerRef,
- className: clsx_default(
- "block-editor-global-styles-background-panel__inspector-media-replace-container",
- {
- "is-open": isDropDownOpen
- }
- ),
- children: shouldShowBackgroundImageControls ? /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- BackgroundControlsPanel,
- {
- label: title,
- filename: title,
- url,
- onToggle: setIsDropDownOpen,
- hasImageValue,
- hasLocalOverride,
- onReset: localHasImageValue ? resetBackground : void 0,
- containerRef,
- children: /* @__PURE__ */ (0, import_jsx_runtime434.jsxs)(import_components209.__experimentalVStack, { spacing: 3, className: "single-column", children: [
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- BackgroundImageControls,
- {
- onChange,
- style: value,
- inheritedValue: resolvedInheritedValue,
- displayInPanel: true,
- onResetImage: () => {
- setIsDropDownOpen(false);
- resetBackground();
- },
- onRemoveImage: () => setIsDropDownOpen(false),
- defaultValues,
- containerRef
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- BackgroundSizeControls,
- {
- onChange,
- style: value,
- defaultValues,
- inheritedValue: resolvedInheritedValue
- }
- )
- ] })
- }
- ) : /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
- BackgroundImageControls,
- {
- onChange,
- style: value,
- inheritedValue: resolvedInheritedValue,
- defaultValues,
- onResetImage: () => {
- setIsDropDownOpen(false);
- resetBackground();
- },
- onRemoveImage: () => setIsDropDownOpen(false),
- containerRef
- }
- )
}
- );
- }
-
- // packages/block-editor/build-module/components/global-styles/background-panel.mjs
- var import_jsx_runtime435 = __toESM(require_jsx_runtime(), 1);
- var DEFAULT_CONTROLS8 = {
- backgroundImage: true,
- backgroundColor: true,
- gradient: true
- };
- function useHasBackgroundControl(settings2, feature) {
- return settings2?.background?.[feature];
- }
- function useHasBackgroundPanel(settings2) {
- const hasBackgroundColor = useHasBackgroundColorPanel(settings2);
- const { backgroundImage, gradient } = settings2?.background || {};
- return backgroundImage || gradient || hasBackgroundColor;
- }
- function hasBackgroundImageValue(style) {
- return !!style?.background?.backgroundImage?.id || // Supports url() string values in theme.json.
- "string" === typeof style?.background?.backgroundImage || !!style?.background?.backgroundImage?.url;
- }
- function hasBackgroundGradientValue(style) {
- return "string" === typeof style?.background?.gradient && style?.background?.gradient !== "";
- }
- function hasBackgroundColorValue(style) {
- return !!style?.color?.background;
- }
- function hasLegacyColorGradientValue(style) {
- return !!style?.color?.gradient;
- }
- function BackgroundToolsPanel({
- resetAllFilter,
- onChange,
- value,
- panelId,
- children,
- headerLabel
- }) {
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- const resetAll = () => {
- const updatedValue = resetAllFilter(value);
- onChange(updatedValue);
+ }, [customValidity]);
+ const hasLinkValue = value?.url?.trim()?.length > 0;
+ const stopEditing = () => {
+ setIsEditingLink(false);
};
- return /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
- import_components210.__experimentalToolsPanel,
- {
- label: headerLabel,
- resetAll,
- panelId,
- hasInnerWrapper: true,
- className: "background-block-support-panel",
- __experimentalFirstVisibleItemClass: "first",
- __experimentalLastVisibleItemClass: "last",
- dropdownMenuProps,
- children: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)("div", { className: "background-block-support-panel__inner-wrapper", children })
+ const validateUrl = (urlToValidate) => {
+ const invalidResult = {
+ type: "invalid",
+ message: (0, import_i18n162.__)("Please enter a valid URL.")
+ };
+ const validResult = {
+ type: "valid"
+ };
+ const trimmedValue = urlToValidate?.trim();
+ if (!trimmedValue?.length || !isURLLike(trimmedValue)) {
+ return invalidResult;
}
- );
- }
- function BackgroundImagePanel2({
- as: Wrapper = BackgroundToolsPanel,
- value,
- onChange,
- inheritedValue = value,
- settings: settings2,
- panelId,
- defaultControls = DEFAULT_CONTROLS8,
- defaultValues = {},
- headerLabel = (0, import_i18n200.__)("Background"),
- contrastWarning,
- showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
- }) {
- const {
- colors: colors2,
- gradients,
- allColors,
- areCustomSolidsEnabled,
- areCustomGradientsEnabled,
- hasSolidColors,
- hasGradientColors,
- decodeValue,
- encodeGradientValue
- } = useColorGradientSettings(settings2);
- const hasBackgroundGradientControl = useHasBackgroundControl(
- settings2,
- "gradient"
- );
- const hasColorPanelBackgroundSupport = useHasBackgroundColorPanel(settings2);
- const showBackgroundColorControl = hasColorPanelBackgroundSupport && hasSolidColors;
- const showBackgroundGradientControl = hasGradientColors && hasBackgroundGradientControl;
- const showLegacyColorGradientControl = hasColorPanelBackgroundSupport && hasGradientColors && !hasBackgroundGradientControl;
- const showBackgroundImageControl = useHasBackgroundControl(
- settings2,
- "backgroundImage"
- );
- const resetAllFilter = (0, import_element259.useCallback)(
- (previousValue) => {
- const clearsColorBackground = showBackgroundColorControl;
- const clearsColorGradient = hasBackgroundGradientControl || showLegacyColorGradientControl;
- if (!clearsColorBackground && !clearsColorGradient) {
- return { ...previousValue, background: {} };
+ if (isHashLink(trimmedValue) || isRelativePath(trimmedValue)) {
+ return validResult;
+ }
+ const urlToCheck = (0, import_url6.prependHTTPS)(trimmedValue);
+ return (0, import_url6.isURL)(urlToCheck) ? validResult : invalidResult;
+ };
+ const handleSelectSuggestion = (updatedValue) => {
+ const isEntitySuggestion = updatedValue && updatedValue.id && updatedValue.type && !LINK_ENTRY_TYPES.includes(updatedValue.type);
+ if (!isEntitySuggestion) {
+ const urlToValidate = updatedValue?.url || currentUrlInputValue;
+ const validation = validateUrl(urlToValidate);
+ if (validation.type === "invalid") {
+ setCustomValidity(validation);
+ return;
}
- return {
- ...previousValue,
- background: {},
- color: {
- ...previousValue?.color,
- ...clearsColorBackground && { background: void 0 },
- ...clearsColorGradient && { gradient: void 0 }
- }
+ const { url: normalizedUrl } = normalizeUrl(urlToValidate);
+ updatedValue = {
+ ...updatedValue,
+ url: normalizedUrl
};
- },
- [
- hasBackgroundGradientControl,
- showBackgroundColorControl,
- showLegacyColorGradientControl
- ]
- );
- if (!showBackgroundImageControl && !showBackgroundColorControl && !showBackgroundGradientControl && !showLegacyColorGradientControl) {
- return null;
- }
- const resetBackground = () => onChange(
- setImmutably2(
- value,
- ["background", "backgroundImage"],
- void 0
- )
- );
- const resetGradient = () => {
- let newValue = setImmutably2(
- value,
- ["background", "gradient"],
- void 0
+ }
+ if (updatedValue?.kind === "taxonomy" && updatedValue?.url) {
+ entityUrlFallbackRef.current = updatedValue.url;
+ }
+ const nonSettingsChanges = Object.keys(updatedValue).reduce(
+ (acc, key) => {
+ if (!settingsKeys.includes(key)) {
+ acc[key] = updatedValue[key];
+ }
+ return acc;
+ },
+ {}
);
- newValue = setImmutably2(newValue, ["color", "gradient"], void 0);
- onChange(newValue);
+ onChange({
+ ...internalControlValue,
+ ...nonSettingsChanges,
+ // As title is not a setting, it must be manually applied
+ // in such a way as to preserve the users changes over
+ // any "title" value provided by the "suggestion".
+ title: internalControlValue?.title || updatedValue?.title
+ });
+ setCustomValidity(void 0);
+ stopEditing();
};
- const backgroundColor = decodeValue(inheritedValue?.color?.background);
- const userBackgroundColor = decodeValue(value?.color?.background);
- const setBackgroundColor = (newColor, newSlug) => {
- const newValue = setImmutably2(
- value,
- ["color", "background"],
- encodeColorValueWithPalette(allColors, newColor, newSlug)
- );
- if (showLegacyColorGradientControl) {
- newValue.color.gradient = void 0;
+ const validateAndSetValidity = () => {
+ if (currentInputIsEmpty) {
+ return false;
}
- onChange(newValue);
+ const trimmedValue = currentUrlInputValue.trim();
+ const isEntityLink = internalControlValue && internalControlValue.id && internalControlValue.type && !LINK_ENTRY_TYPES.includes(internalControlValue.type);
+ const urlUnchanged = value?.url === trimmedValue;
+ if (isEntityLink && urlUnchanged) {
+ setCustomValidity(void 0);
+ return true;
+ }
+ const validation = validateUrl(currentUrlInputValue);
+ if (validation.type === "invalid") {
+ setCustomValidity(validation);
+ return false;
+ }
+ setCustomValidity(void 0);
+ return true;
};
- const resetBackgroundColor = () => {
- const newValue = setImmutably2(
- value,
- ["color", "background"],
- void 0
- );
- if (showLegacyColorGradientControl) {
- newValue.color.gradient = void 0;
+ const submitUrlValue = () => {
+ if (valueHasChanges) {
+ onChange({
+ ...value,
+ ...internalControlValue,
+ url: normalizeUrl(currentUrlInputValue).url
+ });
}
- onChange(newValue);
+ stopEditing();
+ setCustomValidity(void 0);
};
- const legacyColorGradient = decodeValue(inheritedValue?.color?.gradient);
- const userLegacyColorGradient = decodeValue(value?.color?.gradient);
- const setLegacyColorGradient = (newGradient, newSlug) => {
- const newValue = setImmutably2(
- value,
- ["color", "gradient"],
- encodeGradientValue(newGradient, newSlug)
- );
- newValue.color.background = void 0;
- onChange(newValue);
+ const handleSubmit = () => {
+ if (!validateAndSetValidity()) {
+ return;
+ }
+ submitUrlValue();
};
- const resetLegacyColorGradient = () => onChange(setImmutably2(value, ["color", "gradient"], void 0));
- const currentGradient = decodeValue(
- value?.background?.gradient ?? value?.color?.gradient
- );
- const inheritedGradient = decodeValue(
- inheritedValue?.background?.gradient ?? inheritedValue?.color?.gradient
- );
- const setGradient = (newGradient, newSlug) => {
- let newValue = setImmutably2(
- value,
- ["background", "gradient"],
- encodeGradientValue(newGradient, newSlug)
- );
- newValue = setImmutably2(newValue, ["color", "gradient"], void 0);
- onChange(newValue);
+ const handleSubmitWithEnter = (event) => {
+ const { keyCode } = event;
+ if (keyCode === import_keycodes19.ENTER && !currentInputIsEmpty) {
+ event.preventDefault();
+ handleSubmit();
+ }
};
- const inheritanceProps = (isInherited, hasLocalOverride, classNames2) => showInheritanceLabelIndicators ? getInheritanceProps(isInherited, hasLocalOverride, classNames2) : { className: classNames2 };
- const inheritedBackgroundImage = hasBackgroundImageValue({
- background: {
- backgroundImage: inheritedValue?.background?.backgroundImage
+ const resetInternalValues = () => {
+ setInternalControlValue(value);
+ };
+ const handleCancel = (event) => {
+ event.preventDefault();
+ event.stopPropagation();
+ resetInternalValues();
+ setCustomValidity(void 0);
+ if (hasLinkValue) {
+ stopEditing();
+ } else {
+ onRemove?.();
}
- });
- const hasLocalBackgroundImage = hasBackgroundImageValue(value);
- return /* @__PURE__ */ (0, import_jsx_runtime435.jsxs)(
- Wrapper,
+ onCancel?.();
+ };
+ const [shouldFocusSearchInput, setShouldFocusSearchInput] = (0, import_element232.useState)(false);
+ const handleUnlink = () => {
+ const { id, kind, type, ...restValue } = internalControlValue;
+ setInternalControlValue({
+ ...restValue,
+ id: void 0,
+ kind: void 0,
+ type: void 0,
+ url: void 0
+ });
+ setShouldFocusSearchInput(true);
+ };
+ (0, import_element232.useEffect)(() => {
+ if (shouldFocusSearchInput) {
+ searchInputRef.current?.focus();
+ setShouldFocusSearchInput(false);
+ }
+ }, [shouldFocusSearchInput]);
+ const currentUrlInputValue = internalControlValue?.url !== void 0 ? internalControlValue.url : propInputValue || "";
+ const currentInputIsEmpty = !currentUrlInputValue?.trim()?.length;
+ (0, import_element232.useEffect)(() => {
+ setCustomValidity(void 0);
+ }, [currentUrlInputValue]);
+ const isUrlValid = !customValidity;
+ const shownUnlinkControl = onRemove && value && !isEditingLink && !isCreatingPage;
+ const showActions = isEditingLink && hasLinkValue;
+ const showTextControl = hasLinkValue && hasTextControl;
+ const isEditing = (isEditingLink || !value) && !isCreatingPage;
+ const isDisabled = currentInputIsEmpty || !isUrlValid || value && !valueHasChanges;
+ const showSettings = !!settings2?.length && isEditingLink && hasLinkValue;
+ const previewValue = (0, import_element232.useMemo)(() => {
+ if (value?.kind === "taxonomy" && !value?.url && entityUrlFallbackRef.current) {
+ return {
+ ...value,
+ url: entityUrlFallbackRef.current
+ };
+ }
+ return value;
+ }, [value]);
+ return /* @__PURE__ */ (0, import_jsx_runtime389.jsxs)(
+ "div",
{
- resetAllFilter,
- value,
- onChange,
- panelId,
- headerLabel,
+ tabIndex: -1,
+ ref: wrapperRef,
+ className: "block-editor-link-control",
children: [
- showBackgroundImageControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
- InheritanceToolsPanelItem,
- {
- ...inheritanceProps(
- inheritedBackgroundImage && !hasLocalBackgroundImage,
- hasLocalBackgroundImage && inheritedBackgroundImage,
- "block-editor-color-gradient-item"
- ),
- showLocalOverrideActionsInLabel: false,
- hasValue: () => hasBackgroundImageValue(value),
- label: (0, import_i18n200.__)("Image"),
- onDeselect: resetBackground,
- isShownByDefault: defaultControls.backgroundImage,
- panelId,
- children: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
- BackgroundImagePanel,
- {
- value,
- onChange,
- settings: settings2,
- inheritedValue,
- defaultControls,
- defaultValues,
- showInheritanceLabelIndicators
- }
- )
- }
- ),
- showBackgroundColorControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
- ColorGradientDropdownItem,
- {
- label: (0, import_i18n200.__)("Color"),
- hasValue: () => hasBackgroundColorValue(value),
- resetValue: resetBackgroundColor,
- isShownByDefault: defaultControls.backgroundColor,
- indicators: [userBackgroundColor ?? backgroundColor],
- contrastWarning,
- showInheritanceLabelIndicators,
- isPlaceholder: userBackgroundColor === void 0 && backgroundColor !== void 0,
- hasInheritedValue: backgroundColor !== void 0,
- tabs: [
- {
- key: "background",
- label: (0, import_i18n200.__)("Color"),
- inheritedValue: backgroundColor,
- // The picker selects by slug: `userSlug` when the
- // block has its own value, otherwise
- // `inheritedSlug`. Hex matching would mark two
- // same-hex presets as both selected.
- inheritedSlug: extractPresetSlug(
- inheritedValue?.color?.background,
- "color"
+ isCreatingPage && /* @__PURE__ */ (0, import_jsx_runtime389.jsxs)("div", { className: "block-editor-link-control__loading", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(import_components166.Spinner, {}),
+ " ",
+ (0, import_i18n162.__)("Creating"),
+ "\u2026"
+ ] }),
+ isEditing && /* @__PURE__ */ (0, import_jsx_runtime389.jsxs)(import_jsx_runtime389.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime389.jsxs)(
+ "div",
+ {
+ className: clsx_default({
+ "block-editor-link-control__search-input-wrapper": true,
+ "has-text-control": showTextControl,
+ "has-actions": showActions
+ }),
+ children: [
+ showTextControl && /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ import_components166.TextControl,
+ {
+ ref: textInputRef,
+ className: "block-editor-link-control__field block-editor-link-control__text-content",
+ label: (0, import_i18n162.__)("Text"),
+ value: internalControlValue?.title,
+ onChange: setInternalTextInputValue,
+ onKeyDown: handleSubmitWithEnter
+ }
),
- userSlug: extractPresetSlug(
- value?.color?.background,
- "color"
+ /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ search_input_default,
+ {
+ ref: searchInputRef,
+ currentLink: value,
+ className: "block-editor-link-control__field block-editor-link-control__search-input",
+ placeholder: searchInputPlaceholder,
+ value: currentUrlInputValue,
+ withCreateSuggestion,
+ onCreateSuggestion: createPage,
+ onChange: handleInputChange,
+ onSelect: handleSelectSuggestion,
+ showInitialSuggestions,
+ allowDirectEntry: !noDirectEntry,
+ showSuggestions,
+ suggestionsQuery,
+ withURLSuggestion: !noURLSuggestion,
+ createSuggestionButtonText,
+ hideLabelFromVision: !showTextControl,
+ isEntity,
+ customValidity,
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ SearchSuffixControl,
+ {
+ isEntity,
+ showActions,
+ isDisabled,
+ onUnlink: handleUnlink,
+ onSubmit: handleSubmit,
+ helpTextId
+ }
+ )
+ }
),
- setValue: setBackgroundColor,
- userValue: userBackgroundColor,
- isPlaceholder: userBackgroundColor === void 0 && backgroundColor !== void 0
- }
- ],
- colorGradientControlSettings: {
- colors: colors2,
- disableCustomColors: !areCustomSolidsEnabled
- },
- panelId
- }
+ isEntity && helpTextId && /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ "p",
+ {
+ id: helpTextId,
+ className: "block-editor-link-control__help",
+ children: (0, import_i18n162.sprintf)(
+ /* translators: %s: entity type (e.g., page, post) */
+ (0, import_i18n162.__)("Synced with the selected %s."),
+ internalControlValue?.type || "item"
+ )
+ }
+ )
+ ]
+ }
+ ),
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ import_components166.Notice,
+ {
+ className: "block-editor-link-control__search-error",
+ status: "error",
+ isDismissible: false,
+ children: errorMessage
+ }
+ )
+ ] }),
+ value && !isEditingLink && !isCreatingPage && /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ LinkPreview,
+ {
+ value: previewValue,
+ onEditClick: () => setIsEditingLink(true),
+ hasRichPreviews,
+ hasUnlinkControl: shownUnlinkControl,
+ onRemove: () => {
+ onRemove();
+ setIsEditingLink(true);
+ }
+ },
+ previewValue?.url
),
- showBackgroundGradientControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
- ColorGradientDropdownItem,
+ showSettings && /* @__PURE__ */ (0, import_jsx_runtime389.jsx)("div", { className: "block-editor-link-control__tools", children: !currentInputIsEmpty && /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ settings_drawer_default,
{
- label: (0, import_i18n200.__)("Gradient"),
- hasValue: () => hasBackgroundGradientValue(value),
- resetValue: resetGradient,
- isShownByDefault: defaultControls.gradient,
- indicators: [currentGradient ?? inheritedGradient],
- showInheritanceLabelIndicators,
- isPlaceholder: currentGradient === void 0 && inheritedGradient !== void 0,
- hasInheritedValue: inheritedGradient !== void 0,
- tabs: [
+ settingsOpen: isSettingsOpen,
+ setSettingsOpen: setSettingsOpenWithPreference,
+ children: /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ settings_default2,
{
- key: "gradient",
- label: (0, import_i18n200.__)("Gradient"),
- inheritedValue: inheritedGradient,
- inheritedSlug: extractPresetSlug(
- inheritedValue?.background?.gradient ?? inheritedValue?.color?.gradient,
- "gradient"
- ),
- userSlug: extractPresetSlug(
- value?.background?.gradient ?? value?.color?.gradient,
- "gradient"
- ),
- setValue: setGradient,
- userValue: currentGradient,
- isGradient: true,
- isPlaceholder: currentGradient === void 0 && inheritedGradient !== void 0
+ value: internalControlValue,
+ settings: settings2,
+ onChange: createSetInternalSettingValueHandler(
+ settingsKeys
+ )
}
- ],
- colorGradientControlSettings: {
- gradients,
- disableCustomGradients: !areCustomGradientsEnabled
- },
- panelId
+ )
}
- ),
- showLegacyColorGradientControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
- ColorGradientDropdownItem,
+ ) }),
+ showActions && /* @__PURE__ */ (0, import_jsx_runtime389.jsxs)(
+ import_components166.__experimentalHStack,
{
- label: (0, import_i18n200.__)("Gradient"),
- hasValue: () => hasLegacyColorGradientValue(value),
- resetValue: resetLegacyColorGradient,
- isShownByDefault: defaultControls.gradient,
- indicators: [
- userLegacyColorGradient ?? legacyColorGradient
- ],
- showInheritanceLabelIndicators,
- isPlaceholder: userLegacyColorGradient === void 0 && legacyColorGradient !== void 0,
- hasInheritedValue: legacyColorGradient !== void 0,
- tabs: [
- {
- key: "gradient",
- label: (0, import_i18n200.__)("Gradient"),
- inheritedValue: legacyColorGradient,
- inheritedSlug: extractPresetSlug(
- inheritedValue?.color?.gradient,
- "gradient"
- ),
- userSlug: extractPresetSlug(
- value?.color?.gradient,
- "gradient"
- ),
- setValue: setLegacyColorGradient,
- userValue: userLegacyColorGradient,
- isGradient: true,
- isPlaceholder: userLegacyColorGradient === void 0 && legacyColorGradient !== void 0
- }
- ],
- colorGradientControlSettings: {
- gradients,
- disableCustomGradients: !areCustomGradientsEnabled
- },
- panelId
+ justify: "right",
+ className: "block-editor-link-control__search-actions",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ import_components166.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: handleCancel,
+ children: (0, import_i18n162.__)("Cancel")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ import_components166.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ onClick: isDisabled ? noop18 : handleSubmit,
+ className: "block-editor-link-control__search-submit",
+ "aria-disabled": isDisabled,
+ children: (0, import_i18n162.__)("Apply")
+ }
+ )
+ ]
}
- )
+ ),
+ !isCreatingPage && renderControlBottom && renderControlBottom()
]
}
);
}
-
- // packages/block-editor/build-module/components/global-styles/state-control.mjs
- var import_i18n201 = __toESM(require_i18n(), 1);
- var import_components211 = __toESM(require_components(), 1);
- var import_jsx_runtime436 = __toESM(require_jsx_runtime(), 1);
- function StateControl({
- viewportStates = [],
- pseudoStates = [],
- viewportValue = "default",
- pseudoStateValue = "default",
- onChangeViewport,
- onChangePseudoState,
- showText = true,
- popoverProps: popoverProps3 = {}
+ function SearchSuffixControl({
+ isEntity,
+ showActions,
+ isDisabled,
+ onUnlink,
+ onSubmit,
+ helpTextId
}) {
- if (!viewportStates.length && !pseudoStates.length) {
- return null;
- }
- const viewportOptions = [
- { label: (0, import_i18n201.__)("Default"), value: "default" },
- ...viewportStates.map((state) => ({
- label: state.label,
- value: state.value
- }))
- ];
- const pseudoStateOptions = [
- { label: (0, import_i18n201.__)("Default"), value: "default" },
- ...pseudoStates.map((state) => ({
- label: state.label,
- value: state.value
- }))
- ];
- const hasViewportOptions = viewportStates.length > 0;
- const hasPseudoStateOptions = pseudoStates.length > 0;
- const triggerLabel = (0, import_i18n201.__)("States");
- const activeStates = [];
- if (hasViewportOptions && viewportValue !== "default") {
- const selectedViewport = viewportOptions.find(
- (option) => option.value === viewportValue
+ if (isEntity) {
+ return /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ import_components166.Button,
+ {
+ icon: link_off_default,
+ onClick: onUnlink,
+ "aria-describedby": helpTextId,
+ showTooltip: true,
+ label: (0, import_i18n162.__)("Unsync and edit"),
+ __next40pxDefaultSize: true
+ }
);
- if (selectedViewport) {
- activeStates.push({
- key: `viewport-${selectedViewport.value}`,
- label: selectedViewport.label
- });
- }
}
- if (hasPseudoStateOptions && pseudoStateValue !== "default") {
- const selectedPseudoState = pseudoStateOptions.find(
- (option) => option.value === pseudoStateValue
- );
- if (selectedPseudoState) {
- activeStates.push({
- key: `pseudo-${selectedPseudoState.value}`,
- label: selectedPseudoState.label
- });
- }
+ if (showActions) {
+ return void 0;
}
- const currentStateLabel = activeStates.length ? activeStates.map((state) => state.label).join(", ") : (0, import_i18n201.__)("Default");
- const icon = showText ? chevron_down_default : more_vertical_default;
- const toggleProps = showText ? { size: "compact", iconPosition: "right" } : { size: "small" };
- return /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
- Stack,
+ return /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(import_components166.__experimentalInputControlSuffixWrapper, { variant: "control", children: /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(
+ import_components166.Button,
{
- direction: "column",
- gap: "sm",
- align: "flex-end",
- className: "block-editor-global-styles-state-control",
- children: /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
- import_components211.DropdownMenu,
- {
- icon,
- label: showText ? triggerLabel : (0, import_i18n201.sprintf)(
- /* translators: %s: Current state (e.g. "Hover", "Focus") */
- (0, import_i18n201.__)("State: %s"),
- currentStateLabel
- ),
- popoverProps: {
- placement: "right-start",
- ...popoverProps3
- },
- text: showText ? triggerLabel : void 0,
- toggleProps,
- children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime436.jsxs)(import_jsx_runtime436.Fragment, { children: [
- hasViewportOptions && /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(import_components211.MenuGroup, { label: (0, import_i18n201.__)("Viewport"), children: viewportOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
- import_components211.MenuItem,
- {
- onClick: () => {
- onChangeViewport?.(option.value);
- if (!hasPseudoStateOptions) {
- onClose();
- }
- },
- icon: viewportValue === option.value ? check_default : null,
- children: option.label
- },
- `viewport-${option.value}`
- )) }),
- hasPseudoStateOptions && /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(import_components211.MenuGroup, { label: (0, import_i18n201.__)("Pseudo state"), children: pseudoStateOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
- import_components211.MenuItem,
- {
- onClick: () => {
- onChangePseudoState?.(
- option.value
- );
- if (!hasViewportOptions) {
- onClose();
- }
- },
- icon: pseudoStateValue === option.value ? check_default : null,
- children: option.label
- },
- `pseudo-${option.value}`
- )) })
- ] })
- }
- )
+ onClick: isDisabled ? noop18 : onSubmit,
+ label: (0, import_i18n162.__)("Submit"),
+ icon: keyboard_return_default,
+ className: "block-editor-link-control__search-submit",
+ "aria-disabled": isDisabled,
+ size: "small"
}
- );
+ ) });
}
+ LinkControl.ViewerFill = ViewerFill;
+ LinkControl.DEFAULT_LINK_SETTINGS = DEFAULT_LINK_SETTINGS;
+ var DeprecatedExperimentalLinkControl = (props) => {
+ (0, import_deprecated22.default)("wp.blockEditor.__experimentalLinkControl", {
+ since: "6.8",
+ alternative: "wp.blockEditor.LinkControl"
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime389.jsx)(LinkControl, { ...props });
+ };
+ DeprecatedExperimentalLinkControl.ViewerFill = LinkControl.ViewerFill;
+ DeprecatedExperimentalLinkControl.DEFAULT_LINK_SETTINGS = LinkControl.DEFAULT_LINK_SETTINGS;
+ var link_control_default = LinkControl;
- // packages/block-editor/build-module/components/global-styles/state-control-badges.mjs
- var import_components212 = __toESM(require_components(), 1);
- var import_i18n202 = __toESM(require_i18n(), 1);
- var import_jsx_runtime437 = __toESM(require_jsx_runtime(), 1);
- var { Badge: WCBadge5 } = unlock(import_components212.privateApis);
- function StateControlBadges({
- viewportStates = [],
- pseudoStates = [],
- viewportValue = "default",
- pseudoStateValue = "default",
- className = "block-editor-global-styles-state-control__badges"
- }) {
- const activeStates = [];
- const selectedViewport = viewportStates.find(
- (state) => state.value === viewportValue
- );
- const selectedPseudoState = pseudoStates.find(
- (state) => state.value === pseudoStateValue
- );
- if (selectedViewport) {
- activeStates.push({
- key: `viewport-${selectedViewport.value}`,
- label: selectedViewport.label,
- tooltipText: (0, import_i18n202.sprintf)(
- /* translators: %s: viewport name, e.g. "Tablet". */
- (0, import_i18n202.__)("Style changes apply to the %s viewport."),
- selectedViewport.label
- )
- });
- }
- if (selectedPseudoState) {
- activeStates.push({
- key: `pseudo-${selectedPseudoState.value}`,
- label: selectedPseudoState.label,
- tooltipText: (0, import_i18n202.sprintf)(
- /* translators: %s: pseudo state name, e.g. "Hover". */
- (0, import_i18n202.__)("Style changes apply to the %s state."),
- selectedPseudoState.label
- )
- });
- }
- return /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(
- Stack,
- {
- className,
- direction: "row",
- justify: "flex-start",
- gap: "xs",
- wrap: "wrap",
- children: activeStates.map((state) => {
- const badge = /* @__PURE__ */ (0, import_jsx_runtime437.jsxs)(
- WCBadge5,
- {
- className: "block-editor-global-styles-state-control__badge",
- intent: "info",
- children: [
- state.label,
- !!state.tooltipText && /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime437.jsx)("span", {}), children: state.tooltipText })
- ]
- },
- state.key
- );
- if (!state.tooltipText) {
- return badge;
+ // packages/block-editor/build-module/components/line-height-control/index.mjs
+ var import_i18n163 = __toESM(require_i18n(), 1);
+ var import_components167 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/line-height-control/utils.mjs
+ var BASE_DEFAULT_VALUE = 1.5;
+ var STEP = 0.01;
+ var SPIN_FACTOR = 10;
+ var RESET_VALUE = "";
+ function isLineHeightDefined(lineHeight) {
+ return lineHeight !== void 0 && lineHeight !== RESET_VALUE;
+ }
+
+ // packages/block-editor/build-module/components/line-height-control/index.mjs
+ var import_jsx_runtime390 = __toESM(require_jsx_runtime(), 1);
+ var LineHeightControl = ({
+ /**
+ * Start opting into the larger default height that will become the default size in a future version.
+ *
+ * @deprecated Default behavior since WordPress 7.1. Prop can be safely removed.
+ */
+ __next40pxDefaultSize: _next40pxDefaultSize,
+ value: lineHeight,
+ onChange,
+ __unstableInputWidth = "60px",
+ ...otherProps
+ }) => {
+ const isDefined = isLineHeightDefined(lineHeight);
+ const adjustNextValue = (nextValue, wasTypedOrPasted) => {
+ if (isDefined) {
+ return nextValue;
+ }
+ const spin = STEP * SPIN_FACTOR;
+ switch (`${nextValue}`) {
+ case `${spin}`:
+ return BASE_DEFAULT_VALUE + spin;
+ case "0": {
+ if (wasTypedOrPasted) {
+ return nextValue;
}
- return /* @__PURE__ */ (0, import_jsx_runtime437.jsxs)(tooltip_exports.Root, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(
- tooltip_exports.Trigger,
- {
- render: /* @__PURE__ */ (0, import_jsx_runtime437.jsx)("span", { className: "block-editor-global-styles-state-control__badge-tooltip-trigger", children: badge })
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(tooltip_exports.Popup, { children: state.tooltipText })
- ] }, state.key);
- })
+ return BASE_DEFAULT_VALUE - spin;
+ }
+ case "":
+ return BASE_DEFAULT_VALUE;
+ default:
+ return nextValue;
}
- );
- }
+ };
+ const stateReducer = (state, action) => {
+ const wasTypedOrPasted = ["insertText", "insertFromPaste"].includes(
+ action.payload.event.nativeEvent?.inputType
+ );
+ const value2 = adjustNextValue(state.value, wasTypedOrPasted);
+ return { ...state, value: value2 };
+ };
+ const value = isDefined ? lineHeight : RESET_VALUE;
+ const handleOnChange = (nextValue, { event }) => {
+ if (nextValue === "") {
+ onChange();
+ return;
+ }
+ if (event.type === "click") {
+ onChange(adjustNextValue(`${nextValue}`, false));
+ return;
+ }
+ onChange(`${nextValue}`);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime390.jsx)("div", { className: "block-editor-line-height-control", children: /* @__PURE__ */ (0, import_jsx_runtime390.jsx)(
+ import_components167.__experimentalNumberControl,
+ {
+ placeholder: BASE_DEFAULT_VALUE,
+ ...otherProps,
+ __unstableInputWidth,
+ __unstableStateReducer: stateReducer,
+ onChange: handleOnChange,
+ label: (0, import_i18n163.__)("Line height"),
+ step: STEP,
+ spinFactor: SPIN_FACTOR,
+ value,
+ min: 0,
+ spinControls: "custom"
+ }
+ ) });
+ };
+ var line_height_control_default = LineHeightControl;
- // packages/block-editor/build-module/components/global-styles/inherited-value-context.mjs
- var import_element261 = __toESM(require_element(), 1);
- var import_data165 = __toESM(require_data(), 1);
- var import_blocks90 = __toESM(require_blocks(), 1);
+ // packages/block-editor/build-module/components/media-replace-flow/index.mjs
+ var import_i18n164 = __toESM(require_i18n(), 1);
+ var import_a11y19 = __toESM(require_a11y(), 1);
+ var import_components168 = __toESM(require_components(), 1);
+ var import_data151 = __toESM(require_data(), 1);
+ var import_keycodes20 = __toESM(require_keycodes(), 1);
+ var import_compose90 = __toESM(require_compose(), 1);
+ var import_dom70 = __toESM(require_dom(), 1);
+ var import_notices11 = __toESM(require_notices(), 1);
+ var import_element233 = __toESM(require_element(), 1);
- // packages/block-editor/build-module/hooks/block-style-variation.mjs
- var import_blocks89 = __toESM(require_blocks(), 1);
- var import_data164 = __toESM(require_data(), 1);
- var import_element260 = __toESM(require_element(), 1);
- var import_jsx_runtime438 = __toESM(require_jsx_runtime(), 1);
- var { getVariationStyle: getVariationStyle3 } = unlock(privateApis);
- var VARIATION_PREFIX = "is-style-";
- function getVariationMatches(className) {
- if (!className) {
- return [];
+ // packages/block-editor/build-module/components/media-placeholder/utils.mjs
+ function getComputedAcceptAttribute(allowedTypes, allowedMimeTypes, accept) {
+ if (accept) {
+ return accept;
}
- return className.split(/\s+/).reduce((matches, name) => {
- if (name.startsWith(VARIATION_PREFIX)) {
- const match2 = name.slice(VARIATION_PREFIX.length);
- if (match2 !== "default") {
- matches.push(match2);
- }
+ if (!allowedMimeTypes || typeof allowedMimeTypes !== "object" || Object.keys(allowedMimeTypes).length === 0) {
+ if (allowedTypes && allowedTypes.length > 0) {
+ return allowedTypes.map((type) => `${type}/*`).join(",");
}
- return matches;
- }, []);
- }
- function getVariationNameFromClass(className, registeredStyles = []) {
- const matches = getVariationMatches(className);
- if (!matches) {
- return null;
+ return void 0;
}
- for (const variation of matches) {
- if (registeredStyles.some((style) => style.name === variation)) {
- return variation;
- }
+ if (!allowedTypes || allowedTypes.length === 0) {
+ return void 0;
}
- return null;
- }
- function OverrideStyles({ override }) {
- usePrivateStyleOverride(override);
- }
- function BlockStyleVariationOverridesWithConfig({ config: config2 }) {
- const { overrides } = (0, import_data164.useSelect)(
- (select3) => ({
- overrides: unlock(select3(store)).getStyleOverrides()
- }),
- []
- );
- const { getBlockName: getBlockName2 } = (0, import_data164.useSelect)(store);
- const overridesWithConfig = (0, import_element260.useMemo)(() => {
- if (!overrides?.length) {
- return;
- }
- const newOverrides = [];
- const overriddenClientIds = [];
- for (const [, override] of overrides) {
- if (override?.variation && override?.clientId && /*
- * Because this component overwrites existing style overrides,
- * filter out any overrides that are already present in the store.
- */
- !overriddenClientIds.includes(override.clientId)) {
- const blockName = getBlockName2(override.clientId);
- const configStyles = config2?.styles?.blocks?.[blockName]?.variations?.[override.variation];
- if (configStyles) {
- const variationConfig = {
- settings: config2?.settings,
- // The variation style data is all that is needed to generate
- // the styles for the current application to a block. The variation
- // name is updated to match the instance specific class name.
- styles: {
- blocks: {
- [blockName]: {
- variations: {
- [`${override.variation}-${override.clientId}`]: configStyles
- }
- }
- }
- }
- };
- const blockSelectors = getBlockSelectors(
- (0, import_blocks89.getBlockTypes)(),
- override.clientId
- );
- const hasBlockGapSupport = false;
- const hasFallbackGapSupport = true;
- const disableLayoutStyles = true;
- const disableRootPadding = true;
- const variationStyles = transformToStyles(
- variationConfig,
- blockSelectors,
- hasBlockGapSupport,
- hasFallbackGapSupport,
- disableLayoutStyles,
- disableRootPadding,
- {
- blockGap: false,
- blockStyles: true,
- layoutStyles: false,
- marginReset: false,
- presets: false,
- rootPadding: false,
- variationStyles: true
- }
- );
- newOverrides.push({
- id: `${override.variation}-${override.clientId}`,
- css: variationStyles,
- __unstableType: "variation",
- variation: override.variation,
- // The clientId will be stored with the override and used to ensure
- // the order of overrides matches the order of blocks so that the
- // correct CSS cascade is maintained.
- clientId: override.clientId
- });
- overriddenClientIds.push(override.clientId);
- }
+ const acceptedMimeTypes = [];
+ for (const [, mimeType] of Object.entries(allowedMimeTypes)) {
+ const isAllowed = allowedTypes.some((allowedType) => {
+ if (allowedType.includes("/")) {
+ return mimeType === allowedType;
}
+ return mimeType.startsWith(`${allowedType}/`);
+ });
+ if (isAllowed) {
+ acceptedMimeTypes.push(mimeType);
}
- return newOverrides;
- }, [config2, overrides, getBlockName2]);
- if (!overridesWithConfig || !overridesWithConfig.length) {
- return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(import_jsx_runtime438.Fragment, { children: overridesWithConfig.map((override) => /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(OverrideStyles, { override }, override.id)) });
+ if (acceptedMimeTypes.length > 0) {
+ return acceptedMimeTypes.join(",");
+ }
+ return allowedTypes.map((type) => `${type}/*`).join(",");
}
- function useBlockStyleVariation(name, variation, clientId) {
- const { globalSettings, globalStyles } = (0, import_data164.useSelect)((select3) => {
- const settings2 = select3(store).getSettings();
+
+ // packages/block-editor/build-module/components/media-replace-flow/index.mjs
+ var import_jsx_runtime391 = __toESM(require_jsx_runtime(), 1);
+ var noop19 = () => {
+ };
+ var uniqueId = 0;
+ var MediaReplaceFlow = ({
+ mediaURL,
+ mediaId,
+ mediaIds,
+ allowedTypes,
+ accept,
+ onError,
+ onSelect,
+ onSelectURL,
+ onReset,
+ onToggleFeaturedImage,
+ useFeaturedImage,
+ onFilesUpload = noop19,
+ name = (0, import_i18n164.__)("Replace"),
+ createNotice,
+ removeNotice,
+ children,
+ multiple = false,
+ addToGallery,
+ handleUpload = true,
+ variant,
+ popoverProps: popoverProps3,
+ renderToggle: renderToggle3,
+ className: className2
+ }) => {
+ const { mediaUpload: mediaUpload2, allowedMimeTypes } = (0, import_data151.useSelect)((select3) => {
+ const { getSettings: getSettings8 } = select3(store);
+ const settings2 = getSettings8();
return {
- globalSettings: settings2.__experimentalFeatures,
- globalStyles: settings2[globalStylesDataKey]
+ mediaUpload: settings2.mediaUpload,
+ allowedMimeTypes: settings2.allowedMimeTypes
};
}, []);
- return (0, import_element260.useMemo)(() => {
- const variationStyles = getVariationStyle3(
- {
- settings: globalSettings,
- styles: globalStyles
- },
- name,
- variation
- );
- return {
- settings: globalSettings,
- // The variation style data is all that is needed to generate
- // the styles for the current application to a block. The variation
- // name is updated to match the instance specific class name.
- styles: {
- blocks: {
- [name]: {
- variations: {
- [`${variation}-${clientId}`]: variationStyles
- }
- }
- }
- }
- };
- }, [globalSettings, globalStyles, variation, clientId, name]);
- }
- function useBlockProps3({ name, className, clientId }) {
- const { getBlockStyles: getBlockStyles2 } = (0, import_data164.useSelect)(import_blocks89.store);
- const registeredStyles = getBlockStyles2(name);
- const variation = getVariationNameFromClass(className, registeredStyles);
- const variationClass = `${VARIATION_PREFIX}${variation}-${clientId}`;
- const { settings: settings2, styles } = useBlockStyleVariation(
- name,
- variation,
- clientId
+ const errorNoticeID = `block-editor/media-replace-flow/error-notice/${++uniqueId}`;
+ const computedAccept = (0, import_element233.useMemo)(
+ () => getComputedAcceptAttribute(
+ allowedTypes,
+ allowedMimeTypes,
+ accept
+ ),
+ [allowedTypes, allowedMimeTypes, accept]
);
- const variationStyles = (0, import_element260.useMemo)(() => {
- if (!variation) {
+ const onUploadError = (message2) => {
+ const safeMessage = (0, import_dom70.__unstableStripHTML)(message2);
+ if (onError) {
+ onError(safeMessage);
return;
}
- const variationConfig = { settings: settings2, styles };
- const blockSelectors = getBlockSelectors((0, import_blocks89.getBlockTypes)(), clientId);
- const hasBlockGapSupport = false;
- const hasFallbackGapSupport = true;
- const disableLayoutStyles = true;
- const disableRootPadding = true;
- return transformToStyles(
- variationConfig,
- blockSelectors,
- hasBlockGapSupport,
- hasFallbackGapSupport,
- disableLayoutStyles,
- disableRootPadding,
- {
- blockGap: false,
- blockStyles: true,
- layoutStyles: false,
- marginReset: false,
- presets: false,
- rootPadding: false,
- variationStyles: true
- }
- );
- }, [variation, settings2, styles, clientId]);
- usePrivateStyleOverride({
- id: `variation-${clientId}`,
- css: variationStyles,
- __unstableType: "variation",
- variation,
- // The clientId will be stored with the override and used to ensure
- // the order of overrides matches the order of blocks so that the
- // correct CSS cascade is maintained.
- clientId
- });
- return variation ? { className: variationClass } : {};
- }
- var block_style_variation_default = {
- hasSupport: () => true,
- attributeKeys: ["className"],
- isMatch: ({ className }) => getVariationMatches(className).length > 0,
- useBlockProps: useBlockProps3
- };
-
- // packages/block-editor/build-module/components/global-styles/inherited-value-context.mjs
- var { resolveStyle: resolveStyle3 } = unlock(privateApis);
- var NO_RESOLVED_STYLE = { value: void 0, sources: void 0 };
- function useRawGlobalStyles() {
- const { rawGlobalStylesData, links } = (0, import_data165.useSelect)((select3) => {
- const settings2 = select3(store).getSettings();
+ setTimeout(() => {
+ createNotice("error", safeMessage, {
+ speak: true,
+ id: errorNoticeID,
+ isDismissible: true
+ });
+ }, 1e3);
+ };
+ const selectMedia = (media, closeMenu) => {
+ if (useFeaturedImage && onToggleFeaturedImage) {
+ onToggleFeaturedImage();
+ }
+ closeMenu();
+ onSelect(media);
+ (0, import_a11y19.speak)((0, import_i18n164.__)("The media file has been replaced"));
+ removeNotice(errorNoticeID);
+ };
+ const uploadFiles = (event, closeMenu) => {
+ const files = event.target.files;
+ if (!handleUpload) {
+ closeMenu();
+ return onSelect(files);
+ }
+ onFilesUpload(files);
+ mediaUpload2({
+ allowedTypes,
+ filesList: files,
+ onFileChange: ([media]) => {
+ selectMedia(media, closeMenu);
+ },
+ onError: onUploadError
+ });
+ };
+ const openOnArrowDown = (event) => {
+ if (event.keyCode === import_keycodes20.DOWN) {
+ event.preventDefault();
+ event.target.click();
+ }
+ };
+ const onlyAllowsImages = () => {
+ if (!allowedTypes || allowedTypes.length === 0) {
+ return false;
+ }
+ return allowedTypes.every(
+ (allowedType) => allowedType === "image" || allowedType.startsWith("image/")
+ );
+ };
+ const gallery = multiple && onlyAllowsImages();
+ const mergedPopoverProps = {
+ ...popoverProps3,
+ variant
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
+ import_components168.Dropdown,
+ {
+ popoverProps: mergedPopoverProps,
+ className: className2,
+ contentClassName: clsx_default(
+ "block-editor-media-replace-flow__options",
+ variant && `is-variant-${variant}`
+ ),
+ renderToggle: ({ isOpen, onToggle }) => {
+ if (renderToggle3) {
+ return renderToggle3({
+ "aria-expanded": isOpen,
+ "aria-haspopup": "true",
+ onClick: onToggle,
+ onKeyDown: openOnArrowDown,
+ children: name
+ });
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
+ import_components168.ToolbarButton,
+ {
+ "aria-expanded": isOpen,
+ "aria-haspopup": "true",
+ onClick: onToggle,
+ onKeyDown: openOnArrowDown,
+ children: name
+ }
+ );
+ },
+ renderContent: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime391.jsxs)(import_jsx_runtime391.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime391.jsxs)(import_components168.NavigableMenu, { className: "block-editor-media-replace-flow__media-upload-menu", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime391.jsxs)(check_default2, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
+ media_upload_default,
+ {
+ gallery,
+ addToGallery,
+ multiple,
+ value: multiple ? mediaIds : mediaId,
+ onSelect: (media) => selectMedia(media, onClose),
+ allowedTypes,
+ render: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
+ import_components168.MenuItem,
+ {
+ icon: media_default,
+ onClick: open,
+ children: (0, import_i18n164.__)("Open Media Library")
+ }
+ )
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
+ import_components168.FormFileUpload,
+ {
+ onChange: (event) => {
+ uploadFiles(event, onClose);
+ },
+ accept: computedAccept,
+ multiple: !!multiple,
+ render: ({ openFileDialog }) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
+ import_components168.MenuItem,
+ {
+ icon: upload_default,
+ onClick: () => {
+ openFileDialog();
+ },
+ children: (0, import_i18n164._x)("Upload", "verb")
+ }
+ );
+ }
+ }
+ )
+ ] }),
+ onToggleFeaturedImage && /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
+ import_components168.MenuItem,
+ {
+ icon: post_featured_image_default,
+ onClick: onToggleFeaturedImage,
+ isPressed: useFeaturedImage,
+ children: (0, import_i18n164.__)("Use featured image")
+ }
+ ),
+ typeof children === "function" ? children({ onClose }) : children,
+ mediaURL && onReset && /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
+ import_components168.MenuItem,
+ {
+ onClick: () => {
+ onReset();
+ onClose();
+ },
+ children: (0, import_i18n164.__)("Reset")
+ }
+ )
+ ] }),
+ onSelectURL && /* @__PURE__ */ (0, import_jsx_runtime391.jsxs)("form", { className: "block-editor-media-flow__url-input", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime391.jsx)("span", { className: "block-editor-media-replace-flow__image-url-label", children: (0, import_i18n164.__)("Current media URL:") }),
+ /* @__PURE__ */ (0, import_jsx_runtime391.jsx)(
+ link_control_default,
+ {
+ value: { url: mediaURL },
+ settings: [],
+ showSuggestions: false,
+ onChange: ({ url }) => {
+ onSelectURL(url);
+ },
+ searchInputPlaceholder: (0, import_i18n164.__)(
+ "Paste or type URL"
+ )
+ }
+ )
+ ] })
+ ] })
+ }
+ );
+ };
+ var media_replace_flow_default = (0, import_compose90.compose)([
+ (0, import_data151.withDispatch)((dispatch) => {
+ const { createNotice, removeNotice } = dispatch(import_notices11.store);
return {
- rawGlobalStylesData: settings2[globalStylesDataKey] ?? null,
- links: settings2[globalStylesLinksDataKey] ?? null
+ createNotice,
+ removeNotice
};
- }, []);
- return (0, import_element261.useMemo)(
- () => rawGlobalStylesData ? { styles: rawGlobalStylesData, _links: links ?? void 0 } : null,
- [rawGlobalStylesData, links]
+ }),
+ (0, import_components168.withFilters)("editor.MediaReplaceFlow")
+ ])(MediaReplaceFlow);
+
+ // packages/block-editor/build-module/components/media-placeholder/index.mjs
+ var import_components174 = __toESM(require_components(), 1);
+ var import_i18n169 = __toESM(require_i18n(), 1);
+ var import_element236 = __toESM(require_element(), 1);
+ var import_data153 = __toESM(require_data(), 1);
+ var import_deprecated24 = __toESM(require_deprecated(), 1);
+
+ // packages/block-editor/build-module/components/url-popover/index.mjs
+ var import_i18n168 = __toESM(require_i18n(), 1);
+ var import_element235 = __toESM(require_element(), 1);
+ var import_components173 = __toESM(require_components(), 1);
+ var import_deprecated23 = __toESM(require_deprecated(), 1);
+
+ // packages/block-editor/build-module/components/url-popover/link-viewer.mjs
+ var import_i18n165 = __toESM(require_i18n(), 1);
+ var import_components170 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/url-popover/link-viewer-url.mjs
+ var import_components169 = __toESM(require_components(), 1);
+ var import_url7 = __toESM(require_url(), 1);
+ var import_jsx_runtime392 = __toESM(require_jsx_runtime(), 1);
+ function LinkViewerURL({ url, urlLabel, className: className2 }) {
+ const linkClassName = clsx_default(
+ className2,
+ "block-editor-url-popover__link-viewer-url"
);
- }
- var CONTEXT_HEADING_LEVEL_BLOCKS = {
- "core/accordion-heading": {
- contextKey: "core/accordion-heading-level",
- fallbackLevel: 3
- }
- };
- function getHeadingLevel(blockName, levelAttribute, contextLevel) {
- const contextOwned = CONTEXT_HEADING_LEVEL_BLOCKS[blockName];
- if (!contextOwned) {
- return levelAttribute;
- }
- return levelAttribute || contextLevel || contextOwned.fallbackLevel;
- }
- function useContextHeadingLevel(blockName) {
- const blockContext = (0, import_element261.useContext)(block_context_default);
- const contextKey = CONTEXT_HEADING_LEVEL_BLOCKS[blockName]?.contextKey;
- return contextKey ? blockContext[contextKey] : void 0;
- }
- function getElementLayers(blockName, headingLevel) {
- switch (blockName) {
- case "core/button":
- return ["button"];
- case "core/accordion-heading":
- case "core/heading":
- case "core/post-title":
- case "core/site-title":
- case "core/query-title":
- case "core/comments-title":
- case "core/term-name":
- case "core/site-tagline":
- if (headingLevel === 0) {
- return [];
- }
- return headingLevel ? ["heading", `h${headingLevel}`] : ["heading"];
- // Whole-block link blocks: the entire block renders as an `<a>`, so the
- // root `styles.elements.link` layer paints it, mirroring how `button`
- // paints Button. For the blocks whose `color.text` support is disabled
- // this is inert at the (hidden) text control while their typography
- // controls now reflect the link element; Read More (`color.text: true`)
- // surfaces the inherited link color at its Text control.
- case "core/read-more":
- case "core/loginout":
- case "core/post-navigation-link":
- case "core/query-pagination-next":
- case "core/query-pagination-previous":
- case "core/query-pagination-numbers":
- case "core/comments-pagination-next":
- case "core/comments-pagination-previous":
- case "core/comments-pagination-numbers":
- case "core/comment-edit-link":
- case "core/comment-reply-link":
- case "core/post-comments-link":
- return ["link"];
- default:
- return [];
+ if (!url) {
+ return /* @__PURE__ */ (0, import_jsx_runtime392.jsx)("span", { className: linkClassName });
}
+ return /* @__PURE__ */ (0, import_jsx_runtime392.jsx)(import_components169.ExternalLink, { className: linkClassName, href: url, children: urlLabel || (0, import_url7.filterURLForDisplay)((0, import_url7.safeDecodeURI)(url)) });
}
- function useVariationAndElements(blockName, className) {
- const { clientId } = useBlockEditContext();
- const contextHeadingLevel = useContextHeadingLevel(blockName);
- return (0, import_data165.useSelect)(
- (select3) => {
- if (!blockName) {
- return { variationName: null, headingLevel: void 0 };
- }
- const registeredStyles = select3(import_blocks90.store).getBlockStyles(blockName);
- const { level } = select3(store).getBlockAttributes(clientId) || {};
- return {
- variationName: className ? getVariationNameFromClass(className, registeredStyles) : null,
- headingLevel: getHeadingLevel(
- blockName,
- level,
- contextHeadingLevel
+
+ // packages/block-editor/build-module/components/url-popover/link-viewer.mjs
+ var import_jsx_runtime393 = __toESM(require_jsx_runtime(), 1);
+ function LinkViewer({
+ className: className2,
+ linkClassName,
+ onEditLinkClick,
+ url,
+ urlLabel,
+ ...props
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime393.jsxs)(
+ "div",
+ {
+ className: clsx_default(
+ "block-editor-url-popover__link-viewer",
+ className2
+ ),
+ ...props,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime393.jsx)(
+ LinkViewerURL,
+ {
+ url,
+ urlLabel,
+ className: linkClassName
+ }
+ ),
+ onEditLinkClick && /* @__PURE__ */ (0, import_jsx_runtime393.jsx)(
+ import_components170.Button,
+ {
+ icon: pencil_default,
+ label: (0, import_i18n165.__)("Edit"),
+ onClick: onEditLinkClick,
+ size: "compact"
+ }
)
- };
- },
- [blockName, className, clientId, contextHeadingLevel]
+ ]
+ }
);
}
- function useResolvedStyle(blockName, className, selectedState = null) {
- const { variationName, headingLevel } = useVariationAndElements(
- blockName,
- className
- );
- const globalStyles = useRawGlobalStyles();
- return (0, import_element261.useMemo)(() => {
- if (!isGlobalStylesInheritanceEnabled()) {
- return NO_RESOLVED_STYLE;
+
+ // packages/block-editor/build-module/components/url-popover/link-editor.mjs
+ var import_i18n167 = __toESM(require_i18n(), 1);
+ var import_components172 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/url-input/index.mjs
+ var import_a11y20 = __toESM(require_a11y(), 1);
+ var import_i18n166 = __toESM(require_i18n(), 1);
+ var import_element234 = __toESM(require_element(), 1);
+ var import_keycodes21 = __toESM(require_keycodes(), 1);
+ var import_components171 = __toESM(require_components(), 1);
+ var import_compose91 = __toESM(require_compose(), 1);
+ var import_data152 = __toESM(require_data(), 1);
+ var import_url8 = __toESM(require_url(), 1);
+ var import_jsx_runtime394 = __toESM(require_jsx_runtime(), 1);
+ var import_react50 = __toESM(require_react(), 1);
+ var { ValidatedInputControl } = unlock(import_components171.privateApis);
+ var noop20 = () => {
+ };
+ function isFunction(maybeFunc) {
+ return typeof maybeFunc === "function";
+ }
+ function URLInput(props) {
+ const {
+ __experimentalFetchLinkSuggestions: fetchLinkSuggestionsProp,
+ __experimentalHandleURLSuggestions: handleURLSuggestions,
+ __experimentalRenderControl: renderControl,
+ __experimentalRenderSuggestions: renderSuggestions,
+ __experimentalShowInitialSuggestions: showInitialSuggestions = false,
+ autocompleteRef,
+ className: className2,
+ customValidity,
+ disableSuggestions,
+ disabled: disabled2 = false,
+ help = null,
+ hideLabelFromVision = false,
+ inputRef,
+ isFullWidth,
+ label = null,
+ markWhenOptional,
+ onChange,
+ onKeyDown,
+ onSubmit,
+ placeholder = (0, import_i18n166.__)("Paste URL or type to search"),
+ required = true,
+ suffix,
+ value = ""
+ } = props;
+ const instanceId = (0, import_compose91.useInstanceId)(URLInput);
+ const { getSettings: getSettings8 } = (0, import_data152.useSelect)(store);
+ const debouncedSpeak = (0, import_compose91.useDebounce)(import_a11y20.speak, 500);
+ const [suggestions, setSuggestions] = (0, import_element234.useState)([]);
+ const [suggestionsValue, setSuggestionsValue] = (0, import_element234.useState)(null);
+ const [selectedSuggestion, setSelectedSuggestion] = (0, import_element234.useState)(null);
+ const [isSuggestionsListOpen, setIsSuggestionsListOpen] = (0, import_element234.useState)(false);
+ const [isLoading, setIsLoading] = (0, import_element234.useState)(false);
+ const [isComposing, setIsComposing] = (0, import_element234.useState)(false);
+ const fallbackInputRef = (0, import_element234.useRef)();
+ const suggestionNodesRef = (0, import_element234.useRef)([]);
+ const suggestionsRequestRef = (0, import_element234.useRef)(null);
+ const controlInputRef = inputRef ?? fallbackInputRef;
+ const inputId = `url-input-control-${instanceId}`;
+ const suggestionsListboxId = `block-editor-url-input-suggestions-${instanceId}`;
+ const suggestionOptionIdPrefix = `block-editor-url-input-suggestion-${instanceId}`;
+ const showSuggestions = isSuggestionsListOpen && disableSuggestions !== true && (showInitialSuggestions || !!value.length);
+ const updateSuggestions = (0, import_compose91.useEvent)((searchValue = "") => {
+ const fetchLinkSuggestions = isFunction(fetchLinkSuggestionsProp) ? fetchLinkSuggestionsProp : getSettings8().__experimentalFetchLinkSuggestions;
+ if (!fetchLinkSuggestions) {
+ return;
}
- if (!blockName) {
- return { value: {}, sources: {} };
+ const isInitialSuggestions = !searchValue?.length;
+ const search = searchValue.trim();
+ if (!isInitialSuggestions && (search.length < 2 || !handleURLSuggestions && (0, import_url8.isURL)(search))) {
+ suggestionsRequestRef.current?.cancel?.();
+ suggestionsRequestRef.current = null;
+ setSuggestions([]);
+ setIsSuggestionsListOpen(false);
+ setSuggestionsValue(search);
+ setSelectedSuggestion(null);
+ setIsLoading(false);
+ return;
}
- return resolveStyle3(globalStyles, {
- blockName,
- variationName,
- elements: getElementLayers(blockName, headingLevel),
- viewport: selectedState?.viewport ?? null,
- pseudoState: selectedState?.pseudo ?? null
+ setSelectedSuggestion(null);
+ setIsLoading(true);
+ const request = fetchLinkSuggestions(search, {
+ isInitialSuggestions
+ });
+ suggestionsRequestRef.current = request;
+ request.then((nextSuggestions) => {
+ if (suggestionsRequestRef.current !== request) {
+ return;
+ }
+ setSuggestions(nextSuggestions);
+ setSuggestionsValue(search);
+ setIsLoading(false);
+ setIsSuggestionsListOpen(!!nextSuggestions.length);
+ if (nextSuggestions.length) {
+ debouncedSpeak(
+ (0, import_i18n166.sprintf)(
+ /* translators: %d: number of results. */
+ (0, import_i18n166._n)(
+ "%d result found, use up and down arrow keys to navigate.",
+ "%d results found, use up and down arrow keys to navigate.",
+ nextSuggestions.length
+ ),
+ nextSuggestions.length
+ ),
+ "assertive"
+ );
+ } else {
+ debouncedSpeak((0, import_i18n166.__)("No results."), "assertive");
+ }
+ }).catch(() => {
+ if (suggestionsRequestRef.current !== request) {
+ return;
+ }
+ setIsLoading(false);
+ }).finally(() => {
+ if (suggestionsRequestRef.current === request) {
+ suggestionsRequestRef.current = null;
+ }
});
+ });
+ const debouncedUpdateSuggestions = (0, import_compose91.useDebounce)(updateSuggestions, 200);
+ (0, import_element234.useEffect)(() => {
+ if (!disableSuggestions && !isComposing && (value.length || showInitialSuggestions)) {
+ debouncedUpdateSuggestions(value);
+ }
}, [
- blockName,
- variationName,
- headingLevel,
- globalStyles,
- selectedState
+ value,
+ isComposing,
+ disableSuggestions,
+ showInitialSuggestions,
+ debouncedUpdateSuggestions
]);
- }
-
- // packages/block-editor/build-module/hooks/border.mjs
- var import_jsx_runtime439 = __toESM(require_jsx_runtime(), 1);
- var BORDER_SUPPORT_KEY2 = "__experimentalBorder";
- var SHADOW_SUPPORT_KEY = "shadow";
- var getColorByProperty = (colors2, property, value) => {
- let matchedColor;
- colors2.some(
- (origin) => origin.colors.some((color) => {
- if (color[property] === value) {
- matchedColor = color;
- return true;
- }
- return false;
- })
- );
- return matchedColor;
- };
- var getMultiOriginColor = ({ colors: colors2, namedColor, customColor }) => {
- if (namedColor) {
- const colorObject2 = getColorByProperty(colors2, "slug", namedColor);
- if (colorObject2) {
- return colorObject2;
+ (0, import_element234.useEffect)(() => {
+ if (!showSuggestions) {
+ setIsSuggestionsListOpen(false);
+ }
+ }, [showSuggestions]);
+ (0, import_element234.useEffect)(() => {
+ if (showSuggestions && selectedSuggestion !== null) {
+ suggestionNodesRef.current[selectedSuggestion]?.scrollIntoView({
+ behavior: "instant",
+ block: "nearest",
+ inline: "nearest"
+ });
}
+ }, [showSuggestions, selectedSuggestion]);
+ (0, import_element234.useEffect)(() => {
+ return () => {
+ suggestionsRequestRef.current?.cancel?.();
+ suggestionsRequestRef.current = null;
+ };
+ }, []);
+ function selectLink(suggestion) {
+ onChange(suggestion.url, suggestion);
+ setSelectedSuggestion(null);
+ setIsSuggestionsListOpen(false);
}
- if (!customColor) {
- return { color: void 0 };
+ function handleSuggestionClick(suggestion) {
+ selectLink(suggestion);
+ controlInputRef.current.focus();
}
- const colorObject = getColorByProperty(colors2, "color", customColor);
- return colorObject ? colorObject : { color: customColor };
- };
- function getColorSlugFromVariable(value) {
- const namedColor = /var:preset\|color\|(.+)/.exec(value);
- if (namedColor && namedColor[1]) {
- return namedColor[1];
+ function handleChange(newValue) {
+ onChange(newValue);
}
- return null;
- }
- function styleToAttributes(style) {
- if ((0, import_components213.__experimentalHasSplitBorders)(style?.border)) {
- return {
- style,
- borderColor: void 0
- };
+ function handleCompositionStart() {
+ setIsComposing(true);
+ debouncedUpdateSuggestions.cancel();
}
- const borderColorValue = style?.border?.color;
- const borderColorSlug = borderColorValue?.startsWith("var:preset|color|") ? borderColorValue.substring("var:preset|color|".length) : void 0;
- const updatedStyle = { ...style };
- updatedStyle.border = {
- ...updatedStyle.border,
- color: borderColorSlug ? void 0 : borderColorValue
- };
- return {
- style: cleanEmptyObject(updatedStyle),
- borderColor: borderColorSlug
- };
- }
- function attributesToStyle(attributes) {
- if ((0, import_components213.__experimentalHasSplitBorders)(attributes.style?.border)) {
- return attributes.style;
+ function handleCompositionEnd() {
+ setIsComposing(false);
}
- return {
- ...attributes.style,
- border: {
- ...attributes.style?.border,
- color: attributes.borderColor ? "var:preset|color|" + attributes.borderColor : attributes.style?.border?.color
- }
- };
- }
- function BordersInspectorControl({ label, children, resetAllFilter }) {
- const attributesResetAllFilter = (0, import_element262.useCallback)(
- (attributes) => {
- const existingStyle = attributesToStyle(attributes);
- const updatedStyle = resetAllFilter(existingStyle);
- return {
- ...attributes,
- ...styleToAttributes(updatedStyle)
- };
- },
- [resetAllFilter]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime439.jsx)(
- inspector_controls_default,
- {
- group: "border",
- resetAllFilter: attributesResetAllFilter,
- label,
- children
+ function handleFocus() {
+ if (value && !disableSuggestions && !suggestions.length && suggestionsRequestRef.current === null) {
+ debouncedUpdateSuggestions(value);
}
- );
- }
- function BorderPanel2({ clientId, name, setAttributes, settings: settings2 }) {
- const selectedState = useBlockStyleState();
- const isEnabled = useHasBorderPanel(settings2);
- const { style, borderColor, className } = (0, import_data166.useSelect)(
- (select3) => {
- if (!isEnabled) {
- return {};
- }
- const {
- style: _style,
- borderColor: _borderColor,
- className: _className
- } = select3(store).getBlockAttributes(clientId) || {};
- return {
- style: _style,
- borderColor: _borderColor,
- className: _className
- };
- },
- [clientId, isEnabled]
- );
- const { value: inheritedValue } = useResolvedStyle(
- name,
- className,
- selectedState
- );
- const isStateSelected = !isDefaultBlockStyleState2(selectedState);
- const value = (0, import_element262.useMemo)(() => {
- if (isStateSelected) {
- return getStyleForState2(style, selectedState);
- }
- return attributesToStyle({ style, borderColor });
- }, [isStateSelected, selectedState, style, borderColor]);
- const onChange = isStateSelected ? (newStyle) => {
- setAttributes({
- style: setStyleForState(style, selectedState, newStyle)
- });
- } : (newStyle) => {
- setAttributes(styleToAttributes(newStyle));
- };
- if (!isEnabled) {
- return null;
}
- const defaultControls = {
- ...(0, import_blocks91.getBlockSupport)(name, [
- BORDER_SUPPORT_KEY2,
- "__experimentalDefaultControls"
- ]),
- ...(0, import_blocks91.getBlockSupport)(name, [
- SHADOW_SUPPORT_KEY,
- "__experimentalDefaultControls"
- ])
- };
- return /* @__PURE__ */ (0, import_jsx_runtime439.jsx)(
- BorderPanel,
- {
- as: BordersInspectorControl,
- panelId: clientId,
- settings: settings2,
- value,
- onChange,
- defaultControls,
- inheritedValue
+ function handleKeyDown(event) {
+ onKeyDown?.(event);
+ if (!showSuggestions || !suggestions.length || isLoading) {
+ if (!event.shiftKey && (event.keyCode === import_keycodes21.UP || event.keyCode === import_keycodes21.DOWN)) {
+ const caret = event.keyCode === import_keycodes21.UP ? 0 : event.target.value.length;
+ if (event.target.selectionStart !== caret || event.target.selectionEnd !== caret) {
+ event.preventDefault();
+ event.target.setSelectionRange(caret, caret);
+ }
+ } else if (event.keyCode === import_keycodes21.ENTER && onSubmit) {
+ event.preventDefault();
+ onSubmit(null, event);
+ }
+ return;
}
- );
- }
- function hasBorderSupport2(blockName, feature = "any") {
- const support = (0, import_blocks91.getBlockSupport)(blockName, BORDER_SUPPORT_KEY2);
- if (support === true) {
- return true;
- }
- if (feature === "any") {
- return !!(support?.color || support?.radius || support?.width || support?.style);
- }
- return !!support?.[feature];
- }
- function useBorderPanelLabel({
- blockName,
- hasBorderControl,
- hasShadowControl
- } = {}) {
- const settings2 = useBlockSettings(blockName);
- const controls = useHasBorderPanelControls(settings2);
- if (!hasBorderControl && !hasShadowControl && blockName) {
- hasBorderControl = controls?.hasBorderColor || controls?.hasBorderStyle || controls?.hasBorderWidth || controls?.hasBorderRadius;
- hasShadowControl = controls?.hasShadow;
- }
- if (hasBorderControl && hasShadowControl) {
- return (0, import_i18n203.__)("Border & Shadow");
- }
- if (hasShadowControl) {
- return (0, import_i18n203.__)("Shadow");
- }
- return (0, import_i18n203.__)("Border");
- }
- function addAttributes(settings2) {
- if (!hasBorderSupport2(settings2, "color")) {
- return settings2;
- }
- if (settings2.attributes.borderColor) {
- return settings2;
- }
- return {
- ...settings2,
- attributes: {
- ...settings2.attributes,
- borderColor: {
- type: "string"
+ const suggestion = suggestions[selectedSuggestion] ?? null;
+ switch (event.keyCode) {
+ case import_keycodes21.UP:
+ case import_keycodes21.DOWN: {
+ event.preventDefault();
+ const offset4 = event.keyCode === import_keycodes21.UP ? -1 : 1;
+ const from = selectedSuggestion ?? (offset4 === -1 ? 0 : -1);
+ setSelectedSuggestion(
+ (from + offset4 + suggestions.length) % suggestions.length
+ );
+ break;
+ }
+ case import_keycodes21.TAB: {
+ if (suggestion) {
+ selectLink(suggestion);
+ (0, import_a11y20.speak)((0, import_i18n166.__)("Link selected."));
+ }
+ break;
+ }
+ case import_keycodes21.ENTER: {
+ event.preventDefault();
+ if (suggestion) {
+ selectLink(suggestion);
+ }
+ onSubmit?.(suggestion, event);
+ break;
}
}
- };
- }
- function addSaveProps(props, blockNameOrType, attributes) {
- if (!hasBorderSupport2(blockNameOrType, "color") || shouldSkipSerialization(blockNameOrType, BORDER_SUPPORT_KEY2, "color")) {
- return props;
- }
- const borderClasses = getBorderClasses(attributes);
- const newClassName = clsx_default(props.className, borderClasses);
- props.className = newClassName ? newClassName : void 0;
- return props;
- }
- function getBorderClasses(attributes) {
- const { borderColor, style } = attributes;
- const borderColorClass = getColorClassName("border-color", borderColor);
- return clsx_default({
- "has-border-color": borderColor || style?.border?.color,
- [borderColorClass]: !!borderColorClass
- });
- }
- function useBlockProps4({ name, borderColor, style }) {
- const { colors: colors2 } = useMultipleOriginColorsAndGradients();
- if (!hasBorderSupport2(name, "color") || shouldSkipSerialization(name, BORDER_SUPPORT_KEY2, "color")) {
- return {};
}
- const { color: borderColorValue } = getMultiOriginColor({
- colors: colors2,
- namedColor: borderColor
- });
- const { color: borderTopColor } = getMultiOriginColor({
- colors: colors2,
- namedColor: getColorSlugFromVariable(style?.border?.top?.color)
- });
- const { color: borderRightColor } = getMultiOriginColor({
- colors: colors2,
- namedColor: getColorSlugFromVariable(style?.border?.right?.color)
- });
- const { color: borderBottomColor } = getMultiOriginColor({
- colors: colors2,
- namedColor: getColorSlugFromVariable(style?.border?.bottom?.color)
- });
- const { color: borderLeftColor } = getMultiOriginColor({
- colors: colors2,
- namedColor: getColorSlugFromVariable(style?.border?.left?.color)
- });
- const extraStyles = {
- borderTopColor: borderTopColor || borderColorValue,
- borderRightColor: borderRightColor || borderColorValue,
- borderBottomColor: borderBottomColor || borderColorValue,
- borderLeftColor: borderLeftColor || borderColorValue
+ const controlProps = {
+ id: inputId,
+ // Passes attribute to label for the for attribute
+ label,
+ className: clsx_default("block-editor-url-input", className2, {
+ "is-full-width": isFullWidth
+ }),
+ hideLabelFromVision
};
- return addSaveProps(
- { style: cleanEmptyObject(extraStyles) || {} },
- name,
- { borderColor, style }
- );
- }
- var border_default = {
- useBlockProps: useBlockProps4,
- addSaveProps,
- attributeKeys: ["borderColor", "style"],
- hasSupport(name) {
- return hasBorderSupport2(name, "color");
- }
- };
- (0, import_hooks13.addFilter)(
- "blocks.registerBlockType",
- "core/border/addAttributes",
- addAttributes
- );
-
- // packages/block-editor/build-module/hooks/elements.mjs
- var import_blocks95 = __toESM(require_blocks(), 1);
- var import_element265 = __toESM(require_element(), 1);
- var import_data169 = __toESM(require_data(), 1);
- var import_i18n205 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/hooks/color.mjs
- var import_hooks14 = __toESM(require_hooks(), 1);
- var import_blocks94 = __toESM(require_blocks(), 1);
- var import_element264 = __toESM(require_element(), 1);
-
- // packages/block-editor/build-module/hooks/background.mjs
- var import_blocks93 = __toESM(require_blocks(), 1);
- var import_data168 = __toESM(require_data(), 1);
- var import_i18n204 = __toESM(require_i18n(), 1);
-
- // packages/block-editor/build-module/hooks/contrast-checker.mjs
- var import_element263 = __toESM(require_element(), 1);
- var import_data167 = __toESM(require_data(), 1);
- var import_blocks92 = __toESM(require_blocks(), 1);
- var import_a11y20 = __toESM(require_a11y(), 1);
- function getComputedValue(node, property) {
- return node.ownerDocument.defaultView.getComputedStyle(node).getPropertyValue(property);
- }
- function getBlockElementColors(blockEl, blockType) {
- if (!blockEl || !blockType) {
- return {};
- }
- const textSelector = getBlockSelector(blockType, "color.text", {
- fallback: true
- });
- const backgroundSelector = getBlockSelector(
- blockType,
- "color.background",
- { fallback: true }
- );
- const textElement = blockEl.querySelector(textSelector) || blockEl;
- const backgroundElement = blockEl.querySelector(backgroundSelector) || blockEl;
- const linkElement = blockEl.querySelector("a");
- const textColor = getComputedValue(textElement, "color");
- const linkColor = linkElement && linkElement.textContent ? getComputedValue(linkElement, "color") : void 0;
- let backgroundColorNode = backgroundElement;
- let backgroundColor = getComputedValue(
- backgroundColorNode,
- "background-color"
- );
- while (backgroundColor === "rgba(0, 0, 0, 0)" && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === backgroundColorNode.parentNode.ELEMENT_NODE) {
- backgroundColorNode = backgroundColorNode.parentNode;
- backgroundColor = getComputedValue(
- backgroundColorNode,
- "background-color"
- );
- }
- return {
- textColor,
- backgroundColor,
- linkColor
+ const inputProps = {
+ id: inputId,
+ value,
+ required,
+ type: "text",
+ name: inputId,
+ autoComplete: "off",
+ onChange: disabled2 ? noop20 : handleChange,
+ onCompositionStart: disabled2 ? noop20 : handleCompositionStart,
+ onCompositionEnd: disabled2 ? noop20 : handleCompositionEnd,
+ onFocus: disabled2 ? noop20 : handleFocus,
+ onKeyDown: disabled2 ? noop20 : handleKeyDown,
+ placeholder,
+ role: "combobox",
+ "aria-label": label ? void 0 : (0, import_i18n166.__)("URL"),
+ // Ensure input always has an accessible label
+ "aria-expanded": showSuggestions,
+ "aria-autocomplete": "list",
+ "aria-owns": suggestionsListboxId,
+ "aria-activedescendant": selectedSuggestion !== null ? `${suggestionOptionIdPrefix}-${selectedSuggestion}` : void 0,
+ ref: controlInputRef,
+ disabled: disabled2,
+ suffix,
+ help
};
+ return /* @__PURE__ */ (0, import_jsx_runtime394.jsxs)(import_jsx_runtime394.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime394.jsx)(
+ Control3,
+ {
+ controlProps,
+ inputProps,
+ isLoading,
+ customValidity,
+ markWhenOptional,
+ renderControl
+ }
+ ),
+ showSuggestions && suggestions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime394.jsx)(
+ Suggestions,
+ {
+ autocompleteRef,
+ className: className2,
+ handleSuggestionClick,
+ isLoading,
+ renderSuggestions,
+ selectedSuggestion,
+ suggestionNodesRef,
+ suggestionOptionIdPrefix,
+ suggestions,
+ suggestionsListboxId,
+ suggestionsValue
+ }
+ )
+ ] });
}
- function reducer2(prevColors, newColors) {
- const hasChanged = Object.keys(newColors).some(
- (key) => prevColors[key] !== newColors[key]
- );
- return hasChanged ? newColors : prevColors;
- }
- function useBlockColorContrastWarning({
- clientId,
- name,
- enabled = true,
- checkTextColor = true,
- checkLinkColor = true,
- messageOverride
+ function Control3({
+ controlProps,
+ inputProps,
+ isLoading,
+ customValidity,
+ markWhenOptional,
+ renderControl
}) {
- const blockEl = useBlockElement(clientId);
- const [colors2, setColors] = (0, import_element263.useReducer)(reducer2, {});
- const blockType = (0, import_data167.useSelect)(
- (select3) => {
- return name && enabled ? select3(import_blocks92.store).getBlockType(name) : void 0;
- },
- [name, enabled]
+ const [isValidated, setIsValidated] = (0, import_element234.useState)(
+ customValidity !== void 0
);
- (0, import_element263.useLayoutEffect)(() => {
- if (!enabled || !blockEl || !blockType) {
- return;
- }
- window.requestAnimationFrame(
- () => window.requestAnimationFrame(
- () => setColors(getBlockElementColors(blockEl, blockType))
- )
- );
- });
- (0, import_element263.useLayoutEffect)(() => {
- if (!enabled || !blockEl || !blockType) {
- return;
- }
- const observer = new window.MutationObserver(() => {
- setColors(getBlockElementColors(blockEl, blockType));
- });
- observer.observe(blockEl, {
- attributes: true,
- attributeFilter: ["class", "style"],
- subtree: true
- });
- return () => {
- observer.disconnect();
- };
- }, [enabled, blockEl, blockType]);
- const warning6 = enabled ? getContrastWarning({
- backgroundColor: colors2.backgroundColor,
- textColor: checkTextColor ? colors2.textColor : void 0,
- linkColor: checkLinkColor ? colors2.linkColor : void 0,
- messageOverride,
- enableAlphaChecker: true
- }) : null;
- const speakMessage = warning6?.speakMessage;
- (0, import_element263.useEffect)(() => {
- if (speakMessage) {
- (0, import_a11y20.speak)(speakMessage);
- }
- }, [speakMessage]);
- return warning6?.message;
- }
-
- // packages/block-editor/build-module/hooks/background.mjs
- var import_jsx_runtime440 = __toESM(require_jsx_runtime(), 1);
- var BACKGROUND_SUPPORT_KEY = "background";
- var BACKGROUND_BLOCK_DEFAULT_VALUES2 = {
- backgroundSize: "cover",
- backgroundPosition: "50% 50%"
- // used only when backgroundSize is 'contain'.
- };
- function hasBackgroundSupport(blockName, feature = "any") {
- const support = (0, import_blocks93.getBlockSupport)(blockName, BACKGROUND_SUPPORT_KEY);
- if (support === true) {
- return true;
- }
- if (feature === "any") {
- return !!support?.backgroundImage || !!support?.backgroundSize || !!support?.backgroundRepeat || !!support?.gradient;
- }
- return !!support?.[feature];
- }
- function setBackgroundStyleDefaults2(backgroundStyle) {
- if (!backgroundStyle || !backgroundStyle?.backgroundImage?.url) {
- return;
- }
- let backgroundStylesWithDefaults;
- if (!backgroundStyle?.backgroundSize) {
- backgroundStylesWithDefaults = {
- backgroundSize: BACKGROUND_BLOCK_DEFAULT_VALUES2.backgroundSize
- };
+ if (customValidity !== void 0 && !isValidated) {
+ setIsValidated(true);
}
- if ("contain" === backgroundStyle?.backgroundSize && !backgroundStyle?.backgroundPosition) {
- backgroundStylesWithDefaults = {
- backgroundPosition: BACKGROUND_BLOCK_DEFAULT_VALUES2.backgroundPosition
- };
+ if (renderControl) {
+ return renderControl(controlProps, inputProps, isLoading);
}
- return backgroundStylesWithDefaults;
+ const MaybeValidatedInputControl = isValidated ? ValidatedInputControl : import_components171.__experimentalInputControl;
+ return /* @__PURE__ */ (0, import_jsx_runtime394.jsxs)(import_components171.BaseControl, { ...controlProps, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime394.jsx)(
+ MaybeValidatedInputControl,
+ {
+ ...inputProps,
+ ...isValidated && {
+ customValidity,
+ // Suppress the "(Required)" indicator in the label.
+ // The field is still required for validation, but the indicator
+ // can be hidden when markWhenOptional is set to true.
+ ...markWhenOptional !== void 0 && {
+ markWhenOptional
+ }
+ }
+ }
+ ),
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime394.jsx)(import_components171.Spinner, {})
+ ] });
}
- function useBlockProps5({ name, style }) {
- if (!hasBackgroundSupport(name) || !style?.background?.backgroundImage) {
- return;
- }
- const backgroundStyles = setBackgroundStyleDefaults2(style?.background);
- if (!backgroundStyles) {
- return;
- }
- return {
- style: {
- ...backgroundStyles
- }
+ function Suggestions({
+ autocompleteRef,
+ className: className2,
+ handleSuggestionClick,
+ isLoading,
+ renderSuggestions,
+ selectedSuggestion,
+ suggestionNodesRef,
+ suggestionOptionIdPrefix,
+ suggestions,
+ suggestionsListboxId,
+ suggestionsValue
+ }) {
+ const suggestionsListProps = {
+ id: suggestionsListboxId,
+ ref: autocompleteRef,
+ role: "listbox"
};
- }
- function getBackgroundImageClasses(style) {
- return hasBackgroundImageValue(style) || hasBackgroundGradientValue(style) ? "has-background" : "";
- }
- function backgroundResetAllFilter(attributes) {
- const updatedClassName = attributes.className?.includes("has-background") ? attributes.className.split(" ").filter((c6) => c6 !== "has-background").join(" ") || void 0 : attributes.className;
- return {
- ...attributes,
- className: updatedClassName,
- backgroundColor: void 0,
- gradient: void 0,
- style: cleanEmptyObject({
- ...attributes.style,
- background: void 0,
- color: {
- ...attributes.style?.color,
- background: void 0,
- gradient: void 0
- }
- })
+ const buildSuggestionItemProps = (suggestion, index2) => {
+ return {
+ role: "option",
+ tabIndex: "-1",
+ id: `${suggestionOptionIdPrefix}-${index2}`,
+ ref: (node) => {
+ suggestionNodesRef.current[index2] = node;
+ },
+ "aria-selected": index2 === selectedSuggestion ? true : void 0
+ };
};
- }
- function BackgroundInspectorControl({ children }) {
- return /* @__PURE__ */ (0, import_jsx_runtime440.jsx)(
- inspector_controls_default,
+ if (isFunction(renderSuggestions)) {
+ return renderSuggestions({
+ suggestions,
+ selectedSuggestion,
+ suggestionsListProps,
+ buildSuggestionItemProps,
+ isLoading,
+ handleSuggestionClick,
+ isInitialSuggestions: !suggestionsValue?.length,
+ currentInputValue: suggestionsValue
+ });
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime394.jsx)(import_components171.Popover, { placement: "bottom", focusOnMount: false, children: /* @__PURE__ */ (0, import_jsx_runtime394.jsx)(
+ "div",
{
- group: "background",
- resetAllFilter: backgroundResetAllFilter,
- children
+ ...suggestionsListProps,
+ className: clsx_default("block-editor-url-input__suggestions", {
+ [`${className2}__suggestions`]: className2
+ }),
+ children: suggestions.map((suggestion, index2) => /* @__PURE__ */ (0, import_react50.createElement)(
+ import_components171.Button,
+ {
+ __next40pxDefaultSize: true,
+ ...buildSuggestionItemProps(suggestion, index2),
+ key: suggestion.id,
+ className: clsx_default(
+ "block-editor-url-input__suggestion",
+ {
+ "is-selected": index2 === selectedSuggestion
+ }
+ ),
+ onClick: () => handleSuggestionClick(suggestion)
+ },
+ suggestion.title
+ ))
}
- );
+ ) });
}
- function BackgroundImagePanel3({
- clientId,
- name,
- setAttributes,
- settings: settings2,
- // Allows rendering outside the `background` inspector group (e.g. section
- // blocks direct-render this panel because their support fills are gated
- // off by editing mode). Defaults to the slot-based wrapper.
- asWrapper
+
+ // packages/block-editor/build-module/components/url-popover/link-editor.mjs
+ var import_jsx_runtime395 = __toESM(require_jsx_runtime(), 1);
+ function LinkEditor({
+ autocompleteRef,
+ className: className2,
+ onChangeInputValue,
+ value,
+ ...props
}) {
- const selectedState = useBlockStyleState();
- const { style, className, backgroundColor, gradient } = (0, import_data168.useSelect)(
- (select3) => {
- const { getBlockAttributes: getBlockAttributes3 } = select3(store);
- const blockAttributes = getBlockAttributes3(clientId);
- return {
- style: blockAttributes?.style,
- className: blockAttributes?.className,
- backgroundColor: blockAttributes?.backgroundColor,
- gradient: blockAttributes?.gradient
- };
- },
- [clientId]
- );
- const { value: inheritedValue } = useResolvedStyle(
- name,
- className,
- selectedState
- );
- const backgroundGradientSupported = hasBackgroundSupport(
- name,
- "gradient"
+ return /* @__PURE__ */ (0, import_jsx_runtime395.jsxs)(
+ "form",
+ {
+ className: clsx_default(
+ "block-editor-url-popover__link-editor",
+ className2
+ ),
+ ...props,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime395.jsx)(
+ URLInput,
+ {
+ value,
+ onChange: onChangeInputValue,
+ autocompleteRef
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime395.jsx)(
+ import_components172.Button,
+ {
+ icon: keyboard_return_default,
+ label: (0, import_i18n167.__)("Apply"),
+ type: "submit",
+ size: "compact"
+ }
+ )
+ ]
+ }
);
- const colorSupport = (0, import_blocks93.getBlockSupport)(name, "color");
- const hasColorBackgroundSupport = colorSupport && colorSupport.background !== false;
- const hasColorGradientSupport = !!colorSupport?.gradients;
- const isStateSelected = !isDefaultBlockStyleState2(selectedState);
- const styleValue = {
- ...style,
- color: {
- ...style?.color,
- background: backgroundColor ? "var:preset|color|" + backgroundColor : style?.color?.background,
- gradient: !backgroundGradientSupported && gradient ? "var:preset|gradient|" + gradient : style?.color?.gradient
- },
- ...backgroundGradientSupported && {
- background: {
- ...style?.background,
- gradient: gradient ? "var:preset|gradient|" + gradient : style?.background?.gradient ?? style?.color?.gradient
+ }
+
+ // packages/block-editor/build-module/components/url-popover/index.mjs
+ var import_jsx_runtime396 = __toESM(require_jsx_runtime(), 1);
+ var { __experimentalPopoverLegacyPositionToPlacement } = unlock(
+ import_components173.privateApis
+ );
+ var DEFAULT_PLACEMENT = "bottom";
+ var URLPopover = (0, import_element235.forwardRef)(
+ ({
+ additionalControls,
+ children,
+ renderSettings,
+ // The DEFAULT_PLACEMENT value is assigned inside the function's body
+ placement,
+ focusOnMount = "firstElement",
+ // Deprecated
+ position,
+ // Rest
+ ...popoverProps3
+ }, ref) => {
+ if (position !== void 0) {
+ (0, import_deprecated23.default)("`position` prop in wp.blockEditor.URLPopover", {
+ since: "6.2",
+ alternative: "`placement` prop"
+ });
+ }
+ let computedPlacement;
+ if (placement !== void 0) {
+ computedPlacement = placement;
+ } else if (position !== void 0) {
+ computedPlacement = __experimentalPopoverLegacyPositionToPlacement(position);
+ }
+ computedPlacement = computedPlacement || DEFAULT_PLACEMENT;
+ const [isSettingsExpanded, setIsSettingsExpanded] = (0, import_element235.useState)(false);
+ const showSettings = !!renderSettings && isSettingsExpanded;
+ const toggleSettingsVisibility = () => {
+ setIsSettingsExpanded(!isSettingsExpanded);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime396.jsxs)(
+ import_components173.Popover,
+ {
+ ref,
+ role: "dialog",
+ "aria-modal": "true",
+ "aria-label": (0, import_i18n168.__)("Edit URL"),
+ className: "block-editor-url-popover",
+ focusOnMount,
+ placement: computedPlacement,
+ shift: true,
+ variant: "toolbar",
+ ...popoverProps3,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime396.jsx)("div", { className: "block-editor-url-popover__input-container", children: /* @__PURE__ */ (0, import_jsx_runtime396.jsxs)("div", { className: "block-editor-url-popover__row", children: [
+ children,
+ !!renderSettings && /* @__PURE__ */ (0, import_jsx_runtime396.jsx)(
+ import_components173.Button,
+ {
+ className: "block-editor-url-popover__settings-toggle",
+ icon: chevron_down_default,
+ label: (0, import_i18n168.__)("Link settings"),
+ onClick: toggleSettingsVisibility,
+ "aria-expanded": isSettingsExpanded,
+ size: "compact"
+ }
+ )
+ ] }) }),
+ showSettings && /* @__PURE__ */ (0, import_jsx_runtime396.jsx)("div", { className: "block-editor-url-popover__settings", children: renderSettings() }),
+ additionalControls && !showSettings && /* @__PURE__ */ (0, import_jsx_runtime396.jsx)("div", { className: "block-editor-url-popover__additional-controls", children: additionalControls })
+ ]
+ }
+ );
+ }
+ );
+ URLPopover.LinkEditor = LinkEditor;
+ URLPopover.LinkViewer = LinkViewer;
+ var url_popover_default = URLPopover;
+
+ // packages/block-editor/build-module/components/media-placeholder/index.mjs
+ var import_jsx_runtime397 = __toESM(require_jsx_runtime(), 1);
+ var noop21 = () => {
+ };
+ var InsertFromURLPopover = ({
+ src,
+ onChange,
+ onSubmit,
+ onClose,
+ popoverAnchor
+ }) => /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(url_popover_default, { anchor: popoverAnchor, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ "form",
+ {
+ className: "block-editor-media-placeholder__url-input-form",
+ onSubmit,
+ children: /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.__experimentalInputControl,
+ {
+ label: (0, import_i18n169.__)("URL"),
+ type: "text",
+ hideLabelFromVision: true,
+ placeholder: (0, import_i18n169.__)("Paste or type URL"),
+ onChange,
+ value: src,
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(import_components174.__experimentalInputControlSuffixWrapper, { variant: "control", children: /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.Button,
+ {
+ size: "small",
+ icon: keyboard_return_default,
+ label: (0, import_i18n169.__)("Apply"),
+ type: "submit"
+ }
+ ) })
}
+ )
+ }
+ ) });
+ var URLSelectionUI = ({ src, onChangeSrc, onSelectURL }) => {
+ const [popoverAnchor, setPopoverAnchor] = (0, import_element236.useState)(null);
+ const [isURLInputVisible, setIsURLInputVisible] = (0, import_element236.useState)(false);
+ const openURLInput = () => {
+ setIsURLInputVisible(true);
+ };
+ const closeURLInput = () => {
+ setIsURLInputVisible(false);
+ popoverAnchor?.focus();
+ };
+ const onSubmitSrc = (event) => {
+ event.preventDefault();
+ if (src && onSelectURL) {
+ onSelectURL(src);
+ closeURLInput();
}
};
- const value = isStateSelected ? getStyleForState2(style, selectedState) : styleValue;
- const enableContrastChecking = !value?.color?.gradient && !value?.background?.gradient && !!value?.color?.background && (settings2?.color?.text || settings2?.color?.link) && false !== (0, import_blocks93.getBlockSupport)(name, ["color", "enableContrastChecker"]);
- const contrastWarning = useBlockColorContrastWarning({
- clientId,
- name,
- enabled: !!enableContrastChecking,
- messageOverride: (0, import_i18n204.__)(
- "This color combination has poor contrast. Consider increasing contrast between background and foreground."
+ return /* @__PURE__ */ (0, import_jsx_runtime397.jsxs)("div", { className: "block-editor-media-placeholder__url-input-container", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.Button,
+ {
+ __next40pxDefaultSize: true,
+ className: "block-editor-media-placeholder__button",
+ onClick: openURLInput,
+ isPressed: isURLInputVisible,
+ variant: "secondary",
+ "aria-haspopup": "dialog",
+ ref: setPopoverAnchor,
+ children: (0, import_i18n169.__)("Insert from URL")
+ }
+ ),
+ isURLInputVisible && /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ InsertFromURLPopover,
+ {
+ src,
+ onChange: onChangeSrc,
+ onSubmit: onSubmitSrc,
+ onClose: closeURLInput,
+ popoverAnchor
+ }
)
- });
- if (!useHasBackgroundPanel(settings2) || !hasBackgroundSupport(name) && !hasColorBackgroundSupport && !hasColorGradientSupport) {
- return null;
+ ] });
+ };
+ function MediaPlaceholder({
+ value = {},
+ allowedTypes,
+ className: className2,
+ icon,
+ labels = {},
+ mediaPreview,
+ notices,
+ isAppender,
+ accept,
+ addToGallery,
+ multiple = false,
+ handleUpload = true,
+ disableDropZone,
+ disableMediaButtons,
+ onError,
+ onSelect,
+ onCancel,
+ onSelectURL,
+ onToggleFeaturedImage,
+ onDoubleClick,
+ onFilesPreUpload = noop21,
+ onHTMLDrop: deprecatedOnHTMLDrop,
+ children,
+ mediaLibraryButton,
+ placeholder,
+ style
+ }) {
+ if (deprecatedOnHTMLDrop) {
+ (0, import_deprecated24.default)("wp.blockEditor.MediaPlaceholder onHTMLDrop prop", {
+ since: "6.2",
+ version: "6.4"
+ });
}
- const onChange = (newStyle) => {
- if (isStateSelected) {
- setAttributes({
- style: setStyleForState(style, selectedState, newStyle)
- });
- return;
+ const { mediaUpload: mediaUpload2, allowedMimeTypes } = (0, import_data153.useSelect)((select3) => {
+ const { getSettings: getSettings8 } = select3(store);
+ const settings2 = getSettings8();
+ return {
+ mediaUpload: settings2.mediaUpload,
+ allowedMimeTypes: settings2.allowedMimeTypes
+ };
+ }, []);
+ const [src, setSrc] = (0, import_element236.useState)("");
+ (0, import_element236.useEffect)(() => {
+ setSrc(value?.src ?? "");
+ }, [value?.src]);
+ const computedAccept = (0, import_element236.useMemo)(
+ () => getComputedAcceptAttribute(
+ allowedTypes,
+ allowedMimeTypes,
+ accept
+ ),
+ [allowedTypes, allowedMimeTypes, accept]
+ );
+ const onlyAllowsImages = () => {
+ if (!allowedTypes || allowedTypes.length === 0) {
+ return false;
}
- const newBackgroundColorValue = newStyle?.color?.background;
- const newBackgroundColorSlug = extractPresetSlug(
- newBackgroundColorValue,
- "color"
- );
- const newGradientValue = backgroundGradientSupported ? newStyle?.background?.gradient : newStyle?.color?.gradient;
- const newGradientSlug = extractPresetSlug(
- newGradientValue,
- "gradient"
+ return allowedTypes.every(
+ (allowedType) => allowedType === "image" || allowedType.startsWith("image/")
);
- const cleanedColorGradient = newGradientSlug ? void 0 : newStyle?.color?.gradient;
- const cleanedStyle = {
- ...newStyle,
- color: {
- ...newStyle?.color,
- background: newBackgroundColorSlug ? void 0 : newBackgroundColorValue,
- gradient: backgroundGradientSupported ? void 0 : cleanedColorGradient
- }
- };
- if (backgroundGradientSupported) {
- cleanedStyle.background = {
- ...cleanedStyle.background,
- gradient: newStyle?.background?.gradient
- };
+ };
+ const onFilesUpload = (files) => {
+ if (!handleUpload || typeof handleUpload === "function" && !handleUpload(files)) {
+ return onSelect(files);
}
- const isMigrating = backgroundGradientSupported && !!style?.color?.gradient;
- const newAttributes = {
- style: cleanEmptyObject(cleanedStyle),
- backgroundColor: newBackgroundColorSlug,
- // The legacy `gradient` attribute is only used when the block does
- // not support `background.gradient`; otherwise the gradient is
- // stored in `style.background.gradient` above.
- gradient: backgroundGradientSupported ? void 0 : newGradientSlug
- };
- const hasNewGradient = !!newGradientSlug || !!newGradientValue;
- if (isMigrating && hasNewGradient) {
- newAttributes.className = clsx_default(className, "has-background");
- } else if (!hasNewGradient && className?.includes("has-background")) {
- newAttributes.className = className.split(" ").filter((c6) => c6 !== "has-background").join(" ") || void 0;
+ onFilesPreUpload(files);
+ let setMedia;
+ if (multiple) {
+ if (addToGallery) {
+ let lastMediaPassed = [];
+ setMedia = (newMedia) => {
+ const filteredMedia = (value ?? []).filter((item) => {
+ if (item.id) {
+ return !lastMediaPassed.some(
+ // Be sure to convert to number for comparison.
+ ({ id }) => Number(id) === Number(item.id)
+ );
+ }
+ return !lastMediaPassed.some(
+ ({ urlSlug }) => item.url.includes(urlSlug)
+ );
+ });
+ onSelect(filteredMedia.concat(newMedia));
+ lastMediaPassed = newMedia.map((media) => {
+ const cutOffIndex = media.url.lastIndexOf(".");
+ const urlSlug = media.url.slice(0, cutOffIndex);
+ return { id: media.id, urlSlug };
+ });
+ };
+ } else {
+ setMedia = onSelect;
+ }
+ } else {
+ setMedia = ([media]) => onSelect(media);
}
- setAttributes(newAttributes);
+ mediaUpload2({
+ allowedTypes,
+ filesList: files,
+ onFileChange: setMedia,
+ onError,
+ multiple
+ });
};
- const updatedSettings = {
- ...settings2,
- background: {
- ...settings2.background,
- backgroundSize: settings2?.background?.backgroundSize && hasBackgroundSupport(name, "backgroundSize")
+ async function handleBlocksDrop(event) {
+ const { blocks: blocks2 } = parseDropEvent(event);
+ if (!blocks2?.length) {
+ return;
}
- };
- const backgroundDefaultControls = (0, import_blocks93.getBlockSupport)(name, [
- BACKGROUND_SUPPORT_KEY,
- "__experimentalDefaultControls"
- ]);
- const colorDefaultControls = (0, import_blocks93.getBlockSupport)(name, [
- "color",
- "__experimentalDefaultControls"
- ]);
- const defaultControls = {
- ...backgroundDefaultControls,
- backgroundColor: colorDefaultControls?.background,
- // Mirror the old combined control: show the gradient item by default
- // when background color was shown by default.
- gradient: backgroundDefaultControls?.gradient ?? colorDefaultControls?.background
- };
- const Wrapper = asWrapper || BackgroundInspectorControl;
- return /* @__PURE__ */ (0, import_jsx_runtime440.jsx)(
- BackgroundImagePanel2,
- {
- as: Wrapper,
- panelId: clientId,
- defaultValues: BACKGROUND_BLOCK_DEFAULT_VALUES2,
- settings: updatedSettings,
- onChange,
- defaultControls,
- value: isStateSelected ? getStyleForState2(style, selectedState) : styleValue,
- contrastWarning,
- inheritedValue
+ const uploadedMediaList = await Promise.all(
+ blocks2.map((block) => {
+ const blockType = block.name.split("/")[1];
+ if (block.attributes.id) {
+ block.attributes.type = blockType;
+ return block.attributes;
+ }
+ return new Promise((resolve, reject) => {
+ window.fetch(block.attributes.url).then((response) => response.blob()).then(
+ (blob) => mediaUpload2({
+ filesList: [blob],
+ additionalData: {
+ title: block.attributes.title,
+ alt_text: block.attributes.alt,
+ caption: block.attributes.caption,
+ type: blockType
+ },
+ onFileChange: ([media]) => {
+ if (media.id) {
+ resolve(media);
+ }
+ },
+ allowedTypes,
+ onError: reject
+ })
+ ).catch(() => resolve(block.attributes.url));
+ });
+ })
+ ).catch((err) => onError(err));
+ if (!uploadedMediaList?.length) {
+ return;
}
- );
- }
- var background_default = {
- useBlockProps: useBlockProps5,
- attributeKeys: ["style"],
- hasSupport: hasBackgroundSupport
- };
-
- // packages/block-editor/build-module/hooks/color.mjs
- var COLOR_SUPPORT_KEY2 = "color";
- var hasColorSupport = (blockNameOrType) => {
- const colorSupport = (0, import_blocks94.getBlockSupport)(blockNameOrType, COLOR_SUPPORT_KEY2);
- return colorSupport && (colorSupport.link === true || colorSupport.gradient === true || colorSupport.background !== false || colorSupport.text !== false);
- };
- var hasLinkColorSupport = (blockType) => {
- const colorSupport = (0, import_blocks94.getBlockSupport)(blockType, COLOR_SUPPORT_KEY2);
- return colorSupport !== null && typeof colorSupport === "object" && !!colorSupport.link;
- };
- var hasGradientSupport2 = (blockNameOrType) => {
- const colorSupport = (0, import_blocks94.getBlockSupport)(blockNameOrType, COLOR_SUPPORT_KEY2);
- return colorSupport !== null && typeof colorSupport === "object" && !!colorSupport.gradients;
- };
- var hasBackgroundColorSupport2 = (blockType) => {
- const colorSupport = (0, import_blocks94.getBlockSupport)(blockType, COLOR_SUPPORT_KEY2);
- return colorSupport && colorSupport.background !== false;
- };
- var hasTextColorSupport2 = (blockType) => {
- const colorSupport = (0, import_blocks94.getBlockSupport)(blockType, COLOR_SUPPORT_KEY2);
- return colorSupport && colorSupport.text !== false;
- };
- function addAttributes2(settings2) {
- if (!hasColorSupport(settings2)) {
- return settings2;
+ onSelect(multiple ? uploadedMediaList : uploadedMediaList[0]);
}
- if (!settings2.attributes.backgroundColor) {
- Object.assign(settings2.attributes, {
- backgroundColor: {
- type: "string"
+ const onUpload = (event) => {
+ onFilesUpload(event.target.files);
+ };
+ const defaultRenderPlaceholder = (content) => {
+ let { instructions, title } = labels;
+ if (!mediaUpload2 && !onSelectURL) {
+ instructions = (0, import_i18n169.__)(
+ "To edit this block, you need permission to upload media."
+ );
+ }
+ if (instructions === void 0 || title === void 0) {
+ const typesAllowed = allowedTypes ?? [];
+ const [firstAllowedType] = typesAllowed;
+ const isOneType = 1 === typesAllowed.length;
+ const isAudio = isOneType && "audio" === firstAllowedType;
+ const isImage = isOneType && "image" === firstAllowedType;
+ const isVideo = isOneType && "video" === firstAllowedType;
+ if (instructions === void 0 && mediaUpload2) {
+ instructions = (0, import_i18n169.__)(
+ "Drag and drop an image or video, upload, or choose from your library."
+ );
+ if (isAudio) {
+ instructions = (0, import_i18n169.__)(
+ "Drag and drop an audio file, upload, or choose from your library."
+ );
+ } else if (isImage) {
+ instructions = (0, import_i18n169.__)(
+ "Drag and drop an image, upload, or choose from your library."
+ );
+ } else if (isVideo) {
+ instructions = (0, import_i18n169.__)(
+ "Drag and drop a video, upload, or choose from your library."
+ );
+ }
}
- });
- }
- if (!settings2.attributes.textColor) {
- Object.assign(settings2.attributes, {
- textColor: {
- type: "string"
+ if (title === void 0) {
+ title = (0, import_i18n169.__)("Media");
+ if (isAudio) {
+ title = (0, import_i18n169.__)("Audio");
+ } else if (isImage) {
+ title = (0, import_i18n169.__)("Image");
+ } else if (isVideo) {
+ title = (0, import_i18n169.__)("Video");
+ }
}
- });
- }
- if (hasGradientSupport2(settings2) && !settings2.attributes.gradient) {
- Object.assign(settings2.attributes, {
- gradient: {
- type: "string"
+ }
+ const placeholderClassName = clsx_default(
+ "block-editor-media-placeholder",
+ className2,
+ {
+ "is-appender": isAppender
}
- });
- }
- return settings2;
- }
- function addSaveProps2(props, blockNameOrType, attributes) {
- if (!hasColorSupport(blockNameOrType) || shouldSkipSerialization(blockNameOrType, COLOR_SUPPORT_KEY2)) {
- return props;
- }
- const hasGradient = hasGradientSupport2(blockNameOrType);
- const { backgroundColor, textColor, gradient, style } = attributes;
- const shouldSerialize = (feature) => !shouldSkipSerialization(
- blockNameOrType,
- COLOR_SUPPORT_KEY2,
- feature
- );
- const textClass = shouldSerialize("text") ? getColorClassName("color", textColor) : void 0;
- const gradientClass = shouldSerialize("gradients") ? __experimentalGetGradientClass(gradient) : void 0;
- const backgroundClass = shouldSerialize("background") ? getColorClassName("background-color", backgroundColor) : void 0;
- const serializeHasBackground = shouldSerialize("background") || shouldSerialize("gradients");
- const hasBackground = backgroundColor || style?.color?.background || hasGradient && (gradient || style?.color?.gradient);
- const newClassName = clsx_default(props.className, textClass, gradientClass, {
- // Don't apply the background class if there's a custom gradient.
- [backgroundClass]: (!hasGradient || !style?.color?.gradient) && !!backgroundClass,
- "has-text-color": shouldSerialize("text") && (textColor || style?.color?.text),
- "has-background": serializeHasBackground && hasBackground,
- "has-link-color": shouldSerialize("link") && style?.elements?.link?.color
- });
- props.className = newClassName ? newClassName : void 0;
- return props;
- }
- function useBlockProps6({
- name,
- backgroundColor,
- textColor,
- gradient,
- style
- }) {
- const [userPalette, themePalette, defaultPalette] = useSettings(
- "color.palette.custom",
- "color.palette.theme",
- "color.palette.default"
- );
- const colors2 = (0, import_element264.useMemo)(
- () => [
- ...userPalette || [],
- ...themePalette || [],
- ...defaultPalette || []
- ],
- [userPalette, themePalette, defaultPalette]
- );
- if (!hasColorSupport(name) || shouldSkipSerialization(name, COLOR_SUPPORT_KEY2)) {
- return {};
- }
- const extraStyles = {};
- if (textColor && !shouldSkipSerialization(name, COLOR_SUPPORT_KEY2, "text")) {
- extraStyles.color = getColorObjectByAttributeValues(
- colors2,
- textColor
- )?.color;
- }
- if (backgroundColor && !shouldSkipSerialization(name, COLOR_SUPPORT_KEY2, "background")) {
- extraStyles.backgroundColor = getColorObjectByAttributeValues(
- colors2,
- backgroundColor
- )?.color;
- }
- const saveProps = addSaveProps2({ style: extraStyles }, name, {
- textColor,
- backgroundColor,
- gradient,
- style
- });
- const hasBackgroundValue = backgroundColor || style?.color?.background || gradient || style?.color?.gradient;
- return {
- ...saveProps,
- className: clsx_default(
- saveProps.className,
- // Add background image classes in the editor, if not already handled by background color values.
- !hasBackgroundValue && getBackgroundImageClasses(style)
- )
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime397.jsxs)(
+ import_components174.Placeholder,
+ {
+ icon,
+ label: title,
+ instructions,
+ className: placeholderClassName,
+ notices,
+ onDoubleClick,
+ preview: mediaPreview,
+ style,
+ children: [
+ content,
+ children
+ ]
+ }
+ );
};
- }
- var color_default = {
- useBlockProps: useBlockProps6,
- addSaveProps: addSaveProps2,
- attributeKeys: ["backgroundColor", "textColor", "gradient", "style"],
- hasSupport: hasColorSupport
- };
- var MIGRATION_PATHS = {
- linkColor: [["style", "elements", "link", "color", "text"]],
- textColor: [["textColor"], ["style", "color", "text"]],
- backgroundColor: [
- ["backgroundColor"],
- ["style", "color", "background"]
- ],
- gradient: [["gradient"], ["style", "color", "gradient"]]
- };
- function addTransforms(result, source, index2, results) {
- const destinationBlockType = result.name;
- const activeSupports = {
- linkColor: hasLinkColorSupport(destinationBlockType),
- textColor: hasTextColorSupport2(destinationBlockType),
- backgroundColor: hasBackgroundColorSupport2(destinationBlockType),
- gradient: hasGradientSupport2(destinationBlockType)
+ const renderPlaceholder = placeholder ?? defaultRenderPlaceholder;
+ const renderDropZone = () => {
+ if (disableDropZone) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.DropZone,
+ {
+ onFilesDrop: onFilesUpload,
+ onDrop: handleBlocksDrop,
+ isEligible: (dataTransfer) => {
+ const prefix2 = "wp-block:core/";
+ const types = [];
+ for (const type of dataTransfer.types) {
+ if (type.startsWith(prefix2)) {
+ types.push(type.slice(prefix2.length));
+ }
+ }
+ return types.every(
+ (type) => allowedTypes.includes(type)
+ ) && (multiple ? true : types.length === 1);
+ }
+ }
+ );
};
- return transformStyles2(
- activeSupports,
- MIGRATION_PATHS,
- result,
- source,
- index2,
- results
- );
- }
- (0, import_hooks14.addFilter)(
- "blocks.registerBlockType",
- "core/color/addAttribute",
- addAttributes2
- );
- (0, import_hooks14.addFilter)(
- "blocks.switchToBlockType.transformedBlock",
- "core/color/addTransforms",
- addTransforms
- );
-
- // packages/block-editor/build-module/hooks/elements.mjs
- var import_jsx_runtime441 = __toESM(require_jsx_runtime(), 1);
- function ElementsInspectorControl({ children, resetAllFilter }) {
- const attributesResetAllFilter = (0, import_element265.useCallback)(
- (attributes) => {
- const updatedStyle = resetAllFilter(attributes.style);
- return {
- ...attributes,
- style: cleanEmptyObject(updatedStyle)
- };
- },
- [resetAllFilter]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
- inspector_controls_default,
+ const renderCancelLink = () => {
+ return onCancel && /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.Button,
+ {
+ __next40pxDefaultSize: true,
+ className: "block-editor-media-placeholder__cancel-button",
+ title: (0, import_i18n169.__)("Cancel"),
+ variant: "link",
+ onClick: onCancel,
+ children: (0, import_i18n169.__)("Cancel")
+ }
+ );
+ };
+ const renderUrlSelectionUI = () => {
+ return onSelectURL && /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ URLSelectionUI,
+ {
+ src,
+ onChangeSrc: setSrc,
+ onSelectURL
+ }
+ );
+ };
+ const renderFeaturedImageToggle = () => {
+ return onToggleFeaturedImage && /* @__PURE__ */ (0, import_jsx_runtime397.jsx)("div", { className: "block-editor-media-placeholder__url-input-container", children: /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.Button,
+ {
+ __next40pxDefaultSize: true,
+ className: "block-editor-media-placeholder__button",
+ onClick: onToggleFeaturedImage,
+ variant: "secondary",
+ children: (0, import_i18n169.__)("Use featured image")
+ }
+ ) });
+ };
+ const renderMediaUploadChecked = () => {
+ const defaultButton = ({ open }) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "secondary",
+ onClick: () => {
+ open();
+ },
+ children: (0, import_i18n169.__)("Media Library")
+ }
+ );
+ };
+ const libraryButton = mediaLibraryButton ?? defaultButton;
+ const uploadMediaLibraryButton = /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ media_upload_default,
+ {
+ addToGallery,
+ gallery: multiple && onlyAllowsImages(),
+ multiple,
+ onSelect,
+ allowedTypes,
+ mode: "browse",
+ value: Array.isArray(value) ? value.map(({ id }) => id) : value.id,
+ render: libraryButton
+ }
+ );
+ if (mediaUpload2 && isAppender) {
+ return /* @__PURE__ */ (0, import_jsx_runtime397.jsxs)(import_jsx_runtime397.Fragment, { children: [
+ renderDropZone(),
+ /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.FormFileUpload,
+ {
+ onChange: onUpload,
+ accept: computedAccept,
+ multiple: !!multiple,
+ render: ({ openFileDialog }) => {
+ const content = /* @__PURE__ */ (0, import_jsx_runtime397.jsxs)(import_jsx_runtime397.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "primary",
+ className: clsx_default(
+ "block-editor-media-placeholder__button",
+ "block-editor-media-placeholder__upload-button"
+ ),
+ onClick: openFileDialog,
+ children: (0, import_i18n169._x)("Upload", "verb")
+ }
+ ),
+ uploadMediaLibraryButton,
+ renderUrlSelectionUI(),
+ renderFeaturedImageToggle(),
+ renderCancelLink()
+ ] });
+ return renderPlaceholder(content);
+ }
+ }
+ )
+ ] });
+ }
+ if (mediaUpload2) {
+ const content = /* @__PURE__ */ (0, import_jsx_runtime397.jsxs)(import_jsx_runtime397.Fragment, { children: [
+ renderDropZone(),
+ /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.FormFileUpload,
+ {
+ render: ({ openFileDialog }) => /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ import_components174.Button,
+ {
+ __next40pxDefaultSize: true,
+ onClick: openFileDialog,
+ variant: "primary",
+ className: clsx_default(
+ "block-editor-media-placeholder__button",
+ "block-editor-media-placeholder__upload-button"
+ ),
+ children: (0, import_i18n169._x)("Upload", "verb")
+ }
+ ),
+ onChange: onUpload,
+ accept: computedAccept,
+ multiple: !!multiple
+ }
+ ),
+ uploadMediaLibraryButton,
+ renderUrlSelectionUI(),
+ renderFeaturedImageToggle(),
+ renderCancelLink()
+ ] });
+ return renderPlaceholder(content);
+ }
+ return renderPlaceholder(uploadMediaLibraryButton);
+ };
+ if (disableMediaButtons) {
+ return /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(check_default2, { children: renderDropZone() });
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime397.jsx)(
+ check_default2,
{
- group: "elements",
- resetAllFilter: attributesResetAllFilter,
- children
+ fallback: renderPlaceholder(renderUrlSelectionUI()),
+ children: renderMediaUploadChecked()
}
);
}
- function ElementsEdit({
- clientId,
- name,
- setAttributes,
- settings: settings2,
- asWrapper,
- label,
- defaultControls
- }) {
- const selectedState = useBlockStyleState();
- const isEnabled = useHasColorPanel(settings2);
- const { style, className } = (0, import_data169.useSelect)(
- (select3) => {
- if (!isEnabled) {
- return {};
- }
- const attributes = select3(store).getBlockAttributes(clientId);
- return {
- style: attributes?.style,
- className: attributes?.className
- };
- },
- [clientId, isEnabled]
- );
- const { value: inheritedValue } = useResolvedStyle(
- name,
- className,
- selectedState
- );
- const isStateSelected = !isDefaultBlockStyleState2(selectedState);
- const value = (0, import_element265.useMemo)(() => {
- if (isStateSelected) {
- return getStyleForState2(style, selectedState);
+ var media_placeholder_default = (0, import_components174.withFilters)("editor.MediaPlaceholder")(MediaPlaceholder);
+
+ // packages/block-editor/build-module/components/panel-color-settings/index.mjs
+ var import_jsx_runtime398 = __toESM(require_jsx_runtime(), 1);
+ var PanelColorSettings = ({ colorSettings, ...props }) => {
+ const settings2 = colorSettings.map((setting) => {
+ if (!setting) {
+ return setting;
}
- return style;
- }, [isStateSelected, selectedState, style]);
- const onChange = isStateSelected ? (newStyle) => {
- setAttributes({
- style: setStyleForState(style, selectedState, newStyle)
- });
- } : (newStyle) => {
- setAttributes({ style: cleanEmptyObject(newStyle) });
- };
- const enableContrastChecking = !!value?.elements?.link?.color?.text && settings2?.color?.link && false !== (0, import_blocks95.getBlockSupport)(name, [
- COLOR_SUPPORT_KEY2,
- "enableContrastChecker"
- ]);
- const contrastWarning = useBlockColorContrastWarning({
- clientId,
- name,
- enabled: !!enableContrastChecking,
- checkTextColor: false,
- messageOverride: (0, import_i18n205.__)(
- "This link color has poor contrast against the background. Consider increasing contrast."
- )
+ const { value, onChange, ...otherSettings } = setting;
+ return {
+ ...otherSettings,
+ colorValue: value,
+ onColorChange: onChange
+ };
});
- if (!isEnabled) {
- return null;
- }
- defaultControls = defaultControls ? defaultControls : (0, import_blocks95.getBlockSupport)(name, [
- COLOR_SUPPORT_KEY2,
- "__experimentalDefaultControls"
- ]);
- const Wrapper = asWrapper || ElementsInspectorControl;
- return /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
- ColorPanel,
+ return /* @__PURE__ */ (0, import_jsx_runtime398.jsx)(
+ panel_color_gradient_settings_default,
{
- as: Wrapper,
- panelId: clientId,
settings: settings2,
- value,
- onChange,
- defaultControls,
- label,
- contrastWarning,
- inheritedValue
+ gradients: [],
+ disableCustomGradients: true,
+ ...props
}
);
- }
+ };
+ var panel_color_settings_default = PanelColorSettings;
- // packages/block-editor/build-module/hooks/typography.mjs
- var import_blocks101 = __toESM(require_blocks(), 1);
- var import_element269 = __toESM(require_element(), 1);
- var import_data173 = __toESM(require_data(), 1);
- var import_i18n209 = __toESM(require_i18n(), 1);
+ // packages/block-editor/build-module/components/plain-text/index.mjs
+ var import_react_autosize_textarea2 = __toESM(require_lib(), 1);
+ var import_element246 = __toESM(require_element(), 1);
- // packages/block-editor/build-module/hooks/line-height.mjs
- var import_blocks96 = __toESM(require_blocks(), 1);
- var import_jsx_runtime442 = __toESM(require_jsx_runtime(), 1);
- var LINE_HEIGHT_SUPPORT_KEY2 = "typography.lineHeight";
+ // packages/block-editor/build-module/components/editable-text/index.mjs
+ var import_element245 = __toESM(require_element(), 1);
- // packages/block-editor/build-module/hooks/font-family.mjs
- var import_hooks15 = __toESM(require_hooks(), 1);
- var import_blocks97 = __toESM(require_blocks(), 1);
- var import_token_list2 = __toESM(require_token_list(), 1);
- var import_components214 = __toESM(require_components(), 1);
- var FONT_FAMILY_SUPPORT_KEY2 = "typography.__experimentalFontFamily";
- var { kebabCase: kebabCase5 } = unlock(import_components214.privateApis);
- function addAttributes3(settings2) {
- if (!(0, import_blocks97.hasBlockSupport)(settings2, FONT_FAMILY_SUPPORT_KEY2)) {
- return settings2;
- }
- if (!settings2.attributes.fontFamily) {
- Object.assign(settings2.attributes, {
- fontFamily: {
- type: "string"
+ // packages/block-editor/build-module/components/rich-text/index.mjs
+ var import_es65 = __toESM(require_es6(), 1);
+ var import_element244 = __toESM(require_element(), 1);
+ var import_data156 = __toESM(require_data(), 1);
+ var import_compose95 = __toESM(require_compose(), 1);
+ var import_rich_text19 = __toESM(require_rich_text(), 1);
+ var import_components178 = __toESM(require_components(), 1);
+ var import_blocks90 = __toESM(require_blocks(), 1);
+ var import_deprecated28 = __toESM(require_deprecated(), 1);
+ var import_i18n172 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/rich-text/format-toolbar-container.mjs
+ var import_i18n171 = __toESM(require_i18n(), 1);
+ var import_components176 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/rich-text/format-toolbar/index.mjs
+ var import_i18n170 = __toESM(require_i18n(), 1);
+ var import_components175 = __toESM(require_components(), 1);
+ var import_jsx_runtime399 = __toESM(require_jsx_runtime(), 1);
+ var POPOVER_PROPS8 = {
+ placement: "bottom-start"
+ };
+ var FormatToolbar = () => {
+ return /* @__PURE__ */ (0, import_jsx_runtime399.jsxs)(import_jsx_runtime399.Fragment, { children: [
+ ["bold", "italic", "link", "unknown"].map((format7) => /* @__PURE__ */ (0, import_jsx_runtime399.jsx)(
+ import_components175.Slot,
+ {
+ name: `RichText.ToolbarControls.${format7}`
+ },
+ format7
+ )),
+ /* @__PURE__ */ (0, import_jsx_runtime399.jsx)(import_components175.Slot, { name: "RichText.ToolbarControls", children: (fills) => {
+ if (!fills.length) {
+ return null;
}
- });
- }
- return settings2;
- }
- function addSaveProps3(props, blockType, attributes) {
- if (!(0, import_blocks97.hasBlockSupport)(blockType, FONT_FAMILY_SUPPORT_KEY2)) {
- return props;
- }
- if (shouldSkipSerialization(
- blockType,
- TYPOGRAPHY_SUPPORT_KEY,
- "fontFamily"
- )) {
- return props;
- }
- if (!attributes?.fontFamily) {
- return props;
- }
- const classes = new import_token_list2.default(props.className);
- classes.add(`has-${kebabCase5(attributes?.fontFamily)}-font-family`);
- const newClassName = classes.value;
- props.className = newClassName ? newClassName : void 0;
- return props;
- }
- function useBlockProps7({ name, fontFamily }) {
- return addSaveProps3({}, name, { fontFamily });
- }
- var font_family_default = {
- useBlockProps: useBlockProps7,
- addSaveProps: addSaveProps3,
- attributeKeys: ["fontFamily"],
- hasSupport(name) {
- return (0, import_blocks97.hasBlockSupport)(name, FONT_FAMILY_SUPPORT_KEY2);
- }
+ const allProps = fills.map(([{ props }]) => props);
+ const hasActive = allProps.some(
+ ({ isActive }) => isActive
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime399.jsx)(import_components175.ToolbarItem, { children: (toggleProps) => /* @__PURE__ */ (0, import_jsx_runtime399.jsx)(
+ import_components175.DropdownMenu,
+ {
+ icon: chevron_down_default,
+ label: (0, import_i18n170.__)("More"),
+ toggleProps: {
+ ...toggleProps,
+ className: clsx_default(
+ toggleProps.className,
+ { "is-pressed": hasActive }
+ ),
+ description: (0, import_i18n170.__)(
+ "Displays more block tools"
+ )
+ },
+ controls: orderBy(
+ fills.map(([{ props }]) => props),
+ "title"
+ ),
+ popoverProps: POPOVER_PROPS8
+ }
+ ) });
+ } })
+ ] });
};
- (0, import_hooks15.addFilter)(
- "blocks.registerBlockType",
- "core/fontFamily/addAttribute",
- addAttributes3
- );
+ var format_toolbar_default = FormatToolbar;
- // packages/block-editor/build-module/hooks/font-size.mjs
- var import_hooks16 = __toESM(require_hooks(), 1);
- var import_blocks98 = __toESM(require_blocks(), 1);
- var import_token_list3 = __toESM(require_token_list(), 1);
- var import_jsx_runtime443 = __toESM(require_jsx_runtime(), 1);
- var FONT_SIZE_SUPPORT_KEY2 = "typography.fontSize";
- function addAttributes4(settings2) {
- if (!(0, import_blocks98.hasBlockSupport)(settings2, FONT_SIZE_SUPPORT_KEY2)) {
- return settings2;
- }
- if (!settings2.attributes.fontSize) {
- Object.assign(settings2.attributes, {
- fontSize: {
- type: "string"
- }
- });
- }
- return settings2;
+ // packages/block-editor/build-module/components/rich-text/format-toolbar-container.mjs
+ var import_jsx_runtime400 = __toESM(require_jsx_runtime(), 1);
+ function InlineToolbar({ popoverAnchor }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(
+ import_components176.Popover,
+ {
+ placement: "top",
+ focusOnMount: false,
+ anchor: popoverAnchor,
+ className: "block-editor-rich-text__inline-format-toolbar",
+ __unstableSlotName: "block-toolbar",
+ children: /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(
+ NavigableToolbar,
+ {
+ className: "block-editor-rich-text__inline-format-toolbar-group",
+ "aria-label": (0, import_i18n171.__)("Format tools"),
+ children: /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(import_components176.ToolbarGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(format_toolbar_default, {}) })
+ }
+ )
+ }
+ );
}
- function addSaveProps4(props, blockNameOrType, attributes) {
- if (!(0, import_blocks98.hasBlockSupport)(blockNameOrType, FONT_SIZE_SUPPORT_KEY2)) {
- return props;
- }
- if (shouldSkipSerialization(
- blockNameOrType,
- TYPOGRAPHY_SUPPORT_KEY,
- "fontSize"
- )) {
- return props;
- }
- const classes = new import_token_list3.default(props.className);
- classes.add(getFontSizeClass(attributes.fontSize));
- const newClassName = classes.value;
- props.className = newClassName ? newClassName : void 0;
- return props;
- }
- function useBlockProps8({ name, fontSize, style }) {
- const [fontSizes, fluidTypographySettings, layoutSettings] = useSettings(
- "typography.fontSizes",
- "typography.fluid",
- "layout"
- );
- if (!(0, import_blocks98.hasBlockSupport)(name, FONT_SIZE_SUPPORT_KEY2) || shouldSkipSerialization(name, TYPOGRAPHY_SUPPORT_KEY, "fontSize") || !fontSize && !style?.typography?.fontSize) {
- return;
- }
- let props;
- if (style?.typography?.fontSize) {
- props = {
- style: {
- fontSize: getTypographyFontSizeValue(
- { size: style.typography.fontSize },
- {
- typography: {
- fluid: fluidTypographySettings
- },
- layout: layoutSettings
- }
- )
- }
- };
- }
- if (fontSize) {
- props = {
- style: {
- fontSize: getFontSize(
- fontSizes,
- fontSize,
- style?.typography?.fontSize
- ).size
- }
- };
- }
- if (!props) {
- return;
- }
- return addSaveProps4(props, name, { fontSize });
- }
- var font_size_default = {
- useBlockProps: useBlockProps8,
- addSaveProps: addSaveProps4,
- attributeKeys: ["fontSize", "style"],
- hasSupport(name) {
- return (0, import_blocks98.hasBlockSupport)(name, FONT_SIZE_SUPPORT_KEY2);
+ var FormatToolbarContainer = ({ inline: inline4, editableContentElement }) => {
+ if (inline4) {
+ return /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(InlineToolbar, { popoverAnchor: editableContentElement });
}
+ return /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(block_controls_default, { group: "inline", children: /* @__PURE__ */ (0, import_jsx_runtime400.jsx)(format_toolbar_default, {}) });
};
- var MIGRATION_PATHS2 = {
- fontSize: [["fontSize"], ["style", "typography", "fontSize"]]
- };
- function addTransforms2(result, source, index2, results) {
- const destinationBlockType = result.name;
- const activeSupports = {
- fontSize: (0, import_blocks98.hasBlockSupport)(
- destinationBlockType,
- FONT_SIZE_SUPPORT_KEY2
- )
- };
- return transformStyles2(
- activeSupports,
- MIGRATION_PATHS2,
- result,
- source,
- index2,
- results
- );
+ var format_toolbar_container_default = FormatToolbarContainer;
+
+ // packages/block-editor/build-module/components/rich-text/use-mark-persistent.mjs
+ var import_element237 = __toESM(require_element(), 1);
+ var import_data154 = __toESM(require_data(), 1);
+ function useMarkPersistent({ html, value }) {
+ const previousTextRef = (0, import_element237.useRef)();
+ const hasActiveFormats = !!value.activeFormats?.length;
+ const { __unstableMarkLastChangeAsPersistent: __unstableMarkLastChangeAsPersistent2 } = (0, import_data154.useDispatch)(store);
+ (0, import_element237.useLayoutEffect)(() => {
+ if (!previousTextRef.current) {
+ previousTextRef.current = value.text;
+ return;
+ }
+ if (previousTextRef.current !== value.text) {
+ const timeout = window.setTimeout(() => {
+ __unstableMarkLastChangeAsPersistent2();
+ }, 1e3);
+ previousTextRef.current = value.text;
+ return () => {
+ window.clearTimeout(timeout);
+ };
+ }
+ __unstableMarkLastChangeAsPersistent2();
+ }, [html, hasActiveFormats]);
}
- (0, import_hooks16.addFilter)(
- "blocks.registerBlockType",
- "core/font/addAttribute",
- addAttributes4
- );
- (0, import_hooks16.addFilter)(
- "blocks.switchToBlockType.transformedBlock",
- "core/font-size/addTransforms",
- addTransforms2
- );
- // packages/block-editor/build-module/hooks/text-align.mjs
- var import_i18n206 = __toESM(require_i18n(), 1);
- var import_blocks99 = __toESM(require_blocks(), 1);
- var import_data171 = __toESM(require_data(), 1);
+ // packages/block-editor/build-module/components/rich-text/event-listeners/index.mjs
+ var import_element239 = __toESM(require_element(), 1);
+ var import_compose94 = __toESM(require_compose(), 1);
- // packages/block-editor/build-module/components/block-editing-mode/index.mjs
- var import_data170 = __toESM(require_data(), 1);
- var import_element266 = __toESM(require_element(), 1);
- function useBlockEditingMode(mode2) {
- const context = useBlockEditContext();
- const { clientId = "" } = context;
- const registry = (0, import_data170.useRegistry)();
- const globalBlockEditingMode = (0, import_data170.useSelect)(
- (select3) => (
- // Avoid adding the subscription if not needed!
- clientId ? null : select3(store).getBlockEditingMode()
- ),
- [clientId]
- );
- (0, import_element266.useEffect)(() => {
- if (!mode2) {
+ // packages/block-editor/build-module/components/rich-text/event-listeners/before-input-rules.mjs
+ var import_rich_text5 = __toESM(require_rich_text(), 1);
+ var import_hooks7 = __toESM(require_hooks(), 1);
+ var { subscribeOwnedListener } = unlock(import_rich_text5.privateApis);
+ var wrapSelectionSettings = ["`", '"', "'", "\u201C\u201D", "\u2018\u2019"];
+ var before_input_rules_default = (props) => (element) => {
+ function onInput(event) {
+ const { inputType, data } = event;
+ const { value, onChange, registry } = props.current;
+ if (inputType !== "insertText") {
return;
}
+ if ((0, import_rich_text5.isCollapsed)(value)) {
+ return;
+ }
+ const pair = (0, import_hooks7.applyFilters)(
+ "blockEditor.wrapSelectionSettings",
+ wrapSelectionSettings
+ ).find(
+ ([startChar2, endChar2]) => startChar2 === data || endChar2 === data
+ );
+ if (!pair) {
+ return;
+ }
+ const [startChar, endChar = startChar] = pair;
+ const start2 = value.start;
+ const end = value.end + startChar.length;
+ let newValue = (0, import_rich_text5.insert)(value, startChar, start2, start2);
+ newValue = (0, import_rich_text5.insert)(newValue, endChar, end, end);
const {
- setBlockEditingMode: setBlockEditingMode2,
- unsetBlockEditingMode: unsetBlockEditingMode2,
- __unstableMarkNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent2
+ __unstableMarkLastChangeAsPersistent: __unstableMarkLastChangeAsPersistent2,
+ __unstableMarkAutomaticChange: __unstableMarkAutomaticChange2
} = registry.dispatch(store);
- __unstableMarkNextChangeAsNotPersistent2();
- setBlockEditingMode2(clientId, mode2);
- return () => {
- __unstableMarkNextChangeAsNotPersistent2();
- unsetBlockEditingMode2(clientId);
- };
- }, [registry, clientId, mode2]);
- return clientId ? context[blockEditingModeKey] : globalBlockEditingMode;
- }
-
- // packages/block-editor/build-module/hooks/text-align.mjs
- var import_jsx_runtime444 = __toESM(require_jsx_runtime(), 1);
- var TEXT_ALIGN_SUPPORT_KEY2 = "typography.textAlign";
- var TEXT_ALIGNMENT_OPTIONS2 = [
- {
- icon: align_left_default,
- title: (0, import_i18n206.__)("Align text left"),
- align: "left"
- },
- {
- icon: align_center_default,
- title: (0, import_i18n206.__)("Align text center"),
- align: "center"
- },
- {
- icon: align_right_default,
- title: (0, import_i18n206.__)("Align text right"),
- align: "right"
- }
- ];
- var VALID_TEXT_ALIGNMENTS = ["left", "center", "right"];
- var NO_TEXT_ALIGNMENTS = [];
- function getValidTextAlignments(blockTextAlign) {
- if (Array.isArray(blockTextAlign)) {
- return VALID_TEXT_ALIGNMENTS.filter(
- (textAlign) => blockTextAlign.includes(textAlign)
- );
- }
- return blockTextAlign === true ? VALID_TEXT_ALIGNMENTS : NO_TEXT_ALIGNMENTS;
- }
- function getTextAlignControlGroup(isResponsiveEditing3, selectedState) {
- return isResponsiveEditing3 && hasViewportBlockStyleState(selectedState) ? "style-state" : "block";
- }
- function BlockEditTextAlignmentToolbarControlsPure({
- clientId,
- style,
- name: blockName,
- setAttributes
- }) {
- const settings2 = useBlockSettings(blockName);
- const hasTextAlignControl = settings2?.typography?.textAlign;
- const blockEditingMode = useBlockEditingMode();
- const { selectedState, isResponsiveEditing: isResponsiveEditing3 } = (0, import_data171.useSelect)(
- (select3) => {
- const {
- getSelectedBlockStyleState: getSelectedBlockStyleState2,
- isResponsiveEditing: getIsResponsiveEditing
- } = unlock(select3(store));
- return {
- selectedState: getSelectedBlockStyleState2(clientId),
- isResponsiveEditing: getIsResponsiveEditing()
- };
- },
- [clientId]
- );
- if (!hasTextAlignControl || blockEditingMode !== "default") {
- return null;
- }
- const validTextAlignments = getValidTextAlignments(
- (0, import_blocks99.getBlockSupport)(blockName, TEXT_ALIGN_SUPPORT_KEY2)
- );
- if (!validTextAlignments.length) {
- return null;
- }
- const textAlignmentControls = TEXT_ALIGNMENT_OPTIONS2.filter(
- (control) => validTextAlignments.includes(control.align)
- );
- const stateStyle = getStyleForState2(style, selectedState);
- const controlsGroup = getTextAlignControlGroup(
- isResponsiveEditing3,
- selectedState
- );
- const onChange = (newTextAlignValue) => {
- const newStateStyle = {
- ...stateStyle,
- typography: {
- ...stateStyle?.typography,
- textAlign: newTextAlignValue
- }
- };
- setAttributes({
- style: setStyleForState(style, selectedState, newStateStyle)
- });
- };
- return /* @__PURE__ */ (0, import_jsx_runtime444.jsx)(block_controls_default, { group: controlsGroup, children: /* @__PURE__ */ (0, import_jsx_runtime444.jsx)(
- AlignmentControl,
- {
- value: stateStyle?.typography?.textAlign,
- onChange,
- alignmentControls: textAlignmentControls
+ __unstableMarkLastChangeAsPersistent2();
+ onChange(newValue);
+ __unstableMarkAutomaticChange2();
+ const init = {};
+ for (const key in event) {
+ init[key] = event[key];
}
- ) });
- }
- var text_align_default = {
- edit: BlockEditTextAlignmentToolbarControlsPure,
- useBlockProps: useBlockProps9,
- addSaveProps: addAssignedTextAlign,
- attributeKeys: ["style"],
- hasSupport(name) {
- return (0, import_blocks99.hasBlockSupport)(name, TEXT_ALIGN_SUPPORT_KEY2, false);
+ init.data = endChar;
+ const { ownerDocument: ownerDocument2 } = element;
+ const { defaultView } = ownerDocument2;
+ const newEvent = new defaultView.InputEvent("input", init);
+ window.queueMicrotask(() => {
+ element.dispatchEvent(newEvent);
+ });
+ event.preventDefault();
}
+ return subscribeOwnedListener(element, "beforeinput", onInput, true);
};
- function useBlockProps9({ name, style }) {
- if (!style?.typography?.textAlign) {
- return null;
- }
- const validTextAlignments = getValidTextAlignments(
- (0, import_blocks99.getBlockSupport)(name, TEXT_ALIGN_SUPPORT_KEY2)
- );
- if (!validTextAlignments.length) {
- return null;
- }
- if (shouldSkipSerialization(name, TYPOGRAPHY_SUPPORT_KEY, "textAlign")) {
- return null;
- }
- const textAlign = style.typography.textAlign;
- const className = clsx_default({
- [`has-text-align-${textAlign}`]: textAlign
- });
- return { className };
- }
- function addAssignedTextAlign(props, blockType, attributes) {
- if (!attributes?.style?.typography?.textAlign) {
- return props;
- }
- const { textAlign } = attributes.style.typography;
- const blockTextAlign = (0, import_blocks99.getBlockSupport)(blockType, TEXT_ALIGN_SUPPORT_KEY2);
- const isTextAlignValid = getValidTextAlignments(blockTextAlign).includes(textAlign);
- if (isTextAlignValid && !shouldSkipSerialization(
- blockType,
- TYPOGRAPHY_SUPPORT_KEY,
- "textAlign"
- )) {
- props.className = clsx_default(
- `has-text-align-${textAlign}`,
- props.className
- );
- }
- return props;
- }
- // packages/block-editor/build-module/hooks/fit-text.mjs
- var import_hooks17 = __toESM(require_hooks(), 1);
- var import_blocks100 = __toESM(require_blocks(), 1);
- var import_element268 = __toESM(require_element(), 1);
- var import_data172 = __toESM(require_data(), 1);
- var import_i18n208 = __toESM(require_i18n(), 1);
- var import_components217 = __toESM(require_components(), 1);
- var import_compose96 = __toESM(require_compose(), 1);
+ // packages/block-editor/build-module/components/rich-text/event-listeners/input-rules.mjs
+ var import_rich_text7 = __toESM(require_rich_text(), 1);
+ var import_blocks85 = __toESM(require_blocks(), 1);
- // packages/block-editor/build-module/utils/fit-text-utils.mjs
- function findOptimalFontSize(textElement, applyFontSize) {
- const alreadyHasScrollableHeight = textElement.scrollHeight > textElement.clientHeight;
- let minSize = 0;
- let maxSize = 2400;
- let bestSize = minSize;
- const computedStyle = window.getComputedStyle(textElement);
- let paddingLeft = parseFloat(computedStyle.paddingLeft) || 0;
- let paddingRight = parseFloat(computedStyle.paddingRight) || 0;
- const range2 = document.createRange();
- range2.selectNodeContents(textElement);
- let referenceElement = textElement;
- const parentElement = textElement.parentElement;
- if (parentElement) {
- const parentElementComputedStyle = window.getComputedStyle(parentElement);
- if (parentElementComputedStyle?.display === "flex") {
- referenceElement = parentElement;
- paddingLeft += parseFloat(parentElementComputedStyle.paddingLeft) || 0;
- paddingRight += parseFloat(parentElementComputedStyle.paddingRight) || 0;
- }
- }
- let maxclientHeight = referenceElement.clientHeight;
- while (minSize <= maxSize) {
- const midSize = Math.floor((minSize + maxSize) / 2);
- applyFontSize(midSize);
- const rect = range2.getBoundingClientRect();
- const textWidth = rect.width;
- const fitsWidth = textElement.scrollWidth <= referenceElement.clientWidth && textWidth <= referenceElement.clientWidth - paddingLeft - paddingRight;
- const fitsHeight = alreadyHasScrollableHeight || textElement.scrollHeight <= referenceElement.clientHeight || textElement.scrollHeight <= maxclientHeight;
- if (referenceElement.clientHeight > maxclientHeight) {
- maxclientHeight = referenceElement.clientHeight;
- }
- if (fitsWidth && fitsHeight) {
- bestSize = midSize;
- minSize = midSize + 1;
- } else {
- maxSize = midSize - 1;
- }
+ // packages/block-editor/build-module/components/rich-text/prevent-event-discovery.mjs
+ var import_rich_text6 = __toESM(require_rich_text(), 1);
+ function preventEventDiscovery(value) {
+ const searchText = "tales of gutenberg";
+ const addText = " \u{1F421}\u{1F422}\u{1F980}\u{1F424}\u{1F98B}\u{1F418}\u{1F427}\u{1F439}\u{1F981}\u{1F984}\u{1F98D}\u{1F43C}\u{1F43F}\u{1F383}\u{1F434}\u{1F41D}\u{1F406}\u{1F995}\u{1F994}\u{1F331}\u{1F347}\u03C0\u{1F34C}\u{1F409}\u{1F4A7}\u{1F968}\u{1F30C}\u{1F342}\u{1F360}\u{1F966}\u{1F95A}\u{1F95D}\u{1F39F}\u{1F965}\u{1F952}\u{1F6F5}\u{1F956}\u{1F352}\u{1F36F}\u{1F3BE}\u{1F3B2}\u{1F43A}\u{1F41A}\u{1F42E}\u231B\uFE0F";
+ const { start: start2, text } = value;
+ if (start2 < searchText.length) {
+ return value;
}
- range2.detach();
- return bestSize;
- }
- function optimizeFitText(textElement, applyFontSize) {
- if (!textElement) {
- return;
+ const charactersBefore = text.slice(start2 - searchText.length, start2);
+ if (charactersBefore.toLowerCase() !== searchText) {
+ return value;
}
- applyFontSize(0);
- const optimalSize = findOptimalFontSize(textElement, applyFontSize);
- applyFontSize(optimalSize);
- return optimalSize;
+ return (0, import_rich_text6.insert)(value, addText);
}
- // packages/block-editor/build-module/components/fit-text-size-warning/index.mjs
- var import_element267 = __toESM(require_element(), 1);
- var import_i18n207 = __toESM(require_i18n(), 1);
- var import_components216 = __toESM(require_components(), 1);
- var import_a11y21 = __toESM(require_a11y(), 1);
- var import_jsx_runtime445 = __toESM(require_jsx_runtime(), 1);
- function FitTextSizeWarning() {
- const message2 = (0, import_i18n207.__)(
- "The text may be too small to read. Consider using a larger container or less text."
- );
- (0, import_element267.useEffect)(() => {
- (0, import_a11y21.speak)(message2);
- }, [message2]);
- return /* @__PURE__ */ (0, import_jsx_runtime445.jsx)("div", { className: "block-editor-fit-text-size-warning", children: /* @__PURE__ */ (0, import_jsx_runtime445.jsx)(
- import_components216.Notice,
- {
- spokenMessage: null,
- status: "warning",
- isDismissible: false,
- children: message2
+ // packages/block-editor/build-module/components/rich-text/event-listeners/input-rules.mjs
+ var { subscribeOwnedListener: subscribeOwnedListener2 } = unlock(import_rich_text7.privateApis);
+ function findSelection(blocks2) {
+ let i2 = blocks2.length;
+ while (i2--) {
+ const attributeKey = retrieveSelectedAttribute(
+ blocks2[i2].attributes
+ );
+ if (attributeKey) {
+ blocks2[i2].attributes[attributeKey] = blocks2[i2].attributes[attributeKey].toString().replace(START_OF_SELECTED_AREA, "");
+ return [blocks2[i2].clientId, attributeKey, 0, 0];
}
- ) });
- }
-
- // packages/block-editor/build-module/hooks/fit-text.mjs
- var import_jsx_runtime446 = __toESM(require_jsx_runtime(), 1);
- var EMPTY_OBJECT4 = {};
- var MIN_FONT_SIZE_FOR_WARNING = 12;
- var FIT_TEXT_SUPPORT_KEY = "typography.fitText";
- function addAttributes5(settings2) {
- if (!(0, import_blocks100.hasBlockSupport)(settings2, FIT_TEXT_SUPPORT_KEY)) {
- return settings2;
- }
- if (settings2.attributes?.fitText) {
- return settings2;
- }
- return {
- ...settings2,
- attributes: {
- ...settings2.attributes,
- fitText: {
- type: "boolean"
- }
+ const nestedSelection = findSelection(blocks2[i2].innerBlocks);
+ if (nestedSelection) {
+ return nestedSelection;
}
- };
+ }
+ return [];
}
- function useFitText({ fitText, name, clientId }) {
- const [fontSize, setFontSize] = (0, import_element268.useState)(null);
- const hasFitTextSupport2 = (0, import_blocks100.hasBlockSupport)(name, FIT_TEXT_SUPPORT_KEY);
- const blockElement = useBlockElement(clientId);
- const { blockAttributes, parentId, blockMode } = (0, import_data172.useSelect)(
- (select3) => {
- if (!clientId || !hasFitTextSupport2 || !fitText) {
- return EMPTY_OBJECT4;
- }
- const _blockMode = select3(store).getBlockMode(clientId);
- if (_blockMode === "html") {
- return { blockMode: _blockMode };
- }
- return {
- blockAttributes: select3(store).getBlockAttributes(clientId),
- parentId: select3(store).getBlockRootClientId(clientId),
- blockMode: _blockMode
- };
- },
- [clientId, hasFitTextSupport2, fitText]
- );
- const applyFitText = (0, import_element268.useCallback)(() => {
- if (!blockElement || !hasFitTextSupport2 || !fitText) {
+ var input_rules_default = (props) => (element) => {
+ function inputRule() {
+ const { getValue, onReplace, selectionChange: selectionChange2, registry } = props.current;
+ if (!onReplace) {
return;
}
- const styleId = `fit-text-${clientId}`;
- let styleElement = blockElement.ownerDocument.getElementById(styleId);
- if (!styleElement) {
- styleElement = blockElement.ownerDocument.createElement("style");
- styleElement.id = styleId;
- blockElement.ownerDocument.head.appendChild(styleElement);
+ const value = getValue();
+ const { start: start2, text } = value;
+ const characterBefore = text.slice(start2 - 1, start2);
+ if (characterBefore !== " ") {
+ return;
}
- const blockSelector = `#block-${clientId}`;
- const applyFontSizeStyle = (size4) => {
- if (size4 === 0) {
- styleElement.textContent = "";
- } else {
- styleElement.textContent = `${blockSelector} { font-size: ${size4}px !important; }`;
+ const trimmedTextBefore = text.slice(0, start2).trim();
+ const prefixTransforms = (0, import_blocks85.getBlockTransforms)("from").filter(
+ ({ type }) => type === "prefix"
+ );
+ const transformation = (0, import_blocks85.findTransform)(
+ prefixTransforms,
+ ({ prefix: prefix2 }) => {
+ return trimmedTextBefore === prefix2;
}
- };
- const optimalSize = optimizeFitText(blockElement, applyFontSizeStyle);
- setFontSize(optimalSize);
- }, [blockElement, clientId, hasFitTextSupport2, fitText]);
- (0, import_element268.useEffect)(() => {
- if (!fitText || !blockElement || !clientId || !hasFitTextSupport2 || blockMode === "html") {
+ );
+ if (!transformation) {
return;
}
- const currentElement = blockElement;
- const previousVisibility = currentElement.style.visibility;
- let hideFrameId = null;
- let calculateFrameId = null;
- let showTimeoutId = null;
- hideFrameId = window.requestAnimationFrame(() => {
- currentElement.style.visibility = "hidden";
- calculateFrameId = window.requestAnimationFrame(() => {
- applyFitText();
- showTimeoutId = setTimeout(() => {
- currentElement.style.visibility = previousVisibility;
- }, 10);
- });
+ const content = (0, import_rich_text7.toHTMLString)({
+ value: (0, import_rich_text7.insert)(value, START_OF_SELECTED_AREA, 0, start2)
});
- let resizeObserver;
- if (window.ResizeObserver && currentElement.parentElement) {
- resizeObserver = new window.ResizeObserver(applyFitText);
- resizeObserver.observe(currentElement.parentElement);
- resizeObserver.observe(currentElement);
- }
- return () => {
- if (hideFrameId !== null) {
- window.cancelAnimationFrame(hideFrameId);
- }
- if (calculateFrameId !== null) {
- window.cancelAnimationFrame(calculateFrameId);
- }
- if (showTimeoutId !== null) {
- clearTimeout(showTimeoutId);
- }
- if (resizeObserver) {
- resizeObserver.disconnect();
- }
- const styleId = `fit-text-${clientId}`;
- const styleElement = currentElement.ownerDocument.getElementById(styleId);
- if (styleElement) {
- styleElement.remove();
+ const block = transformation.transform(content);
+ selectionChange2(...findSelection([block]));
+ onReplace([block]);
+ registry.dispatch(store).__unstableMarkAutomaticChange();
+ return true;
+ }
+ function onInput(event) {
+ const { inputType, type } = event;
+ const {
+ getValue,
+ onChange,
+ __unstableAllowPrefixTransformations,
+ formatTypes,
+ registry,
+ onReplace
+ } = props.current;
+ if (inputType !== "insertText" && type !== "compositionend") {
+ return;
+ }
+ if (__unstableAllowPrefixTransformations && inputRule()) {
+ return;
+ }
+ const value = getValue();
+ if (onReplace) {
+ const transforms = (0, import_blocks85.getBlockTransforms)("from").filter(
+ (transform) => transform.type === "input"
+ );
+ const transformation = (0, import_blocks85.findTransform)(
+ transforms,
+ (item) => item.regExp.test(value.text)
+ );
+ if (transformation) {
+ onReplace(transformation.transform());
+ registry.dispatch(store).__unstableMarkAutomaticChange();
+ return;
}
- };
- }, [
- fitText,
- clientId,
- parentId,
- applyFitText,
- blockElement,
- hasFitTextSupport2,
- blockMode
- ]);
- (0, import_element268.useEffect)(() => {
- if (fitText && blockElement && hasFitTextSupport2 && blockMode !== "html") {
- const frameId = window.requestAnimationFrame(() => {
- if (blockElement) {
- applyFitText();
+ }
+ const transformed = formatTypes.reduce(
+ (accumulator, { __unstableInputRule }) => {
+ if (__unstableInputRule) {
+ accumulator = __unstableInputRule(accumulator);
}
+ return accumulator;
+ },
+ preventEventDiscovery(value)
+ );
+ const {
+ __unstableMarkLastChangeAsPersistent: __unstableMarkLastChangeAsPersistent2,
+ __unstableMarkAutomaticChange: __unstableMarkAutomaticChange2
+ } = registry.dispatch(store);
+ if (transformed !== value) {
+ __unstableMarkLastChangeAsPersistent2();
+ onChange({
+ ...transformed,
+ activeFormats: value.activeFormats
});
- return () => window.cancelAnimationFrame(frameId);
+ __unstableMarkAutomaticChange2();
}
- }, [
- blockAttributes,
- fitText,
- applyFitText,
- blockElement,
- hasFitTextSupport2,
- blockMode
- ]);
- return { fontSize };
- }
- function FitTextControl({
- clientId,
- fitText = false,
- setAttributes,
- name,
- fontSize,
- style
- }) {
- const hasSelectedStyleState2 = (0, import_data172.useSelect)(
- (select3) => {
- const { hasSelectedStyleState: hasSelectedBlockStyleState } = unlock(select3(store));
- return hasSelectedBlockStyleState(clientId);
- },
- [clientId]
- );
- if (!(0, import_blocks100.hasBlockSupport)(name, FIT_TEXT_SUPPORT_KEY)) {
- return null;
- }
- if (hasSelectedStyleState2) {
- return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(
- import_components217.__experimentalToolsPanelItem,
- {
- hasValue: () => fitText,
- label: (0, import_i18n208.__)("Fit text"),
- onDeselect: () => setAttributes({ fitText: void 0 }),
- resetAllFilter: () => ({ fitText: void 0 }),
- panelId: clientId,
- children: /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(
- import_components217.ToggleControl,
- {
- label: (0, import_i18n208.__)("Fit text"),
- checked: fitText,
- onChange: () => {
- const newFitText = !fitText || void 0;
- const updates = { fitText: newFitText };
- if (newFitText) {
- if (fontSize) {
- updates.fontSize = void 0;
- }
- if (style?.typography?.fontSize) {
- updates.style = {
- ...style,
- typography: {
- ...style?.typography,
- fontSize: void 0
- }
- };
- }
- }
- setAttributes(updates);
- },
- help: fitText ? (0, import_i18n208.__)("Text will resize to fit its container.") : (0, import_i18n208.__)(
- "The text will resize to fit its container, resetting other font size settings."
- )
- }
- )
- }
+ const unsubscribeInput = subscribeOwnedListener2(
+ element,
+ "input",
+ onInput,
+ true
);
- }
- function addSaveProps5(props, blockType, attributes) {
- if (!(0, import_blocks100.hasBlockSupport)(blockType, FIT_TEXT_SUPPORT_KEY)) {
- return props;
- }
- const { fitText } = attributes;
- if (!fitText) {
- return props;
- }
- const className = props.className ? `${props.className} has-fit-text` : "has-fit-text";
- return {
- ...props,
- className
+ const unsubscribeCompositionEnd = subscribeOwnedListener2(
+ element,
+ "compositionend",
+ onInput,
+ true
+ );
+ return () => {
+ unsubscribeInput();
+ unsubscribeCompositionEnd();
};
- }
- function useBlockProps10({ name, fitText }) {
- if (fitText && (0, import_blocks100.hasBlockSupport)(name, FIT_TEXT_SUPPORT_KEY)) {
- return {
- className: "has-fit-text"
- };
+ };
+
+ // packages/block-editor/build-module/components/rich-text/event-listeners/insert-replacement-text.mjs
+ var import_rich_text8 = __toESM(require_rich_text(), 1);
+ var { subscribeOwnedListener: subscribeOwnedListener3 } = unlock(import_rich_text8.privateApis);
+ var insert_replacement_text_default = (props) => (element) => {
+ function onInput(event) {
+ if (event.inputType !== "insertReplacementText") {
+ return;
+ }
+ const { registry } = props.current;
+ registry.dispatch(store).__unstableMarkLastChangeAsPersistent();
}
- return {};
- }
- (0, import_hooks17.addFilter)(
- "blocks.registerBlockType",
- "core/fit-text/addAttribute",
- addAttributes5
- );
- var hasFitTextSupport = (blockNameOrType) => {
- return (0, import_blocks100.hasBlockSupport)(blockNameOrType, FIT_TEXT_SUPPORT_KEY);
+ return subscribeOwnedListener3(element, "beforeinput", onInput);
};
- function FitTextFontSize({ fitText, name, clientId, isSelected }) {
- const { fontSize } = useFitText({ fitText, name, clientId });
- if (isSelected && fontSize && fontSize < MIN_FONT_SIZE_FOR_WARNING) {
- return /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(inspector_controls_default, { group: "typography", children: /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(FitTextSizeWarning, {}) });
+
+ // packages/block-editor/build-module/components/rich-text/event-listeners/remove-browser-shortcuts.mjs
+ var import_keycodes22 = __toESM(require_keycodes(), 1);
+ var import_rich_text9 = __toESM(require_rich_text(), 1);
+ var { subscribeOwnedListener: subscribeOwnedListener4 } = unlock(import_rich_text9.privateApis);
+ var remove_browser_shortcuts_default = () => (node) => {
+ function onKeydown(event) {
+ if (import_keycodes22.isKeyboardEvent.primary(event, "z") || import_keycodes22.isKeyboardEvent.primary(event, "y") || import_keycodes22.isKeyboardEvent.primaryShift(event, "z")) {
+ event.preventDefault();
+ }
}
- return null;
- }
- var addFitTextControl = (0, import_compose96.createHigherOrderComponent)((BlockEdit2) => {
- return function AddFitTextControl(props) {
- const { name, attributes, clientId, isSelected, setAttributes } = props;
- const { fitText } = attributes;
- const supportsFitText = (0, import_blocks100.hasBlockSupport)(name, FIT_TEXT_SUPPORT_KEY);
- if (!supportsFitText) {
- return /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(BlockEdit2, { ...props });
+ return subscribeOwnedListener4(node, "keydown", onKeydown, true);
+ };
+
+ // packages/block-editor/build-module/components/rich-text/event-listeners/shortcuts.mjs
+ var import_rich_text10 = __toESM(require_rich_text(), 1);
+ var { subscribeOwnedListener: subscribeOwnedListener5 } = unlock(import_rich_text10.privateApis);
+ var shortcuts_default = (props) => (element) => {
+ const { keyboardShortcuts } = props.current;
+ function onKeyDown(event) {
+ for (const keyboardShortcut of keyboardShortcuts.current) {
+ keyboardShortcut(event);
}
- return /* @__PURE__ */ (0, import_jsx_runtime446.jsxs)(import_jsx_runtime446.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(BlockEdit2, { ...props }),
- /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(inspector_controls_default, { group: "typography", children: /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(
- FitTextControl,
- {
- clientId,
- fitText,
- setAttributes,
- name,
- fontSize: attributes.fontSize,
- style: attributes.style
- }
- ) }),
- fitText && /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(
- FitTextFontSize,
- {
- fitText,
- name,
- clientId,
- isSelected
- }
- )
- ] });
- };
- }, "addFitTextControl");
- (0, import_hooks17.addFilter)(
- "editor.BlockEdit",
- "core/fit-text/add-fit-text-control",
- addFitTextControl
- );
- var fit_text_default = {
- useBlockProps: useBlockProps10,
- addSaveProps: addSaveProps5,
- attributeKeys: ["fitText", "fontSize", "style"],
- hasSupport: hasFitTextSupport,
- edit: () => null
+ }
+ return subscribeOwnedListener5(element, "keydown", onKeyDown, true);
};
- // packages/block-editor/build-module/hooks/typography.mjs
- var import_jsx_runtime447 = __toESM(require_jsx_runtime(), 1);
- function omit(object, keys) {
- return Object.fromEntries(
- Object.entries(object).filter(([key]) => !keys.includes(key))
- );
- }
- var LETTER_SPACING_SUPPORT_KEY2 = "typography.__experimentalLetterSpacing";
- var TEXT_TRANSFORM_SUPPORT_KEY2 = "typography.__experimentalTextTransform";
- var TEXT_DECORATION_SUPPORT_KEY2 = "typography.__experimentalTextDecoration";
- var TEXT_INDENT_SUPPORT_KEY = "typography.textIndent";
- var TEXT_COLUMNS_SUPPORT_KEY2 = "typography.textColumns";
- var FONT_STYLE_SUPPORT_KEY2 = "typography.__experimentalFontStyle";
- var FONT_WEIGHT_SUPPORT_KEY2 = "typography.__experimentalFontWeight";
- var WRITING_MODE_SUPPORT_KEY2 = "typography.__experimentalWritingMode";
- var TYPOGRAPHY_SUPPORT_KEY = "typography";
- var TYPOGRAPHY_SUPPORT_KEYS2 = [
- LINE_HEIGHT_SUPPORT_KEY2,
- FONT_SIZE_SUPPORT_KEY2,
- FONT_STYLE_SUPPORT_KEY2,
- FONT_WEIGHT_SUPPORT_KEY2,
- FONT_FAMILY_SUPPORT_KEY2,
- TEXT_ALIGN_SUPPORT_KEY2,
- TEXT_COLUMNS_SUPPORT_KEY2,
- TEXT_DECORATION_SUPPORT_KEY2,
- TEXT_INDENT_SUPPORT_KEY,
- WRITING_MODE_SUPPORT_KEY2,
- TEXT_TRANSFORM_SUPPORT_KEY2,
- LETTER_SPACING_SUPPORT_KEY2,
- FIT_TEXT_SUPPORT_KEY
- ];
- function styleToAttributes2(style) {
- const updatedStyle = { ...omit(style, ["fontFamily"]) };
- const fontSizeValue = style?.typography?.fontSize;
- const fontFamilyValue = style?.typography?.fontFamily;
- const textColorValue = style?.color?.text;
- const fontSizeSlug = typeof fontSizeValue === "string" && fontSizeValue?.startsWith("var:preset|font-size|") ? fontSizeValue.substring("var:preset|font-size|".length) : void 0;
- const fontFamilySlug = fontFamilyValue?.startsWith(
- "var:preset|font-family|"
- ) ? fontFamilyValue.substring("var:preset|font-family|".length) : void 0;
- const textColorSlug = extractPresetSlug(textColorValue, "color");
- updatedStyle.typography = {
- ...omit(updatedStyle.typography, ["fontFamily"]),
- fontSize: fontSizeSlug ? void 0 : fontSizeValue
- };
- updatedStyle.color = {
- ...updatedStyle.color,
- text: textColorSlug ? void 0 : textColorValue
- };
- return {
- style: cleanEmptyObject(updatedStyle),
- fontFamily: fontFamilySlug,
- fontSize: fontSizeSlug,
- textColor: textColorSlug
- };
- }
- function attributesToStyle2(attributes) {
- return {
- ...attributes.style,
- typography: {
- ...attributes.style?.typography,
- fontFamily: attributes.fontFamily ? "var:preset|font-family|" + attributes.fontFamily : void 0,
- fontSize: attributes.fontSize ? "var:preset|font-size|" + attributes.fontSize : attributes.style?.typography?.fontSize
- },
- color: {
- ...attributes.style?.color,
- text: attributes.textColor ? "var:preset|color|" + attributes.textColor : attributes.style?.color?.text
+ // packages/block-editor/build-module/components/rich-text/event-listeners/input-events.mjs
+ var import_rich_text11 = __toESM(require_rich_text(), 1);
+ var { subscribeOwnedListener: subscribeOwnedListener6 } = unlock(import_rich_text11.privateApis);
+ var input_events_default = (props) => (element) => {
+ const { inputEvents } = props.current;
+ function onInput(event) {
+ for (const keyboardShortcut of inputEvents.current) {
+ keyboardShortcut(event);
}
- };
- }
- function TypographyInspectorControl({ children, resetAllFilter }) {
- const attributesResetAllFilter = (0, import_element269.useCallback)(
- (attributes) => {
- const existingStyle = attributesToStyle2(attributes);
- const updatedStyle = resetAllFilter(existingStyle);
- return {
- ...attributes,
- ...styleToAttributes2(updatedStyle)
- };
- },
- [resetAllFilter]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime447.jsx)(
- inspector_controls_default,
- {
- group: "typography",
- resetAllFilter: attributesResetAllFilter,
- children
+ }
+ return subscribeOwnedListener6(element, "input", onInput);
+ };
+
+ // packages/block-editor/build-module/components/rich-text/event-listeners/undo-automatic-change.mjs
+ var import_keycodes23 = __toESM(require_keycodes(), 1);
+ var import_rich_text12 = __toESM(require_rich_text(), 1);
+ var { subscribeOwnedListener: subscribeOwnedListener7 } = unlock(import_rich_text12.privateApis);
+ var undo_automatic_change_default = (props) => (element) => {
+ function onKeyDown(event) {
+ const { keyCode } = event;
+ if (event.defaultPrevented) {
+ return;
}
- );
- }
- function TypographyPanel2({
- clientId,
- name,
- setAttributes,
- settings: settings2,
- // Allows rendering outside the `typography` inspector group (e.g. section
- // blocks direct-render this panel because their support fills are gated
- // off by editing mode). Defaults to the slot-based wrapper.
- asWrapper
- }) {
- const selectedState = useBlockStyleState();
- const isEnabled = useHasTypographyPanel(settings2);
- const { style, fontFamily, fontSize, fitText, textColor, className } = (0, import_data173.useSelect)(
- (select3) => {
- if (!isEnabled) {
- return {};
- }
- const {
- style: _style,
- fontFamily: _fontFamily,
- fontSize: _fontSize,
- fitText: _fitText,
- textColor: _textColor,
- className: _className
- } = select3(store).getBlockAttributes(clientId) || {};
- return {
- style: _style,
- fontFamily: _fontFamily,
- fontSize: _fontSize,
- fitText: _fitText,
- textColor: _textColor,
- className: _className
- };
- },
- [clientId, isEnabled]
- );
- const isStateSelected = !isDefaultBlockStyleState2(selectedState);
- const { value: inheritedValue } = useResolvedStyle(
- name,
- className,
- selectedState
- );
- const value = (0, import_element269.useMemo)(() => {
- if (isStateSelected) {
- return getStyleForState2(style, selectedState);
+ if (keyCode !== import_keycodes23.BACKSPACE && keyCode !== import_keycodes23.ESCAPE) {
+ return;
}
- return attributesToStyle2({ style, fontFamily, fontSize, textColor });
- }, [
- isStateSelected,
- selectedState,
- style,
- fontSize,
- fontFamily,
- textColor
- ]);
- const onChange = isStateSelected ? (newStyle) => {
- setAttributes({
- style: setStyleForState(style, selectedState, newStyle)
- });
- } : (newStyle) => {
- const newAttributes = styleToAttributes2(newStyle);
- const hasFontSize = newAttributes.fontSize || newAttributes.style?.typography?.fontSize;
- if (hasFontSize && fitText) {
- newAttributes.fitText = void 0;
+ const { registry } = props.current;
+ const { didAutomaticChange: didAutomaticChange2, getSettings: getSettings8 } = registry.select(store);
+ const { __experimentalUndo } = getSettings8();
+ if (!__experimentalUndo) {
+ return;
}
- setAttributes(newAttributes);
- };
- const enableContrastChecking = !value?.color?.gradient && !!value?.color?.text && settings2?.color?.text && false !== (0, import_blocks101.getBlockSupport)(name, ["color", "enableContrastChecker"]);
- const contrastWarning = useBlockColorContrastWarning({
- clientId,
- name,
- enabled: !!enableContrastChecking,
- checkLinkColor: false,
- messageOverride: (0, import_i18n209.__)(
- "This color has poor contrast against the background. Consider increasing contrast."
- )
- });
- if (!isEnabled) {
- return null;
+ if (!didAutomaticChange2()) {
+ return;
+ }
+ event.preventDefault();
+ __experimentalUndo();
}
- const typographyDefaultControls = (0, import_blocks101.getBlockSupport)(name, [
- TYPOGRAPHY_SUPPORT_KEY,
- "__experimentalDefaultControls"
- ]);
- const colorDefaultControls = (0, import_blocks101.getBlockSupport)(name, [
- "color",
- "__experimentalDefaultControls"
- ]);
- const defaultControls = {
- ...typographyDefaultControls,
- textColor: colorDefaultControls?.text
- };
- const Wrapper = asWrapper || TypographyInspectorControl;
- return /* @__PURE__ */ (0, import_jsx_runtime447.jsx)(
- TypographyPanel,
- {
- as: Wrapper,
- panelId: clientId,
- settings: settings2,
- value,
- onChange,
- defaultControls,
- contrastWarning,
- inheritedValue
+ return subscribeOwnedListener7(element, "keydown", onKeyDown);
+ };
+
+ // packages/block-editor/build-module/components/rich-text/event-listeners/paste-handler.mjs
+ var import_blocks87 = __toESM(require_blocks(), 1);
+ var import_rich_text13 = __toESM(require_rich_text(), 1);
+ var import_url9 = __toESM(require_url(), 1);
+ var import_compose92 = __toESM(require_compose(), 1);
+
+ // packages/block-editor/build-module/components/rich-text/utils.mjs
+ var import_element238 = __toESM(require_element(), 1);
+ var import_blocks86 = __toESM(require_blocks(), 1);
+ var import_jsx_runtime401 = __toESM(require_jsx_runtime(), 1);
+ function addActiveFormats(value, activeFormats) {
+ if (activeFormats?.length) {
+ let index2 = value.formats.length;
+ while (index2--) {
+ value.formats[index2] = [
+ ...activeFormats,
+ ...value.formats[index2] || []
+ ];
}
- );
+ }
+ }
+ function getMultilineTag(multiline) {
+ if (multiline !== true && multiline !== "p" && multiline !== "li") {
+ return;
+ }
+ return multiline === true ? "p" : multiline;
+ }
+ function getAllowedFormats({ allowedFormats, disableFormats }) {
+ if (disableFormats) {
+ return getAllowedFormats.EMPTY_ARRAY;
+ }
+ return allowedFormats;
}
+ getAllowedFormats.EMPTY_ARRAY = [];
- // packages/block-editor/build-module/components/inspector-controls-tabs/styles-tab.mjs
- var import_jsx_runtime448 = __toESM(require_jsx_runtime(), 1);
- function SectionStyleControls({
- blockName,
- clientId,
- contentClientIds
- }) {
- const settings2 = useBlockSettings(blockName);
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data174.useDispatch)(store);
- const { hasButtons, hasHeading } = (0, import_data174.useSelect)(
- (select3) => {
- const blockNames = select3(store).getBlockNamesByClientId(
- contentClientIds
- );
- return {
- hasButtons: blockNames.includes("core/buttons"),
- hasHeading: blockNames.includes("core/heading")
- };
- },
- [contentClientIds]
- );
- const setAttributes = (newAttributes) => {
- updateBlockAttributes2(clientId, newAttributes);
- };
- const typographySettings = (0, import_element270.useMemo)(
- () => ({ ...settings2, typography: {} }),
- [settings2]
- );
- const backgroundSettings = (0, import_element270.useMemo)(
- () => ({
- ...settings2,
- background: {
- ...settings2.background,
- backgroundImage: false,
- backgroundSize: false
- }
- }),
- [settings2]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime448.jsxs)(import_jsx_runtime448.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- TypographyPanel2,
- {
- clientId,
- name: blockName,
- settings: typographySettings,
- setAttributes,
- asWrapper: TypographyToolsPanel
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- BackgroundImagePanel3,
- {
- clientId,
- name: blockName,
- settings: backgroundSettings,
- setAttributes,
- asWrapper: BackgroundToolsPanel
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- ElementsEdit,
- {
- clientId,
- name: blockName,
- settings: settings2,
- setAttributes,
- asWrapper: ColorToolsPanel,
- label: (0, import_i18n210.__)("Elements"),
- defaultControls: {
- button: hasButtons,
- heading: hasHeading
- }
- }
- )
- ] });
- }
- var StylesTab = ({
- blockName,
- clientId,
- hasBlockStyles,
- isSectionBlock: isSectionBlock2,
- contentClientIds
- }) => {
- const borderPanelLabel = useBorderPanelLabel({ blockName });
- return /* @__PURE__ */ (0, import_jsx_runtime448.jsxs)(import_jsx_runtime448.Fragment, { children: [
- hasBlockStyles && /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(block_styles_default, { clientId }),
- isSectionBlock2 && blockName !== "core/template-part" && /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- SectionStyleControls,
- {
- blockName,
- clientId,
- contentClientIds
+ // packages/block-editor/build-module/components/rich-text/event-listeners/paste-handler.mjs
+ var { subscribeDelegatedListener: subscribeDelegatedListener3 } = unlock(import_compose92.privateApis);
+ var { ownsSelection: ownsSelection2 } = unlock(import_rich_text13.privateApis);
+ var paste_handler_default = (props) => (element) => {
+ function _onPaste(event) {
+ const {
+ disableFormats,
+ onChange,
+ value,
+ formatTypes,
+ tagName,
+ onReplace,
+ __unstableEmbedURLOnPaste,
+ preserveWhiteSpace,
+ pastePlainText,
+ registry
+ } = props.current;
+ if (!element.contains(event.target) && !ownsSelection2(element)) {
+ return;
+ }
+ if (event.defaultPrevented) {
+ return;
+ }
+ const pasteData = getPasteEventData(event);
+ if (!pasteData) {
+ return;
+ }
+ event.preventDefault();
+ const { plainText, html, files } = pasteData;
+ if (files.length) {
+ return;
+ }
+ window.console.log("Received HTML (RichText):\n\n", html);
+ window.console.log("Received plain text (RichText):\n\n", plainText);
+ if (disableFormats) {
+ onChange((0, import_rich_text13.insert)(value, plainText));
+ return;
+ }
+ const isInternal = event.clipboardData.getData("rich-text") === "true";
+ function pasteInline(content2) {
+ const transformed = formatTypes.reduce(
+ (accumulator, { __unstablePasteRule }) => {
+ if (__unstablePasteRule && accumulator === value) {
+ accumulator = __unstablePasteRule(value, {
+ html,
+ plainText
+ });
+ }
+ return accumulator;
+ },
+ value
+ );
+ if (transformed !== value) {
+ onChange(transformed);
+ } else {
+ const valueToInsert = (0, import_rich_text13.create)({ html: content2 });
+ addActiveFormats(valueToInsert, value.activeFormats);
+ onChange((0, import_rich_text13.insert)(value, valueToInsert));
}
- ),
- (!isSectionBlock2 || blockName === "core/template-part") && /* @__PURE__ */ (0, import_jsx_runtime448.jsxs)(import_jsx_runtime448.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- inspector_controls_default.Slot,
- {
- group: "typography",
- label: (0, import_i18n210.__)("Typography")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- inspector_controls_default.Slot,
- {
- group: "color",
- label: (0, import_i18n210.__)("Color"),
- className: "color-block-support-panel__inner-wrapper"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- inspector_controls_default.Slot,
- {
- group: "background",
- label: (0, import_i18n210.__)("Background"),
- className: "background-block-support-panel__inner-wrapper"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(inspector_controls_default.Slot, { group: "filter" }),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- inspector_controls_default.Slot,
- {
- group: "layout",
- label: (0, import_i18n210.__)("Layout")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- inspector_controls_default.Slot,
- {
- group: "dimensions",
- label: (0, import_i18n210.__)("Dimensions")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- inspector_controls_default.Slot,
- {
- group: "border",
- label: borderPanelLabel
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
- inspector_controls_default.Slot,
- {
- group: "elements",
- label: (0, import_i18n210.__)("Elements"),
- className: "elements-block-support-panel__inner-wrapper"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(position_controls_panel_default, {}),
- /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(inspector_controls_default.Slot, { group: "styles" })
- ] })
- ] });
+ }
+ if (isInternal) {
+ pasteInline(html);
+ return;
+ }
+ if (pastePlainText) {
+ onChange((0, import_rich_text13.insert)(value, (0, import_rich_text13.create)({ text: plainText })));
+ return;
+ }
+ let mode2 = "INLINE";
+ const trimmedPlainText = plainText.trim();
+ if (__unstableEmbedURLOnPaste && (0, import_rich_text13.isEmpty)(value) && (0, import_url9.isURL)(trimmedPlainText) && // For the link pasting feature, allow only http(s) protocols.
+ /^https?:/.test(trimmedPlainText)) {
+ mode2 = "BLOCKS";
+ }
+ const content = (0, import_blocks87.pasteHandler)({
+ HTML: html,
+ plainText,
+ mode: mode2,
+ tagName,
+ preserveWhiteSpace
+ });
+ if (typeof content === "string") {
+ pasteInline(content);
+ return;
+ }
+ if (!content.length || !onReplace || !(0, import_rich_text13.isEmpty)(value)) {
+ return;
+ }
+ if (mode2 === "BLOCKS") {
+ pasteInline(html);
+ registry.dispatch(store).__unstableMarkLastChangeAsPersistent();
+ }
+ onReplace(content, content.length - 1, -1);
+ }
+ const { defaultView } = element.ownerDocument;
+ return subscribeDelegatedListener3(defaultView, "paste", _onPaste);
};
- var styles_tab_default = StylesTab;
-
- // packages/block-editor/build-module/components/inspector-controls-tabs/content-tab.mjs
- var import_components219 = __toESM(require_components(), 1);
- var import_i18n211 = __toESM(require_i18n(), 1);
- // packages/block-editor/build-module/components/block-quick-navigation/index.mjs
- var import_blocks102 = __toESM(require_blocks(), 1);
- var import_data175 = __toESM(require_data(), 1);
- var import_components218 = __toESM(require_components(), 1);
- var import_jsx_runtime449 = __toESM(require_jsx_runtime(), 1);
- function BlockQuickNavigation({
- clientIds,
- onSelect,
- onSwitchToListView,
- hasListViewTab
- }) {
- if (!clientIds.length) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime449.jsx)(import_components218.__experimentalVStack, { spacing: 1, children: clientIds.map((clientId) => /* @__PURE__ */ (0, import_jsx_runtime449.jsx)(
- BlockQuickNavigationItem,
- {
- onSelect,
- onSwitchToListView,
- hasListViewTab,
- clientId
- },
- clientId
- )) });
- }
- function BlockQuickNavigationItem({
- clientId,
- onSelect,
- onSwitchToListView,
- hasListViewTab
- }) {
- const blockInformation = useBlockDisplayInformation(clientId);
- const { isSelected, childBlocks, shouldRenderListView, blockName } = (0, import_data175.useSelect)(
- (select3) => {
- const {
- isBlockSelected: isBlockSelected2,
- hasSelectedInnerBlock: hasSelectedInnerBlock2,
- getBlockOrder: getBlockOrder2,
- getBlockName: getBlockName2,
- shouldRenderBlockListView: shouldRenderBlockListView2
- } = unlock(select3(store));
- const _blockName = getBlockName2(clientId);
- return {
- isSelected: isBlockSelected2(clientId) || hasSelectedInnerBlock2(
- clientId,
- /* deep: */
- true
- ),
- childBlocks: getBlockOrder2(clientId),
- shouldRenderListView: shouldRenderBlockListView2(clientId),
- blockName: _blockName
- };
- },
- [clientId]
- );
- const blockType = (0, import_blocks102.getBlockType)(blockName);
- const displayTitle = useBlockDisplayTitle({
- clientId,
- context: "list-view"
- });
- const blockTitle = displayTitle || blockType?.title || blockName;
- const { selectBlock: selectBlock2 } = (0, import_data175.useDispatch)(store);
- const hasChildren = childBlocks && childBlocks.length > 0;
- const canNavigateToListView = hasChildren && hasListViewTab && shouldRenderListView;
- return /* @__PURE__ */ (0, import_jsx_runtime449.jsx)(
- import_components218.Button,
- {
- __next40pxDefaultSize: true,
- className: "block-editor-block-quick-navigation__item",
- isPressed: isSelected,
- onClick: async () => {
- await selectBlock2(clientId);
- if (canNavigateToListView && onSwitchToListView) {
- onSwitchToListView(clientId);
- }
- if (onSelect) {
- onSelect(clientId);
- }
- },
- children: /* @__PURE__ */ (0, import_jsx_runtime449.jsxs)(import_components218.Flex, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime449.jsx)(import_components218.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime449.jsx)(block_icon_default, { icon: blockInformation?.icon }) }),
- /* @__PURE__ */ (0, import_jsx_runtime449.jsx)(import_components218.FlexBlock, { style: { textAlign: "left" }, children: /* @__PURE__ */ (0, import_jsx_runtime449.jsx)(import_components218.__experimentalTruncate, { children: blockTitle }) }),
- canNavigateToListView && /* @__PURE__ */ (0, import_jsx_runtime449.jsx)(import_components218.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime449.jsx)(icon_default, { icon: chevron_right_default, size: 24 }) })
- ] })
+ // packages/block-editor/build-module/components/rich-text/event-listeners/delete.mjs
+ var import_keycodes24 = __toESM(require_keycodes(), 1);
+ var import_rich_text14 = __toESM(require_rich_text(), 1);
+ var { subscribeOwnedListener: subscribeOwnedListener8 } = unlock(import_rich_text14.privateApis);
+ var delete_default = (props) => (element) => {
+ function onKeyDown(event) {
+ const { keyCode } = event;
+ if (event.defaultPrevented) {
+ return;
}
- );
- }
-
- // packages/block-editor/build-module/components/inspector-controls-tabs/content-tab.mjs
- var import_jsx_runtime450 = __toESM(require_jsx_runtime(), 1);
- var ContentTab = ({
- contentClientIds,
- onSwitchToListView,
- hasListViewTab
- }) => {
- if (!contentClientIds || contentClientIds.length === 0) {
- return null;
- }
- const shouldShowBlockFields = window?.__experimentalContentOnlyInspectorFields;
- return /* @__PURE__ */ (0, import_jsx_runtime450.jsx)(import_jsx_runtime450.Fragment, { children: !shouldShowBlockFields && /* @__PURE__ */ (0, import_jsx_runtime450.jsx)(import_components219.PanelBody, { title: (0, import_i18n211.__)("Content"), children: /* @__PURE__ */ (0, import_jsx_runtime450.jsx)(
- BlockQuickNavigation,
- {
- clientIds: contentClientIds,
- onSwitchToListView,
- hasListViewTab
+ const { value, onMerge, onRemove } = props.current;
+ if (keyCode === import_keycodes24.DELETE || keyCode === import_keycodes24.BACKSPACE) {
+ const { start: start2, end, text } = value;
+ const isReverse = keyCode === import_keycodes24.BACKSPACE;
+ const hasActiveFormats = value.activeFormats && !!value.activeFormats.length;
+ if (!(0, import_rich_text14.isCollapsed)(value) || hasActiveFormats || isReverse && start2 !== 0 || !isReverse && end !== text.length) {
+ return;
+ }
+ if (onMerge) {
+ onMerge(!isReverse);
+ } else if (onRemove && (0, import_rich_text14.isEmpty)(value) && isReverse) {
+ onRemove(!isReverse);
+ }
+ event.preventDefault();
}
- ) }) });
+ }
+ return subscribeOwnedListener8(element, "keydown", onKeyDown);
};
- var content_tab_default = ContentTab;
- // packages/block-editor/build-module/components/inspector-controls-tabs/index.mjs
- var import_jsx_runtime451 = __toESM(require_jsx_runtime(), 1);
- var { Tabs: Tabs5 } = unlock(import_components220.privateApis);
- function InspectorControlsTabs({
- blockName,
- clientId,
- hasBlockStyles,
- tabs,
- isSectionBlock: isSectionBlock2,
- contentClientIds
- }) {
- const listViewRef = (0, import_element271.useRef)(null);
- const showIconLabels = (0, import_data176.useSelect)((select3) => {
- return select3(import_preferences5.store).get("core", "showIconLabels");
- }, []);
- const { requestedTab } = (0, import_data176.useSelect)((select3) => ({
- requestedTab: unlock(
- select3(store)
- ).getRequestedInspectorTab()
- }));
- const [selectedTabId, setSelectedTabId] = (0, import_element271.useState)(
- () => requestedTab?.tabName ?? tabs[0]?.name
- );
- const hasUserSelectionRef = (0, import_element271.useRef)(false);
- const isProgrammaticSwitchRef = (0, import_element271.useRef)(false);
- const {
- __unstableSetOpenListViewPanel: setOpenListViewPanel,
- __unstableIncrementListViewExpandRevision: incrementListViewExpandRevision,
- __unstableSetAllListViewPanelsOpen: setAllListViewPanelsOpen
- } = (0, import_data176.useDispatch)(store);
- const { clearRequestedInspectorTab: clearRequestedInspectorTab2 } = unlock(
- (0, import_data176.useDispatch)(store)
- );
- (0, import_element271.useEffect)(() => {
- hasUserSelectionRef.current = false;
- }, [clientId]);
- (0, import_element271.useEffect)(() => {
- if (!requestedTab) {
+ // packages/block-editor/build-module/components/rich-text/event-listeners/enter.mjs
+ var import_keycodes25 = __toESM(require_keycodes(), 1);
+ var import_rich_text15 = __toESM(require_rich_text(), 1);
+ var import_compose93 = __toESM(require_compose(), 1);
+ var { subscribeOwnedListener: subscribeOwnedListener9, ownsSelection: ownsSelection3 } = unlock(import_rich_text15.privateApis);
+ var { subscribeDelegatedListener: subscribeDelegatedListener4 } = unlock(import_compose93.privateApis);
+ var enter_default = (props) => (element) => {
+ function onKeyDownDeprecated(event) {
+ if (event.keyCode !== import_keycodes25.ENTER) {
return;
}
- setSelectedTabId(requestedTab.tabName);
- if (requestedTab.tabName === TAB_LIST_VIEW.name && requestedTab.options?.openPanel) {
- setOpenListViewPanel(requestedTab.options.openPanel);
- incrementListViewExpandRevision();
+ const { onReplace, onSplit } = props.current;
+ if (onReplace && onSplit) {
+ event.__deprecatedOnSplit = true;
}
- isProgrammaticSwitchRef.current = true;
- hasUserSelectionRef.current = true;
- clearRequestedInspectorTab2();
- }, [
- requestedTab,
- setOpenListViewPanel,
- incrementListViewExpandRevision,
- clearRequestedInspectorTab2
- ]);
- (0, import_element271.useEffect)(() => {
- if (selectedTabId === TAB_LIST_VIEW.name && !hasUserSelectionRef.current) {
- setAllListViewPanelsOpen();
- incrementListViewExpandRevision();
+ }
+ function onKeyDown(event) {
+ if (event.defaultPrevented) {
+ return;
}
- }, [
- clientId,
- selectedTabId,
- setAllListViewPanelsOpen,
- incrementListViewExpandRevision
- ]);
- (0, import_element271.useEffect)(() => {
- if (!tabs?.length || hasUserSelectionRef.current && tabs.some((tab) => tab.name === selectedTabId)) {
+ if (event.target !== element && !ownsSelection3(element)) {
return;
}
- const firstTabName = tabs[0]?.name;
- if (selectedTabId !== firstTabName) {
- setSelectedTabId(firstTabName);
+ if (event.keyCode !== import_keycodes25.ENTER) {
+ return;
}
- }, [tabs, selectedTabId]);
- const handleTabSelect = (tabId) => {
- setSelectedTabId(tabId);
- hasUserSelectionRef.current = true;
- if (tabId === TAB_LIST_VIEW.name && !isProgrammaticSwitchRef.current) {
- setAllListViewPanelsOpen();
- incrementListViewExpandRevision();
+ const {
+ value,
+ onChange,
+ disableLineBreaks,
+ onSplitAtEnd,
+ onSplitAtDoubleLineEnd,
+ registry
+ } = props.current;
+ event.preventDefault();
+ const { text, start: start2, end } = value;
+ if (event.shiftKey) {
+ if (!disableLineBreaks) {
+ onChange((0, import_rich_text15.insert)(value, "\n"));
+ }
+ } else if (onSplitAtEnd && start2 === end && end === text.length) {
+ onSplitAtEnd();
+ } else if (
+ // For some blocks it's desirable to split at the end of the
+ // block when there are two line breaks at the end of the
+ // block, so triple Enter exits the block.
+ onSplitAtDoubleLineEnd && start2 === end && end === text.length && text.slice(-2) === "\n\n"
+ ) {
+ registry.batch(() => {
+ const _value = { ...value };
+ _value.start = _value.end - 2;
+ onChange((0, import_rich_text15.remove)(_value));
+ onSplitAtDoubleLineEnd();
+ });
+ } else if (!disableLineBreaks) {
+ onChange((0, import_rich_text15.insert)(value, "\n"));
}
- isProgrammaticSwitchRef.current = false;
- };
- const hasListViewTab = tabs.some(
- (tab) => tab.name === TAB_LIST_VIEW.name
+ }
+ const { defaultView } = element.ownerDocument;
+ const unsubscribeKeyDown = subscribeDelegatedListener4(
+ defaultView,
+ "keydown",
+ onKeyDown
);
- const switchToListView = (targetClientId) => {
- if (hasListViewTab) {
- setOpenListViewPanel(targetClientId);
- incrementListViewExpandRevision();
- isProgrammaticSwitchRef.current = true;
- handleTabSelect(TAB_LIST_VIEW.name);
- }
+ const unsubscribeKeyDownDeprecated = subscribeOwnedListener9(
+ element,
+ "keydown",
+ onKeyDownDeprecated,
+ true
+ );
+ return () => {
+ unsubscribeKeyDown();
+ unsubscribeKeyDownDeprecated();
};
- return /* @__PURE__ */ (0, import_jsx_runtime451.jsx)("div", { className: "block-editor-block-inspector__tabs", children: /* @__PURE__ */ (0, import_jsx_runtime451.jsxs)(
- Tabs5,
- {
- selectedTabId,
- onSelect: handleTabSelect,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(Tabs5.TabList, { children: tabs.map(
- (tab) => showIconLabels ? /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(Tabs5.Tab, { tabId: tab.name, children: tab.title }, tab.name) : /* @__PURE__ */ (0, import_jsx_runtime451.jsxs)(tooltip_exports.Root, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(
- Tabs5.Tab,
- {
- tabId: tab.name,
- "aria-label": tab.title,
- render: /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(tooltip_exports.Trigger, {}),
- children: /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(import_components220.Icon, { icon: tab.icon })
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(tooltip_exports.Popup, { children: tab.title })
- ] }, tab.name)
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime451.jsxs)(Tabs5.TabPanel, { tabId: TAB_CONTENT.name, focusable: false, children: [
- /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(
- content_tab_default,
- {
- contentClientIds,
- onSwitchToListView: switchToListView,
- hasListViewTab
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(inspector_controls_default.Slot, { group: "content" })
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime451.jsxs)(Tabs5.TabPanel, { tabId: TAB_LIST_VIEW.name, focusable: false, children: [
- /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(inspector_controls_default.Slot, { group: "list", ref: listViewRef }),
- /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(ListViewContentPopover, { listViewRef })
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(Tabs5.TabPanel, { tabId: TAB_SETTINGS.name, focusable: false, children: /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(settings_tab_default, { showAdvancedControls: !!blockName }) }),
- /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(Tabs5.TabPanel, { tabId: TAB_STYLES.name, focusable: false, children: /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(
- styles_tab_default,
- {
- blockName,
- clientId,
- hasBlockStyles,
- isSectionBlock: isSectionBlock2,
- contentClientIds
- }
- ) })
- ]
- },
- clientId
- ) });
- }
+ };
- // packages/block-editor/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.mjs
- var import_components221 = __toESM(require_components(), 1);
- var import_data177 = __toESM(require_data(), 1);
- var EMPTY_ARRAY15 = [];
- function getShowTabs(blockName, tabSettings = {}) {
- if (tabSettings[blockName] !== void 0) {
- return tabSettings[blockName];
- }
- if (tabSettings.default !== void 0) {
- return tabSettings.default;
+ // packages/block-editor/build-module/components/rich-text/event-listeners/firefox-compat.mjs
+ var firefox_compat_default = (props) => (element) => {
+ function onFocus() {
+ const { registry } = props.current;
+ if (!registry.select(store).isMultiSelecting()) {
+ return;
+ }
+ const parentEditable = element.parentElement.closest(
+ '[contenteditable="true"]'
+ );
+ if (parentEditable) {
+ parentEditable.focus();
+ }
}
- return true;
- }
- function useInspectorControlsTabs(blockName, contentClientIds, isSectionBlock2, hasBlockStyles) {
- const tabs = [];
- const {
- bindings: bindingsGroup,
- border: borderGroup,
- color: colorGroup,
- content: contentGroup,
- default: defaultGroup,
- layout: layoutGroup,
- dimensions: dimensionsGroup,
- list: listGroup,
- position: positionGroup,
- styles: stylesGroup,
- typography: typographyGroup,
- effects: effectsGroup
- } = groups_default;
- const listFills = (0, import_components221.__experimentalUseSlotFills)(listGroup.name);
- const hasListFills = !!listFills && listFills.length;
- const contentFills = (0, import_components221.__experimentalUseSlotFills)(contentGroup.name);
- const hasContentFills = !!contentFills && contentFills.length;
- const styleFills = [
- ...(0, import_components221.__experimentalUseSlotFills)(borderGroup.name) || [],
- ...(0, import_components221.__experimentalUseSlotFills)(colorGroup.name) || [],
- ...(0, import_components221.__experimentalUseSlotFills)(layoutGroup.name) || [],
- ...(0, import_components221.__experimentalUseSlotFills)(positionGroup.name) || [],
- ...(0, import_components221.__experimentalUseSlotFills)(dimensionsGroup.name) || [],
- ...(0, import_components221.__experimentalUseSlotFills)(stylesGroup.name) || [],
- ...(0, import_components221.__experimentalUseSlotFills)(typographyGroup.name) || [],
- ...(0, import_components221.__experimentalUseSlotFills)(effectsGroup.name) || []
- ];
- const hasStyleFills = styleFills.length;
- const advancedFills = [
- ...(0, import_components221.__experimentalUseSlotFills)(InspectorAdvancedControls.slotName) || [],
- ...(0, import_components221.__experimentalUseSlotFills)(bindingsGroup.name) || []
- ];
- const settingsFills = [
- ...(0, import_components221.__experimentalUseSlotFills)(defaultGroup.name) || [],
- ...hasListFills && hasStyleFills > 1 ? advancedFills : []
- ];
- const shouldShowBlockFields = window?.__experimentalContentOnlyInspectorFields;
- const hasContentTab = hasContentFills || !shouldShowBlockFields && contentClientIds?.length;
- if (hasContentTab) {
- tabs.push(TAB_CONTENT);
- }
- if (hasListFills) {
- tabs.push(TAB_LIST_VIEW);
- }
- if (settingsFills.length || // Advanced fills show up in settings tab if available or they blend into the default tab, if there's only one tab.
- advancedFills.length && (hasContentTab || hasListFills)) {
- tabs.push(TAB_SETTINGS);
- }
- const { tabSettings, isPreviewMode } = (0, import_data177.useSelect)((select3) => {
- const settings2 = select3(store).getSettings();
- return {
- tabSettings: settings2.blockInspectorTabs,
- isPreviewMode: settings2.isPreviewMode
- };
- }, []);
- if (!isPreviewMode && (hasBlockStyles || hasStyleFills)) {
- tabs.push(TAB_STYLES);
- }
- const showTabs = getShowTabs(blockName, tabSettings);
- return showTabs ? tabs : EMPTY_ARRAY15;
- }
-
- // packages/block-editor/build-module/components/inspector-controls/last-item.mjs
- var import_components222 = __toESM(require_components(), 1);
- var import_jsx_runtime452 = __toESM(require_jsx_runtime(), 1);
- var { Fill: Fill4, Slot: Slot9 } = (0, import_components222.createSlotFill)(/* @__PURE__ */ Symbol("InspectorControlsLastItem"));
- var InspectorControlsLastItem = (props) => {
- const context = useBlockEditContext();
- if (!context[mayDisplayControlsKey]) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime452.jsx)(Fill4, { ...props });
- };
- InspectorControlsLastItem.Slot = function InspectorControlsLastItemSlot(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime452.jsx)(Slot9, { ...props });
+ element.addEventListener("focus", onFocus);
+ return () => {
+ element.removeEventListener("focus", onFocus);
+ };
};
- var last_item_default = InspectorControlsLastItem;
- // packages/block-editor/build-module/components/block-inspector/useBlockInspectorAnimationSettings.mjs
- var import_data178 = __toESM(require_data(), 1);
- function useBlockInspectorAnimationSettings(blockType) {
- return (0, import_data178.useSelect)(
- (select3) => {
- if (blockType) {
- const globalBlockInspectorAnimationSettings = select3(store).getSettings().blockInspectorAnimation;
- const animationParent = globalBlockInspectorAnimationSettings?.animationParent;
- const { getSelectedBlockClientId: getSelectedBlockClientId2, getBlockParentsByBlockName: getBlockParentsByBlockName2 } = select3(store);
- const _selectedBlockClientId = getSelectedBlockClientId2();
- const animationParentBlockClientId = getBlockParentsByBlockName2(
- _selectedBlockClientId,
- animationParent,
- true
- )[0];
- if (!animationParentBlockClientId && blockType.name !== animationParent) {
- return null;
- }
- return globalBlockInspectorAnimationSettings?.[blockType.name];
+ // packages/block-editor/build-module/components/rich-text/event-listeners/index.mjs
+ var allEventListeners = [
+ before_input_rules_default,
+ input_rules_default,
+ insert_replacement_text_default,
+ remove_browser_shortcuts_default,
+ shortcuts_default,
+ input_events_default,
+ undo_automatic_change_default,
+ paste_handler_default,
+ delete_default,
+ enter_default,
+ firefox_compat_default
+ ];
+ function useEventListeners(props) {
+ const propsRef = (0, import_element239.useRef)(props);
+ (0, import_element239.useInsertionEffect)(() => {
+ propsRef.current = props;
+ });
+ const refEffects = (0, import_element239.useMemo)(
+ () => allEventListeners.map((refEffect) => refEffect(propsRef)),
+ [propsRef]
+ );
+ return (0, import_compose94.useRefEffect)(
+ (element) => {
+ if (!props.isSelected) {
+ return;
}
- return null;
+ const cleanups = refEffects.map((effect) => effect(element));
+ return () => {
+ cleanups.forEach((cleanup) => cleanup());
+ };
},
- [blockType]
+ [refEffects, props.isSelected]
);
}
- // packages/block-editor/build-module/hooks/states.mjs
- var import_element272 = __toESM(require_element(), 1);
- var import_i18n212 = __toESM(require_i18n(), 1);
- var import_jsx_runtime453 = __toESM(require_jsx_runtime(), 1);
- var { getViewportBreakpoints: getViewportBreakpoints5 } = unlock(privateApis);
- var PSEUDO_STATE_LABELS = {
- ":hover": (0, import_i18n212.__)("Hover"),
- ":focus": (0, import_i18n212.__)("Focus"),
- ":focus-visible": (0, import_i18n212.__)("Focus-visible"),
- ":active": (0, import_i18n212.__)("Active")
- };
- var RESPONSIVE_STATE_LABELS = {
- "@tablet": (0, import_i18n212.__)("Tablet"),
- "@mobile": (0, import_i18n212.__)("Mobile")
- };
- function getDeviceStateOptions(viewportSettings) {
- const breakpoints = getViewportBreakpoints5(viewportSettings);
- return Object.entries(RESPONSIVE_STATE_LABELS).filter(
- ([value]) => (value !== "@tablet" || breakpoints.tablet !== void 0) && (value !== "@mobile" || breakpoints.mobile !== void 0)
- ).map(([value, label]) => ({
- value,
- label
- }));
- }
- var VALID_BLOCK_PSEUDO_STATES = {
- "core/button": [":hover", ":focus", ":focus-visible", ":active"],
- "core/navigation-link": [":hover", ":focus", ":focus-visible", ":active"]
- };
- function getPseudoStateOptions(name) {
- const validStates = VALID_BLOCK_PSEUDO_STATES[name] ?? [];
- return validStates.filter((state) => PSEUDO_STATE_LABELS[state]).map((state) => ({
- value: state,
- label: PSEUDO_STATE_LABELS[state]
- }));
- }
- var DEFAULT_STATE_VALUE3 = "default";
- var EMPTY_STATE_OPTIONS = [];
- function BlockStatesControl({ name, value, onChange }) {
- const pseudoStateOptions = (0, import_element272.useMemo)(
- () => getPseudoStateOptions(name),
- [name]
- );
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
- if (!pseudoStateOptions.length) {
+ // packages/block-editor/build-module/components/rich-text/format-edit.mjs
+ var import_rich_text16 = __toESM(require_rich_text(), 1);
+ var import_element240 = __toESM(require_element(), 1);
+ var import_jsx_runtime402 = __toESM(require_jsx_runtime(), 1);
+ var import_react51 = __toESM(require_react(), 1);
+ var DEFAULT_BLOCK_CONTEXT = {};
+ var usesContextKey = /* @__PURE__ */ Symbol("usesContext");
+ function Edit3({
+ onChange,
+ onFocus,
+ value,
+ forwardedRef,
+ settings: settings2,
+ isVisible
+ }) {
+ const {
+ name,
+ edit: EditFunction,
+ [usesContextKey]: usesContext
+ } = settings2;
+ const blockContext = (0, import_element240.useContext)(block_context_default);
+ const context = (0, import_element240.useMemo)(() => {
+ return usesContext ? Object.fromEntries(
+ Object.entries(blockContext).filter(
+ ([key]) => usesContext.includes(key)
+ )
+ ) : DEFAULT_BLOCK_CONTEXT;
+ }, [usesContext, blockContext]);
+ if (!EditFunction) {
return null;
}
- return /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(
- StateControl,
+ const activeFormat = (0, import_rich_text16.getActiveFormat)(value, name);
+ const isActive = activeFormat !== void 0;
+ const activeObject = (0, import_rich_text16.getActiveObject)(value);
+ const isObjectActive = activeObject !== void 0 && activeObject.type === name;
+ return /* @__PURE__ */ (0, import_jsx_runtime402.jsx)(
+ EditFunction,
{
- pseudoStates: pseudoStateOptions,
- pseudoStateValue: value?.pseudo ?? DEFAULT_STATE_VALUE3,
- onChangePseudoState: (pseudo) => onChange({ pseudo }),
- popoverProps: dropdownMenuProps.popoverProps,
- showText: false
- }
+ isActive,
+ isVisible,
+ activeAttributes: isActive ? activeFormat.attributes || {} : {},
+ isObjectActive,
+ activeObjectAttributes: isObjectActive ? activeObject.attributes || {} : {},
+ value,
+ onChange,
+ onFocus,
+ contentRef: forwardedRef,
+ context
+ },
+ name
);
}
- function BlockStateBadges({ name, value, isResponsiveEditing: isResponsiveEditing3 }) {
- const pseudoStateOptions = (0, import_element272.useMemo)(
- () => getPseudoStateOptions(name),
- [name]
- );
- const [viewportSettings] = useSettings("viewport");
- const deviceStateOptions = (0, import_element272.useMemo)(
- () => getDeviceStateOptions(viewportSettings),
- [viewportSettings]
- );
- if (!pseudoStateOptions.length && !isResponsiveEditing3) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(
- StateControlBadges,
- {
- viewportStates: isResponsiveEditing3 ? deviceStateOptions : EMPTY_STATE_OPTIONS,
- pseudoStates: pseudoStateOptions,
- viewportValue: value?.viewport ?? DEFAULT_STATE_VALUE3,
- pseudoStateValue: value?.pseudo ?? DEFAULT_STATE_VALUE3
- }
- );
+ function FormatEdit({ formatTypes, ...props }) {
+ return formatTypes.map((settings2) => /* @__PURE__ */ (0, import_react51.createElement)(Edit3, { settings: settings2, ...props, key: settings2.name }));
}
- // packages/block-editor/build-module/components/block-inspector/index.mjs
- var import_jsx_runtime454 = __toESM(require_jsx_runtime(), 1);
- function StyleInspectorSlots({
- blockName,
- showAdvancedControls = true,
- showPositionControls = true,
- showBindingsControls = true
+ // packages/block-editor/build-module/components/rich-text/content.mjs
+ var import_element241 = __toESM(require_element(), 1);
+ var import_blocks88 = __toESM(require_blocks(), 1);
+ var import_deprecated25 = __toESM(require_deprecated(), 1);
+ var import_jsx_runtime403 = __toESM(require_jsx_runtime(), 1);
+ function valueToHTMLString(value, multiline) {
+ if (rich_text_default.isEmpty(value)) {
+ const multilineTag = getMultilineTag(multiline);
+ return multilineTag ? `<${multilineTag}></${multilineTag}>` : "";
+ }
+ if (Array.isArray(value)) {
+ (0, import_deprecated25.default)("wp.blockEditor.RichText value prop as children type", {
+ since: "6.1",
+ version: "6.3",
+ alternative: "value prop as string",
+ link: "https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"
+ });
+ return import_blocks88.children.toHTML(value);
+ }
+ if (typeof value === "string") {
+ return value;
+ }
+ return value.toHTMLString();
+ }
+ function Content3({
+ value,
+ tagName: Tag,
+ multiline,
+ format: format7,
+ ...props
}) {
- const borderPanelLabel = useBorderPanelLabel({ blockName });
- return /* @__PURE__ */ (0, import_jsx_runtime454.jsxs)(import_jsx_runtime454.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(inspector_controls_default.Slot, {}),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
- {
- group: "typography",
- label: (0, import_i18n213.__)("Typography")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
- {
- group: "color",
- label: (0, import_i18n213.__)("Color"),
- className: "color-block-support-panel__inner-wrapper"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
- {
- group: "background",
- label: (0, import_i18n213.__)("Background"),
- className: "background-block-support-panel__inner-wrapper"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(inspector_controls_default.Slot, { group: "layout", label: (0, import_i18n213.__)("Layout") }),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
+ value = /* @__PURE__ */ (0, import_jsx_runtime403.jsx)(import_element241.RawHTML, { children: valueToHTMLString(value, multiline) });
+ return Tag ? /* @__PURE__ */ (0, import_jsx_runtime403.jsx)(Tag, { ...props, children: value }) : value;
+ }
+
+ // packages/block-editor/build-module/components/rich-text/with-deprecations.mjs
+ var import_element243 = __toESM(require_element(), 1);
+ var import_blocks89 = __toESM(require_blocks(), 1);
+ var import_rich_text18 = __toESM(require_rich_text(), 1);
+ var import_deprecated27 = __toESM(require_deprecated(), 1);
+
+ // packages/block-editor/build-module/components/rich-text/multiline.mjs
+ var import_element242 = __toESM(require_element(), 1);
+ var import_deprecated26 = __toESM(require_deprecated(), 1);
+ var import_data155 = __toESM(require_data(), 1);
+ var import_keycodes26 = __toESM(require_keycodes(), 1);
+ var import_rich_text17 = __toESM(require_rich_text(), 1);
+ var import_jsx_runtime404 = __toESM(require_jsx_runtime(), 1);
+ function RichTextMultiline({
+ children,
+ identifier,
+ tagName: TagName = "div",
+ value = "",
+ onChange,
+ multiline,
+ ...props
+ }, forwardedRef) {
+ (0, import_deprecated26.default)("wp.blockEditor.RichText multiline prop", {
+ since: "6.1",
+ version: "6.3",
+ alternative: "nested blocks (InnerBlocks)",
+ link: "https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"
+ });
+ const { clientId } = useBlockEditContext();
+ const { getSelectionStart: getSelectionStart2, getSelectionEnd: getSelectionEnd2 } = (0, import_data155.useSelect)(store);
+ const { selectionChange: selectionChange2 } = (0, import_data155.useDispatch)(store);
+ const multilineTagName = getMultilineTag(multiline);
+ value = value || `<${multilineTagName}></${multilineTagName}>`;
+ const padded = `</${multilineTagName}>${value}<${multilineTagName}>`;
+ const values = padded.split(
+ `</${multilineTagName}><${multilineTagName}>`
+ );
+ values.shift();
+ values.pop();
+ function _onChange(newValues) {
+ onChange(
+ `<${multilineTagName}>${newValues.join(
+ `</${multilineTagName}><${multilineTagName}>`
+ )}</${multilineTagName}>`
+ );
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime404.jsx)(TagName, { ref: forwardedRef, children: values.map((_value, index2) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime404.jsx)(
+ RichTextWrapper,
{
- group: "dimensions",
- label: (0, import_i18n213.__)("Dimensions")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(inspector_controls_default.Slot, { group: "border", label: borderPanelLabel }),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
+ identifier: `${identifier}-${index2}`,
+ tagName: multilineTagName,
+ value: _value,
+ onChange: (newValue) => {
+ const newValues = values.slice();
+ newValues[index2] = newValue;
+ _onChange(newValues);
+ },
+ isSelected: void 0,
+ onKeyDown: (event) => {
+ if (event.keyCode !== import_keycodes26.ENTER) {
+ return;
+ }
+ event.preventDefault();
+ const { offset: start2 } = getSelectionStart2();
+ const { offset: end } = getSelectionEnd2();
+ if (typeof start2 !== "number" || typeof end !== "number") {
+ return;
+ }
+ const richTextValue = (0, import_rich_text17.create)({ html: _value });
+ richTextValue.start = start2;
+ richTextValue.end = end;
+ const array = (0, import_rich_text17.split)(richTextValue).map(
+ (v2) => (0, import_rich_text17.toHTMLString)({ value: v2 })
+ );
+ const newValues = values.slice();
+ newValues.splice(index2, 1, ...array);
+ _onChange(newValues);
+ selectionChange2(
+ clientId,
+ `${identifier}-${index2 + 1}`,
+ 0,
+ 0
+ );
+ },
+ onMerge: (forward) => {
+ const newValues = values.slice();
+ let offset4 = 0;
+ if (forward) {
+ if (!newValues[index2 + 1]) {
+ return;
+ }
+ newValues.splice(
+ index2,
+ 2,
+ newValues[index2] + newValues[index2 + 1]
+ );
+ offset4 = newValues[index2].length - 1;
+ } else {
+ if (!newValues[index2 - 1]) {
+ return;
+ }
+ newValues.splice(
+ index2 - 1,
+ 2,
+ newValues[index2 - 1] + newValues[index2]
+ );
+ offset4 = newValues[index2 - 1].length - 1;
+ }
+ _onChange(newValues);
+ selectionChange2(
+ clientId,
+ `${identifier}-${index2 - (forward ? 0 : 1)}`,
+ offset4,
+ offset4
+ );
+ },
+ ...props
+ },
+ index2
+ );
+ }) });
+ }
+ var multiline_default = (0, import_element242.forwardRef)(RichTextMultiline);
+
+ // packages/block-editor/build-module/components/rich-text/with-deprecations.mjs
+ var import_jsx_runtime405 = __toESM(require_jsx_runtime(), 1);
+ function withDeprecations(Component5) {
+ return (0, import_element243.forwardRef)((props, ref) => {
+ let value = props.value;
+ let onChange = props.onChange;
+ if (Array.isArray(value)) {
+ (0, import_deprecated27.default)("wp.blockEditor.RichText value prop as children type", {
+ since: "6.1",
+ version: "6.3",
+ alternative: "value prop as string",
+ link: "https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"
+ });
+ value = import_blocks89.children.toHTML(props.value);
+ onChange = (newValue) => props.onChange(
+ import_blocks89.children.fromDOM(
+ (0, import_rich_text18.__unstableCreateElement)(document, newValue).childNodes
+ )
+ );
+ }
+ const NewComponent = props.multiline ? multiline_default : Component5;
+ return /* @__PURE__ */ (0, import_jsx_runtime405.jsx)(
+ NewComponent,
{
- group: "elements",
- label: (0, import_i18n213.__)("Elements"),
- className: "elements-block-support-panel__inner-wrapper"
+ ...props,
+ value,
+ onChange,
+ ref
}
- ),
- showPositionControls && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(position_controls_panel_default, {}),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(inspector_controls_default.Slot, { group: "styles" }),
- showBindingsControls && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(inspector_controls_default.Slot, { group: "bindings" }),
- showAdvancedControls && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(advanced_controls_panel_default, {}) })
- ] });
+ );
+ });
}
- function StyleStateInspectorSlots({
- blockName,
- clientId,
- contentClientIds,
- isSectionBlock: isSectionBlock2,
- selectedBlockStyleState: selectedBlockStyleState2
+
+ // packages/block-editor/build-module/components/rich-text/toolbar-button.mjs
+ var import_components177 = __toESM(require_components(), 1);
+ var import_keycodes27 = __toESM(require_keycodes(), 1);
+ var import_jsx_runtime406 = __toESM(require_jsx_runtime(), 1);
+ function RichTextToolbarButton({
+ name,
+ shortcutType,
+ shortcutCharacter,
+ ...props
}) {
- const borderPanelLabel = useBorderPanelLabel({ blockName });
- const showLayoutControls = hasViewportBlockStyleState(selectedBlockStyleState2) && !hasPseudoBlockStyleState(selectedBlockStyleState2);
- const showSectionStyleControls = isSectionBlock2 && blockName !== "core/template-part";
- return /* @__PURE__ */ (0, import_jsx_runtime454.jsxs)(import_jsx_runtime454.Fragment, { children: [
- showSectionStyleControls && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(BlockStyleStateProvider, { value: selectedBlockStyleState2, children: /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- SectionStyleControls,
- {
- blockName,
- clientId,
- contentClientIds
- }
- ) }),
- !showSectionStyleControls && /* @__PURE__ */ (0, import_jsx_runtime454.jsxs)(import_jsx_runtime454.Fragment, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
- {
- group: "typography",
- label: (0, import_i18n213.__)("Typography")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
- {
- group: "color",
- label: (0, import_i18n213.__)("Color"),
- className: "color-block-support-panel__inner-wrapper"
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
- {
- group: "background",
- label: (0, import_i18n213.__)("Background"),
- className: "background-block-support-panel__inner-wrapper"
- }
- ),
- showLayoutControls && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
- {
- group: "layout",
- label: (0, import_i18n213.__)("Layout")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
- {
- group: "dimensions",
- label: (0, import_i18n213.__)("Dimensions")
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
- {
- group: "border",
- label: borderPanelLabel
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- inspector_controls_default.Slot,
- {
- group: "elements",
- label: (0, import_i18n213.__)("Elements"),
- className: "elements-block-support-panel__inner-wrapper"
- }
- )
- ] })
- ] });
+ let shortcut;
+ let fillName = "RichText.ToolbarControls";
+ if (name) {
+ fillName += `.${name}`;
+ }
+ if (shortcutType && shortcutCharacter) {
+ shortcut = import_keycodes27.displayShortcut[shortcutType](shortcutCharacter);
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime406.jsx)(import_components177.Fill, { name: fillName, children: /* @__PURE__ */ (0, import_jsx_runtime406.jsx)(import_components177.ToolbarButton, { ...props, shortcut }) });
}
- function BlockInspector() {
- const {
- selectedBlockCount,
- renderedBlockName,
- renderedBlockClientId,
- blockType,
- isSectionBlock: isSectionBlock2,
- isSectionBlockInSelection,
- hasBlockStyles,
- editedContentOnlySection: editedContentOnlySection2,
- blockEditingMode,
- selectedBlockStyleState: selectedBlockStyleState2,
- showStateOnCanvas,
- isResponsiveEditing: isResponsiveEditing3
- } = (0, import_data179.useSelect)((select3) => {
- const {
- getSelectedBlockClientId: getSelectedBlockClientId2,
- getSelectedBlockClientIds: getSelectedBlockClientIds2,
- getSelectedBlockCount: getSelectedBlockCount2,
- getBlockName: getBlockName2,
- getParentSectionBlock: getParentSectionBlock2,
- isSectionBlock: _isSectionBlock,
- getEditedContentOnlySection: getEditedContentOnlySection2,
- isWithinEditedContentOnlySection: isWithinEditedContentOnlySection2,
- getBlockEditingMode: getBlockEditingMode2,
- getSelectedBlockStyleState: getSelectedBlockStyleState2,
- isSelectedBlockStyleStateShownOnCanvas: isSelectedBlockStyleStateShownOnCanvas2,
- isResponsiveEditing: _isResponsiveEditing
- } = unlock(select3(store));
- const { getBlockStyles: getBlockStyles2 } = select3(import_blocks103.store);
- const _selectedBlockClientId = getSelectedBlockClientId2();
- const isWithinEditedSection = isWithinEditedContentOnlySection2(
- _selectedBlockClientId
- );
- const _renderedBlockClientId = isWithinEditedSection ? _selectedBlockClientId : getParentSectionBlock2(_selectedBlockClientId) || _selectedBlockClientId;
- const _renderedBlockName = _renderedBlockClientId && getBlockName2(_renderedBlockClientId);
- const _blockType = _renderedBlockName && (0, import_blocks103.getBlockType)(_renderedBlockName);
- const selectedBlockClientIds = getSelectedBlockClientIds2();
- const _isSectionBlockInSelection = selectedBlockClientIds.some(
- (id) => _isSectionBlock(id)
- );
- const blockStyles = _renderedBlockName && getBlockStyles2(_renderedBlockName);
- const _hasBlockStyles = blockStyles && blockStyles.length > 0;
+
+ // packages/block-editor/build-module/components/rich-text/index.mjs
+ var import_jsx_runtime407 = __toESM(require_jsx_runtime(), 1);
+ var {
+ useRichText,
+ KeyboardShortcutContext,
+ InputEventContext,
+ RichTextShortcut,
+ RichTextInputEvent
+ } = unlock(import_rich_text19.privateApis);
+ var instanceIdKey = /* @__PURE__ */ Symbol("instanceId");
+ function RichTextWrapper({
+ children,
+ tagName = "div",
+ value: adjustedValue = "",
+ onChange: adjustedOnChange,
+ isSelected: originalIsSelected,
+ multiline,
+ inlineToolbar,
+ wrapperClassName,
+ autocompleters,
+ onReplace,
+ placeholder,
+ allowedFormats,
+ withoutInteractiveFormatting,
+ onRemove,
+ onMerge,
+ onSplit,
+ __unstableOnSplitAtEnd: onSplitAtEnd,
+ __unstableOnSplitAtDoubleLineEnd: onSplitAtDoubleLineEnd,
+ identifier,
+ preserveWhiteSpace,
+ __unstablePastePlainText: pastePlainText,
+ __unstableEmbedURLOnPaste,
+ __unstableDisableFormats: disableFormats,
+ disableLineBreaks,
+ __unstableAllowPrefixTransformations,
+ readOnly,
+ ...props
+ }, forwardedRef) {
+ if (onSplit) {
+ (0, import_deprecated28.default)("wp.blockEditor.RichText onSplit prop", {
+ since: "6.4",
+ alternative: 'block.json support key: "splitting"'
+ });
+ }
+ const instanceId = (0, import_compose95.useInstanceId)(RichTextWrapper);
+ const anchorRef = (0, import_element244.useRef)();
+ const [anchorElement, setAnchorElement] = (0, import_element244.useState)(null);
+ const context = useBlockEditContext();
+ const { clientId, isSelected: isBlockSelected2, name: blockName } = context;
+ const blockBindings = context[blockBindingsKey];
+ const hasDefaultEditingMode = context[blockEditingModeKey] === "default";
+ const blockContext = (0, import_element244.useContext)(block_context_default);
+ const registry = (0, import_data156.useRegistry)();
+ const selector3 = (select3) => {
+ if (!isBlockSelected2) {
+ return { isSelected: false };
+ }
+ const { getSelectionStart: getSelectionStart22, getSelectionEnd: getSelectionEnd22 } = select3(store);
+ const selectionStart2 = getSelectionStart22();
+ const selectionEnd2 = getSelectionEnd22();
+ let isSelected2;
+ if (originalIsSelected === void 0) {
+ isSelected2 = selectionStart2.clientId === clientId && selectionEnd2.clientId === clientId && (identifier ? selectionStart2.attributeKey === identifier : selectionStart2[instanceIdKey] === instanceId);
+ } else if (originalIsSelected) {
+ isSelected2 = selectionStart2.clientId === clientId;
+ }
return {
- selectedBlockCount: getSelectedBlockCount2(),
- renderedBlockClientId: _renderedBlockClientId,
- renderedBlockName: _renderedBlockName,
- blockType: _blockType,
- isSectionBlockInSelection: _isSectionBlockInSelection,
- isSectionBlock: _isSectionBlock(_renderedBlockClientId),
- hasBlockStyles: _hasBlockStyles,
- editedContentOnlySection: getEditedContentOnlySection2(),
- blockEditingMode: getBlockEditingMode2(_renderedBlockClientId),
- selectedBlockStyleState: getSelectedBlockStyleState2(
- _renderedBlockClientId
- ),
- showStateOnCanvas: isSelectedBlockStyleStateShownOnCanvas2(
- _renderedBlockClientId
- ),
- isResponsiveEditing: _isResponsiveEditing()
+ selectionStart: isSelected2 ? selectionStart2.offset : void 0,
+ selectionEnd: isSelected2 ? selectionEnd2.offset : void 0,
+ isSelected: isSelected2
};
- }, []);
- const contentClientIds = (0, import_data179.useSelect)(
+ };
+ const { selectionStart, selectionEnd, isSelected } = (0, import_data156.useSelect)(selector3, [
+ clientId,
+ identifier,
+ instanceId,
+ originalIsSelected,
+ isBlockSelected2
+ ]);
+ const { disableBoundBlock, bindingsPlaceholder, bindingsLabel } = (0, import_data156.useSelect)(
(select3) => {
- if (!isSectionBlock2 || !renderedBlockClientId) {
- return [];
+ if (!blockBindings?.[identifier]) {
+ return {};
}
- const {
- getClientIdsOfDescendants: getClientIdsOfDescendants2,
- getBlockEditingMode: getBlockEditingMode2,
- shouldRenderBlockListView: shouldRenderBlockListView2
- } = unlock(select3(store));
- const descendants = getClientIdsOfDescendants2(
- renderedBlockClientId
+ const { __experimentalBlockBindingsSupportedAttributes } = select3(store).getSettings();
+ const bindableAttributes = __experimentalBlockBindingsSupportedAttributes?.[blockName];
+ if (!bindableAttributes) {
+ return {};
+ }
+ const relatedBinding = blockBindings[identifier];
+ const blockBindingsSource = (0, import_blocks90.getBlockBindingsSource)(
+ relatedBinding.source
);
- const listViewDescendants = /* @__PURE__ */ new Set();
- descendants.forEach((clientId) => {
- if (shouldRenderBlockListView2(clientId)) {
- const listViewChildren = getClientIdsOfDescendants2(clientId);
- listViewChildren.forEach(
- (childId) => listViewDescendants.add(childId)
- );
+ const blockBindingsContext = {};
+ if (blockBindingsSource?.usesContext?.length) {
+ for (const key of blockBindingsSource.usesContext) {
+ blockBindingsContext[key] = blockContext[key];
}
+ }
+ const _disableBoundBlock = !blockBindingsSource?.canUserEditValue?.({
+ select: select3,
+ context: blockBindingsContext,
+ args: relatedBinding.args
});
- return descendants.filter((current) => {
- return !listViewDescendants.has(current) && getBlockEditingMode2(current) === "contentOnly";
- });
+ if (adjustedValue.length > 0) {
+ return {
+ disableBoundBlock: _disableBoundBlock,
+ // Null values will make them fall back to the default behavior.
+ bindingsPlaceholder: null,
+ bindingsLabel: null
+ };
+ }
+ const { getBlockAttributes: getBlockAttributes3 } = select3(store);
+ const blockAttributes = getBlockAttributes3(clientId);
+ let clientSideFieldLabel = null;
+ if (blockBindingsSource?.getFieldsList) {
+ const fieldsItems = blockBindingsSource.getFieldsList({
+ select: select3,
+ context: blockBindingsContext
+ });
+ clientSideFieldLabel = fieldsItems?.find(
+ (item) => (0, import_es65.default)(item.args, relatedBinding?.args)
+ )?.label;
+ }
+ const bindingKey = clientSideFieldLabel ?? blockBindingsSource?.label;
+ const _bindingsPlaceholder = _disableBoundBlock ? bindingKey : (0, import_i18n172.sprintf)(
+ /* translators: %s: connected field label or source label */
+ (0, import_i18n172.__)("Add %s"),
+ bindingKey
+ );
+ const _bindingsLabel = _disableBoundBlock ? relatedBinding?.args?.key || blockBindingsSource?.label : (0, import_i18n172.sprintf)(
+ /* translators: %s: source label or key */
+ (0, import_i18n172.__)("Empty %s; start writing to edit its value"),
+ relatedBinding?.args?.key || blockBindingsSource?.label
+ );
+ return {
+ disableBoundBlock: _disableBoundBlock,
+ bindingsPlaceholder: blockAttributes?.placeholder || _bindingsPlaceholder,
+ bindingsLabel: _bindingsLabel
+ };
},
- [isSectionBlock2, renderedBlockClientId]
- );
- const availableTabs = useInspectorControlsTabs(
- blockType?.name,
- contentClientIds,
- isSectionBlock2,
- hasBlockStyles
+ [
+ blockBindings,
+ identifier,
+ blockName,
+ adjustedValue,
+ clientId,
+ blockContext
+ ]
);
- const hasMultipleTabs = availableTabs?.length > 1;
- const blockInspectorAnimationSettings = useBlockInspectorAnimationSettings(blockType);
- const hasSelectedBlocks = selectedBlockCount > 1;
- const isBlockStyleStateSelected = !isDefaultBlockStyleState2(
- selectedBlockStyleState2
+ const isInsidePatternOverrides = !!blockContext?.["pattern/overrides"];
+ const hasOverrideEnabled = blockBindings?.__default?.source === "core/pattern-overrides";
+ const shouldDisableForPattern = isInsidePatternOverrides && !hasOverrideEnabled;
+ const shouldDisableEditing = readOnly || disableBoundBlock || shouldDisableForPattern;
+ const isEditingHost = (0, import_data156.useSelect)(
+ (select3) => {
+ if (shouldDisableEditing || !hasDefaultEditingMode || !isBlockSelected2) {
+ return false;
+ }
+ const { getSelectedBlockClientId: getSelectedBlockClientId2, canHostEditableRoot: canHostEditableRoot2 } = unlock(
+ select3(store)
+ );
+ return canHostEditableRoot2(getSelectedBlockClientId2());
+ },
+ [shouldDisableEditing, hasDefaultEditingMode, isBlockSelected2]
);
- if (hasSelectedBlocks && !isSectionBlockInSelection) {
- return /* @__PURE__ */ (0, import_jsx_runtime454.jsxs)("div", { className: "block-editor-block-inspector", children: [
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(MultiSelectionInspector, {}),
- hasMultipleTabs ? /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(InspectorControlsTabs, { tabs: availableTabs }) : /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- StyleInspectorSlots,
- {
- blockName: renderedBlockName,
- showAdvancedControls: false,
- showPositionControls: false,
- showBindingsControls: false
- }
- )
- ] });
- }
- if (hasSelectedBlocks && isSectionBlockInSelection) {
- return /* @__PURE__ */ (0, import_jsx_runtime454.jsx)("div", { className: "block-editor-block-inspector", children: /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(MultiSelectionInspector, {}) });
- }
- const isRenderedBlockUnregistered = renderedBlockName === (0, import_blocks103.getUnregisteredTypeHandlerName)();
- const shouldShowWarning = !blockType || !renderedBlockClientId || isRenderedBlockUnregistered;
- if (shouldShowWarning) {
- return /* @__PURE__ */ (0, import_jsx_runtime454.jsx)("span", { className: "block-editor-block-inspector__no-blocks", children: (0, import_i18n213.__)("No block selected.") });
- }
- return /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- BlockInspectorSingleBlockWrapper,
- {
- animate: blockInspectorAnimationSettings,
- wrapper: (children) => /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- AnimatedContainer,
- {
- blockInspectorAnimationSettings,
- renderedBlockClientId,
- children
- }
- ),
- children: /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- BlockInspectorSingleBlock,
- {
- renderedBlockClientId,
- blockName: blockType.name,
- isSectionBlock: isSectionBlock2,
- availableTabs,
- contentClientIds,
- hasBlockStyles,
- editedContentOnlySection: editedContentOnlySection2,
- blockEditingMode,
- selectedBlockStyleState: selectedBlockStyleState2,
- showStateOnCanvas,
- isResponsiveEditing: isResponsiveEditing3,
- isBlockStyleStateSelected
+ const { getSelectionStart: getSelectionStart2, getSelectionEnd: getSelectionEnd2, getBlockRootClientId: getBlockRootClientId2 } = (0, import_data156.useSelect)(store);
+ const { selectionChange: selectionChange2 } = (0, import_data156.useDispatch)(store);
+ const adjustedAllowedFormats = getAllowedFormats({
+ allowedFormats,
+ disableFormats
+ });
+ const hasFormats = !adjustedAllowedFormats || adjustedAllowedFormats.length > 0;
+ const onSelectionChange = (0, import_element244.useCallback)(
+ (start2, end) => {
+ const selection2 = {};
+ const unset = start2 === void 0 && end === void 0;
+ const baseSelection = {
+ clientId,
+ [identifier ? "attributeKey" : instanceIdKey]: identifier ? identifier : instanceId
+ };
+ if (typeof start2 === "number" || unset) {
+ if (end === void 0 && getBlockRootClientId2(clientId) !== getBlockRootClientId2(getSelectionEnd2().clientId)) {
+ return;
}
- )
- }
- );
- }
- var BlockInspectorSingleBlockWrapper = ({ animate, wrapper, children }) => {
- return animate ? wrapper(children) : children;
- };
- var AnimatedContainer = ({
- blockInspectorAnimationSettings,
- renderedBlockClientId,
- children
- }) => {
- const animationOrigin = blockInspectorAnimationSettings && blockInspectorAnimationSettings.enterDirection === "leftToRight" ? -50 : 50;
- return /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- import_components223.__unstableMotion.div,
- {
- animate: {
- x: 0,
- opacity: 1,
- transition: {
- ease: "easeInOut",
- duration: 0.14
+ selection2.start = {
+ ...baseSelection,
+ offset: start2
+ };
+ }
+ if (typeof end === "number" || unset) {
+ if (start2 === void 0 && getBlockRootClientId2(clientId) !== getBlockRootClientId2(getSelectionStart2().clientId)) {
+ return;
}
- },
- initial: {
- x: animationOrigin,
- opacity: 0
- },
- children
+ selection2.end = {
+ ...baseSelection,
+ offset: end
+ };
+ }
+ selectionChange2(selection2);
},
- renderedBlockClientId
- );
- };
- var BlockInspectorSingleBlock = ({
- // The block that is displayed in the inspector. This is the block whose
- // controls and information are shown to the user.
- renderedBlockClientId,
- blockName,
- isSectionBlock: isSectionBlock2,
- availableTabs,
- contentClientIds,
- hasBlockStyles,
- editedContentOnlySection: editedContentOnlySection2,
- blockEditingMode,
- selectedBlockStyleState: selectedBlockStyleState2,
- showStateOnCanvas,
- isResponsiveEditing: isResponsiveEditing3
- }) => {
- const listViewRef = (0, import_element273.useRef)(null);
- const hasMultipleTabs = availableTabs?.length > 1;
- const hasPseudoState = hasPseudoBlockStyleState(selectedBlockStyleState2);
- const isEditingStyleState = hasViewportBlockStyleState(selectedBlockStyleState2) && isResponsiveEditing3 || hasPseudoBlockStyleState(selectedBlockStyleState2);
- const hasParentChildBlockCards = editedContentOnlySection2 && editedContentOnlySection2 !== renderedBlockClientId;
- const parentBlockInformation = useBlockDisplayInformation(
- editedContentOnlySection2
- );
- const blockInformation = useBlockDisplayInformation(
- renderedBlockClientId
+ [
+ clientId,
+ getBlockRootClientId2,
+ getSelectionEnd2,
+ getSelectionStart2,
+ identifier,
+ instanceId,
+ selectionChange2
+ ]
);
- const isBlockSynced = blockInformation.isSynced;
const {
- setSelectedBlockStyleState: setSelectedBlockStyleState2,
- setSelectedBlockStyleStateCanvasPreview: setSelectedBlockStyleStateCanvasPreview2
- } = unlock((0, import_data179.useDispatch)(store));
- const onBlockStyleStateChange = (value) => {
- setSelectedBlockStyleState2(renderedBlockClientId, value);
- };
- const onShowStateOnCanvasChange = (value) => {
- setSelectedBlockStyleStateCanvasPreview2(renderedBlockClientId, value);
- };
- return /* @__PURE__ */ (0, import_jsx_runtime454.jsxs)("div", { className: "block-editor-block-inspector", children: [
- hasParentChildBlockCards && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- block_card_default,
- {
- ...parentBlockInformation,
- className: parentBlockInformation?.isSynced && "is-synced",
- parentClientId: editedContentOnlySection2
+ value,
+ getValue,
+ onChange,
+ ref: richTextRef,
+ formatTypes
+ } = useRichText({
+ value: adjustedValue,
+ onChange: adjustedOnChange,
+ selectionStart,
+ selectionEnd,
+ onSelectionChange,
+ placeholder: bindingsPlaceholder || placeholder,
+ __unstableIsSelected: isSelected,
+ __unstableDisableFormats: disableFormats,
+ preserveWhiteSpace,
+ __unstableDependencies: [tagName],
+ allowedFormats: adjustedAllowedFormats,
+ withoutInteractiveFormatting,
+ __unstableFormatTypeHandlerContext: (0, import_element244.useMemo)(
+ () => ({
+ richTextIdentifier: identifier,
+ blockClientId: clientId
+ }),
+ [identifier, clientId]
+ )
+ });
+ const autocompleteProps = useBlockEditorAutocompleteProps({
+ onReplace,
+ completers: autocompleters,
+ record: value,
+ onChange
+ });
+ const {
+ "aria-autocomplete": ariaAutocomplete,
+ "aria-haspopup": ariaHasPopup,
+ "aria-controls": ariaControls,
+ "aria-owns": ariaOwns,
+ "aria-activedescendant": ariaActiveDescendant
+ } = autocompleteProps;
+ (0, import_element244.useEffect)(() => {
+ if (!isSelected) {
+ return;
+ }
+ const host2 = anchorRef.current?.parentElement?.closest(
+ '[contenteditable="true"]'
+ );
+ if (!host2) {
+ return;
+ }
+ const attributes = {
+ "aria-autocomplete": ariaAutocomplete,
+ "aria-haspopup": ariaHasPopup,
+ "aria-controls": ariaControls,
+ "aria-owns": ariaOwns,
+ "aria-activedescendant": ariaActiveDescendant
+ };
+ for (const [key, value_] of Object.entries(attributes)) {
+ if (value_ === void 0) {
+ host2.removeAttribute(key);
+ } else {
+ host2.setAttribute(key, value_);
}
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- block_card_default,
- {
- ...blockInformation,
- allowParentNavigation: true,
- className: isBlockSynced && "is-synced",
- isChild: hasParentChildBlockCards,
- clientId: renderedBlockClientId,
- controls: blockEditingMode === "default" && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- BlockStatesControl,
- {
- name: blockName,
- value: selectedBlockStyleState2,
- onChange: onBlockStyleStateChange
- }
- )
+ }
+ return () => {
+ for (const key of Object.keys(attributes)) {
+ host2.removeAttribute(key);
}
- ),
- blockEditingMode === "default" && isEditingStyleState && /* @__PURE__ */ (0, import_jsx_runtime454.jsxs)(import_components223.__experimentalSpacer, { paddingX: 4, paddingY: 2, children: [
- hasPseudoState && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- import_components223.ToggleControl,
- {
- label: (0, import_i18n213.__)("Show state on canvas"),
- checked: showStateOnCanvas,
- onChange: onShowStateOnCanvasChange
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- BlockStateBadges,
+ };
+ }, [
+ isSelected,
+ ariaAutocomplete,
+ ariaHasPopup,
+ ariaControls,
+ ariaOwns,
+ ariaActiveDescendant
+ ]);
+ useMarkPersistent({ html: adjustedValue, value });
+ const keyboardShortcuts = (0, import_element244.useRef)(/* @__PURE__ */ new Set());
+ const inputEvents = (0, import_element244.useRef)(/* @__PURE__ */ new Set());
+ function onFocus() {
+ anchorRef.current?.focus();
+ }
+ let tabIndex = props.tabIndex;
+ if (isEditingHost) {
+ tabIndex = props.tabIndex ?? 0;
+ } else if (!shouldDisableEditing && props.tabIndex === 0) {
+ tabIndex = null;
+ }
+ const TagName = tagName;
+ return /* @__PURE__ */ (0, import_jsx_runtime407.jsxs)(import_jsx_runtime407.Fragment, { children: [
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(KeyboardShortcutContext.Provider, { value: keyboardShortcuts, children: /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(InputEventContext.Provider, { value: inputEvents, children: /* @__PURE__ */ (0, import_jsx_runtime407.jsxs)(import_components178.Popover.__unstableSlotNameProvider, { value: "__unstable-block-tools-after", children: [
+ children && children({ value, onChange, onFocus }),
+ /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
+ FormatEdit,
{
- name: blockName,
- value: selectedBlockStyleState2,
- isResponsiveEditing: isResponsiveEditing3
+ value,
+ onChange,
+ onFocus,
+ formatTypes,
+ forwardedRef: anchorRef
}
)
- ] }),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(ViewportVisibilityInfo, { clientId: renderedBlockClientId }),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(EditContents, { clientId: renderedBlockClientId }),
- !isEditingStyleState && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- block_variation_transforms_default,
- {
- blockClientId: renderedBlockClientId
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(BlockInspectorPreTabsSlot, {}),
- isEditingStyleState && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- StyleStateInspectorSlots,
+ ] }) }) }),
+ isSelected && hasFormats && /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
+ format_toolbar_container_default,
{
- blockName,
- clientId: renderedBlockClientId,
- contentClientIds,
- isSectionBlock: isSectionBlock2,
- selectedBlockStyleState: selectedBlockStyleState2
+ inline: inlineToolbar,
+ editableContentElement: anchorElement
}
),
- !isEditingStyleState && hasMultipleTabs && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(import_jsx_runtime454.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
- InspectorControlsTabs,
+ /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
+ TagName,
{
- hasBlockStyles,
- clientId: renderedBlockClientId,
- blockName,
- tabs: availableTabs,
- isSectionBlock: isSectionBlock2,
- contentClientIds
+ role: "textbox",
+ "aria-multiline": !disableLineBreaks,
+ "aria-readonly": shouldDisableEditing,
+ ...props,
+ draggable: void 0,
+ "aria-label": bindingsLabel || props["aria-label"] || placeholder,
+ ...autocompleteProps,
+ ref: (0, import_compose95.useMergeRefs)([
+ // Rich text ref must be first because its focus listener
+ // must be set up before any other ref calls .focus() on
+ // mount.
+ richTextRef,
+ forwardedRef,
+ autocompleteProps.ref,
+ props.ref,
+ useEventListeners({
+ registry,
+ getValue,
+ onChange,
+ __unstableAllowPrefixTransformations,
+ formatTypes,
+ onReplace,
+ selectionChange: selectionChange2,
+ isSelected,
+ disableFormats,
+ value,
+ tagName,
+ onSplit,
+ __unstableEmbedURLOnPaste,
+ pastePlainText,
+ onMerge,
+ onRemove,
+ disableLineBreaks,
+ onSplitAtEnd,
+ onSplitAtDoubleLineEnd,
+ keyboardShortcuts,
+ inputEvents
+ }),
+ anchorRef,
+ setAnchorElement
+ ]),
+ contentEditable: !shouldDisableEditing,
+ suppressContentEditableWarning: true,
+ className: clsx_default(
+ "block-editor-rich-text__editable",
+ props.className,
+ "rich-text"
+ ),
+ tabIndex,
+ "data-wp-block-attribute-key": identifier
}
- ) }),
- !isEditingStyleState && !hasMultipleTabs && /* @__PURE__ */ (0, import_jsx_runtime454.jsxs)(import_jsx_runtime454.Fragment, { children: [
- hasBlockStyles && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(block_styles_default, { clientId: renderedBlockClientId }),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(content_tab_default, { contentClientIds }),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(inspector_controls_default.Slot, { group: "content" }),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(inspector_controls_default.Slot, { group: "list", ref: listViewRef }),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(ListViewContentPopover, { listViewRef }),
- !isSectionBlock2 && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(StyleInspectorSlots, { blockName })
- ] }),
- !isEditingStyleState && /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(last_item_default.Slot, {}),
- /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(SkipToSelectedBlock, {}, "back")
+ )
] });
+ }
+ var PrivateRichText = withDeprecations(
+ (0, import_element244.forwardRef)(RichTextWrapper)
+ );
+ PrivateRichText.Content = Content3;
+ PrivateRichText.isEmpty = (value) => {
+ return !value || value.length === 0;
};
- var block_inspector_default = BlockInspector;
-
- // packages/block-editor/build-module/components/copy-handler/index.mjs
- var import_deprecated30 = __toESM(require_deprecated(), 1);
- var import_jsx_runtime455 = __toESM(require_jsx_runtime(), 1);
- var __unstableUseClipboardHandler = () => {
- (0, import_deprecated30.default)("__unstableUseClipboardHandler", {
- alternative: "BlockCanvas or WritingFlow",
- since: "6.4",
- version: "6.7"
- });
- return useClipboardHandler();
+ var PublicForwardedRichTextContainer = (0, import_element244.forwardRef)((props, ref) => {
+ const context = useBlockEditContext();
+ const isPreviewMode = context[isPreviewModeKey];
+ if (isPreviewMode) {
+ const {
+ children,
+ tagName: Tag = "div",
+ value,
+ onChange,
+ isSelected,
+ multiline,
+ inlineToolbar,
+ wrapperClassName,
+ autocompleters,
+ onReplace,
+ placeholder,
+ allowedFormats,
+ withoutInteractiveFormatting,
+ onRemove,
+ onMerge,
+ onSplit,
+ __unstableOnSplitAtEnd,
+ __unstableOnSplitAtDoubleLineEnd,
+ identifier,
+ preserveWhiteSpace,
+ __unstablePastePlainText,
+ __unstableEmbedURLOnPaste,
+ __unstableDisableFormats,
+ disableLineBreaks,
+ __unstableAllowPrefixTransformations,
+ readOnly,
+ ...contentProps
+ } = props;
+ return /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
+ Tag,
+ {
+ ref,
+ ...contentProps,
+ dangerouslySetInnerHTML: {
+ __html: valueToHTMLString(value, multiline) || "<br>"
+ }
+ }
+ );
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(PrivateRichText, { ref, ...props, readOnly: false });
+ });
+ PublicForwardedRichTextContainer.Content = Content3;
+ PublicForwardedRichTextContainer.isEmpty = (value) => {
+ return !value || value.length === 0;
};
- function CopyHandler(props) {
- (0, import_deprecated30.default)("CopyHandler", {
- alternative: "BlockCanvas or WritingFlow",
- since: "6.4",
- version: "6.7"
- });
- return /* @__PURE__ */ (0, import_jsx_runtime455.jsx)("div", { ...props, ref: useClipboardHandler() });
- }
+ var rich_text_default = PublicForwardedRichTextContainer;
- // packages/block-editor/build-module/components/inserter/library.mjs
- var import_data180 = __toESM(require_data(), 1);
- var import_element274 = __toESM(require_element(), 1);
- var import_jsx_runtime456 = __toESM(require_jsx_runtime(), 1);
- var noop23 = () => {
+ // packages/block-editor/build-module/components/editable-text/index.mjs
+ var import_jsx_runtime408 = __toESM(require_jsx_runtime(), 1);
+ var EditableText = (0, import_element245.forwardRef)((props, ref) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime408.jsx)(rich_text_default, { ref, ...props, __unstableDisableFormats: true });
+ });
+ EditableText.Content = function Content4({
+ value = "",
+ tagName: Tag = "div",
+ ...props
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime408.jsx)(Tag, { ...props, children: value });
};
- function InserterLibrary({
- rootClientId,
- clientId,
- isAppender,
- showInserterHelpPanel,
- showMostUsedBlocks = false,
- __experimentalInsertionIndex,
- __experimentalInitialTab,
- __experimentalInitialCategory,
- __experimentalFilterValue,
- onPatternCategorySelection,
- onSelect = noop23,
- shouldFocusBlock = false,
- onClose
- }, ref) {
- const { destinationRootClientId } = (0, import_data180.useSelect)(
- (select3) => {
- const { getBlockRootClientId: getBlockRootClientId2 } = select3(store);
- const _rootClientId = rootClientId || getBlockRootClientId2(clientId) || void 0;
- return {
- destinationRootClientId: _rootClientId
- };
- },
- [clientId, rootClientId]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(
- PrivateInserterMenu,
+ var editable_text_default = EditableText;
+
+ // packages/block-editor/build-module/components/plain-text/index.mjs
+ var import_jsx_runtime409 = __toESM(require_jsx_runtime(), 1);
+ var PlainText = (0, import_element246.forwardRef)(({ __experimentalVersion, ...props }, ref) => {
+ if (__experimentalVersion === 2) {
+ return /* @__PURE__ */ (0, import_jsx_runtime409.jsx)(editable_text_default, { ref, ...props });
+ }
+ const { className: className2, onChange, ...remainingProps } = props;
+ return /* @__PURE__ */ (0, import_jsx_runtime409.jsx)(
+ import_react_autosize_textarea2.default,
{
- onSelect,
- rootClientId: destinationRootClientId,
- clientId,
- isAppender,
- showInserterHelpPanel,
- showMostUsedBlocks,
- __experimentalInsertionIndex,
- __experimentalFilterValue,
- onPatternCategorySelection,
- __experimentalInitialTab,
- __experimentalInitialCategory,
- shouldFocusBlock,
ref,
- onClose
+ className: clsx_default("block-editor-plain-text", className2),
+ onChange: (event) => onChange(event.target.value),
+ ...remainingProps
}
);
+ });
+ var plain_text_default = PlainText;
+
+ // packages/block-editor/build-module/components/responsive-block-control/index.mjs
+ var import_i18n174 = __toESM(require_i18n(), 1);
+ var import_element247 = __toESM(require_element(), 1);
+ var import_components179 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/responsive-block-control/label.mjs
+ var import_compose96 = __toESM(require_compose(), 1);
+ var import_i18n173 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime410 = __toESM(require_jsx_runtime(), 1);
+ function ResponsiveBlockControlLabel({
+ property,
+ viewport,
+ desc
+ }) {
+ const instanceId = (0, import_compose96.useInstanceId)(ResponsiveBlockControlLabel);
+ const accessibleLabel = desc || (0, import_i18n173.sprintf)(
+ /* translators: 1: property name. 2: viewport name. */
+ (0, import_i18n173._x)(
+ "Controls the %1$s property for %2$s viewports.",
+ "Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."
+ ),
+ property,
+ viewport.label
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime410.jsxs)(import_jsx_runtime410.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime410.jsx)("span", { "aria-describedby": `rbc-desc-${instanceId}`, children: viewport.label }),
+ /* @__PURE__ */ (0, import_jsx_runtime410.jsx)(
+ VisuallyHidden,
+ {
+ id: `rbc-desc-${instanceId}`,
+ render: /* @__PURE__ */ (0, import_jsx_runtime410.jsx)("span", {}),
+ children: accessibleLabel
+ }
+ )
+ ] });
}
- var PrivateInserterLibrary = (0, import_element274.forwardRef)(InserterLibrary);
- function PublicInserterLibrary(props, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(
- PrivateInserterLibrary,
- {
- ...props,
- onPatternCategorySelection: void 0,
- ref
- }
+
+ // packages/block-editor/build-module/components/responsive-block-control/index.mjs
+ var import_jsx_runtime411 = __toESM(require_jsx_runtime(), 1);
+ function ResponsiveBlockControl(props) {
+ const {
+ title,
+ property,
+ toggleLabel,
+ onIsResponsiveChange,
+ renderDefaultControl,
+ renderResponsiveControls,
+ isResponsive = false,
+ defaultLabel: defaultLabel2 = {
+ id: "all",
+ label: (0, import_i18n174._x)("All", "screen sizes")
+ },
+ viewports = [
+ {
+ id: "small",
+ label: (0, import_i18n174.__)("Small screens")
+ },
+ {
+ id: "medium",
+ label: (0, import_i18n174.__)("Medium screens")
+ },
+ {
+ id: "large",
+ label: (0, import_i18n174.__)("Large screens")
+ }
+ ]
+ } = props;
+ if (!title || !property || !renderDefaultControl) {
+ return null;
+ }
+ const toggleControlLabel = toggleLabel || (0, import_i18n174.sprintf)(
+ /* translators: %s: Property value for the control (eg: margin, padding, etc.). */
+ (0, import_i18n174.__)("Use the same %s on all screen sizes."),
+ property
);
+ const toggleHelpText = (0, import_i18n174.__)(
+ "Choose whether to use the same value for all screen sizes or a unique value for each screen size."
+ );
+ const defaultControl = renderDefaultControl(
+ /* @__PURE__ */ (0, import_jsx_runtime411.jsx)(
+ ResponsiveBlockControlLabel,
+ {
+ property,
+ viewport: defaultLabel2
+ }
+ ),
+ defaultLabel2
+ );
+ const defaultResponsiveControls = () => {
+ return viewports.map((viewport) => /* @__PURE__ */ (0, import_jsx_runtime411.jsx)(import_element247.Fragment, { children: renderDefaultControl(
+ /* @__PURE__ */ (0, import_jsx_runtime411.jsx)(
+ ResponsiveBlockControlLabel,
+ {
+ property,
+ viewport
+ }
+ ),
+ viewport
+ ) }, viewport.id));
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime411.jsxs)("fieldset", { className: "block-editor-responsive-block-control", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime411.jsx)("legend", { className: "block-editor-responsive-block-control__title", children: title }),
+ /* @__PURE__ */ (0, import_jsx_runtime411.jsxs)("div", { className: "block-editor-responsive-block-control__inner", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime411.jsx)(
+ import_components179.ToggleControl,
+ {
+ className: "block-editor-responsive-block-control__toggle",
+ label: toggleControlLabel,
+ checked: !isResponsive,
+ onChange: onIsResponsiveChange,
+ help: toggleHelpText
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime411.jsxs)(
+ "div",
+ {
+ className: clsx_default(
+ "block-editor-responsive-block-control__group",
+ {
+ "is-responsive": isResponsive
+ }
+ ),
+ children: [
+ !isResponsive && defaultControl,
+ isResponsive && (renderResponsiveControls ? renderResponsiveControls(viewports) : defaultResponsiveControls())
+ ]
+ }
+ )
+ ] })
+ ] });
}
- var library_default = (0, import_element274.forwardRef)(PublicInserterLibrary);
+ var responsive_block_control_default = ResponsiveBlockControl;
- // packages/block-editor/build-module/components/selection-scroll-into-view/index.mjs
- var import_deprecated31 = __toESM(require_deprecated(), 1);
- function MultiSelectScrollIntoView() {
- (0, import_deprecated31.default)("wp.blockEditor.MultiSelectScrollIntoView", {
- hint: "This behaviour is now built-in.",
- since: "5.8"
+ // packages/block-editor/build-module/components/unit-control/index.mjs
+ var import_components180 = __toESM(require_components(), 1);
+ var import_jsx_runtime412 = __toESM(require_jsx_runtime(), 1);
+ function UnitControl6({ units: unitsProp, ...props }) {
+ const [availableUnits] = useSettings("spacing.units");
+ const units2 = (0, import_components180.__experimentalUseCustomUnits)({
+ availableUnits: availableUnits || ["%", "px", "em", "rem", "vw"],
+ units: unitsProp
});
- return null;
+ return /* @__PURE__ */ (0, import_jsx_runtime412.jsx)(import_components180.__experimentalUnitControl, { units: units2, ...props });
}
- // packages/block-editor/build-module/components/typewriter/index.mjs
- var import_compose97 = __toESM(require_compose(), 1);
- var import_dom72 = __toESM(require_dom(), 1);
- var import_keycodes28 = __toESM(require_keycodes(), 1);
- var import_jsx_runtime457 = __toESM(require_jsx_runtime(), 1);
- var isIE = window.navigator.userAgent.indexOf("Trident") !== -1;
- var arrowKeyCodes = /* @__PURE__ */ new Set([import_keycodes28.UP, import_keycodes28.DOWN, import_keycodes28.LEFT, import_keycodes28.RIGHT]);
- var initialTriggerPercentage = 0.75;
- function useTypewriter() {
- return (0, import_compose97.useRefEffect)((node) => {
- const { ownerDocument: ownerDocument2 } = node;
- const { defaultView } = ownerDocument2;
- let scrollResizeRafId;
- let onKeyDownRafId;
- let caretRect;
- function onScrollResize() {
- if (scrollResizeRafId) {
- return;
+ // packages/block-editor/build-module/components/url-input/button.mjs
+ var import_i18n175 = __toESM(require_i18n(), 1);
+ var import_element248 = __toESM(require_element(), 1);
+ var import_components181 = __toESM(require_components(), 1);
+ var import_jsx_runtime413 = __toESM(require_jsx_runtime(), 1);
+ function URLInputButton({ url, onChange }) {
+ const [expanded, toggleExpanded] = (0, import_element248.useReducer)(
+ (isExpanded) => !isExpanded,
+ false
+ );
+ const submitLink = (event) => {
+ event.preventDefault();
+ toggleExpanded();
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime413.jsxs)("div", { className: "block-editor-url-input__button", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(
+ import_components181.Button,
+ {
+ size: "compact",
+ icon: link_default,
+ label: url ? (0, import_i18n175.__)("Edit link") : (0, import_i18n175.__)("Insert link"),
+ onClick: toggleExpanded,
+ className: "components-toolbar__control",
+ isPressed: !!url
}
- scrollResizeRafId = defaultView.requestAnimationFrame(() => {
- computeCaretRectangle();
- scrollResizeRafId = null;
- });
- }
- function onKeyDown(event) {
- if (onKeyDownRafId) {
- defaultView.cancelAnimationFrame(onKeyDownRafId);
+ ),
+ expanded && /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(
+ "form",
+ {
+ className: "block-editor-url-input__button-modal",
+ onSubmit: submitLink,
+ children: /* @__PURE__ */ (0, import_jsx_runtime413.jsxs)("div", { className: "block-editor-url-input__button-modal-line", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(
+ import_components181.Button,
+ {
+ __next40pxDefaultSize: true,
+ className: "block-editor-url-input__back",
+ icon: arrow_left_default,
+ label: (0, import_i18n175.__)("Close"),
+ onClick: toggleExpanded
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(
+ URLInput,
+ {
+ value: url || "",
+ onChange,
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(import_components181.__experimentalInputControlSuffixWrapper, { variant: "control", children: /* @__PURE__ */ (0, import_jsx_runtime413.jsx)(
+ import_components181.Button,
+ {
+ size: "small",
+ icon: keyboard_return_default,
+ label: (0, import_i18n175.__)("Submit"),
+ type: "submit"
+ }
+ ) })
+ }
+ )
+ ] })
}
- onKeyDownRafId = defaultView.requestAnimationFrame(() => {
- maintainCaretPosition(event);
- onKeyDownRafId = null;
+ )
+ ] });
+ }
+ var button_default = URLInputButton;
+
+ // packages/block-editor/build-module/components/url-popover/image-url-input-ui.mjs
+ var import_i18n176 = __toESM(require_i18n(), 1);
+ var import_element249 = __toESM(require_element(), 1);
+ var import_dom71 = __toESM(require_dom(), 1);
+ var import_components182 = __toESM(require_components(), 1);
+ var import_url10 = __toESM(require_url(), 1);
+ var import_jsx_runtime414 = __toESM(require_jsx_runtime(), 1);
+ var LINK_DESTINATION_NONE = "none";
+ var LINK_DESTINATION_CUSTOM = "custom";
+ var LINK_DESTINATION_MEDIA = "media";
+ var LINK_DESTINATION_ATTACHMENT = "attachment";
+ var NEW_TAB_REL = ["noopener"];
+ var ImageURLInputUI = ({
+ linkDestination,
+ onChangeUrl,
+ url,
+ mediaType = "image",
+ mediaUrl,
+ mediaLink,
+ linkTarget,
+ linkClass,
+ rel,
+ showLightboxSetting,
+ lightboxEnabled,
+ onSetLightbox,
+ resetLightbox
+ }) => {
+ const [isOpen, setIsOpen] = (0, import_element249.useState)(false);
+ const [popoverAnchor, setPopoverAnchor] = (0, import_element249.useState)(null);
+ const openLinkUI = () => {
+ setIsOpen(true);
+ };
+ const [isEditingLink, setIsEditingLink] = (0, import_element249.useState)(false);
+ const [urlInput, setUrlInput] = (0, import_element249.useState)(null);
+ const autocompleteRef = (0, import_element249.useRef)(null);
+ const wrapperRef = (0, import_element249.useRef)();
+ (0, import_element249.useEffect)(() => {
+ if (!wrapperRef.current) {
+ return;
+ }
+ const nextFocusTarget = import_dom71.focus.focusable.find(wrapperRef.current)[0] || wrapperRef.current;
+ nextFocusTarget.focus();
+ }, [isEditingLink, url, lightboxEnabled]);
+ const startEditLink = () => {
+ if (linkDestination === LINK_DESTINATION_MEDIA || linkDestination === LINK_DESTINATION_ATTACHMENT) {
+ setUrlInput("");
+ }
+ setIsEditingLink(true);
+ };
+ const stopEditLink = () => {
+ setIsEditingLink(false);
+ };
+ const closeLinkUI = () => {
+ setUrlInput(null);
+ stopEditLink();
+ setIsOpen(false);
+ };
+ const getUpdatedLinkTargetSettings = (value) => {
+ const newLinkTarget = value ? "_blank" : void 0;
+ let updatedRel;
+ if (newLinkTarget) {
+ const rels = (rel ?? "").split(" ");
+ NEW_TAB_REL.forEach((relVal) => {
+ if (!rels.includes(relVal)) {
+ rels.push(relVal);
+ }
});
+ updatedRel = rels.join(" ");
+ } else {
+ const rels = (rel ?? "").split(" ").filter(
+ (relVal) => NEW_TAB_REL.includes(relVal) === false
+ );
+ updatedRel = rels.length ? rels.join(" ") : void 0;
}
- function maintainCaretPosition({ keyCode }) {
- if (!isSelectionEligibleForScroll()) {
- return;
- }
- const currentCaretRect = (0, import_dom72.computeCaretRect)(defaultView);
- if (!currentCaretRect) {
- return;
- }
- if (!caretRect) {
- caretRect = currentCaretRect;
+ return {
+ linkTarget: newLinkTarget,
+ rel: updatedRel
+ };
+ };
+ const onFocusOutside = () => {
+ return (event) => {
+ const autocompleteElement = autocompleteRef.current;
+ if (autocompleteElement && autocompleteElement.contains(event.target)) {
return;
}
- if (arrowKeyCodes.has(keyCode)) {
- caretRect = currentCaretRect;
- return;
+ setIsOpen(false);
+ setUrlInput(null);
+ stopEditLink();
+ };
+ };
+ const onSubmitLinkChange = () => {
+ return (event) => {
+ if (urlInput) {
+ const selectedDestination = getLinkDestinations().find(
+ (destination) => destination.url === urlInput
+ )?.linkDestination || LINK_DESTINATION_CUSTOM;
+ onChangeUrl({
+ href: (0, import_url10.prependHTTPS)(urlInput),
+ linkDestination: selectedDestination,
+ lightbox: { enabled: false }
+ });
}
- const diff = currentCaretRect.top - caretRect.top;
- if (diff === 0) {
- return;
+ stopEditLink();
+ setUrlInput(null);
+ event.preventDefault();
+ };
+ };
+ const onLinkRemove = () => {
+ onChangeUrl({
+ linkDestination: LINK_DESTINATION_NONE,
+ href: ""
+ });
+ };
+ const getLinkDestinations = () => {
+ const linkDestinations = [
+ {
+ linkDestination: LINK_DESTINATION_MEDIA,
+ title: (0, import_i18n176.__)("Link to image file"),
+ url: mediaType === "image" ? mediaUrl : void 0,
+ icon: image_default
}
- const scrollContainer = (0, import_dom72.getScrollContainer)(node);
- if (!scrollContainer) {
- return;
- }
- const windowScroll = scrollContainer === ownerDocument2.body || scrollContainer === ownerDocument2.documentElement;
- const scrollY = windowScroll ? defaultView.scrollY : scrollContainer.scrollTop;
- const scrollContainerY = windowScroll ? 0 : scrollContainer.getBoundingClientRect().top;
- const relativeScrollPosition = windowScroll ? caretRect.top / defaultView.innerHeight : (caretRect.top - scrollContainerY) / (defaultView.innerHeight - scrollContainerY);
- if (scrollY === 0 && relativeScrollPosition < initialTriggerPercentage && isLastEditableNode()) {
- caretRect = currentCaretRect;
- return;
- }
- const scrollContainerHeight = windowScroll ? defaultView.innerHeight : scrollContainer.clientHeight;
- if (
- // The caret is under the lower fold.
- caretRect.top + caretRect.height > scrollContainerY + scrollContainerHeight || // The caret is above the upper fold.
- caretRect.top < scrollContainerY
- ) {
- caretRect = currentCaretRect;
- return;
- }
- if (windowScroll) {
- defaultView.scrollBy(0, diff);
- } else {
- scrollContainer.scrollTop += diff;
- }
- }
- function addSelectionChangeListener() {
- ownerDocument2.addEventListener(
- "selectionchange",
- computeCaretRectOnSelectionChange
- );
- }
- function computeCaretRectOnSelectionChange() {
- ownerDocument2.removeEventListener(
- "selectionchange",
- computeCaretRectOnSelectionChange
- );
- computeCaretRectangle();
+ ];
+ if (mediaType === "image" && mediaLink) {
+ linkDestinations.push({
+ linkDestination: LINK_DESTINATION_ATTACHMENT,
+ title: (0, import_i18n176.__)("Link to attachment page"),
+ url: mediaType === "image" ? mediaLink : void 0,
+ icon: page_default
+ });
}
- function computeCaretRectangle() {
- if (isSelectionEligibleForScroll()) {
- caretRect = (0, import_dom72.computeCaretRect)(defaultView);
- }
+ return linkDestinations;
+ };
+ const onSetHref = (value) => {
+ const linkDestinations = getLinkDestinations();
+ let linkDestinationInput;
+ if (!value) {
+ linkDestinationInput = LINK_DESTINATION_NONE;
+ } else {
+ linkDestinationInput = (linkDestinations.find((destination) => {
+ return destination.url === value;
+ }) || { linkDestination: LINK_DESTINATION_CUSTOM }).linkDestination;
}
- function getActiveEditableElement() {
- const { activeElement: activeElement2 } = ownerDocument2;
- if (!activeElement2) {
- return null;
+ onChangeUrl({
+ linkDestination: linkDestinationInput,
+ href: value
+ });
+ };
+ const onSetNewTab = (value) => {
+ const updatedLinkTarget = getUpdatedLinkTargetSettings(value);
+ onChangeUrl(updatedLinkTarget);
+ };
+ const onSetLinkRel = (value) => {
+ onChangeUrl({ rel: value });
+ };
+ const onSetLinkClass = (value) => {
+ onChangeUrl({ linkClass: value });
+ };
+ const advancedOptions = /* @__PURE__ */ (0, import_jsx_runtime414.jsxs)(import_components182.__experimentalVStack, { spacing: "3", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ import_components182.ToggleControl,
+ {
+ label: (0, import_i18n176.__)("Open in new tab"),
+ onChange: onSetNewTab,
+ checked: linkTarget === "_blank"
}
- if (!activeElement2.isContentEditable || !activeElement2.contains(node)) {
- return activeElement2;
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ import_components182.TextControl,
+ {
+ label: (0, import_i18n176.__)("Link relation"),
+ value: rel ?? "",
+ onChange: onSetLinkRel,
+ help: (0, import_element249.createInterpolateElement)(
+ (0, import_i18n176.__)(
+ "The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."
+ ),
+ {
+ a: /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(import_components182.ExternalLink, { href: "https://developer.mozilla.org/docs/Web/HTML/Attributes/rel" })
+ }
+ )
}
- const { anchorNode } = defaultView.getSelection();
- if (!anchorNode) {
- return null;
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ import_components182.TextControl,
+ {
+ label: (0, import_i18n176.__)("Link CSS class"),
+ value: linkClass || "",
+ onChange: onSetLinkClass
}
- const element = anchorNode.nodeType === anchorNode.ELEMENT_NODE ? anchorNode : anchorNode.parentElement;
- return element?.closest('[contenteditable="true"]') ?? null;
- }
- function isSelectionEligibleForScroll() {
- const activeEditableElement = getActiveEditableElement();
- return !!activeEditableElement && node.contains(activeEditableElement) && activeEditableElement.isContentEditable;
- }
- function isLastEditableNode() {
- const editableNodes = node.querySelectorAll(
- '[contenteditable="true"]'
+ )
+ ] });
+ const linkEditorValue = urlInput !== null ? urlInput : url;
+ const hideLightboxPanel = !lightboxEnabled || lightboxEnabled && !showLightboxSetting;
+ const showLinkEditor = !linkEditorValue && hideLightboxPanel;
+ const urlLabel = (getLinkDestinations().find(
+ (destination) => destination.linkDestination === linkDestination
+ ) || {}).title;
+ const PopoverChildren = () => {
+ if (lightboxEnabled && showLightboxSetting && !url && !isEditingLink) {
+ return /* @__PURE__ */ (0, import_jsx_runtime414.jsxs)("div", { className: "block-editor-url-popover__expand-on-click", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(icon_default, { icon: fullscreen_default }),
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsxs)("div", { className: "text", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsx)("p", { children: (0, import_i18n176.__)("Enlarge on click") }),
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsx)("p", { className: "description", children: (0, import_i18n176.__)("Scales the image with a lightbox effect") })
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ import_components182.Button,
+ {
+ icon: link_off_default,
+ label: (0, import_i18n176.__)("Disable enlarge on click"),
+ onClick: () => {
+ onSetLightbox?.(false);
+ },
+ size: "compact"
+ }
+ )
+ ] });
+ } else if (!url || isEditingLink) {
+ return /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ url_popover_default.LinkEditor,
+ {
+ className: "block-editor-url-popover__link-container-content",
+ value: linkEditorValue,
+ onChangeInputValue: setUrlInput,
+ onSubmit: onSubmitLinkChange(),
+ autocompleteRef
+ }
);
- const lastEditableNode = editableNodes[editableNodes.length - 1];
- return lastEditableNode === getActiveEditableElement();
+ } else if (url && !isEditingLink) {
+ return /* @__PURE__ */ (0, import_jsx_runtime414.jsxs)(import_jsx_runtime414.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ url_popover_default.LinkViewer,
+ {
+ className: "block-editor-url-popover__link-container-content",
+ url,
+ onEditLinkClick: startEditLink,
+ urlLabel
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ import_components182.Button,
+ {
+ icon: link_off_default,
+ label: (0, import_i18n176.__)("Remove link"),
+ onClick: () => {
+ onLinkRemove();
+ resetLightbox?.();
+ },
+ size: "compact"
+ }
+ )
+ ] });
}
- defaultView.addEventListener("scroll", onScrollResize, true);
- defaultView.addEventListener("resize", onScrollResize, true);
- node.addEventListener("keydown", onKeyDown);
- node.addEventListener("keyup", maintainCaretPosition);
- node.addEventListener("mousedown", addSelectionChangeListener);
- node.addEventListener("touchstart", addSelectionChangeListener);
- return () => {
- defaultView.removeEventListener("scroll", onScrollResize, true);
- defaultView.removeEventListener("resize", onScrollResize, true);
- node.removeEventListener("keydown", onKeyDown);
- node.removeEventListener("keyup", maintainCaretPosition);
- node.removeEventListener("mousedown", addSelectionChangeListener);
- node.removeEventListener(
- "touchstart",
- addSelectionChangeListener
- );
- ownerDocument2.removeEventListener(
- "selectionchange",
- computeCaretRectOnSelectionChange
- );
- defaultView.cancelAnimationFrame(scrollResizeRafId);
- defaultView.cancelAnimationFrame(onKeyDownRafId);
- };
- }, []);
- }
- function Typewriter({ children }) {
- return /* @__PURE__ */ (0, import_jsx_runtime457.jsx)("div", { ref: useTypewriter(), className: "block-editor__typewriter", children });
- }
- var TypewriterOrIEBypass = isIE ? (props) => props.children : Typewriter;
- var typewriter_default = TypewriterOrIEBypass;
-
- // packages/block-editor/build-module/components/recursion-provider/index.mjs
- var import_element275 = __toESM(require_element(), 1);
- var import_deprecated32 = __toESM(require_deprecated(), 1);
- var import_jsx_runtime458 = __toESM(require_jsx_runtime(), 1);
- var RenderedRefsContext = (0, import_element275.createContext)({});
- RenderedRefsContext.displayName = "RenderedRefsContext";
- function addToBlockType(renderedBlocks, blockName, uniqueId2) {
- const result = {
- ...renderedBlocks,
- [blockName]: renderedBlocks[blockName] ? new Set(renderedBlocks[blockName]) : /* @__PURE__ */ new Set()
};
- result[blockName].add(uniqueId2);
- return result;
- }
- function RecursionProvider({ children, uniqueId: uniqueId2, blockName = "" }) {
- const previouslyRenderedBlocks = (0, import_element275.useContext)(RenderedRefsContext);
- const { name } = useBlockEditContext();
- blockName = blockName || name;
- const newRenderedBlocks = (0, import_element275.useMemo)(
- () => addToBlockType(previouslyRenderedBlocks, blockName, uniqueId2),
- [previouslyRenderedBlocks, blockName, uniqueId2]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(RenderedRefsContext.Provider, { value: newRenderedBlocks, children });
- }
- function useHasRecursion(uniqueId2, blockName = "") {
- const previouslyRenderedBlocks = (0, import_element275.useContext)(RenderedRefsContext);
- const { name } = useBlockEditContext();
- blockName = blockName || name;
- return Boolean(previouslyRenderedBlocks[blockName]?.has(uniqueId2));
- }
- var DeprecatedExperimentalRecursionProvider = (props) => {
- (0, import_deprecated32.default)("wp.blockEditor.__experimentalRecursionProvider", {
- since: "6.5",
- alternative: "wp.blockEditor.RecursionProvider"
- });
- return /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(RecursionProvider, { ...props });
- };
- var DeprecatedExperimentalUseHasRecursion = (...args) => {
- (0, import_deprecated32.default)("wp.blockEditor.__experimentalUseHasRecursion", {
- since: "6.5",
- alternative: "wp.blockEditor.useHasRecursion"
- });
- return useHasRecursion(...args);
+ return /* @__PURE__ */ (0, import_jsx_runtime414.jsxs)(import_jsx_runtime414.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ import_components182.ToolbarButton,
+ {
+ icon: link_default,
+ className: "components-toolbar__control",
+ label: (0, import_i18n176.__)("Link"),
+ "aria-expanded": isOpen,
+ onClick: openLinkUI,
+ ref: setPopoverAnchor,
+ isActive: !!url || lightboxEnabled && showLightboxSetting
+ }
+ ),
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ url_popover_default,
+ {
+ ref: wrapperRef,
+ anchor: popoverAnchor,
+ onFocusOutside: onFocusOutside(),
+ onClose: closeLinkUI,
+ renderSettings: hideLightboxPanel ? () => advancedOptions : null,
+ additionalControls: showLinkEditor && /* @__PURE__ */ (0, import_jsx_runtime414.jsxs)(import_components182.NavigableMenu, { children: [
+ getLinkDestinations().map((link) => /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ import_components182.MenuItem,
+ {
+ icon: link.icon,
+ iconPosition: "left",
+ onClick: () => {
+ setUrlInput(null);
+ onSetHref(link.url);
+ stopEditLink();
+ },
+ children: link.title
+ },
+ link.linkDestination
+ )),
+ showLightboxSetting && /* @__PURE__ */ (0, import_jsx_runtime414.jsx)(
+ import_components182.MenuItem,
+ {
+ className: "block-editor-url-popover__expand-on-click",
+ icon: fullscreen_default,
+ info: (0, import_i18n176.__)(
+ "Scale the image with a lightbox effect."
+ ),
+ iconPosition: "left",
+ onClick: () => {
+ setUrlInput(null);
+ onChangeUrl({
+ linkDestination: LINK_DESTINATION_NONE,
+ href: ""
+ });
+ onSetLightbox?.(true);
+ stopEditLink();
+ },
+ children: (0, import_i18n176.__)("Enlarge on click")
+ },
+ "expand-on-click"
+ )
+ ] }),
+ offset: 13,
+ children: PopoverChildren()
+ }
+ )
+ ] });
};
- // packages/block-editor/build-module/components/publish-date-time-picker/index.mjs
- var import_components225 = __toESM(require_components(), 1);
- var import_i18n215 = __toESM(require_i18n(), 1);
- var import_element276 = __toESM(require_element(), 1);
- var import_date2 = __toESM(require_date(), 1);
+ // packages/block-editor/build-module/components/spacing-sizes-control/index.mjs
+ var import_components185 = __toESM(require_components(), 1);
+ var import_element252 = __toESM(require_element(), 1);
+ var import_i18n180 = __toESM(require_i18n(), 1);
- // packages/block-editor/build-module/components/inspector-popover-header/index.mjs
- var import_components224 = __toESM(require_components(), 1);
- var import_i18n214 = __toESM(require_i18n(), 1);
- var import_jsx_runtime459 = __toESM(require_jsx_runtime(), 1);
- function InspectorPopoverHeader({
- title,
- help,
- actions = [],
- onClose
- }) {
- return /* @__PURE__ */ (0, import_jsx_runtime459.jsxs)(import_components224.__experimentalVStack, { className: "block-editor-inspector-popover-header", spacing: 4, children: [
- /* @__PURE__ */ (0, import_jsx_runtime459.jsxs)(import_components224.__experimentalHStack, { alignment: "center", children: [
- /* @__PURE__ */ (0, import_jsx_runtime459.jsx)(
- import_components224.__experimentalHeading,
- {
- className: "block-editor-inspector-popover-header__heading",
- level: 2,
- size: 13,
- children: title
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime459.jsx)(import_components224.__experimentalSpacer, {}),
- actions.map(({ label, icon, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime459.jsx)(
- import_components224.Button,
- {
- size: "small",
- className: "block-editor-inspector-popover-header__action",
- label,
- icon,
- variant: !icon && "tertiary",
- onClick,
- children: !icon && label
- },
- label
- )),
- onClose && /* @__PURE__ */ (0, import_jsx_runtime459.jsx)(
- import_components224.Button,
- {
- size: "small",
- className: "block-editor-inspector-popover-header__action",
- label: (0, import_i18n214.__)("Close"),
- icon: close_small_default,
- onClick: onClose
- }
- )
- ] }),
- help && /* @__PURE__ */ (0, import_jsx_runtime459.jsx)(import_components224.__experimentalText, { children: help })
- ] });
+ // packages/block-editor/build-module/components/spacing-sizes-control/hooks/use-spacing-sizes.mjs
+ var import_element250 = __toESM(require_element(), 1);
+ var import_i18n177 = __toESM(require_i18n(), 1);
+ var EMPTY_ARRAY12 = [];
+ var compare = new Intl.Collator("und", { numeric: true }).compare;
+ function useSpacingSizes() {
+ const [
+ customSpacingSizes,
+ themeSpacingSizes,
+ defaultSpacingSizes,
+ defaultSpacingSizesEnabled
+ ] = useSettings(
+ "spacing.spacingSizes.custom",
+ "spacing.spacingSizes.theme",
+ "spacing.spacingSizes.default",
+ "spacing.defaultSpacingSizes"
+ );
+ const customSizes = customSpacingSizes ?? EMPTY_ARRAY12;
+ const themeSizes = themeSpacingSizes ?? EMPTY_ARRAY12;
+ const defaultSizes = defaultSpacingSizes && defaultSpacingSizesEnabled !== false ? defaultSpacingSizes : EMPTY_ARRAY12;
+ return (0, import_element250.useMemo)(() => {
+ const sizes = [
+ { name: (0, import_i18n177.__)("None"), slug: "0", size: 0 },
+ ...customSizes,
+ ...themeSizes,
+ ...defaultSizes
+ ];
+ if (sizes.every(({ slug }) => /^[0-9]/.test(slug))) {
+ sizes.sort((a2, b2) => compare(a2.slug, b2.slug));
+ }
+ return sizes.length > RANGE_CONTROL_MAX_SIZE ? [
+ {
+ name: (0, import_i18n177.__)("Default"),
+ slug: "default",
+ size: void 0
+ },
+ ...sizes
+ ] : sizes;
+ }, [customSizes, themeSizes, defaultSizes]);
}
- // packages/block-editor/build-module/components/publish-date-time-picker/index.mjs
- var import_jsx_runtime460 = __toESM(require_jsx_runtime(), 1);
- function PublishDateTimePicker({
- onClose,
+ // packages/block-editor/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.mjs
+ var import_element251 = __toESM(require_element(), 1);
+ var import_data157 = __toESM(require_data(), 1);
+ var import_i18n178 = __toESM(require_i18n(), 1);
+ var import_components183 = __toESM(require_components(), 1);
+ var import_jsx_runtime415 = __toESM(require_jsx_runtime(), 1);
+ var CUSTOM_VALUE_SETTINGS2 = {
+ px: { max: 300, steps: 1 },
+ "%": { max: 100, steps: 1 },
+ vw: { max: 100, steps: 1 },
+ vh: { max: 100, steps: 1 },
+ em: { max: 10, steps: 0.1 },
+ rm: { max: 10, steps: 0.1 },
+ svw: { max: 100, steps: 1 },
+ lvw: { max: 100, steps: 1 },
+ dvw: { max: 100, steps: 1 },
+ svh: { max: 100, steps: 1 },
+ lvh: { max: 100, steps: 1 },
+ dvh: { max: 100, steps: 1 },
+ vi: { max: 100, steps: 1 },
+ svi: { max: 100, steps: 1 },
+ lvi: { max: 100, steps: 1 },
+ dvi: { max: 100, steps: 1 },
+ vb: { max: 100, steps: 1 },
+ svb: { max: 100, steps: 1 },
+ lvb: { max: 100, steps: 1 },
+ dvb: { max: 100, steps: 1 },
+ vmin: { max: 100, steps: 1 },
+ svmin: { max: 100, steps: 1 },
+ lvmin: { max: 100, steps: 1 },
+ dvmin: { max: 100, steps: 1 },
+ vmax: { max: 100, steps: 1 },
+ svmax: { max: 100, steps: 1 },
+ lvmax: { max: 100, steps: 1 },
+ dvmax: { max: 100, steps: 1 }
+ };
+ function SpacingInputControl({
+ icon,
+ isMixed = false,
+ minimumCustomValue,
onChange,
- showPopoverHeaderActions,
- isCompact,
- currentDate,
- title,
- ...additionalProps
- }, ref) {
- const datePickerProps = {
- startOfWeek: (0, import_date2.getSettings)().l10n.startOfWeek,
- onChange,
- currentDate: isCompact ? void 0 : currentDate,
- currentTime: isCompact ? currentDate : void 0,
- ...additionalProps
- };
- const DatePickerComponent = isCompact ? import_components225.TimePicker : import_components225.DateTimePicker;
- return /* @__PURE__ */ (0, import_jsx_runtime460.jsxs)("div", { ref, className: "block-editor-publish-date-time-picker", children: [
- /* @__PURE__ */ (0, import_jsx_runtime460.jsx)(
- InspectorPopoverHeader,
- {
- title: title || (0, import_i18n215.__)("Publish"),
- actions: showPopoverHeaderActions ? [
- {
- label: (0, import_i18n215.__)("Now"),
- onClick: () => onChange?.(null)
- }
- ] : void 0,
- onClose
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime460.jsx)(DatePickerComponent, { ...datePickerProps })
- ] });
- }
- var PrivatePublishDateTimePicker = (0, import_element276.forwardRef)(PublishDateTimePicker);
- function PublicPublishDateTimePicker(props, ref) {
- return /* @__PURE__ */ (0, import_jsx_runtime460.jsx)(
- PrivatePublishDateTimePicker,
+ onMouseOut,
+ onMouseOver,
+ showSideInLabel = true,
+ side,
+ spacingSizes,
+ type,
+ value,
+ ...restProps
+ }) {
+ const disableCustomSpacingSizes = (0, import_data157.useSelect)((select3) => {
+ const editorSettings = select3(store).getSettings();
+ return editorSettings?.disableCustomSpacingSizes;
+ });
+ const [availableUnits] = useSettings("spacing.units");
+ const units2 = (0, import_components183.__experimentalUseCustomUnits)({
+ availableUnits: availableUnits || ["px", "em", "rem"]
+ });
+ const presets = (0, import_element251.useMemo)(() => {
+ return spacingSizes?.map((preset) => ({
+ name: preset.name,
+ slug: preset.slug,
+ size: preset.size
+ })) || [];
+ }, [spacingSizes]);
+ const sideLabel = (ALL_SIDES.includes(side) || ["vertical", "horizontal"].includes(side)) && showSideInLabel ? LABELS[side] : "";
+ const typeLabel = showSideInLabel ? type?.toLowerCase() : type;
+ const ariaLabel = (0, import_i18n178.sprintf)(
+ // translators: 1: The side of the block being modified (top, bottom, left etc.). 2. Type of spacing being modified (padding, margin, etc).
+ (0, import_i18n178._x)("%1$s %2$s", "spacing"),
+ sideLabel,
+ typeLabel
+ ).trim();
+ const selectedUnit = units2[0]?.value || "px";
+ return /* @__PURE__ */ (0, import_jsx_runtime415.jsx)(
+ PresetInputControl,
{
- ...props,
- showPopoverHeaderActions: true,
- isCompact: false,
- ref
+ allowNegativeOnDrag: minimumCustomValue < 0,
+ ariaLabel,
+ className: "spacing-sizes-control",
+ customValueSettings: CUSTOM_VALUE_SETTINGS2,
+ disableCustomValues: disableCustomSpacingSizes,
+ icon,
+ isMixed,
+ minimumCustomValue,
+ onChange,
+ onMouseOut,
+ onMouseOver,
+ presets,
+ presetType: "spacing",
+ selectedUnit,
+ units: units2,
+ value,
+ ...restProps
}
);
}
- var publish_date_time_picker_default = (0, import_element276.forwardRef)(PublicPublishDateTimePicker);
-
- // packages/block-editor/build-module/components/tool-selector/index.mjs
- var import_deprecated33 = __toESM(require_deprecated(), 1);
- var import_element277 = __toESM(require_element(), 1);
- function ToolSelector() {
- (0, import_deprecated33.default)("wp.blockEditor.ToolSelector", {
- since: "6.9",
- hint: "The ToolSelector component no longer renders anything."
- });
- return null;
- }
- var tool_selector_default = (0, import_element277.forwardRef)(ToolSelector);
- // packages/block-editor/build-module/hooks/utils.mjs
- var import_jsx_runtime461 = __toESM(require_jsx_runtime(), 1);
- var cleanEmptyObject = (object) => {
- if (object === null || typeof object !== "object" || Array.isArray(object)) {
- return object;
- }
- const cleanedNestedObjects = Object.entries(object).map(([key, value]) => [key, cleanEmptyObject(value)]).filter(([, value]) => value !== void 0);
- return !cleanedNestedObjects.length ? void 0 : Object.fromEntries(cleanedNestedObjects);
- };
- function transformStyles2(activeSupports, migrationPaths, result, source, index2, results) {
- if (Object.values(activeSupports ?? {}).every(
- (isActive) => !isActive
- )) {
- return result;
- }
- if (results.length === 1 && result.innerBlocks.length === source.length) {
- return result;
- }
- let referenceBlockAttributes = source[0]?.attributes;
- if (results.length > 1 && source.length > 1) {
- if (source[index2]) {
- referenceBlockAttributes = source[index2]?.attributes;
- } else {
- return result;
- }
- }
- let returnBlock = result;
- Object.entries(activeSupports).forEach(([support, isActive]) => {
- if (isActive) {
- migrationPaths[support].forEach((path) => {
- const styleValue = getValueFromObjectPath2(
- referenceBlockAttributes,
- path
+ // packages/block-editor/build-module/components/spacing-sizes-control/input-controls/axial.mjs
+ var import_jsx_runtime416 = __toESM(require_jsx_runtime(), 1);
+ var groupedSides = ["vertical", "horizontal"];
+ function AxialInputControls({
+ minimumCustomValue,
+ onChange,
+ onMouseOut,
+ onMouseOver,
+ sides: sides2,
+ spacingSizes,
+ type,
+ values
+ }) {
+ const createHandleOnChange = (side) => (next) => {
+ if (!onChange) {
+ return;
+ }
+ const nextValues = {
+ ...Object.keys(values).reduce((acc, key) => {
+ acc[key] = getPresetValueFromCustomValue2(
+ values[key],
+ spacingSizes
);
- if (styleValue) {
- returnBlock = {
- ...returnBlock,
- attributes: setImmutably2(
- returnBlock.attributes,
- path,
- styleValue
- )
- };
- }
- });
+ return acc;
+ }, {})
+ };
+ if (side === "vertical") {
+ nextValues.top = next;
+ nextValues.bottom = next;
}
- });
- return returnBlock;
+ if (side === "horizontal") {
+ nextValues.left = next;
+ nextValues.right = next;
+ }
+ onChange(nextValues);
+ };
+ const filteredSides = sides2?.length ? groupedSides.filter((side) => hasAxisSupport(sides2, side)) : groupedSides;
+ return /* @__PURE__ */ (0, import_jsx_runtime416.jsx)(import_jsx_runtime416.Fragment, { children: filteredSides.map((side) => {
+ const axisValue = side === "vertical" ? values.top : values.left;
+ return /* @__PURE__ */ (0, import_jsx_runtime416.jsx)(
+ SpacingInputControl,
+ {
+ icon: ICONS[side],
+ label: LABELS[side],
+ minimumCustomValue,
+ onChange: createHandleOnChange(side),
+ onMouseOut,
+ onMouseOver,
+ side,
+ spacingSizes,
+ type,
+ value: axisValue,
+ withInputField: false
+ },
+ `spacing-sizes-control-${side}`
+ );
+ }) });
}
- function shouldSkipSerialization(blockNameOrType, featureSet, feature) {
- const support = (0, import_blocks104.getBlockSupport)(blockNameOrType, featureSet);
- const skipSerialization = support?.__experimentalSkipSerialization;
- if (Array.isArray(skipSerialization)) {
- return skipSerialization.includes(feature);
- }
- return skipSerialization;
+
+ // packages/block-editor/build-module/components/spacing-sizes-control/input-controls/separated.mjs
+ var import_jsx_runtime417 = __toESM(require_jsx_runtime(), 1);
+ function SeparatedInputControls({
+ minimumCustomValue,
+ onChange,
+ onMouseOut,
+ onMouseOver,
+ sides: sides2,
+ spacingSizes,
+ type,
+ values
+ }) {
+ const filteredSides = sides2?.length ? ALL_SIDES.filter((side) => sides2.includes(side)) : ALL_SIDES;
+ const createHandleOnChange = (side) => (next) => {
+ const nextValues = {
+ ...Object.keys(values).reduce((acc, key) => {
+ acc[key] = getPresetValueFromCustomValue2(
+ values[key],
+ spacingSizes
+ );
+ return acc;
+ }, {})
+ };
+ nextValues[side] = next;
+ onChange(nextValues);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime417.jsx)(import_jsx_runtime417.Fragment, { children: filteredSides.map((side) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime417.jsx)(
+ SpacingInputControl,
+ {
+ icon: ICONS[side],
+ label: LABELS[side],
+ minimumCustomValue,
+ onChange: createHandleOnChange(side),
+ onMouseOut,
+ onMouseOver,
+ side,
+ spacingSizes,
+ type,
+ value: values[side],
+ withInputField: false
+ },
+ `spacing-sizes-control-${side}`
+ );
+ }) });
}
- var pendingStyleOverrides = /* @__PURE__ */ new WeakMap();
- function useStyleOverride({ id, css }) {
- return usePrivateStyleOverride({ id, css });
+
+ // packages/block-editor/build-module/components/spacing-sizes-control/input-controls/single.mjs
+ var import_jsx_runtime418 = __toESM(require_jsx_runtime(), 1);
+ function SingleInputControl({
+ minimumCustomValue,
+ onChange,
+ onMouseOut,
+ onMouseOver,
+ showSideInLabel,
+ side,
+ spacingSizes,
+ type,
+ values
+ }) {
+ const createHandleOnChange = (currentSide) => (next) => {
+ const nextValues = {
+ ...Object.keys(values).reduce((acc, key) => {
+ acc[key] = getPresetValueFromCustomValue2(
+ values[key],
+ spacingSizes
+ );
+ return acc;
+ }, {})
+ };
+ nextValues[currentSide] = next;
+ onChange(nextValues);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime418.jsx)(
+ SpacingInputControl,
+ {
+ label: LABELS[side],
+ minimumCustomValue,
+ onChange: createHandleOnChange(side),
+ onMouseOut,
+ onMouseOver,
+ showSideInLabel,
+ side,
+ spacingSizes,
+ type,
+ value: values[side],
+ withInputField: false
+ }
+ );
}
- function usePrivateStyleOverride({
- id,
- css,
- assets,
- __unstableType,
- variation,
- clientId
- } = {}) {
- const { setStyleOverride: setStyleOverride2, deleteStyleOverride: deleteStyleOverride2 } = unlock(
- (0, import_data181.useDispatch)(store)
+
+ // packages/block-editor/build-module/components/spacing-sizes-control/linked-button.mjs
+ var import_components184 = __toESM(require_components(), 1);
+ var import_i18n179 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime419 = __toESM(require_jsx_runtime(), 1);
+ function LinkedButton2({ isLinked, ...props }) {
+ const label = isLinked ? (0, import_i18n179.__)("Unlink sides") : (0, import_i18n179.__)("Link sides");
+ return /* @__PURE__ */ (0, import_jsx_runtime419.jsx)(
+ import_components184.Button,
+ {
+ ...props,
+ size: "small",
+ icon: isLinked ? link_default : link_off_default,
+ iconSize: 24,
+ label
+ }
);
- const registry = (0, import_data181.useRegistry)();
- const fallbackId = (0, import_element278.useId)();
- (0, import_element278.useEffect)(() => {
- if (!css && !assets) {
- return;
+ }
+
+ // packages/block-editor/build-module/components/spacing-sizes-control/index.mjs
+ var import_jsx_runtime420 = __toESM(require_jsx_runtime(), 1);
+ function SpacingSizesControl({
+ inputProps,
+ label: labelProp,
+ minimumCustomValue = 0,
+ onChange,
+ onMouseOut,
+ onMouseOver,
+ showSideInLabel = true,
+ sides: sides2 = ALL_SIDES,
+ useSelect: useSelect183,
+ values
+ }) {
+ const spacingSizes = useSpacingSizes();
+ const inputValues = values || DEFAULT_VALUES;
+ const hasOneSide = sides2?.length === 1;
+ const hasOnlyAxialSides = sides2?.includes("horizontal") && sides2?.includes("vertical") && sides2?.length === 2;
+ const [view, setView] = (0, import_element252.useState)(getInitialView(inputValues, sides2));
+ const toggleLinked = () => {
+ setView(view === VIEWS.axial ? VIEWS.custom : VIEWS.axial);
+ };
+ const handleOnChange = (nextValue) => {
+ const newValues = { ...values, ...nextValue };
+ onChange(newValues);
+ };
+ const inputControlProps = {
+ ...inputProps,
+ minimumCustomValue,
+ onChange: handleOnChange,
+ onMouseOut,
+ onMouseOver,
+ sides: sides2,
+ spacingSizes,
+ type: labelProp,
+ useSelect: useSelect183,
+ values: inputValues
+ };
+ const renderControls = () => {
+ if (view === VIEWS.axial) {
+ return /* @__PURE__ */ (0, import_jsx_runtime420.jsx)(AxialInputControls, { ...inputControlProps });
}
- const _id = id || fallbackId;
- const override = {
- id,
- css,
- assets,
- __unstableType,
- variation,
- clientId
- };
- if (!pendingStyleOverrides.get(registry)) {
- pendingStyleOverrides.set(registry, []);
+ if (view === VIEWS.custom) {
+ return /* @__PURE__ */ (0, import_jsx_runtime420.jsx)(SeparatedInputControls, { ...inputControlProps });
}
- pendingStyleOverrides.get(registry).push([_id, override]);
- window.queueMicrotask(() => {
- if (pendingStyleOverrides.get(registry)?.length) {
- registry.batch(() => {
- pendingStyleOverrides.get(registry).forEach((args) => {
- setStyleOverride2(...args);
- });
- pendingStyleOverrides.set(registry, []);
- });
+ return /* @__PURE__ */ (0, import_jsx_runtime420.jsx)(
+ SingleInputControl,
+ {
+ side: view,
+ ...inputControlProps,
+ showSideInLabel
}
+ );
+ };
+ const sideLabel = ALL_SIDES.includes(view) && showSideInLabel ? LABELS[view] : "";
+ const label = (0, import_i18n180.sprintf)(
+ // translators: 1: Type of spacing being modified (Padding, Margin, etc.). 2: The side of the block being modified (Top, Bottom, Left, etc.).
+ (0, import_i18n180._x)("%1$s %2$s", "spacing control label"),
+ labelProp,
+ sideLabel
+ ).trim();
+ return /* @__PURE__ */ (0, import_jsx_runtime420.jsxs)("fieldset", { className: "spacing-sizes-control", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime420.jsxs)(import_components185.__experimentalHStack, { className: "spacing-sizes-control__header", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime420.jsx)(
+ import_components185.BaseControl.VisualLabel,
+ {
+ as: "legend",
+ className: "spacing-sizes-control__label",
+ children: label
+ }
+ ),
+ !hasOneSide && !hasOnlyAxialSides && /* @__PURE__ */ (0, import_jsx_runtime420.jsx)(
+ LinkedButton2,
+ {
+ label: labelProp,
+ onClick: toggleLinked,
+ isLinked: view === VIEWS.axial
+ }
+ )
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime420.jsx)(import_components185.__experimentalVStack, { spacing: 0.5, children: renderControls() })
+ ] });
+ }
+
+ // packages/block-editor/build-module/components/preview-options/index.mjs
+ var import_deprecated29 = __toESM(require_deprecated(), 1);
+ function PreviewOptions() {
+ (0, import_deprecated29.default)("wp.blockEditor.PreviewOptions", {
+ version: "6.5"
+ });
+ return null;
+ }
+
+ // packages/block-editor/build-module/components/use-resize-canvas/index.mjs
+ var import_deprecated30 = __toESM(require_deprecated(), 1);
+ function useResizeCanvas() {
+ (0, import_deprecated30.default)("wp.blockEditor.useResizeCanvas", {
+ since: "7.1",
+ hint: "Device preview is now handled by the editor canvas. This hook no longer does anything."
+ });
+ }
+
+ // packages/block-editor/build-module/components/block-inspector/index.mjs
+ var import_i18n216 = __toESM(require_i18n(), 1);
+ var import_blocks107 = __toESM(require_blocks(), 1);
+ var import_components219 = __toESM(require_components(), 1);
+ var import_data181 = __toESM(require_data(), 1);
+ var import_element280 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/block-inspector/edit-contents.mjs
+ var import_components186 = __toESM(require_components(), 1);
+ var import_i18n181 = __toESM(require_i18n(), 1);
+ var import_data158 = __toESM(require_data(), 1);
+ var import_blocks91 = __toESM(require_blocks(), 1);
+ var import_jsx_runtime421 = __toESM(require_jsx_runtime(), 1);
+ function IsolatedEditButton({
+ attributes = {},
+ onNavigateToEntityRecord,
+ isTemplatePartBlock
+ }) {
+ const { ref, theme: theme2, slug } = attributes;
+ const entityId = isTemplatePartBlock ? theme2 && slug && `${theme2}//${slug}` : ref;
+ const handleClick = () => {
+ if (!entityId) {
+ return;
+ }
+ onNavigateToEntityRecord({
+ postId: entityId,
+ postType: isTemplatePartBlock ? "wp_template_part" : "wp_block"
});
- return () => {
- const isPending = pendingStyleOverrides.get(registry)?.find(([currentId]) => currentId === _id);
- if (isPending) {
- pendingStyleOverrides.set(
- registry,
- pendingStyleOverrides.get(registry).filter(([currentId]) => currentId !== _id)
- );
- } else {
- deleteStyleOverride2(_id);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(
+ Stack,
+ {
+ direction: "column",
+ className: "block-editor-block-inspector-edit-contents",
+ children: /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(
+ import_components186.Button,
+ {
+ className: "block-editor-block-inspector-edit-contents__button",
+ __next40pxDefaultSize: true,
+ variant: "secondary",
+ onClick: handleClick,
+ accessibleWhenDisabled: true,
+ disabled: !entityId,
+ children: (0, import_i18n181.__)("Edit original")
+ }
+ )
+ }
+ );
+ }
+ function InlineEditButton({
+ clientId,
+ editedContentOnlySection: editedContentOnlySection2,
+ editContentOnlySection: editContentOnlySection2,
+ stopEditingContentOnlySection: stopEditingContentOnlySection2
+ }) {
+ const { selectBlock: selectBlock2 } = (0, import_data158.useDispatch)(store);
+ const handleClick = () => {
+ if (!editedContentOnlySection2) {
+ editContentOnlySection2(clientId);
+ selectBlock2(clientId);
+ } else {
+ stopEditingContentOnlySection2();
+ selectBlock2(clientId);
+ }
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(
+ Stack,
+ {
+ direction: "column",
+ className: "block-editor-block-inspector-edit-contents",
+ children: /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(
+ import_components186.Button,
+ {
+ className: "block-editor-block-inspector-edit-contents__button",
+ __next40pxDefaultSize: true,
+ variant: "secondary",
+ onClick: handleClick,
+ children: editedContentOnlySection2 ? (
+ /* translators: Button label to leave pattern editing mode. */
+ (0, import_i18n181.__)("Exit pattern")
+ ) : (
+ /* translators: Button label to enter pattern editing mode. */
+ (0, import_i18n181.__)("Edit pattern")
+ )
+ }
+ )
+ }
+ );
+ }
+ function EditContents({ clientId }) {
+ const {
+ isWithinSection,
+ isWithinEditedSection,
+ editedContentOnlySection: editedContentOnlySection2,
+ editContentOnlySection: editContentOnlySection2,
+ stopEditingContentOnlySection: stopEditingContentOnlySection2
+ } = useContentOnlySectionEdit(clientId);
+ const { block, onNavigateToEntityRecord, canEdit } = (0, import_data158.useSelect)(
+ (select3) => {
+ const { getBlock: getBlock2, getSettings: getSettings8, canEditBlock: canEditBlock2 } = select3(store);
+ return {
+ block: getBlock2(clientId),
+ onNavigateToEntityRecord: getSettings8().onNavigateToEntityRecord,
+ canEdit: canEditBlock2(clientId)
+ };
+ },
+ [clientId]
+ );
+ if (!canEdit || !isWithinSection && !isWithinEditedSection) {
+ return null;
+ }
+ const isSyncedPattern = (0, import_blocks91.isReusableBlock)(block);
+ const isTemplatePartBlock = (0, import_blocks91.isTemplatePart)(block);
+ const shouldUseIsolatedEditor = (isSyncedPattern || isTemplatePartBlock) && onNavigateToEntityRecord;
+ if (shouldUseIsolatedEditor) {
+ return /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(
+ IsolatedEditButton,
+ {
+ attributes: block?.attributes,
+ onNavigateToEntityRecord,
+ isTemplatePartBlock
}
+ );
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime421.jsx)(
+ InlineEditButton,
+ {
+ clientId,
+ editedContentOnlySection: editedContentOnlySection2,
+ editContentOnlySection: editContentOnlySection2,
+ stopEditingContentOnlySection: stopEditingContentOnlySection2
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/skip-to-selected-block/index.mjs
+ var import_data159 = __toESM(require_data(), 1);
+ var import_i18n182 = __toESM(require_i18n(), 1);
+ var import_components187 = __toESM(require_components(), 1);
+ var import_element253 = __toESM(require_element(), 1);
+ var import_jsx_runtime422 = __toESM(require_jsx_runtime(), 1);
+ function SkipToSelectedBlock() {
+ const selectedBlockClientId = (0, import_data159.useSelect)(
+ (select3) => select3(store).getBlockSelectionStart(),
+ []
+ );
+ const ref = (0, import_element253.useRef)();
+ useBlockElementRef(selectedBlockClientId, ref);
+ const onClick = () => {
+ ref.current?.focus();
+ };
+ return selectedBlockClientId ? /* @__PURE__ */ (0, import_jsx_runtime422.jsx)(
+ import_components187.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "secondary",
+ className: "block-editor-skip-to-selected-block",
+ onClick,
+ children: (0, import_i18n182.__)("Skip to the selected block")
+ }
+ ) : null;
+ }
+
+ // packages/block-editor/build-module/components/multi-selection-inspector/index.mjs
+ var import_i18n183 = __toESM(require_i18n(), 1);
+ var import_data160 = __toESM(require_data(), 1);
+ var import_jsx_runtime423 = __toESM(require_jsx_runtime(), 1);
+ function MultiSelectionInspector() {
+ const { selectedBlockCount, totalBlockCount } = (0, import_data160.useSelect)((select3) => {
+ const {
+ getSelectedBlockCount: getSelectedBlockCount2,
+ getMultiSelectedBlockClientIds: getMultiSelectedBlockClientIds2,
+ getClientIdsOfDescendants: getClientIdsOfDescendants2
+ } = select3(store);
+ const count = getSelectedBlockCount2();
+ return {
+ selectedBlockCount: count,
+ totalBlockCount: count + getClientIdsOfDescendants2(getMultiSelectedBlockClientIds2()).length
};
- }, [
- id,
- css,
- clientId,
- assets,
- __unstableType,
- fallbackId,
- setStyleOverride2,
- deleteStyleOverride2,
- registry,
- variation
- ]);
+ }, []);
+ return /* @__PURE__ */ (0, import_jsx_runtime423.jsxs)(
+ Stack,
+ {
+ direction: "row",
+ align: "center",
+ justify: "flex-start",
+ gap: "sm",
+ className: "block-editor-multi-selection-inspector__card",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime423.jsx)(block_icon_default, { icon: copy_default, showColors: true }),
+ /* @__PURE__ */ (0, import_jsx_runtime423.jsxs)(Stack, { direction: "column", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime423.jsx)("div", { className: "block-editor-multi-selection-inspector__card-title", children: (0, import_i18n183.sprintf)(
+ /* translators: %d: number of blocks */
+ (0, import_i18n183._n)("%d Block", "%d Blocks", selectedBlockCount),
+ selectedBlockCount
+ ) }),
+ totalBlockCount > selectedBlockCount && /* @__PURE__ */ (0, import_jsx_runtime423.jsx)("div", { className: "block-editor-multi-selection-inspector__card-description", children: (0, import_i18n183.sprintf)(
+ /* translators: %d: number of blocks including nested blocks */
+ (0, import_i18n183._n)(
+ "%d including nested block",
+ "%d including nested blocks",
+ totalBlockCount
+ ),
+ totalBlockCount
+ ) })
+ ] })
+ ]
+ }
+ );
}
- function useBlockSettings(name, parentLayout) {
- const [
- backgroundImage,
- backgroundSize,
- gradient,
- customFontFamilies,
- defaultFontFamilies,
- themeFontFamilies,
- defaultFontSizesEnabled,
- customFontSizes,
- defaultFontSizes,
- themeFontSizes,
- customFontSize,
- fontStyle,
- fontWeight,
- lineHeight,
- textAlign,
- textColumns,
- textDecoration,
- textIndent,
- writingMode,
- textTransform,
- letterSpacing,
- padding,
- margin,
- blockGap,
- defaultSpacingSizesEnabled,
- customSpacingSize,
- userSpacingSizes,
- defaultSpacingSizes,
- themeSpacingSizes,
- units2,
- aspectRatio,
- height,
- minHeight,
- minWidth,
- width,
- dimensionSizes,
- layout,
- borderColor,
- borderRadius,
- borderStyle,
- borderWidth,
- borderRadiusSizes,
- customColorsEnabled,
- customColors,
- customDuotone,
- themeColors,
- defaultColors,
- defaultPalette,
- defaultDuotone,
- userDuotonePalette,
- themeDuotonePalette,
- defaultDuotonePalette,
- userGradientPalette,
- themeGradientPalette,
- defaultGradientPalette,
- defaultGradients,
- areCustomGradientsEnabled,
- isBackgroundEnabled,
- isLinkEnabled,
- isTextEnabled,
- isHeadingEnabled,
- isButtonEnabled,
- shadow
- ] = useSettings(
- "background.backgroundImage",
- "background.backgroundSize",
- "background.gradient",
- "typography.fontFamilies.custom",
- "typography.fontFamilies.default",
- "typography.fontFamilies.theme",
- "typography.defaultFontSizes",
- "typography.fontSizes.custom",
- "typography.fontSizes.default",
- "typography.fontSizes.theme",
- "typography.customFontSize",
- "typography.fontStyle",
- "typography.fontWeight",
- "typography.lineHeight",
- "typography.textAlign",
- "typography.textColumns",
- "typography.textDecoration",
- "typography.textIndent",
- "typography.writingMode",
- "typography.textTransform",
- "typography.letterSpacing",
- "spacing.padding",
- "spacing.margin",
- "spacing.blockGap",
- "spacing.defaultSpacingSizes",
- "spacing.customSpacingSize",
- "spacing.spacingSizes.custom",
- "spacing.spacingSizes.default",
- "spacing.spacingSizes.theme",
- "spacing.units",
- "dimensions.aspectRatio",
- "dimensions.height",
- "dimensions.minHeight",
- "dimensions.minWidth",
- "dimensions.width",
- "dimensions.dimensionSizes",
- "layout",
- "border.color",
- "border.radius",
- "border.style",
- "border.width",
- "border.radiusSizes",
- "color.custom",
- "color.palette.custom",
- "color.customDuotone",
- "color.palette.theme",
- "color.palette.default",
- "color.defaultPalette",
- "color.defaultDuotone",
- "color.duotone.custom",
- "color.duotone.theme",
- "color.duotone.default",
- "color.gradients.custom",
- "color.gradients.theme",
- "color.gradients.default",
- "color.defaultGradients",
- "color.customGradient",
- "color.background",
- "color.link",
- "color.text",
- "color.heading",
- "color.button",
- "shadow"
+
+ // packages/block-editor/build-module/components/block-inspector/inspector-pre-tabs-slot-fill.mjs
+ var import_components188 = __toESM(require_components(), 1);
+ var BlockInspectorPreTabsKey = /* @__PURE__ */ Symbol("BlockInspectorPreTabs");
+ var {
+ Fill: BlockInspectorPreTabsFill,
+ Slot: BlockInspectorPreTabsSlot
+ } = (0, import_components188.createSlotFill)(BlockInspectorPreTabsKey);
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/index.mjs
+ var import_components216 = __toESM(require_components(), 1);
+ var import_element278 = __toESM(require_element(), 1);
+ var import_preferences5 = __toESM(require_preferences(), 1);
+ var import_data178 = __toESM(require_data(), 1);
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/utils.mjs
+ var import_i18n184 = __toESM(require_i18n(), 1);
+ var TAB_SETTINGS = {
+ name: "settings",
+ title: (0, import_i18n184.__)("Settings"),
+ value: "settings",
+ icon: cog_default
+ };
+ var TAB_STYLES = {
+ name: "styles",
+ title: (0, import_i18n184.__)("Styles"),
+ value: "styles",
+ icon: styles_default
+ };
+ var TAB_CONTENT = {
+ name: "content",
+ title: (0, import_i18n184.__)("Content"),
+ value: "content",
+ icon: page_default
+ };
+ var TAB_LIST_VIEW = {
+ name: "list",
+ title: (0, import_i18n184.__)("List View"),
+ value: "list-view",
+ icon: list_view_default
+ };
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/settings-tab.mjs
+ var import_components190 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/advanced-controls-panel.mjs
+ var import_components189 = __toESM(require_components(), 1);
+ var import_i18n185 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime424 = __toESM(require_jsx_runtime(), 1);
+ var AdvancedControls = ({ initialOpen = false }) => {
+ const fills = (0, import_components189.__experimentalUseSlotFills)(InspectorAdvancedControls.slotName);
+ const privateFills = (0, import_components189.__experimentalUseSlotFills)(
+ PrivateInspectorControlsAllowedBlocks.name
+ );
+ const hasFills = Boolean(fills && fills.length);
+ const hasPrivateFills = Boolean(privateFills && privateFills.length);
+ if (!hasFills && !hasPrivateFills) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime424.jsxs)(
+ import_components189.PanelBody,
+ {
+ className: "block-editor-block-inspector__advanced",
+ title: (0, import_i18n185.__)("Advanced"),
+ initialOpen,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime424.jsx)(inspector_controls_default.Slot, { group: "advanced" }),
+ /* @__PURE__ */ (0, import_jsx_runtime424.jsx)(PrivateInspectorControlsAllowedBlocks.Slot, {})
+ ]
+ }
);
- const rawSettings = (0, import_element278.useMemo)(() => {
+ };
+ var advanced_controls_panel_default = AdvancedControls;
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/settings-tab.mjs
+ var import_jsx_runtime425 = __toESM(require_jsx_runtime(), 1);
+ var SettingsTab = ({ showAdvancedControls = false }) => {
+ const defaultFills = (0, import_components190.__experimentalUseSlotFills)(groups_default.default.name);
+ const bindingsFills = (0, import_components190.__experimentalUseSlotFills)(groups_default.bindings.name);
+ const hasOtherFills = !!defaultFills?.length || !!bindingsFills?.length;
+ return /* @__PURE__ */ (0, import_jsx_runtime425.jsxs)(import_jsx_runtime425.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(inspector_controls_default.Slot, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(inspector_controls_default.Slot, { group: "bindings" }),
+ showAdvancedControls && /* @__PURE__ */ (0, import_jsx_runtime425.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime425.jsx)(advanced_controls_panel_default, { initialOpen: !hasOtherFills }) })
+ ] });
+ };
+ var settings_tab_default = SettingsTab;
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/styles-tab.mjs
+ var import_i18n213 = __toESM(require_i18n(), 1);
+ var import_data176 = __toESM(require_data(), 1);
+ var import_element277 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/position-controls-panel.mjs
+ var import_components191 = __toESM(require_components(), 1);
+ var import_data161 = __toESM(require_data(), 1);
+ var import_i18n186 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime426 = __toESM(require_jsx_runtime(), 1);
+ var PositionControlsPanel = () => {
+ const { selectedClientIds, selectedBlocks, hasPositionAttribute } = (0, import_data161.useSelect)((select3) => {
+ const { getBlocksByClientId: getBlocksByClientId2, getSelectedBlockClientIds: getSelectedBlockClientIds2 } = select3(store);
+ const selectedBlockClientIds = getSelectedBlockClientIds2();
+ const _selectedBlocks = getBlocksByClientId2(
+ selectedBlockClientIds
+ );
return {
- background: {
- backgroundImage,
- backgroundSize,
- gradient
- },
- color: {
- palette: {
- custom: customColors,
- theme: themeColors,
- default: defaultColors
- },
- gradients: {
- custom: userGradientPalette,
- theme: themeGradientPalette,
- default: defaultGradientPalette
- },
- duotone: {
- custom: userDuotonePalette,
- theme: themeDuotonePalette,
- default: defaultDuotonePalette
- },
- defaultGradients,
- defaultPalette,
- defaultDuotone,
- custom: customColorsEnabled,
- customGradient: areCustomGradientsEnabled,
- customDuotone,
- background: isBackgroundEnabled,
- link: isLinkEnabled,
- heading: isHeadingEnabled,
- button: isButtonEnabled,
- text: isTextEnabled
- },
- typography: {
- fontFamilies: {
- custom: customFontFamilies,
- default: defaultFontFamilies,
- theme: themeFontFamilies
- },
- fontSizes: {
- custom: customFontSizes,
- default: defaultFontSizes,
- theme: themeFontSizes
- },
- customFontSize,
- defaultFontSizes: defaultFontSizesEnabled,
- fontStyle,
- fontWeight,
- lineHeight,
- textAlign,
- textColumns,
- textDecoration,
- textIndent,
- textTransform,
- letterSpacing,
- writingMode
- },
- spacing: {
- spacingSizes: {
- custom: userSpacingSizes,
- default: defaultSpacingSizes,
- theme: themeSpacingSizes
- },
- customSpacingSize,
- defaultSpacingSizes: defaultSpacingSizesEnabled,
- padding,
- margin,
- blockGap,
- units: units2
- },
- border: {
- color: borderColor,
- radius: borderRadius,
- style: borderStyle,
- width: borderWidth,
- radiusSizes: borderRadiusSizes
- },
- dimensions: {
- aspectRatio,
- height,
- minHeight,
- minWidth,
- width,
- dimensionSizes
- },
- layout,
- parentLayout,
- shadow
+ selectedClientIds: selectedBlockClientIds,
+ selectedBlocks: _selectedBlocks,
+ hasPositionAttribute: _selectedBlocks?.some(
+ ({ attributes }) => !!attributes?.style?.position?.type
+ )
};
- }, [
- backgroundImage,
- backgroundSize,
- gradient,
- customFontFamilies,
- defaultFontFamilies,
- themeFontFamilies,
- defaultFontSizesEnabled,
- customFontSizes,
- defaultFontSizes,
- themeFontSizes,
- customFontSize,
- fontStyle,
- fontWeight,
- lineHeight,
- textAlign,
- textColumns,
- textDecoration,
- textIndent,
- textTransform,
- letterSpacing,
- writingMode,
- padding,
- margin,
- blockGap,
- defaultSpacingSizesEnabled,
- customSpacingSize,
- userSpacingSizes,
- defaultSpacingSizes,
- themeSpacingSizes,
- units2,
- aspectRatio,
- height,
- minHeight,
- minWidth,
- width,
- dimensionSizes,
- layout,
- parentLayout,
- borderColor,
- borderRadius,
- borderStyle,
- borderWidth,
- borderRadiusSizes,
- customColorsEnabled,
- customColors,
- customDuotone,
- themeColors,
- defaultColors,
- defaultPalette,
- defaultDuotone,
- userDuotonePalette,
- themeDuotonePalette,
- defaultDuotonePalette,
- userGradientPalette,
- themeGradientPalette,
- defaultGradientPalette,
- defaultGradients,
- areCustomGradientsEnabled,
- isBackgroundEnabled,
- isLinkEnabled,
- isTextEnabled,
- isHeadingEnabled,
- isButtonEnabled,
- shadow
- ]);
- return useSettingsForBlockElement(rawSettings, name);
- }
- function createBlockEditFilter(features) {
- features = features.map((settings2) => {
- return { ...settings2, Edit: (0, import_element278.memo)(settings2.edit) };
- });
- const withBlockEditHooks = (0, import_compose98.createHigherOrderComponent)(
- (OriginalBlockEdit) => function WithBlockEditHooks(props) {
- const context = useBlockEditContext();
- return [
- ...features.map((feature, i2) => {
- const {
- Edit: Edit5,
- hasSupport,
- attributeKeys = [],
- shareWithChildBlocks,
- supportsPatternEditing
- } = feature;
- const shouldDisplayControls = supportsPatternEditing && context[mayDisplayPatternEditingControlsKey] || context[mayDisplayControlsKey] || context[mayDisplayParentControlsKey] && shareWithChildBlocks;
- if (!shouldDisplayControls || !hasSupport(props.name)) {
- return null;
- }
- const neededProps = {};
- for (const key of attributeKeys) {
- if (props.attributes[key]) {
- neededProps[key] = props.attributes[key];
+ }, []);
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data161.useDispatch)(store);
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ function resetPosition() {
+ if (!selectedClientIds?.length || !selectedBlocks?.length) {
+ return;
+ }
+ const attributesByClientId = Object.fromEntries(
+ selectedBlocks?.map(({ clientId, attributes }) => [
+ clientId,
+ {
+ style: cleanEmptyObject({
+ ...attributes?.style,
+ position: {
+ ...attributes?.style?.position,
+ type: void 0,
+ top: void 0,
+ right: void 0,
+ bottom: void 0,
+ left: void 0
}
- }
- return /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
- Edit5,
- {
- name: props.name,
- isSelected: props.isSelected,
- clientId: props.clientId,
- setAttributes: props.setAttributes,
- __unstableParentLayout: props.__unstableParentLayout,
- ...neededProps
- },
- i2
- );
- }),
- /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(OriginalBlockEdit, { ...props }, "edit")
- ];
+ })
+ }
+ ])
+ );
+ updateBlockAttributes2(selectedClientIds, attributesByClientId, true);
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
+ import_components191.__experimentalToolsPanel,
+ {
+ className: "block-editor-block-inspector__position",
+ label: (0, import_i18n186.__)("Position"),
+ resetAll: resetPosition,
+ dropdownMenuProps,
+ children: /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(
+ import_components191.__experimentalToolsPanelItem,
+ {
+ isShownByDefault: hasPositionAttribute,
+ label: (0, import_i18n186.__)("Position"),
+ hasValue: () => hasPositionAttribute,
+ onDeselect: resetPosition,
+ children: /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(inspector_controls_default.Slot, { group: "position" })
+ }
+ )
+ }
+ );
+ };
+ var PositionControls = () => {
+ const fills = (0, import_components191.__experimentalUseSlotFills)(groups_default.position.name);
+ const hasFills = Boolean(fills && fills.length);
+ if (!hasFills) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime426.jsx)(PositionControlsPanel, {});
+ };
+ var position_controls_panel_default = PositionControls;
+
+ // packages/block-editor/build-module/hooks/border.mjs
+ var import_blocks95 = __toESM(require_blocks(), 1);
+ var import_components210 = __toESM(require_components(), 1);
+ var import_element269 = __toESM(require_element(), 1);
+ var import_hooks13 = __toESM(require_hooks(), 1);
+ var import_data168 = __toESM(require_data(), 1);
+ var import_i18n206 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/global-styles/index.mjs
+ var global_styles_exports = {};
+ __export(global_styles_exports, {
+ AdvancedPanel: () => AdvancedPanel,
+ BackgroundPanel: () => BackgroundImagePanel2,
+ BorderPanel: () => BorderPanel,
+ ColorPanel: () => ColorPanel,
+ DimensionsPanel: () => DimensionsPanel,
+ FiltersPanel: () => FiltersPanel,
+ ImageSettingsPanel: () => ImageSettingsPanel,
+ StateControl: () => StateControl,
+ StateControlBadges: () => StateControlBadges,
+ TypographyPanel: () => TypographyPanel,
+ useHasBackgroundPanel: () => useHasBackgroundPanel,
+ useHasBorderPanel: () => useHasBorderPanel,
+ useHasBorderPanelControls: () => useHasBorderPanelControls,
+ useHasColorPanel: () => useHasColorPanel,
+ useHasDimensionsPanel: () => useHasDimensionsPanel,
+ useHasFiltersPanel: () => useHasFiltersPanel,
+ useHasImageSettingsPanel: () => useHasImageSettingsPanel,
+ useHasTypographyPanel: () => useHasTypographyPanel,
+ useSettingsForBlockElement: () => useSettingsForBlockElement
+ });
+
+ // packages/block-editor/build-module/components/global-styles/hooks.mjs
+ var import_element254 = __toESM(require_element(), 1);
+ var import_data162 = __toESM(require_data(), 1);
+ var import_blocks92 = __toESM(require_blocks(), 1);
+ var import_i18n187 = __toESM(require_i18n(), 1);
+ function useSettingsForBlockElement(parentSettings, blockName, element) {
+ const { supportedStyles, supports } = (0, import_data162.useSelect)(
+ (select3) => {
+ return {
+ supportedStyles: unlock(
+ select3(import_blocks92.store)
+ ).getSupportedStyles(blockName, element),
+ supports: select3(import_blocks92.store).getBlockType(blockName)?.supports
+ };
},
- "withBlockEditHooks"
+ [blockName, element]
);
- (0, import_hooks18.addFilter)("editor.BlockEdit", "core/editor/hooks", withBlockEditHooks);
- }
- function BlockProps({
- index: index2,
- useBlockProps: hook,
- setAllWrapperProps,
- ...props
- }) {
- const wrapperProps = hook(props);
- const setWrapperProps = (next) => setAllWrapperProps((prev) => {
- const nextAll = [...prev];
- nextAll[index2] = next;
- return nextAll;
- });
- (0, import_element278.useEffect)(() => {
- setWrapperProps(wrapperProps);
- return () => {
- setWrapperProps(void 0);
+ return (0, import_element254.useMemo)(() => {
+ const updatedSettings = { ...parentSettings };
+ if (!supportedStyles.includes("fontSize")) {
+ updatedSettings.typography = {
+ ...updatedSettings.typography,
+ fontSizes: {},
+ customFontSize: false,
+ defaultFontSizes: false
+ };
+ }
+ if (!supportedStyles.includes("fontFamily")) {
+ updatedSettings.typography = {
+ ...updatedSettings.typography,
+ fontFamilies: {}
+ };
+ }
+ updatedSettings.color = {
+ ...updatedSettings.color,
+ text: updatedSettings.color?.text && supportedStyles.includes("color"),
+ background: updatedSettings.color?.background && (supportedStyles.includes("background") || supportedStyles.includes("backgroundColor")),
+ button: updatedSettings.color?.button && supportedStyles.includes("buttonColor"),
+ heading: updatedSettings.color?.heading && supportedStyles.includes("headingColor"),
+ link: updatedSettings.color?.link && supportedStyles.includes("linkColor"),
+ caption: updatedSettings.color?.caption && supportedStyles.includes("captionColor")
};
- });
- return null;
- }
- var BlockPropsPure = (0, import_element278.memo)(BlockProps);
- function createBlockListBlockFilter(features) {
- const withBlockListBlockHooks = (0, import_compose98.createHigherOrderComponent)(
- (BlockListBlock2) => function WithBlockListBlockHooks(props) {
- const [allWrapperProps, setAllWrapperProps] = (0, import_element278.useState)(
- Array(features.length).fill(void 0)
- );
- return [
- ...features.map((feature, i2) => {
- const {
- hasSupport,
- attributeKeys = [],
- useBlockProps: useBlockProps16,
- isMatch
- } = feature;
- const neededProps = {};
- for (const key of attributeKeys) {
- if (props.attributes[key]) {
- neededProps[key] = props.attributes[key];
- }
- }
- if (
- // Skip rendering if none of the needed attributes are
- // set.
- !Object.keys(neededProps).length || !hasSupport(props.name) || isMatch && !isMatch(neededProps)
- ) {
- return null;
+ if (!supportedStyles.includes("background") && !supportedStyles.includes("backgroundGradient")) {
+ updatedSettings.color.gradients = [];
+ updatedSettings.color.customGradient = false;
+ }
+ if (!supportedStyles.includes("filter")) {
+ updatedSettings.color.defaultDuotone = false;
+ updatedSettings.color.customDuotone = false;
+ }
+ [
+ "lineHeight",
+ "fontStyle",
+ "fontWeight",
+ "letterSpacing",
+ "textAlign",
+ "textTransform",
+ "textDecoration",
+ "textIndent",
+ "writingMode"
+ ].forEach((key) => {
+ if (!supportedStyles.includes(key)) {
+ updatedSettings.typography = {
+ ...updatedSettings.typography,
+ [key]: false
+ };
+ }
+ });
+ if (supportedStyles.includes("textIndent")) {
+ updatedSettings.typography = {
+ ...updatedSettings.typography,
+ textIndent: updatedSettings.typography?.textIndent ?? "subsequent"
+ };
+ }
+ if (!supportedStyles.includes("columnCount")) {
+ updatedSettings.typography = {
+ ...updatedSettings.typography,
+ textColumns: false
+ };
+ }
+ ["contentSize", "wideSize"].forEach((key) => {
+ if (!supportedStyles.includes(key)) {
+ updatedSettings.layout = {
+ ...updatedSettings.layout,
+ [key]: false
+ };
+ }
+ });
+ ["padding", "margin", "blockGap"].forEach((key) => {
+ if (!supportedStyles.includes(key)) {
+ updatedSettings.spacing = {
+ ...updatedSettings.spacing,
+ [key]: false
+ };
+ }
+ const sides2 = Array.isArray(supports?.spacing?.[key]) ? supports?.spacing?.[key] : supports?.spacing?.[key]?.sides;
+ if (sides2?.length && updatedSettings.spacing?.[key]) {
+ updatedSettings.spacing = {
+ ...updatedSettings.spacing,
+ [key]: {
+ ...updatedSettings.spacing?.[key],
+ sides: sides2
}
- return /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
- BlockPropsPure,
- {
- index: i2,
- useBlockProps: useBlockProps16,
- setAllWrapperProps,
- name: props.name,
- clientId: props.clientId,
- ...neededProps
- },
- i2
- );
- }),
- /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
- BlockListBlock2,
- {
- ...props,
- wrapperProps: allWrapperProps.filter(Boolean).reduce((acc, wrapperProps) => {
- return {
- ...acc,
- ...wrapperProps,
- className: clsx_default(
- acc.className,
- wrapperProps.className
- ),
- style: {
- ...acc.style,
- ...wrapperProps.style
- }
- };
- }, props.wrapperProps || {})
- },
- "edit"
- )
- ];
- },
- "withBlockListBlockHooks"
- );
- (0, import_hooks18.addFilter)(
- "editor.BlockListBlock",
- "core/editor/hooks",
- withBlockListBlockHooks
- );
- }
- function createBlockSaveFilter(features) {
- function extraPropsFromHooks(props, name, attributes) {
- return features.reduce((accu, feature) => {
- const { hasSupport, attributeKeys = [], addSaveProps: addSaveProps11 } = feature;
- const neededAttributes = {};
- for (const key of attributeKeys) {
- if (attributes[key]) {
- neededAttributes[key] = attributes[key];
+ };
+ }
+ });
+ ["aspectRatio", "height", "minHeight", "minWidth", "width"].forEach(
+ (key) => {
+ if (!supportedStyles.includes(key)) {
+ updatedSettings.dimensions = {
+ ...updatedSettings.dimensions,
+ [key]: false
+ };
}
}
- if (
- // Skip rendering if none of the needed attributes are
- // set.
- !Object.keys(neededAttributes).length || !hasSupport(name)
- ) {
- return accu;
+ );
+ ["radius", "color", "style", "width"].forEach((key) => {
+ if (!supportedStyles.includes(
+ "border" + key.charAt(0).toUpperCase() + key.slice(1)
+ )) {
+ updatedSettings.border = {
+ ...updatedSettings.border,
+ [key]: false
+ };
}
- return addSaveProps11(accu, name, neededAttributes);
- }, props);
- }
- (0, import_hooks18.addFilter)(
- "blocks.getSaveContent.extraProps",
- "core/editor/hooks",
- extraPropsFromHooks,
- 0
- );
- (0, import_hooks18.addFilter)(
- "blocks.getSaveContent.extraProps",
- "core/editor/hooks",
- (props) => {
- if (props.hasOwnProperty("className") && !props.className) {
- delete props.className;
+ });
+ [
+ ["backgroundImage", "backgroundImage"],
+ ["backgroundSize", "backgroundSize"],
+ ["backgroundGradient", "gradient"]
+ ].forEach(([styleKey, settingKey]) => {
+ if (!supportedStyles.includes(styleKey)) {
+ updatedSettings.background = {
+ ...updatedSettings.background,
+ [settingKey]: false
+ };
}
- return props;
- }
- );
- }
-
- // packages/block-editor/build-module/hooks/compat.mjs
- var import_blocks105 = __toESM(require_blocks(), 1);
- var import_hooks20 = __toESM(require_hooks(), 1);
- function migrateLightBlockWrapper(settings2) {
- const { apiVersion = 1 } = settings2;
- if (apiVersion < 2 && (0, import_blocks105.hasBlockSupport)(settings2, "lightBlockWrapper", false)) {
- settings2.apiVersion = 2;
- }
- return settings2;
+ });
+ updatedSettings.shadow = supportedStyles.includes("shadow") ? updatedSettings.shadow : false;
+ return updatedSettings;
+ }, [parentSettings, supportedStyles, supports]);
}
- (0, import_hooks20.addFilter)(
- "blocks.registerBlockType",
- "core/compat/migrateLightBlockWrapper",
- migrateLightBlockWrapper
- );
-
- // packages/block-editor/build-module/hooks/cross-origin-isolation.mjs
- function addCrossOriginAttribute(el) {
- if (!el.hasAttribute("crossorigin")) {
- el.setAttribute("crossorigin", "anonymous");
- }
+ function useColorsPerOrigin(settings2) {
+ const customColors = settings2?.color?.palette?.custom;
+ const themeColors = settings2?.color?.palette?.theme;
+ const defaultColors = settings2?.color?.palette?.default;
+ const shouldDisplayDefaultColors = settings2?.color?.defaultPalette;
+ return (0, import_element254.useMemo)(() => {
+ const result = [];
+ if (themeColors && themeColors.length) {
+ result.push({
+ name: (0, import_i18n187._x)(
+ "Theme",
+ "Indicates this palette comes from the theme."
+ ),
+ colors: themeColors
+ });
+ }
+ if (shouldDisplayDefaultColors && defaultColors && defaultColors.length) {
+ result.push({
+ name: (0, import_i18n187._x)(
+ "Default",
+ "Indicates this palette comes from WordPress."
+ ),
+ colors: defaultColors
+ });
+ }
+ if (customColors && customColors.length) {
+ result.push({
+ name: (0, import_i18n187._x)(
+ "Custom",
+ "Indicates this palette is created by the user."
+ ),
+ colors: customColors
+ });
+ }
+ return result;
+ }, [
+ customColors,
+ themeColors,
+ defaultColors,
+ shouldDisplayDefaultColors
+ ]);
}
- if (window.crossOriginIsolated) {
- let startObservingBody = function() {
- if (document.body) {
- observer.observe(document.body, {
- childList: true,
- attributes: true,
- subtree: true
+ function useGradientsPerOrigin(settings2) {
+ const customGradients = settings2?.color?.gradients?.custom;
+ const themeGradients = settings2?.color?.gradients?.theme;
+ const defaultGradients = settings2?.color?.gradients?.default;
+ const shouldDisplayDefaultGradients = settings2?.color?.defaultGradients;
+ return (0, import_element254.useMemo)(() => {
+ const result = [];
+ if (themeGradients && themeGradients.length) {
+ result.push({
+ name: (0, import_i18n187._x)(
+ "Theme",
+ "Indicates this palette comes from the theme."
+ ),
+ gradients: themeGradients
});
- } else if (document.readyState === "loading") {
- document.addEventListener("DOMContentLoaded", () => {
- if (document.body) {
- observer.observe(document.body, {
- childList: true,
- attributes: true,
- subtree: true
- });
- }
+ }
+ if (shouldDisplayDefaultGradients && defaultGradients && defaultGradients.length) {
+ result.push({
+ name: (0, import_i18n187._x)(
+ "Default",
+ "Indicates this palette comes from WordPress."
+ ),
+ gradients: defaultGradients
});
}
- };
- startObservingBody2 = startObservingBody;
- const observer = new window.MutationObserver((mutations) => {
- mutations.forEach((mutation) => {
- [mutation.addedNodes, mutation.target].forEach((value) => {
- const nodes = value instanceof window.NodeList ? value : [value];
- nodes.forEach((node) => {
- const el = node;
- if (!el.querySelectorAll) {
- return;
- }
- el.querySelectorAll("source,script,video,link").forEach(
- (v2) => {
- addCrossOriginAttribute(v2);
- }
- );
- if (["SOURCE", "SCRIPT", "VIDEO", "LINK"].includes(
- el.nodeName
- )) {
- addCrossOriginAttribute(el);
- }
- });
+ if (customGradients && customGradients.length) {
+ result.push({
+ name: (0, import_i18n187._x)(
+ "Custom",
+ "Indicates this palette is created by the user."
+ ),
+ gradients: customGradients
});
- });
- });
- startObservingBody();
+ }
+ return result;
+ }, [
+ customGradients,
+ themeGradients,
+ defaultGradients,
+ shouldDisplayDefaultGradients
+ ]);
}
- var startObservingBody2;
-
- // packages/block-editor/build-module/hooks/align.mjs
- var import_hooks21 = __toESM(require_hooks(), 1);
- var import_blocks106 = __toESM(require_blocks(), 1);
- var import_jsx_runtime462 = __toESM(require_jsx_runtime(), 1);
- var ALL_ALIGNMENTS = ["left", "center", "right", "wide", "full"];
- var WIDE_ALIGNMENTS = ["wide", "full"];
- function getValidAlignments(blockAlign, hasWideBlockSupport = true, hasWideEnabled = true) {
- let validAlignments;
- if (Array.isArray(blockAlign)) {
- validAlignments = ALL_ALIGNMENTS.filter(
- (value) => blockAlign.includes(value)
+ function useColorGradientSettings(settings2) {
+ const colors2 = useColorsPerOrigin(settings2);
+ const gradients = useGradientsPerOrigin(settings2);
+ const areCustomSolidsEnabled = settings2?.color?.custom;
+ const areCustomGradientsEnabled = settings2?.color?.customGradient;
+ const allColors = (0, import_element254.useMemo)(
+ () => colors2.flatMap(({ colors: originColors }) => originColors),
+ [colors2]
+ );
+ const decodeValue = (rawValue) => getValueFromVariable({ settings: settings2 }, "", rawValue);
+ const encodeGradientValue = (gradientValue, slug) => {
+ if (slug) {
+ return "var:preset|gradient|" + slug;
+ }
+ const allGradients = gradients.flatMap(
+ ({ gradients: originGradients }) => originGradients
);
- } else if (blockAlign === true) {
- validAlignments = [...ALL_ALIGNMENTS];
- } else {
- validAlignments = [];
- }
- if (!hasWideEnabled || blockAlign === true && !hasWideBlockSupport) {
- return validAlignments.filter(
- (alignment) => !WIDE_ALIGNMENTS.includes(alignment)
+ const gradientObject = allGradients.find(
+ ({ gradient }) => gradient === gradientValue
);
- }
- return validAlignments;
+ return gradientObject ? "var:preset|gradient|" + gradientObject.slug : gradientValue;
+ };
+ return {
+ colors: colors2,
+ gradients,
+ allColors,
+ areCustomSolidsEnabled,
+ areCustomGradientsEnabled,
+ hasSolidColors: colors2.length > 0 || areCustomSolidsEnabled,
+ hasGradientColors: gradients.length > 0 || areCustomGradientsEnabled,
+ decodeValue,
+ encodeGradientValue
+ };
}
- function addAttribute(settings2) {
- if ("type" in (settings2.attributes?.align ?? {})) {
- return settings2;
- }
- if ((0, import_blocks106.hasBlockSupport)(settings2, "align")) {
- settings2.attributes = {
- ...settings2.attributes,
- align: {
- type: "string",
- // Allow for '' since it is used by the `updateAlignment` function
- // in toolbar controls for special cases with defined default values.
- enum: [...ALL_ALIGNMENTS, ""]
- }
- };
+
+ // packages/block-editor/build-module/components/global-styles/typography-panel.mjs
+ var import_components197 = __toESM(require_components(), 1);
+ var import_i18n193 = __toESM(require_i18n(), 1);
+ var import_element258 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/text-alignment-control/index.mjs
+ var import_i18n188 = __toESM(require_i18n(), 1);
+ var import_element255 = __toESM(require_element(), 1);
+ var import_components192 = __toESM(require_components(), 1);
+ var import_jsx_runtime427 = __toESM(require_jsx_runtime(), 1);
+ var TEXT_ALIGNMENT_OPTIONS = [
+ {
+ label: (0, import_i18n188.__)("Align text left"),
+ value: "left",
+ icon: align_left_default
+ },
+ {
+ label: (0, import_i18n188.__)("Align text center"),
+ value: "center",
+ icon: align_center_default
+ },
+ {
+ label: (0, import_i18n188.__)("Align text right"),
+ value: "right",
+ icon: align_right_default
+ },
+ {
+ label: (0, import_i18n188.__)("Justify text"),
+ value: "justify",
+ icon: align_justify_default
}
- return settings2;
- }
- function BlockEditAlignmentToolbarControlsPure({
- name: blockName,
- align,
- setAttributes
+ ];
+ var DEFAULT_OPTIONS = ["left", "center", "right"];
+ function TextAlignmentControl({
+ className: className2,
+ value,
+ onChange,
+ options = DEFAULT_OPTIONS
}) {
- const blockAllowedAlignments = getValidAlignments(
- (0, import_blocks106.getBlockSupport)(blockName, "align"),
- (0, import_blocks106.hasBlockSupport)(blockName, "alignWide", true)
+ const validOptions = (0, import_element255.useMemo)(
+ () => TEXT_ALIGNMENT_OPTIONS.filter(
+ (option) => options.includes(option.value)
+ ),
+ [options]
);
- const validAlignments = useAvailableAlignments(
- blockAllowedAlignments
- ).map(({ name }) => name);
- const blockEditingMode = useBlockEditingMode();
- if (!validAlignments.length || blockEditingMode !== "default") {
+ if (!validOptions.length) {
return null;
}
- const updateAlignment = (nextAlign) => {
- if (!nextAlign) {
- const blockType = (0, import_blocks106.getBlockType)(blockName);
- const blockDefaultAlign = blockType?.attributes?.align?.default;
- if (blockDefaultAlign) {
- nextAlign = "";
- }
- }
- setAttributes({ align: nextAlign });
- };
- return /* @__PURE__ */ (0, import_jsx_runtime462.jsx)(block_controls_default, { group: "block", __experimentalShareWithChildBlocks: true, children: /* @__PURE__ */ (0, import_jsx_runtime462.jsx)(
- BlockAlignmentControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime427.jsx)(
+ import_components192.__experimentalToggleGroupControl,
{
- value: align,
- onChange: updateAlignment,
- controls: validAlignments
+ isDeselectable: true,
+ label: (0, import_i18n188.__)("Text alignment"),
+ className: clsx_default(
+ "block-editor-text-alignment-control",
+ className2
+ ),
+ value,
+ onChange: (newValue) => {
+ onChange(newValue === value ? void 0 : newValue);
+ },
+ children: validOptions.map((option) => {
+ return /* @__PURE__ */ (0, import_jsx_runtime427.jsx)(
+ import_components192.__experimentalToggleGroupControlOptionIcon,
+ {
+ value: option.value,
+ icon: option.icon,
+ label: option.label
+ },
+ option.value
+ );
+ })
}
- ) });
- }
- var align_default = {
- shareWithChildBlocks: true,
- edit: BlockEditAlignmentToolbarControlsPure,
- useBlockProps: useBlockProps11,
- addSaveProps: addAssignedAlign,
- attributeKeys: ["align"],
- hasSupport(name) {
- return (0, import_blocks106.hasBlockSupport)(name, "align", false);
- }
- };
- function useBlockProps11({ name, align }) {
- const blockAllowedAlignments = getValidAlignments(
- (0, import_blocks106.getBlockSupport)(name, "align"),
- (0, import_blocks106.hasBlockSupport)(name, "alignWide", true)
);
- const validAlignments = useAvailableAlignments(blockAllowedAlignments);
- if (validAlignments.some((alignment) => alignment.name === align)) {
- return { "data-align": align };
- }
- return {};
- }
- function addAssignedAlign(props, blockType, attributes) {
- const { align } = attributes;
- const blockAlign = (0, import_blocks106.getBlockSupport)(blockType, "align");
- const hasWideBlockSupport = (0, import_blocks106.hasBlockSupport)(blockType, "alignWide", true);
- const isAlignValid = getValidAlignments(
- blockAlign,
- hasWideBlockSupport
- ).includes(align);
- if (isAlignValid) {
- props.className = clsx_default(`align${align}`, props.className);
- }
- return props;
- }
- (0, import_hooks21.addFilter)(
- "blocks.registerBlockType",
- "core/editor/align/addAttribute",
- addAttribute
- );
-
- // packages/block-editor/build-module/hooks/lock.mjs
- var import_hooks22 = __toESM(require_hooks(), 1);
- function addAttribute2(settings2) {
- if ("type" in (settings2.attributes?.lock ?? {})) {
- return settings2;
- }
- settings2.attributes = {
- ...settings2.attributes,
- lock: {
- type: "object"
- }
- };
- return settings2;
}
- (0, import_hooks22.addFilter)("blocks.registerBlockType", "core/lock/addAttribute", addAttribute2);
- // packages/block-editor/build-module/hooks/allowed-blocks.mjs
- var import_hooks23 = __toESM(require_hooks(), 1);
- var import_blocks109 = __toESM(require_blocks(), 1);
-
- // packages/block-editor/build-module/components/block-allowed-blocks/allowed-blocks-control.mjs
- var import_components232 = __toESM(require_components(), 1);
- var import_i18n218 = __toESM(require_i18n(), 1);
- var import_element282 = __toESM(require_element(), 1);
- var import_data184 = __toESM(require_data(), 1);
- var import_blocks108 = __toESM(require_blocks(), 1);
-
- // packages/block-editor/build-module/components/block-allowed-blocks/modal.mjs
- var import_components231 = __toESM(require_components(), 1);
- var import_element281 = __toESM(require_element(), 1);
- var import_i18n217 = __toESM(require_i18n(), 1);
- var import_data183 = __toESM(require_data(), 1);
-
- // packages/block-editor/build-module/components/block-manager/index.mjs
- var import_blocks107 = __toESM(require_blocks(), 1);
- var import_data182 = __toESM(require_data(), 1);
- var import_components230 = __toESM(require_components(), 1);
- var import_i18n216 = __toESM(require_i18n(), 1);
- var import_element280 = __toESM(require_element(), 1);
- var import_compose100 = __toESM(require_compose(), 1);
- var import_a11y22 = __toESM(require_a11y(), 1);
-
- // packages/block-editor/build-module/components/block-manager/category.mjs
- var import_element279 = __toESM(require_element(), 1);
- var import_compose99 = __toESM(require_compose(), 1);
- var import_components229 = __toESM(require_components(), 1);
-
- // packages/block-editor/build-module/components/block-manager/checklist.mjs
- var import_components228 = __toESM(require_components(), 1);
- var import_jsx_runtime463 = __toESM(require_jsx_runtime(), 1);
- function BlockTypesChecklist({ blockTypes, value, onItemChange }) {
- return /* @__PURE__ */ (0, import_jsx_runtime463.jsx)("ul", { className: "block-editor-block-manager__checklist", children: blockTypes.map((blockType) => /* @__PURE__ */ (0, import_jsx_runtime463.jsxs)(
- "li",
- {
- className: "block-editor-block-manager__checklist-item",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime463.jsx)(
- import_components228.CheckboxControl,
- {
- label: blockType.title,
- checked: value.includes(blockType.name),
- onChange: (...args) => onItemChange(blockType, ...args)
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime463.jsx)(block_icon_default, { icon: blockType.icon })
- ]
- },
- blockType.name
- )) });
- }
- var checklist_default = BlockTypesChecklist;
-
- // packages/block-editor/build-module/components/block-manager/category.mjs
- var import_jsx_runtime464 = __toESM(require_jsx_runtime(), 1);
- function BlockManagerCategory({
- title,
- blockTypes,
- selectedBlockTypes,
- onChange
+ // packages/block-editor/build-module/components/text-indent-control/index.mjs
+ var import_components193 = __toESM(require_components(), 1);
+ var import_i18n189 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime428 = __toESM(require_jsx_runtime(), 1);
+ function TextIndentControl({
+ value,
+ onChange,
+ __unstableInputWidth = "60px",
+ withSlider = false,
+ hasBottomMargin = false,
+ help,
+ className: className2,
+ placeholder,
+ ...otherProps
}) {
- const instanceId = (0, import_compose99.useInstanceId)(BlockManagerCategory);
- const toggleVisible = (0, import_element279.useCallback)(
- (blockType, nextIsChecked) => {
- if (nextIsChecked) {
- onChange([...selectedBlockTypes, blockType]);
- } else {
- onChange(
- selectedBlockTypes.filter(
- ({ name }) => name !== blockType.name
- )
- );
- }
- },
- [selectedBlockTypes, onChange]
+ const [availableUnits] = useSettings("spacing.units");
+ const units2 = (0, import_components193.__experimentalUseCustomUnits)({
+ availableUnits: availableUnits || [
+ "px",
+ "em",
+ "rem",
+ "ch",
+ "%",
+ "vw",
+ "vh"
+ ],
+ defaultValues: { px: 16, em: 2, rem: 2, ch: 2 }
+ });
+ const [valueQuantity, valueUnit] = (0, import_components193.__experimentalParseQuantityAndUnitFromRawValue)(
+ value,
+ units2
);
- const toggleAllVisible = (0, import_element279.useCallback)(
- (nextIsChecked) => {
- if (nextIsChecked) {
- onChange([
- ...selectedBlockTypes,
- ...blockTypes.filter(
- (blockType) => !selectedBlockTypes.find(
- ({ name }) => name === blockType.name
- )
- )
- ]);
- } else {
- onChange(
- selectedBlockTypes.filter(
- (selectedBlockType) => !blockTypes.find(
- ({ name }) => name === selectedBlockType.name
- )
- )
- );
+ const isValueUnitRelative = !!valueUnit && ["em", "rem", "%", "ch", "vw", "vh"].includes(valueUnit);
+ if (!withSlider) {
+ return /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
+ import_components193.__experimentalUnitControl,
+ {
+ ...otherProps,
+ label: (0, import_i18n189.__)("Line indent"),
+ value,
+ __unstableInputWidth,
+ units: units2,
+ onChange,
+ help,
+ className: className2,
+ placeholder
}
- },
- [blockTypes, selectedBlockTypes, onChange]
- );
- if (!blockTypes.length) {
- return null;
+ );
}
- const checkedBlockNames = blockTypes.map(({ name }) => name).filter(
- (type) => (selectedBlockTypes ?? []).some(
- (selectedBlockType) => selectedBlockType.name === type
- )
- );
- const titleId = "block-editor-block-manager__category-title-" + instanceId;
- const isAllChecked = checkedBlockNames.length === blockTypes.length;
- const isIndeterminate = !isAllChecked && checkedBlockNames.length > 0;
- return /* @__PURE__ */ (0, import_jsx_runtime464.jsxs)(
- "div",
- {
- role: "group",
- "aria-labelledby": titleId,
- className: "block-editor-block-manager__category",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime464.jsx)(
- import_components229.CheckboxControl,
- {
- checked: isAllChecked,
- onChange: toggleAllVisible,
- className: "block-editor-block-manager__category-title",
- indeterminate: isIndeterminate,
- label: /* @__PURE__ */ (0, import_jsx_runtime464.jsx)("span", { id: titleId, children: title })
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime464.jsx)(
- checklist_default,
- {
- blockTypes,
- value: checkedBlockNames,
- onItemChange: toggleVisible
- }
- )
- ]
- }
- );
+ return /* @__PURE__ */ (0, import_jsx_runtime428.jsxs)(import_components193.__experimentalView, { style: hasBottomMargin ? { marginBottom: 12 } : void 0, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(import_components193.BaseControl.VisualLabel, { children: (0, import_i18n189.__)("Line indent") }),
+ /* @__PURE__ */ (0, import_jsx_runtime428.jsxs)(import_components193.Flex, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(import_components193.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
+ import_components193.__experimentalUnitControl,
+ {
+ label: (0, import_i18n189.__)("Line indent"),
+ labelPosition: "top",
+ hideLabelFromVision: true,
+ value,
+ onChange,
+ units: units2,
+ __unstableInputWidth,
+ min: 0,
+ className: className2,
+ placeholder
+ }
+ ) }),
+ withSlider && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(import_components193.FlexItem, { isBlock: true, children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(import_components193.__experimentalSpacer, { marginX: 2, marginBottom: 0, children: /* @__PURE__ */ (0, import_jsx_runtime428.jsx)(
+ import_components193.RangeControl,
+ {
+ label: (0, import_i18n189.__)("Line indent"),
+ hideLabelFromVision: true,
+ value: valueQuantity,
+ withInputField: false,
+ onChange: (newValue) => {
+ if (newValue === void 0) {
+ onChange?.(void 0);
+ } else {
+ onChange?.(
+ newValue + (valueUnit ?? "px")
+ );
+ }
+ },
+ min: 0,
+ max: isValueUnitRelative ? 10 : 100,
+ step: isValueUnitRelative ? 0.1 : 1,
+ initialPosition: 0
+ }
+ ) }) })
+ ] }),
+ help && /* @__PURE__ */ (0, import_jsx_runtime428.jsx)("p", { className: "components-base-control__help", children: help })
+ ] });
}
- var category_default2 = BlockManagerCategory;
- // packages/block-editor/build-module/components/block-manager/index.mjs
- var import_jsx_runtime465 = __toESM(require_jsx_runtime(), 1);
- function BlockManager({
- blockTypes,
- selectedBlockTypes,
- onChange,
- showSelectAll = true
- }) {
- const debouncedSpeak = (0, import_compose100.useDebounce)(import_a11y22.speak, 500);
- const [search, setSearch] = (0, import_element280.useState)("");
- const { categories, isMatchingSearchTerm } = (0, import_data182.useSelect)((select3) => {
- return {
- categories: select3(import_blocks107.store).getCategories(),
- isMatchingSearchTerm: select3(import_blocks107.store).isMatchingSearchTerm
- };
- }, []);
- const filteredBlockTypes = blockTypes.filter((blockType) => {
- return !search || isMatchingSearchTerm(blockType, search);
+ // packages/block-editor/build-module/components/global-styles/color-gradient-dropdown-item.mjs
+ var import_components195 = __toESM(require_components(), 1);
+ var import_element256 = __toESM(require_element(), 1);
+ var import_i18n191 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/global-styles/inheritance/index.mjs
+ var import_components194 = __toESM(require_components(), 1);
+ var import_i18n190 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime429 = __toESM(require_jsx_runtime(), 1);
+ var isGlobalStylesInheritanceEnabled = () => !!window.__experimentalGlobalStylesInheritanceUI;
+ function getInheritanceProps(isInherited, hasLocalOverride, baseClassName) {
+ const inheritedOnly = !!isInherited && !hasLocalOverride;
+ const className2 = clsx_default(baseClassName, {
+ "is-inherited-from-global-styles": inheritedOnly,
+ "has-local-override-from-global-styles": !!hasLocalOverride
});
- const isIndeterminate = selectedBlockTypes.length > 0 && selectedBlockTypes.length !== blockTypes.length;
- const isAllChecked = blockTypes.length > 0 && selectedBlockTypes.length === blockTypes.length;
- (0, import_element280.useEffect)(() => {
- if (!search) {
- return;
- }
- const count = filteredBlockTypes.length;
- const resultsFoundMessage = (0, import_i18n216.sprintf)(
- /* translators: %d: number of results. */
- (0, import_i18n216._n)("%d result found.", "%d results found.", count),
- count
- );
- debouncedSpeak(resultsFoundMessage);
- }, [filteredBlockTypes?.length, search, debouncedSpeak]);
- return /* @__PURE__ */ (0, import_jsx_runtime465.jsxs)(import_components230.__experimentalVStack, { className: "block-editor-block-manager__content", spacing: 4, children: [
- /* @__PURE__ */ (0, import_jsx_runtime465.jsx)(
- import_components230.SearchControl,
- {
- label: (0, import_i18n216.__)("Search for a block"),
- placeholder: (0, import_i18n216.__)("Search for a block"),
- value: search,
- onChange: (nextSearch) => setSearch(nextSearch),
- className: "block-editor-block-manager__search"
- }
- ),
- showSelectAll && /* @__PURE__ */ (0, import_jsx_runtime465.jsx)(
- import_components230.CheckboxControl,
+ return {
+ ...className2 ? { className: className2 } : {},
+ isInherited: inheritedOnly,
+ hasLocalOverride: !!hasLocalOverride
+ };
+ }
+ function InheritanceResetButton({ onResetToInherited, className: className2 }) {
+ return (
+ // Intentionally small (14×14) circular control; exempt from the
+ // 40px default-size enforcement rule.
+ // eslint-disable-next-line @wordpress/components-no-missing-40px-size-prop
+ /* @__PURE__ */ (0, import_jsx_runtime429.jsxs)(
+ import_components194.Button,
{
- className: "block-editor-block-manager__select-all",
- label: (0, import_i18n216.__)("Select all"),
- checked: isAllChecked,
- onChange: () => {
- if (isAllChecked) {
- onChange([]);
- } else {
- onChange(blockTypes);
- }
+ __next40pxDefaultSize: false,
+ label: (0, import_i18n190.__)("Reset to inherited value"),
+ showTooltip: true,
+ className: clsx_default(
+ "has-local-override-from-global-styles__reset",
+ className2
+ ),
+ onClick: (event) => {
+ event.preventDefault();
+ event.stopPropagation();
+ onResetToInherited?.();
},
- indeterminate: isIndeterminate
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime465.jsxs)(
- "div",
- {
- tabIndex: "0",
- role: "region",
- "aria-label": (0, import_i18n216.__)("Available block types"),
- className: "block-editor-block-manager__results",
children: [
- filteredBlockTypes.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime465.jsx)("p", { className: "block-editor-block-manager__no-results", children: (0, import_i18n216.__)("No blocks found.") }),
- categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime465.jsx)(
- category_default2,
+ /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
+ "span",
{
- title: category.title,
- blockTypes: filteredBlockTypes.filter(
- (blockType) => blockType.category === category.slug
- ),
- selectedBlockTypes,
- onChange
- },
- category.slug
- )),
- /* @__PURE__ */ (0, import_jsx_runtime465.jsx)(
- category_default2,
+ "aria-hidden": "true",
+ className: "has-local-override-from-global-styles__dot"
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
+ import_components194.Icon,
{
- title: (0, import_i18n216.__)("Uncategorized"),
- blockTypes: filteredBlockTypes.filter(
- ({ category }) => !category
- ),
- selectedBlockTypes,
- onChange
+ className: "has-local-override-from-global-styles__reset-icon",
+ icon: reset_default
}
)
]
}
)
- ] });
+ );
}
-
- // packages/block-editor/build-module/components/block-allowed-blocks/modal.mjs
- var import_jsx_runtime466 = __toESM(require_jsx_runtime(), 1);
- function BlockAllowedBlocksModal({
- clientId,
- blockTypes,
- selectedBlockTypes,
- onClose
+ function InheritanceToolsPanelItem({
+ className: className2,
+ // Destructured (and unused) so the `getInheritanceProps` spread does not
+ // leak `isInherited` onto the underlying `ToolsPanelItem`. The inherited
+ // treatment is applied purely via `className`
+ // (`is-inherited-from-global-styles`).
+ isInherited,
+ hasLocalOverride,
+ label,
+ onDeselect,
+ showLocalOverrideActionsInLabel = true,
+ hasInlineEndToggle = false,
+ children,
+ ...rest
}) {
- const [currentSelectedBlockTypes, setCurrentSelectedBlockTypes] = (0, import_element281.useState)(selectedBlockTypes);
- const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data183.useDispatch)(store);
- const handleSubmit = () => {
- const isFullySelected = currentSelectedBlockTypes.length === blockTypes.length;
- const newBlockNames = currentSelectedBlockTypes.map(
- ({ name }) => name
- );
- updateBlockAttributes2(clientId, {
- allowedBlocks: isFullySelected ? void 0 : newBlockNames
- });
- onClose();
- };
- return /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(
- import_components231.Modal,
+ const showResetAffordance = hasLocalOverride && showLocalOverrideActionsInLabel;
+ return /* @__PURE__ */ (0, import_jsx_runtime429.jsxs)(
+ import_components194.__experimentalToolsPanelItem,
{
- title: (0, import_i18n217._x)("Manage allowed blocks", "modal title"),
- onRequestClose: onClose,
- overlayClassName: "block-editor-block-allowed-blocks-modal",
- focusOnMount: "firstContentElement",
- size: "medium",
- children: /* @__PURE__ */ (0, import_jsx_runtime466.jsxs)(
- import_components231.__experimentalVStack,
- {
- as: "form",
- onSubmit: (e2) => {
- e2.preventDefault();
- handleSubmit();
- },
- spacing: "4",
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(import_components231.__experimentalText, { children: (0, import_i18n217.__)(
- "Select which blocks can be added inside this container."
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(
- BlockManager,
- {
- blockTypes,
- selectedBlockTypes: currentSelectedBlockTypes,
- onChange: (newSelectedBlockTypes) => {
- setCurrentSelectedBlockTypes(newSelectedBlockTypes);
- }
- }
- ),
- /* @__PURE__ */ (0, import_jsx_runtime466.jsxs)(
- import_components231.Flex,
- {
- className: "block-editor-block-allowed-blocks-modal__actions",
- justify: "flex-end",
- expanded: false,
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(import_components231.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(
- import_components231.Button,
- {
- variant: "tertiary",
- onClick: onClose,
- __next40pxDefaultSize: true,
- children: (0, import_i18n217.__)("Cancel")
- }
- ) }),
- /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(import_components231.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(
- import_components231.Button,
- {
- variant: "primary",
- type: "submit",
- __next40pxDefaultSize: true,
- children: (0, import_i18n217.__)("Apply")
- }
- ) })
- ]
- }
- )
- ]
- }
- )
+ className: className2,
+ label,
+ onDeselect,
+ ...rest,
+ children: [
+ children,
+ showResetAffordance && /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(
+ "div",
+ {
+ className: clsx_default("global-styles-inheritance-affordance", {
+ "global-styles-inheritance-affordance--offset-toggle": hasInlineEndToggle
+ }),
+ children: /* @__PURE__ */ (0, import_jsx_runtime429.jsx)(InheritanceResetButton, { onResetToInherited: onDeselect })
+ }
+ )
+ ]
}
);
}
- // packages/block-editor/build-module/components/block-allowed-blocks/allowed-blocks-control.mjs
- var import_jsx_runtime467 = __toESM(require_jsx_runtime(), 1);
- function BlockAllowedBlocksControl({ clientId }) {
- const [isBlockControlOpened, setIsBlockControlOpened] = (0, import_element282.useState)(false);
- const { blockTypes, selectedBlockNames } = (0, import_data184.useSelect)(
- (select3) => {
- const { getBlockAttributes: getBlockAttributes3 } = select3(store);
- return {
- blockTypes: select3(import_blocks108.store).getBlockTypes(),
- selectedBlockNames: getBlockAttributes3(clientId)?.allowedBlocks
- };
- },
- [clientId]
- );
- const filteredBlockTypes = blockTypes.filter(
- (blockType) => (0, import_blocks108.hasBlockSupport)(blockType, "inserter", true) && (!blockType.parent || blockType.parent.includes("core/post-content"))
- );
- if (!filteredBlockTypes) {
- return null;
- }
- const selectedBlockTypes = selectedBlockNames === void 0 ? filteredBlockTypes : filteredBlockTypes.filter(
- (blockType) => selectedBlockNames.includes(blockType.name)
- );
- return /* @__PURE__ */ (0, import_jsx_runtime467.jsxs)("div", { className: "block-editor-block-allowed-blocks-control", children: [
- /* @__PURE__ */ (0, import_jsx_runtime467.jsxs)(
- import_components232.BaseControl,
+ // packages/block-editor/build-module/components/global-styles/color-gradient-dropdown-item.mjs
+ var import_jsx_runtime430 = __toESM(require_jsx_runtime(), 1);
+ var { Tabs: Tabs4 } = unlock(import_components195.privateApis);
+ function DropdownContent({
+ tabs,
+ colorGradientControlSettings,
+ contrastWarning
+ }) {
+ const { key: firstTabKey, ...firstTab } = tabs[0] ?? {};
+ const defaultTabId = (tabs.find((tab) => tab.userValue !== void 0) ?? tabs.find(
+ (tab) => tab.isPlaceholder || tab.inheritedValue !== void 0
+ ))?.key;
+ return /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(import_components195.__experimentalDropdownContentWrapper, { paddingSize: "none", children: /* @__PURE__ */ (0, import_jsx_runtime430.jsxs)("div", { className: "block-editor-panel-color-gradient-settings__dropdown-content", children: [
+ tabs.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ ColorGradientTab,
{
- help: (0, import_i18n218.__)(
- "Specify which blocks are allowed inside this container."
- ),
- children: [
- /* @__PURE__ */ (0, import_jsx_runtime467.jsx)(import_components232.BaseControl.VisualLabel, { children: (0, import_i18n218.__)("Allowed Blocks") }),
- /* @__PURE__ */ (0, import_jsx_runtime467.jsx)(
- import_components232.Button,
- {
- __next40pxDefaultSize: true,
- variant: "secondary",
- onClick: () => {
- setIsBlockControlOpened(true);
- },
- className: "block-editor-block-allowed-blocks-control__button",
- children: (0, import_i18n218.__)("Manage allowed blocks")
- }
- )
- ]
- }
+ ...firstTab,
+ colorGradientControlSettings,
+ contrastWarning
+ },
+ firstTabKey
),
- isBlockControlOpened && /* @__PURE__ */ (0, import_jsx_runtime467.jsx)(
- BlockAllowedBlocksModal,
- {
- clientId,
- blockTypes: filteredBlockTypes,
- selectedBlockTypes,
- onClose: () => setIsBlockControlOpened(false)
- }
- )
- ] });
- }
-
- // packages/block-editor/build-module/hooks/allowed-blocks.mjs
- var import_jsx_runtime468 = __toESM(require_jsx_runtime(), 1);
- function BlockEditAllowedBlocksControlPure({ clientId }) {
- const blockEditingMode = useBlockEditingMode();
- const isContentOnly = blockEditingMode === "contentOnly";
- if (isContentOnly) {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime468.jsx)(PrivateInspectorControlsAllowedBlocks.Fill, { children: /* @__PURE__ */ (0, import_jsx_runtime468.jsx)(BlockAllowedBlocksControl, { clientId }) });
+ tabs.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime430.jsxs)(Tabs4, { defaultTabId, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(Tabs4.TabList, { children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(Tabs4.Tab, { tabId: tab.key, children: tab.label }, tab.key)) }),
+ tabs.map((tab) => {
+ const { key: tabKey, ...restTabProps } = tab;
+ return /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ Tabs4.TabPanel,
+ {
+ tabId: tabKey,
+ focusable: false,
+ children: /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ ColorGradientTab,
+ {
+ ...restTabProps,
+ colorGradientControlSettings,
+ contrastWarning
+ },
+ tabKey
+ )
+ },
+ tabKey
+ );
+ })
+ ] })
+ ] }) });
}
- var allowed_blocks_default = {
- edit: BlockEditAllowedBlocksControlPure,
- attributeKeys: ["allowedBlocks"],
- hasSupport(name) {
- return (0, import_blocks109.hasBlockSupport)(name, "allowedBlocks");
- }
+ var popoverProps = {
+ placement: "left-start",
+ offset: 36,
+ shift: true
};
- function addAttribute3(settings2) {
- if (settings2?.attributes?.allowedBlocks?.type) {
- return settings2;
- }
- if ((0, import_blocks109.hasBlockSupport)(settings2, "allowedBlocks")) {
- settings2.attributes = {
- ...settings2.attributes,
- allowedBlocks: {
- type: "array"
- }
- };
- }
- return settings2;
- }
- (0, import_hooks23.addFilter)(
- "blocks.registerBlockType",
- "core/allowedBlocks/attribute",
- addAttribute3
- );
- function addTransforms3(result, source, index2, results) {
- if (!(0, import_blocks109.hasBlockSupport)(result.name, "allowedBlocks")) {
- return result;
- }
- if (source.length !== 1 && results.length === 1 && result.innerBlocks.length === source.length) {
- return result;
- }
- if (results.length === 1 && source.length > 1 || results.length > 1 && source.length === 1) {
- return result;
- }
- if (results.length > 1 && source.length > 1 && results.length !== source.length) {
- return result;
- }
- if (result.attributes.allowedBlocks) {
- return result;
- }
- const sourceAllowedBlocks = source[index2]?.attributes?.allowedBlocks;
- if (!sourceAllowedBlocks) {
- return result;
- }
- const blockType = (0, import_blocks109.getBlockType)(result.name);
- const destinationAllowedBlocks = blockType?.allowedBlocks || [];
- if (!destinationAllowedBlocks.length) {
- return {
- ...result,
- attributes: {
- ...result.attributes,
- allowedBlocks: sourceAllowedBlocks
- }
- };
- }
- const filteredSourceAllowedBlocks = sourceAllowedBlocks.filter(
- (block) => destinationAllowedBlocks.includes(block)
- );
- return {
- ...result,
- attributes: {
- ...result.attributes,
- allowedBlocks: filteredSourceAllowedBlocks
+ var LabeledColorIndicators = ({ indicators, label }) => /* @__PURE__ */ (0, import_jsx_runtime430.jsxs)(import_components195.__experimentalHStack, { justify: "flex-start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(import_components195.__experimentalZStack, { isLayered: false, offset: -8, children: indicators.map((indicator, index2) => /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(import_components195.Flex, { expanded: false, children: /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(import_components195.ColorIndicator, { colorValue: indicator }) }, index2)) }),
+ /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(import_components195.FlexItem, { className: "block-editor-panel-color-gradient-settings__color-name", children: label })
+ ] });
+ function ColorGradientTab({
+ isGradient,
+ inheritedValue,
+ inheritedSlug,
+ userSlug,
+ userValue,
+ setValue,
+ isPlaceholder,
+ colorGradientControlSettings,
+ contrastWarning
+ }) {
+ const displayed = userValue ?? inheritedValue;
+ const displayedSlug = userValue !== void 0 ? userSlug : inheritedSlug;
+ const onChange = (newValue, newSlug) => {
+ if (isPlaceholder && newValue === void 0) {
+ setValue(inheritedValue, inheritedSlug);
+ return;
}
+ setValue(newValue, newSlug);
};
- }
- (0, import_hooks23.addFilter)(
- "blocks.switchToBlockType.transformedBlock",
- "core/allowedBlocks/addTransforms",
- addTransforms3
- );
-
- // packages/block-editor/build-module/hooks/anchor.mjs
- var import_hooks24 = __toESM(require_hooks(), 1);
- var import_components233 = __toESM(require_components(), 1);
- var import_i18n219 = __toESM(require_i18n(), 1);
- var import_blocks110 = __toESM(require_blocks(), 1);
- var import_jsx_runtime469 = __toESM(require_jsx_runtime(), 1);
- var ANCHOR_REGEX = /[\s#]/g;
- function addAttribute4(settings2) {
- if ("type" in (settings2.attributes?.anchor ?? {})) {
- return settings2;
- }
- if ((0, import_blocks110.hasBlockSupport)(settings2, "anchor")) {
- settings2.attributes = {
- ...settings2.attributes,
- anchor: {
- type: "string"
- }
- };
- }
- return settings2;
- }
- function BlockEditAnchorControlPure({ anchor, setAttributes }) {
- const blockEditingMode = useBlockEditingMode();
- if (blockEditingMode !== "default") {
- return null;
- }
- return /* @__PURE__ */ (0, import_jsx_runtime469.jsx)(inspector_controls_default, { group: "advanced", children: /* @__PURE__ */ (0, import_jsx_runtime469.jsx)(
- import_components233.TextControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ control_default,
{
- className: "html-anchor-control",
- label: (0, import_i18n219.__)("HTML anchor"),
- help: /* @__PURE__ */ (0, import_jsx_runtime469.jsxs)(import_jsx_runtime469.Fragment, { children: [
- (0, import_i18n219.__)(
- "Enter a word or two\u2014without spaces\u2014to make a unique web address just for this block, called an \u201Canchor\u201D. Then, you\u2019ll be able to link directly to this section of your page."
- ),
- " ",
- /* @__PURE__ */ (0, import_jsx_runtime469.jsx)(
- import_components233.ExternalLink,
- {
- href: (0, import_i18n219.__)(
- "https://wordpress.org/documentation/article/page-jumps/"
- ),
- children: (0, import_i18n219.__)("Learn more about anchors")
- }
- )
- ] }),
- value: anchor || "",
- placeholder: null,
- onChange: (nextValue) => {
- nextValue = nextValue.replace(ANCHOR_REGEX, "-");
- setAttributes({
- anchor: nextValue !== "" ? nextValue : void 0
- });
- },
- autoCapitalize: "none",
- autoComplete: "off"
+ ...colorGradientControlSettings,
+ showTitle: false,
+ enableAlpha: true,
+ __experimentalIsRenderedInSidebar: true,
+ colorValue: isGradient ? void 0 : displayed,
+ colorSlug: isGradient ? void 0 : displayedSlug,
+ gradientValue: isGradient ? displayed : void 0,
+ gradientSlug: isGradient ? displayedSlug : void 0,
+ onColorChange: isGradient ? void 0 : onChange,
+ onGradientChange: isGradient ? onChange : void 0,
+ clearable: userValue !== void 0,
+ headingLevel: 3,
+ noticeProps: !isGradient && contrastWarning ? {
+ children: contrastWarning,
+ status: "warning",
+ spokenMessage: null,
+ className: "block-editor-panel-color-gradient-settings__contrast-notice"
+ } : void 0
}
- ) });
- }
- var anchor_default = {
- addSaveProps: addSaveProps6,
- edit: BlockEditAnchorControlPure,
- attributeKeys: ["anchor"],
- hasSupport(name) {
- return (0, import_blocks110.hasBlockSupport)(name, "anchor");
- }
- };
- function addSaveProps6(extraProps, blockType, attributes) {
- if ((0, import_blocks110.hasBlockSupport)(blockType, "anchor")) {
- extraProps.id = attributes.anchor === "" ? null : attributes.anchor;
- }
- return extraProps;
- }
- (0, import_hooks24.addFilter)("blocks.registerBlockType", "core/anchor/attribute", addAttribute4);
-
- // packages/block-editor/build-module/hooks/aria-label.mjs
- var import_hooks25 = __toESM(require_hooks(), 1);
- var import_blocks111 = __toESM(require_blocks(), 1);
- function addAttribute5(settings2) {
- if (settings2?.attributes?.ariaLabel?.type) {
- return settings2;
- }
- if ((0, import_blocks111.hasBlockSupport)(settings2, "ariaLabel")) {
- settings2.attributes = {
- ...settings2.attributes,
- ariaLabel: {
- type: "string"
- }
- };
- }
- return settings2;
- }
- function addSaveProps7(extraProps, blockType, attributes) {
- if ((0, import_blocks111.hasBlockSupport)(blockType, "ariaLabel") && !shouldSkipSerialization(blockType, "ariaLabel", "ariaLabel")) {
- extraProps["aria-label"] = attributes.ariaLabel === "" ? null : attributes.ariaLabel;
- }
- return extraProps;
+ );
}
- var aria_label_default = {
- addSaveProps: addSaveProps7,
- attributeKeys: ["ariaLabel"],
- hasSupport(name) {
- return (0, import_blocks111.hasBlockSupport)(name, "ariaLabel");
- }
- };
- (0, import_hooks25.addFilter)(
- "blocks.registerBlockType",
- "core/ariaLabel/attribute",
- addAttribute5
- );
-
- // packages/block-editor/build-module/hooks/block-fields/index.mjs
- var import_blocks112 = __toESM(require_blocks(), 1);
- var import_compose109 = __toESM(require_compose(), 1);
- var import_components264 = __toESM(require_components(), 1);
- var import_data187 = __toESM(require_data(), 1);
-
- // packages/dataviews/build-module/constants.mjs
- var import_i18n220 = __toESM(require_i18n(), 1);
- var OPERATOR_IS_ANY = "isAny";
- var OPERATOR_IS_NONE = "isNone";
- var OPERATOR_IS_ALL = "isAll";
- var OPERATOR_IS_NOT_ALL = "isNotAll";
- var OPERATOR_BETWEEN = "between";
- var OPERATOR_IN_THE_PAST = "inThePast";
- var OPERATOR_OVER = "over";
- var OPERATOR_IS = "is";
- var OPERATOR_IS_NOT = "isNot";
- var OPERATOR_LESS_THAN = "lessThan";
- var OPERATOR_GREATER_THAN = "greaterThan";
- var OPERATOR_LESS_THAN_OR_EQUAL = "lessThanOrEqual";
- var OPERATOR_GREATER_THAN_OR_EQUAL = "greaterThanOrEqual";
- var OPERATOR_BEFORE = "before";
- var OPERATOR_AFTER = "after";
- var OPERATOR_BEFORE_INC = "beforeInc";
- var OPERATOR_AFTER_INC = "afterInc";
- var OPERATOR_CONTAINS = "contains";
- var OPERATOR_NOT_CONTAINS = "notContains";
- var OPERATOR_STARTS_WITH = "startsWith";
- var OPERATOR_ON = "on";
- var OPERATOR_NOT_ON = "notOn";
- var sortLabels = {
- asc: (0, import_i18n220.__)("Sort ascending"),
- desc: (0, import_i18n220.__)("Sort descending")
- };
-
- // packages/dataviews/build-module/lock-unlock.mjs
- var import_private_apis5 = __toESM(require_private_apis(), 1);
- var { lock: lock4, unlock: unlock4 } = (0, import_private_apis5.__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/dataviews"
- );
-
- // packages/dataviews/build-module/hooks/use-elements.mjs
- var import_element283 = __toESM(require_element(), 1);
- var EMPTY_ARRAY16 = [];
- function useElements({
- elements,
- getElements
+ function ColorGradientDropdownItem({
+ label,
+ hasValue: hasValue3,
+ resetValue,
+ isShownByDefault,
+ indicators,
+ tabs,
+ colorGradientControlSettings,
+ panelId,
+ contrastWarning,
+ className: className2 = "block-editor-tools-panel-color-gradient-settings__item",
+ isPlaceholder = false,
+ hasInheritedValue = false,
+ showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
}) {
- const staticElements = Array.isArray(elements) && elements.length > 0 ? elements : EMPTY_ARRAY16;
- const [records, setRecords] = (0, import_element283.useState)(staticElements);
- const [isLoading, setIsLoading] = (0, import_element283.useState)(false);
- (0, import_element283.useEffect)(() => {
- if (!getElements) {
- setRecords(staticElements);
- return;
+ const colorGradientDropdownButtonRef = (0, import_element256.useRef)(void 0);
+ const itemClassName = clsx_default("block-editor-color-gradient-item", className2);
+ const hasLocalOverride = showInheritanceLabelIndicators && hasValue3() && hasInheritedValue;
+ const inheritanceProps = showInheritanceLabelIndicators ? getInheritanceProps(isPlaceholder, hasLocalOverride, itemClassName) : { className: itemClassName };
+ return /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps,
+ showLocalOverrideActionsInLabel: false,
+ hasValue: hasValue3,
+ label,
+ onDeselect: resetValue,
+ isShownByDefault,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ import_components195.Dropdown,
+ {
+ popoverProps,
+ className: "block-editor-tools-panel-color-gradient-settings__dropdown",
+ renderToggle: ({ onToggle, isOpen }) => {
+ const toggleProps = {
+ onClick: onToggle,
+ className: clsx_default(
+ "block-editor-panel-color-gradient-settings__dropdown",
+ {
+ "is-open": isOpen,
+ "has-contrast-warning": !!contrastWarning
+ }
+ ),
+ "aria-expanded": isOpen,
+ ref: colorGradientDropdownButtonRef
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime430.jsxs)(import_jsx_runtime430.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(import_components195.Button, { ...toggleProps, __next40pxDefaultSize: true, children: /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ LabeledColorIndicators,
+ {
+ indicators,
+ label
+ }
+ ) }),
+ hasValue3() && (hasLocalOverride ? /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ InheritanceResetButton,
+ {
+ className: "block-editor-panel-color-gradient-settings__reset",
+ onResetToInherited: () => {
+ resetValue();
+ if (isOpen) {
+ onToggle();
+ }
+ colorGradientDropdownButtonRef.current?.focus();
+ }
+ }
+ ) : /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ import_components195.Button,
+ {
+ __next40pxDefaultSize: true,
+ label: (0, import_i18n191.__)("Reset"),
+ className: "block-editor-panel-color-gradient-settings__reset",
+ size: "small",
+ icon: reset_default,
+ onClick: () => {
+ resetValue();
+ if (isOpen) {
+ onToggle();
+ }
+ colorGradientDropdownButtonRef.current?.focus();
+ }
+ }
+ )),
+ contrastWarning && // An icon-only warning that stays visible while a
+ // contrast warning is in effect. It is not a menu;
+ // activating it opens the color picker popover where
+ // the full warning notice is shown, so the indicator
+ // doubles as a shortcut to where the issue is fixed.
+ /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ import_components195.Button,
+ {
+ __next40pxDefaultSize: true,
+ size: "small",
+ icon: caution_default,
+ label: (0, import_i18n191.__)("Low contrast"),
+ className: "block-editor-panel-color-gradient-settings__contrast-warning",
+ "aria-expanded": isOpen,
+ onClick: onToggle
+ }
+ )
+ ] });
+ },
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime430.jsx)(
+ DropdownContent,
+ {
+ tabs,
+ colorGradientControlSettings,
+ contrastWarning
+ }
+ )
+ }
+ )
}
- let cancelled = false;
- setIsLoading(true);
- getElements().then((fetchedElements) => {
- if (!cancelled) {
- const dynamicElements = Array.isArray(fetchedElements) && fetchedElements.length > 0 ? fetchedElements : staticElements;
- setRecords(dynamicElements);
- }
- }).catch(() => {
- if (!cancelled) {
- setRecords(staticElements);
- }
- }).finally(() => {
- if (!cancelled) {
- setIsLoading(false);
- }
- });
- return () => {
- cancelled = true;
- };
- }, [getElements, staticElements]);
- return {
- elements: records,
- isLoading
- };
- }
-
- // packages/dataviews/node_modules/date-fns/constants.js
- var daysInYear = 365.2425;
- var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
- var minTime = -maxTime;
- var millisecondsInWeek = 6048e5;
- var millisecondsInDay = 864e5;
- var secondsInHour = 3600;
- var secondsInDay = secondsInHour * 24;
- var secondsInWeek = secondsInDay * 7;
- var secondsInYear = secondsInDay * daysInYear;
- var secondsInMonth = secondsInYear / 12;
- var secondsInQuarter = secondsInMonth * 3;
- var constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
-
- // packages/dataviews/node_modules/date-fns/constructFrom.js
- function constructFrom(date, value) {
- if (typeof date === "function") return date(value);
- if (date && typeof date === "object" && constructFromSymbol in date)
- return date[constructFromSymbol](value);
- if (date instanceof Date) return new date.constructor(value);
- return new Date(value);
- }
-
- // packages/dataviews/node_modules/date-fns/toDate.js
- function toDate(argument, context) {
- return constructFrom(context || argument, argument);
+ );
}
- // packages/dataviews/node_modules/date-fns/addDays.js
- function addDays(date, amount, options) {
- const _date = toDate(date, options?.in);
- if (isNaN(amount)) return constructFrom(options?.in || date, NaN);
- if (!amount) return _date;
- _date.setDate(_date.getDate() + amount);
- return _date;
- }
+ // packages/block-editor/build-module/components/global-styles/color-panel.mjs
+ var import_components196 = __toESM(require_components(), 1);
+ var import_element257 = __toESM(require_element(), 1);
+ var import_i18n192 = __toESM(require_i18n(), 1);
+ var import_style_engine4 = __toESM(require_style_engine(), 1);
- // packages/dataviews/node_modules/date-fns/addMonths.js
- function addMonths(date, amount, options) {
- const _date = toDate(date, options?.in);
- if (isNaN(amount)) return constructFrom(options?.in || date, NaN);
- if (!amount) {
- return _date;
+ // packages/block-editor/build-module/utils/color-values.mjs
+ function extractPresetSlug(rawValue, type) {
+ if (typeof rawValue !== "string") {
+ return void 0;
}
- const dayOfMonth = _date.getDate();
- const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());
- endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
- const daysInMonth = endOfDesiredMonth.getDate();
- if (dayOfMonth >= daysInMonth) {
- return endOfDesiredMonth;
- } else {
- _date.setFullYear(
- endOfDesiredMonth.getFullYear(),
- endOfDesiredMonth.getMonth(),
- dayOfMonth
- );
- return _date;
+ const userPrefix = `var:preset|${type}|`;
+ if (rawValue.startsWith(userPrefix)) {
+ return rawValue.slice(userPrefix.length);
}
+ const cssVarPrefix = `--wp--preset--${type}--`;
+ const themeFormatMatch = rawValue.match(
+ new RegExp(`^var\\(${cssVarPrefix}([^)]+)\\)$`)
+ );
+ return themeFormatMatch?.[1];
}
-
- // packages/dataviews/node_modules/date-fns/_lib/defaultOptions.js
- var defaultOptions = {};
- function getDefaultOptions() {
- return defaultOptions;
+ function encodeColorValueWithPalette(allColors, colorValue, slug) {
+ if (slug) {
+ return "var:preset|color|" + slug;
+ }
+ const colorObject = allColors.find(({ color }) => color === colorValue);
+ return colorObject ? "var:preset|color|" + colorObject.slug : colorValue;
}
- // packages/dataviews/node_modules/date-fns/startOfWeek.js
- function startOfWeek(date, options) {
- const defaultOptions2 = getDefaultOptions();
- const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
- const _date = toDate(date, options?.in);
- const day = _date.getDay();
- const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
- _date.setDate(_date.getDate() - diff);
- _date.setHours(0, 0, 0, 0);
- return _date;
+ // packages/block-editor/build-module/components/global-styles/color-panel.mjs
+ var import_jsx_runtime431 = __toESM(require_jsx_runtime(), 1);
+ function useHasColorPanel(settings2) {
+ const hasLinkPanel = useHasLinkPanel(settings2);
+ const hasHeadingPanel = useHasHeadingPanel(settings2);
+ const hasButtonPanel = useHasButtonPanel(settings2);
+ const hasCaptionPanel = useHasCaptionPanel(settings2);
+ return hasLinkPanel || hasHeadingPanel || hasButtonPanel || hasCaptionPanel;
}
-
- // packages/dataviews/node_modules/date-fns/startOfISOWeek.js
- function startOfISOWeek(date, options) {
- return startOfWeek(date, { ...options, weekStartsOn: 1 });
+ function useHasTextPanel(settings2) {
+ const colors2 = useColorsPerOrigin(settings2);
+ return settings2?.color?.text && (colors2?.length > 0 || settings2?.color?.custom);
}
-
- // packages/dataviews/node_modules/date-fns/getISOWeekYear.js
- function getISOWeekYear(date, options) {
- const _date = toDate(date, options?.in);
- const year = _date.getFullYear();
- const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);
- fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
- fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
- const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
- const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);
- fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
- fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
- const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
- if (_date.getTime() >= startOfNextYear.getTime()) {
- return year + 1;
- } else if (_date.getTime() >= startOfThisYear.getTime()) {
- return year;
- } else {
- return year - 1;
- }
+ function useHasLinkPanel(settings2) {
+ const colors2 = useColorsPerOrigin(settings2);
+ return settings2?.color?.link && (colors2?.length > 0 || settings2?.color?.custom);
}
-
- // packages/dataviews/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
- function getTimezoneOffsetInMilliseconds(date) {
- const _date = toDate(date);
- const utcDate = new Date(
- Date.UTC(
- _date.getFullYear(),
- _date.getMonth(),
- _date.getDate(),
- _date.getHours(),
- _date.getMinutes(),
- _date.getSeconds(),
- _date.getMilliseconds()
- )
- );
- utcDate.setUTCFullYear(_date.getFullYear());
- return +date - +utcDate;
+ function useHasCaptionPanel(settings2) {
+ const colors2 = useColorsPerOrigin(settings2);
+ return settings2?.color?.caption && (colors2?.length > 0 || settings2?.color?.custom);
}
-
- // packages/dataviews/node_modules/date-fns/_lib/normalizeDates.js
- function normalizeDates(context, ...dates) {
- const normalize = constructFrom.bind(
- null,
- context || dates.find((date) => typeof date === "object")
- );
- return dates.map(normalize);
+ function useHasHeadingPanel(settings2) {
+ const colors2 = useColorsPerOrigin(settings2);
+ const gradients = useGradientsPerOrigin(settings2);
+ return settings2?.color?.heading && (colors2?.length > 0 || settings2?.color?.custom || gradients?.length > 0 || settings2?.color?.customGradient);
}
-
- // packages/dataviews/node_modules/date-fns/startOfDay.js
- function startOfDay(date, options) {
- const _date = toDate(date, options?.in);
- _date.setHours(0, 0, 0, 0);
- return _date;
+ function useHasButtonPanel(settings2) {
+ const colors2 = useColorsPerOrigin(settings2);
+ const gradients = useGradientsPerOrigin(settings2);
+ return settings2?.color?.button && (colors2?.length > 0 || settings2?.color?.custom || gradients?.length > 0 || settings2?.color?.customGradient);
}
-
- // packages/dataviews/node_modules/date-fns/differenceInCalendarDays.js
- function differenceInCalendarDays(laterDate, earlierDate, options) {
- const [laterDate_, earlierDate_] = normalizeDates(
- options?.in,
- laterDate,
- earlierDate
- );
- const laterStartOfDay = startOfDay(laterDate_);
- const earlierStartOfDay = startOfDay(earlierDate_);
- const laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);
- const earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);
- return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);
+ function useHasBackgroundColorPanel(settings2) {
+ const colors2 = useColorsPerOrigin(settings2);
+ const gradients = useGradientsPerOrigin(settings2);
+ return settings2?.color?.background && (colors2?.length > 0 || settings2?.color?.custom || gradients?.length > 0 || settings2?.color?.customGradient);
}
-
- // packages/dataviews/node_modules/date-fns/startOfISOWeekYear.js
- function startOfISOWeekYear(date, options) {
- const year = getISOWeekYear(date, options);
- const fourthOfJanuary = constructFrom(options?.in || date, 0);
- fourthOfJanuary.setFullYear(year, 0, 4);
- fourthOfJanuary.setHours(0, 0, 0, 0);
- return startOfISOWeek(fourthOfJanuary);
+ function ColorToolsPanel({
+ resetAllFilter,
+ onChange,
+ value,
+ panelId,
+ children,
+ label
+ }) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const resetAll = () => {
+ const updatedValue = resetAllFilter(value);
+ onChange(updatedValue);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
+ import_components196.__experimentalToolsPanel,
+ {
+ label: label || (0, import_i18n192.__)("Elements"),
+ resetAll,
+ panelId,
+ hasInnerWrapper: true,
+ headingLevel: 3,
+ className: "color-block-support-panel",
+ __experimentalFirstVisibleItemClass: "first",
+ __experimentalLastVisibleItemClass: "last",
+ dropdownMenuProps,
+ children: /* @__PURE__ */ (0, import_jsx_runtime431.jsx)("div", { className: "color-block-support-panel__inner-wrapper", children })
+ }
+ );
}
-
- // packages/dataviews/node_modules/date-fns/addWeeks.js
- function addWeeks(date, amount, options) {
- return addDays(date, amount * 7, options);
+ var DEFAULT_CONTROLS3 = {
+ link: true,
+ heading: true,
+ button: true,
+ caption: true
+ };
+ function ColorPanel({
+ as: Wrapper = ColorToolsPanel,
+ value,
+ onChange,
+ inheritedValue = value,
+ settings: settings2,
+ panelId,
+ defaultControls = DEFAULT_CONTROLS3,
+ label,
+ children,
+ contrastWarning,
+ showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
+ }) {
+ const {
+ colors: colors2,
+ gradients,
+ areCustomSolidsEnabled,
+ areCustomGradientsEnabled,
+ hasSolidColors,
+ hasGradientColors,
+ allColors,
+ decodeValue,
+ encodeGradientValue
+ } = useColorGradientSettings(settings2);
+ const decodeInheritedColor = (rawValue) => (0, import_style_engine4.getCSSValueFromRawStyle)(decodeValue(rawValue));
+ const showLinkPanel = useHasLinkPanel(settings2);
+ const linkColor = decodeInheritedColor(
+ inheritedValue?.elements?.link?.color?.text
+ );
+ const userLinkColor = decodeValue(value?.elements?.link?.color?.text);
+ const setLinkColor = (newColor, newSlug) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["elements", "link", "color", "text"],
+ encodeColorValueWithPalette(allColors, newColor, newSlug)
+ )
+ );
+ };
+ const hoverLinkColor = decodeInheritedColor(
+ inheritedValue?.elements?.link?.[":hover"]?.color?.text
+ );
+ const userHoverLinkColor = decodeValue(
+ value?.elements?.link?.[":hover"]?.color?.text
+ );
+ const setHoverLinkColor = (newColor, newSlug) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["elements", "link", ":hover", "color", "text"],
+ encodeColorValueWithPalette(allColors, newColor, newSlug)
+ )
+ );
+ };
+ const hasLink = () => !!userLinkColor || !!userHoverLinkColor;
+ const resetLink = () => {
+ let newValue = setImmutably2(
+ value,
+ ["elements", "link", ":hover", "color", "text"],
+ void 0
+ );
+ newValue = setImmutably2(
+ newValue,
+ ["elements", "link", "color", "text"],
+ void 0
+ );
+ onChange(newValue);
+ };
+ const showCaptionPanel = useHasCaptionPanel(settings2);
+ const showButtonPanel = useHasButtonPanel(settings2);
+ const showHeadingPanel = useHasHeadingPanel(settings2);
+ const elements = (0, import_element257.useMemo)(
+ () => [
+ {
+ name: "caption",
+ label: (0, import_i18n192.__)("Captions"),
+ showPanel: showCaptionPanel
+ },
+ {
+ name: "button",
+ label: (0, import_i18n192.__)("Button"),
+ showPanel: showButtonPanel
+ },
+ {
+ name: "heading",
+ label: (0, import_i18n192.__)("Heading"),
+ showPanel: showHeadingPanel
+ },
+ {
+ name: "h1",
+ label: (0, import_i18n192.__)("H1"),
+ showPanel: showHeadingPanel
+ },
+ {
+ name: "h2",
+ label: (0, import_i18n192.__)("H2"),
+ showPanel: showHeadingPanel
+ },
+ {
+ name: "h3",
+ label: (0, import_i18n192.__)("H3"),
+ showPanel: showHeadingPanel
+ },
+ {
+ name: "h4",
+ label: (0, import_i18n192.__)("H4"),
+ showPanel: showHeadingPanel
+ },
+ {
+ name: "h5",
+ label: (0, import_i18n192.__)("H5"),
+ showPanel: showHeadingPanel
+ },
+ {
+ name: "h6",
+ label: (0, import_i18n192.__)("H6"),
+ showPanel: showHeadingPanel
+ }
+ ],
+ [showCaptionPanel, showButtonPanel, showHeadingPanel]
+ );
+ const resetAllFilter = (0, import_element257.useCallback)(
+ (previousValue) => {
+ return {
+ ...previousValue,
+ elements: {
+ ...previousValue?.elements,
+ link: {
+ ...previousValue?.elements?.link,
+ color: void 0,
+ ":hover": {
+ color: void 0
+ }
+ },
+ ...elements.reduce((acc, element) => {
+ return {
+ ...acc,
+ [element.name]: {
+ ...previousValue?.elements?.[element.name],
+ color: void 0
+ }
+ };
+ }, {})
+ }
+ };
+ },
+ [elements]
+ );
+ const items = [
+ showLinkPanel && {
+ key: "link",
+ label: (0, import_i18n192.__)("Link"),
+ hasValue: hasLink,
+ resetValue: resetLink,
+ isShownByDefault: defaultControls.link,
+ indicators: [
+ userLinkColor ?? linkColor,
+ userHoverLinkColor ?? hoverLinkColor
+ ],
+ isPlaceholder: userLinkColor === void 0 && userHoverLinkColor === void 0 && (linkColor !== void 0 || hoverLinkColor !== void 0),
+ hasInheritedValue: linkColor !== void 0 || hoverLinkColor !== void 0,
+ contrastWarning,
+ tabs: [
+ {
+ key: "link",
+ label: (0, import_i18n192.__)("Default"),
+ inheritedValue: linkColor,
+ inheritedSlug: extractPresetSlug(
+ inheritedValue?.elements?.link?.color?.text,
+ "color"
+ ),
+ userSlug: extractPresetSlug(
+ value?.elements?.link?.color?.text,
+ "color"
+ ),
+ setValue: setLinkColor,
+ userValue: userLinkColor,
+ isPlaceholder: userLinkColor === void 0 && linkColor !== void 0
+ },
+ {
+ key: "hover",
+ label: (0, import_i18n192.__)("Hover"),
+ inheritedValue: hoverLinkColor,
+ inheritedSlug: extractPresetSlug(
+ inheritedValue?.elements?.link?.[":hover"]?.color?.text,
+ "color"
+ ),
+ userSlug: extractPresetSlug(
+ value?.elements?.link?.[":hover"]?.color?.text,
+ "color"
+ ),
+ setValue: setHoverLinkColor,
+ userValue: userHoverLinkColor,
+ isPlaceholder: userHoverLinkColor === void 0 && hoverLinkColor !== void 0
+ }
+ ]
+ }
+ ].filter(Boolean);
+ elements.forEach(({ name, label: elementLabel, showPanel }) => {
+ if (!showPanel) {
+ return;
+ }
+ const elementBackgroundColor = decodeInheritedColor(
+ inheritedValue?.elements?.[name]?.color?.background
+ );
+ const elementGradient = decodeInheritedColor(
+ inheritedValue?.elements?.[name]?.color?.gradient
+ );
+ const elementTextColor = decodeInheritedColor(
+ inheritedValue?.elements?.[name]?.color?.text
+ );
+ const elementBackgroundUserColor = decodeValue(
+ value?.elements?.[name]?.color?.background
+ );
+ const elementGradientUserColor = decodeValue(
+ value?.elements?.[name]?.color?.gradient
+ );
+ const elementTextUserColor = decodeValue(
+ value?.elements?.[name]?.color?.text
+ );
+ const hasElement = () => !!(elementTextUserColor || elementBackgroundUserColor || elementGradientUserColor);
+ const resetElement = () => {
+ const newValue = setImmutably2(
+ value,
+ ["elements", name, "color", "background"],
+ void 0
+ );
+ newValue.elements[name].color.gradient = void 0;
+ newValue.elements[name].color.text = void 0;
+ onChange(newValue);
+ };
+ const setElementTextColor = (newTextColor, newSlug) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["elements", name, "color", "text"],
+ encodeColorValueWithPalette(
+ allColors,
+ newTextColor,
+ newSlug
+ )
+ )
+ );
+ };
+ const setElementBackgroundColor = (newBackgroundColor, newSlug) => {
+ const newValue = setImmutably2(
+ value,
+ ["elements", name, "color", "background"],
+ encodeColorValueWithPalette(
+ allColors,
+ newBackgroundColor,
+ newSlug
+ )
+ );
+ newValue.elements[name].color.gradient = void 0;
+ onChange(newValue);
+ };
+ const setElementGradient = (newGradient, newSlug) => {
+ const newValue = setImmutably2(
+ value,
+ ["elements", name, "color", "gradient"],
+ encodeGradientValue(newGradient, newSlug)
+ );
+ newValue.elements[name].color.background = void 0;
+ onChange(newValue);
+ };
+ const supportsBackground = name !== "caption";
+ const isElementTextPlaceholder = elementTextUserColor === void 0 && elementTextColor !== void 0;
+ const isElementBackgroundPlaceholder = elementBackgroundUserColor === void 0 && elementBackgroundColor !== void 0;
+ const isElementGradientPlaceholder = elementGradientUserColor === void 0 && elementGradient !== void 0;
+ const isElementPlaceholder = elementTextUserColor === void 0 && elementBackgroundUserColor === void 0 && elementGradientUserColor === void 0 && (elementTextColor !== void 0 || elementBackgroundColor !== void 0 || elementGradient !== void 0);
+ const hasElementInheritedValue = elementTextColor !== void 0 || elementBackgroundColor !== void 0 || elementGradient !== void 0;
+ items.push({
+ key: name,
+ label: elementLabel,
+ hasValue: hasElement,
+ resetValue: resetElement,
+ isShownByDefault: defaultControls[name],
+ indicators: supportsBackground ? [
+ elementTextUserColor ?? elementTextColor,
+ elementGradientUserColor ?? elementGradient ?? elementBackgroundUserColor ?? elementBackgroundColor
+ ] : [elementTextUserColor ?? elementTextColor],
+ isPlaceholder: isElementPlaceholder,
+ hasInheritedValue: hasElementInheritedValue,
+ tabs: [
+ hasSolidColors && {
+ key: "text",
+ label: (0, import_i18n192.__)("Text"),
+ inheritedValue: elementTextColor,
+ inheritedSlug: extractPresetSlug(
+ inheritedValue?.elements?.[name]?.color?.text,
+ "color"
+ ),
+ userSlug: extractPresetSlug(
+ value?.elements?.[name]?.color?.text,
+ "color"
+ ),
+ setValue: setElementTextColor,
+ userValue: elementTextUserColor,
+ isPlaceholder: isElementTextPlaceholder
+ },
+ hasSolidColors && supportsBackground && {
+ key: "background",
+ label: (0, import_i18n192.__)("Background"),
+ inheritedValue: elementBackgroundColor,
+ inheritedSlug: extractPresetSlug(
+ inheritedValue?.elements?.[name]?.color?.background,
+ "color"
+ ),
+ userSlug: extractPresetSlug(
+ value?.elements?.[name]?.color?.background,
+ "color"
+ ),
+ setValue: setElementBackgroundColor,
+ userValue: elementBackgroundUserColor,
+ isPlaceholder: isElementBackgroundPlaceholder
+ },
+ hasGradientColors && supportsBackground && {
+ key: "gradient",
+ label: (0, import_i18n192.__)("Gradient"),
+ inheritedValue: elementGradient,
+ inheritedSlug: extractPresetSlug(
+ inheritedValue?.elements?.[name]?.color?.gradient,
+ "gradient"
+ ),
+ userSlug: extractPresetSlug(
+ value?.elements?.[name]?.color?.gradient,
+ "gradient"
+ ),
+ setValue: setElementGradient,
+ userValue: elementGradientUserColor,
+ isGradient: true,
+ isPlaceholder: isElementGradientPlaceholder
+ }
+ ].filter(Boolean)
+ });
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime431.jsxs)(
+ Wrapper,
+ {
+ resetAllFilter,
+ value,
+ onChange,
+ panelId,
+ label,
+ children: [
+ items.map((item) => {
+ const { key, ...restItem } = item;
+ return /* @__PURE__ */ (0, import_jsx_runtime431.jsx)(
+ ColorGradientDropdownItem,
+ {
+ ...restItem,
+ showInheritanceLabelIndicators,
+ colorGradientControlSettings: {
+ colors: colors2,
+ disableCustomColors: !areCustomSolidsEnabled,
+ gradients,
+ disableCustomGradients: !areCustomGradientsEnabled
+ },
+ panelId
+ },
+ key
+ );
+ }),
+ children
+ ]
+ }
+ );
}
- // packages/dataviews/node_modules/date-fns/addYears.js
- function addYears(date, amount, options) {
- return addMonths(date, amount * 12, options);
+ // packages/block-editor/build-module/components/global-styles/typography-utils.mjs
+ function getMergedFontFamiliesAndFontFamilyFaces(settings2, selectedFontFamily) {
+ const fontFamiliesFromSettings = settings2?.typography?.fontFamilies;
+ const fontFamilies = ["default", "theme", "custom"].flatMap(
+ (key) => fontFamiliesFromSettings?.[key] ?? []
+ );
+ const fontFamilyFaces = fontFamilies.find(
+ (family) => family.fontFamily === selectedFontFamily
+ )?.fontFace ?? [];
+ return { fontFamilies, fontFamilyFaces };
}
-
- // packages/dataviews/node_modules/date-fns/isDate.js
- function isDate(value) {
- return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
+ function findNearestFontWeight(availableFontWeights, newFontWeightValue) {
+ newFontWeightValue = "number" === typeof newFontWeightValue ? newFontWeightValue.toString() : newFontWeightValue;
+ if (!newFontWeightValue || typeof newFontWeightValue !== "string") {
+ return "";
+ }
+ if (!availableFontWeights || availableFontWeights.length === 0) {
+ return newFontWeightValue;
+ }
+ const nearestFontWeight = availableFontWeights?.reduce(
+ (nearest, { value: fw }) => {
+ const currentDiff = Math.abs(
+ parseInt(fw) - parseInt(newFontWeightValue)
+ );
+ const nearestDiff = Math.abs(
+ parseInt(nearest) - parseInt(newFontWeightValue)
+ );
+ return currentDiff < nearestDiff ? fw : nearest;
+ },
+ availableFontWeights[0]?.value
+ );
+ return nearestFontWeight;
}
-
- // packages/dataviews/node_modules/date-fns/isValid.js
- function isValid(date) {
- return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
+ function findNearestFontStyle(availableFontStyles, newFontStyleValue) {
+ if (typeof newFontStyleValue !== "string" || !newFontStyleValue) {
+ return "";
+ }
+ const validStyles = ["normal", "italic", "oblique"];
+ if (!validStyles.includes(newFontStyleValue)) {
+ return "";
+ }
+ if (!availableFontStyles || availableFontStyles.length === 0 || availableFontStyles.find(
+ (style) => style.value === newFontStyleValue
+ )) {
+ return newFontStyleValue;
+ }
+ if (newFontStyleValue === "oblique" && !availableFontStyles.find((style) => style.value === "oblique")) {
+ return "italic";
+ }
+ return "";
}
-
- // packages/dataviews/node_modules/date-fns/startOfMonth.js
- function startOfMonth(date, options) {
- const _date = toDate(date, options?.in);
- _date.setDate(1);
- _date.setHours(0, 0, 0, 0);
- return _date;
+ function findNearestStyleAndWeight(fontFamilyFaces, fontStyle, fontWeight) {
+ let nearestFontStyle = fontStyle;
+ let nearestFontWeight = fontWeight;
+ const { fontStyles, fontWeights, combinedStyleAndWeightOptions } = getFontStylesAndWeights(fontFamilyFaces);
+ const hasFontStyle = fontStyles?.some(
+ ({ value: fs }) => fs === fontStyle
+ );
+ const hasFontWeight = fontWeights?.some(
+ ({ value: fw }) => fw?.toString() === fontWeight?.toString()
+ );
+ if (!hasFontStyle) {
+ nearestFontStyle = fontStyle ? findNearestFontStyle(fontStyles, fontStyle) : combinedStyleAndWeightOptions?.find(
+ (option) => option.style.fontWeight === findNearestFontWeight(fontWeights, fontWeight)
+ )?.style?.fontStyle;
+ }
+ if (!hasFontWeight) {
+ nearestFontWeight = fontWeight ? findNearestFontWeight(fontWeights, fontWeight) : combinedStyleAndWeightOptions?.find(
+ (option) => option.style.fontStyle === (nearestFontStyle || fontStyle)
+ )?.style?.fontWeight;
+ }
+ return { nearestFontStyle, nearestFontWeight };
}
- // packages/dataviews/node_modules/date-fns/startOfYear.js
- function startOfYear(date, options) {
- const date_ = toDate(date, options?.in);
- date_.setFullYear(date_.getFullYear(), 0, 1);
- date_.setHours(0, 0, 0, 0);
- return date_;
+ // packages/block-editor/build-module/components/global-styles/typography-panel.mjs
+ var import_jsx_runtime432 = __toESM(require_jsx_runtime(), 1);
+ var MIN_TEXT_COLUMNS = 1;
+ var MAX_TEXT_COLUMNS = 6;
+ function shouldSyncLinkColor(value, inheritedValue) {
+ const localLinkColor = value?.elements?.link?.color?.text;
+ if (localLinkColor !== void 0) {
+ return localLinkColor === value?.color?.text;
+ }
+ const inheritedLinkColor = inheritedValue?.elements?.link?.color?.text;
+ return inheritedLinkColor === void 0 || inheritedValue?.color?.text === inheritedLinkColor;
}
-
- // packages/dataviews/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
- var formatDistanceLocale = {
- lessThanXSeconds: {
- one: "less than a second",
- other: "less than {{count}} seconds"
- },
- xSeconds: {
- one: "1 second",
- other: "{{count}} seconds"
- },
- halfAMinute: "half a minute",
- lessThanXMinutes: {
- one: "less than a minute",
- other: "less than {{count}} minutes"
- },
- xMinutes: {
- one: "1 minute",
- other: "{{count}} minutes"
- },
- aboutXHours: {
- one: "about 1 hour",
- other: "about {{count}} hours"
- },
- xHours: {
- one: "1 hour",
- other: "{{count}} hours"
- },
- xDays: {
- one: "1 day",
- other: "{{count}} days"
- },
- aboutXWeeks: {
- one: "about 1 week",
- other: "about {{count}} weeks"
- },
- xWeeks: {
- one: "1 week",
- other: "{{count}} weeks"
- },
- aboutXMonths: {
- one: "about 1 month",
- other: "about {{count}} months"
- },
- xMonths: {
- one: "1 month",
- other: "{{count}} months"
- },
- aboutXYears: {
- one: "about 1 year",
- other: "about {{count}} years"
- },
- xYears: {
- one: "1 year",
- other: "{{count}} years"
- },
- overXYears: {
- one: "over 1 year",
- other: "over {{count}} years"
- },
- almostXYears: {
- one: "almost 1 year",
- other: "almost {{count}} years"
- }
- };
- var formatDistance = (token, count, options) => {
- let result;
- const tokenValue = formatDistanceLocale[token];
- if (typeof tokenValue === "string") {
- result = tokenValue;
- } else if (count === 1) {
- result = tokenValue.one;
- } else {
- result = tokenValue.other.replace("{{count}}", count.toString());
- }
- if (options?.addSuffix) {
- if (options.comparison && options.comparison > 0) {
- return "in " + result;
- } else {
- return result + " ago";
- }
- }
- return result;
- };
-
- // packages/dataviews/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
- function buildFormatLongFn(args) {
- return (options = {}) => {
- const width = options.width ? String(options.width) : args.defaultWidth;
- const format6 = args.formats[width] || args.formats[args.defaultWidth];
- return format6;
- };
+ function useHasTypographyPanel(settings2) {
+ const hasFontFamily = useHasFontFamilyControl(settings2);
+ const hasLineHeight = useHasLineHeightControl(settings2);
+ const hasFontAppearance = useHasAppearanceControl(settings2);
+ const hasLetterSpacing = useHasLetterSpacingControl(settings2);
+ const hasTextAlign = useHasTextAlignmentControl(settings2);
+ const hasTextTransform = useHasTextTransformControl(settings2);
+ const hasTextDecoration = useHasTextDecorationControl(settings2);
+ const hasTextIndent = useHasTextIndentControl(settings2);
+ const hasWritingMode = useHasWritingModeControl(settings2);
+ const hasTextColumns = useHasTextColumnsControl(settings2);
+ const hasFontSize = useHasFontSizeControl(settings2);
+ const hasTextColor = useHasTextPanel(settings2);
+ return hasFontFamily || hasLineHeight || hasFontAppearance || hasLetterSpacing || hasTextAlign || hasTextTransform || hasFontSize || hasTextDecoration || hasTextIndent || hasWritingMode || hasTextColumns || hasTextColor;
}
-
- // packages/dataviews/node_modules/date-fns/locale/en-US/_lib/formatLong.js
- var dateFormats = {
- full: "EEEE, MMMM do, y",
- long: "MMMM do, y",
- medium: "MMM d, y",
- short: "MM/dd/yyyy"
- };
- var timeFormats = {
- full: "h:mm:ss a zzzz",
- long: "h:mm:ss a z",
- medium: "h:mm:ss a",
- short: "h:mm a"
- };
- var dateTimeFormats = {
- full: "{{date}} 'at' {{time}}",
- long: "{{date}} 'at' {{time}}",
- medium: "{{date}}, {{time}}",
- short: "{{date}}, {{time}}"
- };
- var formatLong = {
- date: buildFormatLongFn({
- formats: dateFormats,
- defaultWidth: "full"
- }),
- time: buildFormatLongFn({
- formats: timeFormats,
- defaultWidth: "full"
- }),
- dateTime: buildFormatLongFn({
- formats: dateTimeFormats,
- defaultWidth: "full"
- })
- };
-
- // packages/dataviews/node_modules/date-fns/locale/en-US/_lib/formatRelative.js
- var formatRelativeLocale = {
- lastWeek: "'last' eeee 'at' p",
- yesterday: "'yesterday at' p",
- today: "'today at' p",
- tomorrow: "'tomorrow at' p",
- nextWeek: "eeee 'at' p",
- other: "P"
- };
- var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
-
- // packages/dataviews/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
- function buildLocalizeFn(args) {
- return (value, options) => {
- const context = options?.context ? String(options.context) : "standalone";
- let valuesArray;
- if (context === "formatting" && args.formattingValues) {
- const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
- const width = options?.width ? String(options.width) : defaultWidth;
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
- } else {
- const defaultWidth = args.defaultWidth;
- const width = options?.width ? String(options.width) : args.defaultWidth;
- valuesArray = args.values[width] || args.values[defaultWidth];
- }
- const index2 = args.argumentCallback ? args.argumentCallback(value) : value;
- return valuesArray[index2];
- };
+ function useHasFontSizeControl(settings2) {
+ return settings2?.typography?.defaultFontSizes !== false && settings2?.typography?.fontSizes?.default?.length || settings2?.typography?.fontSizes?.theme?.length || settings2?.typography?.fontSizes?.custom?.length || settings2?.typography?.customFontSize;
}
-
- // packages/dataviews/node_modules/date-fns/locale/en-US/_lib/localize.js
- var eraValues = {
- narrow: ["B", "A"],
- abbreviated: ["BC", "AD"],
- wide: ["Before Christ", "Anno Domini"]
- };
- var quarterValues = {
- narrow: ["1", "2", "3", "4"],
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
- };
- var monthValues = {
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
- abbreviated: [
- "Jan",
- "Feb",
- "Mar",
- "Apr",
- "May",
- "Jun",
- "Jul",
- "Aug",
- "Sep",
- "Oct",
- "Nov",
- "Dec"
- ],
- wide: [
- "January",
- "February",
- "March",
- "April",
- "May",
- "June",
- "July",
- "August",
- "September",
- "October",
- "November",
- "December"
- ]
- };
- var dayValues = {
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
- wide: [
- "Sunday",
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday"
- ]
- };
- var dayPeriodValues = {
- narrow: {
- am: "a",
- pm: "p",
- midnight: "mi",
- noon: "n",
- morning: "morning",
- afternoon: "afternoon",
- evening: "evening",
- night: "night"
- },
- abbreviated: {
- am: "AM",
- pm: "PM",
- midnight: "midnight",
- noon: "noon",
- morning: "morning",
- afternoon: "afternoon",
- evening: "evening",
- night: "night"
- },
- wide: {
- am: "a.m.",
- pm: "p.m.",
- midnight: "midnight",
- noon: "noon",
- morning: "morning",
- afternoon: "afternoon",
- evening: "evening",
- night: "night"
+ function useHasFontFamilyControl(settings2) {
+ return ["default", "theme", "custom"].some(
+ (key) => settings2?.typography?.fontFamilies?.[key]?.length
+ );
+ }
+ function useHasLineHeightControl(settings2) {
+ return settings2?.typography?.lineHeight;
+ }
+ function useHasAppearanceControl(settings2) {
+ return settings2?.typography?.fontStyle || settings2?.typography?.fontWeight;
+ }
+ function useAppearanceControlLabel(settings2) {
+ if (!settings2?.typography?.fontStyle) {
+ return (0, import_i18n193.__)("Font weight");
}
- };
- var formattingDayPeriodValues = {
- narrow: {
- am: "a",
- pm: "p",
- midnight: "mi",
- noon: "n",
- morning: "in the morning",
- afternoon: "in the afternoon",
- evening: "in the evening",
- night: "at night"
- },
- abbreviated: {
- am: "AM",
- pm: "PM",
- midnight: "midnight",
- noon: "noon",
- morning: "in the morning",
- afternoon: "in the afternoon",
- evening: "in the evening",
- night: "at night"
- },
- wide: {
- am: "a.m.",
- pm: "p.m.",
- midnight: "midnight",
- noon: "noon",
- morning: "in the morning",
- afternoon: "in the afternoon",
- evening: "in the evening",
- night: "at night"
+ if (!settings2?.typography?.fontWeight) {
+ return (0, import_i18n193.__)("Font style");
}
- };
- var ordinalNumber = (dirtyNumber, _options) => {
- const number = Number(dirtyNumber);
- const rem100 = number % 100;
- if (rem100 > 20 || rem100 < 10) {
- switch (rem100 % 10) {
- case 1:
- return number + "st";
- case 2:
- return number + "nd";
- case 3:
- return number + "rd";
+ return (0, import_i18n193.__)("Appearance");
+ }
+ function useHasLetterSpacingControl(settings2) {
+ return settings2?.typography?.letterSpacing;
+ }
+ function useHasTextTransformControl(settings2) {
+ return settings2?.typography?.textTransform;
+ }
+ function useHasTextAlignmentControl(settings2) {
+ return settings2?.typography?.textAlign;
+ }
+ function useHasTextDecorationControl(settings2) {
+ return settings2?.typography?.textDecoration;
+ }
+ function useHasWritingModeControl(settings2) {
+ return settings2?.typography?.writingMode;
+ }
+ function useHasTextColumnsControl(settings2) {
+ return settings2?.typography?.textColumns;
+ }
+ function useHasTextIndentControl(settings2) {
+ return settings2?.typography?.textIndent;
+ }
+ function getMergedFontSizes(settings2) {
+ const fontSizes = settings2?.typography?.fontSizes;
+ const defaultFontSizesEnabled = !!settings2?.typography?.defaultFontSizes;
+ return [
+ ...fontSizes?.custom ?? [],
+ ...fontSizes?.theme ?? [],
+ ...defaultFontSizesEnabled ? fontSizes?.default ?? [] : []
+ ];
+ }
+ function TypographyToolsPanel({
+ resetAllFilter,
+ onChange,
+ value,
+ panelId,
+ children
+ }) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const resetAll = () => {
+ const updatedValue = resetAllFilter(value);
+ onChange(updatedValue);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ import_components197.__experimentalToolsPanel,
+ {
+ label: (0, import_i18n193.__)("Typography"),
+ resetAll,
+ panelId,
+ __experimentalFirstVisibleItemClass: "first",
+ dropdownMenuProps,
+ children
}
- }
- return number + "th";
- };
- var localize = {
- ordinalNumber,
- era: buildLocalizeFn({
- values: eraValues,
- defaultWidth: "wide"
- }),
- quarter: buildLocalizeFn({
- values: quarterValues,
- defaultWidth: "wide",
- argumentCallback: (quarter) => quarter - 1
- }),
- month: buildLocalizeFn({
- values: monthValues,
- defaultWidth: "wide"
- }),
- day: buildLocalizeFn({
- values: dayValues,
- defaultWidth: "wide"
- }),
- dayPeriod: buildLocalizeFn({
- values: dayPeriodValues,
- defaultWidth: "wide",
- formattingValues: formattingDayPeriodValues,
- defaultFormattingWidth: "wide"
- })
+ );
+ }
+ var DEFAULT_CONTROLS4 = {
+ textColor: true,
+ fontFamily: true,
+ fontSize: true,
+ fontAppearance: true,
+ lineHeight: true,
+ letterSpacing: true,
+ textAlign: true,
+ textTransform: true,
+ textDecoration: true,
+ textIndent: true,
+ writingMode: true,
+ textColumns: true
};
-
- // packages/dataviews/node_modules/date-fns/locale/_lib/buildMatchFn.js
- function buildMatchFn(args) {
- return (string, options = {}) => {
- const width = options.width;
- const matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
- const matchResult = string.match(matchPattern);
- if (!matchResult) {
- return null;
- }
- const matchedString = matchResult[0];
- const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
- const key = Array.isArray(parsePatterns) ? findIndex2(parsePatterns, (pattern) => pattern.test(matchedString)) : (
- // [TODO] -- I challenge you to fix the type
- findKey(parsePatterns, (pattern) => pattern.test(matchedString))
- );
- let value;
- value = args.valueCallback ? args.valueCallback(key) : key;
- value = options.valueCallback ? (
- // [TODO] -- I challenge you to fix the type
- options.valueCallback(value)
- ) : value;
- const rest = string.slice(matchedString.length);
- return { value, rest };
- };
+ var EMPTY_VALUES = [void 0, null, ""];
+ function hasValue(value) {
+ return !EMPTY_VALUES.includes(value);
}
- function findKey(object, predicate) {
- for (const key in object) {
- if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
- return key;
- }
+ function getNumericPlaceholder(rawValue) {
+ if (!hasValue(rawValue)) {
+ return void 0;
}
- return void 0;
+ const [quantity] = (0, import_components197.__experimentalParseQuantityAndUnitFromRawValue)(rawValue);
+ return quantity;
}
- function findIndex2(array, predicate) {
- for (let key = 0; key < array.length; key++) {
- if (predicate(array[key])) {
- return key;
+ function TypographyPanel({
+ as: Wrapper = TypographyToolsPanel,
+ value,
+ onChange,
+ inheritedValue = value,
+ settings: settings2,
+ panelId,
+ defaultControls = DEFAULT_CONTROLS4,
+ isGlobalStyles = false,
+ showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled(),
+ contrastWarning
+ }) {
+ const { colors: colors2, allColors, areCustomSolidsEnabled, decodeValue } = useColorGradientSettings(settings2);
+ const inheritanceProps = (isInherited, hasLocalOverride, className2) => getInheritanceProps(
+ showInheritanceLabelIndicators && isInherited,
+ showInheritanceLabelIndicators && hasLocalOverride,
+ className2
+ );
+ const hasTextColorEnabled = useHasTextPanel(settings2);
+ const textColor = decodeValue(inheritedValue?.color?.text);
+ const userTextColor = decodeValue(value?.color?.text);
+ const hasTextColorValue = () => !!value?.color?.text;
+ const setTextColor = (newColor, newSlug) => {
+ const encoded = encodeColorValueWithPalette(
+ allColors,
+ newColor,
+ newSlug
+ );
+ let changedObject = setImmutably2(value, ["color", "text"], encoded);
+ const syncLinkColor = isGlobalStylesInheritanceEnabled() ? shouldSyncLinkColor(value, inheritedValue) : inheritedValue?.color?.text === inheritedValue?.elements?.link?.color?.text;
+ if (syncLinkColor) {
+ changedObject = setImmutably2(
+ changedObject,
+ ["elements", "link", "color", "text"],
+ encoded
+ );
}
- }
- return void 0;
- }
-
- // packages/dataviews/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
- function buildMatchPatternFn(args) {
- return (string, options = {}) => {
- const matchResult = string.match(args.matchPattern);
- if (!matchResult) return null;
- const matchedString = matchResult[0];
- const parseResult = string.match(args.parsePattern);
- if (!parseResult) return null;
- let value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
- value = options.valueCallback ? options.valueCallback(value) : value;
- const rest = string.slice(matchedString.length);
- return { value, rest };
+ onChange(changedObject);
};
- }
-
- // packages/dataviews/node_modules/date-fns/locale/en-US/_lib/match.js
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
- var parseOrdinalNumberPattern = /\d+/i;
- var matchEraPatterns = {
- narrow: /^(b|a)/i,
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
- wide: /^(before christ|before common era|anno domini|common era)/i
- };
- var parseEraPatterns = {
- any: [/^b/i, /^(a|c)/i]
- };
- var matchQuarterPatterns = {
- narrow: /^[1234]/i,
- abbreviated: /^q[1234]/i,
- wide: /^[1234](th|st|nd|rd)? quarter/i
- };
- var parseQuarterPatterns = {
- any: [/1/i, /2/i, /3/i, /4/i]
- };
- var matchMonthPatterns = {
- narrow: /^[jfmasond]/i,
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
- };
- var parseMonthPatterns = {
- narrow: [
- /^j/i,
- /^f/i,
- /^m/i,
- /^a/i,
- /^m/i,
- /^j/i,
- /^j/i,
- /^a/i,
- /^s/i,
- /^o/i,
- /^n/i,
- /^d/i
- ],
- any: [
- /^ja/i,
- /^f/i,
- /^mar/i,
- /^ap/i,
- /^may/i,
- /^jun/i,
- /^jul/i,
- /^au/i,
- /^s/i,
- /^o/i,
- /^n/i,
- /^d/i
- ]
- };
- var matchDayPatterns = {
- narrow: /^[smtwf]/i,
- short: /^(su|mo|tu|we|th|fr|sa)/i,
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
- };
- var parseDayPatterns = {
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
- };
- var matchDayPeriodPatterns = {
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
- };
- var parseDayPeriodPatterns = {
- any: {
- am: /^a/i,
- pm: /^p/i,
- midnight: /^mi/i,
- noon: /^no/i,
- morning: /morning/i,
- afternoon: /afternoon/i,
- evening: /evening/i,
- night: /night/i
- }
- };
- var match = {
- ordinalNumber: buildMatchPatternFn({
- matchPattern: matchOrdinalNumberPattern,
- parsePattern: parseOrdinalNumberPattern,
- valueCallback: (value) => parseInt(value, 10)
- }),
- era: buildMatchFn({
- matchPatterns: matchEraPatterns,
- defaultMatchWidth: "wide",
- parsePatterns: parseEraPatterns,
- defaultParseWidth: "any"
- }),
- quarter: buildMatchFn({
- matchPatterns: matchQuarterPatterns,
- defaultMatchWidth: "wide",
- parsePatterns: parseQuarterPatterns,
- defaultParseWidth: "any",
- valueCallback: (index2) => index2 + 1
- }),
- month: buildMatchFn({
- matchPatterns: matchMonthPatterns,
- defaultMatchWidth: "wide",
- parsePatterns: parseMonthPatterns,
- defaultParseWidth: "any"
- }),
- day: buildMatchFn({
- matchPatterns: matchDayPatterns,
- defaultMatchWidth: "wide",
- parsePatterns: parseDayPatterns,
- defaultParseWidth: "any"
- }),
- dayPeriod: buildMatchFn({
- matchPatterns: matchDayPeriodPatterns,
- defaultMatchWidth: "any",
- parsePatterns: parseDayPeriodPatterns,
- defaultParseWidth: "any"
- })
- };
-
- // packages/dataviews/node_modules/date-fns/locale/en-US.js
- var enUS = {
- code: "en-US",
- formatDistance,
- formatLong,
- formatRelative,
- localize,
- match,
- options: {
- weekStartsOn: 0,
- firstWeekContainsDate: 1
- }
- };
-
- // packages/dataviews/node_modules/date-fns/getDayOfYear.js
- function getDayOfYear(date, options) {
- const _date = toDate(date, options?.in);
- const diff = differenceInCalendarDays(_date, startOfYear(_date));
- const dayOfYear = diff + 1;
- return dayOfYear;
- }
-
- // packages/dataviews/node_modules/date-fns/getISOWeek.js
- function getISOWeek(date, options) {
- const _date = toDate(date, options?.in);
- const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);
- return Math.round(diff / millisecondsInWeek) + 1;
- }
-
- // packages/dataviews/node_modules/date-fns/getWeekYear.js
- function getWeekYear(date, options) {
- const _date = toDate(date, options?.in);
- const year = _date.getFullYear();
- const defaultOptions2 = getDefaultOptions();
- const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
- const firstWeekOfNextYear = constructFrom(options?.in || date, 0);
- firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
- firstWeekOfNextYear.setHours(0, 0, 0, 0);
- const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);
- const firstWeekOfThisYear = constructFrom(options?.in || date, 0);
- firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
- firstWeekOfThisYear.setHours(0, 0, 0, 0);
- const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);
- if (+_date >= +startOfNextYear) {
- return year + 1;
- } else if (+_date >= +startOfThisYear) {
- return year;
- } else {
- return year - 1;
- }
- }
-
- // packages/dataviews/node_modules/date-fns/startOfWeekYear.js
- function startOfWeekYear(date, options) {
- const defaultOptions2 = getDefaultOptions();
- const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
- const year = getWeekYear(date, options);
- const firstWeek = constructFrom(options?.in || date, 0);
- firstWeek.setFullYear(year, 0, firstWeekContainsDate);
- firstWeek.setHours(0, 0, 0, 0);
- const _date = startOfWeek(firstWeek, options);
- return _date;
- }
-
- // packages/dataviews/node_modules/date-fns/getWeek.js
- function getWeek(date, options) {
- const _date = toDate(date, options?.in);
- const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
- return Math.round(diff / millisecondsInWeek) + 1;
- }
-
- // packages/dataviews/node_modules/date-fns/_lib/addLeadingZeros.js
- function addLeadingZeros(number, targetLength) {
- const sign = number < 0 ? "-" : "";
- const output = Math.abs(number).toString().padStart(targetLength, "0");
- return sign + output;
- }
-
- // packages/dataviews/node_modules/date-fns/_lib/format/lightFormatters.js
- var lightFormatters = {
- // Year
- y(date, token) {
- const signedYear = date.getFullYear();
- const year = signedYear > 0 ? signedYear : 1 - signedYear;
- return addLeadingZeros(token === "yy" ? year % 100 : year, token.length);
- },
- // Month
- M(date, token) {
- const month = date.getMonth();
- return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2);
- },
- // Day of the month
- d(date, token) {
- return addLeadingZeros(date.getDate(), token.length);
- },
- // AM or PM
- a(date, token) {
- const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am";
- switch (token) {
- case "a":
- case "aa":
- return dayPeriodEnumValue.toUpperCase();
- case "aaa":
- return dayPeriodEnumValue;
- case "aaaaa":
- return dayPeriodEnumValue[0];
- case "aaaa":
- default:
- return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
- }
- },
- // Hour [1-12]
- h(date, token) {
- return addLeadingZeros(date.getHours() % 12 || 12, token.length);
- },
- // Hour [0-23]
- H(date, token) {
- return addLeadingZeros(date.getHours(), token.length);
- },
- // Minute
- m(date, token) {
- return addLeadingZeros(date.getMinutes(), token.length);
- },
- // Second
- s(date, token) {
- return addLeadingZeros(date.getSeconds(), token.length);
- },
- // Fraction of second
- S(date, token) {
- const numberOfDigits = token.length;
- const milliseconds = date.getMilliseconds();
- const fractionalSeconds = Math.trunc(
- milliseconds * Math.pow(10, numberOfDigits - 3)
+ const resetTextColor = () => setTextColor(void 0);
+ const hasFontFamilyEnabled = useHasFontFamilyControl(settings2);
+ const inheritedFontFamily = decodeValue(
+ inheritedValue?.typography?.fontFamily
+ );
+ const fontFamily = decodeValue(value?.typography?.fontFamily) ?? inheritedFontFamily;
+ const isFontFamilyPlaceholder = !hasValue(value?.typography?.fontFamily) && hasValue(inheritedFontFamily);
+ const { fontFamilies, fontFamilyFaces } = (0, import_element258.useMemo)(() => {
+ return getMergedFontFamiliesAndFontFamilyFaces(settings2, fontFamily);
+ }, [settings2, fontFamily]);
+ const setFontFamily = (newValue) => {
+ const slug = fontFamilies?.find(
+ ({ fontFamily: f2 }) => f2 === newValue
+ )?.slug;
+ const nextFontFamily = slug ? `var:preset|font-family|${slug}` : newValue;
+ let updatedValue = setImmutably2(
+ value,
+ ["typography", "fontFamily"],
+ hasValue(nextFontFamily) ? nextFontFamily : void 0
);
- return addLeadingZeros(fractionalSeconds, token.length);
- }
- };
-
- // packages/dataviews/node_modules/date-fns/_lib/format/formatters.js
- var dayPeriodEnum = {
- am: "am",
- pm: "pm",
- midnight: "midnight",
- noon: "noon",
- morning: "morning",
- afternoon: "afternoon",
- evening: "evening",
- night: "night"
- };
- var formatters = {
- // Era
- G: function(date, token, localize2) {
- const era = date.getFullYear() > 0 ? 1 : 0;
- switch (token) {
- // AD, BC
- case "G":
- case "GG":
- case "GGG":
- return localize2.era(era, { width: "abbreviated" });
- // A, B
- case "GGGGG":
- return localize2.era(era, { width: "narrow" });
- // Anno Domini, Before Christ
- case "GGGG":
- default:
- return localize2.era(era, { width: "wide" });
- }
- },
- // Year
- y: function(date, token, localize2) {
- if (token === "yo") {
- const signedYear = date.getFullYear();
- const year = signedYear > 0 ? signedYear : 1 - signedYear;
- return localize2.ordinalNumber(year, { unit: "year" });
+ const newFontFamilyFaces = fontFamilies?.find(({ fontFamily: f2 }) => f2 === newValue)?.fontFace ?? [];
+ const { fontStyles, fontWeights } = getFontStylesAndWeights(newFontFamilyFaces);
+ const hasFontStyle = fontStyles?.some(
+ ({ value: fs }) => fs === fontStyle
+ );
+ const hasFontWeight = fontWeights?.some(
+ ({ value: fw }) => fw?.toString() === fontWeight?.toString()
+ );
+ if (!hasFontStyle || !hasFontWeight) {
+ const { nearestFontStyle, nearestFontWeight } = findNearestStyleAndWeight(
+ newFontFamilyFaces,
+ fontStyle,
+ fontWeight
+ );
+ if (nearestFontStyle || nearestFontWeight) {
+ updatedValue = {
+ ...updatedValue,
+ typography: {
+ ...updatedValue?.typography,
+ fontStyle: hasValue(nearestFontStyle) ? nearestFontStyle : void 0,
+ fontWeight: hasValue(nearestFontWeight) ? nearestFontWeight : void 0
+ }
+ };
+ } else if (fontStyle || fontWeight) {
+ updatedValue = {
+ ...updatedValue,
+ typography: {
+ ...updatedValue?.typography,
+ fontStyle: void 0,
+ fontWeight: void 0
+ }
+ };
+ }
}
- return lightFormatters.y(date, token);
- },
- // Local week-numbering year
- Y: function(date, token, localize2, options) {
- const signedWeekYear = getWeekYear(date, options);
- const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
- if (token === "YY") {
- const twoDigitYear = weekYear % 100;
- return addLeadingZeros(twoDigitYear, 2);
+ onChange(updatedValue);
+ };
+ const hasFontFamily = () => hasValue(value?.typography?.fontFamily);
+ const resetFontFamily = () => setFontFamily(void 0);
+ const hasFontSizeEnabled = useHasFontSizeControl(settings2);
+ const disableCustomFontSizes = !settings2?.typography?.customFontSize;
+ const mergedFontSizes = getMergedFontSizes(settings2);
+ const rawLocalFontSize = value?.typography?.fontSize;
+ const rawInheritedFontSize = inheritedValue?.typography?.fontSize;
+ const rawFontSizeForDisplay = rawLocalFontSize ?? rawInheritedFontSize;
+ const fontSize = decodeValue(rawFontSizeForDisplay);
+ const inheritedFontSizeDecoded = decodeValue(rawInheritedFontSize);
+ const isFontSizePlaceholder = !hasValue(rawLocalFontSize) && hasValue(rawInheritedFontSize);
+ const extractSlug = (rawValue) => {
+ if (!rawValue || typeof rawValue !== "string") {
+ return void 0;
}
- if (token === "Yo") {
- return localize2.ordinalNumber(weekYear, { unit: "year" });
+ if (rawValue.startsWith("var:preset|font-size|")) {
+ return rawValue.replace("var:preset|font-size|", "");
}
- return addLeadingZeros(weekYear, token.length);
- },
- // ISO week-numbering year
- R: function(date, token) {
- const isoWeekYear = getISOWeekYear(date);
- return addLeadingZeros(isoWeekYear, token.length);
- },
- // Extended year. This is a single number designating the year of this calendar system.
- // The main difference between `y` and `u` localizers are B.C. years:
- // | Year | `y` | `u` |
- // |------|-----|-----|
- // | AC 1 | 1 | 1 |
- // | BC 1 | 1 | 0 |
- // | BC 2 | 2 | -1 |
- // Also `yy` always returns the last two digits of a year,
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
- u: function(date, token) {
- const year = date.getFullYear();
- return addLeadingZeros(year, token.length);
- },
- // Quarter
- Q: function(date, token, localize2) {
- const quarter = Math.ceil((date.getMonth() + 1) / 3);
- switch (token) {
- // 1, 2, 3, 4
- case "Q":
- return String(quarter);
- // 01, 02, 03, 04
- case "QQ":
- return addLeadingZeros(quarter, 2);
- // 1st, 2nd, 3rd, 4th
- case "Qo":
- return localize2.ordinalNumber(quarter, { unit: "quarter" });
- // Q1, Q2, Q3, Q4
- case "QQQ":
- return localize2.quarter(quarter, {
- width: "abbreviated",
- context: "formatting"
- });
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
- case "QQQQQ":
- return localize2.quarter(quarter, {
- width: "narrow",
- context: "formatting"
- });
- // 1st quarter, 2nd quarter, ...
- case "QQQQ":
- default:
- return localize2.quarter(quarter, {
- width: "wide",
- context: "formatting"
- });
+ const cssVarMatch = rawValue.match(
+ /^var\(--wp--preset--font-size--([^)]+)\)$/
+ );
+ if (cssVarMatch) {
+ return cssVarMatch[1];
}
- },
- // Stand-alone quarter
- q: function(date, token, localize2) {
- const quarter = Math.ceil((date.getMonth() + 1) / 3);
- switch (token) {
- // 1, 2, 3, 4
- case "q":
- return String(quarter);
- // 01, 02, 03, 04
- case "qq":
- return addLeadingZeros(quarter, 2);
- // 1st, 2nd, 3rd, 4th
- case "qo":
- return localize2.ordinalNumber(quarter, { unit: "quarter" });
- // Q1, Q2, Q3, Q4
- case "qqq":
- return localize2.quarter(quarter, {
- width: "abbreviated",
- context: "standalone"
- });
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
- case "qqqqq":
- return localize2.quarter(quarter, {
- width: "narrow",
- context: "standalone"
- });
- // 1st quarter, 2nd quarter, ...
- case "qqqq":
- default:
- return localize2.quarter(quarter, {
- width: "wide",
- context: "standalone"
- });
+ return void 0;
+ };
+ const currentFontSizeSlug = extractSlug(rawFontSizeForDisplay);
+ const inheritedFontSizeSlug = extractSlug(rawInheritedFontSize);
+ const setFontSize = (newValue, metadata) => {
+ const actualValue = !!metadata?.slug ? `var:preset|font-size|${metadata?.slug}` : newValue;
+ onChange(
+ setImmutably2(
+ value,
+ ["typography", "fontSize"],
+ hasValue(actualValue) ? actualValue : void 0
+ )
+ );
+ };
+ const setFontSizeWithInheritedCommit = (newValue, metadata) => {
+ if (isFontSizePlaceholder && newValue === void 0 && !metadata) {
+ if (inheritedFontSizeSlug) {
+ setFontSize(void 0, { slug: inheritedFontSizeSlug });
+ } else {
+ setFontSize(inheritedFontSizeDecoded);
+ }
+ return;
}
- },
- // Month
- M: function(date, token, localize2) {
- const month = date.getMonth();
- switch (token) {
- case "M":
- case "MM":
- return lightFormatters.M(date, token);
- // 1st, 2nd, ..., 12th
- case "Mo":
- return localize2.ordinalNumber(month + 1, { unit: "month" });
- // Jan, Feb, ..., Dec
- case "MMM":
- return localize2.month(month, {
- width: "abbreviated",
- context: "formatting"
+ setFontSize(newValue, metadata);
+ };
+ const hasFontSize = () => hasValue(value?.typography?.fontSize);
+ const resetFontSize = () => setFontSize(void 0);
+ const hasAppearanceControl = useHasAppearanceControl(settings2);
+ const appearanceControlLabel = useAppearanceControlLabel(settings2);
+ const hasFontStyles = settings2?.typography?.fontStyle;
+ const hasFontWeights = settings2?.typography?.fontWeight;
+ const inheritedFontStyle = decodeValue(
+ inheritedValue?.typography?.fontStyle
+ );
+ const inheritedFontWeight = decodeValue(
+ inheritedValue?.typography?.fontWeight
+ );
+ const fontStyle = decodeValue(value?.typography?.fontStyle) ?? inheritedFontStyle;
+ const fontWeight = decodeValue(value?.typography?.fontWeight) ?? inheritedFontWeight;
+ const isFontAppearancePlaceholder = !hasValue(value?.typography?.fontStyle) && !hasValue(value?.typography?.fontWeight) && (hasValue(inheritedFontStyle) || hasValue(inheritedFontWeight));
+ const setFontAppearance = (0, import_element258.useCallback)(
+ ({ fontStyle: newFontStyle, fontWeight: newFontWeight }) => {
+ if (newFontStyle !== fontStyle || newFontWeight !== fontWeight) {
+ onChange({
+ ...value,
+ typography: {
+ ...value?.typography,
+ fontStyle: hasValue(newFontStyle) ? newFontStyle : void 0,
+ fontWeight: hasValue(newFontWeight) ? newFontWeight : void 0
+ }
});
- // J, F, ..., D
- case "MMMMM":
- return localize2.month(month, {
- width: "narrow",
- context: "formatting"
+ }
+ },
+ [fontStyle, fontWeight, onChange, value]
+ );
+ const setFontAppearanceWithInheritedCommit = (0, import_element258.useCallback)(
+ (next) => {
+ if (isFontAppearancePlaceholder && next.fontStyle === fontStyle && next.fontWeight === fontWeight) {
+ onChange({
+ ...value,
+ typography: {
+ ...value?.typography,
+ fontStyle: hasValue(fontStyle) ? fontStyle : void 0,
+ fontWeight: hasValue(fontWeight) ? fontWeight : void 0
+ }
});
- // January, February, ..., December
- case "MMMM":
- default:
- return localize2.month(month, { width: "wide", context: "formatting" });
- }
- },
- // Stand-alone month
- L: function(date, token, localize2) {
- const month = date.getMonth();
- switch (token) {
- // 1, 2, ..., 12
- case "L":
- return String(month + 1);
- // 01, 02, ..., 12
- case "LL":
- return addLeadingZeros(month + 1, 2);
- // 1st, 2nd, ..., 12th
- case "Lo":
- return localize2.ordinalNumber(month + 1, { unit: "month" });
- // Jan, Feb, ..., Dec
- case "LLL":
- return localize2.month(month, {
- width: "abbreviated",
- context: "standalone"
- });
- // J, F, ..., D
- case "LLLLL":
- return localize2.month(month, {
- width: "narrow",
- context: "standalone"
- });
- // January, February, ..., December
- case "LLLL":
- default:
- return localize2.month(month, { width: "wide", context: "standalone" });
- }
- },
- // Local week of year
- w: function(date, token, localize2, options) {
- const week = getWeek(date, options);
- if (token === "wo") {
- return localize2.ordinalNumber(week, { unit: "week" });
- }
- return addLeadingZeros(week, token.length);
- },
- // ISO week of year
- I: function(date, token, localize2) {
- const isoWeek = getISOWeek(date);
- if (token === "Io") {
- return localize2.ordinalNumber(isoWeek, { unit: "week" });
- }
- return addLeadingZeros(isoWeek, token.length);
- },
- // Day of the month
- d: function(date, token, localize2) {
- if (token === "do") {
- return localize2.ordinalNumber(date.getDate(), { unit: "date" });
- }
- return lightFormatters.d(date, token);
- },
- // Day of year
- D: function(date, token, localize2) {
- const dayOfYear = getDayOfYear(date);
- if (token === "Do") {
- return localize2.ordinalNumber(dayOfYear, { unit: "dayOfYear" });
- }
- return addLeadingZeros(dayOfYear, token.length);
- },
- // Day of week
- E: function(date, token, localize2) {
- const dayOfWeek = date.getDay();
- switch (token) {
- // Tue
- case "E":
- case "EE":
- case "EEE":
- return localize2.day(dayOfWeek, {
- width: "abbreviated",
- context: "formatting"
- });
- // T
- case "EEEEE":
- return localize2.day(dayOfWeek, {
- width: "narrow",
- context: "formatting"
- });
- // Tu
- case "EEEEEE":
- return localize2.day(dayOfWeek, {
- width: "short",
- context: "formatting"
- });
- // Tuesday
- case "EEEE":
- default:
- return localize2.day(dayOfWeek, {
- width: "wide",
- context: "formatting"
- });
- }
- },
- // Local day of week
- e: function(date, token, localize2, options) {
- const dayOfWeek = date.getDay();
- const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
- switch (token) {
- // Numerical value (Nth day of week with current locale or weekStartsOn)
- case "e":
- return String(localDayOfWeek);
- // Padded numerical value
- case "ee":
- return addLeadingZeros(localDayOfWeek, 2);
- // 1st, 2nd, ..., 7th
- case "eo":
- return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
- case "eee":
- return localize2.day(dayOfWeek, {
- width: "abbreviated",
- context: "formatting"
- });
- // T
- case "eeeee":
- return localize2.day(dayOfWeek, {
- width: "narrow",
- context: "formatting"
- });
- // Tu
- case "eeeeee":
- return localize2.day(dayOfWeek, {
- width: "short",
- context: "formatting"
- });
- // Tuesday
- case "eeee":
- default:
- return localize2.day(dayOfWeek, {
- width: "wide",
- context: "formatting"
- });
- }
- },
- // Stand-alone local day of week
- c: function(date, token, localize2, options) {
- const dayOfWeek = date.getDay();
- const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
- switch (token) {
- // Numerical value (same as in `e`)
- case "c":
- return String(localDayOfWeek);
- // Padded numerical value
- case "cc":
- return addLeadingZeros(localDayOfWeek, token.length);
- // 1st, 2nd, ..., 7th
- case "co":
- return localize2.ordinalNumber(localDayOfWeek, { unit: "day" });
- case "ccc":
- return localize2.day(dayOfWeek, {
- width: "abbreviated",
- context: "standalone"
- });
- // T
- case "ccccc":
- return localize2.day(dayOfWeek, {
- width: "narrow",
- context: "standalone"
- });
- // Tu
- case "cccccc":
- return localize2.day(dayOfWeek, {
- width: "short",
- context: "standalone"
- });
- // Tuesday
- case "cccc":
- default:
- return localize2.day(dayOfWeek, {
- width: "wide",
- context: "standalone"
- });
- }
- },
- // ISO day of week
- i: function(date, token, localize2) {
- const dayOfWeek = date.getDay();
- const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
- switch (token) {
- // 2
- case "i":
- return String(isoDayOfWeek);
- // 02
- case "ii":
- return addLeadingZeros(isoDayOfWeek, token.length);
- // 2nd
- case "io":
- return localize2.ordinalNumber(isoDayOfWeek, { unit: "day" });
- // Tue
- case "iii":
- return localize2.day(dayOfWeek, {
- width: "abbreviated",
- context: "formatting"
- });
- // T
- case "iiiii":
- return localize2.day(dayOfWeek, {
- width: "narrow",
- context: "formatting"
- });
- // Tu
- case "iiiiii":
- return localize2.day(dayOfWeek, {
- width: "short",
- context: "formatting"
- });
- // Tuesday
- case "iiii":
- default:
- return localize2.day(dayOfWeek, {
- width: "wide",
- context: "formatting"
- });
- }
- },
- // AM or PM
- a: function(date, token, localize2) {
- const hours = date.getHours();
- const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
- switch (token) {
- case "a":
- case "aa":
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "abbreviated",
- context: "formatting"
- });
- case "aaa":
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "abbreviated",
- context: "formatting"
- }).toLowerCase();
- case "aaaaa":
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "narrow",
- context: "formatting"
- });
- case "aaaa":
- default:
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "wide",
- context: "formatting"
- });
- }
- },
- // AM, PM, midnight, noon
- b: function(date, token, localize2) {
- const hours = date.getHours();
- let dayPeriodEnumValue;
- if (hours === 12) {
- dayPeriodEnumValue = dayPeriodEnum.noon;
- } else if (hours === 0) {
- dayPeriodEnumValue = dayPeriodEnum.midnight;
- } else {
- dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
- }
- switch (token) {
- case "b":
- case "bb":
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "abbreviated",
- context: "formatting"
- });
- case "bbb":
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "abbreviated",
- context: "formatting"
- }).toLowerCase();
- case "bbbbb":
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "narrow",
- context: "formatting"
- });
- case "bbbb":
- default:
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "wide",
- context: "formatting"
- });
- }
- },
- // in the morning, in the afternoon, in the evening, at night
- B: function(date, token, localize2) {
- const hours = date.getHours();
- let dayPeriodEnumValue;
- if (hours >= 17) {
- dayPeriodEnumValue = dayPeriodEnum.evening;
- } else if (hours >= 12) {
- dayPeriodEnumValue = dayPeriodEnum.afternoon;
- } else if (hours >= 4) {
- dayPeriodEnumValue = dayPeriodEnum.morning;
- } else {
- dayPeriodEnumValue = dayPeriodEnum.night;
+ return;
+ }
+ setFontAppearance(next);
+ },
+ [
+ isFontAppearancePlaceholder,
+ fontStyle,
+ fontWeight,
+ onChange,
+ value,
+ setFontAppearance
+ ]
+ );
+ const hasFontAppearance = () => hasValue(value?.typography?.fontStyle) || hasValue(value?.typography?.fontWeight);
+ const resetFontAppearance = (0, import_element258.useCallback)(() => {
+ setFontAppearance({});
+ }, [setFontAppearance]);
+ const hasLineHeightEnabled = useHasLineHeightControl(settings2);
+ const localLineHeight = decodeValue(value?.typography?.lineHeight);
+ const inheritedLineHeight = decodeValue(
+ inheritedValue?.typography?.lineHeight
+ );
+ const isLineHeightPlaceholder = !hasValue(value?.typography?.lineHeight) && hasValue(inheritedLineHeight);
+ const setLineHeight = (newValue) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["typography", "lineHeight"],
+ hasValue(newValue) ? newValue : void 0
+ )
+ );
+ };
+ const hasLineHeight = () => hasValue(value?.typography?.lineHeight);
+ const resetLineHeight = () => setLineHeight(void 0);
+ const hasLetterSpacingControl = useHasLetterSpacingControl(settings2);
+ const localLetterSpacing = decodeValue(value?.typography?.letterSpacing);
+ const inheritedLetterSpacing = decodeValue(
+ inheritedValue?.typography?.letterSpacing
+ );
+ const isLetterSpacingPlaceholder = !hasValue(value?.typography?.letterSpacing) && hasValue(inheritedLetterSpacing);
+ const setLetterSpacing = (newValue) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["typography", "letterSpacing"],
+ hasValue(newValue) ? newValue : void 0
+ )
+ );
+ };
+ const hasLetterSpacing = () => hasValue(value?.typography?.letterSpacing);
+ const resetLetterSpacing = () => setLetterSpacing(void 0);
+ const hasTextIndentControl = useHasTextIndentControl(settings2);
+ const localTextIndent = decodeValue(value?.typography?.textIndent);
+ const inheritedTextIndent = decodeValue(
+ inheritedValue?.typography?.textIndent
+ );
+ const isTextIndentPlaceholder = !hasValue(value?.typography?.textIndent) && hasValue(inheritedTextIndent);
+ const textIndentSetting = settings2?.typography?.textIndent ?? "subsequent";
+ const isTextIndentAll = textIndentSetting === "all";
+ const setTextIndentValue = (newValue) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["typography", "textIndent"],
+ hasValue(newValue) ? newValue : void 0
+ )
+ );
+ };
+ const onToggleTextIndentAll = (newValue) => {
+ onChange({
+ ...value,
+ settings: {
+ typography: {
+ textIndent: newValue ? "all" : "subsequent"
+ }
+ }
+ });
+ };
+ const hasTextIndent = () => hasValue(value?.typography?.textIndent);
+ const resetTextIndent = () => {
+ onChange(
+ setImmutably2(value, ["typography", "textIndent"], void 0)
+ );
+ };
+ const textIndentHelp = isTextIndentAll ? (0, import_i18n193.__)("Indents the first line of all paragraphs.") : (0, import_i18n193.__)("Indents the first line of each paragraph after the first one.");
+ const hasTextColumnsControl = useHasTextColumnsControl(settings2);
+ const localTextColumns = decodeValue(value?.typography?.textColumns);
+ const inheritedTextColumns = decodeValue(
+ inheritedValue?.typography?.textColumns
+ );
+ const isTextColumnsPlaceholder = !hasValue(value?.typography?.textColumns) && hasValue(inheritedTextColumns);
+ const setTextColumns = (newValue) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["typography", "textColumns"],
+ hasValue(newValue) ? newValue : void 0
+ )
+ );
+ };
+ const hasTextColumns = () => hasValue(value?.typography?.textColumns);
+ const resetTextColumns = () => setTextColumns(void 0);
+ const hasTextTransformControl = useHasTextTransformControl(settings2);
+ const inheritedTextTransform = decodeValue(
+ inheritedValue?.typography?.textTransform
+ );
+ const textTransform = decodeValue(value?.typography?.textTransform) ?? inheritedTextTransform;
+ const isTextTransformPlaceholder = !hasValue(value?.typography?.textTransform) && hasValue(inheritedTextTransform);
+ const setTextTransform = (newValue) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["typography", "textTransform"],
+ hasValue(newValue) ? newValue : void 0
+ )
+ );
+ };
+ const setTextTransformWithInheritedCommit = (newValue) => {
+ if (isTextTransformPlaceholder && newValue === void 0) {
+ setTextTransform(inheritedTextTransform);
+ return;
}
- switch (token) {
- case "B":
- case "BB":
- case "BBB":
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "abbreviated",
- context: "formatting"
- });
- case "BBBBB":
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "narrow",
- context: "formatting"
- });
- case "BBBB":
- default:
- return localize2.dayPeriod(dayPeriodEnumValue, {
- width: "wide",
- context: "formatting"
- });
+ setTextTransform(newValue);
+ };
+ const hasTextTransform = () => hasValue(value?.typography?.textTransform);
+ const resetTextTransform = () => setTextTransform(void 0);
+ const hasTextDecorationControl = useHasTextDecorationControl(settings2);
+ const inheritedTextDecoration = decodeValue(
+ inheritedValue?.typography?.textDecoration
+ );
+ const textDecoration = decodeValue(value?.typography?.textDecoration) ?? inheritedTextDecoration;
+ const isTextDecorationPlaceholder = !hasValue(value?.typography?.textDecoration) && hasValue(inheritedTextDecoration);
+ const setTextDecoration = (newValue) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["typography", "textDecoration"],
+ hasValue(newValue) ? newValue : void 0
+ )
+ );
+ };
+ const setTextDecorationWithInheritedCommit = (newValue) => {
+ if (isTextDecorationPlaceholder && newValue === void 0) {
+ setTextDecoration(inheritedTextDecoration);
+ return;
}
- },
- // Hour [1-12]
- h: function(date, token, localize2) {
- if (token === "ho") {
- let hours = date.getHours() % 12;
- if (hours === 0) hours = 12;
- return localize2.ordinalNumber(hours, { unit: "hour" });
+ setTextDecoration(newValue);
+ };
+ const hasTextDecoration = () => hasValue(value?.typography?.textDecoration);
+ const resetTextDecoration = () => setTextDecoration(void 0);
+ const hasWritingModeControl = useHasWritingModeControl(settings2);
+ const inheritedWritingMode = decodeValue(
+ inheritedValue?.typography?.writingMode
+ );
+ const writingMode = decodeValue(value?.typography?.writingMode) ?? inheritedWritingMode;
+ const isWritingModePlaceholder = !hasValue(value?.typography?.writingMode) && hasValue(inheritedWritingMode);
+ const setWritingMode = (newValue) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["typography", "writingMode"],
+ hasValue(newValue) ? newValue : void 0
+ )
+ );
+ };
+ const setWritingModeWithInheritedCommit = (newValue) => {
+ if (isWritingModePlaceholder && newValue === void 0) {
+ setWritingMode(inheritedWritingMode);
+ return;
}
- return lightFormatters.h(date, token);
- },
- // Hour [0-23]
- H: function(date, token, localize2) {
- if (token === "Ho") {
- return localize2.ordinalNumber(date.getHours(), { unit: "hour" });
+ setWritingMode(newValue);
+ };
+ const hasWritingMode = () => hasValue(value?.typography?.writingMode);
+ const resetWritingMode = () => setWritingMode(void 0);
+ const hasTextAlignmentControl = useHasTextAlignmentControl(settings2);
+ const inheritedTextAlign = decodeValue(
+ inheritedValue?.typography?.textAlign
+ );
+ const textAlign = decodeValue(value?.typography?.textAlign) ?? inheritedTextAlign;
+ const isTextAlignPlaceholder = !hasValue(value?.typography?.textAlign) && hasValue(inheritedTextAlign);
+ const setTextAlign = (newValue) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["typography", "textAlign"],
+ hasValue(newValue) ? newValue : void 0
+ )
+ );
+ };
+ const setTextAlignWithInheritedCommit = (newValue) => {
+ if (isTextAlignPlaceholder && newValue === void 0) {
+ setTextAlign(inheritedTextAlign);
+ return;
}
- return lightFormatters.H(date, token);
- },
- // Hour [0-11]
- K: function(date, token, localize2) {
- const hours = date.getHours() % 12;
- if (token === "Ko") {
- return localize2.ordinalNumber(hours, { unit: "hour" });
+ setTextAlign(newValue);
+ };
+ const hasTextAlign = () => hasValue(value?.typography?.textAlign);
+ const resetTextAlign = () => setTextAlign(void 0);
+ const resetAllFilter = (0, import_element258.useCallback)(
+ (previousValue) => {
+ if (!hasTextColorEnabled) {
+ return {
+ ...previousValue,
+ typography: {}
+ };
+ }
+ return {
+ ...previousValue,
+ typography: {},
+ color: {
+ ...previousValue?.color,
+ text: void 0
+ }
+ };
+ },
+ [hasTextColorEnabled]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime432.jsxs)(
+ Wrapper,
+ {
+ resetAllFilter,
+ value,
+ onChange,
+ panelId,
+ children: [
+ hasTextColorEnabled && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ ColorGradientDropdownItem,
+ {
+ label: (0, import_i18n193.__)("Color"),
+ hasValue: hasTextColorValue,
+ resetValue: resetTextColor,
+ isShownByDefault: defaultControls.textColor,
+ indicators: [userTextColor ?? textColor],
+ contrastWarning,
+ showInheritanceLabelIndicators,
+ isPlaceholder: userTextColor === void 0 && textColor !== void 0,
+ hasInheritedValue: textColor !== void 0,
+ tabs: [
+ {
+ key: "text",
+ label: (0, import_i18n193.__)("Color"),
+ inheritedValue: textColor,
+ inheritedSlug: extractPresetSlug(
+ inheritedValue?.color?.text,
+ "color"
+ ),
+ userSlug: extractPresetSlug(
+ value?.color?.text,
+ "color"
+ ),
+ setValue: setTextColor,
+ userValue: userTextColor,
+ isPlaceholder: userTextColor === void 0 && textColor !== void 0
+ }
+ ],
+ colorGradientControlSettings: {
+ colors: colors2,
+ disableCustomColors: !areCustomSolidsEnabled
+ },
+ panelId
+ }
+ ),
+ hasFontFamilyEnabled && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isFontFamilyPlaceholder,
+ hasFontFamily() && inheritedFontFamily !== void 0
+ ),
+ label: (0, import_i18n193.__)("Font"),
+ hasValue: hasFontFamily,
+ onDeselect: resetFontFamily,
+ isShownByDefault: defaultControls.fontFamily,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ FontFamilyControl,
+ {
+ fontFamilies,
+ value: fontFamily,
+ onChange: setFontFamily
+ }
+ )
+ }
+ ),
+ hasFontSizeEnabled && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isFontSizePlaceholder,
+ hasFontSize() && rawInheritedFontSize !== void 0
+ ),
+ label: (0, import_i18n193.__)("Size"),
+ hasValue: hasFontSize,
+ hasInlineEndToggle: true,
+ onDeselect: resetFontSize,
+ isShownByDefault: defaultControls.fontSize,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ import_components197.FontSizePicker,
+ {
+ value: currentFontSizeSlug || fontSize,
+ valueMode: currentFontSizeSlug ? "slug" : "literal",
+ onChange: setFontSizeWithInheritedCommit,
+ fontSizes: mergedFontSizes,
+ disableCustomFontSizes,
+ withReset: false,
+ withSlider: true
+ }
+ )
+ }
+ ),
+ hasAppearanceControl && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isFontAppearancePlaceholder,
+ hasFontAppearance() && (inheritedFontStyle !== void 0 || inheritedFontWeight !== void 0)
+ ),
+ label: appearanceControlLabel,
+ hasValue: hasFontAppearance,
+ onDeselect: resetFontAppearance,
+ isShownByDefault: defaultControls.fontAppearance,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ FontAppearanceControl,
+ {
+ value: {
+ fontStyle,
+ fontWeight
+ },
+ onChange: setFontAppearanceWithInheritedCommit,
+ hasFontStyles,
+ hasFontWeights,
+ fontFamilyFaces
+ }
+ )
+ }
+ ),
+ hasLineHeightEnabled && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isLineHeightPlaceholder,
+ hasLineHeight() && inheritedLineHeight !== void 0,
+ "single-column"
+ ),
+ label: (0, import_i18n193.__)("Line height"),
+ hasValue: hasLineHeight,
+ onDeselect: resetLineHeight,
+ isShownByDefault: defaultControls.lineHeight,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ line_height_control_default,
+ {
+ __unstableInputWidth: "auto",
+ value: localLineHeight ?? inheritedLineHeight,
+ onChange: setLineHeight,
+ ...isLineHeightPlaceholder ? {
+ placeholder: getNumericPlaceholder(
+ inheritedLineHeight
+ )
+ } : {}
+ }
+ )
+ }
+ ),
+ hasLetterSpacingControl && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isLetterSpacingPlaceholder,
+ hasLetterSpacing() && inheritedLetterSpacing !== void 0,
+ "single-column"
+ ),
+ label: (0, import_i18n193.__)("Letter spacing"),
+ hasValue: hasLetterSpacing,
+ onDeselect: resetLetterSpacing,
+ isShownByDefault: defaultControls.letterSpacing,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ LetterSpacingControl,
+ {
+ value: localLetterSpacing ?? inheritedLetterSpacing,
+ onChange: setLetterSpacing,
+ __unstableInputWidth: "auto",
+ placeholder: isLetterSpacingPlaceholder ? getNumericPlaceholder(
+ inheritedLetterSpacing
+ ) : void 0
+ }
+ )
+ }
+ ),
+ hasTextIndentControl && /* @__PURE__ */ (0, import_jsx_runtime432.jsxs)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isTextIndentPlaceholder,
+ hasTextIndent() && inheritedTextIndent !== void 0
+ ),
+ label: (0, import_i18n193.__)("Line indent"),
+ hasValue: hasTextIndent,
+ onDeselect: resetTextIndent,
+ isShownByDefault: defaultControls.textIndent,
+ panelId,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ TextIndentControl,
+ {
+ value: localTextIndent ?? inheritedTextIndent,
+ onChange: setTextIndentValue,
+ __unstableInputWidth: "auto",
+ withSlider: true,
+ hasBottomMargin: isGlobalStyles,
+ placeholder: isTextIndentPlaceholder ? getNumericPlaceholder(inheritedTextIndent) : void 0
+ }
+ ),
+ isGlobalStyles && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ import_components197.ToggleControl,
+ {
+ label: (0, import_i18n193.__)("Indent all paragraphs"),
+ checked: isTextIndentAll,
+ onChange: onToggleTextIndentAll,
+ help: textIndentHelp
+ }
+ )
+ ]
+ }
+ ),
+ hasTextColumnsControl && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isTextColumnsPlaceholder,
+ hasTextColumns() && inheritedTextColumns !== void 0,
+ "single-column"
+ ),
+ label: (0, import_i18n193.__)("Columns"),
+ hasValue: hasTextColumns,
+ onDeselect: resetTextColumns,
+ isShownByDefault: defaultControls.textColumns,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ import_components197.__experimentalNumberControl,
+ {
+ label: (0, import_i18n193.__)("Columns"),
+ max: MAX_TEXT_COLUMNS,
+ min: MIN_TEXT_COLUMNS,
+ onChange: setTextColumns,
+ placeholder: isTextColumnsPlaceholder ? inheritedTextColumns : void 0,
+ spinControls: "custom",
+ value: localTextColumns,
+ initialPosition: 1
+ }
+ )
+ }
+ ),
+ hasTextDecorationControl && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isTextDecorationPlaceholder,
+ hasTextDecoration() && inheritedTextDecoration !== void 0,
+ "single-column"
+ ),
+ label: (0, import_i18n193.__)("Decoration"),
+ hasValue: hasTextDecoration,
+ onDeselect: resetTextDecoration,
+ isShownByDefault: defaultControls.textDecoration,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ TextDecorationControl,
+ {
+ value: textDecoration,
+ onChange: setTextDecorationWithInheritedCommit,
+ __unstableInputWidth: "auto"
+ }
+ )
+ }
+ ),
+ hasWritingModeControl && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isWritingModePlaceholder,
+ hasWritingMode() && inheritedWritingMode !== void 0,
+ "single-column"
+ ),
+ label: (0, import_i18n193.__)("Orientation"),
+ hasValue: hasWritingMode,
+ onDeselect: resetWritingMode,
+ isShownByDefault: defaultControls.writingMode,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ WritingModeControl,
+ {
+ value: writingMode,
+ onChange: setWritingModeWithInheritedCommit
+ }
+ )
+ }
+ ),
+ hasTextTransformControl && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isTextTransformPlaceholder,
+ hasTextTransform() && inheritedTextTransform !== void 0
+ ),
+ label: (0, import_i18n193.__)("Letter case"),
+ hasValue: hasTextTransform,
+ onDeselect: resetTextTransform,
+ isShownByDefault: defaultControls.textTransform,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ TextTransformControl,
+ {
+ value: textTransform,
+ onChange: setTextTransformWithInheritedCommit,
+ showNone: true,
+ isBlock: true
+ }
+ )
+ }
+ ),
+ hasTextAlignmentControl && /* @__PURE__ */ (0, import_jsx_runtime432.jsxs)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isTextAlignPlaceholder,
+ hasTextAlign() && inheritedTextAlign !== void 0
+ ),
+ label: (0, import_i18n193.__)("Text alignment"),
+ hasValue: hasTextAlign,
+ onDeselect: resetTextAlign,
+ isShownByDefault: defaultControls.textAlign,
+ panelId,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(
+ TextAlignmentControl,
+ {
+ value: textAlign,
+ onChange: setTextAlignWithInheritedCommit,
+ options: ["left", "center", "right", "justify"]
+ }
+ ),
+ textAlign === "justify" && /* @__PURE__ */ (0, import_jsx_runtime432.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime432.jsx)(import_components197.Notice, { status: "warning", isDismissible: false, children: (0, import_i18n193.__)(
+ "Justified text can reduce readability. For better accessibility, use left-aligned text instead."
+ ) }) })
+ ]
+ }
+ )
+ ]
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/global-styles/dimensions-panel.mjs
+ var import_i18n196 = __toESM(require_i18n(), 1);
+ var import_components200 = __toESM(require_components(), 1);
+ var import_element260 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/components/child-layout-control/index.mjs
+ var import_components198 = __toESM(require_components(), 1);
+ var import_i18n194 = __toESM(require_i18n(), 1);
+ var import_element259 = __toESM(require_element(), 1);
+ var import_data164 = __toESM(require_data(), 1);
+
+ // packages/block-editor/build-module/components/grid/use-get-number-of-blocks-before-cell.mjs
+ var import_data163 = __toESM(require_data(), 1);
+ function useGetNumberOfBlocksBeforeCell(gridClientId, numColumns) {
+ const { getBlockOrder: getBlockOrder2, getBlockAttributes: getBlockAttributes3 } = (0, import_data163.useSelect)(store);
+ const getNumberOfBlocksBeforeCell = (column, row) => {
+ const targetIndex = (row - 1) * numColumns + column - 1;
+ let count = 0;
+ for (const clientId of getBlockOrder2(gridClientId)) {
+ const { columnStart, rowStart } = getBlockAttributes3(clientId).style?.layout ?? {};
+ const cellIndex = (rowStart - 1) * numColumns + columnStart - 1;
+ if (cellIndex < targetIndex) {
+ count++;
+ }
+ }
+ return count;
+ };
+ return getNumberOfBlocksBeforeCell;
+ }
+
+ // packages/block-editor/build-module/components/child-layout-control/index.mjs
+ var import_jsx_runtime433 = __toESM(require_jsx_runtime(), 1);
+ var FLEX_CHILD_LAYOUT_VALUES = {
+ fit: "fit",
+ grow: "fill",
+ max: "fixed",
+ fixed: "fixedNoShrink"
+ };
+ var FLEX_SIZE_VALUES = [
+ FLEX_CHILD_LAYOUT_VALUES.max,
+ FLEX_CHILD_LAYOUT_VALUES.fixed
+ ];
+ function isFlexSizeValue(value) {
+ return FLEX_SIZE_VALUES.includes(value);
+ }
+ function maxSizeLabel(parentLayout) {
+ const { orientation = "horizontal" } = parentLayout ?? {};
+ return orientation === "horizontal" ? (0, import_i18n194._x)("Max", "Block with maximum width in flex layout") : (0, import_i18n194._x)("Max", "Block with maximum height in flex layout");
+ }
+ function helpText(flexControlValue, parentLayout) {
+ const { orientation = "horizontal" } = parentLayout ?? {};
+ if (flexControlValue === FLEX_CHILD_LAYOUT_VALUES.grow) {
+ return (0, import_i18n194.__)("Stretch to fill available space.");
+ }
+ if (flexControlValue === FLEX_CHILD_LAYOUT_VALUES.max && orientation === "horizontal") {
+ return (0, import_i18n194.__)("Specify a maximum width.");
+ } else if (flexControlValue === FLEX_CHILD_LAYOUT_VALUES.max) {
+ return (0, import_i18n194.__)("Specify a maximum height.");
+ }
+ if (flexControlValue === FLEX_CHILD_LAYOUT_VALUES.fixed && orientation === "horizontal") {
+ return (0, import_i18n194.__)("Specify a fixed width.");
+ } else if (flexControlValue === FLEX_CHILD_LAYOUT_VALUES.fixed) {
+ return (0, import_i18n194.__)("Specify a fixed height.");
+ }
+ return (0, import_i18n194.__)("Fit contents.");
+ }
+ function ChildLayoutControl({
+ value: childLayout = {},
+ onChange,
+ parentLayout,
+ isShownByDefault,
+ panelId,
+ showGridSpanDefaults = true
+ }) {
+ const {
+ type: parentType,
+ default: { type: defaultParentType = "default" } = {}
+ } = parentLayout ?? {};
+ const parentLayoutType = parentType || defaultParentType;
+ if (parentLayoutType === "flex") {
+ return /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ FlexControls,
+ {
+ childLayout,
+ onChange,
+ parentLayout,
+ isShownByDefault,
+ panelId
+ }
+ );
+ } else if (parentLayoutType === "grid") {
+ return /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ GridControls,
+ {
+ childLayout,
+ onChange,
+ parentLayout,
+ isShownByDefault,
+ panelId,
+ showGridSpanDefaults
+ }
+ );
+ }
+ return null;
+ }
+ function FlexControls({
+ childLayout,
+ onChange,
+ parentLayout,
+ isShownByDefault,
+ panelId
+ }) {
+ const { selfStretch, flexSize } = childLayout;
+ const { orientation = "horizontal" } = parentLayout ?? {};
+ const flexControlValue = selfStretch || FLEX_CHILD_LAYOUT_VALUES.fit;
+ const hasFlexSizeValue = isFlexSizeValue(flexControlValue);
+ const hasFlexValue = () => !!selfStretch;
+ const flexResetLabel = orientation === "horizontal" ? (0, import_i18n194.__)("Width") : (0, import_i18n194.__)("Height");
+ const [availableUnits] = useSettings("spacing.units");
+ const units2 = (0, import_components198.__experimentalUseCustomUnits)({
+ availableUnits: availableUnits || [
+ "%",
+ "px",
+ "em",
+ "rem",
+ "vh",
+ "vw"
+ ]
+ });
+ const resetFlex = () => {
+ onChange({
+ selfStretch: void 0,
+ flexSize: void 0
+ });
+ };
+ (0, import_element259.useEffect)(() => {
+ if (isFlexSizeValue(selfStretch) && !flexSize) {
+ onChange({
+ ...childLayout,
+ selfStretch: FLEX_CHILD_LAYOUT_VALUES.fit
+ });
+ }
+ }, []);
+ return /* @__PURE__ */ (0, import_jsx_runtime433.jsxs)(
+ import_components198.__experimentalVStack,
+ {
+ as: import_components198.__experimentalToolsPanelItem,
+ spacing: 2,
+ hasValue: hasFlexValue,
+ label: flexResetLabel,
+ onDeselect: resetFlex,
+ isShownByDefault,
+ panelId,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsxs)(
+ import_components198.__experimentalToggleGroupControl,
+ {
+ label: childLayoutOrientation(parentLayout),
+ value: flexControlValue,
+ help: helpText(flexControlValue, parentLayout),
+ onChange: (value) => {
+ const newFlexSize = isFlexSizeValue(value) ? flexSize : null;
+ onChange({
+ selfStretch: value,
+ flexSize: newFlexSize
+ });
+ },
+ isBlock: true,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ import_components198.__experimentalToggleGroupControlOption,
+ {
+ value: FLEX_CHILD_LAYOUT_VALUES.fit,
+ label: (0, import_i18n194._x)(
+ "Fit",
+ "Intrinsic block width in flex layout"
+ )
+ },
+ FLEX_CHILD_LAYOUT_VALUES.fit
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ import_components198.__experimentalToggleGroupControlOption,
+ {
+ value: FLEX_CHILD_LAYOUT_VALUES.grow,
+ label: (0, import_i18n194._x)(
+ "Grow",
+ "Block with expanding width in flex layout"
+ )
+ },
+ FLEX_CHILD_LAYOUT_VALUES.grow
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ import_components198.__experimentalToggleGroupControlOption,
+ {
+ value: FLEX_CHILD_LAYOUT_VALUES.max,
+ label: maxSizeLabel(parentLayout)
+ },
+ FLEX_CHILD_LAYOUT_VALUES.max
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ import_components198.__experimentalToggleGroupControlOption,
+ {
+ value: FLEX_CHILD_LAYOUT_VALUES.fixed,
+ label: (0, import_i18n194._x)(
+ "Fixed",
+ "Block with fixed width in flex layout"
+ )
+ },
+ FLEX_CHILD_LAYOUT_VALUES.fixed
+ )
+ ]
+ }
+ ),
+ hasFlexSizeValue && /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ import_components198.__experimentalUnitControl,
+ {
+ units: units2,
+ onChange: (value) => {
+ onChange({
+ selfStretch: flexControlValue,
+ flexSize: value
+ });
+ },
+ value: flexSize,
+ min: 0,
+ label: flexResetLabel,
+ hideLabelFromVision: true
+ }
+ )
+ ]
+ }
+ );
+ }
+ function childLayoutOrientation(parentLayout) {
+ const { orientation = "horizontal" } = parentLayout ?? {};
+ return orientation === "horizontal" ? (0, import_i18n194.__)("Width") : (0, import_i18n194.__)("Height");
+ }
+ function GridControls({
+ childLayout,
+ onChange,
+ parentLayout,
+ isShownByDefault,
+ panelId,
+ showGridSpanDefaults
+ }) {
+ const { columnStart, rowStart, columnSpan, rowSpan } = childLayout;
+ const { columnCount, rowCount } = parentLayout ?? {};
+ const rootClientId = (0, import_data164.useSelect)(
+ (select3) => select3(store).getBlockRootClientId(panelId)
+ );
+ const { moveBlocksToPosition: moveBlocksToPosition2, __unstableMarkNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent2 } = (0, import_data164.useDispatch)(store);
+ const getNumberOfBlocksBeforeCell = useGetNumberOfBlocksBeforeCell(
+ rootClientId,
+ columnCount || 3
+ );
+ const hasStartValue = () => !!columnStart || !!rowStart;
+ const hasSpanValue = () => !!columnSpan || !!rowSpan;
+ const resetGridStarts = () => {
+ onChange({
+ columnStart: void 0,
+ rowStart: void 0
+ });
+ };
+ const resetGridSpans = () => {
+ onChange({
+ columnSpan: void 0,
+ rowSpan: void 0
+ });
+ };
+ const maxColumnSpan = columnCount ? columnCount - (columnStart ?? 1) + 1 : void 0;
+ const maxRowSpan = window.__experimentalEnableGridInteractivity && rowCount ? rowCount - (rowStart ?? 1) + 1 : void 0;
+ const columnSpanValue = columnSpan ?? (showGridSpanDefaults ? 1 : void 0);
+ const rowSpanValue = rowSpan ?? (showGridSpanDefaults ? 1 : void 0);
+ return /* @__PURE__ */ (0, import_jsx_runtime433.jsxs)(import_jsx_runtime433.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsxs)(
+ import_components198.Flex,
+ {
+ as: import_components198.__experimentalToolsPanelItem,
+ hasValue: hasSpanValue,
+ label: (0, import_i18n194.__)("Grid span"),
+ onDeselect: resetGridSpans,
+ isShownByDefault,
+ panelId,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(import_components198.FlexItem, { style: { width: "50%" }, children: /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ import_components198.__experimentalInputControl,
+ {
+ label: (0, import_i18n194.__)("Column span"),
+ type: "number",
+ onChange: (value) => {
+ const newColumnSpan = value === "" ? 1 : parseInt(value, 10);
+ const constrainedValue = maxColumnSpan ? Math.min(newColumnSpan, maxColumnSpan) : newColumnSpan;
+ onChange({
+ columnStart,
+ rowStart,
+ rowSpan,
+ columnSpan: constrainedValue
+ });
+ },
+ value: columnSpanValue,
+ min: 1,
+ max: maxColumnSpan
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(import_components198.FlexItem, { style: { width: "50%" }, children: /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ import_components198.__experimentalInputControl,
+ {
+ label: (0, import_i18n194.__)("Row span"),
+ type: "number",
+ onChange: (value) => {
+ const newRowSpan = value === "" ? 1 : parseInt(value, 10);
+ const constrainedValue = maxRowSpan ? Math.min(newRowSpan, maxRowSpan) : newRowSpan;
+ onChange({
+ columnStart,
+ rowStart,
+ columnSpan,
+ rowSpan: constrainedValue
+ });
+ },
+ value: rowSpanValue,
+ min: 1,
+ max: maxRowSpan
+ }
+ ) })
+ ]
+ }
+ ),
+ window.__experimentalEnableGridInteractivity && // Use Flex with an explicit width on the FlexItem instead of HStack to
+ // work around an issue in webkit where inputs with a max attribute are
+ // sized incorrectly.
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsxs)(
+ import_components198.Flex,
+ {
+ as: import_components198.__experimentalToolsPanelItem,
+ hasValue: hasStartValue,
+ label: (0, import_i18n194.__)("Grid placement"),
+ onDeselect: resetGridStarts,
+ isShownByDefault: false,
+ panelId,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(import_components198.FlexItem, { style: { width: "50%" }, children: /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ import_components198.__experimentalInputControl,
+ {
+ label: (0, import_i18n194.__)("Column"),
+ type: "number",
+ onChange: (value) => {
+ const newColumnStart = value === "" ? 1 : parseInt(value, 10);
+ onChange({
+ columnStart: newColumnStart,
+ rowStart,
+ columnSpan,
+ rowSpan
+ });
+ __unstableMarkNextChangeAsNotPersistent2();
+ moveBlocksToPosition2(
+ [panelId],
+ rootClientId,
+ rootClientId,
+ getNumberOfBlocksBeforeCell(
+ newColumnStart,
+ rowStart
+ )
+ );
+ },
+ value: columnStart ?? 1,
+ min: 1,
+ max: columnCount ? columnCount - (columnSpan ?? 1) + 1 : void 0
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(import_components198.FlexItem, { style: { width: "50%" }, children: /* @__PURE__ */ (0, import_jsx_runtime433.jsx)(
+ import_components198.__experimentalInputControl,
+ {
+ label: (0, import_i18n194.__)("Row"),
+ type: "number",
+ onChange: (value) => {
+ const newRowStart = value === "" ? 1 : parseInt(value, 10);
+ onChange({
+ columnStart,
+ rowStart: newRowStart,
+ columnSpan,
+ rowSpan
+ });
+ __unstableMarkNextChangeAsNotPersistent2();
+ moveBlocksToPosition2(
+ [panelId],
+ rootClientId,
+ rootClientId,
+ getNumberOfBlocksBeforeCell(
+ columnStart,
+ newRowStart
+ )
+ );
+ },
+ value: rowStart ?? 1,
+ min: 1,
+ max: rowCount ? rowCount - (rowSpan ?? 1) + 1 : void 0
+ }
+ ) })
+ ]
+ }
+ )
+ ] });
+ }
+
+ // packages/block-editor/build-module/components/dimensions-tool/aspect-ratio-tool.mjs
+ var import_components199 = __toESM(require_components(), 1);
+ var import_i18n195 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime434 = __toESM(require_jsx_runtime(), 1);
+ function AspectRatioTool({
+ panelId,
+ value,
+ onChange = () => {
+ },
+ options,
+ defaultValue = "auto",
+ hasValue: hasValue3,
+ isShownByDefault = true,
+ className: className2,
+ isInherited,
+ hasLocalOverride
+ }) {
+ const displayValue = value ?? "auto";
+ const [defaultRatios, themeRatios, showDefaultRatios] = useSettings(
+ "dimensions.aspectRatios.default",
+ "dimensions.aspectRatios.theme",
+ "dimensions.defaultAspectRatios"
+ );
+ const themeOptions = themeRatios?.map(({ name, ratio }) => ({
+ label: name,
+ value: ratio
+ }));
+ const defaultOptions2 = defaultRatios?.map(({ name, ratio }) => ({
+ label: name,
+ value: ratio
+ }));
+ const aspectRatioOptions = [
+ {
+ label: (0, import_i18n195._x)(
+ "Original",
+ "Aspect ratio option for dimensions control"
+ ),
+ value: "auto"
+ },
+ ...showDefaultRatios ? defaultOptions2 : [],
+ ...themeOptions ? themeOptions : [],
+ {
+ label: (0, import_i18n195._x)("Custom", "Aspect ratio option for dimensions control"),
+ value: "custom",
+ disabled: true,
+ hidden: true
+ }
+ ];
+ return /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ className: className2,
+ isInherited,
+ hasLocalOverride,
+ hasValue: hasValue3 ? hasValue3 : () => displayValue !== defaultValue,
+ label: (0, import_i18n195.__)("Aspect ratio"),
+ onDeselect: () => onChange(void 0),
+ isShownByDefault,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime434.jsx)(
+ import_components199.SelectControl,
+ {
+ label: (0, import_i18n195.__)("Aspect ratio"),
+ value: displayValue,
+ options: options ?? aspectRatioOptions,
+ onChange
+ }
+ )
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/global-styles/dimensions-panel.mjs
+ var import_jsx_runtime435 = __toESM(require_jsx_runtime(), 1);
+ var AXIAL_SIDES = ["horizontal", "vertical"];
+ function hasSpacingToggle(sides2, isPresetsControl) {
+ if (sides2?.length === 1) {
+ return false;
+ }
+ if (isPresetsControl) {
+ const hasOnlyAxialSides = sides2?.includes("horizontal") && sides2?.includes("vertical") && sides2?.length === 2;
+ return !hasOnlyAxialSides;
+ }
+ return true;
+ }
+ function useHasDimensionsPanel(settings2, styleState = DEFAULT_BLOCK_STYLE_STATE2) {
+ return hasContentSize(settings2) || hasWideSize(settings2) || hasPadding(settings2) || hasMargin(settings2) || hasGap(settings2) || hasHeight(settings2) || hasMinHeight(settings2) || hasMinWidth(settings2) || hasWidth(settings2) || hasAspectRatio(settings2, styleState) || hasChildLayout(settings2, styleState);
+ }
+ function hasContentSize(settings2) {
+ return settings2?.layout?.contentSize;
+ }
+ function hasWideSize(settings2) {
+ return settings2?.layout?.wideSize;
+ }
+ function hasPadding(settings2) {
+ return settings2?.spacing?.padding;
+ }
+ function hasMargin(settings2) {
+ return settings2?.spacing?.margin;
+ }
+ function hasGap(settings2) {
+ return settings2?.spacing?.blockGap;
+ }
+ function hasHeight(settings2) {
+ return settings2?.dimensions?.height;
+ }
+ function hasMinHeight(settings2) {
+ return settings2?.dimensions?.minHeight;
+ }
+ function hasMinWidth(settings2) {
+ return settings2?.dimensions?.minWidth;
+ }
+ function hasWidth(settings2) {
+ return settings2?.dimensions?.width;
+ }
+ function hasAspectRatio(settings2, styleState = DEFAULT_BLOCK_STYLE_STATE2) {
+ return !hasPseudoBlockStyleState(styleState) && settings2?.dimensions?.aspectRatio;
+ }
+ function hasChildLayout(settings2, styleState = DEFAULT_BLOCK_STYLE_STATE2) {
+ if (hasPseudoBlockStyleState(styleState)) {
+ return false;
+ }
+ const {
+ type: parentLayoutType = "default",
+ default: { type: defaultParentLayoutType = "default" } = {},
+ allowSizingOnChildren = false
+ } = settings2?.parentLayout ?? {};
+ const support = (defaultParentLayoutType === "flex" || parentLayoutType === "flex" || defaultParentLayoutType === "grid" || parentLayoutType === "grid") && allowSizingOnChildren;
+ return !!settings2?.layout && support;
+ }
+ function hasSpacingPresets(settings2) {
+ const { defaultSpacingSizes, spacingSizes } = settings2?.spacing || {};
+ return defaultSpacingSizes !== false && spacingSizes?.default?.length > 0 || spacingSizes?.theme?.length > 0 || spacingSizes?.custom?.length > 0;
+ }
+ function filterValuesBySides(values, sides2) {
+ if (!sides2 || !values) {
+ return values;
+ }
+ const filteredValues = {};
+ sides2.forEach((side) => {
+ if (side === "vertical") {
+ filteredValues.top = values.top;
+ filteredValues.bottom = values.bottom;
+ }
+ if (side === "horizontal") {
+ filteredValues.left = values.left;
+ filteredValues.right = values.right;
+ }
+ filteredValues[side] = values?.[side];
+ });
+ return filteredValues;
+ }
+ var EMPTY_VALUES2 = [void 0, null, ""];
+ function hasValue2(value) {
+ return !EMPTY_VALUES2.includes(value);
+ }
+ function getNumericPlaceholder2(rawValue) {
+ if (!hasValue2(rawValue)) {
+ return void 0;
+ }
+ const [quantity] = (0, import_components200.__experimentalParseQuantityAndUnitFromRawValue)(rawValue);
+ return quantity;
+ }
+ function splitStyleValue(value) {
+ if (hasValue2(value) && typeof value === "string") {
+ return {
+ top: value,
+ right: value,
+ bottom: value,
+ left: value
+ };
+ }
+ return value;
+ }
+ function getCommonSidesValue(sidesValue) {
+ if (!hasValue2(sidesValue)) {
+ return void 0;
+ }
+ if (typeof sidesValue === "string") {
+ return sidesValue !== "" ? sidesValue : void 0;
+ }
+ if (typeof sidesValue !== "object") {
+ return void 0;
+ }
+ const sideKeys = ["top", "right", "bottom", "left"];
+ const values = sideKeys.map((k2) => sidesValue[k2]);
+ const allDefined = values.every(hasValue2);
+ if (!allDefined) {
+ return void 0;
+ }
+ const first = values[0];
+ return values.every((v2) => v2 === first) ? first : void 0;
+ }
+ function hasAnySideValue(sidesValue) {
+ if (!hasValue2(sidesValue)) {
+ return false;
+ }
+ if (typeof sidesValue === "string") {
+ return sidesValue !== "";
+ }
+ if (typeof sidesValue !== "object") {
+ return false;
+ }
+ return ["top", "right", "bottom", "left"].some(
+ (side) => hasValue2(sidesValue[side])
+ );
+ }
+ function splitGapValue(value, isAxialGap) {
+ if (!hasValue2(value)) {
+ return value;
+ }
+ if (typeof value === "string") {
+ return isAxialGap ? { top: value, right: value, bottom: value, left: value } : { top: value };
+ }
+ return {
+ ...value,
+ right: value?.left,
+ bottom: value?.top
+ };
+ }
+ function DimensionsToolsPanel({
+ resetAllFilter,
+ onChange,
+ value,
+ panelId,
+ children
+ }) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const resetAll = () => {
+ const updatedValue = resetAllFilter(value);
+ onChange(updatedValue);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ import_components200.__experimentalToolsPanel,
+ {
+ label: (0, import_i18n196.__)("Dimensions"),
+ resetAll,
+ panelId,
+ dropdownMenuProps,
+ children
+ }
+ );
+ }
+ var DEFAULT_CONTROLS5 = {
+ contentSize: true,
+ wideSize: true,
+ padding: true,
+ margin: true,
+ blockGap: true,
+ height: true,
+ minHeight: true,
+ minWidth: true,
+ width: true,
+ aspectRatio: true,
+ childLayout: true
+ };
+ function DimensionsPanel({
+ as: Wrapper = DimensionsToolsPanel,
+ value,
+ onChange,
+ inheritedValue = value,
+ settings: settings2,
+ panelId,
+ defaultControls = DEFAULT_CONTROLS5,
+ onVisualize = () => {
+ },
+ // Special case because the layout controls are not part of the dimensions panel
+ // in global styles but not in block inspector.
+ includeLayoutControls = false,
+ styleState = DEFAULT_BLOCK_STYLE_STATE2,
+ showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
+ }) {
+ const { dimensions, spacing } = settings2;
+ const decodeValue = (rawValue) => {
+ if (rawValue && typeof rawValue === "object") {
+ return Object.keys(rawValue).reduce((acc, key) => {
+ acc[key] = getValueFromVariable(
+ { settings: { dimensions, spacing } },
+ "",
+ rawValue[key]
+ );
+ return acc;
+ }, {});
+ }
+ return getValueFromVariable(
+ { settings: { dimensions, spacing } },
+ "",
+ rawValue
+ );
+ };
+ const inheritanceProps = (isInherited, hasLocalOverride, className2) => getInheritanceProps(
+ showInheritanceLabelIndicators && isInherited,
+ showInheritanceLabelIndicators && hasLocalOverride,
+ className2
+ );
+ const showSpacingPresetsControl = hasSpacingPresets(settings2);
+ const units2 = (0, import_components200.__experimentalUseCustomUnits)({
+ availableUnits: settings2?.spacing?.units || [
+ "%",
+ "px",
+ "em",
+ "rem",
+ "vw"
+ ]
+ });
+ const minimumMargin = -Infinity;
+ const [minMarginValue, setMinMarginValue] = (0, import_element260.useState)(minimumMargin);
+ const resetAllFilter = (0, import_element260.useCallback)((previousValue) => {
+ return {
+ ...previousValue,
+ layout: cleanEmptyObject({
+ ...previousValue?.layout,
+ contentSize: void 0,
+ wideSize: void 0,
+ selfStretch: void 0,
+ flexSize: void 0,
+ columnStart: void 0,
+ rowStart: void 0,
+ columnSpan: void 0,
+ rowSpan: void 0
+ }),
+ spacing: {
+ ...previousValue?.spacing,
+ padding: void 0,
+ margin: void 0,
+ blockGap: void 0
+ },
+ dimensions: {
+ ...previousValue?.dimensions,
+ height: void 0,
+ minHeight: void 0,
+ minWidth: void 0,
+ aspectRatio: void 0,
+ width: void 0
+ }
+ };
+ }, []);
+ const showContentSizeControl = hasContentSize(settings2) && includeLayoutControls;
+ const localContentSizeValue = decodeValue(value?.layout?.contentSize);
+ const inheritedContentSizeValue = decodeValue(
+ inheritedValue?.layout?.contentSize
+ );
+ const isContentSizePlaceholder = !hasValue2(value?.layout?.contentSize) && hasValue2(inheritedContentSizeValue);
+ const setContentSizeValue = (newValue) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["layout", "contentSize"],
+ hasValue2(newValue) ? newValue : void 0
+ )
+ );
+ };
+ const hasUserSetContentSizeValue = () => hasValue2(value?.layout?.contentSize);
+ const resetContentSizeValue = () => setContentSizeValue(void 0);
+ const showWideSizeControl = hasWideSize(settings2) && includeLayoutControls;
+ const localWideSizeValue = decodeValue(value?.layout?.wideSize);
+ const inheritedWideSizeValue = decodeValue(
+ inheritedValue?.layout?.wideSize
+ );
+ const isWideSizePlaceholder = !hasValue2(value?.layout?.wideSize) && hasValue2(inheritedWideSizeValue);
+ const setWideSizeValue = (newValue) => {
+ onChange(
+ setImmutably2(
+ value,
+ ["layout", "wideSize"],
+ hasValue2(newValue) ? newValue : void 0
+ )
+ );
+ };
+ const hasUserSetWideSizeValue = () => hasValue2(value?.layout?.wideSize);
+ const resetWideSizeValue = () => setWideSizeValue(void 0);
+ const showPaddingControl = hasPadding(settings2);
+ const inheritedPaddingValues = splitStyleValue(
+ decodeValue(inheritedValue?.spacing?.padding)
+ );
+ const localPaddingValues = splitStyleValue(
+ decodeValue(value?.spacing?.padding)
+ );
+ const paddingValues = hasValue2(value?.spacing?.padding) ? localPaddingValues : inheritedPaddingValues;
+ const inheritedPaddingPlaceholder = getCommonSidesValue(
+ inheritedPaddingValues
+ );
+ const isPaddingPlaceholder = !hasValue2(value?.spacing?.padding) && inheritedPaddingPlaceholder !== void 0;
+ const hasInheritedPadding = hasAnySideValue(inheritedPaddingValues);
+ const isPaddingInherited = !hasValue2(value?.spacing?.padding) && hasInheritedPadding;
+ const paddingSides = Array.isArray(settings2?.spacing?.padding) ? settings2?.spacing?.padding : settings2?.spacing?.padding?.sides;
+ const isAxialPadding = paddingSides && paddingSides.some((side) => AXIAL_SIDES.includes(side));
+ const setPaddingValues = (newPaddingValues) => {
+ const padding = filterValuesBySides(newPaddingValues, paddingSides);
+ onChange(setImmutably2(value, ["spacing", "padding"], padding));
+ };
+ const hasPaddingValue = () => hasValue2(value?.spacing?.padding) && Object.keys(value?.spacing?.padding).length;
+ const resetPaddingValue = () => setPaddingValues(void 0);
+ const onMouseOverPadding = () => onVisualize("padding");
+ const showMarginControl = hasMargin(settings2);
+ const inheritedMarginValues = splitStyleValue(
+ decodeValue(inheritedValue?.spacing?.margin)
+ );
+ const localMarginValues = splitStyleValue(
+ decodeValue(value?.spacing?.margin)
+ );
+ const marginValues = hasValue2(value?.spacing?.margin) ? localMarginValues : inheritedMarginValues;
+ const inheritedMarginPlaceholder = getCommonSidesValue(
+ inheritedMarginValues
+ );
+ const isMarginPlaceholder = !hasValue2(value?.spacing?.margin) && inheritedMarginPlaceholder !== void 0;
+ const hasInheritedMargin = hasAnySideValue(inheritedMarginValues);
+ const isMarginInherited = !hasValue2(value?.spacing?.margin) && hasInheritedMargin;
+ const marginSides = Array.isArray(settings2?.spacing?.margin) ? settings2?.spacing?.margin : settings2?.spacing?.margin?.sides;
+ const isAxialMargin = marginSides && marginSides.some((side) => AXIAL_SIDES.includes(side));
+ const setMarginValues = (newMarginValues) => {
+ const margin = filterValuesBySides(newMarginValues, marginSides);
+ onChange(setImmutably2(value, ["spacing", "margin"], margin));
+ };
+ const hasMarginValue = () => hasValue2(value?.spacing?.margin) && Object.keys(value?.spacing?.margin).length;
+ const resetMarginValue = () => setMarginValues(void 0);
+ const onMouseOverMargin = () => onVisualize("margin");
+ const showGapControl = hasGap(settings2);
+ const gapSides = Array.isArray(settings2?.spacing?.blockGap) ? settings2?.spacing?.blockGap : settings2?.spacing?.blockGap?.sides;
+ const isAxialGap = gapSides && gapSides.some((side) => AXIAL_SIDES.includes(side));
+ const localGapRaw = decodeValue(value?.spacing?.blockGap);
+ const inheritedGapRaw = decodeValue(inheritedValue?.spacing?.blockGap);
+ const gapRawForDisplay = hasValue2(value?.spacing?.blockGap) ? localGapRaw : inheritedGapRaw;
+ const gapValues = splitGapValue(gapRawForDisplay, isAxialGap);
+ const isGapPlaceholder = !hasValue2(value?.spacing?.blockGap) && typeof inheritedGapRaw === "string" && inheritedGapRaw !== "";
+ const setGapValue = (newGapValue) => {
+ onChange(
+ setImmutably2(value, ["spacing", "blockGap"], newGapValue)
+ );
+ };
+ const setGapValues = (nextBoxGapValue) => {
+ if (!hasValue2(nextBoxGapValue)) {
+ setGapValue(null);
+ }
+ if (!isAxialGap && nextBoxGapValue?.hasOwnProperty("top")) {
+ setGapValue(nextBoxGapValue.top);
+ } else {
+ setGapValue({
+ top: nextBoxGapValue?.top,
+ left: nextBoxGapValue?.left
+ });
+ }
+ };
+ const resetGapValue = () => setGapValue(void 0);
+ const hasGapValue = () => hasValue2(value?.spacing?.blockGap);
+ const showMinHeightControl = hasMinHeight(settings2);
+ const localMinHeightValue = decodeValue(value?.dimensions?.minHeight);
+ const inheritedMinHeightValue = decodeValue(
+ inheritedValue?.dimensions?.minHeight
+ );
+ const isMinHeightPlaceholder = !hasValue2(value?.dimensions?.minHeight) && hasValue2(inheritedMinHeightValue);
+ const setMinHeightValue = (newValue) => {
+ const tempValue = setImmutably2(
+ value,
+ ["dimensions", "minHeight"],
+ newValue
+ );
+ onChange(
+ setImmutably2(
+ tempValue,
+ ["dimensions", "aspectRatio"],
+ void 0
+ )
+ );
+ };
+ const resetMinHeightValue = () => {
+ setMinHeightValue(void 0);
+ };
+ const hasMinHeightValue = () => hasValue2(value?.dimensions?.minHeight);
+ const showHeightControl = hasHeight(settings2);
+ const localHeightValue = decodeValue(value?.dimensions?.height);
+ const inheritedHeightValue = decodeValue(
+ inheritedValue?.dimensions?.height
+ );
+ const isHeightPlaceholder = !hasValue2(value?.dimensions?.height) && hasValue2(inheritedHeightValue);
+ const setHeightValue = (newValue) => {
+ const tempValue = setImmutably2(
+ value,
+ ["dimensions", "height"],
+ newValue
+ );
+ onChange(
+ setImmutably2(
+ tempValue,
+ ["dimensions", "aspectRatio"],
+ void 0
+ )
+ );
+ };
+ const resetHeightValue = () => {
+ setHeightValue(void 0);
+ };
+ const hasHeightValue = () => hasValue2(value?.dimensions?.height);
+ const showMinWidthControl = hasMinWidth(settings2);
+ const localMinWidthValue = decodeValue(value?.dimensions?.minWidth);
+ const inheritedMinWidthValue = decodeValue(
+ inheritedValue?.dimensions?.minWidth
+ );
+ const isMinWidthPlaceholder = !hasValue2(value?.dimensions?.minWidth) && hasValue2(inheritedMinWidthValue);
+ const setMinWidthValue = (newValue) => {
+ onChange(
+ setImmutably2(value, ["dimensions", "minWidth"], newValue)
+ );
+ };
+ const resetMinWidthValue = () => {
+ setMinWidthValue(void 0);
+ };
+ const hasMinWidthValue = () => hasValue2(value?.dimensions?.minWidth);
+ const showWidthControl = hasWidth(settings2);
+ const localWidthValue = decodeValue(value?.dimensions?.width);
+ const inheritedWidthValue = decodeValue(
+ inheritedValue?.dimensions?.width
+ );
+ const isWidthPlaceholder = !hasValue2(value?.dimensions?.width) && hasValue2(inheritedWidthValue);
+ const setWidthValue = (newValue) => {
+ onChange(setImmutably2(value, ["dimensions", "width"], newValue));
+ };
+ const resetWidthValue = () => {
+ setWidthValue(void 0);
+ };
+ const hasWidthValue = () => hasValue2(value?.dimensions?.width);
+ const showAspectRatioControl = hasAspectRatio(settings2, styleState);
+ const localAspectRatioValue = decodeValue(value?.dimensions?.aspectRatio);
+ const inheritedAspectRatioValue = decodeValue(
+ inheritedValue?.dimensions?.aspectRatio
+ );
+ const aspectRatioValue = localAspectRatioValue ?? inheritedAspectRatioValue;
+ const isAspectRatioPlaceholder = !hasValue2(value?.dimensions?.aspectRatio) && hasValue2(inheritedAspectRatioValue);
+ const setAspectRatioValue = (newValue) => {
+ const tempValue = setImmutably2(
+ value,
+ ["dimensions", "aspectRatio"],
+ newValue
+ );
+ onChange(
+ setImmutably2(tempValue, ["dimensions", "minHeight"], void 0)
+ );
+ };
+ const hasAspectRatioValue = () => hasValue2(value?.dimensions?.aspectRatio);
+ const showChildLayoutControl = hasChildLayout(settings2, styleState);
+ const childLayout = value?.layout;
+ const setChildLayout = (newChildLayout) => {
+ onChange({
+ ...value,
+ layout: {
+ ...value?.layout,
+ ...newChildLayout
+ }
+ });
+ };
+ const onMouseLeaveControls = () => onVisualize(false);
+ return /* @__PURE__ */ (0, import_jsx_runtime435.jsxs)(
+ Wrapper,
+ {
+ resetAllFilter,
+ value,
+ onChange,
+ panelId,
+ children: [
+ (showContentSizeControl || showWideSizeControl) && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)("span", { className: "span-columns", children: (0, import_i18n196.__)("Set the width of the main content area.") }),
+ showContentSizeControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isContentSizePlaceholder,
+ hasUserSetContentSizeValue() && inheritedContentSizeValue !== void 0
+ ),
+ label: (0, import_i18n196.__)("Content width"),
+ hasValue: hasUserSetContentSizeValue,
+ onDeselect: resetContentSizeValue,
+ isShownByDefault: defaultControls.contentSize ?? DEFAULT_CONTROLS5.contentSize,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ import_components200.__experimentalUnitControl,
+ {
+ label: (0, import_i18n196.__)("Content width"),
+ labelPosition: "top",
+ value: localContentSizeValue ?? inheritedContentSizeValue,
+ placeholder: isContentSizePlaceholder ? getNumericPlaceholder2(
+ inheritedContentSizeValue
+ ) : void 0,
+ onChange: (nextContentSize) => {
+ setContentSizeValue(nextContentSize);
+ },
+ units: units2,
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(import_components200.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(icon_default, { icon: align_none_default }) })
+ }
+ )
+ }
+ ),
+ showWideSizeControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isWideSizePlaceholder,
+ hasUserSetWideSizeValue() && inheritedWideSizeValue !== void 0
+ ),
+ label: (0, import_i18n196.__)("Wide width"),
+ hasValue: hasUserSetWideSizeValue,
+ onDeselect: resetWideSizeValue,
+ isShownByDefault: defaultControls.wideSize ?? DEFAULT_CONTROLS5.wideSize,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ import_components200.__experimentalUnitControl,
+ {
+ label: (0, import_i18n196.__)("Wide width"),
+ labelPosition: "top",
+ value: localWideSizeValue ?? inheritedWideSizeValue,
+ placeholder: isWideSizePlaceholder ? getNumericPlaceholder2(
+ inheritedWideSizeValue
+ ) : void 0,
+ onChange: (nextWideSize) => {
+ setWideSizeValue(nextWideSize);
+ },
+ units: units2,
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(import_components200.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(icon_default, { icon: stretch_wide_default }) })
+ }
+ )
+ }
+ ),
+ showPaddingControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsxs)(
+ InheritanceToolsPanelItem,
+ {
+ hasValue: hasPaddingValue,
+ label: (0, import_i18n196.__)("Padding"),
+ hasInlineEndToggle: hasSpacingToggle(
+ paddingSides,
+ showSpacingPresetsControl
+ ),
+ onDeselect: resetPaddingValue,
+ isShownByDefault: defaultControls.padding ?? DEFAULT_CONTROLS5.padding,
+ ...inheritanceProps(
+ isPaddingInherited,
+ hasPaddingValue() && hasInheritedPadding,
+ {
+ "tools-panel-item-spacing": showSpacingPresetsControl
+ }
+ ),
+ panelId,
+ children: [
+ !showSpacingPresetsControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ import_components200.BoxControl,
+ {
+ values: localPaddingValues,
+ onChange: setPaddingValues,
+ label: (0, import_i18n196.__)("Padding"),
+ sides: paddingSides,
+ units: units2,
+ allowReset: false,
+ splitOnAxis: isAxialPadding,
+ inputProps: {
+ onMouseOver: onMouseOverPadding,
+ onMouseOut: onMouseLeaveControls,
+ placeholder: isPaddingPlaceholder ? inheritedPaddingPlaceholder : void 0
+ }
+ }
+ ),
+ showSpacingPresetsControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ SpacingSizesControl,
+ {
+ values: paddingValues,
+ onChange: setPaddingValues,
+ label: (0, import_i18n196.__)("Padding"),
+ sides: paddingSides,
+ units: units2,
+ allowReset: false,
+ onMouseOver: onMouseOverPadding,
+ onMouseOut: onMouseLeaveControls
+ }
+ )
+ ]
+ }
+ ),
+ showMarginControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsxs)(
+ InheritanceToolsPanelItem,
+ {
+ hasValue: hasMarginValue,
+ label: (0, import_i18n196.__)("Margin"),
+ hasInlineEndToggle: hasSpacingToggle(
+ marginSides,
+ showSpacingPresetsControl
+ ),
+ onDeselect: resetMarginValue,
+ isShownByDefault: defaultControls.margin ?? DEFAULT_CONTROLS5.margin,
+ ...inheritanceProps(
+ isMarginInherited,
+ hasMarginValue() && hasInheritedMargin,
+ {
+ "tools-panel-item-spacing": showSpacingPresetsControl
+ }
+ ),
+ panelId,
+ children: [
+ !showSpacingPresetsControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ import_components200.BoxControl,
+ {
+ values: localMarginValues,
+ onChange: setMarginValues,
+ inputProps: {
+ min: minMarginValue,
+ onDragStart: () => {
+ setMinMarginValue(0);
+ },
+ onDragEnd: () => {
+ setMinMarginValue(minimumMargin);
+ },
+ onMouseOver: onMouseOverMargin,
+ onMouseOut: onMouseLeaveControls,
+ placeholder: isMarginPlaceholder ? inheritedMarginPlaceholder : void 0
+ },
+ label: (0, import_i18n196.__)("Margin"),
+ sides: marginSides,
+ units: units2,
+ allowReset: false,
+ splitOnAxis: isAxialMargin
+ }
+ ),
+ showSpacingPresetsControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ SpacingSizesControl,
+ {
+ values: marginValues,
+ onChange: setMarginValues,
+ minimumCustomValue: -Infinity,
+ label: (0, import_i18n196.__)("Margin"),
+ sides: marginSides,
+ units: units2,
+ allowReset: false,
+ onMouseOver: onMouseOverMargin,
+ onMouseOut: onMouseLeaveControls
+ }
+ )
+ ]
+ }
+ ),
+ showGapControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsxs)(
+ InheritanceToolsPanelItem,
+ {
+ hasValue: hasGapValue,
+ label: (0, import_i18n196.__)("Block spacing"),
+ hasInlineEndToggle: isAxialGap,
+ onDeselect: resetGapValue,
+ isShownByDefault: defaultControls.blockGap ?? DEFAULT_CONTROLS5.blockGap,
+ ...inheritanceProps(
+ isGapPlaceholder,
+ hasGapValue() && inheritedGapRaw !== void 0,
+ {
+ "tools-panel-item-spacing": showSpacingPresetsControl,
+ "single-column": (
+ // If UnitControl is used, should be single-column.
+ !showSpacingPresetsControl && !isAxialGap
+ )
+ }
+ ),
+ panelId,
+ children: [
+ !showSpacingPresetsControl && (isAxialGap ? /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ import_components200.BoxControl,
+ {
+ label: (0, import_i18n196.__)("Block spacing"),
+ min: 0,
+ onChange: setGapValues,
+ units: units2,
+ sides: gapSides,
+ values: gapValues,
+ allowReset: false,
+ splitOnAxis: isAxialGap
+ }
+ ) : /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ import_components200.__experimentalUnitControl,
+ {
+ label: (0, import_i18n196.__)("Block spacing"),
+ min: 0,
+ onChange: setGapValue,
+ units: units2,
+ value: localGapRaw ?? void 0,
+ placeholder: isGapPlaceholder ? inheritedGapRaw : void 0
+ }
+ )),
+ showSpacingPresetsControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ SpacingSizesControl,
+ {
+ label: (0, import_i18n196.__)("Block spacing"),
+ min: 0,
+ onChange: setGapValues,
+ showSideInLabel: false,
+ sides: isAxialGap ? gapSides : ["top"],
+ values: gapValues,
+ allowReset: false
+ }
+ )
+ ]
+ }
+ ),
+ showChildLayoutControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ ChildLayoutControl,
+ {
+ value: childLayout,
+ onChange: setChildLayout,
+ parentLayout: settings2?.parentLayout,
+ panelId,
+ showGridSpanDefaults: !hasViewportBlockStyleState(styleState),
+ isShownByDefault: defaultControls.childLayout ?? DEFAULT_CONTROLS5.childLayout
+ }
+ ),
+ showMinHeightControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isMinHeightPlaceholder,
+ hasMinHeightValue() && inheritedMinHeightValue !== void 0
+ ),
+ hasValue: hasMinHeightValue,
+ label: (0, import_i18n196.__)("Minimum height"),
+ onDeselect: resetMinHeightValue,
+ isShownByDefault: defaultControls.minHeight ?? DEFAULT_CONTROLS5.minHeight,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ DimensionControl,
+ {
+ label: (0, import_i18n196.__)("Minimum height"),
+ value: localMinHeightValue ?? inheritedMinHeightValue,
+ onChange: setMinHeightValue,
+ placeholder: isMinHeightPlaceholder ? getNumericPlaceholder2(
+ inheritedMinHeightValue
+ ) : void 0,
+ dimensionSizes: dimensions?.dimensionSizes
+ }
+ )
+ }
+ ),
+ showMinWidthControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isMinWidthPlaceholder,
+ hasMinWidthValue() && inheritedMinWidthValue !== void 0
+ ),
+ hasValue: hasMinWidthValue,
+ label: (0, import_i18n196.__)("Minimum width"),
+ onDeselect: resetMinWidthValue,
+ isShownByDefault: defaultControls.minWidth ?? DEFAULT_CONTROLS5.minWidth,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ DimensionControl,
+ {
+ label: (0, import_i18n196.__)("Minimum width"),
+ value: localMinWidthValue ?? inheritedMinWidthValue,
+ onChange: setMinWidthValue,
+ placeholder: isMinWidthPlaceholder ? getNumericPlaceholder2(
+ inheritedMinWidthValue
+ ) : void 0,
+ dimensionSizes: dimensions?.dimensionSizes
+ }
+ )
+ }
+ ),
+ showHeightControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isHeightPlaceholder,
+ hasHeightValue() && inheritedHeightValue !== void 0
+ ),
+ hasValue: hasHeightValue,
+ label: (0, import_i18n196.__)("Height"),
+ onDeselect: resetHeightValue,
+ isShownByDefault: defaultControls.height ?? DEFAULT_CONTROLS5.height,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ DimensionControl,
+ {
+ label: (0, import_i18n196.__)("Height"),
+ value: localHeightValue,
+ onChange: setHeightValue,
+ placeholder: isHeightPlaceholder ? inheritedHeightValue : void 0,
+ dimensionSizes: dimensions?.dimensionSizes
+ }
+ )
+ }
+ ),
+ showWidthControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isWidthPlaceholder,
+ hasWidthValue() && inheritedWidthValue !== void 0
+ ),
+ hasValue: hasWidthValue,
+ label: (0, import_i18n196.__)("Width"),
+ onDeselect: resetWidthValue,
+ isShownByDefault: defaultControls.width ?? DEFAULT_CONTROLS5.width,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ DimensionControl,
+ {
+ label: (0, import_i18n196.__)("Width"),
+ value: localWidthValue,
+ onChange: setWidthValue,
+ placeholder: isWidthPlaceholder ? inheritedWidthValue : void 0,
+ dimensionSizes: dimensions?.dimensionSizes
+ }
+ )
+ }
+ ),
+ showAspectRatioControl && /* @__PURE__ */ (0, import_jsx_runtime435.jsx)(
+ AspectRatioTool,
+ {
+ hasValue: hasAspectRatioValue,
+ value: aspectRatioValue,
+ onChange: setAspectRatioValue,
+ panelId,
+ ...inheritanceProps(
+ isAspectRatioPlaceholder,
+ hasAspectRatioValue() && inheritedAspectRatioValue !== void 0
+ ),
+ isShownByDefault: defaultControls.aspectRatio ?? DEFAULT_CONTROLS5.aspectRatio
+ }
+ )
+ ]
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/global-styles/border-panel.mjs
+ var import_components202 = __toESM(require_components(), 1);
+ var import_element262 = __toESM(require_element(), 1);
+ var import_i18n198 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/global-styles/shadow-panel-components.mjs
+ var import_i18n197 = __toESM(require_i18n(), 1);
+ var import_components201 = __toESM(require_components(), 1);
+ var import_element261 = __toESM(require_element(), 1);
+ var import_jsx_runtime436 = __toESM(require_jsx_runtime(), 1);
+ var EMPTY_ARRAY13 = [];
+ function ShadowPopoverContainer({ shadow, onShadowChange, settings: settings2 }) {
+ const shadows = useShadowPresets(settings2);
+ return /* @__PURE__ */ (0, import_jsx_runtime436.jsx)("div", { className: "block-editor-global-styles__shadow-popover-container", children: /* @__PURE__ */ (0, import_jsx_runtime436.jsxs)(import_components201.__experimentalVStack, { spacing: 4, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(import_components201.__experimentalHeading, { level: 5, children: (0, import_i18n197.__)("Drop shadow") }),
+ /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ ShadowPresets,
+ {
+ presets: shadows,
+ activeShadow: shadow,
+ onSelect: onShadowChange
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime436.jsx)("div", { className: "block-editor-global-styles__clear-shadow", children: /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ import_components201.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "tertiary",
+ onClick: () => onShadowChange(void 0),
+ disabled: !shadow,
+ accessibleWhenDisabled: true,
+ children: (0, import_i18n197.__)("Clear")
+ }
+ ) })
+ ] }) });
+ }
+ function ShadowPresets({ presets, activeShadow, onSelect }) {
+ return !presets ? null : /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ import_components201.Composite,
+ {
+ role: "listbox",
+ className: "block-editor-global-styles__shadow__list",
+ "aria-label": (0, import_i18n197.__)("Drop shadows"),
+ children: presets.map(({ name, slug, shadow }) => /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ ShadowIndicator,
+ {
+ label: name,
+ isActive: shadow === activeShadow,
+ type: slug === "unset" ? "unset" : "preset",
+ onSelect: () => onSelect(shadow === activeShadow ? void 0 : shadow),
+ shadow
+ },
+ slug
+ ))
+ }
+ );
+ }
+ function ShadowIndicator({ type, label, isActive, onSelect, shadow }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime436.jsxs)(tooltip_exports.Root, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ tooltip_exports.Trigger,
+ {
+ render: /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ import_components201.Composite.Item,
+ {
+ role: "option",
+ "aria-label": label,
+ "aria-selected": isActive,
+ className: clsx_default(
+ "block-editor-global-styles__shadow__item",
+ {
+ "is-active": isActive
+ }
+ ),
+ render: /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ "button",
+ {
+ className: clsx_default(
+ "block-editor-global-styles__shadow-indicator",
+ {
+ unset: type === "unset"
+ }
+ ),
+ onClick: onSelect,
+ style: { boxShadow: shadow },
+ "aria-label": label,
+ children: isActive && /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(icon_default, { icon: check_default })
+ }
+ )
+ }
+ )
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(tooltip_exports.Popup, { children: label })
+ ] });
+ }
+ function ShadowPopover({
+ shadow,
+ onShadowChange,
+ settings: settings2,
+ className: className2,
+ hasLocalValue = !!shadow,
+ hasLocalOverride = false,
+ onReset
+ }) {
+ const popoverProps3 = {
+ placement: "left-start",
+ offset: 36,
+ shift: true
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ import_components201.Dropdown,
+ {
+ popoverProps: popoverProps3,
+ className: clsx_default(
+ "block-editor-global-styles__shadow-dropdown",
+ className2
+ ),
+ renderToggle: renderShadowToggle(shadow, onShadowChange, {
+ hasLocalValue,
+ hasLocalOverride,
+ onReset: onReset ?? (() => onShadowChange(void 0))
+ }),
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(import_components201.__experimentalDropdownContentWrapper, { paddingSize: "medium", children: /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ ShadowPopoverContainer,
+ {
+ shadow,
+ onShadowChange,
+ settings: settings2
+ }
+ ) })
+ }
+ );
+ }
+ function renderShadowToggle(shadow, onShadowChange, resetConfig) {
+ const { hasLocalValue, hasLocalOverride, onReset } = resetConfig;
+ return function ShadowToggle({ onToggle, isOpen }) {
+ const shadowButtonRef = (0, import_element261.useRef)(void 0);
+ const toggleProps = {
+ onClick: onToggle,
+ className: clsx_default(
+ "block-editor-global-styles__shadow-dropdown-toggle",
+ { "is-open": isOpen }
+ ),
+ "aria-expanded": isOpen,
+ ref: shadowButtonRef
+ };
+ const handleReset = () => {
+ if (isOpen) {
+ onToggle();
+ }
+ onReset();
+ shadowButtonRef.current?.focus();
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime436.jsxs)(import_jsx_runtime436.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(import_components201.Button, { __next40pxDefaultSize: true, ...toggleProps, children: /* @__PURE__ */ (0, import_jsx_runtime436.jsxs)(import_components201.__experimentalHStack, { justify: "flex-start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ icon_default,
+ {
+ className: "block-editor-global-styles__toggle-icon",
+ icon: shadow_default,
+ size: 24
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(import_components201.FlexItem, { children: (0, import_i18n197.__)("Drop shadow") })
+ ] }) }),
+ hasLocalValue && (hasLocalOverride ? /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ InheritanceResetButton,
+ {
+ className: "block-editor-global-styles__shadow-editor__remove-button",
+ onResetToInherited: handleReset
+ }
+ ) : /* @__PURE__ */ (0, import_jsx_runtime436.jsx)(
+ import_components201.Button,
+ {
+ __next40pxDefaultSize: true,
+ size: "small",
+ icon: reset_default,
+ label: (0, import_i18n197.__)("Remove"),
+ className: "block-editor-global-styles__shadow-editor__remove-button",
+ onClick: handleReset
+ }
+ ))
+ ] });
+ };
+ }
+ function useShadowPresets(settings2) {
+ return (0, import_element261.useMemo)(() => {
+ if (!settings2?.shadow) {
+ return EMPTY_ARRAY13;
+ }
+ const defaultPresetsEnabled = settings2?.shadow?.defaultPresets;
+ const {
+ default: defaultShadows,
+ theme: themeShadows,
+ custom: customShadows
+ } = settings2?.shadow?.presets ?? {};
+ const unsetShadow = {
+ name: (0, import_i18n197.__)("Unset"),
+ slug: "unset",
+ shadow: "none"
+ };
+ const shadowPresets = [
+ ...defaultPresetsEnabled && defaultShadows || EMPTY_ARRAY13,
+ ...themeShadows || EMPTY_ARRAY13,
+ ...customShadows || EMPTY_ARRAY13
+ ];
+ if (shadowPresets.length) {
+ shadowPresets.unshift(unsetShadow);
+ }
+ return shadowPresets;
+ }, [settings2]);
+ }
+
+ // packages/block-editor/build-module/components/global-styles/border-panel.mjs
+ var import_jsx_runtime437 = __toESM(require_jsx_runtime(), 1);
+ function useHasBorderPanel(settings2) {
+ const controls = Object.values(useHasBorderPanelControls(settings2));
+ return controls.some(Boolean);
+ }
+ function useHasBorderPanelControls(settings2) {
+ const controls = {
+ hasBorderColor: useHasBorderColorControl(settings2),
+ hasBorderRadius: useHasBorderRadiusControl(settings2),
+ hasBorderStyle: useHasBorderStyleControl(settings2),
+ hasBorderWidth: useHasBorderWidthControl(settings2),
+ hasShadow: useHasShadowControl(settings2)
+ };
+ return controls;
+ }
+ function useHasBorderColorControl(settings2) {
+ return settings2?.border?.color;
+ }
+ function useHasBorderRadiusControl(settings2) {
+ return settings2?.border?.radius;
+ }
+ function useHasBorderStyleControl(settings2) {
+ return settings2?.border?.style;
+ }
+ function useHasBorderWidthControl(settings2) {
+ return settings2?.border?.width;
+ }
+ function useHasShadowControl(settings2) {
+ const shadows = useShadowPresets(settings2);
+ return !!settings2?.shadow && shadows.length > 0;
+ }
+ function BorderToolsPanel({
+ resetAllFilter,
+ onChange,
+ value,
+ panelId,
+ children,
+ label
+ }) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const resetAll = () => {
+ const updatedValue = resetAllFilter(value);
+ onChange(updatedValue);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(
+ import_components202.__experimentalToolsPanel,
+ {
+ label,
+ resetAll,
+ panelId,
+ dropdownMenuProps,
+ children
+ }
+ );
+ }
+ var DEFAULT_CONTROLS6 = {
+ radius: true,
+ color: true,
+ width: true,
+ shadow: true
+ };
+ function BorderPanel({
+ as: Wrapper = BorderToolsPanel,
+ value,
+ onChange,
+ inheritedValue = value,
+ settings: settings2,
+ panelId,
+ name,
+ defaultControls = DEFAULT_CONTROLS6,
+ showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
+ }) {
+ const colors2 = useColorsPerOrigin(settings2);
+ const areCustomSolidsEnabled = settings2?.color?.custom;
+ const decodeValue = (0, import_element262.useCallback)(
+ (rawValue) => getValueFromVariable({ settings: settings2 }, "", rawValue),
+ [settings2]
+ );
+ const inheritanceProps = (isInherited, hasLocalOverride, className2) => getInheritanceProps(
+ showInheritanceLabelIndicators && isInherited,
+ showInheritanceLabelIndicators && hasLocalOverride,
+ className2
+ );
+ const encodeColorValue = (colorValue) => {
+ const allColors = colors2.flatMap(
+ ({ colors: originColors }) => originColors
+ );
+ const colorObject = allColors.find(
+ ({ color }) => color === colorValue
+ );
+ return colorObject ? "var:preset|color|" + colorObject.slug : colorValue;
+ };
+ const decodeBorder = (0, import_element262.useCallback)(
+ (source) => {
+ if (!source) {
+ return void 0;
+ }
+ if ((0, import_components202.__experimentalHasSplitBorders)(source)) {
+ const out = { ...source };
+ ["top", "right", "bottom", "left"].forEach((side) => {
+ out[side] = {
+ ...out[side],
+ color: decodeValue(out[side]?.color)
+ };
+ });
+ return out;
+ }
+ return {
+ ...source,
+ color: source.color ? decodeValue(source.color) : void 0
+ };
+ },
+ [decodeValue]
+ );
+ const localBorder = (0, import_element262.useMemo)(
+ () => decodeBorder(value?.border),
+ [value?.border, decodeBorder]
+ );
+ const inheritedBorder = (0, import_element262.useMemo)(
+ () => decodeBorder(inheritedValue?.border),
+ [inheritedValue?.border, decodeBorder]
+ );
+ const isBorderPlaceholder = !(0, import_components202.__experimentalIsDefinedBorder)(value?.border) && !!inheritedBorder && (0, import_components202.__experimentalIsDefinedBorder)(inheritedBorder);
+ const border = isBorderPlaceholder ? inheritedBorder : localBorder;
+ const setBorder = (newBorder) => onChange({ ...value, border: newBorder });
+ const showBorderColor = useHasBorderColorControl(settings2);
+ const showBorderStyle = useHasBorderStyleControl(settings2);
+ const showBorderWidth = useHasBorderWidthControl(settings2);
+ const showBorderRadius = useHasBorderRadiusControl(settings2);
+ const localBorderRadius = (0, import_element262.useMemo)(() => {
+ if (typeof value?.border?.radius !== "object") {
+ return decodeValue(value?.border?.radius);
+ }
+ return {
+ topLeft: decodeValue(value?.border?.radius?.topLeft),
+ topRight: decodeValue(value?.border?.radius?.topRight),
+ bottomLeft: decodeValue(value?.border?.radius?.bottomLeft),
+ bottomRight: decodeValue(value?.border?.radius?.bottomRight)
+ };
+ }, [value?.border?.radius, decodeValue]);
+ const inheritedBorderRadius = (0, import_element262.useMemo)(() => {
+ const rawRadius = inheritedValue?.border?.radius;
+ if (typeof rawRadius !== "object") {
+ return decodeValue(rawRadius);
+ }
+ return {
+ topLeft: decodeValue(rawRadius?.topLeft),
+ topRight: decodeValue(rawRadius?.topRight),
+ bottomLeft: decodeValue(rawRadius?.bottomLeft),
+ bottomRight: decodeValue(rawRadius?.bottomRight)
+ };
+ }, [inheritedValue?.border?.radius, decodeValue]);
+ const setBorderRadius = (newBorderRadius) => setBorder({ ...value?.border, radius: newBorderRadius });
+ const hasBorderRadius = () => {
+ const borderValues = value?.border?.radius;
+ if (typeof borderValues === "object") {
+ return Object.entries(borderValues).some(([, v2]) => !!v2);
+ }
+ return !!borderValues;
+ };
+ const isBorderRadiusPlaceholder = !hasBorderRadius() && inheritedBorderRadius !== void 0 && inheritedBorderRadius !== "";
+ const borderRadius = (0, import_element262.useMemo)(() => {
+ if (!isBorderRadiusPlaceholder) {
+ return localBorderRadius;
+ }
+ if (typeof inheritedBorderRadius === "string") {
+ return inheritedBorderRadius;
+ }
+ const obj = inheritedBorderRadius;
+ if (!obj) {
+ return localBorderRadius;
+ }
+ const all = obj.topLeft && obj.topLeft === obj.topRight && obj.topLeft === obj.bottomLeft && obj.topLeft === obj.bottomRight ? obj.topLeft : void 0;
+ return { all, ...obj };
+ }, [
+ isBorderRadiusPlaceholder,
+ localBorderRadius,
+ inheritedBorderRadius
+ ]);
+ const hasShadowControl = useHasShadowControl(settings2);
+ const localShadow = decodeValue(value?.shadow);
+ const inheritedShadow = decodeValue(inheritedValue?.shadow);
+ const isShadowPlaceholder = localShadow === void 0 && inheritedShadow !== void 0 && inheritedShadow !== "";
+ const shadow = isShadowPlaceholder ? inheritedShadow : localShadow;
+ const shadowPresets = settings2?.shadow?.presets ?? {};
+ const mergedShadowPresets = shadowPresets.custom ?? shadowPresets.theme ?? shadowPresets.default ?? [];
+ const setShadow = (newValue) => {
+ const slug = mergedShadowPresets?.find(
+ ({ shadow: shadowName }) => shadowName === newValue
+ )?.slug;
+ onChange(
+ setImmutably2(
+ value,
+ ["shadow"],
+ slug ? `var:preset|shadow|${slug}` : newValue || void 0
+ )
+ );
+ };
+ const setShadowWithInheritedCommit = (newValue) => {
+ if (isShadowPlaceholder && newValue === void 0) {
+ setShadow(inheritedShadow);
+ return;
+ }
+ setShadow(newValue);
+ };
+ const hasShadow = () => !!value?.shadow;
+ const resetShadow = () => setShadow(void 0);
+ const hasShadowLocalOverride = showInheritanceLabelIndicators && hasShadow() && inheritedShadow !== void 0;
+ const resetBorder = () => {
+ if (hasBorderRadius()) {
+ return setBorder({ radius: value?.border?.radius });
+ }
+ setBorder(void 0);
+ };
+ const onBorderChange = (newBorder) => {
+ const updatedBorder = { ...newBorder };
+ if ((0, import_components202.__experimentalHasSplitBorders)(updatedBorder)) {
+ ["top", "right", "bottom", "left"].forEach((side) => {
+ if (updatedBorder[side]) {
+ updatedBorder[side] = {
+ ...updatedBorder[side],
+ color: encodeColorValue(updatedBorder[side]?.color)
+ };
+ }
+ });
+ } else if (updatedBorder) {
+ updatedBorder.color = encodeColorValue(updatedBorder.color);
+ }
+ setBorder({
+ ...updatedBorder,
+ radius: value?.border?.radius
+ });
+ };
+ const resetAllFilter = (0, import_element262.useCallback)((previousValue) => {
+ return {
+ ...previousValue,
+ border: void 0,
+ shadow: void 0
+ };
+ }, []);
+ const showBorderByDefault = defaultControls?.color || defaultControls?.width;
+ const hasBorderControl = showBorderColor || showBorderStyle || showBorderWidth || showBorderRadius;
+ const label = useBorderPanelLabel({
+ blockName: name,
+ hasShadowControl,
+ hasBorderControl
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime437.jsxs)(
+ Wrapper,
+ {
+ resetAllFilter,
+ value,
+ onChange,
+ panelId,
+ label,
+ children: [
+ (showBorderWidth || showBorderColor) && /* @__PURE__ */ (0, import_jsx_runtime437.jsxs)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isBorderPlaceholder,
+ (0, import_components202.__experimentalIsDefinedBorder)(value?.border) && !!inheritedBorder && (0, import_components202.__experimentalIsDefinedBorder)(inheritedBorder)
+ ),
+ hasValue: () => (0, import_components202.__experimentalIsDefinedBorder)(value?.border),
+ label: (0, import_i18n198.__)("Border"),
+ onDeselect: () => resetBorder(),
+ isShownByDefault: showBorderByDefault,
+ panelId,
+ children: [
+ (showInheritanceLabelIndicators || hasShadowControl) && // Render the visible label as `BaseControl.VisualLabel`
+ // (which produces `.components-base-control__label`)
+ // rather than passing `label` to `BorderBoxControl`,
+ // whose internal `<StyledLabel>` carries no stable
+ // className. The inheritance treatment and the
+ // local-override reset affordance both target
+ // `.components-base-control__label`, so the visible
+ // "Border" label has to be a `BaseControl` label to
+ // receive them.
+ //
+ // Render it whenever a Shadow control is also present so
+ // the two controls stay disambiguated (mirrors the
+ // Shadow label's `hasBorderControl` guard below, and
+ // trunk's `hideLabelFromVision={ ! hasShadowControl }`),
+ // even when inheritance indicators are off (e.g. in
+ // Global Styles).
+ /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(import_components202.BaseControl.VisualLabel, { as: "legend", children: (0, import_i18n198.__)("Border") }),
+ /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(
+ import_components202.BorderBoxControl,
+ {
+ colors: colors2,
+ disableCustomColors: !areCustomSolidsEnabled,
+ enableAlpha: true,
+ enableStyle: showBorderStyle,
+ onChange: onBorderChange,
+ popoverOffset: 40,
+ popoverPlacement: "left-start",
+ value: border,
+ __experimentalIsRenderedInSidebar: true
+ }
+ )
+ ]
+ }
+ ),
+ showBorderRadius && /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isBorderRadiusPlaceholder,
+ hasBorderRadius() && inheritedBorderRadius !== void 0
+ ),
+ hasValue: hasBorderRadius,
+ label: (0, import_i18n198.__)("Radius"),
+ hasInlineEndToggle: true,
+ onDeselect: () => setBorderRadius(void 0),
+ isShownByDefault: defaultControls.radius,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(
+ BorderRadiusControl,
+ {
+ presets: settings2?.border?.radiusSizes,
+ values: borderRadius,
+ onChange: (newValue) => {
+ setBorderRadius(newValue || void 0);
+ }
+ }
+ )
+ }
+ ),
+ hasShadowControl && /* @__PURE__ */ (0, import_jsx_runtime437.jsxs)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isShadowPlaceholder,
+ hasShadow() && inheritedShadow !== void 0
+ ),
+ label: (0, import_i18n198.__)("Shadow"),
+ hasValue: hasShadow,
+ onDeselect: resetShadow,
+ isShownByDefault: defaultControls.shadow,
+ showLocalOverrideActionsInLabel: false,
+ panelId,
+ children: [
+ hasBorderControl ? /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(import_components202.BaseControl.VisualLabel, { as: "legend", children: (0, import_i18n198.__)("Shadow") }) : null,
+ /* @__PURE__ */ (0, import_jsx_runtime437.jsx)(
+ ShadowPopover,
+ {
+ shadow,
+ onShadowChange: setShadowWithInheritedCommit,
+ settings: settings2,
+ hasLocalValue: hasShadow(),
+ hasLocalOverride: hasShadowLocalOverride,
+ onReset: resetShadow
+ }
+ )
+ ]
+ }
+ )
+ ]
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/global-styles/filters-panel.mjs
+ var import_components203 = __toESM(require_components(), 1);
+ var import_i18n199 = __toESM(require_i18n(), 1);
+ var import_element263 = __toESM(require_element(), 1);
+ var import_jsx_runtime438 = __toESM(require_jsx_runtime(), 1);
+ var EMPTY_ARRAY14 = [];
+ function useMultiOriginColorPresets(settings2, { presetSetting, defaultSetting }) {
+ const disableDefault = !settings2?.color?.[defaultSetting];
+ const userPresets = settings2?.color?.[presetSetting]?.custom || EMPTY_ARRAY14;
+ const themePresets = settings2?.color?.[presetSetting]?.theme || EMPTY_ARRAY14;
+ const defaultPresets = settings2?.color?.[presetSetting]?.default || EMPTY_ARRAY14;
+ return (0, import_element263.useMemo)(
+ () => [
+ ...userPresets,
+ ...themePresets,
+ ...disableDefault ? EMPTY_ARRAY14 : defaultPresets
+ ],
+ [disableDefault, userPresets, themePresets, defaultPresets]
+ );
+ }
+ function useHasFiltersPanel(settings2) {
+ return useHasDuotoneControl(settings2);
+ }
+ function useHasDuotoneControl(settings2) {
+ return settings2.color.customDuotone || settings2.color.defaultDuotone || settings2.color.duotone.length > 0;
+ }
+ function FiltersToolsPanel({
+ resetAllFilter,
+ onChange,
+ value,
+ panelId,
+ children
+ }) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const resetAll = () => {
+ const updatedValue = resetAllFilter(value);
+ onChange(updatedValue);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(
+ import_components203.__experimentalToolsPanel,
+ {
+ label: (0, import_i18n199._x)("Filters", "Name for applying graphical effects"),
+ resetAll,
+ panelId,
+ dropdownMenuProps,
+ children
+ }
+ );
+ }
+ var DEFAULT_CONTROLS7 = {
+ duotone: true
+ };
+ var popoverProps2 = {
+ placement: "left-start",
+ offset: 36,
+ shift: true,
+ className: "block-editor-duotone-control__popover",
+ headerTitle: (0, import_i18n199.__)("Duotone")
+ };
+ var LabeledColorIndicator2 = ({ indicator, label }) => /* @__PURE__ */ (0, import_jsx_runtime438.jsxs)(import_components203.__experimentalHStack, { justify: "flex-start", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(import_components203.__experimentalZStack, { isLayered: false, offset: -8, children: /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(import_components203.Flex, { expanded: false, children: indicator === "unset" || !indicator ? /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(import_components203.ColorIndicator, { className: "block-editor-duotone-control__unset-indicator" }) : /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(import_components203.DuotoneSwatch, { values: indicator }) }) }),
+ /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(
+ import_components203.FlexItem,
+ {
+ className: "block-editor-panel-duotone-settings__label",
+ title: label,
+ children: label
+ }
+ )
+ ] });
+ var renderToggle2 = (duotone, resetConfig) => function Toggle2({ onToggle, isOpen }) {
+ const { hasLocalValue, hasLocalOverride, onReset } = resetConfig;
+ const duotoneButtonRef = (0, import_element263.useRef)(void 0);
+ const toggleProps = {
+ onClick: onToggle,
+ className: clsx_default(
+ "block-editor-global-styles-filters-panel__dropdown-toggle",
+ { "is-open": isOpen }
+ ),
+ "aria-expanded": isOpen,
+ ref: duotoneButtonRef
+ };
+ const handleReset = () => {
+ if (isOpen) {
+ onToggle();
+ }
+ onReset();
+ duotoneButtonRef.current?.focus();
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime438.jsxs)(import_jsx_runtime438.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(import_components203.Button, { __next40pxDefaultSize: true, ...toggleProps, children: /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(
+ LabeledColorIndicator2,
+ {
+ indicator: duotone,
+ label: (0, import_i18n199.__)("Duotone")
+ }
+ ) }),
+ hasLocalValue && (hasLocalOverride ? /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(
+ InheritanceResetButton,
+ {
+ className: "block-editor-panel-duotone-settings__reset",
+ onResetToInherited: handleReset
+ }
+ ) : /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(
+ import_components203.Button,
+ {
+ size: "small",
+ icon: reset_default,
+ label: (0, import_i18n199.__)("Reset"),
+ className: "block-editor-panel-duotone-settings__reset",
+ onClick: handleReset
+ }
+ ))
+ ] });
+ };
+ function FiltersPanel({
+ as: Wrapper = FiltersToolsPanel,
+ value,
+ onChange,
+ inheritedValue = value,
+ settings: settings2,
+ panelId,
+ defaultControls = DEFAULT_CONTROLS7,
+ showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
+ }) {
+ const decodeValue = (rawValue) => getValueFromVariable({ settings: settings2 }, "", rawValue);
+ const inheritanceProps = (isInherited, hasLocalOverride, className2) => getInheritanceProps(
+ showInheritanceLabelIndicators && isInherited,
+ showInheritanceLabelIndicators && hasLocalOverride,
+ className2
+ );
+ const hasDuotoneEnabled = useHasDuotoneControl(settings2);
+ const duotonePalette = useMultiOriginColorPresets(settings2, {
+ presetSetting: "duotone",
+ defaultSetting: "defaultDuotone"
+ });
+ const colorPalette = useMultiOriginColorPresets(settings2, {
+ presetSetting: "palette",
+ defaultSetting: "defaultPalette"
+ });
+ const localDuotone = decodeValue(value?.filter?.duotone);
+ const inheritedDuotone = decodeValue(inheritedValue?.filter?.duotone);
+ const duotone = localDuotone ?? inheritedDuotone;
+ const isDuotonePlaceholder = localDuotone === void 0 && inheritedDuotone !== void 0;
+ const setDuotone = (newValue) => {
+ const duotonePreset = duotonePalette.find(({ colors: colors2 }) => {
+ return colors2 === newValue;
+ });
+ const duotoneValue = duotonePreset ? `var:preset|duotone|${duotonePreset.slug}` : newValue;
+ onChange(
+ setImmutably2(value, ["filter", "duotone"], duotoneValue)
+ );
+ };
+ const setDuotoneWithInheritedCommit = (newValue) => {
+ if (newValue === void 0 && isDuotonePlaceholder && inheritedDuotone !== void 0) {
+ setDuotone(inheritedDuotone);
+ return;
+ }
+ setDuotone(newValue);
+ };
+ const hasDuotone = () => !!value?.filter?.duotone;
+ const resetDuotone = () => setDuotone(void 0);
+ const hasDuotoneLocalOverride = showInheritanceLabelIndicators && hasDuotone() && inheritedDuotone !== void 0;
+ const resetAllFilter = (0, import_element263.useCallback)((previousValue) => {
+ return {
+ ...previousValue,
+ filter: {
+ ...previousValue.filter,
+ duotone: void 0
+ }
+ };
+ }, []);
+ return /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(
+ Wrapper,
+ {
+ resetAllFilter,
+ value,
+ onChange,
+ panelId,
+ children: hasDuotoneEnabled && /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ isDuotonePlaceholder,
+ localDuotone !== void 0 && inheritedDuotone !== void 0
+ ),
+ label: (0, import_i18n199.__)("Duotone"),
+ hasValue: hasDuotone,
+ onDeselect: resetDuotone,
+ isShownByDefault: defaultControls.duotone,
+ showLocalOverrideActionsInLabel: false,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(
+ import_components203.Dropdown,
+ {
+ popoverProps: popoverProps2,
+ className: "block-editor-global-styles-filters-panel__dropdown",
+ renderToggle: renderToggle2(duotone, {
+ hasLocalValue: hasDuotone(),
+ hasLocalOverride: hasDuotoneLocalOverride,
+ onReset: resetDuotone
+ }),
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(import_components203.__experimentalDropdownContentWrapper, { paddingSize: "small", children: /* @__PURE__ */ (0, import_jsx_runtime438.jsxs)(import_components203.MenuGroup, { label: (0, import_i18n199.__)("Duotone"), children: [
+ /* @__PURE__ */ (0, import_jsx_runtime438.jsx)("p", { children: (0, import_i18n199.__)(
+ "Create a two-tone color effect without losing your original image."
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime438.jsx)(
+ import_components203.DuotonePicker,
+ {
+ colorPalette,
+ duotonePalette,
+ disableCustomColors: true,
+ disableCustomDuotone: true,
+ value: duotone,
+ onChange: setDuotoneWithInheritedCommit
+ }
+ )
+ ] }) })
+ }
+ )
+ }
+ )
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/global-styles/image-settings-panel.mjs
+ var import_components204 = __toESM(require_components(), 1);
+ var import_i18n200 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime439 = __toESM(require_jsx_runtime(), 1);
+ function useHasImageSettingsPanel(name, value, inheritedValue) {
+ return name === "core/image" && inheritedValue?.lightbox?.allowEditing || !!value?.lightbox;
+ }
+ function ImageSettingsPanel({
+ onChange,
+ value,
+ inheritedValue,
+ panelId
+ }) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const resetLightbox = () => {
+ onChange(void 0);
+ };
+ const onChangeLightbox = (newSetting) => {
+ onChange({
+ enabled: newSetting
+ });
+ };
+ let lightboxChecked = false;
+ if (inheritedValue?.lightbox?.enabled) {
+ lightboxChecked = inheritedValue.lightbox.enabled;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime439.jsx)(import_jsx_runtime439.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime439.jsx)(
+ import_components204.__experimentalToolsPanel,
+ {
+ label: (0, import_i18n200._x)("Settings", "Image settings"),
+ resetAll: resetLightbox,
+ panelId,
+ dropdownMenuProps,
+ children: /* @__PURE__ */ (0, import_jsx_runtime439.jsx)(
+ import_components204.__experimentalToolsPanelItem,
+ {
+ hasValue: () => !!value?.lightbox,
+ label: (0, import_i18n200.__)("Enlarge on click"),
+ onDeselect: resetLightbox,
+ isShownByDefault: true,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime439.jsx)(
+ import_components204.ToggleControl,
+ {
+ label: (0, import_i18n200.__)("Enlarge on click"),
+ checked: lightboxChecked,
+ onChange: onChangeLightbox
+ }
+ )
+ }
+ )
+ }
+ ) });
+ }
+
+ // packages/block-editor/build-module/components/global-styles/advanced-panel.mjs
+ var import_components205 = __toESM(require_components(), 1);
+ var import_element264 = __toESM(require_element(), 1);
+ var import_i18n201 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime440 = __toESM(require_jsx_runtime(), 1);
+ function validateCSS(css) {
+ if (typeof css === "string" && /<\/?\w/.test(css)) {
+ return false;
+ }
+ return true;
+ }
+ function getMarkupValidationError(css) {
+ return validateCSS(css) ? null : (0, import_i18n201.__)("The custom CSS is invalid. Do not use <> markup.");
+ }
+ function getCSSValidationError(css) {
+ if (!css) {
+ return null;
+ }
+ const markupError = getMarkupValidationError(css);
+ if (markupError) {
+ return markupError;
+ }
+ const [transformed] = transform_styles_default(
+ [{ css }],
+ ".for-validation-only"
+ );
+ return transformed === null ? (0, import_i18n201.__)("There is an error with your CSS structure.") : null;
+ }
+ function AdvancedPanel({
+ value,
+ onChange,
+ inheritedValue = value,
+ help
+ }) {
+ const customCSS = inheritedValue?.css;
+ const [cssError, setCSSError] = (0, import_element264.useState)(
+ () => getCSSValidationError(customCSS)
+ );
+ function handleOnChange(newValue) {
+ onChange({
+ ...value,
+ css: newValue
+ });
+ setCSSError(getMarkupValidationError(newValue));
+ }
+ function handleOnBlur(event) {
+ setCSSError(getCSSValidationError(event?.target?.value));
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime440.jsxs)(
+ Stack,
+ {
+ direction: "column",
+ gap: "md",
+ className: "block-editor-global-styles-advanced-panel",
+ children: [
+ cssError && /* @__PURE__ */ (0, import_jsx_runtime440.jsx)(import_components205.Notice, { status: "error", onRemove: () => setCSSError(null), children: cssError }),
+ /* @__PURE__ */ (0, import_jsx_runtime440.jsx)(
+ import_components205.TextareaControl,
+ {
+ label: (0, import_i18n201.__)("Additional CSS"),
+ value: customCSS,
+ onChange: (newValue) => handleOnChange(newValue),
+ onBlur: handleOnBlur,
+ className: "block-editor-global-styles-advanced-panel__custom-css-input",
+ spellCheck: false,
+ help
+ }
+ )
+ ]
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/global-styles/background-panel.mjs
+ var import_components207 = __toESM(require_components(), 1);
+ var import_element266 = __toESM(require_element(), 1);
+ var import_i18n203 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/background-image-control/index.mjs
+ var import_components206 = __toESM(require_components(), 1);
+ var import_i18n202 = __toESM(require_i18n(), 1);
+ var import_notices12 = __toESM(require_notices(), 1);
+ var import_url11 = __toESM(require_url(), 1);
+ var import_element265 = __toESM(require_element(), 1);
+ var import_data165 = __toESM(require_data(), 1);
+ var import_dom72 = __toESM(require_dom(), 1);
+ var import_blob2 = __toESM(require_blob(), 1);
+ var import_jsx_runtime441 = __toESM(require_jsx_runtime(), 1);
+ var IMAGE_BACKGROUND_TYPE = "image";
+ var BACKGROUND_POPOVER_PROPS = {
+ placement: "left-start",
+ offset: 36,
+ shift: true,
+ className: "block-editor-global-styles-background-panel__popover"
+ };
+ var noop22 = () => {
+ };
+ var focusToggleButton = (containerRef) => {
+ window.requestAnimationFrame(() => {
+ const [toggleButton] = import_dom72.focus.tabbable.find(containerRef?.current);
+ if (!toggleButton) {
+ return;
+ }
+ toggleButton.focus();
+ });
+ };
+ function backgroundSizeHelpText(value) {
+ if (value === "cover" || value === void 0) {
+ return (0, import_i18n202.__)("Image covers the space evenly.");
+ }
+ if (value === "contain") {
+ return (0, import_i18n202.__)("Image is contained without distortion.");
+ }
+ return (0, import_i18n202.__)("Image has a fixed width.");
+ }
+ var coordsToBackgroundPosition = (value) => {
+ if (!value || isNaN(value.x) && isNaN(value.y)) {
+ return void 0;
+ }
+ const x2 = isNaN(value.x) ? 0.5 : value.x;
+ const y2 = isNaN(value.y) ? 0.5 : value.y;
+ return `${x2 * 100}% ${y2 * 100}%`;
+ };
+ var backgroundPositionToCoords = (value) => {
+ if (!value) {
+ return { x: void 0, y: void 0 };
+ }
+ let [x2, y2] = value.split(" ").map((v2) => parseFloat(v2) / 100);
+ x2 = isNaN(x2) ? void 0 : x2;
+ y2 = isNaN(y2) ? x2 : y2;
+ return { x: x2, y: y2 };
+ };
+ function InspectorImagePreviewItem({
+ as = "span",
+ imgUrl,
+ toggleProps = {},
+ filename,
+ label,
+ onToggleCallback = noop22
+ }) {
+ const { isOpen, ...restToggleProps } = toggleProps;
+ (0, import_element265.useEffect)(() => {
+ if (typeof isOpen !== "undefined") {
+ onToggleCallback(isOpen);
+ }
+ }, [isOpen, onToggleCallback]);
+ const renderPreviewContent = () => {
+ return /* @__PURE__ */ (0, import_jsx_runtime441.jsxs)(import_components206.__experimentalHStack, { className: "block-editor-global-styles-background-panel__inspector-preview-inner", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ "span",
+ {
+ className: "block-editor-global-styles-background-panel__inspector-image-indicator",
+ style: {
+ backgroundImage: imgUrl ? `url(${imgUrl})` : void 0
+ }
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsxs)(import_components206.FlexBlock, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.__experimentalTruncate,
+ {
+ numberOfLines: 1,
+ className: "block-editor-global-styles-background-panel__inspector-media-replace-title",
+ children: label
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime441.jsx)("span", {}), children: imgUrl ? (0, import_i18n202.sprintf)(
+ /* translators: %s: file name */
+ (0, import_i18n202.__)("Background image: %s"),
+ filename || label
+ ) : (0, import_i18n202.__)("No background image selected") })
+ ] })
+ ] });
+ };
+ return as === "button" ? /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(import_components206.Button, { __next40pxDefaultSize: true, ...restToggleProps, children: renderPreviewContent() }) : renderPreviewContent();
+ }
+ function BackgroundControlsPanel({
+ label,
+ filename,
+ url: imgUrl,
+ children,
+ onToggle: onToggleCallback = noop22,
+ hasImageValue,
+ onReset,
+ hasLocalOverride,
+ containerRef
+ }) {
+ if (!hasImageValue) {
+ return;
+ }
+ const imgLabel = label || (0, import_url11.getFilename)(imgUrl) || (0, import_i18n202.__)("Image");
+ return /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.Dropdown,
+ {
+ popoverProps: BACKGROUND_POPOVER_PROPS,
+ renderToggle: ({ onToggle, isOpen }) => {
+ const toggleProps = {
+ onClick: onToggle,
+ className: "block-editor-global-styles-background-panel__dropdown-toggle",
+ "aria-expanded": isOpen,
+ "aria-label": (0, import_i18n202.__)(
+ "Background size, position and repeat options."
+ ),
+ isOpen
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime441.jsxs)(import_jsx_runtime441.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ InspectorImagePreviewItem,
+ {
+ imgUrl,
+ filename,
+ label: imgLabel,
+ toggleProps,
+ as: "button",
+ onToggleCallback
+ }
+ ),
+ onReset && (hasLocalOverride ? /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ InheritanceResetButton,
+ {
+ className: "block-editor-global-styles-background-panel__reset",
+ onResetToInherited: () => {
+ onReset();
+ if (isOpen) {
+ onToggle();
+ }
+ focusToggleButton(containerRef);
+ }
+ }
+ ) : /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.Button,
+ {
+ __next40pxDefaultSize: true,
+ label: (0, import_i18n202.__)("Reset"),
+ className: "block-editor-global-styles-background-panel__reset",
+ size: "small",
+ icon: reset_default,
+ onClick: () => {
+ onReset();
+ if (isOpen) {
+ onToggle();
+ }
+ focusToggleButton(containerRef);
+ }
+ }
+ ))
+ ] });
+ },
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.__experimentalDropdownContentWrapper,
+ {
+ className: "block-editor-global-styles-background-panel__dropdown-content-wrapper",
+ paddingSize: "medium",
+ children
+ }
+ )
+ }
+ );
+ }
+ function LoadingSpinner() {
+ return /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(import_components206.Placeholder, { className: "block-editor-global-styles-background-panel__loading", children: /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(import_components206.Spinner, {}) });
+ }
+ function BackgroundImageControls({
+ onChange,
+ style,
+ inheritedValue,
+ onRemoveImage = noop22,
+ onResetImage = noop22,
+ displayInPanel,
+ defaultValues,
+ containerRef
+ }) {
+ const [isUploading, setIsUploading] = (0, import_element265.useState)(false);
+ const { getSettings: getSettings8 } = (0, import_data165.useSelect)(store);
+ const { id, title, url } = style?.background?.backgroundImage || {
+ ...inheritedValue?.background?.backgroundImage
+ };
+ const { createErrorNotice } = (0, import_data165.useDispatch)(import_notices12.store);
+ const onUploadError = (message2) => {
+ createErrorNotice(message2, { type: "snackbar" });
+ setIsUploading(false);
+ };
+ const resetBackgroundImage = () => onChange(
+ setImmutably2(
+ style,
+ ["background", "backgroundImage"],
+ void 0
+ )
+ );
+ const onSelectMedia = (media) => {
+ if (!media || !media.url) {
+ resetBackgroundImage();
+ setIsUploading(false);
+ return;
+ }
+ if ((0, import_blob2.isBlobURL)(media.url)) {
+ setIsUploading(true);
+ return;
+ }
+ if (media.media_type && media.media_type !== IMAGE_BACKGROUND_TYPE || !media.media_type && media.type && media.type !== IMAGE_BACKGROUND_TYPE) {
+ onUploadError(
+ (0, import_i18n202.__)("Only images can be used as a background image.")
+ );
+ return;
+ }
+ const sizeValue = style?.background?.backgroundSize || defaultValues?.backgroundSize;
+ const positionValue = style?.background?.backgroundPosition;
+ onChange(
+ setImmutably2(style, ["background"], {
+ ...style?.background,
+ backgroundImage: {
+ url: media.url,
+ id: media.id,
+ source: "file",
+ title: media.title || void 0
+ },
+ backgroundPosition: (
+ /*
+ * A background image uploaded and set in the editor receives a default background position of '50% 0',
+ * when the background image size is the equivalent of "Tile".
+ * This is to increase the chance that the image's focus point is visible.
+ * This is in-editor only to assist with the user experience.
+ */
+ !positionValue && ("auto" === sizeValue || !sizeValue) ? "50% 0" : positionValue
+ ),
+ backgroundSize: sizeValue
+ })
+ );
+ setIsUploading(false);
+ focusToggleButton(containerRef);
+ };
+ const onFilesDrop2 = (filesList) => {
+ getSettings8().mediaUpload({
+ allowedTypes: [IMAGE_BACKGROUND_TYPE],
+ filesList,
+ onFileChange([image]) {
+ onSelectMedia(image);
+ },
+ onError: onUploadError,
+ multiple: false
+ });
+ };
+ const hasValue3 = hasBackgroundImageValue(style);
+ const onRemove = () => onChange(
+ setImmutably2(style, ["background"], {
+ backgroundImage: "none"
+ })
+ );
+ const canRemove = !hasValue3 && hasBackgroundImageValue(inheritedValue);
+ const imgLabel = title || (0, import_url11.getFilename)(url) || (0, import_i18n202.__)("Image");
+ return /* @__PURE__ */ (0, import_jsx_runtime441.jsxs)("div", { className: "block-editor-global-styles-background-panel__image-tools-panel-item", children: [
+ isUploading && /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(LoadingSpinner, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ media_replace_flow_default,
+ {
+ mediaId: id,
+ mediaURL: url,
+ allowedTypes: [IMAGE_BACKGROUND_TYPE],
+ accept: "image/*",
+ onSelect: onSelectMedia,
+ popoverProps: {
+ className: clsx_default({
+ "block-editor-global-styles-background-panel__media-replace-popover": displayInPanel
+ })
+ },
+ name: /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ InspectorImagePreviewItem,
+ {
+ imgUrl: url,
+ filename: title,
+ label: imgLabel
+ }
+ ),
+ renderToggle: (props) => /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(import_components206.Button, { ...props, __next40pxDefaultSize: true }),
+ onError: onUploadError,
+ onReset: () => {
+ focusToggleButton(containerRef);
+ onResetImage();
+ },
+ children: canRemove && /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.MenuItem,
+ {
+ onClick: () => {
+ focusToggleButton(containerRef);
+ onRemove();
+ onRemoveImage();
+ },
+ children: (0, import_i18n202.__)("Remove")
+ }
+ )
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.DropZone,
+ {
+ onFilesDrop: onFilesDrop2,
+ label: (0, import_i18n202.__)("Drop to upload")
+ }
+ )
+ ] });
+ }
+ function BackgroundSizeControls({
+ onChange,
+ style,
+ inheritedValue,
+ defaultValues
+ }) {
+ const localSizeValue = style?.background?.backgroundSize;
+ const localRepeatValue = style?.background?.backgroundRepeat;
+ const localPositionValue = style?.background?.backgroundPosition;
+ const localAttachmentValue = style?.background?.backgroundAttachment;
+ const inheritedSizeValue = inheritedValue?.background?.backgroundSize;
+ const inheritedRepeatValue = inheritedValue?.background?.backgroundRepeat;
+ const inheritedPositionValue = inheritedValue?.background?.backgroundPosition;
+ const inheritedAttachmentValue = inheritedValue?.background?.backgroundAttachment;
+ const sizeValue = localSizeValue || inheritedSizeValue;
+ const repeatValue = localRepeatValue || inheritedRepeatValue;
+ const imageValue = style?.background?.backgroundImage?.url || inheritedValue?.background?.backgroundImage?.url;
+ const isUploadedImage = style?.background?.backgroundImage?.id;
+ const positionValue = localPositionValue || inheritedPositionValue;
+ const attachmentValue = localAttachmentValue || inheritedAttachmentValue;
+ let currentValueForToggle = !sizeValue && isUploadedImage ? defaultValues?.backgroundSize : sizeValue || "auto";
+ currentValueForToggle = !["cover", "contain", "auto"].includes(
+ currentValueForToggle
+ ) ? "auto" : currentValueForToggle;
+ const repeatCheckedValue = !(repeatValue === "no-repeat" || currentValueForToggle === "cover" && repeatValue === void 0);
+ const updateBackgroundSize = (next) => {
+ let nextRepeat = repeatValue;
+ let nextPosition = positionValue;
+ if (next === "contain") {
+ nextRepeat = "no-repeat";
+ nextPosition = void 0;
+ }
+ if (next === "cover") {
+ nextRepeat = void 0;
+ nextPosition = void 0;
+ }
+ if ((currentValueForToggle === "cover" || currentValueForToggle === "contain") && next === "auto") {
+ nextRepeat = void 0;
+ if (!!style?.background?.backgroundImage?.id) {
+ nextPosition = "50% 0";
+ }
+ }
+ if (!next && currentValueForToggle === "auto") {
+ next = "auto";
+ }
+ onChange(
+ setImmutably2(style, ["background"], {
+ ...style?.background,
+ backgroundPosition: nextPosition,
+ backgroundRepeat: nextRepeat,
+ backgroundSize: next
+ })
+ );
+ };
+ const updateBackgroundPosition = (next) => {
+ onChange(
+ setImmutably2(
+ style,
+ ["background", "backgroundPosition"],
+ coordsToBackgroundPosition(next)
+ )
+ );
+ };
+ const toggleIsRepeated = () => onChange(
+ setImmutably2(
+ style,
+ ["background", "backgroundRepeat"],
+ repeatCheckedValue === true ? "no-repeat" : "repeat"
+ )
+ );
+ const toggleScrollWithPage = () => onChange(
+ setImmutably2(
+ style,
+ ["background", "backgroundAttachment"],
+ attachmentValue === "fixed" ? "scroll" : "fixed"
+ )
+ );
+ const backgroundPositionValue = !positionValue && isUploadedImage && "contain" === sizeValue ? defaultValues?.backgroundPosition : positionValue;
+ return /* @__PURE__ */ (0, import_jsx_runtime441.jsxs)(import_components206.__experimentalVStack, { spacing: 3, className: "single-column", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.FocalPointPicker,
+ {
+ label: (0, import_i18n202.__)("Focal point"),
+ url: imageValue,
+ value: backgroundPositionToCoords(backgroundPositionValue),
+ onChange: updateBackgroundPosition
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.ToggleControl,
+ {
+ label: (0, import_i18n202.__)("Fixed background"),
+ checked: attachmentValue === "fixed",
+ onChange: toggleScrollWithPage
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsxs)(
+ import_components206.__experimentalToggleGroupControl,
+ {
+ label: (0, import_i18n202.__)("Size"),
+ value: currentValueForToggle,
+ onChange: updateBackgroundSize,
+ isBlock: true,
+ help: backgroundSizeHelpText(
+ sizeValue || defaultValues?.backgroundSize
+ ),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.__experimentalToggleGroupControlOption,
+ {
+ value: "cover",
+ label: (0, import_i18n202._x)(
+ "Cover",
+ "Size option for background image control"
+ )
+ },
+ "cover"
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.__experimentalToggleGroupControlOption,
+ {
+ value: "contain",
+ label: (0, import_i18n202._x)(
+ "Contain",
+ "Size option for background image control"
+ )
+ },
+ "contain"
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.__experimentalToggleGroupControlOption,
+ {
+ value: "auto",
+ label: (0, import_i18n202._x)(
+ "Tile",
+ "Size option for background image control"
+ )
+ },
+ "tile"
+ )
+ ]
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsxs)(import_components206.__experimentalHStack, { justify: "flex-start", spacing: 2, as: "span", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.__experimentalUnitControl,
+ {
+ "aria-label": (0, import_i18n202.__)("Background image width"),
+ onChange: updateBackgroundSize,
+ value: sizeValue,
+ __unstableInputWidth: "100px",
+ min: 0,
+ placeholder: (0, import_i18n202.__)("Auto"),
+ disabled: currentValueForToggle !== "auto" || currentValueForToggle === void 0
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ import_components206.ToggleControl,
+ {
+ label: (0, import_i18n202.__)("Repeat"),
+ checked: repeatCheckedValue,
+ onChange: toggleIsRepeated,
+ disabled: currentValueForToggle === "cover"
+ }
+ )
+ ] })
+ ] });
+ }
+ function BackgroundImagePanel({
+ value,
+ onChange,
+ inheritedValue = value,
+ settings: settings2,
+ defaultValues = {},
+ showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
+ }) {
+ const { globalStyles, _links } = (0, import_data165.useSelect)((select3) => {
+ const { getSettings: getSettings8 } = select3(store);
+ const _settings = getSettings8();
+ return {
+ globalStyles: _settings[globalStylesDataKey],
+ _links: _settings[globalStylesLinksDataKey]
+ };
+ }, []);
+ const resolvedInheritedValue = (0, import_element265.useMemo)(() => {
+ const resolvedValues = {
+ background: {}
+ };
+ if (!inheritedValue?.background) {
+ return inheritedValue;
+ }
+ Object.entries(inheritedValue?.background).forEach(
+ ([key, backgroundValue]) => {
+ resolvedValues.background[key] = getResolvedValue(
+ backgroundValue,
+ {
+ styles: globalStyles,
+ _links
+ }
+ );
+ }
+ );
+ return resolvedValues;
+ }, [globalStyles, _links, inheritedValue]);
+ const resetBackground = () => onChange(
+ setImmutably2(value, ["background"], {
+ gradient: value?.background?.gradient
+ })
+ );
+ const { title, url } = value?.background?.backgroundImage || {
+ ...resolvedInheritedValue?.background?.backgroundImage
+ };
+ const localHasImageValue = hasBackgroundImageValue(value);
+ const hasImageValue = localHasImageValue || hasBackgroundImageValue(resolvedInheritedValue);
+ const hasLocalOverride = showInheritanceLabelIndicators && localHasImageValue && hasBackgroundImageValue(resolvedInheritedValue);
+ const imageValue = value?.background?.backgroundImage || inheritedValue?.background?.backgroundImage;
+ const shouldShowBackgroundImageControls = hasImageValue && "none" !== imageValue && (settings2?.background?.backgroundSize || settings2?.background?.backgroundPosition || settings2?.background?.backgroundRepeat);
+ const [isDropDownOpen, setIsDropDownOpen] = (0, import_element265.useState)(false);
+ const containerRef = (0, import_element265.useRef)();
+ return /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ "div",
+ {
+ ref: containerRef,
+ className: clsx_default(
+ "block-editor-global-styles-background-panel__inspector-media-replace-container",
+ {
+ "is-open": isDropDownOpen
+ }
+ ),
+ children: shouldShowBackgroundImageControls ? /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ BackgroundControlsPanel,
+ {
+ label: title,
+ filename: title,
+ url,
+ onToggle: setIsDropDownOpen,
+ hasImageValue,
+ hasLocalOverride,
+ onReset: localHasImageValue ? resetBackground : void 0,
+ containerRef,
+ children: /* @__PURE__ */ (0, import_jsx_runtime441.jsxs)(import_components206.__experimentalVStack, { spacing: 3, className: "single-column", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ BackgroundImageControls,
+ {
+ onChange,
+ style: value,
+ inheritedValue: resolvedInheritedValue,
+ displayInPanel: true,
+ onResetImage: () => {
+ setIsDropDownOpen(false);
+ resetBackground();
+ },
+ onRemoveImage: () => setIsDropDownOpen(false),
+ defaultValues,
+ containerRef
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ BackgroundSizeControls,
+ {
+ onChange,
+ style: value,
+ defaultValues,
+ inheritedValue: resolvedInheritedValue
+ }
+ )
+ ] })
+ }
+ ) : /* @__PURE__ */ (0, import_jsx_runtime441.jsx)(
+ BackgroundImageControls,
+ {
+ onChange,
+ style: value,
+ inheritedValue: resolvedInheritedValue,
+ defaultValues,
+ onResetImage: () => {
+ setIsDropDownOpen(false);
+ resetBackground();
+ },
+ onRemoveImage: () => setIsDropDownOpen(false),
+ containerRef
+ }
+ )
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/global-styles/background-panel.mjs
+ var import_jsx_runtime442 = __toESM(require_jsx_runtime(), 1);
+ var DEFAULT_CONTROLS8 = {
+ backgroundImage: true,
+ backgroundColor: true,
+ gradient: true
+ };
+ function useHasBackgroundControl(settings2, feature) {
+ return settings2?.background?.[feature];
+ }
+ function useHasBackgroundPanel(settings2) {
+ const hasBackgroundColor = useHasBackgroundColorPanel(settings2);
+ const { backgroundImage, gradient } = settings2?.background || {};
+ return backgroundImage || gradient || hasBackgroundColor;
+ }
+ function hasBackgroundImageValue(style) {
+ return !!style?.background?.backgroundImage?.id || // Supports url() string values in theme.json.
+ "string" === typeof style?.background?.backgroundImage || !!style?.background?.backgroundImage?.url;
+ }
+ function hasBackgroundGradientValue(style) {
+ return "string" === typeof style?.background?.gradient && style?.background?.gradient !== "";
+ }
+ function hasBackgroundColorValue(style) {
+ return !!style?.color?.background;
+ }
+ function hasLegacyColorGradientValue(style) {
+ return !!style?.color?.gradient;
+ }
+ function BackgroundToolsPanel({
+ resetAllFilter,
+ onChange,
+ value,
+ panelId,
+ children,
+ headerLabel
+ }) {
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ const resetAll = () => {
+ const updatedValue = resetAllFilter(value);
+ onChange(updatedValue);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime442.jsx)(
+ import_components207.__experimentalToolsPanel,
+ {
+ label: headerLabel,
+ resetAll,
+ panelId,
+ hasInnerWrapper: true,
+ className: "background-block-support-panel",
+ __experimentalFirstVisibleItemClass: "first",
+ __experimentalLastVisibleItemClass: "last",
+ dropdownMenuProps,
+ children: /* @__PURE__ */ (0, import_jsx_runtime442.jsx)("div", { className: "background-block-support-panel__inner-wrapper", children })
+ }
+ );
+ }
+ function BackgroundImagePanel2({
+ as: Wrapper = BackgroundToolsPanel,
+ value,
+ onChange,
+ inheritedValue = value,
+ settings: settings2,
+ panelId,
+ defaultControls = DEFAULT_CONTROLS8,
+ defaultValues = {},
+ headerLabel = (0, import_i18n203.__)("Background"),
+ contrastWarning,
+ showInheritanceLabelIndicators = isGlobalStylesInheritanceEnabled()
+ }) {
+ const {
+ colors: colors2,
+ gradients,
+ allColors,
+ areCustomSolidsEnabled,
+ areCustomGradientsEnabled,
+ hasSolidColors,
+ hasGradientColors,
+ decodeValue,
+ encodeGradientValue
+ } = useColorGradientSettings(settings2);
+ const hasBackgroundGradientControl = useHasBackgroundControl(
+ settings2,
+ "gradient"
+ );
+ const hasColorPanelBackgroundSupport = useHasBackgroundColorPanel(settings2);
+ const showBackgroundColorControl = hasColorPanelBackgroundSupport && hasSolidColors;
+ const showBackgroundGradientControl = hasGradientColors && hasBackgroundGradientControl;
+ const showLegacyColorGradientControl = hasColorPanelBackgroundSupport && hasGradientColors && !hasBackgroundGradientControl;
+ const showBackgroundImageControl = useHasBackgroundControl(
+ settings2,
+ "backgroundImage"
+ );
+ const resetAllFilter = (0, import_element266.useCallback)(
+ (previousValue) => {
+ const clearsColorBackground = showBackgroundColorControl;
+ const clearsColorGradient = hasBackgroundGradientControl || showLegacyColorGradientControl;
+ if (!clearsColorBackground && !clearsColorGradient) {
+ return { ...previousValue, background: {} };
+ }
+ return {
+ ...previousValue,
+ background: {},
+ color: {
+ ...previousValue?.color,
+ ...clearsColorBackground && { background: void 0 },
+ ...clearsColorGradient && { gradient: void 0 }
+ }
+ };
+ },
+ [
+ hasBackgroundGradientControl,
+ showBackgroundColorControl,
+ showLegacyColorGradientControl
+ ]
+ );
+ if (!showBackgroundImageControl && !showBackgroundColorControl && !showBackgroundGradientControl && !showLegacyColorGradientControl) {
+ return null;
+ }
+ const resetBackground = () => onChange(
+ setImmutably2(
+ value,
+ ["background", "backgroundImage"],
+ void 0
+ )
+ );
+ const resetGradient = () => {
+ let newValue = setImmutably2(
+ value,
+ ["background", "gradient"],
+ void 0
+ );
+ newValue = setImmutably2(newValue, ["color", "gradient"], void 0);
+ onChange(newValue);
+ };
+ const backgroundColor = decodeValue(inheritedValue?.color?.background);
+ const userBackgroundColor = decodeValue(value?.color?.background);
+ const setBackgroundColor = (newColor, newSlug) => {
+ const newValue = setImmutably2(
+ value,
+ ["color", "background"],
+ encodeColorValueWithPalette(allColors, newColor, newSlug)
+ );
+ if (showLegacyColorGradientControl) {
+ newValue.color.gradient = void 0;
+ }
+ onChange(newValue);
+ };
+ const resetBackgroundColor = () => {
+ const newValue = setImmutably2(
+ value,
+ ["color", "background"],
+ void 0
+ );
+ if (showLegacyColorGradientControl) {
+ newValue.color.gradient = void 0;
+ }
+ onChange(newValue);
+ };
+ const legacyColorGradient = decodeValue(inheritedValue?.color?.gradient);
+ const userLegacyColorGradient = decodeValue(value?.color?.gradient);
+ const setLegacyColorGradient = (newGradient, newSlug) => {
+ const newValue = setImmutably2(
+ value,
+ ["color", "gradient"],
+ encodeGradientValue(newGradient, newSlug)
+ );
+ newValue.color.background = void 0;
+ onChange(newValue);
+ };
+ const resetLegacyColorGradient = () => onChange(setImmutably2(value, ["color", "gradient"], void 0));
+ const currentGradient = decodeValue(
+ value?.background?.gradient ?? value?.color?.gradient
+ );
+ const inheritedGradient = decodeValue(
+ inheritedValue?.background?.gradient ?? inheritedValue?.color?.gradient
+ );
+ const setGradient = (newGradient, newSlug) => {
+ let newValue = setImmutably2(
+ value,
+ ["background", "gradient"],
+ encodeGradientValue(newGradient, newSlug)
+ );
+ newValue = setImmutably2(newValue, ["color", "gradient"], void 0);
+ onChange(newValue);
+ };
+ const inheritanceProps = (isInherited, hasLocalOverride, classNames2) => showInheritanceLabelIndicators ? getInheritanceProps(isInherited, hasLocalOverride, classNames2) : { className: classNames2 };
+ const inheritedBackgroundImage = hasBackgroundImageValue({
+ background: {
+ backgroundImage: inheritedValue?.background?.backgroundImage
+ }
+ });
+ const hasLocalBackgroundImage = hasBackgroundImageValue(value);
+ return /* @__PURE__ */ (0, import_jsx_runtime442.jsxs)(
+ Wrapper,
+ {
+ resetAllFilter,
+ value,
+ onChange,
+ panelId,
+ headerLabel,
+ children: [
+ showBackgroundImageControl && /* @__PURE__ */ (0, import_jsx_runtime442.jsx)(
+ InheritanceToolsPanelItem,
+ {
+ ...inheritanceProps(
+ inheritedBackgroundImage && !hasLocalBackgroundImage,
+ hasLocalBackgroundImage && inheritedBackgroundImage,
+ "block-editor-color-gradient-item"
+ ),
+ showLocalOverrideActionsInLabel: false,
+ hasValue: () => hasBackgroundImageValue(value),
+ label: (0, import_i18n203.__)("Image"),
+ onDeselect: resetBackground,
+ isShownByDefault: defaultControls.backgroundImage,
+ panelId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime442.jsx)(
+ BackgroundImagePanel,
+ {
+ value,
+ onChange,
+ settings: settings2,
+ inheritedValue,
+ defaultControls,
+ defaultValues,
+ showInheritanceLabelIndicators
+ }
+ )
+ }
+ ),
+ showBackgroundColorControl && /* @__PURE__ */ (0, import_jsx_runtime442.jsx)(
+ ColorGradientDropdownItem,
+ {
+ label: (0, import_i18n203.__)("Color"),
+ hasValue: () => hasBackgroundColorValue(value),
+ resetValue: resetBackgroundColor,
+ isShownByDefault: defaultControls.backgroundColor,
+ indicators: [userBackgroundColor ?? backgroundColor],
+ contrastWarning,
+ showInheritanceLabelIndicators,
+ isPlaceholder: userBackgroundColor === void 0 && backgroundColor !== void 0,
+ hasInheritedValue: backgroundColor !== void 0,
+ tabs: [
+ {
+ key: "background",
+ label: (0, import_i18n203.__)("Color"),
+ inheritedValue: backgroundColor,
+ // The picker selects by slug: `userSlug` when the
+ // block has its own value, otherwise
+ // `inheritedSlug`. Hex matching would mark two
+ // same-hex presets as both selected.
+ inheritedSlug: extractPresetSlug(
+ inheritedValue?.color?.background,
+ "color"
+ ),
+ userSlug: extractPresetSlug(
+ value?.color?.background,
+ "color"
+ ),
+ setValue: setBackgroundColor,
+ userValue: userBackgroundColor,
+ isPlaceholder: userBackgroundColor === void 0 && backgroundColor !== void 0
+ }
+ ],
+ colorGradientControlSettings: {
+ colors: colors2,
+ disableCustomColors: !areCustomSolidsEnabled
+ },
+ panelId
+ }
+ ),
+ showBackgroundGradientControl && /* @__PURE__ */ (0, import_jsx_runtime442.jsx)(
+ ColorGradientDropdownItem,
+ {
+ label: (0, import_i18n203.__)("Gradient"),
+ hasValue: () => hasBackgroundGradientValue(value),
+ resetValue: resetGradient,
+ isShownByDefault: defaultControls.gradient,
+ indicators: [currentGradient ?? inheritedGradient],
+ showInheritanceLabelIndicators,
+ isPlaceholder: currentGradient === void 0 && inheritedGradient !== void 0,
+ hasInheritedValue: inheritedGradient !== void 0,
+ tabs: [
+ {
+ key: "gradient",
+ label: (0, import_i18n203.__)("Gradient"),
+ inheritedValue: inheritedGradient,
+ inheritedSlug: extractPresetSlug(
+ inheritedValue?.background?.gradient ?? inheritedValue?.color?.gradient,
+ "gradient"
+ ),
+ userSlug: extractPresetSlug(
+ value?.background?.gradient ?? value?.color?.gradient,
+ "gradient"
+ ),
+ setValue: setGradient,
+ userValue: currentGradient,
+ isGradient: true,
+ isPlaceholder: currentGradient === void 0 && inheritedGradient !== void 0
+ }
+ ],
+ colorGradientControlSettings: {
+ gradients,
+ disableCustomGradients: !areCustomGradientsEnabled
+ },
+ panelId
+ }
+ ),
+ showLegacyColorGradientControl && /* @__PURE__ */ (0, import_jsx_runtime442.jsx)(
+ ColorGradientDropdownItem,
+ {
+ label: (0, import_i18n203.__)("Gradient"),
+ hasValue: () => hasLegacyColorGradientValue(value),
+ resetValue: resetLegacyColorGradient,
+ isShownByDefault: defaultControls.gradient,
+ indicators: [
+ userLegacyColorGradient ?? legacyColorGradient
+ ],
+ showInheritanceLabelIndicators,
+ isPlaceholder: userLegacyColorGradient === void 0 && legacyColorGradient !== void 0,
+ hasInheritedValue: legacyColorGradient !== void 0,
+ tabs: [
+ {
+ key: "gradient",
+ label: (0, import_i18n203.__)("Gradient"),
+ inheritedValue: legacyColorGradient,
+ inheritedSlug: extractPresetSlug(
+ inheritedValue?.color?.gradient,
+ "gradient"
+ ),
+ userSlug: extractPresetSlug(
+ value?.color?.gradient,
+ "gradient"
+ ),
+ setValue: setLegacyColorGradient,
+ userValue: userLegacyColorGradient,
+ isGradient: true,
+ isPlaceholder: userLegacyColorGradient === void 0 && legacyColorGradient !== void 0
+ }
+ ],
+ colorGradientControlSettings: {
+ gradients,
+ disableCustomGradients: !areCustomGradientsEnabled
+ },
+ panelId
+ }
+ )
+ ]
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/global-styles/state-control.mjs
+ var import_i18n204 = __toESM(require_i18n(), 1);
+ var import_components208 = __toESM(require_components(), 1);
+ var import_jsx_runtime443 = __toESM(require_jsx_runtime(), 1);
+ function StateControl({
+ viewportStates = [],
+ pseudoStates = [],
+ viewportValue = "default",
+ pseudoStateValue = "default",
+ onChangeViewport,
+ onChangePseudoState,
+ showText = true,
+ popoverProps: popoverProps3 = {}
+ }) {
+ if (!viewportStates.length && !pseudoStates.length) {
+ return null;
+ }
+ const viewportOptions = [
+ { label: (0, import_i18n204.__)("Default"), value: "default" },
+ ...viewportStates.map((state) => ({
+ label: state.label,
+ value: state.value
+ }))
+ ];
+ const pseudoStateOptions = [
+ { label: (0, import_i18n204.__)("Default"), value: "default" },
+ ...pseudoStates.map((state) => ({
+ label: state.label,
+ value: state.value
+ }))
+ ];
+ const hasViewportOptions = viewportStates.length > 0;
+ const hasPseudoStateOptions = pseudoStates.length > 0;
+ const triggerLabel = (0, import_i18n204.__)("States");
+ const activeStates = [];
+ if (hasViewportOptions && viewportValue !== "default") {
+ const selectedViewport = viewportOptions.find(
+ (option) => option.value === viewportValue
+ );
+ if (selectedViewport) {
+ activeStates.push({
+ key: `viewport-${selectedViewport.value}`,
+ label: selectedViewport.label
+ });
+ }
+ }
+ if (hasPseudoStateOptions && pseudoStateValue !== "default") {
+ const selectedPseudoState = pseudoStateOptions.find(
+ (option) => option.value === pseudoStateValue
+ );
+ if (selectedPseudoState) {
+ activeStates.push({
+ key: `pseudo-${selectedPseudoState.value}`,
+ label: selectedPseudoState.label
+ });
+ }
+ }
+ const currentStateLabel = activeStates.length ? activeStates.map((state) => state.label).join(", ") : (0, import_i18n204.__)("Default");
+ const icon = showText ? chevron_down_default : more_vertical_default;
+ const toggleProps = showText ? { size: "compact", iconPosition: "right" } : { size: "small" };
+ return /* @__PURE__ */ (0, import_jsx_runtime443.jsx)(
+ Stack,
+ {
+ direction: "column",
+ gap: "sm",
+ align: "flex-end",
+ className: "block-editor-global-styles-state-control",
+ children: /* @__PURE__ */ (0, import_jsx_runtime443.jsx)(
+ import_components208.DropdownMenu,
+ {
+ icon,
+ label: showText ? triggerLabel : (0, import_i18n204.sprintf)(
+ /* translators: %s: Current state (e.g. "Hover", "Focus") */
+ (0, import_i18n204.__)("State: %s"),
+ currentStateLabel
+ ),
+ popoverProps: {
+ placement: "right-start",
+ ...popoverProps3
+ },
+ text: showText ? triggerLabel : void 0,
+ toggleProps,
+ children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime443.jsxs)(import_jsx_runtime443.Fragment, { children: [
+ hasViewportOptions && /* @__PURE__ */ (0, import_jsx_runtime443.jsx)(import_components208.MenuGroup, { label: (0, import_i18n204.__)("Viewport"), children: viewportOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime443.jsx)(
+ import_components208.MenuItem,
+ {
+ onClick: () => {
+ onChangeViewport?.(option.value);
+ if (!hasPseudoStateOptions) {
+ onClose();
+ }
+ },
+ icon: viewportValue === option.value ? check_default : null,
+ children: option.label
+ },
+ `viewport-${option.value}`
+ )) }),
+ hasPseudoStateOptions && /* @__PURE__ */ (0, import_jsx_runtime443.jsx)(import_components208.MenuGroup, { label: (0, import_i18n204.__)("Pseudo state"), children: pseudoStateOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime443.jsx)(
+ import_components208.MenuItem,
+ {
+ onClick: () => {
+ onChangePseudoState?.(
+ option.value
+ );
+ if (!hasViewportOptions) {
+ onClose();
+ }
+ },
+ icon: pseudoStateValue === option.value ? check_default : null,
+ children: option.label
+ },
+ `pseudo-${option.value}`
+ )) })
+ ] })
+ }
+ )
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/global-styles/state-control-badges.mjs
+ var import_components209 = __toESM(require_components(), 1);
+ var import_i18n205 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime444 = __toESM(require_jsx_runtime(), 1);
+ var { Badge: WCBadge4 } = unlock(import_components209.privateApis);
+ function StateControlBadges({
+ viewportStates = [],
+ pseudoStates = [],
+ viewportValue = "default",
+ pseudoStateValue = "default",
+ className: className2 = "block-editor-global-styles-state-control__badges"
+ }) {
+ const activeStates = [];
+ const selectedViewport = viewportStates.find(
+ (state) => state.value === viewportValue
+ );
+ const selectedPseudoState = pseudoStates.find(
+ (state) => state.value === pseudoStateValue
+ );
+ if (selectedViewport) {
+ activeStates.push({
+ key: `viewport-${selectedViewport.value}`,
+ label: selectedViewport.label,
+ tooltipText: (0, import_i18n205.sprintf)(
+ /* translators: %s: viewport name, e.g. "Tablet". */
+ (0, import_i18n205.__)("Style changes apply to the %s viewport."),
+ selectedViewport.label
+ )
+ });
+ }
+ if (selectedPseudoState) {
+ activeStates.push({
+ key: `pseudo-${selectedPseudoState.value}`,
+ label: selectedPseudoState.label,
+ tooltipText: (0, import_i18n205.sprintf)(
+ /* translators: %s: pseudo state name, e.g. "Hover". */
+ (0, import_i18n205.__)("Style changes apply to the %s state."),
+ selectedPseudoState.label
+ )
+ });
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime444.jsx)(
+ Stack,
+ {
+ className: className2,
+ direction: "row",
+ justify: "flex-start",
+ gap: "xs",
+ wrap: "wrap",
+ children: activeStates.map((state) => {
+ const badge = /* @__PURE__ */ (0, import_jsx_runtime444.jsxs)(
+ WCBadge4,
+ {
+ className: "block-editor-global-styles-state-control__badge",
+ intent: "info",
+ children: [
+ state.label,
+ !!state.tooltipText && /* @__PURE__ */ (0, import_jsx_runtime444.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime444.jsx)("span", {}), children: state.tooltipText })
+ ]
+ },
+ state.key
+ );
+ if (!state.tooltipText) {
+ return badge;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime444.jsxs)(tooltip_exports.Root, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime444.jsx)(
+ tooltip_exports.Trigger,
+ {
+ render: /* @__PURE__ */ (0, import_jsx_runtime444.jsx)("span", { className: "block-editor-global-styles-state-control__badge-tooltip-trigger", children: badge })
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime444.jsx)(tooltip_exports.Popup, { children: state.tooltipText })
+ ] }, state.key);
+ })
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/global-styles/inherited-value-context.mjs
+ var import_element268 = __toESM(require_element(), 1);
+ var import_data167 = __toESM(require_data(), 1);
+ var import_blocks94 = __toESM(require_blocks(), 1);
+
+ // packages/block-editor/build-module/hooks/block-style-variation.mjs
+ var import_blocks93 = __toESM(require_blocks(), 1);
+ var import_data166 = __toESM(require_data(), 1);
+ var import_element267 = __toESM(require_element(), 1);
+ var import_jsx_runtime445 = __toESM(require_jsx_runtime(), 1);
+ var { getVariationStyle: getVariationStyle3 } = unlock(privateApis);
+ var VARIATION_PREFIX = "is-style-";
+ function getVariationMatches(className2) {
+ if (!className2) {
+ return [];
+ }
+ return className2.split(/\s+/).reduce((matches, name) => {
+ if (name.startsWith(VARIATION_PREFIX)) {
+ const match2 = name.slice(VARIATION_PREFIX.length);
+ if (match2 !== "default") {
+ matches.push(match2);
+ }
+ }
+ return matches;
+ }, []);
+ }
+ function getVariationNameFromClass(className2, registeredStyles = []) {
+ const matches = getVariationMatches(className2);
+ if (!matches) {
+ return null;
+ }
+ for (const variation of matches) {
+ if (registeredStyles.some((style) => style.name === variation)) {
+ return variation;
+ }
+ }
+ return null;
+ }
+ function OverrideStyles({ override }) {
+ usePrivateStyleOverride(override);
+ }
+ function BlockStyleVariationOverridesWithConfig({ config: config2 }) {
+ const { overrides } = (0, import_data166.useSelect)(
+ (select3) => ({
+ overrides: unlock(select3(store)).getStyleOverrides()
+ }),
+ []
+ );
+ const { getBlockName: getBlockName2 } = (0, import_data166.useSelect)(store);
+ const overridesWithConfig = (0, import_element267.useMemo)(() => {
+ if (!overrides?.length) {
+ return;
+ }
+ const newOverrides = [];
+ const overriddenClientIds = [];
+ for (const [, override] of overrides) {
+ if (override?.variation && override?.clientId && /*
+ * Because this component overwrites existing style overrides,
+ * filter out any overrides that are already present in the store.
+ */
+ !overriddenClientIds.includes(override.clientId)) {
+ const blockName = getBlockName2(override.clientId);
+ const configStyles = config2?.styles?.blocks?.[blockName]?.variations?.[override.variation];
+ if (configStyles) {
+ const variationConfig = {
+ settings: config2?.settings,
+ // The variation style data is all that is needed to generate
+ // the styles for the current application to a block. The variation
+ // name is updated to match the instance specific class name.
+ styles: {
+ blocks: {
+ [blockName]: {
+ variations: {
+ [`${override.variation}-${override.clientId}`]: configStyles
+ }
+ }
+ }
+ }
+ };
+ const blockSelectors = getBlockSelectors(
+ (0, import_blocks93.getBlockTypes)(),
+ override.clientId
+ );
+ const hasBlockGapSupport = false;
+ const hasFallbackGapSupport = true;
+ const disableLayoutStyles = true;
+ const disableRootPadding = true;
+ const variationStyles = transformToStyles(
+ variationConfig,
+ blockSelectors,
+ hasBlockGapSupport,
+ hasFallbackGapSupport,
+ disableLayoutStyles,
+ disableRootPadding,
+ {
+ blockGap: false,
+ blockStyles: true,
+ layoutStyles: false,
+ marginReset: false,
+ presets: false,
+ rootPadding: false,
+ variationStyles: true
+ }
+ );
+ newOverrides.push({
+ id: `${override.variation}-${override.clientId}`,
+ css: variationStyles,
+ __unstableType: "variation",
+ variation: override.variation,
+ // The clientId will be stored with the override and used to ensure
+ // the order of overrides matches the order of blocks so that the
+ // correct CSS cascade is maintained.
+ clientId: override.clientId
+ });
+ overriddenClientIds.push(override.clientId);
+ }
+ }
+ }
+ return newOverrides;
+ }, [config2, overrides, getBlockName2]);
+ if (!overridesWithConfig || !overridesWithConfig.length) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime445.jsx)(import_jsx_runtime445.Fragment, { children: overridesWithConfig.map((override) => /* @__PURE__ */ (0, import_jsx_runtime445.jsx)(OverrideStyles, { override }, override.id)) });
+ }
+ function useBlockStyleVariation(name, variation, clientId) {
+ const { globalSettings, globalStyles } = (0, import_data166.useSelect)((select3) => {
+ const settings2 = select3(store).getSettings();
+ return {
+ globalSettings: settings2.__experimentalFeatures,
+ globalStyles: settings2[globalStylesDataKey]
+ };
+ }, []);
+ return (0, import_element267.useMemo)(() => {
+ const variationStyles = getVariationStyle3(
+ {
+ settings: globalSettings,
+ styles: globalStyles
+ },
+ name,
+ variation
+ );
+ return {
+ settings: globalSettings,
+ // The variation style data is all that is needed to generate
+ // the styles for the current application to a block. The variation
+ // name is updated to match the instance specific class name.
+ styles: {
+ blocks: {
+ [name]: {
+ variations: {
+ [`${variation}-${clientId}`]: variationStyles
+ }
+ }
+ }
+ }
+ };
+ }, [globalSettings, globalStyles, variation, clientId, name]);
+ }
+ function useBlockProps3({ name, className: className2, clientId }) {
+ const { getBlockStyles: getBlockStyles2 } = (0, import_data166.useSelect)(import_blocks93.store);
+ const registeredStyles = getBlockStyles2(name);
+ const variation = getVariationNameFromClass(className2, registeredStyles);
+ const variationClass = `${VARIATION_PREFIX}${variation}-${clientId}`;
+ const { settings: settings2, styles } = useBlockStyleVariation(
+ name,
+ variation,
+ clientId
+ );
+ const variationStyles = (0, import_element267.useMemo)(() => {
+ if (!variation) {
+ return;
+ }
+ const variationConfig = { settings: settings2, styles };
+ const blockSelectors = getBlockSelectors((0, import_blocks93.getBlockTypes)(), clientId);
+ const hasBlockGapSupport = false;
+ const hasFallbackGapSupport = true;
+ const disableLayoutStyles = true;
+ const disableRootPadding = true;
+ return transformToStyles(
+ variationConfig,
+ blockSelectors,
+ hasBlockGapSupport,
+ hasFallbackGapSupport,
+ disableLayoutStyles,
+ disableRootPadding,
+ {
+ blockGap: false,
+ blockStyles: true,
+ layoutStyles: false,
+ marginReset: false,
+ presets: false,
+ rootPadding: false,
+ variationStyles: true
+ }
+ );
+ }, [variation, settings2, styles, clientId]);
+ usePrivateStyleOverride({
+ id: `variation-${clientId}`,
+ css: variationStyles,
+ __unstableType: "variation",
+ variation,
+ // The clientId will be stored with the override and used to ensure
+ // the order of overrides matches the order of blocks so that the
+ // correct CSS cascade is maintained.
+ clientId
+ });
+ return variation ? { className: variationClass } : {};
+ }
+ var block_style_variation_default = {
+ hasSupport: () => true,
+ attributeKeys: ["className"],
+ isMatch: ({ className: className2 }) => getVariationMatches(className2).length > 0,
+ useBlockProps: useBlockProps3
+ };
+
+ // packages/block-editor/build-module/components/global-styles/inherited-value-context.mjs
+ var { resolveStyle: resolveStyle3 } = unlock(privateApis);
+ var NO_RESOLVED_STYLE = { value: void 0, sources: void 0 };
+ function useRawGlobalStyles() {
+ const { rawGlobalStylesData, links } = (0, import_data167.useSelect)((select3) => {
+ const settings2 = select3(store).getSettings();
+ return {
+ rawGlobalStylesData: settings2[globalStylesDataKey] ?? null,
+ links: settings2[globalStylesLinksDataKey] ?? null
+ };
+ }, []);
+ return (0, import_element268.useMemo)(
+ () => rawGlobalStylesData ? { styles: rawGlobalStylesData, _links: links ?? void 0 } : null,
+ [rawGlobalStylesData, links]
+ );
+ }
+ var CONTEXT_HEADING_LEVEL_BLOCKS = {
+ "core/accordion-heading": {
+ contextKey: "core/accordion-heading-level",
+ fallbackLevel: 3
+ }
+ };
+ function getHeadingLevel(blockName, levelAttribute, contextLevel) {
+ const contextOwned = CONTEXT_HEADING_LEVEL_BLOCKS[blockName];
+ if (!contextOwned) {
+ return levelAttribute;
+ }
+ return levelAttribute || contextLevel || contextOwned.fallbackLevel;
+ }
+ function useContextHeadingLevel(blockName) {
+ const blockContext = (0, import_element268.useContext)(block_context_default);
+ const contextKey = CONTEXT_HEADING_LEVEL_BLOCKS[blockName]?.contextKey;
+ return contextKey ? blockContext[contextKey] : void 0;
+ }
+ function getElementLayers(blockName, headingLevel) {
+ switch (blockName) {
+ case "core/button":
+ return ["button"];
+ case "core/accordion-heading":
+ case "core/heading":
+ case "core/post-title":
+ case "core/site-title":
+ case "core/query-title":
+ case "core/comments-title":
+ case "core/term-name":
+ case "core/site-tagline":
+ if (headingLevel === 0) {
+ return [];
+ }
+ return headingLevel ? ["heading", `h${headingLevel}`] : ["heading"];
+ // Whole-block link blocks: the entire block renders as an `<a>`, so the
+ // root `styles.elements.link` layer paints it, mirroring how `button`
+ // paints Button. For the blocks whose `color.text` support is disabled
+ // this is inert at the (hidden) text control while their typography
+ // controls now reflect the link element; Read More (`color.text: true`)
+ // surfaces the inherited link color at its Text control.
+ case "core/read-more":
+ case "core/loginout":
+ case "core/post-navigation-link":
+ case "core/query-pagination-next":
+ case "core/query-pagination-previous":
+ case "core/query-pagination-numbers":
+ case "core/comments-pagination-next":
+ case "core/comments-pagination-previous":
+ case "core/comments-pagination-numbers":
+ case "core/comment-edit-link":
+ case "core/comment-reply-link":
+ case "core/post-comments-link":
+ return ["link"];
+ default:
+ return [];
+ }
+ }
+ function useVariationAndElements(blockName, className2) {
+ const { clientId } = useBlockEditContext();
+ const contextHeadingLevel = useContextHeadingLevel(blockName);
+ return (0, import_data167.useSelect)(
+ (select3) => {
+ if (!blockName) {
+ return { variationName: null, headingLevel: void 0 };
+ }
+ const registeredStyles = select3(import_blocks94.store).getBlockStyles(blockName);
+ const { level } = select3(store).getBlockAttributes(clientId) || {};
+ return {
+ variationName: className2 ? getVariationNameFromClass(className2, registeredStyles) : null,
+ headingLevel: getHeadingLevel(
+ blockName,
+ level,
+ contextHeadingLevel
+ )
+ };
+ },
+ [blockName, className2, clientId, contextHeadingLevel]
+ );
+ }
+ function useResolvedStyle(blockName, className2, selectedState = null) {
+ const { variationName, headingLevel } = useVariationAndElements(
+ blockName,
+ className2
+ );
+ const globalStyles = useRawGlobalStyles();
+ return (0, import_element268.useMemo)(() => {
+ if (!isGlobalStylesInheritanceEnabled()) {
+ return NO_RESOLVED_STYLE;
+ }
+ if (!blockName) {
+ return { value: {}, sources: {} };
+ }
+ return resolveStyle3(globalStyles, {
+ blockName,
+ variationName,
+ elements: getElementLayers(blockName, headingLevel),
+ viewport: selectedState?.viewport ?? null,
+ pseudoState: selectedState?.pseudo ?? null
+ });
+ }, [
+ blockName,
+ variationName,
+ headingLevel,
+ globalStyles,
+ selectedState
+ ]);
+ }
+
+ // packages/block-editor/build-module/hooks/border.mjs
+ var import_jsx_runtime446 = __toESM(require_jsx_runtime(), 1);
+ var BORDER_SUPPORT_KEY2 = "__experimentalBorder";
+ var SHADOW_SUPPORT_KEY = "shadow";
+ var getColorByProperty = (colors2, property, value) => {
+ let matchedColor;
+ colors2.some(
+ (origin) => origin.colors.some((color) => {
+ if (color[property] === value) {
+ matchedColor = color;
+ return true;
+ }
+ return false;
+ })
+ );
+ return matchedColor;
+ };
+ var getMultiOriginColor = ({ colors: colors2, namedColor, customColor }) => {
+ if (namedColor) {
+ const colorObject2 = getColorByProperty(colors2, "slug", namedColor);
+ if (colorObject2) {
+ return colorObject2;
+ }
+ }
+ if (!customColor) {
+ return { color: void 0 };
+ }
+ const colorObject = getColorByProperty(colors2, "color", customColor);
+ return colorObject ? colorObject : { color: customColor };
+ };
+ function getColorSlugFromVariable(value) {
+ const namedColor = /var:preset\|color\|(.+)/.exec(value);
+ if (namedColor && namedColor[1]) {
+ return namedColor[1];
+ }
+ return null;
+ }
+ function styleToAttributes(style) {
+ if ((0, import_components210.__experimentalHasSplitBorders)(style?.border)) {
+ return {
+ style,
+ borderColor: void 0
+ };
+ }
+ const borderColorValue = style?.border?.color;
+ const borderColorSlug = borderColorValue?.startsWith("var:preset|color|") ? borderColorValue.substring("var:preset|color|".length) : void 0;
+ const updatedStyle = { ...style };
+ updatedStyle.border = {
+ ...updatedStyle.border,
+ color: borderColorSlug ? void 0 : borderColorValue
+ };
+ return {
+ style: cleanEmptyObject(updatedStyle),
+ borderColor: borderColorSlug
+ };
+ }
+ function attributesToStyle(attributes) {
+ if ((0, import_components210.__experimentalHasSplitBorders)(attributes.style?.border)) {
+ return attributes.style;
+ }
+ return {
+ ...attributes.style,
+ border: {
+ ...attributes.style?.border,
+ color: attributes.borderColor ? "var:preset|color|" + attributes.borderColor : attributes.style?.border?.color
+ }
+ };
+ }
+ function BordersInspectorControl({ label, children, resetAllFilter }) {
+ const attributesResetAllFilter = (0, import_element269.useCallback)(
+ (attributes) => {
+ const existingStyle = attributesToStyle(attributes);
+ const updatedStyle = resetAllFilter(existingStyle);
+ return {
+ ...attributes,
+ ...styleToAttributes(updatedStyle)
+ };
+ },
+ [resetAllFilter]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(
+ inspector_controls_default,
+ {
+ group: "border",
+ resetAllFilter: attributesResetAllFilter,
+ label,
+ children
+ }
+ );
+ }
+ function BorderPanel2({ clientId, name, setAttributes, settings: settings2 }) {
+ const selectedState = useBlockStyleState();
+ const isEnabled = useHasBorderPanel(settings2);
+ const { style, borderColor, className: className2 } = (0, import_data168.useSelect)(
+ (select3) => {
+ if (!isEnabled) {
+ return {};
+ }
+ const {
+ style: _style,
+ borderColor: _borderColor,
+ className: _className
+ } = select3(store).getBlockAttributes(clientId) || {};
+ return {
+ style: _style,
+ borderColor: _borderColor,
+ className: _className
+ };
+ },
+ [clientId, isEnabled]
+ );
+ const { value: inheritedValue } = useResolvedStyle(
+ name,
+ className2,
+ selectedState
+ );
+ const isStateSelected = !isDefaultBlockStyleState2(selectedState);
+ const value = (0, import_element269.useMemo)(() => {
+ if (isStateSelected) {
+ return getStyleForState2(style, selectedState);
+ }
+ return attributesToStyle({ style, borderColor });
+ }, [isStateSelected, selectedState, style, borderColor]);
+ const onChange = isStateSelected ? (newStyle) => {
+ setAttributes({
+ style: setStyleForState(style, selectedState, newStyle)
+ });
+ } : (newStyle) => {
+ setAttributes(styleToAttributes(newStyle));
+ };
+ if (!isEnabled) {
+ return null;
+ }
+ const defaultControls = {
+ ...(0, import_blocks95.getBlockSupport)(name, [
+ BORDER_SUPPORT_KEY2,
+ "__experimentalDefaultControls"
+ ]),
+ ...(0, import_blocks95.getBlockSupport)(name, [
+ SHADOW_SUPPORT_KEY,
+ "__experimentalDefaultControls"
+ ])
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime446.jsx)(
+ BorderPanel,
+ {
+ as: BordersInspectorControl,
+ panelId: clientId,
+ settings: settings2,
+ value,
+ onChange,
+ defaultControls,
+ inheritedValue
+ }
+ );
+ }
+ function hasBorderSupport2(blockName, feature = "any") {
+ const support = (0, import_blocks95.getBlockSupport)(blockName, BORDER_SUPPORT_KEY2);
+ if (support === true) {
+ return true;
+ }
+ if (feature === "any") {
+ return !!(support?.color || support?.radius || support?.width || support?.style);
+ }
+ return !!support?.[feature];
+ }
+ function useBorderPanelLabel({
+ blockName,
+ hasBorderControl,
+ hasShadowControl
+ } = {}) {
+ const settings2 = useBlockSettings(blockName);
+ const controls = useHasBorderPanelControls(settings2);
+ if (!hasBorderControl && !hasShadowControl && blockName) {
+ hasBorderControl = controls?.hasBorderColor || controls?.hasBorderStyle || controls?.hasBorderWidth || controls?.hasBorderRadius;
+ hasShadowControl = controls?.hasShadow;
+ }
+ if (hasBorderControl && hasShadowControl) {
+ return (0, import_i18n206.__)("Border & Shadow");
+ }
+ if (hasShadowControl) {
+ return (0, import_i18n206.__)("Shadow");
+ }
+ return (0, import_i18n206.__)("Border");
+ }
+ function addAttributes(settings2) {
+ if (!hasBorderSupport2(settings2, "color")) {
+ return settings2;
+ }
+ if (settings2.attributes.borderColor) {
+ return settings2;
+ }
+ return {
+ ...settings2,
+ attributes: {
+ ...settings2.attributes,
+ borderColor: {
+ type: "string"
+ }
+ }
+ };
+ }
+ function addSaveProps(props, blockNameOrType, attributes) {
+ if (!hasBorderSupport2(blockNameOrType, "color") || shouldSkipSerialization(blockNameOrType, BORDER_SUPPORT_KEY2, "color")) {
+ return props;
+ }
+ const borderClasses = getBorderClasses(attributes);
+ const newClassName = clsx_default(props.className, borderClasses);
+ props.className = newClassName ? newClassName : void 0;
+ return props;
+ }
+ function getBorderClasses(attributes) {
+ const { borderColor, style } = attributes;
+ const borderColorClass = getColorClassName("border-color", borderColor);
+ return clsx_default({
+ "has-border-color": borderColor || style?.border?.color,
+ [borderColorClass]: !!borderColorClass
+ });
+ }
+ function useBlockProps4({ name, borderColor, style }) {
+ const { colors: colors2 } = useMultipleOriginColorsAndGradients();
+ if (!hasBorderSupport2(name, "color") || shouldSkipSerialization(name, BORDER_SUPPORT_KEY2, "color")) {
+ return {};
+ }
+ const { color: borderColorValue } = getMultiOriginColor({
+ colors: colors2,
+ namedColor: borderColor
+ });
+ const { color: borderTopColor } = getMultiOriginColor({
+ colors: colors2,
+ namedColor: getColorSlugFromVariable(style?.border?.top?.color)
+ });
+ const { color: borderRightColor } = getMultiOriginColor({
+ colors: colors2,
+ namedColor: getColorSlugFromVariable(style?.border?.right?.color)
+ });
+ const { color: borderBottomColor } = getMultiOriginColor({
+ colors: colors2,
+ namedColor: getColorSlugFromVariable(style?.border?.bottom?.color)
+ });
+ const { color: borderLeftColor } = getMultiOriginColor({
+ colors: colors2,
+ namedColor: getColorSlugFromVariable(style?.border?.left?.color)
+ });
+ const extraStyles = {
+ borderTopColor: borderTopColor || borderColorValue,
+ borderRightColor: borderRightColor || borderColorValue,
+ borderBottomColor: borderBottomColor || borderColorValue,
+ borderLeftColor: borderLeftColor || borderColorValue
+ };
+ return addSaveProps(
+ { style: cleanEmptyObject(extraStyles) || {} },
+ name,
+ { borderColor, style }
+ );
+ }
+ var border_default = {
+ useBlockProps: useBlockProps4,
+ addSaveProps,
+ attributeKeys: ["borderColor", "style"],
+ hasSupport(name) {
+ return hasBorderSupport2(name, "color");
+ }
+ };
+ (0, import_hooks13.addFilter)(
+ "blocks.registerBlockType",
+ "core/border/addAttributes",
+ addAttributes
+ );
+
+ // packages/block-editor/build-module/hooks/elements.mjs
+ var import_blocks99 = __toESM(require_blocks(), 1);
+ var import_element272 = __toESM(require_element(), 1);
+ var import_data171 = __toESM(require_data(), 1);
+ var import_i18n208 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/hooks/color.mjs
+ var import_hooks14 = __toESM(require_hooks(), 1);
+ var import_blocks98 = __toESM(require_blocks(), 1);
+ var import_element271 = __toESM(require_element(), 1);
+
+ // packages/block-editor/build-module/hooks/background.mjs
+ var import_blocks97 = __toESM(require_blocks(), 1);
+ var import_data170 = __toESM(require_data(), 1);
+ var import_i18n207 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/hooks/contrast-checker.mjs
+ var import_element270 = __toESM(require_element(), 1);
+ var import_data169 = __toESM(require_data(), 1);
+ var import_blocks96 = __toESM(require_blocks(), 1);
+ var import_a11y21 = __toESM(require_a11y(), 1);
+ function getComputedValue(node, property) {
+ return node.ownerDocument.defaultView.getComputedStyle(node).getPropertyValue(property);
+ }
+ function getBlockElementColors(blockEl, blockType) {
+ if (!blockEl || !blockType) {
+ return {};
+ }
+ const textSelector = getBlockSelector(blockType, "color.text", {
+ fallback: true
+ });
+ const backgroundSelector = getBlockSelector(
+ blockType,
+ "color.background",
+ { fallback: true }
+ );
+ const textElement = blockEl.querySelector(textSelector) || blockEl;
+ const backgroundElement = blockEl.querySelector(backgroundSelector) || blockEl;
+ const linkElement = blockEl.querySelector("a");
+ const textColor = getComputedValue(textElement, "color");
+ const linkColor = linkElement && linkElement.textContent ? getComputedValue(linkElement, "color") : void 0;
+ let backgroundColorNode = backgroundElement;
+ let backgroundColor = getComputedValue(
+ backgroundColorNode,
+ "background-color"
+ );
+ while (backgroundColor === "rgba(0, 0, 0, 0)" && backgroundColorNode.parentNode && backgroundColorNode.parentNode.nodeType === backgroundColorNode.parentNode.ELEMENT_NODE) {
+ backgroundColorNode = backgroundColorNode.parentNode;
+ backgroundColor = getComputedValue(
+ backgroundColorNode,
+ "background-color"
+ );
+ }
+ return {
+ textColor,
+ backgroundColor,
+ linkColor
+ };
+ }
+ function reducer2(prevColors, newColors) {
+ const hasChanged = Object.keys(newColors).some(
+ (key) => prevColors[key] !== newColors[key]
+ );
+ return hasChanged ? newColors : prevColors;
+ }
+ function useBlockColorContrastWarning({
+ clientId,
+ name,
+ enabled = true,
+ checkTextColor = true,
+ checkLinkColor = true,
+ messageOverride
+ }) {
+ const blockEl = useBlockElement(clientId);
+ const [colors2, setColors] = (0, import_element270.useReducer)(reducer2, {});
+ const blockType = (0, import_data169.useSelect)(
+ (select3) => {
+ return name && enabled ? select3(import_blocks96.store).getBlockType(name) : void 0;
+ },
+ [name, enabled]
+ );
+ (0, import_element270.useLayoutEffect)(() => {
+ if (!enabled || !blockEl || !blockType) {
+ return;
+ }
+ window.requestAnimationFrame(
+ () => window.requestAnimationFrame(
+ () => setColors(getBlockElementColors(blockEl, blockType))
+ )
+ );
+ });
+ (0, import_element270.useLayoutEffect)(() => {
+ if (!enabled || !blockEl || !blockType) {
+ return;
+ }
+ const observer = new window.MutationObserver(() => {
+ setColors(getBlockElementColors(blockEl, blockType));
+ });
+ observer.observe(blockEl, {
+ attributes: true,
+ attributeFilter: ["class", "style"],
+ subtree: true
+ });
+ return () => {
+ observer.disconnect();
+ };
+ }, [enabled, blockEl, blockType]);
+ const warning6 = enabled ? getContrastWarning({
+ backgroundColor: colors2.backgroundColor,
+ textColor: checkTextColor ? colors2.textColor : void 0,
+ linkColor: checkLinkColor ? colors2.linkColor : void 0,
+ messageOverride,
+ enableAlphaChecker: true
+ }) : null;
+ const speakMessage = warning6?.speakMessage;
+ (0, import_element270.useEffect)(() => {
+ if (speakMessage) {
+ (0, import_a11y21.speak)(speakMessage);
+ }
+ }, [speakMessage]);
+ return warning6?.message;
+ }
+
+ // packages/block-editor/build-module/hooks/background.mjs
+ var import_jsx_runtime447 = __toESM(require_jsx_runtime(), 1);
+ var BACKGROUND_SUPPORT_KEY = "background";
+ var BACKGROUND_BLOCK_DEFAULT_VALUES2 = {
+ backgroundSize: "cover",
+ backgroundPosition: "50% 50%"
+ // used only when backgroundSize is 'contain'.
+ };
+ function hasBackgroundSupport(blockName, feature = "any") {
+ const support = (0, import_blocks97.getBlockSupport)(blockName, BACKGROUND_SUPPORT_KEY);
+ if (support === true) {
+ return true;
+ }
+ if (feature === "any") {
+ return !!support?.backgroundImage || !!support?.backgroundSize || !!support?.backgroundRepeat || !!support?.gradient;
+ }
+ return !!support?.[feature];
+ }
+ function setBackgroundStyleDefaults2(backgroundStyle) {
+ if (!backgroundStyle || !backgroundStyle?.backgroundImage?.url) {
+ return;
+ }
+ let backgroundStylesWithDefaults;
+ if (!backgroundStyle?.backgroundSize) {
+ backgroundStylesWithDefaults = {
+ backgroundSize: BACKGROUND_BLOCK_DEFAULT_VALUES2.backgroundSize
+ };
+ }
+ if ("contain" === backgroundStyle?.backgroundSize && !backgroundStyle?.backgroundPosition) {
+ backgroundStylesWithDefaults = {
+ backgroundPosition: BACKGROUND_BLOCK_DEFAULT_VALUES2.backgroundPosition
+ };
+ }
+ return backgroundStylesWithDefaults;
+ }
+ function useBlockProps5({ name, style }) {
+ if (!hasBackgroundSupport(name) || !style?.background?.backgroundImage) {
+ return;
+ }
+ const backgroundStyles = setBackgroundStyleDefaults2(style?.background);
+ if (!backgroundStyles) {
+ return;
+ }
+ return {
+ style: {
+ ...backgroundStyles
+ }
+ };
+ }
+ function getBackgroundImageClasses(style) {
+ return hasBackgroundImageValue(style) || hasBackgroundGradientValue(style) ? "has-background" : "";
+ }
+ function backgroundResetAllFilter(attributes) {
+ const updatedClassName = attributes.className?.includes("has-background") ? attributes.className.split(" ").filter((c6) => c6 !== "has-background").join(" ") || void 0 : attributes.className;
+ return {
+ ...attributes,
+ className: updatedClassName,
+ backgroundColor: void 0,
+ gradient: void 0,
+ style: cleanEmptyObject({
+ ...attributes.style,
+ background: void 0,
+ color: {
+ ...attributes.style?.color,
+ background: void 0,
+ gradient: void 0
+ }
+ })
+ };
+ }
+ function BackgroundInspectorControl({ children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime447.jsx)(
+ inspector_controls_default,
+ {
+ group: "background",
+ resetAllFilter: backgroundResetAllFilter,
+ children
+ }
+ );
+ }
+ function BackgroundImagePanel3({
+ clientId,
+ name,
+ setAttributes,
+ settings: settings2,
+ // Allows rendering outside the `background` inspector group (e.g. section
+ // blocks direct-render this panel because their support fills are gated
+ // off by editing mode). Defaults to the slot-based wrapper.
+ asWrapper
+ }) {
+ const selectedState = useBlockStyleState();
+ const { style, className: className2, backgroundColor, gradient } = (0, import_data170.useSelect)(
+ (select3) => {
+ const { getBlockAttributes: getBlockAttributes3 } = select3(store);
+ const blockAttributes = getBlockAttributes3(clientId);
+ return {
+ style: blockAttributes?.style,
+ className: blockAttributes?.className,
+ backgroundColor: blockAttributes?.backgroundColor,
+ gradient: blockAttributes?.gradient
+ };
+ },
+ [clientId]
+ );
+ const { value: inheritedValue } = useResolvedStyle(
+ name,
+ className2,
+ selectedState
+ );
+ const backgroundGradientSupported = hasBackgroundSupport(name, "gradient") && !!settings2?.background?.gradient;
+ const colorSupport = (0, import_blocks97.getBlockSupport)(name, "color");
+ const hasColorBackgroundSupport = colorSupport && colorSupport.background !== false;
+ const hasColorGradientSupport = !!colorSupport?.gradients;
+ const isStateSelected = !isDefaultBlockStyleState2(selectedState);
+ const styleValue = {
+ ...style,
+ color: {
+ ...style?.color,
+ background: backgroundColor ? "var:preset|color|" + backgroundColor : style?.color?.background,
+ gradient: !backgroundGradientSupported && gradient ? "var:preset|gradient|" + gradient : style?.color?.gradient
+ },
+ ...backgroundGradientSupported && {
+ background: {
+ ...style?.background,
+ gradient: gradient ? "var:preset|gradient|" + gradient : style?.background?.gradient ?? style?.color?.gradient
+ }
+ }
+ };
+ const value = isStateSelected ? getStyleForState2(style, selectedState) : styleValue;
+ const enableContrastChecking = !value?.color?.gradient && !value?.background?.gradient && !!value?.color?.background && (settings2?.color?.text || settings2?.color?.link) && false !== (0, import_blocks97.getBlockSupport)(name, ["color", "enableContrastChecker"]);
+ const contrastWarning = useBlockColorContrastWarning({
+ clientId,
+ name,
+ enabled: !!enableContrastChecking,
+ messageOverride: (0, import_i18n207.__)(
+ "This color combination has poor contrast. Consider increasing contrast between background and foreground."
+ )
+ });
+ if (!useHasBackgroundPanel(settings2) || !hasBackgroundSupport(name) && !hasColorBackgroundSupport && !hasColorGradientSupport) {
+ return null;
+ }
+ const onChange = (newStyle) => {
+ if (isStateSelected) {
+ setAttributes({
+ style: setStyleForState(style, selectedState, newStyle)
+ });
+ return;
+ }
+ const newBackgroundColorValue = newStyle?.color?.background;
+ const newBackgroundColorSlug = extractPresetSlug(
+ newBackgroundColorValue,
+ "color"
+ );
+ const newGradientValue = backgroundGradientSupported ? newStyle?.background?.gradient : newStyle?.color?.gradient;
+ const newGradientSlug = extractPresetSlug(
+ newGradientValue,
+ "gradient"
+ );
+ const cleanedColorGradient = newGradientSlug ? void 0 : newStyle?.color?.gradient;
+ const cleanedStyle = {
+ ...newStyle,
+ color: {
+ ...newStyle?.color,
+ background: newBackgroundColorSlug ? void 0 : newBackgroundColorValue,
+ gradient: backgroundGradientSupported ? void 0 : cleanedColorGradient
+ }
+ };
+ if (backgroundGradientSupported) {
+ cleanedStyle.background = {
+ ...cleanedStyle.background,
+ gradient: newStyle?.background?.gradient
+ };
+ }
+ const isMigrating = backgroundGradientSupported && !!style?.color?.gradient;
+ const newAttributes = {
+ style: cleanEmptyObject(cleanedStyle),
+ backgroundColor: newBackgroundColorSlug,
+ // The legacy `gradient` attribute is only used when the block does
+ // not support `background.gradient`; otherwise the gradient is
+ // stored in `style.background.gradient` above.
+ gradient: backgroundGradientSupported ? void 0 : newGradientSlug
+ };
+ const hasNewGradient = !!newGradientSlug || !!newGradientValue;
+ if (isMigrating && hasNewGradient) {
+ newAttributes.className = clsx_default(className2, "has-background");
+ } else if (!hasNewGradient && className2?.includes("has-background")) {
+ newAttributes.className = className2.split(" ").filter((c6) => c6 !== "has-background").join(" ") || void 0;
+ }
+ setAttributes(newAttributes);
+ };
+ const updatedSettings = {
+ ...settings2,
+ background: {
+ ...settings2.background,
+ backgroundSize: settings2?.background?.backgroundSize && hasBackgroundSupport(name, "backgroundSize")
+ }
+ };
+ const backgroundDefaultControls = (0, import_blocks97.getBlockSupport)(name, [
+ BACKGROUND_SUPPORT_KEY,
+ "__experimentalDefaultControls"
+ ]);
+ const colorDefaultControls = (0, import_blocks97.getBlockSupport)(name, [
+ "color",
+ "__experimentalDefaultControls"
+ ]);
+ const defaultControls = {
+ ...backgroundDefaultControls,
+ backgroundColor: colorDefaultControls?.background,
+ // Mirror the old combined control: show the gradient item by default
+ // when background color was shown by default.
+ gradient: backgroundDefaultControls?.gradient ?? colorDefaultControls?.background
+ };
+ const Wrapper = asWrapper || BackgroundInspectorControl;
+ return /* @__PURE__ */ (0, import_jsx_runtime447.jsx)(
+ BackgroundImagePanel2,
+ {
+ as: Wrapper,
+ panelId: clientId,
+ defaultValues: BACKGROUND_BLOCK_DEFAULT_VALUES2,
+ settings: updatedSettings,
+ onChange,
+ defaultControls,
+ value: isStateSelected ? getStyleForState2(style, selectedState) : styleValue,
+ contrastWarning,
+ inheritedValue
+ }
+ );
+ }
+ var background_default = {
+ useBlockProps: useBlockProps5,
+ attributeKeys: ["style"],
+ hasSupport: hasBackgroundSupport
+ };
+
+ // packages/block-editor/build-module/hooks/color.mjs
+ var COLOR_SUPPORT_KEY2 = "color";
+ var hasColorSupport = (blockNameOrType) => {
+ const colorSupport = (0, import_blocks98.getBlockSupport)(blockNameOrType, COLOR_SUPPORT_KEY2);
+ return colorSupport && (colorSupport.link === true || colorSupport.gradient === true || colorSupport.background !== false || colorSupport.text !== false);
+ };
+ var hasLinkColorSupport = (blockType) => {
+ const colorSupport = (0, import_blocks98.getBlockSupport)(blockType, COLOR_SUPPORT_KEY2);
+ return colorSupport !== null && typeof colorSupport === "object" && !!colorSupport.link;
+ };
+ var hasGradientSupport2 = (blockNameOrType) => {
+ const colorSupport = (0, import_blocks98.getBlockSupport)(blockNameOrType, COLOR_SUPPORT_KEY2);
+ return colorSupport !== null && typeof colorSupport === "object" && !!colorSupport.gradients;
+ };
+ var hasBackgroundColorSupport2 = (blockType) => {
+ const colorSupport = (0, import_blocks98.getBlockSupport)(blockType, COLOR_SUPPORT_KEY2);
+ return colorSupport && colorSupport.background !== false;
+ };
+ var hasTextColorSupport2 = (blockType) => {
+ const colorSupport = (0, import_blocks98.getBlockSupport)(blockType, COLOR_SUPPORT_KEY2);
+ return colorSupport && colorSupport.text !== false;
+ };
+ function addAttributes2(settings2) {
+ if (!hasColorSupport(settings2)) {
+ return settings2;
+ }
+ if (!settings2.attributes.backgroundColor) {
+ Object.assign(settings2.attributes, {
+ backgroundColor: {
+ type: "string"
+ }
+ });
+ }
+ if (!settings2.attributes.textColor) {
+ Object.assign(settings2.attributes, {
+ textColor: {
+ type: "string"
+ }
+ });
+ }
+ if (hasGradientSupport2(settings2) && !settings2.attributes.gradient) {
+ Object.assign(settings2.attributes, {
+ gradient: {
+ type: "string"
+ }
+ });
+ }
+ return settings2;
+ }
+ function addSaveProps2(props, blockNameOrType, attributes) {
+ if (!hasColorSupport(blockNameOrType) || shouldSkipSerialization(blockNameOrType, COLOR_SUPPORT_KEY2)) {
+ return props;
+ }
+ const hasGradient = hasGradientSupport2(blockNameOrType);
+ const { backgroundColor, textColor, gradient, style } = attributes;
+ const shouldSerialize = (feature) => !shouldSkipSerialization(
+ blockNameOrType,
+ COLOR_SUPPORT_KEY2,
+ feature
+ );
+ const textClass = shouldSerialize("text") ? getColorClassName("color", textColor) : void 0;
+ const gradientClass = shouldSerialize("gradients") ? __experimentalGetGradientClass(gradient) : void 0;
+ const backgroundClass = shouldSerialize("background") ? getColorClassName("background-color", backgroundColor) : void 0;
+ const serializeHasBackground = shouldSerialize("background") || shouldSerialize("gradients");
+ const hasBackground = backgroundColor || style?.color?.background || hasGradient && (gradient || style?.color?.gradient);
+ const newClassName = clsx_default(props.className, textClass, gradientClass, {
+ // Don't apply the background class if there's a custom gradient.
+ [backgroundClass]: (!hasGradient || !style?.color?.gradient) && !!backgroundClass,
+ "has-text-color": shouldSerialize("text") && (textColor || style?.color?.text),
+ "has-background": serializeHasBackground && hasBackground,
+ "has-link-color": shouldSerialize("link") && style?.elements?.link?.color
+ });
+ props.className = newClassName ? newClassName : void 0;
+ return props;
+ }
+ function useBlockProps6({
+ name,
+ backgroundColor,
+ textColor,
+ gradient,
+ style
+ }) {
+ const [userPalette, themePalette, defaultPalette] = useSettings(
+ "color.palette.custom",
+ "color.palette.theme",
+ "color.palette.default"
+ );
+ const colors2 = (0, import_element271.useMemo)(
+ () => [
+ ...userPalette || [],
+ ...themePalette || [],
+ ...defaultPalette || []
+ ],
+ [userPalette, themePalette, defaultPalette]
+ );
+ if (!hasColorSupport(name) || shouldSkipSerialization(name, COLOR_SUPPORT_KEY2)) {
+ return {};
+ }
+ const extraStyles = {};
+ if (textColor && !shouldSkipSerialization(name, COLOR_SUPPORT_KEY2, "text")) {
+ extraStyles.color = getColorObjectByAttributeValues(
+ colors2,
+ textColor
+ )?.color;
+ }
+ if (backgroundColor && !shouldSkipSerialization(name, COLOR_SUPPORT_KEY2, "background")) {
+ extraStyles.backgroundColor = getColorObjectByAttributeValues(
+ colors2,
+ backgroundColor
+ )?.color;
+ }
+ const saveProps = addSaveProps2({ style: extraStyles }, name, {
+ textColor,
+ backgroundColor,
+ gradient,
+ style
+ });
+ const hasBackgroundValue = backgroundColor || style?.color?.background || gradient || style?.color?.gradient;
+ return {
+ ...saveProps,
+ className: clsx_default(
+ saveProps.className,
+ // Add background image classes in the editor, if not already handled by background color values.
+ !hasBackgroundValue && getBackgroundImageClasses(style)
+ )
+ };
+ }
+ var color_default = {
+ useBlockProps: useBlockProps6,
+ addSaveProps: addSaveProps2,
+ attributeKeys: ["backgroundColor", "textColor", "gradient", "style"],
+ hasSupport: hasColorSupport
+ };
+ var MIGRATION_PATHS = {
+ linkColor: [["style", "elements", "link", "color", "text"]],
+ textColor: [["textColor"], ["style", "color", "text"]],
+ backgroundColor: [
+ ["backgroundColor"],
+ ["style", "color", "background"]
+ ],
+ gradient: [["gradient"], ["style", "color", "gradient"]]
+ };
+ function addTransforms(result, source, index2, results) {
+ const destinationBlockType = result.name;
+ const activeSupports = {
+ linkColor: hasLinkColorSupport(destinationBlockType),
+ textColor: hasTextColorSupport2(destinationBlockType),
+ backgroundColor: hasBackgroundColorSupport2(destinationBlockType),
+ gradient: hasGradientSupport2(destinationBlockType)
+ };
+ return transformStyles2(
+ activeSupports,
+ MIGRATION_PATHS,
+ result,
+ source,
+ index2,
+ results
+ );
+ }
+ (0, import_hooks14.addFilter)(
+ "blocks.registerBlockType",
+ "core/color/addAttribute",
+ addAttributes2
+ );
+ (0, import_hooks14.addFilter)(
+ "blocks.switchToBlockType.transformedBlock",
+ "core/color/addTransforms",
+ addTransforms
+ );
+
+ // packages/block-editor/build-module/hooks/elements.mjs
+ var import_jsx_runtime448 = __toESM(require_jsx_runtime(), 1);
+ function ElementsInspectorControl({ children, resetAllFilter }) {
+ const attributesResetAllFilter = (0, import_element272.useCallback)(
+ (attributes) => {
+ const updatedStyle = resetAllFilter(attributes.style);
+ return {
+ ...attributes,
+ style: cleanEmptyObject(updatedStyle)
+ };
+ },
+ [resetAllFilter]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
+ inspector_controls_default,
+ {
+ group: "elements",
+ resetAllFilter: attributesResetAllFilter,
+ children
+ }
+ );
+ }
+ function ElementsEdit({
+ clientId,
+ name,
+ setAttributes,
+ settings: settings2,
+ asWrapper,
+ label,
+ defaultControls
+ }) {
+ const selectedState = useBlockStyleState();
+ const isEnabled = useHasColorPanel(settings2);
+ const { style, className: className2 } = (0, import_data171.useSelect)(
+ (select3) => {
+ if (!isEnabled) {
+ return {};
+ }
+ const attributes = select3(store).getBlockAttributes(clientId);
+ return {
+ style: attributes?.style,
+ className: attributes?.className
+ };
+ },
+ [clientId, isEnabled]
+ );
+ const { value: inheritedValue } = useResolvedStyle(
+ name,
+ className2,
+ selectedState
+ );
+ const isStateSelected = !isDefaultBlockStyleState2(selectedState);
+ const value = (0, import_element272.useMemo)(() => {
+ if (isStateSelected) {
+ return getStyleForState2(style, selectedState);
+ }
+ return style;
+ }, [isStateSelected, selectedState, style]);
+ const onChange = isStateSelected ? (newStyle) => {
+ setAttributes({
+ style: setStyleForState(style, selectedState, newStyle)
+ });
+ } : (newStyle) => {
+ setAttributes({ style: cleanEmptyObject(newStyle) });
+ };
+ const enableContrastChecking = !!value?.elements?.link?.color?.text && settings2?.color?.link && false !== (0, import_blocks99.getBlockSupport)(name, [
+ COLOR_SUPPORT_KEY2,
+ "enableContrastChecker"
+ ]);
+ const contrastWarning = useBlockColorContrastWarning({
+ clientId,
+ name,
+ enabled: !!enableContrastChecking,
+ checkTextColor: false,
+ messageOverride: (0, import_i18n208.__)(
+ "This link color has poor contrast against the background. Consider increasing contrast."
+ )
+ });
+ if (!isEnabled) {
+ return null;
+ }
+ defaultControls = defaultControls ? defaultControls : (0, import_blocks99.getBlockSupport)(name, [
+ COLOR_SUPPORT_KEY2,
+ "__experimentalDefaultControls"
+ ]);
+ const Wrapper = asWrapper || ElementsInspectorControl;
+ return /* @__PURE__ */ (0, import_jsx_runtime448.jsx)(
+ ColorPanel,
+ {
+ as: Wrapper,
+ panelId: clientId,
+ settings: settings2,
+ value,
+ onChange,
+ defaultControls,
+ label,
+ contrastWarning,
+ inheritedValue
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/hooks/typography.mjs
+ var import_blocks105 = __toESM(require_blocks(), 1);
+ var import_element276 = __toESM(require_element(), 1);
+ var import_data175 = __toESM(require_data(), 1);
+ var import_i18n212 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/hooks/line-height.mjs
+ var import_blocks100 = __toESM(require_blocks(), 1);
+ var import_jsx_runtime449 = __toESM(require_jsx_runtime(), 1);
+ var LINE_HEIGHT_SUPPORT_KEY2 = "typography.lineHeight";
+
+ // packages/block-editor/build-module/hooks/font-family.mjs
+ var import_hooks15 = __toESM(require_hooks(), 1);
+ var import_blocks101 = __toESM(require_blocks(), 1);
+ var import_token_list2 = __toESM(require_token_list(), 1);
+ var FONT_FAMILY_SUPPORT_KEY2 = "typography.__experimentalFontFamily";
+ function addAttributes3(settings2) {
+ if (!(0, import_blocks101.hasBlockSupport)(settings2, FONT_FAMILY_SUPPORT_KEY2)) {
+ return settings2;
+ }
+ if (!settings2.attributes.fontFamily) {
+ Object.assign(settings2.attributes, {
+ fontFamily: {
+ type: "string"
+ }
+ });
+ }
+ return settings2;
+ }
+ function addSaveProps3(props, blockType, attributes) {
+ if (!(0, import_blocks101.hasBlockSupport)(blockType, FONT_FAMILY_SUPPORT_KEY2)) {
+ return props;
+ }
+ if (shouldSkipSerialization(
+ blockType,
+ TYPOGRAPHY_SUPPORT_KEY,
+ "fontFamily"
+ )) {
+ return props;
+ }
+ if (!attributes?.fontFamily) {
+ return props;
+ }
+ const classes = new import_token_list2.default(props.className);
+ classes.add(`has-${kebabCase(attributes?.fontFamily)}-font-family`);
+ const newClassName = classes.value;
+ props.className = newClassName ? newClassName : void 0;
+ return props;
+ }
+ function useBlockProps7({ name, fontFamily }) {
+ return addSaveProps3({}, name, { fontFamily });
+ }
+ var font_family_default = {
+ useBlockProps: useBlockProps7,
+ addSaveProps: addSaveProps3,
+ attributeKeys: ["fontFamily"],
+ hasSupport(name) {
+ return (0, import_blocks101.hasBlockSupport)(name, FONT_FAMILY_SUPPORT_KEY2);
+ }
+ };
+ (0, import_hooks15.addFilter)(
+ "blocks.registerBlockType",
+ "core/fontFamily/addAttribute",
+ addAttributes3
+ );
+
+ // packages/block-editor/build-module/hooks/font-size.mjs
+ var import_hooks16 = __toESM(require_hooks(), 1);
+ var import_blocks102 = __toESM(require_blocks(), 1);
+ var import_token_list3 = __toESM(require_token_list(), 1);
+ var import_jsx_runtime450 = __toESM(require_jsx_runtime(), 1);
+ var FONT_SIZE_SUPPORT_KEY2 = "typography.fontSize";
+ function addAttributes4(settings2) {
+ if (!(0, import_blocks102.hasBlockSupport)(settings2, FONT_SIZE_SUPPORT_KEY2)) {
+ return settings2;
+ }
+ if (!settings2.attributes.fontSize) {
+ Object.assign(settings2.attributes, {
+ fontSize: {
+ type: "string"
+ }
+ });
+ }
+ return settings2;
+ }
+ function addSaveProps4(props, blockNameOrType, attributes) {
+ if (!(0, import_blocks102.hasBlockSupport)(blockNameOrType, FONT_SIZE_SUPPORT_KEY2)) {
+ return props;
+ }
+ if (shouldSkipSerialization(
+ blockNameOrType,
+ TYPOGRAPHY_SUPPORT_KEY,
+ "fontSize"
+ )) {
+ return props;
+ }
+ const classes = new import_token_list3.default(props.className);
+ classes.add(getFontSizeClass(attributes.fontSize));
+ const newClassName = classes.value;
+ props.className = newClassName ? newClassName : void 0;
+ return props;
+ }
+ function useBlockProps8({ name, fontSize, style }) {
+ const [fontSizes, fluidTypographySettings, layoutSettings] = useSettings(
+ "typography.fontSizes",
+ "typography.fluid",
+ "layout"
+ );
+ if (!(0, import_blocks102.hasBlockSupport)(name, FONT_SIZE_SUPPORT_KEY2) || shouldSkipSerialization(name, TYPOGRAPHY_SUPPORT_KEY, "fontSize") || !fontSize && !style?.typography?.fontSize) {
+ return;
+ }
+ let props;
+ if (style?.typography?.fontSize) {
+ props = {
+ style: {
+ fontSize: getTypographyFontSizeValue(
+ { size: style.typography.fontSize },
+ {
+ typography: {
+ fluid: fluidTypographySettings
+ },
+ layout: layoutSettings
+ }
+ )
+ }
+ };
+ }
+ if (fontSize) {
+ props = {
+ style: {
+ fontSize: getFontSize(
+ fontSizes,
+ fontSize,
+ style?.typography?.fontSize
+ ).size
+ }
+ };
+ }
+ if (!props) {
+ return;
+ }
+ return addSaveProps4(props, name, { fontSize });
+ }
+ var font_size_default = {
+ useBlockProps: useBlockProps8,
+ addSaveProps: addSaveProps4,
+ attributeKeys: ["fontSize", "style"],
+ hasSupport(name) {
+ return (0, import_blocks102.hasBlockSupport)(name, FONT_SIZE_SUPPORT_KEY2);
+ }
+ };
+ var MIGRATION_PATHS2 = {
+ fontSize: [["fontSize"], ["style", "typography", "fontSize"]]
+ };
+ function addTransforms2(result, source, index2, results) {
+ const destinationBlockType = result.name;
+ const activeSupports = {
+ fontSize: (0, import_blocks102.hasBlockSupport)(
+ destinationBlockType,
+ FONT_SIZE_SUPPORT_KEY2
+ )
+ };
+ return transformStyles2(
+ activeSupports,
+ MIGRATION_PATHS2,
+ result,
+ source,
+ index2,
+ results
+ );
+ }
+ (0, import_hooks16.addFilter)(
+ "blocks.registerBlockType",
+ "core/font/addAttribute",
+ addAttributes4
+ );
+ (0, import_hooks16.addFilter)(
+ "blocks.switchToBlockType.transformedBlock",
+ "core/font-size/addTransforms",
+ addTransforms2
+ );
+
+ // packages/block-editor/build-module/hooks/text-align.mjs
+ var import_i18n209 = __toESM(require_i18n(), 1);
+ var import_blocks103 = __toESM(require_blocks(), 1);
+ var import_data173 = __toESM(require_data(), 1);
+
+ // packages/block-editor/build-module/components/block-editing-mode/index.mjs
+ var import_data172 = __toESM(require_data(), 1);
+ var import_element273 = __toESM(require_element(), 1);
+ function useBlockEditingMode(mode2) {
+ const context = useBlockEditContext();
+ const { clientId = "" } = context;
+ const registry = (0, import_data172.useRegistry)();
+ const globalBlockEditingMode = (0, import_data172.useSelect)(
+ (select3) => (
+ // Avoid adding the subscription if not needed!
+ clientId ? null : select3(store).getBlockEditingMode()
+ ),
+ [clientId]
+ );
+ (0, import_element273.useEffect)(() => {
+ if (!mode2) {
+ return;
+ }
+ const {
+ setBlockEditingMode: setBlockEditingMode2,
+ unsetBlockEditingMode: unsetBlockEditingMode2,
+ __unstableMarkNextChangeAsNotPersistent: __unstableMarkNextChangeAsNotPersistent2
+ } = registry.dispatch(store);
+ __unstableMarkNextChangeAsNotPersistent2();
+ setBlockEditingMode2(clientId, mode2);
+ return () => {
+ __unstableMarkNextChangeAsNotPersistent2();
+ unsetBlockEditingMode2(clientId);
+ };
+ }, [registry, clientId, mode2]);
+ return clientId ? context[blockEditingModeKey] : globalBlockEditingMode;
+ }
+
+ // packages/block-editor/build-module/hooks/text-align.mjs
+ var import_jsx_runtime451 = __toESM(require_jsx_runtime(), 1);
+ var TEXT_ALIGN_SUPPORT_KEY2 = "typography.textAlign";
+ var TEXT_ALIGNMENT_OPTIONS2 = [
+ {
+ icon: align_left_default,
+ title: (0, import_i18n209.__)("Align text left"),
+ align: "left"
+ },
+ {
+ icon: align_center_default,
+ title: (0, import_i18n209.__)("Align text center"),
+ align: "center"
+ },
+ {
+ icon: align_right_default,
+ title: (0, import_i18n209.__)("Align text right"),
+ align: "right"
+ }
+ ];
+ var VALID_TEXT_ALIGNMENTS = ["left", "center", "right"];
+ var NO_TEXT_ALIGNMENTS = [];
+ function getValidTextAlignments(blockTextAlign) {
+ if (Array.isArray(blockTextAlign)) {
+ return VALID_TEXT_ALIGNMENTS.filter(
+ (textAlign) => blockTextAlign.includes(textAlign)
+ );
+ }
+ return blockTextAlign === true ? VALID_TEXT_ALIGNMENTS : NO_TEXT_ALIGNMENTS;
+ }
+ function getTextAlignControlGroup(isResponsiveEditing3, selectedState) {
+ return isResponsiveEditing3 && hasViewportBlockStyleState(selectedState) ? "style-state" : "block";
+ }
+ function BlockEditTextAlignmentToolbarControlsPure({
+ clientId,
+ style,
+ name: blockName,
+ setAttributes
+ }) {
+ const settings2 = useBlockSettings(blockName);
+ const hasTextAlignControl = settings2?.typography?.textAlign;
+ const blockEditingMode = useBlockEditingMode();
+ const { selectedState, isResponsiveEditing: isResponsiveEditing3 } = (0, import_data173.useSelect)(
+ (select3) => {
+ const {
+ getSelectedBlockStyleState: getSelectedBlockStyleState2,
+ isResponsiveEditing: getIsResponsiveEditing
+ } = unlock(select3(store));
+ return {
+ selectedState: getSelectedBlockStyleState2(clientId),
+ isResponsiveEditing: getIsResponsiveEditing()
+ };
+ },
+ [clientId]
+ );
+ if (!hasTextAlignControl || blockEditingMode !== "default") {
+ return null;
+ }
+ const validTextAlignments = getValidTextAlignments(
+ (0, import_blocks103.getBlockSupport)(blockName, TEXT_ALIGN_SUPPORT_KEY2)
+ );
+ if (!validTextAlignments.length) {
+ return null;
+ }
+ const textAlignmentControls = TEXT_ALIGNMENT_OPTIONS2.filter(
+ (control) => validTextAlignments.includes(control.align)
+ );
+ const stateStyle = getStyleForState2(style, selectedState);
+ const controlsGroup = getTextAlignControlGroup(
+ isResponsiveEditing3,
+ selectedState
+ );
+ const onChange = (newTextAlignValue) => {
+ const newStateStyle = {
+ ...stateStyle,
+ typography: {
+ ...stateStyle?.typography,
+ textAlign: newTextAlignValue
+ }
+ };
+ setAttributes({
+ style: setStyleForState(style, selectedState, newStateStyle)
+ });
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(block_controls_default, { group: controlsGroup, children: /* @__PURE__ */ (0, import_jsx_runtime451.jsx)(
+ AlignmentControl,
+ {
+ value: stateStyle?.typography?.textAlign,
+ onChange,
+ alignmentControls: textAlignmentControls
+ }
+ ) });
+ }
+ var text_align_default = {
+ edit: BlockEditTextAlignmentToolbarControlsPure,
+ useBlockProps: useBlockProps9,
+ addSaveProps: addAssignedTextAlign,
+ attributeKeys: ["style"],
+ hasSupport(name) {
+ return (0, import_blocks103.hasBlockSupport)(name, TEXT_ALIGN_SUPPORT_KEY2, false);
+ }
+ };
+ function useBlockProps9({ name, style }) {
+ if (!style?.typography?.textAlign) {
+ return null;
+ }
+ const validTextAlignments = getValidTextAlignments(
+ (0, import_blocks103.getBlockSupport)(name, TEXT_ALIGN_SUPPORT_KEY2)
+ );
+ if (!validTextAlignments.length) {
+ return null;
+ }
+ if (shouldSkipSerialization(name, TYPOGRAPHY_SUPPORT_KEY, "textAlign")) {
+ return null;
+ }
+ const textAlign = style.typography.textAlign;
+ const className2 = clsx_default({
+ [`has-text-align-${textAlign}`]: textAlign
+ });
+ return { className: className2 };
+ }
+ function addAssignedTextAlign(props, blockType, attributes) {
+ if (!attributes?.style?.typography?.textAlign) {
+ return props;
+ }
+ const { textAlign } = attributes.style.typography;
+ const blockTextAlign = (0, import_blocks103.getBlockSupport)(blockType, TEXT_ALIGN_SUPPORT_KEY2);
+ const isTextAlignValid = getValidTextAlignments(blockTextAlign).includes(textAlign);
+ if (isTextAlignValid && !shouldSkipSerialization(
+ blockType,
+ TYPOGRAPHY_SUPPORT_KEY,
+ "textAlign"
+ )) {
+ props.className = clsx_default(
+ `has-text-align-${textAlign}`,
+ props.className
+ );
+ }
+ return props;
+ }
+
+ // packages/block-editor/build-module/hooks/fit-text.mjs
+ var import_hooks17 = __toESM(require_hooks(), 1);
+ var import_blocks104 = __toESM(require_blocks(), 1);
+ var import_element275 = __toESM(require_element(), 1);
+ var import_data174 = __toESM(require_data(), 1);
+ var import_i18n211 = __toESM(require_i18n(), 1);
+ var import_components213 = __toESM(require_components(), 1);
+ var import_compose97 = __toESM(require_compose(), 1);
+
+ // packages/block-editor/build-module/utils/fit-text-utils.mjs
+ function findOptimalFontSize(textElement, applyFontSize) {
+ const alreadyHasScrollableHeight = textElement.scrollHeight > textElement.clientHeight;
+ let minSize = 0;
+ let maxSize = 2400;
+ let bestSize = minSize;
+ const computedStyle = window.getComputedStyle(textElement);
+ let paddingLeft = parseFloat(computedStyle.paddingLeft) || 0;
+ let paddingRight = parseFloat(computedStyle.paddingRight) || 0;
+ const range2 = document.createRange();
+ range2.selectNodeContents(textElement);
+ let referenceElement = textElement;
+ const parentElement = textElement.parentElement;
+ if (parentElement) {
+ const parentElementComputedStyle = window.getComputedStyle(parentElement);
+ if (parentElementComputedStyle?.display === "flex") {
+ referenceElement = parentElement;
+ paddingLeft += parseFloat(parentElementComputedStyle.paddingLeft) || 0;
+ paddingRight += parseFloat(parentElementComputedStyle.paddingRight) || 0;
+ }
+ }
+ let maxclientHeight = referenceElement.clientHeight;
+ while (minSize <= maxSize) {
+ const midSize = Math.floor((minSize + maxSize) / 2);
+ applyFontSize(midSize);
+ const rect = range2.getBoundingClientRect();
+ const textWidth = rect.width;
+ const fitsWidth = textElement.scrollWidth <= referenceElement.clientWidth && textWidth <= referenceElement.clientWidth - paddingLeft - paddingRight;
+ const fitsHeight = alreadyHasScrollableHeight || textElement.scrollHeight <= referenceElement.clientHeight || textElement.scrollHeight <= maxclientHeight;
+ if (referenceElement.clientHeight > maxclientHeight) {
+ maxclientHeight = referenceElement.clientHeight;
+ }
+ if (fitsWidth && fitsHeight) {
+ bestSize = midSize;
+ minSize = midSize + 1;
+ } else {
+ maxSize = midSize - 1;
+ }
+ }
+ range2.detach();
+ return bestSize;
+ }
+ function optimizeFitText(textElement, applyFontSize) {
+ if (!textElement) {
+ return;
+ }
+ applyFontSize(0);
+ const optimalSize = findOptimalFontSize(textElement, applyFontSize);
+ applyFontSize(optimalSize);
+ return optimalSize;
+ }
+
+ // packages/block-editor/build-module/components/fit-text-size-warning/index.mjs
+ var import_element274 = __toESM(require_element(), 1);
+ var import_i18n210 = __toESM(require_i18n(), 1);
+ var import_components212 = __toESM(require_components(), 1);
+ var import_a11y22 = __toESM(require_a11y(), 1);
+ var import_jsx_runtime452 = __toESM(require_jsx_runtime(), 1);
+ function FitTextSizeWarning() {
+ const message2 = (0, import_i18n210.__)(
+ "The text may be too small to read. Consider using a larger container or less text."
+ );
+ (0, import_element274.useEffect)(() => {
+ (0, import_a11y22.speak)(message2);
+ }, [message2]);
+ return /* @__PURE__ */ (0, import_jsx_runtime452.jsx)("div", { className: "block-editor-fit-text-size-warning", children: /* @__PURE__ */ (0, import_jsx_runtime452.jsx)(
+ import_components212.Notice,
+ {
+ spokenMessage: null,
+ status: "warning",
+ isDismissible: false,
+ children: message2
+ }
+ ) });
+ }
+
+ // packages/block-editor/build-module/hooks/fit-text.mjs
+ var import_jsx_runtime453 = __toESM(require_jsx_runtime(), 1);
+ var EMPTY_OBJECT4 = {};
+ var MIN_FONT_SIZE_FOR_WARNING = 12;
+ var FIT_TEXT_SUPPORT_KEY = "typography.fitText";
+ function addAttributes5(settings2) {
+ if (!(0, import_blocks104.hasBlockSupport)(settings2, FIT_TEXT_SUPPORT_KEY)) {
+ return settings2;
+ }
+ if (settings2.attributes?.fitText) {
+ return settings2;
+ }
+ return {
+ ...settings2,
+ attributes: {
+ ...settings2.attributes,
+ fitText: {
+ type: "boolean"
+ }
+ }
+ };
+ }
+ function useFitText({ fitText, name, clientId }) {
+ const [fontSize, setFontSize] = (0, import_element275.useState)(null);
+ const hasFitTextSupport2 = (0, import_blocks104.hasBlockSupport)(name, FIT_TEXT_SUPPORT_KEY);
+ const blockElement = useBlockElement(clientId);
+ const { blockAttributes, parentId, blockMode } = (0, import_data174.useSelect)(
+ (select3) => {
+ if (!clientId || !hasFitTextSupport2 || !fitText) {
+ return EMPTY_OBJECT4;
+ }
+ const _blockMode = select3(store).getBlockMode(clientId);
+ if (_blockMode === "html") {
+ return { blockMode: _blockMode };
+ }
+ return {
+ blockAttributes: select3(store).getBlockAttributes(clientId),
+ parentId: select3(store).getBlockRootClientId(clientId),
+ blockMode: _blockMode
+ };
+ },
+ [clientId, hasFitTextSupport2, fitText]
+ );
+ const applyFitText = (0, import_element275.useCallback)(() => {
+ if (!blockElement || !hasFitTextSupport2 || !fitText) {
+ return;
+ }
+ const styleId = `fit-text-${clientId}`;
+ let styleElement = blockElement.ownerDocument.getElementById(styleId);
+ if (!styleElement) {
+ styleElement = blockElement.ownerDocument.createElement("style");
+ styleElement.id = styleId;
+ blockElement.ownerDocument.head.appendChild(styleElement);
+ }
+ const blockSelector = `#block-${clientId}`;
+ const applyFontSizeStyle = (size4) => {
+ if (size4 === 0) {
+ styleElement.textContent = "";
+ } else {
+ styleElement.textContent = `${blockSelector} { font-size: ${size4}px !important; }`;
+ }
+ };
+ const optimalSize = optimizeFitText(blockElement, applyFontSizeStyle);
+ setFontSize(optimalSize);
+ }, [blockElement, clientId, hasFitTextSupport2, fitText]);
+ (0, import_element275.useEffect)(() => {
+ if (!fitText || !blockElement || !clientId || !hasFitTextSupport2 || blockMode === "html") {
+ return;
+ }
+ const currentElement = blockElement;
+ const previousVisibility = currentElement.style.visibility;
+ let hideFrameId = null;
+ let calculateFrameId = null;
+ let showTimeoutId = null;
+ hideFrameId = window.requestAnimationFrame(() => {
+ currentElement.style.visibility = "hidden";
+ calculateFrameId = window.requestAnimationFrame(() => {
+ applyFitText();
+ showTimeoutId = setTimeout(() => {
+ currentElement.style.visibility = previousVisibility;
+ }, 10);
+ });
+ });
+ let resizeObserver;
+ if (window.ResizeObserver && currentElement.parentElement) {
+ resizeObserver = new window.ResizeObserver(applyFitText);
+ resizeObserver.observe(currentElement.parentElement);
+ resizeObserver.observe(currentElement);
+ }
+ return () => {
+ if (hideFrameId !== null) {
+ window.cancelAnimationFrame(hideFrameId);
+ }
+ if (calculateFrameId !== null) {
+ window.cancelAnimationFrame(calculateFrameId);
+ }
+ if (showTimeoutId !== null) {
+ clearTimeout(showTimeoutId);
+ }
+ if (resizeObserver) {
+ resizeObserver.disconnect();
+ }
+ const styleId = `fit-text-${clientId}`;
+ const styleElement = currentElement.ownerDocument.getElementById(styleId);
+ if (styleElement) {
+ styleElement.remove();
+ }
+ };
+ }, [
+ fitText,
+ clientId,
+ parentId,
+ applyFitText,
+ blockElement,
+ hasFitTextSupport2,
+ blockMode
+ ]);
+ (0, import_element275.useEffect)(() => {
+ if (fitText && blockElement && hasFitTextSupport2 && blockMode !== "html") {
+ const frameId = window.requestAnimationFrame(() => {
+ if (blockElement) {
+ applyFitText();
+ }
+ });
+ return () => window.cancelAnimationFrame(frameId);
+ }
+ }, [
+ blockAttributes,
+ fitText,
+ applyFitText,
+ blockElement,
+ hasFitTextSupport2,
+ blockMode
+ ]);
+ return { fontSize };
+ }
+ function FitTextControl({
+ clientId,
+ fitText = false,
+ setAttributes,
+ name,
+ fontSize,
+ style
+ }) {
+ const hasSelectedStyleState2 = (0, import_data174.useSelect)(
+ (select3) => {
+ const { hasSelectedStyleState: hasSelectedBlockStyleState } = unlock(select3(store));
+ return hasSelectedBlockStyleState(clientId);
+ },
+ [clientId]
+ );
+ if (!(0, import_blocks104.hasBlockSupport)(name, FIT_TEXT_SUPPORT_KEY)) {
+ return null;
+ }
+ if (hasSelectedStyleState2) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(
+ import_components213.__experimentalToolsPanelItem,
+ {
+ hasValue: () => fitText,
+ label: (0, import_i18n211.__)("Fit text"),
+ onDeselect: () => setAttributes({ fitText: void 0 }),
+ resetAllFilter: () => ({ fitText: void 0 }),
+ panelId: clientId,
+ children: /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(
+ import_components213.ToggleControl,
+ {
+ label: (0, import_i18n211.__)("Fit text"),
+ checked: fitText,
+ onChange: () => {
+ const newFitText = !fitText || void 0;
+ const updates = { fitText: newFitText };
+ if (newFitText) {
+ if (fontSize) {
+ updates.fontSize = void 0;
+ }
+ if (style?.typography?.fontSize) {
+ updates.style = {
+ ...style,
+ typography: {
+ ...style?.typography,
+ fontSize: void 0
+ }
+ };
+ }
+ }
+ setAttributes(updates);
+ },
+ help: fitText ? (0, import_i18n211.__)("Text will resize to fit its container.") : (0, import_i18n211.__)(
+ "The text will resize to fit its container, resetting other font size settings."
+ )
+ }
+ )
+ }
+ );
+ }
+ function addSaveProps5(props, blockType, attributes) {
+ if (!(0, import_blocks104.hasBlockSupport)(blockType, FIT_TEXT_SUPPORT_KEY)) {
+ return props;
+ }
+ const { fitText } = attributes;
+ if (!fitText) {
+ return props;
+ }
+ const className2 = props.className ? `${props.className} has-fit-text` : "has-fit-text";
+ return {
+ ...props,
+ className: className2
+ };
+ }
+ function useBlockProps10({ name, fitText }) {
+ if (fitText && (0, import_blocks104.hasBlockSupport)(name, FIT_TEXT_SUPPORT_KEY)) {
+ return {
+ className: "has-fit-text"
+ };
+ }
+ return {};
+ }
+ (0, import_hooks17.addFilter)(
+ "blocks.registerBlockType",
+ "core/fit-text/addAttribute",
+ addAttributes5
+ );
+ var hasFitTextSupport = (blockNameOrType) => {
+ return (0, import_blocks104.hasBlockSupport)(blockNameOrType, FIT_TEXT_SUPPORT_KEY);
+ };
+ function FitTextFontSize({ fitText, name, clientId, isSelected }) {
+ const { fontSize } = useFitText({ fitText, name, clientId });
+ if (isSelected && fontSize && fontSize < MIN_FONT_SIZE_FOR_WARNING) {
+ return /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(inspector_controls_default, { group: "typography", children: /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(FitTextSizeWarning, {}) });
+ }
+ return null;
+ }
+ var addFitTextControl = (0, import_compose97.createHigherOrderComponent)((BlockEdit2) => {
+ return function AddFitTextControl(props) {
+ const { name, attributes, clientId, isSelected, setAttributes } = props;
+ const { fitText } = attributes;
+ const supportsFitText = (0, import_blocks104.hasBlockSupport)(name, FIT_TEXT_SUPPORT_KEY);
+ if (!supportsFitText) {
+ return /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(BlockEdit2, { ...props });
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime453.jsxs)(import_jsx_runtime453.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(BlockEdit2, { ...props }),
+ /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(inspector_controls_default, { group: "typography", children: /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(
+ FitTextControl,
+ {
+ clientId,
+ fitText,
+ setAttributes,
+ name,
+ fontSize: attributes.fontSize,
+ style: attributes.style
+ }
+ ) }),
+ fitText && /* @__PURE__ */ (0, import_jsx_runtime453.jsx)(
+ FitTextFontSize,
+ {
+ fitText,
+ name,
+ clientId,
+ isSelected
+ }
+ )
+ ] });
+ };
+ }, "addFitTextControl");
+ (0, import_hooks17.addFilter)(
+ "editor.BlockEdit",
+ "core/fit-text/add-fit-text-control",
+ addFitTextControl
+ );
+ var fit_text_default = {
+ useBlockProps: useBlockProps10,
+ addSaveProps: addSaveProps5,
+ attributeKeys: ["fitText", "fontSize", "style"],
+ hasSupport: hasFitTextSupport,
+ edit: () => null
+ };
+
+ // packages/block-editor/build-module/hooks/typography.mjs
+ var import_jsx_runtime454 = __toESM(require_jsx_runtime(), 1);
+ function omit(object, keys) {
+ return Object.fromEntries(
+ Object.entries(object).filter(([key]) => !keys.includes(key))
+ );
+ }
+ var LETTER_SPACING_SUPPORT_KEY2 = "typography.__experimentalLetterSpacing";
+ var TEXT_TRANSFORM_SUPPORT_KEY2 = "typography.__experimentalTextTransform";
+ var TEXT_DECORATION_SUPPORT_KEY2 = "typography.__experimentalTextDecoration";
+ var TEXT_INDENT_SUPPORT_KEY = "typography.textIndent";
+ var TEXT_COLUMNS_SUPPORT_KEY2 = "typography.textColumns";
+ var FONT_STYLE_SUPPORT_KEY2 = "typography.__experimentalFontStyle";
+ var FONT_WEIGHT_SUPPORT_KEY2 = "typography.__experimentalFontWeight";
+ var WRITING_MODE_SUPPORT_KEY2 = "typography.__experimentalWritingMode";
+ var TYPOGRAPHY_SUPPORT_KEY = "typography";
+ var TYPOGRAPHY_SUPPORT_KEYS2 = [
+ LINE_HEIGHT_SUPPORT_KEY2,
+ FONT_SIZE_SUPPORT_KEY2,
+ FONT_STYLE_SUPPORT_KEY2,
+ FONT_WEIGHT_SUPPORT_KEY2,
+ FONT_FAMILY_SUPPORT_KEY2,
+ TEXT_ALIGN_SUPPORT_KEY2,
+ TEXT_COLUMNS_SUPPORT_KEY2,
+ TEXT_DECORATION_SUPPORT_KEY2,
+ TEXT_INDENT_SUPPORT_KEY,
+ WRITING_MODE_SUPPORT_KEY2,
+ TEXT_TRANSFORM_SUPPORT_KEY2,
+ LETTER_SPACING_SUPPORT_KEY2,
+ FIT_TEXT_SUPPORT_KEY
+ ];
+ function styleToAttributes2(style) {
+ const updatedStyle = { ...omit(style, ["fontFamily"]) };
+ const fontSizeValue = style?.typography?.fontSize;
+ const fontFamilyValue = style?.typography?.fontFamily;
+ const textColorValue = style?.color?.text;
+ const fontSizeSlug = typeof fontSizeValue === "string" && fontSizeValue?.startsWith("var:preset|font-size|") ? fontSizeValue.substring("var:preset|font-size|".length) : void 0;
+ const fontFamilySlug = fontFamilyValue?.startsWith(
+ "var:preset|font-family|"
+ ) ? fontFamilyValue.substring("var:preset|font-family|".length) : void 0;
+ const textColorSlug = extractPresetSlug(textColorValue, "color");
+ updatedStyle.typography = {
+ ...omit(updatedStyle.typography, ["fontFamily"]),
+ fontSize: fontSizeSlug ? void 0 : fontSizeValue
+ };
+ updatedStyle.color = {
+ ...updatedStyle.color,
+ text: textColorSlug ? void 0 : textColorValue
+ };
+ return {
+ style: cleanEmptyObject(updatedStyle),
+ fontFamily: fontFamilySlug,
+ fontSize: fontSizeSlug,
+ textColor: textColorSlug
+ };
+ }
+ function attributesToStyle2(attributes) {
+ return {
+ ...attributes.style,
+ typography: {
+ ...attributes.style?.typography,
+ fontFamily: attributes.fontFamily ? "var:preset|font-family|" + attributes.fontFamily : void 0,
+ fontSize: attributes.fontSize ? "var:preset|font-size|" + attributes.fontSize : attributes.style?.typography?.fontSize
+ },
+ color: {
+ ...attributes.style?.color,
+ text: attributes.textColor ? "var:preset|color|" + attributes.textColor : attributes.style?.color?.text
+ }
+ };
+ }
+ function TypographyInspectorControl({ children, resetAllFilter }) {
+ const attributesResetAllFilter = (0, import_element276.useCallback)(
+ (attributes) => {
+ const existingStyle = attributesToStyle2(attributes);
+ const updatedStyle = resetAllFilter(existingStyle);
+ return {
+ ...attributes,
+ ...styleToAttributes2(updatedStyle)
+ };
+ },
+ [resetAllFilter]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
+ inspector_controls_default,
+ {
+ group: "typography",
+ resetAllFilter: attributesResetAllFilter,
+ children
+ }
+ );
+ }
+ function TypographyPanel2({
+ clientId,
+ name,
+ setAttributes,
+ settings: settings2,
+ // Allows rendering outside the `typography` inspector group (e.g. section
+ // blocks direct-render this panel because their support fills are gated
+ // off by editing mode). Defaults to the slot-based wrapper.
+ asWrapper
+ }) {
+ const selectedState = useBlockStyleState();
+ const isEnabled = useHasTypographyPanel(settings2);
+ const { style, fontFamily, fontSize, fitText, textColor, className: className2 } = (0, import_data175.useSelect)(
+ (select3) => {
+ if (!isEnabled) {
+ return {};
+ }
+ const {
+ style: _style,
+ fontFamily: _fontFamily,
+ fontSize: _fontSize,
+ fitText: _fitText,
+ textColor: _textColor,
+ className: _className
+ } = select3(store).getBlockAttributes(clientId) || {};
+ return {
+ style: _style,
+ fontFamily: _fontFamily,
+ fontSize: _fontSize,
+ fitText: _fitText,
+ textColor: _textColor,
+ className: _className
+ };
+ },
+ [clientId, isEnabled]
+ );
+ const isStateSelected = !isDefaultBlockStyleState2(selectedState);
+ const { value: inheritedValue } = useResolvedStyle(
+ name,
+ className2,
+ selectedState
+ );
+ const value = (0, import_element276.useMemo)(() => {
+ if (isStateSelected) {
+ return getStyleForState2(style, selectedState);
+ }
+ return attributesToStyle2({ style, fontFamily, fontSize, textColor });
+ }, [
+ isStateSelected,
+ selectedState,
+ style,
+ fontSize,
+ fontFamily,
+ textColor
+ ]);
+ const onChange = isStateSelected ? (newStyle) => {
+ setAttributes({
+ style: setStyleForState(style, selectedState, newStyle)
+ });
+ } : (newStyle) => {
+ const newAttributes = styleToAttributes2(newStyle);
+ const hasFontSize = newAttributes.fontSize || newAttributes.style?.typography?.fontSize;
+ if (hasFontSize && fitText) {
+ newAttributes.fitText = void 0;
+ }
+ setAttributes(newAttributes);
+ };
+ const enableContrastChecking = !value?.color?.gradient && !!value?.color?.text && settings2?.color?.text && false !== (0, import_blocks105.getBlockSupport)(name, ["color", "enableContrastChecker"]);
+ const contrastWarning = useBlockColorContrastWarning({
+ clientId,
+ name,
+ enabled: !!enableContrastChecking,
+ checkLinkColor: false,
+ messageOverride: (0, import_i18n212.__)(
+ "This color has poor contrast against the background. Consider increasing contrast."
+ )
+ });
+ if (!isEnabled) {
+ return null;
+ }
+ const typographyDefaultControls = (0, import_blocks105.getBlockSupport)(name, [
+ TYPOGRAPHY_SUPPORT_KEY,
+ "__experimentalDefaultControls"
+ ]);
+ const colorDefaultControls = (0, import_blocks105.getBlockSupport)(name, [
+ "color",
+ "__experimentalDefaultControls"
+ ]);
+ const defaultControls = {
+ ...typographyDefaultControls,
+ textColor: colorDefaultControls?.text
+ };
+ const Wrapper = asWrapper || TypographyInspectorControl;
+ return /* @__PURE__ */ (0, import_jsx_runtime454.jsx)(
+ TypographyPanel,
+ {
+ as: Wrapper,
+ panelId: clientId,
+ settings: settings2,
+ value,
+ onChange,
+ defaultControls,
+ contrastWarning,
+ inheritedValue
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/styles-tab.mjs
+ var import_jsx_runtime455 = __toESM(require_jsx_runtime(), 1);
+ function SectionStyleControls({
+ blockName,
+ clientId,
+ contentClientIds
+ }) {
+ const settings2 = useBlockSettings(blockName);
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data176.useDispatch)(store);
+ const { hasButtons, hasHeading } = (0, import_data176.useSelect)(
+ (select3) => {
+ const blockNames = select3(store).getBlockNamesByClientId(
+ contentClientIds
+ );
+ return {
+ hasButtons: blockNames.includes("core/buttons"),
+ hasHeading: blockNames.includes("core/heading")
+ };
+ },
+ [contentClientIds]
+ );
+ const setAttributes = (newAttributes) => {
+ updateBlockAttributes2(clientId, newAttributes);
+ };
+ const typographySettings = (0, import_element277.useMemo)(
+ () => ({ ...settings2, typography: {} }),
+ [settings2]
+ );
+ const backgroundSettings = (0, import_element277.useMemo)(
+ () => ({
+ ...settings2,
+ background: {
+ ...settings2.background,
+ backgroundImage: false,
+ backgroundSize: false
+ }
+ }),
+ [settings2]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime455.jsxs)(import_jsx_runtime455.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ TypographyPanel2,
+ {
+ clientId,
+ name: blockName,
+ settings: typographySettings,
+ setAttributes,
+ asWrapper: TypographyToolsPanel
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ BackgroundImagePanel3,
+ {
+ clientId,
+ name: blockName,
+ settings: backgroundSettings,
+ setAttributes,
+ asWrapper: BackgroundToolsPanel
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ ElementsEdit,
+ {
+ clientId,
+ name: blockName,
+ settings: settings2,
+ setAttributes,
+ asWrapper: ColorToolsPanel,
+ label: (0, import_i18n213.__)("Elements"),
+ defaultControls: {
+ button: hasButtons,
+ heading: hasHeading
+ }
+ }
+ )
+ ] });
+ }
+ var StylesTab = ({
+ blockName,
+ clientId,
+ hasBlockStyles,
+ isSectionBlock: isSectionBlock2,
+ contentClientIds
+ }) => {
+ const borderPanelLabel = useBorderPanelLabel({ blockName });
+ return /* @__PURE__ */ (0, import_jsx_runtime455.jsxs)(import_jsx_runtime455.Fragment, { children: [
+ hasBlockStyles && /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(block_styles_default, { clientId }),
+ isSectionBlock2 && blockName !== "core/template-part" && /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ SectionStyleControls,
+ {
+ blockName,
+ clientId,
+ contentClientIds
+ }
+ ),
+ (!isSectionBlock2 || blockName === "core/template-part") && /* @__PURE__ */ (0, import_jsx_runtime455.jsxs)(import_jsx_runtime455.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "typography",
+ label: (0, import_i18n213.__)("Typography")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "color",
+ label: (0, import_i18n213.__)("Color"),
+ className: "color-block-support-panel__inner-wrapper"
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "background",
+ label: (0, import_i18n213.__)("Background"),
+ className: "background-block-support-panel__inner-wrapper"
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(inspector_controls_default.Slot, { group: "filter" }),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "layout",
+ label: (0, import_i18n213.__)("Layout")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "dimensions",
+ label: (0, import_i18n213.__)("Dimensions")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "border",
+ label: borderPanelLabel
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "elements",
+ label: (0, import_i18n213.__)("Elements"),
+ className: "elements-block-support-panel__inner-wrapper"
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(position_controls_panel_default, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime455.jsx)(inspector_controls_default.Slot, { group: "styles" })
+ ] })
+ ] });
+ };
+ var styles_tab_default = StylesTab;
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/content-tab.mjs
+ var import_components215 = __toESM(require_components(), 1);
+ var import_i18n214 = __toESM(require_i18n(), 1);
+
+ // packages/block-editor/build-module/components/block-quick-navigation/index.mjs
+ var import_blocks106 = __toESM(require_blocks(), 1);
+ var import_data177 = __toESM(require_data(), 1);
+ var import_components214 = __toESM(require_components(), 1);
+ var import_jsx_runtime456 = __toESM(require_jsx_runtime(), 1);
+ function BlockQuickNavigation({
+ clientIds,
+ onSelect,
+ onSwitchToListView,
+ hasListViewTab
+ }) {
+ if (!clientIds.length) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(import_components214.__experimentalVStack, { spacing: 1, children: clientIds.map((clientId) => /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(
+ BlockQuickNavigationItem,
+ {
+ onSelect,
+ onSwitchToListView,
+ hasListViewTab,
+ clientId
+ },
+ clientId
+ )) });
+ }
+ function BlockQuickNavigationItem({
+ clientId,
+ onSelect,
+ onSwitchToListView,
+ hasListViewTab
+ }) {
+ const blockInformation = useBlockDisplayInformation(clientId);
+ const { isSelected, childBlocks, shouldRenderListView, blockName } = (0, import_data177.useSelect)(
+ (select3) => {
+ const {
+ isBlockSelected: isBlockSelected2,
+ hasSelectedInnerBlock: hasSelectedInnerBlock2,
+ getBlockOrder: getBlockOrder2,
+ getBlockName: getBlockName2,
+ shouldRenderBlockListView: shouldRenderBlockListView2
+ } = unlock(select3(store));
+ const _blockName = getBlockName2(clientId);
+ return {
+ isSelected: isBlockSelected2(clientId) || hasSelectedInnerBlock2(
+ clientId,
+ /* deep: */
+ true
+ ),
+ childBlocks: getBlockOrder2(clientId),
+ shouldRenderListView: shouldRenderBlockListView2(clientId),
+ blockName: _blockName
+ };
+ },
+ [clientId]
+ );
+ const blockType = (0, import_blocks106.getBlockType)(blockName);
+ const displayTitle = useBlockDisplayTitle({
+ clientId,
+ context: "list-view"
+ });
+ const blockTitle = displayTitle || blockType?.title || blockName;
+ const { selectBlock: selectBlock2 } = (0, import_data177.useDispatch)(store);
+ const hasChildren = childBlocks && childBlocks.length > 0;
+ const canNavigateToListView = hasChildren && hasListViewTab && shouldRenderListView;
+ return /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(
+ import_components214.Button,
+ {
+ __next40pxDefaultSize: true,
+ className: "block-editor-block-quick-navigation__item",
+ isPressed: isSelected,
+ onClick: async () => {
+ await selectBlock2(clientId);
+ if (canNavigateToListView && onSwitchToListView) {
+ onSwitchToListView(clientId);
+ }
+ if (onSelect) {
+ onSelect(clientId);
+ }
+ },
+ children: /* @__PURE__ */ (0, import_jsx_runtime456.jsxs)(import_components214.Flex, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(import_components214.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(block_icon_default, { icon: blockInformation?.icon }) }),
+ /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(import_components214.FlexBlock, { style: { textAlign: "left" }, children: /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(import_components214.__experimentalTruncate, { children: blockTitle }) }),
+ canNavigateToListView && /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(import_components214.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime456.jsx)(icon_default, { icon: chevron_right_default, size: 24 }) })
+ ] })
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/content-tab.mjs
+ var import_jsx_runtime457 = __toESM(require_jsx_runtime(), 1);
+ var ContentTab = ({
+ contentClientIds,
+ onSwitchToListView,
+ hasListViewTab
+ }) => {
+ if (!contentClientIds || contentClientIds.length === 0) {
+ return null;
+ }
+ const shouldShowBlockFields = window?.__experimentalContentOnlyInspectorFields;
+ return /* @__PURE__ */ (0, import_jsx_runtime457.jsx)(import_jsx_runtime457.Fragment, { children: !shouldShowBlockFields && /* @__PURE__ */ (0, import_jsx_runtime457.jsx)(import_components215.PanelBody, { title: (0, import_i18n214.__)("Content"), children: /* @__PURE__ */ (0, import_jsx_runtime457.jsx)(
+ BlockQuickNavigation,
+ {
+ clientIds: contentClientIds,
+ onSwitchToListView,
+ hasListViewTab
+ }
+ ) }) });
+ };
+ var content_tab_default = ContentTab;
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/index.mjs
+ var import_jsx_runtime458 = __toESM(require_jsx_runtime(), 1);
+ var { Tabs: Tabs5 } = unlock(import_components216.privateApis);
+ function InspectorControlsTabs({
+ blockName,
+ clientId,
+ hasBlockStyles,
+ tabs,
+ isSectionBlock: isSectionBlock2,
+ contentClientIds
+ }) {
+ const listViewRef = (0, import_element278.useRef)(null);
+ const showIconLabels = (0, import_data178.useSelect)((select3) => {
+ return select3(import_preferences5.store).get("core", "showIconLabels");
+ }, []);
+ const { requestedTab } = (0, import_data178.useSelect)((select3) => ({
+ requestedTab: unlock(
+ select3(store)
+ ).getRequestedInspectorTab()
+ }));
+ const [selectedTabId, setSelectedTabId] = (0, import_element278.useState)(
+ () => requestedTab?.tabName ?? tabs[0]?.name
+ );
+ const hasUserSelectionRef = (0, import_element278.useRef)(false);
+ const isProgrammaticSwitchRef = (0, import_element278.useRef)(false);
+ const {
+ __unstableSetOpenListViewPanel: setOpenListViewPanel,
+ __unstableIncrementListViewExpandRevision: incrementListViewExpandRevision,
+ __unstableSetAllListViewPanelsOpen: setAllListViewPanelsOpen
+ } = (0, import_data178.useDispatch)(store);
+ const { clearRequestedInspectorTab: clearRequestedInspectorTab2 } = unlock(
+ (0, import_data178.useDispatch)(store)
+ );
+ (0, import_element278.useEffect)(() => {
+ hasUserSelectionRef.current = false;
+ }, [clientId]);
+ (0, import_element278.useEffect)(() => {
+ if (!requestedTab) {
+ return;
+ }
+ setSelectedTabId(requestedTab.tabName);
+ if (requestedTab.tabName === TAB_LIST_VIEW.name && requestedTab.options?.openPanel) {
+ setOpenListViewPanel(requestedTab.options.openPanel);
+ incrementListViewExpandRevision();
+ }
+ isProgrammaticSwitchRef.current = true;
+ hasUserSelectionRef.current = true;
+ clearRequestedInspectorTab2();
+ }, [
+ requestedTab,
+ setOpenListViewPanel,
+ incrementListViewExpandRevision,
+ clearRequestedInspectorTab2
+ ]);
+ (0, import_element278.useEffect)(() => {
+ if (selectedTabId === TAB_LIST_VIEW.name && !hasUserSelectionRef.current) {
+ setAllListViewPanelsOpen();
+ incrementListViewExpandRevision();
+ }
+ }, [
+ clientId,
+ selectedTabId,
+ setAllListViewPanelsOpen,
+ incrementListViewExpandRevision
+ ]);
+ (0, import_element278.useEffect)(() => {
+ if (!tabs?.length || hasUserSelectionRef.current && tabs.some((tab) => tab.name === selectedTabId)) {
+ return;
+ }
+ const firstTabName = tabs[0]?.name;
+ if (selectedTabId !== firstTabName) {
+ setSelectedTabId(firstTabName);
+ }
+ }, [tabs, selectedTabId]);
+ const handleTabSelect = (tabId) => {
+ setSelectedTabId(tabId);
+ hasUserSelectionRef.current = true;
+ if (tabId === TAB_LIST_VIEW.name && !isProgrammaticSwitchRef.current) {
+ setAllListViewPanelsOpen();
+ incrementListViewExpandRevision();
+ }
+ isProgrammaticSwitchRef.current = false;
+ };
+ const hasListViewTab = tabs.some(
+ (tab) => tab.name === TAB_LIST_VIEW.name
+ );
+ const switchToListView = (targetClientId) => {
+ if (hasListViewTab) {
+ setOpenListViewPanel(targetClientId);
+ incrementListViewExpandRevision();
+ isProgrammaticSwitchRef.current = true;
+ handleTabSelect(TAB_LIST_VIEW.name);
+ }
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime458.jsx)("div", { className: "block-editor-block-inspector__tabs", children: /* @__PURE__ */ (0, import_jsx_runtime458.jsxs)(
+ Tabs5,
+ {
+ selectedTabId,
+ onSelect: handleTabSelect,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(Tabs5.TabList, { children: tabs.map(
+ (tab) => showIconLabels ? /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(Tabs5.Tab, { tabId: tab.name, children: tab.title }, tab.name) : /* @__PURE__ */ (0, import_jsx_runtime458.jsxs)(tooltip_exports.Root, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(
+ Tabs5.Tab,
+ {
+ tabId: tab.name,
+ "aria-label": tab.title,
+ render: /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(tooltip_exports.Trigger, {}),
+ children: /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(import_components216.Icon, { icon: tab.icon })
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(tooltip_exports.Popup, { children: tab.title })
+ ] }, tab.name)
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsxs)(Tabs5.TabPanel, { tabId: TAB_CONTENT.name, focusable: false, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(
+ content_tab_default,
+ {
+ contentClientIds,
+ onSwitchToListView: switchToListView,
+ hasListViewTab
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(inspector_controls_default.Slot, { group: "content" })
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsxs)(Tabs5.TabPanel, { tabId: TAB_LIST_VIEW.name, focusable: false, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(inspector_controls_default.Slot, { group: "list", ref: listViewRef }),
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(ListViewContentPopover, { listViewRef })
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(Tabs5.TabPanel, { tabId: TAB_SETTINGS.name, focusable: false, children: /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(settings_tab_default, { showAdvancedControls: !!blockName }) }),
+ /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(Tabs5.TabPanel, { tabId: TAB_STYLES.name, focusable: false, children: /* @__PURE__ */ (0, import_jsx_runtime458.jsx)(
+ styles_tab_default,
+ {
+ blockName,
+ clientId,
+ hasBlockStyles,
+ isSectionBlock: isSectionBlock2,
+ contentClientIds
+ }
+ ) })
+ ]
+ },
+ clientId
+ ) });
+ }
+
+ // packages/block-editor/build-module/components/inspector-controls-tabs/use-inspector-controls-tabs.mjs
+ var import_components217 = __toESM(require_components(), 1);
+ var import_data179 = __toESM(require_data(), 1);
+ var EMPTY_ARRAY15 = [];
+ function getShowTabs(blockName, tabSettings = {}) {
+ if (tabSettings[blockName] !== void 0) {
+ return tabSettings[blockName];
+ }
+ if (tabSettings.default !== void 0) {
+ return tabSettings.default;
+ }
+ return true;
+ }
+ function useInspectorControlsTabs(blockName, contentClientIds, isSectionBlock2, hasBlockStyles) {
+ const tabs = [];
+ const {
+ bindings: bindingsGroup,
+ border: borderGroup,
+ color: colorGroup,
+ content: contentGroup,
+ default: defaultGroup,
+ layout: layoutGroup,
+ dimensions: dimensionsGroup,
+ list: listGroup,
+ position: positionGroup,
+ styles: stylesGroup,
+ typography: typographyGroup,
+ effects: effectsGroup
+ } = groups_default;
+ const listFills = (0, import_components217.__experimentalUseSlotFills)(listGroup.name);
+ const hasListFills = !!listFills && listFills.length;
+ const contentFills = (0, import_components217.__experimentalUseSlotFills)(contentGroup.name);
+ const hasContentFills = !!contentFills && contentFills.length;
+ const styleFills = [
+ ...(0, import_components217.__experimentalUseSlotFills)(borderGroup.name) || [],
+ ...(0, import_components217.__experimentalUseSlotFills)(colorGroup.name) || [],
+ ...(0, import_components217.__experimentalUseSlotFills)(layoutGroup.name) || [],
+ ...(0, import_components217.__experimentalUseSlotFills)(positionGroup.name) || [],
+ ...(0, import_components217.__experimentalUseSlotFills)(dimensionsGroup.name) || [],
+ ...(0, import_components217.__experimentalUseSlotFills)(stylesGroup.name) || [],
+ ...(0, import_components217.__experimentalUseSlotFills)(typographyGroup.name) || [],
+ ...(0, import_components217.__experimentalUseSlotFills)(effectsGroup.name) || []
+ ];
+ const hasStyleFills = styleFills.length;
+ const advancedFills = [
+ ...(0, import_components217.__experimentalUseSlotFills)(InspectorAdvancedControls.slotName) || [],
+ ...(0, import_components217.__experimentalUseSlotFills)(bindingsGroup.name) || []
+ ];
+ const settingsFills = [
+ ...(0, import_components217.__experimentalUseSlotFills)(defaultGroup.name) || [],
+ ...hasListFills && hasStyleFills > 1 ? advancedFills : []
+ ];
+ const shouldShowBlockFields = window?.__experimentalContentOnlyInspectorFields;
+ const hasContentTab = hasContentFills || !shouldShowBlockFields && contentClientIds?.length;
+ if (hasContentTab) {
+ tabs.push(TAB_CONTENT);
+ }
+ if (hasListFills) {
+ tabs.push(TAB_LIST_VIEW);
+ }
+ if (settingsFills.length || // Advanced fills show up in settings tab if available or they blend into the default tab, if there's only one tab.
+ advancedFills.length && (hasContentTab || hasListFills)) {
+ tabs.push(TAB_SETTINGS);
+ }
+ const { tabSettings, isPreviewMode } = (0, import_data179.useSelect)((select3) => {
+ const settings2 = select3(store).getSettings();
+ return {
+ tabSettings: settings2.blockInspectorTabs,
+ isPreviewMode: settings2.isPreviewMode
+ };
+ }, []);
+ if (!isPreviewMode && (hasBlockStyles || hasStyleFills)) {
+ tabs.push(TAB_STYLES);
+ }
+ const showTabs = getShowTabs(blockName, tabSettings);
+ return showTabs ? tabs : EMPTY_ARRAY15;
+ }
+
+ // packages/block-editor/build-module/components/inspector-controls/last-item.mjs
+ var import_components218 = __toESM(require_components(), 1);
+ var import_jsx_runtime459 = __toESM(require_jsx_runtime(), 1);
+ var { Fill: Fill4, Slot: Slot9 } = (0, import_components218.createSlotFill)(/* @__PURE__ */ Symbol("InspectorControlsLastItem"));
+ var InspectorControlsLastItem = (props) => {
+ const context = useBlockEditContext();
+ if (!context[mayDisplayControlsKey]) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime459.jsx)(Fill4, { ...props });
+ };
+ InspectorControlsLastItem.Slot = function InspectorControlsLastItemSlot(props) {
+ return /* @__PURE__ */ (0, import_jsx_runtime459.jsx)(Slot9, { ...props });
+ };
+ var last_item_default = InspectorControlsLastItem;
+
+ // packages/block-editor/build-module/components/block-inspector/useBlockInspectorAnimationSettings.mjs
+ var import_data180 = __toESM(require_data(), 1);
+ function useBlockInspectorAnimationSettings(blockType) {
+ return (0, import_data180.useSelect)(
+ (select3) => {
+ if (blockType) {
+ const globalBlockInspectorAnimationSettings = select3(store).getSettings().blockInspectorAnimation;
+ const animationParent = globalBlockInspectorAnimationSettings?.animationParent;
+ const { getSelectedBlockClientId: getSelectedBlockClientId2, getBlockParentsByBlockName: getBlockParentsByBlockName2 } = select3(store);
+ const _selectedBlockClientId = getSelectedBlockClientId2();
+ const animationParentBlockClientId = getBlockParentsByBlockName2(
+ _selectedBlockClientId,
+ animationParent,
+ true
+ )[0];
+ if (!animationParentBlockClientId && blockType.name !== animationParent) {
+ return null;
+ }
+ return globalBlockInspectorAnimationSettings?.[blockType.name];
+ }
+ return null;
+ },
+ [blockType]
+ );
+ }
+
+ // packages/block-editor/build-module/hooks/states.mjs
+ var import_element279 = __toESM(require_element(), 1);
+ var import_i18n215 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime460 = __toESM(require_jsx_runtime(), 1);
+ var { getViewportBreakpoints: getViewportBreakpoints5 } = unlock(privateApis);
+ var PSEUDO_STATE_LABELS = {
+ ":hover": (0, import_i18n215.__)("Hover"),
+ ":focus": (0, import_i18n215.__)("Focus"),
+ ":focus-visible": (0, import_i18n215.__)("Focus-visible"),
+ ":active": (0, import_i18n215.__)("Active")
+ };
+ var RESPONSIVE_STATE_LABELS = {
+ "@tablet": (0, import_i18n215.__)("Tablet"),
+ "@mobile": (0, import_i18n215.__)("Mobile")
+ };
+ function getDeviceStateOptions(viewportSettings) {
+ const breakpoints = getViewportBreakpoints5(viewportSettings);
+ return Object.entries(RESPONSIVE_STATE_LABELS).filter(
+ ([value]) => (value !== "@tablet" || breakpoints.tablet !== void 0) && (value !== "@mobile" || breakpoints.mobile !== void 0)
+ ).map(([value, label]) => ({
+ value,
+ label
+ }));
+ }
+ var VALID_BLOCK_PSEUDO_STATES = {
+ "core/button": [":hover", ":focus", ":focus-visible", ":active"],
+ "core/navigation-link": [":hover", ":focus", ":focus-visible", ":active"]
+ };
+ function getPseudoStateOptions(name) {
+ const validStates = VALID_BLOCK_PSEUDO_STATES[name] ?? [];
+ return validStates.filter((state) => PSEUDO_STATE_LABELS[state]).map((state) => ({
+ value: state,
+ label: PSEUDO_STATE_LABELS[state]
+ }));
+ }
+ var DEFAULT_STATE_VALUE3 = "default";
+ var EMPTY_STATE_OPTIONS = [];
+ function BlockStatesControl({ name, value, onChange }) {
+ const pseudoStateOptions = (0, import_element279.useMemo)(
+ () => getPseudoStateOptions(name),
+ [name]
+ );
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+ if (!pseudoStateOptions.length) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime460.jsx)(
+ StateControl,
+ {
+ pseudoStates: pseudoStateOptions,
+ pseudoStateValue: value?.pseudo ?? DEFAULT_STATE_VALUE3,
+ onChangePseudoState: (pseudo) => onChange({ pseudo }),
+ popoverProps: dropdownMenuProps.popoverProps,
+ showText: false
+ }
+ );
+ }
+ function BlockStateBadges({ name, value, isResponsiveEditing: isResponsiveEditing3 }) {
+ const pseudoStateOptions = (0, import_element279.useMemo)(
+ () => getPseudoStateOptions(name),
+ [name]
+ );
+ const [viewportSettings] = useSettings("viewport");
+ const deviceStateOptions = (0, import_element279.useMemo)(
+ () => getDeviceStateOptions(viewportSettings),
+ [viewportSettings]
+ );
+ if (!pseudoStateOptions.length && !isResponsiveEditing3) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime460.jsx)(
+ StateControlBadges,
+ {
+ viewportStates: isResponsiveEditing3 ? deviceStateOptions : EMPTY_STATE_OPTIONS,
+ pseudoStates: pseudoStateOptions,
+ viewportValue: value?.viewport ?? DEFAULT_STATE_VALUE3,
+ pseudoStateValue: value?.pseudo ?? DEFAULT_STATE_VALUE3
+ }
+ );
+ }
+
+ // packages/block-editor/build-module/components/block-inspector/index.mjs
+ var import_jsx_runtime461 = __toESM(require_jsx_runtime(), 1);
+ function StyleInspectorSlots({
+ blockName,
+ showAdvancedControls = true,
+ showPositionControls = true,
+ showBindingsControls = true
+ }) {
+ const borderPanelLabel = useBorderPanelLabel({ blockName });
+ return /* @__PURE__ */ (0, import_jsx_runtime461.jsxs)(import_jsx_runtime461.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(inspector_controls_default.Slot, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "typography",
+ label: (0, import_i18n216.__)("Typography")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "color",
+ label: (0, import_i18n216.__)("Color"),
+ className: "color-block-support-panel__inner-wrapper"
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "background",
+ label: (0, import_i18n216.__)("Background"),
+ className: "background-block-support-panel__inner-wrapper"
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(inspector_controls_default.Slot, { group: "layout", label: (0, import_i18n216.__)("Layout") }),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "dimensions",
+ label: (0, import_i18n216.__)("Dimensions")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(inspector_controls_default.Slot, { group: "border", label: borderPanelLabel }),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "elements",
+ label: (0, import_i18n216.__)("Elements"),
+ className: "elements-block-support-panel__inner-wrapper"
+ }
+ ),
+ showPositionControls && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(position_controls_panel_default, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(inspector_controls_default.Slot, { group: "styles" }),
+ showBindingsControls && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(inspector_controls_default.Slot, { group: "bindings" }),
+ showAdvancedControls && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(advanced_controls_panel_default, {}) })
+ ] });
+ }
+ function StyleStateInspectorSlots({
+ blockName,
+ clientId,
+ contentClientIds,
+ isSectionBlock: isSectionBlock2,
+ selectedBlockStyleState: selectedBlockStyleState2
+ }) {
+ const borderPanelLabel = useBorderPanelLabel({ blockName });
+ const showLayoutControls = hasViewportBlockStyleState(selectedBlockStyleState2) && !hasPseudoBlockStyleState(selectedBlockStyleState2);
+ const showSectionStyleControls = isSectionBlock2 && blockName !== "core/template-part";
+ return /* @__PURE__ */ (0, import_jsx_runtime461.jsxs)(import_jsx_runtime461.Fragment, { children: [
+ showSectionStyleControls && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(BlockStyleStateProvider, { value: selectedBlockStyleState2, children: /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ SectionStyleControls,
+ {
+ blockName,
+ clientId,
+ contentClientIds
+ }
+ ) }),
+ !showSectionStyleControls && /* @__PURE__ */ (0, import_jsx_runtime461.jsxs)(import_jsx_runtime461.Fragment, { children: [
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "typography",
+ label: (0, import_i18n216.__)("Typography")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "color",
+ label: (0, import_i18n216.__)("Color"),
+ className: "color-block-support-panel__inner-wrapper"
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "background",
+ label: (0, import_i18n216.__)("Background"),
+ className: "background-block-support-panel__inner-wrapper"
+ }
+ ),
+ showLayoutControls && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "layout",
+ label: (0, import_i18n216.__)("Layout")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "dimensions",
+ label: (0, import_i18n216.__)("Dimensions")
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "border",
+ label: borderPanelLabel
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ inspector_controls_default.Slot,
+ {
+ group: "elements",
+ label: (0, import_i18n216.__)("Elements"),
+ className: "elements-block-support-panel__inner-wrapper"
+ }
+ )
+ ] })
+ ] });
+ }
+ function BlockInspector() {
+ const {
+ selectedBlockCount,
+ renderedBlockName,
+ renderedBlockClientId,
+ blockType,
+ isSectionBlock: isSectionBlock2,
+ isSectionBlockInSelection,
+ hasBlockStyles,
+ editedContentOnlySection: editedContentOnlySection2,
+ blockEditingMode,
+ selectedBlockStyleState: selectedBlockStyleState2,
+ showStateOnCanvas,
+ isResponsiveEditing: isResponsiveEditing3,
+ blockStatesEditingEnabled
+ } = (0, import_data181.useSelect)((select3) => {
+ const {
+ getSettings: getSettings8,
+ getSelectedBlockClientId: getSelectedBlockClientId2,
+ getSelectedBlockClientIds: getSelectedBlockClientIds2,
+ getSelectedBlockCount: getSelectedBlockCount2,
+ getBlockName: getBlockName2,
+ getParentSectionBlock: getParentSectionBlock2,
+ isSectionBlock: _isSectionBlock,
+ getEditedContentOnlySection: getEditedContentOnlySection2,
+ isWithinEditedContentOnlySection: isWithinEditedContentOnlySection2,
+ getBlockEditingMode: getBlockEditingMode2,
+ getSelectedBlockStyleState: getSelectedBlockStyleState2,
+ isSelectedBlockStyleStateShownOnCanvas: isSelectedBlockStyleStateShownOnCanvas2,
+ isResponsiveEditing: _isResponsiveEditing
+ } = unlock(select3(store));
+ const { getBlockStyles: getBlockStyles2 } = select3(import_blocks107.store);
+ const _selectedBlockClientId = getSelectedBlockClientId2();
+ const isWithinEditedSection = isWithinEditedContentOnlySection2(
+ _selectedBlockClientId
+ );
+ const _renderedBlockClientId = isWithinEditedSection ? _selectedBlockClientId : getParentSectionBlock2(_selectedBlockClientId) || _selectedBlockClientId;
+ const _renderedBlockName = _renderedBlockClientId && getBlockName2(_renderedBlockClientId);
+ const _blockType = _renderedBlockName && (0, import_blocks107.getBlockType)(_renderedBlockName);
+ const selectedBlockClientIds = getSelectedBlockClientIds2();
+ const _isSectionBlockInSelection = selectedBlockClientIds.some(
+ (id) => _isSectionBlock(id)
+ );
+ const blockStyles = _renderedBlockName && getBlockStyles2(_renderedBlockName);
+ const _hasBlockStyles = blockStyles && blockStyles.length > 0;
+ return {
+ selectedBlockCount: getSelectedBlockCount2(),
+ renderedBlockClientId: _renderedBlockClientId,
+ renderedBlockName: _renderedBlockName,
+ blockType: _blockType,
+ isSectionBlockInSelection: _isSectionBlockInSelection,
+ isSectionBlock: _isSectionBlock(_renderedBlockClientId),
+ hasBlockStyles: _hasBlockStyles,
+ editedContentOnlySection: getEditedContentOnlySection2(),
+ blockEditingMode: getBlockEditingMode2(_renderedBlockClientId),
+ selectedBlockStyleState: getSelectedBlockStyleState2(
+ _renderedBlockClientId
+ ),
+ showStateOnCanvas: isSelectedBlockStyleStateShownOnCanvas2(
+ _renderedBlockClientId
+ ),
+ isResponsiveEditing: _isResponsiveEditing(),
+ blockStatesEditingEnabled: getSettings8().blockStatesEditingEnabled
+ };
+ }, []);
+ const contentClientIds = (0, import_data181.useSelect)(
+ (select3) => {
+ if (!isSectionBlock2 || !renderedBlockClientId) {
+ return [];
+ }
+ const {
+ getClientIdsOfDescendants: getClientIdsOfDescendants2,
+ getBlockEditingMode: getBlockEditingMode2,
+ shouldRenderBlockListView: shouldRenderBlockListView2
+ } = unlock(select3(store));
+ const descendants = getClientIdsOfDescendants2(
+ renderedBlockClientId
+ );
+ const listViewDescendants = /* @__PURE__ */ new Set();
+ descendants.forEach((clientId) => {
+ if (shouldRenderBlockListView2(clientId)) {
+ const listViewChildren = getClientIdsOfDescendants2(clientId);
+ listViewChildren.forEach(
+ (childId) => listViewDescendants.add(childId)
+ );
+ }
+ });
+ return descendants.filter((current) => {
+ return !listViewDescendants.has(current) && getBlockEditingMode2(current) === "contentOnly";
+ });
+ },
+ [isSectionBlock2, renderedBlockClientId]
+ );
+ const availableTabs = useInspectorControlsTabs(
+ blockType?.name,
+ contentClientIds,
+ isSectionBlock2,
+ hasBlockStyles
+ );
+ const hasMultipleTabs = availableTabs?.length > 1;
+ const blockInspectorAnimationSettings = useBlockInspectorAnimationSettings(blockType);
+ const hasSelectedBlocks = selectedBlockCount > 1;
+ const isBlockStyleStateSelected = !isDefaultBlockStyleState2(
+ selectedBlockStyleState2
+ );
+ if (hasSelectedBlocks && !isSectionBlockInSelection) {
+ return /* @__PURE__ */ (0, import_jsx_runtime461.jsxs)("div", { className: "block-editor-block-inspector", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(MultiSelectionInspector, {}),
+ hasMultipleTabs ? /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(InspectorControlsTabs, { tabs: availableTabs }) : /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ StyleInspectorSlots,
+ {
+ blockName: renderedBlockName,
+ showAdvancedControls: false,
+ showPositionControls: false,
+ showBindingsControls: false
+ }
+ )
+ ] });
+ }
+ if (hasSelectedBlocks && isSectionBlockInSelection) {
+ return /* @__PURE__ */ (0, import_jsx_runtime461.jsx)("div", { className: "block-editor-block-inspector", children: /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(MultiSelectionInspector, {}) });
+ }
+ const isRenderedBlockUnregistered = renderedBlockName === (0, import_blocks107.getUnregisteredTypeHandlerName)();
+ const shouldShowWarning = !blockType || !renderedBlockClientId || isRenderedBlockUnregistered;
+ if (shouldShowWarning) {
+ return /* @__PURE__ */ (0, import_jsx_runtime461.jsx)("span", { className: "block-editor-block-inspector__no-blocks", children: (0, import_i18n216.__)("No block selected.") });
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ BlockInspectorSingleBlockWrapper,
+ {
+ animate: blockInspectorAnimationSettings,
+ wrapper: (children) => /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ AnimatedContainer,
+ {
+ blockInspectorAnimationSettings,
+ renderedBlockClientId,
+ children
+ }
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ BlockInspectorSingleBlock,
+ {
+ renderedBlockClientId,
+ blockName: blockType.name,
+ isSectionBlock: isSectionBlock2,
+ availableTabs,
+ contentClientIds,
+ hasBlockStyles,
+ editedContentOnlySection: editedContentOnlySection2,
+ blockEditingMode,
+ selectedBlockStyleState: selectedBlockStyleState2,
+ showStateOnCanvas,
+ isResponsiveEditing: isResponsiveEditing3,
+ blockStatesEditingEnabled,
+ isBlockStyleStateSelected
+ }
+ )
+ }
+ );
+ }
+ var BlockInspectorSingleBlockWrapper = ({ animate, wrapper, children }) => {
+ return animate ? wrapper(children) : children;
+ };
+ var AnimatedContainer = ({
+ blockInspectorAnimationSettings,
+ renderedBlockClientId,
+ children
+ }) => {
+ const animationOrigin = blockInspectorAnimationSettings && blockInspectorAnimationSettings.enterDirection === "leftToRight" ? -50 : 50;
+ return /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ import_components219.__unstableMotion.div,
+ {
+ animate: {
+ x: 0,
+ opacity: 1,
+ transition: {
+ ease: "easeInOut",
+ duration: 0.14
+ }
+ },
+ initial: {
+ x: animationOrigin,
+ opacity: 0
+ },
+ children
+ },
+ renderedBlockClientId
+ );
+ };
+ var BlockInspectorSingleBlock = ({
+ // The block that is displayed in the inspector. This is the block whose
+ // controls and information are shown to the user.
+ renderedBlockClientId,
+ blockName,
+ isSectionBlock: isSectionBlock2,
+ availableTabs,
+ contentClientIds,
+ hasBlockStyles,
+ editedContentOnlySection: editedContentOnlySection2,
+ blockEditingMode,
+ selectedBlockStyleState: selectedBlockStyleState2,
+ showStateOnCanvas,
+ isResponsiveEditing: isResponsiveEditing3,
+ blockStatesEditingEnabled = true
+ }) => {
+ const listViewRef = (0, import_element280.useRef)(null);
+ const hasMultipleTabs = availableTabs?.length > 1;
+ const hasPseudoState = hasPseudoBlockStyleState(selectedBlockStyleState2);
+ const isEditingStyleState = hasViewportBlockStyleState(selectedBlockStyleState2) && isResponsiveEditing3 || hasPseudoBlockStyleState(selectedBlockStyleState2);
+ const hasParentChildBlockCards = editedContentOnlySection2 && editedContentOnlySection2 !== renderedBlockClientId;
+ const parentBlockInformation = useBlockDisplayInformation(
+ editedContentOnlySection2
+ );
+ const blockInformation = useBlockDisplayInformation(
+ renderedBlockClientId
+ );
+ const isBlockSynced = blockInformation.isSynced;
+ const {
+ setSelectedBlockStyleState: setSelectedBlockStyleState2,
+ setSelectedBlockStyleStateCanvasPreview: setSelectedBlockStyleStateCanvasPreview2
+ } = unlock((0, import_data181.useDispatch)(store));
+ const onBlockStyleStateChange = (value) => {
+ setSelectedBlockStyleState2(renderedBlockClientId, value);
+ };
+ const onShowStateOnCanvasChange = (value) => {
+ setSelectedBlockStyleStateCanvasPreview2(renderedBlockClientId, value);
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime461.jsxs)("div", { className: "block-editor-block-inspector", children: [
+ hasParentChildBlockCards && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ block_card_default,
+ {
+ ...parentBlockInformation,
+ className: parentBlockInformation?.isSynced && "is-synced",
+ parentClientId: editedContentOnlySection2
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ block_card_default,
+ {
+ ...blockInformation,
+ allowParentNavigation: true,
+ className: isBlockSynced && "is-synced",
+ isChild: hasParentChildBlockCards,
+ clientId: renderedBlockClientId,
+ controls: blockEditingMode === "default" && blockStatesEditingEnabled && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ BlockStatesControl,
+ {
+ name: blockName,
+ value: selectedBlockStyleState2,
+ onChange: onBlockStyleStateChange
+ }
+ )
+ }
+ ),
+ blockEditingMode === "default" && isEditingStyleState && /* @__PURE__ */ (0, import_jsx_runtime461.jsxs)(import_components219.__experimentalSpacer, { paddingX: 4, paddingY: 2, children: [
+ hasPseudoState && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ import_components219.ToggleControl,
+ {
+ label: (0, import_i18n216.__)("Show state on canvas"),
+ checked: showStateOnCanvas,
+ onChange: onShowStateOnCanvasChange
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ BlockStateBadges,
+ {
+ name: blockName,
+ value: selectedBlockStyleState2,
+ isResponsiveEditing: isResponsiveEditing3
+ }
+ )
+ ] }),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(ViewportVisibilityInfo, { clientId: renderedBlockClientId }),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(EditContents, { clientId: renderedBlockClientId }),
+ !isEditingStyleState && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ block_variation_transforms_default,
+ {
+ blockClientId: renderedBlockClientId
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(BlockInspectorPreTabsSlot, {}),
+ isEditingStyleState && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ StyleStateInspectorSlots,
+ {
+ blockName,
+ clientId: renderedBlockClientId,
+ contentClientIds,
+ isSectionBlock: isSectionBlock2,
+ selectedBlockStyleState: selectedBlockStyleState2
+ }
+ ),
+ !isEditingStyleState && hasMultipleTabs && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(import_jsx_runtime461.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(
+ InspectorControlsTabs,
+ {
+ hasBlockStyles,
+ clientId: renderedBlockClientId,
+ blockName,
+ tabs: availableTabs,
+ isSectionBlock: isSectionBlock2,
+ contentClientIds
+ }
+ ) }),
+ !isEditingStyleState && !hasMultipleTabs && /* @__PURE__ */ (0, import_jsx_runtime461.jsxs)(import_jsx_runtime461.Fragment, { children: [
+ hasBlockStyles && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(block_styles_default, { clientId: renderedBlockClientId }),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(content_tab_default, { contentClientIds }),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(inspector_controls_default.Slot, { group: "content" }),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(inspector_controls_default.Slot, { group: "list", ref: listViewRef }),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(ListViewContentPopover, { listViewRef }),
+ !isSectionBlock2 && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(StyleInspectorSlots, { blockName })
+ ] }),
+ !isEditingStyleState && /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(last_item_default.Slot, {}),
+ /* @__PURE__ */ (0, import_jsx_runtime461.jsx)(SkipToSelectedBlock, {}, "back")
+ ] });
+ };
+ var block_inspector_default = BlockInspector;
+
+ // packages/block-editor/build-module/components/copy-handler/index.mjs
+ var import_deprecated31 = __toESM(require_deprecated(), 1);
+ var import_jsx_runtime462 = __toESM(require_jsx_runtime(), 1);
+ var __unstableUseClipboardHandler = () => {
+ (0, import_deprecated31.default)("__unstableUseClipboardHandler", {
+ alternative: "BlockCanvas or WritingFlow",
+ since: "6.4",
+ version: "6.7"
+ });
+ return useClipboardHandler();
+ };
+ function CopyHandler(props) {
+ (0, import_deprecated31.default)("CopyHandler", {
+ alternative: "BlockCanvas or WritingFlow",
+ since: "6.4",
+ version: "6.7"
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime462.jsx)("div", { ...props, ref: useClipboardHandler() });
+ }
+
+ // packages/block-editor/build-module/components/inserter/library.mjs
+ var import_data182 = __toESM(require_data(), 1);
+ var import_element281 = __toESM(require_element(), 1);
+ var import_jsx_runtime463 = __toESM(require_jsx_runtime(), 1);
+ var noop23 = () => {
+ };
+ function InserterLibrary({
+ rootClientId,
+ clientId,
+ isAppender,
+ showInserterHelpPanel,
+ showMostUsedBlocks = false,
+ __experimentalInsertionIndex,
+ __experimentalInitialTab,
+ __experimentalInitialCategory,
+ __experimentalFilterValue,
+ onPatternCategorySelection,
+ onSelect = noop23,
+ shouldFocusBlock = false,
+ onClose
+ }, ref) {
+ const { destinationRootClientId } = (0, import_data182.useSelect)(
+ (select3) => {
+ const { getBlockRootClientId: getBlockRootClientId2 } = select3(store);
+ const _rootClientId = rootClientId || getBlockRootClientId2(clientId) || void 0;
+ return {
+ destinationRootClientId: _rootClientId
+ };
+ },
+ [clientId, rootClientId]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime463.jsx)(
+ PrivateInserterMenu,
+ {
+ onSelect,
+ rootClientId: destinationRootClientId,
+ clientId,
+ isAppender,
+ showInserterHelpPanel,
+ showMostUsedBlocks,
+ __experimentalInsertionIndex,
+ __experimentalFilterValue,
+ onPatternCategorySelection,
+ __experimentalInitialTab,
+ __experimentalInitialCategory,
+ shouldFocusBlock,
+ ref,
+ onClose
+ }
+ );
+ }
+ var PrivateInserterLibrary = (0, import_element281.forwardRef)(InserterLibrary);
+ function PublicInserterLibrary(props, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime463.jsx)(
+ PrivateInserterLibrary,
+ {
+ ...props,
+ onPatternCategorySelection: void 0,
+ ref
+ }
+ );
+ }
+ var library_default = (0, import_element281.forwardRef)(PublicInserterLibrary);
+
+ // packages/block-editor/build-module/components/selection-scroll-into-view/index.mjs
+ var import_deprecated32 = __toESM(require_deprecated(), 1);
+ function MultiSelectScrollIntoView() {
+ (0, import_deprecated32.default)("wp.blockEditor.MultiSelectScrollIntoView", {
+ hint: "This behaviour is now built-in.",
+ since: "5.8"
+ });
+ return null;
+ }
+
+ // packages/block-editor/build-module/components/typewriter/index.mjs
+ var import_compose98 = __toESM(require_compose(), 1);
+ var import_dom73 = __toESM(require_dom(), 1);
+ var import_keycodes28 = __toESM(require_keycodes(), 1);
+ var import_jsx_runtime464 = __toESM(require_jsx_runtime(), 1);
+ var isIE = window.navigator.userAgent.indexOf("Trident") !== -1;
+ var arrowKeyCodes = /* @__PURE__ */ new Set([import_keycodes28.UP, import_keycodes28.DOWN, import_keycodes28.LEFT, import_keycodes28.RIGHT]);
+ var initialTriggerPercentage = 0.75;
+ function useTypewriter() {
+ return (0, import_compose98.useRefEffect)((node) => {
+ const { ownerDocument: ownerDocument2 } = node;
+ const { defaultView } = ownerDocument2;
+ let scrollResizeRafId;
+ let onKeyDownRafId;
+ let caretRect;
+ function onScrollResize() {
+ if (scrollResizeRafId) {
+ return;
+ }
+ scrollResizeRafId = defaultView.requestAnimationFrame(() => {
+ computeCaretRectangle();
+ scrollResizeRafId = null;
+ });
+ }
+ function onKeyDown(event) {
+ if (onKeyDownRafId) {
+ defaultView.cancelAnimationFrame(onKeyDownRafId);
+ }
+ onKeyDownRafId = defaultView.requestAnimationFrame(() => {
+ maintainCaretPosition(event);
+ onKeyDownRafId = null;
+ });
+ }
+ function maintainCaretPosition({ keyCode }) {
+ if (!isSelectionEligibleForScroll()) {
+ return;
+ }
+ const currentCaretRect = (0, import_dom73.computeCaretRect)(defaultView);
+ if (!currentCaretRect) {
+ return;
+ }
+ if (!caretRect) {
+ caretRect = currentCaretRect;
+ return;
+ }
+ if (arrowKeyCodes.has(keyCode)) {
+ caretRect = currentCaretRect;
+ return;
+ }
+ const diff = currentCaretRect.top - caretRect.top;
+ if (diff === 0) {
+ return;
+ }
+ const scrollContainer = (0, import_dom73.getScrollContainer)(node);
+ if (!scrollContainer) {
+ return;
+ }
+ const windowScroll = scrollContainer === ownerDocument2.body || scrollContainer === ownerDocument2.documentElement;
+ const scrollY = windowScroll ? defaultView.scrollY : scrollContainer.scrollTop;
+ const scrollContainerY = windowScroll ? 0 : scrollContainer.getBoundingClientRect().top;
+ const relativeScrollPosition = windowScroll ? caretRect.top / defaultView.innerHeight : (caretRect.top - scrollContainerY) / (defaultView.innerHeight - scrollContainerY);
+ if (scrollY === 0 && relativeScrollPosition < initialTriggerPercentage && isLastEditableNode()) {
+ caretRect = currentCaretRect;
+ return;
+ }
+ const scrollContainerHeight = windowScroll ? defaultView.innerHeight : scrollContainer.clientHeight;
+ if (
+ // The caret is under the lower fold.
+ caretRect.top + caretRect.height > scrollContainerY + scrollContainerHeight || // The caret is above the upper fold.
+ caretRect.top < scrollContainerY
+ ) {
+ caretRect = currentCaretRect;
+ return;
+ }
+ if (windowScroll) {
+ defaultView.scrollBy(0, diff);
+ } else {
+ scrollContainer.scrollTop += diff;
+ }
+ }
+ function addSelectionChangeListener() {
+ ownerDocument2.addEventListener(
+ "selectionchange",
+ computeCaretRectOnSelectionChange
+ );
+ }
+ function computeCaretRectOnSelectionChange() {
+ ownerDocument2.removeEventListener(
+ "selectionchange",
+ computeCaretRectOnSelectionChange
+ );
+ computeCaretRectangle();
+ }
+ function computeCaretRectangle() {
+ if (isSelectionEligibleForScroll()) {
+ caretRect = (0, import_dom73.computeCaretRect)(defaultView);
+ }
+ }
+ function getActiveEditableElement() {
+ const { activeElement: activeElement2 } = ownerDocument2;
+ if (!activeElement2) {
+ return null;
+ }
+ if (!activeElement2.isContentEditable || !activeElement2.contains(node)) {
+ return activeElement2;
+ }
+ const { anchorNode } = defaultView.getSelection();
+ if (!anchorNode) {
+ return null;
+ }
+ const element = anchorNode.nodeType === anchorNode.ELEMENT_NODE ? anchorNode : anchorNode.parentElement;
+ return element?.closest('[contenteditable="true"]') ?? null;
+ }
+ function isSelectionEligibleForScroll() {
+ const activeEditableElement = getActiveEditableElement();
+ return !!activeEditableElement && node.contains(activeEditableElement) && activeEditableElement.isContentEditable;
+ }
+ function isLastEditableNode() {
+ const editableNodes = node.querySelectorAll(
+ '[contenteditable="true"]'
+ );
+ const lastEditableNode = editableNodes[editableNodes.length - 1];
+ return lastEditableNode === getActiveEditableElement();
+ }
+ defaultView.addEventListener("scroll", onScrollResize, true);
+ defaultView.addEventListener("resize", onScrollResize, true);
+ node.addEventListener("keydown", onKeyDown);
+ node.addEventListener("keyup", maintainCaretPosition);
+ node.addEventListener("mousedown", addSelectionChangeListener);
+ node.addEventListener("touchstart", addSelectionChangeListener);
+ return () => {
+ defaultView.removeEventListener("scroll", onScrollResize, true);
+ defaultView.removeEventListener("resize", onScrollResize, true);
+ node.removeEventListener("keydown", onKeyDown);
+ node.removeEventListener("keyup", maintainCaretPosition);
+ node.removeEventListener("mousedown", addSelectionChangeListener);
+ node.removeEventListener(
+ "touchstart",
+ addSelectionChangeListener
+ );
+ ownerDocument2.removeEventListener(
+ "selectionchange",
+ computeCaretRectOnSelectionChange
+ );
+ defaultView.cancelAnimationFrame(scrollResizeRafId);
+ defaultView.cancelAnimationFrame(onKeyDownRafId);
+ };
+ }, []);
+ }
+ function Typewriter({ children }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime464.jsx)("div", { ref: useTypewriter(), className: "block-editor__typewriter", children });
+ }
+ var TypewriterOrIEBypass = isIE ? (props) => props.children : Typewriter;
+ var typewriter_default = TypewriterOrIEBypass;
+
+ // packages/block-editor/build-module/components/recursion-provider/index.mjs
+ var import_element282 = __toESM(require_element(), 1);
+ var import_deprecated33 = __toESM(require_deprecated(), 1);
+ var import_jsx_runtime465 = __toESM(require_jsx_runtime(), 1);
+ var RenderedRefsContext = (0, import_element282.createContext)({});
+ RenderedRefsContext.displayName = "RenderedRefsContext";
+ function addToBlockType(renderedBlocks, blockName, uniqueId2) {
+ const result = {
+ ...renderedBlocks,
+ [blockName]: renderedBlocks[blockName] ? new Set(renderedBlocks[blockName]) : /* @__PURE__ */ new Set()
+ };
+ result[blockName].add(uniqueId2);
+ return result;
+ }
+ function RecursionProvider({ children, uniqueId: uniqueId2, blockName = "" }) {
+ const previouslyRenderedBlocks = (0, import_element282.useContext)(RenderedRefsContext);
+ const { name } = useBlockEditContext();
+ blockName = blockName || name;
+ const newRenderedBlocks = (0, import_element282.useMemo)(
+ () => addToBlockType(previouslyRenderedBlocks, blockName, uniqueId2),
+ [previouslyRenderedBlocks, blockName, uniqueId2]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime465.jsx)(RenderedRefsContext.Provider, { value: newRenderedBlocks, children });
+ }
+ function useHasRecursion(uniqueId2, blockName = "") {
+ const previouslyRenderedBlocks = (0, import_element282.useContext)(RenderedRefsContext);
+ const { name } = useBlockEditContext();
+ blockName = blockName || name;
+ return Boolean(previouslyRenderedBlocks[blockName]?.has(uniqueId2));
+ }
+ var DeprecatedExperimentalRecursionProvider = (props) => {
+ (0, import_deprecated33.default)("wp.blockEditor.__experimentalRecursionProvider", {
+ since: "6.5",
+ alternative: "wp.blockEditor.RecursionProvider"
+ });
+ return /* @__PURE__ */ (0, import_jsx_runtime465.jsx)(RecursionProvider, { ...props });
+ };
+ var DeprecatedExperimentalUseHasRecursion = (...args) => {
+ (0, import_deprecated33.default)("wp.blockEditor.__experimentalUseHasRecursion", {
+ since: "6.5",
+ alternative: "wp.blockEditor.useHasRecursion"
+ });
+ return useHasRecursion(...args);
+ };
+
+ // packages/block-editor/build-module/components/publish-date-time-picker/index.mjs
+ var import_components221 = __toESM(require_components(), 1);
+ var import_i18n218 = __toESM(require_i18n(), 1);
+ var import_element283 = __toESM(require_element(), 1);
+ var import_date3 = __toESM(require_date(), 1);
+
+ // packages/block-editor/build-module/components/inspector-popover-header/index.mjs
+ var import_components220 = __toESM(require_components(), 1);
+ var import_i18n217 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime466 = __toESM(require_jsx_runtime(), 1);
+ function InspectorPopoverHeader({
+ title,
+ help,
+ actions = [],
+ onClose
+ }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime466.jsxs)(import_components220.__experimentalVStack, { className: "block-editor-inspector-popover-header", spacing: 4, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime466.jsxs)(import_components220.__experimentalHStack, { alignment: "center", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(
+ import_components220.__experimentalHeading,
+ {
+ className: "block-editor-inspector-popover-header__heading",
+ level: 2,
+ size: 13,
+ children: title
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(import_components220.__experimentalSpacer, {}),
+ actions.map(({ label, icon, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(
+ import_components220.Button,
+ {
+ size: "small",
+ className: "block-editor-inspector-popover-header__action",
+ label,
+ icon,
+ variant: !icon && "tertiary",
+ onClick,
+ children: !icon && label
+ },
+ label
+ )),
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(
+ import_components220.Button,
+ {
+ size: "small",
+ className: "block-editor-inspector-popover-header__action",
+ label: (0, import_i18n217.__)("Close"),
+ icon: close_small_default,
+ onClick: onClose
+ }
+ )
+ ] }),
+ help && /* @__PURE__ */ (0, import_jsx_runtime466.jsx)(import_components220.__experimentalText, { children: help })
+ ] });
+ }
+
+ // packages/block-editor/build-module/components/publish-date-time-picker/index.mjs
+ var import_jsx_runtime467 = __toESM(require_jsx_runtime(), 1);
+ function PublishDateTimePicker({
+ onClose,
+ onChange,
+ showPopoverHeaderActions,
+ isCompact,
+ currentDate,
+ title,
+ ...additionalProps
+ }, ref) {
+ const datePickerProps = {
+ startOfWeek: (0, import_date3.getSettings)().l10n.startOfWeek,
+ onChange,
+ currentDate: isCompact ? void 0 : currentDate,
+ currentTime: isCompact ? currentDate : void 0,
+ ...additionalProps
+ };
+ const DatePickerComponent = isCompact ? import_components221.TimePicker : import_components221.DateTimePicker;
+ return /* @__PURE__ */ (0, import_jsx_runtime467.jsxs)("div", { ref, className: "block-editor-publish-date-time-picker", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime467.jsx)(
+ InspectorPopoverHeader,
+ {
+ title: title || (0, import_i18n218.__)("Publish"),
+ actions: showPopoverHeaderActions ? [
+ {
+ label: (0, import_i18n218.__)("Now"),
+ onClick: () => onChange?.(null)
+ }
+ ] : void 0,
+ onClose
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime467.jsx)(DatePickerComponent, { ...datePickerProps })
+ ] });
+ }
+ var PrivatePublishDateTimePicker = (0, import_element283.forwardRef)(PublishDateTimePicker);
+ function PublicPublishDateTimePicker(props, ref) {
+ return /* @__PURE__ */ (0, import_jsx_runtime467.jsx)(
+ PrivatePublishDateTimePicker,
+ {
+ ...props,
+ showPopoverHeaderActions: true,
+ isCompact: false,
+ ref
+ }
+ );
+ }
+ var publish_date_time_picker_default = (0, import_element283.forwardRef)(PublicPublishDateTimePicker);
+
+ // packages/block-editor/build-module/components/tool-selector/index.mjs
+ var import_deprecated34 = __toESM(require_deprecated(), 1);
+ var import_element284 = __toESM(require_element(), 1);
+ function ToolSelector() {
+ (0, import_deprecated34.default)("wp.blockEditor.ToolSelector", {
+ since: "6.9",
+ hint: "The ToolSelector component no longer renders anything."
+ });
+ return null;
+ }
+ var tool_selector_default = (0, import_element284.forwardRef)(ToolSelector);
+
+ // packages/block-editor/build-module/hooks/utils.mjs
+ var import_jsx_runtime468 = __toESM(require_jsx_runtime(), 1);
+ var cleanEmptyObject = (object) => {
+ if (object === null || typeof object !== "object" || Array.isArray(object)) {
+ return object;
+ }
+ const cleanedNestedObjects = Object.entries(object).map(([key, value]) => [key, cleanEmptyObject(value)]).filter(([, value]) => value !== void 0);
+ return !cleanedNestedObjects.length ? void 0 : Object.fromEntries(cleanedNestedObjects);
+ };
+ function transformStyles2(activeSupports, migrationPaths, result, source, index2, results) {
+ if (Object.values(activeSupports ?? {}).every(
+ (isActive) => !isActive
+ )) {
+ return result;
+ }
+ if (results.length === 1 && result.innerBlocks.length === source.length) {
+ return result;
+ }
+ let referenceBlockAttributes = source[0]?.attributes;
+ if (results.length > 1 && source.length > 1) {
+ if (source[index2]) {
+ referenceBlockAttributes = source[index2]?.attributes;
+ } else {
+ return result;
+ }
+ }
+ let returnBlock = result;
+ Object.entries(activeSupports).forEach(([support, isActive]) => {
+ if (isActive) {
+ migrationPaths[support].forEach((path) => {
+ const styleValue = getValueFromObjectPath2(
+ referenceBlockAttributes,
+ path
+ );
+ if (styleValue) {
+ returnBlock = {
+ ...returnBlock,
+ attributes: setImmutably2(
+ returnBlock.attributes,
+ path,
+ styleValue
+ )
+ };
+ }
+ });
+ }
+ });
+ return returnBlock;
+ }
+ function shouldSkipSerialization(blockNameOrType, featureSet, feature) {
+ const support = (0, import_blocks108.getBlockSupport)(blockNameOrType, featureSet);
+ const skipSerialization = support?.__experimentalSkipSerialization;
+ if (Array.isArray(skipSerialization)) {
+ return skipSerialization.includes(feature);
+ }
+ return skipSerialization;
+ }
+ var pendingStyleOverrides = /* @__PURE__ */ new WeakMap();
+ function useStyleOverride({ id, css }) {
+ return usePrivateStyleOverride({ id, css });
+ }
+ function usePrivateStyleOverride({
+ id,
+ css,
+ assets,
+ __unstableType,
+ variation,
+ clientId
+ } = {}) {
+ const { setStyleOverride: setStyleOverride2, deleteStyleOverride: deleteStyleOverride2 } = unlock(
+ (0, import_data183.useDispatch)(store)
+ );
+ const registry = (0, import_data183.useRegistry)();
+ const fallbackId = (0, import_element285.useId)();
+ (0, import_element285.useEffect)(() => {
+ if (!css && !assets) {
+ return;
}
- return addLeadingZeros(hours, token.length);
- },
- // Hour [1-24]
- k: function(date, token, localize2) {
- let hours = date.getHours();
- if (hours === 0) hours = 24;
- if (token === "ko") {
- return localize2.ordinalNumber(hours, { unit: "hour" });
+ const _id = id || fallbackId;
+ const override = {
+ id,
+ css,
+ assets,
+ __unstableType,
+ variation,
+ clientId
+ };
+ if (!pendingStyleOverrides.get(registry)) {
+ pendingStyleOverrides.set(registry, []);
+ }
+ pendingStyleOverrides.get(registry).push([_id, override]);
+ window.queueMicrotask(() => {
+ if (pendingStyleOverrides.get(registry)?.length) {
+ registry.batch(() => {
+ pendingStyleOverrides.get(registry).forEach((args) => {
+ setStyleOverride2(...args);
+ });
+ pendingStyleOverrides.set(registry, []);
+ });
+ }
+ });
+ return () => {
+ const isPending = pendingStyleOverrides.get(registry)?.find(([currentId]) => currentId === _id);
+ if (isPending) {
+ pendingStyleOverrides.set(
+ registry,
+ pendingStyleOverrides.get(registry).filter(([currentId]) => currentId !== _id)
+ );
+ } else {
+ deleteStyleOverride2(_id);
+ }
+ };
+ }, [
+ id,
+ css,
+ clientId,
+ assets,
+ __unstableType,
+ fallbackId,
+ setStyleOverride2,
+ deleteStyleOverride2,
+ registry,
+ variation
+ ]);
+ }
+ function useBlockSettings(name, parentLayout) {
+ const [
+ backgroundImage,
+ backgroundSize,
+ gradient,
+ customFontFamilies,
+ defaultFontFamilies,
+ themeFontFamilies,
+ defaultFontSizesEnabled,
+ customFontSizes,
+ defaultFontSizes,
+ themeFontSizes,
+ customFontSize,
+ fontStyle,
+ fontWeight,
+ lineHeight,
+ textAlign,
+ textColumns,
+ textDecoration,
+ textIndent,
+ writingMode,
+ textTransform,
+ letterSpacing,
+ padding,
+ margin,
+ blockGap,
+ defaultSpacingSizesEnabled,
+ customSpacingSize,
+ userSpacingSizes,
+ defaultSpacingSizes,
+ themeSpacingSizes,
+ units2,
+ aspectRatio,
+ height,
+ minHeight,
+ minWidth,
+ width,
+ dimensionSizes,
+ layout,
+ borderColor,
+ borderRadius,
+ borderStyle,
+ borderWidth,
+ borderRadiusSizes,
+ customColorsEnabled,
+ customColors,
+ customDuotone,
+ themeColors,
+ defaultColors,
+ defaultPalette,
+ defaultDuotone,
+ userDuotonePalette,
+ themeDuotonePalette,
+ defaultDuotonePalette,
+ userGradientPalette,
+ themeGradientPalette,
+ defaultGradientPalette,
+ defaultGradients,
+ areCustomGradientsEnabled,
+ isBackgroundEnabled,
+ isLinkEnabled,
+ isTextEnabled,
+ isHeadingEnabled,
+ isButtonEnabled,
+ shadow
+ ] = useSettings(
+ "background.backgroundImage",
+ "background.backgroundSize",
+ "background.gradient",
+ "typography.fontFamilies.custom",
+ "typography.fontFamilies.default",
+ "typography.fontFamilies.theme",
+ "typography.defaultFontSizes",
+ "typography.fontSizes.custom",
+ "typography.fontSizes.default",
+ "typography.fontSizes.theme",
+ "typography.customFontSize",
+ "typography.fontStyle",
+ "typography.fontWeight",
+ "typography.lineHeight",
+ "typography.textAlign",
+ "typography.textColumns",
+ "typography.textDecoration",
+ "typography.textIndent",
+ "typography.writingMode",
+ "typography.textTransform",
+ "typography.letterSpacing",
+ "spacing.padding",
+ "spacing.margin",
+ "spacing.blockGap",
+ "spacing.defaultSpacingSizes",
+ "spacing.customSpacingSize",
+ "spacing.spacingSizes.custom",
+ "spacing.spacingSizes.default",
+ "spacing.spacingSizes.theme",
+ "spacing.units",
+ "dimensions.aspectRatio",
+ "dimensions.height",
+ "dimensions.minHeight",
+ "dimensions.minWidth",
+ "dimensions.width",
+ "dimensions.dimensionSizes",
+ "layout",
+ "border.color",
+ "border.radius",
+ "border.style",
+ "border.width",
+ "border.radiusSizes",
+ "color.custom",
+ "color.palette.custom",
+ "color.customDuotone",
+ "color.palette.theme",
+ "color.palette.default",
+ "color.defaultPalette",
+ "color.defaultDuotone",
+ "color.duotone.custom",
+ "color.duotone.theme",
+ "color.duotone.default",
+ "color.gradients.custom",
+ "color.gradients.theme",
+ "color.gradients.default",
+ "color.defaultGradients",
+ "color.customGradient",
+ "color.background",
+ "color.link",
+ "color.text",
+ "color.heading",
+ "color.button",
+ "shadow"
+ );
+ const rawSettings = (0, import_element285.useMemo)(() => {
+ return {
+ background: {
+ backgroundImage,
+ backgroundSize,
+ gradient
+ },
+ color: {
+ palette: {
+ custom: customColors,
+ theme: themeColors,
+ default: defaultColors
+ },
+ gradients: {
+ custom: userGradientPalette,
+ theme: themeGradientPalette,
+ default: defaultGradientPalette
+ },
+ duotone: {
+ custom: userDuotonePalette,
+ theme: themeDuotonePalette,
+ default: defaultDuotonePalette
+ },
+ defaultGradients,
+ defaultPalette,
+ defaultDuotone,
+ custom: customColorsEnabled,
+ customGradient: areCustomGradientsEnabled,
+ customDuotone,
+ background: isBackgroundEnabled,
+ link: isLinkEnabled,
+ heading: isHeadingEnabled,
+ button: isButtonEnabled,
+ text: isTextEnabled
+ },
+ typography: {
+ fontFamilies: {
+ custom: customFontFamilies,
+ default: defaultFontFamilies,
+ theme: themeFontFamilies
+ },
+ fontSizes: {
+ custom: customFontSizes,
+ default: defaultFontSizes,
+ theme: themeFontSizes
+ },
+ customFontSize,
+ defaultFontSizes: defaultFontSizesEnabled,
+ fontStyle,
+ fontWeight,
+ lineHeight,
+ textAlign,
+ textColumns,
+ textDecoration,
+ textIndent,
+ textTransform,
+ letterSpacing,
+ writingMode
+ },
+ spacing: {
+ spacingSizes: {
+ custom: userSpacingSizes,
+ default: defaultSpacingSizes,
+ theme: themeSpacingSizes
+ },
+ customSpacingSize,
+ defaultSpacingSizes: defaultSpacingSizesEnabled,
+ padding,
+ margin,
+ blockGap,
+ units: units2
+ },
+ border: {
+ color: borderColor,
+ radius: borderRadius,
+ style: borderStyle,
+ width: borderWidth,
+ radiusSizes: borderRadiusSizes
+ },
+ dimensions: {
+ aspectRatio,
+ height,
+ minHeight,
+ minWidth,
+ width,
+ dimensionSizes
+ },
+ layout,
+ parentLayout,
+ shadow
+ };
+ }, [
+ backgroundImage,
+ backgroundSize,
+ gradient,
+ customFontFamilies,
+ defaultFontFamilies,
+ themeFontFamilies,
+ defaultFontSizesEnabled,
+ customFontSizes,
+ defaultFontSizes,
+ themeFontSizes,
+ customFontSize,
+ fontStyle,
+ fontWeight,
+ lineHeight,
+ textAlign,
+ textColumns,
+ textDecoration,
+ textIndent,
+ textTransform,
+ letterSpacing,
+ writingMode,
+ padding,
+ margin,
+ blockGap,
+ defaultSpacingSizesEnabled,
+ customSpacingSize,
+ userSpacingSizes,
+ defaultSpacingSizes,
+ themeSpacingSizes,
+ units2,
+ aspectRatio,
+ height,
+ minHeight,
+ minWidth,
+ width,
+ dimensionSizes,
+ layout,
+ parentLayout,
+ borderColor,
+ borderRadius,
+ borderStyle,
+ borderWidth,
+ borderRadiusSizes,
+ customColorsEnabled,
+ customColors,
+ customDuotone,
+ themeColors,
+ defaultColors,
+ defaultPalette,
+ defaultDuotone,
+ userDuotonePalette,
+ themeDuotonePalette,
+ defaultDuotonePalette,
+ userGradientPalette,
+ themeGradientPalette,
+ defaultGradientPalette,
+ defaultGradients,
+ areCustomGradientsEnabled,
+ isBackgroundEnabled,
+ isLinkEnabled,
+ isTextEnabled,
+ isHeadingEnabled,
+ isButtonEnabled,
+ shadow
+ ]);
+ return useSettingsForBlockElement(rawSettings, name);
+ }
+ function createBlockEditFilter(features) {
+ features = features.map((settings2) => {
+ return { ...settings2, Edit: (0, import_element285.memo)(settings2.edit) };
+ });
+ const withBlockEditHooks = (0, import_compose99.createHigherOrderComponent)(
+ (OriginalBlockEdit) => function WithBlockEditHooks(props) {
+ const context = useBlockEditContext();
+ return [
+ ...features.map((feature, i2) => {
+ const {
+ Edit: Edit4,
+ hasSupport,
+ attributeKeys = [],
+ shareWithChildBlocks,
+ supportsPatternEditing
+ } = feature;
+ const shouldDisplayControls = supportsPatternEditing && context[mayDisplayPatternEditingControlsKey] || context[mayDisplayControlsKey] || context[mayDisplayParentControlsKey] && shareWithChildBlocks;
+ if (!shouldDisplayControls || !hasSupport(props.name)) {
+ return null;
+ }
+ const neededProps = {};
+ for (const key of attributeKeys) {
+ if (props.attributes[key]) {
+ neededProps[key] = props.attributes[key];
+ }
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime468.jsx)(
+ Edit4,
+ {
+ name: props.name,
+ isSelected: props.isSelected,
+ clientId: props.clientId,
+ setAttributes: props.setAttributes,
+ __unstableParentLayout: props.__unstableParentLayout,
+ ...neededProps
+ },
+ i2
+ );
+ }),
+ /* @__PURE__ */ (0, import_jsx_runtime468.jsx)(OriginalBlockEdit, { ...props }, "edit")
+ ];
+ },
+ "withBlockEditHooks"
+ );
+ (0, import_hooks18.addFilter)("editor.BlockEdit", "core/editor/hooks", withBlockEditHooks);
+ }
+ function BlockProps({
+ index: index2,
+ useBlockProps: hook,
+ setAllWrapperProps,
+ ...props
+ }) {
+ const wrapperProps = hook(props);
+ const setWrapperProps = (next) => setAllWrapperProps((prev) => {
+ const nextAll = [...prev];
+ nextAll[index2] = next;
+ return nextAll;
+ });
+ (0, import_element285.useEffect)(() => {
+ setWrapperProps(wrapperProps);
+ return () => {
+ setWrapperProps(void 0);
+ };
+ });
+ return null;
+ }
+ var BlockPropsPure = (0, import_element285.memo)(BlockProps);
+ function createBlockListBlockFilter(features) {
+ const withBlockListBlockHooks = (0, import_compose99.createHigherOrderComponent)(
+ (BlockListBlock2) => function WithBlockListBlockHooks(props) {
+ const [allWrapperProps, setAllWrapperProps] = (0, import_element285.useState)(
+ Array(features.length).fill(void 0)
+ );
+ return [
+ ...features.map((feature, i2) => {
+ const {
+ hasSupport,
+ attributeKeys = [],
+ useBlockProps: useBlockProps16,
+ isMatch
+ } = feature;
+ const neededProps = {};
+ for (const key of attributeKeys) {
+ if (props.attributes[key]) {
+ neededProps[key] = props.attributes[key];
+ }
+ }
+ if (
+ // Skip rendering if none of the needed attributes are
+ // set.
+ !Object.keys(neededProps).length || !hasSupport(props.name) || isMatch && !isMatch(neededProps)
+ ) {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime468.jsx)(
+ BlockPropsPure,
+ {
+ index: i2,
+ useBlockProps: useBlockProps16,
+ setAllWrapperProps,
+ name: props.name,
+ clientId: props.clientId,
+ ...neededProps
+ },
+ i2
+ );
+ }),
+ /* @__PURE__ */ (0, import_jsx_runtime468.jsx)(
+ BlockListBlock2,
+ {
+ ...props,
+ wrapperProps: allWrapperProps.filter(Boolean).reduce((acc, wrapperProps) => {
+ return {
+ ...acc,
+ ...wrapperProps,
+ className: clsx_default(
+ acc.className,
+ wrapperProps.className
+ ),
+ style: {
+ ...acc.style,
+ ...wrapperProps.style
+ }
+ };
+ }, props.wrapperProps || {})
+ },
+ "edit"
+ )
+ ];
+ },
+ "withBlockListBlockHooks"
+ );
+ (0, import_hooks18.addFilter)(
+ "editor.BlockListBlock",
+ "core/editor/hooks",
+ withBlockListBlockHooks
+ );
+ }
+ function createBlockSaveFilter(features) {
+ function extraPropsFromHooks(props, name, attributes) {
+ return features.reduce((accu, feature) => {
+ const { hasSupport, attributeKeys = [], addSaveProps: addSaveProps11 } = feature;
+ const neededAttributes = {};
+ for (const key of attributeKeys) {
+ if (attributes[key]) {
+ neededAttributes[key] = attributes[key];
+ }
+ }
+ if (
+ // Skip rendering if none of the needed attributes are
+ // set.
+ !Object.keys(neededAttributes).length || !hasSupport(name)
+ ) {
+ return accu;
+ }
+ return addSaveProps11(accu, name, neededAttributes);
+ }, props);
+ }
+ (0, import_hooks18.addFilter)(
+ "blocks.getSaveContent.extraProps",
+ "core/editor/hooks",
+ extraPropsFromHooks,
+ 0
+ );
+ (0, import_hooks18.addFilter)(
+ "blocks.getSaveContent.extraProps",
+ "core/editor/hooks",
+ (props) => {
+ if (props.hasOwnProperty("className") && !props.className) {
+ delete props.className;
+ }
+ return props;
}
- return addLeadingZeros(hours, token.length);
- },
- // Minute
- m: function(date, token, localize2) {
- if (token === "mo") {
- return localize2.ordinalNumber(date.getMinutes(), { unit: "minute" });
+ );
+ }
+
+ // packages/block-editor/build-module/hooks/compat.mjs
+ var import_blocks109 = __toESM(require_blocks(), 1);
+ var import_hooks20 = __toESM(require_hooks(), 1);
+ function migrateLightBlockWrapper(settings2) {
+ const { apiVersion = 1 } = settings2;
+ if (apiVersion < 2 && (0, import_blocks109.hasBlockSupport)(settings2, "lightBlockWrapper", false)) {
+ settings2.apiVersion = 2;
+ }
+ return settings2;
+ }
+ (0, import_hooks20.addFilter)(
+ "blocks.registerBlockType",
+ "core/compat/migrateLightBlockWrapper",
+ migrateLightBlockWrapper
+ );
+
+ // packages/block-editor/build-module/hooks/cross-origin-isolation.mjs
+ function addCrossOriginAttribute(el) {
+ if (!el.hasAttribute("crossorigin")) {
+ el.setAttribute("crossorigin", "anonymous");
+ }
+ }
+ if (window.crossOriginIsolated) {
+ let startObservingBody = function() {
+ if (document.body) {
+ observer.observe(document.body, {
+ childList: true,
+ attributes: true,
+ subtree: true
+ });
+ } else if (document.readyState === "loading") {
+ document.addEventListener("DOMContentLoaded", () => {
+ if (document.body) {
+ observer.observe(document.body, {
+ childList: true,
+ attributes: true,
+ subtree: true
+ });
+ }
+ });
}
- return lightFormatters.m(date, token);
- },
- // Second
- s: function(date, token, localize2) {
- if (token === "so") {
- return localize2.ordinalNumber(date.getSeconds(), { unit: "second" });
+ };
+ startObservingBody2 = startObservingBody;
+ const observer = new window.MutationObserver((mutations) => {
+ mutations.forEach((mutation) => {
+ [mutation.addedNodes, mutation.target].forEach((value) => {
+ const nodes = value instanceof window.NodeList ? value : [value];
+ nodes.forEach((node) => {
+ const el = node;
+ if (!el.querySelectorAll) {
+ return;
+ }
+ el.querySelectorAll("source,script,video,link").forEach(
+ (v2) => {
+ addCrossOriginAttribute(v2);
+ }
+ );
+ if (["SOURCE", "SCRIPT", "VIDEO", "LINK"].includes(
+ el.nodeName
+ )) {
+ addCrossOriginAttribute(el);
+ }
+ });
+ });
+ });
+ });
+ startObservingBody();
+ }
+ var startObservingBody2;
+
+ // packages/block-editor/build-module/hooks/align.mjs
+ var import_hooks21 = __toESM(require_hooks(), 1);
+ var import_blocks110 = __toESM(require_blocks(), 1);
+ var import_jsx_runtime469 = __toESM(require_jsx_runtime(), 1);
+ var ALL_ALIGNMENTS = ["left", "center", "right", "wide", "full"];
+ var WIDE_ALIGNMENTS = ["wide", "full"];
+ function getValidAlignments(blockAlign, hasWideBlockSupport = true, hasWideEnabled = true) {
+ let validAlignments;
+ if (Array.isArray(blockAlign)) {
+ validAlignments = ALL_ALIGNMENTS.filter(
+ (value) => blockAlign.includes(value)
+ );
+ } else if (blockAlign === true) {
+ validAlignments = [...ALL_ALIGNMENTS];
+ } else {
+ validAlignments = [];
+ }
+ if (!hasWideEnabled || blockAlign === true && !hasWideBlockSupport) {
+ return validAlignments.filter(
+ (alignment) => !WIDE_ALIGNMENTS.includes(alignment)
+ );
+ }
+ return validAlignments;
+ }
+ function addAttribute(settings2) {
+ if ("type" in (settings2.attributes?.align ?? {})) {
+ return settings2;
+ }
+ if ((0, import_blocks110.hasBlockSupport)(settings2, "align")) {
+ settings2.attributes = {
+ ...settings2.attributes,
+ align: {
+ type: "string",
+ // Allow for '' since it is used by the `updateAlignment` function
+ // in toolbar controls for special cases with defined default values.
+ enum: [...ALL_ALIGNMENTS, ""]
+ }
+ };
+ }
+ return settings2;
+ }
+ function BlockEditAlignmentToolbarControlsPure({
+ name: blockName,
+ align,
+ setAttributes
+ }) {
+ const blockAllowedAlignments = getValidAlignments(
+ (0, import_blocks110.getBlockSupport)(blockName, "align"),
+ (0, import_blocks110.hasBlockSupport)(blockName, "alignWide", true)
+ );
+ const validAlignments = useAvailableAlignments(
+ blockAllowedAlignments
+ ).map(({ name }) => name);
+ const blockEditingMode = useBlockEditingMode();
+ if (!validAlignments.length || blockEditingMode !== "default") {
+ return null;
+ }
+ const updateAlignment = (nextAlign) => {
+ if (!nextAlign) {
+ const blockType = (0, import_blocks110.getBlockType)(blockName);
+ const blockDefaultAlign = blockType?.attributes?.align?.default;
+ if (blockDefaultAlign) {
+ nextAlign = "";
+ }
}
- return lightFormatters.s(date, token);
- },
- // Fraction of second
- S: function(date, token) {
- return lightFormatters.S(date, token);
- },
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
- X: function(date, token, _localize) {
- const timezoneOffset = date.getTimezoneOffset();
- if (timezoneOffset === 0) {
- return "Z";
+ setAttributes({ align: nextAlign });
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime469.jsx)(block_controls_default, { group: "block", __experimentalShareWithChildBlocks: true, children: /* @__PURE__ */ (0, import_jsx_runtime469.jsx)(
+ BlockAlignmentControl,
+ {
+ value: align,
+ onChange: updateAlignment,
+ controls: validAlignments
}
- switch (token) {
- // Hours and optional minutes
- case "X":
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
- // Hours, minutes and optional seconds without `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `XX`
- case "XXXX":
- case "XX":
- return formatTimezone(timezoneOffset);
- // Hours, minutes and optional seconds with `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `XXX`
- case "XXXXX":
- case "XXX":
- // Hours and minutes with `:` delimiter
- default:
- return formatTimezone(timezoneOffset, ":");
+ ) });
+ }
+ var align_default = {
+ shareWithChildBlocks: true,
+ edit: BlockEditAlignmentToolbarControlsPure,
+ useBlockProps: useBlockProps11,
+ addSaveProps: addAssignedAlign,
+ attributeKeys: ["align"],
+ hasSupport(name) {
+ return (0, import_blocks110.hasBlockSupport)(name, "align", false);
+ }
+ };
+ function useBlockProps11({ name, align }) {
+ const blockAllowedAlignments = getValidAlignments(
+ (0, import_blocks110.getBlockSupport)(name, "align"),
+ (0, import_blocks110.hasBlockSupport)(name, "alignWide", true)
+ );
+ const validAlignments = useAvailableAlignments(blockAllowedAlignments);
+ if (validAlignments.some((alignment) => alignment.name === align)) {
+ return { "data-align": align };
+ }
+ return {};
+ }
+ function addAssignedAlign(props, blockType, attributes) {
+ const { align } = attributes;
+ const blockAlign = (0, import_blocks110.getBlockSupport)(blockType, "align");
+ const hasWideBlockSupport = (0, import_blocks110.hasBlockSupport)(blockType, "alignWide", true);
+ const isAlignValid = getValidAlignments(
+ blockAlign,
+ hasWideBlockSupport
+ ).includes(align);
+ if (isAlignValid) {
+ props.className = clsx_default(`align${align}`, props.className);
+ }
+ return props;
+ }
+ (0, import_hooks21.addFilter)(
+ "blocks.registerBlockType",
+ "core/editor/align/addAttribute",
+ addAttribute
+ );
+
+ // packages/block-editor/build-module/hooks/lock.mjs
+ var import_hooks22 = __toESM(require_hooks(), 1);
+ function addAttribute2(settings2) {
+ if ("type" in (settings2.attributes?.lock ?? {})) {
+ return settings2;
+ }
+ settings2.attributes = {
+ ...settings2.attributes,
+ lock: {
+ type: "object"
}
- },
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
- x: function(date, token, _localize) {
- const timezoneOffset = date.getTimezoneOffset();
- switch (token) {
- // Hours and optional minutes
- case "x":
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
- // Hours, minutes and optional seconds without `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `xx`
- case "xxxx":
- case "xx":
- return formatTimezone(timezoneOffset);
- // Hours, minutes and optional seconds with `:` delimiter
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
- // so this token always has the same output as `xxx`
- case "xxxxx":
- case "xxx":
- // Hours and minutes with `:` delimiter
- default:
- return formatTimezone(timezoneOffset, ":");
+ };
+ return settings2;
+ }
+ (0, import_hooks22.addFilter)("blocks.registerBlockType", "core/lock/addAttribute", addAttribute2);
+
+ // packages/block-editor/build-module/hooks/allowed-blocks.mjs
+ var import_hooks23 = __toESM(require_hooks(), 1);
+ var import_blocks113 = __toESM(require_blocks(), 1);
+
+ // packages/block-editor/build-module/components/block-allowed-blocks/allowed-blocks-control.mjs
+ var import_components228 = __toESM(require_components(), 1);
+ var import_i18n221 = __toESM(require_i18n(), 1);
+ var import_element289 = __toESM(require_element(), 1);
+ var import_data186 = __toESM(require_data(), 1);
+ var import_blocks112 = __toESM(require_blocks(), 1);
+
+ // packages/block-editor/build-module/components/block-allowed-blocks/modal.mjs
+ var import_components227 = __toESM(require_components(), 1);
+ var import_element288 = __toESM(require_element(), 1);
+ var import_i18n220 = __toESM(require_i18n(), 1);
+ var import_data185 = __toESM(require_data(), 1);
+
+ // packages/block-editor/build-module/components/block-manager/index.mjs
+ var import_blocks111 = __toESM(require_blocks(), 1);
+ var import_data184 = __toESM(require_data(), 1);
+ var import_components226 = __toESM(require_components(), 1);
+ var import_i18n219 = __toESM(require_i18n(), 1);
+ var import_element287 = __toESM(require_element(), 1);
+ var import_compose101 = __toESM(require_compose(), 1);
+ var import_a11y23 = __toESM(require_a11y(), 1);
+
+ // packages/block-editor/build-module/components/block-manager/category.mjs
+ var import_element286 = __toESM(require_element(), 1);
+ var import_compose100 = __toESM(require_compose(), 1);
+ var import_components225 = __toESM(require_components(), 1);
+
+ // packages/block-editor/build-module/components/block-manager/checklist.mjs
+ var import_components224 = __toESM(require_components(), 1);
+ var import_jsx_runtime470 = __toESM(require_jsx_runtime(), 1);
+ function BlockTypesChecklist({ blockTypes, value, onItemChange }) {
+ return /* @__PURE__ */ (0, import_jsx_runtime470.jsx)("ul", { className: "block-editor-block-manager__checklist", children: blockTypes.map((blockType) => /* @__PURE__ */ (0, import_jsx_runtime470.jsxs)(
+ "li",
+ {
+ className: "block-editor-block-manager__checklist-item",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime470.jsx)(
+ import_components224.CheckboxControl,
+ {
+ label: blockType.title,
+ checked: value.includes(blockType.name),
+ onChange: (...args) => onItemChange(blockType, ...args)
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime470.jsx)(block_icon_default, { icon: blockType.icon })
+ ]
+ },
+ blockType.name
+ )) });
+ }
+ var checklist_default = BlockTypesChecklist;
+
+ // packages/block-editor/build-module/components/block-manager/category.mjs
+ var import_jsx_runtime471 = __toESM(require_jsx_runtime(), 1);
+ function BlockManagerCategory({
+ title,
+ blockTypes,
+ selectedBlockTypes,
+ onChange
+ }) {
+ const instanceId = (0, import_compose100.useInstanceId)(BlockManagerCategory);
+ const toggleVisible = (0, import_element286.useCallback)(
+ (blockType, nextIsChecked) => {
+ if (nextIsChecked) {
+ onChange([...selectedBlockTypes, blockType]);
+ } else {
+ onChange(
+ selectedBlockTypes.filter(
+ ({ name }) => name !== blockType.name
+ )
+ );
+ }
+ },
+ [selectedBlockTypes, onChange]
+ );
+ const toggleAllVisible = (0, import_element286.useCallback)(
+ (nextIsChecked) => {
+ if (nextIsChecked) {
+ onChange([
+ ...selectedBlockTypes,
+ ...blockTypes.filter(
+ (blockType) => !selectedBlockTypes.find(
+ ({ name }) => name === blockType.name
+ )
+ )
+ ]);
+ } else {
+ onChange(
+ selectedBlockTypes.filter(
+ (selectedBlockType) => !blockTypes.find(
+ ({ name }) => name === selectedBlockType.name
+ )
+ )
+ );
+ }
+ },
+ [blockTypes, selectedBlockTypes, onChange]
+ );
+ if (!blockTypes.length) {
+ return null;
+ }
+ const checkedBlockNames = blockTypes.map(({ name }) => name).filter(
+ (type) => (selectedBlockTypes ?? []).some(
+ (selectedBlockType) => selectedBlockType.name === type
+ )
+ );
+ const titleId = "block-editor-block-manager__category-title-" + instanceId;
+ const isAllChecked = checkedBlockNames.length === blockTypes.length;
+ const isIndeterminate = !isAllChecked && checkedBlockNames.length > 0;
+ return /* @__PURE__ */ (0, import_jsx_runtime471.jsxs)(
+ "div",
+ {
+ role: "group",
+ "aria-labelledby": titleId,
+ className: "block-editor-block-manager__category",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime471.jsx)(
+ import_components225.CheckboxControl,
+ {
+ checked: isAllChecked,
+ onChange: toggleAllVisible,
+ className: "block-editor-block-manager__category-title",
+ indeterminate: isIndeterminate,
+ label: /* @__PURE__ */ (0, import_jsx_runtime471.jsx)("span", { id: titleId, children: title })
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime471.jsx)(
+ checklist_default,
+ {
+ blockTypes,
+ value: checkedBlockNames,
+ onItemChange: toggleVisible
+ }
+ )
+ ]
}
- },
- // Timezone (GMT)
- O: function(date, token, _localize) {
- const timezoneOffset = date.getTimezoneOffset();
- switch (token) {
- // Short
- case "O":
- case "OO":
- case "OOO":
- return "GMT" + formatTimezoneShort(timezoneOffset, ":");
- // Long
- case "OOOO":
- default:
- return "GMT" + formatTimezone(timezoneOffset, ":");
+ );
+ }
+ var category_default2 = BlockManagerCategory;
+
+ // packages/block-editor/build-module/components/block-manager/index.mjs
+ var import_jsx_runtime472 = __toESM(require_jsx_runtime(), 1);
+ function BlockManager({
+ blockTypes,
+ selectedBlockTypes,
+ onChange,
+ showSelectAll = true
+ }) {
+ const debouncedSpeak = (0, import_compose101.useDebounce)(import_a11y23.speak, 500);
+ const [search, setSearch] = (0, import_element287.useState)("");
+ const { categories, isMatchingSearchTerm } = (0, import_data184.useSelect)((select3) => {
+ return {
+ categories: select3(import_blocks111.store).getCategories(),
+ isMatchingSearchTerm: select3(import_blocks111.store).isMatchingSearchTerm
+ };
+ }, []);
+ const filteredBlockTypes = blockTypes.filter((blockType) => {
+ return !search || isMatchingSearchTerm(blockType, search);
+ });
+ const isIndeterminate = selectedBlockTypes.length > 0 && selectedBlockTypes.length !== blockTypes.length;
+ const isAllChecked = blockTypes.length > 0 && selectedBlockTypes.length === blockTypes.length;
+ (0, import_element287.useEffect)(() => {
+ if (!search) {
+ return;
}
- },
- // Timezone (specific non-location)
- z: function(date, token, _localize) {
- const timezoneOffset = date.getTimezoneOffset();
- switch (token) {
- // Short
- case "z":
- case "zz":
- case "zzz":
- return "GMT" + formatTimezoneShort(timezoneOffset, ":");
- // Long
- case "zzzz":
- default:
- return "GMT" + formatTimezone(timezoneOffset, ":");
+ const count = filteredBlockTypes.length;
+ const resultsFoundMessage = (0, import_i18n219.sprintf)(
+ /* translators: %d: number of results. */
+ (0, import_i18n219._n)("%d result found.", "%d results found.", count),
+ count
+ );
+ debouncedSpeak(resultsFoundMessage);
+ }, [filteredBlockTypes?.length, search, debouncedSpeak]);
+ return /* @__PURE__ */ (0, import_jsx_runtime472.jsxs)(import_components226.__experimentalVStack, { className: "block-editor-block-manager__content", spacing: 4, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime472.jsx)(
+ import_components226.SearchControl,
+ {
+ label: (0, import_i18n219.__)("Search for a block"),
+ placeholder: (0, import_i18n219.__)("Search for a block"),
+ value: search,
+ onChange: (nextSearch) => setSearch(nextSearch),
+ className: "block-editor-block-manager__search"
+ }
+ ),
+ showSelectAll && /* @__PURE__ */ (0, import_jsx_runtime472.jsx)(
+ import_components226.CheckboxControl,
+ {
+ className: "block-editor-block-manager__select-all",
+ label: (0, import_i18n219.__)("Select all"),
+ checked: isAllChecked,
+ onChange: () => {
+ if (isAllChecked) {
+ onChange([]);
+ } else {
+ onChange(blockTypes);
+ }
+ },
+ indeterminate: isIndeterminate
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime472.jsxs)(
+ "div",
+ {
+ tabIndex: "0",
+ role: "region",
+ "aria-label": (0, import_i18n219.__)("Available block types"),
+ className: "block-editor-block-manager__results",
+ children: [
+ filteredBlockTypes.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime472.jsx)("p", { className: "block-editor-block-manager__no-results", children: (0, import_i18n219.__)("No blocks found.") }),
+ categories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime472.jsx)(
+ category_default2,
+ {
+ title: category.title,
+ blockTypes: filteredBlockTypes.filter(
+ (blockType) => blockType.category === category.slug
+ ),
+ selectedBlockTypes,
+ onChange
+ },
+ category.slug
+ )),
+ /* @__PURE__ */ (0, import_jsx_runtime472.jsx)(
+ category_default2,
+ {
+ title: (0, import_i18n219.__)("Uncategorized"),
+ blockTypes: filteredBlockTypes.filter(
+ ({ category }) => !category
+ ),
+ selectedBlockTypes,
+ onChange
+ }
+ )
+ ]
+ }
+ )
+ ] });
+ }
+
+ // packages/block-editor/build-module/components/block-allowed-blocks/modal.mjs
+ var import_jsx_runtime473 = __toESM(require_jsx_runtime(), 1);
+ function BlockAllowedBlocksModal({
+ clientId,
+ blockTypes,
+ selectedBlockTypes,
+ onClose
+ }) {
+ const [currentSelectedBlockTypes, setCurrentSelectedBlockTypes] = (0, import_element288.useState)(selectedBlockTypes);
+ const { updateBlockAttributes: updateBlockAttributes2 } = (0, import_data185.useDispatch)(store);
+ const handleSubmit = () => {
+ const isFullySelected = currentSelectedBlockTypes.length === blockTypes.length;
+ const newBlockNames = currentSelectedBlockTypes.map(
+ ({ name }) => name
+ );
+ updateBlockAttributes2(clientId, {
+ allowedBlocks: isFullySelected ? void 0 : newBlockNames
+ });
+ onClose();
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime473.jsx)(
+ import_components227.Modal,
+ {
+ title: (0, import_i18n220._x)("Manage allowed blocks", "modal title"),
+ onRequestClose: onClose,
+ overlayClassName: "block-editor-block-allowed-blocks-modal",
+ focusOnMount: "firstContentElement",
+ size: "medium",
+ children: /* @__PURE__ */ (0, import_jsx_runtime473.jsxs)(
+ import_components227.__experimentalVStack,
+ {
+ as: "form",
+ onSubmit: (e2) => {
+ e2.preventDefault();
+ handleSubmit();
+ },
+ spacing: "4",
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime473.jsx)(import_components227.__experimentalText, { children: (0, import_i18n220.__)(
+ "Select which blocks can be added inside this container."
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime473.jsx)(
+ BlockManager,
+ {
+ blockTypes,
+ selectedBlockTypes: currentSelectedBlockTypes,
+ onChange: (newSelectedBlockTypes) => {
+ setCurrentSelectedBlockTypes(newSelectedBlockTypes);
+ }
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime473.jsxs)(
+ import_components227.Flex,
+ {
+ className: "block-editor-block-allowed-blocks-modal__actions",
+ justify: "flex-end",
+ expanded: false,
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime473.jsx)(import_components227.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime473.jsx)(
+ import_components227.Button,
+ {
+ variant: "tertiary",
+ onClick: onClose,
+ __next40pxDefaultSize: true,
+ children: (0, import_i18n220.__)("Cancel")
+ }
+ ) }),
+ /* @__PURE__ */ (0, import_jsx_runtime473.jsx)(import_components227.FlexItem, { children: /* @__PURE__ */ (0, import_jsx_runtime473.jsx)(
+ import_components227.Button,
+ {
+ variant: "primary",
+ type: "submit",
+ __next40pxDefaultSize: true,
+ children: (0, import_i18n220.__)("Apply")
+ }
+ ) })
+ ]
+ }
+ )
+ ]
+ }
+ )
}
- },
- // Seconds timestamp
- t: function(date, token, _localize) {
- const timestamp = Math.trunc(+date / 1e3);
- return addLeadingZeros(timestamp, token.length);
- },
- // Milliseconds timestamp
- T: function(date, token, _localize) {
- return addLeadingZeros(+date, token.length);
- }
- };
- function formatTimezoneShort(offset4, delimiter = "") {
- const sign = offset4 > 0 ? "-" : "+";
- const absOffset = Math.abs(offset4);
- const hours = Math.trunc(absOffset / 60);
- const minutes = absOffset % 60;
- if (minutes === 0) {
- return sign + String(hours);
- }
- return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
+ );
}
- function formatTimezoneWithOptionalMinutes(offset4, delimiter) {
- if (offset4 % 60 === 0) {
- const sign = offset4 > 0 ? "-" : "+";
- return sign + addLeadingZeros(Math.abs(offset4) / 60, 2);
+
+ // packages/block-editor/build-module/components/block-allowed-blocks/allowed-blocks-control.mjs
+ var import_jsx_runtime474 = __toESM(require_jsx_runtime(), 1);
+ function BlockAllowedBlocksControl({ clientId }) {
+ const [isBlockControlOpened, setIsBlockControlOpened] = (0, import_element289.useState)(false);
+ const { blockTypes, selectedBlockNames } = (0, import_data186.useSelect)(
+ (select3) => {
+ const { getBlockAttributes: getBlockAttributes3 } = select3(store);
+ return {
+ blockTypes: select3(import_blocks112.store).getBlockTypes(),
+ selectedBlockNames: getBlockAttributes3(clientId)?.allowedBlocks
+ };
+ },
+ [clientId]
+ );
+ const filteredBlockTypes = blockTypes.filter(
+ (blockType) => (0, import_blocks112.hasBlockSupport)(blockType, "inserter", true) && (!blockType.parent || blockType.parent.includes("core/post-content"))
+ );
+ if (!filteredBlockTypes) {
+ return null;
}
- return formatTimezone(offset4, delimiter);
- }
- function formatTimezone(offset4, delimiter = "") {
- const sign = offset4 > 0 ? "-" : "+";
- const absOffset = Math.abs(offset4);
- const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);
- const minutes = addLeadingZeros(absOffset % 60, 2);
- return sign + hours + delimiter + minutes;
+ const selectedBlockTypes = selectedBlockNames === void 0 ? filteredBlockTypes : filteredBlockTypes.filter(
+ (blockType) => selectedBlockNames.includes(blockType.name)
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime474.jsxs)("div", { className: "block-editor-block-allowed-blocks-control", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime474.jsxs)(
+ import_components228.BaseControl,
+ {
+ help: (0, import_i18n221.__)(
+ "Specify which blocks are allowed inside this container."
+ ),
+ children: [
+ /* @__PURE__ */ (0, import_jsx_runtime474.jsx)(import_components228.BaseControl.VisualLabel, { children: (0, import_i18n221.__)("Allowed Blocks") }),
+ /* @__PURE__ */ (0, import_jsx_runtime474.jsx)(
+ import_components228.Button,
+ {
+ __next40pxDefaultSize: true,
+ variant: "secondary",
+ onClick: () => {
+ setIsBlockControlOpened(true);
+ },
+ className: "block-editor-block-allowed-blocks-control__button",
+ children: (0, import_i18n221.__)("Manage allowed blocks")
+ }
+ )
+ ]
+ }
+ ),
+ isBlockControlOpened && /* @__PURE__ */ (0, import_jsx_runtime474.jsx)(
+ BlockAllowedBlocksModal,
+ {
+ clientId,
+ blockTypes: filteredBlockTypes,
+ selectedBlockTypes,
+ onClose: () => setIsBlockControlOpened(false)
+ }
+ )
+ ] });
}
- // packages/dataviews/node_modules/date-fns/_lib/format/longFormatters.js
- var dateLongFormatter = (pattern, formatLong2) => {
- switch (pattern) {
- case "P":
- return formatLong2.date({ width: "short" });
- case "PP":
- return formatLong2.date({ width: "medium" });
- case "PPP":
- return formatLong2.date({ width: "long" });
- case "PPPP":
- default:
- return formatLong2.date({ width: "full" });
+ // packages/block-editor/build-module/hooks/allowed-blocks.mjs
+ var import_jsx_runtime475 = __toESM(require_jsx_runtime(), 1);
+ function BlockEditAllowedBlocksControlPure({ clientId }) {
+ const blockEditingMode = useBlockEditingMode();
+ const isContentOnly = blockEditingMode === "contentOnly";
+ if (isContentOnly) {
+ return null;
}
- };
- var timeLongFormatter = (pattern, formatLong2) => {
- switch (pattern) {
- case "p":
- return formatLong2.time({ width: "short" });
- case "pp":
- return formatLong2.time({ width: "medium" });
- case "ppp":
- return formatLong2.time({ width: "long" });
- case "pppp":
- default:
- return formatLong2.time({ width: "full" });
+ return /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(PrivateInspectorControlsAllowedBlocks.Fill, { children: /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(BlockAllowedBlocksControl, { clientId }) });
+ }
+ var allowed_blocks_default = {
+ edit: BlockEditAllowedBlocksControlPure,
+ attributeKeys: ["allowedBlocks"],
+ hasSupport(name) {
+ return (0, import_blocks113.hasBlockSupport)(name, "allowedBlocks");
}
};
- var dateTimeLongFormatter = (pattern, formatLong2) => {
- const matchResult = pattern.match(/(P+)(p+)?/) || [];
- const datePattern = matchResult[1];
- const timePattern = matchResult[2];
- if (!timePattern) {
- return dateLongFormatter(pattern, formatLong2);
+ function addAttribute3(settings2) {
+ if (settings2?.attributes?.allowedBlocks?.type) {
+ return settings2;
}
- let dateTimeFormat;
- switch (datePattern) {
- case "P":
- dateTimeFormat = formatLong2.dateTime({ width: "short" });
- break;
- case "PP":
- dateTimeFormat = formatLong2.dateTime({ width: "medium" });
- break;
- case "PPP":
- dateTimeFormat = formatLong2.dateTime({ width: "long" });
- break;
- case "PPPP":
- default:
- dateTimeFormat = formatLong2.dateTime({ width: "full" });
- break;
+ if ((0, import_blocks113.hasBlockSupport)(settings2, "allowedBlocks")) {
+ settings2.attributes = {
+ ...settings2.attributes,
+ allowedBlocks: {
+ type: "array"
+ }
+ };
}
- return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong2)).replace("{{time}}", timeLongFormatter(timePattern, formatLong2));
- };
- var longFormatters = {
- p: timeLongFormatter,
- P: dateTimeLongFormatter
- };
-
- // packages/dataviews/node_modules/date-fns/_lib/protectedTokens.js
- var dayOfYearTokenRE = /^D+$/;
- var weekYearTokenRE = /^Y+$/;
- var throwTokens = ["D", "DD", "YY", "YYYY"];
- function isProtectedDayOfYearToken(token) {
- return dayOfYearTokenRE.test(token);
- }
- function isProtectedWeekYearToken(token) {
- return weekYearTokenRE.test(token);
- }
- function warnOrThrowProtectedError(token, format6, input) {
- const _message = message(token, format6, input);
- console.warn(_message);
- if (throwTokens.includes(token)) throw new RangeError(_message);
+ return settings2;
}
- function message(token, format6, input) {
- const subject = token[0] === "Y" ? "years" : "days of the month";
- return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format6}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
+ (0, import_hooks23.addFilter)(
+ "blocks.registerBlockType",
+ "core/allowedBlocks/attribute",
+ addAttribute3
+ );
+ function addTransforms3(result, source, index2, results) {
+ if (!(0, import_blocks113.hasBlockSupport)(result.name, "allowedBlocks")) {
+ return result;
+ }
+ if (source.length !== 1 && results.length === 1 && result.innerBlocks.length === source.length) {
+ return result;
+ }
+ if (results.length === 1 && source.length > 1 || results.length > 1 && source.length === 1) {
+ return result;
+ }
+ if (results.length > 1 && source.length > 1 && results.length !== source.length) {
+ return result;
+ }
+ if (result.attributes.allowedBlocks) {
+ return result;
+ }
+ const sourceAllowedBlocks = source[index2]?.attributes?.allowedBlocks;
+ if (!sourceAllowedBlocks) {
+ return result;
+ }
+ const blockType = (0, import_blocks113.getBlockType)(result.name);
+ const destinationAllowedBlocks = blockType?.allowedBlocks || [];
+ if (!destinationAllowedBlocks.length) {
+ return {
+ ...result,
+ attributes: {
+ ...result.attributes,
+ allowedBlocks: sourceAllowedBlocks
+ }
+ };
+ }
+ const filteredSourceAllowedBlocks = sourceAllowedBlocks.filter(
+ (block) => destinationAllowedBlocks.includes(block)
+ );
+ return {
+ ...result,
+ attributes: {
+ ...result.attributes,
+ allowedBlocks: filteredSourceAllowedBlocks
+ }
+ };
}
+ (0, import_hooks23.addFilter)(
+ "blocks.switchToBlockType.transformedBlock",
+ "core/allowedBlocks/addTransforms",
+ addTransforms3
+ );
- // packages/dataviews/node_modules/date-fns/format.js
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
- var escapedStringRegExp = /^'([^]*?)'?$/;
- var doubleQuoteRegExp = /''/g;
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
- function format(date, formatStr, options) {
- const defaultOptions2 = getDefaultOptions();
- const locale = options?.locale ?? defaultOptions2.locale ?? enUS;
- const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
- const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
- const originalDate = toDate(date, options?.in);
- if (!isValid(originalDate)) {
- throw new RangeError("Invalid time value");
+ // packages/block-editor/build-module/hooks/anchor.mjs
+ var import_hooks24 = __toESM(require_hooks(), 1);
+ var import_components229 = __toESM(require_components(), 1);
+ var import_i18n222 = __toESM(require_i18n(), 1);
+ var import_blocks114 = __toESM(require_blocks(), 1);
+ var import_jsx_runtime476 = __toESM(require_jsx_runtime(), 1);
+ var ANCHOR_REGEX = /[\s#]/g;
+ function addAttribute4(settings2) {
+ if ("type" in (settings2.attributes?.anchor ?? {})) {
+ return settings2;
}
- let parts = formatStr.match(longFormattingTokensRegExp).map((substring) => {
- const firstCharacter = substring[0];
- if (firstCharacter === "p" || firstCharacter === "P") {
- const longFormatter = longFormatters[firstCharacter];
- return longFormatter(substring, locale.formatLong);
- }
- return substring;
- }).join("").match(formattingTokensRegExp).map((substring) => {
- if (substring === "''") {
- return { isToken: false, value: "'" };
- }
- const firstCharacter = substring[0];
- if (firstCharacter === "'") {
- return { isToken: false, value: cleanEscapedString(substring) };
- }
- if (formatters[firstCharacter]) {
- return { isToken: true, value: substring };
- }
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
- throw new RangeError(
- "Format string contains an unescaped latin alphabet character `" + firstCharacter + "`"
- );
- }
- return { isToken: false, value: substring };
- });
- if (locale.localize.preprocessor) {
- parts = locale.localize.preprocessor(originalDate, parts);
+ if ((0, import_blocks114.hasBlockSupport)(settings2, "anchor")) {
+ settings2.attributes = {
+ ...settings2.attributes,
+ anchor: {
+ type: "string"
+ }
+ };
}
- const formatterOptions = {
- firstWeekContainsDate,
- weekStartsOn,
- locale
- };
- return parts.map((part) => {
- if (!part.isToken) return part.value;
- const token = part.value;
- if (!options?.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token) || !options?.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) {
- warnOrThrowProtectedError(token, formatStr, String(date));
+ return settings2;
+ }
+ function BlockEditAnchorControlPure({ anchor, setAttributes }) {
+ const blockEditingMode = useBlockEditingMode();
+ if (blockEditingMode !== "default") {
+ return null;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime476.jsx)(inspector_controls_default, { group: "advanced", children: /* @__PURE__ */ (0, import_jsx_runtime476.jsx)(
+ import_components229.TextControl,
+ {
+ className: "html-anchor-control",
+ label: (0, import_i18n222.__)("HTML anchor"),
+ help: /* @__PURE__ */ (0, import_jsx_runtime476.jsxs)(import_jsx_runtime476.Fragment, { children: [
+ (0, import_i18n222.__)(
+ "Enter a word or two\u2014without spaces\u2014to make a unique web address just for this block, called an \u201Canchor\u201D. Then, you\u2019ll be able to link directly to this section of your page."
+ ),
+ " ",
+ /* @__PURE__ */ (0, import_jsx_runtime476.jsx)(
+ import_components229.ExternalLink,
+ {
+ href: (0, import_i18n222.__)(
+ "https://wordpress.org/documentation/article/page-jumps/"
+ ),
+ children: (0, import_i18n222.__)("Learn more about anchors")
+ }
+ )
+ ] }),
+ value: anchor || "",
+ placeholder: null,
+ onChange: (nextValue) => {
+ nextValue = nextValue.replace(ANCHOR_REGEX, "-");
+ setAttributes({
+ anchor: nextValue !== "" ? nextValue : void 0
+ });
+ },
+ autoCapitalize: "none",
+ autoComplete: "off"
}
- const formatter = formatters[token[0]];
- return formatter(originalDate, token, locale.localize, formatterOptions);
- }).join("");
+ ) });
}
- function cleanEscapedString(input) {
- const matched = input.match(escapedStringRegExp);
- if (!matched) {
- return input;
+ var anchor_default = {
+ addSaveProps: addSaveProps6,
+ edit: BlockEditAnchorControlPure,
+ attributeKeys: ["anchor"],
+ hasSupport(name) {
+ return (0, import_blocks114.hasBlockSupport)(name, "anchor");
}
- return matched[1].replace(doubleQuoteRegExp, "'");
+ };
+ function addSaveProps6(extraProps, blockType, attributes) {
+ if ((0, import_blocks114.hasBlockSupport)(blockType, "anchor")) {
+ extraProps.id = attributes.anchor === "" ? null : attributes.anchor;
+ }
+ return extraProps;
}
+ (0, import_hooks24.addFilter)("blocks.registerBlockType", "core/anchor/attribute", addAttribute4);
- // packages/dataviews/node_modules/date-fns/subDays.js
- function subDays(date, amount, options) {
- return addDays(date, -amount, options);
+ // packages/block-editor/build-module/hooks/aria-label.mjs
+ var import_hooks25 = __toESM(require_hooks(), 1);
+ var import_blocks115 = __toESM(require_blocks(), 1);
+ function addAttribute5(settings2) {
+ if (settings2?.attributes?.ariaLabel?.type) {
+ return settings2;
+ }
+ if ((0, import_blocks115.hasBlockSupport)(settings2, "ariaLabel")) {
+ settings2.attributes = {
+ ...settings2.attributes,
+ ariaLabel: {
+ type: "string"
+ }
+ };
+ }
+ return settings2;
}
-
- // packages/dataviews/node_modules/date-fns/subMonths.js
- function subMonths(date, amount, options) {
- return addMonths(date, -amount, options);
+ function addSaveProps7(extraProps, blockType, attributes) {
+ if ((0, import_blocks115.hasBlockSupport)(blockType, "ariaLabel") && !shouldSkipSerialization(blockType, "ariaLabel", "ariaLabel")) {
+ extraProps["aria-label"] = attributes.ariaLabel === "" ? null : attributes.ariaLabel;
+ }
+ return extraProps;
}
+ var aria_label_default = {
+ addSaveProps: addSaveProps7,
+ attributeKeys: ["ariaLabel"],
+ hasSupport(name) {
+ return (0, import_blocks115.hasBlockSupport)(name, "ariaLabel");
+ }
+ };
+ (0, import_hooks25.addFilter)(
+ "blocks.registerBlockType",
+ "core/ariaLabel/attribute",
+ addAttribute5
+ );
- // packages/dataviews/node_modules/date-fns/subWeeks.js
- function subWeeks(date, amount, options) {
- return addWeeks(date, -amount, options);
+ // packages/block-editor/build-module/hooks/block-fields/index.mjs
+ var import_blocks116 = __toESM(require_blocks(), 1);
+ var import_compose113 = __toESM(require_compose(), 1);
+ var import_components264 = __toESM(require_components(), 1);
+ var import_data189 = __toESM(require_data(), 1);
+
+ // packages/dataviews/build-module/constants.mjs
+ var import_i18n223 = __toESM(require_i18n(), 1);
+ var OPERATOR_IS_ANY = "isAny";
+ var OPERATOR_IS_NONE = "isNone";
+ var OPERATOR_IS_ALL = "isAll";
+ var OPERATOR_IS_NOT_ALL = "isNotAll";
+ var OPERATOR_BETWEEN = "between";
+ var OPERATOR_IN_THE_PAST = "inThePast";
+ var OPERATOR_OVER = "over";
+ var OPERATOR_IS = "is";
+ var OPERATOR_IS_NOT = "isNot";
+ var OPERATOR_LESS_THAN = "lessThan";
+ var OPERATOR_GREATER_THAN = "greaterThan";
+ var OPERATOR_LESS_THAN_OR_EQUAL = "lessThanOrEqual";
+ var OPERATOR_GREATER_THAN_OR_EQUAL = "greaterThanOrEqual";
+ var OPERATOR_BEFORE = "before";
+ var OPERATOR_AFTER = "after";
+ var OPERATOR_BEFORE_INC = "beforeInc";
+ var OPERATOR_AFTER_INC = "afterInc";
+ var OPERATOR_CONTAINS = "contains";
+ var OPERATOR_NOT_CONTAINS = "notContains";
+ var OPERATOR_STARTS_WITH = "startsWith";
+ var OPERATOR_ON = "on";
+ var OPERATOR_NOT_ON = "notOn";
+ var sortLabels = {
+ asc: (0, import_i18n223.__)("Sort ascending"),
+ desc: (0, import_i18n223.__)("Sort descending")
+ };
+
+ // packages/dataviews/build-module/lock-unlock.mjs
+ var import_private_apis5 = __toESM(require_private_apis(), 1);
+ var { lock: lock4, unlock: unlock4 } = (0, import_private_apis5.__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/dataviews"
+ );
+
+ // packages/dataviews/build-module/hooks/use-elements.mjs
+ var import_element290 = __toESM(require_element(), 1);
+ var EMPTY_ARRAY16 = [];
+ function useElements({
+ elements,
+ getElements
+ }) {
+ const staticElements = Array.isArray(elements) && elements.length > 0 ? elements : EMPTY_ARRAY16;
+ const [records, setRecords] = (0, import_element290.useState)(staticElements);
+ const [isLoading, setIsLoading] = (0, import_element290.useState)(false);
+ (0, import_element290.useEffect)(() => {
+ if (!getElements) {
+ setRecords(staticElements);
+ return;
+ }
+ let cancelled = false;
+ setIsLoading(true);
+ getElements().then((fetchedElements) => {
+ if (!cancelled) {
+ const dynamicElements = Array.isArray(fetchedElements) && fetchedElements.length > 0 ? fetchedElements : staticElements;
+ setRecords(dynamicElements);
+ }
+ }).catch(() => {
+ if (!cancelled) {
+ setRecords(staticElements);
+ }
+ }).finally(() => {
+ if (!cancelled) {
+ setIsLoading(false);
+ }
+ });
+ return () => {
+ cancelled = true;
+ };
+ }, [getElements, staticElements]);
+ return {
+ elements: records,
+ isLoading
+ };
}
- // packages/dataviews/node_modules/date-fns/subYears.js
- function subYears(date, amount, options) {
- return addYears(date, -amount, options);
+ // packages/dataviews/build-module/utils/operators.mjs
+ var import_i18n224 = __toESM(require_i18n(), 1);
+ var import_element291 = __toESM(require_element(), 1);
+ var import_date4 = __toESM(require_date(), 1);
+
+ // packages/dataviews/build-module/field-types/utils/parse-time.mjs
+ var ZONE_DESIGNATOR = /(?:[Zz]|[+-](?:[01]\d|2[0-3]):?[0-5]\d)$/;
+ var TIME_FORMATS = ["HH:mm", "HH:mm:ss"];
+ var REFERENCE_DATE = new Date(2e3, 0, 1);
+ function parseTime(value) {
+ if (typeof value !== "string") {
+ return null;
+ }
+ const time = value.trim().replace(ZONE_DESIGNATOR, "");
+ for (const timeFormat of TIME_FORMATS) {
+ const parsed = parse3(time, timeFormat, REFERENCE_DATE);
+ if (isValid(parsed)) {
+ return parsed.getHours() * 3600 + parsed.getMinutes() * 60 + parsed.getSeconds();
+ }
+ }
+ return null;
}
// packages/dataviews/build-module/utils/operators.mjs
- var import_i18n221 = __toESM(require_i18n(), 1);
- var import_element284 = __toESM(require_element(), 1);
- var import_date3 = __toESM(require_date(), 1);
- var import_jsx_runtime470 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime477 = __toESM(require_jsx_runtime(), 1);
var filterTextWrappers = {
- Name: /* @__PURE__ */ (0, import_jsx_runtime470.jsx)("span", { className: "dataviews-filters__summary-filter-text-name" }),
- Value: /* @__PURE__ */ (0, import_jsx_runtime470.jsx)("span", { className: "dataviews-filters__summary-filter-text-value" })
+ Name: /* @__PURE__ */ (0, import_jsx_runtime477.jsx)("span", { className: "dataviews-filters__summary-filter-text-name" }),
+ Value: /* @__PURE__ */ (0, import_jsx_runtime477.jsx)("span", { className: "dataviews-filters__summary-filter-text-value" })
};
+ function toComparableTemporals(fieldValue, filterValue) {
+ const filterTime = parseTime(filterValue);
+ if (filterTime !== null) {
+ return [parseTime(fieldValue) ?? NaN, filterTime];
+ }
+ return [
+ (0, import_date4.getDate)(fieldValue).getTime(),
+ (0, import_date4.getDate)(filterValue).getTime()
+ ];
+ }
function getRelativeDate(value, unit) {
switch (unit) {
case "days":
@@ -87732,11 +93745,11 @@ var wp;
}
var isNoneOperatorDefinition = {
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Is none of"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Is none of"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is none of: Admin, Editor". */
- (0, import_i18n221.__)("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s is none of: </Name><Value>%2$s</Value>"),
filter.name,
activeElements.map((element) => element.label).join(", ")
),
@@ -87762,11 +93775,11 @@ var wp;
{
name: OPERATOR_IS_ANY,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Includes"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Includes"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is any: Admin, Editor". */
- (0, import_i18n221.__)("<Name>%1$s includes: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s includes: </Name><Value>%2$s</Value>"),
filter.name,
activeElements.map((element) => element.label).join(", ")
),
@@ -87795,11 +93808,11 @@ var wp;
{
name: OPERATOR_IS_ALL,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Includes all"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Includes all"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author includes all: Admin, Editor". */
- (0, import_i18n221.__)("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s includes all: </Name><Value>%2$s</Value>"),
filter.name,
activeElements.map((element) => element.label).join(", ")
),
@@ -87822,11 +93835,11 @@ var wp;
{
name: OPERATOR_BETWEEN,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Between (inc)"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Between (inc)"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Item count"). 2: Filter value min. 3: Filter value max. e.g.: "Item count between (inc): 10 and 180". */
- (0, import_i18n221.__)(
+ (0, import_i18n224.__)(
"<Name>%1$s between (inc): </Name><Value>%2$s and %3$s</Value>"
),
filter.name,
@@ -87836,10 +93849,18 @@ var wp;
filterTextWrappers
),
filter(item, field, filterValue) {
- if (!Array.isArray(filterValue) || filterValue.length !== 2 || filterValue[0] === void 0 || filterValue[1] === void 0) {
+ if (!Array.isArray(filterValue) || filterValue.length !== 2 || // An unfilled bound is `undefined` from the controls, `''`
+ // when it arrives from a persisted view, or `null` once
+ // `undefined` round-trips through JSON persistence.
+ filterValue.includes(void 0) || filterValue.includes("") || filterValue.includes(null)) {
return true;
}
const fieldValue = field.getValue({ item });
+ const [min3, max3] = filterValue.map(parseTime);
+ if (min3 !== null && max3 !== null) {
+ const value = parseTime(fieldValue);
+ return value !== null && value >= min3 && value <= max3;
+ }
if (typeof fieldValue === "number" || fieldValue instanceof Date || typeof fieldValue === "string") {
return fieldValue >= filterValue[0] && fieldValue <= filterValue[1];
}
@@ -87850,11 +93871,11 @@ var wp;
{
name: OPERATOR_IN_THE_PAST,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("In the past"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("In the past"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "7 days"): "Date is in the past: 7 days". */
- (0, import_i18n221.__)(
+ (0, import_i18n224.__)(
"<Name>%1$s is in the past: </Name><Value>%2$s</Value>"
),
filter.name,
@@ -87870,7 +93891,7 @@ var wp;
filterValue.value,
filterValue.unit
);
- const fieldValue = (0, import_date3.getDate)(field.getValue({ item }));
+ const fieldValue = (0, import_date4.getDate)(field.getValue({ item }));
return fieldValue >= targetDate && fieldValue <= /* @__PURE__ */ new Date();
},
selection: "custom"
@@ -87878,11 +93899,11 @@ var wp;
{
name: OPERATOR_OVER,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Over"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Over"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "7 days"): "Date is over: 7 days". */
- (0, import_i18n221.__)("<Name>%1$s is over: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s is over: </Name><Value>%2$s</Value>"),
filter.name,
`${activeElements[0].value.value} ${activeElements[0].value.unit}`
),
@@ -87896,7 +93917,7 @@ var wp;
filterValue.value,
filterValue.unit
);
- const fieldValue = (0, import_date3.getDate)(field.getValue({ item }));
+ const fieldValue = (0, import_date4.getDate)(field.getValue({ item }));
return fieldValue < targetDate;
},
selection: "custom"
@@ -87904,11 +93925,11 @@ var wp;
{
name: OPERATOR_IS,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Is"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Is"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is: Admin". */
- (0, import_i18n221.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),
filter.name,
activeElements[0].label
),
@@ -87922,11 +93943,11 @@ var wp;
{
name: OPERATOR_IS_NOT,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Is not"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Is not"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Author"). 2: Filter value (e.g. "Admin"): "Author is not: Admin". */
- (0, import_i18n221.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),
filter.name,
activeElements[0].label
),
@@ -87940,11 +93961,11 @@ var wp;
{
name: OPERATOR_LESS_THAN,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Less than"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Less than"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is less than: 10". */
- (0, import_i18n221.__)("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s is less than: </Name><Value>%2$s</Value>"),
filter.name,
activeElements[0].label
),
@@ -87962,11 +93983,11 @@ var wp;
{
name: OPERATOR_GREATER_THAN,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Greater than"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Greater than"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is greater than: 10". */
- (0, import_i18n221.__)(
+ (0, import_i18n224.__)(
"<Name>%1$s is greater than: </Name><Value>%2$s</Value>"
),
filter.name,
@@ -87986,11 +94007,11 @@ var wp;
{
name: OPERATOR_LESS_THAN_OR_EQUAL,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Less than or equal"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Less than or equal"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is less than or equal to: 10". */
- (0, import_i18n221.__)(
+ (0, import_i18n224.__)(
"<Name>%1$s is less than or equal to: </Name><Value>%2$s</Value>"
),
filter.name,
@@ -88010,11 +94031,11 @@ var wp;
{
name: OPERATOR_GREATER_THAN_OR_EQUAL,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Greater than or equal"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Greater than or equal"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Count"). 2: Filter value (e.g. "10"): "Count is greater than or equal to: 10". */
- (0, import_i18n221.__)(
+ (0, import_i18n224.__)(
"<Name>%1$s is greater than or equal to: </Name><Value>%2$s</Value>"
),
filter.name,
@@ -88034,11 +94055,11 @@ var wp;
{
name: OPERATOR_BEFORE,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Before"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Before"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is before: 2024-01-01". */
- (0, import_i18n221.__)("<Name>%1$s is before: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s is before: </Name><Value>%2$s</Value>"),
filter.name,
activeElements[0].label
),
@@ -88048,20 +94069,22 @@ var wp;
if (filterValue === void 0) {
return true;
}
- const filterDate = (0, import_date3.getDate)(filterValue);
- const fieldDate = (0, import_date3.getDate)(field.getValue({ item }));
- return fieldDate < filterDate;
+ const [fieldTemporal, filterTemporal] = toComparableTemporals(
+ field.getValue({ item }),
+ filterValue
+ );
+ return fieldTemporal < filterTemporal;
},
selection: "single"
},
{
name: OPERATOR_AFTER,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("After"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("After"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is after: 2024-01-01". */
- (0, import_i18n221.__)("<Name>%1$s is after: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s is after: </Name><Value>%2$s</Value>"),
filter.name,
activeElements[0].label
),
@@ -88071,20 +94094,22 @@ var wp;
if (filterValue === void 0) {
return true;
}
- const filterDate = (0, import_date3.getDate)(filterValue);
- const fieldDate = (0, import_date3.getDate)(field.getValue({ item }));
- return fieldDate > filterDate;
+ const [fieldTemporal, filterTemporal] = toComparableTemporals(
+ field.getValue({ item }),
+ filterValue
+ );
+ return fieldTemporal > filterTemporal;
},
selection: "single"
},
{
name: OPERATOR_BEFORE_INC,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Before (inc)"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Before (inc)"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is on or before: 2024-01-01". */
- (0, import_i18n221.__)(
+ (0, import_i18n224.__)(
"<Name>%1$s is on or before: </Name><Value>%2$s</Value>"
),
filter.name,
@@ -88096,20 +94121,22 @@ var wp;
if (filterValue === void 0) {
return true;
}
- const filterDate = (0, import_date3.getDate)(filterValue);
- const fieldDate = (0, import_date3.getDate)(field.getValue({ item }));
- return fieldDate <= filterDate;
+ const [fieldTemporal, filterTemporal] = toComparableTemporals(
+ field.getValue({ item }),
+ filterValue
+ );
+ return fieldTemporal <= filterTemporal;
},
selection: "single"
},
{
name: OPERATOR_AFTER_INC,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("After (inc)"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("After (inc)"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is on or after: 2024-01-01". */
- (0, import_i18n221.__)(
+ (0, import_i18n224.__)(
"<Name>%1$s is on or after: </Name><Value>%2$s</Value>"
),
filter.name,
@@ -88121,20 +94148,22 @@ var wp;
if (filterValue === void 0) {
return true;
}
- const filterDate = (0, import_date3.getDate)(filterValue);
- const fieldDate = (0, import_date3.getDate)(field.getValue({ item }));
- return fieldDate >= filterDate;
+ const [fieldTemporal, filterTemporal] = toComparableTemporals(
+ field.getValue({ item }),
+ filterValue
+ );
+ return fieldTemporal >= filterTemporal;
},
selection: "single"
},
{
name: OPERATOR_CONTAINS,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Contains"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Contains"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title contains: Hello". */
- (0, import_i18n221.__)("<Name>%1$s contains: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s contains: </Name><Value>%2$s</Value>"),
filter.name,
activeElements[0].label
),
@@ -88152,11 +94181,11 @@ var wp;
{
name: OPERATOR_NOT_CONTAINS,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Doesn't contain"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Doesn't contain"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title doesn't contain: Hello". */
- (0, import_i18n221.__)(
+ (0, import_i18n224.__)(
"<Name>%1$s doesn't contain: </Name><Value>%2$s</Value>"
),
filter.name,
@@ -88176,11 +94205,11 @@ var wp;
{
name: OPERATOR_STARTS_WITH,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Starts with"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Starts with"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Title"). 2: Filter value (e.g. "Hello"): "Title starts with: Hello". */
- (0, import_i18n221.__)("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s starts with: </Name><Value>%2$s</Value>"),
filter.name,
activeElements[0].label
),
@@ -88198,11 +94227,11 @@ var wp;
{
name: OPERATOR_ON,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("On"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("On"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is: 2024-01-01". */
- (0, import_i18n221.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s is: </Name><Value>%2$s</Value>"),
filter.name,
activeElements[0].label
),
@@ -88212,20 +94241,22 @@ var wp;
if (filterValue === void 0) {
return true;
}
- const filterDate = (0, import_date3.getDate)(filterValue);
- const fieldDate = (0, import_date3.getDate)(field.getValue({ item }));
- return filterDate.getTime() === fieldDate.getTime();
+ const [fieldTemporal, filterTemporal] = toComparableTemporals(
+ field.getValue({ item }),
+ filterValue
+ );
+ return fieldTemporal === filterTemporal;
},
selection: "single"
},
{
name: OPERATOR_NOT_ON,
/* translators: DataViews operator name */
- label: (0, import_i18n221.__)("Not on"),
- filterText: (filter, activeElements) => (0, import_element284.createInterpolateElement)(
- (0, import_i18n221.sprintf)(
+ label: (0, import_i18n224.__)("Not on"),
+ filterText: (filter, activeElements) => (0, import_element291.createInterpolateElement)(
+ (0, import_i18n224.sprintf)(
/* translators: 1: Filter name (e.g. "Date"). 2: Filter value (e.g. "2024-01-01"): "Date is not: 2024-01-01". */
- (0, import_i18n221.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),
+ (0, import_i18n224.__)("<Name>%1$s is not: </Name><Value>%2$s</Value>"),
filter.name,
activeElements[0].label
),
@@ -88235,9 +94266,11 @@ var wp;
if (filterValue === void 0) {
return true;
}
- const filterDate = (0, import_date3.getDate)(filterValue);
- const fieldDate = (0, import_date3.getDate)(field.getValue({ item }));
- return filterDate.getTime() !== fieldDate.getTime();
+ const [fieldTemporal, filterTemporal] = toComparableTemporals(
+ field.getValue({ item }),
+ filterValue
+ );
+ return fieldTemporal !== filterTemporal;
},
selection: "single"
}
@@ -88246,14 +94279,377 @@ var wp;
var getAllOperatorNames = () => OPERATORS.map((op) => op.name);
// packages/dataviews/build-module/components/dataform-controls/checkbox.mjs
+ var import_element297 = __toESM(require_element(), 1);
+
+ // packages/dataviews/build-module/components/validated-form-controls/control-with-error.mjs
+ var import_i18n225 = __toESM(require_i18n(), 1);
+ var import_element292 = __toESM(require_element(), 1);
+
+ // packages/dataviews/build-module/components/validated-form-controls/validity-indicator.mjs
+ var import_components231 = __toESM(require_components(), 1);
+ var import_jsx_runtime478 = __toESM(require_jsx_runtime(), 1);
+ function ValidityIndicator({
+ id,
+ type,
+ message: message2
+ }) {
+ const ICON = {
+ valid: published_default,
+ invalid: error_default
+ };
+ return /* @__PURE__ */ (0, import_jsx_runtime478.jsxs)(
+ "p",
+ {
+ id,
+ className: clsx_default(
+ "dataviews-validated-control__indicator",
+ `is-${type}`
+ ),
+ children: [
+ type === "validating" ? /* @__PURE__ */ (0, import_jsx_runtime478.jsx)(import_components231.Spinner, { className: "dataviews-validated-control__indicator-spinner" }) : /* @__PURE__ */ (0, import_jsx_runtime478.jsx)(
+ import_components231.Icon,
+ {
+ className: "dataviews-validated-control__indicator-icon",
+ icon: ICON[type],
+ size: 16,
+ fill: "currentColor"
+ }
+ ),
+ message2
+ ]
+ }
+ );
+ }
+
+ // packages/dataviews/build-module/components/validated-form-controls/control-with-error.mjs
+ var import_jsx_runtime479 = __toESM(require_jsx_runtime(), 1);
+ function appendRequiredIndicator(label, required, markWhenOptional) {
+ let suffix;
+ if (required && !markWhenOptional) {
+ suffix = `(${(0, import_i18n225.__)("Required")})`;
+ } else if (!required && markWhenOptional) {
+ suffix = `(${(0, import_i18n225.__)("Optional")})`;
+ }
+ if (!suffix) {
+ return label;
+ }
+ if (typeof label === "string") {
+ return `${label} ${suffix}`;
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime479.jsxs)(import_jsx_runtime479.Fragment, { children: [
+ label,
+ " ",
+ suffix
+ ] });
+ }
+ var VALIDITY_VISIBLE_ATTRIBUTE = "data-validity-visible";
+ var className = "dataviews-validated-control";
+ function UnforwardedControlWithError({
+ required,
+ markWhenOptional,
+ customValidity,
+ getValidityTarget,
+ children
+ }, forwardedRef) {
+ const [errorMessage, setErrorMessage] = (0, import_element292.useState)();
+ const [statusMessage, setStatusMessage] = (0, import_element292.useState)();
+ const [showMessage, setShowMessage] = (0, import_element292.useState)(false);
+ const [isTouched, setIsTouched] = (0, import_element292.useState)(false);
+ (0, import_element292.useEffect)(() => {
+ const validityTarget = getValidityTarget();
+ const handler = () => {
+ setShowMessage(true);
+ validityTarget?.setAttribute(VALIDITY_VISIBLE_ATTRIBUTE, "");
+ };
+ validityTarget?.addEventListener("invalid", handler);
+ return () => validityTarget?.removeEventListener("invalid", handler);
+ }, [getValidityTarget]);
+ (0, import_element292.useEffect)(() => {
+ const validityTarget = getValidityTarget();
+ const suppressNativePopover = (event) => {
+ event.preventDefault();
+ if (!event.isTrusted) {
+ return;
+ }
+ const target = event.target;
+ const firstErrorInForm = Array.from(
+ target.form?.elements ?? []
+ ).find((el) => !el.validity.valid);
+ if (!target.form || firstErrorInForm === target) {
+ target.focus();
+ }
+ };
+ const radioSibilings = validityTarget?.type === "radio" && validityTarget?.name ? Array.from(
+ validityTarget?.closest(`.${className}`)?.querySelectorAll(
+ `input[type="radio"][name="${validityTarget?.name}"]`
+ ) ?? []
+ ).filter((sibling) => sibling !== validityTarget) : [];
+ validityTarget?.addEventListener("invalid", suppressNativePopover);
+ radioSibilings.forEach(
+ (sibling) => sibling.addEventListener("invalid", suppressNativePopover)
+ );
+ return () => {
+ validityTarget?.removeEventListener(
+ "invalid",
+ suppressNativePopover
+ );
+ radioSibilings.forEach(
+ (sibling) => sibling.removeEventListener("invalid", suppressNativePopover)
+ );
+ };
+ }, [getValidityTarget]);
+ (0, import_element292.useEffect)(() => {
+ const validityTarget = getValidityTarget();
+ if (!customValidity?.type) {
+ validityTarget?.setCustomValidity("");
+ setErrorMessage(validityTarget?.validationMessage);
+ setStatusMessage(void 0);
+ return;
+ }
+ switch (customValidity.type) {
+ case "validating": {
+ validityTarget?.setCustomValidity("");
+ setErrorMessage(void 0);
+ setStatusMessage({
+ type: "validating",
+ message: customValidity.message
+ });
+ break;
+ }
+ case "valid": {
+ validityTarget?.setCustomValidity("");
+ setErrorMessage(validityTarget?.validationMessage);
+ setStatusMessage({
+ type: "valid",
+ message: customValidity.message
+ });
+ break;
+ }
+ case "invalid": {
+ validityTarget?.setCustomValidity(
+ customValidity.message ?? ""
+ );
+ setErrorMessage(validityTarget?.validationMessage);
+ setStatusMessage(void 0);
+ break;
+ }
+ }
+ }, [customValidity, getValidityTarget]);
+ (0, import_element292.useEffect)(() => {
+ if (!isTouched || showMessage) {
+ return;
+ }
+ if (customValidity?.type === "validating") {
+ const timer = setTimeout(() => {
+ setShowMessage(true);
+ }, 1e3);
+ return () => clearTimeout(timer);
+ }
+ setShowMessage(true);
+ }, [isTouched, customValidity?.type, showMessage]);
+ const onBlur = (event) => {
+ if (isTouched) {
+ return;
+ }
+ if (!event.relatedTarget || !event.currentTarget.contains(event.relatedTarget)) {
+ setIsTouched(true);
+ getValidityTarget()?.setAttribute(VALIDITY_VISIBLE_ATTRIBUTE, "");
+ }
+ };
+ const messageId = (0, import_element292.useId)();
+ const message2 = (() => {
+ if (errorMessage) {
+ return /* @__PURE__ */ (0, import_jsx_runtime479.jsx)(
+ ValidityIndicator,
+ {
+ id: messageId,
+ type: "invalid",
+ message: errorMessage
+ }
+ );
+ }
+ if (statusMessage?.type) {
+ return /* @__PURE__ */ (0, import_jsx_runtime479.jsx)(
+ ValidityIndicator,
+ {
+ id: messageId,
+ type: statusMessage.type,
+ message: statusMessage.message
+ }
+ );
+ }
+ return null;
+ })();
+ const visibleMessage = showMessage ? message2 : null;
+ (0, import_element292.useEffect)(() => {
+ const target = getValidityTarget();
+ if (!target) {
+ return;
+ }
+ function setDescribedBy(el, shouldAdd) {
+ const ids = (el.getAttribute("aria-describedby") ?? "").split(" ").filter((id) => id && id !== messageId);
+ if (shouldAdd) {
+ ids.push(messageId);
+ }
+ if (ids.length) {
+ el.setAttribute("aria-describedby", ids.join(" "));
+ } else {
+ el.removeAttribute("aria-describedby");
+ }
+ }
+ setDescribedBy(target, !!visibleMessage);
+ return () => setDescribedBy(target, false);
+ }, [visibleMessage, messageId, getValidityTarget]);
+ return /* @__PURE__ */ (0, import_jsx_runtime479.jsxs)("div", { className, ref: forwardedRef, onBlur, children: [
+ (0, import_element292.cloneElement)(children, {
+ label: appendRequiredIndicator(
+ children.props.label,
+ required,
+ markWhenOptional
+ ),
+ required
+ }),
+ visibleMessage
+ ] });
+ }
+ var ControlWithError = (0, import_element292.forwardRef)(UnforwardedControlWithError);
+ ControlWithError.displayName = "ControlWithError";
+
+ // packages/dataviews/build-module/components/validated-form-controls/checkbox-control.mjs
+ var import_element293 = __toESM(require_element(), 1);
+ var import_compose102 = __toESM(require_compose(), 1);
+ var import_components232 = __toESM(require_components(), 1);
+ var import_jsx_runtime480 = __toESM(require_jsx_runtime(), 1);
+ var UnforwardedValidatedCheckboxControl = ({
+ required,
+ customValidity,
+ markWhenOptional,
+ ...restProps
+ }, forwardedRef) => {
+ const validityTargetRef = (0, import_element293.useRef)(null);
+ const mergedRefs = (0, import_compose102.useMergeRefs)([forwardedRef, validityTargetRef]);
+ return /* @__PURE__ */ (0, import_jsx_runtime480.jsx)(
+ ControlWithError,
+ {
+ required,
+ markWhenOptional,
+ ref: mergedRefs,
+ customValidity,
+ getValidityTarget: () => validityTargetRef.current?.querySelector(
+ 'input[type="checkbox"]'
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime480.jsx)(
+ import_components232.CheckboxControl,
+ {
+ ...restProps
+ }
+ )
+ }
+ );
+ };
+ var ValidatedCheckboxControl = (0, import_element293.forwardRef)(UnforwardedValidatedCheckboxControl);
+ ValidatedCheckboxControl.displayName = "ValidatedCheckboxControl";
+
+ // packages/dataviews/build-module/components/validated-form-controls/number-control.mjs
+ var import_element294 = __toESM(require_element(), 1);
+ var import_compose103 = __toESM(require_compose(), 1);
+ var import_components233 = __toESM(require_components(), 1);
+ var import_jsx_runtime481 = __toESM(require_jsx_runtime(), 1);
+ var UnforwardedValidatedNumberControl = ({
+ required,
+ customValidity,
+ markWhenOptional,
+ ...restProps
+ }, forwardedRef) => {
+ const validityTargetRef = (0, import_element294.useRef)(null);
+ const mergedRefs = (0, import_compose103.useMergeRefs)([forwardedRef, validityTargetRef]);
+ return /* @__PURE__ */ (0, import_jsx_runtime481.jsx)(
+ ControlWithError,
+ {
+ required,
+ markWhenOptional,
+ customValidity,
+ getValidityTarget: () => validityTargetRef.current,
+ children: /* @__PURE__ */ (0, import_jsx_runtime481.jsx)(import_components233.__experimentalNumberControl, { ref: mergedRefs, ...restProps })
+ }
+ );
+ };
+ var ValidatedNumberControl = (0, import_element294.forwardRef)(UnforwardedValidatedNumberControl);
+ ValidatedNumberControl.displayName = "ValidatedNumberControl";
+
+ // packages/dataviews/build-module/components/validated-form-controls/radio-control.mjs
+ var import_element295 = __toESM(require_element(), 1);
+ var import_compose104 = __toESM(require_compose(), 1);
+ var import_components234 = __toESM(require_components(), 1);
+ var import_jsx_runtime482 = __toESM(require_jsx_runtime(), 1);
+ var UnforwardedValidatedRadioControl = ({
+ required,
+ customValidity,
+ markWhenOptional,
+ ...restProps
+ }, forwardedRef) => {
+ const validityTargetRef = (0, import_element295.useRef)(null);
+ const mergedRefs = (0, import_compose104.useMergeRefs)([forwardedRef, validityTargetRef]);
+ return /* @__PURE__ */ (0, import_jsx_runtime482.jsx)(
+ ControlWithError,
+ {
+ required,
+ markWhenOptional,
+ ref: mergedRefs,
+ customValidity,
+ getValidityTarget: () => validityTargetRef.current?.querySelector(
+ 'input[type="radio"]'
+ ),
+ children: /* @__PURE__ */ (0, import_jsx_runtime482.jsx)(import_components234.RadioControl, { ...restProps })
+ }
+ );
+ };
+ var ValidatedRadioControl = (0, import_element295.forwardRef)(UnforwardedValidatedRadioControl);
+ ValidatedRadioControl.displayName = "ValidatedRadioControl";
+
+ // packages/dataviews/build-module/components/validated-form-controls/select-control.mjs
+ var import_element296 = __toESM(require_element(), 1);
+ var import_compose105 = __toESM(require_compose(), 1);
var import_components235 = __toESM(require_components(), 1);
- var import_element285 = __toESM(require_element(), 1);
+ var import_jsx_runtime483 = __toESM(require_jsx_runtime(), 1);
+ var UnforwardedValidatedSelectControl = ({
+ required,
+ customValidity,
+ markWhenOptional,
+ ...restProps
+ }, forwardedRef) => {
+ const validityTargetRef = (0, import_element296.useRef)(null);
+ const mergedRefs = (0, import_compose105.useMergeRefs)([forwardedRef, validityTargetRef]);
+ return /* @__PURE__ */ (0, import_jsx_runtime483.jsx)(
+ ControlWithError,
+ {
+ required,
+ markWhenOptional,
+ customValidity,
+ getValidityTarget: () => validityTargetRef.current,
+ children: /* @__PURE__ */ (0, import_jsx_runtime483.jsx)(
+ import_components235.SelectControl,
+ {
+ ref: mergedRefs,
+ // A runtime boolean cannot statically discriminate
+ // SelectControl's single/multiple props union.
+ ...restProps
+ }
+ )
+ }
+ );
+ };
+ var ValidatedSelectControl = (0, import_element296.forwardRef)(UnforwardedValidatedSelectControl);
+ ValidatedSelectControl.displayName = "ValidatedSelectControl";
// packages/dataviews/build-module/components/dataform-controls/utils/get-custom-validity.mjs
function getCustomValidity(isValid2, validity) {
let customValidity;
if (isValid2?.required && validity?.required) {
- customValidity = validity?.required?.message ? validity.required : void 0;
+ customValidity = validity.required.message ? {
+ type: validity.required.type,
+ message: validity.required.message
+ } : void 0;
} else if (isValid2?.pattern && validity?.pattern) {
customValidity = validity.pattern;
} else if (isValid2?.min && validity?.min) {
@@ -88273,8 +94669,7 @@ var wp;
}
// packages/dataviews/build-module/components/dataform-controls/checkbox.mjs
- var import_jsx_runtime471 = __toESM(require_jsx_runtime(), 1);
- var { ValidatedCheckboxControl } = unlock4(import_components235.privateApis);
+ var import_jsx_runtime484 = __toESM(require_jsx_runtime(), 1);
function Checkbox({
field,
onChange,
@@ -88285,12 +94680,12 @@ var wp;
}) {
const { getValue, setValue, label, description, isValid: isValid2 } = field;
const disabled2 = field.isDisabled({ item: data, field });
- const onChangeControl = (0, import_element285.useCallback)(() => {
+ const onChangeControl = (0, import_element297.useCallback)(() => {
onChange(
setValue({ item: data, value: !getValue({ item: data }) })
);
}, [data, getValue, onChange, setValue]);
- return /* @__PURE__ */ (0, import_jsx_runtime471.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime484.jsx)(
ValidatedCheckboxControl,
{
required: !!field.isValid?.required,
@@ -88308,8 +94703,8 @@ var wp;
// packages/dataviews/build-module/components/dataform-controls/combobox.mjs
var import_components236 = __toESM(require_components(), 1);
- var import_element286 = __toESM(require_element(), 1);
- var import_jsx_runtime472 = __toESM(require_jsx_runtime(), 1);
+ var import_element298 = __toESM(require_element(), 1);
+ var import_jsx_runtime485 = __toESM(require_jsx_runtime(), 1);
var { ValidatedComboboxControl } = unlock4(import_components236.privateApis);
function Combobox({
data,
@@ -88320,7 +94715,7 @@ var wp;
}) {
const { label, description, placeholder, getValue, setValue, isValid: isValid2 } = field;
const value = getValue({ item: data }) ?? "";
- const onChangeControl = (0, import_element286.useCallback)(
+ const onChangeControl = (0, import_element298.useCallback)(
(newValue) => onChange(setValue({ item: data, value: newValue ?? "" })),
[data, onChange, setValue]
);
@@ -88329,9 +94724,9 @@ var wp;
getElements: field.getElements
});
if (isLoading) {
- return /* @__PURE__ */ (0, import_jsx_runtime472.jsx)(import_components236.Spinner, {});
+ return /* @__PURE__ */ (0, import_jsx_runtime485.jsx)(import_components236.Spinner, {});
}
- return /* @__PURE__ */ (0, import_jsx_runtime472.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime485.jsx)(
ValidatedComboboxControl,
{
required: !!field.isValid?.required,
@@ -88351,31 +94746,31 @@ var wp;
// packages/dataviews/build-module/components/dataform-controls/datetime.mjs
var import_components238 = __toESM(require_components(), 1);
- var import_element289 = __toESM(require_element(), 1);
- var import_i18n223 = __toESM(require_i18n(), 1);
- var import_date5 = __toESM(require_date(), 1);
+ var import_element301 = __toESM(require_element(), 1);
+ var import_i18n227 = __toESM(require_i18n(), 1);
+ var import_date6 = __toESM(require_date(), 1);
// packages/dataviews/build-module/components/dataform-controls/utils/relative-date-control.mjs
var import_components237 = __toESM(require_components(), 1);
- var import_element287 = __toESM(require_element(), 1);
- var import_i18n222 = __toESM(require_i18n(), 1);
- var import_jsx_runtime473 = __toESM(require_jsx_runtime(), 1);
+ var import_element299 = __toESM(require_element(), 1);
+ var import_i18n226 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime486 = __toESM(require_jsx_runtime(), 1);
var TIME_UNITS_OPTIONS = {
[OPERATOR_IN_THE_PAST]: [
- { value: "days", label: (0, import_i18n222.__)("Days") },
- { value: "weeks", label: (0, import_i18n222.__)("Weeks") },
- { value: "months", label: (0, import_i18n222.__)("Months") },
- { value: "years", label: (0, import_i18n222.__)("Years") }
+ { value: "days", label: (0, import_i18n226.__)("Days") },
+ { value: "weeks", label: (0, import_i18n226.__)("Weeks") },
+ { value: "months", label: (0, import_i18n226.__)("Months") },
+ { value: "years", label: (0, import_i18n226.__)("Years") }
],
[OPERATOR_OVER]: [
- { value: "days", label: (0, import_i18n222.__)("Days ago") },
- { value: "weeks", label: (0, import_i18n222.__)("Weeks ago") },
- { value: "months", label: (0, import_i18n222.__)("Months ago") },
- { value: "years", label: (0, import_i18n222.__)("Years ago") }
+ { value: "days", label: (0, import_i18n226.__)("Days ago") },
+ { value: "weeks", label: (0, import_i18n226.__)("Weeks ago") },
+ { value: "months", label: (0, import_i18n226.__)("Months ago") },
+ { value: "years", label: (0, import_i18n226.__)("Years ago") }
]
};
function RelativeDateControl({
- className,
+ className: className2,
data,
field,
onChange,
@@ -88387,7 +94782,7 @@ var wp;
const disabled2 = field.isDisabled({ item: data, field });
const fieldValue = getValue({ item: data });
const { value: relValue = "", unit = options[0].value } = fieldValue && typeof fieldValue === "object" ? fieldValue : {};
- const onChangeValue = (0, import_element287.useCallback)(
+ const onChangeValue = (0, import_element299.useCallback)(
(newValue) => onChange(
setValue({
item: data,
@@ -88396,7 +94791,7 @@ var wp;
),
[onChange, setValue, data, unit]
);
- const onChangeUnit = (0, import_element287.useCallback)(
+ const onChangeUnit = (0, import_element299.useCallback)(
(newUnit) => onChange(
setValue({
item: data,
@@ -88405,16 +94800,16 @@ var wp;
),
[onChange, setValue, data, relValue]
);
- return /* @__PURE__ */ (0, import_jsx_runtime473.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime486.jsx)(
import_components237.BaseControl,
{
id,
- className: clsx_default(className, "dataviews-controls__relative-date"),
+ className: clsx_default(className2, "dataviews-controls__relative-date"),
label,
hideLabelFromVision,
help: description,
- children: /* @__PURE__ */ (0, import_jsx_runtime473.jsxs)(Stack, { direction: "row", gap: "sm", children: [
- /* @__PURE__ */ (0, import_jsx_runtime473.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime486.jsxs)(Stack, { direction: "row", gap: "sm", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime486.jsx)(
import_components237.__experimentalNumberControl,
{
className: "dataviews-controls__relative-date-number",
@@ -88426,11 +94821,11 @@ var wp;
disabled: disabled2
}
),
- /* @__PURE__ */ (0, import_jsx_runtime473.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime486.jsx)(
import_components237.SelectControl,
{
className: "dataviews-controls__relative-date-unit",
- label: (0, import_i18n222.__)("Unit"),
+ label: (0, import_i18n226.__)("Unit"),
value: unit,
options,
onChange: onChangeUnit,
@@ -88444,11 +94839,11 @@ var wp;
}
// packages/dataviews/build-module/components/dataform-controls/utils/use-disabled-date-matchers.mjs
- var import_element288 = __toESM(require_element(), 1);
+ var import_element300 = __toESM(require_element(), 1);
function useDisabledDateMatchers(isValid2, parseDateFn) {
const minConstraint = typeof isValid2.min?.constraint === "string" ? isValid2.min.constraint : void 0;
const maxConstraint = typeof isValid2.max?.constraint === "string" ? isValid2.max.constraint : void 0;
- const disabledMatchers = (0, import_element288.useMemo)(() => {
+ const disabledMatchers = (0, import_element300.useMemo)(() => {
const matchers = [];
if (minConstraint) {
const minDate = parseDateFn(minConstraint);
@@ -88468,23 +94863,23 @@ var wp;
}
// packages/dataviews/build-module/field-types/utils/parse-date-time.mjs
- var import_date4 = __toESM(require_date(), 1);
+ var import_date5 = __toESM(require_date(), 1);
function parseDateTime(dateTimeString) {
if (!dateTimeString) {
return null;
}
- const parsed = (0, import_date4.getDate)(dateTimeString);
+ const parsed = (0, import_date5.getDate)(dateTimeString);
return parsed && isValid(parsed) ? parsed : null;
}
// packages/dataviews/build-module/components/dataform-controls/datetime.mjs
- var import_jsx_runtime474 = __toESM(require_jsx_runtime(), 1);
- var { DateCalendar, ValidatedInputControl: ValidatedInputControl2 } = unlock4(import_components238.privateApis);
+ var import_jsx_runtime487 = __toESM(require_jsx_runtime(), 1);
+ var { ValidatedInputControl: ValidatedInputControl2 } = unlock4(import_components238.privateApis);
var formatDateTime = (value) => {
if (!value) {
return "";
}
- return (0, import_date5.dateI18n)("Y-m-d\\TH:i", (0, import_date5.getDate)(value));
+ return (0, import_date6.dateI18n)("Y-m-d\\TH:i", (0, import_date6.getDate)(value));
};
function CalendarDateTimeControl({
data,
@@ -88500,37 +94895,37 @@ var wp;
const disabled2 = field.isDisabled({ item: data, field });
const fieldValue = getValue({ item: data });
const value = typeof fieldValue === "string" ? fieldValue : void 0;
- const [calendarMonth, setCalendarMonth] = (0, import_element289.useState)(() => {
+ const [calendarMonth, setCalendarMonth] = (0, import_element301.useState)(() => {
const parsedDate = parseDateTime(value);
return parsedDate || /* @__PURE__ */ new Date();
});
- const inputControlRef = (0, import_element289.useRef)(null);
- const validationTimeoutRef = (0, import_element289.useRef)(void 0);
- const previousFocusRef = (0, import_element289.useRef)(null);
+ const inputControlRef = (0, import_element301.useRef)(null);
+ const validationTimeoutRef = (0, import_element301.useRef)(void 0);
+ const previousFocusRef = (0, import_element301.useRef)(null);
const { minConstraint, maxConstraint, disabledMatchers } = useDisabledDateMatchers(isValid2, parseDateTime);
- const onChangeCallback = (0, import_element289.useCallback)(
+ const onChangeCallback = (0, import_element301.useCallback)(
(newValue) => onChange(setValue({ item: data, value: newValue })),
[data, onChange, setValue]
);
- (0, import_element289.useEffect)(() => {
+ (0, import_element301.useEffect)(() => {
return () => {
if (validationTimeoutRef.current) {
clearTimeout(validationTimeoutRef.current);
}
};
}, []);
- const onSelectDate = (0, import_element289.useCallback)(
+ const onSelectDate = (0, import_element301.useCallback)(
(newDate) => {
let dateTimeValue;
if (newDate) {
- const wpDate = (0, import_date5.dateI18n)("Y-m-d", newDate);
+ const wpDate = (0, import_date6.dateI18n)("Y-m-d", newDate);
let wpTime;
if (value) {
- wpTime = (0, import_date5.dateI18n)("H:i", (0, import_date5.getDate)(value));
+ wpTime = (0, import_date6.dateI18n)("H:i", (0, import_date6.getDate)(value));
} else {
- wpTime = (0, import_date5.dateI18n)("H:i", newDate);
+ wpTime = (0, import_date6.dateI18n)("H:i", newDate);
}
- const finalDateTime = (0, import_date5.getDate)(`${wpDate}T${wpTime}`);
+ const finalDateTime = (0, import_date6.getDate)(`${wpDate}T${wpTime}`);
dateTimeValue = finalDateTime.toISOString();
onChangeCallback(dateTimeValue);
if (validationTimeoutRef.current) {
@@ -88553,10 +94948,10 @@ var wp;
},
[onChangeCallback, value]
);
- const handleManualDateTimeChange = (0, import_element289.useCallback)(
+ const handleManualDateTimeChange = (0, import_element301.useCallback)(
(newValue) => {
if (newValue) {
- const dateTime = (0, import_date5.getDate)(newValue);
+ const dateTime = (0, import_date6.getDate)(newValue);
onChangeCallback(dateTime.toISOString());
const parsedDate = parseDateTime(dateTime.toISOString());
if (parsedDate) {
@@ -88569,32 +94964,32 @@ var wp;
[onChangeCallback]
);
const { format: fieldFormat } = field;
- const weekStartsOn = fieldFormat.weekStartsOn ?? (0, import_date5.getSettings)().l10n.startOfWeek;
+ const weekStartsOn = fieldFormat.weekStartsOn ?? (0, import_date6.getSettings)().l10n.startOfWeek;
const {
timezone: { string: timezoneString }
- } = (0, import_date5.getSettings)();
+ } = (0, import_date6.getSettings)();
let displayLabel = label;
if (isValid2?.required && !markWhenOptional && !hideLabelFromVision) {
- displayLabel = `${label} (${(0, import_i18n223.__)("Required")})`;
+ displayLabel = `${label} (${(0, import_i18n227.__)("Required")})`;
} else if (!isValid2?.required && markWhenOptional && !hideLabelFromVision) {
- displayLabel = `${label} (${(0, import_i18n223.__)("Optional")})`;
+ displayLabel = `${label} (${(0, import_i18n227.__)("Optional")})`;
}
- return /* @__PURE__ */ (0, import_jsx_runtime474.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime487.jsx)(
import_components238.BaseControl,
{
id,
label: displayLabel,
help: description,
hideLabelFromVision,
- children: /* @__PURE__ */ (0, import_jsx_runtime474.jsxs)(Stack, { direction: "column", gap: "lg", children: [
- /* @__PURE__ */ (0, import_jsx_runtime474.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime487.jsxs)(Stack, { direction: "column", gap: "lg", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime487.jsx)(
ValidatedInputControl2,
{
ref: inputControlRef,
required: !!isValid2?.required,
customValidity: getCustomValidity(isValid2, validity),
type: "datetime-local",
- label: (0, import_i18n223.__)("Date time"),
+ label: (0, import_i18n227.__)("Date time"),
hideLabelFromVision: true,
value: formatDateTime(value),
onChange: handleManualDateTimeChange,
@@ -88603,12 +94998,12 @@ var wp;
max: maxConstraint ? formatDateTime(maxConstraint) : void 0
}
),
- !compact && /* @__PURE__ */ (0, import_jsx_runtime474.jsx)(
- DateCalendar,
+ !compact && /* @__PURE__ */ (0, import_jsx_runtime487.jsx)(
+ Calendar,
{
style: { width: "100%" },
- selected: value ? parseDateTime(value) || void 0 : void 0,
- onSelect: onSelectDate,
+ value: value ? parseDateTime(value) : null,
+ onValueChange: onSelectDate,
month: calendarMonth,
onMonthChange: setCalendarMonth,
timeZone: timezoneString || void 0,
@@ -88631,7 +95026,7 @@ var wp;
config: config2
}) {
if (operator === OPERATOR_IN_THE_PAST || operator === OPERATOR_OVER) {
- return /* @__PURE__ */ (0, import_jsx_runtime474.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime487.jsx)(
RelativeDateControl,
{
className: "dataviews-controls__datetime",
@@ -88643,7 +95038,7 @@ var wp;
}
);
}
- return /* @__PURE__ */ (0, import_jsx_runtime474.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime487.jsx)(
CalendarDateTimeControl,
{
data,
@@ -88659,39 +95054,38 @@ var wp;
// packages/dataviews/build-module/components/dataform-controls/date.mjs
var import_components239 = __toESM(require_components(), 1);
- var import_a11y23 = __toESM(require_a11y(), 1);
- var import_element290 = __toESM(require_element(), 1);
- var import_i18n224 = __toESM(require_i18n(), 1);
- var import_date6 = __toESM(require_date(), 1);
- var import_jsx_runtime475 = __toESM(require_jsx_runtime(), 1);
- var { DateCalendar: DateCalendar2, DateRangeCalendar } = unlock4(import_components239.privateApis);
+ var import_a11y24 = __toESM(require_a11y(), 1);
+ var import_element302 = __toESM(require_element(), 1);
+ var import_i18n228 = __toESM(require_i18n(), 1);
+ var import_date7 = __toESM(require_date(), 1);
+ var import_jsx_runtime488 = __toESM(require_jsx_runtime(), 1);
var DATE_PRESETS = [
{
id: "today",
- label: (0, import_i18n224.__)("Today"),
- getValue: () => (0, import_date6.getDate)(null)
+ label: (0, import_i18n228.__)("Today"),
+ getValue: () => (0, import_date7.getDate)(null)
},
{
id: "yesterday",
- label: (0, import_i18n224.__)("Yesterday"),
+ label: (0, import_i18n228.__)("Yesterday"),
getValue: () => {
- const today = (0, import_date6.getDate)(null);
+ const today = (0, import_date7.getDate)(null);
return subDays(today, 1);
}
},
{
id: "past-week",
- label: (0, import_i18n224.__)("Past week"),
+ label: (0, import_i18n228.__)("Past week"),
getValue: () => {
- const today = (0, import_date6.getDate)(null);
+ const today = (0, import_date7.getDate)(null);
return subDays(today, 7);
}
},
{
id: "past-month",
- label: (0, import_i18n224.__)("Past month"),
+ label: (0, import_i18n228.__)("Past month"),
getValue: () => {
- const today = (0, import_date6.getDate)(null);
+ const today = (0, import_date7.getDate)(null);
return subMonths(today, 1);
}
}
@@ -88699,41 +95093,41 @@ var wp;
var DATE_RANGE_PRESETS = [
{
id: "last-7-days",
- label: (0, import_i18n224.__)("Last 7 days"),
+ label: (0, import_i18n228.__)("Last 7 days"),
getValue: () => {
- const today = (0, import_date6.getDate)(null);
+ const today = (0, import_date7.getDate)(null);
return [subDays(today, 7), today];
}
},
{
id: "last-30-days",
- label: (0, import_i18n224.__)("Last 30 days"),
+ label: (0, import_i18n228.__)("Last 30 days"),
getValue: () => {
- const today = (0, import_date6.getDate)(null);
+ const today = (0, import_date7.getDate)(null);
return [subDays(today, 30), today];
}
},
{
id: "month-to-date",
- label: (0, import_i18n224.__)("Month to date"),
+ label: (0, import_i18n228.__)("Month to date"),
getValue: () => {
- const today = (0, import_date6.getDate)(null);
+ const today = (0, import_date7.getDate)(null);
return [startOfMonth(today), today];
}
},
{
id: "last-year",
- label: (0, import_i18n224.__)("Last year"),
+ label: (0, import_i18n228.__)("Last year"),
getValue: () => {
- const today = (0, import_date6.getDate)(null);
+ const today = (0, import_date7.getDate)(null);
return [subYears(today, 1), today];
}
},
{
id: "year-to-date",
- label: (0, import_i18n224.__)("Year to date"),
+ label: (0, import_i18n228.__)("Year to date"),
getValue: () => {
- const today = (0, import_date6.getDate)(null);
+ const today = (0, import_date7.getDate)(null);
return [startOfYear(today), today];
}
}
@@ -88742,7 +95136,7 @@ var wp;
if (!dateString) {
return null;
}
- const parsed = (0, import_date6.getDate)(dateString);
+ const parsed = (0, import_date7.getDate)(dateString);
return parsed && isValid(parsed) ? parsed : null;
};
var formatDate = (date) => {
@@ -88760,8 +95154,8 @@ var wp;
children
}) {
const { isValid: isValid2 } = field;
- const [customValidity, setCustomValidity] = (0, import_element290.useState)(void 0);
- const validateRefs = (0, import_element290.useCallback)(() => {
+ const [customValidity, setCustomValidity] = (0, import_element302.useState)(void 0);
+ const validateRefs = (0, import_element302.useCallback)(() => {
const refs = Array.isArray(inputRefs) ? inputRefs : [inputRefs];
for (const ref of refs) {
const input = ref.current;
@@ -88775,7 +95169,7 @@ var wp;
}
setCustomValidity(void 0);
}, [inputRefs]);
- (0, import_element290.useEffect)(() => {
+ (0, import_element302.useEffect)(() => {
const refs = Array.isArray(inputRefs) ? inputRefs : [inputRefs];
const result = validity ? getCustomValidity(isValid2, validity) : void 0;
for (const ref of refs) {
@@ -88787,7 +95181,7 @@ var wp;
}
}
}, [inputRefs, isValid2, validity]);
- (0, import_element290.useEffect)(() => {
+ (0, import_element302.useEffect)(() => {
const refs = Array.isArray(inputRefs) ? inputRefs : [inputRefs];
const handleInvalid = (event) => {
event.preventDefault();
@@ -88802,7 +95196,7 @@ var wp;
}
};
}, [inputRefs, setIsTouched]);
- (0, import_element290.useEffect)(() => {
+ (0, import_element302.useEffect)(() => {
if (!isTouched) {
return;
}
@@ -88813,9 +95207,9 @@ var wp;
validateRefs();
}
}, [isTouched, isValid2, validity, validateRefs]);
- (0, import_element290.useEffect)(() => {
+ (0, import_element302.useEffect)(() => {
if (isTouched && customValidity?.message) {
- (0, import_a11y23.speak)(customValidity.message);
+ (0, import_a11y24.speak)(customValidity.message);
}
}, [isTouched, customValidity?.message]);
const onBlur = (event) => {
@@ -88826,9 +95220,9 @@ var wp;
setIsTouched(true);
}
};
- return /* @__PURE__ */ (0, import_jsx_runtime475.jsxs)("div", { onBlur, children: [
+ return /* @__PURE__ */ (0, import_jsx_runtime488.jsxs)("div", { onBlur, children: [
children,
- customValidity && /* @__PURE__ */ (0, import_jsx_runtime475.jsxs)(
+ customValidity && /* @__PURE__ */ (0, import_jsx_runtime488.jsxs)(
"p",
{
className: clsx_default(
@@ -88836,7 +95230,7 @@ var wp;
customValidity.type === "invalid" ? "is-invalid" : void 0
),
children: [
- /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
import_components239.Icon,
{
className: "components-validated-control__indicator-icon",
@@ -88869,24 +95263,24 @@ var wp;
format: fieldFormat
} = field;
const disabled2 = field.isDisabled({ item: data, field });
- const [selectedPresetId, setSelectedPresetId] = (0, import_element290.useState)(
+ const [selectedPresetId, setSelectedPresetId] = (0, import_element302.useState)(
null
);
- const weekStartsOn = fieldFormat.weekStartsOn ?? (0, import_date6.getSettings)().l10n.startOfWeek;
+ const weekStartsOn = fieldFormat.weekStartsOn ?? (0, import_date7.getSettings)().l10n.startOfWeek;
const fieldValue = getValue({ item: data });
const value = typeof fieldValue === "string" ? fieldValue : void 0;
- const [calendarMonth, setCalendarMonth] = (0, import_element290.useState)(() => {
+ const [calendarMonth, setCalendarMonth] = (0, import_element302.useState)(() => {
const parsedDate = parseDate(value);
return parsedDate || /* @__PURE__ */ new Date();
});
- const [isTouched, setIsTouched] = (0, import_element290.useState)(false);
- const validityTargetRef = (0, import_element290.useRef)(null);
+ const [isTouched, setIsTouched] = (0, import_element302.useState)(false);
+ const validityTargetRef = (0, import_element302.useRef)(null);
const { minConstraint, maxConstraint, disabledMatchers } = useDisabledDateMatchers(isValid2, parseDate);
- const onChangeCallback = (0, import_element290.useCallback)(
+ const onChangeCallback = (0, import_element302.useCallback)(
(newValue) => onChange(setValue({ item: data, value: newValue })),
[data, onChange, setValue]
);
- const onSelectDate = (0, import_element290.useCallback)(
+ const onSelectDate = (0, import_element302.useCallback)(
(newDate) => {
const dateValue = newDate ? format(newDate, "yyyy-MM-dd") : void 0;
onChangeCallback(dateValue);
@@ -88895,7 +95289,7 @@ var wp;
},
[onChangeCallback]
);
- const handlePresetClick = (0, import_element290.useCallback)(
+ const handlePresetClick = (0, import_element302.useCallback)(
(preset) => {
const presetDate = preset.getValue();
const dateValue = formatDate(presetDate);
@@ -88906,7 +95300,7 @@ var wp;
},
[onChangeCallback]
);
- const handleManualDateChange = (0, import_element290.useCallback)(
+ const handleManualDateChange = (0, import_element302.useCallback)(
(newValue) => {
onChangeCallback(newValue);
if (newValue) {
@@ -88922,14 +95316,14 @@ var wp;
);
const {
timezone: { string: timezoneString }
- } = (0, import_date6.getSettings)();
+ } = (0, import_date7.getSettings)();
let displayLabel = label;
if (isValid2?.required && !markWhenOptional) {
- displayLabel = `${label} (${(0, import_i18n224.__)("Required")})`;
+ displayLabel = `${label} (${(0, import_i18n228.__)("Required")})`;
} else if (!isValid2?.required && markWhenOptional) {
- displayLabel = `${label} (${(0, import_i18n224.__)("Optional")})`;
+ displayLabel = `${label} (${(0, import_i18n228.__)("Optional")})`;
}
- return /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
ValidatedDateControl,
{
field,
@@ -88937,7 +95331,7 @@ var wp;
inputRefs: validityTargetRef,
isTouched,
setIsTouched,
- children: /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
import_components239.BaseControl,
{
id,
@@ -88945,8 +95339,8 @@ var wp;
label: displayLabel,
help: description,
hideLabelFromVision,
- children: /* @__PURE__ */ (0, import_jsx_runtime475.jsxs)(Stack, { direction: "column", gap: "lg", children: [
- /* @__PURE__ */ (0, import_jsx_runtime475.jsxs)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime488.jsxs)(Stack, { direction: "column", gap: "lg", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsxs)(
Stack,
{
direction: "row",
@@ -88956,7 +95350,7 @@ var wp;
children: [
DATE_PRESETS.map((preset) => {
const isSelected = selectedPresetId === preset.id;
- return /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
import_components239.Button,
{
className: "dataviews-controls__date-preset",
@@ -88971,7 +95365,7 @@ var wp;
preset.id
);
}),
- /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
import_components239.Button,
{
className: "dataviews-controls__date-preset",
@@ -88980,18 +95374,18 @@ var wp;
size: "small",
disabled: !!selectedPresetId || disabled2,
accessibleWhenDisabled: true,
- children: (0, import_i18n224.__)("Custom")
+ children: (0, import_i18n228.__)("Custom")
}
)
]
}
),
- /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
import_components239.__experimentalInputControl,
{
ref: validityTargetRef,
type: "date",
- label: (0, import_i18n224.__)("Date"),
+ label: (0, import_i18n228.__)("Date"),
hideLabelFromVision: true,
value,
onChange: handleManualDateChange,
@@ -89001,12 +95395,12 @@ var wp;
max: maxConstraint
}
),
- /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
- DateCalendar2,
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
+ Calendar,
{
style: { width: "100%" },
- selected: value ? parseDate(value) || void 0 : void 0,
- onSelect: onSelectDate,
+ value: value ? parseDate(value) : null,
+ onValueChange: onSelectDate,
month: calendarMonth,
onMonthChange: setCalendarMonth,
timeZone: timezoneString || void 0,
@@ -89044,9 +95438,9 @@ var wp;
if (Array.isArray(fieldValue) && fieldValue.length === 2 && fieldValue.every((date) => typeof date === "string")) {
value = fieldValue;
}
- const weekStartsOn = fieldFormat.weekStartsOn ?? (0, import_date6.getSettings)().l10n.startOfWeek;
+ const weekStartsOn = fieldFormat.weekStartsOn ?? (0, import_date7.getSettings)().l10n.startOfWeek;
const { minConstraint, maxConstraint, disabledMatchers } = useDisabledDateMatchers(isValid2, parseDate);
- const onChangeCallback = (0, import_element290.useCallback)(
+ const onChangeCallback = (0, import_element302.useCallback)(
(newValue) => {
onChange(
setValue({
@@ -89057,12 +95451,12 @@ var wp;
},
[data, onChange, setValue]
);
- const [selectedPresetId, setSelectedPresetId] = (0, import_element290.useState)(
+ const [selectedPresetId, setSelectedPresetId] = (0, import_element302.useState)(
null
);
- const selectedRange = (0, import_element290.useMemo)(() => {
+ const selectedRange = (0, import_element302.useMemo)(() => {
if (!value) {
- return { from: void 0, to: void 0 };
+ return null;
}
const [from, to2] = value;
return {
@@ -89070,26 +95464,26 @@ var wp;
to: parseDate(to2) || void 0
};
}, [value]);
- const [calendarMonth, setCalendarMonth] = (0, import_element290.useState)(() => {
- return selectedRange.from || /* @__PURE__ */ new Date();
+ const [calendarMonth, setCalendarMonth] = (0, import_element302.useState)(() => {
+ return selectedRange?.from || /* @__PURE__ */ new Date();
});
- const [isTouched, setIsTouched] = (0, import_element290.useState)(false);
- const fromInputRef = (0, import_element290.useRef)(null);
- const toInputRef = (0, import_element290.useRef)(null);
- const updateDateRange = (0, import_element290.useCallback)(
+ const [isTouched, setIsTouched] = (0, import_element302.useState)(false);
+ const fromInputRef = (0, import_element302.useRef)(null);
+ const toInputRef = (0, import_element302.useRef)(null);
+ const updateDateRange = (0, import_element302.useCallback)(
(fromDate, toDate2) => {
- if (fromDate && toDate2) {
- onChangeCallback([
- formatDate(fromDate),
- formatDate(toDate2)
- ]);
- } else if (!fromDate && !toDate2) {
+ if (!fromDate && !toDate2) {
onChangeCallback(void 0);
+ return;
}
+ onChangeCallback([
+ formatDate(fromDate),
+ formatDate(toDate2)
+ ]);
},
[onChangeCallback]
);
- const onSelectCalendarRange = (0, import_element290.useCallback)(
+ const onSelectCalendarRange = (0, import_element302.useCallback)(
(newRange) => {
updateDateRange(newRange?.from, newRange?.to);
setSelectedPresetId(null);
@@ -89097,7 +95491,7 @@ var wp;
},
[updateDateRange]
);
- const handlePresetClick = (0, import_element290.useCallback)(
+ const handlePresetClick = (0, import_element302.useCallback)(
(preset) => {
const [startDate, endDate] = preset.getValue();
setCalendarMonth(startDate);
@@ -89107,7 +95501,7 @@ var wp;
},
[updateDateRange]
);
- const handleManualDateChange = (0, import_element290.useCallback)(
+ const handleManualDateChange = (0, import_element302.useCallback)(
(fromOrTo, newValue) => {
const [currentFrom, currentTo] = value || [
void 0,
@@ -89127,14 +95521,14 @@ var wp;
},
[value, updateDateRange]
);
- const { timezone } = (0, import_date6.getSettings)();
+ const { timezone } = (0, import_date7.getSettings)();
let displayLabel = label;
if (field.isValid?.required && !markWhenOptional) {
- displayLabel = `${label} (${(0, import_i18n224.__)("Required")})`;
+ displayLabel = `${label} (${(0, import_i18n228.__)("Required")})`;
} else if (!field.isValid?.required && markWhenOptional) {
- displayLabel = `${label} (${(0, import_i18n224.__)("Optional")})`;
+ displayLabel = `${label} (${(0, import_i18n228.__)("Optional")})`;
}
- return /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
ValidatedDateControl,
{
field,
@@ -89142,7 +95536,7 @@ var wp;
inputRefs: [fromInputRef, toInputRef],
isTouched,
setIsTouched,
- children: /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
import_components239.BaseControl,
{
id,
@@ -89150,8 +95544,8 @@ var wp;
label: displayLabel,
help: description,
hideLabelFromVision,
- children: /* @__PURE__ */ (0, import_jsx_runtime475.jsxs)(Stack, { direction: "column", gap: "lg", children: [
- /* @__PURE__ */ (0, import_jsx_runtime475.jsxs)(
+ children: /* @__PURE__ */ (0, import_jsx_runtime488.jsxs)(Stack, { direction: "column", gap: "lg", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsxs)(
Stack,
{
direction: "row",
@@ -89161,7 +95555,7 @@ var wp;
children: [
DATE_RANGE_PRESETS.map((preset) => {
const isSelected = selectedPresetId === preset.id;
- return /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
import_components239.Button,
{
className: "dataviews-controls__date-preset",
@@ -89176,7 +95570,7 @@ var wp;
preset.id
);
}),
- /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
import_components239.Button,
{
className: "dataviews-controls__date-preset",
@@ -89185,13 +95579,13 @@ var wp;
size: "small",
accessibleWhenDisabled: true,
disabled: !!selectedPresetId || disabled2,
- children: (0, import_i18n224.__)("Custom")
+ children: (0, import_i18n228.__)("Custom")
}
)
]
}
),
- /* @__PURE__ */ (0, import_jsx_runtime475.jsxs)(
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsxs)(
Stack,
{
direction: "row",
@@ -89199,12 +95593,12 @@ var wp;
justify: "space-between",
className: "dataviews-controls__date-range-inputs",
children: [
- /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
import_components239.__experimentalInputControl,
{
ref: fromInputRef,
type: "date",
- label: (0, import_i18n224.__)("From"),
+ label: (0, import_i18n228.__)("From"),
hideLabelFromVision: true,
value: value?.[0],
onChange: (newValue) => handleManualDateChange("from", newValue),
@@ -89214,12 +95608,12 @@ var wp;
max: maxConstraint
}
),
- /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
import_components239.__experimentalInputControl,
{
ref: toInputRef,
type: "date",
- label: (0, import_i18n224.__)("To"),
+ label: (0, import_i18n228.__)("To"),
hideLabelFromVision: true,
value: value?.[1],
onChange: (newValue) => handleManualDateChange("to", newValue),
@@ -89232,12 +95626,12 @@ var wp;
]
}
),
- /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
- DateRangeCalendar,
+ /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
+ RangeCalendar,
{
style: { width: "100%" },
- selected: selectedRange,
- onSelect: onSelectCalendarRange,
+ value: selectedRange,
+ onValueChange: onSelectCalendarRange,
month: calendarMonth,
onMonthChange: setCalendarMonth,
timeZone: timezone.string || void 0,
@@ -89261,7 +95655,7 @@ var wp;
validity
}) {
if (operator === OPERATOR_IN_THE_PAST || operator === OPERATOR_OVER) {
- return /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
RelativeDateControl,
{
className: "dataviews-controls__date",
@@ -89274,7 +95668,7 @@ var wp;
);
}
if (operator === OPERATOR_BETWEEN) {
- return /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
CalendarDateRangeControl,
{
data,
@@ -89286,7 +95680,7 @@ var wp;
}
);
}
- return /* @__PURE__ */ (0, import_jsx_runtime475.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
CalendarDateControl,
{
data,
@@ -89301,10 +95695,9 @@ var wp;
// packages/dataviews/build-module/components/dataform-controls/select.mjs
var import_components240 = __toESM(require_components(), 1);
- var import_element291 = __toESM(require_element(), 1);
- var import_jsx_runtime476 = __toESM(require_jsx_runtime(), 1);
- var { ValidatedSelectControl } = unlock4(import_components240.privateApis);
- function Select({
+ var import_element303 = __toESM(require_element(), 1);
+ var import_jsx_runtime489 = __toESM(require_jsx_runtime(), 1);
+ function Select2({
data,
field,
onChange,
@@ -89316,7 +95709,7 @@ var wp;
const disabled2 = field.isDisabled({ item: data, field });
const isMultiple = type === "array";
const value = getValue({ item: data }) ?? (isMultiple ? [] : "");
- const onChangeControl = (0, import_element291.useCallback)(
+ const onChangeControl = (0, import_element303.useCallback)(
(newValue) => onChange(setValue({ item: data, value: newValue })),
[data, onChange, setValue]
);
@@ -89325,9 +95718,9 @@ var wp;
getElements: field.getElements
});
if (isLoading) {
- return /* @__PURE__ */ (0, import_jsx_runtime476.jsx)(import_components240.Spinner, {});
+ return /* @__PURE__ */ (0, import_jsx_runtime489.jsx)(import_components240.Spinner, {});
}
- return /* @__PURE__ */ (0, import_jsx_runtime476.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime489.jsx)(
ValidatedSelectControl,
{
required: !!field.isValid?.required,
@@ -89346,7 +95739,7 @@ var wp;
}
// packages/dataviews/build-module/components/dataform-controls/adaptive-select.mjs
- var import_jsx_runtime477 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime490 = __toESM(require_jsx_runtime(), 1);
var ELEMENTS_THRESHOLD = 10;
function AdaptiveSelect(props) {
const { field } = props;
@@ -89355,9 +95748,9 @@ var wp;
getElements: field.getElements
});
if (elements.length >= ELEMENTS_THRESHOLD) {
- return /* @__PURE__ */ (0, import_jsx_runtime477.jsx)(Combobox, { ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime490.jsx)(Combobox, { ...props });
}
- return /* @__PURE__ */ (0, import_jsx_runtime477.jsx)(Select, { ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime490.jsx)(Select2, { ...props });
}
// packages/dataviews/build-module/components/dataform-controls/email.mjs
@@ -89365,8 +95758,8 @@ var wp;
// packages/dataviews/build-module/components/dataform-controls/utils/validated-input.mjs
var import_components241 = __toESM(require_components(), 1);
- var import_element292 = __toESM(require_element(), 1);
- var import_jsx_runtime478 = __toESM(require_jsx_runtime(), 1);
+ var import_element304 = __toESM(require_element(), 1);
+ var import_jsx_runtime491 = __toESM(require_jsx_runtime(), 1);
var { ValidatedInputControl: ValidatedInputControl3 } = unlock4(import_components241.privateApis);
function ValidatedText({
data,
@@ -89382,7 +95775,7 @@ var wp;
const { label, placeholder, description, getValue, setValue, isValid: isValid2 } = field;
const value = getValue({ item: data });
const disabled2 = field.isDisabled({ item: data, field });
- const onChangeControl = (0, import_element292.useCallback)(
+ const onChangeControl = (0, import_element304.useCallback)(
(newValue) => onChange(
setValue({
item: data,
@@ -89391,7 +95784,7 @@ var wp;
),
[data, setValue, onChange]
);
- return /* @__PURE__ */ (0, import_jsx_runtime478.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime491.jsx)(
ValidatedInputControl3,
{
required: !!isValid2.required,
@@ -89415,7 +95808,7 @@ var wp;
}
// packages/dataviews/build-module/components/dataform-controls/email.mjs
- var import_jsx_runtime479 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime492 = __toESM(require_jsx_runtime(), 1);
function Email({
data,
field,
@@ -89424,7 +95817,7 @@ var wp;
markWhenOptional,
validity
}) {
- return /* @__PURE__ */ (0, import_jsx_runtime479.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime492.jsx)(
ValidatedText,
{
...{
@@ -89435,7 +95828,7 @@ var wp;
markWhenOptional,
validity,
type: "email",
- prefix: /* @__PURE__ */ (0, import_jsx_runtime479.jsx)(import_components242.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime479.jsx)(import_components242.Icon, { icon: envelope_default }) })
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime492.jsx)(import_components242.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime492.jsx)(import_components242.Icon, { icon: envelope_default }) })
}
}
);
@@ -89443,7 +95836,7 @@ var wp;
// packages/dataviews/build-module/components/dataform-controls/telephone.mjs
var import_components243 = __toESM(require_components(), 1);
- var import_jsx_runtime480 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime493 = __toESM(require_jsx_runtime(), 1);
function Telephone({
data,
field,
@@ -89452,7 +95845,7 @@ var wp;
markWhenOptional,
validity
}) {
- return /* @__PURE__ */ (0, import_jsx_runtime480.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime493.jsx)(
ValidatedText,
{
...{
@@ -89463,7 +95856,7 @@ var wp;
markWhenOptional,
validity,
type: "tel",
- prefix: /* @__PURE__ */ (0, import_jsx_runtime480.jsx)(import_components243.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime480.jsx)(import_components243.Icon, { icon: mobile_default }) })
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime493.jsx)(import_components243.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime493.jsx)(import_components243.Icon, { icon: mobile_default }) })
}
}
);
@@ -89471,7 +95864,7 @@ var wp;
// packages/dataviews/build-module/components/dataform-controls/url.mjs
var import_components244 = __toESM(require_components(), 1);
- var import_jsx_runtime481 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime494 = __toESM(require_jsx_runtime(), 1);
function Url({
data,
field,
@@ -89480,7 +95873,7 @@ var wp;
markWhenOptional,
validity
}) {
- return /* @__PURE__ */ (0, import_jsx_runtime481.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime494.jsx)(
ValidatedText,
{
...{
@@ -89491,7 +95884,7 @@ var wp;
markWhenOptional,
validity,
type: "url",
- prefix: /* @__PURE__ */ (0, import_jsx_runtime481.jsx)(import_components244.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime481.jsx)(import_components244.Icon, { icon: link_default }) })
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime494.jsx)(import_components244.__experimentalInputControlPrefixWrapper, { variant: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime494.jsx)(import_components244.Icon, { icon: link_default }) })
}
}
);
@@ -89499,10 +95892,9 @@ var wp;
// packages/dataviews/build-module/components/dataform-controls/utils/validated-number.mjs
var import_components245 = __toESM(require_components(), 1);
- var import_element293 = __toESM(require_element(), 1);
- var import_i18n225 = __toESM(require_i18n(), 1);
- var import_jsx_runtime482 = __toESM(require_jsx_runtime(), 1);
- var { ValidatedNumberControl } = unlock4(import_components245.privateApis);
+ var import_element305 = __toESM(require_element(), 1);
+ var import_i18n229 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime495 = __toESM(require_jsx_runtime(), 1);
function toNumberOrEmpty(value) {
if (value === "" || value === void 0) {
return "";
@@ -89516,37 +95908,37 @@ var wp;
hideLabelFromVision,
step
}) {
- const [min2 = "", max2 = ""] = value;
- const onChangeMin = (0, import_element293.useCallback)(
- (newValue) => onChange([toNumberOrEmpty(newValue), max2]),
- [onChange, max2]
+ const [min3 = "", max3 = ""] = value;
+ const onChangeMin = (0, import_element305.useCallback)(
+ (newValue) => onChange([toNumberOrEmpty(newValue), max3]),
+ [onChange, max3]
);
- const onChangeMax = (0, import_element293.useCallback)(
- (newValue) => onChange([min2, toNumberOrEmpty(newValue)]),
- [onChange, min2]
+ const onChangeMax = (0, import_element305.useCallback)(
+ (newValue) => onChange([min3, toNumberOrEmpty(newValue)]),
+ [onChange, min3]
);
- return /* @__PURE__ */ (0, import_jsx_runtime482.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime495.jsx)(
import_components245.BaseControl,
{
- help: (0, import_i18n225.__)("The max. value must be greater than the min. value."),
- children: /* @__PURE__ */ (0, import_jsx_runtime482.jsxs)(import_components245.Flex, { direction: "row", gap: 4, children: [
- /* @__PURE__ */ (0, import_jsx_runtime482.jsx)(
+ help: (0, import_i18n229.__)("The max. value must be greater than the min. value."),
+ children: /* @__PURE__ */ (0, import_jsx_runtime495.jsxs)(import_components245.Flex, { direction: "row", gap: 4, children: [
+ /* @__PURE__ */ (0, import_jsx_runtime495.jsx)(
import_components245.__experimentalNumberControl,
{
- label: (0, import_i18n225.__)("Min."),
- value: min2,
- max: max2 ? Number(max2) - step : void 0,
+ label: (0, import_i18n229.__)("Min."),
+ value: min3,
+ max: max3 ? Number(max3) - step : void 0,
onChange: onChangeMin,
hideLabelFromVision,
step
}
),
- /* @__PURE__ */ (0, import_jsx_runtime482.jsx)(
+ /* @__PURE__ */ (0, import_jsx_runtime495.jsx)(
import_components245.__experimentalNumberControl,
{
- label: (0, import_i18n225.__)("Max."),
- value: max2,
- min: min2 ? Number(min2) + step : void 0,
+ label: (0, import_i18n229.__)("Max."),
+ value: max3,
+ min: min3 ? Number(min3) + step : void 0,
onChange: onChangeMax,
hideLabelFromVision,
step
@@ -89570,7 +95962,7 @@ var wp;
const { label, description, getValue, setValue, isValid: isValid2 } = field;
const value = getValue({ item: data }) ?? "";
const disabled2 = field.isDisabled({ item: data, field });
- const onChangeControl = (0, import_element293.useCallback)(
+ const onChangeControl = (0, import_element305.useCallback)(
(newValue) => {
onChange(
setValue({
@@ -89584,7 +95976,7 @@ var wp;
},
[data, onChange, setValue]
);
- const onChangeBetweenControls = (0, import_element293.useCallback)(
+ const onChangeBetweenControls = (0, import_element305.useCallback)(
(newValue) => {
onChange(
setValue({
@@ -89602,7 +95994,7 @@ var wp;
)) {
valueBetween = value;
}
- return /* @__PURE__ */ (0, import_jsx_runtime482.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime495.jsx)(
BetweenControls,
{
value: valueBetween,
@@ -89612,7 +96004,7 @@ var wp;
}
);
}
- return /* @__PURE__ */ (0, import_jsx_runtime482.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime495.jsx)(
ValidatedNumberControl,
{
required: !!isValid2.required,
@@ -89624,30 +96016,29 @@ var wp;
onChange: onChangeControl,
hideLabelFromVision,
step,
- min: isValid2.min ? isValid2.min.constraint : void 0,
- max: isValid2.max ? isValid2.max.constraint : void 0,
+ min: typeof isValid2.min?.constraint === "number" ? isValid2.min.constraint : void 0,
+ max: typeof isValid2.max?.constraint === "number" ? isValid2.max.constraint : void 0,
disabled: disabled2
}
);
}
// packages/dataviews/build-module/components/dataform-controls/integer.mjs
- var import_jsx_runtime483 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime496 = __toESM(require_jsx_runtime(), 1);
function Integer(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime483.jsx)(ValidatedNumber, { ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime496.jsx)(ValidatedNumber, { ...props });
}
// packages/dataviews/build-module/components/dataform-controls/number.mjs
- var import_jsx_runtime484 = __toESM(require_jsx_runtime(), 1);
+ var import_jsx_runtime497 = __toESM(require_jsx_runtime(), 1);
function Number2(props) {
- return /* @__PURE__ */ (0, import_jsx_runtime484.jsx)(ValidatedNumber, { ...props });
+ return /* @__PURE__ */ (0, import_jsx_runtime497.jsx)(ValidatedNumber, { ...props });
}
// packages/dataviews/build-module/components/dataform-controls/radio.mjs
var import_components246 = __toESM(require_components(), 1);
- var import_element294 = __toESM(require_element(), 1);
- var import_jsx_runtime485 = __toESM(require_jsx_runtime(), 1);
- var { ValidatedRadioControl } = unlock4(import_components246.privateApis);
+ var import_element306 = __toESM(require_element(), 1);
+ var import_jsx_runtime498 = __toESM(require_jsx_runtime(), 1);
function Radio({
data,
field,
@@ -89663,65 +96054,222 @@ var wp;
getElements: field.getElements
});
const value = getValue({ item: data });
- const onChangeControl = (0, import_element294.useCallback)(
+ const onChangeControl = (0, import_element306.useCallback)(
(newValue) => onChange(setValue({ item: data, value: newValue })),
[data, onChange, setValue]
);
if (isLoading) {
- return /* @__PURE__ */ (0, import_jsx_runtime485.jsx)(import_components246.Spinner, {});
+ return /* @__PURE__ */ (0, import_jsx_runtime498.jsx)(import_components246.Spinner, {});
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime498.jsx)(
+ ValidatedRadioControl,
+ {
+ required: !!field.isValid?.required,
+ markWhenOptional,
+ customValidity: getCustomValidity(isValid2, validity),
+ label,
+ help: description,
+ onChange: onChangeControl,
+ options: elements,
+ selected: value,
+ hideLabelFromVision,
+ disabled: disabled2
+ }
+ );
+ }
+
+ // packages/dataviews/build-module/components/dataform-controls/text.mjs
+ var import_element307 = __toESM(require_element(), 1);
+ var import_jsx_runtime499 = __toESM(require_jsx_runtime(), 1);
+ function Text3({
+ data,
+ field,
+ onChange,
+ hideLabelFromVision,
+ markWhenOptional,
+ config: config2,
+ validity
+ }) {
+ const { prefix: prefix2, suffix } = config2 || {};
+ return /* @__PURE__ */ (0, import_jsx_runtime499.jsx)(
+ ValidatedText,
+ {
+ ...{
+ data,
+ field,
+ onChange,
+ hideLabelFromVision,
+ markWhenOptional,
+ validity,
+ prefix: prefix2 ? (0, import_element307.createElement)(prefix2) : void 0,
+ suffix: suffix ? (0, import_element307.createElement)(suffix) : void 0
+ }
+ }
+ );
+ }
+
+ // packages/dataviews/build-module/components/dataform-controls/time.mjs
+ var import_components247 = __toESM(require_components(), 1);
+ var import_element308 = __toESM(require_element(), 1);
+ var import_i18n230 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime500 = __toESM(require_jsx_runtime(), 1);
+ var { ValidatedInputControl: ValidatedInputControl4 } = unlock4(import_components247.privateApis);
+ function getStep(timeFormat, values) {
+ const tokens = (timeFormat ?? "").replace(/\\./g, "");
+ const hasSeconds = tokens.includes("s") || values.some((value) => (parseTime(value) ?? 0) % 60 !== 0);
+ return hasSeconds ? 1 : void 0;
+ }
+ function toInputValue(value) {
+ const seconds = parseTime(value);
+ if (seconds === null) {
+ return "";
+ }
+ const parts = [
+ Math.floor(seconds / 3600),
+ Math.floor(seconds % 3600 / 60)
+ ];
+ if (seconds % 60 !== 0) {
+ parts.push(seconds % 60);
+ }
+ return parts.map((part) => String(part).padStart(2, "0")).join(":");
+ }
+ function BetweenControls2({
+ value,
+ onChange,
+ hideLabelFromVision,
+ disabled: disabled2,
+ step,
+ min: min3,
+ max: max3
+ }) {
+ const [from = "", to2 = ""] = value;
+ const onChangeFrom = (0, import_element308.useCallback)(
+ (newValue) => onChange([newValue ?? "", to2]),
+ [onChange, to2]
+ );
+ const onChangeTo = (0, import_element308.useCallback)(
+ (newValue) => onChange([from, newValue ?? ""]),
+ [onChange, from]
+ );
+ return /* @__PURE__ */ (0, import_jsx_runtime500.jsx)(
+ import_components247.BaseControl,
+ {
+ help: (0, import_i18n230.__)("The end time must be later than the start time."),
+ children: /* @__PURE__ */ (0, import_jsx_runtime500.jsxs)(Stack, { direction: "row", gap: "sm", justify: "space-between", children: [
+ /* @__PURE__ */ (0, import_jsx_runtime500.jsx)(
+ ValidatedInputControl4,
+ {
+ type: "time",
+ label: (0, import_i18n230.__)("From"),
+ value: from,
+ onChange: onChangeFrom,
+ hideLabelFromVision,
+ disabled: disabled2,
+ step,
+ min: min3,
+ max: to2 || max3
+ }
+ ),
+ /* @__PURE__ */ (0, import_jsx_runtime500.jsx)(
+ ValidatedInputControl4,
+ {
+ type: "time",
+ label: (0, import_i18n230.__)("To"),
+ value: to2,
+ onChange: onChangeTo,
+ hideLabelFromVision,
+ disabled: disabled2,
+ step,
+ min: from || min3,
+ max: max3
+ }
+ )
+ ] })
+ }
+ );
+ }
+ function Time({
+ data,
+ field,
+ onChange,
+ hideLabelFromVision,
+ markWhenOptional,
+ operator,
+ validity
+ }) {
+ const { label, placeholder, description, getValue, setValue, isValid: isValid2 } = field;
+ const value = getValue({ item: data });
+ const disabled2 = field.isDisabled({ item: data, field });
+ const timeFormat = field.format?.time;
+ const min3 = typeof isValid2.min?.constraint === "string" ? isValid2.min.constraint : void 0;
+ const max3 = typeof isValid2.max?.constraint === "string" ? isValid2.max.constraint : void 0;
+ const onChangeControl = (0, import_element308.useCallback)(
+ (newValue) => onChange(
+ setValue({
+ item: data,
+ value: newValue === "" ? void 0 : newValue
+ })
+ ),
+ [data, onChange, setValue]
+ );
+ const onChangeBetweenControls = (0, import_element308.useCallback)(
+ ([from, to2]) => onChange(
+ setValue({
+ item: data,
+ // An unfilled bound is stored as `undefined`, which the
+ // `between` operator reads as "do not apply the filter".
+ value: [from || void 0, to2 || void 0]
+ })
+ ),
+ [data, onChange, setValue]
+ );
+ if (operator === OPERATOR_BETWEEN) {
+ let valueBetween = ["", ""];
+ if (Array.isArray(value) && value.length === 2) {
+ valueBetween = [
+ toInputValue(value[0]),
+ toInputValue(value[1])
+ ];
+ }
+ return /* @__PURE__ */ (0, import_jsx_runtime500.jsx)(
+ BetweenControls2,
+ {
+ value: valueBetween,
+ onChange: onChangeBetweenControls,
+ hideLabelFromVision,
+ disabled: disabled2,
+ step: getStep(timeFormat, valueBetween),
+ min: min3,
+ max: max3
+ }
+ );
}
- return /* @__PURE__ */ (0, import_jsx_runtime485.jsx)(
- ValidatedRadioControl,
+ return /* @__PURE__ */ (0, import_jsx_runtime500.jsx)(
+ ValidatedInputControl4,
{
- required: !!field.isValid?.required,
+ required: !!isValid2.required,
markWhenOptional,
customValidity: getCustomValidity(isValid2, validity),
+ type: "time",
label,
+ placeholder,
help: description,
+ value: toInputValue(value),
onChange: onChangeControl,
- options: elements,
- selected: value,
hideLabelFromVision,
- disabled: disabled2
- }
- );
- }
-
- // packages/dataviews/build-module/components/dataform-controls/text.mjs
- var import_element295 = __toESM(require_element(), 1);
- var import_jsx_runtime486 = __toESM(require_jsx_runtime(), 1);
- function Text3({
- data,
- field,
- onChange,
- hideLabelFromVision,
- markWhenOptional,
- config: config2,
- validity
- }) {
- const { prefix: prefix2, suffix } = config2 || {};
- return /* @__PURE__ */ (0, import_jsx_runtime486.jsx)(
- ValidatedText,
- {
- ...{
- data,
- field,
- onChange,
- hideLabelFromVision,
- markWhenOptional,
- validity,
- prefix: prefix2 ? (0, import_element295.createElement)(prefix2) : void 0,
- suffix: suffix ? (0, import_element295.createElement)(suffix) : void 0
- }
+ disabled: disabled2,
+ step: getStep(timeFormat, [value]),
+ min: min3,
+ max: max3
}
);
}
// packages/dataviews/build-module/components/dataform-controls/toggle.mjs
- var import_components247 = __toESM(require_components(), 1);
- var import_element296 = __toESM(require_element(), 1);
- var import_jsx_runtime487 = __toESM(require_jsx_runtime(), 1);
- var { ValidatedToggleControl } = unlock4(import_components247.privateApis);
+ var import_components248 = __toESM(require_components(), 1);
+ var import_element309 = __toESM(require_element(), 1);
+ var import_jsx_runtime501 = __toESM(require_jsx_runtime(), 1);
+ var { ValidatedToggleControl } = unlock4(import_components248.privateApis);
function Toggle({
field,
onChange,
@@ -89732,12 +96280,12 @@ var wp;
}) {
const { label, description, getValue, setValue, isValid: isValid2 } = field;
const disabled2 = field.isDisabled({ item: data, field });
- const onChangeControl = (0, import_element296.useCallback)(() => {
+ const onChangeControl = (0, import_element309.useCallback)(() => {
onChange(
setValue({ item: data, value: !getValue({ item: data }) })
);
}, [onChange, setValue, data, getValue]);
- return /* @__PURE__ */ (0, import_jsx_runtime487.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime501.jsx)(
ValidatedToggleControl,
{
required: !!isValid2.required,
@@ -89754,10 +96302,10 @@ var wp;
}
// packages/dataviews/build-module/components/dataform-controls/textarea.mjs
- var import_components248 = __toESM(require_components(), 1);
- var import_element297 = __toESM(require_element(), 1);
- var import_jsx_runtime488 = __toESM(require_jsx_runtime(), 1);
- var { ValidatedTextareaControl } = unlock4(import_components248.privateApis);
+ var import_components249 = __toESM(require_components(), 1);
+ var import_element310 = __toESM(require_element(), 1);
+ var import_jsx_runtime502 = __toESM(require_jsx_runtime(), 1);
+ var { ValidatedTextareaControl } = unlock4(import_components249.privateApis);
function Textarea({
data,
field,
@@ -89771,11 +96319,11 @@ var wp;
const disabled2 = field.isDisabled({ item: data, field });
const { label, placeholder, description, setValue, isValid: isValid2 } = field;
const value = field.getValue({ item: data });
- const onChangeControl = (0, import_element297.useCallback)(
+ const onChangeControl = (0, import_element310.useCallback)(
(newValue) => onChange(setValue({ item: data, value: newValue })),
[data, onChange, setValue]
);
- return /* @__PURE__ */ (0, import_jsx_runtime488.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime502.jsx)(
ValidatedTextareaControl,
{
required: !!isValid2.required,
@@ -89795,383 +96343,10 @@ var wp;
);
}
- // packages/dataviews/build-module/components/dataform-controls/richtext/index.mjs
- var import_element299 = __toESM(require_element(), 1);
-
- // packages/dataviews/build-module/components/dataform-controls/richtext/control.mjs
- var import_components249 = __toESM(require_components(), 1);
- var import_compose101 = __toESM(require_compose(), 1);
- var import_element298 = __toESM(require_element(), 1);
- var import_rich_text23 = __toESM(require_rich_text(), 1);
-
- // packages/dataviews/build-module/components/dataform-controls/richtext/utils.mjs
- var EMPTY_ARRAY17 = [];
- function getAllowedFormats2({
- allowedFormats,
- disableFormats
- }) {
- if (disableFormats) {
- return EMPTY_ARRAY17;
- }
- return allowedFormats;
- }
-
- // packages/dataviews/build-module/components/dataform-controls/richtext/format-edit.mjs
- var import_rich_text22 = __toESM(require_rich_text(), 1);
- var import_jsx_runtime489 = __toESM(require_jsx_runtime(), 1);
- var import_react17 = __toESM(require_react(), 1);
- var EMPTY_CONTEXT2 = {};
- function Edit4({
- onChange,
- onFocus,
- value,
- forwardedRef,
- settings: settings2,
- isVisible
- }) {
- const { name, edit: EditFunction } = settings2;
- if (!EditFunction) {
- return null;
- }
- const activeFormat = (0, import_rich_text22.getActiveFormat)(value, name);
- const isActive = activeFormat !== void 0;
- const activeObject = (0, import_rich_text22.getActiveObject)(value);
- const isObjectActive = activeObject !== void 0 && activeObject.type === name;
- return /* @__PURE__ */ (0, import_jsx_runtime489.jsx)(
- EditFunction,
- {
- isActive,
- isVisible,
- activeAttributes: isActive ? activeFormat.attributes || {} : {},
- isObjectActive,
- activeObjectAttributes: isObjectActive ? activeObject.attributes || {} : {},
- value,
- onChange,
- onFocus,
- contentRef: forwardedRef,
- context: EMPTY_CONTEXT2
- },
- name
- );
- }
- function FormatEdit2({
- formatTypes,
- ...props
- }) {
- return formatTypes.map((settings2) => /* @__PURE__ */ (0, import_react17.createElement)(Edit4, { settings: settings2, ...props, key: settings2.name }));
- }
-
- // packages/dataviews/build-module/components/dataform-controls/richtext/control.mjs
- var import_jsx_runtime490 = __toESM(require_jsx_runtime(), 1);
- var {
- ValidatedContentEditableControl: RichTextControlShell,
- withIgnoreIMEEvents
- } = unlock4(import_components249.privateApis);
- var {
- useRichText: useRichText2,
- KeyboardShortcutContext: KeyboardShortcutContext2,
- InputEventContext: InputEventContext2,
- shortcutsListener,
- inputEventsListener
- } = unlock4(import_rich_text23.privateApis);
- var EMPTY_COMPLETERS = [];
- function RichTextControl({
- label,
- value: attrValue,
- onChange,
- placeholder,
- id,
- clientId,
- className,
- hideLabelFromVision,
- help,
- disabled: disabled2,
- required,
- markWhenOptional,
- customValidity,
- allowedFormats,
- disableFormats,
- withoutInteractiveFormatting,
- preserveWhiteSpace,
- disableLineBreaks,
- focusOnMount,
- completers = EMPTY_COMPLETERS
- }) {
- const [selection2, setSelection] = (0, import_element298.useState)({
- start: void 0,
- end: void 0
- });
- const [isSelected, setIsSelected] = (0, import_element298.useState)(false);
- const anchorRef = (0, import_element298.useRef)(void 0);
- const inputEvents = (0, import_element298.useRef)(/* @__PURE__ */ new Set());
- const keyboardShortcuts = (0, import_element298.useRef)(
- /* @__PURE__ */ new Set()
- );
- const focusOutside = (0, import_compose101.__experimentalUseFocusOutside)(() => setIsSelected(false));
- const adjustedAllowedFormats = getAllowedFormats2({
- allowedFormats,
- disableFormats
- });
- const {
- value,
- onChange: onRichTextChange,
- ref: richTextRef,
- formatTypes,
- getValue
- } = useRichText2({
- value: attrValue,
- onChange,
- selectionStart: selection2.start,
- selectionEnd: selection2.end,
- onSelectionChange: (start2, end) => setSelection({ start: start2, end }),
- __unstableIsSelected: isSelected,
- preserveWhiteSpace: !!preserveWhiteSpace,
- placeholder,
- __unstableDisableFormats: disableFormats,
- allowedFormats: adjustedAllowedFormats,
- withoutInteractiveFormatting,
- __unstableFormatTypeHandlerContext: (0, import_element298.useMemo)(
- () => ({
- richTextIdentifier: id,
- blockClientId: clientId
- }),
- [id, clientId]
- )
- });
- function onFocus() {
- anchorRef.current?.focus();
- }
- const eventListenersPropsRef = (0, import_element298.useRef)({
- keyboardShortcuts,
- inputEvents
- });
- const inputRulePropsRef = (0, import_element298.useRef)({
- formatTypes,
- getValue,
- onChange: onRichTextChange
- });
- (0, import_element298.useInsertionEffect)(() => {
- inputRulePropsRef.current = {
- formatTypes,
- getValue,
- onChange: onRichTextChange
- };
- });
- const enterRef = (0, import_compose101.useRefEffect)(
- (element) => {
- if (disabled2) {
- return;
- }
- const onKeyDown = withIgnoreIMEEvents((event) => {
- if (event.key !== "Enter" || event.defaultPrevented || event.metaKey || event.ctrlKey) {
- return;
- }
- event.preventDefault();
- if (disableLineBreaks) {
- return;
- }
- const { getValue: getCurrentValue, onChange: handleChange } = inputRulePropsRef.current;
- const current = getCurrentValue();
- handleChange(
- (0, import_rich_text23.insert)(
- current,
- "\n",
- current.start ?? current.text.length,
- current.end ?? current.text.length
- )
- );
- });
- element.addEventListener("keydown", onKeyDown);
- return () => element.removeEventListener("keydown", onKeyDown);
- },
- [disableLineBreaks, disabled2]
- );
- const eventListenersRef = (0, import_compose101.useRefEffect)(
- (element) => {
- if (!isSelected) {
- return;
- }
- const cleanupShortcuts = shortcutsListener(
- eventListenersPropsRef
- )(element);
- const cleanupInputEvents = inputEventsListener(
- eventListenersPropsRef
- )(element);
- function onFormatInput(event) {
- if (event.inputType !== "insertText" && event.type !== "compositionend") {
- return;
- }
- const {
- formatTypes: types,
- getValue: getCurrentValue,
- onChange: handleChange
- } = inputRulePropsRef.current;
- const current = getCurrentValue();
- const transformed = types.reduce(
- (accumulator, {
- __unstableInputRule
- }) => __unstableInputRule ? __unstableInputRule(accumulator) : accumulator,
- current
- );
- if (transformed !== current) {
- handleChange({
- ...transformed,
- activeFormats: current.activeFormats
- });
- }
- }
- element.addEventListener("input", onFormatInput);
- element.addEventListener("compositionend", onFormatInput);
- return () => {
- cleanupShortcuts();
- cleanupInputEvents();
- element.removeEventListener("input", onFormatInput);
- element.removeEventListener("compositionend", onFormatInput);
- };
- },
- [isSelected]
- );
- const { ref: autocompleteRef, ...autocompleteProps } = (0, import_components249.__unstableUseAutocompleteProps)(
- {
- completers,
- record: value,
- onChange: onRichTextChange,
- // This control's completers insert their completion into the value;
- // none replace the whole value, so the required `onReplace` is a
- // no-op here.
- onReplace: () => {
- }
- }
- );
- const focusOnMountRef = (0, import_compose101.useRefEffect)(
- (element) => {
- if (focusOnMount && !disabled2) {
- element.focus();
- }
- },
- [focusOnMount, disabled2]
- );
- const editableRef = (0, import_compose101.useMergeRefs)([
- richTextRef,
- anchorRef,
- eventListenersRef,
- enterRef,
- focusOnMountRef,
- autocompleteRef
- ]);
- return (
- // Focus boundary for the field's selection: `onFocus` selects on entry;
- // the spread `useFocusOutside` handlers deselect once focus leaves.
- /* @__PURE__ */ (0, import_jsx_runtime490.jsx)(
- "div",
- {
- ...focusOutside,
- onFocus: (event) => {
- setIsSelected(true);
- focusOutside.onFocus(event);
- },
- children: /* @__PURE__ */ (0, import_jsx_runtime490.jsxs)(import_components249.SlotFillProvider, { children: [
- /* @__PURE__ */ (0, import_jsx_runtime490.jsx)(
- RichTextControlShell,
- {
- label,
- id,
- className: clsx_default(
- "dataviews-controls__richtext",
- className
- ),
- placeholder,
- hideLabelFromVision,
- help,
- disabled: disabled2,
- required,
- markWhenOptional,
- customValidity,
- value: value.text,
- "aria-multiline": !disableLineBreaks,
- ...autocompleteProps,
- ref: editableRef
- }
- ),
- isSelected && !disabled2 && /* @__PURE__ */ (0, import_jsx_runtime490.jsx)(
- KeyboardShortcutContext2.Provider,
- {
- value: keyboardShortcuts,
- children: /* @__PURE__ */ (0, import_jsx_runtime490.jsx)(InputEventContext2.Provider, { value: inputEvents, children: /* @__PURE__ */ (0, import_jsx_runtime490.jsx)(
- FormatEdit2,
- {
- value,
- onChange: onRichTextChange,
- onFocus,
- formatTypes,
- forwardedRef: anchorRef,
- isVisible: true
- }
- ) })
- }
- )
- ] })
- }
- )
- );
- }
-
- // packages/dataviews/build-module/components/dataform-controls/richtext/index.mjs
- var import_jsx_runtime491 = __toESM(require_jsx_runtime(), 1);
- function RichText({
- data,
- field,
- onChange,
- hideLabelFromVision,
- markWhenOptional,
- config: config2,
- validity
- }) {
- const {
- className,
- clientId,
- allowedFormats,
- disableFormats,
- withoutInteractiveFormatting,
- preserveWhiteSpace,
- disableLineBreaks
- } = config2 || {};
- const disabled2 = field.isDisabled({ item: data, field });
- const { label, placeholder, description, id, setValue, isValid: isValid2 } = field;
- const value = field.getValue({ item: data }) ?? "";
- const onChangeControl = (0, import_element299.useCallback)(
- (newValue) => onChange(setValue({ item: data, value: newValue })),
- [data, onChange, setValue]
- );
- return /* @__PURE__ */ (0, import_jsx_runtime491.jsx)(
- RichTextControl,
- {
- label,
- value,
- onChange: onChangeControl,
- placeholder,
- id,
- hideLabelFromVision,
- help: description,
- disabled: disabled2,
- required: !!isValid2.required,
- markWhenOptional,
- customValidity: getCustomValidity(isValid2, validity),
- className,
- clientId,
- allowedFormats,
- disableFormats,
- withoutInteractiveFormatting,
- preserveWhiteSpace,
- disableLineBreaks
- }
- );
- }
-
// packages/dataviews/build-module/components/dataform-controls/toggle-group.mjs
var import_components250 = __toESM(require_components(), 1);
- var import_element300 = __toESM(require_element(), 1);
- var import_jsx_runtime492 = __toESM(require_jsx_runtime(), 1);
+ var import_element311 = __toESM(require_element(), 1);
+ var import_jsx_runtime503 = __toESM(require_jsx_runtime(), 1);
var { ValidatedToggleGroupControl } = unlock4(import_components250.privateApis);
function ToggleGroup({
data,
@@ -90184,7 +96359,7 @@ var wp;
const { getValue, setValue, isValid: isValid2 } = field;
const disabled2 = field.isDisabled({ item: data, field });
const value = getValue({ item: data });
- const onChangeControl = (0, import_element300.useCallback)(
+ const onChangeControl = (0, import_element311.useCallback)(
(newValue) => onChange(setValue({ item: data, value: newValue })),
[data, onChange, setValue]
);
@@ -90193,13 +96368,13 @@ var wp;
getElements: field.getElements
});
if (isLoading) {
- return /* @__PURE__ */ (0, import_jsx_runtime492.jsx)(import_components250.Spinner, {});
+ return /* @__PURE__ */ (0, import_jsx_runtime503.jsx)(import_components250.Spinner, {});
}
if (elements.length === 0) {
return null;
}
const selectedOption = elements.find((el) => el.value === value);
- return /* @__PURE__ */ (0, import_jsx_runtime492.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime503.jsx)(
ValidatedToggleGroupControl,
{
required: !!field.isValid?.required,
@@ -90211,7 +96386,7 @@ var wp;
onChange: onChangeControl,
value,
hideLabelFromVision,
- children: elements.map((el) => /* @__PURE__ */ (0, import_jsx_runtime492.jsx)(
+ children: elements.map((el) => /* @__PURE__ */ (0, import_jsx_runtime503.jsx)(
import_components250.__experimentalToggleGroupControlOption,
{
label: el.label,
@@ -90226,8 +96401,8 @@ var wp;
// packages/dataviews/build-module/components/dataform-controls/array.mjs
var import_components251 = __toESM(require_components(), 1);
- var import_element301 = __toESM(require_element(), 1);
- var import_jsx_runtime493 = __toESM(require_jsx_runtime(), 1);
+ var import_element312 = __toESM(require_element(), 1);
+ var import_jsx_runtime504 = __toESM(require_jsx_runtime(), 1);
var { ValidatedFormTokenField } = unlock4(import_components251.privateApis);
function ArrayControl({
data,
@@ -90244,7 +96419,7 @@ var wp;
elements: field.elements,
getElements: field.getElements
});
- const arrayValueAsElements = (0, import_element301.useMemo)(
+ const arrayValueAsElements = (0, import_element312.useMemo)(
() => Array.isArray(value) ? value.map((token) => {
const element = elements?.find(
(suggestion) => suggestion.value === token
@@ -90253,7 +96428,7 @@ var wp;
}) : [],
[value, elements]
);
- const onChangeControl = (0, import_element301.useCallback)(
+ const onChangeControl = (0, import_element312.useCallback)(
(tokens) => {
const valueTokens = tokens.map((token) => {
if (typeof token === "object" && "value" in token) {
@@ -90266,9 +96441,9 @@ var wp;
[onChange, setValue, data]
);
if (isLoading) {
- return /* @__PURE__ */ (0, import_jsx_runtime493.jsx)(import_components251.Spinner, {});
+ return /* @__PURE__ */ (0, import_jsx_runtime504.jsx)(import_components251.Spinner, {});
}
- return /* @__PURE__ */ (0, import_jsx_runtime493.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime504.jsx)(
ValidatedFormTokenField,
{
required: !!isValid2?.required,
@@ -90307,9 +96482,9 @@ var wp;
const element = elements.find(
(el) => el.value === item
);
- return /* @__PURE__ */ (0, import_jsx_runtime493.jsx)("span", { children: element?.label || item });
+ return /* @__PURE__ */ (0, import_jsx_runtime504.jsx)("span", { children: element?.label || item });
}
- return /* @__PURE__ */ (0, import_jsx_runtime493.jsx)("span", { children: item });
+ return /* @__PURE__ */ (0, import_jsx_runtime504.jsx)("span", { children: item });
}
}
);
@@ -90317,33 +96492,33 @@ var wp;
// packages/dataviews/build-module/components/dataform-controls/color.mjs
var import_components252 = __toESM(require_components(), 1);
- var import_element302 = __toESM(require_element(), 1);
- var import_i18n226 = __toESM(require_i18n(), 1);
- var import_jsx_runtime494 = __toESM(require_jsx_runtime(), 1);
- var { ValidatedInputControl: ValidatedInputControl4 } = unlock4(import_components252.privateApis);
+ var import_element313 = __toESM(require_element(), 1);
+ var import_i18n231 = __toESM(require_i18n(), 1);
+ var import_jsx_runtime505 = __toESM(require_jsx_runtime(), 1);
+ var { ValidatedInputControl: ValidatedInputControl5 } = unlock4(import_components252.privateApis);
var ColorPickerDropdown = ({
color,
onColorChange,
disabled: disabled2
}) => {
const validColor = color && w(color).isValid() ? color : "#ffffff";
- return /* @__PURE__ */ (0, import_jsx_runtime494.jsx)(
+ return /* @__PURE__ */ (0, import_jsx_runtime505.jsx)(
import_components252.Dropdown,
{
className: "dataviews-controls__color-picker-dropdown",
popoverProps: { resize: false },
- renderToggle: ({ onToggle }) => /* @__PURE__ */ (0, import_jsx_runtime494.jsx)(
+ renderToggle: ({ onToggle }) => /* @__PURE__ */ (0, import_jsx_runtime505.jsx)(
import_components252.Button,
{
onClick: onToggle,
- "aria-label": (0, import_i18n226.__)("Open color picker"),
+ "aria-label": (0, import_i18n231.__)("Open color picker"),
size: "small",
disabled: disabled2,
accessibleWhenDisabled: true,
- icon: () => /* @__PURE__ */ (0, import_jsx_runtime494.jsx)(import_components252.ColorIndicator, { colorValue: validColor })
+ icon: () => /* @__PURE__ */ (0, import_jsx_runtime505.jsx)(import_components252.ColorIndicator, { colorValue: validColor })
}
),
- renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime494.jsx)(import_components252.__experimentalDropdownContentWrapper, { paddingSize: "none", children: /* @__PURE__ */ (0, import_jsx_runtime494.jsx)(
+ renderContent: () => /* @__PURE__ */ (0, import_jsx_runtime505.jsx)(import_components252.__experimentalDropdownContentWrapper, { paddingSize: "none"